1 2013-07-25 Vladimir Makarov <vmakarov@redhat.com>
3 PR rtl-optimization/57960
4 * lra-constraints.c (process_alt_operands): Use the right mode
5 when checking strict_low.
7 2013-07-25 Jan Hubicka <jh@suse.cz>
9 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
10 * cgraph.c (cgraph_remove_node): Do not release function body
11 when in cgraph streaming.
12 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
13 in other partitions are not considered reachable; fix handling of clones.
15 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
19 2013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24 * config/arm/arm.md ("*sibcall_insn): Replace use of
25 Ss with US. Adjust output for v5 and v4t.
26 (*sibcall_value_insn): Likewise and loosen predicate on
29 * config/arm/constraints.md ("Ss"): Rename to US.
31 2013-07-25 Terry Guo <terry.guo@arm.com>
33 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
34 shift_add/shift_sub0/shift_sub1 RTXs.
36 2013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
37 Anton Blanchard <anton@au1.ibm.com>
39 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
40 (altivec_vpks<VI_char>ss): Likewise.
41 (altivec_vpks<VI_char>us): Likewise.
42 (altivec_vpku<VI_char>us): Likewise.
43 (altivec_vpku<VI_char>um): Likewise.
45 2013-07-24 David Malcolm <dmalcolm@redhat.com>
47 Introduce context class.
49 * Makefile.in (CONTEXT_H): New.
50 (OBJS): Add context.o.
51 (toplev.o): Add CONTEXT_H to dependencies.
54 * toplev.c (general_init): Create the singleton gcc::context
61 2013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
63 PR rtl-optimization/57968
64 * mode-switching.c (create_pre_exit): Allow instructions that
65 don't set a return register to need a non-exit mode.
67 2013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
68 Anton Blanchard <anton@au1.ibm.com>
70 * vector.md (vec_realign_load_<mode>): Reorder input operands to
71 vperm for little endian.
72 * rs6000.c (rs6000_expand_builtin): Use lvsr instead of lvsl to
73 create the control mask for a vperm for little endian.
75 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
76 Anton Blanchard <anton@au1.ibm.com>
78 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
79 two operands for little-endian.
81 2013-07-23 Steve Ellcey <sellcey@mips.com>
83 * config/mips/mips.c (mips_case_values_threshold): New.
84 (TARGET_CASE_VALUES_THRESHOLD): Define.
86 2013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
87 Anton Blanchard <anton@au1.ibm.com>
89 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
90 selection of field for vector splat in little endian mode.
92 2013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
94 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
95 expanders to rs6000.md.
96 (ior<mode>3): Likewise.
97 (and<mode>3): Likewise.
98 (one_cmpl<mode>2): Likewise.
99 (nor<mode>3): Likewise.
100 (andc<mode>3): Likewise.
101 (eqv<mode>3): Likewise.
102 (nand<mode>3): Likewise.
103 (orc<mode>3): Likewise.
105 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
108 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
109 to split multi-word logical operations.
110 (rs6000_split_logical_di): Likewise.
111 (rs6000_split_logical): Likewise.
113 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
114 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
115 and allow TImode operations in 32-bit.
116 (vsx_and<mode>3_64bit): Likewise.
117 (vsx_ior<mode>3_32bit): Likewise.
118 (vsx_ior<mode>3_64bit): Likewise.
119 (vsx_xor<mode>3_32bit): Likewise.
120 (vsx_xor<mode>3_64bit): Likewise.
121 (vsx_one_cmpl<mode>2_32bit): Likewise.
122 (vsx_one_cmpl<mode>2_64bit): Likewise.
123 (vsx_nor<mode>3_32bit): Likewise.
124 (vsx_nor<mode>3_64bit): Likewise.
125 (vsx_andc<mode>3_32bit): Likewise.
126 (vsx_andc<mode>3_64bit): Likewise.
127 (vsx_eqv<mode>3_32bit): Likewise.
128 (vsx_eqv<mode>3_64bit): Likewise.
129 (vsx_nand<mode>3_32bit): Likewise.
130 (vsx_nand<mode>3_64bit): Likewise.
131 (vsx_orc<mode>3_32bit): Likewise.
132 (vsx_orc<mode>3_64bit): Likewise.
134 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
135 logical types in GPRs.
137 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
138 logical insns to rs6000.md, and allow TImode operations in
140 (altivec_ior<mode>3): Likewise.
141 (altivec_xor<mode>3): Likewise.
142 (altivec_one_cmpl<mode>2): Likewise.
143 (altivec_nor<mode>3): Likewise.
144 (altivec_andc<mode>3): Likewise.
146 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
147 attributes for moving the 128-bit logical operations into
149 (BOOL_REGS_OUTPUT): Likewise.
150 (BOOL_REGS_OP1): Likewise.
151 (BOOL_REGS_OP2): Likewise.
152 (BOOL_REGS_UNARY): Likewise.
153 (BOOL_REGS_AND_CR0): Likewise.
154 (one_cmpl<mode>2): Add support for DI logical operations on
155 32-bit, splitting the operations to 32-bit.
159 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
160 changes to combine the 32/64-bit code, allow logical operations on
161 TI mode in 32-bit, and to use similar match_operator patterns like
162 scalar mode uses. Combine the Altivec and VSX code for logical
163 operations, and move it here.
164 (ior<mode>3, 128-bit types): Likewise.
165 (xor<mode>3, 128-bit types): Likewise.
166 (one_cmpl<mode>3, 128-bit types): Likewise.
167 (nor<mode>3, 128-bit types): Likewise.
168 (andc<mode>3, 128-bit types): Likewise.
169 (eqv<mode>3, 128-bit types): Likewise.
170 (nand<mode>3, 128-bit types): Likewise.
171 (orc<mode>3, 128-bit types): Likewise.
172 (and<mode>3_internal): Likewise.
173 (bool<mode>3_internal): Likewise.
174 (boolc<mode>3_internal1): Likewise.
175 (boolc<mode>3_internal2): Likewise.
176 (boolcc<mode>3_internal1): Likewise.
177 (boolcc<mode>3_internal2): Likewise.
178 (eqv<mode>3_internal1): Likewise.
179 (eqv<mode>3_internal2): Likewise.
180 (one_cmpl1<mode>3_internal): Likewise.
182 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
184 * config/microblaze/microblaze.c (microblaze_expand_prologue):
185 Rename flag_stack_usage to flag_stack_usage_info.
187 2013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
189 * config/microblaze/sync.md: New file.
190 * config/microblaze/microblaze.md: Include sync.md
191 * config/microblaze/microblaze.c: Add print_operand 'y'.
192 * config/microblaze/constraints.md: Add memory_contraint
193 'Q' which is a single register.
195 2013-07-23 Eric Botcazou <ebotcazou@adacore.com>
197 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
199 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
201 * reload.c (find_reloads): Exit loop once we find this operand
202 cannot be reloaded somehow for this alternative.
204 * reload.c (find_reloads): Exit loop once we find a hard register.
206 * rtlanal.c (computed_jump_p): Exit loop once we find label
209 * i386.c (ix86_pad_returns): Exit loop after setting replace.
211 * cfgloopmanip.c (remove_path): Exit loop after setting
214 * gensupport.c (subst_dup): Avoid loop if code is not
215 MATCH_DUP nor MATCH_OP_DUP.
217 2013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
219 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
221 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
223 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
224 true for SP_REGNUM if mode == ptr_mode.
225 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
226 with value R0_REGNUM + 31.
228 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
230 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
231 pad pointer-typed argument downward.
233 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
235 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
236 and __ILP32__ when the ILP32 model is in use.
238 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
240 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
241 (aarch64_load_symref_appropriately): In the case of
242 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
243 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
244 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
245 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
246 if 'mode' doesn't equal to 'ptr_mode'.
247 (aarch64_output_mi_thunk): Add an assertion on the alignment of
248 'vcall_offset'; change to call aarch64_emit_move differently depending
249 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
250 to calculate the upper bound of 'vcall_offset'.
251 (aarch64_cannot_force_const_mem): Change to also return true if
253 (aarch64_legitimize_reload_address): In the case of large
254 displacements, add new local variable 'xmode' and an assertion
255 based on it; change to use 'xmode' to generate the new rtx and
257 (aarch64_asm_trampoline_template): Change to generate the template
258 differently depending on TARGET_ILP32 or not; change to use
259 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
260 (aarch64_trampoline_size): Removed.
261 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
262 and replace immediate literals with it. Change to use 'ptr_mode'
263 instead of 'DImode' and call convert_memory_address if the mode
264 of 'fnaddr' doesn't equal to 'ptr_mode'.
265 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
267 (aarch64_elf_asm_destructor): Likewise.
268 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
269 on TARGET_ILP32 instead of aarch64_trampoline_size.
270 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
271 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
272 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
273 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
274 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
275 (storewb_pair<GPI:mode>_<P:mode>): ... this.
276 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
277 depending on the value of 'mode'.
278 (add_losym_<mode>): New.
279 (ldr_got_small_<mode>): New, based on ldr_got_small.
280 (ldr_got_small): Remove.
281 (ldr_got_small_sidi): New.
282 * config/aarch64/iterators.md (P): New.
283 (PTR): Change to 'ptr_mode' in the condition.
285 2013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
287 * config.gcc (aarch64*-*-*): Support --with-abi.
288 (aarch64*-*-elf): Support --with-multilib-list.
289 (aarch64*-*-linux*): Likewise.
290 (supported_defaults): Add abi to aarch64*-*-*.
291 * configure.ac: Mention AArch64 for --with-multilib-list.
292 * configure: Re-generated.
293 * config/aarch64/biarchilp32.h: New file.
294 * config/aarch64/biarchlp64.h: New file.
295 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
297 (MULTILIB_DEFAULTS): Ditto.
298 (DRIVER_SELF_SPECS): Ditto.
299 (ASM_SPEC): Update to also substitute -mabi.
300 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
301 file whose name depends on -mabi= and -mbig-endian.
302 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
304 (POINTER_SIZE): New define.
305 (POINTERS_EXTEND_UNSIGNED): Ditto.
306 (enum aarch64_abi_type): New enumeration tag.
307 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
308 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
309 (TARGET_ILP32): New define.
310 * config/aarch64/aarch64.opt (mabi): New.
312 (ilp32, lp64): New values for -mabi.
313 * config/aarch64/t-aarch64 (comma): New define.
314 (MULTILIB_OPTIONS): Ditto.
315 (MULTILIB_DIRNAMES): Ditto.
316 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
317 * doc/invoke.texi: Document -mabi for AArch64.
319 2013-07-23 Georg-Johann Lay <avr@gjlay.de>
321 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
323 2013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
324 Anton Blanchard <anton@au1.ibm.com>
326 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
327 endianness when selecting field to splat.
329 2013-07-22 Eric Christopher <echristo@gmail.com>
331 * dwarf2out.c (die_odr_checksum): New function to use
332 CHECKSUM_ macros and ULEB128 for DIE tag.
333 (generate_type_signature): Use.
335 2013-07-22 Eric Botcazou <ebotcazou@adacore.com>
337 * config.gcc (sparc*-*-*): Accept leon3 processor.
338 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
339 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
340 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
341 * config/sparc/sparc.opt (enum processor_type): Add leon3.
342 (mfix-ut699): Adjust comment.
343 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
344 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
345 (CPP_CPU_SPEC): Likewise.
346 (ASM_CPU_SPEC): Likewise.
347 * config/sparc/sparc.c (leon3_cost): New constant.
348 (sparc_option_override): Add leon3 support.
349 (mem_ref): New function.
350 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
351 (sparc_do_work_around_errata): Look into the instruction in the delay
352 slot and adjust accordingly. Add fix for the data cache nullify issues
353 of the UT699. Change insertion position for the NOP.
354 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
355 (leon3_load): New reservation.
356 (leon_store): Bump latency to 2.
357 (grfpu): New automaton.
358 (grfpu_alu): New unit.
359 (grfpu_ds): Likewise.
360 (leon_fp_alu): Adjust.
361 (leon_fp_mult): Delete.
362 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
363 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
364 * config/sparc/sparc.md (cpu): Add leon3.
365 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
367 (atomic_test_and_set): Likewise.
370 2013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
372 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
373 default for R5900 targets.
374 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
375 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
376 * config/mips/mips.c (mips_option_override): Report an error for
377 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
378 for -march=r5900 -mhard-float.
380 2013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
382 * df-problems.c (can_move_insns_across): Exit loop once we
383 find a non-fixed, non-global register.
385 * ipa-pure-const.c (propagate_nothrow): Exit loop after
388 * omega.c (omega_eliminate_red): Break after setting red_found.
389 (omega_problem_has_red_equations): Similarly after setting found.
390 (omega_query_variable): Similarly after setting coupled.
392 2013-07-22 Marek Polacek <polacek@redhat.com>
394 * gimplify.c: Don't include gimple.h twice.
396 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
398 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
399 instead of TARGET_THUMB1.
400 (Pz): New constraint.
401 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
403 (compare_negsi_si): Likewise.
404 (compare_addsi2_op0): Likewise.
405 (compare_addsi2_op1): Likewise.
406 (addsi3_carryin_<optab>): Likewise.
407 (addsi3_carryin_alt2_<optab>): Likewise.
408 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
410 (subsi3_carryin): Likewise.
411 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
412 (minmax_arithsi): Disable for arm_restrict_it.
413 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
414 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
415 (satsi_<SAT:code>_shift): Likewise.
416 (arm_shiftsi3): Add alternative for 16-bit encoding.
417 (arm32_movhf): Disable for arm_restrict_it.
418 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
419 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
421 2013-07-22 Sofiane Naci <sofiane.naci@arm.com>
423 * config/arm/arm.md (attribute "insn"): Delete.
424 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
425 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
426 (not_shiftsi): Update for attribute change.
427 (not_shiftsi_compare0): Likewise.
428 (not_shiftsi_compare0_scratch): Likewise.
429 (arm_one_cmplsi2): Likewise.
430 (thumb1_one_cmplsi2): Likewise.
431 (notsi_compare0): Likewise.
432 (notsi_compare0_scratch): Likewise.
433 (thumb1_movdi_insn): Likewise.
434 (arm_movsi_insn): Likewise.
435 (movhi_insn_arch4): Likewise.
436 (movhi_bytes): Likewise.
437 (arm_movqi_insn): Likewise.
438 (thumb1_movqi_insn): Likewise.
439 (arm32_movhf): Likewise.
440 (thumb1_movhf): Likewise.
441 (arm_movsf_soft_insn): Likewise.
442 (thumb1_movsf_insn): Likewise.
443 (thumb_movdf_insn): Likewise.
444 (movsicc_insn): Likewise.
445 (movsfcc_soft_insn): Likewise.
447 (cond_move): Likewise.
448 (if_move_not): Likewise.
449 (if_not_move): Likewise.
450 (if_shift_move): Likewise.
451 (if_move_shift): Likewise.
452 (if_shift_shift): Likewise.
453 (if_not_arith): Likewise.
454 (if_arith_not): Likewise.
455 (cond_move_not): Likewise.
456 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
457 (neon_mov<mode>): Likewise.
458 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
459 (thumb2_movsi_vfp): Likewise.
460 (movsf_vfp): Likewise.
461 (thumb2_movsf_vfp): Likewise.
462 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
464 (cortexa7_older_only): Likewise.
465 (cortexa7_younger): Likewise.
466 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
467 (1020alu_shift_op): Likewise.
468 (1020alu_shift_reg_op): Likewise.
469 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
470 (alu_shift_op): Likewise.
471 (alu_shift_reg_op): Likewise.
472 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
473 (11_alu_shift_op): Likewise.
474 (11_alu_shift_reg_op): Likewise.
475 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
476 (9_alu_shift_reg_op): Likewise.
477 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
479 (cortex_a15_alu_shift): Likewise.
480 (cortex_a15_alu_shift_reg): Likewise.
481 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
482 (cortex_a5_alu_shift): Likewise.
483 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
485 (cortex_a53_alu_shift): Likewise.
486 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
488 (cortex_a7_alu_reg): Likewise.
489 (cortex_a7_alu_shift): Likewise.
490 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
491 (cortex_a8_alu_shift): Likewise.
492 (cortex_a8_alu_shift_reg): Likewise.
493 (cortex_a8_mov): Likewise.
494 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
495 (cortex_a9_dp_shift): Likewise.
496 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
497 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
498 (cortex_r4_mov): Likewise.
499 (cortex_r4_alu_shift): Likewise.
500 (cortex_r4_alu_shift_reg): Likewise.
501 * config/arm/fa526.md (526_alu_op): Update for attribute change.
502 (526_alu_shift_op): Likewise.
503 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
504 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
505 (626te_alu_shift_op): Likewise.
506 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
507 (726te_alu_op): Likewise.
508 (726te_alu_shift_op): Likewise.
509 (726te_alu_shift_reg_op): Likewise.
510 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
511 (mp626_alu_shift_op): Likewise.
512 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
513 (pj4_alu_e1_conds): Likewise.
515 (pj4_alu_conds): Likewise.
516 (pj4_shift): Likewise.
517 (pj4_shift_conds): Likewise.
518 (pj4_alu_shift): Likewise.
519 (pj4_alu_shift_conds): Likewise.
521 2013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
523 * config/arm/predicates.md (shiftable_operator_strict_it):
525 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
526 Disable cond_exec version for arm_restrict_it.
527 (thumb2_smaxsi3): Convert to generate cond_exec.
528 (thumb2_sminsi3): Likewise.
529 (thumb32_umaxsi3): Likewise.
530 (thumb2_uminsi3): Likewise.
531 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
532 (thumb2_neg_abssi2): Likewise.
533 (thumb2_mov_scc): Add alternative for 16-bit encoding.
534 (thumb2_movsicc_insn): Adjust alternatives.
535 (thumb2_mov_negscc): Disable for arm_restrict_it.
536 (thumb2_mov_negscc_strict_it): New pattern.
537 (thumb2_mov_notscc_strict_it): New pattern.
538 (thumb2_mov_notscc): Disable for arm_restrict_it.
539 (thumb2_ior_scc): Likewise.
540 (thumb2_ior_scc_strict_it): New pattern.
541 (thumb2_cond_move): Adjust for arm_restrict_it.
542 (thumb2_cond_arith): Disable for arm_restrict_it.
543 (thumb2_cond_arith_strict_it): New pattern.
544 (thumb2_cond_sub): Adjust for arm_restrict_it.
545 (thumb2_movcond): Likewise.
546 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
547 (thumb2_zero_extendhisi2_v6): Likewise.
548 (thumb2_zero_extendqisi2_v6): Likewise.
549 (orsi_notsi_si): Likewise.
550 (orsi_not_shiftsi_si): Likewise.
552 2013-07-22 Georg-Johann Lay <avr@gjlay.de>
554 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
555 instruction sequence is 1 byte shorter.
557 2013-07-22 Uros Bizjak <ubizjak@gmail.com>
559 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
560 it is not needed after split.
562 2013-07-20 Iain Sandoe <iain@codesourcery.com>
565 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
566 second label for nonlocal goto receivers. Don't output pic base labels
567 unless we're producing PIC; mark that action unreachable().
568 (ix86_save_reg): If the function contains a nonlocal label, save the
570 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
571 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
572 (update_pic_label_number_if_needed): New.
573 (machopic_output_function_base_name): Adjust for nonlocal receiver
575 (machopic_should_output_picbase_label): New.
576 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
577 (nonlocal_goto_receiver): New insn and split.
579 2013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
581 * config/aarch64/aarch64-builtins.c
582 (aarch64_fold_builtin): Fold abs in all modes.
583 * config/aarch64/aarch64-simd-builtins.def
584 (abs): Enable for all modes.
585 * config/aarch64/arm_neon.h
586 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
587 (vabs_f64): Add missing intrinsic.
589 2013-07-19 Ian Bolton <ian.bolton@arm.com>
591 * config/aarch64/arm_neon.h (vabs_s64): New function
593 2013-07-19 Georg-Johann Lay <avr@gjlay.de>
596 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
597 * config/avr/avr.md (adjust_len): Add `round'.
598 * config/avr/avr-protos.h (avr_out_round): New prototype.
599 (avr_out_plus): Add `out_label' argument.
600 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
601 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
602 Handle the case where `insn' is just a pattern.
603 (avr_out_bitop): Handle the case where `insn' is just a pattern.
604 (avr_out_round): New function.
605 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
607 2013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
609 * config/microblaze/microblaze.c (microblaze_expand_prologue):
610 Add check for flag_stack_usage to handle -fstack-usage support
612 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
614 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
615 interaction for new Power8 flags and VSX.
617 2013-07-18 Sriraman Tallam <tmsriram@google.com>
620 * tree-inline.c (expand_call_inline): Emit errors during
621 early_inlining only if optimization is not turned on.
623 2013-07-18 David Malcolm <dmalcolm@redhat.com>
627 * passes.c (init_optimization_passes): Move the construction of
628 the pass hierarchy into a new passes.def file.
630 * Makefile.in (passes.o): Add dependency on passes.def.
632 2013-07-18 David Malcolm <dmalcolm@redhat.com>
634 * passes.c (init_optimization_passes): Introduce macros for
635 constructing the tree of passes (INSERT_PASSES_AFTER,
636 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
637 TERMINATE_PASS_LIST).
639 2013-07-18 Vladimir Makarov <vmakarov@redhat.com>
640 Wei Mi <wmi@google.com>
642 PR rtl-optimization/57878
643 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
645 (reload_pseudo_compare_func): Check nregs first for reload
648 2013-07-18 David Malcolm <dmalcolm@redhat.com>
650 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
652 2013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
654 * read-rtl.c (validate_const_int): Once an invalid character is
657 * gengtype.c (write_roots): Similarly once we find the "deletable"
658 or "if_marked" option.
660 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
662 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
663 "xtab" and "sat". Move value "clz" from here to ...
664 (attriubte "type"): ... here.
665 (satsi_<SAT:code>): Delete "insn" attribute.
666 (satsi_<SAT:code>_shift): Likewise.
667 (arm_zero_extendqisi2addsi): Likewise.
668 (arm_extendqisi2addsi): Likewise.
669 (clzsi2): Update for attribute changes.
671 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
673 (arm_usatsihi): Likewise.
674 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
676 2013-07-18 Sofiane Naci <sofiane.naci@arm.com>
678 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
679 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
680 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
681 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
682 in alphabetical order.
683 (attribute "core_cycles"): Update for attribute changes.
684 (arm_addsi3): Likewise.
685 (addsi3_compare0): Likewise.
686 (addsi3_compare0_scratch): Likewise.
687 (addsi3_compare_op1): Likewise.
688 (addsi3_compare_op2): Likewise.
689 (compare_addsi2_op0): Likewise.
690 (compare_addsi2_op1): Likewise.
691 (addsi3_carryin_shift_<optab>): Likewise.
692 (subsi3_carryin_shift): Likewise.
693 (rsbsi3_carryin_shift): Likewise.
694 (arm_subsi3_insn): Likewise.
695 (subsi3_compare0): Likewise.
696 (subsi3_compare): Likewise.
697 (arm_andsi3_insn): Likewise.
698 (thumb1_andsi3_insn): Likewise.
699 (andsi3_compare0): Likewise.
700 (andsi3_compare0_scratch): Likewise.
701 (zeroextractsi_compare0_scratch
702 (andsi_not_shiftsi_si): Likewise.
703 (iorsi3_insn): Likewise.
704 (iorsi3_compare0): Likewise.
705 (iorsi3_compare0_scratch): Likewise.
706 (arm_xorsi3): Likewise.
707 (thumb1_xorsi3_insn): Likewise.
708 (xorsi3_compare0): Likewise.
709 (xorsi3_compare0_scratch): Likewise.
710 (satsi_<SAT:code>_shift): Likewise.
712 (arm_shiftsi3): Likewise.
713 (shiftsi3_compare0): Likewise.
714 (not_shiftsi): Likewise.
715 (not_shiftsi_compare0): Likewise.
716 (not_shiftsi_compare0_scratch): Likewise.
717 (arm_one_cmplsi2): Likewise.
718 (thumb_one_complsi2): Likewise.
719 (notsi_compare0): Likewise.
720 (notsi_compare0_scratch): Likewise.
721 (thumb1_zero_extendhisi2): Likewise.
722 (arm_zero_extendhisi2): Likewise.
723 (arm_zero_extendhisi2_v6): Likewise.
724 (arm_zero_extendhisi2addsi): Likewise.
725 (thumb1_zero_extendqisi2): Likewise.
726 (thumb1_zero_extendqisi2_v6): Likewise.
727 (arm_zero_extendqisi2): Likewise.
728 (arm_zero_extendqisi2_v6): Likewise.
729 (arm_zero_extendqisi2addsi): Likewise.
730 (thumb1_extendhisi2): Likewise.
731 (arm_extendhisi2): Likewise.
732 (arm_extendhisi2_v6): Likewise.
733 (arm_extendqisi): Likewise.
734 (arm_extendqisi_v6): Likewise.
735 (arm_extendqisi2addsi): Likewise.
736 (thumb1_extendqisi2): Likewise.
737 (thumb1_movdi_insn): Likewise.
738 (arm_movsi_insn): Likewise.
739 (movsi_compare0): Likewise.
740 (movhi_insn_arch4): Likewise.
741 (movhi_bytes): Likewise.
742 (arm_movqi_insn): Likewise.
743 (thumb1_movqi_insn): Likewise.
744 (arm32_movhf): Likewise.
745 (thumb1_movhf): Likewise.
746 (arm_movsf_soft_insn): Likewise.
747 (thumb1_movsf_insn): Likewise.
748 (movdf_soft_insn): Likewise.
749 (thumb_movdf_insn): Likewise.
750 (arm_cmpsi_insn): Likewise.
751 (cmpsi_shiftsi): Likewise.
752 (cmpsi_shiftsi_swp): Likewise.
753 (arm_cmpsi_negshiftsi_si): Likewise.
754 (movsicc_insn): Likewise.
755 (movsfcc_soft_insn): Likewise.
756 (arith_shiftsi): Likewise.
757 (arith_shiftsi_compare0
758 (arith_shiftsi_compare0_scratch
759 (sub_shiftsi): Likewise.
760 (sub_shiftsi_compare0
761 (sub_shiftsi_compare0_scratch
763 (cond_move): Likewise.
764 (if_plus_move): Likewise.
765 (if_move_plus): Likewise.
766 (if_move_not): Likewise.
767 (if_not_move): Likewise.
768 (if_shift_move): Likewise.
769 (if_move_shift): Likewise.
770 (if_shift_shift): Likewise.
771 (if_not_arith): Likewise.
772 (if_arith_not): Likewise.
773 (cond_move_not): Likewise.
774 (thumb1_ashlsi3): Set type attribute.
775 (thumb1_ashrsi3): Likewise.
776 (thumb1_lshrsi3): Likewise.
777 (thumb1_rotrsi3): Likewise.
778 (shiftsi3_compare0_scratch): Likewise.
779 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
780 (neon_mov<mode>): Likewise.
781 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
783 (thumb2_movsi_insn): Likewise.
784 (thumb2_cmpsi_neg_shiftsi): Likewise.
785 (thumb2_extendqisi_v6): Likewise.
786 (thumb2_zero_extendhisi2_v6): Likewise.
787 (thumb2_zero_extendqisi2_v6): Likewise.
788 (thumb2_shiftsi3_short): Likewise.
789 (thumb2_addsi3_compare0_scratch): Likewise.
790 (orsi_not_shiftsi_si): Likewise.
791 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
792 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
794 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
795 (1020alu_shift_op): Likewise.
796 (1020alu_shift_reg_op): Likewise.
797 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
798 (alu_shift_op): Likewise.
799 (alu_shift_reg_op): Likewise.
800 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
801 (11_alu_shift_op): Likewise.
802 (11_alu_shift_reg_op): Likewise.
803 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
804 (9_alu_shift_reg_op): Likewise.
805 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
807 (cortex_a15_alu_shift): Likewise.
808 (cortex_a15_alu_shift_reg): Likewise.
809 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
811 (cortex_a5_alu_shift): Likewise.
812 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
814 (cortex_a53_alu_shift): Likewise.
815 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
817 (cortex_a7_alu_reg): Likewise.
818 (cortex_a7_alu_shift): Likewise.
819 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
821 (cortex_a8_alu_shift): Likewise.
822 (cortex_a8_alu_shift_reg): Likewise.
823 (cortex_a8_mov): Likewise.
824 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
825 (cortex_a9_dp_shift): Likewise.
826 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
828 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
830 (cortex_r4_mov): Likewise.
831 (cortex_r4_alu_shift): Likewise.
832 (cortex_r4_alu_shift_reg): Likewise.
833 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
834 (526_alu_shift_op): Likewise.
835 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
836 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
837 (626te_alu_shift_op): Likewise.
838 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
839 (726te_alu_op): Likewise.
840 (726te_alu_shift_op): Likewise.
841 (726te_alu_shift_reg_op): Likewise.
842 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
843 (mp626_alu_shift_op): Likewise.
844 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
845 (pj4_alu_e1_conds): Likewise.
847 (pj4_alu_conds): Likewise.
848 (pj4_shift): Likewise.
849 (pj4_shift_conds): Likewise.
850 (pj4_alu_shift): Likewise.
851 (pj4_alu_shift_conds): Likewise.
852 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
854 (cortexa7_older_only): Likewise.
855 (cortexa7_younger): Likewise.
857 2013-07-18 David Malcolm <dmalcolm@redhat.com>
859 * ipa-pure-const.c (generate_summary): Rename to...
860 (pure_const_generate_summary): ... this.
862 2013-07-17 Iain Sandoe <iain@codesourcery.com>
864 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
866 2013-07-17 Yvan Roux <yvan.roux@linaro.org>
869 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
872 2013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
874 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
875 enabled without -march=zEC12.
876 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
879 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
881 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
882 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
883 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
884 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
885 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
886 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
887 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
889 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
890 and ISA_HAS_NMADD3_NMSUB3.
891 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
892 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
893 (nmsub4<mode>, nmsub3<mode>): Likewise.
894 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
896 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
898 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
899 TARGET_MIPS5400 checking.
901 2013-07-16 Jakub Jelinek <jakub@redhat.com>
902 Peter Bergner <bergner@vnet.ibm.com>
904 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
905 registers in the comment.
906 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
907 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
908 rather than FIRST_PSEUDO_REGISTERS.
910 2013-07-16 Peter Bergner <bergner@vnet.ibm.com>
912 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
913 enable extra ISA flags with TARGET_HTM.
915 2013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
917 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
920 2013-07-15 Cong Hou <congh@google.com>
922 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
923 in compare function for sorting.
925 2013-07-15 Peter Bergner <bergner@vnet.ibm.com>
927 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
928 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
929 * config/rs6000/rs6000.opt: Add -mhtm option.
930 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
931 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
932 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
933 __HTM__ if the HTM instructions are available.
934 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
935 htm_spr_reg_operand): New define_predicates.
936 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
937 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
939 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
940 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
941 HTM builtin functions.
942 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
943 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
944 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
945 (rs6000_builtin_mask_calculate): Likewise.
946 (rs6000_option_override_internal): Likewise.
947 (bdesc_htm): Add new HTM builtin support.
948 (htm_spr_num): New function.
949 (htm_spr_regno): Likewise.
950 (rs6000_htm_spr_icode): Likewise.
951 (htm_expand_builtin): Likewise.
952 (htm_init_builtins): Likewise.
953 (rs6000_expand_builtin): Add support for HTM builtin functions.
954 (rs6000_init_builtins): Likewise.
955 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
957 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
958 (TARGET_HTM, MASK_HTM): Define macros.
959 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
960 (FIXED_REGISTERS): Likewise.
961 (CALL_USED_REGISTERS): Likewise.
962 (CALL_REALLY_USED_REGISTERS): Likewise.
963 (REG_ALLOC_ORDER): Likewise.
964 (enum reg_class): Likewise.
965 (REG_CLASS_NAMES): Likewise.
966 (REG_CLASS_CONTENTS): Likewise.
967 (REGISTER_NAMES): Likewise.
968 (ADDITIONAL_REGISTER_NAMES): Likewise.
969 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
970 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
971 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
972 * config/rs6000/htm.md: New file.
973 * config/rs6000/htmintrin.h: New file.
974 * config/rs6000/htmxlintrin.h: New file.
976 2013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
978 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
979 Define SYMBOL_TINY_GOT, update comment.
980 * config/aarch64/aarch64.c
981 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
982 (aarch64_expand_mov_immediate): Likewise.
983 (aarch64_print_operand): Likewise.
984 (aarch64_classify_symbol): Likewise.
985 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
986 (ldr_got_tiny): Define.
988 2013-07-13 Tobias Grosser <tobias@grosser.es>
990 PR tree-optimization/54094
991 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
992 scheduling dimension for the parallelism check from the polyhedral
993 information in the AST.
994 * graphite-dependences.c (carries_deps): Do not assume the schedule is
997 2013-07-13 Jason Merrill <jason@redhat.com>
999 * print-tree.c (debug_vec_tree): Use debug_raw.
1000 (debug_raw (vec<tree, va_gc> &)): New.
1001 (debug_raw (vec<tree, va_gc> *)): New.
1002 * tree.h: Declare them.
1004 2013-07-13 Bin Cheng <bin.cheng@arm.com>
1006 * ifcvt.c (ifcvt_after_combine): New static variable.
1007 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
1009 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
1010 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
1011 rest_of_handle_if_after_reload): Pass new argument for if_convert.
1013 2013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
1015 * config/mips/mips.c (mips_expand_call): Remove empty statement.
1017 2013-07-12 Michael Matz <matz@suse.de>
1020 * convert.c (convert_to_real): Reject non-float inner types.
1022 2013-07-12 Tejas Belagod <tejas.belagod@arm.com>
1024 * config/aarch64/aarch64-protos.h
1025 (aarch64_simd_immediate_valid_for_move): Remove.
1026 * config/aarch64/aarch64.c (simd_immediate_info): New member.
1027 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
1029 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
1031 2013-07-11 Steve Ellcey <sellcey@mips.com>
1033 * config/mips/mips.c (mips_conditional_register_usage): Do not
1034 use t[0-7] registers in MIPS16 mode when optimizing for size.
1036 2013-07-11 Sriraman Tallam <tmsriram@google.com>
1038 * config/i386/i386.c (dispatch_function_versions): Fix array
1039 indexing of function_version_info to match actual_versions.
1041 2013-07-11 Teresa Johnson <tejohnson@google.com>
1043 * vec.h (struct va_gc): Move release out-of-line.
1044 (va_gc::release): Call ggc_free on released vec.
1046 2013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1048 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
1049 Require GOT register as additional operand in UNSPEC.
1050 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
1051 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1052 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1053 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
1054 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
1055 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
1056 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
1058 2013-07-11 Georg-Johann Lay <avr@gjlay.de>
1061 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1062 name seen by assembler/linker rather if available.
1064 2013-07-11 Andreas Schwab <schwab@suse.de>
1066 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1068 2013-07-10 Vladimir Makarov <vmakarov@redhat.com>
1070 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
1072 2013-07-10 Joseph Myers <joseph@codesourcery.com>
1074 * doc/tm.texi.in: Move hook documentation to ....
1075 * target.def: ... here.
1077 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1079 * doc/tm.texi: Regenerate.
1081 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1084 * doc/invoke.texi: Document -Wconditionally-supported.
1086 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1089 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1092 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1095 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1096 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1097 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1098 Remove duplicate devices.
1099 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1100 * config/avr/t-multilib: Regenerate.
1101 * config/avr/avr-tables.opt: Regenerate.
1102 * doc/avr-mmcu.texi: Regenerate.
1104 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
1107 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1109 2013-07-10 Graham Stott <graham.stott@btinternet.com>
1111 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1112 the cost of MULT when optimizing for size.
1114 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1116 * config/cr16/cr16-protos.h: Don't include target.h.
1118 2013-07-09 Joseph Myers <joseph@codesourcery.com>
1120 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1121 adjust register size for TDmode and TFmode for VSX registers.
1123 2013-07-08 Kai Tietz <ktietz@redhat.com>
1126 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1127 hook_bool_const_tree_true.
1129 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1131 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1132 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1133 * config/s390/s390.md: Define FPR*_REGNUM constants.
1134 Fix FPR2_REGNUM constant (18 -> 17).
1135 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1136 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1137 ("trunc<BFP:mode><DFP_ALL:mode>2")
1138 ("trunc<DFP_ALL:mode><BFP:mode>2")
1139 ("*extend<BFP:mode><DFP_ALL:mode>2")
1140 ("*extend<DFP_ALL:mode><BFP:mode>2")
1141 ("extend<BFP:mode><DFP_ALL:mode>2")
1142 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1145 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1147 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
1149 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1151 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1152 and cfun_fpr_bit_p to cfun_fpr_save_p.
1153 (s390_frame_area, s390_register_info, s390_frame_info)
1154 (s390_emit_prologue, s390_emit_epilogue)
1155 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1157 * config/s390/s390.h: Define *_REGNUM macros for floating point
1160 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1162 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1164 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
1166 PR rtl-optimization/57786
1167 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1168 and break out of the loop when it is set to false.
1170 2013-07-08 Jakub Jelinek <jakub@redhat.com>
1173 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1174 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1175 (const_int 63)) 0)).
1176 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1177 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1178 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1180 PR rtl-optimization/57829
1181 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1182 mask bits outside of mode are just sign-extension from mode to HWI.
1184 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1186 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1187 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1188 adjust_address instead of change_address to keep info about alignment.
1189 (emit_strmov): Remove.
1190 (emit_memmov): New function.
1191 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1192 (expand_movmem_epilogue): Likewise and return updated rtx for
1194 (expand_constant_movmem_prologue): Likewise and return updated rtx for
1195 destination and source.
1196 (decide_alignment): Refactor, handle vector_loop.
1197 (ix86_expand_movmem): Likewise.
1198 (ix86_expand_setmem): Likewise.
1199 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1201 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
1203 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1204 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1206 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1208 * config/i386/sse.md (sse_movlhps): Change alternative 3
1209 of operand 2 to "m".
1211 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
1214 * config/i386/sse.md (iptr): New mode attribute.
1215 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1216 (<sse>_vm<plusminus_insn><mode>3): Ditto.
1217 (<sse>_vmmul<mode>3): Ditto.
1218 (<sse>_vmdiv<mode>3): Ditto.
1219 (sse_vmrcpv4sf2): Ditto.
1220 (<sse>_vmsqrt<mode>2): Ditto.
1221 (sse_vmrsqrtv4sf2): Ditto.
1222 (<sse>_vm<code><mode>3): Ditto.
1223 (avx_vmcmp<mode>3): Ditto.
1224 (<sse>_vmmaskcmp<mode>3): Ditto.
1225 (<sse>_comi): Ditto.
1226 (<sse>_ucomi): Ditto.
1227 (*xop_vmfrcz_<mode>): Ditto.
1228 (*fmai_fmadd_<mode>): Ditto.
1229 (*fmai_fmsub_<mode>): Ditto.
1230 (*fmai_fnmadd_<mode>): Ditto.
1231 (*fmai_fnmsub_<mode>): Ditto.
1232 (*fma4i_vmfmadd_<mode>): Ditto.
1233 (*fma4i_vmfmsub_<mode>): Ditto.
1234 (*fma4i_vmfnmadd_<mode>): Ditto.
1235 (*fma4i_vmfnmsub_<mode>): Ditto.
1236 (*xop_vmfrcz_<mode>): Ditto.
1237 (sse_cvtps2pi): Ditto.
1238 (sse_cvttps2pi): Ditto.
1239 (sse_cvtss2si): Ditto.
1240 (sse_cvtss2si_2): Ditto.
1241 (sse_cvtss2siq_2): Ditto.
1242 (sse_cvttss2si): Ditto.
1243 (sse_cvttss2siq): Ditto.
1244 (sse_cvtsd2si): Ditto.
1245 (sse_cvtsd2si_2): Ditto.
1246 (sse_cvtsd2siq_2): Ditto.
1247 (sse_cvttsd2si): Ditto.
1248 (sse_cvttsd2siq): Ditto.
1249 (sse_cvtsd2ss): Ditto.
1250 (sse_cvtss2sd): Ditto.
1251 (avx2_pbroadcast<mode>): Ditto.
1252 (avx2_pbroadcast<mode>_1): Ditto.
1253 (*avx_vperm_broadcast_v4sf): Ditto.
1255 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1256 (sse_movlhps): Ditto.
1257 (sse_storehps): Ditto.
1258 (sse_loadhps): Ditto.
1259 (sse_storelps): Ditto.
1260 (sse_loadlps): Ditto.
1261 (*vec_concatv4sf): Ditto.
1262 (*vec_interleave_highv2df): Ditto.
1263 (*vec_interleave_lowv2df): Ditto.
1264 (*vec_extractv2df_1_sse): Ditto.
1265 (*vec_extractv2df_0_sse): Ditto.
1266 (sse2_storelpd): Ditto.
1267 (sse2_loadlpd): Ditto.
1268 (sse2_movsd): Ditto.
1269 (*vec_concatv4si): Ditto.
1270 (vec_concatv2di): Ditto.
1272 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1273 for Intel asm dialect.
1274 (mmx_punpcklwd): Ditto.
1275 (mmx_punpckldq): Ditto.
1277 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1278 for intel assembler dialect.
1280 2013-07-06 Jakub Jelinek <jakub@redhat.com>
1283 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1284 for BUILT_IN_C{LZ,LRSB}*.
1285 * tree.h (CASE_INT_FN): Add FN##IMAX case.
1286 * tree-vrp.c (extract_range_basic): Handle
1287 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
1288 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1289 fall thru to code calling set_value*.
1290 * builtins.c (expand_builtin): Remove *IMAX cases.
1291 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1292 if width is bigger than 2*HWI.
1294 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
1296 PR rtl-optimization/55342
1297 * lra-int.h (lra_subreg_reload_pseudos): New.
1298 * lra.c: Add undoing optional reloads to the block diagram.
1299 (lra_subreg_reload_pseudos): New.
1300 (lra_optional_reload_pseudos): Change comments.
1301 (lra): Init and clear lra_subreg_reload_pseudos. Clear
1302 lra_optional_reload_pseudos after undo transformations.
1303 * lra-assigns.c (pseudo_prefix_title): New.
1304 (lra_setup_reg_renumber): Use it.
1305 (spill_for): Ditto. Check subreg reload pseudos too.
1306 (assign_by_spills): Consider subreg reload pseudos too.
1307 * lra-constraints.c (simplify_operand_subreg): Use
1308 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1309 (curr_insn_transform): Recognize and do optional reloads.
1310 (undo_optional_reloads): New.
1311 (lra_undo_inheritance): Call undo_optional_reloads.
1313 2013-07-05 Thomas Quinot <quinot@adacore.com>
1315 * tree-complex.c (expand_complex_operations_1): Fix typo.
1317 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
1319 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1320 (tune_params): New member 'const vec_costs'.
1321 * config/aarch64/aarch64.c (generic_vector_cost): New.
1322 (generic_tunings): New member 'generic_vector_cost'.
1323 (aarch64_builtin_vectorization_cost): New.
1324 (aarch64_add_stmt_cost): New.
1325 (TARGET_VECTORIZE_ADD_STMT_COST): New.
1326 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1328 2013-07-03 Jakub Jelinek <jakub@redhat.com>
1331 * config/i386/predicates.md (vsib_address_operand): Disallow
1332 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1334 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1337 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1338 expand_builtin_setjmp_receiver.
1339 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1340 with NULL for the label parameter.
1341 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1342 the frame-pointer. Adjust comments.
1343 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1344 only if LABEL is non-NULL.
1346 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1348 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1349 (ARM_ABI_AAPCS64): Ditto.
1351 (ARM_DEFAULT_ABI): Ditto.
1353 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1355 * config/aarch64/aarch64-builtins.c
1356 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1357 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1359 * config/aarch64/aarch64-simd.md
1360 (aarch64_ld1<VALL:mode>): New.
1361 (aarch64_st1<VALL:mode>): Likewise.
1362 * config/aarch64/arm_neon.h
1363 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1365 2013-07-02 Sriraman Tallam <tmsriram@google.com>
1367 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1369 (ix86_option_override_internal):Turn on all -mavx target flags by
1370 default as they are dependent on AVX anyway.
1372 2013-07-02 Cary Coutant <ccoutant@google.com>
1374 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1376 (loc_checksum_ordered): Likewise.
1377 (hash_loc_operands): Remove inline keyword.
1379 2013-07-02 Jakub Jelinek <jakub@redhat.com>
1381 PR tree-optimization/57741
1382 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1383 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1384 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1385 Allow REAL_CST step_exprs if flag_associative_math.
1386 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1388 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1390 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
1392 2013-07-02 Ian Bolton <ian.bolton@arm.com>
1394 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1396 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1398 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1400 (iorsi3_insn): Likewise.
1401 (arm_xorsi3): Likewise.
1403 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1405 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1407 (attribute "type"): ... here, and prefix with "wmmx_".
1408 (attribute "core_cycles"): Update for attribute changes.
1409 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1410 (tbcstv4hi): Likewise.
1411 (tbcstv2si): Likewise.
1412 (iwmmxt_iordi3): Likewise.
1413 (iwmmxt_xordi3): Likewise.
1414 (iwmmxt_anddi3): Likewise.
1415 (iwmmxt_nanddi3): Likewise.
1416 (iwmmxt_arm_movdi): Likewise.
1417 (iwmmxt_movsi_insn): Likewise.
1418 (mov<mode>_internal): Likewise.
1419 (and<mode>3_iwmmxt): Likewise.
1420 (ior<mode>3_iwmmxt): Likewise.
1421 (xor<mode>3_iwmmxt): Likewise.
1422 (add<mode>3_iwmmxt): Likewise.
1423 (ssaddv8qi3): Likewise.
1424 (ssaddv4hi3): Likewise.
1425 (ssaddv2si3): Likewise.
1426 (usaddv8qi3): Likewise.
1427 (usaddv4hi3): Likewise.
1428 (usaddv2si3): Likewise.
1429 (sub<mode>3_iwmmxt): Likewise.
1430 (sssubv8qi3): Likewise.
1431 (sssubv4hi3): Likewise.
1432 (sssubv2si3): Likewise.
1433 (ussubv8qi3): Likewise.
1434 (ussubv4hi3): Likewise.
1435 (ussubv2si3): Likewise.
1436 (mulv4hi3_iwmmxt): Likewise.
1437 (smulv4hi3_highpart): Likewise.
1438 (umulv4hi3_highpart): Likewise.
1439 (iwmmxt_wmacs): Likewise.
1440 (iwmmxt_wmacsz): Likewise.
1441 (iwmmxt_wmacu): Likewise.
1442 (iwmmxt_wmacuz): Likewise.
1443 (iwmmxt_clrdi): Likewise.
1444 (iwmmxt_clrv8qi): Likewise.
1445 (iwmmxt_clr4hi): Likewise.
1446 (iwmmxt_clr2si): Likewise.
1447 (iwmmxt_uavgrndv8qi3): Likewise.
1448 (iwmmxt_uavgrndv4hi3): Likewise.
1449 (iwmmxt_uavgv8qi3): Likewise.
1450 (iwmmxt_uavgv4hi3): Likewise.
1451 (iwmmxt_tinsrb): Likewise.
1452 (iwmmxt_tinsrh): Likewise.
1453 (iwmmxt_tinsrw): Likewise.
1454 (iwmmxt_textrmub): Likewise.
1455 (iwmmxt_textrmsb): Likewise.
1456 (iwmmxt_textrmuh): Likewise.
1457 (iwmmxt_textrmsh): Likewise.
1458 (iwmmxt_textrmw): Likewise.
1459 (iwmxxt_wshufh): Likewise.
1460 (eqv8qi3): Likewise.
1461 (eqv4hi3): Likewise.
1462 (eqv2si3): Likewise.
1463 (gtuv8qi3): Likewise.
1464 (gtuv4hi3): Likewise.
1465 (gtuv2si3): Likewise.
1466 (gtv8qi3): Likewise.
1467 (gtv4hi3): Likewise.
1468 (gtv2si3): Likewise.
1469 (smax<mode>3_iwmmxt): Likewise.
1470 (umax<mode>3_iwmmxt): Likewise.
1471 (smin<mode>3_iwmmxt): Likewise.
1472 (umin<mode>3_iwmmxt): Likewise.
1473 (iwmmxt_wpackhss): Likewise.
1474 (iwmmxt_wpackwss): Likewise.
1475 (iwmmxt_wpackdss): Likewise.
1476 (iwmmxt_wpackhus): Likewise.
1477 (iwmmxt_wpackwus): Likewise.
1478 (iwmmxt_wpackdus): Likewise.
1479 (iwmmxt_wunpckihb): Likewise.
1480 (iwmmxt_wunpckihh): Likewise.
1481 (iwmmxt_wunpckihw): Likewise.
1482 (iwmmxt_wunpckilb): Likewise.
1483 (iwmmxt_wunpckilh): Likewise.
1484 (iwmmxt_wunpckilw): Likewise.
1485 (iwmmxt_wunpckehub): Likewise.
1486 (iwmmxt_wunpckehuh): Likewise.
1487 (iwmmxt_wunpckehuw): Likewise.
1488 (iwmmxt_wunpckehsb): Likewise.
1489 (iwmmxt_wunpckehsh): Likewise.
1490 (iwmmxt_wunpckehsw): Likewise.
1491 (iwmmxt_wunpckelub): Likewise.
1492 (iwmmxt_wunpckeluh): Likewise.
1493 (iwmmxt_wunpckeluw): Likewise.
1494 (iwmmxt_wunpckelsb): Likewise.
1495 (iwmmxt_wunpckelsh): Likewise.
1496 (iwmmxt_wunpckelsw): Likewise.
1497 (ror<mode>3): Likewise.
1498 (ashr<mode>3_iwmmxt): Likewise.
1499 (lshr<mode>3_iwmmxt): Likewise.
1500 (ashl<mode>3_iwmmxt): Likewise.
1501 (ror<mode>3_di): Likewise.
1502 (ashr<mode>3_di): Likewise.
1503 (lshr<mode>3_di): Likewise.
1504 (ashl<mode>3_di): Likewise.
1505 (iwmmxt_wmadds): Likewise.
1506 (iwmmxt_wmaddu): Likewise.
1507 (iwmmxt_tmia): Likewise.
1508 (iwmmxt_tmiaph): Likewise.
1509 (iwmmxt_tmiabb): Likewise.
1510 (iwmmxt_tmiatb): Likewise.
1511 (iwmmxt_tmiabt): Likewise.
1512 (iwmmxt_tmiatt): Likewise.
1513 (iwmmxt_tmovmskb): Likewise.
1514 (iwmmxt_tmovmskh): Likewise.
1515 (iwmmxt_tmovmskw): Likewise.
1516 (iwmmxt_waccb): Likewise.
1517 (iwmmxt_wacch): Likewise.
1518 (iwmmxt_waccw): Likewise.
1519 (iwmmxt_waligni): Likewise.
1520 (iwmmxt_walignr): Likewise.
1521 (iwmmxt_walignr0): Likewise.
1522 (iwmmxt_walignr1): Likewise.
1523 (iwmmxt_walignr2): Likewise.
1524 (iwmmxt_walignr3): Likewise.
1525 (iwmmxt_wsadb): Likewise.
1526 (iwmmxt_wsadh): Likewise.
1527 (iwmmxt_wsadbz): Likewise.
1528 (iwmmxt_wsadhz): Likewise.
1529 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1530 (iwmmxt_wabsdiffb): Likewise.
1531 (iwmmxt_wabsdiffh): Likewise.
1532 (iwmmxt_wabsdiffw): Likewise.
1533 (iwmmxt_waddsubhx): Likewise
1534 (iwmmxt_wsubaddhx): Likewise.
1535 (addc<mode>3): Likewise.
1536 (iwmmxt_avg4): Likewise.
1537 (iwmmxt_avg4r): Likewise.
1538 (iwmmxt_wmaddsx): Likewise.
1539 (iwmmxt_wmaddux): Likewise.
1540 (iwmmxt_wmaddsn): Likewise.
1541 (iwmmxt_wmaddun): Likewise.
1542 (iwmmxt_wmulwsm): Likewise.
1543 (iwmmxt_wmulwum): Likewise.
1544 (iwmmxt_wmulsmr): Likewise.
1545 (iwmmxt_wmulumr): Likewise.
1546 (iwmmxt_wmulwsmr): Likewise.
1547 (iwmmxt_wmulwumr): Likewise.
1548 (iwmmxt_wmulwl): Likewise.
1549 (iwmmxt_wqmulm): Likewise.
1550 (iwmmxt_wqmulwm): Likewise.
1551 (iwmmxt_wqmulmr): Likewise.
1552 (iwmmxt_wqmulwmr): Likewise.
1553 (iwmmxt_waddbhusm): Likewise.
1554 (iwmmxt_waddbhusl): Likewise.
1555 (iwmmxt_wqmiabb): Likewise.
1556 (iwmmxt_wqmiabt): Likewise.
1557 (iwmmxt_wqmiatb): Likewise.
1558 (iwmmxt_wqmiatt): Likewise.
1559 (iwmmxt_wqmiabbn): Likewise.
1560 (iwmmxt_wqmiabtn): Likewise.
1561 (iwmmxt_wqmiatbn): Likewise.
1562 (iwmmxt_wqmiattn): Likewise.
1563 (iwmmxt_wmiabb): Likewise.
1564 (iwmmxt_wmiabt): Likewise.
1565 (iwmmxt_wmiatb): Likewise.
1566 (iwmmxt_wmiatt): Likewise.
1567 (iwmmxt_wmiabbn): Likewise.
1568 (iwmmxt_wmiabtn): Likewise.
1569 (iwmmxt_wmiatbn): Likewise.
1570 (iwmmxt_wmiattn): Likewise.
1571 (iwmmxt_wmiawbb): Likewise.
1572 (iwmmxt_wmiawbt): Likewise.
1573 (iwmmxt_wmiawtb): Likewise.
1574 (iwmmxt_wmiawtt): Likewise.
1575 (iwmmxt_wmiawbbn): Likewise.
1576 (iwmmxt_wmiawbtn): Likewise.
1577 (iwmmxt_wmiawtbn): Likewise.
1578 (iwmmxt_wmiawttn): Likewise.
1579 (iwmmxt_wmerge): Likewise.
1580 (iwmmxt_tandc<mode>3): Likewise.
1581 (iwmmxt_torc<mode>3): Likewise.
1582 (iwmmxt_torvsc<mode>3): Likewise.
1583 (iwmmxt_textrc<mode>3): Likewise.
1584 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1585 (wmmxt_pack): Likewise.
1586 (wmmxt_mult_c1): Likewise.
1587 (wmmxt_mult_c2): Likewise.
1588 (wmmxt_alu_c1): Likewise.
1589 (wmmxt_alu_c2): Likewise.
1590 (wmmxt_alu_c3): Likewise.
1591 (wmmxt_transfer_c1): Likewise.
1592 (wmmxt_transfer_c2): Likewise.
1593 (wmmxt_transfer_c3): Likewise.
1594 (marvell_f_iwmmxt_wstr): Likewise.
1595 (marvell_f_iwmmxt_wldr): Likewise.
1597 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1599 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
1601 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1604 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1605 * lra-constraints.c (need_for_split_p): Check call used hard regs
1606 living through calls.
1608 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
1609 call used regs for call insn.
1611 2013-06-28 Jakub Jelinek <jakub@redhat.com>
1614 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
1615 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
1617 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1619 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
1621 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1623 * lra-constraints.c (need_for_split_p): Check call used hard regs
1624 living through calls.
1626 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
1629 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
1630 to tie with any other modes. Eliminate Altivec vector mode tests,
1631 since these are a subset of ALTIVEC or VSX vector modes. Simplify
1632 code, to return 0 if testing MODE2 for a condition, if we've
1633 already tested MODE1 for the same condition.
1635 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1637 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
1640 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1642 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1643 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
1645 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
1647 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
1649 (aarch64_symbolic_constant_p): Remove.
1650 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
1651 static. Fix line length and white space.
1652 (aarch64_symbolic_constant_p): Remove.
1653 * config/aarch64/predicates.md (aarch64_valid_symref):
1654 Use aarch64_classify_symbol_expression.
1656 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1658 * config/arm/constraints.md (Ts): New constraint.
1659 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
1661 (compare_scc): Use "Ts" constraint for operand 0.
1662 (ior_scc_scc): Likewise.
1663 (and_scc_scc): Likewise.
1664 (and_scc_scc_nodom): Likewise.
1665 (ior_scc_scc_cmp): Likewise for operand 7.
1666 (and_scc_scc_cmp): Likewise.
1667 * config/arm/thumb2.md (thumb2_movsi_insn):
1668 Add alternatives for 16-bit encodings.
1669 (thumb2_movhi_insn): Likewise.
1670 (thumb2_movsicc_insn): Likewise.
1671 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
1672 (thumb2_negscc): Use "Ts" constraint.
1673 Move mvn instruction outside cond_exec block.
1674 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
1675 for 16-bit encodings.
1677 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1679 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
1681 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
1682 (mulsi3subsi): Likewise.
1683 (mulsidi3adddi): Likewise.
1684 (mulsidi3_v6): Likewise.
1685 (umulsidi3_v6): Likewise.
1686 (umulsidi3adddi_v6): Likewise.
1687 (smulsi3_highpart_v6): Likewise.
1688 (umulsi3_highpart_v6): Likewise.
1689 (mulhisi3tb): Likewise.
1690 (mulhisi3bt): Likewise.
1691 (mulhisi3tt): Likewise.
1692 (maddhisi4): Likewise.
1693 (maddhisi4tb): Likewise.
1694 (maddhisi4tt): Likewise.
1695 (maddhidi4): Likewise.
1696 (maddhidi4tb): Likewise.
1697 (maddhidi4tt): Likewise.
1698 (zeroextractsi_compare0_scratch): Likewise.
1699 (insv_zero): Likewise.
1700 (insv_t2): Likewise.
1701 (anddi_notzesidi_di): Likewise.
1702 (anddi_notsesidi_di): Likewise.
1703 (andsi_notsi_si): Likewise.
1704 (iordi_zesidi_di): Likewise.
1705 (xordi_zesidi_di): Likewise.
1706 (andsi_iorsi3_notsi): Likewise.
1708 (smax_m1): Likewise.
1710 (not_shiftsi): Likewise.
1711 (unaligned_loadsi): Likewise.
1712 (unaligned_loadhis): Likewise.
1713 (unaligned_loadhiu): Likewise.
1714 (unaligned_storesi): Likewise.
1715 (unaligned_storehi): Likewise.
1716 (extv_reg): Likewise.
1717 (extzv_t2): Likewise.
1719 (udivsi3): Likewise.
1720 (arm_zero_extendhisi2addsi): Likewise.
1721 (arm_zero_extendqisi2addsi): Likewise.
1722 (compareqi_eq0): Likewise.
1723 (arm_extendhisi2_v6): Likewise.
1724 (arm_extendqisi2addsi): Likewise.
1725 (arm_movt): Likewise.
1726 (thumb2_ldrd): Likewise.
1727 (thumb2_ldrd_base): Likewise.
1728 (thumb2_ldrd_base_neg): Likewise.
1729 (thumb2_strd): Likewise.
1730 (thumb2_strd_base): Likewise.
1731 (thumb2_strd_base_neg): Likewise.
1732 (arm_negsi2): Add alternative for 16-bit encoding.
1733 (arm_one_cmplsi2): Likewise.
1735 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1737 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
1738 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
1739 (movdfcc): Likewise.
1740 * config/arm/vfp.md (*thumb2_movsf_vfp):
1741 Disable predication for arm_restrict_it.
1742 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
1743 (*thumb2_movdfcc_vfp): Likewise.
1744 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
1745 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
1746 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
1747 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
1748 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
1749 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
1750 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
1751 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
1752 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
1753 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
1754 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
1755 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
1756 Disable predication for arm_restrict_it.
1758 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
1760 * config/i386/bmiintrin.h (_bextr_u32): New.
1761 (_bextr_u64): Ditto.
1763 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
1765 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
1766 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
1767 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
1768 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
1769 * config/mips/n32-elf.h: ...this new file.
1771 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1774 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
1775 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
1777 2013-06-27 Catherine Moore <clm@codesourcery.com>
1779 * config/mips/mips-tables.opt: Regenerate.
1780 * config/mips/mips-cpus.def: Add m14ke and m14kec.
1781 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
1782 * doc/invoke.texi: Add -m14kc.
1784 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1787 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
1788 constraints of operand 1 and 2.
1791 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
1792 to match RTL canonicalization. Swap predicates and
1793 constraints of operand 1 and 2.
1795 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
1797 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
1798 Process OP_INOUT regs for splitting too.
1800 2013-06-27 Jakub Jelinek <jakub@redhat.com>
1802 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
1803 decl before the loop, initialize to NULL.
1804 (vectorizable_load): Initialize ptr_incr to NULL.
1806 2013-06-27 Martin Jambor <mjambor@suse.cz>
1809 * ipa-ref.h (ipa_maybe_record_reference): Declare.
1810 * ipa-ref.c (ipa_maybe_record_reference): New function.
1811 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
1812 * ipa-cp.c (create_specialized_node): Record potential references from
1814 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
1816 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1818 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
1819 parameter 'mode' of type 'enum machine_mode mode'; change to pass
1820 'mode' to force_reg.
1821 (aarch64_add_offset): Update calls to aarch64_force_temporary.
1822 (aarch64_expand_mov_immediate): Likewise.
1824 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
1826 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
1827 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
1829 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1831 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
1832 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1833 (struct machine_function): Add tbegin_p.
1834 (s390_canonicalize_comparison): Fold CC mode compares to
1835 conditional jump if possible.
1836 (s390_emit_jump): Return the emitted jump.
1837 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
1838 Handle CCRAWmode compares.
1839 (s390_option_override): Default to -mhtm if available.
1840 (s390_reg_clobbered_rtx): Handle floating point regs as well.
1841 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
1842 FPRs instead of df_regs_ever_live_p.
1843 (s390_optimize_nonescaping_tx): New function.
1844 (s390_init_frame_layout): Extend clobbered_regs array to cover
1846 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
1847 (s390_expand_tbegin): New function.
1848 (enum s390_builtin): New enum definition.
1849 (code_for_builtin): New array definition.
1850 (s390_init_builtins): New function.
1851 (s390_expand_builtin): New function.
1852 (TARGET_INIT_BUILTINS): Define.
1853 (TARGET_EXPAND_BUILTIN): Define.
1854 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
1855 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
1856 (s390_alc_comparison): Likewise.
1857 * config/s390/s390-modes.def: Add CCRAWmode.
1858 * config/s390/s390.h (processor_flags): Add PF_TX.
1859 (TARGET_CPU_HTM): Define macro.
1860 (TARGET_HTM): Define macro.
1861 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
1862 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
1863 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
1864 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
1865 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
1866 (TBEGIN_MASK, TBEGINC_MASK): New constants.
1867 ("*cc_to_int"): Move up.
1868 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
1869 constants other than 0.
1870 ("*ccraw_to_int"): New insn and splitter definition.
1871 ("tbegin", "tbegin_nofloat", "tbegin_retry")
1872 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
1873 ("tx_assist"): New expander.
1874 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
1875 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
1876 * config/s390/s390.opt: Add -mhtm option.
1877 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
1878 * config/s390/htmxlintrin.h: New file.
1879 * config/s390/htmintrin.h: New file.
1880 * config/s390/s390intrin.h: New file.
1881 * doc/extend.texi: Document htm builtins.
1882 * config.gcc: Add the new header files to extra_headers.
1884 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
1886 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
1887 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
1889 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1890 Pat Haugen <pthaugen@us.ibm.com>
1891 Peter Bergner <bergner@vnet.ibm.com>
1893 * config/rs6000/power8.md: New.
1894 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1895 setting for power8 entry.
1896 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1897 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1898 test for Power4/Power5 only.
1899 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1901 (force_new_group): Adjust comment.
1902 * config/rs6000/rs6000.md: Include power8.md.
1904 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
1906 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1907 * config/arm/arm-protos.h (arm_max_conditional_execute): New
1909 (tune_params): Update comment.
1910 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1911 (arm_max_conditional_execute): New function.
1912 (thumb2_final_prescan_insn): Use max_insn_skipped and
1913 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1915 2013-06-25 Jakub Jelinek <jakub@redhat.com>
1917 PR tree-optimization/57705
1918 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1919 SSA_NAME step, provided that it is not defined inside the loop.
1920 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
1921 (get_initial_def_for_induction): Handle SSA_NAME IV step.
1923 2013-06-25 Martin Jambor <mjambor@suse.cz>
1926 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1927 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1929 (ipa_note_param_call): Initialize member_ptr flag.
1930 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1931 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1932 (ipa_write_indirect_edge_info): Stream member_ptr flag.
1933 (ipa_read_indirect_edge_info): Likewise.
1935 2013-06-25 Richard Biener <rguenther@suse.de>
1938 * passes.c (init_optimization_passes): Move pass_fold_builtins
1939 and pass_dce earlier with -Og.
1941 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
1943 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1944 <BIT_FIELD_REF>: Remove trailing TAB.
1945 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1948 2013-06-24 Martin Jambor <mjambor@suse.cz>
1950 PR tree-optimization/57358
1951 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1952 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1953 (ipa_analyze_params_uses): Generate pessimistic info when true.
1955 2013-06-24 Martin Jambor <mjambor@suse.cz>
1957 PR tree-optimization/57539
1958 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1959 global.inlined_to of the new node to it. All callers changed.
1960 * ipa-inline-transform.c (clone_inlined_nodes): New variable
1961 inlining_into, pass it to cgraph_clone_node.
1962 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1963 ipa_free_edge_args_substructures.
1964 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1965 rdesc linked list. Do not assert rdesc edges have inlined caller.
1966 Assert we have found an rdesc in the rdesc list.
1968 2013-06-24 Richard Biener <rguenther@suse.de>
1970 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
1971 (pointer_set_lookup): Declare.
1972 (class pointer_map): New template class implementing a
1973 generic pointer to T map.
1974 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1975 pointer_map<T>::contains, pointer_map<T>::insert,
1976 pointer_map<T>::traverse): New functions.
1977 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1978 (pointer_set_lookup): New function.
1979 (pointer_set_contains): Use pointer_set_lookup.
1980 (pointer_set_insert): Likewise.
1981 (insert_aux): Remove.
1982 (struct pointer_map_t): Embed a pointer_set_t.
1983 (pointer_map_create): Adjust.
1984 (pointer_map_destroy): Likewise.
1985 (pointer_map_contains): Likewise.
1986 (pointer_map_insert): Likewise.
1987 (pointer_map_traverse): Likewise.
1988 * tree-streamer.h (struct streamer_tree_cache_d): Use a
1989 pointer_map<unsigned> instead of a pointer_map_t.
1990 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1991 (streamer_tree_cache_lookup): Likewise.
1992 (streamer_tree_cache_create): Likewise.
1993 (streamer_tree_cache_delete): Likewise.
1994 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1995 pointer_map<unsigned> instead of a pointer_map_t.
1996 (lto_init_tree_ref_encoder): Adjust.
1997 (lto_destroy_tree_ref_encoder): Likewise.
1998 * lto-section-out.c (lto_output_decl_index): Likewise.
1999 (lto_record_function_out_decl_state): Likewise.
2000 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
2002 2013-06-24 Richard Biener <rguenther@suse.de>
2004 PR tree-optimization/57488
2005 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
2007 2013-06-24 Alan Modra <amodra@gmail.com>
2009 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
2010 (gen_easy_altivec_constant): Likewise.
2011 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2012 easy_vector_constant_msb): Likewise.
2014 2013-06-23 Jakub Jelinek <jakub@redhat.com>
2017 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
2018 add missing return true.
2020 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
2023 * config/sh/predicates.md (general_extend_operand): Invoke
2024 general_movsrc_operand for memory operands.
2025 (general_movsrc_operand): Allow reg+reg addressing, do not use
2026 general_operand for memory operands.
2028 2013-06-23 Sriraman Tallam <tmsriram@google.com>
2030 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
2031 when current target options does not apply.
2032 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
2033 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
2034 * config/i386/bmiintrin.h: Pass appropriate target
2035 attributes to header.
2036 * config/i386/mmintrin.h: Ditto.
2037 * config/i386/nmmintrin.h: Ditto.
2038 * config/i386/avx2intrin.h: Ditto.
2039 * config/i386/fxsrintrin.h: Ditto.
2040 * config/i386/tbmintrin.h: Ditto.
2041 * config/i386/xsaveintrin.h: Ditto.
2042 * config/i386/f16cintrin.h: Ditto.
2043 * config/i386/xtestintrin.h: Ditto.
2044 * config/i386/xsaveoptintrin.h: Ditto.
2045 * config/i386/bmi2intrin.h: Ditto.
2046 * config/i386/lzcntintrin.h: Ditto.
2047 * config/i386/smmintrin.h: Ditto.
2048 * config/i386/wmmintrin.h: Ditto.
2049 * config/i386/x86intrin.h: Remove all header include guards.
2050 * config/i386/prfchwintrin.h: Ditto.
2051 * config/i386/pmmintrin.h: Ditto.
2052 * config/i386/tmmintrin.h: Ditto.
2053 * config/i386/xmmintrin.h: Ditto.
2054 * config/i386/popcntintrin.h: Ditto.
2055 * config/i386/rdseedintrin.h: Ditto.
2056 * config/i386/ammintrin.h: Ditto.
2057 * config/i386/emmintrin.h: Ditto.
2058 * config/i386/immintrin.h: Remove all header include guards.
2059 * config/i386/fma4intrin.h: Ditto.
2060 * config/i386/lwpintrin.h: Ditto.
2061 * config/i386/xopintrin.h: Ditto.
2062 * config/i386/ia32intrin.h: Ditto.
2063 * config/i386/avxintrin.h: Ditto.
2064 * config/i386/rtmintrin.h: Ditto.
2065 * config/i386/fmaintrin.h: Ditto.
2066 * config/i386/mm3dnow.h: Ditto.
2068 2013-06-22 Sriraman Tallam <tmsriram@google.com>
2070 * common/config/i386/i386-common.c: Handle LZCNT.
2072 2013-06-22 Andi Kleen <ak@linux.intel.com>
2074 * doc/extend.texi: Use __atomic_store_n instead of
2075 __atomic_store in HLE example.
2077 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
2079 * config/sh/sh.c: Remove <cstdlib> workaround.
2081 2013-06-21 Andi Kleen <ak@linux.intel.com>
2083 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
2085 2013-06-21 Andi Kleen <ak@linux.intel.com>
2087 * doc/extend.texi: Document that __atomic_clear and
2088 __atomic_test_and_set should only be used with bool.
2090 2013-06-20 Jan Hubicka <jh@suse.cz>
2092 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2094 * tree.c (decls_same_for_odr): New function.
2095 (same_for_edr): New function.
2096 (types_same_for_odr): New function.
2097 (get_binfo_at_offset): Use it.
2098 * tree.h (types_same_for_odr): Declare.
2100 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
2101 Jason Merrill <jason@redhat.com>
2103 * system.h: Include <cstdlib> as well as <stdlib.h>.
2105 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
2108 * config/i386/i386.c (construct_container): Report error if
2109 long double is used with disabled x87 float returns.
2111 2013-06-20 Jan Hubicka <jh@suse.cz>
2113 * lto-cgraph.c (input_symtab): Do not set cgraph state.
2115 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
2117 PR rtl-optimization/57425
2118 PR rtl-optimization/57569
2119 * alias.c (write_dependence_p): Remove parameters mem_mode and
2120 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
2121 Changed all callers.
2122 (canon_anti_dependence): Get comments and semantics in sync.
2123 Add parameter mem_canonicalized. Changed all callers.
2124 * rtl.h (canon_anti_dependence): Update prototype.
2126 2013-06-20 Richard Biener <rguenther@suse.de>
2128 * data-streamer-in.c (streamer_read_uhwi): Optimize single
2129 byte case, inline streamer_read_uchar and defer section
2132 2013-06-20 Richard Biener <rguenther@suse.de>
2134 PR tree-optimization/57584
2135 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2136 SSA names into the expanded expression that take part in
2137 abnormal coalescing.
2139 2013-06-19 Sharad Singhai <singhai@google.com>
2141 * gcov.c (print_usage): Handle new option.
2142 (process_args): Ditto.
2143 (get_gcov_intermediate_filename): New function.
2144 (output_intermediate_file): New function.
2145 (output_gcov_file): New function
2146 (generate_results): Handle new option.
2147 (release_function): Relase demangled name.
2148 (read_graph_file): Handle demangled name.
2149 (output_lines): Ditto.
2150 * doc/gcov.texi: Document gcov intermediate format.
2152 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
2155 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2156 (lra_emit_add): Use the functions. Add comment about Y as an
2159 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
2162 * collect2.c (collect_atexit): New.
2163 (collect_exit): Delete.
2164 (main): Register collect_atexit with atexit.
2165 (collect_wait): Change collect_exit to exit.
2167 * collect2.h (collect_exit): Delete.
2168 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2170 2013-06-19 Wei Mi <wmi@google.com>
2172 PR rtl-optimization/57518
2173 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2174 if regno is used in paradoxical subreg.
2175 (update_equiv_regs): Check pdx_subregs[regno] before
2176 set a reg to be equivalent with a mem.
2178 2013-06-19 Matthias Klose <doko@ubuntu.com>
2181 * file-find.h (find_a_file): Add a mode parameter.
2182 * file-find.c (find_a_file): Likewise.
2183 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2184 with X_OK for the executables.
2185 * collect2.c (main): Call find_a_file with X_OK.
2187 2013-06-19 Steve Ellcey <sellcey@mips.com>
2190 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2191 Use NEXT_INSN instead of next_real_insn.
2193 2013-06-19 Jan Hubicka <jh@suse.cz>
2195 * cgraph.h (const_value_known_p): Replace by ...
2196 (ctor_for_folding): .. this one.
2197 * cgraphunit.c (process_function_and_variable_attributes): Use it.
2198 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2199 * expr.c (expand_expr_real_1): Likewise.
2200 (string_constant): Likewise.
2201 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2202 * ipa.c (process_references): Likewise.
2203 (symtab_remove_unreachable_nodes): Likewise.
2204 * ipa-inline-analysis.c (param_change_prob): Likewise.
2205 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2206 (get_base_constructor): Likwise.
2207 * varpool.c (varpool_remove_node): Likewise.
2208 (varpool_remove_initializer): LIkewise.
2209 (dump_varpool_node): LIkwise.
2210 (const_value_known_p): Rewrite to ...
2211 (ctor_for_folding): ... this one.
2213 2013-06-19 Jakub Jelinek <jakub@redhat.com>
2216 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2217 PERSONALITY in $PATH derived prefixes.
2219 2013-06-19 Jeff Law <law@redhat.com>
2221 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2224 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2225 (simplify_bitwise_binary): Use it to simpify certain binary ops on
2228 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
2230 * config/arm/vfp.md: Move VFP instruction classification documentation
2232 * config/arm/arm.md: ... here. Update instruction classification
2235 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
2237 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2238 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2239 pattern. Use more efficient sequences on ARMv5 and Thumb2.
2241 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
2244 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2245 with NEXT_INSN. Use tablejump_p to check for jump table data
2248 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2251 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2252 that now in C++ the value is correct per the C++ standards.
2254 2013-06-19 Richard Biener <rguenther@suse.de>
2256 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2259 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2262 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2265 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2266 with next_active_insn.
2268 2013-06-18 Sriraman Tallam <tmsriram@google.com>
2270 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2271 functions are inlined during failures to flag an error.
2272 * tree-inline.c (expand_call_inline): Allow the error to be flagged
2273 in early inline pass.
2275 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
2277 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2280 2013-06-18 Julian Brown <julian@codesourcery.com>
2282 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2283 Permit virtual register pre-reload if !strict.
2284 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2286 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2288 * config/arm/neon.md (movmisalign<mode>): Use
2289 neon_perm_struct_or_reg_operand instead of
2290 neon_struct_or_register_operand.
2291 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2292 neon_permissive_struct_operand instead of neon_struct_operand.
2293 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2294 neon_vector_mem_operand.
2295 * config/arm/predicates.md (neon_struct_operand): Adjust call to
2296 neon_vector_mem_operand.
2297 (neon_permissive_struct_operand): New.
2298 (neon_struct_or_register_operand): Rename to...
2299 (neon_perm_struct_or_reg_operand): This. Adjust call to
2300 neon_vector_mem_operand.
2302 2013-06-18 Richard Biener <rguenther@suse.de>
2304 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2305 * lto-streamer.h: Include pointer-set.h.
2306 (struct lto_decl_slot): Remove.
2307 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2308 Remove next_index entry.
2309 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2310 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2311 (lto_init_tree_ref_encoder): Adjust.
2312 (lto_destroy_tree_ref_encoder): Likewise.
2313 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2314 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2315 (lto_output_decl_index): Adjust.
2316 (lto_new_out_decl_state): Likewise.
2317 (lto_record_function_out_decl_state): Likewise.
2318 * lto-streamer-out.c (copy_function): Likewise.
2320 2013-06-18 Richard Biener <rguenther@suse.de>
2322 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2323 * cgraphunit.c: Include cfgloop.h.
2324 (init_lowered_empty_function): Initialize the loop tree.
2325 (assemble_thunk): Insert new BBs into loops.
2327 2013-06-18 Richard Biener <rguenther@suse.de>
2329 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2330 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2331 the map from cache entry to cache index optional.
2332 (streamer_tree_cache_replace_tree): Adjust accordingly.
2333 (streamer_tree_cache_append): Likewise.
2334 (streamer_tree_cache_delete): Likewise.
2335 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2336 streamer cache map from cache entry to cache index.
2337 * lto-streamer-out.c (create_output_block): Adjust.
2339 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2341 * config/arm/arm.md (attribute "insn"): Move multiplication and
2342 division attributes to...
2343 (attribute "type"): ... here. Remove mult.
2344 (attribute "mul32"): New attribute.
2345 (attribute "mul64"): Add umaal.
2346 (*arm_mulsi3): Update attributes.
2347 (*arm_mulsi3_v6): Likewise.
2348 (*thumb_mulsi3): Likewise.
2349 (*thumb_mulsi3_v6): Likewise.
2350 (*mulsi3_compare0): Likewise.
2351 (*mulsi3_compare0_v6): Likewise.
2352 (*mulsi_compare0_scratch): Likewise.
2353 (*mulsi_compare0_scratch_v6): Likewise.
2354 (*mulsi3addsi): Likewise.
2355 (*mulsi3addsi_v6): Likewise.
2356 (*mulsi3addsi_compare0): Likewise.
2357 (*mulsi3addsi_compare0_v6): Likewise.
2358 (*mulsi3addsi_compare0_scratch): Likewise.
2359 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2360 (*mulsi3subsi): Likewise.
2361 (*mulsidi3adddi): Likewise.
2362 (*mulsi3addsi_v6): Likewise.
2363 (*mulsidi3adddi_v6): Likewise.
2364 (*mulsidi3_nov6): Likewise.
2365 (*mulsidi3_v6): Likewise.
2366 (*umulsidi3_nov6): Likewise.
2367 (*umulsidi3_v6): Likewise.
2368 (*umulsidi3adddi): Likewise.
2369 (*umulsidi3adddi_v6): Likewise.
2370 (*smulsi3_highpart_nov6): Likewise.
2371 (*smulsi3_highpart_v6): Likewise.
2372 (*umulsi3_highpart_nov6): Likewise.
2373 (*umulsi3_highpart_v6): Likewise.
2374 (mulhisi3): Likewise.
2375 (*mulhisi3tb): Likewise.
2376 (*mulhisi3bt): Likewise.
2377 (*mulhisi3tt): Likewise.
2378 (maddhisi4): Likewise.
2379 (*maddhisi4tb): Likewise.
2380 (*maddhisi4tt): Likewise.
2381 (maddhidi4): Likewise.
2382 (*maddhidi4tb): Likewise.
2383 (*maddhidi4tt): Likewise.
2385 (udivsi3): Likewise.
2386 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2387 (thumb2_mulsi_short_compare0): Likewise.
2388 (thumb2_mulsi_short_compare0_scratch): Likewise.
2389 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2390 (1020mult2): Likewise.
2391 (1020mult3): Likewise.
2392 (1020mult4): Likewise.
2393 (1020mult5): Likewise.
2394 (1020mult6): Likewise.
2395 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2397 (cortex_a15_mult64): Likewise.
2398 (cortex_a15_sdiv): Likewise.
2399 (cortex_a15_udiv): Likewise.
2400 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2406 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2407 (pj4_ir_div): Likewise.
2408 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2409 (11_mult2): Likewise.
2410 (11_mult3): Likewise.
2411 (11_mult4): Likewise.
2412 (11_mult5): Likewise.
2413 (11_mult6): Likewise.
2414 (11_mult7): Likewise.
2415 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2416 (cortex_a8_mla): Likewise.
2417 (cortex_a8_mull): Likewise.
2418 (cortex_a8_smulwy): Likewise.
2419 (cortex_a8_smlald): Likewise.
2420 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2421 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2422 (cortex_r4_mul_3): Likewise.
2423 (cortex_r4_mla_4): Likewise.
2424 (cortex_r4_mla_3): Likewise.
2425 (cortex_r4_smlald): Likewise.
2426 (cortex_r4_mull): Likewise.
2427 (cortex_r4_sdiv): Likewise.
2428 (cortex_r4_udiv): Likewise.
2429 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2430 (cortex_a7_idiv): Likewise.
2431 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2432 (9_mult2): Likewise.
2433 (9_mult3): Likewise.
2434 (9_mult4): Likewise.
2435 (9_mult5): Likewise.
2436 (9_mult6): Likewise.
2437 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2438 (cortex_a53_sdiv): Likewise.
2439 (cortex_a53_udiv): Likewise.
2440 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2441 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2442 (mp626_mult2): Likewise.
2443 (mp626_mult3): Likewise.
2444 (mp626_mult4): Likewise.
2445 * config/arm/fa526.md (526_mult1): Update attribute change.
2446 (526_mult2): Likewise.
2447 * config/arm/arm-generic.md (mult): Update attribute change.
2448 (mult_ldsched_strongarm): Likewise.
2449 (mult_ldsched): Likewise.
2450 (multi_cycle): Likewise.
2451 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2452 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2453 (606te_mult2): Likewise.
2454 (606te_mult3): Likewise.
2455 (606te_mult4): Likewise.
2456 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2457 (cortex_a9_mac16): Likewise.
2458 (cortex_a9_multiply): Likewise.
2459 (cortex_a9_mac): Likewise.
2460 (cortex_a9_multiply_long): Likewise.
2461 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2462 (626te_mult2): Likewise.
2463 (626te_mult3): Likewise.
2464 (626te_mult4): Likewise.
2466 2013-06-18 Richard Biener <rguenther@suse.de>
2469 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2471 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2474 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2475 with next_active_insn.
2477 2013-06-18 Alan Modra <amodra@gmail.com>
2479 * config/rs6000/rs6000.h (enum data_align): New.
2480 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2481 (DATA_ABI_ALIGNMENT): Define.
2482 (CONSTANT_ALIGNMENT): Correct comment.
2483 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2484 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2486 2013-06-17 David Malcolm <dmalcolm@redhat.com>
2488 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2489 ATTRIBUTE_UNUSED marking.
2491 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2493 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2494 alternative and update.
2495 (aarch64_dup_lanedi): Delete.
2496 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2497 * config/aarch64/aarch64-simd-builtins.def: Update.
2499 2013-06-17 Richard Biener <rguenther@suse.de>
2501 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2502 (lto_input_scc): Declare.
2503 (lto_input_tree_1): Likewise.
2504 (struct lto_stats_d): Add num_tree_bodies_output and
2505 num_pickle_refs_output.
2506 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2507 (lto_read_tree_1): Split out from ...
2508 (lto_read_tree): ... this.
2509 (lto_input_scc): New function.
2510 (lto_input_tree_1): Split out from ...
2511 (lto_input_tree): ... this. Handle LTO_tree_scc.
2512 (lto_data_in_create): Create the streamer cache without hashes.
2513 * lto-streamer-out.c (create_output_block): Create the streamer
2514 cache with hashes when not doing WPA.
2515 (lto_write_tree_1): Split out from ...
2516 (lto_write_tree): ... this.
2517 (get_symbol_initial_value): New function.
2518 (lto_output_tree_1): Split out from ...
2519 (lto_output_tree): ... this. Write trees as series of SCCs
2520 using a DFS walk via DFS_write_tree.
2521 (struct sccs, struct scc_entry): New types.
2522 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2523 (DFS_write_tree_body): New function.
2524 (DFS_write_tree): Likewise.
2525 (hash_tree): Likewise.
2526 (scc_entry_compare): Likewise.
2527 (hash_scc): Likewise.
2528 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2529 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2530 TREE_CHAIN as regular reference.
2531 (streamer_read_integer_cst): Remove.
2532 (streamer_get_pickled_tree): Adjust.
2533 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2534 of DECL_EXTERNALs in BLOCK_VARS for now.
2535 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2537 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2538 Add hash value argument and record that if hashes are recorded
2540 (streamer_tree_cache_insert_1): Adjust.
2541 (streamer_tree_cache_insert): Likewise.
2542 (streamer_tree_cache_insert_at): Rename to ...
2543 (streamer_tree_cache_replace_tree): ... this and adjust.
2544 (streamer_tree_cache_append): Adjust.
2545 (record_common_node): Likewise.
2546 (streamer_tree_cache_create): Add argument whether to
2547 record hash values together with trees.
2548 (streamer_tree_cache_delete): Adjust.
2549 * tree-streamer.h (struct streamer_tree_cache_d): Add
2551 (streamer_read_integer_cst): Remove.
2552 (streamer_tree_cache_insert): Adjust.
2553 (streamer_tree_cache_append): Likewise.
2554 (streamer_tree_cache_insert_at): Rename to ...
2555 (streamer_tree_cache_replace_tree): ... this and adjust.
2556 (streamer_tree_cache_create): Add argument whether to record hashes.
2557 (streamer_tree_cache_get): Rename to ...
2558 (streamer_tree_cache_get_tree): ... this.
2559 (streamer_tree_cache_get_hash): New function.
2560 * tree.c (cache_integer_cst): New function.
2561 * tree.h (cache_integer_cst): Declare.
2562 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2563 * lto-symtab.c (lto_varpool_replace_node): Only release
2564 DECL_INITIAL of non-prevailing decls.
2565 * varpool.c (varpool_remove_initializer): Do not release
2566 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2568 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2570 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2571 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2572 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2573 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2574 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2575 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2576 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2577 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2578 instead of TARGET_64BIT.
2579 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2580 Require ISA_HAS_<D>DIV.
2582 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2584 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2585 (mips*-*-linux*): Move default with_llsc setting to where other
2587 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2589 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2590 Likewise. Remove default with_tune setting. Move default float
2591 setting to its own block. Handle with_llsc in the same block as above.
2593 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2595 PR rtl-optimization/57425
2596 PR rtl-optimization/57569
2597 * alias.c (write_dependence_p): Add new parameters mem_mode,
2598 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2599 Changed all callers.
2600 (canon_anti_dependence): New function.
2601 * cse.c (check_dependence): Use canon_anti_dependence.
2602 * cselib.c (cselib_invalidate_mem): Likewise.
2603 * rtl.h (canon_anti_dependence): Declare.
2605 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2607 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
2608 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
2609 ".set mips3" for 64-bit targets.
2611 2013-06-15 Dehao Chen <dehao@google.com>
2613 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
2614 * gimple-low.c (gimple_check_call_matching_types): Likewise.
2615 (gimple_check_call_args): Likewise.
2616 * value-prof.c (check_ic_target): Likewise.
2617 * ipa-inline.c (early_inliner): Likewise.
2618 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
2619 * cgraph.c (cgraph_create_edge_1): Likewise.
2620 (cgraph_make_edge_direct): Likewise.
2622 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2625 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
2626 rs6000_output_move_128bit to handle emitting quad memory
2627 operations. Set attribute length to 8 bytes.
2629 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
2631 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
2633 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
2634 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
2635 (aarch64_<su>mlsl<mode>): Likewise.
2637 2013-06-14 Mike Stump <mikestump@comcast.net>
2639 * Makefile.in (TARGET_H): Add insn-codes.h.
2641 2013-06-14 Alan Modra <amodra@gmail.com>
2645 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
2646 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
2647 bitfield expansion when EXPAND_MEMORY.
2648 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
2650 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2652 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2653 test for clearing quad memory on 32-bit later.
2655 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2657 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
2658 (fold_negate_expr): Likewise.
2659 (fold_real_zero_addition_p): Handle vectors.
2660 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
2662 2013-06-14 Alan Modra <amodra@gmail.com>
2664 * varasm.c (force_const_mem): Revert 2013-06-07 change.
2666 2013-06-13 Jan Hubicka <jh@suse.cz>
2668 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2669 Local comdats are not externally visible.
2670 * symtab.c (dump_symtab_base): Dump externally visible.
2671 (verify_symtab_base): Verify back links in the symtab hash.
2673 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2675 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
2676 CONVERT_EXPR as equal nodes.
2678 2013-06-13 Bin Cheng <bin.cheng@arm.com>
2680 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
2682 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
2684 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
2685 Generalize to complex and vector.
2686 * tree.c (build_all_ones_cst): New function.
2687 * tree.h (build_all_ones_cst): Declare it.
2689 2013-06-13 Alan Modra <amodra@gmail.com>
2691 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
2692 * config/rs6000/rs6000.md (signbittf2): New insn.
2693 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
2694 (abstf2_internal, cmptf_internal2): Likewise.
2695 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
2697 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2698 Pat Haugen <pthaugen@us.ibm.com>
2699 Peter Bergner <bergner@vnet.ibm.com>
2701 * config/rs6000/rs6000.c (emit_load_locked): Add support for
2702 power8 byte, half-word, and quad-word atomic instructions.
2703 (emit_store_conditional): Likewise.
2704 (rs6000_expand_atomic_compare_and_swap): Likewise.
2705 (rs6000_expand_atomic_op): Likewise.
2707 * config/rs6000/sync.md (larx): Add new modes for power8.
2709 (AINT): New mode iterator to include TImode as well as normal
2710 integer modes on power8.
2711 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
2712 that VSX registers are not considered. Use AINT mode iterator
2713 instead of INT1 to allow inclusion of quad word atomic operations
2715 (load_locked<mode>): Likewise.
2716 (store_conditional<mode>): Likewise.
2717 (atomic_compare_and_swap<mode>): Likewise.
2718 (atomic_exchange<mode>): Likewise.
2719 (atomic_nand<mode>): Likewise.
2720 (atomic_fetch_<fetchop_name><mode>): Likewise.
2721 (atomic_nand_fetch<mode>): Likewise.
2722 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
2724 (ATOMIC): On power8, add QImode, HImode modes.
2725 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
2726 modes that promote to SImode.
2727 (load_lockedti): Convert TImode arguments to PTImode, so that we
2728 get a guaranteed even/odd register pair.
2729 (load_lockedpti): Likewise.
2730 (store_conditionalti): Likewise.
2731 (store_conditionalpti): Likewise.
2733 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
2734 atomic load/store instructions.
2737 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2739 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
2741 (insn_count): New attribute, with most cases extracted from...
2742 (length): ...here. Redefine most cases in terms of insn_count.
2743 (single_insn): Delete.
2744 (can_delay): Use insn_count to check for single instructions.
2745 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
2746 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
2747 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
2748 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
2749 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
2750 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
2751 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
2752 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
2753 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
2754 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
2755 rather than "length".
2756 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
2757 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
2758 Use "insn_count" rather than "length".
2759 * config/mips/mips-dsp.md
2760 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
2761 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
2764 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
2766 PR tree-optimization/57361
2767 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
2769 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
2771 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
2773 (aarch64_simd_combine<mode>): New instruction expansion.
2774 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
2776 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
2777 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
2779 2013-06-12 Jan Hubicka <jh@suse.cz>
2781 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
2782 decl has when in streaming stage.
2783 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
2784 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
2786 2013-06-12 Roland Stigge <stigge@antcom.de>
2789 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
2791 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2793 PR tree-optimization/57537
2794 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
2795 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
2797 2013-06-12 Richard Biener <rguenther@suse.de>
2799 * data-streamer.h (streamer_write_char_stream): CSE
2800 obs->current_pointer.
2801 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
2802 streamer_write_char_stream manually and optimize the resulting loop.
2803 (streamer_write_hwi_stream): Likewise.
2805 2013-06-12 Jan Hubicka <jh@suse.cz>
2807 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
2808 * cgraph.h (varpool_create_empty_node): Declare.
2809 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
2811 * symtab.c (symtab_unregister_node): Be lax about missin entries
2813 (symtab_get_node): Update comment.
2814 * varpool.c (varpool_create_empty_node): Break out from ...
2815 (varpool_node_for_decl): ... here.
2816 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
2818 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
2820 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
2821 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
2822 part. Use straight-line flow at the end.
2823 <COMPONENT_REF>: Remove superfluous else.
2824 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
2826 2013-06-12 Jakub Jelinek <jakub@redhat.com>
2829 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
2830 target hook even for !TREE_PUBLIC decls. If no resolution info
2831 is available, return false for common and external decls.
2833 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2835 * config/rl78/constraints.md (U): New constraint.
2836 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
2839 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2842 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
2843 to allow returning address to AT_PLATFORM name.
2845 2013-06-11 Jan Hubicka <jh@suse.cz>
2847 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
2848 * cgraph.h (symtab_node_base): Add weakref flag.
2849 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
2850 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
2851 (output_weakrefs): Use weakref flag.
2852 * fold-const.c (simple_operand_p): Handle WEAK.
2853 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
2854 * ipa.c (varpool_externally_visible_p): Drop weakref.
2855 (function_and_variable_visibility): Update comment; fix weakref
2856 sanity checks; do not clear DECL_WEAK on them.
2857 * lto-cgraph.c (lto_output_node): update.
2858 (lto_output_varpool_node): Update.
2859 (input_overwrite_node): Update.
2860 (input_node): Update.
2861 (input_varpool_node): Update.
2862 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
2863 (lto_symtab_merge_symbols): Add sanity check.
2864 (lto_symtab_prevailing_decl): Do not special case weakrefs.
2865 * passes.c (rest_of_decl_compilation): Set static flag, too.
2866 * symtab.c (dump_symtab_base): Dump weakref.
2867 (verify_symtab_base): Sanity check weakrefs.
2868 (symtab_make_decl_local): Remove duplicated code.
2869 (symtab_alias_ultimate_target): Simplify.
2870 * varpool.c (varpool_create_variable_alias): Set weakref flag.
2872 2013-06-11 DJ Delorie <dj@redhat.com>
2874 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
2875 (rl78_unwind_word_mode): New.
2877 2013-06-11 David Malcolm <dmalcolm@redhat.com>
2879 * final.c (debug_prefix_maps): Make static.
2881 2013-06-11 David Malcolm <dmalcolm@redhat.com>
2883 * function.c (initial_trampoline): Remove stray copy.
2885 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
2887 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
2889 2013-06-11 Martin Jambor <mjambor@suse.cz>
2891 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
2892 within bounds at the beginning of the function.
2894 2013-06-11 Alan Modra <amodra@gmail.com>
2896 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
2898 (get_named_section): Don't NULL !DECL_P decl.
2900 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
2902 * doc/invoke.texi (core-avx2): Document.
2904 (atom): Updated with MOVBE.
2906 2013-06-11 Richard Biener <rguenther@suse.de>
2908 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
2910 2013-06-11 Anton Blanchard <anton@samba.org>
2912 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2913 correct shift value in little-endian mode.
2915 2013-06-11 Jakub Jelinek <jakub@redhat.com>
2918 * varasm.c (get_variable_align): Move #endif to the right place.
2920 2013-06-10 Cary Coutant <ccoutant@google.com>
2922 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2923 for hash so that hash table traversal order is deterministic.
2925 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2926 Pat Haugen <pthaugen@us.ibm.com>
2927 Peter Bergner <bergner@vnet.ibm.com>
2929 * config/rs6000/vector.md (GPR move splitter): Do not split moves
2930 of vectors in GPRS if they are direct moves or quad word load or
2933 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2935 (direct_move_p): Likewise.
2936 (quad_load_store_p): Likewise.
2938 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2939 classes into bins based on the physical register type.
2940 (reg_class_to_reg_type): Likewise.
2941 (IS_STD_REG_TYPE): Likewise.
2942 (IS_FP_VECT_REG_TYPE): Likewise.
2943 (reload_fpr_gpr): Arrays to determine what insn to use if we can
2944 use direct move instructions.
2945 (reload_gpr_vsx): Likewise.
2946 (reload_vsx_gpr): Likewise.
2947 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2948 information that is a simplification of register classes. Also
2949 precalculate direct move reload helpers.
2950 (direct_move_p): New function to return true if the operation can
2951 be done as a direct move instruciton.
2952 (quad_load_store_p): New function to return true if the operation
2953 is a quad memory operation.
2954 (rs6000_legitimize_address): If quad memory, only allow register
2955 indirect for TImode addresses.
2956 (rs6000_legitimate_address_p): Likewise.
2957 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2958 (rs6000_reload_register_type): Likewise.
2959 (register_to_reg_type): Return register type.
2960 (rs6000_secondary_reload_simple_move): New helper function for
2961 secondary reload and secondary memory needed to identify anything
2962 that is a simple move, and does not need reloading.
2963 (rs6000_secondary_reload_direct_move): New helper function for
2964 secondary reload to identify cases that can be done with several
2965 instructions via the direct move instructions.
2966 (rs6000_secondary_reload_move): New helper function for secondary
2967 reload to identify moves between register types that can be done.
2968 (rs6000_secondary_reload): Add support for quad memory operations
2969 and for direct move.
2970 (rs6000_secondary_memory_needed): Likewise.
2971 (rs6000_debug_secondary_memory_needed): Change argument names.
2972 (rs6000_output_move_128bit): New function to return the move to
2973 use for 128-bit moves, including knowing about the various
2974 limitations of quad memory operations.
2976 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2977 memory operations. call rs6000_output_move_128bit for the actual
2978 instruciton(s) to generate.
2979 (vsx_movti_64bit): Likewise.
2981 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2982 (UNSPEC_P8V_MTVSRWZ): Likewise.
2983 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2984 (UNSPEC_P8V_MTVSRD): Likewise.
2985 (UNSPEC_P8V_XXPERMDI): Likewise.
2986 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2987 (UNSPEC_FUSION_GPR): Likewise.
2988 (FMOVE128_GPR): New iterator for direct move.
2989 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
2992 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2993 loads and direct move instructions.
2994 (zero_extendsidi2_lfiwzx): Likewise.
2995 (extendsidi2_lfiwax): Likewise.
2996 (extendsidi2_nocell): Likewise.
2997 (floatsi<mode>2_lfiwax): Likewise.
2999 (floatunssi<mode>2_lfiwzx): Likewise.
3001 (fix_trunc<mode>_stfiwx): Likewise.
3002 (fixuns_trunc<mode>_stfiwx): Likewise.
3003 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
3004 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
3005 (parity<mode>2_cmpb): Set length/type attr.
3006 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
3007 for 'mr.' to fast_compare.
3008 (bpermd_<mode>): Change type attr to popcnt.
3009 (p8_fmrgow_<mode>): New insns for power8 direct move support.
3010 (p8_mtvsrwz_1): Likewise.
3011 (p8_mtvsrwz_2): Likewise.
3012 (reload_fpr_from_gpr<mode>): Likewise.
3013 (p8_mtvsrd_1): Likewise.
3014 (p8_mtvsrd_2): Likewise.
3015 (p8_xxpermdi_<mode>): Likewise.
3016 (reload_vsx_from_gpr<mode>): Likewise.
3017 (reload_vsx_from_gprsf): Likewise.
3018 (p8_mfvsrd_3_<mode>): LIkewise.
3019 (reload_gpr_from_vsx<mode>): Likewise.
3020 (reload_gpr_from_vsxsf): Likewise.
3021 (p8_mfvsrd_4_disf): Likewise.
3022 (multi-word GPR splits): Do not split direct moves or quad memory
3025 2013-06-10 David Malcolm <dmalcolm@redhat.com>
3027 * tree-into-ssa.c (interesting_blocks): Make static.
3029 2013-06-10 Jakub Jelinek <jakub@redhat.com>
3032 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
3033 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
3034 Use DATA_ABI_ALIGNMENT for that case instead if defined.
3035 (get_variable_align): New function.
3036 (get_variable_section, emit_bss, emit_common,
3037 assemble_variable_contents, place_block_symbol): Use
3038 get_variable_align instead of DECL_ALIGN.
3039 (assemble_noswitch_variable): Add align argument, use it
3040 instead of DECL_ALIGN.
3041 (assemble_variable): Adjust caller. Use get_variable_align
3042 instead of DECL_ALIGN.
3043 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
3045 (DATA_ABI_ALIGNMENT): Define.
3046 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
3047 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
3048 opt is false, only return the psABI mandated alignment increase.
3049 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
3050 (DATA_ABI_ALIGNMENT): ... this.
3051 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
3052 (DATA_ABI_ALIGNMENT): ... this.
3053 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
3054 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
3055 (DATA_ABI_ALIGNMENT): ... this.
3056 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
3057 * doc/tm.texi: Regenerated.
3059 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
3061 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
3062 cmp_code to construct REG_EQUAL note.
3064 2013-06-09 Jakub Jelinek <jakub@redhat.com>
3067 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
3068 that operands[2] doesn't overlap with operands[0].
3070 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
3071 Jan Hubicka <jh@suse.cz>
3073 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3074 hack to mark symbols as used.
3076 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
3078 PR rtl-optimization/57559
3079 * lra-constraints.c (process_alt_operands): Don't discourage
3080 memory with known offset for offsetable memory constraint.
3081 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3083 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
3085 * varasm.c (struct oc_local_state): Reorder fields.
3086 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3087 and adjust accordingly.
3088 (output_constructor): Reorder initialization code and adjust call to
3089 output_constructor_bitfield.
3091 2013-06-07 Jan Hubicka <jh@suse.cz>
3093 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3095 2013-06-07 David Malcolm <dmalcolm@redhat.com>
3097 * tree-object-size.c (unknown): Make const.
3099 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3101 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3102 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3103 for last alternative in the cpu_facility attribute.
3105 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3108 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3109 (xordi3): Change operand 2 constraint to arm_xordi_operand.
3110 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3111 * config/arm/constraints.md (Dg): New constraint.
3112 * config/arm/neon.md (xordi3_neon): Remove.
3113 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3114 * config/arm/predicates.md (arm_xordi_operand): New predicate.
3116 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3118 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3119 Clean up alternatives.
3121 2013-06-07 Alan Modra <amodra@gmail.com>
3123 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3126 2013-06-07 Alan Modra <amodra@gmail.com>
3128 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3130 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3132 * config/arm/constraints.md (Df): New constraint.
3133 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3134 Correct length attribute for last two alternatives.
3136 2013-06-07 Alan Modra <amodra@gmail.com>
3138 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3139 override user -mfp-in-toc.
3140 (offsettable_ok_by_alignment): Consider just the current access
3141 rather than the whole object, unless BLKmode. Handle
3142 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3143 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3144 for -mcmodel=medium.
3145 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3146 override user -mfp-in-toc or -msum-in-toc. Default to
3147 -mno-fp-in-toc for -mcmodel=medium.
3149 2013-06-06 DJ Delorie <dj@redhat.com>
3151 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3152 TARGET_VALID_POINTER_MODE.
3154 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3155 Pat Haugen <pthaugen@us.ibm.com>
3156 Peter Bergner <bergner@vnet.ibm.com>
3158 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3159 Document new power8 builtins.
3161 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3162 condition code register, to allow 128-bit logical operations to be
3163 done in the VSX or GPR registers.
3164 (nor<mode>3): Use the canonical form for nor.
3165 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3166 vclz*, and vpopcnt* vector instructions.
3167 (nand<mode>3): Likewise.
3168 (orc<mode>3): Likewise.
3169 (clz<mode>2): LIkewise.
3170 (popcount<mode>2): Likewise.
3172 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3173 that only the GPRs are recognized.
3175 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3176 support for new power8 builtins.
3178 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3180 (xscvdpspn): Likewise.
3186 (vpopcnt): Likewise.
3187 (vpopcntb): Likewise.
3188 (vpopcnth): Likewise.
3189 (vpopcntw): Likewise.
3190 (vpopcntd): Likewise.
3195 (eqv_v16qi3): Likewise.
3196 (eqv_v8hi3): Likewise.
3197 (eqv_v4si3): Likewise.
3198 (eqv_v2di3): Likewise.
3199 (eqv_v4sf3): Likewise.
3200 (eqv_v2df3): Likewise.
3202 (nand_v16qi3): Likewise.
3203 (nand_v8hi3): Likewise.
3204 (nand_v4si3): Likewise.
3205 (nand_v2di3): Likewise.
3206 (nand_v4sf3): Likewise.
3207 (nand_v2df3): Likewise.
3209 (orc_v16qi3): Likewise.
3210 (orc_v8hi3): Likewise.
3211 (orc_v4si3): Likewise.
3212 (orc_v2di3): Likewise.
3213 (orc_v4sf3): Likewise.
3214 (orc_v2df3): Likewise.
3216 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3217 allow power8 quad mode in 64-bit.
3218 (rs6000_builtin_vectorized_function): Add support to vectorize
3219 ISA 2.07 count leading zeros, population count builtins.
3220 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3221 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3222 (builtin_function_type): Add vgbbd builtin function which takes an
3224 (altivec_expand_vec_perm_const): Add support for new power8 merge
3227 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3228 that does not include TImdoe for use with 32-bit.
3229 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3231 (UNSPEC_VSX_CVDPSPN): Likewise.
3232 (vsx_xscvdpspn): Likewise.
3233 (vsx_xscvspdpn): Likewise.
3234 (vsx_xscvdpspn_scalar): Likewise.
3235 (vsx_xscvspdpn_directmove): Likewise.
3236 (vsx_and<mode>3): Split logical operations into 32-bit and
3237 64-bit. Add support to do logical operations on TImode as well as
3238 VSX vector types. Allow logical operations to be done in either
3239 VSX registers or in general purpose registers in 64-bit mode. Add
3240 splitters if GPRs were used. For AND, add clobber of CCmode to
3241 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
3243 (vsx_and<mode>3_32bit): Likewise.
3244 (vsx_and<mode>3_64bit): Likewise.
3245 (vsx_ior<mode>3): Likewise.
3246 (vsx_ior<mode>3_32bit): Likewise.
3247 (vsx_ior<mode>3_64bit): Likewise.
3248 (vsx_xor<mode>3): Likewise.
3249 (vsx_xor<mode>3_32bit): Likewise.
3250 (vsx_xor<mode>3_64bit): Likewise.
3251 (vsx_one_cmpl<mode>2): Likewise.
3252 (vsx_one_cmpl<mode>2_32bit): Likewise.
3253 (vsx_one_cmpl<mode>2_64bit): Likewise.
3254 (vsx_nor<mode>3): Likewise.
3255 (vsx_nor<mode>3_32bit): Likewise.
3256 (vsx_nor<mode>3_64bit): Likewise.
3257 (vsx_andc<mode>3): Likewise.
3258 (vsx_andc<mode>3_32bit): Likewise.
3259 (vsx_andc<mode>3_64bit): Likewise.
3260 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3261 and xxlorc instructions.
3262 (vsx_eqv<mode>3_64bit): Likewise.
3263 (vsx_nand<mode>3_32bit): Likewise.
3264 (vsx_nand<mode>3_64bit): Likewise.
3265 (vsx_orc<mode>3_32bit): Likewise.
3266 (vsx_orc<mode>3_64bit): Likewise.
3268 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3270 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3272 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3273 (p8_vmrgow): Likewise.
3274 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3275 GPRs to be split under VSX.
3276 (p8v_clz<mode>2): Add power8 count leading zero support.
3277 (p8v_popcount<mode>2): Add power8 population count support.
3278 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3281 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3284 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3286 (vec_nand): Likewise.
3287 (vec_vclz): Likewise.
3288 (vec_vclzb): Likewise.
3289 (vec_vclzd): Likewise.
3290 (vec_vclzh): Likewise.
3291 (vec_vclzw): Likewise.
3292 (vec_vgbbd): Likewise.
3293 (vec_vmrgew): Likewise.
3294 (vec_vmrgow): Likewise.
3295 (vec_vpopcnt): Likewise.
3296 (vec_vpopcntb): Likewise.
3297 (vec_vpopcntd): Likewise.
3298 (vec_vpopcnth): Likewise.
3299 (vec_vpopcntw): Likewise.
3301 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3303 PR rtl-optimization/57468
3304 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3307 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3309 PR rtl-optimization/57459
3310 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3311 type when setting live regs.
3313 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3315 * config/s390/s390.opt (mlra): New option.
3316 * config/s390/s390.c (s390_decompose_address): Check displacement
3317 for all registers for LRA.
3318 (s390_secondary_reload): Don't used secondary reloads for LRA.
3319 (s390_lra_p): New function.
3320 (TARGET_LRA_P): Define.
3321 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3322 of attribute cpu_facility to zarch for the last alternative.
3323 (*cmpmem_short): Ditto.
3325 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
3327 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3328 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
3329 (arm_expand_prologue): Likewise.
3331 2013-06-06 Teresa Johnson <tejohnson@google.com>
3334 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3335 as this is now done by redirect_edge_and_branch_force.
3336 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3337 barriers, and fix interaction with splitting.
3338 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3339 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3340 reflect changes made in the routine.
3341 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3342 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3343 since this is called in cfglayout mode, and replace partition fixup
3344 with assert as that is now done by force_nonfallthru_and_redirect.
3345 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3346 already be marked with region crossing note.
3347 (insert_section_boundary_note): Make non-static, gate on flag
3348 has_bb_partition, rewrite to also check for multiple partitions.
3349 (rest_of_handle_reorder_blocks): Remove call to
3350 insert_section_boundary_note, now done later during free_cfg.
3351 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3352 * bb-reorder.h (insert_section_boundary_note): Declare.
3353 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3354 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3355 invoke insert_section_boundary_note.
3356 (try_redirect_by_replacing_jump): Remove unnecessary
3357 check for region crossing note.
3358 (fixup_partition_crossing): New function.
3359 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3360 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3361 in non-cfglayout mode.
3362 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3363 remove old code that tried to do this. Emit barrier correctly
3364 when we are in cfglayout mode.
3365 (last_bb_in_partition): New function.
3366 (rtl_split_edge): Correctly fixup partition boundaries.
3367 (commit_one_edge_insertion): Remove old code that tried to
3368 fixup region crossing edge since this is now handled in
3369 split_block, and set up insertion point correctly since
3370 block may now end in a jump.
3371 (verify_hot_cold_block_grouping): Guard against checking when not in
3372 linearized RTL mode.
3373 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3375 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3376 rtl_verify_flow_info, so not called in cfglayout mode.
3377 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3378 (fixup_reorder_chain): Remove old code that attempted to fixup region
3379 crossing note as this is now handled in force_nonfallthru_and_redirect.
3380 (duplicate_insn_chain): Don't duplicate switch section notes.
3381 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3383 * basic-block.h (emit_barrier_after_bb): Declare.
3385 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3387 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3388 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3389 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3391 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3393 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3395 * config/arm/ldmstm.md: Regenerate.
3397 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3399 * config/arm/sync.md (atomic_loaddi_1):
3400 Disable predication for arm_restrict_it.
3401 (arm_load_exclusive<mode>): Likewise.
3402 (arm_load_exclusivesi): Likewise.
3403 (arm_load_exclusivedi): Likewise.
3404 (arm_load_acquire_exclusive<mode>): Likewise.
3405 (arm_load_acquire_exclusivesi): Likewise.
3406 (arm_load_acquire_exclusivedi): Likewise.
3407 (arm_store_exclusive<mode>): Likewise.
3408 (arm_store_exclusive<mode>): Likewise.
3409 (arm_store_release_exclusivedi): Likewise.
3410 (arm_store_release_exclusive<mode>): Likewise.
3412 2013-06-06 Richard Biener <rguenther@suse.de>
3414 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3416 (lto_tag_is_tree_code_p): Adjust.
3417 (lto_tag_is_gimple_code_p): Likewise.
3418 (lto_gimple_code_to_tag): Likewise.
3419 (lto_tag_to_gimple_code): Likewise.
3420 (lto_tree_code_to_tag): Likewise.
3421 (lto_tag_to_tree_code): Likewise.
3422 * data-streamer.h (streamer_write_hwi_in_range): Use
3423 uhwi streaming to stream the normalized range.
3424 (streamer_read_hwi_in_range): Likewise.
3426 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3428 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3429 (predicable_short_it): Likewise.
3430 (predicated): Likewise.
3431 (enabled): Handle above.
3432 (define_cond_exec): Set predicated attribute to yes.
3434 2013-06-05 Mike Stump <mikestump@comcast.net>
3436 * gdbinit.in (__FUNCTION__): Add.
3438 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
3440 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3441 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3443 2013-06-05 Jan Hubicka <jh@suse.cz>
3445 * varasm.c (mark_decl_referenced): Revert the removal until targets
3448 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
3450 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3451 instead of mark_decl_referenced.
3453 2013-06-05 Jan Hubicka <jh@suse.cz>
3455 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3456 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3457 and symtab_used_from_object_file_p.
3458 (cgraph_make_node_local_1): Clear forced_by_abi.
3459 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3460 * cgraph.h (symtab_node_base): Add forced_by_abi.
3461 (decide_is_variable_needed): Remove.
3462 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3463 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3464 (decide_is_symbol_needed): ... this one; handle symbols in general;
3465 always analyze virtuals; honnor forced_by_abi.
3466 (cgraph_finalize_function): Update.
3467 (varpool_finalize_decl): Update.
3468 (symbol_defined_and_needed): Remove.
3469 (analyze_functions): Update.
3470 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3471 output_refs, input_overwrite_node): Handle forced_by_abi.
3472 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3473 (address_taken_from_non_vtable_p): ... this one.
3474 (comdat_can_be_unshared_p_1): New function.
3475 (cgraph_comdat_can_be_unshared_p): Rename to ...
3476 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3477 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3478 (function_and_variable_visibility): Clear forced_by_abi as needed.
3479 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3480 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
3481 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3482 * varpool.c (decide_is_variable_needed): Remove.
3484 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3486 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3487 (arm_option_override): Override arm_restrict_it where appropriate.
3488 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3489 * config/arm/arm.opt (mrestrict-it): New command-line option.
3490 * doc/invoke.texi: Document -mrestrict-it.
3492 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3494 * tsan.c (tsan_atomic_table): Make const.
3496 2013-06-05 Richard Biener <rguenther@suse.de>
3498 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3499 index associated with the tree we are supposed to replace.
3500 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3501 TREE_ASM_WRITTEN as zero for everything but SSA names.
3503 2013-06-05 David Malcolm <dmalcolm@redhat.com>
3505 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3507 2013-06-04 Jan Hubicka <jh@suse.cz>
3509 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3510 (input_node, input_varpool_node): Handle correctly external same
3512 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3513 nodes at ltrans stage.
3515 2013-06-04 Jan Hubicka <jh@suse.cz>
3517 * ipa-inline.c (update_caller_keys): Fix availability test.
3518 (update_callee_keys): Likewise.
3519 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3520 to follow ELF standard.
3522 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3524 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3525 (mips64r5900el-*-elf*): New configurations.
3526 * config/mips/mips-cpus.def (r5900): New processor.
3527 * config/mips/mips-tables.opt: Regenerate.
3528 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3529 (mips_issue_rate): Handle PROCESSOR_R5900.
3530 (mips_reorg_process_insns): Force reorder mode for the R5900.
3531 * config/mips/mips.h (TARGET_MIPS5900): Define.
3532 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3534 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3536 * config/mips/mips.md (processor): Add r5900.
3537 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3539 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3541 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3542 into function to generate MOVI instruction.
3543 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
3544 (aarch64_preferred_simd_mode): Turn into wrapper.
3545 (aarch64_output_scalar_simd_mov_immediate): New function.
3546 * config/aarch64/aarch64-protos.h: Add prototype for above.
3548 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3550 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3551 element_char member.
3552 (sizetochar): Return signed char.
3553 (aarch64_simd_valid_immediate): Remove elchar and other
3554 unnecessary variables.
3555 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3556 Calculate element_char as required.
3557 * config/aarch64/aarch64-protos.h: Update and move prototype
3558 for aarch64_output_simd_mov_immediate.
3559 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3562 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3564 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3565 information completed by aarch64_simd_valid_immediate.
3566 (aarch64_legitimate_constant_p): Update arguments.
3567 (aarch64_simd_valid_immediate): Work with struct rather than many
3569 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3570 (aarch64_simd_make_constant): Update arguments.
3571 (aarch64_output_simd_mov_immediate): Work with struct rather than
3572 many pointers. Output immediate directly rather than as operand.
3573 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3575 * config/aarch64/constraints.md (Dn): Update arguments.
3577 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3579 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3581 (aarch64_simd_immediate_valid_for_move): Remove.
3582 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3583 (aarch64_simd_make_constant): Update call.
3584 (aarch64_output_simd_mov_immediate): Update call.
3585 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3587 * config/aarch64/constraints.md (Dn): Update call.
3589 2013-06-04 Ian Bolton <ian.bolton@arm.com>
3591 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3592 return type to bool for prototype.
3593 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3594 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3595 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3597 2013-06-04 Catherine Moore <clm@codesourcery.com>
3599 * config/mips/mips.opt (meva): New.
3600 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
3601 (ASM_SPEC): Handle -meva.
3602 * doc/invoke.texi (meva): Document.
3604 2013-06-04 Alan Modra <amodra@gmail.com>
3606 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
3609 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3611 * rtl.def: Add extra fourth optional field to define_cond_exec.
3612 * gensupport.c (process_one_cond_exec): Process attributes from
3614 * doc/md.texi: Document fourth field in define_cond_exec.
3616 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
3618 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
3619 out the processing order as in store_bit_field_1.
3621 2013-06-04 Jan Hubicka <jh@suse.cz>
3624 * cgraphunit.c (cgraph_process_same_body_aliases): Create
3625 non-VAR_DECL node if it does not exist yet.
3627 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3629 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
3630 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
3631 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
3632 target_cpu_default setting.
3634 2013-06-03 Teresa Johnson <tejohnson@google.com>
3636 * dumpfile.c (opt_info_switch_p): Change -fopt-info
3637 default to -fopt-info=optimized instead of all.
3638 * doc/invoke.texi: Ditto.
3639 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
3640 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
3641 (execute_vect_slp): Emit BB vectorization success under
3642 MSG_OPTIMIZED_LOCATIONS.
3643 * tree-vect-slp.c (vect_slp_transform_bb): Change
3644 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
3645 * tree-vect-loop.c (vect_transform_loop): Ditto.
3647 2013-06-03 Jason Merrill <jason@redhat.com>
3650 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3651 Use TARGET_EXPR for C++.
3653 2013-06-03 Jakub Jelinek <jakub@redhat.com>
3655 PR rtl-optimization/57268
3656 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
3657 if DEBUG_INSN_P (insn).
3660 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3662 PR rtl-optimization/57268
3663 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3664 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3666 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3668 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
3669 (ix86_avoid_lea_for_addr): Likewise.
3670 (exact_dependency_1): Likewise.
3671 (ix86_adjust_cost): Likewise.
3672 (swap_top_of_ready_list): Fix formatting and !reload_completed check
3674 (do_reorder_for_imul): Fix typo, formatting and
3675 !reload_completed check removed.
3676 (ix86_sched_reorder): Fix typo and formatting.
3677 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
3680 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
3682 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
3684 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
3686 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
3687 <STRING_CST>: Likewise.
3688 <VECTOR_CST>: Likewise.
3690 2013-06-01 Janus Weil <janus@gcc.gnu.org>
3691 Mikael Morin <mikael@gcc.gnu.org>
3693 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
3694 * config.in: Regenerated.
3695 * configure: Regenerated.
3697 2013-06-01 Jan Hubicka <jh@suse.cz>
3700 * cgraphunit.c (compile): When weakref is not supported,
3701 set up transparent aliases before final output pass.
3702 * varasm.c (assemble_alias): Do not try to do it here.
3704 2013-06-01 Jan Hubicka <jh@suse.cz>
3707 * passes.c (for_per_function): Skip unanalyzed functions.
3709 2013-06-01 Jan Hubicka <jh@suse.cz>
3711 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
3712 (lto_symtab_merge_symbols_1): ... this one.
3713 (lto_symtab_merge_cgraph_nodes): Rename to ...
3714 (lto_symtab_merge_symbols): ... this one; simplify.
3715 * cgraph.c (same_body_aliases_done): Rename to ...
3716 (cpp_implicit_aliases_done): ... this one.
3717 (cgraph_create_function_alias): Update.
3718 (cgraph_same_body_alias): Update.
3719 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
3720 (verify_edge_corresponds_to_fndecl): Simplify.
3721 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
3722 (cgraph_node): Remove same_body_alias.
3723 (varpool_node): Remove alias_of and extra_name_alias.
3724 (same_body_aliases_done): Rename to ..
3725 (cpp_implicit_aliases_done): ... this one.
3726 (symtab_alias_ultimate_target): Add default parameter.
3727 (symtab_resolve_alias): New function.
3728 (fixup_same_cpp_alias_visibility): Declare.
3729 (cgraph_function_node): Add default parameter.
3730 (cgraph_node_asm_name): Likewise.
3731 (cgraph_function_or_thunk_node): Add default parameter; do
3732 not ICE when it is NULL.
3733 (varpool_variable_node): Likewise.
3734 * tree-emutls.c (create_emultls_var): Update.
3735 (ipa_lower_emutls): Update.
3736 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
3737 (cgraph_reset_node): Reset alias info.
3738 (cgraph_finalize_function): Update.
3739 (fixup_same_cpp_alias_visibility): Move to symtab.c.
3740 (analyze_function): Simplify.
3741 (cgraph_process_same_body_aliases): Simplify.
3742 (analyze_functions): Fixup same body aliases.
3743 (handle_alias_pairs): Simplify.
3744 (assemble_thunk): Update.
3745 (assemble_thunks_and_aliases): Update.
3746 (output_weakrefs): Rewrite.
3747 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
3748 (lto_output_varpool_node): Likewise.
3749 (compute_ltrans_boundary): Remve assert.
3750 (get_alias_symbol): New functoin.
3751 (input_node): Rewrite alias handling.
3752 (input_varpool_node): Likewise.
3753 * ipa-pure-const.c (propagate_pure_const): Fix formating.
3754 * ipa.c (process_references): Handle weakrefs correctly.
3755 (symtab_remove_unreachable_nodes): Likewise.
3756 * trans-mem.c (get_cg_data): Update.
3757 (ipa_tm_create_version_alias): Update.
3758 (ipa_tm_execute): Update.
3759 * symtab.c (dump_symtab_base): Dump aliases.
3760 (verify_symtab_base): Verify aliases.
3761 (symtab_node_availability): New function.
3762 (symtab_alias_ultimate_target): Simplify.
3763 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
3764 handle all the fixup cases.
3765 (symtab_resolve_alias): New function.
3766 * passes.c (ipa_write_summaries): Handle weakrefs.
3767 * varpool.c (varpool_analyze_node): Simplify.
3768 (assemble_aliases): Update.
3769 (varpool_create_variable_alias): Simplify.
3770 (varpool_extra_name_alias): Simplify.
3771 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
3772 (lto_symtab_merge_symbols): ... this one.
3774 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
3777 PR rtl-optimization/57268
3778 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3779 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3781 2013-06-01 Tobias Burnus <burnus@net-b.de>
3784 2013-05-31 Tobias Burnus <burnus@net-b.de>
3787 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
3790 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
3792 PR rtl-optimization/57268
3793 * sched-deps.c (sched_analyze_2): Flush dependence lists if
3794 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
3796 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3798 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
3799 unordered comparison operators when -fno-trapping-math is in effect
3801 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
3802 and implement unordered comparison operators properly on the e500.
3804 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
3806 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
3807 for constant scalar integers.
3808 (simplify_relational_operation_1): Likewise.
3810 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
3812 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
3813 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
3816 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3817 Igor Zamyatin <igor.zamyatin@intel.com>
3819 Silvermont (SLM) architecture performance tuning.
3820 * config/i386/i386.h (enum ix86_tune_indices): Add
3821 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
3822 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
3824 * config/i386/i386.c (initial_ix86_tune_features)
3825 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
3826 (ix86_lea_outperforms): Handle Silvermont tuning.
3827 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
3829 (ix86_use_lea_for_mov): Likewise.
3830 (ix86_avoid_lea_for_addr): Likewise.
3831 (ix86_lea_for_add_ok): Likewise.
3832 (exact_dependency_1): New function.
3833 (exact_store_load_dependency): Likewise.
3834 (ix86_adjust_cost): Handle Silvermont tuning.
3835 (do_reoder_for_imul): Likewise.
3836 (swap_top_of_ready_list): New function.
3837 (ix86_sched_reorder): Changed to handle Silvermont tuning.
3839 * config/i386/i386.md (peepholes that split memory operand in fp
3842 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3844 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3845 Remove un-necessary braces.
3847 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
3849 * config/aarch64/aarch64.c (aarch64_classify_symbol):
3850 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
3852 2013-05-31 Tobias Burnus <burnus@net-b.de>
3855 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
3857 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3860 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
3861 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
3862 * config/arm/neon.md (iordi3_neon): Remove.
3863 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
3864 * config/arm/predicates.md (imm_for_neon_logic_operand):
3865 Move to earlier in the file.
3866 (neon_logic_op2): Likewise.
3867 (arm_iordi_operand_neon): New predicate.
3869 2013-05-31 Richard Biener <rguenther@suse.de>
3871 PR tree-optimization/57478
3872 PR tree-optimization/57453
3873 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
3876 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3878 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
3879 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
3881 2013-05-30 Tobias Burnus <burnus@net-b.de>
3882 Thomas Koenig <tkoenig@gcc.gnu.org>
3885 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
3886 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
3888 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
3890 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
3892 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
3894 * target.def (register_usage_leveling_p): New hook.
3895 * targhooks.c (default_register_usage_leveling_p): New.
3896 * targhooks.h (default_register_usage_leveling_p): New prototype.
3897 * lra-assigns.c (register_usage_leveling_p): Use the hook.
3898 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3899 * doc/tm.texi: Update.
3900 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3902 2013-05-30 Ian Bolton <ian.bolton@arm.com>
3904 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3905 (*insv_reg<mode>): New define_insn.
3907 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
3909 PR rtl-optimization/57439
3910 * postreload.c (move2add_valid_value_p): Check that we have
3911 a zero subreg_regno_offset when accessing the register in
3914 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3915 Igor Zamyatin <igor.zamyatin@intel.com>
3917 Silvermont (SLM) architecture pipeline model, tuning and
3919 * config.gcc: Add slm config options and target.
3921 * config/i386/slm.md: New.
3923 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3925 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
3927 (ix86_target_macros_internal): Likewise.
3929 * gcc/config/i386/i386.c (slm_cost): New cost.
3930 (m_SLM): New macro flag.
3931 (initial_ix86_tune_features): Set m_SLM.
3932 (x86_accumulate_outgoing_args): Likewise.
3933 (x86_arch_always_fancy_math_387): Likewise.
3934 (processor_target_table): Add slm cost.
3935 (cpu_names): Add slm cpu name.
3936 (x86_option_override_internal): Set SLM ISA.
3937 (ix86_issue_rate): New case PROCESSOR_SLM.
3938 (ia32_multipass_dfa_lookahead): Likewise.
3939 (fold_builtin_cpu): Add slm.
3941 * config/i386/i386.h (TARGET_SLM): New target macro.
3942 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3943 (processor_type): Add PROCESSOR_SLM.
3945 * config/i386/i386.md (cpu): Add new value "slm".
3946 (slm.md): Include slm.md.
3948 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
3949 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3951 * config/arm/arm-protos.h: Add and update function protos.
3952 * config/arm/arm.c (use_simple_return_p): New added.
3953 (thumb2_expand_return): Check simple_return flag.
3954 * config/arm/arm.md: Add simple_return and conditional simple_return.
3955 * config/arm/iterators.md: Add iterator for return and simple_return.
3957 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3959 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3960 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3961 (arm_emit_vfp_multi_reg_pop): Likewise.
3962 (thumb2_emit_ldrd_pop): Likewise.
3963 (arm_expand_epilogue): Add misc REG_CFA notes.
3964 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3966 2013-05-29 Lawrence Crowl <crowl@google.com>
3968 * config/arm/t-arm: Update for below.
3970 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3971 Change type to hash_table. Update dependent calls and types.
3973 * config/i386/t-cygming: Update for below.
3975 * config/i386/t-interix: Update for below.
3977 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3978 Change type to hash_table. Update dependent calls and types.
3979 (i386_find_on_wrapper_list::wrappers): Likewise.
3981 * config/ia64/t-ia64: Update for below.
3983 * config/ia64/ia64.c (bundle_state_table):
3984 Change type to hash_table. Update dependent calls and types.
3986 * config/mips/mips.c (mips_reorg_process_insns::htab):
3987 Change type to hash_table. Update dependent calls and types.
3989 * config/sol2.c (solaris_comdat_htab):
3990 Change type to hash_table. Update dependent calls and types.
3992 * config/t-sol2: Update for above.
3994 2013-05-29 Teresa Johnson <tejohnson@google.com>
3996 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3997 functions are not yet marked as defined.
3999 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4000 Pat Haugen <pthaugen@us.ibm.com>
4001 Peter Bergner <bergner@vnet.ibm.com>
4003 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
4007 (vrotl<mode>3): Likewise.
4008 (vashl<mode>3): Likewise.
4009 (vlshr<mode>3): Likewise.
4010 (vashr<mode>3): Likewise.
4012 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4013 support for power8 V2DI builtins.
4015 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
4016 power8 V2DI builtins.
4017 (vupkhsw): Likewise.
4018 (vupklsw): Likewise.
4019 (vaddudm): Likewise.
4024 (vpkudum): Likewise.
4025 (vpksdss): Likewise.
4026 (vpkudus): Likewise.
4027 (vpksdus): Likewise.
4032 (vsubudm): Likewise.
4033 (vcmpequd): Likewise.
4034 (vcmpgtsd): Likewise.
4035 (vcmpgtud): Likewise.
4036 (vcmpequd_p): Likewise.
4037 (vcmpgtsd_p): Likewise.
4038 (vcmpgtud_p): Likewise.
4039 (vupkhsw): Likewise.
4040 (vupklsw): Likewise.
4041 (vaddudm): Likewise.
4046 (vpksdss): Likewise.
4047 (vpksdus): Likewise.
4048 (vpkudum): Likewise.
4049 (vpkudus): Likewise.
4054 (vsubudm): Likewise.
4056 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4057 support for power8 V2DI instructions.
4059 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
4060 power8 V2DI instructions. Combine pack and unpack insns to use an
4061 iterator for each mode. Check whether a particular mode supports
4062 Altivec instructions instead of just checking TARGET_ALTIVEC.
4063 (UNSPEC_VPKUWUM): Likewise.
4064 (UNSPEC_VPKSHSS): Likewise.
4065 (UNSPEC_VPKSWSS): Likewise.
4066 (UNSPEC_VPKUHUS): Likewise.
4067 (UNSPEC_VPKSHUS): Likewise.
4068 (UNSPEC_VPKUWUS): Likewise.
4069 (UNSPEC_VPKSWUS): Likewise.
4070 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
4071 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
4072 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
4073 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4074 (UNSPEC_VUPKHSB): Likewise.
4075 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4076 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4077 (UNSPEC_VUPKHSH): Likewise.
4078 (UNSPEC_VUPKLSB): Likewise.
4079 (UNSPEC_VUPKLSH): Likewise.
4081 (VI_char): Likewise.
4082 (VI_scalar): Likewise.
4083 (VI_unit): Likewise.
4085 (VP_small): Likewise.
4086 (VP_small_lc): Likewise.
4087 (VU_char): Likewise.
4088 (add<mode>3): Likewise.
4089 (altivec_vaddcuw): Likewise.
4090 (altivec_vaddu<VI_char>s): Likewise.
4091 (altivec_vadds<VI_char>s): Likewise.
4092 (sub<mode>3): Likewise.
4093 (altivec_vsubcuw): Likewise.
4094 (altivec_vsubu<VI_char>s): Likewise.
4095 (altivec_vsubs<VI_char>s): Likewise.
4096 (altivec_vavgs<VI_char>): Likewise.
4097 (altivec_vcmpbfp): Likewise.
4098 (altivec_eq<mode>): Likewise.
4099 (altivec_gt<mode>): Likewise.
4100 (altivec_gtu<mode>): Likewise.
4101 (umax<mode>3): Likewise.
4102 (smax<mode>3): Likewise.
4103 (umin<mode>3): Likewise.
4104 (smin<mode>3): Likewise.
4105 (altivec_vpkuhum): Likewise.
4106 (altivec_vpkuwum): Likewise.
4107 (altivec_vpkshss): Likewise.
4108 (altivec_vpkswss): Likewise.
4109 (altivec_vpkuhus): Likewise.
4110 (altivec_vpkshus): Likewise.
4111 (altivec_vpkuwus): Likewise.
4112 (altivec_vpkswus): Likewise.
4113 (altivec_vpks<VI_char>ss): Likewise.
4114 (altivec_vpks<VI_char>us): Likewise.
4115 (altivec_vpku<VI_char>us): Likewise.
4116 (altivec_vpku<VI_char>um): Likewise.
4117 (altivec_vrl<VI_char>): Likewise.
4118 (altivec_vsl<VI_char>): Likewise.
4119 (altivec_vsr<VI_char>): Likewise.
4120 (altivec_vsra<VI_char>): Likewise.
4121 (altivec_vsldoi_<mode>): Likewise.
4122 (altivec_vupkhsb): Likewise.
4123 (altivec_vupkhs<VU_char>): Likewise.
4124 (altivec_vupkls<VU_char>): Likewise.
4125 (altivec_vupkhsh): Likewise.
4126 (altivec_vupklsb): Likewise.
4127 (altivec_vupklsh): Likewise.
4128 (altivec_vcmpequ<VI_char>_p): Likewise.
4129 (altivec_vcmpgts<VI_char>_p): Likewise.
4130 (altivec_vcmpgtu<VI_char>_p): Likewise.
4131 (abs<mode>2): Likewise.
4132 (vec_unpacks_hi_v16qi): Likewise.
4133 (vec_unpacks_hi_v8hi): Likewise.
4134 (vec_unpacks_lo_v16qi): Likewise.
4135 (vec_unpacks_hi_<VP_small_lc>): Likewise.
4136 (vec_unpacks_lo_v8hi): Likewise.
4137 (vec_unpacks_lo_<VP_small_lc>): Likewise.
4138 (vec_pack_trunc_v8h): Likewise.
4139 (vec_pack_trunc_v4si): Likewise.
4140 (vec_pack_trunc_<mode>): Likewise.
4142 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4144 (vec_vmaxsd): Likewise.
4145 (vec_vmaxud): Likewise.
4146 (vec_vminsd): Likewise.
4147 (vec_vminud): Likewise.
4148 (vec_vpksdss): Likewise.
4149 (vec_vpksdus): Likewise.
4150 (vec_vpkudum): Likewise.
4151 (vec_vpkudus): Likewise.
4152 (vec_vrld): Likewise.
4153 (vec_vsld): Likewise.
4154 (vec_vsrad): Likewise.
4155 (vec_vsrd): Likewise.
4156 (vec_vsubudm): Likewise.
4157 (vec_vupkhsw): Likewise.
4158 (vec_vupklsw): Likewise.
4160 2013-05-29 Jan Hubicka <jh@suse.cz>
4162 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4163 flags; reorder rest of fields in more consistent way.
4164 (varpool_node): Remove analyzed, finalized and alias.
4165 (cgraph_ndoe): Likewise.
4166 (symtab_alias_ultimate_target): New function.
4167 (cgraph_function_node): Move offline.
4168 (cgraph_reset_node): Declare.
4169 (cgraph_comdat_can_be_unshared_p): Remove.
4170 (varpool_remove_initializer): Declare.
4171 (varpool_first_defined_variable, varpool_next_defined_variable
4172 cgraph_first_defined_function, cgraph_next_defined_function): Update.
4173 (cgraph_function_with_gimple_body_p): Update.
4174 (varpool_all_refs_explicit_p): Update.
4175 (symtab_alias_target): New function.
4176 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4177 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
4178 (cgraph_function_or_thunk_node): Simplify using
4179 symtab_alias_ultimate_target.
4180 (varpool_variable_node): Likewise.
4181 * cgraph.c (cgraph_create_function_alias): Update.
4182 (cgraph_add_thunk): Update.
4183 (cgraph_remove_node): Update.
4184 (dump_cgraph_node): Do not dump removed flags.
4185 (cgraph_function_body_availability): Update.
4186 (cgraph_propagate_frequency): Update.
4187 (verify_cgraph_node): Check sanity of local flag.
4188 (cgraph_function_node): Move here from cgraph.h; revamp for
4189 cgraph_function_or_thunk_node.
4190 * lto-symtab.c (lto_varpool_replace_node): Update.
4191 (lto_symtab_resolve_can_prevail_p): Update.
4192 (lto_symtab_merge_cgraph_nodes): Update.
4193 * ipa-cp.c (determine_versionability, initialize_node_lattices,
4194 propagate_constants_accross_call, devirtualization_time_bonus,
4195 ipcp_propagate_stage): Update.
4196 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
4197 * ipa-inline-transform.c (clone_inlined_nodes,
4198 preserve_function_body_p): Update.
4199 * ipa-reference.c (propagate): Update.
4200 (write_node_summary_p): Update.
4201 * toplev.c (wrapup_global_declaration_2): Update.
4202 * cgraphunit.c (cgraph_analyze_function): Rename to ...
4203 (analyze_function) ... this one.
4204 (cgraph_process_new_functions): Update.
4205 (cgraph_reset_node): Export.
4206 (cgraph_finalize_function): Update.
4207 (cgraph_add_new_function): Update.
4208 (process_function_and_variable_attributes): Update.
4209 (varpool_finalize_decl): Update.
4210 (symbol_finalized): Remove.
4211 (symbol_finalized_and_needed): Rename to ...
4212 (symbol_defined_and_needed): ... update.
4213 (cgraph_analyze_functions): Update.
4214 (handle_alias_pairs): Update.
4215 (mark_functions_to_output): Update.
4216 (assemble_thunk): Update.
4217 (output_in_order): Update.
4218 (output_weakrefs): Update.
4219 (finalize_compilation_unit): Update.
4220 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4221 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4222 input_node, input_varpool_node): Update.
4223 * dbxout.c (dbxout_expand_expr): Update.
4224 * cgraphclones.c (cgraph_clone_node): Update.
4225 (cgraph_copy_node_for_versioning): Update.
4226 (cgraph_materialize_clone): Update.
4227 (cgraph_materialize_all_clones): Update.
4228 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4229 propagate_pure_const, propagate_nothrow): Update.
4230 * lto-streamer-out.c (lto_output, write_symbol): Update.
4231 * ipa-utils.c (ipa_reverse_postorder): Update.
4232 * ipa-inline.c (can_inline_edge_p): Update.
4233 (update_caller_keys, ipa_inline): Update.
4234 * dwarf2out.c (reference_to_unused,
4235 premark_types_used_by_global_vars_helper): Update.
4236 * tree-eh.c (tree_could_trap_p): Update.
4237 * ipa-split.c (consider_split, execute_split_functions): Update.
4238 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4239 has_addr_references_p): Update; move ahead in file for better
4241 (process_references): Simplify.
4242 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4244 (cgraph_comdat_can_be_unshared_p): Make static.
4245 (cgraph_externally_visible_p): Update.
4246 (varpool_externally_visible_p): Update.
4247 (function_and_variable_visibility): Update.
4248 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4249 ipa_tm_mark_force_output_node): Update.
4250 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4251 estimate_edge_devirt_benefit, inline_generate_summary,
4252 inline_write_summary): Update.
4253 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4254 * ipa-prop.c (ipa_compute_jump_functions): Update.
4255 (ipa_print_node_params, ipa_prop_read_section,
4256 ipa_update_after_lto_read, read_replacements_section): Update.
4257 * varasm.c (mark_decl_referenced): Update.
4258 (assemble_alias, dump_tm_clone_pairs): Update.
4259 * tree-inline.c (copy_bb): Update.
4260 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4262 * symtab.c (dump_symtab_base): Print new flags.
4263 (verify_symtab_base): Verify new flags.
4264 (symtab_alias_ultimate_target): New function.
4265 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4266 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4268 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4270 * i386.c (ix86_get_function_versions_dispatcher,
4271 ix86_generate_version_dispatcher_body): Update.
4272 (fold_builtin_cpu): Use varpool_add_new_variable.
4273 * varpool.c (varpool_remove_initializer): Break out from ...
4274 (varpool_remove_node): ... this one.
4275 (dump_varpool_node, varpool_node_for_asm,
4276 cgraph_variable_initializer_availability, varpool_analyze_node,
4277 varpool_assemble_decl, varpool_remove_unreferenced_decls,
4278 varpool_finalize_named_section_flags, varpool_create_variable_alias):
4281 2013-05-29 Jan Hubicka <jh@suse.cz>
4283 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4285 2013-05-29 Easwaran Raman <eraman@google.com>
4287 PR tree-optimization/57442
4288 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4289 when control exits the main loop.
4291 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4293 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4295 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
4296 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4297 * rx/t-rx: Add rx100 under multi library matches option for nofpu
4300 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4302 PR tree-optimization/57441
4303 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4304 Don't limit size of incr_vec to number of candidates.
4306 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
4308 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4309 and mips16 directories.
4310 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4311 (MULTILIB_DIRNAMES): Ditto.
4312 (MULTILIB_EXCEPTIONS): Add new exceptions.
4313 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4314 (MULTILIB_DIRNAMES): Ditto.
4315 (MULTILIB_EXCEPTIONS): Add new exceptions.
4317 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4318 Marcus Shawcroft <marcus.shawcroft@arm.com>
4320 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4321 SYMBOL_TINY_ABSOLUTE.
4322 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4323 SYMBOL_TINY_ABSOLUTE.
4324 (aarch64_expand_mov_immediate): Likewise.
4325 (aarch64_classify_symbol): Likewise.
4326 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4327 Permit SYMBOL_TINY_ABSOLUTE.
4328 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4330 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4331 Marcus Shawcroft <marcus.shawcroft@arm.com>
4333 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4334 Refactor if/switch. Replace gcc_assert with if.
4336 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4338 * config/i386/i386.c (initial_ix86_tune_features): Enable
4339 FP Reassociation for AMD bdver1 and bdver2.
4341 2013-05-29 Martin Jambor <mjambor@suse.cz>
4343 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4344 and IMAGPART_EXPR do not occur within other handled_components.
4346 2013-05-29 Richard Biener <rguenther@suse.de>
4348 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4349 access on whether the use is in the BB we currently try to
4351 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4352 vectorize to vect_bb_slp_scalar_cost.
4354 2013-05-29 Richard Biener <rguenther@suse.de>
4356 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4357 computing scalar cost offsetted by stmts that are kept live
4359 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4360 for computation of scalar cost.
4362 2013-05-28 Steve Ellcey <sellcey@mips.com>
4364 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4366 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4368 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4369 array notation built-in reduction functions.
4370 * doc/passes.texi (Passes): Added documentation about changes done
4372 * doc/invoke.texi (C Dialect Options): Added documentation about
4373 the -fcilkplus flag.
4374 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4375 (BUILTINS_DEF): Depend on cilkplus.def.
4376 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4377 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4378 * cilkplus.def: New file.
4380 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4382 PR rtl-optimization/57439
4383 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4385 2013-05-28 Easwaran Raman <eraman@google.com>
4387 PR tree-optimization/57337
4388 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4389 (find_insert_point): Correctly identify the insertion point
4390 when two statements with the same UID is compared.
4392 2013-05-28 Richard Biener <rguenther@suse.de>
4394 PR tree-optimization/56787
4395 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4396 from the list of data references.
4397 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4399 (vect_analyze_loop_operations): Likewise.
4400 (vect_transform_loop): Remove clobbers.
4402 2013-05-28 Martin Jambor <mjambor@suse.cz>
4404 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4405 and REALPART_EXPRs have scalar type.
4407 2013-05-28 Richard Biener <rguenther@suse.de>
4409 PR tree-optimization/57411
4410 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4412 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4413 virtual operand propagation.
4415 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4417 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4418 destination register for bmasksi_vis.
4419 (vector_init_bshuffle): Likewise.
4420 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4422 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4424 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4425 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4426 mode if the instruction isn't available in the original mode.
4427 * config/sparc/sparc.opt (mfix-ut699): New option.
4428 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4429 (divdf3): Turn into expander.
4430 (divdf3_nofix): New insn.
4431 (divdf3_fix): Likewise.
4432 (divsf3): Disable if -mfix-ut699.
4433 (sqrtdf2): Turn into expander.
4434 (sqrtdf2_nofix): New insn.
4435 (sqrtdf2_fix): Likewise.
4436 (sqrtsf2): Disable if -mfix-ut699.
4438 2013-05-27 Richard Biener <rguenther@suse.de>
4441 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4442 block for the new loop.
4444 2013-05-27 Richard Biener <rguenther@suse.de>
4446 PR tree-optimization/57343
4447 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4448 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4449 (number_of_iterations_cond): Do not build the folded tree.
4451 2013-05-27 Richard Biener <rguenther@suse.de>
4455 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4456 OEP_CONSTANT_ADDRESS_OF retained.
4458 PR tree-optimization/57417
4459 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4461 (set_ssa_val_to): Compare addresses using
4462 get_addr_base_and_unit_offset.
4464 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4466 PR rtl-optimization/56833
4467 * postreload.c (move2add_record_mode): New function.
4468 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4469 (move2add_use_add2_insn): Use move2add_record_sym_value.
4470 (move2add_use_add3_insn): Likewise.
4471 (reload_cse_move2add): Use move2add_valid_value_p and
4472 move2add_record_mode. Invalidate call-clobbered and REG_INC
4473 affected regs by setting reg_mode to VOIDmode.
4474 (move2add_note_store): Don't pretend the inside of a SUBREG is
4475 the actual destination. Invalidate single/leading registers by
4476 setting reg_mode to VOIDmode.
4477 Use move2add_record_sym_value, move2add_valid_value_p and
4478 move2add_record_mode.
4480 2013-05-27 Richard Biener <rguenther@suse.de>
4482 PR tree-optimization/57396
4483 * tree-affine.c (double_int_constant_multiple_p): Properly
4484 return false for val == 0 and div != 0.
4486 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4488 * config/mips/mips.h: Use #elif in preprocessor conditions.
4490 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4493 * config/mips/constraints.md (kl): New constraint.
4494 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4495 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4496 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4498 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4500 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4503 * config/mips/mips.c (mips_can_inline_p): New function.
4504 (TARGET_CAN_INLINE_P): Define.
4506 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4508 * sched-int.h (ds_t, dw_t): Make unsigned int.
4509 Fix documentation that describes how all the ds_t bits are used.
4510 Reserve the last bit for delayed-branch scheduling.
4511 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4512 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4513 (gen_dep_weak_1): Remove prototype.
4514 * sched-deps.c (get_dep_weak_1): Make static.
4515 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4516 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4517 * doc/tm.texi: Regenerate.
4518 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4520 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4523 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4525 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4526 Sandra Loosemore <sandra@codesourcery.com>
4528 * config.gcc (powerpc-*): Allow native for with-cpu.
4530 2013-05-24 Jeff Law <law@redhat.com>
4532 PR tree-optimization/57124
4533 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4534 conversion feeding a condition if the range has an overflow
4535 if -fstrict-overflow. Add warnings for when we do make the
4538 2013-05-24 Dehao Chen <dehao@google.com>
4540 * tree-cfg.c (locus_discrim_map): Fix the typo.
4541 (locus_discrim_hasher): Likewise.
4542 (locus_discrim_hasher::hash): Likewise.
4543 (locus_discrim_hasher::equal): Likewise.
4545 2013-05-24 Martin Jambor <mjambor@suse.cz>
4547 PR tree-optimization/57294
4548 * cgraph.h (ipa_record_stmt_references): Declare.
4549 * cgraphbuild.c (ipa_record_stmt_references): New function.
4550 (build_cgraph_edges): Use ipa_record_stmt_references.
4551 (rebuild_cgraph_edges): Likewise.
4552 (cgraph_rebuild_references): Likewise.
4553 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4554 associated with the old statement and build references from the
4555 newly built statements.
4556 * ipa-ref.c (ipa_remove_stmt_references): New function.
4557 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4559 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4561 * lra-constraints.c (emit_spill_move): Use smaller mode for
4563 (check_and_process_move): Consider mem-reg moves for secondary
4565 (curr_insn_transform): Don't lose insns emitted before for
4566 secondary memory moves.
4567 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4568 reg set up in the current insn.
4570 2013-05-24 Dehao Chen <dehao@google.com>
4572 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
4574 (locus_descrim_hasher::equal): Likewise.
4575 (build_gimple_cfg): New discriminator assignment algorithm.
4576 (make_edges): Likewise.
4577 (next_discriminator_for_locus): Likewise.
4578 (same_line_p): Likewise.
4579 (assign_discriminators): Likewise.
4580 (make_cond_expr_edges): Likewise.
4581 (make_gimple_switch_edges): Likewise.
4582 (make_goto_expr_edges): Likewise.
4583 (make_gimple_asm_edges): Likewise.
4585 2013-05-24 Ian Bolton <ian.bolton@arm.com>
4587 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4588 X format specifier to only display bottom 16 bits.
4589 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4590 immediate to match for operand 2, since it will be masked.
4592 2013-05-24 Richard Biener <rguenther@suse.de>
4594 PR tree-optimization/57287
4595 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4596 all SSA names that occur in abnormal PHIs.
4598 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4601 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4602 that index is not negative.
4604 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4606 PR rtl-optimization/55177
4607 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
4608 (simplify_byte_swapping_operation): New.
4609 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
4610 (simplify_relational_operation_1): Deal with BSWAP.
4612 2013-05-23 Richard Henderson <rth@redhat.com>
4615 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
4616 (ix86_reorg): Call it.
4618 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
4621 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
4622 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
4623 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
4625 2013-05-23 Christian Bruel <christian.bruel@st.com>
4628 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
4630 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4631 Marcus Shawcroft <marcus.shawcroft@arm.com>
4633 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
4634 * config/aarch64/constraints.md (Usa): Remove.
4635 * doc/md.texi (AArch64 Usa): Remove.
4637 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4638 Marcus Shawcroft <marcus.shawcroft@arm.com>
4640 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
4641 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
4642 * config/aarch64/predicates.md (aarch64_const_address): Remove.
4643 (aarch64_mov_operand): Use aarch64_mov_operand_p.
4645 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
4647 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
4648 instruction (AdvSIMD).
4649 * config/aarch64/aarch64-builtins.c
4650 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
4651 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
4653 2013-05-23 Martin Jambor <mjambor@suse.cz>
4656 * tree.h (contains_bitfld_component_ref_p): Declare.
4657 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
4658 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
4660 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
4661 not access a bit-field. Assert all final offsets are byte-aligned.
4663 2013-05-23 Richard Biener <rguenther@suse.de>
4665 PR tree-optimization/57380
4666 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
4667 least one invariant or re-used load.
4668 * passes.c (init_optimization_passes): Move pass_phiprop before
4671 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
4673 * config/aarch64/aarch64-simd.md
4674 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
4676 2013-05-23 Richard Biener <rguenther@suse.de>
4679 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4680 OEP_CONSTANT_ADDRESS_OF retained.
4682 2013-05-23 Jakub Jelinek <jakub@redhat.com>
4685 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
4686 don't lower unit. Handle unit not being always BITS_PER_WORD.
4688 2013-05-23 Richard Biener <rguenther@suse.de>
4690 PR rtl-optimization/57341
4691 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
4692 instead of true_dependence.
4694 2013-05-22 David Malcolm <dmalcolm@redhat.com>
4696 * bb-reorder.c (branch_threshold): Make const.
4697 (exec_threshold): Ditto.
4699 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4700 Pat Haugen <pthaugen@us.ibm.com>
4701 Peter Bergner <bergner@vnet.ibm.com>
4703 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
4704 documentation for the power8 crypto builtins.
4706 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
4708 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
4709 macros for defining power8 builtin functions.
4710 (BU_P8V_AV_2): Likewise.
4711 (BU_P8V_AV_P): Likewise.
4712 (BU_P8V_VSX_1): Likewise.
4713 (BU_P8V_OVERLOAD_1): Likewise.
4714 (BU_P8V_OVERLOAD_2): Likewise.
4715 (BU_CRYPTO_1): Likewise.
4716 (BU_CRYPTO_2): Likewise.
4717 (BU_CRYPTO_3): Likewise.
4718 (BU_CRYPTO_OVERLOAD_1): Likewise.
4719 (BU_CRYPTO_OVERLOAD_2): Likewise.
4720 (XSCVSPDP): Fix typo, point to the correct instruction.
4721 (VCIPHER): Add power8 crypto builtins.
4722 (VCIPHERLAST): Likewise.
4723 (VNCIPHER): Likewise.
4724 (VNCIPHERLAST): Likewise.
4725 (VPMSUMB): Likewise.
4726 (VPMSUMH): Likewise.
4727 (VPMSUMW): Likewise.
4728 (VPERMXOR_V2DI): Likewise.
4729 (VPERMXOR_V4SI: Likewise.
4730 (VPERMXOR_V8HI: Likewise.
4731 (VPERMXOR_V16QI: Likewise.
4732 (VSHASIGMAW): Likewise.
4733 (VSHASIGMAD): Likewise.
4735 (VPERMXOR): Likewise.
4736 (VSHASIGMA): Likewise.
4738 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4739 __CRYPTO__ if the crypto instructions are available.
4740 (altivec_overloaded_builtins): Add support for overloaded power8
4743 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
4744 support for power8 crypto builtins.
4745 (builtin_function_type): Likewise.
4746 (altivec_init_builtins): Add support for builtins that take vector
4747 long long (V2DI) arguments.
4749 * config/rs6000/crypto.md: New file, define power8 crypto
4752 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4753 Pat Haugen <pthaugen@us.ibm.com>
4754 Peter Bergner <bergner@vnet.ibm.com>
4756 * doc/invoke.texi (Option Summary): Add power8 options.
4757 (RS/6000 and PowerPC Options): Likewise.
4759 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
4760 constraints.md instead of rs6000.h. Reorder w* constraints. Add
4761 wm, wn, wr documentation.
4763 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
4764 registers if direct move instructions are enabled.
4765 (wn): New constraint for no registers.
4766 (wq): New constraint for quad word even GPR registers.
4767 (wr): New constraint if 64-bit instructions are enabled.
4768 (wv): New constraint if power8 vector instructions are enabled.
4769 (wQ): New constraint for quad word memory locations.
4771 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
4772 constraint for 0..15 for crypto instructions.
4773 (gpc_reg_operand): If VSX allow registers in VSX registers as well
4774 as GPR and floating point registers.
4775 (int_reg_operand): New predicate to match only GPR registers.
4776 (base_reg_operand): New predicate to match base registers.
4777 (quad_int_reg_operand): New predicate to match even GPR registers
4778 for quad memory operations.
4779 (vsx_reg_or_cint_operand): New predicate to allow vector logical
4780 operations in both GPR and VSX registers.
4781 (quad_memory_operand): New predicate for quad memory operations.
4782 (reg_or_indexed_operand): New predicate for direct move support.
4784 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
4785 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
4786 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
4787 (POWERPC_MASKS): Add power8 options.
4788 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
4791 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
4792 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
4794 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
4795 (-mpower8-fusion): New power8 options.
4796 (-mpower8-fusion-sign): Likewise.
4797 (-mpower8-vector): Likewise.
4798 (-mcrypto): Likewise.
4799 (-mdirect-move): Likewise.
4800 (-mquad-memory): Likewise.
4802 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
4804 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
4806 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
4807 (rs6000_debug_vector_unit): Add p8_vector.
4808 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
4809 definitions. Also print fusion state.
4810 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
4811 (rs6000_builtin_mask_calculate): Add power8 builtin support.
4812 (rs6000_option_override_internal): Add support for power8.
4813 (rs6000_common_init_builtins): Add debugging for skipped builtins
4815 (rs6000_adjust_cost): Add power8 support.
4816 (rs6000_issue_rate): Likewise.
4817 (insn_must_be_first_in_group): Likewise.
4818 (insn_must_be_last_in_group): Likewise.
4819 (force_new_group): Likewise.
4820 (rs6000_register_move_cost): Likewise.
4821 (rs6000_opt_masks): Likewise.
4823 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
4824 power8 capable assembler, default to power7 options.
4825 (TARGET_DIRECT_MOVE): Likewise.
4826 (TARGET_CRYPTO): Likewise.
4827 (TARGET_P8_VECTOR): Likewise.
4828 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
4829 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
4830 (VECTOR_MEM_P8_VECTOR_P): Likewise.
4831 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
4832 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
4833 (TARGET_XSCVDPSPN): Likewise.
4834 (TARGET_XSCVSPDPN): Likewsie.
4835 (TARGET_SYNC_HI_QI): Likewise.
4836 (TARGET_SYNC_TI): Likewise.
4837 (MASK_CRYPTO): Likewise.
4838 (MASK_DIRECT_MOVE): Likewise.
4839 (MASK_P8_FUSION): Likewise.
4840 (MASK_P8_VECTOR): Likewise.
4841 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
4842 temporary used by some of the direct move instructions to get two FP
4843 temporary registers does not force creation of a stack frame.
4844 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
4845 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
4846 that any VSX registers are tieable, even if they are also an
4847 Altivec vector mode.
4848 (r6000_reg_class_enum): Add wm, wr, wv constraints.
4849 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
4850 (RS6000_BTM_CRYPTO): Likewise.
4851 (RS6000_BTM_COMMON): Likewise.
4853 * config/rs6000/rs6000.md (cpu attribute): Add power8.
4854 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
4855 (enum rs6000_vector): Add power8 vector support.
4857 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4861 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
4862 (any_sibcall_could_use_r3): this and handle indirect calls.
4863 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
4865 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4867 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
4869 2013-05-22 Richard Biener <rguenther@suse.de>
4872 * profile.c (branch_prob): Do not split blocks that are
4873 abnormally receiving from ECF_RETURNS_TWICE functions.
4875 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4877 * recog.c (offsettable_address_addr_space_p): Fix calculation of
4878 address mode. Move pointer mode initialization to the same place.
4880 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4882 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
4883 while it has any effect.
4885 2013-05-21 Easwaran Raman <eraman@google.com>
4887 PR tree-optimization/57322
4888 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
4889 UID of the statement added to the BB to be 1.
4891 2013-05-21 Jakub Jelinek <jakub@redhat.com>
4893 PR tree-optimization/57331
4894 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4895 of conversion from pointer type to integral type with integer.
4897 2013-05-21 Martin Jambor <mjambor@suse.cz>
4900 * ipa-prop.c (ipa_read_node_info): Process param_used and
4901 controlled_uses in the same order as when writing.
4903 2013-05-21 Magnus Granberg <baldrick@free.fr>
4906 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
4908 2013-05-21 Richard Biener <rguenther@suse.de>
4910 PR tree-optimization/57318
4911 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4912 estimate stmts with side-effects as likely eliminated.
4914 2013-05-21 Richard Biener <rguenther@suse.de>
4916 PR tree-optimization/57330
4917 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4918 preserve the call stmts fntype.
4920 2013-05-21 Richard Biener <rguenther@suse.de>
4922 PR tree-optimization/57303
4923 * tree-ssa-sink.c (statement_sink_location): Improve killing
4924 stmt detection and properly handle self-assignments.
4926 2013-05-21 Christian Bruel <christian.bruel@st.com>
4928 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4929 spanning registers. LEAF_REG_REMAP is supported only for contiguous
4930 registers. Set register size out of the PARALLEL loop.
4932 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
4935 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4936 (*fmasf4, *fmasf4_media): New insns.
4938 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4940 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4941 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4942 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4943 (mips_idiv_insns): Update the comments to say that the returned
4944 instruction counts are in units of BASE_INSN_LENGTH.
4945 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4946 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
4947 using 2 rather than 4 as the length of indirect MIPS16 and
4948 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
4949 length of a NOP. Don't divide MIPS16 lengths by 2.
4950 (mips16_split_long_branches): Assume a branch is long if the
4951 length is greater than 4 rather than 8.
4952 * config/mips/mips.md (length): Give MIPS16 lengths directly,
4953 rather than multiplying them by 2. Multiply instruction counts
4954 by BASE_INSN_LENGTH rather than 4.
4955 (*jump_mips16, tls_get_tp_mips16_<mode>)
4956 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4958 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4960 * config/mips/mips.md (extended_mips16): Remove branch case.
4961 (length): Remove duplicated extended_mips16 test.
4963 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4965 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4967 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
4969 * recog.h (Recog_data): Rename to...
4970 (recog_data_d): ...this.
4971 (recog_data): Update accordingly.
4972 * recog.c (recog_data): Likewise.
4973 * reload.c (save_recog_data): Likewise.
4974 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4975 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4977 2013-05-17 Julian Brown <julian@codesourcery.com>
4979 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4980 found in a REG_EQUAL note, invalidate it.
4982 2013-05-17 Easwaran Raman <eraman@google.com>
4984 * tree-ssa-reassoc.c (find_insert_point): New function.
4985 (insert_stmt_after): Likewise.
4986 (get_def_stmt): Likewise.
4987 (ensure_ops_are_available): Likewise.
4988 (not_dominated_by): Likewise.
4989 (rewrite_expr_tree): Do not move statements beyond what is
4990 necessary. Remove call to swap_ops_for_binary_stmt...
4991 (reassociate_bb): ... and move it here.
4992 (build_and_add_sum): Assign UIDs for new statements.
4993 (linearize_expr): Likewise.
4994 (do_reassoc): Renumber gimple statement UIDs.
4996 2013-05-17 Jan Hubicka <jh@suse.cz>
4998 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
5000 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
5001 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
5003 (output_weakrefs): Update.
5005 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
5006 Martin Jambor <mjambor@suse.cz>
5009 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
5010 value that corresponds to the given aggval is found in values vector.
5012 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
5014 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
5015 sse, sse2, sse3, ssse3 and sse4a flags to options.
5017 2013-05-17 David Malcolm <dmalcolm@redhat.com>
5019 * gengtype-state.c: (s_expr_writer): New class, to handle
5020 prettifying of output layout of s-expressions.
5021 (state_writer): New class, to write out gtype.state.
5022 (state_written_type_count): Move this variable into member data of
5024 (s_expr_writer::s_expr_writer): New code: constructor for new class
5025 (state_writer::state_writer(): ditto
5026 (s_expr_writer::write_new_line): New function
5027 (s_expr_writer::write_any_indent): ditto
5028 (s_expr_writer::begin_s_expr): ditto
5029 (s_expr_writer::end_s_expr): ditto
5030 (write_state_fileloc): convert to method of state_writer...
5031 (state_writer:: write_state_fileloc): ...and use methods of
5032 s_expr_writer to write indentation into the gtype.state output file
5033 to visually represent the hierarchical structure of the list
5035 (write_state_fields): ditto, renaming to...
5036 (state_writer::write_state_fields)
5037 (write_state_a_string): ditto, renaming to...
5038 (state_writer::write_state_a_string)
5039 (write_state_string_option): ditto, renaming to...
5040 (state_writer::write_state_string_option)
5041 (write_state_type_option): ditto, renaming to...
5042 (state_writer::write_state_type_option)
5043 (write_state_nested_option): ditto, renaming to...
5044 (state_writer::write_state_nested_option)
5045 (write_state_option): ditto, renaming to...
5046 (state_writer::write_state_option)
5047 (write_state_options): ditto, renaming to...
5048 (state_writer::write_state_options)
5049 (write_state_lang_bitmap): ditto, renaming to...
5050 (state_writer::write_state_lang_bitmap)
5051 (write_state_version): ditto, renaming to...
5052 (state_writer::write_state_version)
5053 (write_state_scalar_type): ditto, renaming to...
5054 (state_writer::write_state_scalar_type)
5055 (write_state_string_type): ditto, renaming to...
5056 (state_writer::write_state_string_type)
5057 (write_state_undefined_type): ditto, renaming to...
5058 (state_writer::write_state_undefined_type)
5059 (write_state_struct_union_type): ditto, renaming to...
5060 (state_writer::write_state_struct_union_type)
5061 (write_state_struct_type): ditto, renaming to...
5062 (state_writer::write_state_struct_type)
5063 (write_state_user_struct_type): ditto, renaming to...
5064 (state_writer::write_state_user_struct_type)
5065 (write_state_lang_struct_type): ditto, renaming to...
5066 (state_writer::write_state_lang_struct_type)
5067 (write_state_param_struct_type): ditto, renaming to...
5068 (state_writer::write_state_param_struct_type)
5069 (write_state_pointer_type): ditto, renaming to...
5070 (state_writer::write_state_pointer_type)
5071 (write_state_array_type): ditto, renaming to...
5072 (state_writer::write_state_array_type)
5073 (write_state_gc_used): ditto, renaming to...
5074 (state_writer::write_state_gc_used)
5075 (write_state_common_type_content): ditto, renaming to...
5076 (state_writer::write_state_common_type_content)
5077 (write_state_type): ditto, renaming to...
5078 (state_writer::write_state_type)
5079 (write_state_pair_list): ditto, renaming to...
5080 (state_writer::write_state_pair_list)
5081 (write_state_pair): ditto, renaming to...
5082 (state_writer::write_state_pair)
5083 (write_state_typedefs): ditto, renaming to...
5084 (state_writer::write_state_typedefs)
5085 (write_state_structures): ditto, renaming to...
5086 (state_writer::write_state_structures)
5087 (write_state_param_structs): ditto, renaming to...
5088 (state_writer::write_state_param_structs)
5089 (write_state_variables): ditto, renaming to...
5090 (state_writer::write_state_variables)
5091 (write_state_srcdir): ditto, renaming to...
5092 (state_writer::write_state_srcdir)
5093 (write_state_files_list): ditto, renaming to...
5094 (state_writer::write_state_files_list)
5095 (write_state_languages): ditto, renaming to...
5096 (state_writer::write_state_languages)
5097 (write_state): create a state_writer instance and use it when
5098 writing out the state file
5100 2013-05-17 Mike Stump <mikestump@comcast.net>
5102 PR rtl-optimization/57304
5103 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5104 accessing DF_REF_REAL_LOC.
5106 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5108 PR rtl-optimization/57281
5109 PR rtl-optimization/57300
5110 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5111 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5112 what the other splitter did if the registers are dead.
5114 2013-05-17 Richard Biener <rguenther@suse.de>
5116 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5119 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5121 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5124 2013-05-17 Marek Polacek <polacek@redhat.com>
5126 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5127 length when doing non-zero store of storing '\0' to '\0'.
5129 2013-05-17 Jakub Jelinek <jakub@redhat.com>
5131 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5132 vect_external_def oprnd1 with loop_vinfo, try to emit
5133 optional cast, negation and and stmts on the loop preheader
5134 edge instead of into the pattern def seq.
5136 PR tree-optimization/57051
5137 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5138 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5140 2013-05-16 Nick Clifton <nickc@redhat.com>
5142 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5143 (rl78_is_naked_func): New function.
5144 (rl78_expand_prologue): Skip prologue generation for naked functions.
5145 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
5146 * doc/extend.texi (naked): Add RL78 to the list of processors
5147 that supports this attribute.
5149 2013-05-16 Jeff Law <law@redhat.com>
5151 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5153 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5155 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5156 cache parameters using detect_caches_amd also for CYRIX,
5157 NSC and TM2 signatures.
5159 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
5160 Dzianis Kahanovich <mahatma@eu.by>
5164 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5165 VIA/Centaur processors and determine their cache parameters
5166 using detect_caches_amd.
5168 2013-05-16 Teresa Johnson <tejohnson@google.com>
5170 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5171 (rtl_verify_edges): New function.
5172 (rtl_verify_bb_insns): Ditto.
5173 (rtl_verify_bb_pointers): Ditto.
5174 (rtl_verify_bb_insn_chain): Ditto.
5175 (rtl_verify_fallthru): Ditto.
5176 (rtl_verify_bb_layout): Ditto.
5177 (rtl_verify_flow_info_1): Outline checks into new functions.
5178 (rtl_verify_flow_info): Ditto.
5180 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
5182 * cfghooks.c (copy_bbs): Add update_dominance argument.
5183 * cfghooks.h (copy_bbs): Update prototype.
5184 * tree-cfg.c (gimple_duplicate_sese_region):
5185 Add update_dominance argument.
5186 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5187 * tree-ssa-loop-ch.c (copy_loop_headers): Update
5188 gimple_duplicate_sese_region call.
5189 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5190 Update copy_bbs call.
5191 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5192 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5194 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5196 * tree-vectorizer.h (NUM_PATTERNS): Increment.
5197 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5198 vect_recog_rotate_pattern.
5199 (vect_recog_rotate_pattern): New function.
5201 2013-05-16 Jason Merrill <jason@redhat.com>
5203 * Makefile.in (LLINKER): New variable.
5204 (mostlyclean): Remove link mutex.
5205 * configure.ac: Handle --enable-link-mutex.
5206 * lock-and-run.sh: New script.
5208 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5211 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5214 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5216 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5218 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
5220 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5221 * config/arm/arm.c (next_consecutive_mem): New function.
5222 (gen_movmem_ldrd_strd): Likewise.
5223 * config/arm/arm.md (movmemqi): Update condition and code.
5224 (unaligned_loaddi, unaligned_storedi): New patterns.
5226 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5228 * config.gcc: Obsolete *-*-solaris2.9*.
5229 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5231 2013-05-16 Richard Biener <rguenther@suse.de>
5233 * passes.c (init_optimization_passes): Move pass_parallelize_loops
5234 earlier, after GRAPHITE transforms and IV canonicalization.
5236 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5238 * omp-low.c (extract_omp_for_data): For collapsed loops,
5239 if at least one of the loops is known at compile time to
5240 iterate zero times, set count to 0.
5241 (expand_omp_regimplify_p): New function.
5242 (expand_omp_for_generic): For collapsed loops, if at least
5243 one of the loops isn't known to iterate at least once,
5244 add runtime check with setting count to 0.
5245 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5246 For unsigned types if it isn't known at compile time that
5247 the loop will iterate at least once, add runtime check to bypass
5248 the whole loop if initial condition isn't true.
5250 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
5252 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5254 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
5257 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5258 transformations to avoid an infinite loop.
5260 2013-05-16 Marek Polacek <polacek@redhat.com>
5262 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5264 2013-05-15 Leif Ekblad <leif@rdos.net>
5266 * config/i386/i386.c (ix86_decompose_address): Use
5267 DEFAULT_TLS_SEG_REG to access TLS segment register.
5268 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5269 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5270 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5272 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
5275 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5276 sibling calls to functions that would normally be lazily bound,
5277 unless $gp is call-clobbered.
5279 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
5281 * config/i386/i386.c (ix86_option_override_internal): Update
5282 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5283 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5284 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
5285 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5287 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5289 2013-05-15 Andreas Schwab <schwab@suse.de>
5291 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5292 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
5295 2013-05-15 Teresa Johnson <tejohnson@google.com>
5297 * loop-unroll.c (report_unroll_peel): Check decision before
5298 emitting unroll/peel message.
5300 2013-05-15 Teresa Johnson <tejohnson@google.com>
5302 * function.h (has_bb_partition): New rtl_data flag.
5303 (bb_reorder_complete): Ditto.
5304 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5305 instead of flag_reorder_blocks_and_partition.
5306 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5307 with some enhancements.
5308 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5309 * bb-reorder.c (connect_traces): Check for has_bb_partition
5310 instead of flag_reorder_blocks_and_partition.
5311 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5312 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5313 verify_hot_cold_block_grouping.
5314 (partition_hot_cold_basic_blocks): Set has_bb_partition.
5316 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5319 * config/arm/predicates.md (call_insn_operand): New predicate.
5320 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
5321 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5322 if insn is not a tail call.
5323 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5325 * config/arm/arm.h (enum reg_class): New caller save register class.
5326 (REG_CLASS_NAMES): Likewise.
5327 (REG_CLASS_CONTENTS): Likewise.
5328 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5331 2013-05-15 Richard Biener <rguenther@suse.de>
5333 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5334 of MSG_OPTIMIZED_LOCATIONS.
5335 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5336 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5338 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5339 of MSG_OPTIMIZED_LOCATIONS.
5340 (execute_vect_slp): Likewise.
5341 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5342 (vect_create_cond_for_alias_checks): Likewise.
5343 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5344 (vect_recog_widen_mult_pattern): Likewise.
5345 (vect_recog_widen_sum_pattern): Likewise.
5346 (vect_recog_over_widening_pattern): Likewise.
5347 (vect_recog_widen_shift_pattern): Likewise.
5348 (vect_recog_vector_vector_shift_pattern): Likewise.
5349 (vect_recog_divmod_pattern): Likewise.
5350 (vect_recog_mixed_size_cond_pattern): Likewise.
5351 (vect_recog_bool_pattern): Likewise.
5352 (vect_pattern_recog_1): Likewise.
5354 2013-05-15 Martin Jambor <mjambor@suse.cz>
5356 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5357 non-functions to builtin_unreachable.
5358 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5359 correct when new direct edges were discovered.
5361 2013-05-15 Martin Jambor <mjambor@suse.cz>
5363 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5364 header, print symbol order instead of node uid, print more information
5365 about indirect edge targets.
5366 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5368 (ipa_make_edge_direct_to_target): Likewise.
5369 (remove_described_reference): Likewise.
5370 (propagate_controlled_uses): Likewise.
5371 (ipa_print_node_params): Also print symbol order.
5372 (ipcp_transform_function): Print symbol order instead of node uids.
5373 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5374 (cgraph_get_create_real_symbol_node): Likewise.
5375 * ipa-cp.c (print_lattice): Likewise.
5376 (print_all_lattices): Likewise.
5377 (determine_versionability): Likewise.
5378 (initialize_node_lattices): Likewise.
5379 (estimate_local_effects): Likewise.
5380 (update_profiling_info): Likewise.
5381 (create_specialized_node): Likewise.
5382 (perhaps_add_new_callers): Likewise.
5383 (decide_about_value): Likewise.
5384 (decide_whether_version_node): Likewise.
5385 (identify_dead_nodes): Likewise.
5386 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5387 (dump_inline_summary): Likewise.
5388 (estimate_node_size_and_time): Likewise.
5389 (inline_analyze_function): Likewise.
5390 * ipa-inline.c (report_inline_failed_reason): Likewise.
5391 (want_early_inline_function_p): Likewise.
5392 (edge_badness): Likewise.
5393 (update_edge_key): Likewise.
5394 (inline_small_functions): Likewise. Add dumping of order to two other
5396 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5397 instead of node uids.
5398 (propagate_pure_const): Likewise.
5399 (propagate_pure_const): Likewise.
5400 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5401 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5402 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5404 * tree-pretty-print.c (dump_function_header): Likewise.
5405 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5406 Print symbol order instead of node uids.
5408 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5410 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5411 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5413 2013-05-15 Richard Biener <rguenther@suse.de>
5415 PR tree-optimization/57275
5416 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5417 return value for fail to do runtime alias checks for gather loads.
5419 2013-05-15 Jan Hubicka <jh@suse.cz>
5423 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5424 weakrefs are not external.
5425 (lto_symtab_merge_decls): Fix thinko when dealing with
5426 non-lto_symtab decls.
5427 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5428 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5429 * varpool.c (dump_varpool_node): Dump more flags.
5431 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5433 * config/i386/i386.c (processor_alias_table): Add instruction
5434 FSGSBASE for AMD bdver3 architecture.
5436 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5438 * tree.c (warn_deprecated_use): Print file:line using locus color.
5439 * diagnostic.c (diagnostic_report_current_module): Print file:line
5440 and file:line:column using locus color.
5442 2013-05-14 Mike Stump <mikestump@comcast.net>
5444 * gdbinit.in: Add __null.
5446 2013-05-14 Mike Stump <mikestump@comcast.net>
5448 * recog.h: Rename struct recog_data to Recog_data.
5449 * recog.c: Likewise.
5450 * reload.c (can_reload_into): Likewise.
5451 * config/picochip/picochip.c: Likewise.
5453 2013-05-14 Mike Stump <mikestump@comcast.net>
5455 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5457 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5459 * resource.h (struct resources): Remove unch_memory member.
5460 (CLEAR_RESOURCE): Don't clear unch_memory.
5461 * resource.c (mark_referenced_resources): Don't set it.
5462 (mark_set_resources): Likewise.
5463 (mark_target_live_regs): Don't clear it.
5464 (init_resource_info): Likewise.
5465 * reorg.c (resource_conflicts_p): Don't compare it.
5466 (redundant_insn): Don't set it.
5468 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5470 * emit-rtl.c (next_label): Remove unused function.
5471 (skip_consecutive_labels, link_cc0_insns): Move to ...
5472 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5473 only place where these functions are used, and make them static.
5475 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5477 * fold-const.c (fold_negate_expr): Handle vectors.
5478 (fold_truth_not_expr): Make it static.
5479 (fold_invert_truthvalue): New static function.
5480 (invert_truthvalue_loc): Handle vectors. Do not call
5481 fold_truth_not_expr directly.
5482 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5483 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5484 (fold_comparison): Handle vector constants.
5485 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5486 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5487 * tree.h (fold_truth_not_expr): Remove declaration.
5489 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5491 * config/aarch64/aarch64-simd.md
5492 (aarch64_vcond_internal<mode>): Rename to...
5493 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5494 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5495 float modes. Clarify all iterator modes.
5496 (vcond<mode><mode>): Use new name for vcond expanders.
5497 (vcond<v_cmp_result><mode>): Likewise.
5498 (vcondu<mode><mode>: Likewise.
5499 * config/aarch64/iterators.md (VDQF_COND): New.
5501 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
5504 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5505 variable for the shift amount. Check that we shift by non-negative
5508 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5511 * config/arm/arm.h (EPILOGUE_USES): Only return true
5512 for LR_REGNUM after epilogue_completed.
5514 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5516 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
5519 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5522 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5523 and Solaris 11+/x86 with gld.
5524 * configure: Regenerate.
5526 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5528 * expmed.c (expand_shift_1): Canonicalize rotates by
5529 constant bitsize / 2 to bitsize - 1.
5530 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
5531 case ROTATERT>: Likewise.
5534 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5536 * config/i386/i386.md (rotateinv): New code attr.
5537 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5538 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5539 roll $31, %eax, etc.
5541 2013-05-14 Richard Biener <rguenther@suse.de>
5544 * tree-eh.c (sink_clobbers): Give up for successors with
5545 multiple predecessors and no virtual uses.
5547 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5549 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5550 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5552 2013-05-14 Jakub Jelinek <jakub@redhat.com>
5555 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5556 the case when both op0 and op1 have VOIDmode.
5558 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5560 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5561 in multiply-accumulate mode.
5563 2013-05-13 Guozhi Wei <carrot@google.com>
5565 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5567 2013-05-13 Kai Tietz <ktietz@redhat.com>
5570 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
5571 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
5572 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
5573 * config/i386/i386.c (ix86_option_override_internal): Likewise.
5574 (ix86_expand_prologue): Likewise.
5575 (ix86_expand_split_stack_prologue): Likewise.
5576 (legitimate_pic_address_disp_p): Likewise.
5577 (legitimize_pic_address): Likewise.
5578 (legitimize_tls_address): Likewise.
5579 (legitimize_pe_coff_symbol): Likewise.
5580 (output_pic_addr_const): Likewise.
5581 (construct_plt_address): Likewise.
5582 (ix86_expand_call): Likewise.
5583 (x86_output_mi_thunk): Likewise.
5584 (x86_function_profiler): Likewise.
5586 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5588 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5589 similar switch cases.
5590 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5591 (aarch64_simd_mov_to_<mode>low): Delete.
5592 (aarch64_simd_mov_to_<mode>high): Delete.
5593 (move_lo_quad_<mode>): Add w<-r alternative.
5594 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5595 (aarch64_simd_mov_from_*): Update type attribute.
5596 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5599 2013-05-13 Jan Hubicka <jh@suse.cz>
5601 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5602 * config/i386/i386.c (ix86_compute_frame_layout,
5603 ix86_expand_epilogue, emit_i387_cw_initialization,
5604 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5605 ix86_local_alignment): Fix use of size/speed predicates.
5607 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5609 PR tree-optimization/45216
5610 PR tree-optimization/57157
5611 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
5612 the (-Y) & (B - 1) variant if OP is |.
5613 * expmed.c (expand_shift_1): For rotations by const0_rtx just
5614 return shifted. Use (-op1) & (prec - 1) as other_amount
5615 instead of prec - op1.
5617 2013-05-13 Martin Jambor <mjambor@suse.cz>
5620 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
5621 (ipa_constant_data): New type.
5622 (ipa_jump_func): Use ipa_constant_data to hold information about
5623 constant jump functions.
5624 (ipa_get_jf_constant): Adjust to jump function type changes.
5625 (ipa_get_jf_constant_rdesc): New function.
5626 (ipa_param_descriptor): New field controlled_uses.
5627 (ipa_get_controlled_uses): New function.
5628 (ipa_set_controlled_uses): Likewise.
5629 * ipa-ref.h (ipa_find_reference): Declare.
5630 * ipa-prop.c (ipa_cst_ref_desc): New type.
5631 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
5633 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
5634 New parameter cs. Adjust all callers.
5635 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
5636 (remove_described_reference): New function.
5637 (jfunc_rdesc_usable): Likewise.
5638 (try_make_edge_direct_simple_call): Decrement controlled use count,
5639 attempt to remove reference if it hits zero.
5640 (combine_controlled_uses_counters): New function.
5641 (propagate_controlled_uses): Likewise.
5642 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
5643 (ipa_edge_duplication_hook): Duplicate reference descriptions.
5644 (ipa_print_node_params): Print described use counter.
5645 (ipa_write_jump_function): Adjust to jump function type changes.
5646 (ipa_read_jump_function): New parameter CS, pass it to
5647 ipa_set_jf_constant. Adjust caller.
5648 (ipa_write_node_info): Stream controlled use count
5649 (ipa_read_node_info): Likewise.
5650 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
5652 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
5653 count. Remove cloning-added reference if it reaches zero.
5654 * ipa-ref.c (ipa_find_reference): New function.
5656 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5658 * config/i386/i386.c (processor_target_table): Modified default
5659 alignment values for AMD BD and BT architectures.
5661 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
5663 * tree-vect-generic.c (uniform_vector_p): Move ...
5664 * tree.c (uniform_vector_p): ... here.
5665 * tree.h (uniform_vector_p): Declare it.
5666 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
5669 2013-05-13 Jakub Jelinek <jakub@redhat.com>
5671 PR tree-optimization/57230
5672 * tree-ssa-strlen.c (handle_char_store): Record length for
5673 array store from STRING_CST.
5675 PR tree-optimization/57230
5676 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
5679 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
5681 * config/epiphany/epiphany.c (epiphany_init): Check size of
5682 NUM_MODES_FOR_MODE_SWITCHING.
5683 (epiphany_expand_prologue):
5684 Remove CONFIG_REGNUM initial value handling code.
5685 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
5686 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
5687 (emit_set_fp_mode, epiphany_mode_after): Likewise.
5688 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
5689 Don't return 1 for FP_MODE_NONE.
5690 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
5691 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
5692 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
5693 * config/epiphany/epiphany.md (save_config): New pattern.
5695 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
5697 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
5699 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
5701 * config/i386/i386.md (memory): Handle sseishft1.
5702 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
5703 (*vec_extractv2di_1): Ditto.
5705 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
5707 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
5710 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
5712 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
5713 Add mthumb/march=armv7-a multilib.
5714 Add mthumb/march=armv7-r multilib.
5715 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
5717 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
5719 * config/v850/t-rtems: Add more multilibs.
5721 2013-05-10 Richard Biener <rguenther@suse.de>
5723 PR tree-optimization/57214
5724 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
5725 not propagate from SSA names that occur in abnormal PHI nodes.
5727 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
5729 * stor-layout.c (element_precision): New function.
5730 * machmode.h (element_precision): Declare it.
5731 * tree.c (build_minus_one_cst): New function.
5732 (element_precision): Likewise.
5733 * tree.h (build_minus_one_cst): Declare new function.
5734 (element_precision): Likewise.
5735 * fold-const.c (operand_equal_p): Use element_precision.
5736 (fold_binary_loc): Handle vector types.
5737 * convert.c (convert_to_integer): Use element_precision.
5738 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
5741 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
5743 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
5744 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
5745 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
5746 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5747 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
5748 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
5749 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
5750 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
5751 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
5752 (Uuw8): New constraints.
5753 (Usb4): Move into alphabetical order.
5754 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
5755 (sd8_operand, ub8_operand, uw8_operand): New predicates.
5756 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
5757 previously unnamed patterns.
5758 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
5759 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
5760 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
5761 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
5762 of set_attr_alternative/if_then_else. Use extended_mips16 instead
5763 of specific lengths.
5765 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5767 * config/i386/i386.md (rotateinv): New code attr.
5768 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5769 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5770 roll $31, %eax, etc.
5772 PR tree-optimization/45216
5773 PR tree-optimization/57157
5774 * tree-ssa-forwprop.c (simplify_rotate): New function.
5775 (ssa_forward_propagate_and_combine): Call it.
5777 2013-05-10 Richard Biener <rguenther@suse.de>
5779 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5780 disable peeling when we version for aliasing.
5781 (vector_alignment_reachable_p): Honor explicit user alignment.
5782 (vect_supportable_dr_alignment): Likewise.
5783 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
5784 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
5785 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
5786 then peeling to arrange for the cost-model check to come first.
5788 2013-05-10 Alan Modra <amodra@gmail.com>
5790 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
5791 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
5792 * configure: Regenerate.
5794 2013-05-10 Alan Modra <amodra@gmail.com>
5797 * varasm.c (default_elf_select_section): Move !DECL_P check..
5798 (get_named_section): ..to here before calling get_section_name.
5800 (default_section_type_flags): Add DECL_P check.
5801 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
5802 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
5804 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
5806 * config/epiphany/epiphany.c (epiphany_expand_prologue):
5807 When using gen_stack_adjust_str with a register offset, add a
5808 REG_FRAME_RELATED_EXPR note.
5810 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
5812 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
5813 (*vec_extractv4si_zext_mem): Ditto.
5814 (*vec_extractv2di): Add 0->x and x->x alternatives.
5815 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
5816 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
5818 2013-05-09 Jason Merrill <jason@redhat.com>
5820 N3639 C++1y VLA support
5821 * gimplify.c (gimplify_vla_decl): Don't touch an existing
5824 * tree.c (build_constructor_va): New.
5825 * tree.h: Declare it.
5827 2013-05-09 Martin Jambor <mjambor@suse.cz>
5830 * gimple-fold.c (canonicalize_constructor_val): Call
5831 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
5833 2013-05-09 Jan Hubicka <jh@suse.cz>
5834 Richard Biener <rguenther@suse.de>
5837 * symtab.c (symtab_make_decl_local): Do not add private names.
5839 2013-05-09 Jan Hubicka <jh@suse.cz>
5842 * symtab.c (insert_to_assembler_name_hash): Handle clones.
5843 (unlink_from_assembler_name_hash): Likewise.
5844 (symtab_prevail_in_asm_name_hash, symtab_register_node,
5845 symtab_unregister_node, symtab_initialize_asm_name_hash,
5846 change_decl_assembler_name): Update.
5848 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
5850 * config/aarch64/aarch64.md: New movtf split.
5851 (*movtf_aarch64): Update.
5852 (aarch64_movdi_tilow): Handle TF modes and rename to
5853 aarch64_movdi_<mode>low.
5854 (aarch64_movdi_tihigh): Handle TF modes and rename to
5855 aarch64_movdi_<mode>high
5856 (aarch64_movtihigh_di): Handle TF modes and rename to
5857 aarch64_mov<mode>high_di
5858 (aarch64_movtilow_di): Handle TF modes and rename to
5859 aarch64_mov<mode>low_di
5860 (aarch64_movtilow_tilow): Remove spurious whitespace.
5861 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
5863 (aarch64_print_operand): Update.
5865 2013-05-09 Alan Modra <amodra@gmail.com>
5867 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
5869 * configure: Regenerate.
5871 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
5873 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
5874 splitter preparation statements.
5875 * config/i386/sse.md (*vec_extract* splitters): Ditto.
5876 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
5879 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5881 * gimple-ssa-strength-reduction.c (count_candidates): Change
5882 return value to int.
5883 (analyze_candidates_and_replace): Change type of length to int.
5885 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
5887 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
5888 (*vec_extract<mode>): Use VI12_128 mode iterator.
5889 (*vec_extract<mode>_mem): Ditto.
5890 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
5893 2013-05-08 Diego Novillo <dnovillo@google.com>
5898 2012-08-17 Diego Novillo <dnovillo@google.com>
5901 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5902 * config.in: Regenerate.
5903 * configure: Regenerate.
5904 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
5906 2013-05-08 Jan Hubicka <jh@suse.cz>
5909 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5910 * cgraph.h (symtab_node_base): Add unique_name.
5911 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5912 input_overwrite_node, input_varpool_node): Stream unique_name.
5913 * cgraphclones.c (cgraph_create_virtual_clone,
5914 cgraph_function_versioning): Set unique_name.
5915 * ipa.c (function_and_variable_visibility): Set unique_name.
5917 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5919 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5920 (alloc_cand_and_find_basis): Restrict conditional candidate
5921 processing to CAND_MULTs.
5923 2013-05-08 Jan Hubicka <jh@suse.cz>
5926 lto-symtab.c (lto_symtab_symbol_p): New function.
5927 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5928 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5929 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5930 Skip static symbols.
5932 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
5934 PR tree-optimization/57200
5935 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5936 Only call inform if the preceding warning_at returns true.
5938 2013-05-07 Han Shen <shenhan@google.com>
5940 * cfgexpand.c (record_or_union_type_has_array_p): New function.
5941 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5942 * common.opt (fstack-protector-strong): New option.
5943 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5944 * doc/invoke.texi (Optimization Options): Document
5945 "-fstack-protector-strong".
5946 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5948 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5950 * config/mips/mips.c (mips_machine_reorg2): Return 0.
5952 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
5954 * ira.c (update_equiv_regs): Add insn having equiv memory even if
5955 it is not lhs of the insn.
5956 (setup_reg_equiv): Remove insn having equiv memory which it is not
5958 * lra-constraints.c (process_address): Try to improve generation
5959 code for address base + disp.
5960 (lra_constraints): Make correct the code for checking insn setting
5961 up backward equivalence. Remove insn only if it is in the init
5963 * lra-eliminations.c (update_reg_eliminate): Change return value.
5964 (lra_eliminate): Use the result.
5966 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
5968 * config/i386/sse.md (ssescalarnummask): New mode attribute.
5969 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5970 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5971 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5972 register target operands.
5973 (*vec_extractv8hi_sse2): New pattern.
5974 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5975 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5976 (*vec_extract<mode>_mem): New insn and split pattern.
5978 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
5980 * config/arm/arm.c (arm_asan_shadow_offset): New function.
5981 (TARGET_ASAN_SHADOW_OFFSET): Define.
5982 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5983 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5985 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5987 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5988 (incr_vec_index): Return -1 if increment not found.
5989 (create_add_on_incoming_edge): Assert if increment not found.
5990 (record_increment): Limit number of increments recorded.
5991 (all_phi_incrs_profitable): Return false if an increment not found.
5992 (replace_profitable_candidates): Don't process increments that were
5994 (analyze_candidates_and_replace): Limit size of incr_vec.
5996 2013-05-07 Richard Biener <rguenther@suse.de>
5998 * calls.c (special_function_p): setjmp-like functions are leaf.
5999 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
6000 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
6002 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
6004 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
6005 (aarch64_simd_mov<mode>): New expander.
6006 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
6007 (aarch64_simd_mov_to_<mode>high): Likewise.
6008 (aarch64_simd_mov_from_<mode>low): Likewise.
6009 (aarch64_simd_mov_from_<mode>high): Likewise.
6010 (aarch64_dup_lane<mode>): Update.
6011 (aarch64_dup_lanedi): New instruction pattern.
6012 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
6013 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
6015 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6017 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
6018 (replace_mult_candidate): Remove unnecessary argument; remove
6019 unnecessary parameter from call to introduce_cast_before_cand.
6020 (replace_unconditional_candidate): Remove unnecessary parameter
6021 from call to replace_mult_candidate.
6022 (replace_conditional_candidate): Likewise.
6023 (insert_initializers): Use make_temp_ssa_name.
6024 (introduce_cast_before_cand): Remove unnecessary argument; use
6026 (replace_one_candidate): Remove unnecessary argument; remove
6027 unnecessary parameter from calls to introduce_cast_before_cand.
6028 (replace_profitable_candidates): Remove unnecessary parameters
6029 from calls to replace_one_candidate.
6031 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6033 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
6034 phi def as possibly hiding a basis for a CAND_ADD whose operands
6035 have been commuted in the analysis.
6036 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
6038 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6040 * config/aarch64/aarch64.md
6041 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
6042 shift value between 0-4.
6044 2013-05-07 Richard Biener <rguenther@suse.de>
6046 * double-int.h (rshift): New overload.
6047 * double-int.c (rshift): New function.
6048 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
6049 (create_reference_ops_from_ref): Remove.
6050 (vn_reference_insert): Use shared ops for constructing the
6051 reference and copy it.
6053 2013-05-07 Richard Biener <rguenther@suse.de>
6056 * tree-eh.c (sink_clobbers): Properly propagate
6057 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6059 2013-05-07 Jakub Jelinek <jakub@redhat.com>
6061 PR tree-optimization/57149
6062 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
6063 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
6064 collect_phi_def_edges, execute_late_warn_uninitialized): Use
6065 uninit_undefined_value_p instead of ssa_undefined_value_p.
6068 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
6069 for modifier == EXPAND_INITIALIZER.
6071 2013-05-07 Anton Blanchard <anton@samba.org>
6073 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6074 for powerpc64 little endian.
6075 * configure: Regenerate.
6077 2013-05-06 Graham Stott <grahams@btinternet.com>
6079 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6080 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6081 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6082 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6084 2013-05-06 Graham Stott <grahams@btinternet.com>
6086 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6087 codes which allow non-lvalues.
6089 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
6091 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6092 components are all 1s.
6093 (integer_minus_onep): New function.
6094 * tree.h (integer_minus_onep): Declare it.
6095 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6096 integer_minus_onep instead of integer_all_onesp.
6098 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6101 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6102 variations of these patterns.
6104 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6106 * config/i386/i386.md (isa): Add x64_sse4 member.
6107 (enabled): Handle x64_sse4.
6108 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6109 instruction for 64bit SSE4_1 targets. Update insn attributes.
6110 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6111 instruction for SSE4_1 targets. Update insn attributes.
6112 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6113 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6114 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6116 (*vec_extractv4si): Rename from *sse4_1_pextrd.
6117 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6118 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6120 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6123 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6125 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
6127 * final.c (do_assembler_dialects): Don't handle curly braces and
6128 vertical bar escaped by % as dialect delimiters.
6129 (output_asm_insn): Print curly braces and vertical bar if escaped
6130 by % and ASSEMBLER_DIALECT defined.
6131 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6132 * doc/tm.texi: Regenerated.
6134 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6136 * config/mips/mips.c: Include tree-pass.h.
6137 (mips_reorg): Split in pre- and post-dbr_schedule parts.
6138 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6139 (pass_mips_machine_reorg2): New machine specific pass.
6140 (insert_pass_mips_machine_reorg2): New pass plugin definition.
6141 (mips_option_override): Register the new pass.
6142 * rtl.h (cleanup_barriers): Remove prototype.
6143 (dbr_schedule): Likewise.
6144 * jump.c (cleanup_barriers): Make static.
6145 * reorg.c (dbr_schedule): Likewise.
6147 2013-05-06 Richard Biener <rguenther@suse.de>
6149 PR tree-optimization/57185
6150 * tree-parloops.c (add_field_for_reduction): Handle anonymous
6153 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
6156 * config/i386/i386.c (add_parameter_dependencies): Add dependence
6157 between "first_arg" and "insn", not "last" and "insn".
6159 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6161 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6162 (find_candidates_in_block): Re-enable slsr_process_phi.
6163 (create_phi_basis): Fix double counting of candidate adjustment.
6165 2013-05-06 Richard Biener <rguenther@suse.de>
6168 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6169 the edge is also fallthru, preserve it and just clear the
6171 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6172 also complex, preserve that and just clear the fallthru flag.
6173 * tree-inline.c (update_ssa_across_abnormal_edges): Also
6174 update virtual operands.
6176 2013-05-06 Alan Modra <amodra@gmail.com>
6178 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6179 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6180 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6181 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6182 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6183 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6185 2013-05-06 Alan Modra <amodra@gmail.com>
6187 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6188 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
6189 (DEFAULT_ASM_ENDIAN): Define.
6190 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6191 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6192 Update -K PIC clause from sysv4.h.
6193 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6194 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6196 2013-05-06 Alan Modra <amodra@gmail.com>
6198 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6199 twice for little-endian.
6200 (ashrdi3_no_power, ashrdi3): Support little-endian.
6202 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6205 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6206 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6208 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6209 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6210 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6213 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
6214 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6216 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6217 * config/pa/pa.opt: Make mbig-switch a no-op.
6218 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6219 (CASE_VECTOR_MODE): Always return SImode.
6220 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6221 for the !TARGET_BIG_SWITCH case.
6222 * config/pa/pa-linux.h: Likewise.
6223 * config/pa/pa-openbsd.h: Likewise.
6224 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6225 * config/pa/pa.md (short_jump): Remove define_insn.
6226 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6227 (casesi0): Remove define_insn.
6228 (type): Remove btable_branch.
6229 (pa_combine_type): Likewise.
6230 (in_nullified_branch_delay): Likewise.
6231 (in_call_delay): Likewise.
6232 (define_delay): Likewise.
6233 (define_insn_reservation "Z3"): Likewise.
6234 (define_insn_reservation "Z4"): Likewise.
6235 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6236 (pa_adjust_insn_length): Remove adjustment for btable branches.
6237 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6240 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
6242 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6243 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6244 Add m->r,x alternatives.
6245 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6246 splitters using SWI48x mode iterator.
6247 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
6248 TARGET_64BIT. Add m->x alternative.
6249 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6250 Add o->x alternative. Enable for TARGET_SSE.
6251 (sse_storeq): Remove expander.
6252 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6253 with memory input operand.
6254 (*vec_extractv2di_1 splitter): New.
6255 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6256 * config/i386/i386.md (ssevecmodelower): New mode attribute.
6258 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6260 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
6261 (INT_LOWPART): Delete.
6262 (extract_MB): Adjust.
6263 (extract_ME): Adjust.
6264 (print_operand): Adjust.
6266 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6268 * config/rs6000/predicates.md (reg_or_add_cint_operand,
6269 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6270 (reg_or_logical_cint_operand, easy_fp_constant,
6271 logical_const_operand): Delete "CONST_DOUBLE" case.
6272 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6273 "HOST_BITS_PER_WIDE_INT == 64" test.
6274 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
6275 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6276 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6277 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6279 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6280 CONST_DOUBLE DImode/VOIDmode case.
6281 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6282 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6283 CONST_DOUBLE VOIDmode case.
6284 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6285 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6286 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6287 Delete CONST_DOUBLE case.
6288 (splitters for mov FMOVE64 const_double): Delete
6289 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6290 "HOST_BITS_PER_WIDE_INT >= 64" test.
6291 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6293 (mov DI const_double): Delete.
6295 2013-05-04 Jakub Jelinek <jakub@redhat.com>
6297 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6298 on op shows all bits zero in mode of a lowpart subreg, return zero.
6300 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6303 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6304 to save TFmode registers and DImode to save TImode registers for
6305 caller save operations.
6306 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6307 mark being partially clobbered since they only use the first
6310 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6311 and TDmode only use the upper 64-bits of each VSX register.
6313 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6315 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6316 (find_candidates_in_block): Disable slsr_process_phi.
6318 2013-05-03 Guozhi Wei <carrot@google.com>
6320 * coverage.c (coverage_obj_init): Move the construction of gcov
6322 (build_init_ctor): ... here.
6324 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6326 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6327 (slsr_cand_d): Redefine def_phi.
6328 (stride_status, phi_adjust_status, count_phis_status): New enums.
6329 (find_phi_def): New.
6330 (find_basis_for_base_expr): New.
6331 (find_basis_for_candidate): Handle hidden bases.
6332 (alloc_cand_and_find_basis): Handle phi candidates.
6333 (slsr_process_phi): New.
6334 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6335 (create_mul_imm_cand): Likewise.
6336 (create_add_ssa_cand): Exclude phi base candidates.
6337 (create_add_imm_cand): Likewise.
6338 (slsr_process_cast): Likewise.
6339 (slsr_process_copy): Likewise.
6340 (find_candidates_in_block): Handle phi candidates.
6341 (dump_candidate): Likewise.
6342 (unconditional_cands): Delete.
6343 (unconditional_cands_with_known_stride_p): Delete.
6344 (phi_dependent_cand_p): New.
6345 (cand_increment): Handle phi-dependent candidates.
6346 (replace_dependent): Delete.
6347 (replace_mult_candidate): New.
6348 (replace_unconditional_candidate): New.
6349 (incr_vec_index): Move to avoid forward reference.
6350 (create_add_on_incoming_edge): New.
6351 (create_phi_basis): New.
6352 (replace_dependents): Delete.
6353 (replace_conditional_candidate): New.
6354 (phi_add_costs): New.
6355 (replace_uncond_cands_and_profitable_phis): New.
6356 (record_increment): Handle phi adjustments.
6357 (record_phi_increments): New.
6358 (record_increments): Handle phi adjustments.
6359 (phi_incr_cost): New.
6360 (lowest_cost_path): Handle phis.
6361 (total_savings): Likewise.
6362 (analyze_increments): Likewise.
6363 (ncd_with_phi): New.
6364 (ncd_of_cand_and_phis): New.
6365 (nearest_common_dominator_for_cands): Handle phi increments.
6366 (all_phi_incrs_profitable): New.
6367 (replace_profitable_candidates): Handle phi-dependent candidates.
6368 (analyze_candidates_and_replace): Likewise.
6370 2013-05-03 Teresa Johnson <tejohnson@google.com>
6373 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6374 do not exceed REG_BR_PROB_BASE.
6376 2013-05-03 Jeff Law <law@redhat.com>
6378 PR tree-optimization/57144
6379 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6380 operand of the condition will bit into the new type when eliminating
6381 a cast feeding a condition.
6383 2013-05-03 Jakub Jelinek <jakub@redhat.com>
6385 PR rtl-optimization/57130
6386 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6387 of COMPARE as in_code to the recursive call if needed.
6389 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
6391 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6392 (enabled): Handle new members.
6393 * config/i386/sse.md (*vec_concatv2si): Merge from
6394 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6395 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6397 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6399 PR tree-optimization/57027
6400 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6401 for fnms opportunity, check we got the prerequisite kind
6402 of tree / gimple before using accessor functions.
6404 2013-05-03 Richard Biener <rguenther@suse.de>
6406 * double-int.h (lshift): New overload without precision
6408 (operator *=, operator +=, operator -=): Move ...
6409 * double-int.c (operator *=, operator +=, operator -=): ... here
6410 and implement more efficiently.
6411 (mul_double_with_sign): Remove.
6412 (lshift_double): Adjust to take unsinged shift argument, push
6413 dispatching code to callers.
6414 (mul_double_wide_with_sign): Add early out for callers that
6415 are not interested in high parts or overflow.
6416 (lshift): New function.
6417 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6419 (lrotate, rrotate): Use logical shifts.
6420 * expr.c (get_inner_reference): Use lshift.
6421 * fixed-value.c (do_fixed_divide): Likewise.
6422 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6423 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6424 (indirect_refs_may_alias_p): Likewise.
6425 (stmt_kills_ref_p_1): Likewise.
6427 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6429 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6431 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6433 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6434 scalar form of FABD instruction.
6436 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6438 * lra-constraints.c (process_alt_operands): Add checking alt
6439 number to choose the best alternative.
6441 2013-05-02 Richard Biener <rguenther@suse.de>
6443 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6444 bitmap and its handling.
6445 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6447 2013-05-02 Richard Biener <rguenther@suse.de>
6450 * tree-inline.c (copy_loops): Properly handle removed loops.
6451 (copy_cfg_body): Mark destination loops for fixup if source
6454 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6457 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6458 generating simple_return for naked functions.
6460 2013-05-02 Martin Jambor <mjambor@suse.cz>
6463 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6464 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6466 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6467 ipa_agg_replacement_value structures.
6468 (known_aggs_to_agg_replacement_list): Likewise.
6469 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6470 (read_agg_replacement_chain): Likewise.
6471 (ipcp_transform_function): Also check that by_ref flags match.
6473 2013-05-02 Richard Biener <rguenther@suse.de>
6475 * graphds.h (struct graph): Add obstack member.
6476 * graphds.c (new_graph): Initialize obstack and allocate
6478 (add_edge): Allocate edge from the obstack.
6479 (free_graph): Free the obstack instead of all edges and vertices.
6481 2013-05-02 Teresa Johnson <tejohnson@google.com>
6483 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6485 * cfg.c (update_bb_profile_for_threading): Ditto.
6486 * tree-inline.c (copy_bb): Ditto.
6487 (copy_edges_for_bb): Ditto.
6488 (initialize_cfun): Ditto.
6489 (copy_cfg_body): Ditto.
6490 (expand_call_inline): Ditto.
6491 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6492 (estimate_node_size_and_time): Ditto.
6493 (inline_merge_summary): Ditto.
6494 * cgraphclones.c (cgraph_clone_edge): Ditto.
6495 (cgraph_clone_node): Ditto.
6496 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6497 (compute_trg_info): Ditto.
6499 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6501 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6502 S reg when fp attribute set.
6503 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6505 2013-05-02 Ian Bolton <ian.bolton@arm.com>
6507 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6509 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6510 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6511 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6513 2013-05-02 Richard Biener <rguenther@suse.de>
6515 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6516 (struct instantiate_cache_entry): New type.
6517 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6518 (struct instantiate_cache_type): New type.
6519 (set_instantiated_value, get_instantiated_value): Remove.
6520 (get_instantiated_value_entry): New function.
6521 (instantiate_scev_name): Use the new cache and adjust.
6522 (instantiate_scev_poly): Adjust.
6523 (instantiate_scev_binary): Likewise.
6524 (instantiate_array_ref): Likewise.
6525 (instantiate_scev_convert): Likewise.
6526 (instantiate_scev_not): Likewise.
6527 (instantiate_scev_3): Likewise.
6528 (instantiate_scev_2): Likewise.
6529 (instantiate_scev_r): Likewise.
6530 (instantiate_scev): Likewise.
6531 (resolve_mixers): Likewise.
6533 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6536 * lra-constraints.c (best_small_class_operands_num): Remove.
6537 (process_alt_operands): Remove small_class_operands_num. Take
6538 small classes operands into losers and only if the operand is not
6539 matched. Modify debugging output.
6540 (curr_insn_transform): Remove best_small_class_operands_num.
6543 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6545 * config/aarch64/aarch64-builtins.c
6546 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6547 * config/aarch64/aarch64-simd-builtins.def
6548 (reduc_splus_): Add new modes.
6549 (reduc_uplus_): New.
6550 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6551 (reduc_uplus_v4sf): Likewise.
6552 (reduc_splus_v4sf): Likewise.
6553 (aarch64_addv<mode>): Likewise.
6554 (reduc_uplus_<mode>): Likewise.
6555 (reduc_splus_<mode>): Likewise.
6556 (aarch64_addvv2di): Likewise.
6557 (reduc_uplus_v2di): Likewise.
6558 (reduc_splus_v2di): Likewise.
6559 (aarch64_addvv2si): Likewise.
6560 (reduc_uplus_v2si): Likewise.
6561 (reduc_splus_v2si): Likewise.
6562 (reduc_<sur>plus_<mode>): New.
6563 (reduc_<sur>plus_v2di): Likewise.
6564 (reduc_<sur>plus_v2si): Likewise.
6565 (reduc_<sur>plus_v4sf): Likewise.
6566 (aarch64_addpv4sf): Likewise.
6567 * config/aarch64/arm_neon.h
6568 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6569 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6570 add UNSPEC_SADDV, UNSPEC_UADDV.
6572 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6574 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6576 * config/aarch64/arm_neon.h
6577 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6579 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6581 * config/aarch64/aarch64-builtins
6582 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6584 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6586 * config/aarch64/aarch64-simd-builtins.def
6588 (reduc_smin_): Likewise.
6589 (reduc_umax_): Likewise.
6590 (reduc_umin_): Likewise.
6591 (reduc_smax_nan_): Likewise.
6592 (reduc_smin_nan_): Likewise.
6595 (smax): Update for V2SF, V4SF and V2DF modes.
6598 (smin_nan): Likewise.
6599 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6600 (<su><maxmin><mode>3): ...This, refactor.
6601 (s<maxmin><mode>3): New.
6602 (<maxmin_uns><mode>3): Likewise.
6603 (reduc_<maxmin_uns>_<mode>): Refactor.
6604 (reduc_<maxmin_uns>_v4sf): Likewise.
6605 (reduc_<maxmin_uns>_v2si): Likewise.
6606 (aarch64_<fmaxmin><mode>: Remove.
6607 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
6609 (vmin<q>_f<32,64>): Likewise.
6610 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6612 (su): Add mappings for smax, smin, umax, umin.
6614 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
6615 (FMAXMIN): Rename as...
6616 (FMAXMIN_UNS): ...This.
6618 (fmaxminv): Likewise.
6619 (fmaxmin): Likewise.
6621 (maxmin_uns_op): Likewise.
6623 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6625 * config/aarch64/arm_neon.h
6626 (vac<ge, gt><sd>_f<32, 64>): Rename to...
6627 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
6628 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
6630 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6632 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
6633 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
6635 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6637 * config/aarch64/aarch64-simd.md
6638 (vcond<mode>_internal): Handle special cases for constant masks.
6639 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
6640 (vcondu<mode><mode>): Likewise.
6641 (vcond<v_cmp_result><mode>): New.
6643 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6645 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
6646 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
6647 * config/aarch64/aarch64-simd-builtins.def
6648 (cmeq): Update to BUILTIN_VALLDI.
6653 * config/aarch64/arm_neon.h
6654 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
6655 to builtins or C as appropriate.
6657 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6659 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
6661 (cmhi): Rename to...
6663 * config/aarch64/aarch64-simd.md
6664 (simd_mode): Add SF.
6665 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
6666 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
6667 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
6668 (cstore<mode>_neg): ...This.
6669 * config/aarch64/iterators.md
6671 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
6673 (UCOMPARISONS): Likewise.
6674 (optab): Add missing comparisons.
6682 (V_cmp_result): Add DF, SF modes.
6683 (v_cmp_result): Likewise.
6686 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
6688 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
6690 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
6691 define_insn to define_insn_and_split.
6692 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
6693 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
6694 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
6695 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
6696 (thumb2_negscc): Likewise.
6698 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6700 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
6702 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
6704 * config/arm/thumb2.md: Remove trailing whitespaces.
6706 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6708 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
6709 Use gen_int_mode rather than GEN_INT.
6711 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
6713 * value-prof.c (stream_in_histogram_value): Remove the strayed
6716 2013-04-30 Richard Biener <rguenther@suse.de>
6719 * cfghooks.c (split_edge): Properly check for the loop latch edge.
6721 2013-04-30 Richard Biener <rguenther@suse.de>
6724 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
6726 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
6728 PR rtl-optimization/56957
6729 PR rtl-optimization/57105
6730 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
6731 variable. Use just INSN_UID for determining whether an insn
6732 should be only disconnected from the insn stream.
6733 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
6735 2013-04-30 Jakub Jelinek <jakub@redhat.com>
6737 PR tree-optimization/57104
6738 * tsan.c (instrument_expr): Don't instrument accesses to
6739 DECL_HARD_REGISTER VAR_DECLs.
6741 2013-04-30 Richard Biener <rguenther@suse.de>
6743 * function.h (loops_for_fn): New inline function.
6744 (set_loops_for_fn): Likewise.
6745 * cfgloop.h (place_new_loop): Add struct function parameter.
6746 (get_loop): Likewise.
6747 (get_loops): Likewise.
6748 (number_of_loops): Likewise.
6750 (fel_init): Likewise.
6751 * cfg.c (get_loop_copy): Adjust.
6752 * cfgloop.c (flow_loops_dump): Likewise.
6753 (record_loop_exits): Likewise.
6754 (verify_loop_structure): Likewise.
6755 * cfgloopanal.c (mark_irreducible_loops): Likewise.
6756 (estimate_reg_pressure_cost): Likewise.
6757 (mark_loop_exit_edges): Likewise.
6758 * cfgloopmanip.c (place_new_loop): Likewise.
6759 (add_loop): Likewise.
6760 (duplicate_loop): Likewise.
6761 * graph.c (draw_cfg_nodes): Likewise.
6762 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
6763 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
6764 (extract_affine_chrec): Likewise.
6765 (build_scop_iteration_domain): Likewise.
6766 * graphite.c (graphite_initialize): Likewise.
6767 * ira-build.c (create_loop_tree_nodes): Likewise.
6768 (more_one_region_p): Likewise.
6769 (rebuild_regno_allocno_maps): Likewise.
6770 (mark_loops_for_removal): Likewise.
6771 (mark_all_loops_for_removal): Likewise.
6772 (remove_unnecessary_regions): Likewise.
6773 (ira_build): Likewise.
6774 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6775 * loop-init.c (fix_loop_structure): Likewise.
6776 (gate_rtl_move_loop_invariants): Likewise.
6777 (gate_rtl_unswitch): Likewise.
6778 (gate_rtl_unroll_and_peel_loops): Likewise.
6779 (rtl_doloop): Likewise.
6780 * lto-streamer-in.c (input_cfg): Likewise.
6781 * lto-streamer-out.c (output_cfg): Likewise.
6782 * modulo-sched.c (sms_schedule): Likewise.
6783 * predict.c (tree_estimate_probability): Likewise.
6784 (tree_estimate_probability_driver): Likewise.
6785 (estimate_loops): Likewise.
6786 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
6787 (move_sese_region_to_fn): Likewise.
6788 (debug_loop_num): Likewise.
6789 * tree-chrec.c (chrec_evaluate): Likewise.
6790 (hide_evolution_in_other_loops_than_loop): Likewise.
6791 (chrec_component_in_loop_num): Likewise.
6792 (reset_evolution_in_loop): Likewise.
6793 (evolution_function_is_invariant_rec_p): Likewise.
6794 * tree-if-conv.c (main_tree_if_conversion): Likewise.
6795 * tree-inline.c (copy_loops): Likewise.
6796 (copy_cfg_body): Likewise.
6797 (tree_function_versioning): Likewise.
6798 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
6799 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6801 (add_to_evolution_1): Likewise.
6802 (scev_const_prop): Likewise.
6803 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
6804 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
6805 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
6806 (tree_ssa_lim_initialize): Likewise.
6807 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
6808 (verify_loop_closed_ssa): Likewise.
6809 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
6810 (tree_ssa_loop_im): Likewise.
6811 (tree_ssa_loop_unswitch): Likewise.
6812 (tree_vectorize): Likewise.
6813 (check_data_deps): Likewise.
6814 (tree_ssa_loop_ivcanon): Likewise.
6815 (tree_ssa_loop_bounds): Likewise.
6816 (tree_complete_unroll): Likewise.
6817 (tree_complete_unroll_inner): Likewise.
6818 (tree_parallelize_loops): Likewise.
6819 (tree_ssa_loop_prefetch): Likewise.
6820 (tree_ssa_loop_ivopts): Likewise.
6821 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
6822 * tree-vectorizer.c (vectorize_loops): Likewise.
6824 2013-04-29 Mike Frysinger <vapier@gentoo.org>
6826 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
6827 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
6828 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
6829 with EABI_LINK_SPEC.
6831 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6834 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
6837 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
6840 * lra-constraints.c (process_alt_operands): Discourage a bit more
6841 using memory for pseudos. Print cost dump for alternatives.
6842 Modify cost values for conflicts with early clobbers.
6843 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
6845 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6848 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
6850 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6852 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
6854 (movdi_aarch64): Support LDR/STR from/to D register.
6856 2013-04-29 Ian Bolton <ian.bolton@arm.com>
6858 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
6859 or higher by default.
6861 2013-04-29 Richard Biener <rguenther@suse.de>
6864 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
6865 even if not adding abnormal edges for calls that can make
6868 2013-04-29 Richard Biener <rguenther@suse.de>
6871 * tree-cfg.c (move_stmt_op): Fix condition under which to update
6873 (move_stmt_r): Remove redundant checking.
6875 2013-04-29 Teresa Johnson <tejohnson@google.com>
6878 * basic-block.h (apply_scale): New function.
6879 (apply_probability): Use apply_scale.
6880 * gimple-streamer-in.c (input_bb): Ditto.
6881 * lto-streamer-in.c (input_cfg): Ditto.
6882 * lto-cgraph.c (merge_profile_summaries): Ditto.
6883 * tree-optimize.c (execute_fixup_cfg): Ditto.
6884 * tree-inline.c (copy_bb): Update comment to use apply_scale.
6885 (copy_edges_for_bb): Ditto.
6886 (copy_cfg_body): Ditto.
6888 2013-04-29 Tom de Vries <tom@codesourcery.com>
6890 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
6891 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
6892 (tail_merge_optimize): Handle current_loops == NULL.
6894 2013-04-26 Jeff Law <law@redhat.com>
6896 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6897 (simplify_cond_using_ranges): Generalize code to simplify
6898 COND_EXPRs where one argument is a constant and the other
6899 is an SSA_NAME created by an integral type conversion.
6901 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6903 * config/arm/arm.md (store_minmaxsi): Use only when
6904 optimize_insn_for_size_p.
6906 2013-04-29 Christian Bruel <christian.bruel@st.com>
6909 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6911 2013-04-29 Richard Biener <rguenther@suse.de>
6914 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6915 loop tree make sure to schedule a fixup for the child as well.
6916 (expand_omp_for_generic): Properly add loops.
6917 (expand_omp_for_static_nochunk): Likewise.
6918 (expand_omp_for_static_chunk): Likewise.
6919 (expand_omp_for): For the degenerate case fixup loops.
6920 (expand_omp_sections): Fix default bb placement in loops.
6921 (expand_omp_atomic_pipeline): Properly add loops.
6923 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6925 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6927 2013-04-29 Tom de Vries <tom@codesourcery.com>
6929 * tree-ssa-tail-merge.c: Update header comment.
6931 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6933 * config/aarch64/arm_neon.h
6934 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6935 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6936 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6937 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6938 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6939 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6940 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6941 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6943 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6945 * config/aarch64/aarch64-simd.md
6946 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6947 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6948 fix_trunc, fixuns_trunc.
6949 (ftrunc<VDQF:mode>2): New.
6950 * config/aarch64/iterators.md (optab): Add fix, fixuns.
6951 (fix_trunc_optab): New.
6953 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6955 * config/aarch64/aarch64-builtins.c
6956 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6957 iceilf, lround, iroundf.
6959 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
6962 * config/i386/i386.h (enum ix86_tune_indices)
6963 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6964 New, split from X86_TUNE_INTER_UNIT_MOVES.
6965 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6966 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6967 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6968 (TARGET_INTER_UNIT_MOVES): Remove.
6969 * config/i386/i386.c (initial_ix86_tune_features): Update.
6970 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6971 (ix86_expand_convert_uns_didf_sse): Use
6972 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6973 (ix86_expand_vector_init_one_nonzero): Ditto.
6974 (ix86_expand_vector_init_interleave): Ditto.
6975 (inline_secondary_memory_needed): Return true for moves from SSE class
6976 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6977 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6978 * config/i386/constraints.md (Yi, Ym): Depend on
6979 TARGET_INTER_UNIT_MOVES_TO_VEC.
6980 (Yj, Yn): New constraints.
6981 * config/i386/i386.md (*movdi_internal): Change constraints of
6982 operand 1 from Yi to Yj and from Ym to Yn.
6983 (*movsi_internal): Ditto.
6984 (*movdf_internal): Ditto.
6985 (*movsf_internal): Ditto.
6986 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6987 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6988 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6989 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6990 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6991 * config/i386/sse.md (movdi_to_sse): Ditto.
6992 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6993 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6994 TARGET_INTER_UNIT_MOVES.
6995 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6996 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6997 instead of TARGET_INTER_UNIT_MOVES.
6998 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6999 operand 1 from Yi to Yj and from Ym to Yn.
7001 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7003 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
7004 (float_truncate_hi_): Likewise.
7005 (float_extend_lo_): Likewise.
7006 (float_truncate_lo_): Likewise.
7007 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
7008 (aarch64_float_extend_lo_v2df): Likewise.
7009 (vec_unpacks_hi_v4sf): Likewise.
7010 (aarch64_float_truncate_lo_v2sf): Likewise.
7011 (aarch64_float_truncate_hi_v4sf): Likewise.
7012 (vec_pack_trunc_v2df): Likewise.
7013 (vec_pack_trunc_df): Likewise.
7015 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7017 * config/aarch64/aarch64-builtins.c
7018 (aarch64_fold_builtin): Fold float conversions.
7019 * config/aarch64/aarch64-simd-builtins.def
7020 (floatv2si, floatv4si, floatv2di): New.
7021 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
7022 * config/aarch64/aarch64-simd.md
7023 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
7024 * config/aarch64/iterators.md (FLOATUORS): New.
7025 (optab): Add float, floatuns.
7026 (su_optab): Likewise.
7028 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7030 * config/aarch64/aarch64-builtins.c
7031 (aarch64_builtin_vectorized_function): Use new names for
7033 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
7034 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
7035 (fcvtzu): Split as...
7036 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
7037 (fcvtas): Split as...
7038 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
7039 (fcvtau): Split as...
7040 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
7041 (fcvtps): Split as...
7042 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
7043 (fcvtpu): Split as...
7044 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
7045 (fcvtms): Split as...
7046 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
7047 (fcvtmu): Split as...
7048 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
7049 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
7050 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
7051 (lfrintnusf, lfrintnudf): Likewise.
7052 * config/aarch64/aarch64-simd.md
7053 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
7055 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
7056 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
7057 (fcvt_pattern): Likewise.
7059 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7061 * config/aarch64/aarch64-simd.md
7062 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
7063 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
7065 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7067 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
7068 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
7069 (vrnd<a,m,n,p>_f32): Implement using builtins.
7070 (vrnd<i,x><q>_f<32, 64>): New.
7072 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7074 * config/aarch64/aarch64-builtins.c
7075 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7076 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7077 (frintz): Rename to...
7079 (frintp): Rename to...
7081 (frintm): Rename to...
7083 (frinti): Rename to...
7084 (nearbyint): ...this.
7085 (frintx): Rename to...
7087 (frinta): Rename to...
7089 * config/aarch64/aarch64-simd.md
7090 (aarch64_frint<frint_suffix><mode>): Delete.
7091 (<frint_pattern><mode>2): Convert to insn.
7092 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7093 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7094 (frint_pattern): Likewise.
7095 (frint_suffix): Likewise.
7097 2013-04-29 Richard Biener <rguenther@suse.de>
7099 PR tree-optimization/57081
7100 * loop-init.c: Include tree-flow.h.
7101 (loop_optimizer_finalize): Free number of iteration estimates.
7102 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7104 2013-04-29 Jakub Jelinek <jakub@redhat.com>
7106 PR tree-optimization/57083
7107 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7108 non-singleton shift count range, zero extend low_bound for uns case.
7110 * config/i386/predicates.md (general_vector_operand): New predicate.
7111 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7112 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7113 if they aren't nonimmediate operands. If their original values
7114 satisfy const_vector_equal_evenodd_p, don't shift them.
7115 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7116 predicates. For the SSE4.1 case force operands[{1,2}] into registers
7117 if not nonimmediate_operand.
7118 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7119 instead of register_operand.
7120 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7122 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
7124 * stor-layout.c (finalize_size_functions): Allocate a structure and
7125 reset cfun before dumping the functions.
7127 2013-04-27 Jakub Jelinek <jakub@redhat.com>
7129 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7132 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7133 use xop_pmacsdqh if uns_p.
7134 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7135 the immediate rotate count.
7137 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
7139 * rtl.h (struct rtx_def): Add comment for field jump.
7140 (LRA_SUBREG_P): New macro.
7141 * recog.c (register_operand): Check LRA_SUBREG_P.
7142 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7144 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7145 (lra_final_code_change): Skip subreg change for operators.
7146 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7147 if there are no operand changes.
7148 * lra-constraints.c (curr_insn_set): New.
7149 (match_reload): Set LRA_SUBREG_P.
7150 (emit_spill_move): Ditto.
7151 (check_and_process_move): Use curr_insn_set. Process only single
7152 set insns. Don't initialize sec_mem_p and change_p.
7153 (simplify_operand_subreg): Use LRA_SUBREG_P.
7154 (reg_in_class_p): New function.
7155 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7156 of #ifdef. Add code to remove cycling.
7157 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7158 non-null disp. Reload inner instead of disp when base and index
7159 are null. Try to put lo_sum into register.
7160 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7161 (check_and_process_move): Move code for move cost check to
7162 simple_move_p. Remove equiv_substitution.
7163 (simple_move_p): New function.
7164 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7165 curr_insn_set. Call check_and_process_move only for single set
7166 insns. Use the new function. Move call of check_and_process_move
7167 after operand equiv substitution and address process.
7169 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7172 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7173 with nonlocal goto receivers or returns twice calls, ignore
7174 unininitialized values from abnormal edges to nl goto receiver
7175 or returns twice call.
7177 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7179 PR tree-optimization/57051
7180 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7181 and VEC_RSHIFT_EXPR if shift count is a multiple of element
7184 2013-04-26 Richard Biener <rguenther@suse.de>
7186 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7187 (expand_omp_taskreg): Likewise. Mark loops for fixup.
7188 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7189 (fixup_loop_arrays_after_move): New function.
7190 (move_sese_region_to_fn): Properly outline the loop tree parts
7193 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
7195 * config/i386/i386.md (type, unit): Fix long lines.
7197 2013-04-26 Richard Biener <rguenther@suse.de>
7199 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7200 (lto-streamer-out.o): Likewise.
7201 * cfgloop.c (init_loops_structure): Export, add struct function
7202 argument and adjust.
7203 (flow_loops_find): Adjust.
7204 * cfgloop.h (enum loop_estimation): Add EST_LAST.
7205 (init_loops_structure): Declare.
7206 * lto-streamer-in.c: Include cfgloop.h.
7207 (input_cfg): Input the loop tree.
7208 * lto-streamer-out.c: Include cfgloop.h.
7209 (output_cfg): Output the loop tree.
7210 (output_struct_function_base): Do not drop PROP_loops.
7212 2013-03-26 Richard Biener <rguenther@suse.de>
7214 * tree-cfg.c (execute_build_cfg): Build the loop tree.
7215 (pass_build_cfg): Provide PROP_loops.
7216 (move_sese_region_to_fn): Remove loops that are outlined into fn
7218 * tree-inline.c: Include cfgloop.h.
7219 (initialize_cfun): Do not drop PROP_loops.
7220 (copy_loops): New function.
7221 (copy_cfg_body): Copy loop structure.
7222 (tree_function_versioning): Initialize destination loop tree.
7223 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7224 (pass_parallelize_loops): Do IL verification.
7225 * loop-init.c (loop_optimizer_init): Fixup loops if required.
7226 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7227 the CFG make sure we fixup loops as well.
7228 * tree-ssa-tail-merge.c: Include cfgloop.h.
7229 (replace_block_by): When merging loop latches mark loops for fixup.
7230 * lto-streamer-out.c (output_struct_function_base): Drop
7232 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7233 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7234 * ipa-split.c: Include cfgloop.h.
7235 (split_function): Add the new return block to the loop tree root.
7236 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7237 whether we have removed the forwarder block.
7238 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7239 * cfgloop.h (place_new_loop): Declare.
7240 * cfgloopmanip.c (place_new_loop): Export.
7241 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7242 (tree-switch-conversion.o): Likewise.
7243 (tree-complex.o): Likewise.
7244 (tree-inline.o): Likewise.
7245 (tree-ssa-tailmerge.o): Likewise.
7246 (ipa-split.o): Likewise.
7247 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7248 (tree-ssa-copy.o): Likewise.
7249 * tree-switch-conversion.c: Include cfgloop.h
7250 (process_switch): If we emit a bit-test cascade, schedule loops
7252 * tree-complex.c: Include cfgloop.h.
7253 (expand_complex_div_wide): Properly add new basic-blocks to loops.
7254 * asan.c: Include cfgloop.h.
7255 (create_cond_insert_point): Properly add new basic-blocks to
7256 loops, schedule loop fixup.
7257 * cfgloop.c (verify_loop_structure): Check that looks are not
7259 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7261 (expand_omp_for_generic): Likewise.
7262 (expand_omp_sections): Likewise.
7263 (expand_omp_atomic_pipeline): Schedule loops for fixup.
7264 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7265 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7266 is initialized, not when loops are present.
7267 * tree-parloops.c (parallelize_loops): Remove checking here.
7268 * passes.c (init_optimization_passes): Schedule a copy-propagation
7269 pass before complete unrolling of inner loops.
7271 2013-04-26 Jakub Jelinek <jakub@redhat.com>
7273 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7274 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7275 (colorize_init): Add argument to _WIN32 version.
7276 * toplev.c: Include diagnostic-color.h.
7277 (process_options): Default to -fdiagnostics-color=auto if
7278 GCC_COLORS env var is in the environment.
7279 * common.opt (fdiagnostics-color=): Add Var and Init.
7280 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7281 env var is in the environment, the default is auto rather than never.
7283 * diagnostic.h (file_name_as_prefix): Add context argument.
7284 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
7285 the string as locus.
7286 * langhooks.c (lhd_print_error_function): Adjust caller.
7288 2013-04-25 Lawrence Crowl <crowl@google.com>
7290 * var-tracking.c (shared_hash_def::htab):
7291 Change type to hash_table. Update dependent calls and types.
7293 2013-04-25 Lawrence Crowl <crowl@google.com>
7295 * Makefile.in: Update as needed below.
7297 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7298 Move declaration to after the type's method definitons.
7300 * attribs.c (htab_t scoped_attributes::attribute_hash):
7301 Change type to hash_table. Update dependent calls and types.
7303 * bitmap.c (htab_t bitmap_desc_hash):
7304 Change type to hash_table. Update dependent calls and types.
7306 * cselib.c (htab_t cselib_hash_table):
7307 Change type to hash_table. Update dependent calls and types.
7309 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7310 (hash_string_slot_node): Move implementation into lto-streamer.h
7311 struct string_slot_hasher.
7312 (eq_string_slot_node): Likewise.
7314 * data-streamer-out.c: Update output_block::string_hash_table
7315 dependent calls and types.
7317 * dwarf2cfi.c (htab_t trace_index):
7318 Change type to hash_table. Update dependent calls and types.
7320 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7321 Change type to hash_table. Update dependent calls and types.
7322 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7323 (htab_t optimize_external_refs::map): Likewise.
7324 (htab_t output_comp_unit::extern_map): Likewise.
7325 (htab_t output_comdat_type_unit::extern_map): Likewise.
7326 (htab_t output_macinfo::macinfo_htab): Likewise.
7327 (htab_t optimize_location_lists::htab): Likewise.
7328 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7330 * except.c (htab_t ehspec_hash_type):
7331 Change type to hash_table. Update dependent calls and types.
7332 (assign_filter_values::ttypes): Likewise.
7333 (assign_filter_values::ehspec): Likewise.
7334 (sjlj_assign_call_site_values::ar_hash): Likewise.
7335 (convert_to_eh_region_ranges::ar_hash): Likewise.
7337 * gcse.c (htab_t pre_ldst_table):
7338 Change type to hash_table. Update dependent calls and types.
7340 * ggc-common.c (htab_t saving_htab):
7341 Change type to hash_table. Update dependent calls and types.
7342 (htab_t loc_hash): Likewise.
7343 (htab_t ptr_hash): Likewise.
7344 (call_count): Rename ggc_call_count.
7345 (call_alloc): Rename ggc_call_alloc.
7346 (loc_descriptor): Rename make_loc_descriptor.
7347 (add_statistics): Rename ggc_add_statistics.
7349 * ggc-common.c (saving_htab):
7350 Change type to hash_table. Update dependent calls and types.
7352 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7353 (push_gimplify_context): Likewise.
7354 (pop_gimplify_context): Likewise.
7355 (struct gimple_temp_hash_elt): Added.
7356 (struct gimplify_hasher): Likewise.
7357 (struct gimplify_ctx.temp_htab):
7358 Change type to hash_table. Update dependent calls and types.
7360 * gimple-fold.c: Include gimplify-ctx.h.
7362 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7363 Change type to hash_table. Update dependent calls and types.
7364 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7365 avoid potential global name collision.
7367 * gimplify.c: Include gimplify-ctx.h.
7368 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7369 (htab_t gimplify_ctx::temp_htab):
7370 Update dependent calls and types for new type hash_table.
7371 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7372 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7374 * gimplify-ctx.h: New.
7375 (struct gimple_temp_hash_elt): Move from gimplify.c.
7376 (class gimplify_hasher): New.
7377 (struct gimplify_ctx): Move from gimple.h.
7378 (htab_t gimplify_ctx::temp_htab):
7379 Change type to hash_table. Update dependent calls and types.
7381 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7382 (htab_t ivs_params::newivs_index):
7383 Change type to hash_table. Update dependent calls and types.
7384 (htab_t ivs_params::params_index): Likewise.
7385 (htab_t print_generated_program::params_index): Likewise.
7386 (htab_t gloog::newivs_index): Likewise.
7387 (htab_t gloog::params_index): Likewise.
7389 * graphite.c: Include graphite-htab.h.
7390 4htab_t graphite_transform_loops::bb_pbb_mapping):
7391 Change type to hash_table. Update dependent calls and types.
7393 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7394 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7395 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7397 * graphite-dependences.c: Include graphite-htab.h.
7398 (loop_is_parallel_p): Change hash table type of parameter.
7400 * graphite-htab.h: New.
7401 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7402 (extern find_pbb_via_hash): Move from graphite-poly.h.
7403 (extern loop_is_parallel_p): Move from graphite-poly.h.
7404 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7406 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7407 (extern loop_is_parallel_p): Move to graphite-htab.h.
7408 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7410 * haifa-sched.c (htab_t delay_htab):
7411 Change type to hash_table. Update dependent calls and types.
7412 (htab_t delay_htab_i2): Likewise.
7414 * ira-color.c (htab_t allocno_hard_regs_htab):
7415 Change type to hash_table. Update dependent calls and types.
7417 * ira-costs.c (htab_t cost_classes_htab):
7418 Change type to hash_table. Update dependent calls and types.
7420 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7421 Change type to hash_table. Update dependent calls and types.
7423 * loop-iv.c (htab_t bivs):
7424 Change type to hash_table. Update dependent calls and types.
7426 * loop-unroll.c (htab_t opt_info::insns_to_split):
7427 Change type to hash_table. Update dependent calls and types.
7428 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7430 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7431 (struct string_slot_hasher): New.
7432 (htab_t output_block::string_hash_table):
7433 Change type to hash_table. Update dependent calls and types.
7435 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7436 (htab_t file_name_hash_table):
7437 Change type to hash_table. Update dependent calls and types.
7439 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7442 * lto-streamer.c (htab_t tree_htab):
7443 Change type to hash_table. Update dependent calls and types.
7445 * omp-low.c: Include gimplify-ctx.h.
7447 * passes.c (htab_t name_to_pass_map):
7448 Change type to hash_table. Update dependent calls and types.
7449 (pass_traverse): Rename to passes_pass_traverse.
7451 * plugin.c (htab_t event_tab):
7452 Change type to hash_table. Update dependent calls and types.
7454 * postreload-gcse.c (htab_t expr_table):
7455 Change type to hash_table. Update dependent calls and types.
7456 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7458 * sese.c (debug_rename_map_1): Make extern.
7459 (htab_t copy_bb_and_scalar_dependences::rename_map):
7460 Change type to hash_table. Update dependent calls and types.
7462 * sese.h (extern debug_rename_map): Move to .c file.
7464 * store-motion.c (htab_t store_motion_mems_table):
7465 Change type to hash_table. Update dependent calls and types.
7467 * trans-mem.c (htab_t tm_new_mem_hash):
7468 Change type to hash_table. Update dependent calls and types.
7470 * tree-browser.c (htab_t TB_up_ht):
7471 Change type to hash_table. Update dependent calls and types.
7473 * tree-cfg.c (htab_t discriminator_per_locus):
7474 Change type to hash_table. Update dependent calls and types.
7476 * tree-complex.c: Include tree-hasher.h
7477 (htab_t complex_variable_components):
7478 Change type to hash_table. Update dependent calls and types.
7480 * tree-eh.c (htab_t finally_tree):
7481 Change type to hash_table. Update dependent calls and types.
7483 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7484 struct int_tree_hasher.
7485 (extern int_tree_map_eq): Likewise.
7486 (uid_decl_map_hash): Removed.
7487 (extern decl_tree_map_eq): Likewise.
7489 * tree-hasher.h: New.
7490 (struct int_tree_hasher): New.
7491 (typedef int_tree_htab_type): New.
7493 * tree-inline.c: Include gimplify-ctx.h.
7495 * tree-mudflap.c: Include gimplify-ctx.h.
7497 * tree-parloops.c: Include tree-hasher.h.
7498 (htab_t eliminate_local_variables_stmt::decl_address):
7499 Change type to hash_table. Update dependent calls and types.
7500 (htab_t separate_decls_in_region::decl_copies): Likewise.
7502 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7503 Change type to hash_table. Update dependent calls and types.
7505 * tree-sra.c (candidates):
7506 Change type to hash_table. Update dependent calls and types.
7508 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7510 (int_tree_map_hash): Likewise.
7512 * tree-ssa-dom.c (htab_t avail_exprs):
7513 Change type to hash_table. Update dependent calls and types.
7515 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7516 Change type to hash_table. Update dependent calls and types.
7518 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7519 Change type to hash_table. Update dependent calls and types.
7521 * tree-ssa-phiopt.c (seen_ssa_names):
7522 Change type to hash_table. Update dependent calls and types.
7524 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7525 Change type to hash_table. Update dependent calls and types.
7527 * tree-ssa-uncprop.c (equiv):
7528 Change type to hash_table. Update dependent calls and types.
7530 2013-04-25 Jakub Jelinek <jakub@redhat.com>
7532 PR rtl-optimization/57003
7533 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7534 call note_stores with kill_clobbered_value callback again after
7535 killing regs_invalidated_by_call.
7537 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7539 * config/aarch64/aarch64-simd.md
7540 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7541 (aarch64_simd_bsl<mode>): Likewise.
7542 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7544 2013-04-25 Marek Polacek <polacek@redhat.com>
7546 PR tree-optimization/57066
7547 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7549 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7551 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7553 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7555 * config/aarch64/aarch64-builtins.c
7556 (aarch64_fold_builtin): New.
7557 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7558 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7559 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7560 * config/aarch64/arm_neon.h
7561 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7563 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7564 Tejas Belagod <tejas.belagod@arm.com>
7566 * config/aarch64/aarch64-builtins.c
7567 (aarch64_gimple_fold_builtin): New.
7568 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7569 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7570 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7572 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7574 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7576 * config/aarch64/aarch64.md
7577 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7579 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7581 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7582 (*ngcsi_uxtw): New pattern.
7584 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7585 Julian Brown <julian@codesourcery.com>
7587 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7588 (TB_DREG): Add T_V4HF.
7589 (v4hf_UP): New macro.
7590 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7591 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7592 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7594 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
7595 (arm_vector_mode_supported_p): Handle V4HF.
7596 (arm_mangle_map): Handle V4HFmode.
7597 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7598 * config/arm/arm_neon_builtins.def: Add entries for
7599 vcvtv4hfv4sf, vcvtv4sfv4hf.
7600 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7601 (neon_vcvtv4hfv4sf): Likewise.
7602 * config/arm/neon-gen.ml: Handle half-precision floating point
7604 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7605 * config/arm/arm_neon.h: Regenerate.
7606 * config/arm/neon.ml (type elts): Add F16.
7607 (type vectype): Add T_float16x4, T_floatHF.
7608 (type vecmode): Add V4HF.
7609 (type features): Add Requires_FP_bit feature.
7610 (elt_width): Handle F16.
7611 (elt_class): Likewise.
7612 (elt_of_class_width): Likewise.
7613 (mode_of_elt): Refactor.
7614 (type_for_elt): Handle F16, fix error messages.
7615 (vectype_size): Handle T_float16x4.
7616 (vcvt_sh): New function.
7617 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
7618 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
7619 (string_of_mode): Handle V4HF.
7620 * doc/arm-neon-intrinsics.texi: Regenerate.
7622 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7624 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
7625 format specifier in 'X' case.
7627 2013-04-25 Alan Modra <amodra@gmail.com>
7630 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
7631 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
7632 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
7633 Repeat for many other rotate/shift and mask patterns using subregs.
7634 Name lshiftrt insns.
7635 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
7636 on WORDS_BIG_ENDIAN.
7638 2013-04-25 Alan Modra <amodra@gmail.com>
7640 * config.gcc: Support little-endian powerpc-linux targets.
7641 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
7642 (LINK_OS_LINUX_SPEC): Define.
7643 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
7644 Preserve MASK_LITTLE_ENDIAN.
7645 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
7646 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
7647 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
7648 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
7649 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
7650 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
7651 Correct fp word order for little-endian. Don't shift toc entries
7652 smaller than a word for little-endian.
7653 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
7654 (bswapdi2 splits): Correct low-part subreg for little-endian.
7655 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
7656 low/high where such is correct only for be.
7657 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
7658 little-endian for -mcall-aixdesc.
7660 2013-04-25 Alan Modra <amodra@gmail.com>
7662 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
7663 replace_equiv_address_nv.
7665 2013-04-25 Alan Modra <amodra@gmail.com>
7667 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
7669 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7672 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7673 * rtl.h (struct rtx_def): ...
7675 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7677 PR rtl-optimizations/57046
7678 * lra-constraints (split_reg): Set up lra_risky_transformations_p
7679 for multi-reg splits.
7681 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
7683 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
7685 2013-04-24 Sterling Augustine <saugustine@google.com>
7687 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
7688 (comp_dir_string, debug_str_dwo_section): New.
7689 (DEBUG_STR_DWO_SECTION): Rename to ...
7690 (DEBUG_DWO_STR_SECTION): ... this.
7691 (DEBUG_NORM_STR_SECTION): Delete.
7692 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
7693 (DEBUG_STR_DWO_SECTION_FLAGS): New.
7694 (find_AT_string): Move most logic to ...
7695 (find_AT_string_in_table): ... here. New.
7696 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
7697 add_skeleton_AT_string. Delete logic.
7698 (output_skeleton_debug_sections): Remove call to
7699 add_top_level_skeleton_die_attrs.
7700 (add_comp_dir_attribute): Move logic to comp_dir_string.
7701 (dwarf2out_init): Initialize debug_str_dwo_section.
7702 (output_indirect_string): Call find_string_form.
7703 (output_indirect_strings): Rewrite.
7704 (prune_unused_types): Empty skeleton_debug_str_hash.
7705 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
7706 (dwarf2out_finish): Call output_indirect_strings.
7708 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7710 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
7712 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
7714 * rtl.h (struct rtx_def): Add comment for field jump.
7715 (LRA_SUBREG_P): New macro.
7716 * recog.c (register_operand): Check LRA_SUBREG_P.
7717 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7719 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7720 (lra_final_code_change): Skip subreg change for operators.
7721 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7722 if there are no operand changes.
7723 * lra-constraints.c (curr_insn_set): New.
7724 (match_reload): Set LRA_SUBREG_P.
7725 (emit_spill_move): Ditto.
7726 (check_and_process_move): Use curr_insn_set. Process only single
7727 set insns. Don't initialize sec_mem_p and change_p.
7728 (simplify_operand_subreg): Use LRA_SUBREG_P.
7729 (reg_in_class_p): New function.
7730 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7731 of #ifdef. Add code to remove cycling.
7732 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7733 non-null disp. Reload inner instead of disp when base and index
7734 are null. Try to put lo_sum into register.
7735 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7736 (check_and_process_move): Move code for move cost check to
7737 simple_move_p. Remove equiv_substitution.
7738 (simple_move_p): New function.
7739 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7740 curr_insn_set. Call check_and_process_move only for single set
7741 insns. Use the new function. Move call of check_and_process_move
7742 after operand equiv substitution and address process.
7744 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
7746 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
7747 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
7748 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
7750 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7752 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
7754 2013-04-24 Marek Polacek <polacek@redhat.com>
7756 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
7757 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
7758 (select_loops_exit_conditions): Likewise.
7759 (number_of_iterations_for_all_loops): Likewise.
7760 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
7761 (scev_analysis): Likewise.
7763 2013-04-02 Catherine Moore <clm@codesourcery.com>
7764 Chao-ying Fu <fu@mips.com>
7766 * config/mips/micromips.md (jraddiusp): New pattern.
7767 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
7768 instruction if possible.
7770 2013-04-24 Alan Modra <amodra@gmail.com>
7772 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
7774 2013-04-24 Julian Brown <julian@codesourcery.com>
7775 Chung-Lin Tang <cltang@codesourcery.com>
7777 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
7778 dependency behavior in enumeration type DIE generation. Add TODO note
7779 to comments about future DW_FORM_sdata/udata re-work of related code.
7781 2013-04-23 Lawrence Crowl <crowl@google.com>
7783 * Makefile.in: Update as needed below.
7785 * hash-table.h (class hash_table):
7786 Correct many methods with parameter types compare_type to the correct
7787 value_type. (Correct code was unlikely to notice the change.)
7788 (hash_table::elements_with_deleted) New.
7789 (class hashtable::iterator): New.
7790 (hashtable::begin()): New.
7791 (hashtable::end()): New.
7792 (FOR_EACH_HASH_TABLE_ELEMENT): New.
7794 * statistics.c (statistics_hashes):
7795 Change type to hash_table. Update dependent calls and types.
7797 * tree-into-ssa.c (var_infos):
7798 Change type to hash_table. Update dependent calls and types.
7800 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
7801 Change type to hash_table. Update dependent calls and types.
7803 * tree-ssa-loop-im.c (struct mem_ref.refs):
7804 Change type to hash_table. Update dependent calls and types.
7806 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
7807 Change type to hash_table. Update dependent calls and types.
7809 * tree-ssa-sccvn.c (vn_tables_s::nary):
7810 Change type to hash_table. Update dependent calls and types.
7811 (vn_tables_s::phis): Likewise.
7812 (vn_tables_s::references): Likewise.
7814 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
7815 (vn_reference_eq): Update parameter and return types.
7817 * tree-ssa-structalias.c (pointer_equiv_class_table):
7818 Change type to hash_table. Update dependent calls and types.
7819 (location_equiv_class_table): Likewise.
7821 * tree-vect-data-refs.c: Consequential changes for making
7822 peeling a hash_table.
7824 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
7825 (destroy_loop_vec_info): Dependent hash_table update.
7827 * tree-vectorizer.h (peeling_htab):
7828 Change type to hash_table. Update dependent calls and types.
7830 2013-04-23 Shiva Chen <shiva0217@gmail.com>
7832 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
7833 to check the register content is equal or not.
7834 * lra-constraints.c (match_reload): Use lra_assign_reg_val
7835 to assign register content record.
7836 * lra-eliminations.c (update_reg_eliminate): Use
7837 lra_update_reg_val_offset to update register content offset.
7838 * lra-int.h (struct lra_reg): Add offset member.
7839 (lra_reg_val_equal_p): New static inline function.
7840 (lra_update_reg_val_offset): New static inline function.
7841 (lra_assign_reg_val): New static inline function.
7842 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
7843 to assign register content record.
7844 (initialize_lra_reg_info_element): Initial offset to zero.
7846 2013-04-23 Catherine Moore <clm@codesourcery.com>
7848 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
7849 operands. Record compression.
7851 2013-04-23 Xinliang David Li <davidxl@google.com>
7853 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
7855 2013-04-23 Richard Biener <rguenther@suse.de>
7858 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
7859 parameter, only add abnormal goto edges from the copied body
7860 if the call could perform abnormal gotos.
7861 (copy_cfg_body): Adjust.
7863 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
7865 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
7867 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
7869 * coretypes.h (gimple_stmt_iterator): Add struct to make
7872 2013-04-23 Richard Biener <rguenther@suse.de>
7874 PR tree-optimization/57026
7875 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
7876 from SSA names occuring in abnormal PHI nodes.
7878 2013-04-22 Andi Kleen <ak@linux.intel.com>
7880 * lto/lto.c (print_lto_report_1): Fix LTO report names.
7882 2013-04-22 Andi Kleen <ak@linux.intel.com>
7884 * lto/lto.c (print_lto_report_1): Declare early.
7885 (read_cgraph_and_symbols): Call print_lto_report_1 early.
7887 2013-04-22 Andi Kleen <ak@linux.intel.com>
7889 * common.opt (-flto-report-wpa): Add.
7890 * doc/invoke.texi (-flto-report-wpa): Add.
7891 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
7894 2013-04-22 Xinliang David Li <davidxl@google.com>
7896 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7897 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7898 * Makefile.in: New dependency
7900 David Daney <ddaney.cavm@gmail.com>
7902 * configure.ac (gcc_cv_as_micromips_support): Use the
7903 --fatal-warnings option.
7904 * configure: Regenerate.
7906 2013-04-22 Marek Polacek <polacek@redhat.com>
7909 * tsan.c (instrument_expr): Don't instrument expression
7910 in case its size is zero.
7912 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
7916 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7918 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7920 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7922 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7923 (gimple_stmt_iterator): New typedef.
7924 * gimple.h (gimple_stmt_iterator): Rename to...
7925 (gimple_stmt_iterator_d): ... This.
7926 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7927 trees be valid for GIMPLE and GENERIC.
7928 (TARGET_GIMPLE_FOLD_BUILTIN): New.
7929 * gimple-fold.c (gimple_fold_call): Call target hook
7930 gimple_fold_builtin.
7931 * hooks.c (hook_bool_gsiptr_false): New.
7932 * hooks.h (hook_bool_gsiptr_false): New.
7933 * target.def (fold_stmt): New.
7934 * doc/tm.texi: Regenerate.
7936 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
7939 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7940 a set sp if no stack realignment.
7942 2013-04-22 Nick Clifton <nickc@redhat.com>
7944 * config.gcc (tilegx-linux): Extend extra_objs rather than
7946 (tilepro-linux): Likewise.
7948 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7950 * config/aarch64/aarch64-builtins.c
7952 (CF0, CF1, CF2, CF3, CF4, CF10): New.
7953 (VAR<1-12>): Add MAP parameter.
7954 (BUILTIN_*): Likewise.
7955 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7956 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7957 (aarch64_ushl_n<mode>): Likewise.
7958 (aarch64_sshr_n<mode>): Likewise.
7959 (aarch64_ushr_n<mode>): Likewise.
7960 (aarch64_<maxmin><mode>): Likewise.
7961 (aarch64_sqrt<mode>): Likewise.
7962 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7963 (vshr<q>_n_*): Likewise.
7965 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7967 * config/aarch64/aarch64-builtins.c
7968 (aarch64_simd_builtin_type_mode): Handle SF types.
7970 (BUILTIN_GPF): Define.
7971 (aarch64_init_simd_builtins): Handle SF types.
7972 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7975 * config/aarch64/aarch64-simd.md
7976 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7977 (aarch64_frecpe<mode>): New.
7978 (aarch64_frecps<mode>): Likewise.
7979 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7980 (v8type): Add frecp<esx>.
7981 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7982 (aarch64_frecps<mode>): Likewise.
7983 * config/aarch64/iterators.md (FRECP): New.
7984 (frecp_suffix): Likewise.
7985 * config/aarch64/arm_neon.h
7986 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7988 2013-04-22 Christian Bruel <christian.bruel@st.com>
7991 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7992 (REG_CLASS_NAMES): Idem.
7993 (REG_CLASS_CONTENTS): Idem.
7994 (REGCLASS_HAS_FP_REG): Idem.
7995 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7996 (sh_conditional_register_usage): Idem.
7998 2013-04-21 Jeff Law <law@redhat.com>
8000 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
8001 (ssa_forward_propagate_and_combine): Use it.
8003 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8005 * lra.c: Update the flow chart diagram.
8007 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8009 PR rtl-optimization/56847
8010 * lra-constraints.c (process_alt_operands): Discourage alternative
8011 with non-matche doffsettable memory constraint fro memory with
8014 2013-04-19 Richard Biener <rguenther@suse.de>
8016 PR tree-optimization/56982
8017 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
8019 * gimplify.c (gimplify_call_expr): Notice special calls.
8020 (gimplify_modify_expr): Likewise.
8021 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
8022 abnormal control flow receivers.
8023 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
8024 in the same way as cfun->has_nonlocal_labels.
8025 (gimple_purge_dead_abnormal_call_edges): Likewise.
8026 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
8027 receivers start a basic-block.
8029 2013-04-19 Richard Biener <rguenther@suse.de>
8031 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
8033 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
8034 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
8035 (SLP_TREE_LOAD_PERMUTATION): Add.
8036 (vect_transform_slp_perm_load): Adjust prototype.
8037 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
8038 (vect_free_slp_instance): Likewise.
8039 (vect_create_new_slp_node): Likewise.
8040 (vect_supported_slp_permutation_p): Remove.
8041 (vect_slp_rearrange_stmts): Adjust.
8042 (vect_supported_load_permutation_p): Likewise. Inline
8043 vect_supported_slp_permutation_p here.
8044 (vect_analyze_slp_instance): Compute load permutations per
8045 slp node instead of per instance.
8046 (vect_get_slp_defs): Adjust.
8047 (vect_transform_slp_perm_load): Likewise.
8048 (vect_schedule_slp_instance): Remove redundant code.
8049 (vect_schedule_slp): Remove hack for PR56270, add it ...
8050 * tree-vect-stmts.c (vectorizable_load): ... here, do not
8051 CSE loads for SLP. Adjust.
8053 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8055 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
8056 spelling in two comments.
8058 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8061 * config/arm/arm.c (load_multiple_sequence): Require SP
8062 as base register for loads if SP is in the register list.
8064 2013-04-19 Martin Jambor <mjambor@suse.cz>
8066 PR tree-optimization/56718
8067 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
8068 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
8069 and made public. Adjusted all callers.
8070 (ipa_intraprocedural_devirtualization): New function.
8071 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
8072 (ipa_intraprocedural_devirtualization): Likewise.
8073 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8075 2013-04-19 Richard Biener <rguenther@suse.de>
8077 PR tree-optimization/57000
8078 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8080 2013-04-19 Terry Guo <terry.guo@arm.com>
8082 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8084 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
8085 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8086 (cortex_m4_fmacs): Use new reservations.
8087 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8089 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
8091 PR rtl-optimization/56999
8092 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8094 (lra_coalesce): Remove split_origin_bitmap and related code.
8095 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8096 ranges if necessary.
8098 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
8100 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8102 (ix86_expand_call): Remove clobbered_registers array and use
8103 x86_64_ms_sysv_extra_clobbered_registers instead.
8104 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8106 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8108 * config/i386/i386.md (*call_rex64_ms_sysv): Use
8109 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
8110 (*call_value_rex64_ms_sysv): Ditto.
8112 2013-04-18 Cary Coutant <ccoutant@google.com>
8114 * dwarf2out.c (output_pubnames): Check die_perennial_p of
8115 parent instead of die_mark.
8117 2013-04-18 Diego Novillo <dnovillo@google.com>
8119 * gimple.c (create_gimple_tmp): New.
8120 (get_expr_type): New.
8121 (build_assign): New.
8122 (build_type_cast): New.
8123 * gimple.h (enum ssa_mode): Define.
8124 (gimple_seq_set_location): New.
8125 * asan.c (build_check_stmt): Change some gimple_build_* calls
8126 to use build_assign and build_type_cast.
8128 2013-04-18 Richard Biener <rguenther@suse.de>
8130 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8131 handle negative step. Remove redundant checks.
8132 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8133 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8134 for negative step and grouped loads fail to vectorize.
8136 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8138 * emit-rtl.c (reset_insn_used_flags): New function.
8139 (reset_all_used_flags): Use it.
8140 (verify_insn_sharing): New function.
8141 (verify_rtl_sharing): Fix verification for SEQUENCEs.
8143 2013-04-18 Jakub Jelinek <jakub@redhat.com>
8145 PR tree-optimization/56984
8146 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8147 and (x >> M) >= N don't register any assertion if N << M is the
8150 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8152 * lower-subreg.c (resolve_simple_move): If called self-recursive,
8153 do not delete_insn insns that have not yet been emitted, only
8154 unlink them with remove_insn.
8155 * df-scan.c (df_insn_delete): Revert r197492.
8157 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
8159 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8160 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8162 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8164 * config/arm/arm.md (movsicc_insn): Convert define_insn into
8165 define_insn_and_split.
8166 (and_scc,ior_scc,negscc): Likewise.
8167 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8169 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
8171 * config/arm/arm.c (use_return_insn): Return 0 for targets that
8172 can benefit from using a sequence of LDRD instructions in epilogue
8173 instead of a single LDM instruction.
8175 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8178 * doc/extend.texi: Fix typo.
8180 2013-04-17 Richard Biener <rguenther@suse.de>
8182 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8183 (vect_build_slp_tree): ... here.
8184 (vect_build_slp_tree_1): Compute which stmts of the SLP group
8185 match. Remove special-casing of mismatched complex loads.
8186 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8187 re-try the match with swapped commutative operands.
8188 (vect_supported_load_permutation_p): Remove special-casing of
8189 mismatched complex loads.
8190 (vect_analyze_slp_instance): Adjust.
8192 2013-04-17 Richard Biener <rguenther@suse.de>
8194 PR rtl-optimization/56921
8195 * cfgloop.h (struct loop): Add simple_loop_desc member.
8196 (struct niter_desc): Mark with GTY(()).
8197 (simple_loop_desc): Do not use aux field but simple_loop_desc.
8198 * loop-iv.c (get_simple_loop_desc): Likewise.
8199 (free_simple_loop_desc): Likewise.
8202 2013-04-16 Richard Biener <rguenther@suse.de>
8204 PR rtl-optimization/56921
8205 * loop-init.c (pass_rtl_move_loop_invariants): Add
8206 TODO_do_not_ggc_collect to todo_flags_finish.
8207 (pass_rtl_unswitch): Same.
8208 (pass_rtl_unroll_and_peel_loops): Same.
8209 (pass_rtl_doloop): Same.
8211 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
8213 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8214 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8215 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8217 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8218 * tree-streamer.c (record_common_node): Adjust reference in comment.
8220 2013-04-17 Terry Guo <terry.guo@arm.com>
8222 * config/arm/cortex-m4.md: Add a new bypass.
8224 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8226 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8228 (*subs_<optab><mode>_multp2): New pattern.
8229 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8230 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8232 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8234 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8235 (*subs_mul_imm_<mode>): New pattern.
8237 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
8240 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8241 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
8242 (vsx_movti_32bit): Change j->wa to O->wa.
8244 2013-04-16 Richard Biener <rguenther@suse.de>
8246 PR rtl-optimization/56921
8247 * loop-init.c (pass_rtl_move_loop_invariants): Add
8248 TODO_do_not_ggc_collect to todo_flags_finish.
8249 (pass_rtl_unswitch): Same.
8250 (pass_rtl_unroll_and_peel_loops): Same.
8251 (pass_rtl_doloop): Same.
8253 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
8255 * config/arm/arm.c (emit_multi_reg_push): New declaration
8256 for an existing function.
8257 (arm_emit_strd_push): New function.
8258 (arm_expand_prologue): Used here.
8259 (arm_emit_ldrd_pop): New function.
8260 (arm_expand_epilogue): Used here.
8261 (arm_get_frame_offsets): Update condition.
8262 (arm_emit_multi_reg_pop): Add a special case for load of a single
8263 register with writeback.
8265 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
8267 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8270 2013-04-16 Richard Biener <rguenther@suse.de>
8272 PR tree-optimization/56756
8273 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8274 (first_mem_ref_loc): New.
8275 (execute_sm): Place the load temporarily before a previous
8276 access instead of in the latch edge to ensure its SSA dependencies
8277 are defined at points dominating the load.
8279 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
8281 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8282 correct fix by moving header and footer insn to the footer of
8283 the merged basic block. Clear BB_END of the merged-away block.
8286 * emit-rtl.c (make_note_raw): New function.
8287 (link_insn_into_chain): New static inline function.
8289 (add_insn_before, add_insn_after): Factor insn chain linking code...
8290 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8291 using link_insn_into_chain.
8292 (note_outside_basic_block_p): New helper function for emit_note_after
8293 and emit_note_before.
8294 (emit_note_after): Use nobb variant of add_insn_after if the note
8295 should not be contained in a basic block.
8296 (emit_note_before): Use nobb variant of add_insn_before if the note
8297 should not be contained in a basic block.
8298 (emit_note_copy): Use make_note_raw.
8299 (emit_note): Likewise.
8300 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8301 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8302 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8303 the moved barrier the tail of the basic block it follows.
8304 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8306 2013-04-15 Jakub Jelinek <jakub@redhat.com>
8308 PR tree-optimization/56962
8309 * gimple-ssa-strength-reduction.c (record_increment): Only set
8310 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8311 either rhs1 or rhs2 is equal to c->base_expr.
8313 2013-04-15 Richard Biener <rguenther@suse.de>
8315 PR tree-optimization/56933
8316 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8318 (GROUP_READ_WRITE_DEPENDENCE): Remove.
8319 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8320 * tree-vect-data-refs.c (vect_analyze_group_access): Move
8321 dependence check ...
8322 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8324 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8325 GROUP_READ_WRITE_DEPENDENCE.
8327 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8329 * emit-rtl.c (reset_all_used_flags): New function.
8330 (verify_rtl_sharing): Call reset_all_used_flags before and after
8331 performing the checks.
8333 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8335 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8336 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8337 * config/arm/constraints.md (De): New constraint.
8338 * config/arm/neon.md (anddi3_neon): Delete.
8339 (neon_vand<mode>): Expand to standard anddi3 pattern.
8340 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8341 Move earlier in the file.
8342 (neon_inv_logic_op2): Likewise.
8343 (arm_anddi_operand_neon): New predicate.
8345 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8347 * configure.ac (gcc_cv_ld_as_needed): Set
8348 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8349 Use -z ignore, -z record on *-*-solaris2*.
8350 (HAVE_LD_AS_NEEDED): Update comment.
8351 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8352 * configure: Regenerate.
8353 * config.in: Regenerate.
8354 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8355 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8356 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8357 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8358 equivalents. Fix markup.
8359 * doc/tm.texi: Regenerate.
8361 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8363 * config/i386/i386.opt: New option mstack-protector-guard=.
8364 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8365 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8366 TARGET_SSP_TLS_GUARD.
8367 * config/i386/i386.c (ix86_option_override_internal): Set
8368 ix86_stack_protector_guard.
8369 * config/i386/i386.md (stack_protect_set): Enable for
8370 TARGET_SSP_TLS_GUARD only.
8371 (stack_protect_set_<mode>): Ditto.
8372 (stack_protect_test): Ditto.
8373 (stack_protect_test_<mode>): Ditto.
8374 * doc/invoke.texi (i386 Option): Document.
8376 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8379 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8380 (S_MODES): Set H_MODE bit.
8381 (SF_MODES): Set only S_MODE and SF_MODE bits.
8382 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8383 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8384 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8385 <MODE_FLOAT>: Likewise.
8387 2013-04-15 Joey Ye <joey.ye@arm.com>
8389 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8391 2013-04-15 Joey Ye <joey.ye@arm.com>
8393 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8395 (thumb_far_jump_used_p): Count instruction size and set
8398 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8400 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8401 * resource.c (mark_target_live_regs): Reformat conditional block.
8403 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8405 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8406 notes, they are emitted only just before final.
8407 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8409 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8411 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8412 * cfgrtl.c (delete_insn): Call it here instead.
8413 * lra-spills.c (lra_final_code_change): Use delete_insn.
8414 * haifa-sched.c (sched_remove_insn): Likewise.
8415 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8416 returning to the nop pool.
8417 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8418 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8420 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8422 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8423 * doc/tm.texi: Regenerated.
8425 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
8427 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8430 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8432 * df-core.c (df_find_def): Compare register numbers.
8433 (df_find_use): Likewise.
8435 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8438 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8439 lra_in_progress for return.
8441 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8443 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8444 define_insn into define_insn_and_split and emit movsicc patterns.
8446 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8448 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8450 2013-04-12 Richard Biener <rguenther@suse.de>
8452 * tree-pass.h (TODO_do_not_ggc_collect): New.
8453 * passes.c (execute_one_ipa_transform_pass): Honor
8454 TODO_do_not_ggc_collect.
8455 (execute_one_pass): Likewise.
8458 2013-04-10 Richard Biener <rguenther@suse.de>
8460 * passes.c (init_optimization_passes): Remove reload pass.
8461 * ira.c (do_reload): Merge into ...
8463 (rest_of_handle_reload): Remove.
8464 (pass_reload): Likewise.
8465 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8466 of reload for vzeroupper pass placement.
8468 2013-04-12 Jakub Jelinek <jakub@redhat.com>
8470 PR tree-optimization/56918
8471 PR tree-optimization/56920
8472 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8473 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8474 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8475 use wide_mul_with_sign method.
8477 2013-04-12 Richard Biener <rguenther@suse.de>
8479 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8480 not be considered a gimple constant.
8482 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
8484 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8485 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8488 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8489 Jakub Jelinek <jakub@redhat.com>
8491 * opts.c: Include diagnostic-color.h.
8492 (common_handle_option): Handle OPT_fdiagnostics_color_.
8493 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8494 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8495 (diagnostic-color.o): New.
8496 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8497 (diagnostic_color_rule): New enum.
8498 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8499 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8500 the location string.
8501 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8502 either NULL, or color kind.
8503 * diagnostic-color.c: New file.
8504 * diagnostic-color.h: New file.
8505 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8507 * doc/invoke.texi (-fdiagnostics-color): Document.
8508 * pretty-print.h (pp_show_color): Define.
8509 (struct pretty_print_info): Add show_color field.
8510 * diagnostic.c: Include diagnostic-color.h.
8511 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8512 macros. Colorize error:, warning: etc. strings and also the location
8514 (diagnostic_show_locus): Colorize the caret line.
8515 * pretty-print.c: Include diagnostic-color.h.
8516 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8517 inside of %< %> quotes or quoted through q format modifier.
8519 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8521 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
8523 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8525 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8527 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8530 2013-04-11 Marek Polacek <polacek@redhat.com>
8532 PR tree-optimization/48184
8533 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
8535 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8537 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8538 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8539 (skip_simple_arithmetic): Tidy up.
8540 * tree.h (skip_simple_constant_arithmetic): Declare.
8542 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8544 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8546 2013-04-11 Richard Biener <rguenther@suse.de>
8548 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8549 generate vector constants.
8551 2013-04-11 Richard Biener <rguenther@suse.de>
8553 PR tree-optimization/56878
8554 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8555 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8557 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8558 Prefer to align the DR with the most invariant base address.
8560 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8562 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8565 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8567 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8568 floating-point vector comparisons against 0.
8570 2013-04-11 Jakub Jelinek <jakub@redhat.com>
8572 PR tree-optimization/56899
8573 * fold-const.c (extract_muldiv_1): Apply distributive law
8574 only if TYPE_OVERFLOW_WRAPS (ctype).
8576 2013-04-11 Bin Cheng <bin.cheng@arm.com>
8579 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8580 loading has side effect.
8582 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8584 * config/sparc/sparc.c: Include tree-pass.h.
8585 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8586 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8587 head of file. Change return type. Split off gate function.
8588 (sparc_gate_work_around_errata): New function.
8589 (pass_work_around_errata): New pass definition.
8590 (insert_pass_work_around_errata) New pass insert definition to
8591 insert pass_work_around_errata just after delayed-branch scheduling.
8592 (sparc_option_override): Insert the pass.
8593 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8595 2013-04-10 David S. Miller <davem@davemloft.net>
8597 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8598 or -mcpu=hypersparc.
8600 * target.def (cstore_mode): New hook.
8601 * target.h: Include insn-codes.h
8602 * targhooks.c: Likewise.
8603 (default_cstore_mode): New function.
8604 * targhooks.h: Declare it.
8605 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
8606 * doc/tm.texi: Rebuild.
8607 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
8608 target hook, rather than inspecting the insn_data.
8609 * config/sparc/sparc.c (sparc_cstore_mode): New function.
8610 (TARGET_CSTORE_MODE): Redefine.
8611 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
8613 * config/sparc/predicates.md (cstore_result_operand): New special
8615 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
8616 Use it for operand 0.
8617 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
8618 (*snesi_special): Likewise.
8619 (*snesi_zero): Likewise.
8620 (*seqsi_zero): Likewise.
8621 (*sltu_insn): Likewise.
8622 (*sgeu_insn): Likewise.
8623 (*seqdi_special): Make operand 0 and comparison operation be of
8625 (*snedi_special): Likewise.
8626 (*snedi_special_vis3): Likewise.
8627 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
8628 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
8629 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
8630 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
8631 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
8632 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
8633 (*sltu_extend_sp64): Likewise.
8634 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
8635 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
8636 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
8637 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
8638 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
8640 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
8642 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
8643 (aarch64_start_file): Use the new function.
8645 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8646 Jason Merrill <jason@redhat.com>
8648 * common.opt: Add -gdwarf.
8649 * opts.c (common_handle_option): Handle it.
8650 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
8652 2013-04-10 Richard Biener <rguenther@suse.de>
8654 * passes.c (execute_todo): Do not call ggc_collect conditional here.
8655 (execute_one_ipa_transform_pass): But unconditionally here.
8656 (execute_one_pass): And here.
8657 (init_optimization_passes): Remove reload pass.
8658 * tree-pass.h (TODO_ggc_collect): Remove.
8659 (pass_reload): Likewise.
8660 * ira.c (do_reload): Merge into ...
8662 (rest_of_handle_reload): Remove.
8663 (pass_reload): Likewise.
8664 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8665 of reload for vzeroupper pass placement.
8666 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
8667 and todo_flags_finish of all passes.
8669 2013-04-10 Richard Biener <rguenther@suse.de>
8671 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
8672 first_const_oprnd field, rename first_def_type to first_op_type.
8673 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
8674 (vect_get_and_check_slp_defs): Always use the type of the
8675 operand. Allow mixed vect_external_def, vect_constant_def types.
8676 (vect_get_constant_vectors): Handle mixed vect_external_def,
8677 vect_constant_def types.
8679 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
8681 PR tree-optimization/55524
8682 * tree-ssa-math-opts.c
8683 (convert_mult_to_fma): Don't use an fms construct
8684 when we don't have an fms operation, but fnma, and it looks
8685 likely that we'll be able to use the latter.
8687 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
8689 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
8691 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
8692 inline fail caused by overwritable functions.
8694 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
8696 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
8697 unnecessary bits in the constant power of two case.
8699 2013-04-10 Richard Biener <rguenther@suse.de>
8701 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
8702 broken code swapping operands.
8703 (vect_build_slp_tree): Do not compute load permutations here.
8704 (vect_analyze_slp_instance): Compute load permutations here,
8705 after building the SLP tree.
8707 2013-04-09 Christian Bruel <christian.bruel@st.com>
8709 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
8710 of next/prev_real_insn.
8712 2013-04-09 Jan Hubicka <jh@suse.cz>
8714 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8715 Drop aliased parameter.
8716 (function_and_variable_visibility): Do not handle alias pairs.
8717 * cgraph.c (varpool_externally_visible_p): Update prototype.
8718 * varpool.c (varpool_add_new_variable): Update.
8720 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8722 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
8724 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
8726 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
8728 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
8730 2013-04-09 Marek Polacek <polacek@redhat.com>
8732 PR tree-optimization/48762
8733 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
8735 2013-04-09 Richard Biener <rguenther@suse.de>
8737 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
8739 (vect_build_slp_tree): Likewise.
8740 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
8741 calculating the cost of a SLP instance.
8742 (vect_analyze_slp_instance): Use it from here, after building
8745 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8748 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
8749 expand_omp_for_static_chunk): Use simple_p = true in
8750 force_gimple_operand_gsi calls when assigning to addressable decls.
8752 2013-04-09 Jeff Law <law@redhat.com>
8754 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
8755 when the boolean was created by converting a wider object which
8756 had a boolean range.
8758 2013-04-09 Richard Biener <rguenther@suse.de>
8760 * tree-vectorizer.h (slp_void_p): Remove.
8761 (slp_tree): Typedef before _slp_tree declaration.
8762 (struct _slp_tree): Use a vector of slp_tree as children.
8763 (vect_get_place_in_interleaving_chain): Remove.
8764 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
8766 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
8768 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
8769 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
8770 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
8771 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
8772 Use slp_node instead of slp_void_p and adjust.
8774 2013-04-09 Richard Biener <rguenther@suse.de>
8776 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
8777 work that is not necessary.
8779 2013-04-09 Jakub Jelinek <jakub@redhat.com>
8781 PR tree-optimization/56854
8782 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
8783 forward into clobber stmts if it would change MEM_REF lhs into
8786 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
8788 * tree.c (type_hash_lookup, type_hash_add): Make static.
8789 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
8791 2013-04-09 Richard Biener <rguenther@suse.de>
8793 * tree.h (unsave_expr_now): Remove.
8794 * tree-inline.c (mark_local_for_remap_r): Remove.
8795 (unsave_expr_1): Likewise.
8796 (unsave_r): Likewise.
8797 (unsave_expr_now): Likewise.
8798 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
8799 (propagate_tree_value): Likewise.
8801 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
8803 * doc/rtl.texi (sequence): Rewrite documentation to match the
8804 current use of SEQUENCE rtl objects.
8805 * rtl.def (SEQUENCE): Likewise.
8807 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
8808 Update documentation.
8809 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
8810 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
8812 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
8814 2013-04-08 Teresa Johnson <tejohnson@google.com>
8816 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
8817 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8819 (estimate_edge_size_and_time): Add comment to suggest using rounding
8821 (estimate_node_size_and_time): Ditto.
8822 (remap_edge_change_prob): Use helper rounding divide methods.
8823 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
8824 (gimple_mod_pow2_value_transform): Ditto.
8825 (gimple_mod_subtract_transform): Ditto.
8826 (gimple_ic_transform): Ditto.
8827 (gimple_stringops_transform): Ditto.
8828 * stmt.c (conditional_probability): Ditto.
8829 (emit_case_dispatch_table): Ditto.
8830 * lto-cgraph.c (merge_profile_summaries): Ditto.
8831 * tree-optimize.c (execute_fixup_cfg): Ditto.
8832 * cfgcleanup.c (try_forward_edges): Ditto.
8833 * cfgloopmanip.c (scale_loop_profile): Ditto.
8835 (duplicate_loop_to_header_edge): Ditto.
8836 (lv_adjust_loop_entry_edge): Ditto.
8837 * tree-vect-loop.c (vect_transform_loop): Ditto.
8838 * profile.c (compute_branch_probabilities): Ditto.
8839 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
8840 * lto-streamer-in.c (input_cfg): Ditto.
8841 * gimple-streamer-in.c (input_bb): Ditto.
8842 * ipa-cp.c (update_profiling_info): Ditto.
8843 (update_specialized_profile): Ditto.
8844 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
8845 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8847 * sched-rgn.c (compute_dom_prob_ps): Ditto.
8848 (compute_trg_info): Ditto.
8849 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
8850 (purge_dead_edges): Ditto.
8851 * loop-unswitch.c (unswitch_loop): Ditto.
8852 * cgraphclones.c (cgraph_clone_edge): Ditto.
8853 (cgraph_clone_node): Ditto.
8854 * tree-inline.c (copy_bb): Ditto.
8855 (copy_edges_for_bb): Ditto.
8856 (initialize_cfun): Ditto.
8857 (copy_cfg_body): Ditto.
8858 (expand_call_inline): Ditto.
8860 2013-04-08 Kai Tietz <ktietz@redhat.com>
8862 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
8863 TARGET_CYGWIN64 by TARGET_64BIT.
8865 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8867 * config/epiphany/epiphany.md (GPR_1): New constant.
8868 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
8869 * config/epiphany/epiphany.c (gen_compare_reg):
8870 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
8871 is already in place.
8872 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
8873 Don't require being called during rtl expansion; If y operlaps r0,
8875 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
8876 (epiphany_expand_epilogue): Likewise.
8878 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
8879 Don't use CC_FPmode for ORDERED / UNORDERED.
8880 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8882 * config/epiphany/constraints.md (CnL): New constraint.
8883 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
8884 * config/epiphany/predicates.md (add_operand): Allow 1024.
8886 * config/epiphany/epiphany.md (logical_op): New code iterator.
8887 (op_mnc): New code attribute.
8888 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
8889 (mov_f+1, mov_f+2): New peephole2 patterns.
8891 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
8892 (cstoresi4): Also allow re-use of zero result when doing a NE
8893 comparison to a non-zero operand.
8894 Use (clobber (scratch)) for first insn if the gpr output is not needed.
8896 * config/epiphany/epiphany.md (<insn_opname>v2si3):
8897 Use gen_addsi3_i / gen_subsi3_i.
8899 2013-04-08 Jakub Jelinek <jakub@redhat.com>
8903 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8904 contain anything but clobbers, at most one __builtin_stack_restore,
8905 optionally debug stmts and final resx, and if it has at least one
8906 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
8907 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8908 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8909 which isn't defaut definition, remove them.
8910 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8911 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8912 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8913 with MEM_REF LHS with SSA_NAME address.
8915 2013-04-08 Jeff Law <law@redhat.com>
8917 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
8919 2013-04-08 Richard Biener <rguenther@suse.de>
8921 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8923 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8924 determined vector type.
8925 (vect_analyze_data_refs): Likewise.
8926 (vect_get_new_vect_var): Adjust.
8927 (vect_create_destination_var): Preserve SSA name versions.
8928 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8929 not dump anything here.
8931 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8933 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8934 Add member lr_slot_known.
8935 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8937 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8938 Remove code that sets lr_slot_offset according to what a previous
8939 version of epiphany_emit_save_restore used to do.
8940 (epiphany_emit_save_restore): When doing an lr save or restore,
8941 set/verify lr_slot_known and lr_slot_offset.
8943 2013-04-08 Xinyu Qi <xyqi@marvell.com>
8946 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
8949 2013-04-08 Richard Biener <rguenther@suse.de>
8951 * alias.c (find_base_term): Fix thinko in previous change.
8953 2013-04-08 Jakub Jelinek <jakub@redhat.com>
8955 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8956 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8957 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
8958 if possible to compute val.
8959 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8960 For QImode integers don't require anything about precision. Use
8961 const_with_all_bytes_same to find out if the constant doesn't have
8962 repeated bytes in it.
8964 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8966 * config/s390/s390.c (s390_expand_insv): Only accept insertions
8969 2013-04-08 Marek Polacek <polacek@redhat.com>
8971 PR rtl-optimization/48182
8972 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8975 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8978 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8979 nuses, make sure we have a label.
8981 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8984 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8985 (rs6000_emit_swdiv_low_precision): Remove.
8986 (rs6000_emit_swdiv): Rewrite to handle between one and four
8987 iterations of Newton-Raphson generally; modify required number of
8988 iterations for some cases.
8989 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8991 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
8993 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8994 set-but-unused variable.
8996 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8997 basic blocks of released function bodies garbage-collectable.
8999 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
9000 (struct rtl_opt_pass): Add TODO_df_finish.
9002 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
9004 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9006 * config/arm/constraints.md (q): New constraint.
9007 * config/arm/ldrdstrd.md: New file.
9008 * config/arm/arm.md (ldrdstrd.md) New include.
9009 (arm_movdi): Use "q" instead of "r" constraint
9010 for double-word memory access.
9011 (movdf_soft_insn): Likewise.
9012 * config/arm/vfp.md (movdi_vfp): Likewise.
9013 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
9014 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
9015 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
9016 (mem_ok_for_ldrd_strd): Likewise.
9017 (output_move_double): Update assertion.
9019 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9021 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
9023 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9025 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
9026 define_insn_and_split.
9027 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
9029 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9031 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
9032 define_insn_and_split.
9033 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
9034 (shiftsi3_compare): New pattern.
9036 * config/arm/unspecs.md (UNSPEC_RRX): New.
9038 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9040 * config/arm/arm.md (negdi_extendsidi): New pattern.
9041 (negdi_zero_extendsidi): Likewise.
9043 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9045 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
9046 define_insn_and_split.
9047 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
9048 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
9050 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9052 * config/arm/arm.md (arm_subdi3): Convert define_insn into
9053 define_insn_and_split.
9054 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
9055 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
9057 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9059 * config/arm/arm.md (subsi3_carryin): New pattern.
9060 (subsi3_carryin_const): Likewise.
9061 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
9062 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
9064 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9066 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
9068 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9070 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
9071 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
9073 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9075 * config/arm/arm.c (arm_expand_builtin): Change fcode
9076 type to unsigned int.
9078 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9080 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9082 2013-04-04 Ian Lance Taylor <iant@google.com>
9084 * doc/standards.texi (Standards): The Go frontend supports the Go 1
9087 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
9090 * df-scan.c (df_insn_delete): Disable failing assert.
9092 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9094 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9095 New function prototype.
9096 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9097 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9098 (arm_builtin_vectorized_function): New function.
9100 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9102 * config/arm/arm_neon_builtins.def: New file.
9103 * config/arm/arm.c (neon_builtin_data): Move contents to
9104 arm_neon_builtins.def.
9105 (enum arm_builtins): Include neon builtin definitions.
9106 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
9107 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
9109 2013-04-04 Marek Polacek <polacek@redhat.com>
9111 PR tree-optimization/48186
9112 * predict.c (maybe_hot_frequency_p): Return false if
9113 HOT_BB_FREQUENCY_FRACTION is 0.
9114 (cgraph_maybe_hot_edge_p): Likewise.
9116 2013-04-04 Richard Biener <rguenther@suse.de>
9118 PR tree-optimization/56826
9119 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9122 2013-04-04 Richard Biener <rguenther@suse.de>
9124 PR tree-optimization/56213
9125 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
9126 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
9128 2013-04-04 Richard Biener <rguenther@suse.de>
9130 PR tree-optimization/56837
9131 * tree-loop-distribution.c (classify_partition): For non-zero
9132 values require that the value has the same precision as its
9133 mode to be useful as memset value.
9135 2013-04-03 Nick Clifton <nickc@redhat.com>
9137 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
9138 (fmssf4): Use fmsf.s on E3V5 architectures.
9139 (fnmasf4): Use fnmaf.s on E3V5 architectures.
9140 (fnmssf4): Use fnmsf.s on E3V5 architectures.
9142 2013-04-03 Jeff Law <law@redhat.com>
9144 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9145 (lra-eliminations.o): Likewise.
9147 2013-04-03 Teresa Johnson <tejohnson@google.com>
9149 * gcov-io.c (compute_working_sets): Moved most of body of old
9150 compute_working_sets here from profile.c.
9151 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
9152 (gcov_working_set_t): Moved typedef here from basic-block.h
9153 (compute_working_set): Declare.
9154 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9155 (get_working_sets): Renamed from compute_working_set,
9156 replace most of body with call to new compute_working_sets.
9157 (get_exec_counts): Replace call to compute_working_sets
9158 to get_working_sets.
9159 * profile.h (get_working_sets): Renamed from compute_working_set.
9160 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
9161 to get_working_sets.
9162 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9163 * gcov-dump.c (dump_working_sets): New function.
9165 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9167 * hwint.c (sext_hwi, zext_hwi): New functions.
9168 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9169 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9170 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9171 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9172 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9173 (sext_hwi, zext_hwi): New functions.
9175 2013-04-03 Jeff Law <law@redhat.com>
9177 PR tree-optimization/56799
9178 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9179 back test for widening conversion erroneously dropped in prior change.
9181 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9184 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9185 instead of next_real_insn.
9187 2013-04-03 Marek Polacek <polacek@redhat.com>
9190 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
9192 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9195 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9197 (thumb1_output_casesi): Likewise.
9198 (thumb2_output_casesi): Likewise.
9200 2013-04-03 Richard Biener <rguenther@suse.de>
9202 PR tree-optimization/56817
9203 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9205 (tree_unroll_loops_completely_1): ... new function to manually
9206 walk the loop tree, properly defering outer loops of unrolled
9207 loops to later iterations.
9209 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9211 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9212 (vectorizable_load): Likewise.
9213 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9214 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9216 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9218 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9221 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9223 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9225 2013-04-03 Bin Cheng <bin.cheng@arm.com>
9227 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9229 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9231 PR tree-optimization/56790
9232 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9235 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
9237 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9239 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9240 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9243 2013-04-03 Jakub Jelinek <jakub@redhat.com>
9246 * tree.h (force_folding_builtin_constant_p): New decl.
9247 * builtins.c (force_folding_builtin_constant_p): New variable.
9248 (fold_builtin_constant_p): Fold immediately also if
9249 force_folding_builtin_constant_p.
9251 2013-04-03 Richard Biener <rguenther@suse.de>
9253 PR tree-optimization/56812
9254 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9255 DRs of the same interleaving chain are independent.
9257 2013-04-02 Jason Merrill <jason@redhat.com>
9259 * gdbinit.in (pbb): Use debug fn.
9261 2013-04-02 Lawrence Crowl <crowl@google.com>
9263 * sese.h (struct ivtype_map_elt_s): Remove unused.
9264 (extern debug_ivtype_map): Remove unused.
9265 (extern eq_ivtype_map_elts): Remove unused.
9266 * sese.c (debug_ivtype_map): Removed unused.
9267 (debug_ivtype_map_1): Removed unused.
9268 (debug_ivtype_elt): Remove unused.
9269 (eq_ivtype_map_elts): Remove unused.
9272 2013-04-02 Kai Tietz <ktietz@redhat.com>
9275 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9276 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
9277 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9279 (legitimize_pe_coff_symbol): Likewise.
9280 (is_imported_p): New helper-function.
9281 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9282 for Windows x64 targets.
9283 (ix86_expand_prologue): Optimize for pe-coff targets.
9284 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9285 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9286 medium/large code-model.
9287 (legitimize_pic_address): Likewise.
9288 (legitimize_tls_address): Likewise.
9289 (ix86_expand_call): Likewise.
9290 (x86_output_mi_thunk): Likewise.
9291 (get_dllimport_decl): Add new beimport argument.
9292 (construct_plt_address): Don't assert for x64 pe-coff targets.
9293 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9295 (SYMBOL_FLAG_STUBVAR): New macro.
9296 (SYMBOL_REF_STUBVAR_P): Likewise.
9297 * config/i386/winnt.c (stub_list): New structure.
9298 (stub_head): New local variable.
9299 (i386_pe_record_stub): New function.
9300 (i386_pe_file_end): Emit refptr-stubs.
9302 2013-04-02 Jakub Jelinek <jakub@redhat.com>
9304 PR rtl-optimization/56745
9305 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9306 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9309 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9310 and both of them are MEM_REFs, just compare first argument for
9311 equality and attempt to deal even with differing offsets.
9314 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9315 of gimple_clobber_p to be MEM_REF.
9316 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9317 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
9318 after gimplification.
9319 * asan.c (get_mem_ref_of_assignment): Don't instrument
9320 gimple_clobber_p stmts.
9321 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9322 gimple_clobber_p stmt if they have MEM_REF lhs and
9323 are dead because of another gimple_clobber_p stmt.
9324 * tree-ssa-live.c (clear_unused_block_pointer): Treat
9325 gimple_clobber_p stmts like debug stmts.
9326 (remove_unused_locals): Remove clobbers with MEM_REF lhs
9327 that refer to unused VAR_DECLs or uninitialized values.
9328 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9329 gimple_clobber_p stmts if they refer to removed parameters.
9330 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9333 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
9335 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9336 using SWI48 mode attribute.
9338 2013-04-02 Wei Mi <wmi@google.com>
9340 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9341 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9342 *<rotate_insn><mode>3_mask in i386.md.
9344 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9346 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9348 2013-04-02 Richard Biener <rguenther@suse.de>
9350 PR tree-optimization/56778
9351 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9352 Runtime alias tests are not supported for gather loads.
9353 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9354 stmts referenced from SSA operands before updating SSA form.
9356 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9357 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9359 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
9360 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9361 * config/arm/cortex-a53.md: New file.
9362 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9363 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9364 * config/arm/arm.c (arm_issue_rate): Likewise.
9365 * config/arm/arm-tune.md: Regenerate
9366 * config/arm/arm-tables.opt: Regenerate.
9367 * config/arm/arm-cores.def: Add cortex-a53.
9369 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9371 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9374 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9376 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9377 scalar load/store operations using B/H registers.
9378 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9380 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9382 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9384 * config/aarch64/aarch64.c
9385 (aarch64_simd_scalar_immediate_valid_for_move): New.
9386 * config/aarch64/aarch64-protos.h
9387 (aarch64_simd_scalar_immediate_valid_for_move): New.
9388 * config/aarch64/constraints.md (Dh, Dq): New.
9389 * config/aarch64/iterators.md (hq): New.
9391 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9393 * reorg.c (get_branch_condition): Deal with conditional returns.
9394 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9396 2013-04-01 Wei Mi <wmi@google.com>
9398 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9399 Truncate operand 2 using %b asm operand modifier.
9400 (*<shift_insn><mode>3_mask): Ditto.
9401 (*<rotate_insn><mode>3_mask): Ditto.
9403 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9406 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9408 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9410 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9412 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9414 2013-03-30 Lawrence Crowl <crowl@google.com>
9416 * dse.c (clear_alias_sets): Remove never set.
9417 (disqualified_clear_alias_sets): Remove never set.
9418 (clear_alias_mode_pool): Remove never set.
9419 (dse_step0): Remove condition that is never true.
9420 (canon_address): Remove condition that is never true.
9421 (dse_step7): Remove condition that is never true.
9422 (rest_of_handle_dse): Remove condition that is never true.
9423 (rest_of_handle_dse::did_global): Remove never read from above.
9424 (dse_step2_spill): Remove never called from above.
9425 (dse_step5_spill): Remove never called from above.
9427 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9429 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9430 JUMP_TABLE_DATA changes.
9431 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9432 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9433 (Insns) <jump_table_data>: New entry.
9434 * doc/tm.texi: Regenerate.
9436 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9438 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9439 for table jump at the end of a basic block using tablejump_p.
9440 * targhooks.c (default_invalid_within_doloop): Likewise.
9441 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9442 target hook implementation that is identical to the default hook.
9443 (rs6000_invalid_within_doloop): Remove.
9445 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9446 unused variable from tablejump_p call.
9448 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9449 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9450 (INSN_DELETED_P): Likewise.
9451 (emit_jump_table_data): New prototype.
9452 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9453 after 4th as unused.
9454 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9455 * sched-vis.c (print_insn): Likewise.
9456 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9457 insn for compatibility with back ends that use next_active_insn to
9458 identify jump table data.
9459 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9460 (remove_insn): Likewise.
9461 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9463 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9464 (emit_jump_table_data): New function.
9466 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9467 basic block, a JUMP_TABLE_DATA never is.
9468 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9469 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9470 off from code handling real insns.
9471 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9472 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9473 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9474 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9475 is not a NONDEBUG_INSN_P.
9476 * ira-costs.c (scan_one_insn): Likewise.
9477 * jump.c (mark_all_labels): Likewise.
9478 (mark_jump_label_1): Likewise.
9479 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9480 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9482 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9483 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9484 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9485 JUMP_TABLE_DATA_P insns.
9486 (calculate_elim_costs_all_insns): Likewise.
9487 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9488 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9489 (delete_output_reload): Code style fixups.
9490 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9491 insn flags on this non-insn.
9492 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9493 as scheduling barriers, for pre-change compatibility.
9494 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9495 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9497 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9498 redundant JUMP_TABLE_DATA_P test.
9499 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9500 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9501 (frv_for_each_packet): Likewise.
9502 * config/i386/i386.c (min_insn_size): Likewise.
9503 (ix86_avoid_jump_mispredicts): Likewise.
9504 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9505 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9506 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9507 (mips16_insn_length): Robustify.
9508 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9509 (mips16_split_long_branches): Likewise.
9510 * config/pa/pa.c (pa_combine_instructions): Likewise.
9511 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9512 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9513 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9514 as contributing to pool range lengths.
9515 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9516 Remove redundant JUMP_TABLE_DATA_P test.
9517 (sh_loop_align): Likewise.
9518 (split_branches): Likewise.
9519 (sh_insn_length_adjustment): Likewise.
9520 * config/spu/spu.c (get_branch_target): Likewise.
9522 2013-03-29 Jan Hubicka <jh@suse.cz>
9524 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9525 gcov streaming; stream hot bb threshold to ltrans.
9526 * predict.c (get_hot_bb_threshold): Break out from ....
9527 (maybe_hot_count_p): ... here.
9528 (set_hot_bb_threshold): New function.
9529 * lto-section-in.c (lto_section_name): Add profile.
9530 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9531 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9533 (histogram_entry): New structure.
9534 (histogram, histogram_pool): New global vars.
9535 (histogram_hash): New structure.
9536 (histogram_hash::hash): New method.
9537 (histogram_hash::equal): Likewise.
9538 (account_time_size): New function.
9539 (cmp_counts): New function.
9540 (dump_histogram): New function.
9541 (ipa_profile_generate_summary): New function.
9542 (ipa_profile_write_summary): New function.
9543 (ipa_profile_read_summary): New function.
9544 (ipa_profile): Decide on threshold.
9545 (pass_ipa_profile): Add ipa_profile_write_summary and
9546 ipa_profile_read_summary.
9547 * Makefile.in (ipa.o): Update dependencies.
9548 * lto-streamer.h (LTO_section_ipa_profile): New section.
9550 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9552 * tree.h (VAR_P): New.
9554 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9557 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9559 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9561 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9562 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9563 (control_flow_insn_p): Likewise.
9564 * cfgrtl.c (duplicate_insn_chain): Likewise.
9565 * final.c (get_attr_length_1): Likewise.
9566 (shorten_branches): Likewise.
9567 (final_scan_insn): Likewise.
9568 * function.c (instantiate_virtual_regs): Likewise.
9569 * gcse.c (insert_insn_end_basic_block): Likewise.
9570 * ira-costs.c (scan_one_insn): Likewise.
9571 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9572 * lra.c (check_rtl): Likewise.
9573 * reload1.c (elimination_costs_in_insn): Likewise.
9574 * reorg.c (follow_jumps): Likewise.
9576 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9577 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9578 (thumb_far_jump_used_p): Likewise.
9579 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9580 (workaround_speculation): Likewise.
9581 (add_sched_insns_for_speculation): Likewise.
9582 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9583 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9584 (frv_for_each_packet): Likewise.
9585 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9586 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9587 (final_emit_insn_group_barriers): Likewise.
9588 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9589 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9590 (mips16_insn_length): Likewise.
9591 * config/pa/pa.c (pa_reorg): Likewise.
9592 (pa_combine_instructions): Likewise.
9593 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9594 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9595 (sh_reorg): Likewise.
9596 (split_branches): Likewise.
9597 * config/spu/spu.c (get_branch_target): Likewise.
9599 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9602 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9604 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
9605 Fix declaration name.
9607 2013-03-28 Lawrence Crowl <crowl@google.com>
9609 * graphds.h (struct graph.indicies): Remove unused.
9610 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
9611 (SCOP_ORIGINAL_PDDRS): Remove unused.
9612 * sese.h (extern insert_loop_close_phis): Removed unused.
9613 (extern insert_guard_phis): Removed unused.
9614 (extern ivtype_map_elt_info): Removed unused.
9615 (new_ivtype_map_elt): Removed unused.
9616 * sese.c (ivtype_map_elt_info): Removed unused.
9618 2013-03-28 Lawrence Crowl <crowl@google.com>
9620 * Makefile.in: Add several missing include dependences.
9622 (test-dump.o): New. This object is not added to any executable,
9623 but is present for ad-hoc testing.
9625 (debug (const bitmap_head_def &)): New.
9626 (debug (const bitmap_head_def *)): New.
9628 (extern debug (const bitmap_head_def &)): New.
9629 (extern debug (const bitmap_head_def *)): New.
9631 (debug (edge_def &)): New.
9632 (debug (edge_def *)): New.
9634 (debug (basic_block_def &)): New.
9635 (debug (basic_block_def *)): New.
9637 (dump_node (const_tree, int, FILE *)): Correct source file.
9639 (debug (die_struct &)): New.
9640 (debug (die_struct *)): New.
9642 (extern debug (die_struct &)): New.
9643 (extern debug (die_struct *)): New.
9644 * gimple-pretty-print.c
9645 (debug (gimple_statement_d &)): New.
9646 (debug (gimple_statement_d *)): New.
9647 * gimple-pretty-print.h
9648 (extern debug (gimple_statement_d &)): New.
9649 (extern debug (gimple_statement_d *)): New.
9651 (debug (ira_allocno_copy &)): New.
9652 (debug (ira_allocno_copy *)): New.
9653 (debug (ira_allocno &)): New.
9654 (debug (ira_allocno *)): New.
9656 (extern debug (ira_allocno_copy &)): New.
9657 (extern debug (ira_allocno_copy *)): New.
9658 (extern debug (ira_allocno &)): New.
9659 (extern debug (ira_allocno *)): New.
9661 (debug (live_range &)): New.
9662 (debug (live_range *)): New.
9664 (debug (lra_live_range &)): New.
9665 (debug (lra_live_range *)): New.
9667 (debug (lra_live_range &)): New.
9668 (debug (lra_live_range *)): New.
9670 (debug (omega_pb_d &)): New.
9671 (debug (omega_pb_d *)): New.
9673 (extern debug (omega_pb_d &)): New.
9674 (extern debug (omega_pb_d *)): New.
9676 (debug (const rtx_def &)): New.
9677 (debug (const rtx_def *)): New.
9679 (debug_tree (tree): Move within file.
9680 (debug_raw (const tree_node &)): New.
9681 (debug_raw (const tree_node *)): New.
9682 (dump_tree_via_hooks (const tree_node *, int)): New.
9683 (debug (const tree_node &)): New.
9684 (debug (const tree_node *)): New.
9685 (debug_verbose (const tree_node &)): New.
9686 (debug_verbose (const tree_node *)): New.
9687 (debug_head (const tree_node &)): New.
9688 (debug_head (const tree_node *)): New.
9689 (debug_body (const tree_node &)): New.
9690 (debug_body (const tree_node *)): New.
9691 (debug_vec_tree (tree): Move and reimplement in terms of dump.
9692 (debug (vec<tree, va_gc> &)): New.
9693 (debug (vec<tree, va_gc> *)): New.
9695 (extern debug (const rtx_def &)): New.
9696 (extern debug (const rtx_def *)): New.
9698 (debug_raw (simple_bitmap_def &)): New.
9699 (debug_raw (simple_bitmap_def *)): New.
9700 (debug (simple_bitmap_def &)): New.
9701 (debug (simple_bitmap_def *)): New.
9703 (extern debug (simple_bitmap_def &)): New.
9704 (extern debug (simple_bitmap_def *)): New.
9705 (extern debug_raw (simple_bitmap_def &)): New.
9706 (extern debug_raw (simple_bitmap_def *)): New.
9708 (debug (vinsn_def &)): New.
9709 (debug (vinsn_def *)): New.
9710 (debug_verbose (vinsn_def &)): New.
9711 (debug_verbose (vinsn_def *)): New.
9712 (debug (expr_def &)): New.
9713 (debug (expr_def *)): New.
9714 (debug_verbose (expr_def &)): New.
9715 (debug_verbose (expr_def *)): New.
9716 (debug (vec<rtx> &)): New.
9717 (debug (vec<rtx> *)): New.
9719 (extern debug (vinsn_def &)): New.
9720 (extern debug (vinsn_def *)): New.
9721 (extern debug_verbose (vinsn_def &)): New.
9722 (extern debug_verbose (vinsn_def *)): New.
9723 (extern debug (expr_def &)): New.
9724 (extern debug (expr_def *)): New.
9725 (extern debug_verbose (expr_def &)): New.
9726 (extern debug_verbose (expr_def *)): New.
9727 (extern debug (vec<rtx> &)): New.
9728 (extern debug (vec<rtx> *)): New.
9730 (_list_iter_cond_expr): Make inline instead of static.
9732 (debug (sreal &)): New.
9733 (debug (sreal *)): New.
9735 (extern debug (sreal &)): New.
9736 (extern debug (sreal *)): New.
9738 (extern debug_raw (const tree_node &)): New.
9739 (extern debug_raw (const tree_node *)): New.
9740 (extern debug (const tree_node &)): New.
9741 (extern debug (const tree_node *)): New.
9742 (extern debug_verbose (const tree_node &)): New.
9743 (extern debug_verbose (const tree_node *)): New.
9744 (extern debug_head (const tree_node &)): New.
9745 (extern debug_head (const tree_node *)): New.
9746 (extern debug_body (const tree_node &)): New.
9747 (extern debug_body (const tree_node *)): New.
9748 (extern debug (vec<tree, va_gc> &)): New.
9749 (extern debug (vec<tree, va_gc> *)): New.
9751 (debug (struct loop &)): New.
9752 (debug (struct loop *)): New.
9753 (debug_verbose (struct loop &)): New.
9754 (debug_verbose (struct loop *)): New.
9755 * tree-dump.c: Add header dependence.
9757 (extern debug (struct loop &)): New.
9758 (extern debug (struct loop *)): New.
9759 (extern debug_verbose (struct loop &)): New.
9760 (extern debug_verbose (struct loop *)): New.
9762 (debug (data_reference &)): New.
9763 (debug (data_reference *)): New.
9764 (debug (vec<data_reference_p> &)): New.
9765 (debug (vec<data_reference_p> *)): New.
9766 (debug (vec<ddr_p> &)): New.
9767 (debug (vec<ddr_p> *)): New.
9769 (extern debug (data_reference &)): New.
9770 (extern debug (data_reference *)): New.
9771 (extern debug (vec<data_reference_p> &)): New.
9772 (extern debug (vec<data_reference_p> *)): New.
9773 (extern debug (vec<ddr_p> &)): New.
9774 (extern debug (vec<ddr_p> *)): New.
9776 (debug (pt_solution &)): New.
9777 (debug (pt_solution *)): New.
9779 (extern debug (pt_solution &)): New.
9780 (extern debug (pt_solution *)): New.
9782 (debug (_var_map &)): New.
9783 (debug (_var_map *)): New.
9784 (debug (tree_live_info_d &)): New.
9785 (debug (tree_live_info_d *)): New.
9787 (extern debug (_var_map &)): New.
9788 (extern debug (_var_map *)): New.
9789 (extern debug (tree_live_info_d &)): New.
9790 (extern debug (tree_live_info_d *)): New.
9792 2013-03-28 Jan Hubicka <jh@suse.cz>
9794 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
9796 2013-03-28 Ian Bolton <ian.bolton@arm.com>
9798 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
9799 record only when desired or required.
9801 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
9803 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
9804 *vec_extractv2di_1_rex64. Use x64 isa attribute.
9806 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9808 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
9809 (*andsi3_compare0_uxtw): New pattern.
9810 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
9811 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
9813 2013-03-28 Jan Hubicka <jh@suse.cz>
9815 * data-streamer-in.c (streamer_read_gcov_count): New function.
9816 * gimple-streamer-out.c: Include value-prof.h.
9817 (output_gimple_stmt): Output histogram.
9818 (output_bb): Use streamer_write_gcov_count.
9819 * value-prof.c: Include data-streamer.h
9820 (dump_histogram_value): Add HIST_TYPE_MAX.
9821 (stream_out_histogram_value): New function.
9822 (stream_in_histogram_value): New function.
9823 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
9824 (stream_out_histogram_value, stream_in_histogram_value): Declare.
9825 * data-streamer-out.c (streamer_write_gcov_count): New function.
9826 (streamer_write_gcov_count_stream): New function.
9827 * lto-cgraph.c (lto_output_edge): Update counter streaming.
9828 (lto_output_node): Likewise.
9829 (input_node, input_edge): Likewise.
9830 * lto-streamer-out.c (output_cfg): Update streaming.
9831 * lto-streamer-in.c (input_cfg): Likewise.
9832 * data-streamer.h (streamer_write_gcov_count,
9833 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
9834 * gimple-streamer-in.c: Include value-prof.h
9835 (input_gimple_stmt): Input histograms.
9836 (input_bb): Update profile streaming.
9838 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9840 * genmodes.c (emit_max_int): New function.
9841 (emit_insn_modes_h): Added call to emit_max_function.
9842 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
9844 * machmode.def: Fixed comment.
9846 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
9848 * combine.c (try_combine): Removed useless assert.
9849 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
9851 2013-03-28 Marek Polacek <polacek@redhat.com>
9852 Richard Biener <rguenther@suse.de>
9854 PR tree-optimization/56695
9855 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
9856 build signed result of a vector comparison.
9857 * tree-cfg.c (verify_gimple_comparison): Check that a result
9858 of a vector comparison has signed type.
9860 2013-03-28 Richard Biener <rguenther@suse.de>
9862 PR tree-optimization/37021
9863 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
9864 do not restrict gaps between groups.
9865 * tree-vect-stmts.c (vectorizable_load): Properly account for
9866 a gap between groups.
9868 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
9870 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
9871 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
9874 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
9876 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
9877 * doc/extend.texi (Named Address Spaces): Ditto.
9878 (Variable Attributes): Ditto.
9880 2013-03-27 Kai Tietz <ktietz@redhat.com>
9882 * config.build: Add support for cygwin x64 target.
9883 * config.gcc: Likewise.
9884 * config.host: Likewise.
9885 * configure.ac: Likewise
9886 * configure: Regenerated.
9888 2013-03-27 Kai Tietz <ktietz@redhat.com>
9890 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
9891 * config/i386/t-cygwin-w64: New file.
9892 * config/i386/cygwin-w64.h: New file.
9893 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
9894 and add support for x64-cygwin target.
9895 (CPP_SPEC): Likewise.
9896 (CXX_WRAP_SPEC_LIST): Undefine before define.
9897 (LIBGCJ_SONAME): Use 15 as version.
9899 2013-03-27 Richard Biener <rguenther@suse.de>
9901 PR tree-optimization/56716
9902 * tree-ssa-structalias.c (perform_var_substitution): Adjust
9903 dumping for ref nodes.
9905 2013-03-27 Martin Jambor <mjambor@suse.cz>
9907 PR tree-optimization/55334
9908 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9909 restricted pointers to arrays.
9911 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9913 * Makefile.in (.SUFFIXES): Add .cc.
9914 (.c.o): Apply same recipe for implicit rule .cc.o.
9916 2013-03-27 Richard Biener <rguenther@suse.de>
9918 PR tree-optimization/37021
9919 * tree-vect-data-refs.c (vect_check_strided_load): Allow
9920 REALPART/IMAGPART_EXPRs around the supported refs.
9921 * tree-ssa-structalias.c (find_func_aliases): Assume that
9922 floating-point values are not used to transfer pointers.
9924 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9926 * target.def (TARGET_HAS_IFUNC_P): New target hook.
9927 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9928 * doc/tm.texi: Regenerate.
9929 * targhooks.h (default_has_ifunc_p): New.
9930 * targhooks.c (default_has_ifunc_p): Ditto.
9931 * config/linux-protos.h: New file.
9932 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
9933 this hook for linux which disables support of indirect functions in
9935 * config/linux-android.c: New file.
9936 * config/t-linux-android.c: Ditto.
9937 * config.gcc: Added new object file linux-android.o.
9938 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
9939 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
9940 * varasm.c (do_assemble_alias): Likewise.
9941 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9942 doesn't support indirect functions.
9943 * configure: Regenerate.
9945 2013-03-27 Bin Cheng <bin.cheng@arm.com>
9948 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9949 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9952 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9954 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9956 2013-03-27 Terry Guo <terry.guo@arm.com>
9958 * config/arm/arm-cores.def: Added core cortex-r7.
9959 * config/arm/arm-tune.md: Regenerated.
9960 * config/arm/arm-tables.opt: Regenerated.
9961 * doc/invoke.texi: Added entry for core cortex-r7.
9963 2013-03-27 Walter Lee <walt@tilera.com>
9965 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9966 double-decrement of next_scratch_regno.
9968 2013-03-27 Walter Lee <walt@tilera.com>
9970 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9972 (insn_v1mulus): Ditto.
9973 (insn_v2muls): Ditto.
9975 2013-03-27 Walter Lee <walt@tilera.com>
9977 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
9978 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9980 2013-03-27 Walter Lee <walt@tilera.com>
9982 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
9983 (*sibcall_value): Ditto.
9985 2013-03-27 Walter Lee <walt@tilera.com>
9987 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9988 (insn_mnz_v8qi): ... this ...
9989 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
9991 (insn_v<n>mnz): Replaced by ...
9992 (insn_v1mnz): ... this ...
9993 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
9995 (insn_mz_<mode>): Replaced by ...
9996 (insn_mz_v8qi): ... this ...
9997 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
9999 (insn_v<n>mz): Replaced by ...
10000 (insn_v1mz): ... this ...
10001 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
10004 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
10006 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
10008 2013-03-26 Roland McGrath <mcgrathr@google.com>
10010 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
10011 than fprintf with a non-constant, non-format string.
10013 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
10015 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
10016 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
10017 operand 0 predicate.
10018 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
10019 attribute. Use general_x64nomem_operand as operand 1 predicate.
10020 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
10021 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10022 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
10023 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10024 (mov<mode>_insv_1): Remove expander. Merge insn with
10025 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
10026 Use general_x64nomem_operand as operand 1 predicate.
10027 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
10028 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
10029 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10030 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
10031 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
10032 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
10033 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10034 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
10035 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
10036 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
10037 (general_x64nomem_operand): Ditto.
10039 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
10041 * config/rtems.opt: Add -pthread option.
10043 2013-03-26 Richard Biener <rguenther@suse.de>
10045 * alias.c (find_base_term): Avoid redundant and not used recursion.
10046 (base_alias_check): Get the initial base term from the caller.
10047 (true_dependence_1): Compute and pass base terms to base_alias_check.
10048 (write_dependence_p): Likewise.
10049 (may_alias_p): Likewise.
10051 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
10053 * config/aarch64/aarch64.c (aarch64_classify_address): Support
10054 PC-relative load in SI modes and above only.
10056 2013-03-26 Xinyu Qi <xyqi@marvell.com>
10058 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
10059 * config/arm/iwmmxt.md (WCGR0): Update.
10060 (WCGR1, WCGR2, WCGR3): Likewise.
10062 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
10064 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
10065 Use x64 and nox64 isa attributes.
10067 2013-03-26 Richard Biener <rguenther@suse.de>
10069 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10070 alignment computations and rely on get_object_alignment_1
10071 for the !TYPE_P case.
10072 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
10074 2013-03-26 Walter Lee <walt@tilera.com>
10076 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10077 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10079 2013-03-25 Jeff Law <law@redhat.com>
10081 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10082 check for INTEGRAL_TYPE_P that was missing due to checking in
10083 wrong version of prior patch.
10085 2013-03-25 Walter Lee <walt@tilera.com>
10087 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10088 TILEGX_INSN_SHUFFLEBYTES1.
10089 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10091 (tilegx_builtins): Ditto.
10092 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10094 2013-03-25 Walter Lee <walt@tilera.com>
10096 * config/tilegx/tilegx.md (floatsisf2): New pattern.
10097 (floatunssisf2): New pattern.
10098 (floatsidf2): New pattern.
10099 (floatunssidf2): New pattern.
10101 2013-03-25 Walter Lee <walt@tilera.com>
10103 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10104 tests for constraint J, K, N, P.
10106 2013-03-25 Walter Lee <walt@tilera.com>
10108 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10109 Use indirect/pcrel encoding.
10110 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10113 2013-03-25 Steve Ellcey <sellcey@mips.com>
10115 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10116 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10117 * config/mips/mips.c (mips_option_override): Set IMADD default.
10118 * config/mips/mips.h (PTF_AVOID_IMADD): New.
10119 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10120 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10121 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10122 * doc/invoke.texi (-mimadd/-mno-imadd): New.
10124 2013-03-25 Jeff Law <law@redhat.com>
10126 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10127 slightly to avoid creating and folding useless trees. Simplify
10128 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10130 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
10132 * config/i386/i386.md (*zero_extendsidi2): Merge with
10133 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
10134 * config/i386/predicates.md (x86_64_zext_operand): Rename from
10135 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
10136 targets. Clarify comment.
10138 2013-03-25 Martin Jambor <mjambor@suse.cz>
10140 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10141 pass-through jump functions differently.
10142 (ipa_read_jump_function): Likewise. Also use setter functions to set
10145 2013-03-25 Martin Jambor <mjambor@suse.cz>
10147 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10148 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10150 (ipa_get_indirect_edge_target): New function.
10151 (devirtualization_time_bonus): New parameter known_aggs, pass it to
10152 ipa_get_indirect_edge_target. Update all callers.
10153 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
10154 ipa_get_indirect_edge_target_1 instead of calling
10155 ipa_get_indirect_edge_target.
10156 (create_specialized_node): Pass aggvlas to
10157 ipcp_discover_new_direct_edges.
10159 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10161 * config/arm/arm.md (f_sels, f_seld): New types.
10162 (*cmov<mode>): New pattern.
10163 * config/arm/predicates.md (arm_vsel_comparison_operator): New
10166 2013-03-25 Kai Tietz <ktietz@redhat.com>
10168 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10169 POSIX-printf for mingw-hosted builds.
10171 2013-03-25 Richard Biener <rguenther@suse.de>
10173 PR middle-end/56694
10174 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10175 must-not-throw stmt location.
10177 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10179 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10180 Emit load-acquire versions when acq is true.
10181 (arm_emit_store_exclusive): Add rel parameter.
10182 Emit store-release versions when rel is true.
10183 (arm_split_compare_and_swap): Use acquire-release instructions
10185 of barriers when appropriate.
10186 (arm_split_atomic_op): Likewise.
10187 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10188 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10189 (VUNSPEC_SLX): Likewise.
10190 (VUNSPEC_LDA): Likewise.
10191 (VUNSPEC_STL): Likewise.
10192 * config/arm/sync.md (atomic_load<mode>): New pattern.
10193 (atomic_store<mode>): Likewise.
10194 (arm_load_acquire_exclusive<mode>): Likewise.
10195 (arm_load_acquire_exclusivesi): Likewise.
10196 (arm_load_acquire_exclusivedi): Likewise.
10197 (arm_store_release_exclusive<mode>): Likewise.
10199 2013-03-25 Catherine Moore <clm@codesourcery.com>
10201 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10202 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10203 * config/mip/predicates.md (lwsp_swsp_operand,
10204 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10205 sb16_operand, db4_operand, db7_operand, ib3_operand,
10206 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10207 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10208 andi16_operand): New predicates.
10209 * config/mips/mips.md (compression): New attribute.
10210 (enabled): New attribute.
10211 (length): Consider compression in computing length.
10212 (shift_compression): New code attribute.
10213 (*add<mode>3): New operands. Record compression.
10214 (sub<mode>3): Likewise.
10215 (one_cmpl<mode>2): Likewise.
10216 (*and<mode>3): Likewise.
10217 (*ior<mode>3): Likewise.
10218 (unnamed pattern for xor): Likewise.
10219 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10220 (*<optab><mode>3): Likewise.
10221 (*mov<mode>_internal: Likewise.
10222 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10223 (mips_unsigned_immediate_p): New.
10224 (umips_lwsp_swsp_address_p): New.
10225 (m16_based_address_p): New.
10226 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10227 (mips_unsigned_immediate_p): New prototype.
10228 (lwsp_swsp_address_p): New prototype.
10229 (m16_based_address_p): New prototype.
10230 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10231 (mips_signed_immediate_p): New function.
10232 (m16_based_address_p): New function.
10233 (lwsp_swsp_address_p): New function.
10234 (mips_print_operand_punctuation): Recognize short delay slot insns
10235 for microMIPS.add<mode>3"
10237 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10240 * config/arm/iterators.md (v_cmp_result): New mode attribute.
10241 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10243 2013-03-25 Richard Biener <rguenther@suse.de>
10245 PR tree-optimization/56689
10246 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10249 2013-03-25 Richard Biener <rguenther@suse.de>
10251 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10253 (memory_references): Likewise.
10254 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10255 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10256 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10257 (gather_mem_refs_in_loops): Fold into ...
10258 (analyze_memory_references): ... this. Move initialization
10259 to tree_ssa_lim_initialize.
10260 (fill_always_executed_in): Rename to ...
10261 (fill_always_executed_in_1): ... this.
10262 (fill_always_executed_in): Move contains_call computation to
10263 this new function from ...
10264 (tree_ssa_lim_initialize): ... here.
10265 (tree_ssa_lim): Call fill_always_executed_in.
10267 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10269 * postreload.c (reload_combine): Fix code detecting returns.
10271 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10273 * function.c (emit_use_return_register_into_block): On cc0 targets,
10274 do not emit the sequence between cc0 setter and user.
10276 2013-03-25 Kai Tietz <ktietz@redhat.com>
10278 * config/i386/predicates.md (local_symbolic_operand): Interpret
10279 dll-imported symbols as none-local.
10281 2013-03-25 Richard Biener <rguenther@suse.de>
10283 * tree-ssa-loop-im.c (struct depend): Remove.
10284 (struct lim_aux_data): Make depends a vec of gimples.
10285 (free_lim_aux_data): Adjust.
10286 (add_dependency): Likewise.
10287 (set_level): Likewise.
10289 2013-03-25 Richard Biener <rguenther@suse.de>
10291 PR middle-end/56434
10292 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10293 the pointer returned by calls with ECF_MALLOC set.
10295 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10297 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10299 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
10301 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
10302 using MMXMODE mode iterator.
10303 (*move<mode>_internal): Merge with *movv2sf_internal and
10304 *movv2sf_internal_rex64 using MMXMODE mode iterator.
10306 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10308 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10309 (record_last_mem_set_info): Likewise.
10311 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10312 of XNEWVEC followed by memset.
10313 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10315 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10317 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10318 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10319 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10320 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10321 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10322 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10323 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10324 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10325 BARRIER_P instead of GET_CODE.
10327 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10329 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10330 inaccuracy in the probing code.
10332 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10333 (ctrapdi4): Likewise.
10335 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10337 * calls.c (expand_call): Add missing guard to code handling return
10338 of non-BLKmode structures in MSB.
10339 * function.c (expand_function_end): Likewise.
10341 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10343 * combine.c (try_combine): Adjust comment. Do not add the set of
10344 insn #0 if the destination indirectly is set or dies in insn #2.
10345 Tidy up code to distribute a new note.
10347 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10349 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10350 also for alternatives 16 and 17.
10352 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
10354 * config/i386/sse.md (*mov<mode>_internal): Merge with
10355 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10356 Emit insn template depending on type attribute. Use
10357 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10358 movd instead of movq mnemonic for interunit moves. Rewrite mode
10359 attribute calculation. Remove unit attribute calculation.
10360 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10361 Set prefix_data16 attribute for DImode ssemov types.
10362 Use Ym instead of y for SSE-MMX conversion alternatives.
10363 Reorder operand constraints.
10365 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10367 * df.h (df_insn_delete): Adjust prototype.
10368 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10369 and let it decide whether mark the basic block dirty.
10370 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10371 * df-scan.c (df_insn_info_delete): New helper function, split
10372 off from df_insn_delete.
10373 (df_scan_free_bb_info): Use it.
10374 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10376 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10377 that the insn is actually an insn and it has a non-NULL basic block.
10378 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10380 2013-03-22 Richard Biener <rguenther@suse.de>
10382 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10384 (mem_ref_alloc): Do not allocate them.
10385 (refs_independent_p): Do not query or maintain a cache.
10387 2013-03-22 Richard Biener <rguenther@suse.de>
10389 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10390 (gather_mem_refs_in_loops): Do not compute it.
10391 (analyze_memory_references): Do not allocate it.
10392 (tree_ssa_lim_finalize): Do not free it.
10393 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10395 2013-03-22 Richard Biener <rguenther@suse.de>
10397 * is-a.h (as_a): Use gcc_checking_assert.
10399 2013-03-22 Ian Bolton <ian.bolton@arm.com>
10401 * config/aarch64/aarch64.c (aarch64_print_operand): New
10402 format specifier for printing a constant in hex.
10403 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10404 format specifier for printing second operand.
10406 2013-03-22 Richard Biener <rguenther@suse.de>
10408 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10410 (gather_mem_refs_in_loops): Perform store accumulation here.
10411 (create_vop_ref_mapping_loop): Remove.
10412 (create_vop_ref_mapping): Likewise.
10413 (analyze_memory_references): Initialize refs_stored_in_loop.
10414 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
10415 (record_indep_loop): Remove.
10416 (record_dep_loop): New function.
10417 (ref_indep_loop_p_1): Adjust to only walk over references
10418 in the loop, not its subloops.
10419 (ref_indep_loop_p): Rename to ...
10420 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10421 maintaining a more fine-grained cache.
10422 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10423 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10425 2013-03-22 Richard Biener <rguenther@suse.de>
10427 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10428 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10429 aggregate mem_ref_loc.
10430 (free_mem_ref_locs): Inline into ...
10431 (memref_free): ... this and adjust.
10432 (mem_ref_alloc): Adjust.
10433 (mem_ref_locs_alloc): Remove.
10434 (record_mem_ref_loc): Adjust.
10435 (get_all_locs_in_loop): Rewrite into ...
10436 (for_all_locs_in_loop): ... this iterator.
10437 (rewrite_mem_ref_loc): New functor.
10438 (rewrite_mem_refs): Use for_all_locs_in_loop.
10439 (sm_set_flag_if_changed): New functor.
10440 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10441 (ref_always_accessed): New functor.
10442 (ref_always_accessed_p): Use for_all_locs_in_loop.
10444 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10446 * tree-pass.h (PROP_gimple_lvec): New.
10447 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10448 (init_optimization_passes): Move pass_lower_vector.
10449 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10451 (pass_lower_vector): Provide PROP_gimple_lvec.
10452 (pass_lower_vector_ssa): Likewise.
10453 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10455 2013-03-21 Mark Wielaard <mjw@redhat.com>
10457 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10459 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10461 * config/i386/i386.md (*movdi_internal): Disparage slightly
10462 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10463 conversion alternatives.
10465 2013-03-21 Jakub Jelinek <jakub@redhat.com>
10467 PR middle-end/48087
10468 * diagnostic.def (DK_WERROR): New kind.
10469 * diagnostic.h (werrorcount): Define.
10470 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10471 promoted to DK_ERROR, increment DK_WERROR counter instead of
10473 * toplev.c (toplev_main): Call print_ignored_options even if
10474 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10475 even if just werrorcount is non-zero.
10478 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10480 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10481 (string_cst_pool_decl): New function.
10482 (optimize_one_addr_into_implicit_ptr): New function.
10483 (resolve_addr_in_expr): Optimize DWARF location expression
10484 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10485 which doesn't live in memory, but has DW_AT_location or
10486 DW_AT_const_value, or refers to a string literal, into
10487 DW_OP_GNU_implicit_pointer.
10488 (optimize_location_into_implicit_ptr): New function.
10489 (resolve_addr): If removing DW_AT_location of a variable because
10490 it was DW_OP_addr of address of the variable, but the variable doesn't
10491 live in memory, try to emit const value attribute for the initializer.
10493 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10495 * tree.h (VECTOR_TYPE_P): New macro.
10496 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10497 TYPE_MODE): Use it.
10498 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10499 VEC_COND_EXPR cannot be lvalues.
10500 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10502 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
10504 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10505 Restrict the transformation to equal modes.
10507 2013-03-21 Richard Biener <rguenther@suse.de>
10509 PR tree-optimization/39326
10510 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10511 (MEM_ANALYZABLE): Adjust.
10512 (record_mem_ref_loc): Move bitmap ops ...
10513 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10514 unanalyzable refs, do not record locations for it.
10515 (analyze_memory_references): Allocate ref zero as shared
10517 (refs_independent_p): Do not test for unanalyzed mems here.
10518 (ref_indep_loop_p_1): Special-case disambiguation against
10519 the unanalyzed ref.
10520 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
10522 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10524 * config/arm/arm-protos.h (tune_params): Add
10525 prefer_neon_for_64bits field.
10526 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10527 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10528 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10529 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10530 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10531 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10532 (arm_option_override): Handle -mneon-for-64bits new option.
10533 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10534 (prefer_neon_for_64bits): Declare new variable.
10535 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
10536 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
10537 (arch_enabled): Handle new arch types. Remove support for onlya8
10539 (one_cmpldi2): Use new arch names.
10540 (zero_extend<mode>di2, extend<mode>di2): Ditto.
10541 * config/arm/arm.opt (mneon-for-64bits): Add option.
10542 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10543 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10544 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10546 * doc/invoke.texi (-mneon-for-64bits): Document.
10548 2013-03-21 Richard Biener <rguenther@suse.de>
10550 PR tree-optimization/39326
10551 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10552 (sort_bbs_in_loop_postorder_cmp): New function.
10553 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
10555 2013-03-21 Richard Biener <rguenther@suse.de>
10557 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10558 (vect_insert_into_interleaving_chain): Likewise.
10559 (vect_drs_dependent_in_basic_block): Inline ...
10560 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10562 (vect_analyze_data_ref_dependence): ... here. Simplify.
10563 (vect_check_interleaving): Simplify.
10564 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10565 (vect_slp_analyze_data_ref_dependences): ... this new function.
10566 (dr_group_sort_cmp): New function.
10567 (vect_analyze_data_ref_accesses): Compute data-reference groups
10568 here instead of in vect_analyze_data_ref_dependence. Use
10569 a more efficient algorithm.
10570 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10571 vect_slp_analyze_data_ref_dependences. Call
10572 vect_analyze_data_ref_accesses earlier.
10573 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10574 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10575 (vect_slp_analyze_data_ref_dependences): New prototype.
10577 2013-03-21 Richard Biener <rguenther@suse.de>
10579 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10580 ref is stored in the loop.
10581 (find_refs_for_sm): Walk only over all stores.
10582 (store_motion_loop): Allocate from lim_bitmap_obstack.
10583 (store_motion): Likewise.
10585 2013-03-21 Richard Biener <rguenther@suse.de>
10587 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10588 Update virtual SSA form.
10590 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10592 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10593 * configure: Regenerate.
10594 * config.in: Regenerate.
10595 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10596 if !HAVE_LD_EH_FRAME_CIEV3.
10598 2013-03-21 Richard Biener <rguenther@suse.de>
10600 * tree-cfg.c (verify_expr_no_block): New function.
10601 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10602 nor DECL_VALUE_EXPR have locations with associated blocks.
10603 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10604 (clear_unused_block_pointer): Remove code dealing with
10605 blocks in DECL_DEBUG_EXPR locations.
10607 2013-03-21 Richard Biener <rguenther@suse.de>
10609 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
10610 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
10611 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
10612 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
10613 instead of DECL_DEBUG_EXPR_IS_FROM.
10614 * gimplify.c (gimplify_modify_expr): Likewise.
10615 * tree-cfg.c (verify_expr_location_1): Likewise.
10616 * tree-complex.c (create_one_component_var): Likewise.
10617 * tree-sra.c (create_access_replacement): Likewise.
10618 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
10619 (clear_unused_block_pointer): Likewise.
10620 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
10621 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10622 * var-tracking.c (var_debug_decl): Likewise.
10623 (track_expr_p): Likewise.
10624 * tree-inline.c (add_local_variables): Likewise. Set
10625 DECL_HAS_DEBUG_EXPR_P after copying it.
10626 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
10627 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
10629 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
10632 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
10633 * configure: Regenerate.
10634 * config.in: Regenerate.
10635 * config/i386/i386.md (*movdf_internal): Use
10636 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10637 movd instead of movq mnemonic for interunit moves.
10638 (*movdi_internal): Ditto.
10640 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10642 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
10643 (abd<mode>_3): New pattern.
10644 (aba<mode>_3): New pattern.
10645 (fabd<mode>_3): New pattern.
10647 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10649 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
10650 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
10651 occurrence of REGISTER_PREFIX as its empty string.
10653 2013-03-20 Jeff Law <law@redhat.com>
10655 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
10656 addititional equivalences for equality comparisons between an SSA_NAME
10657 and a constant where the SSA_NAME was set from a widening conversion.
10659 2013-03-20 Walter Lee <walt@tilera.com>
10661 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
10663 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10665 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
10666 depending on type attribute.
10667 (*movti_internal): Ditto.
10668 (*movtf_internal): Ditto.
10669 (*movxf_internal): Ditto.
10670 (*movdf_internal): Ditto.
10671 (*movsf_internal): Ditto.
10673 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10675 * config/i386/i386.md (*movti_internal): Set prefix attribute to
10676 maybe_vex for sselog1 and ssemov types.
10677 (*movdi_internal): Reorder operand constraints.
10678 (*movsi_internal): Ditto. Set prefix attribute to
10679 maybe_vex for sselog1 and ssemov types.
10680 (*movtf_internal): Set prefix attribute to maybe_vex
10681 for sselog1 and ssemov types.
10682 (*movdf_internal): Ditto. Set prefix_data16 attribute for
10683 DImode ssemov types. Reorder operand constraints.
10684 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
10685 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
10686 attribute for SImode ssemov types. Reorder operand constraints.
10688 2013-03-20 Martin Jambor <mjambor@suse.cz>
10690 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
10691 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
10693 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
10695 * config/rs6000/predicates.md (indexed_address, update_address_mem
10696 update_indexed_address_mem): New predicates.
10697 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
10698 attribute for load/store instructions.
10699 * config/rs6000/dfp.md (movsd_store): Likewise.
10700 (movsd_load): Likewise.
10701 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
10702 (unnamed HI->DI extend define_insn): Likewise.
10703 (unnamed SI->DI extend define_insn): Likewise.
10704 (unnamed QI->SI extend define_insn): Likewise.
10705 (unnamed QI->HI extend define_insn): Likewise.
10706 (unnamed HI->SI extend define_insn): Likewise.
10707 (unnamed HI->SI extend define_insn): Likewise.
10708 (extendsfdf2_fpr): Likewise.
10709 (movsi_internal1): Likewise.
10710 (movsi_internal1_single): Likewise.
10711 (movhi_internal): Likewise.
10712 (movqi_internal): Likewise.
10713 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
10714 attribute for load/store instructions.
10715 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
10717 (mov<mode>_softfloat): Likewise.
10718 (mov<mode>_hardfloat32): Likewise.
10719 (mov<mode>_hardfloat64): Likewise.
10720 (mov<mode>_softfloat64): Likewise.
10721 (movdi_internal32): Likewise.
10722 (movdi_internal64): Likewise.
10723 (probe_stack_<mode>): Likewise.
10725 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
10727 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
10728 floating point, and decimal floating point to reload iterator.
10730 * config/rs6000/constraints.md (wl constraint): New constraints to
10731 return FLOAT_REGS if certain options are used to reduce the number
10732 of separate patterns that exist in the file.
10733 (wx constraint): Likewise.
10734 (wz constraint): Likewise.
10736 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10737 -mdebug=reg, print wg, wl, wx, and wz constraints.
10738 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10739 Initialize the reload functions for 64-bit binary/decimal floating
10741 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10742 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10743 create the buffer on the stack to overcome not having a 32-bit
10745 (rs6000_emit_move): Likewise.
10746 (rs6000_secondary_memory_needed_rtx): Likewise.
10747 (rs6000_alloc_sdmode_stack_slot): Likewise.
10748 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10749 via xxlxor, just like DFmode 0.0.
10751 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
10752 define as 1 if we are running on a power7 or newer.
10753 (enum r6000_reg_class_enum): Add new constraints.
10755 * config/rs6000/dfp.md (movsd): Delete, combine with binary
10756 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10757 with other moves by using conditional constraits (wg). Use LFIWZX
10758 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
10759 (movsd splitter): Likewise.
10760 (movsd_hardfloat): Likewise.
10761 (movsd_softfloat): Likewise.
10763 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
10764 binary and decimal floating point moves.
10765 (fmove_ok): New attributes to combine binary and decimal floating
10766 point moves, and to combine power6x (mfpgpr) moves along normal
10768 (real_value_to_target): Likewise.
10769 (f32_lr): Likewise.
10770 (f32_lm): Likewise.
10771 (f32_li): Likewise.
10772 (f32_sr): Likewise.
10773 (f32_sm): Likewise.
10774 (f32_si): Likewise.
10775 (movsf): Combine binary and decimal floating point moves. Combine
10776 power6x (mfpgpr) moves with other moves by using conditional
10777 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
10778 (mov<mode> for SFmode/SDmode); Likewise.
10779 (SFmode/SDmode splitters): Likewise.
10780 (movsf_hardfloat): Likewise.
10781 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
10782 (movsf_softfloat): Likewise.
10783 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
10785 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
10786 wx and wz constraints.
10788 * config/rs6000/constraints.md (wg constraint): New constraint to
10789 return FLOAT_REGS if -mmfpgpr (power6x) was used.
10791 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
10794 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10795 -mdebug=reg, print wg, wl, wx, and wz constraints.
10796 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
10797 Initialize the reload functions for 64-bit binary/decimal floating
10799 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
10800 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
10801 create the buffer on the stack to overcome not having a 32-bit
10803 (rs6000_emit_move): Likewise.
10804 (rs6000_secondary_memory_needed_rtx): Likewise.
10805 (rs6000_alloc_sdmode_stack_slot): Likewise.
10806 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
10807 via xxlxor, just like DFmode 0.0.
10809 * config/rs6000/dfp.md (movdd): Delete, combine with binary
10810 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
10811 with other moves by using conditional constraits (wg). Use LFIWZX
10812 and STFIWX for loading SDmode on power7.
10813 (movdd splitters): Likewise.
10814 (movdd_hardfloat32): Likewise.
10815 (movdd_softfloat32): Likewise.
10816 (movdd_hardfloat64_mfpgpr): Likewise.
10817 (movdd_hardfloat64): Likewise.
10818 (movdd_softfloat64): Likewise.
10820 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
10821 64-bit binary and decimal floating point moves.
10822 (FMOVE64X): Likewise.
10823 (movdf): Combine 64-bit binary and decimal floating point moves.
10824 Combine power6x (mfpgpr) moves with other moves by using
10825 conditional constraits (wg).
10826 (mov<mode> for DFmode/DDmode): Likewise.
10827 (DFmode/DDmode splitters): Likewise.
10828 (movdf_hardfloat32): Likewise.
10829 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
10830 (movdf_softfloat32): Likewise.
10831 (movdf_hardfloat64_mfpgpr): Likewise.
10832 (movdf_hardfloat64): Likewise.
10833 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
10834 (movdf_softfloat64): Likewise.
10835 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
10836 (reload_<mode>_load): Move to later in the file so they aren't in
10837 the middle of the floating point move insns.
10838 (reload_<mode>_store): Likewise.
10840 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
10843 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
10844 constraint if -mdebug=reg.
10845 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
10846 Enable using dd reload support if needed.
10848 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
10849 binary and decimal floating point moves in rs6000.md.
10850 (movtd_internal): Likewise.
10852 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
10853 decimal floating point moves.
10855 (movtf_internal): Likewise.
10856 (mov<mode>_internal, TDmode/TFmode): Likewise.
10857 (movtf_softfloat): Likewise.
10858 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
10860 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
10861 movdi_internal64, using wg constraint for move direct operations.
10862 (movdi_internal64): Likewise.
10864 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
10865 MODES_TIEABLE_P for selected modes. Print the numerical value of
10866 the various virtual registers. Use GPR/FPR first/last values,
10867 instead of hard coding the register numbers. Print which modes
10868 have reload functions registered.
10869 (rs6000_option_override_internal): If -mdebug=reg, trace the options
10870 settings before/after setting cpu, target and subtarget settings.
10871 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
10872 and for secondary reload failures in rs6000_secondary_reload_inner.
10873 (rs6000_secondary_reload_fail): Likewise.
10874 (rs6000_secondary_reload_inner): Likewise.
10876 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
10877 macros for first/last GPR and FPR registers.
10878 (LAST_GPR_REGNO): Likewise.
10879 (FIRST_FPR_REGNO): Likewise.
10880 (LAST_FPR_REGNO): Likewise.
10882 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
10883 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
10884 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
10885 (vcond<mode><mode>): Likewise.
10886 (vcondu<mode><mode>): Likewise.
10887 (vector_gtu<mode>): Likewise.
10888 (vector_gte<mode>): Likewise.
10889 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
10890 to prevent the compiler from converting DImode operations to TImode.
10891 (ior<mode>3): Likewise.
10892 (and<mode>3): Likewise.
10893 (one_cmpl<mode>2): Likewise.
10894 (nor<mode>3): Likewise.
10895 (andc<mode>3): Likewise.
10897 * config/rs6000/constraints.md (wt constraint): New constraint
10898 that returns VSX_REGS if TImode is allowed in VSX registers.
10900 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10901 constant under VSX.
10903 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10904 similar to TImode, but it is restricted to being in the GPRs.
10906 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10907 TImode to occupy a single VSX register.
10909 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10910 -mvsx-timode for power7/power8.
10911 (power7 cpu): Likewise.
10912 (power8 cpu): Likewise.
10914 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10915 sure that TFmode/TDmode take up two registers if they are ever
10916 allowed in the upper VSX registers.
10917 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10919 (rs6000_init_hard_regno_mode_ok): Likewise.
10920 (rs6000_debug_reg_global): Add debugging for PTImode and wt
10921 constraint. Print if LRA is turned on.
10922 (rs6000_option_override_internal): Give an error if -mvsx-timode
10923 and VSX is not enabled.
10924 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
10925 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10926 to reg+offset addressing. Use PTImode when checking offset
10927 addresses for validity.
10928 (reg_offset_addressing_ok_p): Likewise.
10929 (rs6000_legitimate_offset_address_p): Likewise.
10930 (rs6000_legitimize_address): Likewise.
10931 (rs6000_legitimize_reload_address): Likewise.
10932 (rs6000_legitimate_address_p): Likewise.
10933 (rs6000_eliminate_indexed_memrefs): Likewise.
10934 (rs6000_emit_move): Likewise.
10935 (rs6000_secondary_reload): Likewise.
10936 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
10937 reloads to fpr registers to continue to use reg+offset addressing,
10938 but 64-bit reloads to altivec registers need reg+reg addressing.
10939 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10940 it. Treat LO_SUM like a PLUS operation.
10941 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
10942 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
10943 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10944 registers to share a register with a smaller sized type, since VSX
10945 puts scalars in the upper 64-bits.
10946 (print_operand): Add support for PTImode.
10947 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10948 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10949 registers, but don't have arithmetic support.
10950 (rs6000_memory_move_cost): Add test for VSX.
10951 (rs6000_opt_masks): Add -mvsx-timode.
10953 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10956 (VSr): Use wt constraint for TImode.
10957 (VSv): Drop TImode support.
10958 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10959 (vsx_movti_64bit): Likewise.
10960 (vsx_movti_32bit): Likewise.
10961 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10962 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10963 one '?' on the appropriate output constraint. Do not allow TImode
10964 logical operations on 32-bit systems.
10965 (vsx_ior<mode>3): Likewise.
10966 (vsx_xor<mode>3): Likewise.
10967 (vsx_one_cmpl<mode>2): Likewise.
10968 (vsx_nor<mode>3): Likewise.
10969 (vsx_andc<mode>3): Likewise.
10970 (vsx_concat_<mode>): Likewise.
10971 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10973 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10974 OPTION_MASK_VSX_TIMODE.
10975 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10976 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10978 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10979 (TI2 iterator): New iterator for TImode, PTImode.
10980 (wd mode attribute): Add values for vector types.
10981 (movti_string): Replace TI move operations with operations for TImode
10982 and PTImode. Add support for TImode being allowed in VSX registers.
10983 (mov<mode>_string, TImode/PTImode): Likewise.
10984 (movti_ppc64): Likewise.
10985 (mov<mode>_ppc64, TImode/PTImode): Likewise.
10986 (TI mode splitters): Likewise.
10988 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10991 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
10993 PR tree-optimization/56355
10994 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10995 Also handle integers with undefined overflow.
10997 2013-03-20 Catherine Moore <clm@codesourcery.com>
10998 Maciej W. Rozycki <macro@codesourcery.com>
10999 Tom de Vries <tom@codesourcery.com>
11000 Nathan Sidwell <nathan@codesourcery.com>
11001 Iain Sandoe <iain@codesourcery.com>
11002 Nathan Froyd <froydnj@codesourcery.com>
11003 Chao-ying Fu <fu@mips.com>
11005 * doc/extend.texi: (micromips, nomicromips, nocompression):
11006 Document new function attributes.
11007 * doc/invoke.texi (minterlink-compressed, mmicromips,
11008 m14k, m14ke, m14kec): Document new options.
11009 (minterlink-mips16): Update documentation.
11010 * doc/md.texi (ZC, ZD): Document new constraints.
11011 * configure.ac (gcc_cv_as_micromips): Check if linker
11012 supports the .set micromips directive.
11013 * configure: Regenerate.
11014 * config.in: Regenerate.
11015 * config/mips/mips-tables.opt: Regenerate.
11016 * config/mips/micromips.md: New file.
11017 * constraints.md (ZC, ZD): New constraints.
11018 * config/mips/predicates.md (movep_src_register): New predicate.
11019 (movep_src_operand): New predicate.
11020 (non_volatile_mem_operand): New predicate.
11021 * config/mips/mips.md (multimem): New type.
11022 (length): Differentiate between 17-bit and 18-bit branch offsets.
11023 (MOVEP1, MOVEP2): New mode iterator.
11024 (mov_<load>l): Use ZC constraint.
11025 (mov_<load>r): Likewise.
11026 (mov_<store>l): Likewise.
11027 (mov_<store>r): Likewise.
11028 (*branch_equality<mode>_inverted): Add microMIPS support.
11029 (*branch_equality<mode>): Likewise.
11030 (*jump_absolute): Likewise.
11031 (indirect_jump_<mode>): Likewise.
11032 (tablejump_<mode>): Likewise.
11033 (<optab>_internal): Likewise.
11034 (sibcall_internal): Likewise.
11035 (sibcall_value_internal): Likewise.
11036 (prefetch): Use constraint ZD.
11037 * config/mips/mips.opt (minterlink-compressed): New option.
11038 (minterlink-mips16): Now an alias for minterlink-compressed.
11039 (mmicromips): New option.
11040 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11041 (compare_and_swap_12): Likewise.
11042 (sync_add<mode>): Likewise.
11043 (sync_<optab>_12): Likewise.
11044 (sync_old_<optab>_12): Likewise.
11045 (sync_new_<optab>_12): Likewise.
11046 (sync_nand_12): Likewise.
11047 (sync_old_nand_12): Likewise.
11048 (sync_new_nand_12): Likewise.
11049 (sync_sub<mode>): Likewise.
11050 (sync_old_add<mode>): Likewise.
11051 (sync_old_sub<mode>): Likewise.
11052 (sync_new_add<mode>): Likewise.
11053 (sync_new_sub<mode>): Likewise.
11054 (sync_<optab><mode>): Likewise.
11055 (sync_old_<optab><mode>): Likewise.
11056 (sync_new_<optab><mode>): Likewise.
11057 (sync_nand<mode>): Likewise.
11058 (sync_old_nand<mode>): Likewise.
11059 (sync_new_nand<mode>): Likewise.
11060 (sync_lock_test_and_set<mode>): Likewise.
11061 (test_and_set_12): Likewise.
11062 (atomic_compare_and_swap<mode>): Likewise.
11063 (atomic_exchange<mode>_llsc): Likewise.
11064 (atomic_fetch_add<mode>_llsc): Likewise.
11065 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11066 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11067 (umips_save_restore_pattern_p): Likewise.
11068 (umips_load_store_pair_p): Likewise.
11069 (umips_output_load_store_pair): Likewise.
11070 (umips_movep_target_p): Likewise.
11071 (umips_12bit_offset_address_p): Likewise.
11072 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11073 (mips_base_mips16): Rename this...
11074 (mips_base_compression_flags): ...to this. Update all uses.
11075 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11076 (mips_mips16_decl_p): Delete.
11077 (mips_nomips16_decl_p): Delete.
11078 (mips_get_compress_on_flags): New function.
11079 (mips_get_compress_off_flags): New function.
11080 (mips_get_compress_mode): New function.
11081 (mips_get_compress_on_name): New function.
11082 (mips_get_compress_off_name): New function.
11083 (mips_insert_attributes): Support multiple compression types.
11084 (mips_merge_decl_attributes): Likewise.
11085 (umips_12bit_offset_address_p): New function.
11086 (mips_start_function_definition): Emit .set micromips directive.
11087 (mips_call_may_need_jalx_p): New function.
11088 (mips_function_ok_for_sibcall): Add microMIPS support.
11089 (mips_print_operand_punctuation): Support short delay slots and
11091 (umips_swm_mask, umips_swm_encoding): New.
11092 (umips_build_save_restore): New function.
11093 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11094 (was_mips16_p): Remove.
11095 (old_compression_mode): New.
11096 (mips_set_compression_mode): New function.
11097 (mips_set_current_function): Add microMIPS support.
11098 (mips_option_override): Likewise.
11099 (umips_save_restore_pattern_p): New function.
11100 (umips_output_save_restore): New function.
11101 (umips_load_store_pair_p_1): New function.
11102 (umips_load_store_pair_p): New function.
11103 (umips_output_load_store_pair_1): New function.
11104 (umips_output_load_store_pair): New function.
11105 (umips_movep_target_p) New function.
11106 (mips_prepare_pch_save): Add microMIPS support.
11107 * config/mips/mips.h (TARGET_COMPRESSION): New.
11108 (TARGET_CPU_CPP_BUILTINS): Update macro
11109 to use new compression flags and to support microMIPS.
11110 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11111 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11112 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11113 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11114 (ASM_SPEC): Support mmicromips and mno-micromips.
11115 (M16STORE_REG_P): New macro.
11116 (MIPS_CALL): Support TARGET_MICROMIPS.
11117 (MICROMIPS_J): New macro.
11118 (mips_base_mips16): Rename this...
11119 (mips_base_compression_flags): ...to this.
11120 (UMIPS_12BIT_OFFSET_P): New macro.
11121 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11122 (MULTILIB_DIRNAMES): Likewise.
11123 2013-03-20 Richard Biener <rguenther@suse.de>
11125 PR tree-optimization/56661
11126 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11127 the result does not have to be distinct.
11129 2013-03-20 Richard Biener <rguenther@suse.de>
11131 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11134 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11135 Steven Bosscher <steven@gcc.gnu.org>
11137 PR rtl-optimization/56605
11138 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11140 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
11143 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11144 that require movd instead of movq.
11146 2013-03-20 Richard Biener <rguenther@suse.de>
11148 * tree-ssa-structalias.c (struct variable_info): Add pointer
11149 to the first field of an aggregate with sub-vars. Make
11150 this and the pointer to the next subfield its ID.
11151 (vi_next): New function.
11152 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11153 storedanything_id, integer_id): Increment by one.
11154 (new_var_info, get_call_vi, lookup_call_clobber_vi,
11155 get_call_clobber_vi): Adjust.
11156 (solution_set_expand): Simplify and speedup.
11157 (solution_set_add): Inline into ...
11158 (set_union_with_increment): ... this. Adjust accordingly.
11159 (do_sd_constraint): Likewise.
11160 (do_ds_constraint): Likewise.
11161 (do_complex_constraint): Simplify.
11162 (build_pred_graph): Adjust.
11163 (solve_graph): Likewise. Simplify and speedup.
11164 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11165 get_constraint_for_component_ref, get_constraint_for_1,
11166 first_vi_for_offset, first_or_preceding_vi_for_offset,
11167 create_function_info_for, create_variable_info_for_1,
11168 create_variable_info_for, intra_create_variable_infos): Adjust.
11169 (init_base_vars): Push NULL for ID zero.
11170 (compute_points_to_sets): Adjust.
11172 2013-03-20 Richard Biener <rguenther@suse.de>
11174 * cfgloop.c (verify_loop_structure): Streamline and avoid
11175 ICEing on corrupt loop tree.
11176 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11179 2013-03-20 Richard Biener <rguenther@suse.de>
11181 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11182 check whether an SSA update is needed.
11184 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
11186 * config/mips/constraints.md (T): Rename to...
11190 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11191 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11193 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11195 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11196 (*subsi3_carryin_uxtw): Likewise.
11198 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11200 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11201 (*rorsi3_insn_uxtw): Likewise.
11203 2013-03-19 Ian Bolton <ian.bolton@arm.com>
11205 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11206 (*extrsi5_insn_uxtw): Likewise.
11208 2013-03-19 Richard Biener <rguenther@suse.de>
11210 PR tree-optimization/56273
11211 * passes.c (init_optimization_passes): Move second VRP after DOM.
11213 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
11215 * config/i386/i386.md (*movti_internal): Merge from
11216 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
11217 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
11218 nox64 isa attributes.
11220 2013-03-18 Richard Biener <rguenther@suse.de>
11222 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11224 (merge_node_constraints): Likewise.
11225 (build_succ_graph): Likewise.
11226 (valid_graph_edge): Inline into single caller.
11227 (unify_nodes): Likewise. Use bitmap_set_bit return value
11229 (scc_visit): Fix formatting and variable use.
11230 (do_sd_constraint): Use gcc_checking_assert.
11231 (do_ds_constraint): Likewise.
11232 (do_complex_constraint): Likewise.
11233 (condense_visit): Likewise. Cleanup.
11234 (dump_pred_graph): New function.
11235 (perform_var_substitution): Dump the pred-graph before
11236 variable substitution.
11237 (find_equivalent_node): Use gcc_checking_assert.
11238 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11240 2013-03-18 Richard Biener <rguenther@suse.de>
11242 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11243 Remove cond_expr_stmt_list argument and do not gimplify the
11245 (vect_loop_versioning): Adjust.
11246 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11247 Cleanup to use less temporaries.
11248 (vect_create_data_ref_ptr): Cleanup.
11250 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11252 PR tree-optimization/56635
11253 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11254 require types_compatible_p types.
11256 2013-03-18 Nick Clifton <nickc@redhat.com>
11258 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11259 spurious backslash.
11261 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11262 Add missing line to comment describing function.
11264 2013-03-18 Richard Biener <rguenther@suse.de>
11266 PR tree-optimization/56210
11267 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11268 Handle string / character search functions.
11269 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11271 2013-03-18 Richard Biener <rguenther@suse.de>
11273 PR middle-end/56483
11274 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11275 and implement properly.
11276 * gimple.h (gimple_cond_single_var_p): Remove.
11278 2013-03-18 Richard Biener <rguenther@suse.de>
11280 * tree-data-ref.h (find_data_references_in_loop): Declare.
11281 * tree-data-ref.c (get_references_in_stmt): Use a stack
11282 vector pre-allocated in the callers.
11283 (find_data_references_in_stmt): Adjust.
11284 (graphite_find_data_references_in_stmt): Likewise.
11285 (create_rdg_vertices): Likewise.
11286 (find_data_references_in_loop): Export.
11287 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11288 Compute dependences here...
11289 (vect_analyze_data_refs): ...not here. When we encounter
11290 a non-vectorizable data reference in basic-block vectorization
11291 truncate the data reference vector. Do not bother to
11292 fixup data-dependence information for gather loads.
11293 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11294 of data references, as reported.
11296 2013-03-18 Richard Biener <rguenther@suse.de>
11298 PR tree-optimization/3713
11299 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
11300 has_constants and expr.
11301 (stmt_has_constants): Properly valueize SSA names when deciding
11302 whether the stmt has constants.
11304 2013-03-18 Richard Biener <rguenther@suse.de>
11306 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11307 whole function when there is nothing to do.
11308 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11309 * tree-vectorizer.c (vectorize_loops): Update virtual and
11310 loop-closed SSA once.
11311 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11313 2013-03-18 Richard Biener <rguenther@suse.de>
11315 PR middle-end/56113
11316 * domwalk.c (bb_postorder): New global static.
11317 (cmp_bb_postorder): New function.
11318 (walk_dominator_tree): Replace scheme imposing an order for
11319 visiting dominator sons by one sorting them at the time they
11320 are pushed on the stack.
11322 2013-03-18 Richard Biener <rguenther@suse.de>
11324 PR tree-optimization/39326
11325 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11326 (struct mem_ref): Replace mem member with ao_ref typed member.
11327 (MEM_ANALYZABLE): Adjust.
11328 (memref_eq): Likewise.
11329 (mem_ref_alloc): Likewise.
11330 (gather_mem_refs_stmt): Likewise.
11331 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11332 (execute_sm_if_changed_flag_set): Adjust.
11333 (execute_sm): Likewise.
11334 (ref_always_accessed_p): Likewise.
11335 (refs_independent_p): Likewise.
11336 (can_sm_ref_p): Likewise.
11338 2013-03-18 Jakub Jelinek <jakub@redhat.com>
11341 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11342 return 1 even for !unsignedp.
11344 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11346 * config/i386/i386.md (isa): Add x64 and nox64.
11347 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11348 (*pushtf): Enable *roF alternative for x64 isa only.
11349 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11350 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11351 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11352 (*movtf_internal): Merge from *movtf_internal_rex64 and
11353 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11354 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11355 nox64 isa attributes.
11356 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11357 nox64 isa attributes.
11358 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11360 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
11362 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11364 2013-03-17 Jakub Jelinek <jakub@redhat.com>
11367 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11368 class names. Remove trailing comma after "ALL_REGS".
11370 2013-03-16 Jan Hubicka <jh@suse.cz>
11372 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11373 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11374 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11375 of cgraph_get_create_node.
11376 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11378 2013-03-16 Jason Merrill <jason@redhat.com>
11381 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11382 with DW_AT_default_value.
11384 2013-03-16 Jakub Jelinek <jakub@redhat.com>
11386 * BASE-VER: Set to 4.9.0.
11388 2013-03-14 Andi Kleen <ak@linux.intel.com>
11391 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11392 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11393 Document _x* TSX intrinsics.
11395 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11396 David Holsgrove <david.holsgrove@xilinx.com>
11398 * configure.ac: Add MicroBlaze TLS support detection.
11399 * configure: Regenerate.
11400 * config/microblaze/microblaze-protos.h
11401 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11402 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11403 * config/microblaze/microblaze.c (microblaze_address_type): Add
11404 ADDRESS_TLS and tls_reloc address types.
11405 (microblaze_address_info): Add tls_reloc.
11406 (TARGET_HAVE_TLS): Define.
11407 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11408 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
11409 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11410 load_tls_operand, microblaze_call_tls_get_addr,
11411 microblaze_legitimize_tls_address): New functions.
11412 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11413 (get_base_reg): Use microblaze_tls_symbol_p.
11414 (microblaze_classify_address): Handle TLS.
11415 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11416 label_mentioned_p and microblaze_tls_referenced_p.
11417 (microblaze_legitimize_address): Handle TLS.
11418 (microblaze_address_insns): Handle ADDRESS_TLS.
11419 (pic_address_needs_scratch): Handle TLS.
11420 (print_operand_address): Handle TLS.
11421 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11422 (microblaze_expand_move): Handle TLS.
11423 (microblaze_legitimate_constant_p): Check
11424 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
11425 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11426 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11427 (PIC_OFFSET_TABLE_REGNUM): Set.
11428 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11429 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11430 (addsi3, movsi_internal2, movdf_internal): Update constraints
11431 * config/microblaze/predicates.md (arith_plus_operand): Define
11432 (move_operand): Redefine as move_src_operand,
11433 check microblaze_tls_referenced_p.
11435 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11437 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11438 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11440 2013-03-14 Ian Bolton <ian.bolton@arm.com>
11442 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11445 2013-03-14 Jakub Jelinek <jakub@redhat.com>
11447 PR tree-optimization/53265
11448 * common.opt (Waggressive-loop-optimizations): New option.
11449 * tree-ssa-loop-niter.c: Include tree-pass.h.
11450 (do_warn_aggressive_loop_optimizations): New function.
11451 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11452 if number_of_latch_executions returned constant.
11453 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11454 early. If number_of_latch_executions returned constant, set
11455 nb_iterations_upper_bound back to it.
11456 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11458 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11459 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11461 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11462 (MULTILIB_OSDIRNAMES): Set.
11463 * genmultilib: If defaultosdirname doesn't start with :: , set
11464 defaultosdirname2 instead, clear it and emit two . multilib_raw
11465 entries instead of just one.
11467 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11469 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11470 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11471 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11472 (SUBTARGET_OVERRIDE_OPTIONS): New.
11474 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11477 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11478 (musermode): Convert to Var(TARGET_USERMODE).
11479 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11480 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11481 * config/sh/sh.c (sh_option_override): Use
11482 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11483 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11485 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11487 (udivsi3_i4_single, divsi3_i4_single): Use
11488 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11490 2013-03-13 Dave Korn <dave.korn.cygwin@....>
11492 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11495 2013-03-13 Richard Biener <rguenther@suse.de>
11497 PR tree-optimization/56608
11498 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11499 calls when vectorizing basic-blocks.
11501 2013-03-13 Jakub Jelinek <jakub@redhat.com>
11504 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11507 2013-03-12 Jakub Jelinek <jakub@redhat.com>
11509 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11511 2013-03-11 Jan Hubicka <jh@suse.cz>
11514 * lto-streamer-out.c (output_symbol_p): Skip references from
11515 constructors of external variables.
11517 2013-03-11 Jan Hubicka <jh@suse.cz>
11519 PR middle-end/56571
11520 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11522 * emit-rtl.c (verify_rtx_sharing): Likewise.
11523 (copy_insn_1): Likewise.
11524 * rtl.c (copy_rtx): Likewise.
11526 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
11529 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11530 output_operand_lossage message.
11532 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
11535 * arm.c (shift_op): Validate RTL pattern on the fly.
11536 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11539 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11542 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11543 new call patterns that clobber %fr12.
11544 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11545 split and postreload patterns.
11546 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11547 registers %fr12 and %fr12R as call used.
11549 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11551 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11552 (canon_address, record_store, replace_read, check_mem_read_rtx,
11553 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11554 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11555 rest_of_handle_dse): Likewise.
11557 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11559 PR middle-end/56524
11560 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11562 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11563 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11564 (save_optabs_if_changed): Replace with...
11565 (init_tree_optimization_optabs): ...this.
11566 * optabs.c (save_optabs_if_changed): Rename to...
11567 (init_tree_optimization_optabs): ...this. Take the optimization node
11568 as argument. Do nothing if the base optabs are already correct.
11569 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11570 to recompute optabs.
11571 * function.h (function): Remove optabs field.
11572 * function.c (invoke_set_current_function_hook): Call
11573 init_tree_optimization_optabs. Use the result to initialize
11576 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
11578 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11579 if GTMA_HAS_NO_INSTRUMENTATION.
11580 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11581 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11582 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11583 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11584 GTMA_HAS_NO_INSTRUMENTATION.
11586 2013-03-08 Jakub Jelinek <jakub@redhat.com>
11588 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11591 2013-03-08 Marek Polacek <polacek@redhat.com>
11592 Jakub Jelinek <jakub@redhat.com>
11594 PR tree-optimization/56478
11595 * predict.c (is_comparison_with_loop_invariant_p): Change the
11596 type of loop_step to tree.
11597 (predict_loops): Adjust.
11598 (predict_iv_comparison): Perform the computations on double_ints.
11600 2013-03-08 Richard Biener <rguenther@suse.de>
11602 PR tree-optimization/56570
11603 * tree-cfg.c (verify_expr_location_1): Verify locations for
11605 * tree-sra.c (create_access_replacement): Strip locations
11606 from DECL_DEBUG_EXPRs.
11608 2013-03-08 Richard Biener <rguenther@suse.de>
11610 * tree-inline.c (expand_call_inline): Do not associate
11611 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
11612 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
11614 2013-03-08 Richard Biener <rguenther@suse.de>
11616 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
11617 or block changes with -Og. Fix for location / block encoding
11618 changes and PHI arguments with locations.
11620 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
11622 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
11624 (struct output_info): Likewise.
11625 (register_overhead): Remove bad gcc_assert.
11626 (bitmap_find_bit): If there is only a single bitmap element, do not
11627 count a miss as a search.
11628 (print_statistics): Update for counter type changes.
11629 (dump_bitmap_statistics): Likewise. Print headers such that they
11630 are properly lined up with the printed counters.
11632 2013-03-07 Jakub Jelinek <jakub@redhat.com>
11634 PR tree-optimization/56559
11635 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
11636 check that it has only a single use.
11638 2013-03-07 Richard Biener <rguenther@suse.de>
11640 * doc/invoke.texi (fwhole-program): Discourage use in combination
11643 2013-03-06 Jakub Jelinek <jakub@redhat.com>
11645 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
11647 PR tree-optimization/56539
11648 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
11649 instead of GSI_CONTINUE_LINKING as last argument to
11650 force_gimple_operand_gsi. Adjust function comment.
11652 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
11655 PR middle-end/56548
11656 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
11657 promoted mode, convert the result back to the original mode.
11659 2013-03-06 Richard Biener <rguenther@suse.de>
11661 PR middle-end/56294
11662 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
11663 (insert_updated_phi_nodes_compare_uids): New function.
11664 (update_ssa): Sort symbols_to_rename after UID before
11665 traversing it to insert PHI nodes.
11667 2013-03-06 Richard Biener <rguenther@suse.de>
11669 PR middle-end/50494
11670 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
11671 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
11674 2013-02-13 Richard Biener <rguenther@suse.de>
11677 * varasm.c (output_constant_def_1): Get the decl representing
11678 the constant as argument.
11679 (output_constant_def): Wrap output_constant_def_1.
11680 (make_decl_rtl): Use output_constant_def_1 with the decl
11681 representing the constant.
11682 (build_constant_desc): Optionally re-use a decl already
11683 representing the constant.
11684 (tree_output_constant_def): Adjust.
11686 2013-03-06 Joey Ye <joey.ye@arm.com>
11689 * gcc.c (convert_white_space): New function.
11690 (main): Handles white space in function name.
11692 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
11695 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
11696 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
11697 to SH_DIV_CALL_TABLE for TARGET_SH2.
11698 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
11700 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
11701 call-table options.
11703 2013-03-05 Sterling Augustine <saugustine@google.com>
11704 Cary Coutant <ccoutant@google.com>
11707 * dwarf2out.c (resolve_addr): Don't call
11708 remove_loc_list_addr_table_entries a second time for the same
11711 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11714 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
11715 (avoid_complex_debug_insns): New function.
11716 (expand_debug_locations): Call it.
11718 PR rtl-optimization/56484
11719 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
11720 lifetimes of hard registers on small register class machines.
11722 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11724 * config/microblaze/microblaze-protos.h: Rename
11725 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
11726 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
11728 (microblaze_fast_interrupt_function_p): New function.
11729 (microblaze_is_interrupt_handler): Rename to
11730 microblaze_is_interrupt_variant and add fast_interrupt check.
11731 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
11732 (save_restore_insns): Likewise.
11733 (compute_frame_size): Likewise.
11734 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
11735 (microblaze_globalize_label): Likewise.
11736 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
11737 * config/microblaze/microblaze.md: Use wrapper
11738 microblaze_is_interrupt_variant.
11740 2013-03-05 Kai Tietz <ktietz@redhat.com>
11742 * sdbout.c (sdbout_one_type): Switch to current function's section
11743 supporting cold/hot.
11745 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
11747 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
11750 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11752 PR middle-end/56461
11753 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
11754 if VALGRIND_GET_VBITS is defined, temporarily make object
11755 memory all defined, and restore previous valgrind addressability
11756 and definability afterwards. Free this_object at the end.
11758 PR middle-end/56461
11759 * lra.c (lra): Call lra_clear_live_ranges if live_p,
11760 right before calling lra_create_live_ranges, also call it
11761 when clearing live_p. Only call lra_clear_live_ranges
11762 at the end if live_p.
11764 PR middle-end/56461
11765 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
11767 2013-03-05 Richard Biener <rguenther@suse.de>
11769 PR tree-optimization/56521
11770 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
11773 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
11776 * except.h (remove_unreachable_eh_regions): New prototype.
11777 * except.c (remove_eh_handler_splicer): New function, split out
11778 of remove_eh_handler.
11779 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
11780 warning about running it on many EH regions one at a time.
11781 (remove_unreachable_eh_regions_worker): New function, walk the
11782 EH tree in depth-first order and remove non-marked regions.
11783 (remove_unreachable_eh_regions): New function.
11784 * tree-eh.c (mark_reachable_handlers): New function, split out
11785 from remove_unreachable_handlers.
11786 (remove_unreachable_handlers): Use mark_reachable_handlers and
11787 remove_unreachable_eh_regions.
11788 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
11789 and remove_unreachable_eh_regions.
11791 2013-03-05 Richard Biener <rguenther@suse.de>
11793 PR middle-end/56525
11794 * loop-init.c (fix_loop_structure): Remove loops in two stages,
11795 not freeing them until the end.
11797 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11799 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
11801 2013-03-05 Richard Biener <rguenther@suse.de>
11803 PR tree-optimization/56270
11804 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
11805 of loads after scheduling an SLP instance.
11807 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11809 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
11811 (check_gcc_parallelize): Run guality.exp as a separate job from
11812 vect.exp with unsorted.exp and $(dg_target_exps) separately from
11813 struct-layout-1.exp with stackalign.exp.
11815 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
11817 PR middle-end/56461
11818 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
11819 load_index sbitmap even if some bit in it isn't set.
11821 PR middle-end/56461
11822 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
11823 (discover_iteration_bound_by_body_walk): Change queues to
11824 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
11825 spelling in comment. Call safe_push on queues[bound_index] directly.
11826 Release queues[queue_index] in every iteration unconditionally.
11827 Release bounds vector.
11829 PR middle-end/56461
11830 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
11831 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
11832 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
11835 2013-03-05 Richard Biener <rguenther@suse.de>
11838 * tree-inline.c (remap_blocks_to_null): New function.
11839 (expand_call_inline): When expanding a call stmt without
11840 an associated block inline remap all callee blocks to NULL.
11842 2013-03-05 Jakub Jelinek <jakub@redhat.com>
11844 PR rtl-optimization/56494
11845 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
11846 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
11847 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
11849 PR middle-end/56461
11850 * sel-sched-ir.c (free_sched_pools): Release
11851 succs_info_pool.stack[succs_info_pool.max_top] vectors too
11852 if succs_info_pool.max_top isn't -1.
11855 * opts.c (opts_obstack, opts_concat): Moved to...
11856 * opts-common.c (opts_obstack, opts_concat): ... here.
11858 2013-03-04 Jakub Jelinek <jakub@redhat.com>
11860 PR middle-end/56461
11861 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
11863 2013-03-04 Martin Jambor <mjambor@suse.cz>
11865 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
11866 all appropriate places.
11868 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
11870 PR tree-optimization/56424
11871 * ipa-split.c (split_function): Do not set the RSO flag if result is
11872 not by reference and its type is a register type.
11874 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
11876 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
11877 (microblaze_legitimate_pic_operand): Likewise
11878 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
11879 new function microblaze_legitimate_pic_operand
11880 * config/microblaze/microblaze-protos.h
11881 (microblaze_legitimate_pic_operand): Declare.
11883 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11885 * config/microblaze/predicates.md (call_insn_simple_operand):
11886 New predicate for supported rtx code types.
11887 * config/microblaze/microblaze.md (call_internal1): Use
11888 call_insn_simple_operand predicate.
11890 2013-03-04 Jakub Jelinek <jakub@redhat.com>
11892 PR middle-end/56461
11893 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
11894 partitions.ordered_remove.
11896 PR middle-end/56461
11897 * tree-vect-stmts.c (vectorizable_conversion): Don't call
11898 vec_oprnds0.create (1) for modifier == NONE.
11900 PR middle-end/56461
11901 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11902 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11903 vec_oprnds1 right before pushing anything to it for
11906 PR middle-end/56461
11907 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11908 set nbbs to 0 instead of having separate code path.
11909 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11910 instead of false as last argument if returning NULL.
11912 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
11914 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11915 the attribute is now called "target" instead of "option".
11916 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11917 * doc/tm.texi.in (Target Attributes): Likewise document the correct
11918 attribute/pragma name for TARGET_OPTION_VALID_P and
11919 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
11920 * doc/tm.texi: Regenerated.
11922 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
11924 * config/microblaze/microblaze.c:
11925 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
11926 * config/microblaze/microblaze.h: Add -mxl-reorder to
11928 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11929 instructions emitted if TARGET_REORDER.
11930 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11931 or 0 for -m/-mno case, but initialises as 2 to detect default use case
11934 2013-03-01 Xinliang David Li <davidxl@google.com>
11936 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11939 2013-03-01 Jakub Jelinek <jakub@redhat.com>
11941 PR middle-end/56461
11942 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11943 vector even when returning true. Fix up function comment formatting.
11945 PR middle-end/56461
11946 * ira-build.c (ira_loop_nodes_count): New variable.
11947 (create_loop_tree_nodes): Initialize it.
11948 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11950 PR middle-end/56461
11951 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11952 method on dr_chain and result_chain.
11953 * tree-vect-stmts.c (vectorizable_store): Only call
11954 result_chain.create if j == 0.
11956 PR middle-end/56461
11957 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11958 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11959 before overwriting it.
11961 2013-03-01 Tobias Burnus <burnus@net-b.de>
11963 * doc/extended.texi (C Extensions): Change order in @menu
11965 (Other MIPS Built-in Functions): Move last MIPS entry before
11966 "picoChip Built-in Functions".
11967 (SH Built-in Functions): Move after RX Built-in Functions.
11968 * doc/gcc.texi (Introduction): Change order in @menu
11970 * doc/md.texi (Constraints): Ditto.
11971 * gty.texi (Type Information): Ditto.
11972 (User-provided marking routines for template types): Make
11974 * doc/invoke.texi (AArch64 Options): Move before
11975 "Adapteva Epiphany Options".
11977 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
11978 Jakub Jelinek <jakub@redhat.com>
11981 * asan.c (gate_asan): Lookup no_sanitize_address instead of
11982 no_address_safety_analysis attribute.
11983 * doc/extend.texi (no_address_safety_attribute): Rename to
11984 no_sanitize_address attribute, mention no_address_safety_analysis
11985 attribute as deprecated alias.
11987 2013-02-28 Jakub Jelinek <jakub@redhat.com>
11989 PR middle-end/56461
11990 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11991 type to vec<vec<tree> > *.
11992 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
11993 to be vec<tree> instead of vec<tree> *, set vec_defs
11994 to vNULL and call vec_defs.create (number_of_vects), adjust other
11996 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11997 vectorizable_condition): Adjust vect_get_slp_defs callers.
11999 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12001 * config/aarch64/aarch64.c
12002 (aarch64_float_const_representable): Remove unused variable.
12004 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12006 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
12008 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12010 * config/aarch64/aarch64-builtins.c
12011 (aarch64_init_simd_builtins): Make static.
12013 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12015 * config/aarch64/aarch64.c
12016 (aarch64_simd_make_constant): Make static.
12018 2013-02-28 Martin Jambor <mjambor@suse.cz>
12020 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
12021 with no initialization to the RHS of debug statements.
12023 2013-02-28 Martin Jambor <mjambor@suse.cz>
12025 PR tree-optimization/56294
12026 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
12028 (get_access_replacement): Do not call create_access_replacement.
12029 Assert a replacement exists.
12030 (get_repl_default_def_ssa_name): Create the replacement declaration
12033 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12035 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
12036 final_end_function.
12038 2013-02-28 Marek Polacek <polacek@redhat.com>
12040 PR rtl-optimization/56466
12041 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
12042 if we're changing a loop.
12043 (peel_loops_completely): Likewise.
12045 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
12048 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
12050 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12053 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
12054 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
12055 INTX_FTYPE_FX, FX_FTYPE_INTX.
12056 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
12058 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12060 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
12061 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
12062 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
12063 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
12064 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
12065 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
12066 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
12067 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
12068 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
12069 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
12070 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
12071 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
12072 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
12073 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12074 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12075 (avrxmega6): Increase max flash segments from 5 to 6.
12076 * config/avr/t-multilib: Regenerate.
12077 * config/avr/avr-tables.opt: Regenerate.
12078 * doc/avr-mmcu.texi: Regenerate.
12080 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
12082 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12083 (avr_device_to_arch): Rename to avr_device_to_ld.
12084 (avr_device_to_as): New prototype.
12085 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12086 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12087 * config/avr/driver-avr.c (avr_device_to_as): New.
12088 (avr_device_to_arch): Rename to avr_device_to_ld.
12090 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12092 PR middle-end/56461
12093 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12094 method on dr_chain and result_chain.
12096 PR middle-end/56461
12097 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12098 pointer_set_destroy on not_executed_last_iteration.
12100 PR middle-end/56461
12101 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
12103 PR middle-end/56461
12104 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12105 FOR_EACH_DEFINED_FUNCTION when freeing state.
12107 PR middle-end/56461
12108 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12110 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12113 PR middle-end/56461
12114 * ipa-cp.c (decide_whether_version_node): Call vec_free on
12115 known_aggs[i].items and release known_aggs vector.
12117 PR middle-end/56461
12118 * ipa-reference.c (propagate): Free node_info even for alias nodes.
12120 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12122 * config/microblaze/microblaze.c (microblaze_emit_compare):
12123 Use xor for EQ/NE comparisions.
12124 * config/microblaze/microblaze.md (cstoresf4): Add constraints
12125 (cbranchsf4): Adjust operator to comparison_operator.
12127 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12129 PR middle-end/56461
12130 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12132 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12133 vec_safe_push, always update *slot.
12134 (redirect_edge_var_map_clear): Use vec_free.
12135 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12136 (free_var_map_entry): Use vec_free.
12137 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12138 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12140 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
12142 PR middle-end/45472
12143 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12144 when the may_trap_p bit of the exprs being merged differs.
12145 Reorder tests for speculativeness in the logical and operator.
12147 2013-02-27 Jakub Jelinek <jakub@redhat.com>
12149 * incpath.c (add_standard_paths): Use reconcat instead of concat
12150 where appropriate and avoid leaking memory.
12152 * opts.h: Include obstack.h.
12153 (opts_concat): New prototype.
12154 (opts_obstack): New declaration.
12155 * opts.c (opts_concat): New function.
12156 (opts_obstack): New variable.
12157 (init_options_struct): Call gcc_init_obstack on opts_obstack.
12158 (finish_options): Use opts_concat instead of concat
12159 and XOBNEWVEC instead of XNEWVEC.
12160 * opts-common.c (generate_canonical_option, decode_cmdline_option,
12161 generate_option): Likewise.
12162 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12163 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12166 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12167 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12169 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12171 PR middle-end/56461
12172 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12174 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12176 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12177 (arm_block_move_unaligned_straight): Likewise.
12178 (arm_adjust_block_mem): Likewise.
12180 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12183 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12184 temp, cond and label.
12185 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12188 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12189 * config/c6x/c6x.h (dbx_register_map): Update declaration.
12192 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12193 of prologue/epilogue functions.
12196 * config/tilegx/tilegx.c (tilegx_expand_prologue):
12197 Remove unused variable cfa_offset.
12198 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12201 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12202 type promotion to unsigned.
12205 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12206 for HOST_WIDE_INT of 32 bit / same size as int.
12207 (arm_block_move_unaligned_straight): Likewise.
12208 (arm_adjust_block_mem): Likewise.
12211 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12214 2013-02-26 Marek Polacek <polacek@redhat.com>
12216 PR tree-optimization/56426
12217 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
12219 2013-02-26 Richard Biener <rguenther@suse.de>
12222 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12223 unused variable loops.
12225 2013-02-26 Jakub Jelinek <jakub@redhat.com>
12227 PR tree-optimization/56448
12228 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12229 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12230 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12231 later operands of the references, or even first operand for
12232 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12234 PR tree-optimization/56443
12235 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12236 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12237 to type_for_mode langhook.
12239 2013-02-25 Matt Turner <mattst88@gmail.com>
12241 * doc/invoke.texi: Document r4700.
12243 2013-02-25 Richard Biener <rguenther@suse.de>
12245 PR tree-optimization/56175
12246 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12248 (simplify_bitwise_binary): ... here. Also guard the conversion
12249 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12251 2013-02-25 Catherine Moore <clm@codesourcery.com>
12254 2013-02-24 Catherine Moore <clm@codesourcery.com>
12255 Maciej W. Rozycki <macro@codesourcery.com>
12256 Tom de Vries <tom@codesourcery.com>
12257 Nathan Sidwell <nathan@codesourcery.com>
12258 Iain Sandoe <iain@codesourcery.com>
12259 Nathan Froyd <froydnj@codesourcery.com>
12260 Chao-ying Fu <fu@mips.com>
12262 * doc/extend.texi: (micromips, nomicromips, nocompression):
12263 Document new function attributes.
12264 * doc/invoke.texi (minterlink-compressed, mmicromips,
12265 m14k, m14ke, m14kec): Document new options.
12266 (minterlink-mips16): Update documentation.
12267 * doc/md.texi (ZC, ZD): Document new constraints.
12268 * configure.ac (gcc_cv_as_micromips): Check if linker
12269 supports the .set micromips directive.
12270 * configure: Regenerate.
12271 * config.in: Regenerate.
12272 * config/mips/mips-tables.opt: Regenerate.
12273 * config/mips/micromips.md: New file.
12274 * constraints.md (ZC, AD): New constraints.
12275 * config/mips/predicates.md (movep_src_register): New predicate.
12276 (movep_src_operand): New predicate.
12277 (non_volatile_mem_operand): New predicate.
12278 * config/mips/mips.md (multimem): New type.
12279 (length): Differentiate between 17-bit and 18-bit branch offsets.
12280 (MOVEP1, MOVEP2): New mode iterator.
12281 (mov_<load>l): Use ZC constraint.
12282 (mov_<load>r): Likewise.
12283 (mov_<store>l): Likewise.
12284 (mov_<store>r): Likewise.
12285 (*branch_equality<mode>_inverted): Add microMIPS support.
12286 (*branch_equality<mode>): Likewise.
12287 (*jump_absolute): Likewise.
12288 (indirect_jump_<mode>): Likewise.
12289 (tablejump_<mode>): Likewise.
12290 (<optab>_internal): Likewise.
12291 (sibcall_internal): Likewise.
12292 (sibcall_value_internal): Likewise.
12293 (prefetch): Use constraint ZD.
12294 * config/mips/mips.opt (minterlink-compressed): New option.
12295 (minterlink-mips16): Now an alias for minterlink-compressed.
12296 (mmicromips): New option.
12297 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12298 (compare_and_swap_12): Likewise.
12299 (sync_add<mode>): Likewise.
12300 (sync_<optab>_12): Likewise.
12301 (sync_old_<optab>_12): Likewise.
12302 (sync_new_<optab>_12): Likewise.
12303 (sync_nand_12): Likewise.
12304 (sync_old_nand_12): Likewise.
12305 (sync_new_nand_12): Likewise.
12306 (sync_sub<mode>): Likewise.
12307 (sync_old_add<mode>): Likewise.
12308 (sync_old_sub<mode>): Likewise.
12309 (sync_new_add<mode>): Likewise.
12310 (sync_new_sub<mode>): Likewise.
12311 (sync_<optab><mode>): Likewise.
12312 (sync_old_<optab><mode>): Likewise.
12313 (sync_new_<optab><mode>): Likewise.
12314 (sync_nand<mode>): Likewise.
12315 (sync_old_nand<mode>): Likewise.
12316 (sync_new_nand<mode>): Likewise.
12317 (sync_lock_test_and_set<mode>): Likewise.
12318 (test_and_set_12): Likewise.
12319 (atomic_compare_and_swap<mode>): Likewise.
12320 (atomic_exchange<mode>_llsc): Likewise.
12321 (atomic_fetch_add<mode>_llsc): Likewise.
12322 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12323 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12324 (umips_save_restore_pattern_p): Likewise.
12325 (umips_load_store_pair_p): Likewise.
12326 (umips_output_load_store_pair): Likewise.
12327 (umips_movep_target_p): Likewise.
12328 (umips_12bit_offset_address_p): Likewise.
12329 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12330 (mips_base_mips16): Rename this...
12331 (mips_base_compression_flags): ...to this. Update all uses.
12332 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12333 (mips_mips16_decl_p): Delete.
12334 (mips_nomips16_decl_p): Delete.
12335 (mips_get_compress_on_flags): New function.
12336 (mips_get_compress_off_flags): New function.
12337 (mips_get_compress_mode): New function.
12338 (mips_get_compress_on_name): New function.
12339 (mips_get_compress_off_name): New function.
12340 (mips_insert_attributes): Support multiple compression types.
12341 (mips_merge_decl_attributes): Likewise.
12342 (umips_12bit_offset_address_p): New function.
12343 (mips_start_function_definition): Emit .set micromips directive.
12344 (mips_call_may_need_jalx_p): New function.
12345 (mips_function_ok_for_sibcall): Add microMIPS support.
12346 (mips_print_operand_punctuation): Support short delay slots and
12348 (umips_swm_mask, umips_swm_encoding): New.
12349 (umips_build_save_restore): New function.
12350 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12351 (was_mips16_p): Remove.
12352 (old_compression_mode): New.
12353 (mips_set_compression_mode): New function.
12354 (mips_set_current_function): Add microMIPS support.
12355 (mips_option_override): Likewise.
12356 (umips_save_restore_pattern_p): New function.
12357 (umips_output_save_restore): New function.
12358 (umips_load_store_pair_p_1): New function.
12359 (umips_load_store_pair_p): New function.
12360 (umips_output_load_store_pair_1): New function.
12361 (umips_output_load_store_pair): New function.
12362 (umips_movep_target_p) New function.
12363 (mips_prepare_pch_save): Add microMIPS support.
12364 * config/mips/mips.h (TARGET_COMPRESSION): New.
12365 (TARGET_CPU_CPP_BUILTINS): Update macro
12366 to use new compression flags and to support microMIPS.
12367 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12368 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12369 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12370 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12371 (ASM_SPEC): Support mmicromips and mno-micromips.
12372 (M16STORE_REG_P): New macro.
12373 (MIPS_CALL): Support TARGET_MICROMIPS.
12374 (MICROMIPS_J): New macro.
12375 (mips_base_mips16): Rename this...
12376 (mips_base_compression_flags): ...to this.
12377 (UMIPS_12BIT_OFFSET_P): New macro.
12378 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12379 (MULTILIB_DIRNAMES): Likewise.
12381 2013-02-25 Tom de Vries <tom@codesourcery.com>
12383 PR rtl-optimization/56131
12384 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12385 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12386 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12388 2013-02-25 Tobias Burnus <burnus@net-b.de>
12390 * doc/invoke.texi (-fsanitize=): Move from optimization
12391 to debugging options.
12393 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12395 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12397 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
12398 Alexander Monakov <amonakov@ispras.ru>
12400 PR middle-end/56077
12401 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12402 flush pending lists also on non-jumps. Adjust comment.
12404 2013-02-24 Catherine Moore <clm@codesourcery.com>
12405 Maciej W. Rozycki <macro@codesourcery.com>
12406 Tom de Vries <tom@codesourcery.com>
12407 Nathan Sidwell <nathan@codesourcery.com>
12408 Iain Sandoe <iain@codesourcery.com>
12409 Nathan Froyd <froydnj@codesourcery.com>
12410 Chao-ying Fu <fu@mips.com>
12412 * doc/extend.texi: (micromips, nomicromips, nocompression):
12413 Document new function attributes.
12414 * doc/invoke.texi (minterlink-compressed, mmicromips,
12415 m14k, m14ke, m14kec): Document new options.
12416 (minterlink-mips16): Update documentation.
12417 * doc/md.texi (ZC, ZD): Document new constraints.
12418 * configure.ac (gcc_cv_as_micromips): Check if linker
12419 supports the .set micromips directive.
12420 * configure: Regenerate.
12421 * config.in: Regenerate.
12422 * config/mips/mips-tables.opt: Regenerate.
12423 * config/mips/micromips.md: New file.
12424 * constraints.md (ZC, AD): New constraints.
12425 * config/mips/predicates.md (movep_src_register): New predicate.
12426 (movep_src_operand): New predicate.
12427 (non_volatile_mem_operand): New predicate.
12428 * config/mips/mips.md (multimem): New type.
12429 (length): Differentiate between 17-bit and 18-bit branch offsets.
12430 (MOVEP1, MOVEP2): New mode iterator.
12431 (mov_<load>l): Use ZC constraint.
12432 (mov_<load>r): Likewise.
12433 (mov_<store>l): Likewise.
12434 (mov_<store>r): Likewise.
12435 (*branch_equality<mode>_inverted): Add microMIPS support.
12436 (*branch_equality<mode>): Likewise.
12437 (*jump_absolute): Likewise.
12438 (indirect_jump_<mode>): Likewise.
12439 (tablejump_<mode>): Likewise.
12440 (<optab>_internal): Likewise.
12441 (sibcall_internal): Likewise.
12442 (sibcall_value_internal): Likewise.
12443 (prefetch): Use constraint ZD.
12444 * config/mips/mips.opt (minterlink-compressed): New option.
12445 (minterlink-mips16): Now an alias for minterlink-compressed.
12446 (mmicromips): New option.
12447 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12448 (compare_and_swap_12): Likewise.
12449 (sync_add<mode>): Likewise.
12450 (sync_<optab>_12): Likewise.
12451 (sync_old_<optab>_12): Likewise.
12452 (sync_new_<optab>_12): Likewise.
12453 (sync_nand_12): Likewise.
12454 (sync_old_nand_12): Likewise.
12455 (sync_new_nand_12): Likewise.
12456 (sync_sub<mode>): Likewise.
12457 (sync_old_add<mode>): Likewise.
12458 (sync_old_sub<mode>): Likewise.
12459 (sync_new_add<mode>): Likewise.
12460 (sync_new_sub<mode>): Likewise.
12461 (sync_<optab><mode>): Likewise.
12462 (sync_old_<optab><mode>): Likewise.
12463 (sync_new_<optab><mode>): Likewise.
12464 (sync_nand<mode>): Likewise.
12465 (sync_old_nand<mode>): Likewise.
12466 (sync_new_nand<mode>): Likewise.
12467 (sync_lock_test_and_set<mode>): Likewise.
12468 (test_and_set_12): Likewise.
12469 (atomic_compare_and_swap<mode>): Likewise.
12470 (atomic_exchange<mode>_llsc): Likewise.
12471 (atomic_fetch_add<mode>_llsc): Likewise.
12472 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12473 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12474 (umips_save_restore_pattern_p): Likewise.
12475 (umips_load_store_pair_p): Likewise.
12476 (umips_output_load_store_pair): Likewise.
12477 (umips_movep_target_p): Likewise.
12478 (umips_12bit_offset_address_p): Likewise.
12479 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12480 (mips_base_mips16): Rename this...
12481 (mips_base_compression_flags): ...to this. Update all uses.
12482 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12483 (mips_mips16_decl_p): Delete.
12484 (mips_nomips16_decl_p): Delete.
12485 (mips_get_compress_on_flags): New function.
12486 (mips_get_compress_off_flags): New function.
12487 (mips_get_compress_mode): New function.
12488 (mips_get_compress_on_name): New function.
12489 (mips_get_compress_off_name): New function.
12490 (mips_insert_attributes): Support multiple compression types.
12491 (mips_merge_decl_attributes): Likewise.
12492 (umips_12bit_offset_address_p): New function.
12493 (mips_start_function_definition): Emit .set micromips directive.
12494 (mips_call_may_need_jalx_p): New function.
12495 (mips_function_ok_for_sibcall): Add microMIPS support.
12496 (mips_print_operand_punctuation): Support short delay slots and
12498 (umips_swm_mask, umips_swm_encoding): New.
12499 (umips_build_save_restore): New function.
12500 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12501 (was_mips16_p): Remove.
12502 (old_compression_mode): New.
12503 (mips_set_compression_mode): New function.
12504 (mips_set_current_function): Add microMIPS support.
12505 (mips_option_override): Likewise.
12506 (umips_save_restore_pattern_p): New function.
12507 (umips_output_save_restore): New function.
12508 (umips_load_store_pair_p_1): New function.
12509 (umips_load_store_pair_p): New function.
12510 (umips_output_load_store_pair_1): New function.
12511 (umips_output_load_store_pair): New function.
12512 (umips_movep_target_p) New function.
12513 (mips_prepare_pch_save): Add microMIPS support.
12514 * config/mips/mips.h (TARGET_COMPRESSION): New.
12515 (TARGET_CPU_CPP_BUILTINS): Update macro
12516 to use new compression flags and to support microMIPS.
12517 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12518 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12519 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12520 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12521 (ASM_SPEC): Support mmicromips and mno-micromips.
12522 (M16STORE_REG_P): New macro.
12523 (MIPS_CALL): Support TARGET_MICROMIPS.
12524 (MICROMIPS_J): New macro.
12525 (mips_base_mips16): Rename this...
12526 (mips_base_compression_flags): ...to this.
12527 (UMIPS_12BIT_OFFSET_P): New macro.
12528 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12529 (MULTILIB_DIRNAMES): Likewise.
12531 2013-02-24 Jakub Jelinek <jakub@redhat.com>
12534 * target-globals.c (save_target_globals): For init_reg_sets and
12535 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12537 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12539 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12540 * config/aarch64/t-aarch64
12541 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12543 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12545 PR inline-asm/56148
12546 * lra-constraints.c (process_alt_operands): Reload operand
12547 conflicting with earlier clobber only if no more other conflicting
12550 2013-02-22 Jakub Jelinek <jakub@redhat.com>
12553 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12554 if not linking a shared library.
12556 2013-02-22 Seth LaForge <sethml@google.com>
12558 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12560 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12562 * config/arm/arm.md (split for extendsidi): Update condition.
12563 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12564 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12565 (qhs_zextenddi_cstr): Likewise.
12567 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12569 PR middle-end/56420
12570 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12571 avoid signed wrapping.
12572 (expand_mult): Handle properly multiplication by
12573 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12574 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12575 in the compiler if coeff is HOST_WIDE_INT_MIN.
12576 (expand_divmod): Don't make ext_op1 static, change it's type to
12577 uhwi. Avoid undefined behavior in -INTVAL (op1).
12579 PR rtl-optimization/50339
12580 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12582 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12583 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12584 into splitting_ashiftrt field.
12585 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12587 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12590 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
12592 PR middle-end/56108
12593 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12594 are sure to go irrevocable.
12596 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
12598 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12599 scalars are valid operands.
12601 2013-02-21 Martin Jambor <mjambor@suse.cz>
12603 PR tree-optimization/56310
12604 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12605 only matching indices and non-negative final offsets.
12606 (intersect_aggregates_with_edge): Pass src_idx to
12607 agg_replacements_to_vector. Pass src_idx insstead of index to
12608 intersect_with_agg_replacements.
12610 2013-02-21 Martin Jambor <mjambor@suse.cz>
12612 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
12613 instead of hard-wired defaults.
12615 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
12617 * doc/invoke.texi (MIPS Options): Update documentation of the
12618 floating-point multiply-accumulate instruction restrictions.
12620 2013-02-21 Kostya Serebryany <kcc@google.com>
12622 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
12623 asan_shadow_offset on x86_64 linux.
12625 2013-02-21 Richard Biener <rguenther@suse.de>
12627 PR tree-optimization/56415
12629 2013-02-11 Richard Biener <rguenther@suse.de>
12631 PR tree-optimization/56273
12632 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12635 2013-02-21 Jakub Jelinek <jakub@redhat.com>
12638 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
12641 PR inline-asm/56405
12642 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
12643 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
12645 2013-02-20 Jan Hubicka <jh@suse.cz>
12647 PR tree-optimization/56265
12648 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
12649 when target is referenced for first time.
12651 2013-02-20 Richard Biener <rguenther@suse.de>
12653 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
12654 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
12655 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
12656 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
12657 not return anything.
12658 (rename_ssa_copies): Do not remove unused locals.
12659 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
12660 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
12661 * passes.c (execute_function_todo): Do not schedule unused locals
12662 removal if cleanup_tree_cfg did something.
12663 * tree-ssa-live.c (remove_unused_locals): Dump statistics
12664 about the number of removed locals.
12666 2013-02-20 Richard Biener <rguenther@suse.de>
12668 PR tree-optimization/56398
12669 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
12671 2013-02-20 Martin Jambor <mjambor@suse.cz>
12673 PR tree-optimization/55334
12674 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
12675 restricted pointers to arrays.
12677 2013-02-20 Richard Biener <rguenther@suse.de>
12678 Jakub Jelinek <jakub@redhat.com>
12680 PR tree-optimization/56396
12681 * tree-ssa-ccp.c (n_const_val): New static variable.
12682 (get_value): Return NULL for SSA names we don't have a lattice
12684 (ccp_initialize): Initialize n_const_val.
12685 * tree-ssa-copy.c (n_copy_of): New static variable.
12686 (init_copy_prop): Initialize n_copy_of.
12687 (get_value): Return NULL_TREE for SSA names we don't have a
12690 2013-02-20 Martin Jambor <mjambor@suse.cz>
12692 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
12694 2013-02-20 Richard Biener <rguenther@suse.de>
12696 * genpreds.c (write_lookup_constraint): Do not compare first
12697 letter of the constraint again.
12699 2013-02-20 Richard Biener <rguenther@suse.de>
12701 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
12703 (get_use_iv_cost): Terminate hashtable walk when coming across
12706 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
12708 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
12709 reassociation for avx2 targets.
12711 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12713 * config/microblaze/microblaze.c: microblaze_has_clz = 0
12714 Add version check for v8.10.a to enable microblaze_has_clz
12715 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
12716 version and TARGET_PATTERN_COMPARE check
12717 * config/microblaze/microblaze.md: New clzsi2 instruction
12719 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12721 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
12722 function before branching.
12724 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12726 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
12728 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
12730 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
12732 PR middle-end/55889
12733 * sel-sched.c: Include ira.h.
12734 (implicit_clobber_conflict_p): New function.
12735 (moveup_expr): Use it.
12736 * Makefile.in (sel-sched.o): Depend on ira.h.
12738 2013-02-19 Richard Biener <rguenther@suse.de>
12740 PR tree-optimization/56384
12741 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
12742 (vn_hash_type): Split out from ...
12743 (vn_hash_constant_with_type): ... here.
12744 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
12745 (vn_phi_eq): Compare types from vn_phi_s structure.
12746 (vn_phi_lookup): Populate vn_phi_s type.
12747 (vn_phi_insert): Likewise.
12749 2013-02-19 Jakub Jelinek <jakub@redhat.com>
12751 PR tree-optimization/56350
12752 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
12753 if haven't found reduction or nested cycle operand, rather than
12754 asserting we must find it.
12756 PR tree-optimization/56381
12757 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
12760 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
12761 Jakub Jelinek <jakub@redhat.com>
12764 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
12765 (swap_optab_enable): Same.
12766 (init_all_optabs): Use argument instead of global.
12767 * tree.h (struct tree_optimization_option): New field target_optabs.
12768 * expr.h (init_all_optabs): Add argument to prototype.
12769 (TREE_OPTIMIZATION_OPTABS): New.
12770 (save_optabs_if_changed): Protoize.
12771 * optabs.h: Declare this_fn_optabs.
12772 * optabs.c (save_optabs_if_changed): New.
12773 Declare this_fn_optabs.
12774 (init_optabs): Add argument to init_all_optabs() call.
12775 * function.c (invoke_set_current_function_hook): Handle per
12777 * function.h (struct function): New field optabs.
12778 * config/mips/mips.c (mips_set_mips16_mode): Handle when
12779 optimization_current_node has changed.
12780 * target-globals.h (save_target_globals_default_opts): Protoize.
12781 * target-globals.c (save_target_globals_default_opts): New.
12783 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12786 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
12787 registers %fr12 and %fr12R as call used.
12790 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
12791 and HImode, require all displacements to be an integer multiple of
12793 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
12794 only allow QImode and HImode when reload is in progress and strict is
12795 true. Likewise for symbolic addresses. Use base14_operand to check
12796 displacements in REG+BASE addresses.
12798 2013-02-18 Richard Biener <rguenther@suse.de>
12800 PR tree-optimization/56366
12801 * tree-vect-loop.c (get_initial_def_for_induction): Properly
12802 handle sign-conversion of outer-loop initial induction value.
12804 2013-02-18 Richard Biener <rguenther@suse.de>
12806 PR middle-end/56349
12807 * cfghooks.c (merge_blocks): If we merge a latch into another
12808 block adjust references to it.
12809 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
12810 (verify_loop_structure): Verify that a recorded latch is in fact
12813 2013-02-18 Richard Biener <rguenther@suse.de>
12815 PR tree-optimization/56321
12816 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
12817 order SSA name release and virtual operand unlinking.
12819 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12821 * config/microblaze/microblaze.md (save_stack_block): Define.
12822 (restore_stack_block): Likewise.
12824 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12826 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
12827 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
12828 * config/microblaze/microblaze.c (microblaze_option_override):
12829 Bail out early for PIC modes when target does not support PIC.
12831 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12833 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
12834 Replace with a microblaze version.
12835 (microblaze_trampoline_init): Adapt for microblaze.
12836 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
12839 2013-02-16 Jakub Jelinek <jakub@redhat.com>
12840 Dodji Seketeli <dodji@redhat.com>
12843 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
12844 (instrument_mem_region_access): Do not forget to always put
12845 instrumentation of the of 'base' and 'base + len' in a "if (len !=
12846 0) statement, even for cases where either 'base' or 'base + len'
12847 are not instrumented -- because they have been previously
12848 instrumented. Simplify the logic by putting all the statements
12849 instrument 'base + len' inside a sequence, and then insert that
12850 sequence right before the current insertion point. Then, to
12851 instrument 'base + len', just get an iterator on that statement.
12852 And do not forget to update the pointer to iterator the function
12853 received as argument.
12855 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
12857 PR rtl-optimization/56348
12858 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
12860 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
12862 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
12863 (clean_graph_dump_file): Pass base to start_graph_dump.
12865 2013-02-14 Richard Henderson <rth@redhat.com>
12868 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
12870 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
12872 * collect2-aix.h: Define F_LOADONLY.
12874 2013-02-14 Richard Biener <rguenther@suse.de>
12877 * varasm.c (output_constant_def_1): Get the decl representing
12878 the constant as argument.
12879 (output_constant_def): Wrap output_constant_def_1.
12880 (make_decl_rtl): Use output_constant_def_1 with the decl
12881 representing the constant.
12882 (build_constant_desc): Optionally re-use a decl already
12883 representing the constant.
12884 (tree_output_constant_def): Adjust.
12886 2013-02-14 Dodji Seketeli <dodji@redhat.com>
12889 * asan.c (instrument_builtin_call): Really put the length of the
12890 second source argument into src1_len.
12892 2013-02-13 Jakub Jelinek <jakub@redhat.com>
12894 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12895 argument. If it is false, don't create edge from then_bb to
12897 (insert_if_then_before_iter): Pass true to it.
12898 (build_check_stmt): Pass false to it.
12899 (transform_statements): Flush hash table only on extended basic
12900 block boundaries, rather than at the beginning of every bb.
12901 Don't flush hash table on nonfreeing_call_p calls.
12902 * tree-flow.h (nonfreeing_call_p): New prototype.
12903 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12905 2013-02-13 David S. Miller <davem@davemloft.net>
12907 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12909 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
12912 * ira.c (max_regno_before_ira): Move from ...
12914 (fix_reg_equiv_init): Use max_regno_before_ira instead of
12917 2013-02-13 Jakub Jelinek <jakub@redhat.com>
12919 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12921 2013-02-13 Richard Biener <rguenther@suse.de>
12924 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12925 globals in MEM_REFs.
12927 2013-02-13 Richard Biener <rguenther@suse.de>
12929 * loop-init.c (loop_optimizer_init): Clear loop state when
12930 re-initializing preserved loops.
12931 * loop-unswitch.c (unswitch_single_loop): Return whether
12932 we unswitched the loop. Do not verify loop state here.
12933 (unswitch_loops): When we unswitched a loop discover new loops.
12935 2013-02-13 Kostya Serebryany <kcc@google.com>
12937 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12939 * sanitizer.def: Rename __asan_init to __asan_init_v1.
12941 2013-02-12 Dodji Seketeli <dodji@redhat.com>
12943 Avoid instrumenting duplicated memory access in the same basic block
12944 * Makefile.in (asan.o): Add new dependency on hash-table.h
12945 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12946 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12947 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12948 (free_mem_ref_resources, has_mem_ref_been_instrumented)
12949 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12950 (get_mem_ref_of_assignment): New functions.
12951 (get_mem_refs_of_builtin_call): Extract from
12952 instrument_builtin_call and tweak a little bit to make it fit with
12954 (instrument_builtin_call): Use the new
12955 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
12956 of is_gimple_builtin_call.
12957 (instrument_derefs, instrument_mem_region_access): Insert the
12958 instrumented memory reference into the hash table.
12959 (maybe_instrument_assignment): Renamed instrument_assignment into
12960 this, and change it to advance the iterator when instrumentation
12961 actually happened and return true in that case. This makes it
12962 homogeneous with maybe_instrument_assignment, and thus give a
12963 chance to callers to be more 'regular'.
12964 (transform_statements): Clear the memory reference hash table
12965 whenever we enter a new BB, when we cross a function call, or when
12966 we are done transforming statements. Use
12967 maybe_instrument_assignment instead of instrumentation. No more
12968 need to special case maybe_instrument_assignment and advance the
12969 iterator after calling it; it's now handled just like
12970 maybe_instrument_call. Update comment.
12972 2013-02-13 Richard Biener <rguenther@suse.de>
12974 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12975 Fix loop discovery code.
12977 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
12979 PR inline-asm/56148
12980 * lra-constraints.c (process_alt_operands): Match early clobber
12981 operand with itself. Check conflicts with earlyclobber only if
12982 the operand is not reloaded. Prefer to reload conflicting operand
12983 if earlyclobber and matching operands are the same.
12985 2013-02-12 Richard Biener <rguenther@suse.de>
12988 * lto-streamer-out.c (write_symbol): Do not output symbols
12989 for hard register variables.
12991 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
12994 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12995 (umulsidi3_insn, mulsidi3_insn): New insns.
12997 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
12999 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
13000 (struct tune_params): Add vec_costs field.
13001 * config/arm/arm.c (arm_builtin_vectorization_cost)
13002 (arm_add_stmt_cost): New functions.
13003 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
13004 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
13005 (arm_default_vec_cost): New struct of type cpu_vec_costs.
13006 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13007 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
13008 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
13009 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
13011 2013-02-12 Richard Biener <rguenther@suse.de>
13014 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
13015 decls again if possible.
13017 2013-02-12 Richard Biener <rguenther@suse.de>
13019 PR middle-end/56288
13020 * tree-ssa.c (verify_ssa_name): Fix check, move
13021 SSA_NAME_IN_FREE_LIST check up.
13023 2013-02-12 Jakub Jelinek <jakub@redhat.com>
13024 Steven Bosscher <steven@gcc.gnu.org>
13026 PR rtl-optimization/56151
13027 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
13028 equal to op0 or op1, and last_insn pattern is CODE operation
13029 with MEM dest and one of the operands matches that MEM.
13031 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
13033 * doc/extend.texi: Document Function Multiversioning and "default"
13034 parameter string to target attribute.
13035 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
13036 target attribute parameter is "default".
13037 (ix86_compare_version_priority): Remove checks for target attribute.
13038 (ix86_mangle_function_version_assembler_name): Change error to sorry.
13039 Remove check for target attribute equal to NULL. Add assert.
13040 (ix86_generate_version_dispatcher_body): Change error to sorry.
13042 2013-02-11 Iain Sandoe <iain@codesourcery.com>
13043 Jack Howarth <howarth@bromo.med.uc.edu>
13044 Patrick Marlier <patrick.marlier@gmail.com>
13047 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
13048 define ENDFILE_SPEC as TM_DESTRUCTOR.
13049 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
13051 2013-02-11 Alexander Potapenko <glider@google.com>
13052 Jack Howarth <howarth@bromo.med.uc.edu>
13053 Jakub Jelinek <jakub@redhat.com>
13056 * config/darwin.c (cdtor_record): Rename ctor_record.
13057 (sort_cdtor_records): Rename sort_ctor_records.
13058 (finalize_dtors): New routine to sort destructors by
13059 priority before use in assemble_integer.
13060 (machopic_asm_out_destructor): Use finalize_dtors if needed.
13062 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
13064 PR rtl-optimization/56275
13065 * simplify-rtx.c (avoid_constant_pool_reference): Check that
13066 offset is non-negative and less than cmode size before
13067 calling simplify_subreg.
13069 2013-02-11 Richard Biener <rguenther@suse.de>
13071 PR tree-optimization/56264
13072 * cfgloop.h (fix_loop_structure): Adjust prototype.
13073 * loop-init.c (fix_loop_structure): Return the number of
13074 newly discovered loops.
13075 * tree-cfgcleanup.c (repair_loop_structures): When new loops
13076 are discovered, do a full loop-closed SSA rewrite.
13078 2013-02-11 Richard Biener <rguenther@suse.de>
13080 PR tree-optimization/56273
13081 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13083 (check_array_ref): Fix missing newline in dumps.
13084 (search_for_addr_array): Likewise.
13086 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
13088 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13090 2013-02-09 Jakub Jelinek <jakub@redhat.com>
13093 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13095 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
13097 PR rtl-optimization/56246
13098 * lra-constraints.c (simplify_operand_subreg): Try to reuse
13100 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13101 constraints are satisfied.
13103 2013-02-08 Jeff Law <law@redhat.com>
13106 * emit-rtl.c (reg_is_parm_p): New function.
13107 * regs.h (reg_is_parm_p): New prototype.
13108 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13109 callee-clobbered registers.
13111 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13114 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13115 If there is no implicit builtin declaration, just return NULL.
13117 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13119 * config/i386/sse.md (FMAMODEM): New mode iterator.
13120 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13121 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13123 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13125 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13126 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13127 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13129 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13131 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13132 (microblaze*-*-elf): Likewise.
13133 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13135 * config/microblaze/microblaze-c.c: Add builtin defines for
13136 _LITTLE_ENDIAN and _BIG_ENDIAN.
13137 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13138 add to TARGET_DEFAULT flags.
13139 Expand ASM_SPEC and LINK_SPEC.
13140 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13141 * config/microblaze/microblaze.md: Update extendsidi2 and
13142 movdi_internal instructions to use low-order / high-order reg
13144 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13145 options and inversemask / mask of LITTLE_ENDIAN.
13146 * config/microblaze/t-microblaze: Expand multilib options to
13147 include mlittle-endian (le) and update exceptions patterns.
13149 2013-02-08 Jakub Jelinek <jakub@redhat.com>
13151 PR rtl-optimization/56195
13152 * lra-constraints.c (get_reload_reg): Don't reuse regs
13153 if they have smaller mode than requested, if they have
13154 wider mode than requested, try to return a SUBREG.
13156 PR tree-optimization/56250
13157 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13158 if type is unsigned and code isn't MULT_EXPR.
13160 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13162 PR tree-optimization/56064
13163 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13164 bits according to mode.
13165 * fixed-value.h (fixed_from_double_int)
13166 (const_fixed_from_double_int): Adjust comments.
13168 2013-02-08 Richard Biener <rguenther@suse.de>
13171 * lto-streamer.h (struct data_in): Remove current_file, current_line
13172 and current_col members.
13173 * lto-streamer-out.c (lto_output_location): Stream changed bits
13174 en-block for efficiency.
13175 * lto-streamer-in.c (clear_line_info): Remove.
13176 (lto_input_location): Cache current file, line and column
13177 globally via local statics. Read changed bits en-block.
13178 (input_function): Do not call clear_line_info.
13179 (lto_read_body): Likewise.
13180 (lto_input_toplevel_asms): Likewise.
13182 2013-02-08 Michael Matz <matz@suse.de>
13184 PR tree-optimization/52448
13185 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13186 (nt_call_phase): New static.
13187 (add_or_mark_expr): Only mark accesses with newer phase than any
13189 (nonfreeing_call_p): New.
13190 (nt_init_block): Update nt_call_phase, mark blocks as visited.
13191 (nt_fini_block): Keep blocks marked as visited.
13192 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13194 2013-02-08 Richard Biener <rguenther@suse.de>
13196 * ira.c (ira): Free broken dominator information.
13198 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
13200 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13202 2013-02-08 Marek Polacek <polacek@redhat.com>
13204 * cfgloop.c (verify_loop_structure): Add more checking of headers.
13206 2013-02-08 Richard Biener <rguenther@suse.de>
13208 PR middle-end/56181
13209 * cfgloop.h (flow_loops_find): Adjust.
13210 (bb_loop_header_p): Declare.
13211 * cfgloop.c (bb_loop_header_p): New function split out from ...
13212 (flow_loops_find): ... here. Adjust function signature,
13213 support incremental loop structure update.
13214 (verify_loop_structure): Cleanup. Verify a loop is a loop.
13215 * cfgloopmanip.c (fix_loop_structure): Move ...
13216 * loop-init.c (fix_loop_structure): ... here.
13217 (apply_loop_flags): Split out from ...
13218 (loop_optimizer_init): ... here.
13219 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
13220 in incremental mode, only remove dead loops here.
13222 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
13225 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13226 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13227 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13228 (*round<mode>3.libgcc): New insns for fixed-modes.
13229 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13230 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13231 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13232 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13233 implementations. Define to __builtin_avr_absFX,
13234 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13235 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13236 __builtin_avr_countlsFX, respectively.
13237 * config/avr/avr-c.c (target.h): Include it.
13238 (enum avr_builtin_id): New enum.
13239 (avr_resolve_overloaded_builtin): New static function.
13240 (avr_register_target_pragmas): Use it to set
13241 targetm.resolve_overloaded_builtin.
13242 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13243 tree nodes used by DEF_BUILTIN.
13244 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13245 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13246 <AVR_BUILTIN_xxBITS>: Same.
13248 2013-02-08 Richard Biener <rguenther@suse.de>
13250 * cfgloop.c (verify_loop_structure): Properly handle
13251 a loop exiting to another loop header.
13252 * ira-int.h (ira_loops): Remove.
13253 * ira.c (ira_loops): Remove.
13254 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13255 (do_reload): Use loop_optimizer_finalize.
13256 * ira-build.c (create_loop_tree_nodes): Use get_loops and
13257 number_of_loops to access the loop tree.
13258 (more_one_region_p): Likewise.
13259 (finish_loop_tree_nodes): Likewise.
13260 (rebuild_regno_allocno_maps): Likewise.
13261 (mark_loops_for_removal): Likewise.
13262 (mark_all_loops_for_removal): Likewise.
13263 (remove_unnecessary_regions): Likewise.
13264 (ira_build): Likewise.
13265 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13267 2013-02-08 Richard Biener <rguenther@suse.de>
13269 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13270 * ipa-pure-const.c (analyze_function): Avoid calling
13271 mark_irreducible_loops twice.
13272 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
13274 2013-02-07 David S. Miller <davem@davemloft.net>
13276 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13278 * var-tracking.c (vt_add_function_parameter): Test the presence of
13279 HAVE_window_save properly and do not remap argument registers when
13280 we have a leaf function.
13282 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
13285 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13287 * config/i386/i386.c (ix86_print_operand): Ditto.
13289 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13291 * lra-constraints.c (process_alt_operands): Fix recently added comment.
13293 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13295 PR rtl-optimization/56225
13296 * lra-constraints.c (process_alt_operands): Check that reload hard
13297 reg can hold value for strict_low_part.
13299 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13302 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13303 dwarf2out_end_function.
13304 (in_first_function_p, maybe_at_text_label_p,
13305 first_loclabel_num_not_at_text_label): New variables.
13306 (dwarf2out_var_location): In the first function find out
13307 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
13308 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13311 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
13313 PR rtl-optimization/56178
13314 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13315 SUBREG of a register. Tidy up related block of code.
13316 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13317 note if the source is a register or a SUBREG of a register.
13319 2013-02-07 Jakub Jelinek <jakub@redhat.com>
13322 * config/rs6000/rs6000.md (ptrm): New mode attr.
13323 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13324 call_value_indirect_aix<pttrsize>,
13325 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13328 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13330 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13331 if -bnortl. Convert to strcmp and strncmp.
13333 2013-02-07 Alan Modra <amodra@gmail.com>
13336 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13337 addresses won't wrap when offsetting.
13338 (rs6000_secondary_reload): Provide secondary reloads needed for
13339 wrapping LO_SUM addresses.
13341 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13343 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13344 MACH, just __MACH__.
13346 2013-02-06 Richard Biener <rguenther@suse.de>
13348 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13349 instead of calling fix_loop_structure.
13351 2013-02-06 Jakub Jelinek <jakub@redhat.com>
13353 PR middle-end/56217
13354 * omp-low.c (use_pointer_for_field): Return false if
13355 lower_send_shared_vars doesn't generate any copy-out code.
13357 2013-02-06 Tom de Vries <tom@codesourcery.com>
13359 PR rtl-optimization/56131
13360 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13361 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13362 of the label is NULL. Add comment.
13364 2013-02-05 Jakub Jelinek <jakub@redhat.com>
13366 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13369 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13370 (STATIC_LIBTSAN_LIBS): Likewise.
13371 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13372 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13373 is defined, don't add anything else beyond that.
13374 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13375 (LINK_COMMAND_SPEC): Use them.
13377 PR tree-optimization/56205
13378 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13379 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13380 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13382 2013-02-05 Richard Biener <rguenther@suse.de>
13384 PR tree-optimization/53342
13385 PR tree-optimization/53185
13386 * tree-vectorizer.h (vect_check_strided_load): Remove.
13387 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13388 not disallow peeling for vectorized strided loads.
13389 (vect_check_strided_load): Make static and simplify.
13390 (vect_analyze_data_refs): Adjust.
13391 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13392 correctly when vectorizing strided loads.
13394 2013-02-05 Richard Biener <rguenther@suse.de>
13396 * doc/install.texi: Refer to ISL, not PPL.
13398 2013-02-05 Jan Hubicka <jh@suse.cz>
13400 PR tree-optimization/55789
13401 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13403 2013-02-05 Jan Hubicka <jh@suse.cz>
13405 PR tree-optimization/55789
13406 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13407 the dead call anyway.
13409 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13412 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13414 2013-02-04 Alexander Potapenko <glider@google.com>
13415 Jack Howarth <howarth@bromo.med.uc.edu>
13416 Jakub Jelinek <jakub@redhat.com>
13419 * config/darwin.c (sort_ctor_records): Stabilized qsort
13420 on constructor priority by using original position.
13421 (finalize_ctors): New routine to sort constructors by
13422 priority before use in assemble_integer.
13423 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13425 2013-02-04 Jakub Jelinek <jakub@redhat.com>
13428 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13429 about visibility on artificial decls.
13430 * config/sol2.c (solaris_assemble_visibility): Likewise.
13432 2013-02-04 Kai Tietz <ktietz@redhat.com>
13435 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13436 argument and improve checking of return-argument types for 16-byte
13438 (ix86_function_value_1): Add additional valtype argument on call
13439 of function_value_64.
13440 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13441 handling infunction_value_64 function.
13443 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13445 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
13447 2013-02-04 Richard Biener <rguenther@suse.de>
13449 PR tree-optimization/56188
13450 * tree-ssa-structalias.c (label_visit): Consider case with
13451 initially non-empty points-to set.
13452 (perform_var_substitution): Dump node mapping and clean up.
13454 2013-02-04 Richard Guenther <rguenther@suse.de>
13457 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13458 node prevail as last resort.
13459 (lto_symtab_merge_decls): Remove guard on LTRANS here.
13460 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
13462 2013-02-04 Richard Biener <rguenther@suse.de>
13464 PR tree-optimization/56113
13465 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13467 (equiv_class_lookup_or_add): ... this.
13468 (label_visit): Adjust and fix error in previous patch.
13469 (perform_var_substitution): Adjust.
13471 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13473 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13474 * config/sh/sh4-300.md: Likewise.
13475 * config/sh/sh4a.md: Likewise.
13476 * config/sh/constraints.md: Likewise.
13477 * config/sh/sh.md: Likewise.
13478 * config/sh/netbsd-elf.h: Likewise.
13479 * config/sh/predicates.md: Likewise.
13480 * config/sh/sh-protos.h: Likewise.
13481 * config/sh/ushmedia.h: Likewise.
13482 * config/sh/linux.h: Likewise.
13483 * config/sh/sh.c: Likewise.
13484 * config/sh/superh.h: Likewise.
13485 * config/sh/elf.h: Likewise.
13486 * config/sh/sh4.md: Likewise.
13487 * config/sh/sh.h: Likewise.
13489 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13491 * config/pa/constraints.md: Adjust unused letters. Change "T"
13492 constraint to match_test floating_point_store_memory_operand().
13493 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13494 (base14_operand): New.
13495 (floating_point_store_memory_operand): New.
13496 (integer_store_memory_operand): Revise to use base14_operand and
13497 reg_plus_base_memory_operand.
13498 (move_dest_operand): Allow symbolic_memory_operands.
13499 (symbolic_memory_operand): Check for LO_SOM.
13500 (symbolic_operand): Change default case to break.
13501 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13502 CONST_DOUBLE values to be reloaded by putting them into memory when
13503 the destination is a floating point register.
13504 (movdf): Remove code to handle CONST_DOUBLE.
13506 (reload_indf_r1): New.
13507 (reload_insf_r1): New.
13508 Consistently use "Q" and "T" constraints with integer and floating
13509 point move instructions, respectively.
13510 (movdi): Remove FAIL.
13511 Change predicate for source operand unamed DImode move from
13512 general_operand to move_src_operand.
13513 (umulsidi3): Change predicate for destination operand to
13515 Likewise for similar unamed patterns.
13516 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13517 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13518 (hppa_legitimize_address): Simplify mask calculation.
13519 (pa_emit_move_sequence): Revised handling of secondary reloads from
13520 REG+D addresses for floating point loads and stores. Directly handle
13521 loading CONST0_RTX (mode) to a floating point register.
13522 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13523 to floating point registers. Don't restrict secondary reloads to
13524 floating point registers to integer modes. Revise some comments and
13526 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13527 (pa_legitimate_address_p): New.
13528 (pa_legitimize_reload_address): New.
13529 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13530 (STRICT_REG_OK_FOR_BASE_P): New.
13531 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13532 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13534 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
13535 Andrew Dixie <andrewd@gentrack.com>
13537 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13540 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13542 * expmed.c (extract_bit_field_1): Pass the full width of the
13543 structure to get_best_reg_extraction_insn.
13545 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13548 * configure.ac (use_cxa_atexit): Add AIX.
13549 * configure: Regenerate.
13551 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13553 2013-02-01 Jakub Jelinek <jakub@redhat.com>
13556 * final.c (need_profile_function): New variable.
13557 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13558 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13559 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13560 notes, targetm.asm_out.function_prologue doesn't emit anything,
13561 HAVE_prologue and profiler should be emitted before prologue,
13562 set need_profile_function instead of emitting it.
13563 (final_scan_insn): If need_profile_function, emit
13564 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13565 NOTE_INSN_FUNCTION_BEG note.
13567 2013-02-01 Richard Henderson <rth@redhat.com>
13569 * config/rs6000/rs6000.md (smulditi3): New.
13572 * config/alpha/alpha.md (umulditi3): New.
13574 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
13576 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13577 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13579 2013-02-01 Richard Biener <rguenther@suse.de>
13581 PR tree-optimization/56113
13582 * tree-ssa-structalias.c (label_visit): Reduce work for
13583 single-predecessor nodes.
13585 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13587 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13588 range isn't testing for zero.
13590 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13592 PR middle-end/56113
13593 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13595 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13596 Nick Clifton <nickc@redhat.com>
13598 * config/v850/constraints.md (Q): Define as a memory constraint.
13599 * config/v850/predicates.md (label_ref_operand): New predicate.
13600 (e3v5_shift_operand): New predicate.
13601 (ior_operator): New predicate.
13602 * config/v850/t-v850: Add e3v5 multilib.
13603 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13604 (v850_gen_movdi): Prototype.
13605 * config/v850/v850.c: Add support for e3v5 architecture.
13606 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
13608 (construct_save_jarl): Add e3v5 long JARL support.
13609 (v850_adjust_insn_length): New function. Adjust length of call
13610 insns when using e3v5 instructions.
13611 (v850_gen_movdi): New function: Generate instructions to move a
13613 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
13614 (CPP_SPEC): Define __v850e3v5__ as appropriate.
13615 (TARGET_USE_FPU): Enable for e3v5.
13616 (CONST_OK_FOR_W): New macro.
13617 (ADJUST_INSN_LENGTH): Define.
13618 * config/v850/v850.md (UNSPEC_LOOP): Define.
13619 (attr cpu): Add v850e3v5.
13620 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
13621 (movdi): New pattern.
13622 (movdi_internal): New pattern.
13623 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
13624 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
13625 (cstoresf4): Likewise.
13626 (cstoredf4): Likewise.
13627 (insv): New pattern.
13628 (rotlso3_a): New pattern.
13629 (rotlsi3_b): New pattern
13630 (rotlsi3_v850e3v5): New pattern.
13631 (doloop_begin): New pattern.
13632 (fix_loop_counter): New pattern.
13633 (doloop_end): New pattern.
13634 (branch_normal): Add e3v5 long branch support.
13635 (branch_invert): Likewise.
13636 (branch_z_normal): Likewise.
13637 (branch_z_invert): Likewise.
13638 (branch_nz_normal): Likewise.
13639 (branch_nz_invert): Likewise.
13640 (call_internal_short): Add e3v5 register-indirect JARL support.
13641 (call_internal_long): Likewise.
13642 (call_value_internal_short): Likewise.
13643 (call_value_internal_long): Likewise.
13644 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
13645 (mloop): New option.
13646 * config.gcc: Add support for configuring v840e3v5 target.
13647 * doc/invoke.texi: Document new v850 specific command line options.
13649 2013-01-31 Paul Koning <ni1d@arrl.net>
13653 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
13654 children if parent is a class.
13655 (prune_unused_types_prune): Don't add DW_AT_declaration.
13657 2013-01-31 Richard Biener <rguenther@suse.de>
13659 PR tree-optimization/56157
13660 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
13661 match up operand with SLP child.
13663 2013-01-31 Jason Merrill <jason@redhat.com>
13666 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
13667 parameters the first time.
13668 (gen_scheduled_generic_parms_dies): Check completeness here.
13670 2013-01-31 Richard Biener <rguenther@suse.de>
13672 PR middle-end/53073
13673 * common.opt (faggressive-loop-optimizations): New flag,
13674 enabled by default.
13675 * doc/invoke.texi (faggressive-loop-optimizations): Document.
13676 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
13677 infer_loop_bounds_from_undefined by it.
13679 2013-01-31 Richard Biener <rguenther@suse.de>
13681 PR tree-optimization/56150
13682 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
13683 visit virtual operands.
13684 (find_uses_to_rename_bb): Likewise.
13686 2013-01-31 Richard Biener <rguenther@suse.de>
13688 PR tree-optimization/56150
13689 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
13690 mixed store non-store stmts.
13692 2013-01-30 Jakub Jelinek <jakub@redhat.com>
13695 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
13696 LIBASAN_EARLY_SPEC is defined.
13697 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
13698 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
13700 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
13703 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
13704 invalid args instead of ICEing on it.
13705 (ix86_valid_target_attribute_tree): Return error_mark_node if
13706 ix86_valid_target_attribute_inner_p failed.
13707 (ix86_valid_target_attribute_p): Return false only if
13708 ix86_valid_target_attribute_tree returned error_mark_node. Allow
13709 target("default") attribute.
13710 (sorted_attr_string): Change argument from const char * to tree,
13711 merge in all target attribute arguments rather than just one.
13712 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
13713 instead of free. Avoid using strcat.
13714 (ix86_mangle_function_version_assembler_name): Mangle
13715 target("default") as if no target attribute is present. Adjust
13716 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
13717 instead of xmalloc and XDELETEVEC instead of free.
13718 (ix86_function_versions): Don't return true if one of the decls
13719 doesn't have target attribute. If they don't and one of the decls
13720 is DECL_FUNCTION_VERSIONED, report an error. Adjust
13721 sorted_attr_string caller. Use XDELETEVEC instead of free.
13722 (ix86_supports_function_versions): Remove.
13723 (make_name): Fix up formatting.
13724 (make_dispatcher_decl): Remove resolver_name and its initialization.
13725 Avoid leaking memory.
13726 (is_function_default_version): Return true if there is
13727 target("default") attribute rather than no target attribute at all.
13728 (make_resolver_func): Avoid leaking memory.
13729 (ix86_generate_version_dispatcher_body): Likewise.
13730 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
13731 * target.def (supports_function_versions): Remove.
13732 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
13733 * doc/tm.texi: Regenerated.
13735 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
13737 PR rtl-optimization/56144
13738 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
13739 for values with side effects.
13741 2013-01-30 Richard Biener <rguenther@suse.de>
13743 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
13744 (sparseset_pop): Likewise.
13745 * cfganal.c (compute_idf): Likewise. Increase work-stack size
13746 to be able to use quick_push in the worker loop.
13748 2013-01-30 Marek Polacek <polacek@redhat.com>
13750 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
13752 2013-01-30 Richard Biener <rguenther@suse.de>
13755 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
13757 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
13759 PR tree-optimization/56064
13760 * fixed-value.c (fixed_from_double_int): New function.
13761 * fixed-value.h (fixed_from_double_int): New prototype.
13762 (const_fixed_from_double_int): New static inline function.
13763 * fold-const.c (native_interpret_fixed): New static function.
13764 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
13765 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
13766 (native_encode_fixed): New static function.
13767 (native_encode_expr) <FIXED_CST>: Use it.
13768 (native_interpret_int): Move double_int worker code to...
13769 * double-int.c (double_int::from_buffer): ...this new static method.
13770 * double-int.h (double_int::from_buffer): Prototype it.
13772 2013-01-30 Richard Biener <rguenther@suse.de>
13774 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
13775 New pointer-map and obstack.
13776 (init_alias_vars): Allocate pointer-map and obstack.
13777 (delete_points_to_sets): Free them.
13778 (find_what_var_points_to): Cache result.
13779 (find_what_p_points_to): Adjust for changed interface of
13780 find_what_var_points_to.
13781 (compute_points_to_sets): Likewise.
13782 (ipa_pta_execute): Likewise.
13784 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13786 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
13787 * configure: Regenerate.
13788 * config.in: Regenerate.
13789 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
13790 #nobits/#progbits if supported.
13792 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
13795 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
13796 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
13797 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
13799 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13801 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
13802 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
13804 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13806 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
13807 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
13809 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13811 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
13813 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
13814 * config/arm/cortex-a7.md: New bypasses using
13815 arm_mac_accumulator_is_result.
13817 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13819 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
13820 (cortex_a7_neon_mla): Likewise.
13821 (cortex_a7_fpfmad): New reservation.
13822 (cortex_a7_fpmacs): Use ffmas and update required units.
13823 (cortex_a7_fpmuld): Update required units and latency.
13824 (cortex_a7_fpmacd): Likewise.
13825 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
13826 (cortex_a7_neon). Likewise.
13827 (bypass) Update participating units.
13829 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
13831 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
13832 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
13834 * config/arm/vfp11.md (vfp_farith): Use ffmas.
13835 (vfp_fmul): Use ffmad.
13836 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
13837 (cortex_r4_fmacd): Use ffmad.
13838 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
13839 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
13840 (cortex_a9_fmacd): Use ffmad.
13841 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
13842 (cortex_a8_vfp_macd): Use ffmad.
13843 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
13844 (cortex_a5_fpmacd): Use ffmad.
13845 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
13846 (cortex_a15_vfp_macd): Use ffmad.
13847 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
13849 2013-01-29 Jason Merrill <jason@redhat.com>
13852 * varasm.c (default_assemble_visibility): Don't warn about
13853 visibility on artificial decls.
13855 2013-01-29 Richard Biener <rguenther@suse.de>
13857 PR tree-optimization/56113
13858 * tree-ssa-structalias.c (equiv_class_lookup): Also return
13860 (label_visit): Free duplicate bitmaps and record the leader instead.
13861 (perform_var_substitution): Adjust.
13863 2013-01-29 Richard Biener <rguenther@suse.de>
13865 PR tree-optimization/55270
13866 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
13867 the CFG, schedule loops for fixup.
13869 2013-01-29 Nick Clifton <nickc@redhat.com>
13871 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
13874 2013-01-28 Leif Ekblad <leif@rdos.net>
13876 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
13877 * config/i386/i386.h (TARGET_RDOS): New macro.
13878 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
13879 * config/i386/i386.c (ix86_option_override_internal): For 64bit
13880 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
13881 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
13882 DEFAULT_LARGE_SECTION_THRESHOLD.
13883 * config/i386/i386.md (R14_REG, R15_REG): New constants.
13884 * config/i386/rdos.h: New file.
13885 * config/i386/rdos64.h: New file.
13887 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
13890 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
13893 2013-01-28 Jakub Jelinek <jakub@redhat.com>
13895 PR rtl-optimization/56117
13896 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13897 call cselib_lookup_from_insn on the MEM before calling
13898 add_insn_mem_dependence.
13900 2013-01-28 Richard Biener <rguenther@suse.de>
13902 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13903 to a stmt that didn't have one.
13904 (copy_phis_for_bb): Likewise for PHI arguments.
13905 (copy_debug_stmt): Likewise for debug stmts.
13907 2013-01-28 Richard Biener <rguenther@suse.de>
13909 PR tree-optimization/56034
13910 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
13911 (partition_builtin_p): Adjust.
13912 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
13913 it is the last partition.
13914 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13915 up the vertex for the definition.
13916 (classify_partition): Classify whether a partition is a
13917 PKIND_REDUCTION, thus has uses outside of the loop.
13918 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13919 Merge all PKIND_REDUCTION partitions into the last partition.
13920 (tree_loop_distribution): Seed partitions from reductions as well.
13922 2013-01-28 Jakub Jelinek <jakub@redhat.com>
13924 PR tree-optimization/56125
13925 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13926 pow(x,c) into sqrt(x) * powi(x, n/2) or
13927 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13928 optimizing for size.
13929 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13930 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13933 PR tree-optimization/56094
13934 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13935 to UNKNOWN_LOCATION while gimplifying expr.
13937 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
13940 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13941 operand 0 in movabs insn template for -masm=intel asm alternative.
13942 (*movabs<mode>_2): Ditto for operand 1.
13944 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
13947 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13950 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13952 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13955 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13957 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13958 Undef to avoid warning.
13960 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13962 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13963 * configure: Regenerate.
13965 2013-01-25 Jakub Jelinek <jakub@redhat.com>
13967 PR tree-optimization/56098
13968 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13969 for stmts with volatile ops.
13970 (cond_store_replacement): Don't optimize if assign has volatile ops.
13971 (cond_if_else_store_replacement_1): Don't optimize if either
13972 then_assign or else_assign have volatile ops.
13973 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13976 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
13978 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13980 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
13982 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13983 missing ':' in asm example.
13985 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
13987 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13988 entries into lane and laneq entries.
13989 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13990 Remove AdvSIMD scalar modes.
13991 (aarch64_sq<r>dmulh_laneq<mode>): New.
13992 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13994 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13995 builtin implementations to relfect changes in RTL in aarch64-simd.md.
13996 * config/aarch64/iterators.md (VCOND): New.
13999 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
14002 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
14003 Add NULL LIBNAME argument to existing definitions.
14004 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
14005 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
14006 * config/avr/avr.c (DEF_BUILTIN): Same.
14007 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
14008 (avr_expand_builtin): Expand to a vanilla call if a libgcc
14009 implementation is available (DECL_ASSEMBLER_NAME is set).
14010 (avr_fold_absfx): New static function.
14011 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
14012 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
14013 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
14014 AVR_BUILTIN_ABSLLK.
14015 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
14016 (abshk, absk, abslk, absllk): Provide as static inline functions.
14018 2013-01-25 Marek Polacek <polacek@redhat.com>
14020 PR tree-optimization/56035
14021 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
14023 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
14025 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
14026 (*movtf_internal_rex64): Add (!o,C) alternative
14027 (*movxf_internal_rex64): Ditto.
14028 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
14030 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
14032 * doc/invoke.texi: fix typo.
14033 * doc/objc.texi: fix typo.
14035 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
14037 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
14038 for the first two alternatives.
14040 2013-01-24 Diego Novillo <dnovillo@google.com>
14042 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
14043 (ggc-zone.o): Remove.
14044 * configure.ac: Remove option --with-gc.
14045 * configure: Re-generate.
14046 * doc/install.texi: Remove documentation for --with-gc.
14047 * gengtype.c (write_enum_defn): Remove. Update all users.
14048 (write_Types_process_field): Remove generation of gt_e_* argument.
14049 (output_type_enum): Remove. Update all users.
14050 (write_enum_defn): Remove. Update all users.
14051 (enum alloc_zone): Remove. Update all users.
14052 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
14053 * ggc-common.c (ggc_splay_alloc): Remove first argument.
14054 Update all callers.
14055 (struct ptr_data): Remove field TYPE. Update all users.
14056 (gt_pch_note_object): Remove argument TYPE. Update all users.
14057 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
14059 * ggc-none.c (ggc_alloc_typed_stat): Remove.
14060 (struct alloc_zone): Remove.
14061 (ggc_internal_alloc_zone_stat): Remove.
14062 (ggc_internal_cleared_alloc_zone_stat): Remove.
14063 * ggc-page.c (ggc_alloc_typed_stat): Remove.
14064 (ggc_pch_count_object): Remove last argument. Update all users.
14065 (ggc_pch_alloc_object): Remove last argument. Update all users.
14066 (struct alloc_zone): Remove.
14067 * ggc-zone.c: Remove.
14068 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
14069 (struct alloc_zone): Remove.
14070 (ggc_alloc_typed_stat): Remove.
14071 (ggc_alloc_typed): Remove.
14072 (ggc_splay_alloc): Remove first argument.
14073 (rtl_zone): Remove. Update all users.
14074 (tree_zone): Remove. Update all users.
14075 (tree_id_zone): Remove. Update all users.
14076 (ggc_internal_zone_alloc_stat): Remove. Update all users.
14077 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
14078 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
14079 * tree-ssanames.c: Remove references to zone allocator in comments.
14081 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
14083 * config/avr/avr.c (avr_out_fract): Make register numbers that
14084 might be outside of source operand signed.
14086 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
14088 * config/i386/constraints.md (Yf): New constraint.
14089 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14090 of f constraint to conditionaly disable x87 register preferences.
14091 (*movdf_internal): Ditto.
14092 (*movsf_internal): Ditto.
14094 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
14096 PR inline-asm/55934
14097 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14098 that have operands with impossible constraints.
14099 Add a FIXME for a speed-up opportunity.
14100 * lra-constraints.c (process_alt_operands): Verify that a class
14101 selected from constraints on asms is valid for the operand mode.
14102 (curr_insn_transform): Remove incorrect comment.
14104 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
14106 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14107 TOC operand is a valid symbol ref in the constant pool.
14109 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
14111 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
14113 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
14116 * config/avr/stdfix.h: New file.
14117 * t-avr (stdfix-gcc.h): New rule to build it.
14118 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14120 2013-01-23 Kostya Serebryany <kcc@google.com>
14122 * config/darwin.h: remove dependency on
14123 CoreFoundation (asan on Mac OS).
14125 2013-01-23 Jakub Jelinek <jakub@redhat.com>
14128 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14129 instead of cmpdi_operand for first comparison operand.
14130 Don't assert that comparison operands aren't both constants.
14132 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14134 * doc/install.texi (Downloading the Source): Update references to
14135 downloading separate components.
14137 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14139 * doc/extend.texi (__int128): Improve grammar.
14141 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
14144 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14145 alternative to (o,r).
14146 (*movdi_internal_rex64): Remove (!o,n) alternative.
14147 (DImode immediate->memory splitter): Remove.
14148 (DImode immediate->memory peephole2): Remove.
14149 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14150 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14151 alternative to (!o,*r).
14152 (*movtf_internal_sse): New pattern.
14153 (*movxf_internal_rex64): New pattern.
14154 (*movxf_internal): Disable for TARGET_64BIT.
14155 (*movdf_internal_rex64): Remove (!o,F) alternative.
14157 2013-01-22 Jakub Jelinek <jakub@redhat.com>
14159 PR middle-end/56074
14160 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14161 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14162 * tree-vect-loop-manip.c (find_loop_location): Also ignore
14163 stmt locations where LOCATION_LOCUS of the stmt location is
14164 UNKNOWN_LOCATION or BUILTINS_LOCATION.
14167 * config/i386/i386.md (UNSPEC_STOS): New.
14168 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14169 *strsetqi_1): Add UNSPEC_STOS.
14171 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
14174 * doc/invoke.texi: Remove left over -Wsynth example.
14176 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14178 PR tree-optimization/56051
14179 * fold-const.c (fold_binary_loc): Don't fold
14180 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14181 a narrowing conversion, or widening conversion from signed
14184 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14186 PR rtl-optimization/56023
14187 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14188 dependent on debug instruction.
14190 2013-01-21 Martin Jambor <mjambor@suse.cz>
14192 PR middle-end/56022
14193 * function.c (allocate_struct_function): Call
14194 invoke_set_current_function_hook earlier.
14196 2013-01-21 Jakub Jelinek <jakub@redhat.com>
14198 * reload1.c (init_reload): Only initialize reload_obstack
14199 during the first call.
14201 2013-01-21 Marek Polacek <polacek@redhat.com>
14203 * cfgloop.c (verify_loop_structure): Fix up grammar.
14205 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
14207 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14208 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14210 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14213 * config/arm/marvell-pj4.md: Update copyright year.
14214 Fix up use of alu to alu_reg and simple_alu_imm.
14216 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
14218 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14220 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
14223 * lra-constraints.c (curr_insn_transform): Don't reuse original
14224 insn for secondary memory move when memory mode should be different.
14226 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14228 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14229 atomic_storedi_1): New patterns.
14231 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14233 btver2 pipeline descriptions.
14234 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14236 * config/i386/i386.md (btver2_decode): New type attributes.
14237 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
14239 * config/i386/btver2.md: New file describing btver2 pipelines.
14241 2013-01-19 Andrew Pinski <apinski@cavium.com>
14243 PR tree-optimization/52631
14244 * tree-ssa-sccvn (visit_use): Before looking up the original
14245 statement, try looking up the simplified expression.
14247 2013-01-19 Anthony Green <green@moxielogic.com>
14249 * config/moxie/moxie.c (moxie_expand_prologue): Set
14250 current_function_static_stack_size.
14252 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14254 PR tree-optimization/56029
14255 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14256 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14258 2013-01-18 Sharad Singhai <singhai@google.com>
14260 PR tree-optimization/55995
14261 * dumpfile.c (dump_loc): Print location only if available.
14262 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14264 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
14267 * lra-constraints.c (curr_insn_transform): Reuse original insn for
14268 secondary memory move.
14269 (inherit_reload_reg): Use rclass instead of cl for
14270 check_secondary_memory_needed_p.
14272 2013-01-18 Jakub Jelinek <jakub@redhat.com>
14274 PR middle-end/56015
14275 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
14276 the case where writing real complex part of target modifies op1.
14278 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
14280 * config/aarch64/aarch64-simd.md
14281 (aarch64_vcond_internal<mode>): Handle unordered cases.
14282 * config/aarch64/iterators.md (v_cmp_result): New.
14284 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
14285 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14287 * config/arm/marvell-pj4.md: New file.
14288 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14289 * config/arm/arm.md (generic_sched): Add marvell_pj4.
14290 (generic_vfp): Likewise.
14291 * config/arm/arm-cores.def: Add marvell-pj4.
14292 * config/arm/arm-tune.md: Regenerate.
14293 * config/arm/arm-tables.opt: Regenerate.
14294 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14295 * doc/invoke.texi: Document marvell-pj4.
14297 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
14299 * config/aarch64/arm_neon.h: Map scalar types to standard types.
14301 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14306 * var-tracking.c (negative_power_of_two_p): New.
14307 (global_get_addr_cache, local_get_addr_cache): New.
14308 (get_addr_from_global_cache, get_addr_from_local_cache): New.
14309 (vt_canonicalize_addr): Rewrite using the above. Adjust the
14311 (vt_stack_offset_p): Remove.
14312 (vt_canon_true_dep): Always canonicalize loc's address.
14313 (clobber_overlapping_mems): Make sure we have a MEM.
14314 (local_get_addr_clear_given_value): New.
14315 (val_reset): Clear local cached entries.
14316 (compute_bb_dataflow): Create and release the local cache.
14317 Disable duplicate MEMs clobbering.
14318 (emit_notes_in_bb): Clobber MEMs likewise.
14319 (vt_emit_notes): Create and release the local cache.
14320 (vt_initialize, vt_finalize): Create and release the global
14321 cache, respectively.
14322 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
14324 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14326 PR libmudflap/53359
14327 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14328 not found in the symtab.
14330 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
14333 PR rtl-optimization/55547
14334 PR rtl-optimization/53827
14337 * alias.c (offset_overlap_p): New, factored out of...
14338 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14339 the conservative special case for symbolic constants. Don't
14340 adjust zero sizes on alignment.
14342 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14344 PR rtl-optimization/52573
14345 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14346 REG_UNUSED for the same register.
14348 2013-01-17 Richard Biener <rguenther@suse.de>
14349 Marek Polacek <polacek@redhat.com>
14351 PR rtl-optimization/55833
14352 * loop-unswitch.c (unswitch_loops): Move loop verification...
14353 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14354 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14355 Set it to true when we're removing a loop from hierarchy tree in
14356 an irreducible region.
14357 (fix_bb_placements): Adjust caller.
14358 (fix_loop_placements): Likewise.
14360 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
14362 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14363 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14364 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14365 Remove ID. Adjust comments.
14366 * config/avr/avr-c.c (avr_builtin_name): Remove.
14367 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14368 * config/avr/avr.c (avr_tolower): New static function.
14369 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14370 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14371 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14374 2013-01-17 Jan Hubicka <jh@suse.cz>
14376 PR tree-optimization/55273
14377 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14379 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
14382 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14383 store through atomic_store<mode>_1.
14384 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14386 2013-01-17 Martin Jambor <mjambor@suse.cz>
14388 PR tree-optimizations/55264
14389 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14390 for virtual methods.
14391 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14392 virtual methods before inlining is over.
14393 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14395 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14398 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14400 PR rtl-optimization/56005
14401 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14402 pending reads for prefetch.
14404 2013-01-16 Ian Bolton <ian.bolton@arm.com>
14406 * config/aarch64/aarch64.md
14407 (*cstoresi_neg_uxtw): New pattern.
14408 (*cmovsi_insn_uxtw): New pattern.
14409 (*<optab>si3_uxtw): New pattern.
14410 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14411 (*<optab>si3_insn_uxtw): New pattern.
14412 (*bswapsi2_uxtw): New pattern.
14414 2013-01-16 Richard Biener <rguenther@suse.de>
14416 * tree-inline.c (tree_function_versioning): Remove set but
14417 never used variable.
14419 2013-01-16 Richard Biener <rguenther@suse.de>
14421 PR tree-optimization/55964
14422 * tree-flow.h (rename_variables_in_loop): Remove.
14423 (rename_variables_in_bb): Likewise.
14424 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14425 (copy_loop_before): Adjust and delete update-ssa status.
14426 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
14427 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
14428 (rename_variables_in_loop): Remove.
14429 (slpeel_update_phis_for_duplicate_loop): Likewise.
14430 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14431 use available cfg machinery instead of duplicating it.
14432 Update PHI nodes and perform poor-mans SSA update here.
14433 (slpeel_tree_peel_loop_to_edge): Adjust.
14435 2013-01-16 Richard Biener <rguenther@suse.de>
14437 PR tree-optimization/54767
14438 PR tree-optimization/53465
14439 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14440 (vrp_visit_phi_node): For PHI arguments coming via backedges
14441 drop all symbolical range information.
14442 (execute_vrp): Compute backedges.
14444 2013-01-16 Richard Biener <rguenther@suse.de>
14446 * doc/install.texi: Update CLooG and ISL requirements to
14449 2013-01-16 Christian Bruel <christian.bruel@st.com>
14452 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14453 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14454 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14456 2013-01-16 DJ Delorie <dj@redhat.com>
14458 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14459 (UNSPECV_SP_SWITCH_E): New.
14460 (sp_switch_1): Change to an unspec.
14461 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14464 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
14466 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14467 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14468 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14469 (expand_mem_thread_fence): Ditto.
14470 (expand_mem_signal_fence): Ditto.
14471 (expand_atomic_load): Ditto.
14472 (expand_atomic_store): Ditto.
14474 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
14476 PR rtl-optimization/55547
14477 PR rtl-optimization/53827
14480 * alias.c (memrefs_conflict_p): Set sizes to negative after
14483 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14486 * function.c (thread_prologue_and_epilogue_insns): Always
14487 add crtl->drap_reg to set_up_by_prologue.set, even if
14488 stack_realign_drap is false.
14490 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14492 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14493 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14494 *call): Fix indention.
14496 2013-01-15 Tom de Vries <tom@codesourcery.com>
14499 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14502 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14504 PR rtl-optimization/55153
14505 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14507 2013-01-15 Martin Jambor <mjambor@suse.cz>
14509 PR tree-optimization/55920
14510 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14511 accesses as grp_to_be_debug_replaced.
14513 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14515 PR tree-optimization/55920
14516 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14517 there is non-useless type conversion needed from debug rhs to lhs,
14518 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14520 2013-01-15 Joseph Myers <joseph@codesourcery.com>
14521 Mikael Pettersson <mikpe@it.uu.se>
14524 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14526 (ASM_OUTPUT_CASE_LABEL): Remove.
14527 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14528 * final.c (shorten_branches): Update alignment of labels before
14529 jump tables if CASE_VECTOR_SHORTEN_MODE.
14531 2013-01-15 Richard Biener <rguenther@suse.de>
14534 * system.h: Do not include gmp.h for building host tools.
14536 2013-01-15 Richard Biener <rguenther@suse.de>
14538 PR middle-end/55882
14539 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14540 account for bitpos when computing alignment.
14542 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14544 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14545 (ix86_target_macros_internal): Likewise.
14547 * config/i386/i386.c (m_CORE2I7): Removed.
14548 (m_CORE_HASWELL): New macro.
14549 (m_CORE_ALL): Likewise.
14550 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14551 (initial_ix86_arch_features): Likewise.
14552 (processor_target_table): Initializations for Core avx2.
14553 (cpu_names): New names "core-avx2".
14554 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14555 PROCESSOR_CORE_HASWELL.
14556 (ix86_issue_rate): New case.
14557 (ia32_multipass_dfa_lookahead): Likewise.
14558 (ix86_sched_init_global): Likewise.
14560 * config/i386/i386.h (TARGET_HASWELL): New macro.
14561 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14562 (processor_type): New PROCESSOR_HASWELL.
14564 2013-01-15 Jakub Jelinek <jakub@redhat.com>
14566 PR tree-optimization/55955
14567 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14568 *SHIFT_EXPR and *ROTATE_EXPR codes.
14570 PR tree-optimization/48766
14571 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14572 -ftrapv disable -fwrapv.
14574 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14577 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14578 etc. to 1 and not to __flash.
14579 Use LL suffix for __INT24_MAX__ with -mint8.
14580 Use ULL suffix for __UINT24_MAX__ with -mint8.
14582 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14584 * config/avr/avr-arch.h
14585 (struct base_arch_s): Use typedef avr_arch_t instead.
14586 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14587 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14588 * config/avr/avr.c: Same.
14589 * config/avr/avr-devices.c: Same.
14590 * config/avr/driver-avr.c: Same.
14591 * config/avr/gen-avr-mmcu-texi.c: Same.
14592 * config/avr/avr-mcus.def: Adjust comment.
14594 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14596 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14597 * config/aarch64/iterators.md (VALLDI): New.
14599 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
14600 Andi Kleen <ak@linux.intel.com>
14603 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14604 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14607 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14609 * config/avr/avr-stdint.h: Remove trailing blanks.
14610 * config/avr/avr-log.h: Same.
14611 * config/avr/avr-arch.h: Same.
14612 * config/avr/avr-devices.c: Same.
14613 * config/avr/avr-dimode.md: Same.
14614 * config/avr/predicates.md: Same.
14615 * config/avr/avr-c.c: Same. And fix typo.
14617 * config/avr/avr-protos.h: Same. And:
14618 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
14619 (init_cumulative_args): Rename to avr_init_cumulative_args.
14620 (expand_prologue): Rename to avr_expand_prologue.
14621 (expand_epilogue): Rename to avr_expand_epilogue.
14622 (adjust_insn_length): Rename to avr_adjust_insn_length.
14623 (notice_update_cc): Rename to avr_notice_update_cc.
14624 (final_prescan_insn): Rename to avr_final_prescan_insn.
14625 * config/avr/avr.c: Same.
14626 * config/avr/avr.h: Same.
14627 * config/avr/avr.md: Remove trailing blanks.
14628 (prologue): Use avr_expand_prologue.
14629 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
14631 2013-01-14 Richard Biener <rguenther@suse.de>
14633 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
14634 verify_location, collect_subblocks): New functions.
14635 (verify_gimple_in_cfg): Verify that locations only reference
14636 BLOCKs in the functions BLOCK tree.
14638 2013-01-14 Richard Biener <rguenther@suse.de>
14640 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
14642 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
14644 (insert_out_of_ssa_copy_on_edge): Likewise.
14645 (rewrite_close_phi_out_of_ssa): Likewise.
14646 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
14648 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
14649 propagated constants.
14650 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
14653 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
14655 * config/avr/avr-modes.def: Add GPL copyright notice.
14657 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
14659 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
14660 MEMMODEL_MASK to determine memory model.
14661 (atomic_store<mode>): Ditto from operands[2].
14662 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
14664 2013-01-13 Jakub Jelinek <jakub@redhat.com>
14667 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
14668 (fold_gimple_assign): Don't call unshare_expr here.
14669 (fold_ctor_reference): Call unshare_expr.
14671 2013-01-13 Terry Guo <terry.guo@arm.com>
14673 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
14674 * doc/fragments.texi: Document MULTILIB_REUSE.
14675 * gcc.c (multilib_reuse): New internal spec.
14676 (set_multilib_dir): Also search multilib from multilib_reuse.
14677 * genmultilib (tmpmultilib3): Refactor code.
14678 (tmpmultilib4): Ditto.
14679 (multilib_reuse): New multilib argument.
14681 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
14683 * Makefile.in: Update copyright.
14685 2013-01-12 Tom de Vries <tom@codesourcery.com>
14687 PR middle-end/55890
14688 * calls.c (expand_call): Check if arg_nr is valid.
14690 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14692 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
14693 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
14694 documentation. Add missing '__' in front of
14695 __builtin_ia32_packssdw256.
14697 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14700 * config/s390/s390.c (s390_preferred_reload_class): Do not return
14701 NO_REGS for larl operands.
14702 (s390_reload_larl_operand): Use s390_load_address instead of
14705 2013-01-11 Richard Biener <rguenther@suse.de>
14707 * tree-cfg.c (verify_node_sharing_1): Split out from ...
14708 (verify_node_sharing): ... here.
14709 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
14711 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
14713 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
14714 Substitute TREECHECKING.
14715 * configure: Regenerate.
14716 * Makefile.in (TREECHECKING): New.
14718 2013-01-11 Richard Guenther <rguenther@suse.de>
14720 PR tree-optimization/44061
14721 * tree-vrp.c (extract_range_basic): Compute zero as
14722 value-range for __builtin_constant_p of function parameters.
14724 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
14726 Update copyright years.
14728 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
14730 PR rtl-optimization/55672
14731 * lra-eliminations.c (mark_not_eliminable): Permit addition with
14732 const to be eliminable.
14734 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
14736 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
14737 * configure: Regenerate.
14739 2013-01-10 Richard Biener <rguenther@suse.de>
14741 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
14743 2013-01-10 Richard Biener <rguenther@suse.de>
14746 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
14747 locations for virtual PHI arguments.
14748 (rewrite_update_phi_arguments): Likewise.
14750 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
14752 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
14755 2013-01-10 Jakub Jelinek <jakub@redhat.com>
14757 PR tree-optimization/55921
14758 * tree-complex.c (expand_complex_asm): New function.
14759 (expand_complex_operations_1): Call it for GIMPLE_ASM.
14761 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14764 * config/s390/s390.c (s390_symref_operand_p)
14765 (s390_loadrelative_operand_p): Merge the two functions.
14766 (s390_check_qrst_address, print_operand_address): Add parameters
14767 to s390_loadrelative_operand_p invokation.
14768 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
14769 (s390_reload_larl_operand, s390_secondary_reload): Use
14770 s390_loadrelative_operand_p instead of s390_symref_operand_p.
14771 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
14773 2013-01-09 Mike Stump <mikestump@comcast.net>
14775 * dse.c (record_store): Remove unnecessary assert.
14777 2013-01-09 Jan Hubicka <jh@suse.cz>
14779 PR tree-optimization/55569
14780 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
14781 * cfgloop.h (scale_loop_profile): Likewise.
14783 2013-01-09 Jan Hubicka <jh@suse.cz>
14786 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
14788 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
14790 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
14792 PR middle-end/55114
14793 * expr.h (maybe_emit_group_store): Declare.
14794 * expr.c (maybe_emit_group_store): New function.
14795 * builtins.c (expand_builtin_int_roundingfn): Call it.
14796 (expand_builtin_int_roundingfn_2): Likewise.
14798 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
14800 PR rtl-optimization/55829
14801 * lra-constraints.c (match_reload): Add code for absent output.
14802 (curr_insn_transform): Add code for reloads of matched inputs
14805 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
14807 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
14808 attribute of movddup insn to DF.
14809 (*vec_interleave_lowv2df): Ditto.
14810 (vec_dupv2df): Ditto.
14812 2013-01-09 Jan Hubicka <jh@suse.cz>
14814 PR tree-optimiation/55875
14815 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
14816 EVERY_ITERATION parameter.
14817 (number_of_iterations_exit): Check if exit is executed every iteration.
14818 (idx_infer_loop_bounds): Similarly here.
14819 (n_of_executions_at_most): Simplify
14820 to only test for cases where statement is dominated by the
14821 particular bound; handle correctly the "postdominance" test.
14822 (scev_probably_wraps_p): Use max loop iterations info
14823 as a global bound first.
14825 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
14826 Nick Clifton <nickc@redhat.com>
14828 * config/v850/v850.md (cbranchsf4): New pattern.
14829 (cstoresf4): New pattern.
14830 (cbranchdf4): New pattern.
14831 (cstoredf4): New pattern.
14832 (movsicc): Disallow floating point comparisons.
14833 (cmpsf_le_insn): Fix order of operators.
14834 (cmpsf_lt_insn): Likewise.
14835 (cmpsf_eq_insn): Likewise.
14836 (cmpdf_le_insn): Likewise.
14837 (cmpdf_lt_insn): Likewise.
14838 (cmpdf_eq_insn): Likewise.
14839 (cmpsf_ge_insn): Use LE comparison.
14840 (cmpdf_ge_insn): Likewise.
14841 (cmpsf_gt_insn): Use LT comparison.
14842 (cmpdf_gt_insn): Likewise.
14843 (cmpsf_ne_insn): Delete pattern.
14844 (cmpdf_ne_insn): Delete pattern.
14845 * config/v850/v850.c (v850_gen_float_compare): Use
14846 gen_cmpdf_eq_insn for NE comparison.
14847 (v850_float_z_comparison_operator)
14848 (v850_float_nz_comparison_operator): Move from here ...
14849 * config/v850/predicates.md: ... to here. Move GT and GE
14850 comparisons into v850_float_z_comparison_operator.
14851 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
14853 (v850_float_nz_comparison_operator): Likewise.
14855 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14857 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
14858 with calls to gen_insvsi/gen_insvdi.
14860 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14862 * config/i386/i386.c (initial_ix86_tune_features): Set up
14863 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
14865 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
14866 Jakub Jelinek <jakub@redhat.com>
14868 PR tree-optimization/48189
14869 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
14870 If nitercst is 0, don't predict the exit edge.
14872 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14874 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
14875 in asm_fprintf with reg_names.
14876 (aarch64_print_operand_address): Likewise.
14877 (aarch64_return_addr): Likewise.
14878 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
14880 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14882 * config/pa/pa.h (VAL_U6_BITS_P): Define.
14883 (INT_U6_BITS): Likewise.
14884 * config/pa/predicates.md (uint6_operand): New predicate.
14885 (shift5_operand, shift6_operand): Likewise.
14886 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
14888 (lshrdi3): Use shift6_operand.
14889 (shrpsi4, shrpdi4): New insn patterns.
14890 (extzv): Delete expander.
14891 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
14892 predicates in unamed zero extract patterns. Tighten common constraint.
14893 (extv): Delete expander.
14894 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
14895 predicates in unamed sign extract patterns. Tighten common constraint.
14896 (insv): Delete expander.
14897 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
14898 predicates in unamed insert patterns. Tighten common constraint.
14899 Change uint32_operand predicate to uint6_operand predicate in unamed
14900 DImode pattern to insert constant values of type 1...1xxxx.
14902 2013-01-04 Jan Hubicka <jh@suse.cz>
14904 PR tree-optimization/55823
14905 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14908 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14909 Uros Bizjak <ubizjak@gmail.com>
14911 PR rtl-optimization/55845
14912 * df-problems.c (can_move_insns_across): Stop scanning at
14913 volatile_insn_p source instruction or give up if
14914 across_from .. across_to range contains any volatile_insn_p
14917 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14919 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14920 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14922 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
14923 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
14925 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14928 * asan.c (asan_clear_shadow): New function.
14929 (asan_emit_stack_protection): Use it.
14931 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14933 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14934 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14935 with tab instead of space.
14937 2013-01-08 Nick Clifton <nickc@redhat.com>
14939 * config/rl78/rl78.c (rl78_expand_prologue): Always select
14940 register bank 0 at the start of an interrupt handler.
14941 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14944 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14946 * config/aarch64/aarch64-simd.md
14947 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14948 (aarch64_simd_bsl): Likewise.
14949 (aarch64_vcond_internal<mode>): Likewise.
14950 (vcond<mode><mode>): Likewise.
14951 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14952 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14954 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14956 * config/aarch64/aarch64-builtins.c
14957 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14959 2013-01-08 Martin Jambor <mjambor@suse.cz>
14962 * tree-sra.c (analyze_access_subtree): Return true also after
14963 potentially creating a debug-only replacement.
14965 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14967 PR middle-end/55890
14968 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14970 PR tree-optimization/54120
14971 * tree-vrp.c (range_fits_type_p): Don't allow
14972 src_precision < precision from signed vr to unsigned_p
14973 if vr->min or vr->max is negative.
14974 (simplify_float_conversion_using_ranges): Test can_float_p
14975 against CODE_FOR_nothing.
14977 2013-01-08 Jakub Jelinek <jakub@redhat.com>
14978 Richard Biener <rguenther@suse.de>
14980 PR middle-end/55851
14981 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14982 types instead of just INTEGER_TYPE types.
14984 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
14986 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14989 2013-01-07 Steve Ellcey <sellcey@mips.com>
14992 * config/mips/mips.opt: Change mad to mmad to match documentation.
14994 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14997 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14998 .progmemx.data now.
15000 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15003 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
15004 (avr_addrspace_t): Add .section_name field.
15005 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
15007 (avr_addrspace): Same. Initialize .section_name. Remove last
15008 NULL entry. Put __memx into .progmemx.data.
15009 (progmem_section_prefix): Remove.
15010 (avr_asm_init_sections): No need to initialize progmem_section.
15011 (avr_asm_named_section): Use avr_addrspace[].section_name to get
15012 section name prefix.
15013 (avr_asm_select_section): Ditto. And use get_unnamed_section to
15014 retrieve the progmem section.
15015 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
15016 boundary to run over avr_addrspace[].
15017 (avr_register_target_pragmas): Ditto.
15019 2013-01-06 Jakub Jelinek <jakub@redhat.com>
15021 * varasm.c (output_constant_def_contents): For asan_protect_global
15022 protected strings, adjust DECL_ALIGN if needed, before testing for
15024 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
15025 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
15027 (output_object_block): For asan protected decls, emit asan padding
15028 after their contents.
15029 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
15030 (asan_finish_file): Test it here instead.
15032 2013-01-07 Nick Clifton <nickc@redhat.com>
15033 Matthias Klose <doko@debian.org>
15034 Doug Kwan <dougkwan@google.com>
15035 H.J. Lu <hongjiu.lu@intel.com>
15038 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
15040 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
15042 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
15044 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
15046 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
15048 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15051 * doc/install.texi (Cross-Compiler-Specific Options): Document
15054 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
15056 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
15057 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
15058 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
15059 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
15060 vqmovun_high_s64): Fix source operand number and update copyright.
15062 2013-01-07 Richard Biener <rguenther@suse.de>
15064 PR middle-end/55890
15065 * gimple.h (gimple_call_builtin_p): New overload.
15066 * gimple.c (validate_call): New function.
15067 (gimple_call_builtin_p): Likewise.
15068 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15069 Use gimple_call_builtin_p.
15070 (find_func_clobbers): Likewise.
15071 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
15072 (strlen_optimize_stmt): Likewise.
15074 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15076 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15077 (vld1q_dup_*): Likewise.
15078 (vld1_*): Likewise.
15079 (vld1q_*): Likewise.
15080 (vld1_lane_*): Likewise.
15081 (vld1q_lane_*): Likewise.
15083 2013-01-07 Richard Biener <rguenther@suse.de>
15085 * lto-streamer.h (LTO_minor_version): Bump to 2.
15087 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15089 * config/aarch64/aarch64-protos.h
15090 (aarch64_const_double_zero_rtx_p): Rename to...
15091 (aarch64_float_const_zero_rtx_p): ...this.
15092 (aarch64_float_const_representable_p): New.
15093 (aarch64_output_simd_mov_immediate): Likewise.
15094 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15095 move immediate case.
15096 * config/aarch64/aarch64.c
15097 (aarch64_const_double_zero_rtx_p): Rename to...
15098 (aarch64_float_const_zero_rtx_p): ...this.
15099 (aarch64_print_operand): Allow printing of new constants.
15100 (aarch64_valid_floating_const): New.
15101 (aarch64_legitimate_constant_p): Check for valid floating-point
15103 (aarch64_simd_valid_immediate): Likewise.
15104 (aarch64_vect_float_const_representable_p): New.
15105 (aarch64_float_const_representable_p): Likewise.
15106 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15107 (aarch64_output_simd_mov_immediate): New.
15108 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15109 (*movdf_aarch64): Likewise.
15110 * config/aarch64/constraints.md (Ufc): New.
15111 (Y): call aarch64_float_const_zero_rtx.
15112 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15114 2013-01-07 Richard Biener <rguenther@suse.de>
15116 PR tree-optimization/55888
15117 PR tree-optimization/55862
15118 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15119 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15120 not if it is contained therein.
15122 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15124 * config/avr/t-avr: Typo.
15126 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
15129 * config/avr/t-avr: Don't automatically rebuild
15130 $(srcdir)/config/avr/t-multilib
15131 $(srcdir)/config/avr/avr-tables.opt
15132 $(srcdir)/doc/avr-mmcu.texi
15133 (avr-mcus): New phony target to build them on request.
15134 (s-avr-mlib, s-avr-mmcu-texi): Remove.
15135 * avr/avr-mcus.def: Adjust comments.
15137 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
15139 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15141 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15143 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15145 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15147 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15149 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
15151 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15152 to generate profiling.
15153 * config/rs6000/aix64.h (LIB_SPEC): Same.
15155 2013-01-04 Andrew Pinski <apinski@cavium.com>
15157 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15159 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15161 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
15163 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15165 (ix86_expand_move): Ditto.
15166 (ix86_zero_extend_to_Pmode): Ditto.
15167 (ix86_expand_call): Ditto.
15168 (ix86_expand_special_args_builtin): Ditto.
15169 (ix86_expand_builtin): Ditto.
15171 2013-01-04 Richard Biener <rguenther@suse.de>
15173 PR tree-optimization/55862
15174 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15175 translating them through PHI nodes.
15177 2013-01-04 Martin Jambor <mjambor@suse.cz>
15179 PR tree-optimization/55755
15180 * tree-sra.c (sra_modify_assign): Do not check that an access has no
15181 children when trying to avoid producing a VIEW_CONVERT_EXPR.
15183 2013-01-04 Marek Polacek <polacek@redhat.com>
15185 PR middle-end/55859
15186 * opts.c (default_options_optimization): Clarify error message.
15188 2013-01-04 Richard Biener <rguenther@suse.de>
15190 PR middle-end/55863
15191 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15194 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15197 * config/pa/pa.md (movsi): Revert previous change.
15198 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15201 2013-01-03 Richard Henderson <rth@redhat.com>
15203 * config/i386/i386.c (ix86_expand_move): Always assign to op1
15204 after eliminating TLS symbols.
15206 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
15209 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15210 * graphite-poly.c (debug_gmp_value): Likewise.
15212 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
15215 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15216 selected code model, define __code_mode_small__, __code_model_medium__,
15217 __code_model_large__, __code_model_32__ or __code_model_kernel__.
15218 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15219 xchg temporary register with %k. Declare temporary register as
15221 [__x86_64__]: For medium and large code models, preserve %rbx register.
15223 2013-01-03 Richard Biener <rguenther@suse.de>
15225 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
15226 (dump_subscript): Adjust.
15227 (finalize_ddr_dependent): Do not dump redundant info.
15228 (analyze_siv_subscript): Adjust.
15229 (subscript_dependence_tester): Likewise.
15230 (compute_affine_dependence): Likewise.
15232 2013-01-03 Richard Biener <rguenther@suse.de>
15235 2013-01-03 Richard Biener <rguenther@suse.de>
15237 PR tree-optimization/55857
15238 * tree-vect-stmts.c (vectorizable_load): Do not setup
15239 re-alignment for invariant loads.
15241 2013-01-02 Richard Biener <rguenther@suse.de>
15243 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15244 invariant load do not generate a vector load from the scalar location.
15246 2013-01-03 Richard Biener <rguenther@suse.de>
15248 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15249 for not vectorizing.
15250 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15251 not build INDIRECT_REFs, call get_name once only.
15252 (vect_create_data_ref_ptr): Likewise. Dump base object kind
15253 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15255 2013-01-03 Richard Biener <rguenther@suse.de>
15257 PR tree-optimization/55857
15258 * tree-vect-stmts.c (vectorizable_load): Do not setup
15259 re-alignment for invariant loads.
15261 2013-01-03 Richard Biener <rguenther@suse.de>
15264 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15265 prefer a built-in decl.
15267 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15269 * gcc.c (process_command): Update copyright notice dates.
15270 * gcov.c (print_version): Likewise.
15271 * gcov-dump.c (print_version): Likewise.
15273 PR rtl-optimization/55838
15274 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15275 iv0.step, iv1.step and step.
15277 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15278 Marc Glisse <marc.glisse@inria.fr>
15280 PR tree-optimization/55832
15281 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15282 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15283 integer_{one,zero}_node.
15285 2013-01-03 Jakub Jelinek <jakub@redhat.com>
15288 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15289 * var-tracking.c (reverse_op): Don't add reverse ops to
15290 VALUEs that have already
15291 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
15293 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15295 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15297 2013-01-02 Teresa Johnson <tejohnson@google.com>
15299 * dumpfile.c (dump_loc): Print filename with location.
15300 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15301 new location_t parameter to emit complete unroll message with
15302 new dump framework.
15303 (canonicalize_loop_induction_variables): Compute loops location
15304 and pass to try_unroll_loop_completely.
15305 * loop-unroll.c (report_unroll_peel): New function.
15306 (peel_loops_completely): Use new dump format with location
15307 for main dumpfile message, and invoke report_unroll_peel on success.
15308 (decide_unrolling_and_peeling): Ditto.
15309 (decide_peel_once_rolling): Remove old dumpfile message subsumed
15310 by report_unroll_peel.
15311 (decide_peel_completely): Ditto.
15312 (decide_unroll_constant_iterations): Ditto.
15313 (decide_unroll_runtime_iterations): Ditto.
15314 (decide_peel_simple): Ditto.
15315 (decide_unroll_stupid): Ditto.
15316 * cfgloop.c (get_loop_location): New function.
15317 * cfgloop.h (get_loop_location): Declare.
15319 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15321 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15324 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15326 PR middle-end/55198
15327 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15328 BLKmode objects when EXPAND_MEMORY is specified.
15330 2013-01-02 Sriraman Tallam <tmsriram@google.com>
15332 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15334 (fold_builtin_cpu): Do not share cpu model decls across statements.
15336 2013-01-02 Jason Merrill <jason@redhat.com>
15339 * tree.c (build_array_type_1): Revert earlier change.
15341 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15343 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15345 * config/aarch64/aarch64-tune.md: Re-generate.
15347 2013-01-02 Richard Biener <rguenther@suse.de>
15349 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
15350 invariant load do not generate a vector load from the scalar location.
15352 2013-01-02 Richard Biener <rguenther@suse.de>
15355 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15356 * configure: Regenerate.
15358 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15360 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15361 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15362 (expand_builtin_int_roundingfn_2): Keep the original target around
15363 for the fallback case.
15365 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15367 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15368 to be clear for sign changes.
15370 2013-01-01 Jan Hubicka <jh@suse.cz>
15372 * ipa-inline-analysis.c: Fix formatting.
15374 2013-01-01 Jakub Jelinek <jakub@redhat.com>
15376 PR tree-optimization/55831
15377 * tree-vect-loop.c (get_initial_def_for_induction): Use
15378 gsi_after_labels instead of gsi_start_bb.
15380 Copyright (C) 2013 Free Software Foundation, Inc.
15382 Copying and distribution of this file, with or without modification,
15383 are permitted in any medium without royalty provided the copyright
15384 notice and this notice are preserved.