]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
[thirdparty/gcc.git] / gcc / ChangeLog
1 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 * config/arm/constraints.md (Df): New constraint.
4 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
5 Correct length attribute for last two alternatives.
6
7 2013-06-07 Alan Modra <amodra@gmail.com>
8
9 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10 override user -mfp-in-toc.
11 (offsettable_ok_by_alignment): Consider just the current access
12 rather than the whole object, unless BLKmode. Handle
13 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
14 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
15 for -mcmodel=medium.
16 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
17 override user -mfp-in-toc or -msum-in-toc. Default to
18 -mno-fp-in-toc for -mcmodel=medium.
19
20 2013-06-06 DJ Delorie <dj@redhat.com>
21
22 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
23 TARGET_VALID_POINTER_MODE.
24
25 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
26 Pat Haugen <pthaugen@us.ibm.com>
27 Peter Bergner <bergner@vnet.ibm.com>
28
29 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30 Document new power8 builtins.
31
32 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
33 condition code register, to allow 128-bit logical operations to be
34 done in the VSX or GPR registers.
35 (nor<mode>3): Use the canonical form for nor.
36 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
37 vclz*, and vpopcnt* vector instructions.
38 (nand<mode>3): Likewise.
39 (orc<mode>3): Likewise.
40 (clz<mode>2): LIkewise.
41 (popcount<mode>2): Likewise.
42
43 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
44 that only the GPRs are recognized.
45
46 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
47 support for new power8 builtins.
48
49 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
50 builtin functions.
51 (xscvdpspn): Likewise.
52 (vclz): Likewise.
53 (vclzb): Likewise.
54 (vclzh): Likewise.
55 (vclzw): Likewise.
56 (vclzd): Likewise.
57 (vpopcnt): Likewise.
58 (vpopcntb): Likewise.
59 (vpopcnth): Likewise.
60 (vpopcntw): Likewise.
61 (vpopcntd): Likewise.
62 (vgbbd): Likewise.
63 (vmrgew): Likewise.
64 (vmrgow): Likewise.
65 (eqv): Likewise.
66 (eqv_v16qi3): Likewise.
67 (eqv_v8hi3): Likewise.
68 (eqv_v4si3): Likewise.
69 (eqv_v2di3): Likewise.
70 (eqv_v4sf3): Likewise.
71 (eqv_v2df3): Likewise.
72 (nand): Likewise.
73 (nand_v16qi3): Likewise.
74 (nand_v8hi3): Likewise.
75 (nand_v4si3): Likewise.
76 (nand_v2di3): Likewise.
77 (nand_v4sf3): Likewise.
78 (nand_v2df3): Likewise.
79 (orc): Likewise.
80 (orc_v16qi3): Likewise.
81 (orc_v8hi3): Likewise.
82 (orc_v4si3): Likewise.
83 (orc_v2di3): Likewise.
84 (orc_v4sf3): Likewise.
85 (orc_v2df3): Likewise.
86
87 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
88 allow power8 quad mode in 64-bit.
89 (rs6000_builtin_vectorized_function): Add support to vectorize
90 ISA 2.07 count leading zeros, population count builtins.
91 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
92 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
93 (builtin_function_type): Add vgbbd builtin function which takes an
94 unsigned argument.
95 (altivec_expand_vec_perm_const): Add support for new power8 merge
96 instructions.
97
98 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
99 that does not include TImdoe for use with 32-bit.
100 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
101 instructions.
102 (UNSPEC_VSX_CVDPSPN): Likewise.
103 (vsx_xscvdpspn): Likewise.
104 (vsx_xscvspdpn): Likewise.
105 (vsx_xscvdpspn_scalar): Likewise.
106 (vsx_xscvspdpn_directmove): Likewise.
107 (vsx_and<mode>3): Split logical operations into 32-bit and
108 64-bit. Add support to do logical operations on TImode as well as
109 VSX vector types. Allow logical operations to be done in either
110 VSX registers or in general purpose registers in 64-bit mode. Add
111 splitters if GPRs were used. For AND, add clobber of CCmode to
112 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
113 encoding.
114 (vsx_and<mode>3_32bit): Likewise.
115 (vsx_and<mode>3_64bit): Likewise.
116 (vsx_ior<mode>3): Likewise.
117 (vsx_ior<mode>3_32bit): Likewise.
118 (vsx_ior<mode>3_64bit): Likewise.
119 (vsx_xor<mode>3): Likewise.
120 (vsx_xor<mode>3_32bit): Likewise.
121 (vsx_xor<mode>3_64bit): Likewise.
122 (vsx_one_cmpl<mode>2): Likewise.
123 (vsx_one_cmpl<mode>2_32bit): Likewise.
124 (vsx_one_cmpl<mode>2_64bit): Likewise.
125 (vsx_nor<mode>3): Likewise.
126 (vsx_nor<mode>3_32bit): Likewise.
127 (vsx_nor<mode>3_64bit): Likewise.
128 (vsx_andc<mode>3): Likewise.
129 (vsx_andc<mode>3_32bit): Likewise.
130 (vsx_andc<mode>3_64bit): Likewise.
131 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
132 and xxlorc instructions.
133 (vsx_eqv<mode>3_64bit): Likewise.
134 (vsx_nand<mode>3_32bit): Likewise.
135 (vsx_nand<mode>3_64bit): Likewise.
136 (vsx_orc<mode>3_32bit): Likewise.
137 (vsx_orc<mode>3_64bit): Likewise.
138
139 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
140
141 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
142 instruction.
143 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
144 (p8_vmrgow): Likewise.
145 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
146 GPRs to be split under VSX.
147 (p8v_clz<mode>2): Add power8 count leading zero support.
148 (p8v_popcount<mode>2): Add power8 population count support.
149 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
150 support.
151
152 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
153 instruction.
154
155 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
156 builtin functions.
157 (vec_nand): Likewise.
158 (vec_vclz): Likewise.
159 (vec_vclzb): Likewise.
160 (vec_vclzd): Likewise.
161 (vec_vclzh): Likewise.
162 (vec_vclzw): Likewise.
163 (vec_vgbbd): Likewise.
164 (vec_vmrgew): Likewise.
165 (vec_vmrgow): Likewise.
166 (vec_vpopcnt): Likewise.
167 (vec_vpopcntb): Likewise.
168 (vec_vpopcntd): Likewise.
169 (vec_vpopcnth): Likewise.
170 (vec_vpopcntw): Likewise.
171
172 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
173
174 PR rtl-optimization/57468
175 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
176 spilled pseudos.
177
178 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
179
180 PR rtl-optimization/57459
181 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
182 type when setting live regs.
183
184 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
185
186 * config/s390/s390.opt (mlra): New option.
187 * config/s390/s390.c (s390_decompose_address): Check displacement
188 for all registers for LRA.
189 (s390_secondary_reload): Don't used secondary reloads for LRA.
190 (s390_lra_p): New function.
191 (TARGET_LRA_P): Define.
192 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
193 of attribute cpu_facility to zarch for the last alternative.
194 (*cmpmem_short): Ditto.
195
196 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
197
198 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
199 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
200 (arm_expand_prologue): Likewise.
201
202 2013-06-06 Teresa Johnson <tejohnson@google.com>
203
204 PR c++/53743
205 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
206 as this is now done by redirect_edge_and_branch_force.
207 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
208 barriers, and fix interaction with splitting.
209 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
210 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
211 reflect changes made in the routine.
212 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
213 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
214 since this is called in cfglayout mode, and replace partition fixup
215 with assert as that is now done by force_nonfallthru_and_redirect.
216 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
217 already be marked with region crossing note.
218 (insert_section_boundary_note): Make non-static, gate on flag
219 has_bb_partition, rewrite to also check for multiple partitions.
220 (rest_of_handle_reorder_blocks): Remove call to
221 insert_section_boundary_note, now done later during free_cfg.
222 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
223 * bb-reorder.h (insert_section_boundary_note): Declare.
224 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
225 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
226 invoke insert_section_boundary_note.
227 (try_redirect_by_replacing_jump): Remove unnecessary
228 check for region crossing note.
229 (fixup_partition_crossing): New function.
230 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
231 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
232 in non-cfglayout mode.
233 (force_nonfallthru_and_redirect): Fixup partition boundaries,
234 remove old code that tried to do this. Emit barrier correctly
235 when we are in cfglayout mode.
236 (last_bb_in_partition): New function.
237 (rtl_split_edge): Correctly fixup partition boundaries.
238 (commit_one_edge_insertion): Remove old code that tried to
239 fixup region crossing edge since this is now handled in
240 split_block, and set up insertion point correctly since
241 block may now end in a jump.
242 (verify_hot_cold_block_grouping): Guard against checking when not in
243 linearized RTL mode.
244 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
245 notes.
246 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
247 rtl_verify_flow_info, so not called in cfglayout mode.
248 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
249 (fixup_reorder_chain): Remove old code that attempted to fixup region
250 crossing note as this is now handled in force_nonfallthru_and_redirect.
251 (duplicate_insn_chain): Don't duplicate switch section notes.
252 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
253 note.
254 * basic-block.h (emit_barrier_after_bb): Declare.
255
256 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
257
258 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
259 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
260 arm_usatsihi): Adjust alternatives for arm_restrict_it.
261
262 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
263
264 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
265 where appropriate.
266 * config/arm/ldmstm.md: Regenerate.
267
268 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
269
270 * config/arm/sync.md (atomic_loaddi_1):
271 Disable predication for arm_restrict_it.
272 (arm_load_exclusive<mode>): Likewise.
273 (arm_load_exclusivesi): Likewise.
274 (arm_load_exclusivedi): Likewise.
275 (arm_load_acquire_exclusive<mode>): Likewise.
276 (arm_load_acquire_exclusivesi): Likewise.
277 (arm_load_acquire_exclusivedi): Likewise.
278 (arm_store_exclusive<mode>): Likewise.
279 (arm_store_exclusive<mode>): Likewise.
280 (arm_store_release_exclusivedi): Likewise.
281 (arm_store_release_exclusive<mode>): Likewise.
282
283 2013-06-06 Richard Biener <rguenther@suse.de>
284
285 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
286 after LTO_null.
287 (lto_tag_is_tree_code_p): Adjust.
288 (lto_tag_is_gimple_code_p): Likewise.
289 (lto_gimple_code_to_tag): Likewise.
290 (lto_tag_to_gimple_code): Likewise.
291 (lto_tree_code_to_tag): Likewise.
292 (lto_tag_to_tree_code): Likewise.
293 * data-streamer.h (streamer_write_hwi_in_range): Use
294 uhwi streaming to stream the normalized range.
295 (streamer_read_hwi_in_range): Likewise.
296
297 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
298
299 * config/arm/arm.md (enabled_for_depr_it): New attribute.
300 (predicable_short_it): Likewise.
301 (predicated): Likewise.
302 (enabled): Handle above.
303 (define_cond_exec): Set predicated attribute to yes.
304
305 2013-06-05 Mike Stump <mikestump@comcast.net>
306
307 * gdbinit.in (__FUNCTION__): Add.
308
309 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
310
311 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
312 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
313
314 2013-06-05 Jan Hubicka <jh@suse.cz>
315
316 * varasm.c (mark_decl_referenced): Revert the removal until targets
317 are fixed.
318
319 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
320
321 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
322 instead of mark_decl_referenced.
323
324 2013-06-05 Jan Hubicka <jh@suse.cz>
325
326 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
327 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
328 and symtab_used_from_object_file_p.
329 (cgraph_make_node_local_1): Clear forced_by_abi.
330 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
331 * cgraph.h (symtab_node_base): Add forced_by_abi.
332 (decide_is_variable_needed): Remove.
333 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
334 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
335 (decide_is_symbol_needed): ... this one; handle symbols in general;
336 always analyze virtuals; honnor forced_by_abi.
337 (cgraph_finalize_function): Update.
338 (varpool_finalize_decl): Update.
339 (symbol_defined_and_needed): Remove.
340 (analyze_functions): Update.
341 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
342 output_refs, input_overwrite_node): Handle forced_by_abi.
343 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
344 (address_taken_from_non_vtable_p): ... this one.
345 (comdat_can_be_unshared_p_1): New function.
346 (cgraph_comdat_can_be_unshared_p): Rename to ...
347 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
348 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
349 (function_and_variable_visibility): Clear forced_by_abi as needed.
350 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
351 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
352 * symtab.c (dump_symtab_base): Dump forced_by_abi.
353 * varpool.c (decide_is_variable_needed): Remove.
354
355 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
356
357 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
358 (arm_option_override): Override arm_restrict_it where appropriate.
359 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
360 * config/arm/arm.opt (mrestrict-it): New command-line option.
361 * doc/invoke.texi: Document -mrestrict-it.
362
363 2013-06-05 David Malcolm <dmalcolm@redhat.com>
364
365 * tsan.c (tsan_atomic_table): Make const.
366
367 2013-06-05 Richard Biener <rguenther@suse.de>
368
369 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
370 index associated with the tree we are supposed to replace.
371 * tree-streamer-out.c (pack_ts_base_value_fields): Output
372 TREE_ASM_WRITTEN as zero for everything but SSA names.
373
374 2013-06-05 David Malcolm <dmalcolm@redhat.com>
375
376 * tree-ssa-structalias.c (call_stmt_vars): Make static.
377
378 2013-06-04 Jan Hubicka <jh@suse.cz>
379
380 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
381 (input_node, input_varpool_node): Handle correctly external same
382 body aliases.
383 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
384 nodes at ltrans stage.
385
386 2013-06-04 Jan Hubicka <jh@suse.cz>
387
388 * ipa-inline.c (update_caller_keys): Fix availability test.
389 (update_callee_keys): Likewise.
390 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
391 to follow ELF standard.
392
393 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
394
395 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
396 (mips64r5900el-*-elf*): New configurations.
397 * config/mips/mips-cpus.def (r5900): New processor.
398 * config/mips/mips-tables.opt: Regenerate.
399 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
400 (mips_issue_rate): Handle PROCESSOR_R5900.
401 (mips_reorg_process_insns): Force reorder mode for the R5900.
402 * config/mips/mips.h (TARGET_MIPS5900): Define.
403 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
404 TARGET_MIPS5900.
405 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
406 TARGET_MIPS5900.
407 * config/mips/mips.md (processor): Add r5900.
408 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
409
410 2013-06-04 Ian Bolton <ian.bolton@arm.com>
411
412 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
413 into function to generate MOVI instruction.
414 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
415 (aarch64_preferred_simd_mode): Turn into wrapper.
416 (aarch64_output_scalar_simd_mov_immediate): New function.
417 * config/aarch64/aarch64-protos.h: Add prototype for above.
418
419 2013-06-04 Ian Bolton <ian.bolton@arm.com>
420
421 * config/aarch64/aarch64.c (simd_immediate_info): Remove
422 element_char member.
423 (sizetochar): Return signed char.
424 (aarch64_simd_valid_immediate): Remove elchar and other
425 unnecessary variables.
426 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
427 Calculate element_char as required.
428 * config/aarch64/aarch64-protos.h: Update and move prototype
429 for aarch64_output_simd_mov_immediate.
430 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
431 Update arguments.
432
433 2013-06-04 Ian Bolton <ian.bolton@arm.com>
434
435 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
436 information completed by aarch64_simd_valid_immediate.
437 (aarch64_legitimate_constant_p): Update arguments.
438 (aarch64_simd_valid_immediate): Work with struct rather than many
439 pointers.
440 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
441 (aarch64_simd_make_constant): Update arguments.
442 (aarch64_output_simd_mov_immediate): Work with struct rather than
443 many pointers. Output immediate directly rather than as operand.
444 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
445 Update prototype.
446 * config/aarch64/constraints.md (Dn): Update arguments.
447
448 2013-06-04 Ian Bolton <ian.bolton@arm.com>
449
450 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
451 longer static.
452 (aarch64_simd_immediate_valid_for_move): Remove.
453 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
454 (aarch64_simd_make_constant): Update call.
455 (aarch64_output_simd_mov_immediate): Update call.
456 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
457 Add prototype.
458 * config/aarch64/constraints.md (Dn): Update call.
459
460 2013-06-04 Ian Bolton <ian.bolton@arm.com>
461
462 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
463 return type to bool for prototype.
464 (aarch64_legitimate_constant_p): Check for true instead of not -1.
465 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
466 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
467
468 2013-06-04 Catherine Moore <clm@codesourcery.com>
469
470 * config/mips/mips.opt (meva): New.
471 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
472 (ASM_SPEC): Handle -meva.
473 * doc/invoke.texi (meva): Document.
474
475 2013-06-04 Alan Modra <amodra@gmail.com>
476
477 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
478 constant output.
479
480 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
481
482 * rtl.def: Add extra fourth optional field to define_cond_exec.
483 * gensupport.c (process_one_cond_exec): Process attributes from
484 define_cond_exec.
485 * doc/md.texi: Document fourth field in define_cond_exec.
486
487 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
488
489 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
490 out the processing order as in store_bit_field_1.
491
492 2013-06-04 Jan Hubicka <jh@suse.cz>
493
494 PR middle-end/57500
495 * cgraphunit.c (cgraph_process_same_body_aliases): Create
496 non-VAR_DECL node if it does not exist yet.
497
498 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
499
500 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
501 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
502 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
503 target_cpu_default setting.
504
505 2013-06-03 Teresa Johnson <tejohnson@google.com>
506
507 * dumpfile.c (opt_info_switch_p): Change -fopt-info
508 default to -fopt-info=optimized instead of all.
509 * doc/invoke.texi: Ditto.
510 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
511 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
512 (execute_vect_slp): Emit BB vectorization success under
513 MSG_OPTIMIZED_LOCATIONS.
514 * tree-vect-slp.c (vect_slp_transform_bb): Change
515 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
516 * tree-vect-loop.c (vect_transform_loop): Ditto.
517
518 2013-06-03 Jason Merrill <jason@redhat.com>
519
520 PR c++/57415
521 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
522 Use TARGET_EXPR for C++.
523
524 2013-06-03 Jakub Jelinek <jakub@redhat.com>
525
526 PR rtl-optimization/57268
527 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
528 if DEBUG_INSN_P (insn).
529
530 Reapply
531 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
532
533 PR rtl-optimization/57268
534 * sched-deps.c (sched_analyze_2): Flush dependence lists if
535 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
536
537 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
538
539 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
540 (ix86_avoid_lea_for_addr): Likewise.
541 (exact_dependency_1): Likewise.
542 (ix86_adjust_cost): Likewise.
543 (swap_top_of_ready_list): Fix formatting and !reload_completed check
544 removed.
545 (do_reorder_for_imul): Fix typo, formatting and
546 !reload_completed check removed.
547 (ix86_sched_reorder): Fix typo and formatting.
548 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
549 list.
550
551 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
552
553 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
554
555 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
556
557 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
558 <STRING_CST>: Likewise.
559 <VECTOR_CST>: Likewise.
560
561 2013-06-01 Janus Weil <janus@gcc.gnu.org>
562 Mikael Morin <mikael@gcc.gnu.org>
563
564 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
565 * config.in: Regenerated.
566 * configure: Regenerated.
567
568 2013-06-01 Jan Hubicka <jh@suse.cz>
569
570 PR middle-end/57366
571 * cgraphunit.c (compile): When weakref is not supported,
572 set up transparent aliases before final output pass.
573 * varasm.c (assemble_alias): Do not try to do it here.
574
575 2013-06-01 Jan Hubicka <jh@suse.cz>
576
577 PR middle-end/57467
578 * passes.c (for_per_function): Skip unanalyzed functions.
579
580 2013-06-01 Jan Hubicka <jh@suse.cz>
581
582 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
583 (lto_symtab_merge_symbols_1): ... this one.
584 (lto_symtab_merge_cgraph_nodes): Rename to ...
585 (lto_symtab_merge_symbols): ... this one; simplify.
586 * cgraph.c (same_body_aliases_done): Rename to ...
587 (cpp_implicit_aliases_done): ... this one.
588 (cgraph_create_function_alias): Update.
589 (cgraph_same_body_alias): Update.
590 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
591 (verify_edge_corresponds_to_fndecl): Simplify.
592 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
593 (cgraph_node): Remove same_body_alias.
594 (varpool_node): Remove alias_of and extra_name_alias.
595 (same_body_aliases_done): Rename to ..
596 (cpp_implicit_aliases_done): ... this one.
597 (symtab_alias_ultimate_target): Add default parameter.
598 (symtab_resolve_alias): New function.
599 (fixup_same_cpp_alias_visibility): Declare.
600 (cgraph_function_node): Add default parameter.
601 (cgraph_node_asm_name): Likewise.
602 (cgraph_function_or_thunk_node): Add default parameter; do
603 not ICE when it is NULL.
604 (varpool_variable_node): Likewise.
605 * tree-emutls.c (create_emultls_var): Update.
606 (ipa_lower_emutls): Update.
607 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
608 (cgraph_reset_node): Reset alias info.
609 (cgraph_finalize_function): Update.
610 (fixup_same_cpp_alias_visibility): Move to symtab.c.
611 (analyze_function): Simplify.
612 (cgraph_process_same_body_aliases): Simplify.
613 (analyze_functions): Fixup same body aliases.
614 (handle_alias_pairs): Simplify.
615 (assemble_thunk): Update.
616 (assemble_thunks_and_aliases): Update.
617 (output_weakrefs): Rewrite.
618 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
619 (lto_output_varpool_node): Likewise.
620 (compute_ltrans_boundary): Remve assert.
621 (get_alias_symbol): New functoin.
622 (input_node): Rewrite alias handling.
623 (input_varpool_node): Likewise.
624 * ipa-pure-const.c (propagate_pure_const): Fix formating.
625 * ipa.c (process_references): Handle weakrefs correctly.
626 (symtab_remove_unreachable_nodes): Likewise.
627 * trans-mem.c (get_cg_data): Update.
628 (ipa_tm_create_version_alias): Update.
629 (ipa_tm_execute): Update.
630 * symtab.c (dump_symtab_base): Dump aliases.
631 (verify_symtab_base): Verify aliases.
632 (symtab_node_availability): New function.
633 (symtab_alias_ultimate_target): Simplify.
634 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
635 handle all the fixup cases.
636 (symtab_resolve_alias): New function.
637 * passes.c (ipa_write_summaries): Handle weakrefs.
638 * varpool.c (varpool_analyze_node): Simplify.
639 (assemble_aliases): Update.
640 (varpool_create_variable_alias): Simplify.
641 (varpool_extra_name_alias): Simplify.
642 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
643 (lto_symtab_merge_symbols): ... this one.
644
645 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
646
647 Revert
648 PR rtl-optimization/57268
649 * sched-deps.c (sched_analyze_2): Flush dependence lists if
650 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
651
652 2013-06-01 Tobias Burnus <burnus@net-b.de>
653
654 Partially reverted:
655 2013-05-31 Tobias Burnus <burnus@net-b.de>
656
657 PR middle-end/57073
658 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
659 further up.
660
661 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
662
663 PR rtl-optimization/57268
664 * sched-deps.c (sched_analyze_2): Flush dependence lists if
665 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
666
667 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
668
669 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
670 unordered comparison operators when -fno-trapping-math is in effect
671 on the e500.
672 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
673 and implement unordered comparison operators properly on the e500.
674
675 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
676
677 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
678 for constant scalar integers.
679 (simplify_relational_operation_1): Likewise.
680
681 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
682
683 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
684 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
685 Fix comment.
686
687 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
688 Igor Zamyatin <igor.zamyatin@intel.com>
689
690 Silvermont (SLM) architecture performance tuning.
691 * config/i386/i386.h (enum ix86_tune_indices): Add
692 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
693 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
694
695 * config/i386/i386.c (initial_ix86_tune_features)
696 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
697 (ix86_lea_outperforms): Handle Silvermont tuning.
698 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
699 call.
700 (ix86_use_lea_for_mov): Likewise.
701 (ix86_avoid_lea_for_addr): Likewise.
702 (ix86_lea_for_add_ok): Likewise.
703 (exact_dependency_1): New function.
704 (exact_store_load_dependency): Likewise.
705 (ix86_adjust_cost): Handle Silvermont tuning.
706 (do_reoder_for_imul): Likewise.
707 (swap_top_of_ready_list): New function.
708 (ix86_sched_reorder): Changed to handle Silvermont tuning.
709
710 * config/i386/i386.md (peepholes that split memory operand in fp
711 converts): New.
712
713 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
714
715 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
716 Remove un-necessary braces.
717
718 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
719
720 * config/aarch64/aarch64.c (aarch64_classify_symbol):
721 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
722
723 2013-05-31 Tobias Burnus <burnus@net-b.de>
724
725 PR middle-end/57073
726 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
727
728 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
729
730 PR target/56315
731 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
732 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
733 * config/arm/neon.md (iordi3_neon): Remove.
734 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
735 * config/arm/predicates.md (imm_for_neon_logic_operand):
736 Move to earlier in the file.
737 (neon_logic_op2): Likewise.
738 (arm_iordi_operand_neon): New predicate.
739
740 2013-05-31 Richard Biener <rguenther@suse.de>
741
742 PR tree-optimization/57478
743 PR tree-optimization/57453
744 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
745 are life as well.
746
747 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
748
749 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
750 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
751
752 2013-05-30 Tobias Burnus <burnus@net-b.de>
753 Thomas Koenig <tkoenig@gcc.gnu.org>
754
755 PR middle-end/57073
756 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
757 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
758
759 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
760
761 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
762
763 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
764
765 * target.def (register_usage_leveling_p): New hook.
766 * targhooks.c (default_register_usage_leveling_p): New.
767 * targhooks.h (default_register_usage_leveling_p): New prototype.
768 * lra-assigns.c (register_usage_leveling_p): Use the hook.
769 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
770 * doc/tm.texi: Update.
771 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
772
773 2013-05-30 Ian Bolton <ian.bolton@arm.com>
774
775 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
776 (*insv_reg<mode>): New define_insn.
777
778 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
779
780 PR rtl-optimization/57439
781 * postreload.c (move2add_valid_value_p): Check that we have
782 a zero subreg_regno_offset when accessing the register in
783 the requested mode.
784
785 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
786 Igor Zamyatin <igor.zamyatin@intel.com>
787
788 Silvermont (SLM) architecture pipeline model, tuning and
789 insn selection.
790 * config.gcc: Add slm config options and target.
791
792 * config/i386/slm.md: New.
793
794 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
795
796 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
797 PROCESSOR_SLM.
798 (ix86_target_macros_internal): Likewise.
799
800 * gcc/config/i386/i386.c (slm_cost): New cost.
801 (m_SLM): New macro flag.
802 (initial_ix86_tune_features): Set m_SLM.
803 (x86_accumulate_outgoing_args): Likewise.
804 (x86_arch_always_fancy_math_387): Likewise.
805 (processor_target_table): Add slm cost.
806 (cpu_names): Add slm cpu name.
807 (x86_option_override_internal): Set SLM ISA.
808 (ix86_issue_rate): New case PROCESSOR_SLM.
809 (ia32_multipass_dfa_lookahead): Likewise.
810 (fold_builtin_cpu): Add slm.
811
812 * config/i386/i386.h (TARGET_SLM): New target macro.
813 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
814 (processor_type): Add PROCESSOR_SLM.
815
816 * config/i386/i386.md (cpu): Add new value "slm".
817 (slm.md): Include slm.md.
818
819 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
820 Zhenqiang Chen <zhenqiang.chen@linaro.org>
821
822 * config/arm/arm-protos.h: Add and update function protos.
823 * config/arm/arm.c (use_simple_return_p): New added.
824 (thumb2_expand_return): Check simple_return flag.
825 * config/arm/arm.md: Add simple_return and conditional simple_return.
826 * config/arm/iterators.md: Add iterator for return and simple_return.
827
828 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
829
830 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
831 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
832 (arm_emit_vfp_multi_reg_pop): Likewise.
833 (thumb2_emit_ldrd_pop): Likewise.
834 (arm_expand_epilogue): Add misc REG_CFA notes.
835 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
836
837 2013-05-29 Lawrence Crowl <crowl@google.com>
838
839 * config/arm/t-arm: Update for below.
840
841 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
842 Change type to hash_table. Update dependent calls and types.
843
844 * config/i386/t-cygming: Update for below.
845
846 * config/i386/t-interix: Update for below.
847
848 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
849 Change type to hash_table. Update dependent calls and types.
850 (i386_find_on_wrapper_list::wrappers): Likewise.
851
852 * config/ia64/t-ia64: Update for below.
853
854 * config/ia64/ia64.c (bundle_state_table):
855 Change type to hash_table. Update dependent calls and types.
856
857 * config/mips/mips.c (mips_reorg_process_insns::htab):
858 Change type to hash_table. Update dependent calls and types.
859
860 * config/sol2.c (solaris_comdat_htab):
861 Change type to hash_table. Update dependent calls and types.
862
863 * config/t-sol2: Update for above.
864
865 2013-05-29 Teresa Johnson <tejohnson@google.com>
866
867 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
868 functions are not yet marked as defined.
869
870 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
871 Pat Haugen <pthaugen@us.ibm.com>
872 Peter Bergner <bergner@vnet.ibm.com>
873
874 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
875 instructions.
876 (VEC_A): Likewise.
877 (VEC_C): Likewise.
878 (vrotl<mode>3): Likewise.
879 (vashl<mode>3): Likewise.
880 (vlshr<mode>3): Likewise.
881 (vashr<mode>3): Likewise.
882
883 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
884 support for power8 V2DI builtins.
885
886 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
887 power8 V2DI builtins.
888 (vupkhsw): Likewise.
889 (vupklsw): Likewise.
890 (vaddudm): Likewise.
891 (vminsd): Likewise.
892 (vmaxsd): Likewise.
893 (vminud): Likewise.
894 (vmaxud): Likewise.
895 (vpkudum): Likewise.
896 (vpksdss): Likewise.
897 (vpkudus): Likewise.
898 (vpksdus): Likewise.
899 (vrld): Likewise.
900 (vsld): Likewise.
901 (vsrd): Likewise.
902 (vsrad): Likewise.
903 (vsubudm): Likewise.
904 (vcmpequd): Likewise.
905 (vcmpgtsd): Likewise.
906 (vcmpgtud): Likewise.
907 (vcmpequd_p): Likewise.
908 (vcmpgtsd_p): Likewise.
909 (vcmpgtud_p): Likewise.
910 (vupkhsw): Likewise.
911 (vupklsw): Likewise.
912 (vaddudm): Likewise.
913 (vmaxsd): Likewise.
914 (vmaxud): Likewise.
915 (vminsd): Likewise.
916 (vminud): Likewise.
917 (vpksdss): Likewise.
918 (vpksdus): Likewise.
919 (vpkudum): Likewise.
920 (vpkudus): Likewise.
921 (vrld): Likewise.
922 (vsld): Likewise.
923 (vsrad): Likewise.
924 (vsrd): Likewise.
925 (vsubudm): Likewise.
926
927 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
928 support for power8 V2DI instructions.
929
930 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
931 power8 V2DI instructions. Combine pack and unpack insns to use an
932 iterator for each mode. Check whether a particular mode supports
933 Altivec instructions instead of just checking TARGET_ALTIVEC.
934 (UNSPEC_VPKUWUM): Likewise.
935 (UNSPEC_VPKSHSS): Likewise.
936 (UNSPEC_VPKSWSS): Likewise.
937 (UNSPEC_VPKUHUS): Likewise.
938 (UNSPEC_VPKSHUS): Likewise.
939 (UNSPEC_VPKUWUS): Likewise.
940 (UNSPEC_VPKSWUS): Likewise.
941 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
942 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
943 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
944 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
945 (UNSPEC_VUPKHSB): Likewise.
946 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
947 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
948 (UNSPEC_VUPKHSH): Likewise.
949 (UNSPEC_VUPKLSB): Likewise.
950 (UNSPEC_VUPKLSH): Likewise.
951 (VI2): Likewise.
952 (VI_char): Likewise.
953 (VI_scalar): Likewise.
954 (VI_unit): Likewise.
955 (VP): Likewise.
956 (VP_small): Likewise.
957 (VP_small_lc): Likewise.
958 (VU_char): Likewise.
959 (add<mode>3): Likewise.
960 (altivec_vaddcuw): Likewise.
961 (altivec_vaddu<VI_char>s): Likewise.
962 (altivec_vadds<VI_char>s): Likewise.
963 (sub<mode>3): Likewise.
964 (altivec_vsubcuw): Likewise.
965 (altivec_vsubu<VI_char>s): Likewise.
966 (altivec_vsubs<VI_char>s): Likewise.
967 (altivec_vavgs<VI_char>): Likewise.
968 (altivec_vcmpbfp): Likewise.
969 (altivec_eq<mode>): Likewise.
970 (altivec_gt<mode>): Likewise.
971 (altivec_gtu<mode>): Likewise.
972 (umax<mode>3): Likewise.
973 (smax<mode>3): Likewise.
974 (umin<mode>3): Likewise.
975 (smin<mode>3): Likewise.
976 (altivec_vpkuhum): Likewise.
977 (altivec_vpkuwum): Likewise.
978 (altivec_vpkshss): Likewise.
979 (altivec_vpkswss): Likewise.
980 (altivec_vpkuhus): Likewise.
981 (altivec_vpkshus): Likewise.
982 (altivec_vpkuwus): Likewise.
983 (altivec_vpkswus): Likewise.
984 (altivec_vpks<VI_char>ss): Likewise.
985 (altivec_vpks<VI_char>us): Likewise.
986 (altivec_vpku<VI_char>us): Likewise.
987 (altivec_vpku<VI_char>um): Likewise.
988 (altivec_vrl<VI_char>): Likewise.
989 (altivec_vsl<VI_char>): Likewise.
990 (altivec_vsr<VI_char>): Likewise.
991 (altivec_vsra<VI_char>): Likewise.
992 (altivec_vsldoi_<mode>): Likewise.
993 (altivec_vupkhsb): Likewise.
994 (altivec_vupkhs<VU_char>): Likewise.
995 (altivec_vupkls<VU_char>): Likewise.
996 (altivec_vupkhsh): Likewise.
997 (altivec_vupklsb): Likewise.
998 (altivec_vupklsh): Likewise.
999 (altivec_vcmpequ<VI_char>_p): Likewise.
1000 (altivec_vcmpgts<VI_char>_p): Likewise.
1001 (altivec_vcmpgtu<VI_char>_p): Likewise.
1002 (abs<mode>2): Likewise.
1003 (vec_unpacks_hi_v16qi): Likewise.
1004 (vec_unpacks_hi_v8hi): Likewise.
1005 (vec_unpacks_lo_v16qi): Likewise.
1006 (vec_unpacks_hi_<VP_small_lc>): Likewise.
1007 (vec_unpacks_lo_v8hi): Likewise.
1008 (vec_unpacks_lo_<VP_small_lc>): Likewise.
1009 (vec_pack_trunc_v8h): Likewise.
1010 (vec_pack_trunc_v4si): Likewise.
1011 (vec_pack_trunc_<mode>): Likewise.
1012
1013 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1014 V2DI builtins.
1015 (vec_vmaxsd): Likewise.
1016 (vec_vmaxud): Likewise.
1017 (vec_vminsd): Likewise.
1018 (vec_vminud): Likewise.
1019 (vec_vpksdss): Likewise.
1020 (vec_vpksdus): Likewise.
1021 (vec_vpkudum): Likewise.
1022 (vec_vpkudus): Likewise.
1023 (vec_vrld): Likewise.
1024 (vec_vsld): Likewise.
1025 (vec_vsrad): Likewise.
1026 (vec_vsrd): Likewise.
1027 (vec_vsubudm): Likewise.
1028 (vec_vupkhsw): Likewise.
1029 (vec_vupklsw): Likewise.
1030
1031 2013-05-29 Jan Hubicka <jh@suse.cz>
1032
1033 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1034 flags; reorder rest of fields in more consistent way.
1035 (varpool_node): Remove analyzed, finalized and alias.
1036 (cgraph_ndoe): Likewise.
1037 (symtab_alias_ultimate_target): New function.
1038 (cgraph_function_node): Move offline.
1039 (cgraph_reset_node): Declare.
1040 (cgraph_comdat_can_be_unshared_p): Remove.
1041 (varpool_remove_initializer): Declare.
1042 (varpool_first_defined_variable, varpool_next_defined_variable
1043 cgraph_first_defined_function, cgraph_next_defined_function): Update.
1044 (cgraph_function_with_gimple_body_p): Update.
1045 (varpool_all_refs_explicit_p): Update.
1046 (symtab_alias_target): New function.
1047 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1048 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
1049 (cgraph_function_or_thunk_node): Simplify using
1050 symtab_alias_ultimate_target.
1051 (varpool_variable_node): Likewise.
1052 * cgraph.c (cgraph_create_function_alias): Update.
1053 (cgraph_add_thunk): Update.
1054 (cgraph_remove_node): Update.
1055 (dump_cgraph_node): Do not dump removed flags.
1056 (cgraph_function_body_availability): Update.
1057 (cgraph_propagate_frequency): Update.
1058 (verify_cgraph_node): Check sanity of local flag.
1059 (cgraph_function_node): Move here from cgraph.h; revamp for
1060 cgraph_function_or_thunk_node.
1061 * lto-symtab.c (lto_varpool_replace_node): Update.
1062 (lto_symtab_resolve_can_prevail_p): Update.
1063 (lto_symtab_merge_cgraph_nodes): Update.
1064 * ipa-cp.c (determine_versionability, initialize_node_lattices,
1065 propagate_constants_accross_call, devirtualization_time_bonus,
1066 ipcp_propagate_stage): Update.
1067 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
1068 * ipa-inline-transform.c (clone_inlined_nodes,
1069 preserve_function_body_p): Update.
1070 * ipa-reference.c (propagate): Update.
1071 (write_node_summary_p): Update.
1072 * toplev.c (wrapup_global_declaration_2): Update.
1073 * cgraphunit.c (cgraph_analyze_function): Rename to ...
1074 (analyze_function) ... this one.
1075 (cgraph_process_new_functions): Update.
1076 (cgraph_reset_node): Export.
1077 (cgraph_finalize_function): Update.
1078 (cgraph_add_new_function): Update.
1079 (process_function_and_variable_attributes): Update.
1080 (varpool_finalize_decl): Update.
1081 (symbol_finalized): Remove.
1082 (symbol_finalized_and_needed): Rename to ...
1083 (symbol_defined_and_needed): ... update.
1084 (cgraph_analyze_functions): Update.
1085 (handle_alias_pairs): Update.
1086 (mark_functions_to_output): Update.
1087 (assemble_thunk): Update.
1088 (output_in_order): Update.
1089 (output_weakrefs): Update.
1090 (finalize_compilation_unit): Update.
1091 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
1092 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
1093 input_node, input_varpool_node): Update.
1094 * dbxout.c (dbxout_expand_expr): Update.
1095 * cgraphclones.c (cgraph_clone_node): Update.
1096 (cgraph_copy_node_for_versioning): Update.
1097 (cgraph_materialize_clone): Update.
1098 (cgraph_materialize_all_clones): Update.
1099 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
1100 propagate_pure_const, propagate_nothrow): Update.
1101 * lto-streamer-out.c (lto_output, write_symbol): Update.
1102 * ipa-utils.c (ipa_reverse_postorder): Update.
1103 * ipa-inline.c (can_inline_edge_p): Update.
1104 (update_caller_keys, ipa_inline): Update.
1105 * dwarf2out.c (reference_to_unused,
1106 premark_types_used_by_global_vars_helper): Update.
1107 * tree-eh.c (tree_could_trap_p): Update.
1108 * ipa-split.c (consider_split, execute_split_functions): Update.
1109 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
1110 has_addr_references_p): Update; move ahead in file for better
1111 readability.
1112 (process_references): Simplify.
1113 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
1114 bodies are removed.
1115 (cgraph_comdat_can_be_unshared_p): Make static.
1116 (cgraph_externally_visible_p): Update.
1117 (varpool_externally_visible_p): Update.
1118 (function_and_variable_visibility): Update.
1119 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
1120 ipa_tm_mark_force_output_node): Update.
1121 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
1122 estimate_edge_devirt_benefit, inline_generate_summary,
1123 inline_write_summary): Update.
1124 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
1125 * ipa-prop.c (ipa_compute_jump_functions): Update.
1126 (ipa_print_node_params, ipa_prop_read_section,
1127 ipa_update_after_lto_read, read_replacements_section): Update.
1128 * varasm.c (mark_decl_referenced): Update.
1129 (assemble_alias, dump_tm_clone_pairs): Update.
1130 * tree-inline.c (copy_bb): Update.
1131 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
1132 Update.
1133 * symtab.c (dump_symtab_base): Print new flags.
1134 (verify_symtab_base): Verify new flags.
1135 (symtab_alias_ultimate_target): New function.
1136 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
1137 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
1138 Update.
1139 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
1140 Update.
1141 * i386.c (ix86_get_function_versions_dispatcher,
1142 ix86_generate_version_dispatcher_body): Update.
1143 (fold_builtin_cpu): Use varpool_add_new_variable.
1144 * varpool.c (varpool_remove_initializer): Break out from ...
1145 (varpool_remove_node): ... this one.
1146 (dump_varpool_node, varpool_node_for_asm,
1147 cgraph_variable_initializer_availability, varpool_analyze_node,
1148 varpool_assemble_decl, varpool_remove_unreferenced_decls,
1149 varpool_finalize_named_section_flags, varpool_create_variable_alias):
1150 Update.
1151
1152 2013-05-29 Jan Hubicka <jh@suse.cz>
1153
1154 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
1155
1156 2013-05-29 Easwaran Raman <eraman@google.com>
1157
1158 PR tree-optimization/57442
1159 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
1160 when control exits the main loop.
1161
1162 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
1163
1164 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
1165 and RX600.
1166 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
1167 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
1168 * rx/t-rx: Add rx100 under multi library matches option for nofpu
1169 option.
1170
1171 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1172
1173 PR tree-optimization/57441
1174 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
1175 Don't limit size of incr_vec to number of candidates.
1176
1177 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
1178
1179 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
1180 and mips16 directories.
1181 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
1182 (MULTILIB_DIRNAMES): Ditto.
1183 (MULTILIB_EXCEPTIONS): Add new exceptions.
1184 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
1185 (MULTILIB_DIRNAMES): Ditto.
1186 (MULTILIB_EXCEPTIONS): Add new exceptions.
1187
1188 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1189 Marcus Shawcroft <marcus.shawcroft@arm.com>
1190
1191 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1192 SYMBOL_TINY_ABSOLUTE.
1193 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
1194 SYMBOL_TINY_ABSOLUTE.
1195 (aarch64_expand_mov_immediate): Likewise.
1196 (aarch64_classify_symbol): Likewise.
1197 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1198 Permit SYMBOL_TINY_ABSOLUTE.
1199 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1200
1201 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1202 Marcus Shawcroft <marcus.shawcroft@arm.com>
1203
1204 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1205 Refactor if/switch. Replace gcc_assert with if.
1206
1207 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1208
1209 * config/i386/i386.c (initial_ix86_tune_features): Enable
1210 FP Reassociation for AMD bdver1 and bdver2.
1211
1212 2013-05-29 Martin Jambor <mjambor@suse.cz>
1213
1214 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1215 and IMAGPART_EXPR do not occur within other handled_components.
1216
1217 2013-05-29 Richard Biener <rguenther@suse.de>
1218
1219 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1220 access on whether the use is in the BB we currently try to
1221 vectorize.
1222 (vect_bb_vectorization_profitable_p): Pass the BB we currently
1223 vectorize to vect_bb_slp_scalar_cost.
1224
1225 2013-05-29 Richard Biener <rguenther@suse.de>
1226
1227 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1228 computing scalar cost offsetted by stmts that are kept live
1229 by scalar uses.
1230 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1231 for computation of scalar cost.
1232
1233 2013-05-28 Steve Ellcey <sellcey@mips.com>
1234
1235 * config/mips/mips-cpus.def (mips32r2): Change processor type.
1236
1237 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1238
1239 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1240 array notation built-in reduction functions.
1241 * doc/passes.texi (Passes): Added documentation about changes done
1242 for Cilk Plus.
1243 * doc/invoke.texi (C Dialect Options): Added documentation about
1244 the -fcilkplus flag.
1245 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1246 (BUILTINS_DEF): Depend on cilkplus.def.
1247 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
1248 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1249 * cilkplus.def: New file.
1250
1251 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
1252
1253 PR rtl-optimization/57439
1254 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1255
1256 2013-05-28 Easwaran Raman <eraman@google.com>
1257
1258 PR tree-optimization/57337
1259 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1260 (find_insert_point): Correctly identify the insertion point
1261 when two statements with the same UID is compared.
1262
1263 2013-05-28 Richard Biener <rguenther@suse.de>
1264
1265 PR tree-optimization/56787
1266 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1267 from the list of data references.
1268 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1269 clobbers.
1270 (vect_analyze_loop_operations): Likewise.
1271 (vect_transform_loop): Remove clobbers.
1272
1273 2013-05-28 Martin Jambor <mjambor@suse.cz>
1274
1275 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1276 and REALPART_EXPRs have scalar type.
1277
1278 2013-05-28 Richard Biener <rguenther@suse.de>
1279
1280 PR tree-optimization/57411
1281 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1282 virtual operands.
1283 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1284 virtual operand propagation.
1285
1286 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1287
1288 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1289 destination register for bmasksi_vis.
1290 (vector_init_bshuffle): Likewise.
1291 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1292
1293 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1294
1295 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1296 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1297 mode if the instruction isn't available in the original mode.
1298 * config/sparc/sparc.opt (mfix-ut699): New option.
1299 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1300 (divdf3): Turn into expander.
1301 (divdf3_nofix): New insn.
1302 (divdf3_fix): Likewise.
1303 (divsf3): Disable if -mfix-ut699.
1304 (sqrtdf2): Turn into expander.
1305 (sqrtdf2_nofix): New insn.
1306 (sqrtdf2_fix): Likewise.
1307 (sqrtsf2): Disable if -mfix-ut699.
1308
1309 2013-05-27 Richard Biener <rguenther@suse.de>
1310
1311 PR middle-end/57412
1312 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1313 block for the new loop.
1314
1315 2013-05-27 Richard Biener <rguenther@suse.de>
1316
1317 PR tree-optimization/57343
1318 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1319 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1320 (number_of_iterations_cond): Do not build the folded tree.
1321
1322 2013-05-27 Richard Biener <rguenther@suse.de>
1323
1324 Revert
1325 PR middle-end/57381
1326 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1327 OEP_CONSTANT_ADDRESS_OF retained.
1328
1329 PR tree-optimization/57417
1330 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1331 for unchanged base.
1332 (set_ssa_val_to): Compare addresses using
1333 get_addr_base_and_unit_offset.
1334
1335 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
1336
1337 PR rtl-optimization/56833
1338 * postreload.c (move2add_record_mode): New function.
1339 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1340 (move2add_use_add2_insn): Use move2add_record_sym_value.
1341 (move2add_use_add3_insn): Likewise.
1342 (reload_cse_move2add): Use move2add_valid_value_p and
1343 move2add_record_mode. Invalidate call-clobbered and REG_INC
1344 affected regs by setting reg_mode to VOIDmode.
1345 (move2add_note_store): Don't pretend the inside of a SUBREG is
1346 the actual destination. Invalidate single/leading registers by
1347 setting reg_mode to VOIDmode.
1348 Use move2add_record_sym_value, move2add_valid_value_p and
1349 move2add_record_mode.
1350
1351 2013-05-27 Richard Biener <rguenther@suse.de>
1352
1353 PR tree-optimization/57396
1354 * tree-affine.c (double_int_constant_multiple_p): Properly
1355 return false for val == 0 and div != 0.
1356
1357 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1358
1359 * config/mips/mips.h: Use #elif in preprocessor conditions.
1360
1361 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1362
1363 PR target/53916
1364 * config/mips/constraints.md (kl): New constraint.
1365 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1366 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
1367 constraint for operand 0. Split after CSE for MIPS16. Emit a move
1368 from LO for MIPS16.
1369 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1370
1371 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1372
1373 PR target/55777
1374 * config/mips/mips.c (mips_can_inline_p): New function.
1375 (TARGET_CAN_INLINE_P): Define.
1376
1377 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1378
1379 * sched-int.h (ds_t, dw_t): Make unsigned int.
1380 Fix documentation that describes how all the ds_t bits are used.
1381 Reserve the last bit for delayed-branch scheduling.
1382 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1383 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1384 (gen_dep_weak_1): Remove prototype.
1385 * sched-deps.c (get_dep_weak_1): Make static.
1386 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1387 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1388 * doc/tm.texi: Regenerate.
1389 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1390
1391 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1392
1393 PR debug/56950
1394 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1395
1396 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1397 Sandra Loosemore <sandra@codesourcery.com>
1398
1399 * config.gcc (powerpc-*): Allow native for with-cpu.
1400
1401 2013-05-24 Jeff Law <law@redhat.com>
1402
1403 PR tree-optimization/57124
1404 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1405 conversion feeding a condition if the range has an overflow
1406 if -fstrict-overflow. Add warnings for when we do make the
1407 transformation.
1408
1409 2013-05-24 Dehao Chen <dehao@google.com>
1410
1411 * tree-cfg.c (locus_discrim_map): Fix the typo.
1412 (locus_discrim_hasher): Likewise.
1413 (locus_discrim_hasher::hash): Likewise.
1414 (locus_discrim_hasher::equal): Likewise.
1415
1416 2013-05-24 Martin Jambor <mjambor@suse.cz>
1417
1418 PR tree-optimization/57294
1419 * cgraph.h (ipa_record_stmt_references): Declare.
1420 * cgraphbuild.c (ipa_record_stmt_references): New function.
1421 (build_cgraph_edges): Use ipa_record_stmt_references.
1422 (rebuild_cgraph_edges): Likewise.
1423 (cgraph_rebuild_references): Likewise.
1424 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1425 associated with the old statement and build references from the
1426 newly built statements.
1427 * ipa-ref.c (ipa_remove_stmt_references): New function.
1428 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1429
1430 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1431
1432 * lra-constraints.c (emit_spill_move): Use smaller mode for
1433 mem-mem moves.
1434 (check_and_process_move): Consider mem-reg moves for secondary
1435 too.
1436 (curr_insn_transform): Don't lose insns emitted before for
1437 secondary memory moves.
1438 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1439 reg set up in the current insn.
1440
1441 2013-05-24 Dehao Chen <dehao@google.com>
1442
1443 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
1444 hash function.
1445 (locus_descrim_hasher::equal): Likewise.
1446 (build_gimple_cfg): New discriminator assignment algorithm.
1447 (make_edges): Likewise.
1448 (next_discriminator_for_locus): Likewise.
1449 (same_line_p): Likewise.
1450 (assign_discriminators): Likewise.
1451 (make_cond_expr_edges): Likewise.
1452 (make_gimple_switch_edges): Likewise.
1453 (make_goto_expr_edges): Likewise.
1454 (make_gimple_asm_edges): Likewise.
1455
1456 2013-05-24 Ian Bolton <ian.bolton@arm.com>
1457
1458 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1459 X format specifier to only display bottom 16 bits.
1460 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1461 immediate to match for operand 2, since it will be masked.
1462
1463 2013-05-24 Richard Biener <rguenther@suse.de>
1464
1465 PR tree-optimization/57287
1466 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1467 all SSA names that occur in abnormal PHIs.
1468
1469 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1470
1471 PR tree-ssa/57385
1472 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1473 that index is not negative.
1474
1475 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1476
1477 PR rtl-optimization/55177
1478 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1479 (simplify_byte_swapping_operation): New.
1480 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1481 (simplify_relational_operation_1): Deal with BSWAP.
1482
1483 2013-05-23 Richard Henderson <rth@redhat.com>
1484
1485 PR target/56742
1486 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1487 (ix86_reorg): Call it.
1488
1489 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
1490
1491 PR target/57379
1492 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1493 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1494 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1495
1496 2013-05-23 Christian Bruel <christian.bruel@st.com>
1497
1498 PR debug/57351
1499 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1500
1501 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1502 Marcus Shawcroft <marcus.shawcroft@arm.com>
1503
1504 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1505 * config/aarch64/constraints.md (Usa): Remove.
1506 * doc/md.texi (AArch64 Usa): Remove.
1507
1508 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1509 Marcus Shawcroft <marcus.shawcroft@arm.com>
1510
1511 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1512 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1513 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1514 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1515
1516 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1517
1518 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1519 instruction (AdvSIMD).
1520 * config/aarch64/aarch64-builtins.c
1521 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1522 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1523
1524 2013-05-23 Martin Jambor <mjambor@suse.cz>
1525
1526 PR middle-end/57347
1527 * tree.h (contains_bitfld_component_ref_p): Declare.
1528 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
1529 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1530 caller.
1531 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1532 not access a bit-field. Assert all final offsets are byte-aligned.
1533
1534 2013-05-23 Richard Biener <rguenther@suse.de>
1535
1536 PR tree-optimization/57380
1537 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1538 least one invariant or re-used load.
1539 * passes.c (init_optimization_passes): Move pass_phiprop before
1540 pass_forwprop.
1541
1542 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1543
1544 * config/aarch64/aarch64-simd.md
1545 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1546
1547 2013-05-23 Richard Biener <rguenther@suse.de>
1548
1549 PR middle-end/57381
1550 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1551 OEP_CONSTANT_ADDRESS_OF retained.
1552
1553 2013-05-23 Jakub Jelinek <jakub@redhat.com>
1554
1555 PR middle-end/57344
1556 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1557 don't lower unit. Handle unit not being always BITS_PER_WORD.
1558
1559 2013-05-23 Richard Biener <rguenther@suse.de>
1560
1561 PR rtl-optimization/57341
1562 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1563 instead of true_dependence.
1564
1565 2013-05-22 David Malcolm <dmalcolm@redhat.com>
1566
1567 * bb-reorder.c (branch_threshold): Make const.
1568 (exec_threshold): Ditto.
1569
1570 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1571 Pat Haugen <pthaugen@us.ibm.com>
1572 Peter Bergner <bergner@vnet.ibm.com>
1573
1574 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1575 documentation for the power8 crypto builtins.
1576
1577 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1578
1579 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1580 macros for defining power8 builtin functions.
1581 (BU_P8V_AV_2): Likewise.
1582 (BU_P8V_AV_P): Likewise.
1583 (BU_P8V_VSX_1): Likewise.
1584 (BU_P8V_OVERLOAD_1): Likewise.
1585 (BU_P8V_OVERLOAD_2): Likewise.
1586 (BU_CRYPTO_1): Likewise.
1587 (BU_CRYPTO_2): Likewise.
1588 (BU_CRYPTO_3): Likewise.
1589 (BU_CRYPTO_OVERLOAD_1): Likewise.
1590 (BU_CRYPTO_OVERLOAD_2): Likewise.
1591 (XSCVSPDP): Fix typo, point to the correct instruction.
1592 (VCIPHER): Add power8 crypto builtins.
1593 (VCIPHERLAST): Likewise.
1594 (VNCIPHER): Likewise.
1595 (VNCIPHERLAST): Likewise.
1596 (VPMSUMB): Likewise.
1597 (VPMSUMH): Likewise.
1598 (VPMSUMW): Likewise.
1599 (VPERMXOR_V2DI): Likewise.
1600 (VPERMXOR_V4SI: Likewise.
1601 (VPERMXOR_V8HI: Likewise.
1602 (VPERMXOR_V16QI: Likewise.
1603 (VSHASIGMAW): Likewise.
1604 (VSHASIGMAD): Likewise.
1605 (VPMSUM): Likewise.
1606 (VPERMXOR): Likewise.
1607 (VSHASIGMA): Likewise.
1608
1609 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1610 __CRYPTO__ if the crypto instructions are available.
1611 (altivec_overloaded_builtins): Add support for overloaded power8
1612 builtins.
1613
1614 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1615 support for power8 crypto builtins.
1616 (builtin_function_type): Likewise.
1617 (altivec_init_builtins): Add support for builtins that take vector
1618 long long (V2DI) arguments.
1619
1620 * config/rs6000/crypto.md: New file, define power8 crypto
1621 instructions.
1622
1623 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1624 Pat Haugen <pthaugen@us.ibm.com>
1625 Peter Bergner <bergner@vnet.ibm.com>
1626
1627 * doc/invoke.texi (Option Summary): Add power8 options.
1628 (RS/6000 and PowerPC Options): Likewise.
1629
1630 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1631 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1632 wm, wn, wr documentation.
1633
1634 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1635 registers if direct move instructions are enabled.
1636 (wn): New constraint for no registers.
1637 (wq): New constraint for quad word even GPR registers.
1638 (wr): New constraint if 64-bit instructions are enabled.
1639 (wv): New constraint if power8 vector instructions are enabled.
1640 (wQ): New constraint for quad word memory locations.
1641
1642 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1643 constraint for 0..15 for crypto instructions.
1644 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1645 as GPR and floating point registers.
1646 (int_reg_operand): New predicate to match only GPR registers.
1647 (base_reg_operand): New predicate to match base registers.
1648 (quad_int_reg_operand): New predicate to match even GPR registers
1649 for quad memory operations.
1650 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1651 operations in both GPR and VSX registers.
1652 (quad_memory_operand): New predicate for quad memory operations.
1653 (reg_or_indexed_operand): New predicate for direct move support.
1654
1655 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1656 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1657 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1658 (POWERPC_MASKS): Add power8 options.
1659 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1660 various options.
1661
1662 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1663 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1664
1665 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1666 (-mpower8-fusion): New power8 options.
1667 (-mpower8-fusion-sign): Likewise.
1668 (-mpower8-vector): Likewise.
1669 (-mcrypto): Likewise.
1670 (-mdirect-move): Likewise.
1671 (-mquad-memory): Likewise.
1672
1673 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1674 power8.
1675 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1676 registers.
1677 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
1678 (rs6000_debug_vector_unit): Add p8_vector.
1679 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1680 definitions. Also print fusion state.
1681 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1682 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1683 (rs6000_option_override_internal): Add support for power8.
1684 (rs6000_common_init_builtins): Add debugging for skipped builtins
1685 if -mdebug=builtin.
1686 (rs6000_adjust_cost): Add power8 support.
1687 (rs6000_issue_rate): Likewise.
1688 (insn_must_be_first_in_group): Likewise.
1689 (insn_must_be_last_in_group): Likewise.
1690 (force_new_group): Likewise.
1691 (rs6000_register_move_cost): Likewise.
1692 (rs6000_opt_masks): Likewise.
1693
1694 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1695 power8 capable assembler, default to power7 options.
1696 (TARGET_DIRECT_MOVE): Likewise.
1697 (TARGET_CRYPTO): Likewise.
1698 (TARGET_P8_VECTOR): Likewise.
1699 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1700 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1701 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1702 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1703 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1704 (TARGET_XSCVDPSPN): Likewise.
1705 (TARGET_XSCVSPDPN): Likewsie.
1706 (TARGET_SYNC_HI_QI): Likewise.
1707 (TARGET_SYNC_TI): Likewise.
1708 (MASK_CRYPTO): Likewise.
1709 (MASK_DIRECT_MOVE): Likewise.
1710 (MASK_P8_FUSION): Likewise.
1711 (MASK_P8_VECTOR): Likewise.
1712 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1713 temporary used by some of the direct move instructions to get two FP
1714 temporary registers does not force creation of a stack frame.
1715 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1716 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1717 that any VSX registers are tieable, even if they are also an
1718 Altivec vector mode.
1719 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1720 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1721 (RS6000_BTM_CRYPTO): Likewise.
1722 (RS6000_BTM_COMMON): Likewise.
1723
1724 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1725 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1726 (enum rs6000_vector): Add power8 vector support.
1727
1728 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1729
1730 PR target/19599
1731 PR target/57340
1732 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1733 (any_sibcall_could_use_r3): this and handle indirect calls.
1734 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1735
1736 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1737
1738 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1739
1740 2013-05-22 Richard Biener <rguenther@suse.de>
1741
1742 PR middle-end/57349
1743 * profile.c (branch_prob): Do not split blocks that are
1744 abnormally receiving from ECF_RETURNS_TWICE functions.
1745
1746 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1747
1748 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1749 address mode. Move pointer mode initialization to the same place.
1750
1751 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1752
1753 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1754 while it has any effect.
1755
1756 2013-05-21 Easwaran Raman <eraman@google.com>
1757
1758 PR tree-optimization/57322
1759 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1760 UID of the statement added to the BB to be 1.
1761
1762 2013-05-21 Jakub Jelinek <jakub@redhat.com>
1763
1764 PR tree-optimization/57331
1765 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1766 of conversion from pointer type to integral type with integer.
1767
1768 2013-05-21 Martin Jambor <mjambor@suse.cz>
1769
1770 PR lto/57289
1771 * ipa-prop.c (ipa_read_node_info): Process param_used and
1772 controlled_uses in the same order as when writing.
1773
1774 2013-05-21 Magnus Granberg <baldrick@free.fr>
1775
1776 PR plugins/56754
1777 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
1778
1779 2013-05-21 Richard Biener <rguenther@suse.de>
1780
1781 PR tree-optimization/57318
1782 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1783 estimate stmts with side-effects as likely eliminated.
1784
1785 2013-05-21 Richard Biener <rguenther@suse.de>
1786
1787 PR tree-optimization/57330
1788 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1789 preserve the call stmts fntype.
1790
1791 2013-05-21 Richard Biener <rguenther@suse.de>
1792
1793 PR tree-optimization/57303
1794 * tree-ssa-sink.c (statement_sink_location): Improve killing
1795 stmt detection and properly handle self-assignments.
1796
1797 2013-05-21 Christian Bruel <christian.bruel@st.com>
1798
1799 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1800 spanning registers. LEAF_REG_REMAP is supported only for contiguous
1801 registers. Set register size out of the PARALLEL loop.
1802
1803 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1804
1805 PR target/56547
1806 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1807 (*fmasf4, *fmasf4_media): New insns.
1808
1809 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1810
1811 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1812 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1813 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1814 (mips_idiv_insns): Update the comments to say that the returned
1815 instruction counts are in units of BASE_INSN_LENGTH.
1816 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1817 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1818 using 2 rather than 4 as the length of indirect MIPS16 and
1819 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1820 length of a NOP. Don't divide MIPS16 lengths by 2.
1821 (mips16_split_long_branches): Assume a branch is long if the
1822 length is greater than 4 rather than 8.
1823 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1824 rather than multiplying them by 2. Multiply instruction counts
1825 by BASE_INSN_LENGTH rather than 4.
1826 (*jump_mips16, tls_get_tp_mips16_<mode>)
1827 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1828
1829 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1830
1831 * config/mips/mips.md (extended_mips16): Remove branch case.
1832 (length): Remove duplicated extended_mips16 test.
1833
1834 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1835
1836 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1837
1838 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1839
1840 * recog.h (Recog_data): Rename to...
1841 (recog_data_d): ...this.
1842 (recog_data): Update accordingly.
1843 * recog.c (recog_data): Likewise.
1844 * reload.c (save_recog_data): Likewise.
1845 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1846 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1847
1848 2013-05-17 Julian Brown <julian@codesourcery.com>
1849
1850 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1851 found in a REG_EQUAL note, invalidate it.
1852
1853 2013-05-17 Easwaran Raman <eraman@google.com>
1854
1855 * tree-ssa-reassoc.c (find_insert_point): New function.
1856 (insert_stmt_after): Likewise.
1857 (get_def_stmt): Likewise.
1858 (ensure_ops_are_available): Likewise.
1859 (not_dominated_by): Likewise.
1860 (rewrite_expr_tree): Do not move statements beyond what is
1861 necessary. Remove call to swap_ops_for_binary_stmt...
1862 (reassociate_bb): ... and move it here.
1863 (build_and_add_sum): Assign UIDs for new statements.
1864 (linearize_expr): Likewise.
1865 (do_reassoc): Renumber gimple statement UIDs.
1866
1867 2013-05-17 Jan Hubicka <jh@suse.cz>
1868
1869 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1870 weakrefs.
1871 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
1872 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1873 weakrefs.
1874 (output_weakrefs): Update.
1875
1876 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1877 Martin Jambor <mjambor@suse.cz>
1878
1879 PR middle-end/57276
1880 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1881 value that corresponds to the given aggval is found in values vector.
1882
1883 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
1884
1885 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1886 sse, sse2, sse3, ssse3 and sse4a flags to options.
1887
1888 2013-05-17 David Malcolm <dmalcolm@redhat.com>
1889
1890 * gengtype-state.c: (s_expr_writer): New class, to handle
1891 prettifying of output layout of s-expressions.
1892 (state_writer): New class, to write out gtype.state.
1893 (state_written_type_count): Move this variable into member data of
1894 state_writer.
1895 (s_expr_writer::s_expr_writer): New code: constructor for new class
1896 (state_writer::state_writer(): ditto
1897 (s_expr_writer::write_new_line): New function
1898 (s_expr_writer::write_any_indent): ditto
1899 (s_expr_writer::begin_s_expr): ditto
1900 (s_expr_writer::end_s_expr): ditto
1901 (write_state_fileloc): convert to method of state_writer...
1902 (state_writer:: write_state_fileloc): ...and use methods of
1903 s_expr_writer to write indentation into the gtype.state output file
1904 to visually represent the hierarchical structure of the list
1905 structures
1906 (write_state_fields): ditto, renaming to...
1907 (state_writer::write_state_fields)
1908 (write_state_a_string): ditto, renaming to...
1909 (state_writer::write_state_a_string)
1910 (write_state_string_option): ditto, renaming to...
1911 (state_writer::write_state_string_option)
1912 (write_state_type_option): ditto, renaming to...
1913 (state_writer::write_state_type_option)
1914 (write_state_nested_option): ditto, renaming to...
1915 (state_writer::write_state_nested_option)
1916 (write_state_option): ditto, renaming to...
1917 (state_writer::write_state_option)
1918 (write_state_options): ditto, renaming to...
1919 (state_writer::write_state_options)
1920 (write_state_lang_bitmap): ditto, renaming to...
1921 (state_writer::write_state_lang_bitmap)
1922 (write_state_version): ditto, renaming to...
1923 (state_writer::write_state_version)
1924 (write_state_scalar_type): ditto, renaming to...
1925 (state_writer::write_state_scalar_type)
1926 (write_state_string_type): ditto, renaming to...
1927 (state_writer::write_state_string_type)
1928 (write_state_undefined_type): ditto, renaming to...
1929 (state_writer::write_state_undefined_type)
1930 (write_state_struct_union_type): ditto, renaming to...
1931 (state_writer::write_state_struct_union_type)
1932 (write_state_struct_type): ditto, renaming to...
1933 (state_writer::write_state_struct_type)
1934 (write_state_user_struct_type): ditto, renaming to...
1935 (state_writer::write_state_user_struct_type)
1936 (write_state_lang_struct_type): ditto, renaming to...
1937 (state_writer::write_state_lang_struct_type)
1938 (write_state_param_struct_type): ditto, renaming to...
1939 (state_writer::write_state_param_struct_type)
1940 (write_state_pointer_type): ditto, renaming to...
1941 (state_writer::write_state_pointer_type)
1942 (write_state_array_type): ditto, renaming to...
1943 (state_writer::write_state_array_type)
1944 (write_state_gc_used): ditto, renaming to...
1945 (state_writer::write_state_gc_used)
1946 (write_state_common_type_content): ditto, renaming to...
1947 (state_writer::write_state_common_type_content)
1948 (write_state_type): ditto, renaming to...
1949 (state_writer::write_state_type)
1950 (write_state_pair_list): ditto, renaming to...
1951 (state_writer::write_state_pair_list)
1952 (write_state_pair): ditto, renaming to...
1953 (state_writer::write_state_pair)
1954 (write_state_typedefs): ditto, renaming to...
1955 (state_writer::write_state_typedefs)
1956 (write_state_structures): ditto, renaming to...
1957 (state_writer::write_state_structures)
1958 (write_state_param_structs): ditto, renaming to...
1959 (state_writer::write_state_param_structs)
1960 (write_state_variables): ditto, renaming to...
1961 (state_writer::write_state_variables)
1962 (write_state_srcdir): ditto, renaming to...
1963 (state_writer::write_state_srcdir)
1964 (write_state_files_list): ditto, renaming to...
1965 (state_writer::write_state_files_list)
1966 (write_state_languages): ditto, renaming to...
1967 (state_writer::write_state_languages)
1968 (write_state): create a state_writer instance and use it when
1969 writing out the state file
1970
1971 2013-05-17 Mike Stump <mikestump@comcast.net>
1972
1973 PR rtl-optimization/57304
1974 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1975 accessing DF_REF_REAL_LOC.
1976
1977 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1978
1979 PR rtl-optimization/57281
1980 PR rtl-optimization/57300
1981 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1982 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1983 what the other splitter did if the registers are dead.
1984
1985 2013-05-17 Richard Biener <rguenther@suse.de>
1986
1987 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1988 MEM_REF offsets.
1989
1990 2013-05-17 Jakub Jelinek <jakub@redhat.com>
1991
1992 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1993 linking.
1994
1995 2013-05-17 Marek Polacek <polacek@redhat.com>
1996
1997 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1998 length when doing non-zero store of storing '\0' to '\0'.
1999
2000 2013-05-17 Jakub Jelinek <jakub@redhat.com>
2001
2002 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2003 vect_external_def oprnd1 with loop_vinfo, try to emit
2004 optional cast, negation and and stmts on the loop preheader
2005 edge instead of into the pattern def seq.
2006
2007 PR tree-optimization/57051
2008 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2009 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2010
2011 2013-05-16 Nick Clifton <nickc@redhat.com>
2012
2013 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2014 (rl78_is_naked_func): New function.
2015 (rl78_expand_prologue): Skip prologue generation for naked functions.
2016 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
2017 * doc/extend.texi (naked): Add RL78 to the list of processors
2018 that supports this attribute.
2019
2020 2013-05-16 Jeff Law <law@redhat.com>
2021
2022 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2023
2024 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2025
2026 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2027 cache parameters using detect_caches_amd also for CYRIX,
2028 NSC and TM2 signatures.
2029
2030 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
2031 Dzianis Kahanovich <mahatma@eu.by>
2032
2033 PR target/45359
2034 PR target/46396
2035 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2036 VIA/Centaur processors and determine their cache parameters
2037 using detect_caches_amd.
2038
2039 2013-05-16 Teresa Johnson <tejohnson@google.com>
2040
2041 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2042 (rtl_verify_edges): New function.
2043 (rtl_verify_bb_insns): Ditto.
2044 (rtl_verify_bb_pointers): Ditto.
2045 (rtl_verify_bb_insn_chain): Ditto.
2046 (rtl_verify_fallthru): Ditto.
2047 (rtl_verify_bb_layout): Ditto.
2048 (rtl_verify_flow_info_1): Outline checks into new functions.
2049 (rtl_verify_flow_info): Ditto.
2050
2051 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
2052
2053 * cfghooks.c (copy_bbs): Add update_dominance argument.
2054 * cfghooks.h (copy_bbs): Update prototype.
2055 * tree-cfg.c (gimple_duplicate_sese_region):
2056 Add update_dominance argument.
2057 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2058 * tree-ssa-loop-ch.c (copy_loop_headers): Update
2059 gimple_duplicate_sese_region call.
2060 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2061 Update copy_bbs call.
2062 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2063 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2064
2065 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2066
2067 * tree-vectorizer.h (NUM_PATTERNS): Increment.
2068 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2069 vect_recog_rotate_pattern.
2070 (vect_recog_rotate_pattern): New function.
2071
2072 2013-05-16 Jason Merrill <jason@redhat.com>
2073
2074 * Makefile.in (LLINKER): New variable.
2075 (mostlyclean): Remove link mutex.
2076 * configure.ac: Handle --enable-link-mutex.
2077 * lock-and-run.sh: New script.
2078
2079 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2080
2081 PR target/19599
2082 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2083 for NULL decl.
2084
2085 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2086
2087 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
2088
2089 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
2090
2091 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
2092 * config/arm/arm.c (next_consecutive_mem): New function.
2093 (gen_movmem_ldrd_strd): Likewise.
2094 * config/arm/arm.md (movmemqi): Update condition and code.
2095 (unaligned_loaddi, unaligned_storedi): New patterns.
2096
2097 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2098
2099 * config.gcc: Obsolete *-*-solaris2.9*.
2100 * doc/install.texi (Specific, *-*-solaris2*): Document it.
2101
2102 2013-05-16 Richard Biener <rguenther@suse.de>
2103
2104 * passes.c (init_optimization_passes): Move pass_parallelize_loops
2105 earlier, after GRAPHITE transforms and IV canonicalization.
2106
2107 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2108
2109 * omp-low.c (extract_omp_for_data): For collapsed loops,
2110 if at least one of the loops is known at compile time to
2111 iterate zero times, set count to 0.
2112 (expand_omp_regimplify_p): New function.
2113 (expand_omp_for_generic): For collapsed loops, if at least
2114 one of the loops isn't known to iterate at least once,
2115 add runtime check with setting count to 0.
2116 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2117 For unsigned types if it isn't known at compile time that
2118 the loop will iterate at least once, add runtime check to bypass
2119 the whole loop if initial condition isn't true.
2120
2121 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
2122
2123 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
2124
2125 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
2126
2127 PR middle-end/57286
2128 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
2129 transformations to avoid an infinite loop.
2130
2131 2013-05-16 Marek Polacek <polacek@redhat.com>
2132
2133 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2134
2135 2013-05-15 Leif Ekblad <leif@rdos.net>
2136
2137 * config/i386/i386.c (ix86_decompose_address): Use
2138 DEFAULT_TLS_SEG_REG to access TLS segment register.
2139 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
2140 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
2141 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
2142
2143 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
2144
2145 PR target/57260
2146 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
2147 sibling calls to functions that would normally be lazily bound,
2148 unless $gp is call-clobbered.
2149
2150 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
2151
2152 * config/i386/i386.c (ix86_option_override_internal): Update
2153 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
2154 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2155 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
2156 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2157 of TARGET_3DNOW.
2158 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2159
2160 2013-05-15 Andreas Schwab <schwab@suse.de>
2161
2162 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
2163 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
2164 third operand.
2165
2166 2013-05-15 Teresa Johnson <tejohnson@google.com>
2167
2168 * loop-unroll.c (report_unroll_peel): Check decision before
2169 emitting unroll/peel message.
2170
2171 2013-05-15 Teresa Johnson <tejohnson@google.com>
2172
2173 * function.h (has_bb_partition): New rtl_data flag.
2174 (bb_reorder_complete): Ditto.
2175 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
2176 instead of flag_reorder_blocks_and_partition.
2177 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
2178 with some enhancements.
2179 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
2180 * bb-reorder.c (connect_traces): Check for has_bb_partition
2181 instead of flag_reorder_blocks_and_partition.
2182 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
2183 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
2184 verify_hot_cold_block_grouping.
2185 (partition_hot_cold_basic_blocks): Set has_bb_partition.
2186
2187 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2188
2189 PR target/19599
2190 * config/arm/predicates.md (call_insn_operand): New predicate.
2191 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
2192 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2193 if insn is not a tail call.
2194 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2195 registers.
2196 * config/arm/arm.h (enum reg_class): New caller save register class.
2197 (REG_CLASS_NAMES): Likewise.
2198 (REG_CLASS_CONTENTS): Likewise.
2199 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2200 without decls.
2201
2202 2013-05-15 Richard Biener <rguenther@suse.de>
2203
2204 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2205 of MSG_OPTIMIZED_LOCATIONS.
2206 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2207 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2208 message.
2209 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2210 of MSG_OPTIMIZED_LOCATIONS.
2211 (execute_vect_slp): Likewise.
2212 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2213 (vect_create_cond_for_alias_checks): Likewise.
2214 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2215 (vect_recog_widen_mult_pattern): Likewise.
2216 (vect_recog_widen_sum_pattern): Likewise.
2217 (vect_recog_over_widening_pattern): Likewise.
2218 (vect_recog_widen_shift_pattern): Likewise.
2219 (vect_recog_vector_vector_shift_pattern): Likewise.
2220 (vect_recog_divmod_pattern): Likewise.
2221 (vect_recog_mixed_size_cond_pattern): Likewise.
2222 (vect_recog_bool_pattern): Likewise.
2223 (vect_pattern_recog_1): Likewise.
2224
2225 2013-05-15 Martin Jambor <mjambor@suse.cz>
2226
2227 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2228 non-functions to builtin_unreachable.
2229 * ipa-inline-transform.c (inline_call): Do not assert estimates were
2230 correct when new direct edges were discovered.
2231
2232 2013-05-15 Martin Jambor <mjambor@suse.cz>
2233
2234 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2235 header, print symbol order instead of node uid, print more information
2236 about indirect edge targets.
2237 (ipa_make_edge_direct_to_target): Print symbol order instead of node
2238 uids.
2239 (ipa_make_edge_direct_to_target): Likewise.
2240 (remove_described_reference): Likewise.
2241 (propagate_controlled_uses): Likewise.
2242 (ipa_print_node_params): Also print symbol order.
2243 (ipcp_transform_function): Print symbol order instead of node uids.
2244 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2245 (cgraph_get_create_real_symbol_node): Likewise.
2246 * ipa-cp.c (print_lattice): Likewise.
2247 (print_all_lattices): Likewise.
2248 (determine_versionability): Likewise.
2249 (initialize_node_lattices): Likewise.
2250 (estimate_local_effects): Likewise.
2251 (update_profiling_info): Likewise.
2252 (create_specialized_node): Likewise.
2253 (perhaps_add_new_callers): Likewise.
2254 (decide_about_value): Likewise.
2255 (decide_whether_version_node): Likewise.
2256 (identify_dead_nodes): Likewise.
2257 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2258 (dump_inline_summary): Likewise.
2259 (estimate_node_size_and_time): Likewise.
2260 (inline_analyze_function): Likewise.
2261 * ipa-inline.c (report_inline_failed_reason): Likewise.
2262 (want_early_inline_function_p): Likewise.
2263 (edge_badness): Likewise.
2264 (update_edge_key): Likewise.
2265 (inline_small_functions): Likewise. Add dumping of order to two other
2266 dumps.
2267 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2268 instead of node uids.
2269 (propagate_pure_const): Likewise.
2270 (propagate_pure_const): Likewise.
2271 * ipa-utils.c (dump_cgraph_node_set): Likewise.
2272 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2273 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2274 of node uids.
2275 * tree-pretty-print.c (dump_function_header): Likewise.
2276 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2277 Print symbol order instead of node uids.
2278
2279 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2280
2281 * config/s390/s390.c (s390_register_move_cost): Don't impose the
2282 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2283
2284 2013-05-15 Richard Biener <rguenther@suse.de>
2285
2286 PR tree-optimization/57275
2287 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2288 return value for fail to do runtime alias checks for gather loads.
2289
2290 2013-05-15 Jan Hubicka <jh@suse.cz>
2291
2292 PR lto/57038
2293 PR lto/47375
2294 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2295 weakrefs are not external.
2296 (lto_symtab_merge_decls): Fix thinko when dealing with
2297 non-lto_symtab decls.
2298 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2299 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2300 * varpool.c (dump_varpool_node): Dump more flags.
2301
2302 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2303
2304 * config/i386/i386.c (processor_alias_table): Add instruction
2305 FSGSBASE for AMD bdver3 architecture.
2306
2307 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2308
2309 * tree.c (warn_deprecated_use): Print file:line using locus color.
2310 * diagnostic.c (diagnostic_report_current_module): Print file:line
2311 and file:line:column using locus color.
2312
2313 2013-05-14 Mike Stump <mikestump@comcast.net>
2314
2315 * gdbinit.in: Add __null.
2316
2317 2013-05-14 Mike Stump <mikestump@comcast.net>
2318
2319 * recog.h: Rename struct recog_data to Recog_data.
2320 * recog.c: Likewise.
2321 * reload.c (can_reload_into): Likewise.
2322 * config/picochip/picochip.c: Likewise.
2323
2324 2013-05-14 Mike Stump <mikestump@comcast.net>
2325
2326 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2327
2328 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
2329
2330 * resource.h (struct resources): Remove unch_memory member.
2331 (CLEAR_RESOURCE): Don't clear unch_memory.
2332 * resource.c (mark_referenced_resources): Don't set it.
2333 (mark_set_resources): Likewise.
2334 (mark_target_live_regs): Don't clear it.
2335 (init_resource_info): Likewise.
2336 * reorg.c (resource_conflicts_p): Don't compare it.
2337 (redundant_insn): Don't set it.
2338
2339 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2340 Remove prototypes.
2341 * emit-rtl.c (next_label): Remove unused function.
2342 (skip_consecutive_labels, link_cc0_insns): Move to ...
2343 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2344 only place where these functions are used, and make them static.
2345
2346 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2347
2348 * fold-const.c (fold_negate_expr): Handle vectors.
2349 (fold_truth_not_expr): Make it static.
2350 (fold_invert_truthvalue): New static function.
2351 (invert_truthvalue_loc): Handle vectors. Do not call
2352 fold_truth_not_expr directly.
2353 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2354 <TRUTH_NOT_EXPR>: Do not cast to boolean.
2355 (fold_comparison): Handle vector constants.
2356 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2357 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2358 * tree.h (fold_truth_not_expr): Remove declaration.
2359
2360 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
2361
2362 * config/aarch64/aarch64-simd.md
2363 (aarch64_vcond_internal<mode>): Rename to...
2364 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2365 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2366 float modes. Clarify all iterator modes.
2367 (vcond<mode><mode>): Use new name for vcond expanders.
2368 (vcond<v_cmp_result><mode>): Likewise.
2369 (vcondu<mode><mode>: Likewise.
2370 * config/aarch64/iterators.md (VDQF_COND): New.
2371
2372 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
2373
2374 PR bootstrap/57266
2375 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2376 variable for the shift amount. Check that we shift by non-negative
2377 amounts.
2378
2379 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2380
2381 PR target/42017
2382 * config/arm/arm.h (EPILOGUE_USES): Only return true
2383 for LR_REGNUM after epilogue_completed.
2384
2385 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2386
2387 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
2388 is error_mark_node.
2389
2390 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2391
2392 PR target/57261
2393 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2394 and Solaris 11+/x86 with gld.
2395 * configure: Regenerate.
2396
2397 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2398
2399 * expmed.c (expand_shift_1): Canonicalize rotates by
2400 constant bitsize / 2 to bitsize - 1.
2401 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
2402 case ROTATERT>: Likewise.
2403
2404 Revert:
2405 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2406
2407 * config/i386/i386.md (rotateinv): New code attr.
2408 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2409 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2410 roll $31, %eax, etc.
2411
2412 2013-05-14 Richard Biener <rguenther@suse.de>
2413
2414 PR middle-end/57235
2415 * tree-eh.c (sink_clobbers): Give up for successors with
2416 multiple predecessors and no virtual uses.
2417
2418 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2419
2420 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2421 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2422
2423 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2424
2425 PR middle-end/57251
2426 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2427 the case when both op0 and op1 have VOIDmode.
2428
2429 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2430
2431 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2432 in multiply-accumulate mode.
2433
2434 2013-05-13 Guozhi Wei <carrot@google.com>
2435
2436 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2437
2438 2013-05-13 Kai Tietz <ktietz@redhat.com>
2439
2440 PR target/56975
2441 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
2442 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
2443 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
2444 * config/i386/i386.c (ix86_option_override_internal): Likewise.
2445 (ix86_expand_prologue): Likewise.
2446 (ix86_expand_split_stack_prologue): Likewise.
2447 (legitimate_pic_address_disp_p): Likewise.
2448 (legitimize_pic_address): Likewise.
2449 (legitimize_tls_address): Likewise.
2450 (legitimize_pe_coff_symbol): Likewise.
2451 (output_pic_addr_const): Likewise.
2452 (construct_plt_address): Likewise.
2453 (ix86_expand_call): Likewise.
2454 (x86_output_mi_thunk): Likewise.
2455 (x86_function_profiler): Likewise.
2456
2457 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2458
2459 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2460 similar switch cases.
2461 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2462 (aarch64_simd_mov_to_<mode>low): Delete.
2463 (aarch64_simd_mov_to_<mode>high): Delete.
2464 (move_lo_quad_<mode>): Add w<-r alternative.
2465 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2466 (aarch64_simd_mov_from_*): Update type attribute.
2467 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2468 statement.
2469
2470 2013-05-13 Jan Hubicka <jh@suse.cz>
2471
2472 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2473 * config/i386/i386.c (ix86_compute_frame_layout,
2474 ix86_expand_epilogue, emit_i387_cw_initialization,
2475 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2476 ix86_local_alignment): Fix use of size/speed predicates.
2477
2478 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2479
2480 PR tree-optimization/45216
2481 PR tree-optimization/57157
2482 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2483 the (-Y) & (B - 1) variant if OP is |.
2484 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2485 return shifted. Use (-op1) & (prec - 1) as other_amount
2486 instead of prec - op1.
2487
2488 2013-05-13 Martin Jambor <mjambor@suse.cz>
2489
2490 PR middle-end/42371
2491 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2492 (ipa_constant_data): New type.
2493 (ipa_jump_func): Use ipa_constant_data to hold information about
2494 constant jump functions.
2495 (ipa_get_jf_constant): Adjust to jump function type changes.
2496 (ipa_get_jf_constant_rdesc): New function.
2497 (ipa_param_descriptor): New field controlled_uses.
2498 (ipa_get_controlled_uses): New function.
2499 (ipa_set_controlled_uses): Likewise.
2500 * ipa-ref.h (ipa_find_reference): Declare.
2501 * ipa-prop.c (ipa_cst_ref_desc): New type.
2502 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2503 changes.
2504 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2505 New parameter cs. Adjust all callers.
2506 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2507 (remove_described_reference): New function.
2508 (jfunc_rdesc_usable): Likewise.
2509 (try_make_edge_direct_simple_call): Decrement controlled use count,
2510 attempt to remove reference if it hits zero.
2511 (combine_controlled_uses_counters): New function.
2512 (propagate_controlled_uses): Likewise.
2513 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2514 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2515 (ipa_print_node_params): Print described use counter.
2516 (ipa_write_jump_function): Adjust to jump function type changes.
2517 (ipa_read_jump_function): New parameter CS, pass it to
2518 ipa_set_jf_constant. Adjust caller.
2519 (ipa_write_node_info): Stream controlled use count
2520 (ipa_read_node_info): Likewise.
2521 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2522 asserting.
2523 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2524 count. Remove cloning-added reference if it reaches zero.
2525 * ipa-ref.c (ipa_find_reference): New function.
2526
2527 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2528
2529 * config/i386/i386.c (processor_target_table): Modified default
2530 alignment values for AMD BD and BT architectures.
2531
2532 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
2533
2534 * tree-vect-generic.c (uniform_vector_p): Move ...
2535 * tree.c (uniform_vector_p): ... here.
2536 * tree.h (uniform_vector_p): Declare it.
2537 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2538 into a scalar.
2539
2540 2013-05-13 Jakub Jelinek <jakub@redhat.com>
2541
2542 PR tree-optimization/57230
2543 * tree-ssa-strlen.c (handle_char_store): Record length for
2544 array store from STRING_CST.
2545
2546 PR tree-optimization/57230
2547 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2548 check.
2549
2550 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2551
2552 * config/epiphany/epiphany.c (epiphany_init): Check size of
2553 NUM_MODES_FOR_MODE_SWITCHING.
2554 (epiphany_expand_prologue):
2555 Remove CONFIG_REGNUM initial value handling code.
2556 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2557 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2558 (emit_set_fp_mode, epiphany_mode_after): Likewise.
2559 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2560 Don't return 1 for FP_MODE_NONE.
2561 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2562 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2563 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2564 * config/epiphany/epiphany.md (save_config): New pattern.
2565
2566 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
2567
2568 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2569
2570 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
2571
2572 * config/i386/i386.md (memory): Handle sseishft1.
2573 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2574 (*vec_extractv2di_1): Ditto.
2575
2576 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2577
2578 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2579 saved registers.
2580
2581 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2582
2583 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2584 Add mthumb/march=armv7-a multilib.
2585 Add mthumb/march=armv7-r multilib.
2586 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2587
2588 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2589
2590 * config/v850/t-rtems: Add more multilibs.
2591
2592 2013-05-10 Richard Biener <rguenther@suse.de>
2593
2594 PR tree-optimization/57214
2595 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2596 not propagate from SSA names that occur in abnormal PHI nodes.
2597
2598 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2599
2600 * stor-layout.c (element_precision): New function.
2601 * machmode.h (element_precision): Declare it.
2602 * tree.c (build_minus_one_cst): New function.
2603 (element_precision): Likewise.
2604 * tree.h (build_minus_one_cst): Declare new function.
2605 (element_precision): Likewise.
2606 * fold-const.c (operand_equal_p): Use element_precision.
2607 (fold_binary_loc): Handle vector types.
2608 * convert.c (convert_to_integer): Use element_precision.
2609 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2610 separately.
2611
2612 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2613
2614 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2615 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2616 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2617 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2618 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2619 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2620 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2621 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2622 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2623 (Uuw8): New constraints.
2624 (Usb4): Move into alphabetical order.
2625 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2626 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2627 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2628 previously unnamed patterns.
2629 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2630 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2631 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2632 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2633 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2634 of specific lengths.
2635
2636 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2637
2638 * config/i386/i386.md (rotateinv): New code attr.
2639 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2640 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2641 roll $31, %eax, etc.
2642
2643 PR tree-optimization/45216
2644 PR tree-optimization/57157
2645 * tree-ssa-forwprop.c (simplify_rotate): New function.
2646 (ssa_forward_propagate_and_combine): Call it.
2647
2648 2013-05-10 Richard Biener <rguenther@suse.de>
2649
2650 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2651 disable peeling when we version for aliasing.
2652 (vector_alignment_reachable_p): Honor explicit user alignment.
2653 (vect_supportable_dr_alignment): Likewise.
2654 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2655 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2656 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2657 then peeling to arrange for the cost-model check to come first.
2658
2659 2013-05-10 Alan Modra <amodra@gmail.com>
2660
2661 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2662 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2663 * configure: Regenerate.
2664
2665 2013-05-10 Alan Modra <amodra@gmail.com>
2666
2667 PR target/55033
2668 * varasm.c (default_elf_select_section): Move !DECL_P check..
2669 (get_named_section): ..to here before calling get_section_name.
2670 Adjust assertion.
2671 (default_section_type_flags): Add DECL_P check.
2672 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2673 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2674
2675 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2676
2677 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2678 When using gen_stack_adjust_str with a register offset, add a
2679 REG_FRAME_RELATED_EXPR note.
2680
2681 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
2682
2683 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2684 (*vec_extractv4si_zext_mem): Ditto.
2685 (*vec_extractv2di): Add 0->x and x->x alternatives.
2686 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2687 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2688
2689 2013-05-09 Jason Merrill <jason@redhat.com>
2690
2691 N3639 C++1y VLA support
2692 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2693 DECL_VALUE_EXPR.
2694
2695 * tree.c (build_constructor_va): New.
2696 * tree.h: Declare it.
2697
2698 2013-05-09 Martin Jambor <mjambor@suse.cz>
2699
2700 PR lto/57084
2701 * gimple-fold.c (canonicalize_constructor_val): Call
2702 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2703
2704 2013-05-09 Jan Hubicka <jh@suse.cz>
2705 Richard Biener <rguenther@suse.de>
2706
2707 PR lto/54095
2708 * symtab.c (symtab_make_decl_local): Do not add private names.
2709
2710 2013-05-09 Jan Hubicka <jh@suse.cz>
2711
2712 PR lto/54095
2713 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2714 (unlink_from_assembler_name_hash): Likewise.
2715 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2716 symtab_unregister_node, symtab_initialize_asm_name_hash,
2717 change_decl_assembler_name): Update.
2718
2719 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2720
2721 * config/aarch64/aarch64.md: New movtf split.
2722 (*movtf_aarch64): Update.
2723 (aarch64_movdi_tilow): Handle TF modes and rename to
2724 aarch64_movdi_<mode>low.
2725 (aarch64_movdi_tihigh): Handle TF modes and rename to
2726 aarch64_movdi_<mode>high
2727 (aarch64_movtihigh_di): Handle TF modes and rename to
2728 aarch64_mov<mode>high_di
2729 (aarch64_movtilow_di): Handle TF modes and rename to
2730 aarch64_mov<mode>low_di
2731 (aarch64_movtilow_tilow): Remove spurious whitespace.
2732 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2733 splits.
2734 (aarch64_print_operand): Update.
2735
2736 2013-05-09 Alan Modra <amodra@gmail.com>
2737
2738 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2739 powerpc64le.
2740 * configure: Regenerate.
2741
2742 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2743
2744 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2745 splitter preparation statements.
2746 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2747 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2748 adjust_address_nv.
2749
2750 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2751
2752 * gimple-ssa-strength-reduction.c (count_candidates): Change
2753 return value to int.
2754 (analyze_candidates_and_replace): Change type of length to int.
2755
2756 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
2757
2758 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2759 (*vec_extract<mode>): Use VI12_128 mode iterator.
2760 (*vec_extract<mode>_mem): Ditto.
2761 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2762 attribute.
2763
2764 2013-05-08 Diego Novillo <dnovillo@google.com>
2765
2766 PR bootstrap/54659
2767
2768 Revert:
2769 2012-08-17 Diego Novillo <dnovillo@google.com>
2770
2771 PR bootstrap/54281
2772 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2773 * config.in: Regenerate.
2774 * configure: Regenerate.
2775 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
2776
2777 2013-05-08 Jan Hubicka <jh@suse.cz>
2778
2779 PR lto/54095
2780 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2781 * cgraph.h (symtab_node_base): Add unique_name.
2782 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2783 input_overwrite_node, input_varpool_node): Stream unique_name.
2784 * cgraphclones.c (cgraph_create_virtual_clone,
2785 cgraph_function_versioning): Set unique_name.
2786 * ipa.c (function_and_variable_visibility): Set unique_name.
2787
2788 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2789
2790 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2791 (alloc_cand_and_find_basis): Restrict conditional candidate
2792 processing to CAND_MULTs.
2793
2794 2013-05-08 Jan Hubicka <jh@suse.cz>
2795
2796 PR lto/54095
2797 lto-symtab.c (lto_symtab_symbol_p): New function.
2798 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2799 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2800 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2801 Skip static symbols.
2802
2803 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2804
2805 PR tree-optimization/57200
2806 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2807 Only call inform if the preceding warning_at returns true.
2808
2809 2013-05-07 Han Shen <shenhan@google.com>
2810
2811 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2812 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2813 * common.opt (fstack-protector-strong): New option.
2814 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2815 * doc/invoke.texi (Optimization Options): Document
2816 "-fstack-protector-strong".
2817 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2818
2819 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2820
2821 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2822
2823 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2824
2825 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2826 it is not lhs of the insn.
2827 (setup_reg_equiv): Remove insn having equiv memory which it is not
2828 lhs of the insn.
2829 * lra-constraints.c (process_address): Try to improve generation
2830 code for address base + disp.
2831 (lra_constraints): Make correct the code for checking insn setting
2832 up backward equivalence. Remove insn only if it is in the init
2833 insn list.
2834 * lra-eliminations.c (update_reg_eliminate): Change return value.
2835 (lra_eliminate): Use the result.
2836
2837 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
2838
2839 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2840 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2841 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2842 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2843 register target operands.
2844 (*vec_extractv8hi_sse2): New pattern.
2845 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2846 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2847 (*vec_extract<mode>_mem): New insn and split pattern.
2848
2849 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2850
2851 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2852 (TARGET_ASAN_SHADOW_OFFSET): Define.
2853 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2854 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2855
2856 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2857
2858 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2859 (incr_vec_index): Return -1 if increment not found.
2860 (create_add_on_incoming_edge): Assert if increment not found.
2861 (record_increment): Limit number of increments recorded.
2862 (all_phi_incrs_profitable): Return false if an increment not found.
2863 (replace_profitable_candidates): Don't process increments that were
2864 not recorded.
2865 (analyze_candidates_and_replace): Limit size of incr_vec.
2866
2867 2013-05-07 Richard Biener <rguenther@suse.de>
2868
2869 * calls.c (special_function_p): setjmp-like functions are leaf.
2870 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2871 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2872
2873 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2874
2875 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2876 (aarch64_simd_mov<mode>): New expander.
2877 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2878 (aarch64_simd_mov_to_<mode>high): Likewise.
2879 (aarch64_simd_mov_from_<mode>low): Likewise.
2880 (aarch64_simd_mov_from_<mode>high): Likewise.
2881 (aarch64_dup_lane<mode>): Update.
2882 (aarch64_dup_lanedi): New instruction pattern.
2883 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2884 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2885
2886 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2887
2888 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2889 (replace_mult_candidate): Remove unnecessary argument; remove
2890 unnecessary parameter from call to introduce_cast_before_cand.
2891 (replace_unconditional_candidate): Remove unnecessary parameter
2892 from call to replace_mult_candidate.
2893 (replace_conditional_candidate): Likewise.
2894 (insert_initializers): Use make_temp_ssa_name.
2895 (introduce_cast_before_cand): Remove unnecessary argument; use
2896 make_temp_ssa_name.
2897 (replace_one_candidate): Remove unnecessary argument; remove
2898 unnecessary parameter from calls to introduce_cast_before_cand.
2899 (replace_profitable_candidates): Remove unnecessary parameters
2900 from calls to replace_one_candidate.
2901
2902 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2903
2904 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2905 phi def as possibly hiding a basis for a CAND_ADD whose operands
2906 have been commuted in the analysis.
2907 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2908
2909 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2910
2911 * config/aarch64/aarch64.md
2912 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2913 shift value between 0-4.
2914
2915 2013-05-07 Richard Biener <rguenther@suse.de>
2916
2917 * double-int.h (rshift): New overload.
2918 * double-int.c (rshift): New function.
2919 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2920 (create_reference_ops_from_ref): Remove.
2921 (vn_reference_insert): Use shared ops for constructing the
2922 reference and copy it.
2923
2924 2013-05-07 Richard Biener <rguenther@suse.de>
2925
2926 PR middle-end/57190
2927 * tree-eh.c (sink_clobbers): Properly propagate
2928 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2929
2930 2013-05-07 Jakub Jelinek <jakub@redhat.com>
2931
2932 PR tree-optimization/57149
2933 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2934 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2935 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2936 uninit_undefined_value_p instead of ssa_undefined_value_p.
2937
2938 PR debug/57184
2939 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2940 for modifier == EXPAND_INITIALIZER.
2941
2942 2013-05-07 Anton Blanchard <anton@samba.org>
2943
2944 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2945 for powerpc64 little endian.
2946 * configure: Regenerate.
2947
2948 2013-05-06 Graham Stott <grahams@btinternet.com>
2949
2950 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2951 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2952 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2953 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2954
2955 2013-05-06 Graham Stott <grahams@btinternet.com>
2956
2957 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2958 codes which allow non-lvalues.
2959
2960 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
2961
2962 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2963 components are all 1s.
2964 (integer_minus_onep): New function.
2965 * tree.h (integer_minus_onep): Declare it.
2966 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2967 integer_minus_onep instead of integer_all_onesp.
2968
2969 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2970
2971 PR target/52933
2972 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2973 variations of these patterns.
2974
2975 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
2976
2977 * config/i386/i386.md (isa): Add x64_sse4 member.
2978 (enabled): Handle x64_sse4.
2979 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2980 instruction for 64bit SSE4_1 targets. Update insn attributes.
2981 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2982 instruction for SSE4_1 targets. Update insn attributes.
2983 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2984 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2985 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2986 const_1 selector.
2987 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2988 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2989 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2990
2991 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2992
2993 PR target/57108
2994 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2995
2996 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2997
2998 * final.c (do_assembler_dialects): Don't handle curly braces and
2999 vertical bar escaped by % as dialect delimiters.
3000 (output_asm_insn): Print curly braces and vertical bar if escaped
3001 by % and ASSEMBLER_DIALECT defined.
3002 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3003 * doc/tm.texi: Regenerated.
3004
3005 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3006
3007 * config/mips/mips.c: Include tree-pass.h.
3008 (mips_reorg): Split in pre- and post-dbr_schedule parts.
3009 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3010 (pass_mips_machine_reorg2): New machine specific pass.
3011 (insert_pass_mips_machine_reorg2): New pass plugin definition.
3012 (mips_option_override): Register the new pass.
3013 * rtl.h (cleanup_barriers): Remove prototype.
3014 (dbr_schedule): Likewise.
3015 * jump.c (cleanup_barriers): Make static.
3016 * reorg.c (dbr_schedule): Likewise.
3017
3018 2013-05-06 Richard Biener <rguenther@suse.de>
3019
3020 PR tree-optimization/57185
3021 * tree-parloops.c (add_field_for_reduction): Handle anonymous
3022 SSA names properly.
3023
3024 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
3025
3026 PR target/57106
3027 * config/i386/i386.c (add_parameter_dependencies): Add dependence
3028 between "first_arg" and "insn", not "last" and "insn".
3029
3030 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3031
3032 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3033 (find_candidates_in_block): Re-enable slsr_process_phi.
3034 (create_phi_basis): Fix double counting of candidate adjustment.
3035
3036 2013-05-06 Richard Biener <rguenther@suse.de>
3037
3038 PR middle-end/57147
3039 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3040 the edge is also fallthru, preserve it and just clear the
3041 abnormal flag.
3042 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3043 also complex, preserve that and just clear the fallthru flag.
3044 * tree-inline.c (update_ssa_across_abnormal_edges): Also
3045 update virtual operands.
3046
3047 2013-05-06 Alan Modra <amodra@gmail.com>
3048
3049 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3050 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3051 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3052 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3053 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3054 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3055
3056 2013-05-06 Alan Modra <amodra@gmail.com>
3057
3058 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3059 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
3060 (DEFAULT_ASM_ENDIAN): Define.
3061 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3062 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3063 Update -K PIC clause from sysv4.h.
3064 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3065 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3066
3067 2013-05-06 Alan Modra <amodra@gmail.com>
3068
3069 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3070 twice for little-endian.
3071 (ashrdi3_no_power, ashrdi3): Support little-endian.
3072
3073 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3074
3075 PR target/55303
3076 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3077 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3078 related expanders.
3079 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3080 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3081 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3082 New predicates.
3083
3084 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
3085 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3086
3087 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3088 * config/pa/pa.opt: Make mbig-switch a no-op.
3089 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
3090 (CASE_VECTOR_MODE): Always return SImode.
3091 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
3092 for the !TARGET_BIG_SWITCH case.
3093 * config/pa/pa-linux.h: Likewise.
3094 * config/pa/pa-openbsd.h: Likewise.
3095 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
3096 * config/pa/pa.md (short_jump): Remove define_insn.
3097 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
3098 (casesi0): Remove define_insn.
3099 (type): Remove btable_branch.
3100 (pa_combine_type): Likewise.
3101 (in_nullified_branch_delay): Likewise.
3102 (in_call_delay): Likewise.
3103 (define_delay): Likewise.
3104 (define_insn_reservation "Z3"): Likewise.
3105 (define_insn_reservation "Z4"): Likewise.
3106 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
3107 (pa_adjust_insn_length): Remove adjustment for btable branches.
3108 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
3109 and mno-big-switch
3110
3111 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
3112
3113 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3114 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
3115 Add m->r,x alternatives.
3116 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
3117 splitters using SWI48x mode iterator.
3118 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
3119 TARGET_64BIT. Add m->x alternative.
3120 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
3121 Add o->x alternative. Enable for TARGET_SSE.
3122 (sse_storeq): Remove expander.
3123 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
3124 with memory input operand.
3125 (*vec_extractv2di_1 splitter): New.
3126 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
3127 * config/i386/i386.md (ssevecmodelower): New mode attribute.
3128
3129 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3130
3131 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
3132 (INT_LOWPART): Delete.
3133 (extract_MB): Adjust.
3134 (extract_ME): Adjust.
3135 (print_operand): Adjust.
3136
3137 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3138
3139 * config/rs6000/predicates.md (reg_or_add_cint_operand,
3140 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3141 (reg_or_logical_cint_operand, easy_fp_constant,
3142 logical_const_operand): Delete "CONST_DOUBLE" case.
3143 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
3144 "HOST_BITS_PER_WIDE_INT == 64" test.
3145 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
3146 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
3147 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
3148 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
3149 test.
3150 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
3151 CONST_DOUBLE DImode/VOIDmode case.
3152 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
3153 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3154 CONST_DOUBLE VOIDmode case.
3155 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3156 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
3157 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
3158 Delete CONST_DOUBLE case.
3159 (splitters for mov FMOVE64 const_double): Delete
3160 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3161 "HOST_BITS_PER_WIDE_INT >= 64" test.
3162 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
3163 case.
3164 (mov DI const_double): Delete.
3165
3166 2013-05-04 Jakub Jelinek <jakub@redhat.com>
3167
3168 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
3169 on op shows all bits zero in mode of a lowpart subreg, return zero.
3170
3171 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3172
3173 PR target/57150
3174 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
3175 to save TFmode registers and DImode to save TImode registers for
3176 caller save operations.
3177 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
3178 mark being partially clobbered since they only use the first
3179 double word.
3180
3181 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3182 and TDmode only use the upper 64-bits of each VSX register.
3183
3184 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3185
3186 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
3187 (find_candidates_in_block): Disable slsr_process_phi.
3188
3189 2013-05-03 Guozhi Wei <carrot@google.com>
3190
3191 * coverage.c (coverage_obj_init): Move the construction of gcov
3192 constructor to ...
3193 (build_init_ctor): ... here.
3194
3195 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3196
3197 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3198 (slsr_cand_d): Redefine def_phi.
3199 (stride_status, phi_adjust_status, count_phis_status): New enums.
3200 (find_phi_def): New.
3201 (find_basis_for_base_expr): New.
3202 (find_basis_for_candidate): Handle hidden bases.
3203 (alloc_cand_and_find_basis): Handle phi candidates.
3204 (slsr_process_phi): New.
3205 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3206 (create_mul_imm_cand): Likewise.
3207 (create_add_ssa_cand): Exclude phi base candidates.
3208 (create_add_imm_cand): Likewise.
3209 (slsr_process_cast): Likewise.
3210 (slsr_process_copy): Likewise.
3211 (find_candidates_in_block): Handle phi candidates.
3212 (dump_candidate): Likewise.
3213 (unconditional_cands): Delete.
3214 (unconditional_cands_with_known_stride_p): Delete.
3215 (phi_dependent_cand_p): New.
3216 (cand_increment): Handle phi-dependent candidates.
3217 (replace_dependent): Delete.
3218 (replace_mult_candidate): New.
3219 (replace_unconditional_candidate): New.
3220 (incr_vec_index): Move to avoid forward reference.
3221 (create_add_on_incoming_edge): New.
3222 (create_phi_basis): New.
3223 (replace_dependents): Delete.
3224 (replace_conditional_candidate): New.
3225 (phi_add_costs): New.
3226 (replace_uncond_cands_and_profitable_phis): New.
3227 (record_increment): Handle phi adjustments.
3228 (record_phi_increments): New.
3229 (record_increments): Handle phi adjustments.
3230 (phi_incr_cost): New.
3231 (lowest_cost_path): Handle phis.
3232 (total_savings): Likewise.
3233 (analyze_increments): Likewise.
3234 (ncd_with_phi): New.
3235 (ncd_of_cand_and_phis): New.
3236 (nearest_common_dominator_for_cands): Handle phi increments.
3237 (all_phi_incrs_profitable): New.
3238 (replace_profitable_candidates): Handle phi-dependent candidates.
3239 (analyze_candidates_and_replace): Likewise.
3240
3241 2013-05-03 Teresa Johnson <tejohnson@google.com>
3242
3243 PR bootstrap/57154
3244 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3245 do not exceed REG_BR_PROB_BASE.
3246
3247 2013-05-03 Jeff Law <law@redhat.com>
3248
3249 PR tree-optimization/57144
3250 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3251 operand of the condition will bit into the new type when eliminating
3252 a cast feeding a condition.
3253
3254 2013-05-03 Jakub Jelinek <jakub@redhat.com>
3255
3256 PR rtl-optimization/57130
3257 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3258 of COMPARE as in_code to the recursive call if needed.
3259
3260 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
3261
3262 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3263 (enabled): Handle new members.
3264 * config/i386/sse.md (*vec_concatv2si): Merge from
3265 *vec_concatv2si_sse2 and vec_concatv2si_sse.
3266 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3267
3268 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
3269
3270 PR tree-optimization/57027
3271 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3272 for fnms opportunity, check we got the prerequisite kind
3273 of tree / gimple before using accessor functions.
3274
3275 2013-05-03 Richard Biener <rguenther@suse.de>
3276
3277 * double-int.h (lshift): New overload without precision
3278 and arith argument.
3279 (operator *=, operator +=, operator -=): Move ...
3280 * double-int.c (operator *=, operator +=, operator -=): ... here
3281 and implement more efficiently.
3282 (mul_double_with_sign): Remove.
3283 (lshift_double): Adjust to take unsinged shift argument, push
3284 dispatching code to callers.
3285 (mul_double_wide_with_sign): Add early out for callers that
3286 are not interested in high parts or overflow.
3287 (lshift): New function.
3288 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3289 dispatch code here.
3290 (lrotate, rrotate): Use logical shifts.
3291 * expr.c (get_inner_reference): Use lshift.
3292 * fixed-value.c (do_fixed_divide): Likewise.
3293 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3294 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3295 (indirect_refs_may_alias_p): Likewise.
3296 (stmt_kills_ref_p_1): Likewise.
3297
3298 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3299
3300 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3301
3302 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3303
3304 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3305 scalar form of FABD instruction.
3306
3307 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3308
3309 * lra-constraints.c (process_alt_operands): Add checking alt
3310 number to choose the best alternative.
3311
3312 2013-05-02 Richard Biener <rguenther@suse.de>
3313
3314 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3315 bitmap and its handling.
3316 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3317
3318 2013-05-02 Richard Biener <rguenther@suse.de>
3319
3320 PR middle-end/57140
3321 * tree-inline.c (copy_loops): Properly handle removed loops.
3322 (copy_cfg_body): Mark destination loops for fixup if source
3323 loops needed fixup.
3324
3325 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
3326
3327 PR target/56732
3328 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3329 generating simple_return for naked functions.
3330
3331 2013-05-02 Martin Jambor <mjambor@suse.cz>
3332
3333 PR middle-end/56988
3334 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3335 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3336 flags match.
3337 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3338 ipa_agg_replacement_value structures.
3339 (known_aggs_to_agg_replacement_list): Likewise.
3340 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3341 (read_agg_replacement_chain): Likewise.
3342 (ipcp_transform_function): Also check that by_ref flags match.
3343
3344 2013-05-02 Richard Biener <rguenther@suse.de>
3345
3346 * graphds.h (struct graph): Add obstack member.
3347 * graphds.c (new_graph): Initialize obstack and allocate
3348 vertices from it.
3349 (add_edge): Allocate edge from the obstack.
3350 (free_graph): Free the obstack instead of all edges and vertices.
3351
3352 2013-05-02 Teresa Johnson <tejohnson@google.com>
3353
3354 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3355 divides.
3356 * cfg.c (update_bb_profile_for_threading): Ditto.
3357 * tree-inline.c (copy_bb): Ditto.
3358 (copy_edges_for_bb): Ditto.
3359 (initialize_cfun): Ditto.
3360 (copy_cfg_body): Ditto.
3361 (expand_call_inline): Ditto.
3362 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3363 (estimate_node_size_and_time): Ditto.
3364 (inline_merge_summary): Ditto.
3365 * cgraphclones.c (cgraph_clone_edge): Ditto.
3366 (cgraph_clone_node): Ditto.
3367 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3368 (compute_trg_info): Ditto.
3369
3370 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3371
3372 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3373 S reg when fp attribute set.
3374 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3375
3376 2013-05-02 Ian Bolton <ian.bolton@arm.com>
3377
3378 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3379 New pattern.
3380 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3381 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3382 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3383
3384 2013-05-02 Richard Biener <rguenther@suse.de>
3385
3386 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3387 (struct instantiate_cache_entry): New type.
3388 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3389 (struct instantiate_cache_type): New type.
3390 (set_instantiated_value, get_instantiated_value): Remove.
3391 (get_instantiated_value_entry): New function.
3392 (instantiate_scev_name): Use the new cache and adjust.
3393 (instantiate_scev_poly): Adjust.
3394 (instantiate_scev_binary): Likewise.
3395 (instantiate_array_ref): Likewise.
3396 (instantiate_scev_convert): Likewise.
3397 (instantiate_scev_not): Likewise.
3398 (instantiate_scev_3): Likewise.
3399 (instantiate_scev_2): Likewise.
3400 (instantiate_scev_r): Likewise.
3401 (instantiate_scev): Likewise.
3402 (resolve_mixers): Likewise.
3403
3404 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3405
3406 PR target/57091
3407 * lra-constraints.c (best_small_class_operands_num): Remove.
3408 (process_alt_operands): Remove small_class_operands_num. Take
3409 small classes operands into losers and only if the operand is not
3410 matched. Modify debugging output.
3411 (curr_insn_transform): Remove best_small_class_operands_num.
3412 Print insn name.
3413
3414 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3415
3416 * config/aarch64/aarch64-builtins.c
3417 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3418 * config/aarch64/aarch64-simd-builtins.def
3419 (reduc_splus_): Add new modes.
3420 (reduc_uplus_): New.
3421 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3422 (reduc_uplus_v4sf): Likewise.
3423 (reduc_splus_v4sf): Likewise.
3424 (aarch64_addv<mode>): Likewise.
3425 (reduc_uplus_<mode>): Likewise.
3426 (reduc_splus_<mode>): Likewise.
3427 (aarch64_addvv2di): Likewise.
3428 (reduc_uplus_v2di): Likewise.
3429 (reduc_splus_v2di): Likewise.
3430 (aarch64_addvv2si): Likewise.
3431 (reduc_uplus_v2si): Likewise.
3432 (reduc_splus_v2si): Likewise.
3433 (reduc_<sur>plus_<mode>): New.
3434 (reduc_<sur>plus_v2di): Likewise.
3435 (reduc_<sur>plus_v2si): Likewise.
3436 (reduc_<sur>plus_v4sf): Likewise.
3437 (aarch64_addpv4sf): Likewise.
3438 * config/aarch64/arm_neon.h
3439 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3440 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3441 add UNSPEC_SADDV, UNSPEC_UADDV.
3442 (SUADDV): New.
3443 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3444
3445 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3446
3447 * config/aarch64/arm_neon.h
3448 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3449
3450 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3451
3452 * config/aarch64/aarch64-builtins
3453 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3454
3455 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3456
3457 * config/aarch64/aarch64-simd-builtins.def
3458 (reduc_smax_): New.
3459 (reduc_smin_): Likewise.
3460 (reduc_umax_): Likewise.
3461 (reduc_umin_): Likewise.
3462 (reduc_smax_nan_): Likewise.
3463 (reduc_smin_nan_): Likewise.
3464 (fmax): Remove.
3465 (fmin): Likewise.
3466 (smax): Update for V2SF, V4SF and V2DF modes.
3467 (smin): Likewise.
3468 (smax_nan): New.
3469 (smin_nan): Likewise.
3470 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3471 (<su><maxmin><mode>3): ...This, refactor.
3472 (s<maxmin><mode>3): New.
3473 (<maxmin_uns><mode>3): Likewise.
3474 (reduc_<maxmin_uns>_<mode>): Refactor.
3475 (reduc_<maxmin_uns>_v4sf): Likewise.
3476 (reduc_<maxmin_uns>_v2si): Likewise.
3477 (aarch64_<fmaxmin><mode>: Remove.
3478 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3479 new builtin names.
3480 (vmin<q>_f<32,64>): Likewise.
3481 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3482 (FMAXMIN): New.
3483 (su): Add mappings for smax, smin, umax, umin.
3484 (maxmin): New.
3485 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3486 (FMAXMIN): Rename as...
3487 (FMAXMIN_UNS): ...This.
3488 (maxminv): Remove.
3489 (fmaxminv): Likewise.
3490 (fmaxmin): Likewise.
3491 (maxmin_uns): New.
3492 (maxmin_uns_op): Likewise.
3493
3494 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3495
3496 * config/aarch64/arm_neon.h
3497 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3498 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3499 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3500
3501 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3502
3503 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3504 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3505
3506 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3507
3508 * config/aarch64/aarch64-simd.md
3509 (vcond<mode>_internal): Handle special cases for constant masks.
3510 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3511 (vcondu<mode><mode>): Likewise.
3512 (vcond<v_cmp_result><mode>): New.
3513
3514 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3515
3516 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3517 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3518 * config/aarch64/aarch64-simd-builtins.def
3519 (cmeq): Update to BUILTIN_VALLDI.
3520 (cmgt): Likewise.
3521 (cmge): Likewise.
3522 (cmle): Likewise.
3523 (cmlt): Likewise.
3524 * config/aarch64/arm_neon.h
3525 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3526 to builtins or C as appropriate.
3527
3528 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3529
3530 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3531 (cmgeu): ...This.
3532 (cmhi): Rename to...
3533 (cmgtu): ...This.
3534 * config/aarch64/aarch64-simd.md
3535 (simd_mode): Add SF.
3536 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3537 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3538 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3539 (cstore<mode>_neg): ...This.
3540 * config/aarch64/iterators.md
3541 (VALLF): new.
3542 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3543 (COMPARISONS): New.
3544 (UCOMPARISONS): Likewise.
3545 (optab): Add missing comparisons.
3546 (n_optab): New.
3547 (cmp_1): Likewise.
3548 (cmp_2): Likewise.
3549 (CMP): Likewise.
3550 (cmp): Remove.
3551 (VCMP_S): Likewise.
3552 (VCMP_U): Likewise.
3553 (V_cmp_result): Add DF, SF modes.
3554 (v_cmp_result): Likewise.
3555 (v): Likewise.
3556 (vmtype): Likewise.
3557 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3558
3559 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3560
3561 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3562 define_insn to define_insn_and_split.
3563 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3564 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3565 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3566 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3567 (thumb2_negscc): Likewise.
3568
3569 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3570
3571 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3572
3573 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3574
3575 * config/arm/thumb2.md: Remove trailing whitespaces.
3576
3577 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3578
3579 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3580 Use gen_int_mode rather than GEN_INT.
3581
3582 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3583
3584 * value-prof.c (stream_in_histogram_value): Remove the strayed
3585 debug_gimple_stmt.
3586
3587 2013-04-30 Richard Biener <rguenther@suse.de>
3588
3589 PR middle-end/57122
3590 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3591
3592 2013-04-30 Richard Biener <rguenther@suse.de>
3593
3594 PR middle-end/57107
3595 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3596
3597 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
3598
3599 PR rtl-optimization/56957
3600 PR rtl-optimization/57105
3601 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3602 variable. Use just INSN_UID for determining whether an insn
3603 should be only disconnected from the insn stream.
3604 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3605
3606 2013-04-30 Jakub Jelinek <jakub@redhat.com>
3607
3608 PR tree-optimization/57104
3609 * tsan.c (instrument_expr): Don't instrument accesses to
3610 DECL_HARD_REGISTER VAR_DECLs.
3611
3612 2013-04-30 Richard Biener <rguenther@suse.de>
3613
3614 * function.h (loops_for_fn): New inline function.
3615 (set_loops_for_fn): Likewise.
3616 * cfgloop.h (place_new_loop): Add struct function parameter.
3617 (get_loop): Likewise.
3618 (get_loops): Likewise.
3619 (number_of_loops): Likewise.
3620 (fel_next): Adjust.
3621 (fel_init): Likewise.
3622 * cfg.c (get_loop_copy): Adjust.
3623 * cfgloop.c (flow_loops_dump): Likewise.
3624 (record_loop_exits): Likewise.
3625 (verify_loop_structure): Likewise.
3626 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3627 (estimate_reg_pressure_cost): Likewise.
3628 (mark_loop_exit_edges): Likewise.
3629 * cfgloopmanip.c (place_new_loop): Likewise.
3630 (add_loop): Likewise.
3631 (duplicate_loop): Likewise.
3632 * graph.c (draw_cfg_nodes): Likewise.
3633 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3634 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3635 (extract_affine_chrec): Likewise.
3636 (build_scop_iteration_domain): Likewise.
3637 * graphite.c (graphite_initialize): Likewise.
3638 * ira-build.c (create_loop_tree_nodes): Likewise.
3639 (more_one_region_p): Likewise.
3640 (rebuild_regno_allocno_maps): Likewise.
3641 (mark_loops_for_removal): Likewise.
3642 (mark_all_loops_for_removal): Likewise.
3643 (remove_unnecessary_regions): Likewise.
3644 (ira_build): Likewise.
3645 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3646 * loop-init.c (fix_loop_structure): Likewise.
3647 (gate_rtl_move_loop_invariants): Likewise.
3648 (gate_rtl_unswitch): Likewise.
3649 (gate_rtl_unroll_and_peel_loops): Likewise.
3650 (rtl_doloop): Likewise.
3651 * lto-streamer-in.c (input_cfg): Likewise.
3652 * lto-streamer-out.c (output_cfg): Likewise.
3653 * modulo-sched.c (sms_schedule): Likewise.
3654 * predict.c (tree_estimate_probability): Likewise.
3655 (tree_estimate_probability_driver): Likewise.
3656 (estimate_loops): Likewise.
3657 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3658 (move_sese_region_to_fn): Likewise.
3659 (debug_loop_num): Likewise.
3660 * tree-chrec.c (chrec_evaluate): Likewise.
3661 (hide_evolution_in_other_loops_than_loop): Likewise.
3662 (chrec_component_in_loop_num): Likewise.
3663 (reset_evolution_in_loop): Likewise.
3664 (evolution_function_is_invariant_rec_p): Likewise.
3665 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3666 * tree-inline.c (copy_loops): Likewise.
3667 (copy_cfg_body): Likewise.
3668 (tree_function_versioning): Likewise.
3669 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3670 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3671 Likewise.
3672 (add_to_evolution_1): Likewise.
3673 (scev_const_prop): Likewise.
3674 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3675 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3676 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3677 (tree_ssa_lim_initialize): Likewise.
3678 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3679 (verify_loop_closed_ssa): Likewise.
3680 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3681 (tree_ssa_loop_im): Likewise.
3682 (tree_ssa_loop_unswitch): Likewise.
3683 (tree_vectorize): Likewise.
3684 (check_data_deps): Likewise.
3685 (tree_ssa_loop_ivcanon): Likewise.
3686 (tree_ssa_loop_bounds): Likewise.
3687 (tree_complete_unroll): Likewise.
3688 (tree_complete_unroll_inner): Likewise.
3689 (tree_parallelize_loops): Likewise.
3690 (tree_ssa_loop_prefetch): Likewise.
3691 (tree_ssa_loop_ivopts): Likewise.
3692 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3693 * tree-vectorizer.c (vectorize_loops): Likewise.
3694
3695 2013-04-29 Mike Frysinger <vapier@gentoo.org>
3696
3697 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3698 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3699 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3700 with EABI_LINK_SPEC.
3701
3702 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3703
3704 PR target/44578
3705 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3706 alternative.
3707
3708 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3709
3710 PR target/57097
3711 * lra-constraints.c (process_alt_operands): Discourage a bit more
3712 using memory for pseudos. Print cost dump for alternatives.
3713 Modify cost values for conflicts with early clobbers.
3714 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3715
3716 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3717
3718 PR target/57098
3719 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3720
3721 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3722
3723 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3724 from/to S register.
3725 (movdi_aarch64): Support LDR/STR from/to D register.
3726
3727 2013-04-29 Ian Bolton <ian.bolton@arm.com>
3728
3729 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3730 or higher by default.
3731
3732 2013-04-29 Richard Biener <rguenther@suse.de>
3733
3734 PR middle-end/57075
3735 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3736 even if not adding abnormal edges for calls that can make
3737 abnormal gotos.
3738
3739 2013-04-29 Richard Biener <rguenther@suse.de>
3740
3741 PR middle-end/57103
3742 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3743 TREE_BLOCK.
3744 (move_stmt_r): Remove redundant checking.
3745
3746 2013-04-29 Teresa Johnson <tejohnson@google.com>
3747
3748 PR bootstrap/57077
3749 * basic-block.h (apply_scale): New function.
3750 (apply_probability): Use apply_scale.
3751 * gimple-streamer-in.c (input_bb): Ditto.
3752 * lto-streamer-in.c (input_cfg): Ditto.
3753 * lto-cgraph.c (merge_profile_summaries): Ditto.
3754 * tree-optimize.c (execute_fixup_cfg): Ditto.
3755 * tree-inline.c (copy_bb): Update comment to use apply_scale.
3756 (copy_edges_for_bb): Ditto.
3757 (copy_cfg_body): Ditto.
3758
3759 2013-04-29 Tom de Vries <tom@codesourcery.com>
3760
3761 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3762 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3763 (tail_merge_optimize): Handle current_loops == NULL.
3764
3765 2013-04-26 Jeff Law <law@redhat.com>
3766
3767 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3768 (simplify_cond_using_ranges): Generalize code to simplify
3769 COND_EXPRs where one argument is a constant and the other
3770 is an SSA_NAME created by an integral type conversion.
3771
3772 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3773
3774 * config/arm/arm.md (store_minmaxsi): Use only when
3775 optimize_insn_for_size_p.
3776
3777 2013-04-29 Christian Bruel <christian.bruel@st.com>
3778
3779 PR target/57108
3780 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3781
3782 2013-04-29 Richard Biener <rguenther@suse.de>
3783
3784 PR middle-end/57089
3785 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3786 loop tree make sure to schedule a fixup for the child as well.
3787 (expand_omp_for_generic): Properly add loops.
3788 (expand_omp_for_static_nochunk): Likewise.
3789 (expand_omp_for_static_chunk): Likewise.
3790 (expand_omp_for): For the degenerate case fixup loops.
3791 (expand_omp_sections): Fix default bb placement in loops.
3792 (expand_omp_atomic_pipeline): Properly add loops.
3793
3794 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3795
3796 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3797
3798 2013-04-29 Tom de Vries <tom@codesourcery.com>
3799
3800 * tree-ssa-tail-merge.c: Update header comment.
3801
3802 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3803
3804 * config/aarch64/arm_neon.h
3805 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3806 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3807 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3808 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3809 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3810 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3811 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3812 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3813
3814 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3815
3816 * config/aarch64/aarch64-simd.md
3817 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3818 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3819 fix_trunc, fixuns_trunc.
3820 (ftrunc<VDQF:mode>2): New.
3821 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3822 (fix_trunc_optab): New.
3823
3824 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3825
3826 * config/aarch64/aarch64-builtins.c
3827 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3828 iceilf, lround, iroundf.
3829
3830 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
3831
3832 PR target/54349
3833 * config/i386/i386.h (enum ix86_tune_indices)
3834 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3835 New, split from X86_TUNE_INTER_UNIT_MOVES.
3836 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3837 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3838 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3839 (TARGET_INTER_UNIT_MOVES): Remove.
3840 * config/i386/i386.c (initial_ix86_tune_features): Update.
3841 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3842 (ix86_expand_convert_uns_didf_sse): Use
3843 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3844 (ix86_expand_vector_init_one_nonzero): Ditto.
3845 (ix86_expand_vector_init_interleave): Ditto.
3846 (inline_secondary_memory_needed): Return true for moves from SSE class
3847 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3848 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3849 * config/i386/constraints.md (Yi, Ym): Depend on
3850 TARGET_INTER_UNIT_MOVES_TO_VEC.
3851 (Yj, Yn): New constraints.
3852 * config/i386/i386.md (*movdi_internal): Change constraints of
3853 operand 1 from Yi to Yj and from Ym to Yn.
3854 (*movsi_internal): Ditto.
3855 (*movdf_internal): Ditto.
3856 (*movsf_internal): Ditto.
3857 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3858 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3859 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3860 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3861 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3862 * config/i386/sse.md (movdi_to_sse): Ditto.
3863 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3864 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3865 TARGET_INTER_UNIT_MOVES.
3866 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3867 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3868 instead of TARGET_INTER_UNIT_MOVES.
3869 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3870 operand 1 from Yi to Yj and from Ym to Yn.
3871
3872 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3873
3874 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3875 (float_truncate_hi_): Likewise.
3876 (float_extend_lo_): Likewise.
3877 (float_truncate_lo_): Likewise.
3878 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3879 (aarch64_float_extend_lo_v2df): Likewise.
3880 (vec_unpacks_hi_v4sf): Likewise.
3881 (aarch64_float_truncate_lo_v2sf): Likewise.
3882 (aarch64_float_truncate_hi_v4sf): Likewise.
3883 (vec_pack_trunc_v2df): Likewise.
3884 (vec_pack_trunc_df): Likewise.
3885
3886 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3887
3888 * config/aarch64/aarch64-builtins.c
3889 (aarch64_fold_builtin): Fold float conversions.
3890 * config/aarch64/aarch64-simd-builtins.def
3891 (floatv2si, floatv4si, floatv2di): New.
3892 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3893 * config/aarch64/aarch64-simd.md
3894 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3895 * config/aarch64/iterators.md (FLOATUORS): New.
3896 (optab): Add float, floatuns.
3897 (su_optab): Likewise.
3898
3899 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3900
3901 * config/aarch64/aarch64-builtins.c
3902 (aarch64_builtin_vectorized_function): Use new names for
3903 fcvt builtins.
3904 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3905 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3906 (fcvtzu): Split as...
3907 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3908 (fcvtas): Split as...
3909 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3910 (fcvtau): Split as...
3911 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3912 (fcvtps): Split as...
3913 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3914 (fcvtpu): Split as...
3915 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3916 (fcvtms): Split as...
3917 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3918 (fcvtmu): Split as...
3919 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3920 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3921 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3922 (lfrintnusf, lfrintnudf): Likewise.
3923 * config/aarch64/aarch64-simd.md
3924 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3925 define_insn.
3926 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3927 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3928 (fcvt_pattern): Likewise.
3929
3930 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3931
3932 * config/aarch64/aarch64-simd.md
3933 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3934 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3935
3936 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3937
3938 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3939 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3940 (vrnd<a,m,n,p>_f32): Implement using builtins.
3941 (vrnd<i,x><q>_f<32, 64>): New.
3942
3943 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3944
3945 * config/aarch64/aarch64-builtins.c
3946 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3947 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3948 (frintz): Rename to...
3949 (btrunc): ...this.
3950 (frintp): Rename to...
3951 (ceil): ...this.
3952 (frintm): Rename to...
3953 (floor): ...this.
3954 (frinti): Rename to...
3955 (nearbyint): ...this.
3956 (frintx): Rename to...
3957 (rint): ...this.
3958 (frinta): Rename to...
3959 (round): ...this.
3960 * config/aarch64/aarch64-simd.md
3961 (aarch64_frint<frint_suffix><mode>): Delete.
3962 (<frint_pattern><mode>2): Convert to insn.
3963 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3964 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3965 (frint_pattern): Likewise.
3966 (frint_suffix): Likewise.
3967
3968 2013-04-29 Richard Biener <rguenther@suse.de>
3969
3970 PR tree-optimization/57081
3971 * loop-init.c: Include tree-flow.h.
3972 (loop_optimizer_finalize): Free number of iteration estimates.
3973 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3974
3975 2013-04-29 Jakub Jelinek <jakub@redhat.com>
3976
3977 PR tree-optimization/57083
3978 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3979 non-singleton shift count range, zero extend low_bound for uns case.
3980
3981 * config/i386/predicates.md (general_vector_operand): New predicate.
3982 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3983 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3984 if they aren't nonimmediate operands. If their original values
3985 satisfy const_vector_equal_evenodd_p, don't shift them.
3986 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3987 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3988 if not nonimmediate_operand.
3989 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3990 instead of register_operand.
3991 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3992
3993 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
3994
3995 * stor-layout.c (finalize_size_functions): Allocate a structure and
3996 reset cfun before dumping the functions.
3997
3998 2013-04-27 Jakub Jelinek <jakub@redhat.com>
3999
4000 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4001
4002 PR target/56866
4003 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4004 use xop_pmacsdqh if uns_p.
4005 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4006 the immediate rotate count.
4007
4008 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
4009
4010 * rtl.h (struct rtx_def): Add comment for field jump.
4011 (LRA_SUBREG_P): New macro.
4012 * recog.c (register_operand): Check LRA_SUBREG_P.
4013 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4014 stack frame.
4015 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4016 (lra_final_code_change): Skip subreg change for operators.
4017 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4018 if there are no operand changes.
4019 * lra-constraints.c (curr_insn_set): New.
4020 (match_reload): Set LRA_SUBREG_P.
4021 (emit_spill_move): Ditto.
4022 (check_and_process_move): Use curr_insn_set. Process only single
4023 set insns. Don't initialize sec_mem_p and change_p.
4024 (simplify_operand_subreg): Use LRA_SUBREG_P.
4025 (reg_in_class_p): New function.
4026 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4027 of #ifdef. Add code to remove cycling.
4028 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4029 non-null disp. Reload inner instead of disp when base and index
4030 are null. Try to put lo_sum into register.
4031 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4032 (check_and_process_move): Move code for move cost check to
4033 simple_move_p. Remove equiv_substitution.
4034 (simple_move_p): New function.
4035 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4036 curr_insn_set. Call check_and_process_move only for single set
4037 insns. Use the new function. Move call of check_and_process_move
4038 after operand equiv substitution and address process.
4039
4040 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4041
4042 PR go/57045
4043 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4044 with nonlocal goto receivers or returns twice calls, ignore
4045 unininitialized values from abnormal edges to nl goto receiver
4046 or returns twice call.
4047
4048 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4049
4050 PR tree-optimization/57051
4051 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4052 and VEC_RSHIFT_EXPR if shift count is a multiple of element
4053 bitsize.
4054
4055 2013-04-26 Richard Biener <rguenther@suse.de>
4056
4057 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4058 (expand_omp_taskreg): Likewise. Mark loops for fixup.
4059 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4060 (fixup_loop_arrays_after_move): New function.
4061 (move_sese_region_to_fn): Properly outline the loop tree parts
4062 of the SESE region.
4063
4064 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
4065
4066 * config/i386/i386.md (type, unit): Fix long lines.
4067
4068 2013-04-26 Richard Biener <rguenther@suse.de>
4069
4070 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4071 (lto-streamer-out.o): Likewise.
4072 * cfgloop.c (init_loops_structure): Export, add struct function
4073 argument and adjust.
4074 (flow_loops_find): Adjust.
4075 * cfgloop.h (enum loop_estimation): Add EST_LAST.
4076 (init_loops_structure): Declare.
4077 * lto-streamer-in.c: Include cfgloop.h.
4078 (input_cfg): Input the loop tree.
4079 * lto-streamer-out.c: Include cfgloop.h.
4080 (output_cfg): Output the loop tree.
4081 (output_struct_function_base): Do not drop PROP_loops.
4082
4083 2013-03-26 Richard Biener <rguenther@suse.de>
4084
4085 * tree-cfg.c (execute_build_cfg): Build the loop tree.
4086 (pass_build_cfg): Provide PROP_loops.
4087 (move_sese_region_to_fn): Remove loops that are outlined into fn
4088 for now.
4089 * tree-inline.c: Include cfgloop.h.
4090 (initialize_cfun): Do not drop PROP_loops.
4091 (copy_loops): New function.
4092 (copy_cfg_body): Copy loop structure.
4093 (tree_function_versioning): Initialize destination loop tree.
4094 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
4095 (pass_parallelize_loops): Do IL verification.
4096 * loop-init.c (loop_optimizer_init): Fixup loops if required.
4097 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
4098 the CFG make sure we fixup loops as well.
4099 * tree-ssa-tail-merge.c: Include cfgloop.h.
4100 (replace_block_by): When merging loop latches mark loops for fixup.
4101 * lto-streamer-out.c (output_struct_function_base): Drop
4102 PROP_loops for now.
4103 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
4104 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
4105 * ipa-split.c: Include cfgloop.h.
4106 (split_function): Add the new return block to the loop tree root.
4107 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
4108 whether we have removed the forwarder block.
4109 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
4110 * cfgloop.h (place_new_loop): Declare.
4111 * cfgloopmanip.c (place_new_loop): Export.
4112 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
4113 (tree-switch-conversion.o): Likewise.
4114 (tree-complex.o): Likewise.
4115 (tree-inline.o): Likewise.
4116 (tree-ssa-tailmerge.o): Likewise.
4117 (ipa-split.o): Likewise.
4118 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
4119 (tree-ssa-copy.o): Likewise.
4120 * tree-switch-conversion.c: Include cfgloop.h
4121 (process_switch): If we emit a bit-test cascade, schedule loops
4122 for fixup.
4123 * tree-complex.c: Include cfgloop.h.
4124 (expand_complex_div_wide): Properly add new basic-blocks to loops.
4125 * asan.c: Include cfgloop.h.
4126 (create_cond_insert_point): Properly add new basic-blocks to
4127 loops, schedule loop fixup.
4128 * cfgloop.c (verify_loop_structure): Check that looks are not
4129 marked for fixup.
4130 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
4131 to loops.
4132 (expand_omp_for_generic): Likewise.
4133 (expand_omp_sections): Likewise.
4134 (expand_omp_atomic_pipeline): Schedule loops for fixup.
4135 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
4136 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
4137 is initialized, not when loops are present.
4138 * tree-parloops.c (parallelize_loops): Remove checking here.
4139 * passes.c (init_optimization_passes): Schedule a copy-propagation
4140 pass before complete unrolling of inner loops.
4141
4142 2013-04-26 Jakub Jelinek <jakub@redhat.com>
4143
4144 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
4145 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
4146 (colorize_init): Add argument to _WIN32 version.
4147 * toplev.c: Include diagnostic-color.h.
4148 (process_options): Default to -fdiagnostics-color=auto if
4149 GCC_COLORS env var is in the environment.
4150 * common.opt (fdiagnostics-color=): Add Var and Init.
4151 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
4152 env var is in the environment, the default is auto rather than never.
4153
4154 * diagnostic.h (file_name_as_prefix): Add context argument.
4155 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
4156 the string as locus.
4157 * langhooks.c (lhd_print_error_function): Adjust caller.
4158
4159 2013-04-25 Lawrence Crowl <crowl@google.com>
4160
4161 * var-tracking.c (shared_hash_def::htab):
4162 Change type to hash_table. Update dependent calls and types.
4163
4164 2013-04-25 Lawrence Crowl <crowl@google.com>
4165
4166 * Makefile.in: Update as needed below.
4167
4168 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
4169 Move declaration to after the type's method definitons.
4170
4171 * attribs.c (htab_t scoped_attributes::attribute_hash):
4172 Change type to hash_table. Update dependent calls and types.
4173
4174 * bitmap.c (htab_t bitmap_desc_hash):
4175 Change type to hash_table. Update dependent calls and types.
4176
4177 * cselib.c (htab_t cselib_hash_table):
4178 Change type to hash_table. Update dependent calls and types.
4179
4180 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
4181 (hash_string_slot_node): Move implementation into lto-streamer.h
4182 struct string_slot_hasher.
4183 (eq_string_slot_node): Likewise.
4184
4185 * data-streamer-out.c: Update output_block::string_hash_table
4186 dependent calls and types.
4187
4188 * dwarf2cfi.c (htab_t trace_index):
4189 Change type to hash_table. Update dependent calls and types.
4190
4191 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
4192 Change type to hash_table. Update dependent calls and types.
4193 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4194 (htab_t optimize_external_refs::map): Likewise.
4195 (htab_t output_comp_unit::extern_map): Likewise.
4196 (htab_t output_comdat_type_unit::extern_map): Likewise.
4197 (htab_t output_macinfo::macinfo_htab): Likewise.
4198 (htab_t optimize_location_lists::htab): Likewise.
4199 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4200
4201 * except.c (htab_t ehspec_hash_type):
4202 Change type to hash_table. Update dependent calls and types.
4203 (assign_filter_values::ttypes): Likewise.
4204 (assign_filter_values::ehspec): Likewise.
4205 (sjlj_assign_call_site_values::ar_hash): Likewise.
4206 (convert_to_eh_region_ranges::ar_hash): Likewise.
4207
4208 * gcse.c (htab_t pre_ldst_table):
4209 Change type to hash_table. Update dependent calls and types.
4210
4211 * ggc-common.c (htab_t saving_htab):
4212 Change type to hash_table. Update dependent calls and types.
4213 (htab_t loc_hash): Likewise.
4214 (htab_t ptr_hash): Likewise.
4215 (call_count): Rename ggc_call_count.
4216 (call_alloc): Rename ggc_call_alloc.
4217 (loc_descriptor): Rename make_loc_descriptor.
4218 (add_statistics): Rename ggc_add_statistics.
4219
4220 * ggc-common.c (saving_htab):
4221 Change type to hash_table. Update dependent calls and types.
4222
4223 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4224 (push_gimplify_context): Likewise.
4225 (pop_gimplify_context): Likewise.
4226 (struct gimple_temp_hash_elt): Added.
4227 (struct gimplify_hasher): Likewise.
4228 (struct gimplify_ctx.temp_htab):
4229 Change type to hash_table. Update dependent calls and types.
4230
4231 * gimple-fold.c: Include gimplify-ctx.h.
4232
4233 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4234 Change type to hash_table. Update dependent calls and types.
4235 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4236 avoid potential global name collision.
4237
4238 * gimplify.c: Include gimplify-ctx.h.
4239 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4240 (htab_t gimplify_ctx::temp_htab):
4241 Update dependent calls and types for new type hash_table.
4242 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4243 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4244
4245 * gimplify-ctx.h: New.
4246 (struct gimple_temp_hash_elt): Move from gimplify.c.
4247 (class gimplify_hasher): New.
4248 (struct gimplify_ctx): Move from gimple.h.
4249 (htab_t gimplify_ctx::temp_htab):
4250 Change type to hash_table. Update dependent calls and types.
4251
4252 * graphite-clast-to-gimple.c: Include graphite-htab.h.
4253 (htab_t ivs_params::newivs_index):
4254 Change type to hash_table. Update dependent calls and types.
4255 (htab_t ivs_params::params_index): Likewise.
4256 (htab_t print_generated_program::params_index): Likewise.
4257 (htab_t gloog::newivs_index): Likewise.
4258 (htab_t gloog::params_index): Likewise.
4259
4260 * graphite.c: Include graphite-htab.h.
4261 4htab_t graphite_transform_loops::bb_pbb_mapping):
4262 Change type to hash_table. Update dependent calls and types.
4263
4264 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4265 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4266 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4267
4268 * graphite-dependences.c: Include graphite-htab.h.
4269 (loop_is_parallel_p): Change hash table type of parameter.
4270
4271 * graphite-htab.h: New.
4272 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4273 (extern find_pbb_via_hash): Move from graphite-poly.h.
4274 (extern loop_is_parallel_p): Move from graphite-poly.h.
4275 (extern get_loop_body_pbbs): Move from graphite-poly.h.
4276
4277 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4278 (extern loop_is_parallel_p): Move to graphite-htab.h.
4279 (extern get_loop_body_pbbs): Move to graphite-htab.h.
4280
4281 * haifa-sched.c (htab_t delay_htab):
4282 Change type to hash_table. Update dependent calls and types.
4283 (htab_t delay_htab_i2): Likewise.
4284
4285 * ira-color.c (htab_t allocno_hard_regs_htab):
4286 Change type to hash_table. Update dependent calls and types.
4287
4288 * ira-costs.c (htab_t cost_classes_htab):
4289 Change type to hash_table. Update dependent calls and types.
4290
4291 * loop-invariant.c (htab_t merge_identical_invariants::eq):
4292 Change type to hash_table. Update dependent calls and types.
4293
4294 * loop-iv.c (htab_t bivs):
4295 Change type to hash_table. Update dependent calls and types.
4296
4297 * loop-unroll.c (htab_t opt_info::insns_to_split):
4298 Change type to hash_table. Update dependent calls and types.
4299 (htab_t opt_info::insns_with_var_to_expand): Likewise.
4300
4301 * lto-streamer.h (struct string_slot): Move from data-streamer.h
4302 (struct string_slot_hasher): New.
4303 (htab_t output_block::string_hash_table):
4304 Change type to hash_table. Update dependent calls and types.
4305
4306 * lto-streamer-in.c (freeing_string_slot_hasher): New.
4307 (htab_t file_name_hash_table):
4308 Change type to hash_table. Update dependent calls and types.
4309
4310 * lto-streamer-out.c: Update output_block::string_hash_table dependent
4311 calls and types.
4312
4313 * lto-streamer.c (htab_t tree_htab):
4314 Change type to hash_table. Update dependent calls and types.
4315
4316 * omp-low.c: Include gimplify-ctx.h.
4317
4318 * passes.c (htab_t name_to_pass_map):
4319 Change type to hash_table. Update dependent calls and types.
4320 (pass_traverse): Rename to passes_pass_traverse.
4321
4322 * plugin.c (htab_t event_tab):
4323 Change type to hash_table. Update dependent calls and types.
4324
4325 * postreload-gcse.c (htab_t expr_table):
4326 Change type to hash_table. Update dependent calls and types.
4327 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4328
4329 * sese.c (debug_rename_map_1): Make extern.
4330 (htab_t copy_bb_and_scalar_dependences::rename_map):
4331 Change type to hash_table. Update dependent calls and types.
4332
4333 * sese.h (extern debug_rename_map): Move to .c file.
4334
4335 * store-motion.c (htab_t store_motion_mems_table):
4336 Change type to hash_table. Update dependent calls and types.
4337
4338 * trans-mem.c (htab_t tm_new_mem_hash):
4339 Change type to hash_table. Update dependent calls and types.
4340
4341 * tree-browser.c (htab_t TB_up_ht):
4342 Change type to hash_table. Update dependent calls and types.
4343
4344 * tree-cfg.c (htab_t discriminator_per_locus):
4345 Change type to hash_table. Update dependent calls and types.
4346
4347 * tree-complex.c: Include tree-hasher.h
4348 (htab_t complex_variable_components):
4349 Change type to hash_table. Update dependent calls and types.
4350
4351 * tree-eh.c (htab_t finally_tree):
4352 Change type to hash_table. Update dependent calls and types.
4353
4354 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4355 struct int_tree_hasher.
4356 (extern int_tree_map_eq): Likewise.
4357 (uid_decl_map_hash): Removed.
4358 (extern decl_tree_map_eq): Likewise.
4359
4360 * tree-hasher.h: New.
4361 (struct int_tree_hasher): New.
4362 (typedef int_tree_htab_type): New.
4363
4364 * tree-inline.c: Include gimplify-ctx.h.
4365
4366 * tree-mudflap.c: Include gimplify-ctx.h.
4367
4368 * tree-parloops.c: Include tree-hasher.h.
4369 (htab_t eliminate_local_variables_stmt::decl_address):
4370 Change type to hash_table. Update dependent calls and types.
4371 (htab_t separate_decls_in_region::decl_copies): Likewise.
4372
4373 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4374 Change type to hash_table. Update dependent calls and types.
4375
4376 * tree-sra.c (candidates):
4377 Change type to hash_table. Update dependent calls and types.
4378
4379 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4380 in tree-flow.h.
4381 (int_tree_map_hash): Likewise.
4382
4383 * tree-ssa-dom.c (htab_t avail_exprs):
4384 Change type to hash_table. Update dependent calls and types.
4385
4386 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4387 Change type to hash_table. Update dependent calls and types.
4388
4389 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4390 Change type to hash_table. Update dependent calls and types.
4391
4392 * tree-ssa-phiopt.c (seen_ssa_names):
4393 Change type to hash_table. Update dependent calls and types.
4394
4395 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4396 Change type to hash_table. Update dependent calls and types.
4397
4398 * tree-ssa-uncprop.c (equiv):
4399 Change type to hash_table. Update dependent calls and types.
4400
4401 2013-04-25 Jakub Jelinek <jakub@redhat.com>
4402
4403 PR rtl-optimization/57003
4404 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4405 call note_stores with kill_clobbered_value callback again after
4406 killing regs_invalidated_by_call.
4407
4408 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4409
4410 * config/aarch64/aarch64-simd.md
4411 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4412 (aarch64_simd_bsl<mode>): Likewise.
4413 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4414
4415 2013-04-25 Marek Polacek <polacek@redhat.com>
4416
4417 PR tree-optimization/57066
4418 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
4419
4420 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4421
4422 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4423
4424 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4425
4426 * config/aarch64/aarch64-builtins.c
4427 (aarch64_fold_builtin): New.
4428 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4429 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4430 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4431 * config/aarch64/arm_neon.h
4432 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4433
4434 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4435 Tejas Belagod <tejas.belagod@arm.com>
4436
4437 * config/aarch64/aarch64-builtins.c
4438 (aarch64_gimple_fold_builtin): New.
4439 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4440 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4441 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4442 (addvv4sf): Update.
4443 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4444
4445 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4446
4447 * config/aarch64/aarch64.md
4448 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4449
4450 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4451
4452 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4453 (*ngcsi_uxtw): New pattern.
4454
4455 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4456 Julian Brown <julian@codesourcery.com>
4457
4458 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4459 (TB_DREG): Add T_V4HF.
4460 (v4hf_UP): New macro.
4461 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4462 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4463 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4464 built-ins.
4465 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
4466 (arm_vector_mode_supported_p): Handle V4HF.
4467 (arm_mangle_map): Handle V4HFmode.
4468 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4469 * config/arm/arm_neon_builtins.def: Add entries for
4470 vcvtv4hfv4sf, vcvtv4sfv4hf.
4471 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4472 (neon_vcvtv4hfv4sf): Likewise.
4473 * config/arm/neon-gen.ml: Handle half-precision floating point
4474 features.
4475 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4476 * config/arm/arm_neon.h: Regenerate.
4477 * config/arm/neon.ml (type elts): Add F16.
4478 (type vectype): Add T_float16x4, T_floatHF.
4479 (type vecmode): Add V4HF.
4480 (type features): Add Requires_FP_bit feature.
4481 (elt_width): Handle F16.
4482 (elt_class): Likewise.
4483 (elt_of_class_width): Likewise.
4484 (mode_of_elt): Refactor.
4485 (type_for_elt): Handle F16, fix error messages.
4486 (vectype_size): Handle T_float16x4.
4487 (vcvt_sh): New function.
4488 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4489 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4490 (string_of_mode): Handle V4HF.
4491 * doc/arm-neon-intrinsics.texi: Regenerate.
4492
4493 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4494
4495 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4496 format specifier in 'X' case.
4497
4498 2013-04-25 Alan Modra <amodra@gmail.com>
4499
4500 PR target/57052
4501 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4502 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4503 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4504 Repeat for many other rotate/shift and mask patterns using subregs.
4505 Name lshiftrt insns.
4506 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4507 on WORDS_BIG_ENDIAN.
4508
4509 2013-04-25 Alan Modra <amodra@gmail.com>
4510
4511 * config.gcc: Support little-endian powerpc-linux targets.
4512 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4513 (LINK_OS_LINUX_SPEC): Define.
4514 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4515 Preserve MASK_LITTLE_ENDIAN.
4516 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4517 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4518 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4519 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4520 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4521 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4522 Correct fp word order for little-endian. Don't shift toc entries
4523 smaller than a word for little-endian.
4524 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4525 (bswapdi2 splits): Correct low-part subreg for little-endian.
4526 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4527 low/high where such is correct only for be.
4528 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4529 little-endian for -mcall-aixdesc.
4530
4531 2013-04-25 Alan Modra <amodra@gmail.com>
4532
4533 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4534 replace_equiv_address_nv.
4535
4536 2013-04-25 Alan Modra <amodra@gmail.com>
4537
4538 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4539
4540 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4541
4542 Revert:
4543 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4544 * rtl.h (struct rtx_def): ...
4545
4546 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4547
4548 PR rtl-optimizations/57046
4549 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4550 for multi-reg splits.
4551
4552 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4553
4554 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4555
4556 2013-04-24 Sterling Augustine <saugustine@google.com>
4557
4558 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4559 (comp_dir_string, debug_str_dwo_section): New.
4560 (DEBUG_STR_DWO_SECTION): Rename to ...
4561 (DEBUG_DWO_STR_SECTION): ... this.
4562 (DEBUG_NORM_STR_SECTION): Delete.
4563 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4564 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4565 (find_AT_string): Move most logic to ...
4566 (find_AT_string_in_table): ... here. New.
4567 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4568 add_skeleton_AT_string. Delete logic.
4569 (output_skeleton_debug_sections): Remove call to
4570 add_top_level_skeleton_die_attrs.
4571 (add_comp_dir_attribute): Move logic to comp_dir_string.
4572 (dwarf2out_init): Initialize debug_str_dwo_section.
4573 (output_indirect_string): Call find_string_form.
4574 (output_indirect_strings): Rewrite.
4575 (prune_unused_types): Empty skeleton_debug_str_hash.
4576 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4577 (dwarf2out_finish): Call output_indirect_strings.
4578
4579 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4580
4581 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4582
4583 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4584
4585 * rtl.h (struct rtx_def): Add comment for field jump.
4586 (LRA_SUBREG_P): New macro.
4587 * recog.c (register_operand): Check LRA_SUBREG_P.
4588 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4589 stack frame.
4590 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4591 (lra_final_code_change): Skip subreg change for operators.
4592 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4593 if there are no operand changes.
4594 * lra-constraints.c (curr_insn_set): New.
4595 (match_reload): Set LRA_SUBREG_P.
4596 (emit_spill_move): Ditto.
4597 (check_and_process_move): Use curr_insn_set. Process only single
4598 set insns. Don't initialize sec_mem_p and change_p.
4599 (simplify_operand_subreg): Use LRA_SUBREG_P.
4600 (reg_in_class_p): New function.
4601 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4602 of #ifdef. Add code to remove cycling.
4603 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4604 non-null disp. Reload inner instead of disp when base and index
4605 are null. Try to put lo_sum into register.
4606 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4607 (check_and_process_move): Move code for move cost check to
4608 simple_move_p. Remove equiv_substitution.
4609 (simple_move_p): New function.
4610 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4611 curr_insn_set. Call check_and_process_move only for single set
4612 insns. Use the new function. Move call of check_and_process_move
4613 after operand equiv substitution and address process.
4614
4615 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4616
4617 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4618 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4619 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4620
4621 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4622
4623 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4624
4625 2013-04-24 Marek Polacek <polacek@redhat.com>
4626
4627 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4628 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4629 (select_loops_exit_conditions): Likewise.
4630 (number_of_iterations_for_all_loops): Likewise.
4631 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4632 (scev_analysis): Likewise.
4633
4634 2013-04-02 Catherine Moore <clm@codesourcery.com>
4635 Chao-ying Fu <fu@mips.com>
4636
4637 * config/mips/micromips.md (jraddiusp): New pattern.
4638 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4639 instruction if possible.
4640
4641 2013-04-24 Alan Modra <amodra@gmail.com>
4642
4643 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4644
4645 2013-04-24 Julian Brown <julian@codesourcery.com>
4646 Chung-Lin Tang <cltang@codesourcery.com>
4647
4648 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
4649 dependency behavior in enumeration type DIE generation. Add TODO note
4650 to comments about future DW_FORM_sdata/udata re-work of related code.
4651
4652 2013-04-23 Lawrence Crowl <crowl@google.com>
4653
4654 * Makefile.in: Update as needed below.
4655
4656 * hash-table.h (class hash_table):
4657 Correct many methods with parameter types compare_type to the correct
4658 value_type. (Correct code was unlikely to notice the change.)
4659 (hash_table::elements_with_deleted) New.
4660 (class hashtable::iterator): New.
4661 (hashtable::begin()): New.
4662 (hashtable::end()): New.
4663 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4664
4665 * statistics.c (statistics_hashes):
4666 Change type to hash_table. Update dependent calls and types.
4667
4668 * tree-into-ssa.c (var_infos):
4669 Change type to hash_table. Update dependent calls and types.
4670
4671 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4672 Change type to hash_table. Update dependent calls and types.
4673
4674 * tree-ssa-loop-im.c (struct mem_ref.refs):
4675 Change type to hash_table. Update dependent calls and types.
4676
4677 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4678 Change type to hash_table. Update dependent calls and types.
4679
4680 * tree-ssa-sccvn.c (vn_tables_s::nary):
4681 Change type to hash_table. Update dependent calls and types.
4682 (vn_tables_s::phis): Likewise.
4683 (vn_tables_s::references): Likewise.
4684
4685 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4686 (vn_reference_eq): Update parameter and return types.
4687
4688 * tree-ssa-structalias.c (pointer_equiv_class_table):
4689 Change type to hash_table. Update dependent calls and types.
4690 (location_equiv_class_table): Likewise.
4691
4692 * tree-vect-data-refs.c: Consequential changes for making
4693 peeling a hash_table.
4694
4695 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4696 (destroy_loop_vec_info): Dependent hash_table update.
4697
4698 * tree-vectorizer.h (peeling_htab):
4699 Change type to hash_table. Update dependent calls and types.
4700
4701 2013-04-23 Shiva Chen <shiva0217@gmail.com>
4702
4703 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4704 to check the register content is equal or not.
4705 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4706 to assign register content record.
4707 * lra-eliminations.c (update_reg_eliminate): Use
4708 lra_update_reg_val_offset to update register content offset.
4709 * lra-int.h (struct lra_reg): Add offset member.
4710 (lra_reg_val_equal_p): New static inline function.
4711 (lra_update_reg_val_offset): New static inline function.
4712 (lra_assign_reg_val): New static inline function.
4713 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4714 to assign register content record.
4715 (initialize_lra_reg_info_element): Initial offset to zero.
4716
4717 2013-04-23 Catherine Moore <clm@codesourcery.com>
4718
4719 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4720 operands. Record compression.
4721
4722 2013-04-23 Xinliang David Li <davidxl@google.com>
4723
4724 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4725
4726 2013-04-23 Richard Biener <rguenther@suse.de>
4727
4728 PR middle-end/57036
4729 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4730 parameter, only add abnormal goto edges from the copied body
4731 if the call could perform abnormal gotos.
4732 (copy_cfg_body): Adjust.
4733
4734 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4735
4736 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4737
4738 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4739
4740 * coretypes.h (gimple_stmt_iterator): Add struct to make
4741 compatible with C.
4742
4743 2013-04-23 Richard Biener <rguenther@suse.de>
4744
4745 PR tree-optimization/57026
4746 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4747 from SSA names occuring in abnormal PHI nodes.
4748
4749 2013-04-22 Andi Kleen <ak@linux.intel.com>
4750
4751 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4752
4753 2013-04-22 Andi Kleen <ak@linux.intel.com>
4754
4755 * lto/lto.c (print_lto_report_1): Declare early.
4756 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4757
4758 2013-04-22 Andi Kleen <ak@linux.intel.com>
4759
4760 * common.opt (-flto-report-wpa): Add.
4761 * doc/invoke.texi (-flto-report-wpa): Add.
4762 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4763 (lto_main): dito.
4764
4765 2013-04-22 Xinliang David Li <davidxl@google.com>
4766
4767 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4768 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4769 * Makefile.in: New dependency
4770
4771 David Daney <ddaney.cavm@gmail.com>
4772
4773 * configure.ac (gcc_cv_as_micromips_support): Use the
4774 --fatal-warnings option.
4775 * configure: Regenerate.
4776
4777 2013-04-22 Marek Polacek <polacek@redhat.com>
4778
4779 PR sanitizer/56990
4780 * tsan.c (instrument_expr): Don't instrument expression
4781 in case its size is zero.
4782
4783 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
4784
4785 PR target/57032
4786 Revert:
4787 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4788
4789 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4790
4791 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4792
4793 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4794 (gimple_stmt_iterator): New typedef.
4795 * gimple.h (gimple_stmt_iterator): Rename to...
4796 (gimple_stmt_iterator_d): ... This.
4797 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4798 trees be valid for GIMPLE and GENERIC.
4799 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4800 * gimple-fold.c (gimple_fold_call): Call target hook
4801 gimple_fold_builtin.
4802 * hooks.c (hook_bool_gsiptr_false): New.
4803 * hooks.h (hook_bool_gsiptr_false): New.
4804 * target.def (fold_stmt): New.
4805 * doc/tm.texi: Regenerate.
4806
4807 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4808
4809 PR target/57018
4810 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4811 a set sp if no stack realignment.
4812
4813 2013-04-22 Nick Clifton <nickc@redhat.com>
4814
4815 * config.gcc (tilegx-linux): Extend extra_objs rather than
4816 overwriting it.
4817 (tilepro-linux): Likewise.
4818
4819 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4820
4821 * config/aarch64/aarch64-builtins.c
4822 (CF): Remove.
4823 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4824 (VAR<1-12>): Add MAP parameter.
4825 (BUILTIN_*): Likewise.
4826 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4827 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4828 (aarch64_ushl_n<mode>): Likewise.
4829 (aarch64_sshr_n<mode>): Likewise.
4830 (aarch64_ushr_n<mode>): Likewise.
4831 (aarch64_<maxmin><mode>): Likewise.
4832 (aarch64_sqrt<mode>): Likewise.
4833 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4834 (vshr<q>_n_*): Likewise.
4835
4836 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4837
4838 * config/aarch64/aarch64-builtins.c
4839 (aarch64_simd_builtin_type_mode): Handle SF types.
4840 (sf_UP): Define.
4841 (BUILTIN_GPF): Define.
4842 (aarch64_init_simd_builtins): Handle SF types.
4843 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4844 (frecps): Likewise.
4845 (frecpx): Likewise.
4846 * config/aarch64/aarch64-simd.md
4847 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4848 (aarch64_frecpe<mode>): New.
4849 (aarch64_frecps<mode>): Likewise.
4850 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4851 (v8type): Add frecp<esx>.
4852 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4853 (aarch64_frecps<mode>): Likewise.
4854 * config/aarch64/iterators.md (FRECP): New.
4855 (frecp_suffix): Likewise.
4856 * config/aarch64/arm_neon.h
4857 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4858
4859 2013-04-22 Christian Bruel <christian.bruel@st.com>
4860
4861 PR target/56995
4862 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4863 (REG_CLASS_NAMES): Idem.
4864 (REG_CLASS_CONTENTS): Idem.
4865 (REGCLASS_HAS_FP_REG): Idem.
4866 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4867 (sh_conditional_register_usage): Idem.
4868
4869 2013-04-21 Jeff Law <law@redhat.com>
4870
4871 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4872 (ssa_forward_propagate_and_combine): Use it.
4873
4874 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4875
4876 * lra.c: Update the flow chart diagram.
4877
4878 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4879
4880 PR rtl-optimization/56847
4881 * lra-constraints.c (process_alt_operands): Discourage alternative
4882 with non-matche doffsettable memory constraint fro memory with
4883 known offset.
4884
4885 2013-04-19 Richard Biener <rguenther@suse.de>
4886
4887 PR tree-optimization/56982
4888 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4889 function.
4890 * gimplify.c (gimplify_call_expr): Notice special calls.
4891 (gimplify_modify_expr): Likewise.
4892 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4893 abnormal control flow receivers.
4894 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4895 in the same way as cfun->has_nonlocal_labels.
4896 (gimple_purge_dead_abnormal_call_edges): Likewise.
4897 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4898 receivers start a basic-block.
4899
4900 2013-04-19 Richard Biener <rguenther@suse.de>
4901
4902 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4903 member ...
4904 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4905 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4906 (SLP_TREE_LOAD_PERMUTATION): Add.
4907 (vect_transform_slp_perm_load): Adjust prototype.
4908 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4909 (vect_free_slp_instance): Likewise.
4910 (vect_create_new_slp_node): Likewise.
4911 (vect_supported_slp_permutation_p): Remove.
4912 (vect_slp_rearrange_stmts): Adjust.
4913 (vect_supported_load_permutation_p): Likewise. Inline
4914 vect_supported_slp_permutation_p here.
4915 (vect_analyze_slp_instance): Compute load permutations per
4916 slp node instead of per instance.
4917 (vect_get_slp_defs): Adjust.
4918 (vect_transform_slp_perm_load): Likewise.
4919 (vect_schedule_slp_instance): Remove redundant code.
4920 (vect_schedule_slp): Remove hack for PR56270, add it ...
4921 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4922 CSE loads for SLP. Adjust.
4923
4924 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4925
4926 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4927 spelling in two comments.
4928
4929 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4930
4931 PR target/56797
4932 * config/arm/arm.c (load_multiple_sequence): Require SP
4933 as base register for loads if SP is in the register list.
4934
4935 2013-04-19 Martin Jambor <mjambor@suse.cz>
4936
4937 PR tree-optimization/56718
4938 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4939 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4940 and made public. Adjusted all callers.
4941 (ipa_intraprocedural_devirtualization): New function.
4942 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4943 (ipa_intraprocedural_devirtualization): Likewise.
4944 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4945
4946 2013-04-19 Richard Biener <rguenther@suse.de>
4947
4948 PR tree-optimization/57000
4949 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4950
4951 2013-04-19 Terry Guo <terry.guo@arm.com>
4952
4953 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4954 Replace with ...
4955 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4956 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4957 (cortex_m4_fmacs): Use new reservations.
4958 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4959
4960 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4961
4962 PR rtl-optimization/56999
4963 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4964 related code.
4965 (lra_coalesce): Remove split_origin_bitmap and related code.
4966 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4967 ranges if necessary.
4968
4969 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
4970
4971 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4972 New array.
4973 (ix86_expand_call): Remove clobbered_registers array and use
4974 x86_64_ms_sysv_extra_clobbered_registers instead.
4975 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4976 Declare here.
4977 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4978 predicate.
4979 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4980 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4981 (*call_value_rex64_ms_sysv): Ditto.
4982
4983 2013-04-18 Cary Coutant <ccoutant@google.com>
4984
4985 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4986 parent instead of die_mark.
4987
4988 2013-04-18 Diego Novillo <dnovillo@google.com>
4989
4990 * gimple.c (create_gimple_tmp): New.
4991 (get_expr_type): New.
4992 (build_assign): New.
4993 (build_type_cast): New.
4994 * gimple.h (enum ssa_mode): Define.
4995 (gimple_seq_set_location): New.
4996 * asan.c (build_check_stmt): Change some gimple_build_* calls
4997 to use build_assign and build_type_cast.
4998
4999 2013-04-18 Richard Biener <rguenther@suse.de>
5000
5001 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5002 handle negative step. Remove redundant checks.
5003 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5004 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5005 for negative step and grouped loads fail to vectorize.
5006
5007 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5008
5009 * emit-rtl.c (reset_insn_used_flags): New function.
5010 (reset_all_used_flags): Use it.
5011 (verify_insn_sharing): New function.
5012 (verify_rtl_sharing): Fix verification for SEQUENCEs.
5013
5014 2013-04-18 Jakub Jelinek <jakub@redhat.com>
5015
5016 PR tree-optimization/56984
5017 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5018 and (x >> M) >= N don't register any assertion if N << M is the
5019 minimum value.
5020
5021 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5022
5023 * lower-subreg.c (resolve_simple_move): If called self-recursive,
5024 do not delete_insn insns that have not yet been emitted, only
5025 unlink them with remove_insn.
5026 * df-scan.c (df_insn_delete): Revert r197492.
5027
5028 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
5029
5030 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5031 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5032
5033 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
5034
5035 * config/arm/arm.md (movsicc_insn): Convert define_insn into
5036 define_insn_and_split.
5037 (and_scc,ior_scc,negscc): Likewise.
5038 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5039
5040 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
5041
5042 * config/arm/arm.c (use_return_insn): Return 0 for targets that
5043 can benefit from using a sequence of LDRD instructions in epilogue
5044 instead of a single LDM instruction.
5045
5046 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5047
5048 PR 45688
5049 * doc/extend.texi: Fix typo.
5050
5051 2013-04-17 Richard Biener <rguenther@suse.de>
5052
5053 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5054 (vect_build_slp_tree): ... here.
5055 (vect_build_slp_tree_1): Compute which stmts of the SLP group
5056 match. Remove special-casing of mismatched complex loads.
5057 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5058 re-try the match with swapped commutative operands.
5059 (vect_supported_load_permutation_p): Remove special-casing of
5060 mismatched complex loads.
5061 (vect_analyze_slp_instance): Adjust.
5062
5063 2013-04-17 Richard Biener <rguenther@suse.de>
5064
5065 PR rtl-optimization/56921
5066 * cfgloop.h (struct loop): Add simple_loop_desc member.
5067 (struct niter_desc): Mark with GTY(()).
5068 (simple_loop_desc): Do not use aux field but simple_loop_desc.
5069 * loop-iv.c (get_simple_loop_desc): Likewise.
5070 (free_simple_loop_desc): Likewise.
5071
5072 Revert
5073 2013-04-16 Richard Biener <rguenther@suse.de>
5074
5075 PR rtl-optimization/56921
5076 * loop-init.c (pass_rtl_move_loop_invariants): Add
5077 TODO_do_not_ggc_collect to todo_flags_finish.
5078 (pass_rtl_unswitch): Same.
5079 (pass_rtl_unroll_and_peel_loops): Same.
5080 (pass_rtl_doloop): Same.
5081
5082 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
5083
5084 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5085 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5086 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5087 references.
5088 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
5089 * tree-streamer.c (record_common_node): Adjust reference in comment.
5090
5091 2013-04-17 Terry Guo <terry.guo@arm.com>
5092
5093 * config/arm/cortex-m4.md: Add a new bypass.
5094
5095 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5096
5097 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
5098 New pattern.
5099 (*subs_<optab><mode>_multp2): New pattern.
5100 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5101 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5102
5103 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5104
5105 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
5106 (*subs_mul_imm_<mode>): New pattern.
5107
5108 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
5109
5110 PR target/56948
5111 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
5112 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
5113 (vsx_movti_32bit): Change j->wa to O->wa.
5114
5115 2013-04-16 Richard Biener <rguenther@suse.de>
5116
5117 PR rtl-optimization/56921
5118 * loop-init.c (pass_rtl_move_loop_invariants): Add
5119 TODO_do_not_ggc_collect to todo_flags_finish.
5120 (pass_rtl_unswitch): Same.
5121 (pass_rtl_unroll_and_peel_loops): Same.
5122 (pass_rtl_doloop): Same.
5123
5124 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
5125
5126 * config/arm/arm.c (emit_multi_reg_push): New declaration
5127 for an existing function.
5128 (arm_emit_strd_push): New function.
5129 (arm_expand_prologue): Used here.
5130 (arm_emit_ldrd_pop): New function.
5131 (arm_expand_epilogue): Used here.
5132 (arm_get_frame_offsets): Update condition.
5133 (arm_emit_multi_reg_pop): Add a special case for load of a single
5134 register with writeback.
5135
5136 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
5137
5138 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
5139 description.
5140
5141 2013-04-16 Richard Biener <rguenther@suse.de>
5142
5143 PR tree-optimization/56756
5144 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
5145 (first_mem_ref_loc): New.
5146 (execute_sm): Place the load temporarily before a previous
5147 access instead of in the latch edge to ensure its SSA dependencies
5148 are defined at points dominating the load.
5149
5150 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
5151
5152 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
5153 correct fix by moving header and footer insn to the footer of
5154 the merged basic block. Clear BB_END of the merged-away block.
5155
5156 PR middle-end/43631
5157 * emit-rtl.c (make_note_raw): New function.
5158 (link_insn_into_chain): New static inline function.
5159 (add_insn): Use it.
5160 (add_insn_before, add_insn_after): Factor insn chain linking code...
5161 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
5162 using link_insn_into_chain.
5163 (note_outside_basic_block_p): New helper function for emit_note_after
5164 and emit_note_before.
5165 (emit_note_after): Use nobb variant of add_insn_after if the note
5166 should not be contained in a basic block.
5167 (emit_note_before): Use nobb variant of add_insn_before if the note
5168 should not be contained in a basic block.
5169 (emit_note_copy): Use make_note_raw.
5170 (emit_note): Likewise.
5171 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
5172 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
5173 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
5174 the moved barrier the tail of the basic block it follows.
5175 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
5176
5177 2013-04-15 Jakub Jelinek <jakub@redhat.com>
5178
5179 PR tree-optimization/56962
5180 * gimple-ssa-strength-reduction.c (record_increment): Only set
5181 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
5182 either rhs1 or rhs2 is equal to c->base_expr.
5183
5184 2013-04-15 Richard Biener <rguenther@suse.de>
5185
5186 PR tree-optimization/56933
5187 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
5188 member.
5189 (GROUP_READ_WRITE_DEPENDENCE): Remove.
5190 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
5191 * tree-vect-data-refs.c (vect_analyze_group_access): Move
5192 dependence check ...
5193 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5194 ... here.
5195 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5196 GROUP_READ_WRITE_DEPENDENCE.
5197
5198 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5199
5200 * emit-rtl.c (reset_all_used_flags): New function.
5201 (verify_rtl_sharing): Call reset_all_used_flags before and after
5202 performing the checks.
5203
5204 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5205
5206 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5207 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5208 * config/arm/constraints.md (De): New constraint.
5209 * config/arm/neon.md (anddi3_neon): Delete.
5210 (neon_vand<mode>): Expand to standard anddi3 pattern.
5211 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5212 Move earlier in the file.
5213 (neon_inv_logic_op2): Likewise.
5214 (arm_anddi_operand_neon): New predicate.
5215
5216 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5217
5218 * configure.ac (gcc_cv_ld_as_needed): Set
5219 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5220 Use -z ignore, -z record on *-*-solaris2*.
5221 (HAVE_LD_AS_NEEDED): Update comment.
5222 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5223 * configure: Regenerate.
5224 * config.in: Regenerate.
5225 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5226 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5227 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5228 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5229 equivalents. Fix markup.
5230 * doc/tm.texi: Regenerate.
5231
5232 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
5233
5234 * config/i386/i386.opt: New option mstack-protector-guard=.
5235 * config/i386/i386-opts.h: Add enum stack_protector_guard.
5236 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5237 TARGET_SSP_TLS_GUARD.
5238 * config/i386/i386.c (ix86_option_override_internal): Set
5239 ix86_stack_protector_guard.
5240 * config/i386/i386.md (stack_protect_set): Enable for
5241 TARGET_SSP_TLS_GUARD only.
5242 (stack_protect_set_<mode>): Ditto.
5243 (stack_protect_test): Ditto.
5244 (stack_protect_test_<mode>): Ditto.
5245 * doc/invoke.texi (i386 Option): Document.
5246
5247 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
5248
5249 PR target/56890
5250 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5251 (S_MODES): Set H_MODE bit.
5252 (SF_MODES): Set only S_MODE and SF_MODE bits.
5253 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5254 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5255 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5256 <MODE_FLOAT>: Likewise.
5257
5258 2013-04-15 Joey Ye <joey.ye@arm.com>
5259
5260 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5261
5262 2013-04-15 Joey Ye <joey.ye@arm.com>
5263
5264 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5265 for real far jump.
5266 (thumb_far_jump_used_p): Count instruction size and set
5267 far_jump_used.
5268
5269 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
5270
5271 * reorg.c (fill_simple_delay_slots): Reindent block of code.
5272 * resource.c (mark_target_live_regs): Reformat conditional block.
5273
5274 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5275
5276 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5277 notes, they are emitted only just before final.
5278 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5279
5280 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5281
5282 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5283 * cfgrtl.c (delete_insn): Call it here instead.
5284 * lra-spills.c (lra_final_code_change): Use delete_insn.
5285 * haifa-sched.c (sched_remove_insn): Likewise.
5286 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5287 returning to the nop pool.
5288 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5289 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
5290
5291 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5292
5293 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5294 * doc/tm.texi: Regenerated.
5295
5296 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
5297
5298 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5299 QImode checks.
5300
5301 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5302
5303 * df-core.c (df_find_def): Compare register numbers.
5304 (df_find_use): Likewise.
5305
5306 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
5307
5308 PR target/56903
5309 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5310 lra_in_progress for return.
5311
5312 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5313
5314 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5315 define_insn into define_insn_and_split and emit movsicc patterns.
5316
5317 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5318
5319 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5320
5321 2013-04-12 Richard Biener <rguenther@suse.de>
5322
5323 * tree-pass.h (TODO_do_not_ggc_collect): New.
5324 * passes.c (execute_one_ipa_transform_pass): Honor
5325 TODO_do_not_ggc_collect.
5326 (execute_one_pass): Likewise.
5327
5328 Revert
5329 2013-04-10 Richard Biener <rguenther@suse.de>
5330
5331 * passes.c (init_optimization_passes): Remove reload pass.
5332 * ira.c (do_reload): Merge into ...
5333 (ira): ... this.
5334 (rest_of_handle_reload): Remove.
5335 (pass_reload): Likewise.
5336 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5337 of reload for vzeroupper pass placement.
5338
5339 2013-04-12 Jakub Jelinek <jakub@redhat.com>
5340
5341 PR tree-optimization/56918
5342 PR tree-optimization/56920
5343 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5344 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
5345 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
5346 use wide_mul_with_sign method.
5347
5348 2013-04-12 Richard Biener <rguenther@suse.de>
5349
5350 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5351 not be considered a gimple constant.
5352
5353 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
5354
5355 * fold-const.c (const_binop): Handle vector shifts by a scalar.
5356 (fold_binary_loc): Call const_binop also for mixed vector-scalar
5357 operations.
5358
5359 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
5360 Jakub Jelinek <jakub@redhat.com>
5361
5362 * opts.c: Include diagnostic-color.h.
5363 (common_handle_option): Handle OPT_fdiagnostics_color_.
5364 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5365 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5366 (diagnostic-color.o): New.
5367 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5368 (diagnostic_color_rule): New enum.
5369 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5370 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5371 the location string.
5372 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5373 either NULL, or color kind.
5374 * diagnostic-color.c: New file.
5375 * diagnostic-color.h: New file.
5376 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5377 arguments.
5378 * doc/invoke.texi (-fdiagnostics-color): Document.
5379 * pretty-print.h (pp_show_color): Define.
5380 (struct pretty_print_info): Add show_color field.
5381 * diagnostic.c: Include diagnostic-color.h.
5382 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5383 macros. Colorize error:, warning: etc. strings and also the location
5384 string.
5385 (diagnostic_show_locus): Colorize the caret line.
5386 * pretty-print.c: Include diagnostic-color.h.
5387 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5388 inside of %< %> quotes or quoted through q format modifier.
5389
5390 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5391
5392 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
5393
5394 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5395
5396 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5397 code in CC_NZ mode.
5398 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5399 pattern.
5400
5401 2013-04-11 Marek Polacek <polacek@redhat.com>
5402
5403 PR tree-optimization/48184
5404 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
5405
5406 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5407
5408 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5409 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5410 (skip_simple_arithmetic): Tidy up.
5411 * tree.h (skip_simple_constant_arithmetic): Declare.
5412
5413 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5414
5415 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5416
5417 2013-04-11 Richard Biener <rguenther@suse.de>
5418
5419 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5420 generate vector constants.
5421
5422 2013-04-11 Richard Biener <rguenther@suse.de>
5423
5424 PR tree-optimization/56878
5425 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5426 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5427 New function.
5428 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5429 Prefer to align the DR with the most invariant base address.
5430
5431 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5432
5433 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5434 comment.
5435
5436 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5437
5438 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5439 floating-point vector comparisons against 0.
5440
5441 2013-04-11 Jakub Jelinek <jakub@redhat.com>
5442
5443 PR tree-optimization/56899
5444 * fold-const.c (extract_muldiv_1): Apply distributive law
5445 only if TYPE_OVERFLOW_WRAPS (ctype).
5446
5447 2013-04-11 Bin Cheng <bin.cheng@arm.com>
5448
5449 PR target/56124
5450 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5451 loading has side effect.
5452
5453 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5454
5455 * config/sparc/sparc.c: Include tree-pass.h.
5456 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5457 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5458 head of file. Change return type. Split off gate function.
5459 (sparc_gate_work_around_errata): New function.
5460 (pass_work_around_errata): New pass definition.
5461 (insert_pass_work_around_errata) New pass insert definition to
5462 insert pass_work_around_errata just after delayed-branch scheduling.
5463 (sparc_option_override): Insert the pass.
5464 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5465
5466 2013-04-10 David S. Miller <davem@davemloft.net>
5467
5468 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5469 or -mcpu=hypersparc.
5470
5471 * target.def (cstore_mode): New hook.
5472 * target.h: Include insn-codes.h
5473 * targhooks.c: Likewise.
5474 (default_cstore_mode): New function.
5475 * targhooks.h: Declare it.
5476 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5477 * doc/tm.texi: Rebuild.
5478 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5479 target hook, rather than inspecting the insn_data.
5480 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5481 (TARGET_CSTORE_MODE): Redefine.
5482 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5483 result patterns.
5484 * config/sparc/predicates.md (cstore_result_operand): New special
5485 predicate.
5486 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5487 Use it for operand 0.
5488 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5489 (*snesi_special): Likewise.
5490 (*snesi_zero): Likewise.
5491 (*seqsi_zero): Likewise.
5492 (*sltu_insn): Likewise.
5493 (*sgeu_insn): Likewise.
5494 (*seqdi_special): Make operand 0 and comparison operation be of
5495 DImode.
5496 (*snedi_special): Likewise.
5497 (*snedi_special_vis3): Likewise.
5498 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5499 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5500 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5501 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5502 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5503 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5504 (*sltu_extend_sp64): Likewise.
5505 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5506 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5507 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5508 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5509 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5510
5511 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5512
5513 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5514 (aarch64_start_file): Use the new function.
5515
5516 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5517 Jason Merrill <jason@redhat.com>
5518
5519 * common.opt: Add -gdwarf.
5520 * opts.c (common_handle_option): Handle it.
5521 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5522
5523 2013-04-10 Richard Biener <rguenther@suse.de>
5524
5525 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5526 (execute_one_ipa_transform_pass): But unconditionally here.
5527 (execute_one_pass): And here.
5528 (init_optimization_passes): Remove reload pass.
5529 * tree-pass.h (TODO_ggc_collect): Remove.
5530 (pass_reload): Likewise.
5531 * ira.c (do_reload): Merge into ...
5532 (ira): ... this.
5533 (rest_of_handle_reload): Remove.
5534 (pass_reload): Likewise.
5535 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5536 of reload for vzeroupper pass placement.
5537 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5538 and todo_flags_finish of all passes.
5539
5540 2013-04-10 Richard Biener <rguenther@suse.de>
5541
5542 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5543 first_const_oprnd field, rename first_def_type to first_op_type.
5544 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5545 (vect_get_and_check_slp_defs): Always use the type of the
5546 operand. Allow mixed vect_external_def, vect_constant_def types.
5547 (vect_get_constant_vectors): Handle mixed vect_external_def,
5548 vect_constant_def types.
5549
5550 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5551
5552 PR tree-optimization/55524
5553 * tree-ssa-math-opts.c
5554 (convert_mult_to_fma): Don't use an fms construct
5555 when we don't have an fms operation, but fnma, and it looks
5556 likely that we'll be able to use the latter.
5557
5558 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5559
5560 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5561 function.
5562 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5563 inline fail caused by overwritable functions.
5564
5565 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5566
5567 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5568 unnecessary bits in the constant power of two case.
5569
5570 2013-04-10 Richard Biener <rguenther@suse.de>
5571
5572 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5573 broken code swapping operands.
5574 (vect_build_slp_tree): Do not compute load permutations here.
5575 (vect_analyze_slp_instance): Compute load permutations here,
5576 after building the SLP tree.
5577
5578 2013-04-09 Christian Bruel <christian.bruel@st.com>
5579
5580 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5581 of next/prev_real_insn.
5582
5583 2013-04-09 Jan Hubicka <jh@suse.cz>
5584
5585 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5586 Drop aliased parameter.
5587 (function_and_variable_visibility): Do not handle alias pairs.
5588 * cgraph.c (varpool_externally_visible_p): Update prototype.
5589 * varpool.c (varpool_add_new_variable): Update.
5590
5591 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5592
5593 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5594
5595 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5596
5597 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5598
5599 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5600
5601 2013-04-09 Marek Polacek <polacek@redhat.com>
5602
5603 PR tree-optimization/48762
5604 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
5605
5606 2013-04-09 Richard Biener <rguenther@suse.de>
5607
5608 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5609 dealing with cost.
5610 (vect_build_slp_tree): Likewise.
5611 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5612 calculating the cost of a SLP instance.
5613 (vect_analyze_slp_instance): Use it from here, after building
5614 the SLP tree.
5615
5616 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5617
5618 PR middle-end/56883
5619 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5620 expand_omp_for_static_chunk): Use simple_p = true in
5621 force_gimple_operand_gsi calls when assigning to addressable decls.
5622
5623 2013-04-09 Jeff Law <law@redhat.com>
5624
5625 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5626 when the boolean was created by converting a wider object which
5627 had a boolean range.
5628
5629 2013-04-09 Richard Biener <rguenther@suse.de>
5630
5631 * tree-vectorizer.h (slp_void_p): Remove.
5632 (slp_tree): Typedef before _slp_tree declaration.
5633 (struct _slp_tree): Use a vector of slp_tree as children.
5634 (vect_get_place_in_interleaving_chain): Remove.
5635 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5636 Move ...
5637 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5638 and make static.
5639 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5640 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5641 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5642 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5643 Use slp_node instead of slp_void_p and adjust.
5644
5645 2013-04-09 Richard Biener <rguenther@suse.de>
5646
5647 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5648 work that is not necessary.
5649
5650 2013-04-09 Jakub Jelinek <jakub@redhat.com>
5651
5652 PR tree-optimization/56854
5653 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5654 forward into clobber stmts if it would change MEM_REF lhs into
5655 non-MEM_REF.
5656
5657 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5658
5659 * tree.c (type_hash_lookup, type_hash_add): Make static.
5660 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5661
5662 2013-04-09 Richard Biener <rguenther@suse.de>
5663
5664 * tree.h (unsave_expr_now): Remove.
5665 * tree-inline.c (mark_local_for_remap_r): Remove.
5666 (unsave_expr_1): Likewise.
5667 (unsave_r): Likewise.
5668 (unsave_expr_now): Likewise.
5669 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5670 (propagate_tree_value): Likewise.
5671
5672 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5673
5674 * doc/rtl.texi (sequence): Rewrite documentation to match the
5675 current use of SEQUENCE rtl objects.
5676 * rtl.def (SEQUENCE): Likewise.
5677
5678 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5679 Update documentation.
5680 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5681 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5682
5683 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5684
5685 2013-04-08 Teresa Johnson <tejohnson@google.com>
5686
5687 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5688 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
5689 methods.
5690 (estimate_edge_size_and_time): Add comment to suggest using rounding
5691 methods.
5692 (estimate_node_size_and_time): Ditto.
5693 (remap_edge_change_prob): Use helper rounding divide methods.
5694 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5695 (gimple_mod_pow2_value_transform): Ditto.
5696 (gimple_mod_subtract_transform): Ditto.
5697 (gimple_ic_transform): Ditto.
5698 (gimple_stringops_transform): Ditto.
5699 * stmt.c (conditional_probability): Ditto.
5700 (emit_case_dispatch_table): Ditto.
5701 * lto-cgraph.c (merge_profile_summaries): Ditto.
5702 * tree-optimize.c (execute_fixup_cfg): Ditto.
5703 * cfgcleanup.c (try_forward_edges): Ditto.
5704 * cfgloopmanip.c (scale_loop_profile): Ditto.
5705 (loopify): Ditto.
5706 (duplicate_loop_to_header_edge): Ditto.
5707 (lv_adjust_loop_entry_edge): Ditto.
5708 * tree-vect-loop.c (vect_transform_loop): Ditto.
5709 * profile.c (compute_branch_probabilities): Ditto.
5710 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5711 * lto-streamer-in.c (input_cfg): Ditto.
5712 * gimple-streamer-in.c (input_bb): Ditto.
5713 * ipa-cp.c (update_profiling_info): Ditto.
5714 (update_specialized_profile): Ditto.
5715 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5716 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
5717 rounding methods.
5718 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5719 (compute_trg_info): Ditto.
5720 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5721 (purge_dead_edges): Ditto.
5722 * loop-unswitch.c (unswitch_loop): Ditto.
5723 * cgraphclones.c (cgraph_clone_edge): Ditto.
5724 (cgraph_clone_node): Ditto.
5725 * tree-inline.c (copy_bb): Ditto.
5726 (copy_edges_for_bb): Ditto.
5727 (initialize_cfun): Ditto.
5728 (copy_cfg_body): Ditto.
5729 (expand_call_inline): Ditto.
5730
5731 2013-04-08 Kai Tietz <ktietz@redhat.com>
5732
5733 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5734 TARGET_CYGWIN64 by TARGET_64BIT.
5735
5736 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5737
5738 * config/epiphany/epiphany.md (GPR_1): New constant.
5739 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5740 * config/epiphany/epiphany.c (gen_compare_reg):
5741 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5742 is already in place.
5743 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5744 Don't require being called during rtl expansion; If y operlaps r0,
5745 return 0.
5746 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5747 (epiphany_expand_epilogue): Likewise.
5748
5749 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5750 Don't use CC_FPmode for ORDERED / UNORDERED.
5751 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
5752
5753 * config/epiphany/constraints.md (CnL): New constraint.
5754 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5755 * config/epiphany/predicates.md (add_operand): Allow 1024.
5756
5757 * config/epiphany/epiphany.md (logical_op): New code iterator.
5758 (op_mnc): New code attribute.
5759 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5760 (mov_f+1, mov_f+2): New peephole2 patterns.
5761
5762 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5763 (cstoresi4): Also allow re-use of zero result when doing a NE
5764 comparison to a non-zero operand.
5765 Use (clobber (scratch)) for first insn if the gpr output is not needed.
5766
5767 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5768 Use gen_addsi3_i / gen_subsi3_i.
5769
5770 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5771
5772 PR c++/34949
5773 PR c++/50243
5774 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5775 contain anything but clobbers, at most one __builtin_stack_restore,
5776 optionally debug stmts and final resx, and if it has at least one
5777 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5778 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5779 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5780 which isn't defaut definition, remove them.
5781 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5782 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5783 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5784 with MEM_REF LHS with SSA_NAME address.
5785
5786 2013-04-08 Jeff Law <law@redhat.com>
5787
5788 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
5789
5790 2013-04-08 Richard Biener <rguenther@suse.de>
5791
5792 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5793 extra newline.
5794 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5795 determined vector type.
5796 (vect_analyze_data_refs): Likewise.
5797 (vect_get_new_vect_var): Adjust.
5798 (vect_create_destination_var): Preserve SSA name versions.
5799 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5800 not dump anything here.
5801
5802 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5803
5804 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5805 Add member lr_slot_known.
5806 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5807 if necessary.
5808 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5809 Remove code that sets lr_slot_offset according to what a previous
5810 version of epiphany_emit_save_restore used to do.
5811 (epiphany_emit_save_restore): When doing an lr save or restore,
5812 set/verify lr_slot_known and lr_slot_offset.
5813
5814 2013-04-08 Xinyu Qi <xyqi@marvell.com>
5815
5816 PR target/54338
5817 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
5818 in ALL_REGS.
5819
5820 2013-04-08 Richard Biener <rguenther@suse.de>
5821
5822 * alias.c (find_base_term): Fix thinko in previous change.
5823
5824 2013-04-08 Jakub Jelinek <jakub@redhat.com>
5825
5826 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5827 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5828 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5829 if possible to compute val.
5830 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5831 For QImode integers don't require anything about precision. Use
5832 const_with_all_bytes_same to find out if the constant doesn't have
5833 repeated bytes in it.
5834
5835 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5836
5837 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5838 within mode size.
5839
5840 2013-04-08 Marek Polacek <polacek@redhat.com>
5841
5842 PR rtl-optimization/48182
5843 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5844 value to 1.
5845
5846 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5847
5848 PR target/55487
5849 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5850 nuses, make sure we have a label.
5851
5852 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5853
5854 PR target/56843
5855 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5856 (rs6000_emit_swdiv_low_precision): Remove.
5857 (rs6000_emit_swdiv): Rewrite to handle between one and four
5858 iterations of Newton-Raphson generally; modify required number of
5859 iterations for some cases.
5860 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5861
5862 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5863
5864 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5865 set-but-unused variable.
5866
5867 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5868 basic blocks of released function bodies garbage-collectable.
5869
5870 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5871 (struct rtl_opt_pass): Add TODO_df_finish.
5872
5873 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5874
5875 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5876
5877 * config/arm/constraints.md (q): New constraint.
5878 * config/arm/ldrdstrd.md: New file.
5879 * config/arm/arm.md (ldrdstrd.md) New include.
5880 (arm_movdi): Use "q" instead of "r" constraint
5881 for double-word memory access.
5882 (movdf_soft_insn): Likewise.
5883 * config/arm/vfp.md (movdi_vfp): Likewise.
5884 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
5885 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
5886 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5887 (mem_ok_for_ldrd_strd): Likewise.
5888 (output_move_double): Update assertion.
5889
5890 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5891
5892 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5893
5894 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5895
5896 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5897 define_insn_and_split.
5898 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5899
5900 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5901
5902 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5903 define_insn_and_split.
5904 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
5905 (shiftsi3_compare): New pattern.
5906 (rrx): New pattern.
5907 * config/arm/unspecs.md (UNSPEC_RRX): New.
5908
5909 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5910
5911 * config/arm/arm.md (negdi_extendsidi): New pattern.
5912 (negdi_zero_extendsidi): Likewise.
5913
5914 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5915
5916 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5917 define_insn_and_split.
5918 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5919 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5920
5921 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5922
5923 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5924 define_insn_and_split.
5925 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5926 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5927
5928 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5929
5930 * config/arm/arm.md (subsi3_carryin): New pattern.
5931 (subsi3_carryin_const): Likewise.
5932 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5933 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5934
5935 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5936
5937 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5938
5939 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5940
5941 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
5942 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
5943
5944 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5945
5946 * config/arm/arm.c (arm_expand_builtin): Change fcode
5947 type to unsigned int.
5948
5949 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5950
5951 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5952
5953 2013-04-04 Ian Lance Taylor <iant@google.com>
5954
5955 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5956 language standard.
5957
5958 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5959
5960 PR middle-end/56729
5961 * df-scan.c (df_insn_delete): Disable failing assert.
5962
5963 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5964
5965 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5966 New function prototype.
5967 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5968 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5969 (arm_builtin_vectorized_function): New function.
5970
5971 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5972
5973 * config/arm/arm_neon_builtins.def: New file.
5974 * config/arm/arm.c (neon_builtin_data): Move contents to
5975 arm_neon_builtins.def.
5976 (enum arm_builtins): Include neon builtin definitions.
5977 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
5978 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
5979
5980 2013-04-04 Marek Polacek <polacek@redhat.com>
5981
5982 PR tree-optimization/48186
5983 * predict.c (maybe_hot_frequency_p): Return false if
5984 HOT_BB_FREQUENCY_FRACTION is 0.
5985 (cgraph_maybe_hot_edge_p): Likewise.
5986
5987 2013-04-04 Richard Biener <rguenther@suse.de>
5988
5989 PR tree-optimization/56826
5990 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5991 more accurately.
5992
5993 2013-04-04 Richard Biener <rguenther@suse.de>
5994
5995 PR tree-optimization/56213
5996 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
5997 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
5998
5999 2013-04-04 Richard Biener <rguenther@suse.de>
6000
6001 PR tree-optimization/56837
6002 * tree-loop-distribution.c (classify_partition): For non-zero
6003 values require that the value has the same precision as its
6004 mode to be useful as memset value.
6005
6006 2013-04-03 Nick Clifton <nickc@redhat.com>
6007
6008 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
6009 (fmssf4): Use fmsf.s on E3V5 architectures.
6010 (fnmasf4): Use fnmaf.s on E3V5 architectures.
6011 (fnmssf4): Use fnmsf.s on E3V5 architectures.
6012
6013 2013-04-03 Jeff Law <law@redhat.com>
6014
6015 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6016 (lra-eliminations.o): Likewise.
6017
6018 2013-04-03 Teresa Johnson <tejohnson@google.com>
6019
6020 * gcov-io.c (compute_working_sets): Moved most of body of old
6021 compute_working_sets here from profile.c.
6022 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
6023 (gcov_working_set_t): Moved typedef here from basic-block.h
6024 (compute_working_set): Declare.
6025 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6026 (get_working_sets): Renamed from compute_working_set,
6027 replace most of body with call to new compute_working_sets.
6028 (get_exec_counts): Replace call to compute_working_sets
6029 to get_working_sets.
6030 * profile.h (get_working_sets): Renamed from compute_working_set.
6031 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
6032 to get_working_sets.
6033 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6034 * gcov-dump.c (dump_working_sets): New function.
6035
6036 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
6037
6038 * hwint.c (sext_hwi, zext_hwi): New functions.
6039 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6040 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6041 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6042 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6043 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6044 (sext_hwi, zext_hwi): New functions.
6045
6046 2013-04-03 Jeff Law <law@redhat.com>
6047
6048 PR tree-optimization/56799
6049 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6050 back test for widening conversion erroneously dropped in prior change.
6051
6052 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6053
6054 PR target/56809
6055 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6056 instead of next_real_insn.
6057
6058 2013-04-03 Marek Polacek <polacek@redhat.com>
6059
6060 PR sanitizer/55702
6061 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
6062
6063 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6064
6065 PR target/56809
6066 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6067 next_real_insn.
6068 (thumb1_output_casesi): Likewise.
6069 (thumb2_output_casesi): Likewise.
6070
6071 2013-04-03 Richard Biener <rguenther@suse.de>
6072
6073 PR tree-optimization/56817
6074 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6075 Split out ...
6076 (tree_unroll_loops_completely_1): ... new function to manually
6077 walk the loop tree, properly defering outer loops of unrolled
6078 loops to later iterations.
6079
6080 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6081
6082 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6083 (vectorizable_load): Likewise.
6084 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6085 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6086
6087 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6088
6089 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
6090 BIT_FIELD_REF.
6091
6092 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6093
6094 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
6095
6096 2013-04-03 Bin Cheng <bin.cheng@arm.com>
6097
6098 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
6099
6100 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6101
6102 PR tree-optimization/56790
6103 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
6104 folding.
6105
6106 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
6107
6108 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6109 Handle VEC_MERGE.
6110 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
6111 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
6112 equal arguments.
6113
6114 2013-04-03 Jakub Jelinek <jakub@redhat.com>
6115
6116 PR c/19449
6117 * tree.h (force_folding_builtin_constant_p): New decl.
6118 * builtins.c (force_folding_builtin_constant_p): New variable.
6119 (fold_builtin_constant_p): Fold immediately also if
6120 force_folding_builtin_constant_p.
6121
6122 2013-04-03 Richard Biener <rguenther@suse.de>
6123
6124 PR tree-optimization/56812
6125 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6126 DRs of the same interleaving chain are independent.
6127
6128 2013-04-02 Jason Merrill <jason@redhat.com>
6129
6130 * gdbinit.in (pbb): Use debug fn.
6131
6132 2013-04-02 Lawrence Crowl <crowl@google.com>
6133
6134 * sese.h (struct ivtype_map_elt_s): Remove unused.
6135 (extern debug_ivtype_map): Remove unused.
6136 (extern eq_ivtype_map_elts): Remove unused.
6137 * sese.c (debug_ivtype_map): Removed unused.
6138 (debug_ivtype_map_1): Removed unused.
6139 (debug_ivtype_elt): Remove unused.
6140 (eq_ivtype_map_elts): Remove unused.
6141
6142
6143 2013-04-02 Kai Tietz <ktietz@redhat.com>
6144
6145 PR target/52790
6146 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
6147 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
6148 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
6149 function.
6150 (legitimize_pe_coff_symbol): Likewise.
6151 (is_imported_p): New helper-function.
6152 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
6153 for Windows x64 targets.
6154 (ix86_expand_prologue): Optimize for pe-coff targets.
6155 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
6156 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
6157 medium/large code-model.
6158 (legitimize_pic_address): Likewise.
6159 (legitimize_tls_address): Likewise.
6160 (ix86_expand_call): Likewise.
6161 (x86_output_mi_thunk): Likewise.
6162 (get_dllimport_decl): Add new beimport argument.
6163 (construct_plt_address): Don't assert for x64 pe-coff targets.
6164 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
6165 targets.
6166 (SYMBOL_FLAG_STUBVAR): New macro.
6167 (SYMBOL_REF_STUBVAR_P): Likewise.
6168 * config/i386/winnt.c (stub_list): New structure.
6169 (stub_head): New local variable.
6170 (i386_pe_record_stub): New function.
6171 (i386_pe_file_end): Emit refptr-stubs.
6172
6173 2013-04-02 Jakub Jelinek <jakub@redhat.com>
6174
6175 PR rtl-optimization/56745
6176 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
6177 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
6178
6179 PR c++/34949
6180 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
6181 and both of them are MEM_REFs, just compare first argument for
6182 equality and attempt to deal even with differing offsets.
6183
6184 PR c++/34949
6185 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
6186 of gimple_clobber_p to be MEM_REF.
6187 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
6188 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
6189 after gimplification.
6190 * asan.c (get_mem_ref_of_assignment): Don't instrument
6191 gimple_clobber_p stmts.
6192 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6193 gimple_clobber_p stmt if they have MEM_REF lhs and
6194 are dead because of another gimple_clobber_p stmt.
6195 * tree-ssa-live.c (clear_unused_block_pointer): Treat
6196 gimple_clobber_p stmts like debug stmts.
6197 (remove_unused_locals): Remove clobbers with MEM_REF lhs
6198 that refer to unused VAR_DECLs or uninitialized values.
6199 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6200 gimple_clobber_p stmts if they refer to removed parameters.
6201 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6202 formatting.
6203
6204 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
6205
6206 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6207 using SWI48 mode attribute.
6208
6209 2013-04-02 Wei Mi <wmi@google.com>
6210
6211 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6212 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6213 *<rotate_insn><mode>3_mask in i386.md.
6214
6215 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
6216
6217 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6218
6219 2013-04-02 Richard Biener <rguenther@suse.de>
6220
6221 PR tree-optimization/56778
6222 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6223 Runtime alias tests are not supported for gather loads.
6224 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6225 stmts referenced from SSA operands before updating SSA form.
6226
6227 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
6228 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6229
6230 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
6231 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6232 * config/arm/cortex-a53.md: New file.
6233 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6234 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6235 * config/arm/arm.c (arm_issue_rate): Likewise.
6236 * config/arm/arm-tune.md: Regenerate
6237 * config/arm/arm-tables.opt: Regenerate.
6238 * config/arm/arm-cores.def: Add cortex-a53.
6239
6240 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
6241
6242 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6243 non-static link.
6244
6245 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6246
6247 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6248 scalar load/store operations using B/H registers.
6249 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6250
6251 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6252
6253 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6254 scalar move.
6255 * config/aarch64/aarch64.c
6256 (aarch64_simd_scalar_immediate_valid_for_move): New.
6257 * config/aarch64/aarch64-protos.h
6258 (aarch64_simd_scalar_immediate_valid_for_move): New.
6259 * config/aarch64/constraints.md (Dh, Dq): New.
6260 * config/aarch64/iterators.md (hq): New.
6261
6262 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
6263
6264 * reorg.c (get_branch_condition): Deal with conditional returns.
6265 (fill_simple_delay_slots): Remove dead code dealing with jumps.
6266
6267 2013-04-01 Wei Mi <wmi@google.com>
6268
6269 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6270 Truncate operand 2 using %b asm operand modifier.
6271 (*<shift_insn><mode>3_mask): Ditto.
6272 (*<rotate_insn><mode>3_mask): Ditto.
6273
6274 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
6275
6276 PR middle-end/56798
6277 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6278
6279 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
6280
6281 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6282 of next_real_insn.
6283 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6284
6285 2013-03-30 Lawrence Crowl <crowl@google.com>
6286
6287 * dse.c (clear_alias_sets): Remove never set.
6288 (disqualified_clear_alias_sets): Remove never set.
6289 (clear_alias_mode_pool): Remove never set.
6290 (dse_step0): Remove condition that is never true.
6291 (canon_address): Remove condition that is never true.
6292 (dse_step7): Remove condition that is never true.
6293 (rest_of_handle_dse): Remove condition that is never true.
6294 (rest_of_handle_dse::did_global): Remove never read from above.
6295 (dse_step2_spill): Remove never called from above.
6296 (dse_step5_spill): Remove never called from above.
6297
6298 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
6299
6300 * doc/md.texi (Standard Names) <casesi>: Update documentation for
6301 JUMP_TABLE_DATA changes.
6302 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6303 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6304 (Insns) <jump_table_data>: New entry.
6305 * doc/tm.texi: Regenerate.
6306
6307 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6308
6309 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6310 for table jump at the end of a basic block using tablejump_p.
6311 * targhooks.c (default_invalid_within_doloop): Likewise.
6312 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6313 target hook implementation that is identical to the default hook.
6314 (rs6000_invalid_within_doloop): Remove.
6315
6316 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6317 unused variable from tablejump_p call.
6318
6319 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6320 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6321 (INSN_DELETED_P): Likewise.
6322 (emit_jump_table_data): New prototype.
6323 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6324 after 4th as unused.
6325 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6326 * sched-vis.c (print_insn): Likewise.
6327 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6328 insn for compatibility with back ends that use next_active_insn to
6329 identify jump table data.
6330 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6331 (remove_insn): Likewise.
6332 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6333 to be emitted.
6334 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6335 (emit_jump_table_data): New function.
6336
6337 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6338 basic block, a JUMP_TABLE_DATA never is.
6339 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6340 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6341 off from code handling real insns.
6342 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6343 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6344 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6345 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6346 is not a NONDEBUG_INSN_P.
6347 * ira-costs.c (scan_one_insn): Likewise.
6348 * jump.c (mark_all_labels): Likewise.
6349 (mark_jump_label_1): Likewise.
6350 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6351 * lra.c (get_insn_freq): Expect all insns reaching here to be in
6352 a basic block.
6353 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6354 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6355 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6356 JUMP_TABLE_DATA_P insns.
6357 (calculate_elim_costs_all_insns): Likewise.
6358 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6359 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6360 (delete_output_reload): Code style fixups.
6361 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6362 insn flags on this non-insn.
6363 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6364 as scheduling barriers, for pre-change compatibility.
6365 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6366 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6367
6368 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6369 redundant JUMP_TABLE_DATA_P test.
6370 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6371 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6372 (frv_for_each_packet): Likewise.
6373 * config/i386/i386.c (min_insn_size): Likewise.
6374 (ix86_avoid_jump_mispredicts): Likewise.
6375 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6376 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6377 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6378 (mips16_insn_length): Robustify.
6379 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6380 (mips16_split_long_branches): Likewise.
6381 * config/pa/pa.c (pa_combine_instructions): Likewise.
6382 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6383 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6384 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6385 as contributing to pool range lengths.
6386 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6387 Remove redundant JUMP_TABLE_DATA_P test.
6388 (sh_loop_align): Likewise.
6389 (split_branches): Likewise.
6390 (sh_insn_length_adjustment): Likewise.
6391 * config/spu/spu.c (get_branch_target): Likewise.
6392
6393 2013-03-29 Jan Hubicka <jh@suse.cz>
6394
6395 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6396 gcov streaming; stream hot bb threshold to ltrans.
6397 * predict.c (get_hot_bb_threshold): Break out from ....
6398 (maybe_hot_count_p): ... here.
6399 (set_hot_bb_threshold): New function.
6400 * lto-section-in.c (lto_section_name): Add profile.
6401 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6402 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6403 and data-streamer.h
6404 (histogram_entry): New structure.
6405 (histogram, histogram_pool): New global vars.
6406 (histogram_hash): New structure.
6407 (histogram_hash::hash): New method.
6408 (histogram_hash::equal): Likewise.
6409 (account_time_size): New function.
6410 (cmp_counts): New function.
6411 (dump_histogram): New function.
6412 (ipa_profile_generate_summary): New function.
6413 (ipa_profile_write_summary): New function.
6414 (ipa_profile_read_summary): New function.
6415 (ipa_profile): Decide on threshold.
6416 (pass_ipa_profile): Add ipa_profile_write_summary and
6417 ipa_profile_read_summary.
6418 * Makefile.in (ipa.o): Update dependencies.
6419 * lto-streamer.h (LTO_section_ipa_profile): New section.
6420
6421 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6422
6423 * tree.h (VAR_P): New.
6424
6425 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6426
6427 PR lto/56777
6428 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6429
6430 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6431
6432 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6433 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6434 (control_flow_insn_p): Likewise.
6435 * cfgrtl.c (duplicate_insn_chain): Likewise.
6436 * final.c (get_attr_length_1): Likewise.
6437 (shorten_branches): Likewise.
6438 (final_scan_insn): Likewise.
6439 * function.c (instantiate_virtual_regs): Likewise.
6440 * gcse.c (insert_insn_end_basic_block): Likewise.
6441 * ira-costs.c (scan_one_insn): Likewise.
6442 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6443 * lra.c (check_rtl): Likewise.
6444 * reload1.c (elimination_costs_in_insn): Likewise.
6445 * reorg.c (follow_jumps): Likewise.
6446
6447 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6448 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6449 (thumb_far_jump_used_p): Likewise.
6450 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6451 (workaround_speculation): Likewise.
6452 (add_sched_insns_for_speculation): Likewise.
6453 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6454 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6455 (frv_for_each_packet): Likewise.
6456 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6457 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6458 (final_emit_insn_group_barriers): Likewise.
6459 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6460 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6461 (mips16_insn_length): Likewise.
6462 * config/pa/pa.c (pa_reorg): Likewise.
6463 (pa_combine_instructions): Likewise.
6464 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6465 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6466 (sh_reorg): Likewise.
6467 (split_branches): Likewise.
6468 * config/spu/spu.c (get_branch_target): Likewise.
6469
6470 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6471 JUMP_TABLE_DATA_P.
6472
6473 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6474
6475 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
6476 Fix declaration name.
6477
6478 2013-03-28 Lawrence Crowl <crowl@google.com>
6479
6480 * graphds.h (struct graph.indicies): Remove unused.
6481 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6482 (SCOP_ORIGINAL_PDDRS): Remove unused.
6483 * sese.h (extern insert_loop_close_phis): Removed unused.
6484 (extern insert_guard_phis): Removed unused.
6485 (extern ivtype_map_elt_info): Removed unused.
6486 (new_ivtype_map_elt): Removed unused.
6487 * sese.c (ivtype_map_elt_info): Removed unused.
6488
6489 2013-03-28 Lawrence Crowl <crowl@google.com>
6490
6491 * Makefile.in: Add several missing include dependences.
6492 (DUMPFILE_H): New.
6493 (test-dump.o): New. This object is not added to any executable,
6494 but is present for ad-hoc testing.
6495 * bitmap.c
6496 (debug (const bitmap_head_def &)): New.
6497 (debug (const bitmap_head_def *)): New.
6498 * bitmap.h
6499 (extern debug (const bitmap_head_def &)): New.
6500 (extern debug (const bitmap_head_def *)): New.
6501 * cfg.c
6502 (debug (edge_def &)): New.
6503 (debug (edge_def *)): New.
6504 * cfghooks.c
6505 (debug (basic_block_def &)): New.
6506 (debug (basic_block_def *)): New.
6507 * dumpfile.h
6508 (dump_node (const_tree, int, FILE *)): Correct source file.
6509 * dwarf2out.c
6510 (debug (die_struct &)): New.
6511 (debug (die_struct *)): New.
6512 * dwarf2out.h
6513 (extern debug (die_struct &)): New.
6514 (extern debug (die_struct *)): New.
6515 * gimple-pretty-print.c
6516 (debug (gimple_statement_d &)): New.
6517 (debug (gimple_statement_d *)): New.
6518 * gimple-pretty-print.h
6519 (extern debug (gimple_statement_d &)): New.
6520 (extern debug (gimple_statement_d *)): New.
6521 * ira-build.c
6522 (debug (ira_allocno_copy &)): New.
6523 (debug (ira_allocno_copy *)): New.
6524 (debug (ira_allocno &)): New.
6525 (debug (ira_allocno *)): New.
6526 * ira-int.h
6527 (extern debug (ira_allocno_copy &)): New.
6528 (extern debug (ira_allocno_copy *)): New.
6529 (extern debug (ira_allocno &)): New.
6530 (extern debug (ira_allocno *)): New.
6531 * ira-lives.c
6532 (debug (live_range &)): New.
6533 (debug (live_range *)): New.
6534 * lra-int.h
6535 (debug (lra_live_range &)): New.
6536 (debug (lra_live_range *)): New.
6537 * lra-lives.c
6538 (debug (lra_live_range &)): New.
6539 (debug (lra_live_range *)): New.
6540 * omega.c
6541 (debug (omega_pb_d &)): New.
6542 (debug (omega_pb_d *)): New.
6543 * omega.h
6544 (extern debug (omega_pb_d &)): New.
6545 (extern debug (omega_pb_d *)): New.
6546 * print-rtl.c
6547 (debug (const rtx_def &)): New.
6548 (debug (const rtx_def *)): New.
6549 * print-tree.c
6550 (debug_tree (tree): Move within file.
6551 (debug_raw (const tree_node &)): New.
6552 (debug_raw (const tree_node *)): New.
6553 (dump_tree_via_hooks (const tree_node *, int)): New.
6554 (debug (const tree_node &)): New.
6555 (debug (const tree_node *)): New.
6556 (debug_verbose (const tree_node &)): New.
6557 (debug_verbose (const tree_node *)): New.
6558 (debug_head (const tree_node &)): New.
6559 (debug_head (const tree_node *)): New.
6560 (debug_body (const tree_node &)): New.
6561 (debug_body (const tree_node *)): New.
6562 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6563 (debug (vec<tree, va_gc> &)): New.
6564 (debug (vec<tree, va_gc> *)): New.
6565 * rtl.h
6566 (extern debug (const rtx_def &)): New.
6567 (extern debug (const rtx_def *)): New.
6568 * sbitmap.c
6569 (debug_raw (simple_bitmap_def &)): New.
6570 (debug_raw (simple_bitmap_def *)): New.
6571 (debug (simple_bitmap_def &)): New.
6572 (debug (simple_bitmap_def *)): New.
6573 * sbitmap.h
6574 (extern debug (simple_bitmap_def &)): New.
6575 (extern debug (simple_bitmap_def *)): New.
6576 (extern debug_raw (simple_bitmap_def &)): New.
6577 (extern debug_raw (simple_bitmap_def *)): New.
6578 * sel-sched-dump.c
6579 (debug (vinsn_def &)): New.
6580 (debug (vinsn_def *)): New.
6581 (debug_verbose (vinsn_def &)): New.
6582 (debug_verbose (vinsn_def *)): New.
6583 (debug (expr_def &)): New.
6584 (debug (expr_def *)): New.
6585 (debug_verbose (expr_def &)): New.
6586 (debug_verbose (expr_def *)): New.
6587 (debug (vec<rtx> &)): New.
6588 (debug (vec<rtx> *)): New.
6589 * sel-sched-dump.h
6590 (extern debug (vinsn_def &)): New.
6591 (extern debug (vinsn_def *)): New.
6592 (extern debug_verbose (vinsn_def &)): New.
6593 (extern debug_verbose (vinsn_def *)): New.
6594 (extern debug (expr_def &)): New.
6595 (extern debug (expr_def *)): New.
6596 (extern debug_verbose (expr_def &)): New.
6597 (extern debug_verbose (expr_def *)): New.
6598 (extern debug (vec<rtx> &)): New.
6599 (extern debug (vec<rtx> *)): New.
6600 * sel-sched-ir.h
6601 (_list_iter_cond_expr): Make inline instead of static.
6602 * sreal.c
6603 (debug (sreal &)): New.
6604 (debug (sreal *)): New.
6605 * sreal.h
6606 (extern debug (sreal &)): New.
6607 (extern debug (sreal *)): New.
6608 * tree.h
6609 (extern debug_raw (const tree_node &)): New.
6610 (extern debug_raw (const tree_node *)): New.
6611 (extern debug (const tree_node &)): New.
6612 (extern debug (const tree_node *)): New.
6613 (extern debug_verbose (const tree_node &)): New.
6614 (extern debug_verbose (const tree_node *)): New.
6615 (extern debug_head (const tree_node &)): New.
6616 (extern debug_head (const tree_node *)): New.
6617 (extern debug_body (const tree_node &)): New.
6618 (extern debug_body (const tree_node *)): New.
6619 (extern debug (vec<tree, va_gc> &)): New.
6620 (extern debug (vec<tree, va_gc> *)): New.
6621 * tree-cfg.c
6622 (debug (struct loop &)): New.
6623 (debug (struct loop *)): New.
6624 (debug_verbose (struct loop &)): New.
6625 (debug_verbose (struct loop *)): New.
6626 * tree-dump.c: Add header dependence.
6627 * tree-flow.h
6628 (extern debug (struct loop &)): New.
6629 (extern debug (struct loop *)): New.
6630 (extern debug_verbose (struct loop &)): New.
6631 (extern debug_verbose (struct loop *)): New.
6632 * tree-data-ref.c
6633 (debug (data_reference &)): New.
6634 (debug (data_reference *)): New.
6635 (debug (vec<data_reference_p> &)): New.
6636 (debug (vec<data_reference_p> *)): New.
6637 (debug (vec<ddr_p> &)): New.
6638 (debug (vec<ddr_p> *)): New.
6639 * tree-data-ref.h
6640 (extern debug (data_reference &)): New.
6641 (extern debug (data_reference *)): New.
6642 (extern debug (vec<data_reference_p> &)): New.
6643 (extern debug (vec<data_reference_p> *)): New.
6644 (extern debug (vec<ddr_p> &)): New.
6645 (extern debug (vec<ddr_p> *)): New.
6646 * tree-ssa-alias.c
6647 (debug (pt_solution &)): New.
6648 (debug (pt_solution *)): New.
6649 * tree-ssa-alias.h
6650 (extern debug (pt_solution &)): New.
6651 (extern debug (pt_solution *)): New.
6652 * tree-ssa-alias.c
6653 (debug (_var_map &)): New.
6654 (debug (_var_map *)): New.
6655 (debug (tree_live_info_d &)): New.
6656 (debug (tree_live_info_d *)): New.
6657 * tree-ssa-alias.h
6658 (extern debug (_var_map &)): New.
6659 (extern debug (_var_map *)): New.
6660 (extern debug (tree_live_info_d &)): New.
6661 (extern debug (tree_live_info_d *)): New.
6662
6663 2013-03-28 Jan Hubicka <jh@suse.cz>
6664
6665 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6666
6667 2013-03-28 Ian Bolton <ian.bolton@arm.com>
6668
6669 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6670 record only when desired or required.
6671
6672 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
6673
6674 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6675 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6676
6677 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6678
6679 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6680 (*andsi3_compare0_uxtw): New pattern.
6681 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6682 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6683
6684 2013-03-28 Jan Hubicka <jh@suse.cz>
6685
6686 * data-streamer-in.c (streamer_read_gcov_count): New function.
6687 * gimple-streamer-out.c: Include value-prof.h.
6688 (output_gimple_stmt): Output histogram.
6689 (output_bb): Use streamer_write_gcov_count.
6690 * value-prof.c: Include data-streamer.h
6691 (dump_histogram_value): Add HIST_TYPE_MAX.
6692 (stream_out_histogram_value): New function.
6693 (stream_in_histogram_value): New function.
6694 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6695 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6696 * data-streamer-out.c (streamer_write_gcov_count): New function.
6697 (streamer_write_gcov_count_stream): New function.
6698 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6699 (lto_output_node): Likewise.
6700 (input_node, input_edge): Likewise.
6701 * lto-streamer-out.c (output_cfg): Update streaming.
6702 * lto-streamer-in.c (input_cfg): Likewise.
6703 * data-streamer.h (streamer_write_gcov_count,
6704 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6705 * gimple-streamer-in.c: Include value-prof.h
6706 (input_gimple_stmt): Input histograms.
6707 (input_bb): Update profile streaming.
6708
6709 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6710
6711 * genmodes.c (emit_max_int): New function.
6712 (emit_insn_modes_h): Added call to emit_max_function.
6713 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6714 Added doc.
6715 * machmode.def: Fixed comment.
6716
6717 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
6718
6719 * combine.c (try_combine): Removed useless assert.
6720 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6721
6722 2013-03-28 Marek Polacek <polacek@redhat.com>
6723 Richard Biener <rguenther@suse.de>
6724
6725 PR tree-optimization/56695
6726 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6727 build signed result of a vector comparison.
6728 * tree-cfg.c (verify_gimple_comparison): Check that a result
6729 of a vector comparison has signed type.
6730
6731 2013-03-28 Richard Biener <rguenther@suse.de>
6732
6733 PR tree-optimization/37021
6734 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6735 do not restrict gaps between groups.
6736 * tree-vect-stmts.c (vectorizable_load): Properly account for
6737 a gap between groups.
6738
6739 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6740
6741 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6742 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6743 is not enabled.
6744
6745 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6746
6747 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6748 * doc/extend.texi (Named Address Spaces): Ditto.
6749 (Variable Attributes): Ditto.
6750
6751 2013-03-27 Kai Tietz <ktietz@redhat.com>
6752
6753 * config.build: Add support for cygwin x64 target.
6754 * config.gcc: Likewise.
6755 * config.host: Likewise.
6756 * configure.ac: Likewise
6757 * configure: Regenerated.
6758
6759 2013-03-27 Kai Tietz <ktietz@redhat.com>
6760
6761 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6762 * config/i386/t-cygwin-w64: New file.
6763 * config/i386/cygwin-w64.h: New file.
6764 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6765 and add support for x64-cygwin target.
6766 (CPP_SPEC): Likewise.
6767 (CXX_WRAP_SPEC_LIST): Undefine before define.
6768 (LIBGCJ_SONAME): Use 15 as version.
6769
6770 2013-03-27 Richard Biener <rguenther@suse.de>
6771
6772 PR tree-optimization/56716
6773 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6774 dumping for ref nodes.
6775
6776 2013-03-27 Martin Jambor <mjambor@suse.cz>
6777
6778 PR tree-optimization/55334
6779 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6780 restricted pointers to arrays.
6781
6782 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6783
6784 * Makefile.in (.SUFFIXES): Add .cc.
6785 (.c.o): Apply same recipe for implicit rule .cc.o.
6786
6787 2013-03-27 Richard Biener <rguenther@suse.de>
6788
6789 PR tree-optimization/37021
6790 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6791 REALPART/IMAGPART_EXPRs around the supported refs.
6792 * tree-ssa-structalias.c (find_func_aliases): Assume that
6793 floating-point values are not used to transfer pointers.
6794
6795 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6796
6797 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6798 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6799 * doc/tm.texi: Regenerate.
6800 * targhooks.h (default_has_ifunc_p): New.
6801 * targhooks.c (default_has_ifunc_p): Ditto.
6802 * config/linux-protos.h: New file.
6803 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
6804 this hook for linux which disables support of indirect functions in
6805 android.
6806 * config/linux-android.c: New file.
6807 * config/t-linux-android.c: Ditto.
6808 * config.gcc: Added new object file linux-android.o.
6809 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
6810 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
6811 * varasm.c (do_assemble_alias): Likewise.
6812 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6813 doesn't support indirect functions.
6814 * configure: Regenerate.
6815
6816 2013-03-27 Bin Cheng <bin.cheng@arm.com>
6817
6818 PR target/56102
6819 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6820 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6821 mult-word mode.
6822
6823 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6824
6825 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6826
6827 2013-03-27 Terry Guo <terry.guo@arm.com>
6828
6829 * config/arm/arm-cores.def: Added core cortex-r7.
6830 * config/arm/arm-tune.md: Regenerated.
6831 * config/arm/arm-tables.opt: Regenerated.
6832 * doc/invoke.texi: Added entry for core cortex-r7.
6833
6834 2013-03-27 Walter Lee <walt@tilera.com>
6835
6836 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6837 double-decrement of next_scratch_regno.
6838
6839 2013-03-27 Walter Lee <walt@tilera.com>
6840
6841 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
6842 input operands.
6843 (insn_v1mulus): Ditto.
6844 (insn_v2muls): Ditto.
6845
6846 2013-03-27 Walter Lee <walt@tilera.com>
6847
6848 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
6849 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6850
6851 2013-03-27 Walter Lee <walt@tilera.com>
6852
6853 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
6854 (*sibcall_value): Ditto.
6855
6856 2013-03-27 Walter Lee <walt@tilera.com>
6857
6858 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6859 (insn_mnz_v8qi): ... this ...
6860 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6861 vector equivalent.
6862 (insn_v<n>mnz): Replaced by ...
6863 (insn_v1mnz): ... this ...
6864 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6865 equivalent.
6866 (insn_mz_<mode>): Replaced by ...
6867 (insn_mz_v8qi): ... this ...
6868 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6869 vector equivalent.
6870 (insn_v<n>mz): Replaced by ...
6871 (insn_v1mz): ... this ...
6872 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6873 equivalent.
6874
6875 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6876
6877 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6878
6879 2013-03-26 Roland McGrath <mcgrathr@google.com>
6880
6881 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6882 than fprintf with a non-constant, non-format string.
6883
6884 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6885
6886 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6887 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6888 operand 0 predicate.
6889 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6890 attribute. Use general_x64nomem_operand as operand 1 predicate.
6891 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6892 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6893 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6894 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6895 (mov<mode>_insv_1): Remove expander. Merge insn with
6896 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6897 Use general_x64nomem_operand as operand 1 predicate.
6898 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6899 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6900 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6901 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6902 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6903 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6904 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6905 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6906 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6907 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6908 (general_x64nomem_operand): Ditto.
6909
6910 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
6911
6912 * config/rtems.opt: Add -pthread option.
6913
6914 2013-03-26 Richard Biener <rguenther@suse.de>
6915
6916 * alias.c (find_base_term): Avoid redundant and not used recursion.
6917 (base_alias_check): Get the initial base term from the caller.
6918 (true_dependence_1): Compute and pass base terms to base_alias_check.
6919 (write_dependence_p): Likewise.
6920 (may_alias_p): Likewise.
6921
6922 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6923
6924 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6925 PC-relative load in SI modes and above only.
6926
6927 2013-03-26 Xinyu Qi <xyqi@marvell.com>
6928
6929 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
6930 * config/arm/iwmmxt.md (WCGR0): Update.
6931 (WCGR1, WCGR2, WCGR3): Likewise.
6932
6933 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
6934
6935 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6936 Use x64 and nox64 isa attributes.
6937
6938 2013-03-26 Richard Biener <rguenther@suse.de>
6939
6940 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6941 alignment computations and rely on get_object_alignment_1
6942 for the !TYPE_P case.
6943 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6944
6945 2013-03-26 Walter Lee <walt@tilera.com>
6946
6947 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6948 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6949
6950 2013-03-25 Jeff Law <law@redhat.com>
6951
6952 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6953 check for INTEGRAL_TYPE_P that was missing due to checking in
6954 wrong version of prior patch.
6955
6956 2013-03-25 Walter Lee <walt@tilera.com>
6957
6958 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6959 TILEGX_INSN_SHUFFLEBYTES1.
6960 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6961 shufflebytes1.
6962 (tilegx_builtins): Ditto.
6963 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6964
6965 2013-03-25 Walter Lee <walt@tilera.com>
6966
6967 * config/tilegx/tilegx.md (floatsisf2): New pattern.
6968 (floatunssisf2): New pattern.
6969 (floatsidf2): New pattern.
6970 (floatunssidf2): New pattern.
6971
6972 2013-03-25 Walter Lee <walt@tilera.com>
6973
6974 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6975 tests for constraint J, K, N, P.
6976
6977 2013-03-25 Walter Lee <walt@tilera.com>
6978
6979 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6980 Use indirect/pcrel encoding.
6981 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6982 Ditto.
6983
6984 2013-03-25 Steve Ellcey <sellcey@mips.com>
6985
6986 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6987 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6988 * config/mips/mips.c (mips_option_override): Set IMADD default.
6989 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6990 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6991 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6992 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6993 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6994
6995 2013-03-25 Jeff Law <law@redhat.com>
6996
6997 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6998 slightly to avoid creating and folding useless trees. Simplify
6999 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7000
7001 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
7002
7003 * config/i386/i386.md (*zero_extendsidi2): Merge with
7004 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
7005 * config/i386/predicates.md (x86_64_zext_operand): Rename from
7006 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
7007 targets. Clarify comment.
7008
7009 2013-03-25 Martin Jambor <mjambor@suse.cz>
7010
7011 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7012 pass-through jump functions differently.
7013 (ipa_read_jump_function): Likewise. Also use setter functions to set
7014 up jump functions.
7015
7016 2013-03-25 Martin Jambor <mjambor@suse.cz>
7017
7018 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7019 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7020 process it.
7021 (ipa_get_indirect_edge_target): New function.
7022 (devirtualization_time_bonus): New parameter known_aggs, pass it to
7023 ipa_get_indirect_edge_target. Update all callers.
7024 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
7025 ipa_get_indirect_edge_target_1 instead of calling
7026 ipa_get_indirect_edge_target.
7027 (create_specialized_node): Pass aggvlas to
7028 ipcp_discover_new_direct_edges.
7029
7030 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7031
7032 * config/arm/arm.md (f_sels, f_seld): New types.
7033 (*cmov<mode>): New pattern.
7034 * config/arm/predicates.md (arm_vsel_comparison_operator): New
7035 predicate.
7036
7037 2013-03-25 Kai Tietz <ktietz@redhat.com>
7038
7039 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7040 POSIX-printf for mingw-hosted builds.
7041
7042 2013-03-25 Richard Biener <rguenther@suse.de>
7043
7044 PR middle-end/56694
7045 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7046 must-not-throw stmt location.
7047
7048 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7049
7050 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7051 Emit load-acquire versions when acq is true.
7052 (arm_emit_store_exclusive): Add rel parameter.
7053 Emit store-release versions when rel is true.
7054 (arm_split_compare_and_swap): Use acquire-release instructions
7055 instead.
7056 of barriers when appropriate.
7057 (arm_split_atomic_op): Likewise.
7058 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7059 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7060 (VUNSPEC_SLX): Likewise.
7061 (VUNSPEC_LDA): Likewise.
7062 (VUNSPEC_STL): Likewise.
7063 * config/arm/sync.md (atomic_load<mode>): New pattern.
7064 (atomic_store<mode>): Likewise.
7065 (arm_load_acquire_exclusive<mode>): Likewise.
7066 (arm_load_acquire_exclusivesi): Likewise.
7067 (arm_load_acquire_exclusivedi): Likewise.
7068 (arm_store_release_exclusive<mode>): Likewise.
7069
7070 2013-03-25 Catherine Moore <clm@codesourcery.com>
7071
7072 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7073 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7074 * config/mip/predicates.md (lwsp_swsp_operand,
7075 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7076 sb16_operand, db4_operand, db7_operand, ib3_operand,
7077 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7078 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7079 andi16_operand): New predicates.
7080 * config/mips/mips.md (compression): New attribute.
7081 (enabled): New attribute.
7082 (length): Consider compression in computing length.
7083 (shift_compression): New code attribute.
7084 (*add<mode>3): New operands. Record compression.
7085 (sub<mode>3): Likewise.
7086 (one_cmpl<mode>2): Likewise.
7087 (*and<mode>3): Likewise.
7088 (*ior<mode>3): Likewise.
7089 (unnamed pattern for xor): Likewise.
7090 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
7091 (*<optab><mode>3): Likewise.
7092 (*mov<mode>_internal: Likewise.
7093 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
7094 (mips_unsigned_immediate_p): New.
7095 (umips_lwsp_swsp_address_p): New.
7096 (m16_based_address_p): New.
7097 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
7098 (mips_unsigned_immediate_p): New prototype.
7099 (lwsp_swsp_address_p): New prototype.
7100 (m16_based_address_p): New prototype.
7101 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
7102 (mips_signed_immediate_p): New function.
7103 (m16_based_address_p): New function.
7104 (lwsp_swsp_address_p): New function.
7105 (mips_print_operand_punctuation): Recognize short delay slot insns
7106 for microMIPS.add<mode>3"
7107
7108 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7109
7110 PR target/56720
7111 * config/arm/iterators.md (v_cmp_result): New mode attribute.
7112 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
7113
7114 2013-03-25 Richard Biener <rguenther@suse.de>
7115
7116 PR tree-optimization/56689
7117 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
7118 any edge.
7119
7120 2013-03-25 Richard Biener <rguenther@suse.de>
7121
7122 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
7123 of bitmap.
7124 (memory_references): Likewise.
7125 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
7126 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
7127 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
7128 (gather_mem_refs_in_loops): Fold into ...
7129 (analyze_memory_references): ... this. Move initialization
7130 to tree_ssa_lim_initialize.
7131 (fill_always_executed_in): Rename to ...
7132 (fill_always_executed_in_1): ... this.
7133 (fill_always_executed_in): Move contains_call computation to
7134 this new function from ...
7135 (tree_ssa_lim_initialize): ... here.
7136 (tree_ssa_lim): Call fill_always_executed_in.
7137
7138 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7139
7140 * postreload.c (reload_combine): Fix code detecting returns.
7141
7142 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7143
7144 * function.c (emit_use_return_register_into_block): On cc0 targets,
7145 do not emit the sequence between cc0 setter and user.
7146
7147 2013-03-25 Kai Tietz <ktietz@redhat.com>
7148
7149 * config/i386/predicates.md (local_symbolic_operand): Interpret
7150 dll-imported symbols as none-local.
7151
7152 2013-03-25 Richard Biener <rguenther@suse.de>
7153
7154 * tree-ssa-loop-im.c (struct depend): Remove.
7155 (struct lim_aux_data): Make depends a vec of gimples.
7156 (free_lim_aux_data): Adjust.
7157 (add_dependency): Likewise.
7158 (set_level): Likewise.
7159
7160 2013-03-25 Richard Biener <rguenther@suse.de>
7161
7162 PR middle-end/56434
7163 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
7164 the pointer returned by calls with ECF_MALLOC set.
7165
7166 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
7167
7168 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
7169
7170 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
7171
7172 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
7173 using MMXMODE mode iterator.
7174 (*move<mode>_internal): Merge with *movv2sf_internal and
7175 *movv2sf_internal_rex64 using MMXMODE mode iterator.
7176
7177 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7178
7179 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
7180 (record_last_mem_set_info): Likewise.
7181
7182 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
7183 of XNEWVEC followed by memset.
7184 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
7185
7186 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7187
7188 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7189 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
7190 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
7191 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7192 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7193 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7194 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7195 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7196 BARRIER_P instead of GET_CODE.
7197
7198 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7199
7200 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7201 inaccuracy in the probing code.
7202
7203 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7204 (ctrapdi4): Likewise.
7205
7206 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7207
7208 * calls.c (expand_call): Add missing guard to code handling return
7209 of non-BLKmode structures in MSB.
7210 * function.c (expand_function_end): Likewise.
7211
7212 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7213
7214 * combine.c (try_combine): Adjust comment. Do not add the set of
7215 insn #0 if the destination indirectly is set or dies in insn #2.
7216 Tidy up code to distribute a new note.
7217
7218 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7219
7220 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7221 also for alternatives 16 and 17.
7222
7223 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
7224
7225 * config/i386/sse.md (*mov<mode>_internal): Merge with
7226 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
7227 Emit insn template depending on type attribute. Use
7228 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7229 movd instead of movq mnemonic for interunit moves. Rewrite mode
7230 attribute calculation. Remove unit attribute calculation.
7231 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7232 Set prefix_data16 attribute for DImode ssemov types.
7233 Use Ym instead of y for SSE-MMX conversion alternatives.
7234 Reorder operand constraints.
7235
7236 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
7237
7238 * df.h (df_insn_delete): Adjust prototype.
7239 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7240 and let it decide whether mark the basic block dirty.
7241 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7242 * df-scan.c (df_insn_info_delete): New helper function, split
7243 off from df_insn_delete.
7244 (df_scan_free_bb_info): Use it.
7245 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7246 Likewise.
7247 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
7248 that the insn is actually an insn and it has a non-NULL basic block.
7249 Do not mark basic block dirty if only deleting a DEBUG_INSN.
7250
7251 2013-03-22 Richard Biener <rguenther@suse.de>
7252
7253 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7254 dep_ref members.
7255 (mem_ref_alloc): Do not allocate them.
7256 (refs_independent_p): Do not query or maintain a cache.
7257
7258 2013-03-22 Richard Biener <rguenther@suse.de>
7259
7260 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7261 (gather_mem_refs_in_loops): Do not compute it.
7262 (analyze_memory_references): Do not allocate it.
7263 (tree_ssa_lim_finalize): Do not free it.
7264 (for_all_locs_in_loop): Do not query all_refs_in_loop.
7265
7266 2013-03-22 Richard Biener <rguenther@suse.de>
7267
7268 * is-a.h (as_a): Use gcc_checking_assert.
7269
7270 2013-03-22 Ian Bolton <ian.bolton@arm.com>
7271
7272 * config/aarch64/aarch64.c (aarch64_print_operand): New
7273 format specifier for printing a constant in hex.
7274 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7275 format specifier for printing second operand.
7276
7277 2013-03-22 Richard Biener <rguenther@suse.de>
7278
7279 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7280 bitmaps.
7281 (gather_mem_refs_in_loops): Perform store accumulation here.
7282 (create_vop_ref_mapping_loop): Remove.
7283 (create_vop_ref_mapping): Likewise.
7284 (analyze_memory_references): Initialize refs_stored_in_loop.
7285 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
7286 (record_indep_loop): Remove.
7287 (record_dep_loop): New function.
7288 (ref_indep_loop_p_1): Adjust to only walk over references
7289 in the loop, not its subloops.
7290 (ref_indep_loop_p): Rename to ...
7291 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7292 maintaining a more fine-grained cache.
7293 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7294 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7295
7296 2013-03-22 Richard Biener <rguenther@suse.de>
7297
7298 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7299 (struct mem_ref): Make accesses_in_loop a vec of a vec of
7300 aggregate mem_ref_loc.
7301 (free_mem_ref_locs): Inline into ...
7302 (memref_free): ... this and adjust.
7303 (mem_ref_alloc): Adjust.
7304 (mem_ref_locs_alloc): Remove.
7305 (record_mem_ref_loc): Adjust.
7306 (get_all_locs_in_loop): Rewrite into ...
7307 (for_all_locs_in_loop): ... this iterator.
7308 (rewrite_mem_ref_loc): New functor.
7309 (rewrite_mem_refs): Use for_all_locs_in_loop.
7310 (sm_set_flag_if_changed): New functor.
7311 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7312 (ref_always_accessed): New functor.
7313 (ref_always_accessed_p): Use for_all_locs_in_loop.
7314
7315 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7316
7317 * tree-pass.h (PROP_gimple_lvec): New.
7318 * passes.c (dump_properties): Handle PROP_gimple_lvec.
7319 (init_optimization_passes): Move pass_lower_vector.
7320 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7321 PROP_gimple_lvec.
7322 (pass_lower_vector): Provide PROP_gimple_lvec.
7323 (pass_lower_vector_ssa): Likewise.
7324 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7325
7326 2013-03-21 Mark Wielaard <mjw@redhat.com>
7327
7328 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7329
7330 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7331
7332 * config/i386/i386.md (*movdi_internal): Disparage slightly
7333 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
7334 conversion alternatives.
7335
7336 2013-03-21 Jakub Jelinek <jakub@redhat.com>
7337
7338 PR middle-end/48087
7339 * diagnostic.def (DK_WERROR): New kind.
7340 * diagnostic.h (werrorcount): Define.
7341 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7342 promoted to DK_ERROR, increment DK_WERROR counter instead of
7343 DK_ERROR counter.
7344 * toplev.c (toplev_main): Call print_ignored_options even if
7345 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
7346 even if just werrorcount is non-zero.
7347
7348 PR debug/55608
7349 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7350 on failure.
7351 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7352 (string_cst_pool_decl): New function.
7353 (optimize_one_addr_into_implicit_ptr): New function.
7354 (resolve_addr_in_expr): Optimize DWARF location expression
7355 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7356 which doesn't live in memory, but has DW_AT_location or
7357 DW_AT_const_value, or refers to a string literal, into
7358 DW_OP_GNU_implicit_pointer.
7359 (optimize_location_into_implicit_ptr): New function.
7360 (resolve_addr): If removing DW_AT_location of a variable because
7361 it was DW_OP_addr of address of the variable, but the variable doesn't
7362 live in memory, try to emit const value attribute for the initializer.
7363
7364 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7365
7366 * tree.h (VECTOR_TYPE_P): New macro.
7367 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7368 TYPE_MODE): Use it.
7369 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7370 VEC_COND_EXPR cannot be lvalues.
7371 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7372
7373 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
7374
7375 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7376 Restrict the transformation to equal modes.
7377
7378 2013-03-21 Richard Biener <rguenther@suse.de>
7379
7380 PR tree-optimization/39326
7381 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7382 (MEM_ANALYZABLE): Adjust.
7383 (record_mem_ref_loc): Move bitmap ops ...
7384 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7385 unanalyzable refs, do not record locations for it.
7386 (analyze_memory_references): Allocate ref zero as shared
7387 unanalyzable ref.
7388 (refs_independent_p): Do not test for unanalyzed mems here.
7389 (ref_indep_loop_p_1): Special-case disambiguation against
7390 the unanalyzed ref.
7391 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
7392
7393 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7394
7395 * config/arm/arm-protos.h (tune_params): Add
7396 prefer_neon_for_64bits field.
7397 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7398 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7399 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7400 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7401 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7402 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7403 (arm_option_override): Handle -mneon-for-64bits new option.
7404 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7405 (prefer_neon_for_64bits): Declare new variable.
7406 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
7407 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
7408 (arch_enabled): Handle new arch types. Remove support for onlya8
7409 and nota8.
7410 (one_cmpldi2): Use new arch names.
7411 (zero_extend<mode>di2, extend<mode>di2): Ditto.
7412 * config/arm/arm.opt (mneon-for-64bits): Add option.
7413 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7414 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7415 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7416 of onlya8.
7417 * doc/invoke.texi (-mneon-for-64bits): Document.
7418
7419 2013-03-21 Richard Biener <rguenther@suse.de>
7420
7421 PR tree-optimization/39326
7422 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7423 (sort_bbs_in_loop_postorder_cmp): New function.
7424 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7425
7426 2013-03-21 Richard Biener <rguenther@suse.de>
7427
7428 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7429 (vect_insert_into_interleaving_chain): Likewise.
7430 (vect_drs_dependent_in_basic_block): Inline ...
7431 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7432 split out from ...
7433 (vect_analyze_data_ref_dependence): ... here. Simplify.
7434 (vect_check_interleaving): Simplify.
7435 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7436 (vect_slp_analyze_data_ref_dependences): ... this new function.
7437 (dr_group_sort_cmp): New function.
7438 (vect_analyze_data_ref_accesses): Compute data-reference groups
7439 here instead of in vect_analyze_data_ref_dependence. Use
7440 a more efficient algorithm.
7441 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7442 vect_slp_analyze_data_ref_dependences. Call
7443 vect_analyze_data_ref_accesses earlier.
7444 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7445 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7446 (vect_slp_analyze_data_ref_dependences): New prototype.
7447
7448 2013-03-21 Richard Biener <rguenther@suse.de>
7449
7450 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7451 ref is stored in the loop.
7452 (find_refs_for_sm): Walk only over all stores.
7453 (store_motion_loop): Allocate from lim_bitmap_obstack.
7454 (store_motion): Likewise.
7455
7456 2013-03-21 Richard Biener <rguenther@suse.de>
7457
7458 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7459 Update virtual SSA form.
7460
7461 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7462
7463 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7464 * configure: Regenerate.
7465 * config.in: Regenerate.
7466 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7467 if !HAVE_LD_EH_FRAME_CIEV3.
7468
7469 2013-03-21 Richard Biener <rguenther@suse.de>
7470
7471 * tree-cfg.c (verify_expr_no_block): New function.
7472 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7473 nor DECL_VALUE_EXPR have locations with associated blocks.
7474 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7475 (clear_unused_block_pointer): Remove code dealing with
7476 blocks in DECL_DEBUG_EXPR locations.
7477
7478 2013-03-21 Richard Biener <rguenther@suse.de>
7479
7480 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7481 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7482 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7483 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7484 instead of DECL_DEBUG_EXPR_IS_FROM.
7485 * gimplify.c (gimplify_modify_expr): Likewise.
7486 * tree-cfg.c (verify_expr_location_1): Likewise.
7487 * tree-complex.c (create_one_component_var): Likewise.
7488 * tree-sra.c (create_access_replacement): Likewise.
7489 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7490 (clear_unused_block_pointer): Likewise.
7491 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7492 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7493 * var-tracking.c (var_debug_decl): Likewise.
7494 (track_expr_p): Likewise.
7495 * tree-inline.c (add_local_variables): Likewise. Set
7496 DECL_HAS_DEBUG_EXPR_P after copying it.
7497 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7498 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7499
7500 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
7501
7502 PR bootstrap/56656
7503 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7504 * configure: Regenerate.
7505 * config.in: Regenerate.
7506 * config/i386/i386.md (*movdf_internal): Use
7507 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7508 movd instead of movq mnemonic for interunit moves.
7509 (*movdi_internal): Ditto.
7510
7511 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7512
7513 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7514 (abd<mode>_3): New pattern.
7515 (aba<mode>_3): New pattern.
7516 (fabd<mode>_3): New pattern.
7517
7518 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7519
7520 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7521 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7522 occurrence of REGISTER_PREFIX as its empty string.
7523
7524 2013-03-20 Jeff Law <law@redhat.com>
7525
7526 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7527 addititional equivalences for equality comparisons between an SSA_NAME
7528 and a constant where the SSA_NAME was set from a widening conversion.
7529
7530 2013-03-20 Walter Lee <walt@tilera.com>
7531
7532 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7533
7534 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7535
7536 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7537 depending on type attribute.
7538 (*movti_internal): Ditto.
7539 (*movtf_internal): Ditto.
7540 (*movxf_internal): Ditto.
7541 (*movdf_internal): Ditto.
7542 (*movsf_internal): Ditto.
7543
7544 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
7545
7546 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7547 maybe_vex for sselog1 and ssemov types.
7548 (*movdi_internal): Reorder operand constraints.
7549 (*movsi_internal): Ditto. Set prefix attribute to
7550 maybe_vex for sselog1 and ssemov types.
7551 (*movtf_internal): Set prefix attribute to maybe_vex
7552 for sselog1 and ssemov types.
7553 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7554 DImode ssemov types. Reorder operand constraints.
7555 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7556 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7557 attribute for SImode ssemov types. Reorder operand constraints.
7558
7559 2013-03-20 Martin Jambor <mjambor@suse.cz>
7560
7561 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7562 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7563
7564 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7565
7566 * config/rs6000/predicates.md (indexed_address, update_address_mem
7567 update_indexed_address_mem): New predicates.
7568 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7569 attribute for load/store instructions.
7570 * config/rs6000/dfp.md (movsd_store): Likewise.
7571 (movsd_load): Likewise.
7572 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7573 (unnamed HI->DI extend define_insn): Likewise.
7574 (unnamed SI->DI extend define_insn): Likewise.
7575 (unnamed QI->SI extend define_insn): Likewise.
7576 (unnamed QI->HI extend define_insn): Likewise.
7577 (unnamed HI->SI extend define_insn): Likewise.
7578 (unnamed HI->SI extend define_insn): Likewise.
7579 (extendsfdf2_fpr): Likewise.
7580 (movsi_internal1): Likewise.
7581 (movsi_internal1_single): Likewise.
7582 (movhi_internal): Likewise.
7583 (movqi_internal): Likewise.
7584 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7585 attribute for load/store instructions.
7586 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7587 instructions.
7588 (mov<mode>_softfloat): Likewise.
7589 (mov<mode>_hardfloat32): Likewise.
7590 (mov<mode>_hardfloat64): Likewise.
7591 (mov<mode>_softfloat64): Likewise.
7592 (movdi_internal32): Likewise.
7593 (movdi_internal64): Likewise.
7594 (probe_stack_<mode>): Likewise.
7595
7596 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7597
7598 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7599 floating point, and decimal floating point to reload iterator.
7600
7601 * config/rs6000/constraints.md (wl constraint): New constraints to
7602 return FLOAT_REGS if certain options are used to reduce the number
7603 of separate patterns that exist in the file.
7604 (wx constraint): Likewise.
7605 (wz constraint): Likewise.
7606
7607 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7608 -mdebug=reg, print wg, wl, wx, and wz constraints.
7609 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7610 Initialize the reload functions for 64-bit binary/decimal floating
7611 point types.
7612 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7613 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7614 create the buffer on the stack to overcome not having a 32-bit
7615 load and store.
7616 (rs6000_emit_move): Likewise.
7617 (rs6000_secondary_memory_needed_rtx): Likewise.
7618 (rs6000_alloc_sdmode_stack_slot): Likewise.
7619 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7620 via xxlxor, just like DFmode 0.0.
7621
7622 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7623 define as 1 if we are running on a power7 or newer.
7624 (enum r6000_reg_class_enum): Add new constraints.
7625
7626 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7627 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7628 with other moves by using conditional constraits (wg). Use LFIWZX
7629 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
7630 (movsd splitter): Likewise.
7631 (movsd_hardfloat): Likewise.
7632 (movsd_softfloat): Likewise.
7633
7634 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7635 binary and decimal floating point moves.
7636 (fmove_ok): New attributes to combine binary and decimal floating
7637 point moves, and to combine power6x (mfpgpr) moves along normal
7638 floating moves.
7639 (real_value_to_target): Likewise.
7640 (f32_lr): Likewise.
7641 (f32_lm): Likewise.
7642 (f32_li): Likewise.
7643 (f32_sr): Likewise.
7644 (f32_sm): Likewise.
7645 (f32_si): Likewise.
7646 (movsf): Combine binary and decimal floating point moves. Combine
7647 power6x (mfpgpr) moves with other moves by using conditional
7648 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
7649 (mov<mode> for SFmode/SDmode); Likewise.
7650 (SFmode/SDmode splitters): Likewise.
7651 (movsf_hardfloat): Likewise.
7652 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7653 (movsf_softfloat): Likewise.
7654 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7655
7656 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7657 wx and wz constraints.
7658
7659 * config/rs6000/constraints.md (wg constraint): New constraint to
7660 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7661
7662 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7663 constraint.
7664
7665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7666 -mdebug=reg, print wg, wl, wx, and wz constraints.
7667 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7668 Initialize the reload functions for 64-bit binary/decimal floating
7669 point types.
7670 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7671 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7672 create the buffer on the stack to overcome not having a 32-bit
7673 load and store.
7674 (rs6000_emit_move): Likewise.
7675 (rs6000_secondary_memory_needed_rtx): Likewise.
7676 (rs6000_alloc_sdmode_stack_slot): Likewise.
7677 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7678 via xxlxor, just like DFmode 0.0.
7679
7680 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7681 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7682 with other moves by using conditional constraits (wg). Use LFIWZX
7683 and STFIWX for loading SDmode on power7.
7684 (movdd splitters): Likewise.
7685 (movdd_hardfloat32): Likewise.
7686 (movdd_softfloat32): Likewise.
7687 (movdd_hardfloat64_mfpgpr): Likewise.
7688 (movdd_hardfloat64): Likewise.
7689 (movdd_softfloat64): Likewise.
7690
7691 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7692 64-bit binary and decimal floating point moves.
7693 (FMOVE64X): Likewise.
7694 (movdf): Combine 64-bit binary and decimal floating point moves.
7695 Combine power6x (mfpgpr) moves with other moves by using
7696 conditional constraits (wg).
7697 (mov<mode> for DFmode/DDmode): Likewise.
7698 (DFmode/DDmode splitters): Likewise.
7699 (movdf_hardfloat32): Likewise.
7700 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7701 (movdf_softfloat32): Likewise.
7702 (movdf_hardfloat64_mfpgpr): Likewise.
7703 (movdf_hardfloat64): Likewise.
7704 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7705 (movdf_softfloat64): Likewise.
7706 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7707 (reload_<mode>_load): Move to later in the file so they aren't in
7708 the middle of the floating point move insns.
7709 (reload_<mode>_store): Likewise.
7710
7711 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7712 constraint.
7713
7714 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7715 constraint if -mdebug=reg.
7716 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7717 Enable using dd reload support if needed.
7718
7719 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7720 binary and decimal floating point moves in rs6000.md.
7721 (movtd_internal): Likewise.
7722
7723 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7724 decimal floating point moves.
7725 (movtf): Likewise.
7726 (movtf_internal): Likewise.
7727 (mov<mode>_internal, TDmode/TFmode): Likewise.
7728 (movtf_softfloat): Likewise.
7729 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7730
7731 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7732 movdi_internal64, using wg constraint for move direct operations.
7733 (movdi_internal64): Likewise.
7734
7735 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7736 MODES_TIEABLE_P for selected modes. Print the numerical value of
7737 the various virtual registers. Use GPR/FPR first/last values,
7738 instead of hard coding the register numbers. Print which modes
7739 have reload functions registered.
7740 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7741 settings before/after setting cpu, target and subtarget settings.
7742 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7743 and for secondary reload failures in rs6000_secondary_reload_inner.
7744 (rs6000_secondary_reload_fail): Likewise.
7745 (rs6000_secondary_reload_inner): Likewise.
7746
7747 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7748 macros for first/last GPR and FPR registers.
7749 (LAST_GPR_REGNO): Likewise.
7750 (FIRST_FPR_REGNO): Likewise.
7751 (LAST_FPR_REGNO): Likewise.
7752
7753 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7754 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7755 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7756 (vcond<mode><mode>): Likewise.
7757 (vcondu<mode><mode>): Likewise.
7758 (vector_gtu<mode>): Likewise.
7759 (vector_gte<mode>): Likewise.
7760 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
7761 to prevent the compiler from converting DImode operations to TImode.
7762 (ior<mode>3): Likewise.
7763 (and<mode>3): Likewise.
7764 (one_cmpl<mode>2): Likewise.
7765 (nor<mode>3): Likewise.
7766 (andc<mode>3): Likewise.
7767
7768 * config/rs6000/constraints.md (wt constraint): New constraint
7769 that returns VSX_REGS if TImode is allowed in VSX registers.
7770
7771 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7772 constant under VSX.
7773
7774 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7775 similar to TImode, but it is restricted to being in the GPRs.
7776
7777 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7778 TImode to occupy a single VSX register.
7779
7780 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7781 -mvsx-timode for power7/power8.
7782 (power7 cpu): Likewise.
7783 (power8 cpu): Likewise.
7784
7785 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7786 sure that TFmode/TDmode take up two registers if they are ever
7787 allowed in the upper VSX registers.
7788 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7789 registers.
7790 (rs6000_init_hard_regno_mode_ok): Likewise.
7791 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7792 constraint. Print if LRA is turned on.
7793 (rs6000_option_override_internal): Give an error if -mvsx-timode
7794 and VSX is not enabled.
7795 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7796 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7797 to reg+offset addressing. Use PTImode when checking offset
7798 addresses for validity.
7799 (reg_offset_addressing_ok_p): Likewise.
7800 (rs6000_legitimate_offset_address_p): Likewise.
7801 (rs6000_legitimize_address): Likewise.
7802 (rs6000_legitimize_reload_address): Likewise.
7803 (rs6000_legitimate_address_p): Likewise.
7804 (rs6000_eliminate_indexed_memrefs): Likewise.
7805 (rs6000_emit_move): Likewise.
7806 (rs6000_secondary_reload): Likewise.
7807 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7808 reloads to fpr registers to continue to use reg+offset addressing,
7809 but 64-bit reloads to altivec registers need reg+reg addressing.
7810 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7811 it. Treat LO_SUM like a PLUS operation.
7812 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
7813 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
7814 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7815 registers to share a register with a smaller sized type, since VSX
7816 puts scalars in the upper 64-bits.
7817 (print_operand): Add support for PTImode.
7818 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7819 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7820 registers, but don't have arithmetic support.
7821 (rs6000_memory_move_cost): Add test for VSX.
7822 (rs6000_opt_masks): Add -mvsx-timode.
7823
7824 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7825 for TImode.
7826 (VSs): Likewise.
7827 (VSr): Use wt constraint for TImode.
7828 (VSv): Drop TImode support.
7829 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7830 (vsx_movti_64bit): Likewise.
7831 (vsx_movti_32bit): Likewise.
7832 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7833 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7834 one '?' on the appropriate output constraint. Do not allow TImode
7835 logical operations on 32-bit systems.
7836 (vsx_ior<mode>3): Likewise.
7837 (vsx_xor<mode>3): Likewise.
7838 (vsx_one_cmpl<mode>2): Likewise.
7839 (vsx_nor<mode>3): Likewise.
7840 (vsx_andc<mode>3): Likewise.
7841 (vsx_concat_<mode>): Likewise.
7842 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7843
7844 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7845 OPTION_MASK_VSX_TIMODE.
7846 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7847 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7848
7849 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7850 (TI2 iterator): New iterator for TImode, PTImode.
7851 (wd mode attribute): Add values for vector types.
7852 (movti_string): Replace TI move operations with operations for TImode
7853 and PTImode. Add support for TImode being allowed in VSX registers.
7854 (mov<mode>_string, TImode/PTImode): Likewise.
7855 (movti_ppc64): Likewise.
7856 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7857 (TI mode splitters): Likewise.
7858
7859 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7860 constraint.
7861
7862 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
7863
7864 PR tree-optimization/56355
7865 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7866 Also handle integers with undefined overflow.
7867
7868 2013-03-20 Catherine Moore <clm@codesourcery.com>
7869 Maciej W. Rozycki <macro@codesourcery.com>
7870 Tom de Vries <tom@codesourcery.com>
7871 Nathan Sidwell <nathan@codesourcery.com>
7872 Iain Sandoe <iain@codesourcery.com>
7873 Nathan Froyd <froydnj@codesourcery.com>
7874 Chao-ying Fu <fu@mips.com>
7875
7876 * doc/extend.texi: (micromips, nomicromips, nocompression):
7877 Document new function attributes.
7878 * doc/invoke.texi (minterlink-compressed, mmicromips,
7879 m14k, m14ke, m14kec): Document new options.
7880 (minterlink-mips16): Update documentation.
7881 * doc/md.texi (ZC, ZD): Document new constraints.
7882 * configure.ac (gcc_cv_as_micromips): Check if linker
7883 supports the .set micromips directive.
7884 * configure: Regenerate.
7885 * config.in: Regenerate.
7886 * config/mips/mips-tables.opt: Regenerate.
7887 * config/mips/micromips.md: New file.
7888 * constraints.md (ZC, ZD): New constraints.
7889 * config/mips/predicates.md (movep_src_register): New predicate.
7890 (movep_src_operand): New predicate.
7891 (non_volatile_mem_operand): New predicate.
7892 * config/mips/mips.md (multimem): New type.
7893 (length): Differentiate between 17-bit and 18-bit branch offsets.
7894 (MOVEP1, MOVEP2): New mode iterator.
7895 (mov_<load>l): Use ZC constraint.
7896 (mov_<load>r): Likewise.
7897 (mov_<store>l): Likewise.
7898 (mov_<store>r): Likewise.
7899 (*branch_equality<mode>_inverted): Add microMIPS support.
7900 (*branch_equality<mode>): Likewise.
7901 (*jump_absolute): Likewise.
7902 (indirect_jump_<mode>): Likewise.
7903 (tablejump_<mode>): Likewise.
7904 (<optab>_internal): Likewise.
7905 (sibcall_internal): Likewise.
7906 (sibcall_value_internal): Likewise.
7907 (prefetch): Use constraint ZD.
7908 * config/mips/mips.opt (minterlink-compressed): New option.
7909 (minterlink-mips16): Now an alias for minterlink-compressed.
7910 (mmicromips): New option.
7911 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7912 (compare_and_swap_12): Likewise.
7913 (sync_add<mode>): Likewise.
7914 (sync_<optab>_12): Likewise.
7915 (sync_old_<optab>_12): Likewise.
7916 (sync_new_<optab>_12): Likewise.
7917 (sync_nand_12): Likewise.
7918 (sync_old_nand_12): Likewise.
7919 (sync_new_nand_12): Likewise.
7920 (sync_sub<mode>): Likewise.
7921 (sync_old_add<mode>): Likewise.
7922 (sync_old_sub<mode>): Likewise.
7923 (sync_new_add<mode>): Likewise.
7924 (sync_new_sub<mode>): Likewise.
7925 (sync_<optab><mode>): Likewise.
7926 (sync_old_<optab><mode>): Likewise.
7927 (sync_new_<optab><mode>): Likewise.
7928 (sync_nand<mode>): Likewise.
7929 (sync_old_nand<mode>): Likewise.
7930 (sync_new_nand<mode>): Likewise.
7931 (sync_lock_test_and_set<mode>): Likewise.
7932 (test_and_set_12): Likewise.
7933 (atomic_compare_and_swap<mode>): Likewise.
7934 (atomic_exchange<mode>_llsc): Likewise.
7935 (atomic_fetch_add<mode>_llsc): Likewise.
7936 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7937 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7938 (umips_save_restore_pattern_p): Likewise.
7939 (umips_load_store_pair_p): Likewise.
7940 (umips_output_load_store_pair): Likewise.
7941 (umips_movep_target_p): Likewise.
7942 (umips_12bit_offset_address_p): Likewise.
7943 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7944 (mips_base_mips16): Rename this...
7945 (mips_base_compression_flags): ...to this. Update all uses.
7946 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7947 (mips_mips16_decl_p): Delete.
7948 (mips_nomips16_decl_p): Delete.
7949 (mips_get_compress_on_flags): New function.
7950 (mips_get_compress_off_flags): New function.
7951 (mips_get_compress_mode): New function.
7952 (mips_get_compress_on_name): New function.
7953 (mips_get_compress_off_name): New function.
7954 (mips_insert_attributes): Support multiple compression types.
7955 (mips_merge_decl_attributes): Likewise.
7956 (umips_12bit_offset_address_p): New function.
7957 (mips_start_function_definition): Emit .set micromips directive.
7958 (mips_call_may_need_jalx_p): New function.
7959 (mips_function_ok_for_sibcall): Add microMIPS support.
7960 (mips_print_operand_punctuation): Support short delay slots and
7961 compact jumps.
7962 (umips_swm_mask, umips_swm_encoding): New.
7963 (umips_build_save_restore): New function.
7964 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7965 (was_mips16_p): Remove.
7966 (old_compression_mode): New.
7967 (mips_set_compression_mode): New function.
7968 (mips_set_current_function): Add microMIPS support.
7969 (mips_option_override): Likewise.
7970 (umips_save_restore_pattern_p): New function.
7971 (umips_output_save_restore): New function.
7972 (umips_load_store_pair_p_1): New function.
7973 (umips_load_store_pair_p): New function.
7974 (umips_output_load_store_pair_1): New function.
7975 (umips_output_load_store_pair): New function.
7976 (umips_movep_target_p) New function.
7977 (mips_prepare_pch_save): Add microMIPS support.
7978 * config/mips/mips.h (TARGET_COMPRESSION): New.
7979 (TARGET_CPU_CPP_BUILTINS): Update macro
7980 to use new compression flags and to support microMIPS.
7981 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7982 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7983 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7984 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7985 (ASM_SPEC): Support mmicromips and mno-micromips.
7986 (M16STORE_REG_P): New macro.
7987 (MIPS_CALL): Support TARGET_MICROMIPS.
7988 (MICROMIPS_J): New macro.
7989 (mips_base_mips16): Rename this...
7990 (mips_base_compression_flags): ...to this.
7991 (UMIPS_12BIT_OFFSET_P): New macro.
7992 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7993 (MULTILIB_DIRNAMES): Likewise.
7994 2013-03-20 Richard Biener <rguenther@suse.de>
7995
7996 PR tree-optimization/56661
7997 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7998 the result does not have to be distinct.
7999
8000 2013-03-20 Richard Biener <rguenther@suse.de>
8001
8002 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8003 remap_gimple_op_r.
8004
8005 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8006 Steven Bosscher <steven@gcc.gnu.org>
8007
8008 PR rtl-optimization/56605
8009 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8010
8011 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
8012
8013 PR bootstrap/56656
8014 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8015 that require movd instead of movq.
8016
8017 2013-03-20 Richard Biener <rguenther@suse.de>
8018
8019 * tree-ssa-structalias.c (struct variable_info): Add pointer
8020 to the first field of an aggregate with sub-vars. Make
8021 this and the pointer to the next subfield its ID.
8022 (vi_next): New function.
8023 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8024 storedanything_id, integer_id): Increment by one.
8025 (new_var_info, get_call_vi, lookup_call_clobber_vi,
8026 get_call_clobber_vi): Adjust.
8027 (solution_set_expand): Simplify and speedup.
8028 (solution_set_add): Inline into ...
8029 (set_union_with_increment): ... this. Adjust accordingly.
8030 (do_sd_constraint): Likewise.
8031 (do_ds_constraint): Likewise.
8032 (do_complex_constraint): Simplify.
8033 (build_pred_graph): Adjust.
8034 (solve_graph): Likewise. Simplify and speedup.
8035 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8036 get_constraint_for_component_ref, get_constraint_for_1,
8037 first_vi_for_offset, first_or_preceding_vi_for_offset,
8038 create_function_info_for, create_variable_info_for_1,
8039 create_variable_info_for, intra_create_variable_infos): Adjust.
8040 (init_base_vars): Push NULL for ID zero.
8041 (compute_points_to_sets): Adjust.
8042
8043 2013-03-20 Richard Biener <rguenther@suse.de>
8044
8045 * cfgloop.c (verify_loop_structure): Streamline and avoid
8046 ICEing on corrupt loop tree.
8047 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8048 loop tree.
8049
8050 2013-03-20 Richard Biener <rguenther@suse.de>
8051
8052 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8053 check whether an SSA update is needed.
8054
8055 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
8056
8057 * config/mips/constraints.md (T): Rename to...
8058 (Yf): ...this.
8059 (U): Rename to...
8060 (Yd): ...this.
8061 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8062 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8063
8064 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8065
8066 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8067 (*subsi3_carryin_uxtw): Likewise.
8068
8069 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8070
8071 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8072 (*rorsi3_insn_uxtw): Likewise.
8073
8074 2013-03-19 Ian Bolton <ian.bolton@arm.com>
8075
8076 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8077 (*extrsi5_insn_uxtw): Likewise.
8078
8079 2013-03-19 Richard Biener <rguenther@suse.de>
8080
8081 PR tree-optimization/56273
8082 * passes.c (init_optimization_passes): Move second VRP after DOM.
8083
8084 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
8085
8086 * config/i386/i386.md (*movti_internal): Merge from
8087 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
8088 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
8089 nox64 isa attributes.
8090
8091 2013-03-18 Richard Biener <rguenther@suse.de>
8092
8093 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
8094 (unite): Likewise.
8095 (merge_node_constraints): Likewise.
8096 (build_succ_graph): Likewise.
8097 (valid_graph_edge): Inline into single caller.
8098 (unify_nodes): Likewise. Use bitmap_set_bit return value
8099 and cache varinfo.
8100 (scc_visit): Fix formatting and variable use.
8101 (do_sd_constraint): Use gcc_checking_assert.
8102 (do_ds_constraint): Likewise.
8103 (do_complex_constraint): Likewise.
8104 (condense_visit): Likewise. Cleanup.
8105 (dump_pred_graph): New function.
8106 (perform_var_substitution): Dump the pred-graph before
8107 variable substitution.
8108 (find_equivalent_node): Use gcc_checking_assert.
8109 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
8110
8111 2013-03-18 Richard Biener <rguenther@suse.de>
8112
8113 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8114 Remove cond_expr_stmt_list argument and do not gimplify the
8115 built expression.
8116 (vect_loop_versioning): Adjust.
8117 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8118 Cleanup to use less temporaries.
8119 (vect_create_data_ref_ptr): Cleanup.
8120
8121 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8122
8123 PR tree-optimization/56635
8124 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
8125 require types_compatible_p types.
8126
8127 2013-03-18 Nick Clifton <nickc@redhat.com>
8128
8129 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
8130 spurious backslash.
8131
8132 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
8133 Add missing line to comment describing function.
8134
8135 2013-03-18 Richard Biener <rguenther@suse.de>
8136
8137 PR tree-optimization/56210
8138 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8139 Handle string / character search functions.
8140 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8141
8142 2013-03-18 Richard Biener <rguenther@suse.de>
8143
8144 PR middle-end/56483
8145 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
8146 and implement properly.
8147 * gimple.h (gimple_cond_single_var_p): Remove.
8148
8149 2013-03-18 Richard Biener <rguenther@suse.de>
8150
8151 * tree-data-ref.h (find_data_references_in_loop): Declare.
8152 * tree-data-ref.c (get_references_in_stmt): Use a stack
8153 vector pre-allocated in the callers.
8154 (find_data_references_in_stmt): Adjust.
8155 (graphite_find_data_references_in_stmt): Likewise.
8156 (create_rdg_vertices): Likewise.
8157 (find_data_references_in_loop): Export.
8158 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8159 Compute dependences here...
8160 (vect_analyze_data_refs): ...not here. When we encounter
8161 a non-vectorizable data reference in basic-block vectorization
8162 truncate the data reference vector. Do not bother to
8163 fixup data-dependence information for gather loads.
8164 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
8165 of data references, as reported.
8166
8167 2013-03-18 Richard Biener <rguenther@suse.de>
8168
8169 PR tree-optimization/3713
8170 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
8171 has_constants and expr.
8172 (stmt_has_constants): Properly valueize SSA names when deciding
8173 whether the stmt has constants.
8174
8175 2013-03-18 Richard Biener <rguenther@suse.de>
8176
8177 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
8178 whole function when there is nothing to do.
8179 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
8180 * tree-vectorizer.c (vectorize_loops): Update virtual and
8181 loop-closed SSA once.
8182 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
8183
8184 2013-03-18 Richard Biener <rguenther@suse.de>
8185
8186 PR middle-end/56113
8187 * domwalk.c (bb_postorder): New global static.
8188 (cmp_bb_postorder): New function.
8189 (walk_dominator_tree): Replace scheme imposing an order for
8190 visiting dominator sons by one sorting them at the time they
8191 are pushed on the stack.
8192
8193 2013-03-18 Richard Biener <rguenther@suse.de>
8194
8195 PR tree-optimization/39326
8196 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8197 (struct mem_ref): Replace mem member with ao_ref typed member.
8198 (MEM_ANALYZABLE): Adjust.
8199 (memref_eq): Likewise.
8200 (mem_ref_alloc): Likewise.
8201 (gather_mem_refs_stmt): Likewise.
8202 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8203 (execute_sm_if_changed_flag_set): Adjust.
8204 (execute_sm): Likewise.
8205 (ref_always_accessed_p): Likewise.
8206 (refs_independent_p): Likewise.
8207 (can_sm_ref_p): Likewise.
8208
8209 2013-03-18 Jakub Jelinek <jakub@redhat.com>
8210
8211 PR c/56566
8212 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8213 return 1 even for !unsignedp.
8214
8215 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8216
8217 * config/i386/i386.md (isa): Add x64 and nox64.
8218 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8219 (*pushtf): Enable *roF alternative for x64 isa only.
8220 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
8221 mode attribute of integer alternatives to DImode for TARGET_64BIT.
8222 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
8223 (*movtf_internal): Merge from *movtf_internal_rex64 and
8224 *movtf_internal_sse. Use x64 and nox64 isa attributes.
8225 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
8226 nox64 isa attributes.
8227 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
8228 nox64 isa attributes.
8229 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8230
8231 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8232
8233 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8234
8235 2013-03-17 Jakub Jelinek <jakub@redhat.com>
8236
8237 PR target/56640
8238 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8239 class names. Remove trailing comma after "ALL_REGS".
8240
8241 2013-03-16 Jan Hubicka <jh@suse.cz>
8242
8243 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8244 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8245 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8246 of cgraph_get_create_node.
8247 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8248
8249 2013-03-16 Jason Merrill <jason@redhat.com>
8250
8251 PR debug/49090
8252 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8253 with DW_AT_default_value.
8254
8255 2013-03-16 Jakub Jelinek <jakub@redhat.com>
8256
8257 * BASE-VER: Set to 4.9.0.
8258
8259 2013-03-14 Andi Kleen <ak@linux.intel.com>
8260
8261 PR target/56619
8262 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8263 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8264 Document _x* TSX intrinsics.
8265
8266 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8267 David Holsgrove <david.holsgrove@xilinx.com>
8268
8269 * configure.ac: Add MicroBlaze TLS support detection.
8270 * configure: Regenerate.
8271 * config/microblaze/microblaze-protos.h
8272 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8273 symbol_mentioned_p, label_mentioned_p): Add prototypes.
8274 * config/microblaze/microblaze.c (microblaze_address_type): Add
8275 ADDRESS_TLS and tls_reloc address types.
8276 (microblaze_address_info): Add tls_reloc.
8277 (TARGET_HAVE_TLS): Define.
8278 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8279 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
8280 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8281 load_tls_operand, microblaze_call_tls_get_addr,
8282 microblaze_legitimize_tls_address): New functions.
8283 (microblaze_classify_unspec): Handle UNSPEC_TLS.
8284 (get_base_reg): Use microblaze_tls_symbol_p.
8285 (microblaze_classify_address): Handle TLS.
8286 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8287 label_mentioned_p and microblaze_tls_referenced_p.
8288 (microblaze_legitimize_address): Handle TLS.
8289 (microblaze_address_insns): Handle ADDRESS_TLS.
8290 (pic_address_needs_scratch): Handle TLS.
8291 (print_operand_address): Handle TLS.
8292 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8293 (microblaze_expand_move): Handle TLS.
8294 (microblaze_legitimate_constant_p): Check
8295 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8296 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8297 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8298 (PIC_OFFSET_TABLE_REGNUM): Set.
8299 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8300 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8301 (addsi3, movsi_internal2, movdf_internal): Update constraints
8302 * config/microblaze/predicates.md (arith_plus_operand): Define
8303 (move_operand): Redefine as move_src_operand,
8304 check microblaze_tls_referenced_p.
8305
8306 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8307
8308 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8309 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8310
8311 2013-03-14 Ian Bolton <ian.bolton@arm.com>
8312
8313 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8314 CC mode for AND.
8315
8316 2013-03-14 Jakub Jelinek <jakub@redhat.com>
8317
8318 PR tree-optimization/53265
8319 * common.opt (Waggressive-loop-optimizations): New option.
8320 * tree-ssa-loop-niter.c: Include tree-pass.h.
8321 (do_warn_aggressive_loop_optimizations): New function.
8322 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
8323 if number_of_latch_executions returned constant.
8324 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8325 early. If number_of_latch_executions returned constant, set
8326 nb_iterations_upper_bound back to it.
8327 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8328 field.
8329 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8330 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8331
8332 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8333 (MULTILIB_OSDIRNAMES): Set.
8334 * genmultilib: If defaultosdirname doesn't start with :: , set
8335 defaultosdirname2 instead, clear it and emit two . multilib_raw
8336 entries instead of just one.
8337
8338 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
8339
8340 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8341 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8342 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8343 (SUBTARGET_OVERRIDE_OPTIONS): New.
8344
8345 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
8346
8347 PR target/49880
8348 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8349 (musermode): Convert to Var(TARGET_USERMODE).
8350 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8351 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8352 * config/sh/sh.c (sh_option_override): Use
8353 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8354 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8355 condition.
8356 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8357 TARGET_SH4.
8358 (udivsi3_i4_single, divsi3_i4_single): Use
8359 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8360
8361 2013-03-13 Dave Korn <dave.korn.cygwin@....>
8362
8363 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8364 default setting.
8365
8366 2013-03-13 Richard Biener <rguenther@suse.de>
8367
8368 PR tree-optimization/56608
8369 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8370 calls when vectorizing basic-blocks.
8371
8372 2013-03-13 Jakub Jelinek <jakub@redhat.com>
8373
8374 PR plugins/45078
8375 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8376 tm_file.
8377
8378 2013-03-12 Jakub Jelinek <jakub@redhat.com>
8379
8380 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8381
8382 2013-03-11 Jan Hubicka <jh@suse.cz>
8383
8384 PR lto/56557
8385 * lto-streamer-out.c (output_symbol_p): Skip references from
8386 constructors of external variables.
8387
8388 2013-03-11 Jan Hubicka <jh@suse.cz>
8389
8390 PR middle-end/56571
8391 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8392 from pseudos.
8393 * emit-rtl.c (verify_rtx_sharing): Likewise.
8394 (copy_insn_1): Likewise.
8395 * rtl.c (copy_rtx): Likewise.
8396
8397 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
8398
8399 PR target/56591
8400 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8401 output_operand_lossage message.
8402
8403 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
8404
8405 PR target/56470
8406 * arm.c (shift_op): Validate RTL pattern on the fly.
8407 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8408 the RTL.
8409
8410 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8411
8412 PR target/56347
8413 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8414 new call patterns that clobber %fr12.
8415 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8416 split and postreload patterns.
8417 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8418 registers %fr12 and %fr12R as call used.
8419
8420 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8421
8422 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8423 (canon_address, record_store, replace_read, check_mem_read_rtx,
8424 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8425 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8426 rest_of_handle_dse): Likewise.
8427
8428 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8429
8430 PR middle-end/56524
8431 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8432 Add base_optabs.
8433 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8434 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8435 (save_optabs_if_changed): Replace with...
8436 (init_tree_optimization_optabs): ...this.
8437 * optabs.c (save_optabs_if_changed): Rename to...
8438 (init_tree_optimization_optabs): ...this. Take the optimization node
8439 as argument. Do nothing if the base optabs are already correct.
8440 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8441 to recompute optabs.
8442 * function.h (function): Remove optabs field.
8443 * function.c (invoke_set_current_function_hook): Call
8444 init_tree_optimization_optabs. Use the result to initialize
8445 this_fn_optabs.
8446
8447 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
8448
8449 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8450 if GTMA_HAS_NO_INSTRUMENTATION.
8451 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8452 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8453 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8454 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8455 GTMA_HAS_NO_INSTRUMENTATION.
8456
8457 2013-03-08 Jakub Jelinek <jakub@redhat.com>
8458
8459 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8460 libasan_preinit.o.
8461
8462 2013-03-08 Marek Polacek <polacek@redhat.com>
8463 Jakub Jelinek <jakub@redhat.com>
8464
8465 PR tree-optimization/56478
8466 * predict.c (is_comparison_with_loop_invariant_p): Change the
8467 type of loop_step to tree.
8468 (predict_loops): Adjust.
8469 (predict_iv_comparison): Perform the computations on double_ints.
8470
8471 2013-03-08 Richard Biener <rguenther@suse.de>
8472
8473 PR tree-optimization/56570
8474 * tree-cfg.c (verify_expr_location_1): Verify locations for
8475 DECL_DEBUG_EXPR.
8476 * tree-sra.c (create_access_replacement): Strip locations
8477 from DECL_DEBUG_EXPRs.
8478
8479 2013-03-08 Richard Biener <rguenther@suse.de>
8480
8481 * tree-inline.c (expand_call_inline): Do not associate
8482 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8483 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8484
8485 2013-03-08 Richard Biener <rguenther@suse.de>
8486
8487 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8488 or block changes with -Og. Fix for location / block encoding
8489 changes and PHI arguments with locations.
8490
8491 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8492
8493 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8494 for all counters.
8495 (struct output_info): Likewise.
8496 (register_overhead): Remove bad gcc_assert.
8497 (bitmap_find_bit): If there is only a single bitmap element, do not
8498 count a miss as a search.
8499 (print_statistics): Update for counter type changes.
8500 (dump_bitmap_statistics): Likewise. Print headers such that they
8501 are properly lined up with the printed counters.
8502
8503 2013-03-07 Jakub Jelinek <jakub@redhat.com>
8504
8505 PR tree-optimization/56559
8506 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8507 check that it has only a single use.
8508
8509 2013-03-07 Richard Biener <rguenther@suse.de>
8510
8511 * doc/invoke.texi (fwhole-program): Discourage use in combination
8512 with -flto.
8513
8514 2013-03-06 Jakub Jelinek <jakub@redhat.com>
8515
8516 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8517
8518 PR tree-optimization/56539
8519 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8520 instead of GSI_CONTINUE_LINKING as last argument to
8521 force_gimple_operand_gsi. Adjust function comment.
8522
8523 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8524 aarch64-cores.def.
8525
8526 PR middle-end/56548
8527 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8528 promoted mode, convert the result back to the original mode.
8529
8530 2013-03-06 Richard Biener <rguenther@suse.de>
8531
8532 PR middle-end/56294
8533 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8534 (insert_updated_phi_nodes_compare_uids): New function.
8535 (update_ssa): Sort symbols_to_rename after UID before
8536 traversing it to insert PHI nodes.
8537
8538 2013-03-06 Richard Biener <rguenther@suse.de>
8539
8540 PR middle-end/50494
8541 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8542 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8543
8544 Revert
8545 2013-02-13 Richard Biener <rguenther@suse.de>
8546
8547 PR lto/50494
8548 * varasm.c (output_constant_def_1): Get the decl representing
8549 the constant as argument.
8550 (output_constant_def): Wrap output_constant_def_1.
8551 (make_decl_rtl): Use output_constant_def_1 with the decl
8552 representing the constant.
8553 (build_constant_desc): Optionally re-use a decl already
8554 representing the constant.
8555 (tree_output_constant_def): Adjust.
8556
8557 2013-03-06 Joey Ye <joey.ye@arm.com>
8558
8559 PR lto/50293
8560 * gcc.c (convert_white_space): New function.
8561 (main): Handles white space in function name.
8562
8563 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8564
8565 PR target/56529
8566 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8567 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8568 to SH_DIV_CALL_TABLE for TARGET_SH2.
8569 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8570 list.
8571 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8572 call-table options.
8573
8574 2013-03-05 Sterling Augustine <saugustine@google.com>
8575 Cary Coutant <ccoutant@google.com>
8576
8577 PR debug/55364
8578 * dwarf2out.c (resolve_addr): Don't call
8579 remove_loc_list_addr_table_entries a second time for the same
8580 expression.
8581
8582 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8583
8584 PR debug/56510
8585 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8586 (avoid_complex_debug_insns): New function.
8587 (expand_debug_locations): Call it.
8588
8589 PR rtl-optimization/56484
8590 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8591 lifetimes of hard registers on small register class machines.
8592
8593 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8594
8595 * config/microblaze/microblaze-protos.h: Rename
8596 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
8597 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
8598 fast_interrupt.
8599 (microblaze_fast_interrupt_function_p): New function.
8600 (microblaze_is_interrupt_handler): Rename to
8601 microblaze_is_interrupt_variant and add fast_interrupt check.
8602 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8603 (save_restore_insns): Likewise.
8604 (compute_frame_size): Likewise.
8605 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8606 (microblaze_globalize_label): Likewise.
8607 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8608 * config/microblaze/microblaze.md: Use wrapper
8609 microblaze_is_interrupt_variant.
8610
8611 2013-03-05 Kai Tietz <ktietz@redhat.com>
8612
8613 * sdbout.c (sdbout_one_type): Switch to current function's section
8614 supporting cold/hot.
8615
8616 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8617
8618 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8619 -mxl-reorder.
8620
8621 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8622
8623 PR middle-end/56461
8624 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8625 if VALGRIND_GET_VBITS is defined, temporarily make object
8626 memory all defined, and restore previous valgrind addressability
8627 and definability afterwards. Free this_object at the end.
8628
8629 PR middle-end/56461
8630 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8631 right before calling lra_create_live_ranges, also call it
8632 when clearing live_p. Only call lra_clear_live_ranges
8633 at the end if live_p.
8634
8635 PR middle-end/56461
8636 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8637
8638 2013-03-05 Richard Biener <rguenther@suse.de>
8639
8640 PR tree-optimization/56521
8641 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8642 value-id.
8643
8644 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8645
8646 PR c++/55135
8647 * except.h (remove_unreachable_eh_regions): New prototype.
8648 * except.c (remove_eh_handler_splicer): New function, split out
8649 of remove_eh_handler.
8650 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8651 warning about running it on many EH regions one at a time.
8652 (remove_unreachable_eh_regions_worker): New function, walk the
8653 EH tree in depth-first order and remove non-marked regions.
8654 (remove_unreachable_eh_regions): New function.
8655 * tree-eh.c (mark_reachable_handlers): New function, split out
8656 from remove_unreachable_handlers.
8657 (remove_unreachable_handlers): Use mark_reachable_handlers and
8658 remove_unreachable_eh_regions.
8659 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8660 and remove_unreachable_eh_regions.
8661
8662 2013-03-05 Richard Biener <rguenther@suse.de>
8663
8664 PR middle-end/56525
8665 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8666 not freeing them until the end.
8667
8668 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8669
8670 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8671
8672 2013-03-05 Richard Biener <rguenther@suse.de>
8673
8674 PR tree-optimization/56270
8675 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8676 of loads after scheduling an SLP instance.
8677
8678 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8679
8680 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8681 tic6x.exp.
8682 (check_gcc_parallelize): Run guality.exp as a separate job from
8683 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8684 struct-layout-1.exp with stackalign.exp.
8685
8686 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8687
8688 PR middle-end/56461
8689 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8690 load_index sbitmap even if some bit in it isn't set.
8691
8692 PR middle-end/56461
8693 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8694 (discover_iteration_bound_by_body_walk): Change queues to
8695 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8696 spelling in comment. Call safe_push on queues[bound_index] directly.
8697 Release queues[queue_index] in every iteration unconditionally.
8698 Release bounds vector.
8699
8700 PR middle-end/56461
8701 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8702 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8703 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8704 inner_phis vector.
8705
8706 2013-03-05 Richard Biener <rguenther@suse.de>
8707
8708 PR lto/56515
8709 * tree-inline.c (remap_blocks_to_null): New function.
8710 (expand_call_inline): When expanding a call stmt without
8711 an associated block inline remap all callee blocks to NULL.
8712
8713 2013-03-05 Jakub Jelinek <jakub@redhat.com>
8714
8715 PR rtl-optimization/56494
8716 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8717 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8718 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8719
8720 PR middle-end/56461
8721 * sel-sched-ir.c (free_sched_pools): Release
8722 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8723 if succs_info_pool.max_top isn't -1.
8724
8725 PR bootstrap/56509
8726 * opts.c (opts_obstack, opts_concat): Moved to...
8727 * opts-common.c (opts_obstack, opts_concat): ... here.
8728
8729 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8730
8731 PR middle-end/56461
8732 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8733
8734 2013-03-04 Martin Jambor <mjambor@suse.cz>
8735
8736 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8737 all appropriate places.
8738
8739 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8740
8741 PR tree-optimization/56424
8742 * ipa-split.c (split_function): Do not set the RSO flag if result is
8743 not by reference and its type is a register type.
8744
8745 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
8746
8747 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
8748 (microblaze_legitimate_pic_operand): Likewise
8749 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
8750 new function microblaze_legitimate_pic_operand
8751 * config/microblaze/microblaze-protos.h
8752 (microblaze_legitimate_pic_operand): Declare.
8753
8754 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8755
8756 * config/microblaze/predicates.md (call_insn_simple_operand):
8757 New predicate for supported rtx code types.
8758 * config/microblaze/microblaze.md (call_internal1): Use
8759 call_insn_simple_operand predicate.
8760
8761 2013-03-04 Jakub Jelinek <jakub@redhat.com>
8762
8763 PR middle-end/56461
8764 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8765 partitions.ordered_remove.
8766
8767 PR middle-end/56461
8768 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8769 vec_oprnds0.create (1) for modifier == NONE.
8770
8771 PR middle-end/56461
8772 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8773 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8774 vec_oprnds1 right before pushing anything to it for
8775 scalar_shift_arg.
8776
8777 PR middle-end/56461
8778 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8779 set nbbs to 0 instead of having separate code path.
8780 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8781 instead of false as last argument if returning NULL.
8782
8783 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8784
8785 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8786 the attribute is now called "target" instead of "option".
8787 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8788 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8789 attribute/pragma name for TARGET_OPTION_VALID_P and
8790 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8791 * doc/tm.texi: Regenerated.
8792
8793 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
8794
8795 * config/microblaze/microblaze.c:
8796 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8797 * config/microblaze/microblaze.h: Add -mxl-reorder to
8798 DRIVER_SELF_SPECS.
8799 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8800 instructions emitted if TARGET_REORDER.
8801 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8802 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8803 separately.
8804
8805 2013-03-01 Xinliang David Li <davidxl@google.com>
8806
8807 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8808 walk length.
8809
8810 2013-03-01 Jakub Jelinek <jakub@redhat.com>
8811
8812 PR middle-end/56461
8813 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8814 vector even when returning true. Fix up function comment formatting.
8815
8816 PR middle-end/56461
8817 * ira-build.c (ira_loop_nodes_count): New variable.
8818 (create_loop_tree_nodes): Initialize it.
8819 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8820
8821 PR middle-end/56461
8822 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8823 method on dr_chain and result_chain.
8824 * tree-vect-stmts.c (vectorizable_store): Only call
8825 result_chain.create if j == 0.
8826
8827 PR middle-end/56461
8828 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8829 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8830 before overwriting it.
8831
8832 2013-03-01 Tobias Burnus <burnus@net-b.de>
8833
8834 * doc/extended.texi (C Extensions): Change order in @menu
8835 to match @node.
8836 (Other MIPS Built-in Functions): Move last MIPS entry before
8837 "picoChip Built-in Functions".
8838 (SH Built-in Functions): Move after RX Built-in Functions.
8839 * doc/gcc.texi (Introduction): Change order in @menu
8840 to match @node.
8841 * doc/md.texi (Constraints): Ditto.
8842 * gty.texi (Type Information): Ditto.
8843 (User-provided marking routines for template types): Make
8844 subsection.
8845 * doc/invoke.texi (AArch64 Options): Move before
8846 "Adapteva Epiphany Options".
8847
8848 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8849 Jakub Jelinek <jakub@redhat.com>
8850
8851 PR sanitizer/56454
8852 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8853 no_address_safety_analysis attribute.
8854 * doc/extend.texi (no_address_safety_attribute): Rename to
8855 no_sanitize_address attribute, mention no_address_safety_analysis
8856 attribute as deprecated alias.
8857
8858 2013-02-28 Jakub Jelinek <jakub@redhat.com>
8859
8860 PR middle-end/56461
8861 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8862 type to vec<vec<tree> > *.
8863 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8864 to be vec<tree> instead of vec<tree> *, set vec_defs
8865 to vNULL and call vec_defs.create (number_of_vects), adjust other
8866 uses of vec_defs.
8867 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8868 vectorizable_condition): Adjust vect_get_slp_defs callers.
8869
8870 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8871
8872 * config/aarch64/aarch64.c
8873 (aarch64_float_const_representable): Remove unused variable.
8874
8875 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8876
8877 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8878
8879 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8880
8881 * config/aarch64/aarch64-builtins.c
8882 (aarch64_init_simd_builtins): Make static.
8883
8884 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8885
8886 * config/aarch64/aarch64.c
8887 (aarch64_simd_make_constant): Make static.
8888
8889 2013-02-28 Martin Jambor <mjambor@suse.cz>
8890
8891 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8892 with no initialization to the RHS of debug statements.
8893
8894 2013-02-28 Martin Jambor <mjambor@suse.cz>
8895
8896 PR tree-optimization/56294
8897 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8898 Adjust dumping.
8899 (get_access_replacement): Do not call create_access_replacement.
8900 Assert a replacement exists.
8901 (get_repl_default_def_ssa_name): Create the replacement declaration
8902 itself.
8903
8904 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8905
8906 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8907 final_end_function.
8908
8909 2013-02-28 Marek Polacek <polacek@redhat.com>
8910
8911 PR rtl-optimization/56466
8912 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8913 if we're changing a loop.
8914 (peel_loops_completely): Likewise.
8915
8916 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8917
8918 PR c++/55813
8919 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8920
8921 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8922
8923 PR target/56445
8924 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8925 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8926 INTX_FTYPE_FX, FX_FTYPE_INTX.
8927 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8928
8929 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8930
8931 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8932 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8933 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8934 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8935 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8936 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8937 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8938 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8939 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8940 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8941 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8942 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8943 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8944 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8945 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8946 (avrxmega6): Increase max flash segments from 5 to 6.
8947 * config/avr/t-multilib: Regenerate.
8948 * config/avr/avr-tables.opt: Regenerate.
8949 * doc/avr-mmcu.texi: Regenerate.
8950
8951 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
8952
8953 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8954 (avr_device_to_arch): Rename to avr_device_to_ld.
8955 (avr_device_to_as): New prototype.
8956 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8957 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8958 * config/avr/driver-avr.c (avr_device_to_as): New.
8959 (avr_device_to_arch): Rename to avr_device_to_ld.
8960
8961 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8962
8963 PR middle-end/56461
8964 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8965 method on dr_chain and result_chain.
8966
8967 PR middle-end/56461
8968 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8969 pointer_set_destroy on not_executed_last_iteration.
8970
8971 PR middle-end/56461
8972 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
8973
8974 PR middle-end/56461
8975 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8976 FOR_EACH_DEFINED_FUNCTION when freeing state.
8977
8978 PR middle-end/56461
8979 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8980 pool_free.
8981 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8982 overwriting it.
8983
8984 PR middle-end/56461
8985 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8986 known_aggs[i].items and release known_aggs vector.
8987
8988 PR middle-end/56461
8989 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8990
8991 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8992
8993 * config/microblaze/microblaze.c (microblaze_emit_compare):
8994 Use xor for EQ/NE comparisions.
8995 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8996 (cbranchsf4): Adjust operator to comparison_operator.
8997
8998 2013-02-27 Jakub Jelinek <jakub@redhat.com>
8999
9000 PR middle-end/56461
9001 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9002 vector.
9003 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9004 vec_safe_push, always update *slot.
9005 (redirect_edge_var_map_clear): Use vec_free.
9006 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9007 (free_var_map_entry): Use vec_free.
9008 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9009 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9010
9011 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
9012
9013 PR middle-end/45472
9014 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9015 when the may_trap_p bit of the exprs being merged differs.
9016 Reorder tests for speculativeness in the logical and operator.
9017
9018 2013-02-27 Jakub Jelinek <jakub@redhat.com>
9019
9020 * incpath.c (add_standard_paths): Use reconcat instead of concat
9021 where appropriate and avoid leaking memory.
9022
9023 * opts.h: Include obstack.h.
9024 (opts_concat): New prototype.
9025 (opts_obstack): New declaration.
9026 * opts.c (opts_concat): New function.
9027 (opts_obstack): New variable.
9028 (init_options_struct): Call gcc_init_obstack on opts_obstack.
9029 (finish_options): Use opts_concat instead of concat
9030 and XOBNEWVEC instead of XNEWVEC.
9031 * opts-common.c (generate_canonical_option, decode_cmdline_option,
9032 generate_option): Likewise.
9033 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9034 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9035
9036 PR target/56455
9037 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9038 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9039
9040 2013-02-26 Jakub Jelinek <jakub@redhat.com>
9041
9042 PR middle-end/56461
9043 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9044
9045 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9046
9047 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9048 (arm_block_move_unaligned_straight): Likewise.
9049 (arm_adjust_block_mem): Likewise.
9050
9051 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9052
9053 PR target/48901
9054 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9055 temp, cond and label.
9056 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9057
9058 PR target/52500
9059 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9060 * config/c6x/c6x.h (dbx_register_map): Update declaration.
9061
9062 PR target/52501
9063 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9064 of prologue/epilogue functions.
9065
9066 PR target/52550
9067 * config/tilegx/tilegx.c (tilegx_expand_prologue):
9068 Remove unused variable cfa_offset.
9069 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9070
9071 PR target/54639
9072 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9073 type promotion to unsigned.
9074
9075 PR target/54640
9076 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9077 for HOST_WIDE_INT of 32 bit / same size as int.
9078 (arm_block_move_unaligned_straight): Likewise.
9079 (arm_adjust_block_mem): Likewise.
9080
9081 PR target/54662
9082 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9083 ALL_CFLAGS.
9084
9085 2013-02-26 Marek Polacek <polacek@redhat.com>
9086
9087 PR tree-optimization/56426
9088 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
9089
9090 2013-02-26 Richard Biener <rguenther@suse.de>
9091
9092 PR target/56444
9093 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
9094 unused variable loops.
9095
9096 2013-02-26 Jakub Jelinek <jakub@redhat.com>
9097
9098 PR tree-optimization/56448
9099 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
9100 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
9101 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
9102 later operands of the references, or even first operand for
9103 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
9104
9105 PR tree-optimization/56443
9106 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
9107 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
9108 to type_for_mode langhook.
9109
9110 2013-02-25 Matt Turner <mattst88@gmail.com>
9111
9112 * doc/invoke.texi: Document r4700.
9113
9114 2013-02-25 Richard Biener <rguenther@suse.de>
9115
9116 PR tree-optimization/56175
9117 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
9118 split out from ...
9119 (simplify_bitwise_binary): ... here. Also guard the conversion
9120 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
9121
9122 2013-02-25 Catherine Moore <clm@codesourcery.com>
9123
9124 Revert:
9125 2013-02-24 Catherine Moore <clm@codesourcery.com>
9126 Maciej W. Rozycki <macro@codesourcery.com>
9127 Tom de Vries <tom@codesourcery.com>
9128 Nathan Sidwell <nathan@codesourcery.com>
9129 Iain Sandoe <iain@codesourcery.com>
9130 Nathan Froyd <froydnj@codesourcery.com>
9131 Chao-ying Fu <fu@mips.com>
9132
9133 * doc/extend.texi: (micromips, nomicromips, nocompression):
9134 Document new function attributes.
9135 * doc/invoke.texi (minterlink-compressed, mmicromips,
9136 m14k, m14ke, m14kec): Document new options.
9137 (minterlink-mips16): Update documentation.
9138 * doc/md.texi (ZC, ZD): Document new constraints.
9139 * configure.ac (gcc_cv_as_micromips): Check if linker
9140 supports the .set micromips directive.
9141 * configure: Regenerate.
9142 * config.in: Regenerate.
9143 * config/mips/mips-tables.opt: Regenerate.
9144 * config/mips/micromips.md: New file.
9145 * constraints.md (ZC, AD): New constraints.
9146 * config/mips/predicates.md (movep_src_register): New predicate.
9147 (movep_src_operand): New predicate.
9148 (non_volatile_mem_operand): New predicate.
9149 * config/mips/mips.md (multimem): New type.
9150 (length): Differentiate between 17-bit and 18-bit branch offsets.
9151 (MOVEP1, MOVEP2): New mode iterator.
9152 (mov_<load>l): Use ZC constraint.
9153 (mov_<load>r): Likewise.
9154 (mov_<store>l): Likewise.
9155 (mov_<store>r): Likewise.
9156 (*branch_equality<mode>_inverted): Add microMIPS support.
9157 (*branch_equality<mode>): Likewise.
9158 (*jump_absolute): Likewise.
9159 (indirect_jump_<mode>): Likewise.
9160 (tablejump_<mode>): Likewise.
9161 (<optab>_internal): Likewise.
9162 (sibcall_internal): Likewise.
9163 (sibcall_value_internal): Likewise.
9164 (prefetch): Use constraint ZD.
9165 * config/mips/mips.opt (minterlink-compressed): New option.
9166 (minterlink-mips16): Now an alias for minterlink-compressed.
9167 (mmicromips): New option.
9168 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9169 (compare_and_swap_12): Likewise.
9170 (sync_add<mode>): Likewise.
9171 (sync_<optab>_12): Likewise.
9172 (sync_old_<optab>_12): Likewise.
9173 (sync_new_<optab>_12): Likewise.
9174 (sync_nand_12): Likewise.
9175 (sync_old_nand_12): Likewise.
9176 (sync_new_nand_12): Likewise.
9177 (sync_sub<mode>): Likewise.
9178 (sync_old_add<mode>): Likewise.
9179 (sync_old_sub<mode>): Likewise.
9180 (sync_new_add<mode>): Likewise.
9181 (sync_new_sub<mode>): Likewise.
9182 (sync_<optab><mode>): Likewise.
9183 (sync_old_<optab><mode>): Likewise.
9184 (sync_new_<optab><mode>): Likewise.
9185 (sync_nand<mode>): Likewise.
9186 (sync_old_nand<mode>): Likewise.
9187 (sync_new_nand<mode>): Likewise.
9188 (sync_lock_test_and_set<mode>): Likewise.
9189 (test_and_set_12): Likewise.
9190 (atomic_compare_and_swap<mode>): Likewise.
9191 (atomic_exchange<mode>_llsc): Likewise.
9192 (atomic_fetch_add<mode>_llsc): Likewise.
9193 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9194 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9195 (umips_save_restore_pattern_p): Likewise.
9196 (umips_load_store_pair_p): Likewise.
9197 (umips_output_load_store_pair): Likewise.
9198 (umips_movep_target_p): Likewise.
9199 (umips_12bit_offset_address_p): Likewise.
9200 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9201 (mips_base_mips16): Rename this...
9202 (mips_base_compression_flags): ...to this. Update all uses.
9203 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9204 (mips_mips16_decl_p): Delete.
9205 (mips_nomips16_decl_p): Delete.
9206 (mips_get_compress_on_flags): New function.
9207 (mips_get_compress_off_flags): New function.
9208 (mips_get_compress_mode): New function.
9209 (mips_get_compress_on_name): New function.
9210 (mips_get_compress_off_name): New function.
9211 (mips_insert_attributes): Support multiple compression types.
9212 (mips_merge_decl_attributes): Likewise.
9213 (umips_12bit_offset_address_p): New function.
9214 (mips_start_function_definition): Emit .set micromips directive.
9215 (mips_call_may_need_jalx_p): New function.
9216 (mips_function_ok_for_sibcall): Add microMIPS support.
9217 (mips_print_operand_punctuation): Support short delay slots and
9218 compact jumps.
9219 (umips_swm_mask, umips_swm_encoding): New.
9220 (umips_build_save_restore): New function.
9221 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9222 (was_mips16_p): Remove.
9223 (old_compression_mode): New.
9224 (mips_set_compression_mode): New function.
9225 (mips_set_current_function): Add microMIPS support.
9226 (mips_option_override): Likewise.
9227 (umips_save_restore_pattern_p): New function.
9228 (umips_output_save_restore): New function.
9229 (umips_load_store_pair_p_1): New function.
9230 (umips_load_store_pair_p): New function.
9231 (umips_output_load_store_pair_1): New function.
9232 (umips_output_load_store_pair): New function.
9233 (umips_movep_target_p) New function.
9234 (mips_prepare_pch_save): Add microMIPS support.
9235 * config/mips/mips.h (TARGET_COMPRESSION): New.
9236 (TARGET_CPU_CPP_BUILTINS): Update macro
9237 to use new compression flags and to support microMIPS.
9238 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9239 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9240 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9241 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9242 (ASM_SPEC): Support mmicromips and mno-micromips.
9243 (M16STORE_REG_P): New macro.
9244 (MIPS_CALL): Support TARGET_MICROMIPS.
9245 (MICROMIPS_J): New macro.
9246 (mips_base_mips16): Rename this...
9247 (mips_base_compression_flags): ...to this.
9248 (UMIPS_12BIT_OFFSET_P): New macro.
9249 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9250 (MULTILIB_DIRNAMES): Likewise.
9251
9252 2013-02-25 Tom de Vries <tom@codesourcery.com>
9253
9254 PR rtl-optimization/56131
9255 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9256 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9257 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9258
9259 2013-02-25 Tobias Burnus <burnus@net-b.de>
9260
9261 * doc/invoke.texi (-fsanitize=): Move from optimization
9262 to debugging options.
9263
9264 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9265
9266 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9267
9268 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
9269 Alexander Monakov <amonakov@ispras.ru>
9270
9271 PR middle-end/56077
9272 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9273 flush pending lists also on non-jumps. Adjust comment.
9274
9275 2013-02-24 Catherine Moore <clm@codesourcery.com>
9276 Maciej W. Rozycki <macro@codesourcery.com>
9277 Tom de Vries <tom@codesourcery.com>
9278 Nathan Sidwell <nathan@codesourcery.com>
9279 Iain Sandoe <iain@codesourcery.com>
9280 Nathan Froyd <froydnj@codesourcery.com>
9281 Chao-ying Fu <fu@mips.com>
9282
9283 * doc/extend.texi: (micromips, nomicromips, nocompression):
9284 Document new function attributes.
9285 * doc/invoke.texi (minterlink-compressed, mmicromips,
9286 m14k, m14ke, m14kec): Document new options.
9287 (minterlink-mips16): Update documentation.
9288 * doc/md.texi (ZC, ZD): Document new constraints.
9289 * configure.ac (gcc_cv_as_micromips): Check if linker
9290 supports the .set micromips directive.
9291 * configure: Regenerate.
9292 * config.in: Regenerate.
9293 * config/mips/mips-tables.opt: Regenerate.
9294 * config/mips/micromips.md: New file.
9295 * constraints.md (ZC, AD): New constraints.
9296 * config/mips/predicates.md (movep_src_register): New predicate.
9297 (movep_src_operand): New predicate.
9298 (non_volatile_mem_operand): New predicate.
9299 * config/mips/mips.md (multimem): New type.
9300 (length): Differentiate between 17-bit and 18-bit branch offsets.
9301 (MOVEP1, MOVEP2): New mode iterator.
9302 (mov_<load>l): Use ZC constraint.
9303 (mov_<load>r): Likewise.
9304 (mov_<store>l): Likewise.
9305 (mov_<store>r): Likewise.
9306 (*branch_equality<mode>_inverted): Add microMIPS support.
9307 (*branch_equality<mode>): Likewise.
9308 (*jump_absolute): Likewise.
9309 (indirect_jump_<mode>): Likewise.
9310 (tablejump_<mode>): Likewise.
9311 (<optab>_internal): Likewise.
9312 (sibcall_internal): Likewise.
9313 (sibcall_value_internal): Likewise.
9314 (prefetch): Use constraint ZD.
9315 * config/mips/mips.opt (minterlink-compressed): New option.
9316 (minterlink-mips16): Now an alias for minterlink-compressed.
9317 (mmicromips): New option.
9318 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9319 (compare_and_swap_12): Likewise.
9320 (sync_add<mode>): Likewise.
9321 (sync_<optab>_12): Likewise.
9322 (sync_old_<optab>_12): Likewise.
9323 (sync_new_<optab>_12): Likewise.
9324 (sync_nand_12): Likewise.
9325 (sync_old_nand_12): Likewise.
9326 (sync_new_nand_12): Likewise.
9327 (sync_sub<mode>): Likewise.
9328 (sync_old_add<mode>): Likewise.
9329 (sync_old_sub<mode>): Likewise.
9330 (sync_new_add<mode>): Likewise.
9331 (sync_new_sub<mode>): Likewise.
9332 (sync_<optab><mode>): Likewise.
9333 (sync_old_<optab><mode>): Likewise.
9334 (sync_new_<optab><mode>): Likewise.
9335 (sync_nand<mode>): Likewise.
9336 (sync_old_nand<mode>): Likewise.
9337 (sync_new_nand<mode>): Likewise.
9338 (sync_lock_test_and_set<mode>): Likewise.
9339 (test_and_set_12): Likewise.
9340 (atomic_compare_and_swap<mode>): Likewise.
9341 (atomic_exchange<mode>_llsc): Likewise.
9342 (atomic_fetch_add<mode>_llsc): Likewise.
9343 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9344 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9345 (umips_save_restore_pattern_p): Likewise.
9346 (umips_load_store_pair_p): Likewise.
9347 (umips_output_load_store_pair): Likewise.
9348 (umips_movep_target_p): Likewise.
9349 (umips_12bit_offset_address_p): Likewise.
9350 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9351 (mips_base_mips16): Rename this...
9352 (mips_base_compression_flags): ...to this. Update all uses.
9353 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9354 (mips_mips16_decl_p): Delete.
9355 (mips_nomips16_decl_p): Delete.
9356 (mips_get_compress_on_flags): New function.
9357 (mips_get_compress_off_flags): New function.
9358 (mips_get_compress_mode): New function.
9359 (mips_get_compress_on_name): New function.
9360 (mips_get_compress_off_name): New function.
9361 (mips_insert_attributes): Support multiple compression types.
9362 (mips_merge_decl_attributes): Likewise.
9363 (umips_12bit_offset_address_p): New function.
9364 (mips_start_function_definition): Emit .set micromips directive.
9365 (mips_call_may_need_jalx_p): New function.
9366 (mips_function_ok_for_sibcall): Add microMIPS support.
9367 (mips_print_operand_punctuation): Support short delay slots and
9368 compact jumps.
9369 (umips_swm_mask, umips_swm_encoding): New.
9370 (umips_build_save_restore): New function.
9371 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9372 (was_mips16_p): Remove.
9373 (old_compression_mode): New.
9374 (mips_set_compression_mode): New function.
9375 (mips_set_current_function): Add microMIPS support.
9376 (mips_option_override): Likewise.
9377 (umips_save_restore_pattern_p): New function.
9378 (umips_output_save_restore): New function.
9379 (umips_load_store_pair_p_1): New function.
9380 (umips_load_store_pair_p): New function.
9381 (umips_output_load_store_pair_1): New function.
9382 (umips_output_load_store_pair): New function.
9383 (umips_movep_target_p) New function.
9384 (mips_prepare_pch_save): Add microMIPS support.
9385 * config/mips/mips.h (TARGET_COMPRESSION): New.
9386 (TARGET_CPU_CPP_BUILTINS): Update macro
9387 to use new compression flags and to support microMIPS.
9388 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9389 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9390 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9391 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9392 (ASM_SPEC): Support mmicromips and mno-micromips.
9393 (M16STORE_REG_P): New macro.
9394 (MIPS_CALL): Support TARGET_MICROMIPS.
9395 (MICROMIPS_J): New macro.
9396 (mips_base_mips16): Rename this...
9397 (mips_base_compression_flags): ...to this.
9398 (UMIPS_12BIT_OFFSET_P): New macro.
9399 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9400 (MULTILIB_DIRNAMES): Likewise.
9401
9402 2013-02-24 Jakub Jelinek <jakub@redhat.com>
9403
9404 PR target/52555
9405 * target-globals.c (save_target_globals): For init_reg_sets and
9406 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9407
9408 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9409
9410 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9411 * config/aarch64/t-aarch64
9412 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9413
9414 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9415
9416 PR inline-asm/56148
9417 * lra-constraints.c (process_alt_operands): Reload operand
9418 conflicting with earlier clobber only if no more other conflicting
9419 operands.
9420
9421 2013-02-22 Jakub Jelinek <jakub@redhat.com>
9422
9423 PR sanitizer/56393
9424 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9425 if not linking a shared library.
9426
9427 2013-02-22 Seth LaForge <sethml@google.com>
9428
9429 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9430
9431 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9432
9433 * config/arm/arm.md (split for extendsidi): Update condition.
9434 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9435 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9436 (qhs_zextenddi_cstr): Likewise.
9437
9438 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9439
9440 PR middle-end/56420
9441 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9442 avoid signed wrapping.
9443 (expand_mult): Handle properly multiplication by
9444 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9445 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9446 in the compiler if coeff is HOST_WIDE_INT_MIN.
9447 (expand_divmod): Don't make ext_op1 static, change it's type to
9448 uhwi. Avoid undefined behavior in -INTVAL (op1).
9449
9450 PR rtl-optimization/50339
9451 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9452 field.
9453 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9454 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9455 into splitting_ashiftrt field.
9456 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9457 ASHIFTRT.
9458 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9459 choices.
9460
9461 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
9462
9463 PR middle-end/56108
9464 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9465 are sure to go irrevocable.
9466
9467 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
9468
9469 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9470 scalars are valid operands.
9471
9472 2013-02-21 Martin Jambor <mjambor@suse.cz>
9473
9474 PR tree-optimization/56310
9475 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9476 only matching indices and non-negative final offsets.
9477 (intersect_aggregates_with_edge): Pass src_idx to
9478 agg_replacements_to_vector. Pass src_idx insstead of index to
9479 intersect_with_agg_replacements.
9480
9481 2013-02-21 Martin Jambor <mjambor@suse.cz>
9482
9483 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9484 instead of hard-wired defaults.
9485
9486 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9487
9488 * doc/invoke.texi (MIPS Options): Update documentation of the
9489 floating-point multiply-accumulate instruction restrictions.
9490
9491 2013-02-21 Kostya Serebryany <kcc@google.com>
9492
9493 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9494 asan_shadow_offset on x86_64 linux.
9495
9496 2013-02-21 Richard Biener <rguenther@suse.de>
9497
9498 PR tree-optimization/56415
9499 Revert
9500 2013-02-11 Richard Biener <rguenther@suse.de>
9501
9502 PR tree-optimization/56273
9503 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9504 first VRP run.
9505
9506 2013-02-21 Jakub Jelinek <jakub@redhat.com>
9507
9508 PR bootstrap/56258
9509 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9510 instead of @itemx.
9511
9512 PR inline-asm/56405
9513 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9514 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9515
9516 2013-02-20 Jan Hubicka <jh@suse.cz>
9517
9518 PR tree-optimization/56265
9519 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9520 when target is referenced for first time.
9521
9522 2013-02-20 Richard Biener <rguenther@suse.de>
9523
9524 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9525 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9526 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9527 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9528 not return anything.
9529 (rename_ssa_copies): Do not remove unused locals.
9530 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
9531 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
9532 * passes.c (execute_function_todo): Do not schedule unused locals
9533 removal if cleanup_tree_cfg did something.
9534 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9535 about the number of removed locals.
9536
9537 2013-02-20 Richard Biener <rguenther@suse.de>
9538
9539 PR tree-optimization/56398
9540 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
9541
9542 2013-02-20 Martin Jambor <mjambor@suse.cz>
9543
9544 PR tree-optimization/55334
9545 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9546 restricted pointers to arrays.
9547
9548 2013-02-20 Richard Biener <rguenther@suse.de>
9549 Jakub Jelinek <jakub@redhat.com>
9550
9551 PR tree-optimization/56396
9552 * tree-ssa-ccp.c (n_const_val): New static variable.
9553 (get_value): Return NULL for SSA names we don't have a lattice
9554 entry for.
9555 (ccp_initialize): Initialize n_const_val.
9556 * tree-ssa-copy.c (n_copy_of): New static variable.
9557 (init_copy_prop): Initialize n_copy_of.
9558 (get_value): Return NULL_TREE for SSA names we don't have a
9559 lattice entry for.
9560
9561 2013-02-20 Martin Jambor <mjambor@suse.cz>
9562
9563 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9564
9565 2013-02-20 Richard Biener <rguenther@suse.de>
9566
9567 * genpreds.c (write_lookup_constraint): Do not compare first
9568 letter of the constraint again.
9569
9570 2013-02-20 Richard Biener <rguenther@suse.de>
9571
9572 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9573 and ceil_log2.
9574 (get_use_iv_cost): Terminate hashtable walk when coming across
9575 an empty entry.
9576
9577 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9578
9579 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9580 reassociation for avx2 targets.
9581
9582 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9583
9584 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9585 Add version check for v8.10.a to enable microblaze_has_clz
9586 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
9587 version and TARGET_PATTERN_COMPARE check
9588 * config/microblaze/microblaze.md: New clzsi2 instruction
9589
9590 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9591
9592 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
9593 function before branching.
9594
9595 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9596
9597 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9598 DUMP_INSN_RTX_UID.
9599 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9600
9601 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
9602
9603 PR middle-end/55889
9604 * sel-sched.c: Include ira.h.
9605 (implicit_clobber_conflict_p): New function.
9606 (moveup_expr): Use it.
9607 * Makefile.in (sel-sched.o): Depend on ira.h.
9608
9609 2013-02-19 Richard Biener <rguenther@suse.de>
9610
9611 PR tree-optimization/56384
9612 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9613 (vn_hash_type): Split out from ...
9614 (vn_hash_constant_with_type): ... here.
9615 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9616 (vn_phi_eq): Compare types from vn_phi_s structure.
9617 (vn_phi_lookup): Populate vn_phi_s type.
9618 (vn_phi_insert): Likewise.
9619
9620 2013-02-19 Jakub Jelinek <jakub@redhat.com>
9621
9622 PR tree-optimization/56350
9623 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9624 if haven't found reduction or nested cycle operand, rather than
9625 asserting we must find it.
9626
9627 PR tree-optimization/56381
9628 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9629 to fold_build3.
9630
9631 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
9632 Jakub Jelinek <jakub@redhat.com>
9633
9634 PR target/52555
9635 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9636 (swap_optab_enable): Same.
9637 (init_all_optabs): Use argument instead of global.
9638 * tree.h (struct tree_optimization_option): New field target_optabs.
9639 * expr.h (init_all_optabs): Add argument to prototype.
9640 (TREE_OPTIMIZATION_OPTABS): New.
9641 (save_optabs_if_changed): Protoize.
9642 * optabs.h: Declare this_fn_optabs.
9643 * optabs.c (save_optabs_if_changed): New.
9644 Declare this_fn_optabs.
9645 (init_optabs): Add argument to init_all_optabs() call.
9646 * function.c (invoke_set_current_function_hook): Handle per
9647 function optabs.
9648 * function.h (struct function): New field optabs.
9649 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9650 optimization_current_node has changed.
9651 * target-globals.h (save_target_globals_default_opts): Protoize.
9652 * target-globals.c (save_target_globals_default_opts): New.
9653
9654 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9655
9656 PR target/56347
9657 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9658 registers %fr12 and %fr12R as call used.
9659
9660 PR target/56214
9661 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
9662 and HImode, require all displacements to be an integer multiple of
9663 their mode size.
9664 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9665 only allow QImode and HImode when reload is in progress and strict is
9666 true. Likewise for symbolic addresses. Use base14_operand to check
9667 displacements in REG+BASE addresses.
9668
9669 2013-02-18 Richard Biener <rguenther@suse.de>
9670
9671 PR tree-optimization/56366
9672 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9673 handle sign-conversion of outer-loop initial induction value.
9674
9675 2013-02-18 Richard Biener <rguenther@suse.de>
9676
9677 PR middle-end/56349
9678 * cfghooks.c (merge_blocks): If we merge a latch into another
9679 block adjust references to it.
9680 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9681 (verify_loop_structure): Verify that a recorded latch is in fact
9682 a latch.
9683
9684 2013-02-18 Richard Biener <rguenther@suse.de>
9685
9686 PR tree-optimization/56321
9687 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9688 order SSA name release and virtual operand unlinking.
9689
9690 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9691
9692 * config/microblaze/microblaze.md (save_stack_block): Define.
9693 (restore_stack_block): Likewise.
9694
9695 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9696
9697 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9698 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9699 * config/microblaze/microblaze.c (microblaze_option_override):
9700 Bail out early for PIC modes when target does not support PIC.
9701
9702 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9703
9704 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
9705 Replace with a microblaze version.
9706 (microblaze_trampoline_init): Adapt for microblaze.
9707 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
9708 microblaze.
9709
9710 2013-02-16 Jakub Jelinek <jakub@redhat.com>
9711 Dodji Seketeli <dodji@redhat.com>
9712
9713 PR asan/56330
9714 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
9715 (instrument_mem_region_access): Do not forget to always put
9716 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9717 0) statement, even for cases where either 'base' or 'base + len'
9718 are not instrumented -- because they have been previously
9719 instrumented. Simplify the logic by putting all the statements
9720 instrument 'base + len' inside a sequence, and then insert that
9721 sequence right before the current insertion point. Then, to
9722 instrument 'base + len', just get an iterator on that statement.
9723 And do not forget to update the pointer to iterator the function
9724 received as argument.
9725
9726 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9727
9728 PR rtl-optimization/56348
9729 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9730
9731 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9732
9733 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9734 (clean_graph_dump_file): Pass base to start_graph_dump.
9735
9736 2013-02-14 Richard Henderson <rth@redhat.com>
9737
9738 PR target/55941
9739 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9740
9741 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9742
9743 * collect2-aix.h: Define F_LOADONLY.
9744
9745 2013-02-14 Richard Biener <rguenther@suse.de>
9746
9747 PR lto/50494
9748 * varasm.c (output_constant_def_1): Get the decl representing
9749 the constant as argument.
9750 (output_constant_def): Wrap output_constant_def_1.
9751 (make_decl_rtl): Use output_constant_def_1 with the decl
9752 representing the constant.
9753 (build_constant_desc): Optionally re-use a decl already
9754 representing the constant.
9755 (tree_output_constant_def): Adjust.
9756
9757 2013-02-14 Dodji Seketeli <dodji@redhat.com>
9758
9759 Fix an asan crash
9760 * asan.c (instrument_builtin_call): Really put the length of the
9761 second source argument into src1_len.
9762
9763 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9764
9765 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9766 argument. If it is false, don't create edge from then_bb to
9767 fallthru_bb.
9768 (insert_if_then_before_iter): Pass true to it.
9769 (build_check_stmt): Pass false to it.
9770 (transform_statements): Flush hash table only on extended basic
9771 block boundaries, rather than at the beginning of every bb.
9772 Don't flush hash table on nonfreeing_call_p calls.
9773 * tree-flow.h (nonfreeing_call_p): New prototype.
9774 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9775
9776 2013-02-13 David S. Miller <davem@davemloft.net>
9777
9778 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9779
9780 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9781
9782 PR target/56184
9783 * ira.c (max_regno_before_ira): Move from ...
9784 (ira): ... here.
9785 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9786 vec_safe_length.
9787
9788 2013-02-13 Jakub Jelinek <jakub@redhat.com>
9789
9790 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9791
9792 2013-02-13 Richard Biener <rguenther@suse.de>
9793
9794 PR lto/56295
9795 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9796 globals in MEM_REFs.
9797
9798 2013-02-13 Richard Biener <rguenther@suse.de>
9799
9800 * loop-init.c (loop_optimizer_init): Clear loop state when
9801 re-initializing preserved loops.
9802 * loop-unswitch.c (unswitch_single_loop): Return whether
9803 we unswitched the loop. Do not verify loop state here.
9804 (unswitch_loops): When we unswitched a loop discover new loops.
9805
9806 2013-02-13 Kostya Serebryany <kcc@google.com>
9807
9808 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9809 on x86_64 linux.
9810 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9811
9812 2013-02-12 Dodji Seketeli <dodji@redhat.com>
9813
9814 Avoid instrumenting duplicated memory access in the same basic block
9815 * Makefile.in (asan.o): Add new dependency on hash-table.h
9816 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9817 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9818 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9819 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9820 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9821 (get_mem_ref_of_assignment): New functions.
9822 (get_mem_refs_of_builtin_call): Extract from
9823 instrument_builtin_call and tweak a little bit to make it fit with
9824 the new signature.
9825 (instrument_builtin_call): Use the new
9826 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9827 of is_gimple_builtin_call.
9828 (instrument_derefs, instrument_mem_region_access): Insert the
9829 instrumented memory reference into the hash table.
9830 (maybe_instrument_assignment): Renamed instrument_assignment into
9831 this, and change it to advance the iterator when instrumentation
9832 actually happened and return true in that case. This makes it
9833 homogeneous with maybe_instrument_assignment, and thus give a
9834 chance to callers to be more 'regular'.
9835 (transform_statements): Clear the memory reference hash table
9836 whenever we enter a new BB, when we cross a function call, or when
9837 we are done transforming statements. Use
9838 maybe_instrument_assignment instead of instrumentation. No more
9839 need to special case maybe_instrument_assignment and advance the
9840 iterator after calling it; it's now handled just like
9841 maybe_instrument_call. Update comment.
9842
9843 2013-02-13 Richard Biener <rguenther@suse.de>
9844
9845 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9846 Fix loop discovery code.
9847
9848 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9849
9850 PR inline-asm/56148
9851 * lra-constraints.c (process_alt_operands): Match early clobber
9852 operand with itself. Check conflicts with earlyclobber only if
9853 the operand is not reloaded. Prefer to reload conflicting operand
9854 if earlyclobber and matching operands are the same.
9855
9856 2013-02-12 Richard Biener <rguenther@suse.de>
9857
9858 PR lto/56297
9859 * lto-streamer-out.c (write_symbol): Do not output symbols
9860 for hard register variables.
9861
9862 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
9863
9864 PR target/54222
9865 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9866 (umulsidi3_insn, mulsidi3_insn): New insns.
9867
9868 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
9869
9870 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9871 (struct tune_params): Add vec_costs field.
9872 * config/arm/arm.c (arm_builtin_vectorization_cost)
9873 (arm_add_stmt_cost): New functions.
9874 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9875 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9876 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9877 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9878 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9879 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9880 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9881
9882 2013-02-12 Richard Biener <rguenther@suse.de>
9883
9884 PR lto/56295
9885 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9886 decls again if possible.
9887
9888 2013-02-12 Richard Biener <rguenther@suse.de>
9889
9890 PR middle-end/56288
9891 * tree-ssa.c (verify_ssa_name): Fix check, move
9892 SSA_NAME_IN_FREE_LIST check up.
9893
9894 2013-02-12 Jakub Jelinek <jakub@redhat.com>
9895 Steven Bosscher <steven@gcc.gnu.org>
9896
9897 PR rtl-optimization/56151
9898 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9899 equal to op0 or op1, and last_insn pattern is CODE operation
9900 with MEM dest and one of the operands matches that MEM.
9901
9902 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9903
9904 * doc/extend.texi: Document Function Multiversioning and "default"
9905 parameter string to target attribute.
9906 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9907 target attribute parameter is "default".
9908 (ix86_compare_version_priority): Remove checks for target attribute.
9909 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9910 Remove check for target attribute equal to NULL. Add assert.
9911 (ix86_generate_version_dispatcher_body): Change error to sorry.
9912
9913 2013-02-11 Iain Sandoe <iain@codesourcery.com>
9914 Jack Howarth <howarth@bromo.med.uc.edu>
9915 Patrick Marlier <patrick.marlier@gmail.com>
9916
9917 PR libitm/55693
9918 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9919 define ENDFILE_SPEC as TM_DESTRUCTOR.
9920 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9921
9922 2013-02-11 Alexander Potapenko <glider@google.com>
9923 Jack Howarth <howarth@bromo.med.uc.edu>
9924 Jakub Jelinek <jakub@redhat.com>
9925
9926 PR sanitizer/55617
9927 * config/darwin.c (cdtor_record): Rename ctor_record.
9928 (sort_cdtor_records): Rename sort_ctor_records.
9929 (finalize_dtors): New routine to sort destructors by
9930 priority before use in assemble_integer.
9931 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9932
9933 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
9934
9935 PR rtl-optimization/56275
9936 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9937 offset is non-negative and less than cmode size before
9938 calling simplify_subreg.
9939
9940 2013-02-11 Richard Biener <rguenther@suse.de>
9941
9942 PR tree-optimization/56264
9943 * cfgloop.h (fix_loop_structure): Adjust prototype.
9944 * loop-init.c (fix_loop_structure): Return the number of
9945 newly discovered loops.
9946 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9947 are discovered, do a full loop-closed SSA rewrite.
9948
9949 2013-02-11 Richard Biener <rguenther@suse.de>
9950
9951 PR tree-optimization/56273
9952 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9953 first VRP run.
9954 (check_array_ref): Fix missing newline in dumps.
9955 (search_for_addr_array): Likewise.
9956
9957 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
9958
9959 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9960
9961 2013-02-09 Jakub Jelinek <jakub@redhat.com>
9962
9963 PR target/56256
9964 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9965
9966 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9967
9968 PR rtl-optimization/56246
9969 * lra-constraints.c (simplify_operand_subreg): Try to reuse
9970 reload pseudo.
9971 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9972 constraints are satisfied.
9973
9974 2013-02-08 Jeff Law <law@redhat.com>
9975
9976 PR debug/53948
9977 * emit-rtl.c (reg_is_parm_p): New function.
9978 * regs.h (reg_is_parm_p): New prototype.
9979 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9980 callee-clobbered registers.
9981
9982 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9983
9984 PR target/56043
9985 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9986 If there is no implicit builtin declaration, just return NULL.
9987
9988 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9989
9990 * config/i386/sse.md (FMAMODEM): New mode iterator.
9991 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9992 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9993
9994 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
9995
9996 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9997 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9998 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9999
10000 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10001
10002 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10003 (microblaze*-*-elf): Likewise.
10004 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10005 LINK_SPEC.
10006 * config/microblaze/microblaze-c.c: Add builtin defines for
10007 _LITTLE_ENDIAN and _BIG_ENDIAN.
10008 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10009 add to TARGET_DEFAULT flags.
10010 Expand ASM_SPEC and LINK_SPEC.
10011 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10012 * config/microblaze/microblaze.md: Update extendsidi2 and
10013 movdi_internal instructions to use low-order / high-order reg
10014 print_operands.
10015 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10016 options and inversemask / mask of LITTLE_ENDIAN.
10017 * config/microblaze/t-microblaze: Expand multilib options to
10018 include mlittle-endian (le) and update exceptions patterns.
10019
10020 2013-02-08 Jakub Jelinek <jakub@redhat.com>
10021
10022 PR rtl-optimization/56195
10023 * lra-constraints.c (get_reload_reg): Don't reuse regs
10024 if they have smaller mode than requested, if they have
10025 wider mode than requested, try to return a SUBREG.
10026
10027 PR tree-optimization/56250
10028 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10029 if type is unsigned and code isn't MULT_EXPR.
10030
10031 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
10032
10033 PR tree-optimization/56064
10034 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10035 bits according to mode.
10036 * fixed-value.h (fixed_from_double_int)
10037 (const_fixed_from_double_int): Adjust comments.
10038
10039 2013-02-08 Richard Biener <rguenther@suse.de>
10040
10041 PR lto/56231
10042 * lto-streamer.h (struct data_in): Remove current_file, current_line
10043 and current_col members.
10044 * lto-streamer-out.c (lto_output_location): Stream changed bits
10045 en-block for efficiency.
10046 * lto-streamer-in.c (clear_line_info): Remove.
10047 (lto_input_location): Cache current file, line and column
10048 globally via local statics. Read changed bits en-block.
10049 (input_function): Do not call clear_line_info.
10050 (lto_read_body): Likewise.
10051 (lto_input_toplevel_asms): Likewise.
10052
10053 2013-02-08 Michael Matz <matz@suse.de>
10054
10055 PR tree-optimization/52448
10056 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10057 (nt_call_phase): New static.
10058 (add_or_mark_expr): Only mark accesses with newer phase than any
10059 call seen.
10060 (nonfreeing_call_p): New.
10061 (nt_init_block): Update nt_call_phase, mark blocks as visited.
10062 (nt_fini_block): Keep blocks marked as visited.
10063 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10064
10065 2013-02-08 Richard Biener <rguenther@suse.de>
10066
10067 * ira.c (ira): Free broken dominator information.
10068
10069 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
10070
10071 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10072
10073 2013-02-08 Marek Polacek <polacek@redhat.com>
10074
10075 * cfgloop.c (verify_loop_structure): Add more checking of headers.
10076
10077 2013-02-08 Richard Biener <rguenther@suse.de>
10078
10079 PR middle-end/56181
10080 * cfgloop.h (flow_loops_find): Adjust.
10081 (bb_loop_header_p): Declare.
10082 * cfgloop.c (bb_loop_header_p): New function split out from ...
10083 (flow_loops_find): ... here. Adjust function signature,
10084 support incremental loop structure update.
10085 (verify_loop_structure): Cleanup. Verify a loop is a loop.
10086 * cfgloopmanip.c (fix_loop_structure): Move ...
10087 * loop-init.c (fix_loop_structure): ... here.
10088 (apply_loop_flags): Split out from ...
10089 (loop_optimizer_init): ... here.
10090 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
10091 in incremental mode, only remove dead loops here.
10092
10093 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
10094
10095 PR target/54222
10096 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
10097 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
10098 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
10099 (*round<mode>3.libgcc): New insns for fixed-modes.
10100 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
10101 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
10102 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
10103 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
10104 implementations. Define to __builtin_avr_absFX,
10105 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
10106 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
10107 __builtin_avr_countlsFX, respectively.
10108 * config/avr/avr-c.c (target.h): Include it.
10109 (enum avr_builtin_id): New enum.
10110 (avr_resolve_overloaded_builtin): New static function.
10111 (avr_register_target_pragmas): Use it to set
10112 targetm.resolve_overloaded_builtin.
10113 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
10114 tree nodes used by DEF_BUILTIN.
10115 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
10116 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
10117 <AVR_BUILTIN_xxBITS>: Same.
10118
10119 2013-02-08 Richard Biener <rguenther@suse.de>
10120
10121 * cfgloop.c (verify_loop_structure): Properly handle
10122 a loop exiting to another loop header.
10123 * ira-int.h (ira_loops): Remove.
10124 * ira.c (ira_loops): Remove.
10125 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
10126 (do_reload): Use loop_optimizer_finalize.
10127 * ira-build.c (create_loop_tree_nodes): Use get_loops and
10128 number_of_loops to access the loop tree.
10129 (more_one_region_p): Likewise.
10130 (finish_loop_tree_nodes): Likewise.
10131 (rebuild_regno_allocno_maps): Likewise.
10132 (mark_loops_for_removal): Likewise.
10133 (mark_all_loops_for_removal): Likewise.
10134 (remove_unnecessary_regions): Likewise.
10135 (ira_build): Likewise.
10136 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
10137
10138 2013-02-08 Richard Biener <rguenther@suse.de>
10139
10140 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
10141 * ipa-pure-const.c (analyze_function): Avoid calling
10142 mark_irreducible_loops twice.
10143 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
10144
10145 2013-02-07 David S. Miller <davem@davemloft.net>
10146
10147 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
10148 on 'reg'.
10149 * var-tracking.c (vt_add_function_parameter): Test the presence of
10150 HAVE_window_save properly and do not remap argument registers when
10151 we have a leaf function.
10152
10153 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
10154
10155 PR bootstrap/56227
10156 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
10157 instead of "ll".
10158 * config/i386/i386.c (ix86_print_operand): Ditto.
10159
10160 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10161
10162 * lra-constraints.c (process_alt_operands): Fix recently added comment.
10163
10164 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10165
10166 PR rtl-optimization/56225
10167 * lra-constraints.c (process_alt_operands): Check that reload hard
10168 reg can hold value for strict_low_part.
10169
10170 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10171
10172 PR debug/56154
10173 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
10174 dwarf2out_end_function.
10175 (in_first_function_p, maybe_at_text_label_p,
10176 first_loclabel_num_not_at_text_label): New variables.
10177 (dwarf2out_var_location): In the first function find out
10178 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
10179 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
10180 functions.
10181
10182 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
10183
10184 PR rtl-optimization/56178
10185 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
10186 SUBREG of a register. Tidy up related block of code.
10187 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
10188 note if the source is a register or a SUBREG of a register.
10189
10190 2013-02-07 Jakub Jelinek <jakub@redhat.com>
10191
10192 PR target/56228
10193 * config/rs6000/rs6000.md (ptrm): New mode attr.
10194 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10195 call_value_indirect_aix<pttrsize>,
10196 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10197 m in constraints.
10198
10199 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10200
10201 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10202 if -bnortl. Convert to strcmp and strncmp.
10203
10204 2013-02-07 Alan Modra <amodra@gmail.com>
10205
10206 PR target/54009
10207 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10208 addresses won't wrap when offsetting.
10209 (rs6000_secondary_reload): Provide secondary reloads needed for
10210 wrapping LO_SUM addresses.
10211
10212 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
10213
10214 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10215 MACH, just __MACH__.
10216
10217 2013-02-06 Richard Biener <rguenther@suse.de>
10218
10219 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10220 instead of calling fix_loop_structure.
10221
10222 2013-02-06 Jakub Jelinek <jakub@redhat.com>
10223
10224 PR middle-end/56217
10225 * omp-low.c (use_pointer_for_field): Return false if
10226 lower_send_shared_vars doesn't generate any copy-out code.
10227
10228 2013-02-06 Tom de Vries <tom@codesourcery.com>
10229
10230 PR rtl-optimization/56131
10231 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10232 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
10233 of the label is NULL. Add comment.
10234
10235 2013-02-05 Jakub Jelinek <jakub@redhat.com>
10236
10237 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10238
10239 PR sanitizer/55374
10240 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10241 (STATIC_LIBTSAN_LIBS): Likewise.
10242 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10243 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10244 is defined, don't add anything else beyond that.
10245 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10246 (LINK_COMMAND_SPEC): Use them.
10247
10248 PR tree-optimization/56205
10249 * tree-stdarg.c (check_all_va_list_escapes): Return true if
10250 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10251 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10252
10253 2013-02-05 Richard Biener <rguenther@suse.de>
10254
10255 PR tree-optimization/53342
10256 PR tree-optimization/53185
10257 * tree-vectorizer.h (vect_check_strided_load): Remove.
10258 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10259 not disallow peeling for vectorized strided loads.
10260 (vect_check_strided_load): Make static and simplify.
10261 (vect_analyze_data_refs): Adjust.
10262 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10263 correctly when vectorizing strided loads.
10264
10265 2013-02-05 Richard Biener <rguenther@suse.de>
10266
10267 * doc/install.texi: Refer to ISL, not PPL.
10268
10269 2013-02-05 Jan Hubicka <jh@suse.cz>
10270
10271 PR tree-optimization/55789
10272 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10273
10274 2013-02-05 Jan Hubicka <jh@suse.cz>
10275
10276 PR tree-optimization/55789
10277 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10278 the dead call anyway.
10279
10280 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
10281
10282 PR sanitizer/55374
10283 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10284
10285 2013-02-04 Alexander Potapenko <glider@google.com>
10286 Jack Howarth <howarth@bromo.med.uc.edu>
10287 Jakub Jelinek <jakub@redhat.com>
10288
10289 PR sanitizer/55617
10290 * config/darwin.c (sort_ctor_records): Stabilized qsort
10291 on constructor priority by using original position.
10292 (finalize_ctors): New routine to sort constructors by
10293 priority before use in assemble_integer.
10294 (machopic_asm_out_constructor): Use finalize_ctors if needed.
10295
10296 2013-02-04 Jakub Jelinek <jakub@redhat.com>
10297
10298 PR libstdc++/54314
10299 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10300 about visibility on artificial decls.
10301 * config/sol2.c (solaris_assemble_visibility): Likewise.
10302
10303 2013-02-04 Kai Tietz <ktietz@redhat.com>
10304
10305 PR target/56186
10306 * config/i386/i386.c (function_value_ms_64): Add additional valtype
10307 argument and improve checking of return-argument types for 16-byte
10308 modes.
10309 (ix86_function_value_1): Add additional valtype argument on call
10310 of function_value_64.
10311 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10312 handling infunction_value_64 function.
10313
10314 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10315
10316 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
10317
10318 2013-02-04 Richard Biener <rguenther@suse.de>
10319
10320 PR tree-optimization/56188
10321 * tree-ssa-structalias.c (label_visit): Consider case with
10322 initially non-empty points-to set.
10323 (perform_var_substitution): Dump node mapping and clean up.
10324
10325 2013-02-04 Richard Guenther <rguenther@suse.de>
10326
10327 PR lto/56168
10328 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10329 node prevail as last resort.
10330 (lto_symtab_merge_decls): Remove guard on LTRANS here.
10331 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
10332
10333 2013-02-04 Richard Biener <rguenther@suse.de>
10334
10335 PR tree-optimization/56113
10336 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10337 Merge into ...
10338 (equiv_class_lookup_or_add): ... this.
10339 (label_visit): Adjust and fix error in previous patch.
10340 (perform_var_substitution): Adjust.
10341
10342 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
10343
10344 * config/sh/divtab.c: Fix formatting and comments throughout the file.
10345 * config/sh/sh4-300.md: Likewise.
10346 * config/sh/sh4a.md: Likewise.
10347 * config/sh/constraints.md: Likewise.
10348 * config/sh/sh.md: Likewise.
10349 * config/sh/netbsd-elf.h: Likewise.
10350 * config/sh/predicates.md: Likewise.
10351 * config/sh/sh-protos.h: Likewise.
10352 * config/sh/ushmedia.h: Likewise.
10353 * config/sh/linux.h: Likewise.
10354 * config/sh/sh.c: Likewise.
10355 * config/sh/superh.h: Likewise.
10356 * config/sh/elf.h: Likewise.
10357 * config/sh/sh4.md: Likewise.
10358 * config/sh/sh.h: Likewise.
10359
10360 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10361
10362 * config/pa/constraints.md: Adjust unused letters. Change "T"
10363 constraint to match_test floating_point_store_memory_operand().
10364 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10365 (base14_operand): New.
10366 (floating_point_store_memory_operand): New.
10367 (integer_store_memory_operand): Revise to use base14_operand and
10368 reg_plus_base_memory_operand.
10369 (move_dest_operand): Allow symbolic_memory_operands.
10370 (symbolic_memory_operand): Check for LO_SOM.
10371 (symbolic_operand): Change default case to break.
10372 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10373 CONST_DOUBLE values to be reloaded by putting them into memory when
10374 the destination is a floating point register.
10375 (movdf): Remove code to handle CONST_DOUBLE.
10376 (movsf): Likewise.
10377 (reload_indf_r1): New.
10378 (reload_insf_r1): New.
10379 Consistently use "Q" and "T" constraints with integer and floating
10380 point move instructions, respectively.
10381 (movdi): Remove FAIL.
10382 Change predicate for source operand unamed DImode move from
10383 general_operand to move_src_operand.
10384 (umulsidi3): Change predicate for destination operand to
10385 register_operand.
10386 Likewise for similar unamed patterns.
10387 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10388 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10389 (hppa_legitimize_address): Simplify mask calculation.
10390 (pa_emit_move_sequence): Revised handling of secondary reloads from
10391 REG+D addresses for floating point loads and stores. Directly handle
10392 loading CONST0_RTX (mode) to a floating point register.
10393 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10394 to floating point registers. Don't restrict secondary reloads to
10395 floating point registers to integer modes. Revise some comments and
10396 cleanup some code.
10397 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10398 (pa_legitimate_address_p): New.
10399 (pa_legitimize_reload_address): New.
10400 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10401 (STRICT_REG_OK_FOR_BASE_P): New.
10402 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10403 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10404
10405 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
10406 Andrew Dixie <andrewd@gentrack.com>
10407
10408 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10409 flag set.
10410
10411 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10412
10413 * expmed.c (extract_bit_field_1): Pass the full width of the
10414 structure to get_best_reg_extraction_insn.
10415
10416 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10417
10418 PR target/54601
10419 * configure.ac (use_cxa_atexit): Add AIX.
10420 * configure: Regenerate.
10421
10422 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10423
10424 2013-02-01 Jakub Jelinek <jakub@redhat.com>
10425
10426 PR debug/54793
10427 * final.c (need_profile_function): New variable.
10428 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10429 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10430 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10431 notes, targetm.asm_out.function_prologue doesn't emit anything,
10432 HAVE_prologue and profiler should be emitted before prologue,
10433 set need_profile_function instead of emitting it.
10434 (final_scan_insn): If need_profile_function, emit
10435 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10436 NOTE_INSN_FUNCTION_BEG note.
10437
10438 2013-02-01 Richard Henderson <rth@redhat.com>
10439
10440 * config/rs6000/rs6000.md (smulditi3): New.
10441 (umulditi3): New.
10442
10443 * config/alpha/alpha.md (umulditi3): New.
10444
10445 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
10446
10447 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10448 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10449
10450 2013-02-01 Richard Biener <rguenther@suse.de>
10451
10452 PR tree-optimization/56113
10453 * tree-ssa-structalias.c (label_visit): Reduce work for
10454 single-predecessor nodes.
10455
10456 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10457
10458 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10459 range isn't testing for zero.
10460
10461 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10462
10463 PR middle-end/56113
10464 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10465
10466 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10467 Nick Clifton <nickc@redhat.com>
10468
10469 * config/v850/constraints.md (Q): Define as a memory constraint.
10470 * config/v850/predicates.md (label_ref_operand): New predicate.
10471 (e3v5_shift_operand): New predicate.
10472 (ior_operator): New predicate.
10473 * config/v850/t-v850: Add e3v5 multilib.
10474 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10475 (v850_gen_movdi): Prototype.
10476 * config/v850/v850.c: Add support for e3v5 architecture.
10477 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10478 TARGET_V850E_UP.
10479 (construct_save_jarl): Add e3v5 long JARL support.
10480 (v850_adjust_insn_length): New function. Adjust length of call
10481 insns when using e3v5 instructions.
10482 (v850_gen_movdi): New function: Generate instructions to move a
10483 DImode value.
10484 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10485 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10486 (TARGET_USE_FPU): Enable for e3v5.
10487 (CONST_OK_FOR_W): New macro.
10488 (ADJUST_INSN_LENGTH): Define.
10489 * config/v850/v850.md (UNSPEC_LOOP): Define.
10490 (attr cpu): Add v850e3v5.
10491 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10492 (movdi): New pattern.
10493 (movdi_internal): New pattern.
10494 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10495 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10496 (cstoresf4): Likewise.
10497 (cstoredf4): Likewise.
10498 (insv): New pattern.
10499 (rotlso3_a): New pattern.
10500 (rotlsi3_b): New pattern
10501 (rotlsi3_v850e3v5): New pattern.
10502 (doloop_begin): New pattern.
10503 (fix_loop_counter): New pattern.
10504 (doloop_end): New pattern.
10505 (branch_normal): Add e3v5 long branch support.
10506 (branch_invert): Likewise.
10507 (branch_z_normal): Likewise.
10508 (branch_z_invert): Likewise.
10509 (branch_nz_normal): Likewise.
10510 (branch_nz_invert): Likewise.
10511 (call_internal_short): Add e3v5 register-indirect JARL support.
10512 (call_internal_long): Likewise.
10513 (call_value_internal_short): Likewise.
10514 (call_value_internal_long): Likewise.
10515 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10516 (mloop): New option.
10517 * config.gcc: Add support for configuring v840e3v5 target.
10518 * doc/invoke.texi: Document new v850 specific command line options.
10519
10520 2013-01-31 Paul Koning <ni1d@arrl.net>
10521
10522 PR debug/55059
10523 PR debug/54508
10524 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10525 children if parent is a class.
10526 (prune_unused_types_prune): Don't add DW_AT_declaration.
10527
10528 2013-01-31 Richard Biener <rguenther@suse.de>
10529
10530 PR tree-optimization/56157
10531 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10532 match up operand with SLP child.
10533
10534 2013-01-31 Jason Merrill <jason@redhat.com>
10535
10536 PR debug/54410
10537 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10538 parameters the first time.
10539 (gen_scheduled_generic_parms_dies): Check completeness here.
10540
10541 2013-01-31 Richard Biener <rguenther@suse.de>
10542
10543 PR middle-end/53073
10544 * common.opt (faggressive-loop-optimizations): New flag,
10545 enabled by default.
10546 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10547 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10548 infer_loop_bounds_from_undefined by it.
10549
10550 2013-01-31 Richard Biener <rguenther@suse.de>
10551
10552 PR tree-optimization/56150
10553 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10554 visit virtual operands.
10555 (find_uses_to_rename_bb): Likewise.
10556
10557 2013-01-31 Richard Biener <rguenther@suse.de>
10558
10559 PR tree-optimization/56150
10560 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10561 mixed store non-store stmts.
10562
10563 2013-01-30 Jakub Jelinek <jakub@redhat.com>
10564
10565 PR sanitizer/55374
10566 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10567 LIBASAN_EARLY_SPEC is defined.
10568 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10569 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10570 before %o.
10571 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10572
10573 PR c++/55742
10574 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10575 invalid args instead of ICEing on it.
10576 (ix86_valid_target_attribute_tree): Return error_mark_node if
10577 ix86_valid_target_attribute_inner_p failed.
10578 (ix86_valid_target_attribute_p): Return false only if
10579 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10580 target("default") attribute.
10581 (sorted_attr_string): Change argument from const char * to tree,
10582 merge in all target attribute arguments rather than just one.
10583 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10584 instead of free. Avoid using strcat.
10585 (ix86_mangle_function_version_assembler_name): Mangle
10586 target("default") as if no target attribute is present. Adjust
10587 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10588 instead of xmalloc and XDELETEVEC instead of free.
10589 (ix86_function_versions): Don't return true if one of the decls
10590 doesn't have target attribute. If they don't and one of the decls
10591 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10592 sorted_attr_string caller. Use XDELETEVEC instead of free.
10593 (ix86_supports_function_versions): Remove.
10594 (make_name): Fix up formatting.
10595 (make_dispatcher_decl): Remove resolver_name and its initialization.
10596 Avoid leaking memory.
10597 (is_function_default_version): Return true if there is
10598 target("default") attribute rather than no target attribute at all.
10599 (make_resolver_func): Avoid leaking memory.
10600 (ix86_generate_version_dispatcher_body): Likewise.
10601 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10602 * target.def (supports_function_versions): Remove.
10603 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10604 * doc/tm.texi: Regenerated.
10605
10606 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10607
10608 PR rtl-optimization/56144
10609 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10610 for values with side effects.
10611
10612 2013-01-30 Richard Biener <rguenther@suse.de>
10613
10614 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10615 (sparseset_pop): Likewise.
10616 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10617 to be able to use quick_push in the worker loop.
10618
10619 2013-01-30 Marek Polacek <polacek@redhat.com>
10620
10621 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10622
10623 2013-01-30 Richard Biener <rguenther@suse.de>
10624
10625 PR lto/56147
10626 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
10627
10628 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
10629
10630 PR tree-optimization/56064
10631 * fixed-value.c (fixed_from_double_int): New function.
10632 * fixed-value.h (fixed_from_double_int): New prototype.
10633 (const_fixed_from_double_int): New static inline function.
10634 * fold-const.c (native_interpret_fixed): New static function.
10635 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10636 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10637 (native_encode_fixed): New static function.
10638 (native_encode_expr) <FIXED_CST>: Use it.
10639 (native_interpret_int): Move double_int worker code to...
10640 * double-int.c (double_int::from_buffer): ...this new static method.
10641 * double-int.h (double_int::from_buffer): Prototype it.
10642
10643 2013-01-30 Richard Biener <rguenther@suse.de>
10644
10645 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10646 New pointer-map and obstack.
10647 (init_alias_vars): Allocate pointer-map and obstack.
10648 (delete_points_to_sets): Free them.
10649 (find_what_var_points_to): Cache result.
10650 (find_what_p_points_to): Adjust for changed interface of
10651 find_what_var_points_to.
10652 (compute_points_to_sets): Likewise.
10653 (ipa_pta_execute): Likewise.
10654
10655 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10656
10657 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10658 * configure: Regenerate.
10659 * config.in: Regenerate.
10660 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10661 #nobits/#progbits if supported.
10662
10663 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10664
10665 PR target/56121
10666 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10667 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10668 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10669
10670 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10671
10672 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10673 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
10674
10675 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10676
10677 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10678 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
10679
10680 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10681
10682 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10683 declaration.
10684 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10685 * config/arm/cortex-a7.md: New bypasses using
10686 arm_mac_accumulator_is_result.
10687
10688 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10689
10690 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
10691 (cortex_a7_neon_mla): Likewise.
10692 (cortex_a7_fpfmad): New reservation.
10693 (cortex_a7_fpmacs): Use ffmas and update required units.
10694 (cortex_a7_fpmuld): Update required units and latency.
10695 (cortex_a7_fpmacd): Likewise.
10696 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10697 (cortex_a7_neon). Likewise.
10698 (bypass) Update participating units.
10699
10700 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10701
10702 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10703 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10704 from fmac to ffma.
10705 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10706 (vfp_fmul): Use ffmad.
10707 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10708 (cortex_r4_fmacd): Use ffmad.
10709 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10710 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10711 (cortex_a9_fmacd): Use ffmad.
10712 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10713 (cortex_a8_vfp_macd): Use ffmad.
10714 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10715 (cortex_a5_fpmacd): Use ffmad.
10716 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10717 (cortex_a15_vfp_macd): Use ffmad.
10718 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
10719
10720 2013-01-29 Jason Merrill <jason@redhat.com>
10721
10722 PR libstdc++/54314
10723 * varasm.c (default_assemble_visibility): Don't warn about
10724 visibility on artificial decls.
10725
10726 2013-01-29 Richard Biener <rguenther@suse.de>
10727
10728 PR tree-optimization/56113
10729 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10730 the bitmap leader.
10731 (label_visit): Free duplicate bitmaps and record the leader instead.
10732 (perform_var_substitution): Adjust.
10733
10734 2013-01-29 Richard Biener <rguenther@suse.de>
10735
10736 PR tree-optimization/55270
10737 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10738 the CFG, schedule loops for fixup.
10739
10740 2013-01-29 Nick Clifton <nickc@redhat.com>
10741
10742 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10743 SP_REG.
10744
10745 2013-01-28 Leif Ekblad <leif@rdos.net>
10746
10747 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10748 * config/i386/i386.h (TARGET_RDOS): New macro.
10749 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10750 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10751 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10752 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10753 DEFAULT_LARGE_SECTION_THRESHOLD.
10754 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10755 * config/i386/rdos.h: New file.
10756 * config/i386/rdos64.h: New file.
10757
10758 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10759
10760 PR other/54814
10761 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10762 TEST_HARD_REG_BIT.
10763
10764 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10765
10766 PR rtl-optimization/56117
10767 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10768 call cselib_lookup_from_insn on the MEM before calling
10769 add_insn_mem_dependence.
10770
10771 2013-01-28 Richard Biener <rguenther@suse.de>
10772
10773 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10774 to a stmt that didn't have one.
10775 (copy_phis_for_bb): Likewise for PHI arguments.
10776 (copy_debug_stmt): Likewise for debug stmts.
10777
10778 2013-01-28 Richard Biener <rguenther@suse.de>
10779
10780 PR tree-optimization/56034
10781 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
10782 (partition_builtin_p): Adjust.
10783 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10784 it is the last partition.
10785 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10786 up the vertex for the definition.
10787 (classify_partition): Classify whether a partition is a
10788 PKIND_REDUCTION, thus has uses outside of the loop.
10789 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10790 Merge all PKIND_REDUCTION partitions into the last partition.
10791 (tree_loop_distribution): Seed partitions from reductions as well.
10792
10793 2013-01-28 Jakub Jelinek <jakub@redhat.com>
10794
10795 PR tree-optimization/56125
10796 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10797 pow(x,c) into sqrt(x) * powi(x, n/2) or
10798 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10799 optimizing for size.
10800 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10801 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10802 integer.
10803
10804 PR tree-optimization/56094
10805 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10806 to UNKNOWN_LOCATION while gimplifying expr.
10807
10808 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
10809
10810 PR target/56114
10811 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10812 operand 0 in movabs insn template for -masm=intel asm alternative.
10813 (*movabs<mode>_2): Ditto for operand 1.
10814
10815 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
10816
10817 PR target/54663
10818 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10819 of microblaze-c.o
10820
10821 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10822
10823 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10824 tm_file.
10825
10826 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10827
10828 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10829 Undef to avoid warning.
10830
10831 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10832
10833 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10834 * configure: Regenerate.
10835
10836 2013-01-25 Jakub Jelinek <jakub@redhat.com>
10837
10838 PR tree-optimization/56098
10839 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10840 for stmts with volatile ops.
10841 (cond_store_replacement): Don't optimize if assign has volatile ops.
10842 (cond_if_else_store_replacement_1): Don't optimize if either
10843 then_assign or else_assign have volatile ops.
10844 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10845 volatile ops.
10846
10847 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10848
10849 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10850
10851 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10852
10853 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10854 missing ':' in asm example.
10855
10856 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10857
10858 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10859 entries into lane and laneq entries.
10860 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10861 Remove AdvSIMD scalar modes.
10862 (aarch64_sq<r>dmulh_laneq<mode>): New.
10863 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10864 modes.
10865 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10866 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10867 * config/aarch64/iterators.md (VCOND): New.
10868 (VCONQ): New.
10869
10870 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
10871
10872 PR target/54222
10873 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10874 Add NULL LIBNAME argument to existing definitions.
10875 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10876 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10877 * config/avr/avr.c (DEF_BUILTIN): Same.
10878 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10879 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10880 implementation is available (DECL_ASSEMBLER_NAME is set).
10881 (avr_fold_absfx): New static function.
10882 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10883 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10884 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10885 AVR_BUILTIN_ABSLLK.
10886 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10887 (abshk, absk, abslk, absllk): Provide as static inline functions.
10888
10889 2013-01-25 Marek Polacek <polacek@redhat.com>
10890
10891 PR tree-optimization/56035
10892 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10893
10894 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
10895
10896 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10897 (*movtf_internal_rex64): Add (!o,C) alternative
10898 (*movxf_internal_rex64): Ditto.
10899 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10900
10901 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
10902
10903 * doc/invoke.texi: fix typo.
10904 * doc/objc.texi: fix typo.
10905
10906 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10907
10908 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10909 for the first two alternatives.
10910
10911 2013-01-24 Diego Novillo <dnovillo@google.com>
10912
10913 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
10914 (ggc-zone.o): Remove.
10915 * configure.ac: Remove option --with-gc.
10916 * configure: Re-generate.
10917 * doc/install.texi: Remove documentation for --with-gc.
10918 * gengtype.c (write_enum_defn): Remove. Update all users.
10919 (write_Types_process_field): Remove generation of gt_e_* argument.
10920 (output_type_enum): Remove. Update all users.
10921 (write_enum_defn): Remove. Update all users.
10922 (enum alloc_zone): Remove. Update all users.
10923 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
10924 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10925 Update all callers.
10926 (struct ptr_data): Remove field TYPE. Update all users.
10927 (gt_pch_note_object): Remove argument TYPE. Update all users.
10928 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10929 Update all users.
10930 * ggc-none.c (ggc_alloc_typed_stat): Remove.
10931 (struct alloc_zone): Remove.
10932 (ggc_internal_alloc_zone_stat): Remove.
10933 (ggc_internal_cleared_alloc_zone_stat): Remove.
10934 * ggc-page.c (ggc_alloc_typed_stat): Remove.
10935 (ggc_pch_count_object): Remove last argument. Update all users.
10936 (ggc_pch_alloc_object): Remove last argument. Update all users.
10937 (struct alloc_zone): Remove.
10938 * ggc-zone.c: Remove.
10939 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
10940 (struct alloc_zone): Remove.
10941 (ggc_alloc_typed_stat): Remove.
10942 (ggc_alloc_typed): Remove.
10943 (ggc_splay_alloc): Remove first argument.
10944 (rtl_zone): Remove. Update all users.
10945 (tree_zone): Remove. Update all users.
10946 (tree_id_zone): Remove. Update all users.
10947 (ggc_internal_zone_alloc_stat): Remove. Update all users.
10948 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
10949 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
10950 * tree-ssanames.c: Remove references to zone allocator in comments.
10951
10952 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
10953
10954 * config/avr/avr.c (avr_out_fract): Make register numbers that
10955 might be outside of source operand signed.
10956
10957 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
10958
10959 * config/i386/constraints.md (Yf): New constraint.
10960 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10961 of f constraint to conditionaly disable x87 register preferences.
10962 (*movdf_internal): Ditto.
10963 (*movsf_internal): Ditto.
10964
10965 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10966
10967 PR inline-asm/55934
10968 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10969 that have operands with impossible constraints.
10970 Add a FIXME for a speed-up opportunity.
10971 * lra-constraints.c (process_alt_operands): Verify that a class
10972 selected from constraints on asms is valid for the operand mode.
10973 (curr_insn_transform): Remove incorrect comment.
10974
10975 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
10976
10977 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10978 TOC operand is a valid symbol ref in the constant pool.
10979
10980 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10981
10982 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
10983
10984 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
10985
10986 PR target/54222
10987 * config/avr/stdfix.h: New file.
10988 * t-avr (stdfix-gcc.h): New rule to build it.
10989 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10990
10991 2013-01-23 Kostya Serebryany <kcc@google.com>
10992
10993 * config/darwin.h: remove dependency on
10994 CoreFoundation (asan on Mac OS).
10995
10996 2013-01-23 Jakub Jelinek <jakub@redhat.com>
10997
10998 PR target/49069
10999 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11000 instead of cmpdi_operand for first comparison operand.
11001 Don't assert that comparison operands aren't both constants.
11002
11003 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11004
11005 * doc/install.texi (Downloading the Source): Update references to
11006 downloading separate components.
11007
11008 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11009
11010 * doc/extend.texi (__int128): Improve grammar.
11011
11012 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
11013
11014 PR target/56028
11015 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11016 alternative to (o,r).
11017 (*movdi_internal_rex64): Remove (!o,n) alternative.
11018 (DImode immediate->memory splitter): Remove.
11019 (DImode immediate->memory peephole2): Remove.
11020 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11021 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11022 alternative to (!o,*r).
11023 (*movtf_internal_sse): New pattern.
11024 (*movxf_internal_rex64): New pattern.
11025 (*movxf_internal): Disable for TARGET_64BIT.
11026 (*movdf_internal_rex64): Remove (!o,F) alternative.
11027
11028 2013-01-22 Jakub Jelinek <jakub@redhat.com>
11029
11030 PR middle-end/56074
11031 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11032 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11033 * tree-vect-loop-manip.c (find_loop_location): Also ignore
11034 stmt locations where LOCATION_LOCUS of the stmt location is
11035 UNKNOWN_LOCATION or BUILTINS_LOCATION.
11036
11037 PR target/55686
11038 * config/i386/i386.md (UNSPEC_STOS): New.
11039 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11040 *strsetqi_1): Add UNSPEC_STOS.
11041
11042 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
11043
11044 PR c++/56067
11045 * doc/invoke.texi: Remove left over -Wsynth example.
11046
11047 2013-01-21 Jakub Jelinek <jakub@redhat.com>
11048
11049 PR tree-optimization/56051
11050 * fold-const.c (fold_binary_loc): Don't fold
11051 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11052 a narrowing conversion, or widening conversion from signed
11053 to unsigned.
11054
11055 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
11056
11057 PR rtl-optimization/56023
11058 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11059 dependent on debug instruction.
11060
11061 2013-01-21 Martin Jambor <mjambor@suse.cz>
11062
11063 PR middle-end/56022
11064 * function.c (allocate_struct_function): Call
11065 invoke_set_current_function_hook earlier.
11066
11067 2013-01-21 Jakub Jelinek <jakub@redhat.com>
11068
11069 * reload1.c (init_reload): Only initialize reload_obstack
11070 during the first call.
11071
11072 2013-01-21 Marek Polacek <polacek@redhat.com>
11073
11074 * cfgloop.c (verify_loop_structure): Fix up grammar.
11075
11076 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
11077
11078 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11079 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11080
11081 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11082
11083 PR target/56058
11084 * config/arm/marvell-pj4.md: Update copyright year.
11085 Fix up use of alu to alu_reg and simple_alu_imm.
11086
11087 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
11088
11089 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
11090
11091 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
11092
11093 PR target/55433
11094 * lra-constraints.c (curr_insn_transform): Don't reuse original
11095 insn for secondary memory move when memory mode should be different.
11096
11097 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11098
11099 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
11100 atomic_storedi_1): New patterns.
11101
11102 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11103
11104 btver2 pipeline descriptions.
11105 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
11106 descriptions.
11107 * config/i386/i386.md (btver2_decode): New type attributes.
11108 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
11109 type attributes.
11110 * config/i386/btver2.md: New file describing btver2 pipelines.
11111
11112 2013-01-19 Andrew Pinski <apinski@cavium.com>
11113
11114 PR tree-optimization/52631
11115 * tree-ssa-sccvn (visit_use): Before looking up the original
11116 statement, try looking up the simplified expression.
11117
11118 2013-01-19 Anthony Green <green@moxielogic.com>
11119
11120 * config/moxie/moxie.c (moxie_expand_prologue): Set
11121 current_function_static_stack_size.
11122
11123 2013-01-18 Jakub Jelinek <jakub@redhat.com>
11124
11125 PR tree-optimization/56029
11126 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
11127 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
11128
11129 2013-01-18 Sharad Singhai <singhai@google.com>
11130
11131 PR tree-optimization/55995
11132 * dumpfile.c (dump_loc): Print location only if available.
11133 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
11134
11135 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
11136
11137 PR target/55433
11138 * lra-constraints.c (curr_insn_transform): Reuse original insn for
11139 secondary memory move.
11140 (inherit_reload_reg): Use rclass instead of cl for
11141 check_secondary_memory_needed_p.
11142
11143 2013-01-18 Jakub Jelinek <jakub@redhat.com>
11144
11145 PR middle-end/56015
11146 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
11147 the case where writing real complex part of target modifies op1.
11148
11149 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
11150
11151 * config/aarch64/aarch64-simd.md
11152 (aarch64_vcond_internal<mode>): Handle unordered cases.
11153 * config/aarch64/iterators.md (v_cmp_result): New.
11154
11155 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
11156 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11157
11158 * config/arm/marvell-pj4.md: New file.
11159 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
11160 * config/arm/arm.md (generic_sched): Add marvell_pj4.
11161 (generic_vfp): Likewise.
11162 * config/arm/arm-cores.def: Add marvell-pj4.
11163 * config/arm/arm-tune.md: Regenerate.
11164 * config/arm/arm-tables.opt: Regenerate.
11165 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
11166 * doc/invoke.texi: Document marvell-pj4.
11167
11168 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
11169
11170 * config/aarch64/arm_neon.h: Map scalar types to standard types.
11171
11172 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11173
11174 PR debug/54114
11175 PR debug/54402
11176 PR debug/49888
11177 * var-tracking.c (negative_power_of_two_p): New.
11178 (global_get_addr_cache, local_get_addr_cache): New.
11179 (get_addr_from_global_cache, get_addr_from_local_cache): New.
11180 (vt_canonicalize_addr): Rewrite using the above. Adjust the
11181 heading comment.
11182 (vt_stack_offset_p): Remove.
11183 (vt_canon_true_dep): Always canonicalize loc's address.
11184 (clobber_overlapping_mems): Make sure we have a MEM.
11185 (local_get_addr_clear_given_value): New.
11186 (val_reset): Clear local cached entries.
11187 (compute_bb_dataflow): Create and release the local cache.
11188 Disable duplicate MEMs clobbering.
11189 (emit_notes_in_bb): Clobber MEMs likewise.
11190 (vt_emit_notes): Create and release the local cache.
11191 (vt_initialize, vt_finalize): Create and release the global
11192 cache, respectively.
11193 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
11194
11195 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11196
11197 PR libmudflap/53359
11198 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11199 not found in the symtab.
11200
11201 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
11202
11203 PR debug/56006
11204 PR rtl-optimization/55547
11205 PR rtl-optimization/53827
11206 PR debug/53671
11207 PR debug/49888
11208 * alias.c (offset_overlap_p): New, factored out of...
11209 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
11210 the conservative special case for symbolic constants. Don't
11211 adjust zero sizes on alignment.
11212
11213 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
11214
11215 PR rtl-optimization/52573
11216 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11217 REG_UNUSED for the same register.
11218
11219 2013-01-17 Richard Biener <rguenther@suse.de>
11220 Marek Polacek <polacek@redhat.com>
11221
11222 PR rtl-optimization/55833
11223 * loop-unswitch.c (unswitch_loops): Move loop verification...
11224 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
11225 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11226 Set it to true when we're removing a loop from hierarchy tree in
11227 an irreducible region.
11228 (fix_bb_placements): Adjust caller.
11229 (fix_loop_placements): Likewise.
11230
11231 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
11232
11233 * config/avr/builtins.def (DEF_BUILTIN): Factor out
11234 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11235 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11236 Remove ID. Adjust comments.
11237 * config/avr/avr-c.c (avr_builtin_name): Remove.
11238 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11239 * config/avr/avr.c (avr_tolower): New static function.
11240 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
11241 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11242 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11243 default expansion.
11244
11245 2013-01-17 Jan Hubicka <jh@suse.cz>
11246
11247 PR tree-optimization/55273
11248 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11249
11250 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
11251
11252 PR target/55981
11253 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11254 store through atomic_store<mode>_1.
11255 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11256
11257 2013-01-17 Martin Jambor <mjambor@suse.cz>
11258
11259 PR tree-optimizations/55264
11260 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11261 for virtual methods.
11262 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11263 virtual methods before inlining is over.
11264 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11265 virtual functions.
11266 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11267 non-virtual.
11268
11269 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
11270
11271 PR rtl-optimization/56005
11272 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11273 pending reads for prefetch.
11274
11275 2013-01-16 Ian Bolton <ian.bolton@arm.com>
11276
11277 * config/aarch64/aarch64.md
11278 (*cstoresi_neg_uxtw): New pattern.
11279 (*cmovsi_insn_uxtw): New pattern.
11280 (*<optab>si3_uxtw): New pattern.
11281 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11282 (*<optab>si3_insn_uxtw): New pattern.
11283 (*bswapsi2_uxtw): New pattern.
11284
11285 2013-01-16 Richard Biener <rguenther@suse.de>
11286
11287 * tree-inline.c (tree_function_versioning): Remove set but
11288 never used variable.
11289
11290 2013-01-16 Richard Biener <rguenther@suse.de>
11291
11292 PR tree-optimization/55964
11293 * tree-flow.h (rename_variables_in_loop): Remove.
11294 (rename_variables_in_bb): Likewise.
11295 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11296 (copy_loop_before): Adjust and delete update-ssa status.
11297 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
11298 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
11299 (rename_variables_in_loop): Remove.
11300 (slpeel_update_phis_for_duplicate_loop): Likewise.
11301 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11302 use available cfg machinery instead of duplicating it.
11303 Update PHI nodes and perform poor-mans SSA update here.
11304 (slpeel_tree_peel_loop_to_edge): Adjust.
11305
11306 2013-01-16 Richard Biener <rguenther@suse.de>
11307
11308 PR tree-optimization/54767
11309 PR tree-optimization/53465
11310 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11311 (vrp_visit_phi_node): For PHI arguments coming via backedges
11312 drop all symbolical range information.
11313 (execute_vrp): Compute backedges.
11314
11315 2013-01-16 Richard Biener <rguenther@suse.de>
11316
11317 * doc/install.texi: Update CLooG and ISL requirements to
11318 0.18.0 and 0.11.1.
11319
11320 2013-01-16 Christian Bruel <christian.bruel@st.com>
11321
11322 PR target/55301
11323 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11324 (broken_move): Handle UNSPECV_SP_SWITCH_B.
11325 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11326
11327 2013-01-16 DJ Delorie <dj@redhat.com>
11328
11329 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11330 (UNSPECV_SP_SWITCH_E): New.
11331 (sp_switch_1): Change to an unspec.
11332 (sp_switch_2): Change to an unspec. Don't use post-inc when we
11333 replace $r15.
11334
11335 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
11336
11337 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11338 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11339 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11340 (expand_mem_thread_fence): Ditto.
11341 (expand_mem_signal_fence): Ditto.
11342 (expand_atomic_load): Ditto.
11343 (expand_atomic_store): Ditto.
11344
11345 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
11346
11347 PR rtl-optimization/55547
11348 PR rtl-optimization/53827
11349 PR debug/53671
11350 PR debug/49888
11351 * alias.c (memrefs_conflict_p): Set sizes to negative after
11352 AND adjustments.
11353
11354 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11355
11356 PR target/55940
11357 * function.c (thread_prologue_and_epilogue_insns): Always
11358 add crtl->drap_reg to set_up_by_prologue.set, even if
11359 stack_realign_drap is false.
11360
11361 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11362
11363 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11364 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11365 *call): Fix indention.
11366
11367 2013-01-15 Tom de Vries <tom@codesourcery.com>
11368
11369 PR target/55876
11370 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11371 Update comment.
11372
11373 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11374
11375 PR rtl-optimization/55153
11376 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11377
11378 2013-01-15 Martin Jambor <mjambor@suse.cz>
11379
11380 PR tree-optimization/55920
11381 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11382 accesses as grp_to_be_debug_replaced.
11383
11384 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11385
11386 PR tree-optimization/55920
11387 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11388 there is non-useless type conversion needed from debug rhs to lhs,
11389 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11390
11391 2013-01-15 Joseph Myers <joseph@codesourcery.com>
11392 Mikael Pettersson <mikpe@it.uu.se>
11393
11394 PR target/43961
11395 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11396 Thumb.
11397 (ASM_OUTPUT_CASE_LABEL): Remove.
11398 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11399 * final.c (shorten_branches): Update alignment of labels before
11400 jump tables if CASE_VECTOR_SHORTEN_MODE.
11401
11402 2013-01-15 Richard Biener <rguenther@suse.de>
11403
11404 PR bootstrap/55961
11405 * system.h: Do not include gmp.h for building host tools.
11406
11407 2013-01-15 Richard Biener <rguenther@suse.de>
11408
11409 PR middle-end/55882
11410 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11411 account for bitpos when computing alignment.
11412
11413 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11414
11415 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11416 (ix86_target_macros_internal): Likewise.
11417
11418 * config/i386/i386.c (m_CORE2I7): Removed.
11419 (m_CORE_HASWELL): New macro.
11420 (m_CORE_ALL): Likewise.
11421 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11422 (initial_ix86_arch_features): Likewise.
11423 (processor_target_table): Initializations for Core avx2.
11424 (cpu_names): New names "core-avx2".
11425 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11426 PROCESSOR_CORE_HASWELL.
11427 (ix86_issue_rate): New case.
11428 (ia32_multipass_dfa_lookahead): Likewise.
11429 (ix86_sched_init_global): Likewise.
11430
11431 * config/i386/i386.h (TARGET_HASWELL): New macro.
11432 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11433 (processor_type): New PROCESSOR_HASWELL.
11434
11435 2013-01-15 Jakub Jelinek <jakub@redhat.com>
11436
11437 PR tree-optimization/55955
11438 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11439 *SHIFT_EXPR and *ROTATE_EXPR codes.
11440
11441 PR tree-optimization/48766
11442 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11443 -ftrapv disable -fwrapv.
11444
11445 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11446
11447 PR target/55974
11448 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11449 etc. to 1 and not to __flash.
11450 Use LL suffix for __INT24_MAX__ with -mint8.
11451 Use ULL suffix for __UINT24_MAX__ with -mint8.
11452
11453 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11454
11455 * config/avr/avr-arch.h
11456 (struct base_arch_s): Use typedef avr_arch_t instead.
11457 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11458 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11459 * config/avr/avr.c: Same.
11460 * config/avr/avr-devices.c: Same.
11461 * config/avr/driver-avr.c: Same.
11462 * config/avr/gen-avr-mmcu-texi.c: Same.
11463 * config/avr/avr-mcus.def: Adjust comment.
11464
11465 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11466
11467 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11468 * config/aarch64/iterators.md (VALLDI): New.
11469
11470 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
11471 Andi Kleen <ak@linux.intel.com>
11472
11473 PR target/55948
11474 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11475 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11476 memmodel flag.
11477
11478 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11479
11480 * config/avr/avr-stdint.h: Remove trailing blanks.
11481 * config/avr/avr-log.h: Same.
11482 * config/avr/avr-arch.h: Same.
11483 * config/avr/avr-devices.c: Same.
11484 * config/avr/avr-dimode.md: Same.
11485 * config/avr/predicates.md: Same.
11486 * config/avr/avr-c.c: Same. And fix typo.
11487
11488 * config/avr/avr-protos.h: Same. And:
11489 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11490 (init_cumulative_args): Rename to avr_init_cumulative_args.
11491 (expand_prologue): Rename to avr_expand_prologue.
11492 (expand_epilogue): Rename to avr_expand_epilogue.
11493 (adjust_insn_length): Rename to avr_adjust_insn_length.
11494 (notice_update_cc): Rename to avr_notice_update_cc.
11495 (final_prescan_insn): Rename to avr_final_prescan_insn.
11496 * config/avr/avr.c: Same.
11497 * config/avr/avr.h: Same.
11498 * config/avr/avr.md: Remove trailing blanks.
11499 (prologue): Use avr_expand_prologue.
11500 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11501
11502 2013-01-14 Richard Biener <rguenther@suse.de>
11503
11504 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11505 verify_location, collect_subblocks): New functions.
11506 (verify_gimple_in_cfg): Verify that locations only reference
11507 BLOCKs in the functions BLOCK tree.
11508
11509 2013-01-14 Richard Biener <rguenther@suse.de>
11510
11511 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11512 PHI argument.
11513 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11514 unshare reference.
11515 (insert_out_of_ssa_copy_on_edge): Likewise.
11516 (rewrite_close_phi_out_of_ssa): Likewise.
11517 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11518 debug expressions.
11519 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11520 propagated constants.
11521 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11522 can not be shared.
11523
11524 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
11525
11526 * config/avr/avr-modes.def: Add GPL copyright notice.
11527
11528 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
11529
11530 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11531 MEMMODEL_MASK to determine memory model.
11532 (atomic_store<mode>): Ditto from operands[2].
11533 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11534
11535 2013-01-13 Jakub Jelinek <jakub@redhat.com>
11536
11537 PR fortran/55935
11538 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
11539 (fold_gimple_assign): Don't call unshare_expr here.
11540 (fold_ctor_reference): Call unshare_expr.
11541
11542 2013-01-13 Terry Guo <terry.guo@arm.com>
11543
11544 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11545 * doc/fragments.texi: Document MULTILIB_REUSE.
11546 * gcc.c (multilib_reuse): New internal spec.
11547 (set_multilib_dir): Also search multilib from multilib_reuse.
11548 * genmultilib (tmpmultilib3): Refactor code.
11549 (tmpmultilib4): Ditto.
11550 (multilib_reuse): New multilib argument.
11551
11552 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11553
11554 * Makefile.in: Update copyright.
11555
11556 2013-01-12 Tom de Vries <tom@codesourcery.com>
11557
11558 PR middle-end/55890
11559 * calls.c (expand_call): Check if arg_nr is valid.
11560
11561 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11562
11563 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11564 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
11565 documentation. Add missing '__' in front of
11566 __builtin_ia32_packssdw256.
11567
11568 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11569
11570 PR target/55719
11571 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11572 NO_REGS for larl operands.
11573 (s390_reload_larl_operand): Use s390_load_address instead of
11574 emit_move_insn.
11575
11576 2013-01-11 Richard Biener <rguenther@suse.de>
11577
11578 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11579 (verify_node_sharing): ... here.
11580 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11581
11582 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11583
11584 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11585 Substitute TREECHECKING.
11586 * configure: Regenerate.
11587 * Makefile.in (TREECHECKING): New.
11588
11589 2013-01-11 Richard Guenther <rguenther@suse.de>
11590
11591 PR tree-optimization/44061
11592 * tree-vrp.c (extract_range_basic): Compute zero as
11593 value-range for __builtin_constant_p of function parameters.
11594
11595 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11596
11597 Update copyright years.
11598
11599 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11600
11601 PR rtl-optimization/55672
11602 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11603 const to be eliminable.
11604
11605 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
11606
11607 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11608 * configure: Regenerate.
11609
11610 2013-01-10 Richard Biener <rguenther@suse.de>
11611
11612 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
11613
11614 2013-01-10 Richard Biener <rguenther@suse.de>
11615
11616 PR bootstrap/55792
11617 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11618 locations for virtual PHI arguments.
11619 (rewrite_update_phi_arguments): Likewise.
11620
11621 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11622
11623 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11624 on to assembler.
11625
11626 2013-01-10 Jakub Jelinek <jakub@redhat.com>
11627
11628 PR tree-optimization/55921
11629 * tree-complex.c (expand_complex_asm): New function.
11630 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11631
11632 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11633
11634 PR target/55718
11635 * config/s390/s390.c (s390_symref_operand_p)
11636 (s390_loadrelative_operand_p): Merge the two functions.
11637 (s390_check_qrst_address, print_operand_address): Add parameters
11638 to s390_loadrelative_operand_p invokation.
11639 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11640 (s390_reload_larl_operand, s390_secondary_reload): Use
11641 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11642 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11643
11644 2013-01-09 Mike Stump <mikestump@comcast.net>
11645
11646 * dse.c (record_store): Remove unnecessary assert.
11647
11648 2013-01-09 Jan Hubicka <jh@suse.cz>
11649
11650 PR tree-optimization/55569
11651 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11652 * cfgloop.h (scale_loop_profile): Likewise.
11653
11654 2013-01-09 Jan Hubicka <jh@suse.cz>
11655
11656 PR lto/45375
11657 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11658 functions.
11659 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11660
11661 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11662
11663 PR middle-end/55114
11664 * expr.h (maybe_emit_group_store): Declare.
11665 * expr.c (maybe_emit_group_store): New function.
11666 * builtins.c (expand_builtin_int_roundingfn): Call it.
11667 (expand_builtin_int_roundingfn_2): Likewise.
11668
11669 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11670
11671 PR rtl-optimization/55829
11672 * lra-constraints.c (match_reload): Add code for absent output.
11673 (curr_insn_transform): Add code for reloads of matched inputs
11674 without output.
11675
11676 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
11677
11678 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11679 attribute of movddup insn to DF.
11680 (*vec_interleave_lowv2df): Ditto.
11681 (vec_dupv2df): Ditto.
11682
11683 2013-01-09 Jan Hubicka <jh@suse.cz>
11684
11685 PR tree-optimiation/55875
11686 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11687 EVERY_ITERATION parameter.
11688 (number_of_iterations_exit): Check if exit is executed every iteration.
11689 (idx_infer_loop_bounds): Similarly here.
11690 (n_of_executions_at_most): Simplify
11691 to only test for cases where statement is dominated by the
11692 particular bound; handle correctly the "postdominance" test.
11693 (scev_probably_wraps_p): Use max loop iterations info
11694 as a global bound first.
11695
11696 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
11697 Nick Clifton <nickc@redhat.com>
11698
11699 * config/v850/v850.md (cbranchsf4): New pattern.
11700 (cstoresf4): New pattern.
11701 (cbranchdf4): New pattern.
11702 (cstoredf4): New pattern.
11703 (movsicc): Disallow floating point comparisons.
11704 (cmpsf_le_insn): Fix order of operators.
11705 (cmpsf_lt_insn): Likewise.
11706 (cmpsf_eq_insn): Likewise.
11707 (cmpdf_le_insn): Likewise.
11708 (cmpdf_lt_insn): Likewise.
11709 (cmpdf_eq_insn): Likewise.
11710 (cmpsf_ge_insn): Use LE comparison.
11711 (cmpdf_ge_insn): Likewise.
11712 (cmpsf_gt_insn): Use LT comparison.
11713 (cmpdf_gt_insn): Likewise.
11714 (cmpsf_ne_insn): Delete pattern.
11715 (cmpdf_ne_insn): Delete pattern.
11716 * config/v850/v850.c (v850_gen_float_compare): Use
11717 gen_cmpdf_eq_insn for NE comparison.
11718 (v850_float_z_comparison_operator)
11719 (v850_float_nz_comparison_operator): Move from here ...
11720 * config/v850/predicates.md: ... to here. Move GT and GE
11721 comparisons into v850_float_z_comparison_operator.
11722 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11723 Delete prototype.
11724 (v850_float_nz_comparison_operator): Likewise.
11725
11726 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11727
11728 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11729 with calls to gen_insvsi/gen_insvdi.
11730
11731 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11732
11733 * config/i386/i386.c (initial_ix86_tune_features): Set up
11734 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11735
11736 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11737 Jakub Jelinek <jakub@redhat.com>
11738
11739 PR tree-optimization/48189
11740 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11741 If nitercst is 0, don't predict the exit edge.
11742
11743 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11744
11745 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11746 in asm_fprintf with reg_names.
11747 (aarch64_print_operand_address): Likewise.
11748 (aarch64_return_addr): Likewise.
11749 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11750
11751 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11752
11753 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11754 (INT_U6_BITS): Likewise.
11755 * config/pa/predicates.md (uint6_operand): New predicate.
11756 (shift5_operand, shift6_operand): Likewise.
11757 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11758 arith32_operand.
11759 (lshrdi3): Use shift6_operand.
11760 (shrpsi4, shrpdi4): New insn patterns.
11761 (extzv): Delete expander.
11762 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11763 predicates in unamed zero extract patterns. Tighten common constraint.
11764 (extv): Delete expander.
11765 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11766 predicates in unamed sign extract patterns. Tighten common constraint.
11767 (insv): Delete expander.
11768 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11769 predicates in unamed insert patterns. Tighten common constraint.
11770 Change uint32_operand predicate to uint6_operand predicate in unamed
11771 DImode pattern to insert constant values of type 1...1xxxx.
11772
11773 2013-01-04 Jan Hubicka <jh@suse.cz>
11774
11775 PR tree-optimization/55823
11776 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11777 issue.
11778
11779 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11780 Uros Bizjak <ubizjak@gmail.com>
11781
11782 PR rtl-optimization/55845
11783 * df-problems.c (can_move_insns_across): Stop scanning at
11784 volatile_insn_p source instruction or give up if
11785 across_from .. across_to range contains any volatile_insn_p
11786 instructions.
11787
11788 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11789
11790 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11791 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11792 Declare.
11793 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
11794 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
11795
11796 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11797
11798 PR fortran/55341
11799 * asan.c (asan_clear_shadow): New function.
11800 (asan_emit_stack_protection): Use it.
11801
11802 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11803
11804 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11805 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11806 with tab instead of space.
11807
11808 2013-01-08 Nick Clifton <nickc@redhat.com>
11809
11810 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11811 register bank 0 at the start of an interrupt handler.
11812 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11813 MDBH registers.
11814
11815 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11816
11817 * config/aarch64/aarch64-simd.md
11818 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11819 (aarch64_simd_bsl): Likewise.
11820 (aarch64_vcond_internal<mode>): Likewise.
11821 (vcond<mode><mode>): Likewise.
11822 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11823 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11824
11825 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11826
11827 * config/aarch64/aarch64-builtins.c
11828 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11829
11830 2013-01-08 Martin Jambor <mjambor@suse.cz>
11831
11832 PR debug/55579
11833 * tree-sra.c (analyze_access_subtree): Return true also after
11834 potentially creating a debug-only replacement.
11835
11836 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11837
11838 PR middle-end/55890
11839 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11840
11841 PR tree-optimization/54120
11842 * tree-vrp.c (range_fits_type_p): Don't allow
11843 src_precision < precision from signed vr to unsigned_p
11844 if vr->min or vr->max is negative.
11845 (simplify_float_conversion_using_ranges): Test can_float_p
11846 against CODE_FOR_nothing.
11847
11848 2013-01-08 Jakub Jelinek <jakub@redhat.com>
11849 Richard Biener <rguenther@suse.de>
11850
11851 PR middle-end/55851
11852 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11853 types instead of just INTEGER_TYPE types.
11854
11855 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
11856
11857 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11858 TF_SIZE): Define.
11859
11860 2013-01-07 Steve Ellcey <sellcey@mips.com>
11861
11862 PR target/42661
11863 * config/mips/mips.opt: Change mad to mmad to match documentation.
11864
11865 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11866
11867 PR target/55897
11868 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11869 .progmemx.data now.
11870
11871 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11872
11873 PR target/55897
11874 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11875 (avr_addrspace_t): Add .section_name field.
11876 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11877 array size.
11878 (avr_addrspace): Same. Initialize .section_name. Remove last
11879 NULL entry. Put __memx into .progmemx.data.
11880 (progmem_section_prefix): Remove.
11881 (avr_asm_init_sections): No need to initialize progmem_section.
11882 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11883 section name prefix.
11884 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11885 retrieve the progmem section.
11886 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11887 boundary to run over avr_addrspace[].
11888 (avr_register_target_pragmas): Ditto.
11889
11890 2013-01-06 Jakub Jelinek <jakub@redhat.com>
11891
11892 * varasm.c (output_constant_def_contents): For asan_protect_global
11893 protected strings, adjust DECL_ALIGN if needed, before testing for
11894 anchored symbols.
11895 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11896 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11897 normal decls.
11898 (output_object_block): For asan protected decls, emit asan padding
11899 after their contents.
11900 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11901 (asan_finish_file): Test it here instead.
11902
11903 2013-01-07 Nick Clifton <nickc@redhat.com>
11904 Matthias Klose <doko@debian.org>
11905 Doug Kwan <dougkwan@google.com>
11906 H.J. Lu <hongjiu.lu@intel.com>
11907
11908 PR driver/55470
11909 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11910
11911 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11912
11913 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11914
11915 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
11916
11917 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11918
11919 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11920
11921 PR target/54461
11922 * doc/install.texi (Cross-Compiler-Specific Options): Document
11923 --with-avrlibc.
11924
11925 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11926
11927 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11928 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11929 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11930 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11931 vqmovun_high_s64): Fix source operand number and update copyright.
11932
11933 2013-01-07 Richard Biener <rguenther@suse.de>
11934
11935 PR middle-end/55890
11936 * gimple.h (gimple_call_builtin_p): New overload.
11937 * gimple.c (validate_call): New function.
11938 (gimple_call_builtin_p): Likewise.
11939 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11940 Use gimple_call_builtin_p.
11941 (find_func_clobbers): Likewise.
11942 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11943 (strlen_optimize_stmt): Likewise.
11944
11945 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11946
11947 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11948 (vld1q_dup_*): Likewise.
11949 (vld1_*): Likewise.
11950 (vld1q_*): Likewise.
11951 (vld1_lane_*): Likewise.
11952 (vld1q_lane_*): Likewise.
11953
11954 2013-01-07 Richard Biener <rguenther@suse.de>
11955
11956 * lto-streamer.h (LTO_minor_version): Bump to 2.
11957
11958 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11959
11960 * config/aarch64/aarch64-protos.h
11961 (aarch64_const_double_zero_rtx_p): Rename to...
11962 (aarch64_float_const_zero_rtx_p): ...this.
11963 (aarch64_float_const_representable_p): New.
11964 (aarch64_output_simd_mov_immediate): Likewise.
11965 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11966 move immediate case.
11967 * config/aarch64/aarch64.c
11968 (aarch64_const_double_zero_rtx_p): Rename to...
11969 (aarch64_float_const_zero_rtx_p): ...this.
11970 (aarch64_print_operand): Allow printing of new constants.
11971 (aarch64_valid_floating_const): New.
11972 (aarch64_legitimate_constant_p): Check for valid floating-point
11973 constants.
11974 (aarch64_simd_valid_immediate): Likewise.
11975 (aarch64_vect_float_const_representable_p): New.
11976 (aarch64_float_const_representable_p): Likewise.
11977 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11978 (aarch64_output_simd_mov_immediate): New.
11979 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11980 (*movdf_aarch64): Likewise.
11981 * config/aarch64/constraints.md (Ufc): New.
11982 (Y): call aarch64_float_const_zero_rtx.
11983 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11984
11985 2013-01-07 Richard Biener <rguenther@suse.de>
11986
11987 PR tree-optimization/55888
11988 PR tree-optimization/55862
11989 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11990 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11991 not if it is contained therein.
11992
11993 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11994
11995 * config/avr/t-avr: Typo.
11996
11997 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
11998
11999 PR55243
12000 * config/avr/t-avr: Don't automatically rebuild
12001 $(srcdir)/config/avr/t-multilib
12002 $(srcdir)/config/avr/avr-tables.opt
12003 $(srcdir)/doc/avr-mmcu.texi
12004 (avr-mcus): New phony target to build them on request.
12005 (s-avr-mlib, s-avr-mmcu-texi): Remove.
12006 * avr/avr-mcus.def: Adjust comments.
12007
12008 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
12009
12010 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12011
12012 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12013
12014 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12015
12016 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12017
12018 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12019
12020 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
12021
12022 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12023 to generate profiling.
12024 * config/rs6000/aix64.h (LIB_SPEC): Same.
12025
12026 2013-01-04 Andrew Pinski <apinski@cavium.com>
12027
12028 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12029 New function.
12030 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12031
12032 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
12033
12034 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12035 unconditionally.
12036 (ix86_expand_move): Ditto.
12037 (ix86_zero_extend_to_Pmode): Ditto.
12038 (ix86_expand_call): Ditto.
12039 (ix86_expand_special_args_builtin): Ditto.
12040 (ix86_expand_builtin): Ditto.
12041
12042 2013-01-04 Richard Biener <rguenther@suse.de>
12043
12044 PR tree-optimization/55862
12045 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12046 translating them through PHI nodes.
12047
12048 2013-01-04 Martin Jambor <mjambor@suse.cz>
12049
12050 PR tree-optimization/55755
12051 * tree-sra.c (sra_modify_assign): Do not check that an access has no
12052 children when trying to avoid producing a VIEW_CONVERT_EXPR.
12053
12054 2013-01-04 Marek Polacek <polacek@redhat.com>
12055
12056 PR middle-end/55859
12057 * opts.c (default_options_optimization): Clarify error message.
12058
12059 2013-01-04 Richard Biener <rguenther@suse.de>
12060
12061 PR middle-end/55863
12062 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12063 reassociation.
12064
12065 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12066
12067 PR target/53789
12068 * config/pa/pa.md (movsi): Revert previous change.
12069 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12070 references.
12071
12072 2013-01-03 Richard Henderson <rth@redhat.com>
12073
12074 * config/i386/i386.c (ix86_expand_move): Always assign to op1
12075 after eliminating TLS symbols.
12076
12077 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
12078
12079 PR bootstrap/50167
12080 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12081 * graphite-poly.c (debug_gmp_value): Likewise.
12082
12083 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
12084
12085 PR target/55712
12086 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12087 selected code model, define __code_mode_small__, __code_model_medium__,
12088 __code_model_large__, __code_model_32__ or __code_model_kernel__.
12089 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
12090 xchg temporary register with %k. Declare temporary register as
12091 early clobbered.
12092 [__x86_64__]: For medium and large code models, preserve %rbx register.
12093
12094 2013-01-03 Richard Biener <rguenther@suse.de>
12095
12096 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
12097 (dump_subscript): Adjust.
12098 (finalize_ddr_dependent): Do not dump redundant info.
12099 (analyze_siv_subscript): Adjust.
12100 (subscript_dependence_tester): Likewise.
12101 (compute_affine_dependence): Likewise.
12102
12103 2013-01-03 Richard Biener <rguenther@suse.de>
12104
12105 Revert
12106 2013-01-03 Richard Biener <rguenther@suse.de>
12107
12108 PR tree-optimization/55857
12109 * tree-vect-stmts.c (vectorizable_load): Do not setup
12110 re-alignment for invariant loads.
12111
12112 2013-01-02 Richard Biener <rguenther@suse.de>
12113
12114 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12115 invariant load do not generate a vector load from the scalar location.
12116
12117 2013-01-03 Richard Biener <rguenther@suse.de>
12118
12119 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
12120 for not vectorizing.
12121 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12122 not build INDIRECT_REFs, call get_name once only.
12123 (vect_create_data_ref_ptr): Likewise. Dump base object kind
12124 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
12125
12126 2013-01-03 Richard Biener <rguenther@suse.de>
12127
12128 PR tree-optimization/55857
12129 * tree-vect-stmts.c (vectorizable_load): Do not setup
12130 re-alignment for invariant loads.
12131
12132 2013-01-03 Richard Biener <rguenther@suse.de>
12133
12134 PR lto/55848
12135 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
12136 prefer a built-in decl.
12137
12138 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12139
12140 * gcc.c (process_command): Update copyright notice dates.
12141 * gcov.c (print_version): Likewise.
12142 * gcov-dump.c (print_version): Likewise.
12143
12144 PR rtl-optimization/55838
12145 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
12146 iv0.step, iv1.step and step.
12147
12148 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12149 Marc Glisse <marc.glisse@inria.fr>
12150
12151 PR tree-optimization/55832
12152 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
12153 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
12154 integer_{one,zero}_node.
12155
12156 2013-01-03 Jakub Jelinek <jakub@redhat.com>
12157
12158 PR debug/54402
12159 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
12160 * var-tracking.c (reverse_op): Don't add reverse ops to
12161 VALUEs that have already
12162 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
12163
12164 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12165
12166 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
12167
12168 2013-01-02 Teresa Johnson <tejohnson@google.com>
12169
12170 * dumpfile.c (dump_loc): Print filename with location.
12171 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
12172 new location_t parameter to emit complete unroll message with
12173 new dump framework.
12174 (canonicalize_loop_induction_variables): Compute loops location
12175 and pass to try_unroll_loop_completely.
12176 * loop-unroll.c (report_unroll_peel): New function.
12177 (peel_loops_completely): Use new dump format with location
12178 for main dumpfile message, and invoke report_unroll_peel on success.
12179 (decide_unrolling_and_peeling): Ditto.
12180 (decide_peel_once_rolling): Remove old dumpfile message subsumed
12181 by report_unroll_peel.
12182 (decide_peel_completely): Ditto.
12183 (decide_unroll_constant_iterations): Ditto.
12184 (decide_unroll_runtime_iterations): Ditto.
12185 (decide_peel_simple): Ditto.
12186 (decide_unroll_stupid): Ditto.
12187 * cfgloop.c (get_loop_location): New function.
12188 * cfgloop.h (get_loop_location): Declare.
12189
12190 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12191
12192 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12193 NULL.
12194
12195 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12196
12197 PR middle-end/55198
12198 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12199 BLKmode objects when EXPAND_MEMORY is specified.
12200
12201 2013-01-02 Sriraman Tallam <tmsriram@google.com>
12202
12203 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12204 in loop predicate.
12205 (fold_builtin_cpu): Do not share cpu model decls across statements.
12206
12207 2013-01-02 Jason Merrill <jason@redhat.com>
12208
12209 PR c++/55804
12210 * tree.c (build_array_type_1): Revert earlier change.
12211
12212 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
12213
12214 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12215 "cortex-a57".
12216 * config/aarch64/aarch64-tune.md: Re-generate.
12217
12218 2013-01-02 Richard Biener <rguenther@suse.de>
12219
12220 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
12221 invariant load do not generate a vector load from the scalar location.
12222
12223 2013-01-02 Richard Biener <rguenther@suse.de>
12224
12225 PR bootstrap/55784
12226 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12227 * configure: Regenerate.
12228
12229 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12230
12231 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12232 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12233 (expand_builtin_int_roundingfn_2): Keep the original target around
12234 for the fallback case.
12235
12236 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12237
12238 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12239 to be clear for sign changes.
12240
12241 2013-01-01 Jan Hubicka <jh@suse.cz>
12242
12243 * ipa-inline-analysis.c: Fix formatting.
12244
12245 2013-01-01 Jakub Jelinek <jakub@redhat.com>
12246
12247 PR tree-optimization/55831
12248 * tree-vect-loop.c (get_initial_def_for_induction): Use
12249 gsi_after_labels instead of gsi_start_bb.
12250 \f
12251 Copyright (C) 2013 Free Software Foundation, Inc.
12252
12253 Copying and distribution of this file, with or without modification,
12254 are permitted in any medium without royalty provided the copyright
12255 notice and this notice are preserved.