1 2013-05-22 Martin Jambor <mjambor@suse.cz>
4 * tree.h (contains_bitfld_component_ref_p): Declare.
5 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
6 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its caller.
7 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
8 not access a bit-field. Assert all final offsets are byte-aligned.
10 2013-05-23 Richard Biener <rguenther@suse.de>
12 PR tree-optimization/57380
13 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
14 least one invariant or re-used load.
15 * passes.c (init_optimization_passes): Move pass_phiprop before
18 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
20 * config/aarch64/aarch64-simd.md
21 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
23 2013-05-23 Richard Biener <rguenther@suse.de>
26 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
27 OEP_CONSTANT_ADDRESS_OF retained.
29 2013-05-23 Jakub Jelinek <jakub@redhat.com>
32 * expmed.c (store_split_bit_field): If op0 is a REG or
33 SUBREG of a REG, don't lower unit. Handle unit not being
36 2013-05-23 Richard Biener <rguenther@suse.de>
38 PR rtl-optimization/57341
39 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
40 instead of true_dependence.
42 2013-05-22 David Malcolm <dmalcolm@redhat.com>
44 * bb-reorder.c (branch_threshold): make const
45 (exec_threshold): ditto
47 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
48 Pat Haugen <pthaugen@us.ibm.com>
49 Peter Bergner <bergner@vnet.ibm.com>
51 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
52 documentation for the power8 crypto builtins.
54 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
56 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
57 macros for defining power8 builtin functions.
58 (BU_P8V_AV_2): Likewise.
59 (BU_P8V_AV_P): Likewise.
60 (BU_P8V_VSX_1): Likewise.
61 (BU_P8V_OVERLOAD_1): Likewise.
62 (BU_P8V_OVERLOAD_2): Likewise.
63 (BU_CRYPTO_1): Likewise.
64 (BU_CRYPTO_2): Likewise.
65 (BU_CRYPTO_3): Likewise.
66 (BU_CRYPTO_OVERLOAD_1): Likewise.
67 (BU_CRYPTO_OVERLOAD_2): Likewise.
68 (XSCVSPDP): Fix typo, point to the correct instruction.
69 (VCIPHER): Add power8 crypto builtins.
70 (VCIPHERLAST): Likewise.
72 (VNCIPHERLAST): Likewise.
76 (VPERMXOR_V2DI): Likewise.
77 (VPERMXOR_V4SI: Likewise.
78 (VPERMXOR_V8HI: Likewise.
79 (VPERMXOR_V16QI: Likewise.
80 (VSHASIGMAW): Likewise.
81 (VSHASIGMAD): Likewise.
84 (VSHASIGMA): Likewise.
86 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
87 __CRYPTO__ if the crypto instructions are available.
88 (altivec_overloaded_builtins): Add support for overloaded power8
91 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
92 support for power8 crypto builtins.
93 (builtin_function_type): Likewise.
94 (altivec_init_builtins): Add support for builtins that take vector
95 long long (V2DI) arguments.
97 * config/rs6000/crypto.md: New file, define power8 crypto
100 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
101 Pat Haugen <pthaugen@us.ibm.com>
102 Peter Bergner <bergner@vnet.ibm.com>
104 * doc/invoke.texi (Option Summary): Add power8 options.
105 (RS/6000 and PowerPC Options): Likewise.
107 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
108 constraints.md instead of rs6000.h. Reorder w* constraints. Add
109 wm, wn, wr documentation.
111 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
112 registers if direct move instructions are enabled.
113 (wn): New constraint for no registers.
114 (wq): New constraint for quad word even GPR registers.
115 (wr): New constraint if 64-bit instructions are enabled.
116 (wv): New constraint if power8 vector instructions are enabled.
117 (wQ): New constraint for quad word memory locations.
119 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
120 constraint for 0..15 for crypto instructions.
121 (gpc_reg_operand): If VSX allow registers in VSX registers as well
122 as GPR and floating point registers.
123 (int_reg_operand): New predicate to match only GPR registers.
124 (base_reg_operand): New predicate to match base registers.
125 (quad_int_reg_operand): New predicate to match even GPR registers
126 for quad memory operations.
127 (vsx_reg_or_cint_operand): New predicate to allow vector logical
128 operations in both GPR and VSX registers.
129 (quad_memory_operand): New predicate for quad memory operations.
130 (reg_or_indexed_operand): New predicate for direct move support.
132 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
133 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
134 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
135 (POWERPC_MASKS): Add power8 options.
136 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
139 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
140 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
142 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
143 (-mpower8-fusion): New power8 options.
144 (-mpower8-fusion-sign): Likewise.
145 (-mpower8-vector): Likewise.
146 (-mcrypto): Likewise.
147 (-mdirect-move): Likewise.
148 (-mquad-memory): Likewise.
150 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
152 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
154 (rs6000_debug_reg_print): Print the base register class if
156 (rs6000_debug_vector_unit): Add p8_vector.
157 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
158 definitions. Also print fusion state.
159 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
160 (rs6000_builtin_mask_calculate): Add power8 builtin support.
161 (rs6000_option_override_internal): Add support for power8.
162 (rs6000_common_init_builtins): Add debugging for skipped builtins
164 (rs6000_adjust_cost): Add power8 support.
165 (rs6000_issue_rate): Likewise.
166 (insn_must_be_first_in_group): Likewise.
167 (insn_must_be_last_in_group): Likewise.
168 (force_new_group): Likewise.
169 (rs6000_register_move_cost): Likewise.
170 (rs6000_opt_masks): Likewise.
172 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
173 power8 capable assembler, default to power7 options.
174 (TARGET_DIRECT_MOVE): Likewise.
175 (TARGET_CRYPTO): Likewise.
176 (TARGET_P8_VECTOR): Likewise.
177 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
178 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
179 (VECTOR_MEM_P8_VECTOR_P): Likewise.
180 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
181 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
182 (TARGET_XSCVDPSPN): Likewise.
183 (TARGET_XSCVSPDPN): Likewsie.
184 (TARGET_SYNC_HI_QI): Likewise.
185 (TARGET_SYNC_TI): Likewise.
186 (MASK_CRYPTO): Likewise.
187 (MASK_DIRECT_MOVE): Likewise.
188 (MASK_P8_FUSION): Likewise.
189 (MASK_P8_VECTOR): Likewise.
190 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the
191 TFmode temporary used by some of the direct move instructions to
192 get two FP temporary registers does not force creation of a stack
194 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
195 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
196 that any VSX registers are tieable, even if they are also an
198 (r6000_reg_class_enum): Add wm, wr, wv constraints.
199 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
200 (RS6000_BTM_CRYPTO): Likewise.
201 (RS6000_BTM_COMMON): Likewise.
203 * config/rs6000/rs6000.md (cpu attribute): Add power8.
204 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
205 (enum rs6000_vector): Add power8 vector support.
207 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
211 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
212 (any_sibcall_could_use_r3): this and handle indirect calls.
213 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
215 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
217 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
219 2013-05-22 Richard Biener <rguenther@suse.de>
222 * profile.c (branch_prob): Do not split blocks that are
223 abnormally receiving from ECF_RETURNS_TWICE functions.
225 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
227 * recog.c (offsettable_address_addr_space_p): Fix calculation of
228 address mode. Move pointer mode initialization to the same place.
230 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
232 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
233 while it has any effect.
235 2013-05-21 Easwaran Raman <eraman@google.com>
237 PR tree-optimization/57322
238 * (build_and_add_sum): If a BB is empty, set the UID of the statement
239 added to the BB to be 1.
241 2013-05-21 Jakub Jelinek <jakub@redhat.com>
243 PR tree-optimization/57331
244 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize
245 comparison of conversion from pointer type to integral type
248 2013-05-21 Martin Jambor <mjambor@suse.cz>
251 * ipa-prop.c (ipa_read_node_info): Process param_used and
252 controlled_uses in the same order as when writing.
254 2013-05-21 Magnus Granberg <baldrick@free.fr>
257 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
259 2013-05-21 Richard Biener <rguenther@suse.de>
261 PR tree-optimization/57318
262 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
263 estimate stmts with side-effects as likely eliminated.
265 2013-05-21 Richard Biener <rguenther@suse.de>
267 PR tree-optimization/57330
268 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
269 preserve the call stmts fntype.
271 2013-05-21 Richard Biener <rguenther@suse.de>
273 PR tree-optimization/57303
274 * tree-ssa-sink.c (statement_sink_location): Improve killing
275 stmt detection and properly handle self-assignments.
277 2013-05-21 Christian Bruel <christian.bruel@st.com>
279 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
280 spanning registers. LEAF_REG_REMAP is supported only for contiguous
281 registers. Set register size out of the PARALLEL loop.
283 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
286 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
287 (*fmasf4, *fmasf4_media): New insns.
289 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
291 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
292 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
293 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
294 (mips_idiv_insns): Update the comments to say that the returned
295 instruction counts are in units of BASE_INSN_LENGTH.
296 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
297 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
298 using 2 rather than 4 as the length of indirect MIPS16 and
299 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
300 length of a NOP. Don't divide MIPS16 lengths by 2.
301 (mips16_split_long_branches): Assume a branch is long if the
302 length is greater than 4 rather than 8.
303 * config/mips/mips.md (length): Give MIPS16 lengths directly,
304 rather than multiplying them by 2. Multiply instruction counts
305 by BASE_INSN_LENGTH rather than 4.
306 (*jump_mips16, tls_get_tp_mips16_<mode>)
307 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
309 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
311 * config/mips/mips.md (extended_mips16): Remove branch case.
312 (length): Remove duplicated extended_mips16 test.
314 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
316 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
318 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
320 * recog.h (Recog_data): Rename to...
321 (recog_data_d): ...this.
322 (recog_data): Update accordingly.
323 * recog.c (recog_data): Likewise.
324 * reload.c (save_recog_data): Likewise.
325 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
326 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
328 2013-05-17 Julian Brown <julian@codesourcery.com>
330 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
331 found in a REG_EQUAL note, invalidate it.
333 2013-05-17 Easwaran Raman <eraman@google.com>
335 * tree-ssa-reassoc.c (find_insert_point): New function.
336 (insert_stmt_after): Likewise.
337 (get_def_stmt): Likewise.
338 (ensure_ops_are_available): Likewise.
339 (not_dominated_by): Likewise.
340 (rewrite_expr_tree): Do not move statements beyond what is
341 necessary. Remove call to swap_ops_for_binary_stmt...
342 (reassociate_bb): ... and move it here.
343 (build_and_add_sum): Assign UIDs for new statements.
344 (linearize_expr): Likewise.
345 (do_reassoc): Renumber gimple statement UIDs.
347 2013-05-17 Jan Hubicka <jh@suse.cz>
349 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
351 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
352 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
354 (output_weakrefs): Update.
356 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
357 Martin Jambor <mjambor@suse.cz>
360 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
361 value that corresponds to the given aggval is found in values vector.
363 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
365 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
366 sse, sse2, sse3, ssse3 and sse4a flags to options.
368 2013-05-17 David Malcolm <dmalcolm@redhat.com>
370 * gengtype-state.c: (s_expr_writer): New class, to handle
371 prettifying of output layout of s-expressions.
372 (state_writer): New class, to write out gtype.state.
373 (state_written_type_count): Move this variable into member data of
375 (s_expr_writer::s_expr_writer): New code: constructor for new class
376 (state_writer::state_writer(): ditto
377 (s_expr_writer::write_new_line): New function
378 (s_expr_writer::write_any_indent): ditto
379 (s_expr_writer::begin_s_expr): ditto
380 (s_expr_writer::end_s_expr): ditto
381 (write_state_fileloc): convert to method of state_writer...
382 (state_writer:: write_state_fileloc): ...and use methods of
383 s_expr_writer to write indentation into the gtype.state output file
384 to visually represent the hierarchical structure of the list
386 (write_state_fields): ditto, renaming to...
387 (state_writer::write_state_fields)
388 (write_state_a_string): ditto, renaming to...
389 (state_writer::write_state_a_string)
390 (write_state_string_option): ditto, renaming to...
391 (state_writer::write_state_string_option)
392 (write_state_type_option): ditto, renaming to...
393 (state_writer::write_state_type_option)
394 (write_state_nested_option): ditto, renaming to...
395 (state_writer::write_state_nested_option)
396 (write_state_option): ditto, renaming to...
397 (state_writer::write_state_option)
398 (write_state_options): ditto, renaming to...
399 (state_writer::write_state_options)
400 (write_state_lang_bitmap): ditto, renaming to...
401 (state_writer::write_state_lang_bitmap)
402 (write_state_version): ditto, renaming to...
403 (state_writer::write_state_version)
404 (write_state_scalar_type): ditto, renaming to...
405 (state_writer::write_state_scalar_type)
406 (write_state_string_type): ditto, renaming to...
407 (state_writer::write_state_string_type)
408 (write_state_undefined_type): ditto, renaming to...
409 (state_writer::write_state_undefined_type)
410 (write_state_struct_union_type): ditto, renaming to...
411 (state_writer::write_state_struct_union_type)
412 (write_state_struct_type): ditto, renaming to...
413 (state_writer::write_state_struct_type)
414 (write_state_user_struct_type): ditto, renaming to...
415 (state_writer::write_state_user_struct_type)
416 (write_state_lang_struct_type): ditto, renaming to...
417 (state_writer::write_state_lang_struct_type)
418 (write_state_param_struct_type): ditto, renaming to...
419 (state_writer::write_state_param_struct_type)
420 (write_state_pointer_type): ditto, renaming to...
421 (state_writer::write_state_pointer_type)
422 (write_state_array_type): ditto, renaming to...
423 (state_writer::write_state_array_type)
424 (write_state_gc_used): ditto, renaming to...
425 (state_writer::write_state_gc_used)
426 (write_state_common_type_content): ditto, renaming to...
427 (state_writer::write_state_common_type_content)
428 (write_state_type): ditto, renaming to...
429 (state_writer::write_state_type)
430 (write_state_pair_list): ditto, renaming to...
431 (state_writer::write_state_pair_list)
432 (write_state_pair): ditto, renaming to...
433 (state_writer::write_state_pair)
434 (write_state_typedefs): ditto, renaming to...
435 (state_writer::write_state_typedefs)
436 (write_state_structures): ditto, renaming to...
437 (state_writer::write_state_structures)
438 (write_state_param_structs): ditto, renaming to...
439 (state_writer::write_state_param_structs)
440 (write_state_variables): ditto, renaming to...
441 (state_writer::write_state_variables)
442 (write_state_srcdir): ditto, renaming to...
443 (state_writer::write_state_srcdir)
444 (write_state_files_list): ditto, renaming to...
445 (state_writer::write_state_files_list)
446 (write_state_languages): ditto, renaming to...
447 (state_writer::write_state_languages)
448 (write_state): create a state_writer instance and use it when
449 writing out the state file
451 2013-05-17 Mike Stump <mikestump@comcast.net>
453 PR rtl-optimization/57304
454 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
455 accessing DF_REF_REAL_LOC.
457 2013-05-17 Jakub Jelinek <jakub@redhat.com>
459 PR rtl-optimization/57281
460 PR rtl-optimization/57300
461 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
462 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
463 what the other splitter did if the registers are dead.
465 2013-05-17 Richard Biener <rguenther@suse.de>
467 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
470 2013-05-17 Jakub Jelinek <jakub@redhat.com>
472 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
475 2013-05-17 Marek Polacek <polacek@redhat.com>
477 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
478 length when doing non-zero store of storing '\0' to '\0'.
480 2013-05-17 Jakub Jelinek <jakub@redhat.com>
482 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
483 vect_external_def oprnd1 with loop_vinfo, try to emit
484 optional cast, negation and and stmts on the loop preheader
485 edge instead of into the pattern def seq.
487 PR tree-optimization/57051
488 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
489 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
491 2013-05-16 Nick Clifton <nickc@redhat.com>
493 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
494 (rl78_is_naked_func): New function.
495 (rl78_expand_prologue): Skip prologue generation for naked
497 (rl78_expand_epilogue): Skip epilogue generation for naked
499 * doc/extend.texi (naked): Add RL78 to the list of processors
500 that supports this attribute.
502 2013-05-16 Jeff Law <law@redhat.com>
504 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
506 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
508 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
509 cache parameters using detect_caches_amd also for CYRIX,
510 NSC and TM2 signatures.
512 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
513 Dzianis Kahanovich <mahatma@eu.by>
517 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
518 VIA/Centaur processors and determine their cache parameters
519 using detect_caches_amd.
521 2013-05-16 Teresa Johnson <tejohnson@google.com>
523 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
524 (rtl_verify_edges): New function.
525 (rtl_verify_bb_insns): Ditto.
526 (rtl_verify_bb_pointers): Ditto.
527 (rtl_verify_bb_insn_chain): Ditto.
528 (rtl_verify_fallthru): Ditto.
529 (rtl_verify_bb_layout): Ditto.
530 (rtl_verify_flow_info_1): Outline checks into new functions.
531 (rtl_verify_flow_info): Ditto.
533 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
535 * cfghooks.c (copy_bbs): Add update_dominance argument.
536 * cfghooks.h (copy_bbs): Update prototype.
537 * tree-cfg.c (gimple_duplicate_sese_region):
538 Add update_dominance argument.
539 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
540 * tree-ssa-loop-ch.c (copy_loop_headers): Update
541 gimple_duplicate_sese_region call.
542 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
543 Update copy_bbs call.
544 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
545 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
547 2013-05-16 Jakub Jelinek <jakub@redhat.com>
549 * tree-vectorizer.h (NUM_PATTERNS): Increment.
550 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
551 vect_recog_rotate_pattern.
552 (vect_recog_rotate_pattern): New function.
554 2013-05-16 Jason Merrill <jason@redhat.com>
556 * Makefile.in (LLINKER): New variable.
557 (mostlyclean): Remove link mutex.
558 * configure.ac: Handle --enable-link-mutex.
559 * lock-and-run.sh: New script.
561 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
564 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
567 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
569 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
571 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
573 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
574 * config/arm/arm.c (next_consecutive_mem): New function.
575 (gen_movmem_ldrd_strd): Likewise.
576 * config/arm/arm.md (movmemqi): Update condition and code.
577 (unaligned_loaddi, unaligned_storedi): New patterns.
579 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
581 * config.gcc: Obsolete *-*-solaris2.9*.
582 * doc/install.texi (Specific, *-*-solaris2*): Document it.
584 2013-05-16 Richard Biener <rguenther@suse.de>
586 * passes.c (init_optimization_passes): Move pass_parallelize_loops
587 earlier, after GRAPHITE transforms and IV canonicalization.
589 2013-05-16 Jakub Jelinek <jakub@redhat.com>
591 * omp-low.c (extract_omp_for_data): For collapsed loops,
592 if at least one of the loops is known at compile time to
593 iterate zero times, set count to 0.
594 (expand_omp_regimplify_p): New function.
595 (expand_omp_for_generic): For collapsed loops, if at least
596 one of the loops isn't known to iterate at least once,
597 add runtime check with setting count to 0.
598 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
599 For unsigned types if it isn't known at compile time that
600 the loop will iterate at least once, add runtime check to bypass
601 the whole loop if initial condition isn't true.
603 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
605 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
607 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
610 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
611 transformations to avoid an infinite loop.
613 2013-05-16 Marek Polacek <polacek@redhat.com>
615 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
617 2013-05-15 Leif Ekblad <leif@rdos.net>
619 * config/i386/i386.c (ix86_decompose_address): Use
620 DEFAULT_TLS_SEG_REG to access TLS segment register.
621 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
622 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
623 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
625 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
628 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
629 sibling calls to functions that would normally be lazily bound,
630 unless $gp is call-clobbered.
632 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
634 * config/i386/i386.c (ix86_option_override_internal): Update
635 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
636 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
637 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
638 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
640 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
642 2013-05-15 Andreas Schwab <schwab@suse.de>
644 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
645 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
648 2013-05-15 Teresa Johnson <tejohnson@google.com>
650 * loop-unroll.c (report_unroll_peel): Check decision before
651 emitting unroll/peel message.
653 2013-05-15 Teresa Johnson <tejohnson@google.com>
655 * function.h (has_bb_partition): New rtl_data flag.
656 (bb_reorder_complete): Ditto.
657 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
658 instead of flag_reorder_blocks_and_partition.
659 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
660 with some enhancements.
661 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
662 * bb-reorder.c (connect_traces): Check for has_bb_partition
663 instead of flag_reorder_blocks_and_partition.
664 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
665 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
666 verify_hot_cold_block_grouping.
667 (partition_hot_cold_basic_blocks): Set has_bb_partition.
669 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
672 * config/arm/predicates.md (call_insn_operand): New predicate.
673 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
674 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
675 if insn is not a tail call.
676 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
678 * config/arm/arm.h (enum reg_class): New caller save register class.
679 (REG_CLASS_NAMES): Likewise.
680 (REG_CLASS_CONTENTS): Likewise.
681 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
684 2013-05-15 Richard Biener <rguenther@suse.de>
686 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
687 of MSG_OPTIMIZED_LOCATIONS.
688 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
689 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
691 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
692 of MSG_OPTIMIZED_LOCATIONS.
693 (execute_vect_slp): Likewise.
694 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
695 (vect_create_cond_for_alias_checks): Likewise.
696 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
697 (vect_recog_widen_mult_pattern): Likewise.
698 (vect_recog_widen_sum_pattern): Likewise.
699 (vect_recog_over_widening_pattern): Likewise.
700 (vect_recog_widen_shift_pattern): Likewise.
701 (vect_recog_vector_vector_shift_pattern): Likewise.
702 (vect_recog_divmod_pattern): Likewise.
703 (vect_recog_mixed_size_cond_pattern): Likewise.
704 (vect_recog_bool_pattern): Likewise.
705 (vect_pattern_recog_1): Likewise.
707 2013-05-15 Martin Jambor <mjambor@suse.cz>
709 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
710 non-functions to builtin_unreachable.
711 * ipa-inline-transform.c (inline_call): Do not assert estimates were
712 correct when new direct edges were discovered.
714 2013-05-15 Martin Jambor <mjambor@suse.cz>
716 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
717 header, print symbol order instead of node uid, print more information
718 about indirect edge targets.
719 (ipa_make_edge_direct_to_target): Print symbol order instead of node
721 (ipa_make_edge_direct_to_target): Likewise.
722 (remove_described_reference): Likewise.
723 (propagate_controlled_uses): Likewise.
724 (ipa_print_node_params): Also print symbol order.
725 (ipcp_transform_function): Print symbol order instead of node uids.
726 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
727 (cgraph_get_create_real_symbol_node): Likewise.
728 * ipa-cp.c (print_lattice): Likewise.
729 (print_all_lattices): Likewise.
730 (determine_versionability): Likewise.
731 (initialize_node_lattices): Likewise.
732 (estimate_local_effects): Likewise.
733 (update_profiling_info): Likewise.
734 (create_specialized_node): Likewise.
735 (perhaps_add_new_callers): Likewise.
736 (decide_about_value): Likewise.
737 (decide_whether_version_node): Likewise.
738 (identify_dead_nodes): Likewise.
739 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
740 (dump_inline_summary): Likewise.
741 (estimate_node_size_and_time): Likewise.
742 (inline_analyze_function): Likewise.
743 * ipa-inline.c (report_inline_failed_reason): Likewise.
744 (want_early_inline_function_p): Likewise.
745 (edge_badness): Likewise.
746 (update_edge_key): Likewise.
747 (inline_small_functions): Likewise. Add dumping of order to two other
749 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
750 instead of node uids.
751 (propagate_pure_const): Likewise.
752 (propagate_pure_const): Likewise.
753 * ipa-utils.c (dump_cgraph_node_set): Likewise.
754 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
755 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
757 * tree-pretty-print.c (dump_function_header): Likewise.
758 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
759 Print symbol order instead of node uids.
761 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
763 * config/s390/s390.c (s390_register_move_cost): Don't impose the
764 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
766 2013-05-15 Richard Biener <rguenther@suse.de>
768 PR tree-optimization/57275
769 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
770 return value for fail to do runtime alias checks for gather loads.
772 2013-05-15 Jan Hubicka <jh@suse.cz>
776 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
777 weakrefs are not external.
778 (lto_symtab_merge_decls): Fix thinko when dealing with
779 non-lto_symtab decls.
780 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
781 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
782 * varpool.c (dump_varpool_node): Dump more flags.
784 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
786 * config/i386/i386.c (processor_alias_table): Add instruction
787 FSGSBASE for AMD bdver3 architecture.
789 2013-05-14 Jakub Jelinek <jakub@redhat.com>
791 * tree.c (warn_deprecated_use): Print file:line using locus color.
792 * diagnostic.c (diagnostic_report_current_module): Print file:line
793 and file:line:column using locus color.
795 2013-05-14 Mike Stump <mikestump@comcast.net>
797 * gdbinit.in: Add __null.
799 2013-05-14 Mike Stump <mikestump@comcast.net>
801 * recog.h: Rename struct recog_data to Recog_data.
803 * reload.c (can_reload_into): Likewise.
804 * config/picochip/picochip.c: Likewise.
806 2013-05-14 Mike Stump <mikestump@comcast.net>
808 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
810 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
812 * resource.h (struct resources): Remove unch_memory member.
813 (CLEAR_RESOURCE): Don't clear unch_memory.
814 * resource.c (mark_referenced_resources): Don't set it.
815 (mark_set_resources): Likewise.
816 (mark_target_live_regs): Don't clear it.
817 (init_resource_info): Likewise.
818 * reorg.c (resource_conflicts_p): Don't compare it.
819 (redundant_insn): Don't set it.
821 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
823 * emit-rtl.c (next_label): Remove unused function.
824 (skip_consecutive_labels, link_cc0_insns): Move to ...
825 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
826 only place where these functions are used, and make them static.
828 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
830 * fold-const.c (fold_negate_expr): Handle vectors.
831 (fold_truth_not_expr): Make it static.
832 (fold_invert_truthvalue): New static function.
833 (invert_truthvalue_loc): Handle vectors. Do not call
834 fold_truth_not_expr directly.
835 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
836 <TRUTH_NOT_EXPR>: Do not cast to boolean.
837 (fold_comparison): Handle vector constants.
838 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
839 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
840 * tree.h (fold_truth_not_expr): Remove declaration.
842 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
844 * config/aarch64/aarch64-simd.md
845 (aarch64_vcond_internal<mode>): Rename to...
846 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
847 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
848 float modes. Clarify all iterator modes.
849 (vcond<mode><mode>): Use new name for vcond expanders.
850 (vcond<v_cmp_result><mode>): Likewise.
851 (vcondu<mode><mode>: Likewise.
852 * config/aarch64/iterators.md (VDQF_COND): New.
854 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
857 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
858 variable for the shift amount. Check that we shift by non-negative
861 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
864 * config/arm/arm.h (EPILOGUE_USES): Only return true
865 for LR_REGNUM after epilogue_completed.
867 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
869 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
872 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
875 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
876 and Solaris 11+/x86 with gld.
877 * configure: Regenerate.
879 2013-05-14 Jakub Jelinek <jakub@redhat.com>
881 * expmed.c (expand_shift_1): Canonicalize rotates by
882 constant bitsize / 2 to bitsize - 1.
883 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
884 case ROTATERT>: Likewise.
887 2013-05-10 Jakub Jelinek <jakub@redhat.com>
889 * config/i386/i386.md (rotateinv): New code attr.
890 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
891 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
894 2013-05-14 Richard Biener <rguenther@suse.de>
897 * tree-eh.c (sink_clobbers): Give up for successors with
898 multiple predecessors and no virtual uses.
900 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
902 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
903 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
905 2013-05-14 Jakub Jelinek <jakub@redhat.com>
908 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
909 the case when both op0 and op1 have VOIDmode.
911 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
913 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
914 in multiply-accumulate mode.
916 2013-05-13 Guozhi Wei <carrot@google.com>
918 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
920 2013-05-13 Kai Tietz <ktietz@redhat.com>
923 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
924 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
925 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
926 * config/i386/i386.c (ix86_option_override_internal): Likewise.
927 (ix86_expand_prologue): Likewise.
928 (ix86_expand_split_stack_prologue): Likewise.
929 (legitimate_pic_address_disp_p): Likewise.
930 (legitimize_pic_address): Likewise.
931 (legitimize_tls_address): Likewise.
932 (legitimize_pe_coff_symbol): Likewise.
933 (output_pic_addr_const): Likewise.
934 (construct_plt_address): Likewise.
935 (ix86_expand_call): Likewise.
936 (x86_output_mi_thunk): Likewise.
937 (x86_function_profiler): Likewise.
939 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
941 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
942 similar switch cases.
943 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
944 (aarch64_simd_mov_to_<mode>low): Delete.
945 (aarch64_simd_mov_to_<mode>high): Delete.
946 (move_lo_quad_<mode>): Add w<-r alternative.
947 (aarch64_simd_move_hi_quad_<mode>): Likewise.
948 (aarch64_simd_mov_from_*): Update type attribute.
949 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
952 2013-05-13 Jan Hubicka <jh@suse.cz>
954 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
955 * config/i386/i386.c (ix86_compute_frame_layout,
956 ix86_expand_epilogue, emit_i387_cw_initialization,
957 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
958 ix86_local_alignment): Fix use of size/speed predicates.
960 2013-05-13 Jakub Jelinek <jakub@redhat.com>
962 PR tree-optimization/45216
963 PR tree-optimization/57157
964 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
965 the (-Y) & (B - 1) variant if OP is |.
966 * expmed.c (expand_shift_1): For rotations by const0_rtx just
967 return shifted. Use (-op1) & (prec - 1) as other_amount
968 instead of prec - op1.
970 2013-05-13 Martin Jambor <mjambor@suse.cz>
973 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
974 (ipa_constant_data): New type.
975 (ipa_jump_func): Use ipa_constant_data to hold information about
976 constant jump functions.
977 (ipa_get_jf_constant): Adjust to jump function type changes.
978 (ipa_get_jf_constant_rdesc): New function.
979 (ipa_param_descriptor): New field controlled_uses.
980 (ipa_get_controlled_uses): New function.
981 (ipa_set_controlled_uses): Likewise.
982 * ipa-ref.h (ipa_find_reference): Declare.
983 * ipa-prop.c (ipa_cst_ref_desc): New type.
984 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
986 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
987 New parameter cs. Adjust all callers.
988 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
989 (remove_described_reference): New function.
990 (jfunc_rdesc_usable): Likewise.
991 (try_make_edge_direct_simple_call): Decrement controlled use count,
992 attempt to remove reference if it hits zero.
993 (combine_controlled_uses_counters): New function.
994 (propagate_controlled_uses): Likewise.
995 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
996 (ipa_edge_duplication_hook): Duplicate reference descriptions.
997 (ipa_print_node_params): Print described use counter.
998 (ipa_write_jump_function): Adjust to jump function type changes.
999 (ipa_read_jump_function): New parameter CS, pass it to
1000 ipa_set_jf_constant. Adjust caller.
1001 (ipa_write_node_info): Stream controlled use count
1002 (ipa_read_node_info): Likewise.
1003 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
1005 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
1006 count. Remove cloning-added reference if it reaches zero.
1007 * ipa-ref.c (ipa_find_reference): New function.
1009 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1011 * config/i386/i386.c (processor_target_table): Modified default
1012 alignment values for AMD BD and BT architectures.
1014 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
1016 * tree-vect-generic.c (uniform_vector_p): Move ...
1017 * tree.c (uniform_vector_p): ... here.
1018 * tree.h (uniform_vector_p): Declare it.
1019 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1022 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1024 PR tree-optimization/57230
1025 * tree-ssa-strlen.c (handle_char_store): Record length for
1026 array store from STRING_CST.
1028 PR tree-optimization/57230
1029 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1032 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1034 * config/epiphany/epiphany.c (epiphany_init): Check size of
1035 NUM_MODES_FOR_MODE_SWITCHING.
1036 (epiphany_expand_prologue):
1037 Remove CONFIG_REGNUM initial value handling code.
1038 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1039 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
1040 (emit_set_fp_mode, epiphany_mode_after): Likewise.
1041 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1042 Don't return 1 for FP_MODE_NONE.
1043 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1044 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1045 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1046 * config/epiphany/epiphany.md (save_config): New pattern.
1048 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
1050 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1052 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
1054 * config/i386/i386.md (memory): Handle sseishft1.
1055 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1056 (*vec_extractv2di_1): Ditto.
1058 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1060 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1063 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1065 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1066 Add mthumb/march=armv7-a multilib.
1067 Add mthumb/march=armv7-r multilib.
1068 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1070 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1072 * config/v850/t-rtems: Add more multilibs.
1074 2013-05-10 Richard Biener <rguenther@suse.de>
1076 PR tree-optimization/57214
1077 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1078 not propagate from SSA names that occur in abnormal PHI nodes.
1080 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1082 * stor-layout.c (element_precision): New function.
1083 * machmode.h (element_precision): Declare it.
1084 * tree.c (build_minus_one_cst): New function.
1085 (element_precision): Likewise.
1086 * tree.h (build_minus_one_cst): Declare new function.
1087 (element_precision): Likewise.
1088 * fold-const.c (operand_equal_p): Use element_precision.
1089 (fold_binary_loc): Handle vector types.
1090 * convert.c (convert_to_integer): Use element_precision.
1091 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1094 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1096 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1097 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1098 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1099 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1100 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1101 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1102 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1103 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1104 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1105 (Uuw8): New constraints.
1106 (Usb4): Move into alphabetical order.
1107 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1108 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1109 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1110 previously unnamed patterns.
1111 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1112 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1113 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1114 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1115 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1116 of specific lengths.
1118 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1120 * config/i386/i386.md (rotateinv): New code attr.
1121 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1122 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1123 roll $31, %eax, etc.
1125 PR tree-optimization/45216
1126 PR tree-optimization/57157
1127 * tree-ssa-forwprop.c (simplify_rotate): New function.
1128 (ssa_forward_propagate_and_combine): Call it.
1130 2013-05-10 Richard Biener <rguenther@suse.de>
1132 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1133 disable peeling when we version for aliasing.
1134 (vector_alignment_reachable_p): Honor explicit user alignment.
1135 (vect_supportable_dr_alignment): Likewise.
1136 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1137 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1138 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1139 then peeling to arrange for the cost-model check to come first.
1141 2013-05-10 Alan Modra <amodra@gmail.com>
1143 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1144 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1145 * configure: Regenerate.
1147 2013-05-10 Alan Modra <amodra@gmail.com>
1150 * varasm.c (default_elf_select_section): Move !DECL_P check..
1151 (get_named_section): ..to here before calling get_section_name.
1153 (default_section_type_flags): Add DECL_P check.
1154 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1155 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1157 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1159 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1160 When using gen_stack_adjust_str with a register offset, add a
1161 REG_FRAME_RELATED_EXPR note.
1163 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
1165 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1166 (*vec_extractv4si_zext_mem): Ditto.
1167 (*vec_extractv2di): Add 0->x and x->x alternatives.
1168 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1169 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1171 2013-05-09 Jason Merrill <jason@redhat.com>
1173 N3639 C++1y VLA support
1174 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1177 * tree.c (build_constructor_va): New.
1178 * tree.h: Declare it.
1180 2013-05-09 Martin Jambor <mjambor@suse.cz>
1183 * gimple-fold.c (canonicalize_constructor_val): Call
1184 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1186 2013-05-09 Jan Hubicka <jh@suse.cz>
1187 Richard Biener <rguenther@suse.de>
1190 * symtab.c (symtab_make_decl_local): Do not add private names.
1192 2013-05-09 Jan Hubicka <jh@suse.cz>
1195 * symtab.c (insert_to_assembler_name_hash): Handle clones.
1196 (unlink_from_assembler_name_hash): Likewise.
1197 (symtab_prevail_in_asm_name_hash, symtab_register_node,
1198 symtab_unregister_node, symtab_initialize_asm_name_hash,
1199 change_decl_assembler_name): Update.
1201 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
1203 * config/aarch64/aarch64.md: New movtf split.
1204 (*movtf_aarch64): Update.
1205 (aarch64_movdi_tilow): Handle TF modes and rename to
1206 aarch64_movdi_<mode>low.
1207 (aarch64_movdi_tihigh): Handle TF modes and rename to
1208 aarch64_movdi_<mode>high
1209 (aarch64_movtihigh_di): Handle TF modes and rename to
1210 aarch64_mov<mode>high_di
1211 (aarch64_movtilow_di): Handle TF modes and rename to
1212 aarch64_mov<mode>low_di
1213 (aarch64_movtilow_tilow): Remove spurious whitespace.
1214 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1216 (aarch64_print_operand): Update.
1218 2013-05-09 Alan Modra <amodra@gmail.com>
1220 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1222 * configure: Regenerate.
1224 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
1226 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
1227 splitter preparation statements.
1228 * config/i386/sse.md (*vec_extract* splitters): Ditto.
1229 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
1232 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1234 * gimple-ssa-strength-reduction.c (count_candidates): Change
1235 return value to int.
1236 (analyze_candidates_and_replace): Change type of length to int.
1238 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
1240 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
1241 (*vec_extract<mode>): Use VI12_128 mode iterator.
1242 (*vec_extract<mode>_mem): Ditto.
1243 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
1246 2013-05-08 Diego Novillo <dnovillo@google.com>
1251 2012-08-17 Diego Novillo <dnovillo@google.com>
1254 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1255 * config.in: Regenerate.
1256 * configure: Regenerate.
1257 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
1259 2013-05-08 Jan Hubicka <jh@suse.cz>
1262 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
1263 * cgraph.h (symtab_node_base): Add unique_name.
1264 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1265 input_overwrite_node, input_varpool_node): Stream unique_name.
1266 * cgraphclones.c (cgraph_create_virtual_clone,
1267 cgraph_function_versioning): Set unique_name.
1268 * ipa.c (function_and_variable_visibility): Set unique_name.
1270 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1272 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1273 (alloc_cand_and_find_basis): Restrict conditional candidate
1274 processing to CAND_MULTs.
1276 2013-05-08 Jan Hubicka <jh@suse.cz>
1279 lto-symtab.c (lto_symtab_symbol_p): New function.
1280 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1281 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1282 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1283 Skip static symbols.
1285 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1287 PR tree-optimization/57200
1288 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1289 Only call inform if the preceding warning_at returns true.
1291 2013-05-07 Han Shen <shenhan@google.com>
1293 * cfgexpand.c (record_or_union_type_has_array_p): New function.
1294 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1295 * common.opt (fstack-protector-strong): New option.
1296 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1297 * doc/invoke.texi (Optimization Options): Document
1298 "-fstack-protector-strong".
1299 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1301 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1303 * config/mips/mips.c (mips_machine_reorg2): Return 0.
1305 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
1307 * ira.c (update_equiv_regs): Add insn having equiv memory even if
1308 it is not lhs of the insn.
1309 (setup_reg_equiv): Remove insn having equiv memory which it is not
1311 * lra-constraints.c (process_address): Try to improve generation
1312 code for address base + disp.
1313 (lra_constraints): Make correct the code for checking insn setting
1314 up backward equivalence. Remove insn only if it is in the init
1316 * lra-eliminations.c (update_reg_eliminate): Change return value.
1317 (lra_eliminate): Use the result.
1319 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
1321 * config/i386/sse.md (ssescalarnummask): New mode attribute.
1322 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1323 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1324 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1325 register target operands.
1326 (*vec_extractv8hi_sse2): New pattern.
1327 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1328 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1329 (*vec_extract<mode>_mem): New insn and split pattern.
1331 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1333 * config/arm/arm.c (arm_asan_shadow_offset): New function.
1334 (TARGET_ASAN_SHADOW_OFFSET): Define.
1335 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1336 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1338 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1340 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1341 (incr_vec_index): Return -1 if increment not found.
1342 (create_add_on_incoming_edge): Assert if increment not found.
1343 (record_increment): Limit number of increments recorded.
1344 (all_phi_incrs_profitable): Return false if an increment not found.
1345 (replace_profitable_candidates): Don't process increments that were
1347 (analyze_candidates_and_replace): Limit size of incr_vec.
1349 2013-05-07 Richard Biener <rguenther@suse.de>
1351 * calls.c (special_function_p): setjmp-like functions are leaf.
1352 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1353 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1355 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
1357 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1358 (aarch64_simd_mov<mode>): New expander.
1359 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1360 (aarch64_simd_mov_to_<mode>high): Likewise.
1361 (aarch64_simd_mov_from_<mode>low): Likewise.
1362 (aarch64_simd_mov_from_<mode>high): Likewise.
1363 (aarch64_dup_lane<mode>): Update.
1364 (aarch64_dup_lanedi): New instruction pattern.
1365 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1366 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1368 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1370 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1371 (replace_mult_candidate): Remove unnecessary argument; remove
1372 unnecessary parameter from call to introduce_cast_before_cand.
1373 (replace_unconditional_candidate): Remove unnecessary parameter
1374 from call to replace_mult_candidate.
1375 (replace_conditional_candidate): Likewise.
1376 (insert_initializers): Use make_temp_ssa_name.
1377 (introduce_cast_before_cand): Remove unnecessary argument; use
1379 (replace_one_candidate): Remove unnecessary argument; remove
1380 unnecessary parameter from calls to introduce_cast_before_cand.
1381 (replace_profitable_candidates): Remove unnecessary parameters
1382 from calls to replace_one_candidate.
1384 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1386 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1387 phi def as possibly hiding a basis for a CAND_ADD whose operands
1388 have been commuted in the analysis.
1389 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1391 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1393 * config/aarch64/aarch64.md
1394 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1395 shift value between 0-4.
1397 2013-05-07 Richard Biener <rguenther@suse.de>
1399 * double-int.h (rshift): New overload.
1400 * double-int.c (rshift): New function.
1401 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1402 (create_reference_ops_from_ref): Remove.
1403 (vn_reference_insert): Use shared ops for constructing the
1404 reference and copy it.
1406 2013-05-07 Richard Biener <rguenther@suse.de>
1409 * tree-eh.c (sink_clobbers): Properly propagate
1410 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1412 2013-05-07 Jakub Jelinek <jakub@redhat.com>
1414 PR tree-optimization/57149
1415 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1416 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1417 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1418 uninit_undefined_value_p instead of ssa_undefined_value_p.
1421 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1422 for modifier == EXPAND_INITIALIZER.
1424 2013-05-07 Anton Blanchard <anton@samba.org>
1426 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1427 for powerpc64 little endian.
1428 * configure: Regenerate.
1430 2013-05-06 Graham Stott <grahams@btinternet.com>
1432 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1433 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1434 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1435 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1437 2013-05-06 Graham Stott <grahams@btinternet.com>
1439 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1440 codes which allow non-lvalues.
1442 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
1444 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1445 components are all 1s.
1446 (integer_minus_onep): New function.
1447 * tree.h (integer_minus_onep): Declare it.
1448 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1449 integer_minus_onep instead of integer_all_onesp.
1451 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1454 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1455 variations of these patterns.
1457 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
1459 * config/i386/i386.md (isa): Add x64_sse4 member.
1460 (enabled): Handle x64_sse4.
1461 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1462 instruction for 64bit SSE4_1 targets. Update insn attributes.
1463 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1464 instruction for SSE4_1 targets. Update insn attributes.
1465 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1466 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1467 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1469 (*vec_extractv4si): Rename from *sse4_1_pextrd.
1470 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1471 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1473 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1476 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1478 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
1480 * final.c (do_assembler_dialects): Don't handle curly braces and
1481 vertical bar escaped by % as dialect delimiters.
1482 (output_asm_insn): Print curly braces and vertical bar if escaped
1483 by % and ASSEMBLER_DIALECT defined.
1484 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1485 * doc/tm.texi: Regenerated.
1487 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1489 * config/mips/mips.c: Include tree-pass.h.
1490 (mips_reorg): Split in pre- and post-dbr_schedule parts.
1491 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1492 (pass_mips_machine_reorg2): New machine specific pass.
1493 (insert_pass_mips_machine_reorg2): New pass plugin definition.
1494 (mips_option_override): Register the new pass.
1495 * rtl.h (cleanup_barriers): Remove prototype.
1496 (dbr_schedule): Likewise.
1497 * jump.c (cleanup_barriers): Make static.
1498 * reorg.c (dbr_schedule): Likewise.
1500 2013-05-06 Richard Biener <rguenther@suse.de>
1502 PR tree-optimization/57185
1503 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1506 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
1509 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1510 between "first_arg" and "insn", not "last" and "insn".
1512 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1514 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1515 (find_candidates_in_block): Re-enable slsr_process_phi.
1516 (create_phi_basis): Fix double counting of candidate adjustment.
1518 2013-05-06 Richard Biener <rguenther@suse.de>
1521 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1522 the edge is also fallthru, preserve it and just clear the
1524 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1525 also complex, preserve that and just clear the fallthru flag.
1526 * tree-inline.c (update_ssa_across_abnormal_edges): Also
1527 update virtual operands.
1529 2013-05-06 Alan Modra <amodra@gmail.com>
1531 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1532 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1533 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1534 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1535 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1536 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1538 2013-05-06 Alan Modra <amodra@gmail.com>
1540 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1541 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1542 (DEFAULT_ASM_ENDIAN): Define.
1543 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1544 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1545 Update -K PIC clause from sysv4.h.
1546 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1547 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1549 2013-05-06 Alan Modra <amodra@gmail.com>
1551 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1552 twice for little-endian.
1553 (ashrdi3_no_power, ashrdi3): Support little-endian.
1555 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1558 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1559 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1561 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1562 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1563 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1566 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
1567 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1569 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1570 * config/pa/pa.opt: Make mbig-switch a no-op.
1571 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1572 (CASE_VECTOR_MODE): Always return SImode.
1573 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1574 for the !TARGET_BIG_SWITCH case.
1575 * config/pa/pa-linux.h: Likewise.
1576 * config/pa/pa-openbsd.h: Likewise.
1577 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1578 * config/pa/pa.md (short_jump): Remove define_insn.
1579 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1580 (casesi0): Remove define_insn.
1581 (type): Remove btable_branch.
1582 (pa_combine_type): Likewise.
1583 (in_nullified_branch_delay): Likewise.
1584 (in_call_delay): Likewise.
1585 (define_delay): Likewise.
1586 (define_insn_reservation "Z3"): Likewise.
1587 (define_insn_reservation "Z4"): Likewise.
1588 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1589 (pa_adjust_insn_length): Remove adjustment for btable branches.
1590 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1593 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
1595 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1596 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1597 Add m->r,x alternatives.
1598 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1599 splitters using SWI48x mode iterator.
1600 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1601 TARGET_64BIT. Add m->x alternative.
1602 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1603 Add o->x alternative. Enable for TARGET_SSE.
1604 (sse_storeq): Remove expander.
1605 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1606 with memory input operand.
1607 (*vec_extractv2di_1 splitter): New.
1608 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1609 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1611 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1613 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1614 (INT_LOWPART): Delete.
1615 (extract_MB): Adjust.
1616 (extract_ME): Adjust.
1617 (print_operand): Adjust.
1619 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1621 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1622 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1623 (reg_or_logical_cint_operand, easy_fp_constant,
1624 logical_const_operand): Delete "CONST_DOUBLE" case.
1625 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1626 "HOST_BITS_PER_WIDE_INT == 64" test.
1627 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
1628 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1629 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1630 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1632 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1633 CONST_DOUBLE DImode/VOIDmode case.
1634 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1635 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1636 CONST_DOUBLE VOIDmode case.
1637 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1638 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1639 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1640 Delete CONST_DOUBLE case.
1641 (splitters for mov FMOVE64 const_double): Delete
1642 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1643 "HOST_BITS_PER_WIDE_INT >= 64" test.
1644 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1646 (mov DI const_double): Delete.
1648 2013-05-04 Jakub Jelinek <jakub@redhat.com>
1650 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1651 on op shows all bits zero in mode of a lowpart subreg, return zero.
1653 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1656 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1657 to save TFmode registers and DImode to save TImode registers for
1658 caller save operations.
1659 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1660 mark being partially clobbered since they only use the first
1663 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1664 and TDmode only use the upper 64-bits of each VSX register.
1666 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1668 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1669 (find_candidates_in_block): Disable slsr_process_phi.
1671 2013-05-03 Guozhi Wei <carrot@google.com>
1673 * coverage.c (coverage_obj_init): Move the construction of gcov
1675 (build_init_ctor): ... here.
1677 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1679 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1680 (slsr_cand_d): Redefine def_phi.
1681 (stride_status, phi_adjust_status, count_phis_status): New enums.
1682 (find_phi_def): New.
1683 (find_basis_for_base_expr): New.
1684 (find_basis_for_candidate): Handle hidden bases.
1685 (alloc_cand_and_find_basis): Handle phi candidates.
1686 (slsr_process_phi): New.
1687 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1688 (create_mul_imm_cand): Likewise.
1689 (create_add_ssa_cand): Exclude phi base candidates.
1690 (create_add_imm_cand): Likewise.
1691 (slsr_process_cast): Likewise.
1692 (slsr_process_copy): Likewise.
1693 (find_candidates_in_block): Handle phi candidates.
1694 (dump_candidate): Likewise.
1695 (unconditional_cands): Delete.
1696 (unconditional_cands_with_known_stride_p): Delete.
1697 (phi_dependent_cand_p): New.
1698 (cand_increment): Handle phi-dependent candidates.
1699 (replace_dependent): Delete.
1700 (replace_mult_candidate): New.
1701 (replace_unconditional_candidate): New.
1702 (incr_vec_index): Move to avoid forward reference.
1703 (create_add_on_incoming_edge): New.
1704 (create_phi_basis): New.
1705 (replace_dependents): Delete.
1706 (replace_conditional_candidate): New.
1707 (phi_add_costs): New.
1708 (replace_uncond_cands_and_profitable_phis): New.
1709 (record_increment): Handle phi adjustments.
1710 (record_phi_increments): New.
1711 (record_increments): Handle phi adjustments.
1712 (phi_incr_cost): New.
1713 (lowest_cost_path): Handle phis.
1714 (total_savings): Likewise.
1715 (analyze_increments): Likewise.
1716 (ncd_with_phi): New.
1717 (ncd_of_cand_and_phis): New.
1718 (nearest_common_dominator_for_cands): Handle phi increments.
1719 (all_phi_incrs_profitable): New.
1720 (replace_profitable_candidates): Handle phi-dependent candidates.
1721 (analyze_candidates_and_replace): Likewise.
1723 2013-05-03 Teresa Johnson <tejohnson@google.com>
1726 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1727 do not exceed REG_BR_PROB_BASE.
1729 2013-05-03 Jeff Law <law@redhat.com>
1731 PR tree-optimization/57144
1732 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1733 operand of the condition will bit into the new type when eliminating
1734 a cast feeding a condition.
1736 2013-05-03 Jakub Jelinek <jakub@redhat.com>
1738 PR rtl-optimization/57130
1739 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1740 of COMPARE as in_code to the recursive call if needed.
1742 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
1744 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1745 (enabled): Handle new members.
1746 * config/i386/sse.md (*vec_concatv2si): Merge from
1747 *vec_concatv2si_sse2 and vec_concatv2si_sse.
1748 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1750 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
1752 PR tree-optimization/57027
1753 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1754 for fnms opportunity, check we got the prerequisite kind
1755 of tree / gimple before using accessor functions.
1757 2013-05-03 Richard Biener <rguenther@suse.de>
1759 * double-int.h (lshift): New overload without precision
1761 (operator *=, operator +=, operator -=): Move ...
1762 * double-int.c (operator *=, operator +=, operator -=): ... here
1763 and implement more efficiently.
1764 (mul_double_with_sign): Remove.
1765 (lshift_double): Adjust to take unsinged shift argument, push
1766 dispatching code to callers.
1767 (mul_double_wide_with_sign): Add early out for callers that
1768 are not interested in high parts or overflow.
1769 (lshift): New function.
1770 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1772 (lrotate, rrotate): Use logical shifts.
1773 * expr.c (get_inner_reference): Use lshift.
1774 * fixed-value.c (do_fixed_divide): Likewise.
1775 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1776 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1777 (indirect_refs_may_alias_p): Likewise.
1778 (stmt_kills_ref_p_1): Likewise.
1780 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1782 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1784 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1786 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1787 scalar form of FABD instruction.
1789 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1791 * lra-constraints.c (process_alt_operands): Add checking alt
1792 number to choose the best alternative.
1794 2013-05-02 Richard Biener <rguenther@suse.de>
1796 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1797 bitmap and its handling.
1798 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1800 2013-05-02 Richard Biener <rguenther@suse.de>
1803 * tree-inline.c (copy_loops): Properly handle removed loops.
1804 (copy_cfg_body): Mark destination loops for fixup if source
1807 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
1810 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1811 generating simple_return for naked functions.
1813 2013-05-02 Martin Jambor <mjambor@suse.cz>
1816 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1817 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1819 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1820 ipa_agg_replacement_value structures.
1821 (known_aggs_to_agg_replacement_list): Likewise.
1822 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1823 (read_agg_replacement_chain): Likewise.
1824 (ipcp_transform_function): Also check that by_ref flags match.
1826 2013-05-02 Richard Biener <rguenther@suse.de>
1828 * graphds.h (struct graph): Add obstack member.
1829 * graphds.c (new_graph): Initialize obstack and allocate
1831 (add_edge): Allocate edge from the obstack.
1832 (free_graph): Free the obstack instead of all edges and vertices.
1834 2013-05-02 Teresa Johnson <tejohnson@google.com>
1836 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1838 * cfg.c (update_bb_profile_for_threading): Ditto.
1839 * tree-inline.c (copy_bb): Ditto.
1840 (copy_edges_for_bb): Ditto.
1841 (initialize_cfun): Ditto.
1842 (copy_cfg_body): Ditto.
1843 (expand_call_inline): Ditto.
1844 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1845 (estimate_node_size_and_time): Ditto.
1846 (inline_merge_summary): Ditto.
1847 * cgraphclones.c (cgraph_clone_edge): Ditto.
1848 (cgraph_clone_node): Ditto.
1849 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1850 (compute_trg_info): Ditto.
1852 2013-05-02 Ian Bolton <ian.bolton@arm.com>
1854 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1855 S reg when fp attribute set.
1856 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1858 2013-05-02 Ian Bolton <ian.bolton@arm.com>
1860 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1862 (*and_one_cmplsi3_compare0_uxtw): Likewise.
1863 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1864 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1866 2013-05-02 Richard Biener <rguenther@suse.de>
1868 * tree-scalar-evolution.c (scev_info_hasher): Remove.
1869 (struct instantiate_cache_entry): New type.
1870 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1871 (struct instantiate_cache_type): New type.
1872 (set_instantiated_value, get_instantiated_value): Remove.
1873 (get_instantiated_value_entry): New function.
1874 (instantiate_scev_name): Use the new cache and adjust.
1875 (instantiate_scev_poly): Adjust.
1876 (instantiate_scev_binary): Likewise.
1877 (instantiate_array_ref): Likewise.
1878 (instantiate_scev_convert): Likewise.
1879 (instantiate_scev_not): Likewise.
1880 (instantiate_scev_3): Likewise.
1881 (instantiate_scev_2): Likewise.
1882 (instantiate_scev_r): Likewise.
1883 (instantiate_scev): Likewise.
1884 (resolve_mixers): Likewise.
1886 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
1889 * lra-constraints.c (best_small_class_operands_num): Remove.
1890 (process_alt_operands): Remove small_class_operands_num. Take
1891 small classes operands into losers and only if the operand is not
1892 matched. Modify debugging output.
1893 (curr_insn_transform): Remove best_small_class_operands_num.
1896 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1898 * config/aarch64/aarch64-builtins.c
1899 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
1900 * config/aarch64/aarch64-simd-builtins.def
1901 (reduc_splus_): Add new modes.
1902 (reduc_uplus_): New.
1903 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
1904 (reduc_uplus_v4sf): Likewise.
1905 (reduc_splus_v4sf): Likewise.
1906 (aarch64_addv<mode>): Likewise.
1907 (reduc_uplus_<mode>): Likewise.
1908 (reduc_splus_<mode>): Likewise.
1909 (aarch64_addvv2di): Likewise.
1910 (reduc_uplus_v2di): Likewise.
1911 (reduc_splus_v2di): Likewise.
1912 (aarch64_addvv2si): Likewise.
1913 (reduc_uplus_v2si): Likewise.
1914 (reduc_splus_v2si): Likewise.
1915 (reduc_<sur>plus_<mode>): New.
1916 (reduc_<sur>plus_v2di): Likewise.
1917 (reduc_<sur>plus_v2si): Likewise.
1918 (reduc_<sur>plus_v4sf): Likewise.
1919 (aarch64_addpv4sf): Likewise.
1920 * config/aarch64/arm_neon.h
1921 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
1922 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
1923 add UNSPEC_SADDV, UNSPEC_UADDV.
1925 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
1927 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1929 * config/aarch64/arm_neon.h
1930 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
1932 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1934 * config/aarch64/aarch64-builtins
1935 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
1937 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1939 * config/aarch64/aarch64-simd-builtins.def
1941 (reduc_smin_): Likewise.
1942 (reduc_umax_): Likewise.
1943 (reduc_umin_): Likewise.
1944 (reduc_smax_nan_): Likewise.
1945 (reduc_smin_nan_): Likewise.
1948 (smax): Update for V2SF, V4SF and V2DF modes.
1951 (smin_nan): Likewise.
1952 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1953 (<su><maxmin><mode>3): ...This, refactor.
1954 (s<maxmin><mode>3): New.
1955 (<maxmin_uns><mode>3): Likewise.
1956 (reduc_<maxmin_uns>_<mode>): Refactor.
1957 (reduc_<maxmin_uns>_v4sf): Likewise.
1958 (reduc_<maxmin_uns>_v2si): Likewise.
1959 (aarch64_<fmaxmin><mode>: Remove.
1960 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1962 (vmin<q>_f<32,64>): Likewise.
1963 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1965 (su): Add mappings for smax, smin, umax, umin.
1967 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1968 (FMAXMIN): Rename as...
1969 (FMAXMIN_UNS): ...This.
1971 (fmaxminv): Likewise.
1972 (fmaxmin): Likewise.
1974 (maxmin_uns_op): Likewise.
1976 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1978 * config/aarch64/arm_neon.h
1979 (vac<ge, gt><sd>_f<32, 64>): Rename to...
1980 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1981 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1983 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1985 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1986 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1988 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1990 * config/aarch64/aarch64-simd.md
1991 (vcond<mode>_internal): Handle special cases for constant masks.
1992 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1993 (vcondu<mode><mode>): Likewise.
1994 (vcond<v_cmp_result><mode>): New.
1996 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1998 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1999 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
2000 * config/aarch64/aarch64-simd-builtins.def
2001 (cmeq): Update to BUILTIN_VALLDI.
2006 * config/aarch64/arm_neon.h
2007 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
2008 to builtins or C as appropriate.
2010 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2012 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2014 (cmhi): Rename to...
2016 * config/aarch64/aarch64-simd.md
2017 (simd_mode): Add SF.
2018 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2019 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2020 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2021 (cstore<mode>_neg): ...This.
2022 * config/aarch64/iterators.md
2024 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2026 (UCOMPARISONS): Likewise.
2027 (optab): Add missing comparisons.
2035 (V_cmp_result): Add DF, SF modes.
2036 (v_cmp_result): Likewise.
2039 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2041 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2043 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2044 define_insn to define_insn_and_split.
2045 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2046 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2047 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2048 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2049 (thumb2_negscc): Likewise.
2051 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2053 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2055 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2057 * config/arm/thumb2.md: Remove trailing whitespaces.
2059 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2061 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2062 Use gen_int_mode rather than GEN_INT.
2064 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2066 * value-prof.c (stream_in_histogram_value): Remove the strayed
2069 2013-04-30 Richard Biener <rguenther@suse.de>
2072 * cfghooks.c (split_edge): Properly check for the loop latch edge.
2074 2013-04-30 Richard Biener <rguenther@suse.de>
2077 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2079 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
2081 PR rtl-optimization/56957
2082 PR rtl-optimization/57105
2083 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2084 variable. Use just INSN_UID for determining whether an insn
2085 should be only disconnected from the insn stream.
2086 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2088 2013-04-30 Jakub Jelinek <jakub@redhat.com>
2090 PR tree-optimization/57104
2091 * tsan.c (instrument_expr): Don't instrument accesses to
2092 DECL_HARD_REGISTER VAR_DECLs.
2094 2013-04-30 Richard Biener <rguenther@suse.de>
2096 * function.h (loops_for_fn): New inline function.
2097 (set_loops_for_fn): Likewise.
2098 * cfgloop.h (place_new_loop): Add struct function parameter.
2099 (get_loop): Likewise.
2100 (get_loops): Likewise.
2101 (number_of_loops): Likewise.
2103 (fel_init): Likewise.
2104 * cfg.c (get_loop_copy): Adjust.
2105 * cfgloop.c (flow_loops_dump): Likewise.
2106 (record_loop_exits): Likewise.
2107 (verify_loop_structure): Likewise.
2108 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2109 (estimate_reg_pressure_cost): Likewise.
2110 (mark_loop_exit_edges): Likewise.
2111 * cfgloopmanip.c (place_new_loop): Likewise.
2112 (add_loop): Likewise.
2113 (duplicate_loop): Likewise.
2114 * graph.c (draw_cfg_nodes): Likewise.
2115 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2116 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2117 (extract_affine_chrec): Likewise.
2118 (build_scop_iteration_domain): Likewise.
2119 * graphite.c (graphite_initialize): Likewise.
2120 * ira-build.c (create_loop_tree_nodes): Likewise.
2121 (more_one_region_p): Likewise.
2122 (rebuild_regno_allocno_maps): Likewise.
2123 (mark_loops_for_removal): Likewise.
2124 (mark_all_loops_for_removal): Likewise.
2125 (remove_unnecessary_regions): Likewise.
2126 (ira_build): Likewise.
2127 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2128 * loop-init.c (fix_loop_structure): Likewise.
2129 (gate_rtl_move_loop_invariants): Likewise.
2130 (gate_rtl_unswitch): Likewise.
2131 (gate_rtl_unroll_and_peel_loops): Likewise.
2132 (rtl_doloop): Likewise.
2133 * lto-streamer-in.c (input_cfg): Likewise.
2134 * lto-streamer-out.c (output_cfg): Likewise.
2135 * modulo-sched.c (sms_schedule): Likewise.
2136 * predict.c (tree_estimate_probability): Likewise.
2137 (tree_estimate_probability_driver): Likewise.
2138 (estimate_loops): Likewise.
2139 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2140 (move_sese_region_to_fn): Likewise.
2141 (debug_loop_num): Likewise.
2142 * tree-chrec.c (chrec_evaluate): Likewise.
2143 (hide_evolution_in_other_loops_than_loop): Likewise.
2144 (chrec_component_in_loop_num): Likewise.
2145 (reset_evolution_in_loop): Likewise.
2146 (evolution_function_is_invariant_rec_p): Likewise.
2147 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2148 * tree-inline.c (copy_loops): Likewise.
2149 (copy_cfg_body): Likewise.
2150 (tree_function_versioning): Likewise.
2151 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2152 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2154 (add_to_evolution_1): Likewise.
2155 (scev_const_prop): Likewise.
2156 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2157 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2158 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2159 (tree_ssa_lim_initialize): Likewise.
2160 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2161 (verify_loop_closed_ssa): Likewise.
2162 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2163 (tree_ssa_loop_im): Likewise.
2164 (tree_ssa_loop_unswitch): Likewise.
2165 (tree_vectorize): Likewise.
2166 (check_data_deps): Likewise.
2167 (tree_ssa_loop_ivcanon): Likewise.
2168 (tree_ssa_loop_bounds): Likewise.
2169 (tree_complete_unroll): Likewise.
2170 (tree_complete_unroll_inner): Likewise.
2171 (tree_parallelize_loops): Likewise.
2172 (tree_ssa_loop_prefetch): Likewise.
2173 (tree_ssa_loop_ivopts): Likewise.
2174 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2175 * tree-vectorizer.c (vectorize_loops): Likewise.
2177 2013-04-29 Mike Frysinger <vapier@gentoo.org>
2179 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2180 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2181 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2182 with EABI_LINK_SPEC.
2184 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2187 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2190 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2193 * lra-constraints.c (process_alt_operands): Discourage a bit more
2194 using memory for pseudos. Print cost dump for alternatives.
2195 Modify cost values for conflicts with early clobbers.
2196 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2198 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2201 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2203 2013-04-29 Ian Bolton <ian.bolton@arm.com>
2205 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2207 (movdi_aarch64): Support LDR/STR from/to D register.
2209 2013-04-29 Ian Bolton <ian.bolton@arm.com>
2211 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2212 or higher by default.
2214 2013-04-29 Richard Biener <rguenther@suse.de>
2217 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
2218 even if not adding abnormal edges for calls that can make
2221 2013-04-29 Richard Biener <rguenther@suse.de>
2224 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2226 (move_stmt_r): Remove redundant checking.
2228 2013-04-29 Teresa Johnson <tejohnson@google.com>
2231 * basic-block.h (apply_scale): New function.
2232 (apply_probability): Use apply_scale.
2233 * gimple-streamer-in.c (input_bb): Ditto.
2234 * lto-streamer-in.c (input_cfg): Ditto.
2235 * lto-cgraph.c (merge_profile_summaries): Ditto.
2236 * tree-optimize.c (execute_fixup_cfg): Ditto.
2237 * tree-inline.c (copy_bb): Update comment to use apply_scale.
2238 (copy_edges_for_bb): Ditto.
2239 (copy_cfg_body): Ditto.
2241 2013-04-29 Tom de Vries <tom@codesourcery.com>
2243 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
2244 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
2245 (tail_merge_optimize): Handle current_loops == NULL.
2247 2013-04-26 Jeff Law <law@redhat.com>
2249 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
2250 (simplify_cond_using_ranges): Generalize code to simplify
2251 COND_EXPRs where one argument is a constant and the other
2252 is an SSA_NAME created by an integral type conversion.
2254 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2256 * config/arm/arm.md (store_minmaxsi): Use only when
2257 optimize_insn_for_size_p.
2259 2013-04-29 Christian Bruel <christian.bruel@st.com>
2262 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2264 2013-04-29 Richard Biener <rguenther@suse.de>
2267 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2268 loop tree make sure to schedule a fixup for the child as well.
2269 (expand_omp_for_generic): Properly add loops.
2270 (expand_omp_for_static_nochunk): Likewise.
2271 (expand_omp_for_static_chunk): Likewise.
2272 (expand_omp_for): For the degenerate case fixup loops.
2273 (expand_omp_sections): Fix default bb placement in loops.
2274 (expand_omp_atomic_pipeline): Properly add loops.
2276 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2278 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2280 2013-04-29 Tom de Vries <tom@codesourcery.com>
2282 * tree-ssa-tail-merge.c: Update header comment.
2284 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2286 * config/aarch64/arm_neon.h
2287 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2288 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2289 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2290 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2291 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2292 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2293 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2294 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2296 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2298 * config/aarch64/aarch64-simd.md
2299 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2300 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2301 fix_trunc, fixuns_trunc.
2302 (ftrunc<VDQF:mode>2): New.
2303 * config/aarch64/iterators.md (optab): Add fix, fixuns.
2304 (fix_trunc_optab): New.
2306 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2308 * config/aarch64/aarch64-builtins.c
2309 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2310 iceilf, lround, iroundf.
2312 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2315 * config/i386/i386.h (enum ix86_tune_indices)
2316 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2317 New, split from X86_TUNE_INTER_UNIT_MOVES.
2318 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2319 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2320 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2321 (TARGET_INTER_UNIT_MOVES): Remove.
2322 * config/i386/i386.c (initial_ix86_tune_features): Update.
2323 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2324 (ix86_expand_convert_uns_didf_sse): Use
2325 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2326 (ix86_expand_vector_init_one_nonzero): Ditto.
2327 (ix86_expand_vector_init_interleave): Ditto.
2328 (inline_secondary_memory_needed): Return true for moves from SSE class
2329 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2330 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2331 * config/i386/constraints.md (Yi, Ym): Depend on
2332 TARGET_INTER_UNIT_MOVES_TO_VEC.
2333 (Yj, Yn): New constraints.
2334 * config/i386/i386.md (*movdi_internal): Change constraints of
2335 operand 1 from Yi to Yj and from Ym to Yn.
2336 (*movsi_internal): Ditto.
2337 (*movdf_internal): Ditto.
2338 (*movsf_internal): Ditto.
2339 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2340 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2341 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2342 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2343 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2344 * config/i386/sse.md (movdi_to_sse): Ditto.
2345 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2346 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2347 TARGET_INTER_UNIT_MOVES.
2348 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2349 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2350 instead of TARGET_INTER_UNIT_MOVES.
2351 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2352 operand 1 from Yi to Yj and from Ym to Yn.
2354 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2356 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2357 (float_truncate_hi_): Likewise.
2358 (float_extend_lo_): Likewise.
2359 (float_truncate_lo_): Likewise.
2360 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2361 (aarch64_float_extend_lo_v2df): Likewise.
2362 (vec_unpacks_hi_v4sf): Likewise.
2363 (aarch64_float_truncate_lo_v2sf): Likewise.
2364 (aarch64_float_truncate_hi_v4sf): Likewise.
2365 (vec_pack_trunc_v2df): Likewise.
2366 (vec_pack_trunc_df): Likewise.
2368 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2370 * config/aarch64/aarch64-builtins.c
2371 (aarch64_fold_builtin): Fold float conversions.
2372 * config/aarch64/aarch64-simd-builtins.def
2373 (floatv2si, floatv4si, floatv2di): New.
2374 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2375 * config/aarch64/aarch64-simd.md
2376 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2377 * config/aarch64/iterators.md (FLOATUORS): New.
2378 (optab): Add float, floatuns.
2379 (su_optab): Likewise.
2381 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2383 * config/aarch64/aarch64-builtins.c
2384 (aarch64_builtin_vectorized_function): Use new names for
2386 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2387 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2388 (fcvtzu): Split as...
2389 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2390 (fcvtas): Split as...
2391 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2392 (fcvtau): Split as...
2393 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2394 (fcvtps): Split as...
2395 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2396 (fcvtpu): Split as...
2397 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2398 (fcvtms): Split as...
2399 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2400 (fcvtmu): Split as...
2401 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2402 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2403 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2404 (lfrintnusf, lfrintnudf): Likewise.
2405 * config/aarch64/aarch64-simd.md
2406 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2408 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2409 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2410 (fcvt_pattern): Likewise.
2412 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2414 * config/aarch64/aarch64-simd.md
2415 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2416 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2418 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2420 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2421 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2422 (vrnd<a,m,n,p>_f32): Implement using builtins.
2423 (vrnd<i,x><q>_f<32, 64>): New.
2425 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2427 * config/aarch64/aarch64-builtins.c
2428 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2429 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2430 (frintz): Rename to...
2432 (frintp): Rename to...
2434 (frintm): Rename to...
2436 (frinti): Rename to...
2437 (nearbyint): ...this.
2438 (frintx): Rename to...
2440 (frinta): Rename to...
2442 * config/aarch64/aarch64-simd.md
2443 (aarch64_frint<frint_suffix><mode>): Delete.
2444 (<frint_pattern><mode>2): Convert to insn.
2445 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2446 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2447 (frint_pattern): Likewise.
2448 (frint_suffix): Likewise.
2450 2013-04-29 Richard Biener <rguenther@suse.de>
2452 PR tree-optimization/57081
2453 * loop-init.c: Include tree-flow.h.
2454 (loop_optimizer_finalize): Free number of iteration estimates.
2455 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2457 2013-04-29 Jakub Jelinek <jakub@redhat.com>
2459 PR tree-optimization/57083
2460 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2461 non-singleton shift count range, zero extend low_bound for uns case.
2463 * config/i386/predicates.md (general_vector_operand): New predicate.
2464 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2465 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2466 if they aren't nonimmediate operands. If their original values
2467 satisfy const_vector_equal_evenodd_p, don't shift them.
2468 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2469 predicates. For the SSE4.1 case force operands[{1,2}] into registers
2470 if not nonimmediate_operand.
2471 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2472 instead of register_operand.
2473 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2475 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
2477 * stor-layout.c (finalize_size_functions): Allocate a structure and
2478 reset cfun before dumping the functions.
2480 2013-04-27 Jakub Jelinek <jakub@redhat.com>
2482 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2485 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2486 use xop_pmacsdqh if uns_p.
2487 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2488 the immediate rotate count.
2490 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2492 * rtl.h (struct rtx_def): Add comment for field jump.
2493 (LRA_SUBREG_P): New macro.
2494 * recog.c (register_operand): Check LRA_SUBREG_P.
2495 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2497 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2498 (lra_final_code_change): Skip subreg change for operators.
2499 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2500 if there are no operand changes.
2501 * lra-constraints.c (curr_insn_set): New.
2502 (match_reload): Set LRA_SUBREG_P.
2503 (emit_spill_move): Ditto.
2504 (check_and_process_move): Use curr_insn_set. Process only single
2505 set insns. Don't initialize sec_mem_p and change_p.
2506 (simplify_operand_subreg): Use LRA_SUBREG_P.
2507 (reg_in_class_p): New function.
2508 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2509 of #ifdef. Add code to remove cycling.
2510 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2511 non-null disp. Reload inner instead of disp when base and index
2512 are null. Try to put lo_sum into register.
2513 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2514 (check_and_process_move): Move code for move cost check to
2515 simple_move_p. Remove equiv_substitution.
2516 (simple_move_p): New function.
2517 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2518 curr_insn_set. Call check_and_process_move only for single set
2519 insns. Use the new function. Move call of check_and_process_move
2520 after operand equiv substitution and address process.
2522 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2525 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2526 with nonlocal goto receivers or returns twice calls, ignore
2527 unininitialized values from abnormal edges to nl goto receiver
2528 or returns twice call.
2530 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2532 PR tree-optimization/57051
2533 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2534 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2537 2013-04-26 Richard Biener <rguenther@suse.de>
2539 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2540 (expand_omp_taskreg): Likewise. Mark loops for fixup.
2541 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2542 (fixup_loop_arrays_after_move): New function.
2543 (move_sese_region_to_fn): Properly outline the loop tree parts
2546 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
2548 * config/i386/i386.md (type, unit): Fix long lines.
2550 2013-04-26 Richard Biener <rguenther@suse.de>
2552 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2553 (lto-streamer-out.o): Likewise.
2554 * cfgloop.c (init_loops_structure): Export, add struct function
2555 argument and adjust.
2556 (flow_loops_find): Adjust.
2557 * cfgloop.h (enum loop_estimation): Add EST_LAST.
2558 (init_loops_structure): Declare.
2559 * lto-streamer-in.c: Include cfgloop.h.
2560 (input_cfg): Input the loop tree.
2561 * lto-streamer-out.c: Include cfgloop.h.
2562 (output_cfg): Output the loop tree.
2563 (output_struct_function_base): Do not drop PROP_loops.
2565 2013-03-26 Richard Biener <rguenther@suse.de>
2567 * tree-cfg.c (execute_build_cfg): Build the loop tree.
2568 (pass_build_cfg): Provide PROP_loops.
2569 (move_sese_region_to_fn): Remove loops that are outlined into fn
2571 * tree-inline.c: Include cfgloop.h.
2572 (initialize_cfun): Do not drop PROP_loops.
2573 (copy_loops): New function.
2574 (copy_cfg_body): Copy loop structure.
2575 (tree_function_versioning): Initialize destination loop tree.
2576 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2577 (pass_parallelize_loops): Do IL verification.
2578 * loop-init.c (loop_optimizer_init): Fixup loops if required.
2579 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2580 the CFG make sure we fixup loops as well.
2581 * tree-ssa-tail-merge.c: Include cfgloop.h.
2582 (replace_block_by): When merging loop latches mark loops for fixup.
2583 * lto-streamer-out.c (output_struct_function_base): Drop
2585 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2586 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2587 * ipa-split.c: Include cfgloop.h.
2588 (split_function): Add the new return block to the loop tree root.
2589 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2590 whether we have removed the forwarder block.
2591 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2592 * cfgloop.h (place_new_loop): Declare.
2593 * cfgloopmanip.c (place_new_loop): Export.
2594 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2595 (tree-switch-conversion.o): Likewise.
2596 (tree-complex.o): Likewise.
2597 (tree-inline.o): Likewise.
2598 (tree-ssa-tailmerge.o): Likewise.
2599 (ipa-split.o): Likewise.
2600 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2601 (tree-ssa-copy.o): Likewise.
2602 * tree-switch-conversion.c: Include cfgloop.h
2603 (process_switch): If we emit a bit-test cascade, schedule loops
2605 * tree-complex.c: Include cfgloop.h.
2606 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2607 * asan.c: Include cfgloop.h.
2608 (create_cond_insert_point): Properly add new basic-blocks to
2609 loops, schedule loop fixup.
2610 * cfgloop.c (verify_loop_structure): Check that looks are not
2612 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2614 (expand_omp_for_generic): Likewise.
2615 (expand_omp_sections): Likewise.
2616 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2617 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2618 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2619 is initialized, not when loops are present.
2620 * tree-parloops.c (parallelize_loops): Remove checking here.
2621 * passes.c (init_optimization_passes): Schedule a copy-propagation
2622 pass before complete unrolling of inner loops.
2624 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2626 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2627 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2628 (colorize_init): Add argument to _WIN32 version.
2629 * toplev.c: Include diagnostic-color.h.
2630 (process_options): Default to -fdiagnostics-color=auto if
2631 GCC_COLORS env var is in the environment.
2632 * common.opt (fdiagnostics-color=): Add Var and Init.
2633 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2634 env var is in the environment, the default is auto rather than never.
2636 * diagnostic.h (file_name_as_prefix): Add context argument.
2637 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2638 the string as locus.
2639 * langhooks.c (lhd_print_error_function): Adjust caller.
2641 2013-04-25 Lawrence Crowl <crowl@google.com>
2643 * var-tracking.c (shared_hash_def::htab):
2644 Change type to hash_table. Update dependent calls and types.
2646 2013-04-25 Lawrence Crowl <crowl@google.com>
2648 * Makefile.in: Update as needed below.
2650 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2651 Move declaration to after the type's method definitons.
2653 * attribs.c (htab_t scoped_attributes::attribute_hash):
2654 Change type to hash_table. Update dependent calls and types.
2656 * bitmap.c (htab_t bitmap_desc_hash):
2657 Change type to hash_table. Update dependent calls and types.
2659 * cselib.c (htab_t cselib_hash_table):
2660 Change type to hash_table. Update dependent calls and types.
2662 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2663 (hash_string_slot_node): Move implementation into lto-streamer.h
2664 struct string_slot_hasher.
2665 (eq_string_slot_node): Likewise.
2667 * data-streamer-out.c: Update output_block::string_hash_table
2668 dependent calls and types.
2670 * dwarf2cfi.c (htab_t trace_index):
2671 Change type to hash_table. Update dependent calls and types.
2673 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2674 Change type to hash_table. Update dependent calls and types.
2675 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2676 (htab_t optimize_external_refs::map): Likewise.
2677 (htab_t output_comp_unit::extern_map): Likewise.
2678 (htab_t output_comdat_type_unit::extern_map): Likewise.
2679 (htab_t output_macinfo::macinfo_htab): Likewise.
2680 (htab_t optimize_location_lists::htab): Likewise.
2681 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2683 * except.c (htab_t ehspec_hash_type):
2684 Change type to hash_table. Update dependent calls and types.
2685 (assign_filter_values::ttypes): Likewise.
2686 (assign_filter_values::ehspec): Likewise.
2687 (sjlj_assign_call_site_values::ar_hash): Likewise.
2688 (convert_to_eh_region_ranges::ar_hash): Likewise.
2690 * gcse.c (htab_t pre_ldst_table):
2691 Change type to hash_table. Update dependent calls and types.
2693 * ggc-common.c (htab_t saving_htab):
2694 Change type to hash_table. Update dependent calls and types.
2695 (htab_t loc_hash): Likewise.
2696 (htab_t ptr_hash): Likewise.
2697 (call_count): Rename ggc_call_count.
2698 (call_alloc): Rename ggc_call_alloc.
2699 (loc_descriptor): Rename make_loc_descriptor.
2700 (add_statistics): Rename ggc_add_statistics.
2702 * ggc-common.c (saving_htab):
2703 Change type to hash_table. Update dependent calls and types.
2705 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2706 (push_gimplify_context): Likewise.
2707 (pop_gimplify_context): Likewise.
2708 (struct gimple_temp_hash_elt): Added.
2709 (struct gimplify_hasher): Likewise.
2710 (struct gimplify_ctx.temp_htab):
2711 Change type to hash_table. Update dependent calls and types.
2713 * gimple-fold.c: Include gimplify-ctx.h.
2715 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2716 Change type to hash_table. Update dependent calls and types.
2717 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2718 avoid potential global name collision.
2720 * gimplify.c: Include gimplify-ctx.h.
2721 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2722 (htab_t gimplify_ctx::temp_htab):
2723 Update dependent calls and types for new type hash_table.
2724 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2725 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2727 * gimplify-ctx.h: New.
2728 (struct gimple_temp_hash_elt): Move from gimplify.c.
2729 (class gimplify_hasher): New.
2730 (struct gimplify_ctx): Move from gimple.h.
2731 (htab_t gimplify_ctx::temp_htab):
2732 Change type to hash_table. Update dependent calls and types.
2734 * graphite-clast-to-gimple.c: Include graphite-htab.h.
2735 (htab_t ivs_params::newivs_index):
2736 Change type to hash_table. Update dependent calls and types.
2737 (htab_t ivs_params::params_index): Likewise.
2738 (htab_t print_generated_program::params_index): Likewise.
2739 (htab_t gloog::newivs_index): Likewise.
2740 (htab_t gloog::params_index): Likewise.
2742 * graphite.c: Include graphite-htab.h.
2743 4htab_t graphite_transform_loops::bb_pbb_mapping):
2744 Change type to hash_table. Update dependent calls and types.
2746 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2747 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2748 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2750 * graphite-dependences.c: Include graphite-htab.h.
2751 (loop_is_parallel_p): Change hash table type of parameter.
2753 * graphite-htab.h: New.
2754 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2755 (extern find_pbb_via_hash): Move from graphite-poly.h.
2756 (extern loop_is_parallel_p): Move from graphite-poly.h.
2757 (extern get_loop_body_pbbs): Move from graphite-poly.h.
2759 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2760 (extern loop_is_parallel_p): Move to graphite-htab.h.
2761 (extern get_loop_body_pbbs): Move to graphite-htab.h.
2763 * haifa-sched.c (htab_t delay_htab):
2764 Change type to hash_table. Update dependent calls and types.
2765 (htab_t delay_htab_i2): Likewise.
2767 * ira-color.c (htab_t allocno_hard_regs_htab):
2768 Change type to hash_table. Update dependent calls and types.
2770 * ira-costs.c (htab_t cost_classes_htab):
2771 Change type to hash_table. Update dependent calls and types.
2773 * loop-invariant.c (htab_t merge_identical_invariants::eq):
2774 Change type to hash_table. Update dependent calls and types.
2776 * loop-iv.c (htab_t bivs):
2777 Change type to hash_table. Update dependent calls and types.
2779 * loop-unroll.c (htab_t opt_info::insns_to_split):
2780 Change type to hash_table. Update dependent calls and types.
2781 (htab_t opt_info::insns_with_var_to_expand): Likewise.
2783 * lto-streamer.h (struct string_slot): Move from data-streamer.h
2784 (struct string_slot_hasher): New.
2785 (htab_t output_block::string_hash_table):
2786 Change type to hash_table. Update dependent calls and types.
2788 * lto-streamer-in.c (freeing_string_slot_hasher): New.
2789 (htab_t file_name_hash_table):
2790 Change type to hash_table. Update dependent calls and types.
2792 * lto-streamer-out.c: Update output_block::string_hash_table dependent
2795 * lto-streamer.c (htab_t tree_htab):
2796 Change type to hash_table. Update dependent calls and types.
2798 * omp-low.c: Include gimplify-ctx.h.
2800 * passes.c (htab_t name_to_pass_map):
2801 Change type to hash_table. Update dependent calls and types.
2802 (pass_traverse): Rename to passes_pass_traverse.
2804 * plugin.c (htab_t event_tab):
2805 Change type to hash_table. Update dependent calls and types.
2807 * postreload-gcse.c (htab_t expr_table):
2808 Change type to hash_table. Update dependent calls and types.
2809 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2811 * sese.c (debug_rename_map_1): Make extern.
2812 (htab_t copy_bb_and_scalar_dependences::rename_map):
2813 Change type to hash_table. Update dependent calls and types.
2815 * sese.h (extern debug_rename_map): Move to .c file.
2817 * store-motion.c (htab_t store_motion_mems_table):
2818 Change type to hash_table. Update dependent calls and types.
2820 * trans-mem.c (htab_t tm_new_mem_hash):
2821 Change type to hash_table. Update dependent calls and types.
2823 * tree-browser.c (htab_t TB_up_ht):
2824 Change type to hash_table. Update dependent calls and types.
2826 * tree-cfg.c (htab_t discriminator_per_locus):
2827 Change type to hash_table. Update dependent calls and types.
2829 * tree-complex.c: Include tree-hasher.h
2830 (htab_t complex_variable_components):
2831 Change type to hash_table. Update dependent calls and types.
2833 * tree-eh.c (htab_t finally_tree):
2834 Change type to hash_table. Update dependent calls and types.
2836 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2837 struct int_tree_hasher.
2838 (extern int_tree_map_eq): Likewise.
2839 (uid_decl_map_hash): Removed.
2840 (extern decl_tree_map_eq): Likewise.
2842 * tree-hasher.h: New.
2843 (struct int_tree_hasher): New.
2844 (typedef int_tree_htab_type): New.
2846 * tree-inline.c: Include gimplify-ctx.h.
2848 * tree-mudflap.c: Include gimplify-ctx.h.
2850 * tree-parloops.c: Include tree-hasher.h.
2851 (htab_t eliminate_local_variables_stmt::decl_address):
2852 Change type to hash_table. Update dependent calls and types.
2853 (htab_t separate_decls_in_region::decl_copies): Likewise.
2855 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2856 Change type to hash_table. Update dependent calls and types.
2858 * tree-sra.c (candidates):
2859 Change type to hash_table. Update dependent calls and types.
2861 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2863 (int_tree_map_hash): Likewise.
2865 * tree-ssa-dom.c (htab_t avail_exprs):
2866 Change type to hash_table. Update dependent calls and types.
2868 * tree-ssa-live.c (var_map_base_init::tree_to_index):
2869 Change type to hash_table. Update dependent calls and types.
2871 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2872 Change type to hash_table. Update dependent calls and types.
2874 * tree-ssa-phiopt.c (seen_ssa_names):
2875 Change type to hash_table. Update dependent calls and types.
2877 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2878 Change type to hash_table. Update dependent calls and types.
2880 * tree-ssa-uncprop.c (equiv):
2881 Change type to hash_table. Update dependent calls and types.
2883 2013-04-25 Jakub Jelinek <jakub@redhat.com>
2885 PR rtl-optimization/57003
2886 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2887 call note_stores with kill_clobbered_value callback again after
2888 killing regs_invalidated_by_call.
2890 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2892 * config/aarch64/aarch64-simd.md
2893 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
2894 (aarch64_simd_bsl<mode>): Likewise.
2895 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
2897 2013-04-25 Marek Polacek <polacek@redhat.com>
2899 PR tree-optimization/57066
2900 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
2902 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
2904 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
2906 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2908 * config/aarch64/aarch64-builtins.c
2909 (aarch64_fold_builtin): New.
2910 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
2911 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
2912 * config/aarch64/aarch64-simd-builtins.def (abs): New.
2913 * config/aarch64/arm_neon.h
2914 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
2916 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2917 Tejas Belagod <tejas.belagod@arm.com>
2919 * config/aarch64/aarch64-builtins.c
2920 (aarch64_gimple_fold_builtin): New.
2921 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
2922 * config/aarch64/aarch64-simd-builtins.def (addv): New.
2923 * config/aarch64/aarch64-simd.md (addpv4sf): New.
2925 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2927 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2929 * config/aarch64/aarch64.md
2930 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
2932 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2934 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
2935 (*ngcsi_uxtw): New pattern.
2937 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2938 Julian Brown <julian@codesourcery.com>
2940 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
2941 (TB_DREG): Add T_V4HF.
2942 (v4hf_UP): New macro.
2943 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2944 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2945 Handle initialisation of V4HF. Adjust initialisation of reinterpret
2947 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2948 (arm_vector_mode_supported_p): Handle V4HF.
2949 (arm_mangle_map): Handle V4HFmode.
2950 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
2951 * config/arm/arm_neon_builtins.def: Add entries for
2952 vcvtv4hfv4sf, vcvtv4sfv4hf.
2953 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2954 (neon_vcvtv4hfv4sf): Likewise.
2955 * config/arm/neon-gen.ml: Handle half-precision floating point
2957 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2958 * config/arm/arm_neon.h: Regenerate.
2959 * config/arm/neon.ml (type elts): Add F16.
2960 (type vectype): Add T_float16x4, T_floatHF.
2961 (type vecmode): Add V4HF.
2962 (type features): Add Requires_FP_bit feature.
2963 (elt_width): Handle F16.
2964 (elt_class): Likewise.
2965 (elt_of_class_width): Likewise.
2966 (mode_of_elt): Refactor.
2967 (type_for_elt): Handle F16, fix error messages.
2968 (vectype_size): Handle T_float16x4.
2969 (vcvt_sh): New function.
2970 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2971 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2972 (string_of_mode): Handle V4HF.
2973 * doc/arm-neon-intrinsics.texi: Regenerate.
2975 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2977 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2978 format specifier in 'X' case.
2980 2013-04-25 Alan Modra <amodra@gmail.com>
2983 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2984 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2985 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2986 Repeat for many other rotate/shift and mask patterns using subregs.
2987 Name lshiftrt insns.
2988 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2989 on WORDS_BIG_ENDIAN.
2991 2013-04-25 Alan Modra <amodra@gmail.com>
2993 * config.gcc: Support little-endian powerpc-linux targets.
2994 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2995 (LINK_OS_LINUX_SPEC): Define.
2996 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2997 Preserve MASK_LITTLE_ENDIAN.
2998 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2999 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
3000 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
3001 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
3002 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
3003 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
3004 Correct fp word order for little-endian. Don't shift toc entries
3005 smaller than a word for little-endian.
3006 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
3007 (bswapdi2 splits): Correct low-part subreg for little-endian.
3008 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3009 low/high where such is correct only for be.
3010 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3011 little-endian for -mcall-aixdesc.
3013 2013-04-25 Alan Modra <amodra@gmail.com>
3015 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3016 replace_equiv_address_nv.
3018 2013-04-25 Alan Modra <amodra@gmail.com>
3020 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3022 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3025 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3026 * rtl.h (struct rtx_def): ...
3028 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3030 PR rtl-optimizations/57046
3031 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3032 for multi-reg splits.
3034 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3036 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3038 2013-04-24 Sterling Augustine <saugustine@google.com>
3040 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3041 (comp_dir_string, debug_str_dwo_section): New.
3042 (DEBUG_STR_DWO_SECTION): Rename to ...
3043 (DEBUG_DWO_STR_SECTION): ... this.
3044 (DEBUG_NORM_STR_SECTION): Delete.
3045 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3046 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3047 (find_AT_string): Move most logic to ...
3048 (find_AT_string_in_table): ... here. New.
3049 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3050 add_skeleton_AT_string. Delete logic.
3051 (output_skeleton_debug_sections): Remove call to
3052 add_top_level_skeleton_die_attrs.
3053 (add_comp_dir_attribute): Move logic to comp_dir_string.
3054 (dwarf2out_init): Initialize debug_str_dwo_section.
3055 (output_indirect_string): Call find_string_form.
3056 (output_indirect_strings): Rewrite.
3057 (prune_unused_types): Empty skeleton_debug_str_hash.
3058 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3059 (dwarf2out_finish): Call output_indirect_strings.
3061 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3063 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3065 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3067 * rtl.h (struct rtx_def): Add comment for field jump.
3068 (LRA_SUBREG_P): New macro.
3069 * recog.c (register_operand): Check LRA_SUBREG_P.
3070 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3072 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3073 (lra_final_code_change): Skip subreg change for operators.
3074 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3075 if there are no operand changes.
3076 * lra-constraints.c (curr_insn_set): New.
3077 (match_reload): Set LRA_SUBREG_P.
3078 (emit_spill_move): Ditto.
3079 (check_and_process_move): Use curr_insn_set. Process only single
3080 set insns. Don't initialize sec_mem_p and change_p.
3081 (simplify_operand_subreg): Use LRA_SUBREG_P.
3082 (reg_in_class_p): New function.
3083 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3084 of #ifdef. Add code to remove cycling.
3085 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3086 non-null disp. Reload inner instead of disp when base and index
3087 are null. Try to put lo_sum into register.
3088 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3089 (check_and_process_move): Move code for move cost check to
3090 simple_move_p. Remove equiv_substitution.
3091 (simple_move_p): New function.
3092 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3093 curr_insn_set. Call check_and_process_move only for single set
3094 insns. Use the new function. Move call of check_and_process_move
3095 after operand equiv substitution and address process.
3097 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3099 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3100 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3101 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3103 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3105 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3107 2013-04-24 Marek Polacek <polacek@redhat.com>
3109 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3110 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3111 (select_loops_exit_conditions): Likewise.
3112 (number_of_iterations_for_all_loops): Likewise.
3113 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3114 (scev_analysis): Likewise.
3116 2013-04-02 Catherine Moore <clm@codesourcery.com>
3117 Chao-ying Fu <fu@mips.com>
3119 * config/mips/micromips.md (jraddiusp): New pattern.
3120 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3121 instruction if possible.
3123 2013-04-24 Alan Modra <amodra@gmail.com>
3125 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3127 2013-04-24 Julian Brown <julian@codesourcery.com>
3128 Chung-Lin Tang <cltang@codesourcery.com>
3130 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
3131 dependency behavior in enumeration type DIE generation. Add TODO note
3132 to comments about future DW_FORM_sdata/udata re-work of related code.
3134 2013-04-23 Lawrence Crowl <crowl@google.com>
3136 * Makefile.in: Update as needed below.
3138 * hash-table.h (class hash_table):
3139 Correct many methods with parameter types compare_type to the correct
3140 value_type. (Correct code was unlikely to notice the change.)
3141 (hash_table::elements_with_deleted) New.
3142 (class hashtable::iterator): New.
3143 (hashtable::begin()): New.
3144 (hashtable::end()): New.
3145 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3147 * statistics.c (statistics_hashes):
3148 Change type to hash_table. Update dependent calls and types.
3150 * tree-into-ssa.c (var_infos):
3151 Change type to hash_table. Update dependent calls and types.
3153 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3154 Change type to hash_table. Update dependent calls and types.
3156 * tree-ssa-loop-im.c (struct mem_ref.refs):
3157 Change type to hash_table. Update dependent calls and types.
3159 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3160 Change type to hash_table. Update dependent calls and types.
3162 * tree-ssa-sccvn.c (vn_tables_s::nary):
3163 Change type to hash_table. Update dependent calls and types.
3164 (vn_tables_s::phis): Likewise.
3165 (vn_tables_s::references): Likewise.
3167 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3168 (vn_reference_eq): Update parameter and return types.
3170 * tree-ssa-structalias.c (pointer_equiv_class_table):
3171 Change type to hash_table. Update dependent calls and types.
3172 (location_equiv_class_table): Likewise.
3174 * tree-vect-data-refs.c: Consequential changes for making
3175 peeling a hash_table.
3177 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3178 (destroy_loop_vec_info): Dependent hash_table update.
3180 * tree-vectorizer.h (peeling_htab):
3181 Change type to hash_table. Update dependent calls and types.
3183 2013-04-23 Shiva Chen <shiva0217@gmail.com>
3185 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3186 to check the register content is equal or not.
3187 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3188 to assign register content record.
3189 * lra-eliminations.c (update_reg_eliminate): Use
3190 lra_update_reg_val_offset to update register content offset.
3191 * lra-int.h (struct lra_reg): Add offset member.
3192 (lra_reg_val_equal_p): New static inline function.
3193 (lra_update_reg_val_offset): New static inline function.
3194 (lra_assign_reg_val): New static inline function.
3195 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
3196 to assign register content record.
3197 (initialize_lra_reg_info_element): Initial offset to zero.
3199 2013-04-23 Catherine Moore <clm@codesourcery.com>
3201 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
3202 operands. Record compression.
3204 2013-04-23 Xinliang David Li <davidxl@google.com>
3206 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3208 2013-04-23 Richard Biener <rguenther@suse.de>
3211 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3212 parameter, only add abnormal goto edges from the copied body
3213 if the call could perform abnormal gotos.
3214 (copy_cfg_body): Adjust.
3216 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3218 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
3220 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
3222 * coretypes.h (gimple_stmt_iterator): Add struct to make
3225 2013-04-23 Richard Biener <rguenther@suse.de>
3227 PR tree-optimization/57026
3228 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
3229 from SSA names occuring in abnormal PHI nodes.
3231 2013-04-22 Andi Kleen <ak@linux.intel.com>
3233 * lto/lto.c (print_lto_report_1): Fix LTO report names.
3235 2013-04-22 Andi Kleen <ak@linux.intel.com>
3237 * lto/lto.c (print_lto_report_1): Declare early.
3238 (read_cgraph_and_symbols): Call print_lto_report_1 early.
3240 2013-04-22 Andi Kleen <ak@linux.intel.com>
3242 * common.opt (-flto-report-wpa): Add.
3243 * doc/invoke.texi (-flto-report-wpa): Add.
3244 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
3247 2013-04-22 Xinliang David Li <davidxl@google.com>
3249 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
3250 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
3251 * Makefile.in: New dependency
3253 David Daney <ddaney.cavm@gmail.com>
3255 * configure.ac (gcc_cv_as_micromips_support): Use the
3256 --fatal-warnings option.
3257 * configure: Regenerate.
3259 2013-04-22 Marek Polacek <polacek@redhat.com>
3262 * tsan.c (instrument_expr): Don't instrument expression
3263 in case its size is zero.
3265 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
3269 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3271 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3273 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3275 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3276 (gimple_stmt_iterator): New typedef.
3277 * gimple.h (gimple_stmt_iterator): Rename to...
3278 (gimple_stmt_iterator_d): ... This.
3279 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3280 trees be valid for GIMPLE and GENERIC.
3281 (TARGET_GIMPLE_FOLD_BUILTIN): New.
3282 * gimple-fold.c (gimple_fold_call): Call target hook
3283 gimple_fold_builtin.
3284 * hooks.c (hook_bool_gsiptr_false): New.
3285 * hooks.h (hook_bool_gsiptr_false): New.
3286 * target.def (fold_stmt): New.
3287 * doc/tm.texi: Regenerate.
3289 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3292 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3293 a set sp if no stack realignment.
3295 2013-04-22 Nick Clifton <nickc@redhat.com>
3297 * config.gcc (tilegx-linux): Extend extra_objs rather than
3299 (tilepro-linux): Likewise.
3301 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3303 * config/aarch64/aarch64-builtins.c
3305 (CF0, CF1, CF2, CF3, CF4, CF10): New.
3306 (VAR<1-12>): Add MAP parameter.
3307 (BUILTIN_*): Likewise.
3308 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3309 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3310 (aarch64_ushl_n<mode>): Likewise.
3311 (aarch64_sshr_n<mode>): Likewise.
3312 (aarch64_ushr_n<mode>): Likewise.
3313 (aarch64_<maxmin><mode>): Likewise.
3314 (aarch64_sqrt<mode>): Likewise.
3315 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3316 (vshr<q>_n_*): Likewise.
3318 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3320 * config/aarch64/aarch64-builtins.c
3321 (aarch64_simd_builtin_type_mode): Handle SF types.
3323 (BUILTIN_GPF): Define.
3324 (aarch64_init_simd_builtins): Handle SF types.
3325 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3328 * config/aarch64/aarch64-simd.md
3329 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3330 (aarch64_frecpe<mode>): New.
3331 (aarch64_frecps<mode>): Likewise.
3332 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3333 (v8type): Add frecp<esx>.
3334 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3335 (aarch64_frecps<mode>): Likewise.
3336 * config/aarch64/iterators.md (FRECP): New.
3337 (frecp_suffix): Likewise.
3338 * config/aarch64/arm_neon.h
3339 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3341 2013-04-22 Christian Bruel <christian.bruel@st.com>
3344 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3345 (REG_CLASS_NAMES): Idem.
3346 (REG_CLASS_CONTENTS): Idem.
3347 (REGCLASS_HAS_FP_REG): Idem.
3348 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3349 (sh_conditional_register_usage): Idem.
3351 2013-04-21 Jeff Law <law@redhat.com>
3353 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3354 (ssa_forward_propagate_and_combine): Use it.
3356 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3358 * lra.c: Update the flow chart diagram.
3360 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3362 PR rtl-optimization/56847
3363 * lra-constraints.c (process_alt_operands): Discourage alternative
3364 with non-matche doffsettable memory constraint fro memory with
3367 2013-04-19 Richard Biener <rguenther@suse.de>
3369 PR tree-optimization/56982
3370 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3372 * gimplify.c (gimplify_call_expr): Notice special calls.
3373 (gimplify_modify_expr): Likewise.
3374 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3375 abnormal control flow receivers.
3376 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3377 in the same way as cfun->has_nonlocal_labels.
3378 (gimple_purge_dead_abnormal_call_edges): Likewise.
3379 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3380 receivers start a basic-block.
3382 2013-04-19 Richard Biener <rguenther@suse.de>
3384 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3386 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
3387 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3388 (SLP_TREE_LOAD_PERMUTATION): Add.
3389 (vect_transform_slp_perm_load): Adjust prototype.
3390 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3391 (vect_free_slp_instance): Likewise.
3392 (vect_create_new_slp_node): Likewise.
3393 (vect_supported_slp_permutation_p): Remove.
3394 (vect_slp_rearrange_stmts): Adjust.
3395 (vect_supported_load_permutation_p): Likewise. Inline
3396 vect_supported_slp_permutation_p here.
3397 (vect_analyze_slp_instance): Compute load permutations per
3398 slp node instead of per instance.
3399 (vect_get_slp_defs): Adjust.
3400 (vect_transform_slp_perm_load): Likewise.
3401 (vect_schedule_slp_instance): Remove redundant code.
3402 (vect_schedule_slp): Remove hack for PR56270, add it ...
3403 * tree-vect-stmts.c (vectorizable_load): ... here, do not
3404 CSE loads for SLP. Adjust.
3406 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3408 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3409 spelling in two comments.
3411 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3414 * config/arm/arm.c (load_multiple_sequence): Require SP
3415 as base register for loads if SP is in the register list.
3417 2013-04-19 Martin Jambor <mjambor@suse.cz>
3419 PR tree-optimization/56718
3420 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3421 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3422 and made public. Adjusted all callers.
3423 (ipa_intraprocedural_devirtualization): New function.
3424 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3425 (ipa_intraprocedural_devirtualization): Likewise.
3426 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3428 2013-04-19 Richard Biener <rguenther@suse.de>
3430 PR tree-optimization/57000
3431 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3433 2013-04-19 Terry Guo <terry.guo@arm.com>
3435 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3437 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
3438 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3439 (cortex_m4_fmacs): Use new reservations.
3440 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3442 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3444 PR rtl-optimization/56999
3445 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3447 (lra_coalesce): Remove split_origin_bitmap and related code.
3448 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3449 ranges if necessary.
3451 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
3453 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3455 (ix86_expand_call): Remove clobbered_registers array and use
3456 x86_64_ms_sysv_extra_clobbered_registers instead.
3457 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3459 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3461 * config/i386/i386.md (*call_rex64_ms_sysv): Use
3462 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
3463 (*call_value_rex64_ms_sysv): Ditto.
3465 2013-04-18 Cary Coutant <ccoutant@google.com>
3467 * dwarf2out.c (output_pubnames): Check die_perennial_p of
3468 parent instead of die_mark.
3470 2013-04-18 Diego Novillo <dnovillo@google.com>
3472 * gimple.c (create_gimple_tmp): New.
3473 (get_expr_type): New.
3474 (build_assign): New.
3475 (build_type_cast): New.
3476 * gimple.h (enum ssa_mode): Define.
3477 (gimple_seq_set_location): New.
3478 * asan.c (build_check_stmt): Change some gimple_build_* calls
3479 to use build_assign and build_type_cast.
3481 2013-04-18 Richard Biener <rguenther@suse.de>
3483 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3484 handle negative step. Remove redundant checks.
3485 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3486 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3487 for negative step and grouped loads fail to vectorize.
3489 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3491 * emit-rtl.c (reset_insn_used_flags): New function.
3492 (reset_all_used_flags): Use it.
3493 (verify_insn_sharing): New function.
3494 (verify_rtl_sharing): Fix verification for SEQUENCEs.
3496 2013-04-18 Jakub Jelinek <jakub@redhat.com>
3498 PR tree-optimization/56984
3499 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3500 and (x >> M) >= N don't register any assertion if N << M is the
3503 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3505 * lower-subreg.c (resolve_simple_move): If called self-recursive,
3506 do not delete_insn insns that have not yet been emitted, only
3507 unlink them with remove_insn.
3508 * df-scan.c (df_insn_delete): Revert r197492.
3510 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
3512 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3513 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3515 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
3517 * config/arm/arm.md (movsicc_insn): Convert define_insn into
3518 define_insn_and_split.
3519 (and_scc,ior_scc,negscc): Likewise.
3520 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3522 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
3524 * config/arm/arm.c (use_return_insn): Return 0 for targets that
3525 can benefit from using a sequence of LDRD instructions in epilogue
3526 instead of a single LDM instruction.
3528 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3531 * doc/extend.texi: Fix typo.
3533 2013-04-17 Richard Biener <rguenther@suse.de>
3535 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3536 (vect_build_slp_tree): ... here.
3537 (vect_build_slp_tree_1): Compute which stmts of the SLP group
3538 match. Remove special-casing of mismatched complex loads.
3539 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3540 re-try the match with swapped commutative operands.
3541 (vect_supported_load_permutation_p): Remove special-casing of
3542 mismatched complex loads.
3543 (vect_analyze_slp_instance): Adjust.
3545 2013-04-17 Richard Biener <rguenther@suse.de>
3547 PR rtl-optimization/56921
3548 * cfgloop.h (struct loop): Add simple_loop_desc member.
3549 (struct niter_desc): Mark with GTY(()).
3550 (simple_loop_desc): Do not use aux field but simple_loop_desc.
3551 * loop-iv.c (get_simple_loop_desc): Likewise.
3552 (free_simple_loop_desc): Likewise.
3555 2013-04-16 Richard Biener <rguenther@suse.de>
3557 PR rtl-optimization/56921
3558 * loop-init.c (pass_rtl_move_loop_invariants): Add
3559 TODO_do_not_ggc_collect to todo_flags_finish.
3560 (pass_rtl_unswitch): Same.
3561 (pass_rtl_unroll_and_peel_loops): Same.
3562 (pass_rtl_doloop): Same.
3564 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
3566 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3567 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3568 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3570 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3571 * tree-streamer.c (record_common_node): Adjust reference in comment.
3573 2013-04-17 Terry Guo <terry.guo@arm.com>
3575 * config/arm/cortex-m4.md: Add a new bypass.
3577 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3579 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3581 (*subs_<optab><mode>_multp2): New pattern.
3582 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3583 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3585 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3587 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3588 (*subs_mul_imm_<mode>): New pattern.
3590 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
3593 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3594 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3595 (vsx_movti_32bit): Change j->wa to O->wa.
3597 2013-04-16 Richard Biener <rguenther@suse.de>
3599 PR rtl-optimization/56921
3600 * loop-init.c (pass_rtl_move_loop_invariants): Add
3601 TODO_do_not_ggc_collect to todo_flags_finish.
3602 (pass_rtl_unswitch): Same.
3603 (pass_rtl_unroll_and_peel_loops): Same.
3604 (pass_rtl_doloop): Same.
3606 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
3608 * config/arm/arm.c (emit_multi_reg_push): New declaration
3609 for an existing function.
3610 (arm_emit_strd_push): New function.
3611 (arm_expand_prologue): Used here.
3612 (arm_emit_ldrd_pop): New function.
3613 (arm_expand_epilogue): Used here.
3614 (arm_get_frame_offsets): Update condition.
3615 (arm_emit_multi_reg_pop): Add a special case for load of a single
3616 register with writeback.
3618 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
3620 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3623 2013-04-16 Richard Biener <rguenther@suse.de>
3625 PR tree-optimization/56756
3626 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3627 (first_mem_ref_loc): New.
3628 (execute_sm): Place the load temporarily before a previous
3629 access instead of in the latch edge to ensure its SSA dependencies
3630 are defined at points dominating the load.
3632 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3634 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3635 correct fix by moving header and footer insn to the footer of
3636 the merged basic block. Clear BB_END of the merged-away block.
3639 * emit-rtl.c (make_note_raw): New function.
3640 (link_insn_into_chain): New static inline function.
3642 (add_insn_before, add_insn_after): Factor insn chain linking code...
3643 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3644 using link_insn_into_chain.
3645 (note_outside_basic_block_p): New helper function for emit_note_after
3646 and emit_note_before.
3647 (emit_note_after): Use nobb variant of add_insn_after if the note
3648 should not be contained in a basic block.
3649 (emit_note_before): Use nobb variant of add_insn_before if the note
3650 should not be contained in a basic block.
3651 (emit_note_copy): Use make_note_raw.
3652 (emit_note): Likewise.
3653 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3654 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3655 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3656 the moved barrier the tail of the basic block it follows.
3657 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3659 2013-04-15 Jakub Jelinek <jakub@redhat.com>
3661 PR tree-optimization/56962
3662 * gimple-ssa-strength-reduction.c (record_increment): Only set
3663 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3664 either rhs1 or rhs2 is equal to c->base_expr.
3666 2013-04-15 Richard Biener <rguenther@suse.de>
3668 PR tree-optimization/56933
3669 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3671 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3672 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3673 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3674 dependence check ...
3675 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3677 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3678 GROUP_READ_WRITE_DEPENDENCE.
3680 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3682 * emit-rtl.c (reset_all_used_flags): New function.
3683 (verify_rtl_sharing): Call reset_all_used_flags before and after
3684 performing the checks.
3686 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3688 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3689 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3690 * config/arm/constraints.md (De): New constraint.
3691 * config/arm/neon.md (anddi3_neon): Delete.
3692 (neon_vand<mode>): Expand to standard anddi3 pattern.
3693 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3694 Move earlier in the file.
3695 (neon_inv_logic_op2): Likewise.
3696 (arm_anddi_operand_neon): New predicate.
3698 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3700 * configure.ac (gcc_cv_ld_as_needed): Set
3701 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3702 Use -z ignore, -z record on *-*-solaris2*.
3703 (HAVE_LD_AS_NEEDED): Update comment.
3704 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3705 * configure: Regenerate.
3706 * config.in: Regenerate.
3707 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3708 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3709 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3710 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3711 equivalents. Fix markup.
3712 * doc/tm.texi: Regenerate.
3714 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3716 * config/i386/i386.opt: New option mstack-protector-guard=.
3717 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3718 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3719 TARGET_SSP_TLS_GUARD.
3720 * config/i386/i386.c (ix86_option_override_internal): Set
3721 ix86_stack_protector_guard.
3722 * config/i386/i386.md (stack_protect_set): Enable for
3723 TARGET_SSP_TLS_GUARD only.
3724 (stack_protect_set_<mode>): Ditto.
3725 (stack_protect_test): Ditto.
3726 (stack_protect_test_<mode>): Ditto.
3727 * doc/invoke.texi (i386 Option): Document.
3729 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3732 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3733 (S_MODES): Set H_MODE bit.
3734 (SF_MODES): Set only S_MODE and SF_MODE bits.
3735 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3736 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3737 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3738 <MODE_FLOAT>: Likewise.
3740 2013-04-15 Joey Ye <joey.ye@arm.com>
3742 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3744 2013-04-15 Joey Ye <joey.ye@arm.com>
3746 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3748 (thumb_far_jump_used_p): Count instruction size and set
3751 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
3753 * reorg.c (fill_simple_delay_slots): Reindent block of code.
3754 * resource.c (mark_target_live_regs): Reformat conditional block.
3756 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3758 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3759 notes, they are emitted only just before final.
3760 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3762 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3764 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3765 * cfgrtl.c (delete_insn): Call it here instead.
3766 * lra-spills.c (lra_final_code_change): Use delete_insn.
3767 * haifa-sched.c (sched_remove_insn): Likewise.
3768 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3769 returning to the nop pool.
3770 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3771 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
3773 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3775 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3776 * doc/tm.texi: Regenerated.
3778 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
3780 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3783 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3785 * df-core.c (df_find_def): Compare register numbers.
3786 (df_find_use): Likewise.
3788 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
3791 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3792 lra_in_progress for return.
3794 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3796 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3797 define_insn into define_insn_and_split and emit movsicc patterns.
3799 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3801 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3803 2013-04-12 Richard Biener <rguenther@suse.de>
3805 * tree-pass.h (TODO_do_not_ggc_collect): New.
3806 * passes.c (execute_one_ipa_transform_pass): Honor
3807 TODO_do_not_ggc_collect.
3808 (execute_one_pass): Likewise.
3811 2013-04-10 Richard Biener <rguenther@suse.de>
3813 * passes.c (init_optimization_passes): Remove reload pass.
3814 * ira.c (do_reload): Merge into ...
3816 (rest_of_handle_reload): Remove.
3817 (pass_reload): Likewise.
3818 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3819 of reload for vzeroupper pass placement.
3821 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3823 PR tree-optimization/56918
3824 PR tree-optimization/56920
3825 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3826 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
3827 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
3828 use wide_mul_with_sign method.
3830 2013-04-12 Richard Biener <rguenther@suse.de>
3832 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3833 not be considered a gimple constant.
3835 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
3837 * fold-const.c (const_binop): Handle vector shifts by a scalar.
3838 (fold_binary_loc): Call const_binop also for mixed vector-scalar
3841 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
3842 Jakub Jelinek <jakub@redhat.com>
3844 * opts.c: Include diagnostic-color.h.
3845 (common_handle_option): Handle OPT_fdiagnostics_color_.
3846 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3847 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3848 (diagnostic-color.o): New.
3849 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3850 (diagnostic_color_rule): New enum.
3851 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3852 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3853 the location string.
3854 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3855 either NULL, or color kind.
3856 * diagnostic-color.c: New file.
3857 * diagnostic-color.h: New file.
3858 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3860 * doc/invoke.texi (-fdiagnostics-color): Document.
3861 * pretty-print.h (pp_show_color): Define.
3862 (struct pretty_print_info): Add show_color field.
3863 * diagnostic.c: Include diagnostic-color.h.
3864 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3865 macros. Colorize error:, warning: etc. strings and also the location
3867 (diagnostic_show_locus): Colorize the caret line.
3868 * pretty-print.c: Include diagnostic-color.h.
3869 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
3870 inside of %< %> quotes or quoted through q format modifier.
3872 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3874 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
3876 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3878 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3880 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3883 2013-04-11 Marek Polacek <polacek@redhat.com>
3885 PR tree-optimization/48184
3886 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
3888 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3890 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
3891 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3892 (skip_simple_arithmetic): Tidy up.
3893 * tree.h (skip_simple_constant_arithmetic): Declare.
3895 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3897 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
3899 2013-04-11 Richard Biener <rguenther@suse.de>
3901 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3902 generate vector constants.
3904 2013-04-11 Richard Biener <rguenther@suse.de>
3906 PR tree-optimization/56878
3907 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
3908 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
3910 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3911 Prefer to align the DR with the most invariant base address.
3913 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3915 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
3918 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
3920 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3921 floating-point vector comparisons against 0.
3923 2013-04-11 Jakub Jelinek <jakub@redhat.com>
3925 PR tree-optimization/56899
3926 * fold-const.c (extract_muldiv_1): Apply distributive law
3927 only if TYPE_OVERFLOW_WRAPS (ctype).
3929 2013-04-11 Bin Cheng <bin.cheng@arm.com>
3932 * ira-costs.c (scan_one_insn): Check whether the source rtx of
3933 loading has side effect.
3935 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
3937 * config/sparc/sparc.c: Include tree-pass.h.
3938 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
3939 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
3940 head of file. Change return type. Split off gate function.
3941 (sparc_gate_work_around_errata): New function.
3942 (pass_work_around_errata): New pass definition.
3943 (insert_pass_work_around_errata) New pass insert definition to
3944 insert pass_work_around_errata just after delayed-branch scheduling.
3945 (sparc_option_override): Insert the pass.
3946 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
3948 2013-04-10 David S. Miller <davem@davemloft.net>
3950 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3951 or -mcpu=hypersparc.
3953 * target.def (cstore_mode): New hook.
3954 * target.h: Include insn-codes.h
3955 * targhooks.c: Likewise.
3956 (default_cstore_mode): New function.
3957 * targhooks.h: Declare it.
3958 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3959 * doc/tm.texi: Rebuild.
3960 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3961 target hook, rather than inspecting the insn_data.
3962 * config/sparc/sparc.c (sparc_cstore_mode): New function.
3963 (TARGET_CSTORE_MODE): Redefine.
3964 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3966 * config/sparc/predicates.md (cstore_result_operand): New special
3968 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3969 Use it for operand 0.
3970 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3971 (*snesi_special): Likewise.
3972 (*snesi_zero): Likewise.
3973 (*seqsi_zero): Likewise.
3974 (*sltu_insn): Likewise.
3975 (*sgeu_insn): Likewise.
3976 (*seqdi_special): Make operand 0 and comparison operation be of
3978 (*snedi_special): Likewise.
3979 (*snedi_special_vis3): Likewise.
3980 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3981 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3982 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3983 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3984 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3985 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3986 (*sltu_extend_sp64): Likewise.
3987 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3988 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3989 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3990 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3991 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3993 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
3995 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3996 (aarch64_start_file): Use the new function.
3998 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3999 Jason Merrill <jason@redhat.com>
4001 * common.opt: Add -gdwarf.
4002 * opts.c (common_handle_option): Handle it.
4003 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
4005 2013-04-10 Richard Biener <rguenther@suse.de>
4007 * passes.c (execute_todo): Do not call ggc_collect conditional here.
4008 (execute_one_ipa_transform_pass): But unconditionally here.
4009 (execute_one_pass): And here.
4010 (init_optimization_passes): Remove reload pass.
4011 * tree-pass.h (TODO_ggc_collect): Remove.
4012 (pass_reload): Likewise.
4013 * ira.c (do_reload): Merge into ...
4015 (rest_of_handle_reload): Remove.
4016 (pass_reload): Likewise.
4017 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4018 of reload for vzeroupper pass placement.
4019 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4020 and todo_flags_finish of all passes.
4022 2013-04-10 Richard Biener <rguenther@suse.de>
4024 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4025 first_const_oprnd field, rename first_def_type to first_op_type.
4026 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4027 (vect_get_and_check_slp_defs): Always use the type of the
4028 operand. Allow mixed vect_external_def, vect_constant_def types.
4029 (vect_get_constant_vectors): Handle mixed vect_external_def,
4030 vect_constant_def types.
4032 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4034 PR tree-optimization/55524
4035 * tree-ssa-math-opts.c
4036 (convert_mult_to_fma): Don't use an fms construct
4037 when we don't have an fms operation, but fnma, and it looks
4038 likely that we'll be able to use the latter.
4040 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4042 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4044 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4045 inline fail caused by overwritable functions.
4047 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4049 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4050 unnecessary bits in the constant power of two case.
4052 2013-04-10 Richard Biener <rguenther@suse.de>
4054 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4055 broken code swapping operands.
4056 (vect_build_slp_tree): Do not compute load permutations here.
4057 (vect_analyze_slp_instance): Compute load permutations here,
4058 after building the SLP tree.
4060 2013-04-09 Christian Bruel <christian.bruel@st.com>
4062 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4063 of next/prev_real_insn.
4065 2013-04-09 Jan Hubicka <jh@suse.cz>
4067 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4068 Drop aliased parameter.
4069 (function_and_variable_visibility): Do not handle alias pairs.
4070 * cgraph.c (varpool_externally_visible_p): Update prototype.
4071 * varpool.c (varpool_add_new_variable): Update.
4073 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4075 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4077 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4079 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4081 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4083 2013-04-09 Marek Polacek <polacek@redhat.com>
4085 PR tree-optimization/48762
4086 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
4088 2013-04-09 Richard Biener <rguenther@suse.de>
4090 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4092 (vect_build_slp_tree): Likewise.
4093 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4094 calculating the cost of a SLP instance.
4095 (vect_analyze_slp_instance): Use it from here, after building
4098 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4101 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4102 expand_omp_for_static_chunk): Use simple_p = true in
4103 force_gimple_operand_gsi calls when assigning to addressable decls.
4105 2013-04-09 Jeff Law <law@redhat.com>
4107 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4108 when the boolean was created by converting a wider object which
4109 had a boolean range.
4111 2013-04-09 Richard Biener <rguenther@suse.de>
4113 * tree-vectorizer.h (slp_void_p): Remove.
4114 (slp_tree): Typedef before _slp_tree declaration.
4115 (struct _slp_tree): Use a vector of slp_tree as children.
4116 (vect_get_place_in_interleaving_chain): Remove.
4117 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4119 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4121 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4122 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4123 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4124 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4125 Use slp_node instead of slp_void_p and adjust.
4127 2013-04-09 Richard Biener <rguenther@suse.de>
4129 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4130 work that is not necessary.
4132 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4134 PR tree-optimization/56854
4135 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4136 forward into clobber stmts if it would change MEM_REF lhs into
4139 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4141 * tree.c (type_hash_lookup, type_hash_add): Make static.
4142 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4144 2013-04-09 Richard Biener <rguenther@suse.de>
4146 * tree.h (unsave_expr_now): Remove.
4147 * tree-inline.c (mark_local_for_remap_r): Remove.
4148 (unsave_expr_1): Likewise.
4149 (unsave_r): Likewise.
4150 (unsave_expr_now): Likewise.
4151 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4152 (propagate_tree_value): Likewise.
4154 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4156 * doc/rtl.texi (sequence): Rewrite documentation to match the
4157 current use of SEQUENCE rtl objects.
4158 * rtl.def (SEQUENCE): Likewise.
4160 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4161 Update documentation.
4162 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4163 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4165 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4167 2013-04-08 Teresa Johnson <tejohnson@google.com>
4169 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4170 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
4172 (estimate_edge_size_and_time): Add comment to suggest using rounding
4174 (estimate_node_size_and_time): Ditto.
4175 (remap_edge_change_prob): Use helper rounding divide methods.
4176 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4177 (gimple_mod_pow2_value_transform): Ditto.
4178 (gimple_mod_subtract_transform): Ditto.
4179 (gimple_ic_transform): Ditto.
4180 (gimple_stringops_transform): Ditto.
4181 * stmt.c (conditional_probability): Ditto.
4182 (emit_case_dispatch_table): Ditto.
4183 * lto-cgraph.c (merge_profile_summaries): Ditto.
4184 * tree-optimize.c (execute_fixup_cfg): Ditto.
4185 * cfgcleanup.c (try_forward_edges): Ditto.
4186 * cfgloopmanip.c (scale_loop_profile): Ditto.
4188 (duplicate_loop_to_header_edge): Ditto.
4189 (lv_adjust_loop_entry_edge): Ditto.
4190 * tree-vect-loop.c (vect_transform_loop): Ditto.
4191 * profile.c (compute_branch_probabilities): Ditto.
4192 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4193 * lto-streamer-in.c (input_cfg): Ditto.
4194 * gimple-streamer-in.c (input_bb): Ditto.
4195 * ipa-cp.c (update_profiling_info): Ditto.
4196 (update_specialized_profile): Ditto.
4197 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
4198 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
4200 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4201 (compute_trg_info): Ditto.
4202 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
4203 (purge_dead_edges): Ditto.
4204 * loop-unswitch.c (unswitch_loop): Ditto.
4205 * cgraphclones.c (cgraph_clone_edge): Ditto.
4206 (cgraph_clone_node): Ditto.
4207 * tree-inline.c (copy_bb): Ditto.
4208 (copy_edges_for_bb): Ditto.
4209 (initialize_cfun): Ditto.
4210 (copy_cfg_body): Ditto.
4211 (expand_call_inline): Ditto.
4213 2013-04-08 Kai Tietz <ktietz@redhat.com>
4215 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4216 TARGET_CYGWIN64 by TARGET_64BIT.
4218 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4220 * config/epiphany/epiphany.md (GPR_1): New constant.
4221 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
4222 * config/epiphany/epiphany.c (gen_compare_reg):
4223 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
4224 is already in place.
4225 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
4226 Don't require being called during rtl expansion; If y operlaps r0,
4228 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
4229 (epiphany_expand_epilogue): Likewise.
4231 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
4232 Don't use CC_FPmode for ORDERED / UNORDERED.
4233 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
4235 * config/epiphany/constraints.md (CnL): New constraint.
4236 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
4237 * config/epiphany/predicates.md (add_operand): Allow 1024.
4239 * config/epiphany/epiphany.md (logical_op): New code iterator.
4240 (op_mnc): New code attribute.
4241 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
4242 (mov_f+1, mov_f+2): New peephole2 patterns.
4244 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
4245 (cstoresi4): Also allow re-use of zero result when doing a NE
4246 comparison to a non-zero operand.
4247 Use (clobber (scratch)) for first insn if the gpr output is not needed.
4249 * config/epiphany/epiphany.md (<insn_opname>v2si3):
4250 Use gen_addsi3_i / gen_subsi3_i.
4252 2013-04-08 Jakub Jelinek <jakub@redhat.com>
4256 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
4257 contain anything but clobbers, at most one __builtin_stack_restore,
4258 optionally debug stmts and final resx, and if it has at least one
4259 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
4260 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
4261 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
4262 which isn't defaut definition, remove them.
4263 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4264 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4265 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4266 with MEM_REF LHS with SSA_NAME address.
4268 2013-04-08 Jeff Law <law@redhat.com>
4270 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
4272 2013-04-08 Richard Biener <rguenther@suse.de>
4274 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4276 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4277 determined vector type.
4278 (vect_analyze_data_refs): Likewise.
4279 (vect_get_new_vect_var): Adjust.
4280 (vect_create_destination_var): Preserve SSA name versions.
4281 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4282 not dump anything here.
4284 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4286 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4287 Add member lr_slot_known.
4288 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4290 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4291 Remove code that sets lr_slot_offset according to what a previous
4292 version of epiphany_emit_save_restore used to do.
4293 (epiphany_emit_save_restore): When doing an lr save or restore,
4294 set/verify lr_slot_known and lr_slot_offset.
4296 2013-04-08 Xinyu Qi <xyqi@marvell.com>
4299 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
4302 2013-04-08 Richard Biener <rguenther@suse.de>
4304 * alias.c (find_base_term): Fix thinko in previous change.
4306 2013-04-08 Jakub Jelinek <jakub@redhat.com>
4308 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4309 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4310 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
4311 if possible to compute val.
4312 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4313 For QImode integers don't require anything about precision. Use
4314 const_with_all_bytes_same to find out if the constant doesn't have
4315 repeated bytes in it.
4317 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4319 * config/s390/s390.c (s390_expand_insv): Only accept insertions
4322 2013-04-08 Marek Polacek <polacek@redhat.com>
4324 PR rtl-optimization/48182
4325 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4328 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4331 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4332 nuses, make sure we have a label.
4334 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4337 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4338 (rs6000_emit_swdiv_low_precision): Remove.
4339 (rs6000_emit_swdiv): Rewrite to handle between one and four
4340 iterations of Newton-Raphson generally; modify required number of
4341 iterations for some cases.
4342 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4344 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
4346 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4347 set-but-unused variable.
4349 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4350 basic blocks of released function bodies garbage-collectable.
4352 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4353 (struct rtl_opt_pass): Add TODO_df_finish.
4355 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4357 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4359 * config/arm/constraints.md (q): New constraint.
4360 * config/arm/ldrdstrd.md: New file.
4361 * config/arm/arm.md (ldrdstrd.md) New include.
4362 (arm_movdi): Use "q" instead of "r" constraint
4363 for double-word memory access.
4364 (movdf_soft_insn): Likewise.
4365 * config/arm/vfp.md (movdi_vfp): Likewise.
4366 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
4367 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4368 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4369 (mem_ok_for_ldrd_strd): Likewise.
4370 (output_move_double): Update assertion.
4372 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4374 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4376 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4378 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4379 define_insn_and_split.
4380 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4382 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4384 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4385 define_insn_and_split.
4386 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
4387 (shiftsi3_compare): New pattern.
4389 * config/arm/unspecs.md (UNSPEC_RRX): New.
4391 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4393 * config/arm/arm.md (negdi_extendsidi): New pattern.
4394 (negdi_zero_extendsidi): Likewise.
4396 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4398 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4399 define_insn_and_split.
4400 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4401 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4403 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4405 * config/arm/arm.md (arm_subdi3): Convert define_insn into
4406 define_insn_and_split.
4407 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4408 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4410 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4412 * config/arm/arm.md (subsi3_carryin): New pattern.
4413 (subsi3_carryin_const): Likewise.
4414 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4415 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4417 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4419 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4421 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4423 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
4424 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
4426 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4428 * config/arm/arm.c (arm_expand_builtin): Change fcode
4429 type to unsigned int.
4431 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4433 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4435 2013-04-04 Ian Lance Taylor <iant@google.com>
4437 * doc/standards.texi (Standards): The Go frontend supports the Go 1
4440 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
4443 * df-scan.c (df_insn_delete): Disable failing assert.
4445 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4447 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4448 New function prototype.
4449 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4450 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4451 (arm_builtin_vectorized_function): New function.
4453 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4455 * config/arm/arm_neon_builtins.def: New file.
4456 * config/arm/arm.c (neon_builtin_data): Move contents to
4457 arm_neon_builtins.def.
4458 (enum arm_builtins): Include neon builtin definitions.
4459 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
4460 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
4462 2013-04-04 Marek Polacek <polacek@redhat.com>
4464 PR tree-optimization/48186
4465 * predict.c (maybe_hot_frequency_p): Return false if
4466 HOT_BB_FREQUENCY_FRACTION is 0.
4467 (cgraph_maybe_hot_edge_p): Likewise.
4469 2013-04-04 Richard Biener <rguenther@suse.de>
4471 PR tree-optimization/56826
4472 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4475 2013-04-04 Richard Biener <rguenther@suse.de>
4477 PR tree-optimization/56213
4478 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
4479 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
4481 2013-04-04 Richard Biener <rguenther@suse.de>
4483 PR tree-optimization/56837
4484 * tree-loop-distribution.c (classify_partition): For non-zero
4485 values require that the value has the same precision as its
4486 mode to be useful as memset value.
4488 2013-04-03 Nick Clifton <nickc@redhat.com>
4490 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
4491 (fmssf4): Use fmsf.s on E3V5 architectures.
4492 (fnmasf4): Use fnmaf.s on E3V5 architectures.
4493 (fnmssf4): Use fnmsf.s on E3V5 architectures.
4495 2013-04-03 Jeff Law <law@redhat.com>
4497 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4498 (lra-eliminations.o): Likewise.
4500 2013-04-03 Teresa Johnson <tejohnson@google.com>
4502 * gcov-io.c (compute_working_sets): Moved most of body of old
4503 compute_working_sets here from profile.c.
4504 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
4505 (gcov_working_set_t): Moved typedef here from basic-block.h
4506 (compute_working_set): Declare.
4507 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4508 (get_working_sets): Renamed from compute_working_set,
4509 replace most of body with call to new compute_working_sets.
4510 (get_exec_counts): Replace call to compute_working_sets
4511 to get_working_sets.
4512 * profile.h (get_working_sets): Renamed from compute_working_set.
4513 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
4514 to get_working_sets.
4515 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4516 * gcov-dump.c (dump_working_sets): New function.
4518 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4520 * hwint.c (sext_hwi, zext_hwi): New functions.
4521 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4522 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4523 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4524 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4525 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4526 (sext_hwi, zext_hwi): New functions.
4528 2013-04-03 Jeff Law <law@redhat.com>
4530 PR tree-optimization/56799
4531 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4532 back test for widening conversion erroneously dropped in prior change.
4534 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4537 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4538 instead of next_real_insn.
4540 2013-04-03 Marek Polacek <polacek@redhat.com>
4543 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
4545 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4548 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4550 (thumb1_output_casesi): Likewise.
4551 (thumb2_output_casesi): Likewise.
4553 2013-04-03 Richard Biener <rguenther@suse.de>
4555 PR tree-optimization/56817
4556 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4558 (tree_unroll_loops_completely_1): ... new function to manually
4559 walk the loop tree, properly defering outer loops of unrolled
4560 loops to later iterations.
4562 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4564 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4565 (vectorizable_load): Likewise.
4566 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4567 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4569 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4571 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4574 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4576 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4578 2013-04-03 Bin Cheng <bin.cheng@arm.com>
4580 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4582 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4584 PR tree-optimization/56790
4585 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4588 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4590 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4592 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4593 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4596 2013-04-03 Jakub Jelinek <jakub@redhat.com>
4599 * tree.h (force_folding_builtin_constant_p): New decl.
4600 * builtins.c (force_folding_builtin_constant_p): New variable.
4601 (fold_builtin_constant_p): Fold immediately also if
4602 force_folding_builtin_constant_p.
4604 2013-04-03 Richard Biener <rguenther@suse.de>
4606 PR tree-optimization/56812
4607 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4608 DRs of the same interleaving chain are independent.
4610 2013-04-02 Jason Merrill <jason@redhat.com>
4612 * gdbinit.in (pbb): Use debug fn.
4614 2013-04-02 Lawrence Crowl <crowl@google.com>
4616 * sese.h (struct ivtype_map_elt_s): Remove unused.
4617 (extern debug_ivtype_map): Remove unused.
4618 (extern eq_ivtype_map_elts): Remove unused.
4619 * sese.c (debug_ivtype_map): Removed unused.
4620 (debug_ivtype_map_1): Removed unused.
4621 (debug_ivtype_elt): Remove unused.
4622 (eq_ivtype_map_elts): Remove unused.
4625 2013-04-02 Kai Tietz <ktietz@redhat.com>
4628 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4629 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
4630 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4632 (legitimize_pe_coff_symbol): Likewise.
4633 (is_imported_p): New helper-function.
4634 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4635 for Windows x64 targets.
4636 (ix86_expand_prologue): Optimize for pe-coff targets.
4637 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4638 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4639 medium/large code-model.
4640 (legitimize_pic_address): Likewise.
4641 (legitimize_tls_address): Likewise.
4642 (ix86_expand_call): Likewise.
4643 (x86_output_mi_thunk): Likewise.
4644 (get_dllimport_decl): Add new beimport argument.
4645 (construct_plt_address): Don't assert for x64 pe-coff targets.
4646 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4648 (SYMBOL_FLAG_STUBVAR): New macro.
4649 (SYMBOL_REF_STUBVAR_P): Likewise.
4650 * config/i386/winnt.c (stub_list): New structure.
4651 (stub_head): New local variable.
4652 (i386_pe_record_stub): New function.
4653 (i386_pe_file_end): Emit refptr-stubs.
4655 2013-04-02 Jakub Jelinek <jakub@redhat.com>
4657 PR rtl-optimization/56745
4658 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4659 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4662 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4663 and both of them are MEM_REFs, just compare first argument for
4664 equality and attempt to deal even with differing offsets.
4667 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4668 of gimple_clobber_p to be MEM_REF.
4669 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4670 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4671 after gimplification.
4672 * asan.c (get_mem_ref_of_assignment): Don't instrument
4673 gimple_clobber_p stmts.
4674 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4675 gimple_clobber_p stmt if they have MEM_REF lhs and
4676 are dead because of another gimple_clobber_p stmt.
4677 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4678 gimple_clobber_p stmts like debug stmts.
4679 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4680 that refer to unused VAR_DECLs or uninitialized values.
4681 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4682 gimple_clobber_p stmts if they refer to removed parameters.
4683 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4686 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
4688 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4689 using SWI48 mode attribute.
4691 2013-04-02 Wei Mi <wmi@google.com>
4693 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4694 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4695 *<rotate_insn><mode>3_mask in i386.md.
4697 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4699 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4701 2013-04-02 Richard Biener <rguenther@suse.de>
4703 PR tree-optimization/56778
4704 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4705 Runtime alias tests are not supported for gather loads.
4706 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4707 stmts referenced from SSA operands before updating SSA form.
4709 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4710 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4712 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
4713 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4714 * config/arm/cortex-a53.md: New file.
4715 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4716 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4717 * config/arm/arm.c (arm_issue_rate): Likewise.
4718 * config/arm/arm-tune.md: Regenerate
4719 * config/arm/arm-tables.opt: Regenerate.
4720 * config/arm/arm-cores.def: Add cortex-a53.
4722 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4724 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4727 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4729 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4730 scalar load/store operations using B/H registers.
4731 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4733 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4735 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4737 * config/aarch64/aarch64.c
4738 (aarch64_simd_scalar_immediate_valid_for_move): New.
4739 * config/aarch64/aarch64-protos.h
4740 (aarch64_simd_scalar_immediate_valid_for_move): New.
4741 * config/aarch64/constraints.md (Dh, Dq): New.
4742 * config/aarch64/iterators.md (hq): New.
4744 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
4746 * reorg.c (get_branch_condition): Deal with conditional returns.
4747 (fill_simple_delay_slots): Remove dead code dealing with jumps.
4749 2013-04-01 Wei Mi <wmi@google.com>
4751 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4752 Truncate operand 2 using %b asm operand modifier.
4753 (*<shift_insn><mode>3_mask): Ditto.
4754 (*<rotate_insn><mode>3_mask): Ditto.
4756 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
4759 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4761 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4763 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4765 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4767 2013-03-30 Lawrence Crowl <crowl@google.com>
4769 * dse.c (clear_alias_sets): Remove never set.
4770 (disqualified_clear_alias_sets): Remove never set.
4771 (clear_alias_mode_pool): Remove never set.
4772 (dse_step0): Remove condition that is never true.
4773 (canon_address): Remove condition that is never true.
4774 (dse_step7): Remove condition that is never true.
4775 (rest_of_handle_dse): Remove condition that is never true.
4776 (rest_of_handle_dse::did_global): Remove never read from above.
4777 (dse_step2_spill): Remove never called from above.
4778 (dse_step5_spill): Remove never called from above.
4780 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
4782 * doc/md.texi (Standard Names) <casesi>: Update documentation for
4783 JUMP_TABLE_DATA changes.
4784 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4785 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4786 (Insns) <jump_table_data>: New entry.
4787 * doc/tm.texi: Regenerate.
4789 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4791 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4792 for table jump at the end of a basic block using tablejump_p.
4793 * targhooks.c (default_invalid_within_doloop): Likewise.
4794 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4795 target hook implementation that is identical to the default hook.
4796 (rs6000_invalid_within_doloop): Remove.
4798 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4799 unused variable from tablejump_p call.
4801 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4802 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4803 (INSN_DELETED_P): Likewise.
4804 (emit_jump_table_data): New prototype.
4805 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4806 after 4th as unused.
4807 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4808 * sched-vis.c (print_insn): Likewise.
4809 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4810 insn for compatibility with back ends that use next_active_insn to
4811 identify jump table data.
4812 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4813 (remove_insn): Likewise.
4814 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4816 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4817 (emit_jump_table_data): New function.
4819 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4820 basic block, a JUMP_TABLE_DATA never is.
4821 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4822 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4823 off from code handling real insns.
4824 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4825 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4826 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4827 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4828 is not a NONDEBUG_INSN_P.
4829 * ira-costs.c (scan_one_insn): Likewise.
4830 * jump.c (mark_all_labels): Likewise.
4831 (mark_jump_label_1): Likewise.
4832 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4833 * lra.c (get_insn_freq): Expect all insns reaching here to be in
4835 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4836 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4837 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4838 JUMP_TABLE_DATA_P insns.
4839 (calculate_elim_costs_all_insns): Likewise.
4840 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4841 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4842 (delete_output_reload): Code style fixups.
4843 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4844 insn flags on this non-insn.
4845 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4846 as scheduling barriers, for pre-change compatibility.
4847 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4848 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4850 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4851 redundant JUMP_TABLE_DATA_P test.
4852 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4853 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4854 (frv_for_each_packet): Likewise.
4855 * config/i386/i386.c (min_insn_size): Likewise.
4856 (ix86_avoid_jump_mispredicts): Likewise.
4857 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4858 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4859 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4860 (mips16_insn_length): Robustify.
4861 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4862 (mips16_split_long_branches): Likewise.
4863 * config/pa/pa.c (pa_combine_instructions): Likewise.
4864 * config/rs6000/rs6000.c (get_next_active_insn): Treat
4865 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4866 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4867 as contributing to pool range lengths.
4868 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4869 Remove redundant JUMP_TABLE_DATA_P test.
4870 (sh_loop_align): Likewise.
4871 (split_branches): Likewise.
4872 (sh_insn_length_adjustment): Likewise.
4873 * config/spu/spu.c (get_branch_target): Likewise.
4875 2013-03-29 Jan Hubicka <jh@suse.cz>
4877 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4878 gcov streaming; stream hot bb threshold to ltrans.
4879 * predict.c (get_hot_bb_threshold): Break out from ....
4880 (maybe_hot_count_p): ... here.
4881 (set_hot_bb_threshold): New function.
4882 * lto-section-in.c (lto_section_name): Add profile.
4883 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4884 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4886 (histogram_entry): New structure.
4887 (histogram, histogram_pool): New global vars.
4888 (histogram_hash): New structure.
4889 (histogram_hash::hash): New method.
4890 (histogram_hash::equal): Likewise.
4891 (account_time_size): New function.
4892 (cmp_counts): New function.
4893 (dump_histogram): New function.
4894 (ipa_profile_generate_summary): New function.
4895 (ipa_profile_write_summary): New function.
4896 (ipa_profile_read_summary): New function.
4897 (ipa_profile): Decide on threshold.
4898 (pass_ipa_profile): Add ipa_profile_write_summary and
4899 ipa_profile_read_summary.
4900 * Makefile.in (ipa.o): Update dependencies.
4901 * lto-streamer.h (LTO_section_ipa_profile): New section.
4903 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4905 * tree.h (VAR_P): New.
4907 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
4910 * doc/invoke.texi ([-fwhole-program]): Fix typo.
4912 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
4914 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
4915 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4916 (control_flow_insn_p): Likewise.
4917 * cfgrtl.c (duplicate_insn_chain): Likewise.
4918 * final.c (get_attr_length_1): Likewise.
4919 (shorten_branches): Likewise.
4920 (final_scan_insn): Likewise.
4921 * function.c (instantiate_virtual_regs): Likewise.
4922 * gcse.c (insert_insn_end_basic_block): Likewise.
4923 * ira-costs.c (scan_one_insn): Likewise.
4924 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4925 * lra.c (check_rtl): Likewise.
4926 * reload1.c (elimination_costs_in_insn): Likewise.
4927 * reorg.c (follow_jumps): Likewise.
4929 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
4930 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4931 (thumb_far_jump_used_p): Likewise.
4932 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
4933 (workaround_speculation): Likewise.
4934 (add_sched_insns_for_speculation): Likewise.
4935 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
4936 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4937 (frv_for_each_packet): Likewise.
4938 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
4939 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
4940 (final_emit_insn_group_barriers): Likewise.
4941 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4942 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4943 (mips16_insn_length): Likewise.
4944 * config/pa/pa.c (pa_reorg): Likewise.
4945 (pa_combine_instructions): Likewise.
4946 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
4947 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
4948 (sh_reorg): Likewise.
4949 (split_branches): Likewise.
4950 * config/spu/spu.c (get_branch_target): Likewise.
4952 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4955 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
4957 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4958 Fix declaration name.
4960 2013-03-28 Lawrence Crowl <crowl@google.com>
4962 * graphds.h (struct graph.indicies): Remove unused.
4963 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4964 (SCOP_ORIGINAL_PDDRS): Remove unused.
4965 * sese.h (extern insert_loop_close_phis): Removed unused.
4966 (extern insert_guard_phis): Removed unused.
4967 (extern ivtype_map_elt_info): Removed unused.
4968 (new_ivtype_map_elt): Removed unused.
4969 * sese.c (ivtype_map_elt_info): Removed unused.
4971 2013-03-28 Lawrence Crowl <crowl@google.com>
4973 * Makefile.in: Add several missing include dependences.
4975 (test-dump.o): New. This object is not added to any executable,
4976 but is present for ad-hoc testing.
4978 (debug (const bitmap_head_def &)): New.
4979 (debug (const bitmap_head_def *)): New.
4981 (extern debug (const bitmap_head_def &)): New.
4982 (extern debug (const bitmap_head_def *)): New.
4984 (debug (edge_def &)): New.
4985 (debug (edge_def *)): New.
4987 (debug (basic_block_def &)): New.
4988 (debug (basic_block_def *)): New.
4990 (dump_node (const_tree, int, FILE *)): Correct source file.
4992 (debug (die_struct &)): New.
4993 (debug (die_struct *)): New.
4995 (extern debug (die_struct &)): New.
4996 (extern debug (die_struct *)): New.
4997 * gimple-pretty-print.c
4998 (debug (gimple_statement_d &)): New.
4999 (debug (gimple_statement_d *)): New.
5000 * gimple-pretty-print.h
5001 (extern debug (gimple_statement_d &)): New.
5002 (extern debug (gimple_statement_d *)): New.
5004 (debug (ira_allocno_copy &)): New.
5005 (debug (ira_allocno_copy *)): New.
5006 (debug (ira_allocno &)): New.
5007 (debug (ira_allocno *)): New.
5009 (extern debug (ira_allocno_copy &)): New.
5010 (extern debug (ira_allocno_copy *)): New.
5011 (extern debug (ira_allocno &)): New.
5012 (extern debug (ira_allocno *)): New.
5014 (debug (live_range &)): New.
5015 (debug (live_range *)): New.
5017 (debug (lra_live_range &)): New.
5018 (debug (lra_live_range *)): New.
5020 (debug (lra_live_range &)): New.
5021 (debug (lra_live_range *)): New.
5023 (debug (omega_pb_d &)): New.
5024 (debug (omega_pb_d *)): New.
5026 (extern debug (omega_pb_d &)): New.
5027 (extern debug (omega_pb_d *)): New.
5029 (debug (const rtx_def &)): New.
5030 (debug (const rtx_def *)): New.
5032 (debug_tree (tree): Move within file.
5033 (debug_raw (const tree_node &)): New.
5034 (debug_raw (const tree_node *)): New.
5035 (dump_tree_via_hooks (const tree_node *, int)): New.
5036 (debug (const tree_node &)): New.
5037 (debug (const tree_node *)): New.
5038 (debug_verbose (const tree_node &)): New.
5039 (debug_verbose (const tree_node *)): New.
5040 (debug_head (const tree_node &)): New.
5041 (debug_head (const tree_node *)): New.
5042 (debug_body (const tree_node &)): New.
5043 (debug_body (const tree_node *)): New.
5044 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5045 (debug (vec<tree, va_gc> &)): New.
5046 (debug (vec<tree, va_gc> *)): New.
5048 (extern debug (const rtx_def &)): New.
5049 (extern debug (const rtx_def *)): New.
5051 (debug_raw (simple_bitmap_def &)): New.
5052 (debug_raw (simple_bitmap_def *)): New.
5053 (debug (simple_bitmap_def &)): New.
5054 (debug (simple_bitmap_def *)): New.
5056 (extern debug (simple_bitmap_def &)): New.
5057 (extern debug (simple_bitmap_def *)): New.
5058 (extern debug_raw (simple_bitmap_def &)): New.
5059 (extern debug_raw (simple_bitmap_def *)): New.
5061 (debug (vinsn_def &)): New.
5062 (debug (vinsn_def *)): New.
5063 (debug_verbose (vinsn_def &)): New.
5064 (debug_verbose (vinsn_def *)): New.
5065 (debug (expr_def &)): New.
5066 (debug (expr_def *)): New.
5067 (debug_verbose (expr_def &)): New.
5068 (debug_verbose (expr_def *)): New.
5069 (debug (vec<rtx> &)): New.
5070 (debug (vec<rtx> *)): New.
5072 (extern debug (vinsn_def &)): New.
5073 (extern debug (vinsn_def *)): New.
5074 (extern debug_verbose (vinsn_def &)): New.
5075 (extern debug_verbose (vinsn_def *)): New.
5076 (extern debug (expr_def &)): New.
5077 (extern debug (expr_def *)): New.
5078 (extern debug_verbose (expr_def &)): New.
5079 (extern debug_verbose (expr_def *)): New.
5080 (extern debug (vec<rtx> &)): New.
5081 (extern debug (vec<rtx> *)): New.
5083 (_list_iter_cond_expr): Make inline instead of static.
5085 (debug (sreal &)): New.
5086 (debug (sreal *)): New.
5088 (extern debug (sreal &)): New.
5089 (extern debug (sreal *)): New.
5091 (extern debug_raw (const tree_node &)): New.
5092 (extern debug_raw (const tree_node *)): New.
5093 (extern debug (const tree_node &)): New.
5094 (extern debug (const tree_node *)): New.
5095 (extern debug_verbose (const tree_node &)): New.
5096 (extern debug_verbose (const tree_node *)): New.
5097 (extern debug_head (const tree_node &)): New.
5098 (extern debug_head (const tree_node *)): New.
5099 (extern debug_body (const tree_node &)): New.
5100 (extern debug_body (const tree_node *)): New.
5101 (extern debug (vec<tree, va_gc> &)): New.
5102 (extern debug (vec<tree, va_gc> *)): New.
5104 (debug (struct loop &)): New.
5105 (debug (struct loop *)): New.
5106 (debug_verbose (struct loop &)): New.
5107 (debug_verbose (struct loop *)): New.
5108 * tree-dump.c: Add header dependence.
5110 (extern debug (struct loop &)): New.
5111 (extern debug (struct loop *)): New.
5112 (extern debug_verbose (struct loop &)): New.
5113 (extern debug_verbose (struct loop *)): New.
5115 (debug (data_reference &)): New.
5116 (debug (data_reference *)): New.
5117 (debug (vec<data_reference_p> &)): New.
5118 (debug (vec<data_reference_p> *)): New.
5119 (debug (vec<ddr_p> &)): New.
5120 (debug (vec<ddr_p> *)): New.
5122 (extern debug (data_reference &)): New.
5123 (extern debug (data_reference *)): New.
5124 (extern debug (vec<data_reference_p> &)): New.
5125 (extern debug (vec<data_reference_p> *)): New.
5126 (extern debug (vec<ddr_p> &)): New.
5127 (extern debug (vec<ddr_p> *)): New.
5129 (debug (pt_solution &)): New.
5130 (debug (pt_solution *)): New.
5132 (extern debug (pt_solution &)): New.
5133 (extern debug (pt_solution *)): New.
5135 (debug (_var_map &)): New.
5136 (debug (_var_map *)): New.
5137 (debug (tree_live_info_d &)): New.
5138 (debug (tree_live_info_d *)): New.
5140 (extern debug (_var_map &)): New.
5141 (extern debug (_var_map *)): New.
5142 (extern debug (tree_live_info_d &)): New.
5143 (extern debug (tree_live_info_d *)): New.
5145 2013-03-28 Jan Hubicka <jh@suse.cz>
5147 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5149 2013-03-28 Ian Bolton <ian.bolton@arm.com>
5151 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5152 record only when desired or required.
5154 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
5156 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5157 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5159 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5161 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5162 (*andsi3_compare0_uxtw): New pattern.
5163 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5164 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5166 2013-03-28 Jan Hubicka <jh@suse.cz>
5168 * data-streamer-in.c (streamer_read_gcov_count): New function.
5169 * gimple-streamer-out.c: Include value-prof.h.
5170 (output_gimple_stmt): Output histogram.
5171 (output_bb): Use streamer_write_gcov_count.
5172 * value-prof.c: Include data-streamer.h
5173 (dump_histogram_value): Add HIST_TYPE_MAX.
5174 (stream_out_histogram_value): New function.
5175 (stream_in_histogram_value): New function.
5176 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5177 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5178 * data-streamer-out.c (streamer_write_gcov_count): New function.
5179 (streamer_write_gcov_count_stream): New function.
5180 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5181 (lto_output_node): Likewise.
5182 (input_node, input_edge): Likewise.
5183 * lto-streamer-out.c (output_cfg): Update streaming.
5184 * lto-streamer-in.c (input_cfg): Likewise.
5185 * data-streamer.h (streamer_write_gcov_count,
5186 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5187 * gimple-streamer-in.c: Include value-prof.h
5188 (input_gimple_stmt): Input histograms.
5189 (input_bb): Update profile streaming.
5191 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5193 * genmodes.c (emit_max_int): New function.
5194 (emit_insn_modes_h): Added call to emit_max_function.
5195 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
5197 * machmode.def: Fixed comment.
5199 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5201 * combine.c (try_combine): Removed useless assert.
5202 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
5204 2013-03-28 Marek Polacek <polacek@redhat.com>
5205 Richard Biener <rguenther@suse.de>
5207 PR tree-optimization/56695
5208 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5209 build signed result of a vector comparison.
5210 * tree-cfg.c (verify_gimple_comparison): Check that a result
5211 of a vector comparison has signed type.
5213 2013-03-28 Richard Biener <rguenther@suse.de>
5215 PR tree-optimization/37021
5216 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5217 do not restrict gaps between groups.
5218 * tree-vect-stmts.c (vectorizable_load): Properly account for
5219 a gap between groups.
5221 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
5223 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
5224 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5227 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
5229 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
5230 * doc/extend.texi (Named Address Spaces): Ditto.
5231 (Variable Attributes): Ditto.
5233 2013-03-27 Kai Tietz <ktietz@redhat.com>
5235 * config.build: Add support for cygwin x64 target.
5236 * config.gcc: Likewise.
5237 * config.host: Likewise.
5238 * configure.ac: Likewise
5239 * configure: Regenerated.
5241 2013-03-27 Kai Tietz <ktietz@redhat.com>
5243 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
5244 * config/i386/t-cygwin-w64: New file.
5245 * config/i386/cygwin-w64.h: New file.
5246 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
5247 and add support for x64-cygwin target.
5248 (CPP_SPEC): Likewise.
5249 (CXX_WRAP_SPEC_LIST): Undefine before define.
5250 (LIBGCJ_SONAME): Use 15 as version.
5252 2013-03-27 Richard Biener <rguenther@suse.de>
5254 PR tree-optimization/56716
5255 * tree-ssa-structalias.c (perform_var_substitution): Adjust
5256 dumping for ref nodes.
5258 2013-03-27 Martin Jambor <mjambor@suse.cz>
5260 PR tree-optimization/55334
5261 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
5262 restricted pointers to arrays.
5264 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5266 * Makefile.in (.SUFFIXES): Add .cc.
5267 (.c.o): Apply same recipe for implicit rule .cc.o.
5269 2013-03-27 Richard Biener <rguenther@suse.de>
5271 PR tree-optimization/37021
5272 * tree-vect-data-refs.c (vect_check_strided_load): Allow
5273 REALPART/IMAGPART_EXPRs around the supported refs.
5274 * tree-ssa-structalias.c (find_func_aliases): Assume that
5275 floating-point values are not used to transfer pointers.
5277 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5279 * target.def (TARGET_HAS_IFUNC_P): New target hook.
5280 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5281 * doc/tm.texi: Regenerate.
5282 * targhooks.h (default_has_ifunc_p): New.
5283 * targhooks.c (default_has_ifunc_p): Ditto.
5284 * config/linux-protos.h: New file.
5285 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
5286 this hook for linux which disables support of indirect functions in
5288 * config/linux-android.c: New file.
5289 * config/t-linux-android.c: Ditto.
5290 * config.gcc: Added new object file linux-android.o.
5291 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
5292 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
5293 * varasm.c (do_assemble_alias): Likewise.
5294 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5295 doesn't support indirect functions.
5296 * configure: Regenerate.
5298 2013-03-27 Bin Cheng <bin.cheng@arm.com>
5301 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5302 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5305 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5307 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5309 2013-03-27 Terry Guo <terry.guo@arm.com>
5311 * config/arm/arm-cores.def: Added core cortex-r7.
5312 * config/arm/arm-tune.md: Regenerated.
5313 * config/arm/arm-tables.opt: Regenerated.
5314 * doc/invoke.texi: Added entry for core cortex-r7.
5316 2013-03-27 Walter Lee <walt@tilera.com>
5318 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5319 double-decrement of next_scratch_regno.
5321 2013-03-27 Walter Lee <walt@tilera.com>
5323 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
5325 (insn_v1mulus): Ditto.
5326 (insn_v2muls): Ditto.
5328 2013-03-27 Walter Lee <walt@tilera.com>
5330 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
5331 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5333 2013-03-27 Walter Lee <walt@tilera.com>
5335 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
5336 (*sibcall_value): Ditto.
5338 2013-03-27 Walter Lee <walt@tilera.com>
5340 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5341 (insn_mnz_v8qi): ... this ...
5342 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
5344 (insn_v<n>mnz): Replaced by ...
5345 (insn_v1mnz): ... this ...
5346 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
5348 (insn_mz_<mode>): Replaced by ...
5349 (insn_mz_v8qi): ... this ...
5350 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
5352 (insn_v<n>mz): Replaced by ...
5353 (insn_v1mz): ... this ...
5354 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
5357 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
5359 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5361 2013-03-26 Roland McGrath <mcgrathr@google.com>
5363 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5364 than fprintf with a non-constant, non-format string.
5366 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
5368 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5369 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
5370 operand 0 predicate.
5371 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5372 attribute. Use general_x64nomem_operand as operand 1 predicate.
5373 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5374 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5375 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5376 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5377 (mov<mode>_insv_1): Remove expander. Merge insn with
5378 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5379 Use general_x64nomem_operand as operand 1 predicate.
5380 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5381 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5382 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5383 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5384 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
5385 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5386 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5387 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5388 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
5389 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5390 (general_x64nomem_operand): Ditto.
5392 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
5394 * config/rtems.opt: Add -pthread option.
5396 2013-03-26 Richard Biener <rguenther@suse.de>
5398 * alias.c (find_base_term): Avoid redundant and not used recursion.
5399 (base_alias_check): Get the initial base term from the caller.
5400 (true_dependence_1): Compute and pass base terms to base_alias_check.
5401 (write_dependence_p): Likewise.
5402 (may_alias_p): Likewise.
5404 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
5406 * config/aarch64/aarch64.c (aarch64_classify_address): Support
5407 PC-relative load in SI modes and above only.
5409 2013-03-26 Xinyu Qi <xyqi@marvell.com>
5411 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
5412 * config/arm/iwmmxt.md (WCGR0): Update.
5413 (WCGR1, WCGR2, WCGR3): Likewise.
5415 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
5417 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5418 Use x64 and nox64 isa attributes.
5420 2013-03-26 Richard Biener <rguenther@suse.de>
5422 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5423 alignment computations and rely on get_object_alignment_1
5424 for the !TYPE_P case.
5425 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5427 2013-03-26 Walter Lee <walt@tilera.com>
5429 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5430 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5432 2013-03-25 Jeff Law <law@redhat.com>
5434 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5435 check for INTEGRAL_TYPE_P that was missing due to checking in
5436 wrong version of prior patch.
5438 2013-03-25 Walter Lee <walt@tilera.com>
5440 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5441 TILEGX_INSN_SHUFFLEBYTES1.
5442 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5444 (tilegx_builtins): Ditto.
5445 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5447 2013-03-25 Walter Lee <walt@tilera.com>
5449 * config/tilegx/tilegx.md (floatsisf2): New pattern.
5450 (floatunssisf2): New pattern.
5451 (floatsidf2): New pattern.
5452 (floatunssidf2): New pattern.
5454 2013-03-25 Walter Lee <walt@tilera.com>
5456 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5457 tests for constraint J, K, N, P.
5459 2013-03-25 Walter Lee <walt@tilera.com>
5461 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5462 Use indirect/pcrel encoding.
5463 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5466 2013-03-25 Steve Ellcey <sellcey@mips.com>
5468 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5469 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5470 * config/mips/mips.c (mips_option_override): Set IMADD default.
5471 * config/mips/mips.h (PTF_AVOID_IMADD): New.
5472 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5473 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5474 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5475 * doc/invoke.texi (-mimadd/-mno-imadd): New.
5477 2013-03-25 Jeff Law <law@redhat.com>
5479 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5480 slightly to avoid creating and folding useless trees. Simplify
5481 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5483 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
5485 * config/i386/i386.md (*zero_extendsidi2): Merge with
5486 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
5487 * config/i386/predicates.md (x86_64_zext_operand): Rename from
5488 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
5489 targets. Clarify comment.
5491 2013-03-25 Martin Jambor <mjambor@suse.cz>
5493 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5494 pass-through jump functions differently.
5495 (ipa_read_jump_function): Likewise. Also use setter functions to set
5498 2013-03-25 Martin Jambor <mjambor@suse.cz>
5500 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5501 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5503 (ipa_get_indirect_edge_target): New function.
5504 (devirtualization_time_bonus): New parameter known_aggs, pass it to
5505 ipa_get_indirect_edge_target. Update all callers.
5506 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
5507 ipa_get_indirect_edge_target_1 instead of calling
5508 ipa_get_indirect_edge_target.
5509 (create_specialized_node): Pass aggvlas to
5510 ipcp_discover_new_direct_edges.
5512 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5514 * config/arm/arm.md (f_sels, f_seld): New types.
5515 (*cmov<mode>): New pattern.
5516 * config/arm/predicates.md (arm_vsel_comparison_operator): New
5519 2013-03-25 Kai Tietz <ktietz@redhat.com>
5521 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5522 POSIX-printf for mingw-hosted builds.
5524 2013-03-25 Richard Biener <rguenther@suse.de>
5527 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5528 must-not-throw stmt location.
5530 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5532 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5533 Emit load-acquire versions when acq is true.
5534 (arm_emit_store_exclusive): Add rel parameter.
5535 Emit store-release versions when rel is true.
5536 (arm_split_compare_and_swap): Use acquire-release instructions
5538 of barriers when appropriate.
5539 (arm_split_atomic_op): Likewise.
5540 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5541 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5542 (VUNSPEC_SLX): Likewise.
5543 (VUNSPEC_LDA): Likewise.
5544 (VUNSPEC_STL): Likewise.
5545 * config/arm/sync.md (atomic_load<mode>): New pattern.
5546 (atomic_store<mode>): Likewise.
5547 (arm_load_acquire_exclusive<mode>): Likewise.
5548 (arm_load_acquire_exclusivesi): Likewise.
5549 (arm_load_acquire_exclusivedi): Likewise.
5550 (arm_store_release_exclusive<mode>): Likewise.
5552 2013-03-25 Catherine Moore <clm@codesourcery.com>
5554 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5555 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5556 * config/mip/predicates.md (lwsp_swsp_operand,
5557 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5558 sb16_operand, db4_operand, db7_operand, ib3_operand,
5559 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5560 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5561 andi16_operand): New predicates.
5562 * config/mips/mips.md (compression): New attribute.
5563 (enabled): New attribute.
5564 (length): Consider compression in computing length.
5565 (shift_compression): New code attribute.
5566 (*add<mode>3): New operands. Record compression.
5567 (sub<mode>3): Likewise.
5568 (one_cmpl<mode>2): Likewise.
5569 (*and<mode>3): Likewise.
5570 (*ior<mode>3): Likewise.
5571 (unnamed pattern for xor): Likewise.
5572 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5573 (*<optab><mode>3): Likewise.
5574 (*mov<mode>_internal: Likewise.
5575 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5576 (mips_unsigned_immediate_p): New.
5577 (umips_lwsp_swsp_address_p): New.
5578 (m16_based_address_p): New.
5579 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5580 (mips_unsigned_immediate_p): New prototype.
5581 (lwsp_swsp_address_p): New prototype.
5582 (m16_based_address_p): New prototype.
5583 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5584 (mips_signed_immediate_p): New function.
5585 (m16_based_address_p): New function.
5586 (lwsp_swsp_address_p): New function.
5587 (mips_print_operand_punctuation): Recognize short delay slot insns
5588 for microMIPS.add<mode>3"
5590 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5593 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5594 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5596 2013-03-25 Richard Biener <rguenther@suse.de>
5598 PR tree-optimization/56689
5599 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5602 2013-03-25 Richard Biener <rguenther@suse.de>
5604 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5606 (memory_references): Likewise.
5607 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5608 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5609 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5610 (gather_mem_refs_in_loops): Fold into ...
5611 (analyze_memory_references): ... this. Move initialization
5612 to tree_ssa_lim_initialize.
5613 (fill_always_executed_in): Rename to ...
5614 (fill_always_executed_in_1): ... this.
5615 (fill_always_executed_in): Move contains_call computation to
5616 this new function from ...
5617 (tree_ssa_lim_initialize): ... here.
5618 (tree_ssa_lim): Call fill_always_executed_in.
5620 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5622 * postreload.c (reload_combine): Fix code detecting returns.
5624 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5626 * function.c (emit_use_return_register_into_block): On cc0 targets,
5627 do not emit the sequence between cc0 setter and user.
5629 2013-03-25 Kai Tietz <ktietz@redhat.com>
5631 * config/i386/predicates.md (local_symbolic_operand): Interpret
5632 dll-imported symbols as none-local.
5634 2013-03-25 Richard Biener <rguenther@suse.de>
5636 * tree-ssa-loop-im.c (struct depend): Remove.
5637 (struct lim_aux_data): Make depends a vec of gimples.
5638 (free_lim_aux_data): Adjust.
5639 (add_dependency): Likewise.
5640 (set_level): Likewise.
5642 2013-03-25 Richard Biener <rguenther@suse.de>
5645 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5646 the pointer returned by calls with ECF_MALLOC set.
5648 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
5650 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5652 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
5654 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
5655 using MMXMODE mode iterator.
5656 (*move<mode>_internal): Merge with *movv2sf_internal and
5657 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5659 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5661 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5662 (record_last_mem_set_info): Likewise.
5664 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5665 of XNEWVEC followed by memset.
5666 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5668 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5670 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5671 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5672 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5673 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5674 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5675 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5676 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5677 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5678 BARRIER_P instead of GET_CODE.
5680 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5682 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5683 inaccuracy in the probing code.
5685 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5686 (ctrapdi4): Likewise.
5688 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5690 * calls.c (expand_call): Add missing guard to code handling return
5691 of non-BLKmode structures in MSB.
5692 * function.c (expand_function_end): Likewise.
5694 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5696 * combine.c (try_combine): Adjust comment. Do not add the set of
5697 insn #0 if the destination indirectly is set or dies in insn #2.
5698 Tidy up code to distribute a new note.
5700 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
5702 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5703 also for alternatives 16 and 17.
5705 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
5707 * config/i386/sse.md (*mov<mode>_internal): Merge with
5708 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5709 Emit insn template depending on type attribute. Use
5710 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5711 movd instead of movq mnemonic for interunit moves. Rewrite mode
5712 attribute calculation. Remove unit attribute calculation.
5713 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5714 Set prefix_data16 attribute for DImode ssemov types.
5715 Use Ym instead of y for SSE-MMX conversion alternatives.
5716 Reorder operand constraints.
5718 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5720 * df.h (df_insn_delete): Adjust prototype.
5721 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5722 and let it decide whether mark the basic block dirty.
5723 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5724 * df-scan.c (df_insn_info_delete): New helper function, split
5725 off from df_insn_delete.
5726 (df_scan_free_bb_info): Use it.
5727 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5729 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
5730 that the insn is actually an insn and it has a non-NULL basic block.
5731 Do not mark basic block dirty if only deleting a DEBUG_INSN.
5733 2013-03-22 Richard Biener <rguenther@suse.de>
5735 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5737 (mem_ref_alloc): Do not allocate them.
5738 (refs_independent_p): Do not query or maintain a cache.
5740 2013-03-22 Richard Biener <rguenther@suse.de>
5742 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5743 (gather_mem_refs_in_loops): Do not compute it.
5744 (analyze_memory_references): Do not allocate it.
5745 (tree_ssa_lim_finalize): Do not free it.
5746 (for_all_locs_in_loop): Do not query all_refs_in_loop.
5748 2013-03-22 Richard Biener <rguenther@suse.de>
5750 * is-a.h (as_a): Use gcc_checking_assert.
5752 2013-03-22 Ian Bolton <ian.bolton@arm.com>
5754 * config/aarch64/aarch64.c (aarch64_print_operand): New
5755 format specifier for printing a constant in hex.
5756 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5757 format specifier for printing second operand.
5759 2013-03-22 Richard Biener <rguenther@suse.de>
5761 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5763 (gather_mem_refs_in_loops): Perform store accumulation here.
5764 (create_vop_ref_mapping_loop): Remove.
5765 (create_vop_ref_mapping): Likewise.
5766 (analyze_memory_references): Initialize refs_stored_in_loop.
5767 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
5768 (record_indep_loop): Remove.
5769 (record_dep_loop): New function.
5770 (ref_indep_loop_p_1): Adjust to only walk over references
5771 in the loop, not its subloops.
5772 (ref_indep_loop_p): Rename to ...
5773 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5774 maintaining a more fine-grained cache.
5775 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5776 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5778 2013-03-22 Richard Biener <rguenther@suse.de>
5780 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5781 (struct mem_ref): Make accesses_in_loop a vec of a vec of
5782 aggregate mem_ref_loc.
5783 (free_mem_ref_locs): Inline into ...
5784 (memref_free): ... this and adjust.
5785 (mem_ref_alloc): Adjust.
5786 (mem_ref_locs_alloc): Remove.
5787 (record_mem_ref_loc): Adjust.
5788 (get_all_locs_in_loop): Rewrite into ...
5789 (for_all_locs_in_loop): ... this iterator.
5790 (rewrite_mem_ref_loc): New functor.
5791 (rewrite_mem_refs): Use for_all_locs_in_loop.
5792 (sm_set_flag_if_changed): New functor.
5793 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5794 (ref_always_accessed): New functor.
5795 (ref_always_accessed_p): Use for_all_locs_in_loop.
5797 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5799 * tree-pass.h (PROP_gimple_lvec): New.
5800 * passes.c (dump_properties): Handle PROP_gimple_lvec.
5801 (init_optimization_passes): Move pass_lower_vector.
5802 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5804 (pass_lower_vector): Provide PROP_gimple_lvec.
5805 (pass_lower_vector_ssa): Likewise.
5806 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5808 2013-03-21 Mark Wielaard <mjw@redhat.com>
5810 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5812 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
5814 * config/i386/i386.md (*movdi_internal): Disparage slightly
5815 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
5816 conversion alternatives.
5818 2013-03-21 Jakub Jelinek <jakub@redhat.com>
5821 * diagnostic.def (DK_WERROR): New kind.
5822 * diagnostic.h (werrorcount): Define.
5823 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5824 promoted to DK_ERROR, increment DK_WERROR counter instead of
5826 * toplev.c (toplev_main): Call print_ignored_options even if
5827 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
5828 even if just werrorcount is non-zero.
5831 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5833 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5834 (string_cst_pool_decl): New function.
5835 (optimize_one_addr_into_implicit_ptr): New function.
5836 (resolve_addr_in_expr): Optimize DWARF location expression
5837 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5838 which doesn't live in memory, but has DW_AT_location or
5839 DW_AT_const_value, or refers to a string literal, into
5840 DW_OP_GNU_implicit_pointer.
5841 (optimize_location_into_implicit_ptr): New function.
5842 (resolve_addr): If removing DW_AT_location of a variable because
5843 it was DW_OP_addr of address of the variable, but the variable doesn't
5844 live in memory, try to emit const value attribute for the initializer.
5846 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5848 * tree.h (VECTOR_TYPE_P): New macro.
5849 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5851 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5852 VEC_COND_EXPR cannot be lvalues.
5853 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5855 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5857 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5858 Restrict the transformation to equal modes.
5860 2013-03-21 Richard Biener <rguenther@suse.de>
5862 PR tree-optimization/39326
5863 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5864 (MEM_ANALYZABLE): Adjust.
5865 (record_mem_ref_loc): Move bitmap ops ...
5866 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
5867 unanalyzable refs, do not record locations for it.
5868 (analyze_memory_references): Allocate ref zero as shared
5870 (refs_independent_p): Do not test for unanalyzed mems here.
5871 (ref_indep_loop_p_1): Special-case disambiguation against
5873 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
5875 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
5877 * config/arm/arm-protos.h (tune_params): Add
5878 prefer_neon_for_64bits field.
5879 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5880 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5881 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5882 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5883 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5884 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5885 (arm_option_override): Handle -mneon-for-64bits new option.
5886 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
5887 (prefer_neon_for_64bits): Declare new variable.
5888 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
5889 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
5890 (arch_enabled): Handle new arch types. Remove support for onlya8
5892 (one_cmpldi2): Use new arch names.
5893 (zero_extend<mode>di2, extend<mode>di2): Ditto.
5894 * config/arm/arm.opt (mneon-for-64bits): Add option.
5895 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
5896 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
5897 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
5899 * doc/invoke.texi (-mneon-for-64bits): Document.
5901 2013-03-21 Richard Biener <rguenther@suse.de>
5903 PR tree-optimization/39326
5904 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
5905 (sort_bbs_in_loop_postorder_cmp): New function.
5906 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5908 2013-03-21 Richard Biener <rguenther@suse.de>
5910 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
5911 (vect_insert_into_interleaving_chain): Likewise.
5912 (vect_drs_dependent_in_basic_block): Inline ...
5913 (vect_slp_analyze_data_ref_dependence): ... here. New function,
5915 (vect_analyze_data_ref_dependence): ... here. Simplify.
5916 (vect_check_interleaving): Simplify.
5917 (vect_analyze_data_ref_dependences): Likewise. Split out ...
5918 (vect_slp_analyze_data_ref_dependences): ... this new function.
5919 (dr_group_sort_cmp): New function.
5920 (vect_analyze_data_ref_accesses): Compute data-reference groups
5921 here instead of in vect_analyze_data_ref_dependence. Use
5922 a more efficient algorithm.
5923 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
5924 vect_slp_analyze_data_ref_dependences. Call
5925 vect_analyze_data_ref_accesses earlier.
5926 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5927 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
5928 (vect_slp_analyze_data_ref_dependences): New prototype.
5930 2013-03-21 Richard Biener <rguenther@suse.de>
5932 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
5933 ref is stored in the loop.
5934 (find_refs_for_sm): Walk only over all stores.
5935 (store_motion_loop): Allocate from lim_bitmap_obstack.
5936 (store_motion): Likewise.
5938 2013-03-21 Richard Biener <rguenther@suse.de>
5940 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
5941 Update virtual SSA form.
5943 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5945 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
5946 * configure: Regenerate.
5947 * config.in: Regenerate.
5948 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
5949 if !HAVE_LD_EH_FRAME_CIEV3.
5951 2013-03-21 Richard Biener <rguenther@suse.de>
5953 * tree-cfg.c (verify_expr_no_block): New function.
5954 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5955 nor DECL_VALUE_EXPR have locations with associated blocks.
5956 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5957 (clear_unused_block_pointer): Remove code dealing with
5958 blocks in DECL_DEBUG_EXPR locations.
5960 2013-03-21 Richard Biener <rguenther@suse.de>
5962 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5963 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
5964 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5965 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5966 instead of DECL_DEBUG_EXPR_IS_FROM.
5967 * gimplify.c (gimplify_modify_expr): Likewise.
5968 * tree-cfg.c (verify_expr_location_1): Likewise.
5969 * tree-complex.c (create_one_component_var): Likewise.
5970 * tree-sra.c (create_access_replacement): Likewise.
5971 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5972 (clear_unused_block_pointer): Likewise.
5973 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5974 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5975 * var-tracking.c (var_debug_decl): Likewise.
5976 (track_expr_p): Likewise.
5977 * tree-inline.c (add_local_variables): Likewise. Set
5978 DECL_HAS_DEBUG_EXPR_P after copying it.
5979 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5980 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
5982 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
5985 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5986 * configure: Regenerate.
5987 * config.in: Regenerate.
5988 * config/i386/i386.md (*movdf_internal): Use
5989 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5990 movd instead of movq mnemonic for interunit moves.
5991 (*movdi_internal): Ditto.
5993 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5995 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5996 (abd<mode>_3): New pattern.
5997 (aba<mode>_3): New pattern.
5998 (fabd<mode>_3): New pattern.
6000 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6002 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
6003 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
6004 occurrence of REGISTER_PREFIX as its empty string.
6006 2013-03-20 Jeff Law <law@redhat.com>
6008 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6009 addititional equivalences for equality comparisons between an SSA_NAME
6010 and a constant where the SSA_NAME was set from a widening conversion.
6012 2013-03-20 Walter Lee <walt@tilera.com>
6014 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6016 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6018 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6019 depending on type attribute.
6020 (*movti_internal): Ditto.
6021 (*movtf_internal): Ditto.
6022 (*movxf_internal): Ditto.
6023 (*movdf_internal): Ditto.
6024 (*movsf_internal): Ditto.
6026 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6028 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6029 maybe_vex for sselog1 and ssemov types.
6030 (*movdi_internal): Reorder operand constraints.
6031 (*movsi_internal): Ditto. Set prefix attribute to
6032 maybe_vex for sselog1 and ssemov types.
6033 (*movtf_internal): Set prefix attribute to maybe_vex
6034 for sselog1 and ssemov types.
6035 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6036 DImode ssemov types. Reorder operand constraints.
6037 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6038 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6039 attribute for SImode ssemov types. Reorder operand constraints.
6041 2013-03-20 Martin Jambor <mjambor@suse.cz>
6043 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6044 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6046 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6048 * config/rs6000/predicates.md (indexed_address, update_address_mem
6049 update_indexed_address_mem): New predicates.
6050 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6051 attribute for load/store instructions.
6052 * config/rs6000/dfp.md (movsd_store): Likewise.
6053 (movsd_load): Likewise.
6054 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6055 (unnamed HI->DI extend define_insn): Likewise.
6056 (unnamed SI->DI extend define_insn): Likewise.
6057 (unnamed QI->SI extend define_insn): Likewise.
6058 (unnamed QI->HI extend define_insn): Likewise.
6059 (unnamed HI->SI extend define_insn): Likewise.
6060 (unnamed HI->SI extend define_insn): Likewise.
6061 (extendsfdf2_fpr): Likewise.
6062 (movsi_internal1): Likewise.
6063 (movsi_internal1_single): Likewise.
6064 (movhi_internal): Likewise.
6065 (movqi_internal): Likewise.
6066 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6067 attribute for load/store instructions.
6068 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6070 (mov<mode>_softfloat): Likewise.
6071 (mov<mode>_hardfloat32): Likewise.
6072 (mov<mode>_hardfloat64): Likewise.
6073 (mov<mode>_softfloat64): Likewise.
6074 (movdi_internal32): Likewise.
6075 (movdi_internal64): Likewise.
6076 (probe_stack_<mode>): Likewise.
6078 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6080 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6081 floating point, and decimal floating point to reload iterator.
6083 * config/rs6000/constraints.md (wl constraint): New constraints to
6084 return FLOAT_REGS if certain options are used to reduce the number
6085 of separate patterns that exist in the file.
6086 (wx constraint): Likewise.
6087 (wz constraint): Likewise.
6089 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6090 -mdebug=reg, print wg, wl, wx, and wz constraints.
6091 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6092 Initialize the reload functions for 64-bit binary/decimal floating
6094 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6095 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6096 create the buffer on the stack to overcome not having a 32-bit
6098 (rs6000_emit_move): Likewise.
6099 (rs6000_secondary_memory_needed_rtx): Likewise.
6100 (rs6000_alloc_sdmode_stack_slot): Likewise.
6101 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6102 via xxlxor, just like DFmode 0.0.
6104 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6105 define as 1 if we are running on a power7 or newer.
6106 (enum r6000_reg_class_enum): Add new constraints.
6108 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6109 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6110 with other moves by using conditional constraits (wg). Use LFIWZX
6111 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
6112 (movsd splitter): Likewise.
6113 (movsd_hardfloat): Likewise.
6114 (movsd_softfloat): Likewise.
6116 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6117 binary and decimal floating point moves.
6118 (fmove_ok): New attributes to combine binary and decimal floating
6119 point moves, and to combine power6x (mfpgpr) moves along normal
6121 (real_value_to_target): Likewise.
6128 (movsf): Combine binary and decimal floating point moves. Combine
6129 power6x (mfpgpr) moves with other moves by using conditional
6130 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
6131 (mov<mode> for SFmode/SDmode); Likewise.
6132 (SFmode/SDmode splitters): Likewise.
6133 (movsf_hardfloat): Likewise.
6134 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6135 (movsf_softfloat): Likewise.
6136 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6138 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6139 wx and wz constraints.
6141 * config/rs6000/constraints.md (wg constraint): New constraint to
6142 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6144 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6147 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6148 -mdebug=reg, print wg, wl, wx, and wz constraints.
6149 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6150 Initialize the reload functions for 64-bit binary/decimal floating
6152 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6153 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6154 create the buffer on the stack to overcome not having a 32-bit
6156 (rs6000_emit_move): Likewise.
6157 (rs6000_secondary_memory_needed_rtx): Likewise.
6158 (rs6000_alloc_sdmode_stack_slot): Likewise.
6159 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6160 via xxlxor, just like DFmode 0.0.
6162 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6163 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6164 with other moves by using conditional constraits (wg). Use LFIWZX
6165 and STFIWX for loading SDmode on power7.
6166 (movdd splitters): Likewise.
6167 (movdd_hardfloat32): Likewise.
6168 (movdd_softfloat32): Likewise.
6169 (movdd_hardfloat64_mfpgpr): Likewise.
6170 (movdd_hardfloat64): Likewise.
6171 (movdd_softfloat64): Likewise.
6173 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6174 64-bit binary and decimal floating point moves.
6175 (FMOVE64X): Likewise.
6176 (movdf): Combine 64-bit binary and decimal floating point moves.
6177 Combine power6x (mfpgpr) moves with other moves by using
6178 conditional constraits (wg).
6179 (mov<mode> for DFmode/DDmode): Likewise.
6180 (DFmode/DDmode splitters): Likewise.
6181 (movdf_hardfloat32): Likewise.
6182 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6183 (movdf_softfloat32): Likewise.
6184 (movdf_hardfloat64_mfpgpr): Likewise.
6185 (movdf_hardfloat64): Likewise.
6186 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6187 (movdf_softfloat64): Likewise.
6188 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6189 (reload_<mode>_load): Move to later in the file so they aren't in
6190 the middle of the floating point move insns.
6191 (reload_<mode>_store): Likewise.
6193 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6196 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
6197 constraint if -mdebug=reg.
6198 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
6199 Enable using dd reload support if needed.
6201 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
6202 binary and decimal floating point moves in rs6000.md.
6203 (movtd_internal): Likewise.
6205 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6206 decimal floating point moves.
6208 (movtf_internal): Likewise.
6209 (mov<mode>_internal, TDmode/TFmode): Likewise.
6210 (movtf_softfloat): Likewise.
6211 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6213 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6214 movdi_internal64, using wg constraint for move direct operations.
6215 (movdi_internal64): Likewise.
6217 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
6218 MODES_TIEABLE_P for selected modes. Print the numerical value of
6219 the various virtual registers. Use GPR/FPR first/last values,
6220 instead of hard coding the register numbers. Print which modes
6221 have reload functions registered.
6222 (rs6000_option_override_internal): If -mdebug=reg, trace the options
6223 settings before/after setting cpu, target and subtarget settings.
6224 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
6225 and for secondary reload failures in rs6000_secondary_reload_inner.
6226 (rs6000_secondary_reload_fail): Likewise.
6227 (rs6000_secondary_reload_inner): Likewise.
6229 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
6230 macros for first/last GPR and FPR registers.
6231 (LAST_GPR_REGNO): Likewise.
6232 (FIRST_FPR_REGNO): Likewise.
6233 (LAST_FPR_REGNO): Likewise.
6235 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
6236 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
6237 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
6238 (vcond<mode><mode>): Likewise.
6239 (vcondu<mode><mode>): Likewise.
6240 (vector_gtu<mode>): Likewise.
6241 (vector_gte<mode>): Likewise.
6242 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
6243 to prevent the compiler from converting DImode operations to TImode.
6244 (ior<mode>3): Likewise.
6245 (and<mode>3): Likewise.
6246 (one_cmpl<mode>2): Likewise.
6247 (nor<mode>3): Likewise.
6248 (andc<mode>3): Likewise.
6250 * config/rs6000/constraints.md (wt constraint): New constraint
6251 that returns VSX_REGS if TImode is allowed in VSX registers.
6253 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
6256 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
6257 similar to TImode, but it is restricted to being in the GPRs.
6259 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
6260 TImode to occupy a single VSX register.
6262 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
6263 -mvsx-timode for power7/power8.
6264 (power7 cpu): Likewise.
6265 (power8 cpu): Likewise.
6267 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6268 sure that TFmode/TDmode take up two registers if they are ever
6269 allowed in the upper VSX registers.
6270 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6272 (rs6000_init_hard_regno_mode_ok): Likewise.
6273 (rs6000_debug_reg_global): Add debugging for PTImode and wt
6274 constraint. Print if LRA is turned on.
6275 (rs6000_option_override_internal): Give an error if -mvsx-timode
6276 and VSX is not enabled.
6277 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
6278 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6279 to reg+offset addressing. Use PTImode when checking offset
6280 addresses for validity.
6281 (reg_offset_addressing_ok_p): Likewise.
6282 (rs6000_legitimate_offset_address_p): Likewise.
6283 (rs6000_legitimize_address): Likewise.
6284 (rs6000_legitimize_reload_address): Likewise.
6285 (rs6000_legitimate_address_p): Likewise.
6286 (rs6000_eliminate_indexed_memrefs): Likewise.
6287 (rs6000_emit_move): Likewise.
6288 (rs6000_secondary_reload): Likewise.
6289 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
6290 reloads to fpr registers to continue to use reg+offset addressing,
6291 but 64-bit reloads to altivec registers need reg+reg addressing.
6292 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6293 it. Treat LO_SUM like a PLUS operation.
6294 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
6295 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
6296 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6297 registers to share a register with a smaller sized type, since VSX
6298 puts scalars in the upper 64-bits.
6299 (print_operand): Add support for PTImode.
6300 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6301 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6302 registers, but don't have arithmetic support.
6303 (rs6000_memory_move_cost): Add test for VSX.
6304 (rs6000_opt_masks): Add -mvsx-timode.
6306 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6309 (VSr): Use wt constraint for TImode.
6310 (VSv): Drop TImode support.
6311 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6312 (vsx_movti_64bit): Likewise.
6313 (vsx_movti_32bit): Likewise.
6314 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6315 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6316 one '?' on the appropriate output constraint. Do not allow TImode
6317 logical operations on 32-bit systems.
6318 (vsx_ior<mode>3): Likewise.
6319 (vsx_xor<mode>3): Likewise.
6320 (vsx_one_cmpl<mode>2): Likewise.
6321 (vsx_nor<mode>3): Likewise.
6322 (vsx_andc<mode>3): Likewise.
6323 (vsx_concat_<mode>): Likewise.
6324 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6326 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6327 OPTION_MASK_VSX_TIMODE.
6328 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6329 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6331 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6332 (TI2 iterator): New iterator for TImode, PTImode.
6333 (wd mode attribute): Add values for vector types.
6334 (movti_string): Replace TI move operations with operations for TImode
6335 and PTImode. Add support for TImode being allowed in VSX registers.
6336 (mov<mode>_string, TImode/PTImode): Likewise.
6337 (movti_ppc64): Likewise.
6338 (mov<mode>_ppc64, TImode/PTImode): Likewise.
6339 (TI mode splitters): Likewise.
6341 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6344 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
6346 PR tree-optimization/56355
6347 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6348 Also handle integers with undefined overflow.
6350 2013-03-20 Catherine Moore <clm@codesourcery.com>
6351 Maciej W. Rozycki <macro@codesourcery.com>
6352 Tom de Vries <tom@codesourcery.com>
6353 Nathan Sidwell <nathan@codesourcery.com>
6354 Iain Sandoe <iain@codesourcery.com>
6355 Nathan Froyd <froydnj@codesourcery.com>
6356 Chao-ying Fu <fu@mips.com>
6358 * doc/extend.texi: (micromips, nomicromips, nocompression):
6359 Document new function attributes.
6360 * doc/invoke.texi (minterlink-compressed, mmicromips,
6361 m14k, m14ke, m14kec): Document new options.
6362 (minterlink-mips16): Update documentation.
6363 * doc/md.texi (ZC, ZD): Document new constraints.
6364 * configure.ac (gcc_cv_as_micromips): Check if linker
6365 supports the .set micromips directive.
6366 * configure: Regenerate.
6367 * config.in: Regenerate.
6368 * config/mips/mips-tables.opt: Regenerate.
6369 * config/mips/micromips.md: New file.
6370 * constraints.md (ZC, ZD): New constraints.
6371 * config/mips/predicates.md (movep_src_register): New predicate.
6372 (movep_src_operand): New predicate.
6373 (non_volatile_mem_operand): New predicate.
6374 * config/mips/mips.md (multimem): New type.
6375 (length): Differentiate between 17-bit and 18-bit branch offsets.
6376 (MOVEP1, MOVEP2): New mode iterator.
6377 (mov_<load>l): Use ZC constraint.
6378 (mov_<load>r): Likewise.
6379 (mov_<store>l): Likewise.
6380 (mov_<store>r): Likewise.
6381 (*branch_equality<mode>_inverted): Add microMIPS support.
6382 (*branch_equality<mode>): Likewise.
6383 (*jump_absolute): Likewise.
6384 (indirect_jump_<mode>): Likewise.
6385 (tablejump_<mode>): Likewise.
6386 (<optab>_internal): Likewise.
6387 (sibcall_internal): Likewise.
6388 (sibcall_value_internal): Likewise.
6389 (prefetch): Use constraint ZD.
6390 * config/mips/mips.opt (minterlink-compressed): New option.
6391 (minterlink-mips16): Now an alias for minterlink-compressed.
6392 (mmicromips): New option.
6393 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6394 (compare_and_swap_12): Likewise.
6395 (sync_add<mode>): Likewise.
6396 (sync_<optab>_12): Likewise.
6397 (sync_old_<optab>_12): Likewise.
6398 (sync_new_<optab>_12): Likewise.
6399 (sync_nand_12): Likewise.
6400 (sync_old_nand_12): Likewise.
6401 (sync_new_nand_12): Likewise.
6402 (sync_sub<mode>): Likewise.
6403 (sync_old_add<mode>): Likewise.
6404 (sync_old_sub<mode>): Likewise.
6405 (sync_new_add<mode>): Likewise.
6406 (sync_new_sub<mode>): Likewise.
6407 (sync_<optab><mode>): Likewise.
6408 (sync_old_<optab><mode>): Likewise.
6409 (sync_new_<optab><mode>): Likewise.
6410 (sync_nand<mode>): Likewise.
6411 (sync_old_nand<mode>): Likewise.
6412 (sync_new_nand<mode>): Likewise.
6413 (sync_lock_test_and_set<mode>): Likewise.
6414 (test_and_set_12): Likewise.
6415 (atomic_compare_and_swap<mode>): Likewise.
6416 (atomic_exchange<mode>_llsc): Likewise.
6417 (atomic_fetch_add<mode>_llsc): Likewise.
6418 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6419 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6420 (umips_save_restore_pattern_p): Likewise.
6421 (umips_load_store_pair_p): Likewise.
6422 (umips_output_load_store_pair): Likewise.
6423 (umips_movep_target_p): Likewise.
6424 (umips_12bit_offset_address_p): Likewise.
6425 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6426 (mips_base_mips16): Rename this...
6427 (mips_base_compression_flags): ...to this. Update all uses.
6428 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6429 (mips_mips16_decl_p): Delete.
6430 (mips_nomips16_decl_p): Delete.
6431 (mips_get_compress_on_flags): New function.
6432 (mips_get_compress_off_flags): New function.
6433 (mips_get_compress_mode): New function.
6434 (mips_get_compress_on_name): New function.
6435 (mips_get_compress_off_name): New function.
6436 (mips_insert_attributes): Support multiple compression types.
6437 (mips_merge_decl_attributes): Likewise.
6438 (umips_12bit_offset_address_p): New function.
6439 (mips_start_function_definition): Emit .set micromips directive.
6440 (mips_call_may_need_jalx_p): New function.
6441 (mips_function_ok_for_sibcall): Add microMIPS support.
6442 (mips_print_operand_punctuation): Support short delay slots and
6444 (umips_swm_mask, umips_swm_encoding): New.
6445 (umips_build_save_restore): New function.
6446 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6447 (was_mips16_p): Remove.
6448 (old_compression_mode): New.
6449 (mips_set_compression_mode): New function.
6450 (mips_set_current_function): Add microMIPS support.
6451 (mips_option_override): Likewise.
6452 (umips_save_restore_pattern_p): New function.
6453 (umips_output_save_restore): New function.
6454 (umips_load_store_pair_p_1): New function.
6455 (umips_load_store_pair_p): New function.
6456 (umips_output_load_store_pair_1): New function.
6457 (umips_output_load_store_pair): New function.
6458 (umips_movep_target_p) New function.
6459 (mips_prepare_pch_save): Add microMIPS support.
6460 * config/mips/mips.h (TARGET_COMPRESSION): New.
6461 (TARGET_CPU_CPP_BUILTINS): Update macro
6462 to use new compression flags and to support microMIPS.
6463 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6464 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6465 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6466 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6467 (ASM_SPEC): Support mmicromips and mno-micromips.
6468 (M16STORE_REG_P): New macro.
6469 (MIPS_CALL): Support TARGET_MICROMIPS.
6470 (MICROMIPS_J): New macro.
6471 (mips_base_mips16): Rename this...
6472 (mips_base_compression_flags): ...to this.
6473 (UMIPS_12BIT_OFFSET_P): New macro.
6474 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6475 (MULTILIB_DIRNAMES): Likewise.
6476 2013-03-20 Richard Biener <rguenther@suse.de>
6478 PR tree-optimization/56661
6479 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6480 the result does not have to be distinct.
6482 2013-03-20 Richard Biener <rguenther@suse.de>
6484 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6487 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6488 Steven Bosscher <steven@gcc.gnu.org>
6490 PR rtl-optimization/56605
6491 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6493 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6496 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6497 that require movd instead of movq.
6499 2013-03-20 Richard Biener <rguenther@suse.de>
6501 * tree-ssa-structalias.c (struct variable_info): Add pointer
6502 to the first field of an aggregate with sub-vars. Make
6503 this and the pointer to the next subfield its ID.
6504 (vi_next): New function.
6505 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6506 storedanything_id, integer_id): Increment by one.
6507 (new_var_info, get_call_vi, lookup_call_clobber_vi,
6508 get_call_clobber_vi): Adjust.
6509 (solution_set_expand): Simplify and speedup.
6510 (solution_set_add): Inline into ...
6511 (set_union_with_increment): ... this. Adjust accordingly.
6512 (do_sd_constraint): Likewise.
6513 (do_ds_constraint): Likewise.
6514 (do_complex_constraint): Simplify.
6515 (build_pred_graph): Adjust.
6516 (solve_graph): Likewise. Simplify and speedup.
6517 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6518 get_constraint_for_component_ref, get_constraint_for_1,
6519 first_vi_for_offset, first_or_preceding_vi_for_offset,
6520 create_function_info_for, create_variable_info_for_1,
6521 create_variable_info_for, intra_create_variable_infos): Adjust.
6522 (init_base_vars): Push NULL for ID zero.
6523 (compute_points_to_sets): Adjust.
6525 2013-03-20 Richard Biener <rguenther@suse.de>
6527 * cfgloop.c (verify_loop_structure): Streamline and avoid
6528 ICEing on corrupt loop tree.
6529 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6532 2013-03-20 Richard Biener <rguenther@suse.de>
6534 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6535 check whether an SSA update is needed.
6537 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
6539 * config/mips/constraints.md (T): Rename to...
6543 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6544 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6546 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6548 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6549 (*subsi3_carryin_uxtw): Likewise.
6551 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6553 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6554 (*rorsi3_insn_uxtw): Likewise.
6556 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6558 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6559 (*extrsi5_insn_uxtw): Likewise.
6561 2013-03-19 Richard Biener <rguenther@suse.de>
6563 PR tree-optimization/56273
6564 * passes.c (init_optimization_passes): Move second VRP after DOM.
6566 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
6568 * config/i386/i386.md (*movti_internal): Merge from
6569 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
6570 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
6571 nox64 isa attributes.
6573 2013-03-18 Richard Biener <rguenther@suse.de>
6575 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6577 (merge_node_constraints): Likewise.
6578 (build_succ_graph): Likewise.
6579 (valid_graph_edge): Inline into single caller.
6580 (unify_nodes): Likewise. Use bitmap_set_bit return value
6582 (scc_visit): Fix formatting and variable use.
6583 (do_sd_constraint): Use gcc_checking_assert.
6584 (do_ds_constraint): Likewise.
6585 (do_complex_constraint): Likewise.
6586 (condense_visit): Likewise. Cleanup.
6587 (dump_pred_graph): New function.
6588 (perform_var_substitution): Dump the pred-graph before
6589 variable substitution.
6590 (find_equivalent_node): Use gcc_checking_assert.
6591 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6593 2013-03-18 Richard Biener <rguenther@suse.de>
6595 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6596 Remove cond_expr_stmt_list argument and do not gimplify the
6598 (vect_loop_versioning): Adjust.
6599 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6600 Cleanup to use less temporaries.
6601 (vect_create_data_ref_ptr): Cleanup.
6603 2013-03-18 Jakub Jelinek <jakub@redhat.com>
6605 PR tree-optimization/56635
6606 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6607 require types_compatible_p types.
6609 2013-03-18 Nick Clifton <nickc@redhat.com>
6611 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6614 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6615 Add missing line to comment describing function.
6617 2013-03-18 Richard Biener <rguenther@suse.de>
6619 PR tree-optimization/56210
6620 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6621 Handle string / character search functions.
6622 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6624 2013-03-18 Richard Biener <rguenther@suse.de>
6627 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6628 and implement properly.
6629 * gimple.h (gimple_cond_single_var_p): Remove.
6631 2013-03-18 Richard Biener <rguenther@suse.de>
6633 * tree-data-ref.h (find_data_references_in_loop): Declare.
6634 * tree-data-ref.c (get_references_in_stmt): Use a stack
6635 vector pre-allocated in the callers.
6636 (find_data_references_in_stmt): Adjust.
6637 (graphite_find_data_references_in_stmt): Likewise.
6638 (create_rdg_vertices): Likewise.
6639 (find_data_references_in_loop): Export.
6640 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6641 Compute dependences here...
6642 (vect_analyze_data_refs): ...not here. When we encounter
6643 a non-vectorizable data reference in basic-block vectorization
6644 truncate the data reference vector. Do not bother to
6645 fixup data-dependence information for gather loads.
6646 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6647 of data references, as reported.
6649 2013-03-18 Richard Biener <rguenther@suse.de>
6651 PR tree-optimization/3713
6652 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6653 has_constants and expr.
6654 (stmt_has_constants): Properly valueize SSA names when deciding
6655 whether the stmt has constants.
6657 2013-03-18 Richard Biener <rguenther@suse.de>
6659 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6660 whole function when there is nothing to do.
6661 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6662 * tree-vectorizer.c (vectorize_loops): Update virtual and
6663 loop-closed SSA once.
6664 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6666 2013-03-18 Richard Biener <rguenther@suse.de>
6669 * domwalk.c (bb_postorder): New global static.
6670 (cmp_bb_postorder): New function.
6671 (walk_dominator_tree): Replace scheme imposing an order for
6672 visiting dominator sons by one sorting them at the time they
6673 are pushed on the stack.
6675 2013-03-18 Richard Biener <rguenther@suse.de>
6677 PR tree-optimization/39326
6678 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6679 (struct mem_ref): Replace mem member with ao_ref typed member.
6680 (MEM_ANALYZABLE): Adjust.
6681 (memref_eq): Likewise.
6682 (mem_ref_alloc): Likewise.
6683 (gather_mem_refs_stmt): Likewise.
6684 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6685 (execute_sm_if_changed_flag_set): Adjust.
6686 (execute_sm): Likewise.
6687 (ref_always_accessed_p): Likewise.
6688 (refs_independent_p): Likewise.
6689 (can_sm_ref_p): Likewise.
6691 2013-03-18 Jakub Jelinek <jakub@redhat.com>
6694 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6695 return 1 even for !unsignedp.
6697 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6699 * config/i386/i386.md (isa): Add x64 and nox64.
6700 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6701 (*pushtf): Enable *roF alternative for x64 isa only.
6702 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6703 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6704 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6705 (*movtf_internal): Merge from *movtf_internal_rex64 and
6706 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6707 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6708 nox64 isa attributes.
6709 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6710 nox64 isa attributes.
6711 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6713 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6715 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6717 2013-03-17 Jakub Jelinek <jakub@redhat.com>
6720 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6721 class names. Remove trailing comma after "ALL_REGS".
6723 2013-03-16 Jan Hubicka <jh@suse.cz>
6725 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6726 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6727 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6728 of cgraph_get_create_node.
6729 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6731 2013-03-16 Jason Merrill <jason@redhat.com>
6734 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6735 with DW_AT_default_value.
6737 2013-03-16 Jakub Jelinek <jakub@redhat.com>
6739 * BASE-VER: Set to 4.9.0.
6741 2013-03-14 Andi Kleen <ak@linux.intel.com>
6744 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6745 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6746 Document _x* TSX intrinsics.
6748 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6749 David Holsgrove <david.holsgrove@xilinx.com>
6751 * configure.ac: Add MicroBlaze TLS support detection.
6752 * configure: Regenerate.
6753 * config/microblaze/microblaze-protos.h
6754 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6755 symbol_mentioned_p, label_mentioned_p): Add prototypes.
6756 * config/microblaze/microblaze.c (microblaze_address_type): Add
6757 ADDRESS_TLS and tls_reloc address types.
6758 (microblaze_address_info): Add tls_reloc.
6759 (TARGET_HAVE_TLS): Define.
6760 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6761 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
6762 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6763 load_tls_operand, microblaze_call_tls_get_addr,
6764 microblaze_legitimize_tls_address): New functions.
6765 (microblaze_classify_unspec): Handle UNSPEC_TLS.
6766 (get_base_reg): Use microblaze_tls_symbol_p.
6767 (microblaze_classify_address): Handle TLS.
6768 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6769 label_mentioned_p and microblaze_tls_referenced_p.
6770 (microblaze_legitimize_address): Handle TLS.
6771 (microblaze_address_insns): Handle ADDRESS_TLS.
6772 (pic_address_needs_scratch): Handle TLS.
6773 (print_operand_address): Handle TLS.
6774 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6775 (microblaze_expand_move): Handle TLS.
6776 (microblaze_legitimate_constant_p): Check
6777 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
6778 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6779 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6780 (PIC_OFFSET_TABLE_REGNUM): Set.
6781 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6782 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6783 (addsi3, movsi_internal2, movdf_internal): Update constraints
6784 * config/microblaze/predicates.md (arith_plus_operand): Define
6785 (move_operand): Redefine as move_src_operand,
6786 check microblaze_tls_referenced_p.
6788 2013-03-14 Ian Bolton <ian.bolton@arm.com>
6790 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6791 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6793 2013-03-14 Ian Bolton <ian.bolton@arm.com>
6795 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6798 2013-03-14 Jakub Jelinek <jakub@redhat.com>
6800 PR tree-optimization/53265
6801 * common.opt (Waggressive-loop-optimizations): New option.
6802 * tree-ssa-loop-niter.c: Include tree-pass.h.
6803 (do_warn_aggressive_loop_optimizations): New function.
6804 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
6805 if number_of_latch_executions returned constant.
6806 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6807 early. If number_of_latch_executions returned constant, set
6808 nb_iterations_upper_bound back to it.
6809 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6811 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6812 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6814 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6815 (MULTILIB_OSDIRNAMES): Set.
6816 * genmultilib: If defaultosdirname doesn't start with :: , set
6817 defaultosdirname2 instead, clear it and emit two . multilib_raw
6818 entries instead of just one.
6820 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
6822 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6823 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6824 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6825 (SUBTARGET_OVERRIDE_OPTIONS): New.
6827 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
6830 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6831 (musermode): Convert to Var(TARGET_USERMODE).
6832 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6833 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6834 * config/sh/sh.c (sh_option_override): Use
6835 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6836 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6838 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6840 (udivsi3_i4_single, divsi3_i4_single): Use
6841 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6843 2013-03-13 Dave Korn <dave.korn.cygwin@....>
6845 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6848 2013-03-13 Richard Biener <rguenther@suse.de>
6850 PR tree-optimization/56608
6851 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6852 calls when vectorizing basic-blocks.
6854 2013-03-13 Jakub Jelinek <jakub@redhat.com>
6857 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6860 2013-03-12 Jakub Jelinek <jakub@redhat.com>
6862 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6864 2013-03-11 Jan Hubicka <jh@suse.cz>
6867 * lto-streamer-out.c (output_symbol_p): Skip references from
6868 constructors of external variables.
6870 2013-03-11 Jan Hubicka <jh@suse.cz>
6873 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6875 * emit-rtl.c (verify_rtx_sharing): Likewise.
6876 (copy_insn_1): Likewise.
6877 * rtl.c (copy_rtx): Likewise.
6879 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
6882 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6883 output_operand_lossage message.
6885 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
6888 * arm.c (shift_op): Validate RTL pattern on the fly.
6889 (arm_print_operand, case 'S'): Don't use shift_operator to validate
6892 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6895 * config/pa/pa.md (call_value): Check for calls to powf and direct to
6896 new call patterns that clobber %fr12.
6897 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
6898 split and postreload patterns.
6899 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
6900 registers %fr12 and %fr12R as call used.
6902 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
6904 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
6905 (canon_address, record_store, replace_read, check_mem_read_rtx,
6906 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
6907 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
6908 rest_of_handle_dse): Likewise.
6910 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6913 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
6915 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
6916 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
6917 (save_optabs_if_changed): Replace with...
6918 (init_tree_optimization_optabs): ...this.
6919 * optabs.c (save_optabs_if_changed): Rename to...
6920 (init_tree_optimization_optabs): ...this. Take the optimization node
6921 as argument. Do nothing if the base optabs are already correct.
6922 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
6923 to recompute optabs.
6924 * function.h (function): Remove optabs field.
6925 * function.c (invoke_set_current_function_hook): Call
6926 init_tree_optimization_optabs. Use the result to initialize
6929 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
6931 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
6932 if GTMA_HAS_NO_INSTRUMENTATION.
6933 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
6934 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
6935 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
6936 * gimple-pretty-print.c (dump_gimple_transaction): Handle
6937 GTMA_HAS_NO_INSTRUMENTATION.
6939 2013-03-08 Jakub Jelinek <jakub@redhat.com>
6941 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
6944 2013-03-08 Marek Polacek <polacek@redhat.com>
6945 Jakub Jelinek <jakub@redhat.com>
6947 PR tree-optimization/56478
6948 * predict.c (is_comparison_with_loop_invariant_p): Change the
6949 type of loop_step to tree.
6950 (predict_loops): Adjust.
6951 (predict_iv_comparison): Perform the computations on double_ints.
6953 2013-03-08 Richard Biener <rguenther@suse.de>
6955 PR tree-optimization/56570
6956 * tree-cfg.c (verify_expr_location_1): Verify locations for
6958 * tree-sra.c (create_access_replacement): Strip locations
6959 from DECL_DEBUG_EXPRs.
6961 2013-03-08 Richard Biener <rguenther@suse.de>
6963 * tree-inline.c (expand_call_inline): Do not associate
6964 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6965 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6967 2013-03-08 Richard Biener <rguenther@suse.de>
6969 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6970 or block changes with -Og. Fix for location / block encoding
6971 changes and PHI arguments with locations.
6973 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
6975 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6977 (struct output_info): Likewise.
6978 (register_overhead): Remove bad gcc_assert.
6979 (bitmap_find_bit): If there is only a single bitmap element, do not
6980 count a miss as a search.
6981 (print_statistics): Update for counter type changes.
6982 (dump_bitmap_statistics): Likewise. Print headers such that they
6983 are properly lined up with the printed counters.
6985 2013-03-07 Jakub Jelinek <jakub@redhat.com>
6987 PR tree-optimization/56559
6988 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6989 check that it has only a single use.
6991 2013-03-07 Richard Biener <rguenther@suse.de>
6993 * doc/invoke.texi (fwhole-program): Discourage use in combination
6996 2013-03-06 Jakub Jelinek <jakub@redhat.com>
6998 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
7000 PR tree-optimization/56539
7001 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
7002 instead of GSI_CONTINUE_LINKING as last argument to
7003 force_gimple_operand_gsi. Adjust function comment.
7005 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7009 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7010 promoted mode, convert the result back to the original mode.
7012 2013-03-06 Richard Biener <rguenther@suse.de>
7015 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7016 (insert_updated_phi_nodes_compare_uids): New function.
7017 (update_ssa): Sort symbols_to_rename after UID before
7018 traversing it to insert PHI nodes.
7020 2013-03-06 Richard Biener <rguenther@suse.de>
7023 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7024 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7027 2013-02-13 Richard Biener <rguenther@suse.de>
7030 * varasm.c (output_constant_def_1): Get the decl representing
7031 the constant as argument.
7032 (output_constant_def): Wrap output_constant_def_1.
7033 (make_decl_rtl): Use output_constant_def_1 with the decl
7034 representing the constant.
7035 (build_constant_desc): Optionally re-use a decl already
7036 representing the constant.
7037 (tree_output_constant_def): Adjust.
7039 2013-03-06 Joey Ye <joey.ye@arm.com>
7042 * gcc.c (convert_white_space): New function.
7043 (main): Handles white space in function name.
7045 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7048 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7049 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7050 to SH_DIV_CALL_TABLE for TARGET_SH2.
7051 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7053 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7056 2013-03-05 Sterling Augustine <saugustine@google.com>
7057 Cary Coutant <ccoutant@google.com>
7060 * dwarf2out.c (resolve_addr): Don't call
7061 remove_loc_list_addr_table_entries a second time for the same
7064 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7067 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7068 (avoid_complex_debug_insns): New function.
7069 (expand_debug_locations): Call it.
7071 PR rtl-optimization/56484
7072 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7073 lifetimes of hard registers on small register class machines.
7075 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7077 * config/microblaze/microblaze-protos.h: Rename
7078 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
7079 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
7081 (microblaze_fast_interrupt_function_p): New function.
7082 (microblaze_is_interrupt_handler): Rename to
7083 microblaze_is_interrupt_variant and add fast_interrupt check.
7084 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7085 (save_restore_insns): Likewise.
7086 (compute_frame_size): Likewise.
7087 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7088 (microblaze_globalize_label): Likewise.
7089 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7090 * config/microblaze/microblaze.md: Use wrapper
7091 microblaze_is_interrupt_variant.
7093 2013-03-05 Kai Tietz <ktietz@redhat.com>
7095 * sdbout.c (sdbout_one_type): Switch to current function's section
7096 supporting cold/hot.
7098 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7100 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7103 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7106 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7107 if VALGRIND_GET_VBITS is defined, temporarily make object
7108 memory all defined, and restore previous valgrind addressability
7109 and definability afterwards. Free this_object at the end.
7112 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7113 right before calling lra_create_live_ranges, also call it
7114 when clearing live_p. Only call lra_clear_live_ranges
7115 at the end if live_p.
7118 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7120 2013-03-05 Richard Biener <rguenther@suse.de>
7122 PR tree-optimization/56521
7123 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7126 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7129 * except.h (remove_unreachable_eh_regions): New prototype.
7130 * except.c (remove_eh_handler_splicer): New function, split out
7131 of remove_eh_handler.
7132 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7133 warning about running it on many EH regions one at a time.
7134 (remove_unreachable_eh_regions_worker): New function, walk the
7135 EH tree in depth-first order and remove non-marked regions.
7136 (remove_unreachable_eh_regions): New function.
7137 * tree-eh.c (mark_reachable_handlers): New function, split out
7138 from remove_unreachable_handlers.
7139 (remove_unreachable_handlers): Use mark_reachable_handlers and
7140 remove_unreachable_eh_regions.
7141 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7142 and remove_unreachable_eh_regions.
7144 2013-03-05 Richard Biener <rguenther@suse.de>
7147 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7148 not freeing them until the end.
7150 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7152 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7154 2013-03-05 Richard Biener <rguenther@suse.de>
7156 PR tree-optimization/56270
7157 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7158 of loads after scheduling an SLP instance.
7160 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7162 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7164 (check_gcc_parallelize): Run guality.exp as a separate job from
7165 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7166 struct-layout-1.exp with stackalign.exp.
7168 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7171 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7172 load_index sbitmap even if some bit in it isn't set.
7175 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7176 (discover_iteration_bound_by_body_walk): Change queues to
7177 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7178 spelling in comment. Call safe_push on queues[bound_index] directly.
7179 Release queues[queue_index] in every iteration unconditionally.
7180 Release bounds vector.
7183 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7184 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7185 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7188 2013-03-05 Richard Biener <rguenther@suse.de>
7191 * tree-inline.c (remap_blocks_to_null): New function.
7192 (expand_call_inline): When expanding a call stmt without
7193 an associated block inline remap all callee blocks to NULL.
7195 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7197 PR rtl-optimization/56494
7198 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
7199 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
7200 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
7203 * sel-sched-ir.c (free_sched_pools): Release
7204 succs_info_pool.stack[succs_info_pool.max_top] vectors too
7205 if succs_info_pool.max_top isn't -1.
7208 * opts.c (opts_obstack, opts_concat): Moved to...
7209 * opts-common.c (opts_obstack, opts_concat): ... here.
7211 2013-03-04 Jakub Jelinek <jakub@redhat.com>
7214 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7216 2013-03-04 Martin Jambor <mjambor@suse.cz>
7218 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
7219 all appropriate places.
7221 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
7223 PR tree-optimization/56424
7224 * ipa-split.c (split_function): Do not set the RSO flag if result is
7225 not by reference and its type is a register type.
7227 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
7229 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
7230 (microblaze_legitimate_pic_operand): Likewise
7231 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
7232 new function microblaze_legitimate_pic_operand
7233 * config/microblaze/microblaze-protos.h
7234 (microblaze_legitimate_pic_operand): Declare.
7236 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7238 * config/microblaze/predicates.md (call_insn_simple_operand):
7239 New predicate for supported rtx code types.
7240 * config/microblaze/microblaze.md (call_internal1): Use
7241 call_insn_simple_operand predicate.
7243 2013-03-04 Jakub Jelinek <jakub@redhat.com>
7246 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
7247 partitions.ordered_remove.
7250 * tree-vect-stmts.c (vectorizable_conversion): Don't call
7251 vec_oprnds0.create (1) for modifier == NONE.
7254 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
7255 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
7256 vec_oprnds1 right before pushing anything to it for
7260 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
7261 set nbbs to 0 instead of having separate code path.
7262 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
7263 instead of false as last argument if returning NULL.
7265 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
7267 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7268 the attribute is now called "target" instead of "option".
7269 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7270 * doc/tm.texi.in (Target Attributes): Likewise document the correct
7271 attribute/pragma name for TARGET_OPTION_VALID_P and
7272 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
7273 * doc/tm.texi: Regenerated.
7275 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
7277 * config/microblaze/microblaze.c:
7278 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
7279 * config/microblaze/microblaze.h: Add -mxl-reorder to
7281 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7282 instructions emitted if TARGET_REORDER.
7283 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7284 or 0 for -m/-mno case, but initialises as 2 to detect default use case
7287 2013-03-01 Xinliang David Li <davidxl@google.com>
7289 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7292 2013-03-01 Jakub Jelinek <jakub@redhat.com>
7295 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7296 vector even when returning true. Fix up function comment formatting.
7299 * ira-build.c (ira_loop_nodes_count): New variable.
7300 (create_loop_tree_nodes): Initialize it.
7301 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7304 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7305 method on dr_chain and result_chain.
7306 * tree-vect-stmts.c (vectorizable_store): Only call
7307 result_chain.create if j == 0.
7310 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7311 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7312 before overwriting it.
7314 2013-03-01 Tobias Burnus <burnus@net-b.de>
7316 * doc/extended.texi (C Extensions): Change order in @menu
7318 (Other MIPS Built-in Functions): Move last MIPS entry before
7319 "picoChip Built-in Functions".
7320 (SH Built-in Functions): Move after RX Built-in Functions.
7321 * doc/gcc.texi (Introduction): Change order in @menu
7323 * doc/md.texi (Constraints): Ditto.
7324 * gty.texi (Type Information): Ditto.
7325 (User-provided marking routines for template types): Make
7327 * doc/invoke.texi (AArch64 Options): Move before
7328 "Adapteva Epiphany Options".
7330 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7331 Jakub Jelinek <jakub@redhat.com>
7334 * asan.c (gate_asan): Lookup no_sanitize_address instead of
7335 no_address_safety_analysis attribute.
7336 * doc/extend.texi (no_address_safety_attribute): Rename to
7337 no_sanitize_address attribute, mention no_address_safety_analysis
7338 attribute as deprecated alias.
7340 2013-02-28 Jakub Jelinek <jakub@redhat.com>
7343 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7344 type to vec<vec<tree> > *.
7345 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
7346 to be vec<tree> instead of vec<tree> *, set vec_defs
7347 to vNULL and call vec_defs.create (number_of_vects), adjust other
7349 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7350 vectorizable_condition): Adjust vect_get_slp_defs callers.
7352 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7354 * config/aarch64/aarch64.c
7355 (aarch64_float_const_representable): Remove unused variable.
7357 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7359 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7361 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7363 * config/aarch64/aarch64-builtins.c
7364 (aarch64_init_simd_builtins): Make static.
7366 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7368 * config/aarch64/aarch64.c
7369 (aarch64_simd_make_constant): Make static.
7371 2013-02-28 Martin Jambor <mjambor@suse.cz>
7373 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7374 with no initialization to the RHS of debug statements.
7376 2013-02-28 Martin Jambor <mjambor@suse.cz>
7378 PR tree-optimization/56294
7379 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7381 (get_access_replacement): Do not call create_access_replacement.
7382 Assert a replacement exists.
7383 (get_repl_default_def_ssa_name): Create the replacement declaration
7386 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7388 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7391 2013-02-28 Marek Polacek <polacek@redhat.com>
7393 PR rtl-optimization/56466
7394 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7395 if we're changing a loop.
7396 (peel_loops_completely): Likewise.
7398 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
7401 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7403 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7406 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7407 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7408 INTX_FTYPE_FX, FX_FTYPE_INTX.
7409 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7411 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7413 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7414 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7415 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7416 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7417 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7418 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7419 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7420 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7421 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7422 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7423 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7424 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7425 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7426 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7427 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7428 (avrxmega6): Increase max flash segments from 5 to 6.
7429 * config/avr/t-multilib: Regenerate.
7430 * config/avr/avr-tables.opt: Regenerate.
7431 * doc/avr-mmcu.texi: Regenerate.
7433 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7435 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7436 (avr_device_to_arch): Rename to avr_device_to_ld.
7437 (avr_device_to_as): New prototype.
7438 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7439 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7440 * config/avr/driver-avr.c (avr_device_to_as): New.
7441 (avr_device_to_arch): Rename to avr_device_to_ld.
7443 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7446 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7447 method on dr_chain and result_chain.
7450 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7451 pointer_set_destroy on not_executed_last_iteration.
7454 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
7457 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7458 FOR_EACH_DEFINED_FUNCTION when freeing state.
7461 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7463 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7467 * ipa-cp.c (decide_whether_version_node): Call vec_free on
7468 known_aggs[i].items and release known_aggs vector.
7471 * ipa-reference.c (propagate): Free node_info even for alias nodes.
7473 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7475 * config/microblaze/microblaze.c (microblaze_emit_compare):
7476 Use xor for EQ/NE comparisions.
7477 * config/microblaze/microblaze.md (cstoresf4): Add constraints
7478 (cbranchsf4): Adjust operator to comparison_operator.
7480 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7483 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7485 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7486 vec_safe_push, always update *slot.
7487 (redirect_edge_var_map_clear): Use vec_free.
7488 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7489 (free_var_map_entry): Use vec_free.
7490 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7491 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7493 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
7496 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7497 when the may_trap_p bit of the exprs being merged differs.
7498 Reorder tests for speculativeness in the logical and operator.
7500 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7502 * incpath.c (add_standard_paths): Use reconcat instead of concat
7503 where appropriate and avoid leaking memory.
7505 * opts.h: Include obstack.h.
7506 (opts_concat): New prototype.
7507 (opts_obstack): New declaration.
7508 * opts.c (opts_concat): New function.
7509 (opts_obstack): New variable.
7510 (init_options_struct): Call gcc_init_obstack on opts_obstack.
7511 (finish_options): Use opts_concat instead of concat
7512 and XOBNEWVEC instead of XNEWVEC.
7513 * opts-common.c (generate_canonical_option, decode_cmdline_option,
7514 generate_option): Likewise.
7515 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7516 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7519 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7520 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7522 2013-02-26 Jakub Jelinek <jakub@redhat.com>
7525 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7527 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7529 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7530 (arm_block_move_unaligned_straight): Likewise.
7531 (arm_adjust_block_mem): Likewise.
7533 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7536 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7537 temp, cond and label.
7538 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7541 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7542 * config/c6x/c6x.h (dbx_register_map): Update declaration.
7545 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7546 of prologue/epilogue functions.
7549 * config/tilegx/tilegx.c (tilegx_expand_prologue):
7550 Remove unused variable cfa_offset.
7551 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7554 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7555 type promotion to unsigned.
7558 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7559 for HOST_WIDE_INT of 32 bit / same size as int.
7560 (arm_block_move_unaligned_straight): Likewise.
7561 (arm_adjust_block_mem): Likewise.
7564 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7567 2013-02-26 Marek Polacek <polacek@redhat.com>
7569 PR tree-optimization/56426
7570 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
7572 2013-02-26 Richard Biener <rguenther@suse.de>
7575 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7576 unused variable loops.
7578 2013-02-26 Jakub Jelinek <jakub@redhat.com>
7580 PR tree-optimization/56448
7581 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7582 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7583 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7584 later operands of the references, or even first operand for
7585 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7587 PR tree-optimization/56443
7588 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7589 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7590 to type_for_mode langhook.
7592 2013-02-25 Matt Turner <mattst88@gmail.com>
7594 * doc/invoke.texi: Document r4700.
7596 2013-02-25 Richard Biener <rguenther@suse.de>
7598 PR tree-optimization/56175
7599 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7601 (simplify_bitwise_binary): ... here. Also guard the conversion
7602 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7604 2013-02-25 Catherine Moore <clm@codesourcery.com>
7607 2013-02-24 Catherine Moore <clm@codesourcery.com>
7608 Maciej W. Rozycki <macro@codesourcery.com>
7609 Tom de Vries <tom@codesourcery.com>
7610 Nathan Sidwell <nathan@codesourcery.com>
7611 Iain Sandoe <iain@codesourcery.com>
7612 Nathan Froyd <froydnj@codesourcery.com>
7613 Chao-ying Fu <fu@mips.com>
7615 * doc/extend.texi: (micromips, nomicromips, nocompression):
7616 Document new function attributes.
7617 * doc/invoke.texi (minterlink-compressed, mmicromips,
7618 m14k, m14ke, m14kec): Document new options.
7619 (minterlink-mips16): Update documentation.
7620 * doc/md.texi (ZC, ZD): Document new constraints.
7621 * configure.ac (gcc_cv_as_micromips): Check if linker
7622 supports the .set micromips directive.
7623 * configure: Regenerate.
7624 * config.in: Regenerate.
7625 * config/mips/mips-tables.opt: Regenerate.
7626 * config/mips/micromips.md: New file.
7627 * constraints.md (ZC, AD): New constraints.
7628 * config/mips/predicates.md (movep_src_register): New predicate.
7629 (movep_src_operand): New predicate.
7630 (non_volatile_mem_operand): New predicate.
7631 * config/mips/mips.md (multimem): New type.
7632 (length): Differentiate between 17-bit and 18-bit branch offsets.
7633 (MOVEP1, MOVEP2): New mode iterator.
7634 (mov_<load>l): Use ZC constraint.
7635 (mov_<load>r): Likewise.
7636 (mov_<store>l): Likewise.
7637 (mov_<store>r): Likewise.
7638 (*branch_equality<mode>_inverted): Add microMIPS support.
7639 (*branch_equality<mode>): Likewise.
7640 (*jump_absolute): Likewise.
7641 (indirect_jump_<mode>): Likewise.
7642 (tablejump_<mode>): Likewise.
7643 (<optab>_internal): Likewise.
7644 (sibcall_internal): Likewise.
7645 (sibcall_value_internal): Likewise.
7646 (prefetch): Use constraint ZD.
7647 * config/mips/mips.opt (minterlink-compressed): New option.
7648 (minterlink-mips16): Now an alias for minterlink-compressed.
7649 (mmicromips): New option.
7650 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7651 (compare_and_swap_12): Likewise.
7652 (sync_add<mode>): Likewise.
7653 (sync_<optab>_12): Likewise.
7654 (sync_old_<optab>_12): Likewise.
7655 (sync_new_<optab>_12): Likewise.
7656 (sync_nand_12): Likewise.
7657 (sync_old_nand_12): Likewise.
7658 (sync_new_nand_12): Likewise.
7659 (sync_sub<mode>): Likewise.
7660 (sync_old_add<mode>): Likewise.
7661 (sync_old_sub<mode>): Likewise.
7662 (sync_new_add<mode>): Likewise.
7663 (sync_new_sub<mode>): Likewise.
7664 (sync_<optab><mode>): Likewise.
7665 (sync_old_<optab><mode>): Likewise.
7666 (sync_new_<optab><mode>): Likewise.
7667 (sync_nand<mode>): Likewise.
7668 (sync_old_nand<mode>): Likewise.
7669 (sync_new_nand<mode>): Likewise.
7670 (sync_lock_test_and_set<mode>): Likewise.
7671 (test_and_set_12): Likewise.
7672 (atomic_compare_and_swap<mode>): Likewise.
7673 (atomic_exchange<mode>_llsc): Likewise.
7674 (atomic_fetch_add<mode>_llsc): Likewise.
7675 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7676 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7677 (umips_save_restore_pattern_p): Likewise.
7678 (umips_load_store_pair_p): Likewise.
7679 (umips_output_load_store_pair): Likewise.
7680 (umips_movep_target_p): Likewise.
7681 (umips_12bit_offset_address_p): Likewise.
7682 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7683 (mips_base_mips16): Rename this...
7684 (mips_base_compression_flags): ...to this. Update all uses.
7685 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7686 (mips_mips16_decl_p): Delete.
7687 (mips_nomips16_decl_p): Delete.
7688 (mips_get_compress_on_flags): New function.
7689 (mips_get_compress_off_flags): New function.
7690 (mips_get_compress_mode): New function.
7691 (mips_get_compress_on_name): New function.
7692 (mips_get_compress_off_name): New function.
7693 (mips_insert_attributes): Support multiple compression types.
7694 (mips_merge_decl_attributes): Likewise.
7695 (umips_12bit_offset_address_p): New function.
7696 (mips_start_function_definition): Emit .set micromips directive.
7697 (mips_call_may_need_jalx_p): New function.
7698 (mips_function_ok_for_sibcall): Add microMIPS support.
7699 (mips_print_operand_punctuation): Support short delay slots and
7701 (umips_swm_mask, umips_swm_encoding): New.
7702 (umips_build_save_restore): New function.
7703 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7704 (was_mips16_p): Remove.
7705 (old_compression_mode): New.
7706 (mips_set_compression_mode): New function.
7707 (mips_set_current_function): Add microMIPS support.
7708 (mips_option_override): Likewise.
7709 (umips_save_restore_pattern_p): New function.
7710 (umips_output_save_restore): New function.
7711 (umips_load_store_pair_p_1): New function.
7712 (umips_load_store_pair_p): New function.
7713 (umips_output_load_store_pair_1): New function.
7714 (umips_output_load_store_pair): New function.
7715 (umips_movep_target_p) New function.
7716 (mips_prepare_pch_save): Add microMIPS support.
7717 * config/mips/mips.h (TARGET_COMPRESSION): New.
7718 (TARGET_CPU_CPP_BUILTINS): Update macro
7719 to use new compression flags and to support microMIPS.
7720 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7721 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7722 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7723 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7724 (ASM_SPEC): Support mmicromips and mno-micromips.
7725 (M16STORE_REG_P): New macro.
7726 (MIPS_CALL): Support TARGET_MICROMIPS.
7727 (MICROMIPS_J): New macro.
7728 (mips_base_mips16): Rename this...
7729 (mips_base_compression_flags): ...to this.
7730 (UMIPS_12BIT_OFFSET_P): New macro.
7731 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7732 (MULTILIB_DIRNAMES): Likewise.
7734 2013-02-25 Tom de Vries <tom@codesourcery.com>
7736 PR rtl-optimization/56131
7737 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7738 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7739 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7741 2013-02-25 Tobias Burnus <burnus@net-b.de>
7743 * doc/invoke.texi (-fsanitize=): Move from optimization
7744 to debugging options.
7746 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
7748 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7750 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
7751 Alexander Monakov <amonakov@ispras.ru>
7754 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7755 flush pending lists also on non-jumps. Adjust comment.
7757 2013-02-24 Catherine Moore <clm@codesourcery.com>
7758 Maciej W. Rozycki <macro@codesourcery.com>
7759 Tom de Vries <tom@codesourcery.com>
7760 Nathan Sidwell <nathan@codesourcery.com>
7761 Iain Sandoe <iain@codesourcery.com>
7762 Nathan Froyd <froydnj@codesourcery.com>
7763 Chao-ying Fu <fu@mips.com>
7765 * doc/extend.texi: (micromips, nomicromips, nocompression):
7766 Document new function attributes.
7767 * doc/invoke.texi (minterlink-compressed, mmicromips,
7768 m14k, m14ke, m14kec): Document new options.
7769 (minterlink-mips16): Update documentation.
7770 * doc/md.texi (ZC, ZD): Document new constraints.
7771 * configure.ac (gcc_cv_as_micromips): Check if linker
7772 supports the .set micromips directive.
7773 * configure: Regenerate.
7774 * config.in: Regenerate.
7775 * config/mips/mips-tables.opt: Regenerate.
7776 * config/mips/micromips.md: New file.
7777 * constraints.md (ZC, AD): New constraints.
7778 * config/mips/predicates.md (movep_src_register): New predicate.
7779 (movep_src_operand): New predicate.
7780 (non_volatile_mem_operand): New predicate.
7781 * config/mips/mips.md (multimem): New type.
7782 (length): Differentiate between 17-bit and 18-bit branch offsets.
7783 (MOVEP1, MOVEP2): New mode iterator.
7784 (mov_<load>l): Use ZC constraint.
7785 (mov_<load>r): Likewise.
7786 (mov_<store>l): Likewise.
7787 (mov_<store>r): Likewise.
7788 (*branch_equality<mode>_inverted): Add microMIPS support.
7789 (*branch_equality<mode>): Likewise.
7790 (*jump_absolute): Likewise.
7791 (indirect_jump_<mode>): Likewise.
7792 (tablejump_<mode>): Likewise.
7793 (<optab>_internal): Likewise.
7794 (sibcall_internal): Likewise.
7795 (sibcall_value_internal): Likewise.
7796 (prefetch): Use constraint ZD.
7797 * config/mips/mips.opt (minterlink-compressed): New option.
7798 (minterlink-mips16): Now an alias for minterlink-compressed.
7799 (mmicromips): New option.
7800 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7801 (compare_and_swap_12): Likewise.
7802 (sync_add<mode>): Likewise.
7803 (sync_<optab>_12): Likewise.
7804 (sync_old_<optab>_12): Likewise.
7805 (sync_new_<optab>_12): Likewise.
7806 (sync_nand_12): Likewise.
7807 (sync_old_nand_12): Likewise.
7808 (sync_new_nand_12): Likewise.
7809 (sync_sub<mode>): Likewise.
7810 (sync_old_add<mode>): Likewise.
7811 (sync_old_sub<mode>): Likewise.
7812 (sync_new_add<mode>): Likewise.
7813 (sync_new_sub<mode>): Likewise.
7814 (sync_<optab><mode>): Likewise.
7815 (sync_old_<optab><mode>): Likewise.
7816 (sync_new_<optab><mode>): Likewise.
7817 (sync_nand<mode>): Likewise.
7818 (sync_old_nand<mode>): Likewise.
7819 (sync_new_nand<mode>): Likewise.
7820 (sync_lock_test_and_set<mode>): Likewise.
7821 (test_and_set_12): Likewise.
7822 (atomic_compare_and_swap<mode>): Likewise.
7823 (atomic_exchange<mode>_llsc): Likewise.
7824 (atomic_fetch_add<mode>_llsc): Likewise.
7825 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7826 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7827 (umips_save_restore_pattern_p): Likewise.
7828 (umips_load_store_pair_p): Likewise.
7829 (umips_output_load_store_pair): Likewise.
7830 (umips_movep_target_p): Likewise.
7831 (umips_12bit_offset_address_p): Likewise.
7832 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7833 (mips_base_mips16): Rename this...
7834 (mips_base_compression_flags): ...to this. Update all uses.
7835 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7836 (mips_mips16_decl_p): Delete.
7837 (mips_nomips16_decl_p): Delete.
7838 (mips_get_compress_on_flags): New function.
7839 (mips_get_compress_off_flags): New function.
7840 (mips_get_compress_mode): New function.
7841 (mips_get_compress_on_name): New function.
7842 (mips_get_compress_off_name): New function.
7843 (mips_insert_attributes): Support multiple compression types.
7844 (mips_merge_decl_attributes): Likewise.
7845 (umips_12bit_offset_address_p): New function.
7846 (mips_start_function_definition): Emit .set micromips directive.
7847 (mips_call_may_need_jalx_p): New function.
7848 (mips_function_ok_for_sibcall): Add microMIPS support.
7849 (mips_print_operand_punctuation): Support short delay slots and
7851 (umips_swm_mask, umips_swm_encoding): New.
7852 (umips_build_save_restore): New function.
7853 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7854 (was_mips16_p): Remove.
7855 (old_compression_mode): New.
7856 (mips_set_compression_mode): New function.
7857 (mips_set_current_function): Add microMIPS support.
7858 (mips_option_override): Likewise.
7859 (umips_save_restore_pattern_p): New function.
7860 (umips_output_save_restore): New function.
7861 (umips_load_store_pair_p_1): New function.
7862 (umips_load_store_pair_p): New function.
7863 (umips_output_load_store_pair_1): New function.
7864 (umips_output_load_store_pair): New function.
7865 (umips_movep_target_p) New function.
7866 (mips_prepare_pch_save): Add microMIPS support.
7867 * config/mips/mips.h (TARGET_COMPRESSION): New.
7868 (TARGET_CPU_CPP_BUILTINS): Update macro
7869 to use new compression flags and to support microMIPS.
7870 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7871 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7872 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7873 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7874 (ASM_SPEC): Support mmicromips and mno-micromips.
7875 (M16STORE_REG_P): New macro.
7876 (MIPS_CALL): Support TARGET_MICROMIPS.
7877 (MICROMIPS_J): New macro.
7878 (mips_base_mips16): Rename this...
7879 (mips_base_compression_flags): ...to this.
7880 (UMIPS_12BIT_OFFSET_P): New macro.
7881 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7882 (MULTILIB_DIRNAMES): Likewise.
7884 2013-02-24 Jakub Jelinek <jakub@redhat.com>
7887 * target-globals.c (save_target_globals): For init_reg_sets and
7888 target_reinit remporarily set this_fn_optabs to this_target_optabs.
7890 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
7892 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7893 * config/aarch64/t-aarch64
7894 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
7896 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
7899 * lra-constraints.c (process_alt_operands): Reload operand
7900 conflicting with earlier clobber only if no more other conflicting
7903 2013-02-22 Jakub Jelinek <jakub@redhat.com>
7906 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
7907 if not linking a shared library.
7909 2013-02-22 Seth LaForge <sethml@google.com>
7911 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
7913 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
7915 * config/arm/arm.md (split for extendsidi): Update condition.
7916 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
7917 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
7918 (qhs_zextenddi_cstr): Likewise.
7920 2013-02-21 Jakub Jelinek <jakub@redhat.com>
7923 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
7924 avoid signed wrapping.
7925 (expand_mult): Handle properly multiplication by
7926 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
7927 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
7928 in the compiler if coeff is HOST_WIDE_INT_MIN.
7929 (expand_divmod): Don't make ext_op1 static, change it's type to
7930 uhwi. Avoid undefined behavior in -INTVAL (op1).
7932 PR rtl-optimization/50339
7933 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
7935 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
7936 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
7937 into splitting_ashiftrt field.
7938 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
7940 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
7943 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
7946 * trans-mem.c (execute_tm_mark): Do not expand transactions that
7947 are sure to go irrevocable.
7949 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
7951 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7952 scalars are valid operands.
7954 2013-02-21 Martin Jambor <mjambor@suse.cz>
7956 PR tree-optimization/56310
7957 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7958 only matching indices and non-negative final offsets.
7959 (intersect_aggregates_with_edge): Pass src_idx to
7960 agg_replacements_to_vector. Pass src_idx insstead of index to
7961 intersect_with_agg_replacements.
7963 2013-02-21 Martin Jambor <mjambor@suse.cz>
7965 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7966 instead of hard-wired defaults.
7968 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
7970 * doc/invoke.texi (MIPS Options): Update documentation of the
7971 floating-point multiply-accumulate instruction restrictions.
7973 2013-02-21 Kostya Serebryany <kcc@google.com>
7975 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7976 asan_shadow_offset on x86_64 linux.
7978 2013-02-21 Richard Biener <rguenther@suse.de>
7980 PR tree-optimization/56415
7982 2013-02-11 Richard Biener <rguenther@suse.de>
7984 PR tree-optimization/56273
7985 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7988 2013-02-21 Jakub Jelinek <jakub@redhat.com>
7991 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7995 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7996 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7998 2013-02-20 Jan Hubicka <jh@suse.cz>
8000 PR tree-optimization/56265
8001 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
8002 when target is referenced for first time.
8004 2013-02-20 Richard Biener <rguenther@suse.de>
8006 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
8007 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
8008 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8009 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8010 not return anything.
8011 (rename_ssa_copies): Do not remove unused locals.
8012 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
8013 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
8014 * passes.c (execute_function_todo): Do not schedule unused locals
8015 removal if cleanup_tree_cfg did something.
8016 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8017 about the number of removed locals.
8019 2013-02-20 Richard Biener <rguenther@suse.de>
8021 PR tree-optimization/56398
8022 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
8024 2013-02-20 Martin Jambor <mjambor@suse.cz>
8026 PR tree-optimization/55334
8027 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8028 restricted pointers to arrays.
8030 2013-02-20 Richard Biener <rguenther@suse.de>
8031 Jakub Jelinek <jakub@redhat.com>
8033 PR tree-optimization/56396
8034 * tree-ssa-ccp.c (n_const_val): New static variable.
8035 (get_value): Return NULL for SSA names we don't have a lattice
8037 (ccp_initialize): Initialize n_const_val.
8038 * tree-ssa-copy.c (n_copy_of): New static variable.
8039 (init_copy_prop): Initialize n_copy_of.
8040 (get_value): Return NULL_TREE for SSA names we don't have a
8043 2013-02-20 Martin Jambor <mjambor@suse.cz>
8045 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8047 2013-02-20 Richard Biener <rguenther@suse.de>
8049 * genpreds.c (write_lookup_constraint): Do not compare first
8050 letter of the constraint again.
8052 2013-02-20 Richard Biener <rguenther@suse.de>
8054 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8056 (get_use_iv_cost): Terminate hashtable walk when coming across
8059 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8061 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8062 reassociation for avx2 targets.
8064 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8066 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8067 Add version check for v8.10.a to enable microblaze_has_clz
8068 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
8069 version and TARGET_PATTERN_COMPARE check
8070 * config/microblaze/microblaze.md: New clzsi2 instruction
8072 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8074 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
8075 function before branching.
8077 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8079 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8081 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8083 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8086 * sel-sched.c: Include ira.h.
8087 (implicit_clobber_conflict_p): New function.
8088 (moveup_expr): Use it.
8089 * Makefile.in (sel-sched.o): Depend on ira.h.
8091 2013-02-19 Richard Biener <rguenther@suse.de>
8093 PR tree-optimization/56384
8094 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8095 (vn_hash_type): Split out from ...
8096 (vn_hash_constant_with_type): ... here.
8097 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8098 (vn_phi_eq): Compare types from vn_phi_s structure.
8099 (vn_phi_lookup): Populate vn_phi_s type.
8100 (vn_phi_insert): Likewise.
8102 2013-02-19 Jakub Jelinek <jakub@redhat.com>
8104 PR tree-optimization/56350
8105 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8106 if haven't found reduction or nested cycle operand, rather than
8107 asserting we must find it.
8109 PR tree-optimization/56381
8110 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8113 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
8114 Jakub Jelinek <jakub@redhat.com>
8117 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8118 (swap_optab_enable): Same.
8119 (init_all_optabs): Use argument instead of global.
8120 * tree.h (struct tree_optimization_option): New field target_optabs.
8121 * expr.h (init_all_optabs): Add argument to prototype.
8122 (TREE_OPTIMIZATION_OPTABS): New.
8123 (save_optabs_if_changed): Protoize.
8124 * optabs.h: Declare this_fn_optabs.
8125 * optabs.c (save_optabs_if_changed): New.
8126 Declare this_fn_optabs.
8127 (init_optabs): Add argument to init_all_optabs() call.
8128 * function.c (invoke_set_current_function_hook): Handle per
8130 * function.h (struct function): New field optabs.
8131 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8132 optimization_current_node has changed.
8133 * target-globals.h (save_target_globals_default_opts): Protoize.
8134 * target-globals.c (save_target_globals_default_opts): New.
8136 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8139 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8140 registers %fr12 and %fr12R as call used.
8143 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
8144 and HImode, require all displacements to be an integer multiple of
8146 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8147 only allow QImode and HImode when reload is in progress and strict is
8148 true. Likewise for symbolic addresses. Use base14_operand to check
8149 displacements in REG+BASE addresses.
8151 2013-02-18 Richard Biener <rguenther@suse.de>
8153 PR tree-optimization/56366
8154 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8155 handle sign-conversion of outer-loop initial induction value.
8157 2013-02-18 Richard Biener <rguenther@suse.de>
8160 * cfghooks.c (merge_blocks): If we merge a latch into another
8161 block adjust references to it.
8162 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8163 (verify_loop_structure): Verify that a recorded latch is in fact
8166 2013-02-18 Richard Biener <rguenther@suse.de>
8168 PR tree-optimization/56321
8169 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8170 order SSA name release and virtual operand unlinking.
8172 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8174 * config/microblaze/microblaze.md (save_stack_block): Define.
8175 (restore_stack_block): Likewise.
8177 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8179 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8180 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8181 * config/microblaze/microblaze.c (microblaze_option_override):
8182 Bail out early for PIC modes when target does not support PIC.
8184 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8186 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8187 Replace with a microblaze version.
8188 (microblaze_trampoline_init): Adapt for microblaze.
8189 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8192 2013-02-16 Jakub Jelinek <jakub@redhat.com>
8193 Dodji Seketeli <dodji@redhat.com>
8196 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
8197 (instrument_mem_region_access): Do not forget to always put
8198 instrumentation of the of 'base' and 'base + len' in a "if (len !=
8199 0) statement, even for cases where either 'base' or 'base + len'
8200 are not instrumented -- because they have been previously
8201 instrumented. Simplify the logic by putting all the statements
8202 instrument 'base + len' inside a sequence, and then insert that
8203 sequence right before the current insertion point. Then, to
8204 instrument 'base + len', just get an iterator on that statement.
8205 And do not forget to update the pointer to iterator the function
8206 received as argument.
8208 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8210 PR rtl-optimization/56348
8211 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8213 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8215 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8216 (clean_graph_dump_file): Pass base to start_graph_dump.
8218 2013-02-14 Richard Henderson <rth@redhat.com>
8221 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
8223 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
8225 * collect2-aix.h: Define F_LOADONLY.
8227 2013-02-14 Richard Biener <rguenther@suse.de>
8230 * varasm.c (output_constant_def_1): Get the decl representing
8231 the constant as argument.
8232 (output_constant_def): Wrap output_constant_def_1.
8233 (make_decl_rtl): Use output_constant_def_1 with the decl
8234 representing the constant.
8235 (build_constant_desc): Optionally re-use a decl already
8236 representing the constant.
8237 (tree_output_constant_def): Adjust.
8239 2013-02-14 Dodji Seketeli <dodji@redhat.com>
8242 * asan.c (instrument_builtin_call): Really put the length of the
8243 second source argument into src1_len.
8245 2013-02-13 Jakub Jelinek <jakub@redhat.com>
8247 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
8248 argument. If it is false, don't create edge from then_bb to
8250 (insert_if_then_before_iter): Pass true to it.
8251 (build_check_stmt): Pass false to it.
8252 (transform_statements): Flush hash table only on extended basic
8253 block boundaries, rather than at the beginning of every bb.
8254 Don't flush hash table on nonfreeing_call_p calls.
8255 * tree-flow.h (nonfreeing_call_p): New prototype.
8256 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
8258 2013-02-13 David S. Miller <davem@davemloft.net>
8260 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
8262 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
8265 * ira.c (max_regno_before_ira): Move from ...
8267 (fix_reg_equiv_init): Use max_regno_before_ira instead of
8270 2013-02-13 Jakub Jelinek <jakub@redhat.com>
8272 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8274 2013-02-13 Richard Biener <rguenther@suse.de>
8277 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8278 globals in MEM_REFs.
8280 2013-02-13 Richard Biener <rguenther@suse.de>
8282 * loop-init.c (loop_optimizer_init): Clear loop state when
8283 re-initializing preserved loops.
8284 * loop-unswitch.c (unswitch_single_loop): Return whether
8285 we unswitched the loop. Do not verify loop state here.
8286 (unswitch_loops): When we unswitched a loop discover new loops.
8288 2013-02-13 Kostya Serebryany <kcc@google.com>
8290 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8292 * sanitizer.def: Rename __asan_init to __asan_init_v1.
8294 2013-02-12 Dodji Seketeli <dodji@redhat.com>
8296 Avoid instrumenting duplicated memory access in the same basic block
8297 * Makefile.in (asan.o): Add new dependency on hash-table.h
8298 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8299 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8300 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8301 (free_mem_ref_resources, has_mem_ref_been_instrumented)
8302 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8303 (get_mem_ref_of_assignment): New functions.
8304 (get_mem_refs_of_builtin_call): Extract from
8305 instrument_builtin_call and tweak a little bit to make it fit with
8307 (instrument_builtin_call): Use the new
8308 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
8309 of is_gimple_builtin_call.
8310 (instrument_derefs, instrument_mem_region_access): Insert the
8311 instrumented memory reference into the hash table.
8312 (maybe_instrument_assignment): Renamed instrument_assignment into
8313 this, and change it to advance the iterator when instrumentation
8314 actually happened and return true in that case. This makes it
8315 homogeneous with maybe_instrument_assignment, and thus give a
8316 chance to callers to be more 'regular'.
8317 (transform_statements): Clear the memory reference hash table
8318 whenever we enter a new BB, when we cross a function call, or when
8319 we are done transforming statements. Use
8320 maybe_instrument_assignment instead of instrumentation. No more
8321 need to special case maybe_instrument_assignment and advance the
8322 iterator after calling it; it's now handled just like
8323 maybe_instrument_call. Update comment.
8325 2013-02-13 Richard Biener <rguenther@suse.de>
8327 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8328 Fix loop discovery code.
8330 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
8333 * lra-constraints.c (process_alt_operands): Match early clobber
8334 operand with itself. Check conflicts with earlyclobber only if
8335 the operand is not reloaded. Prefer to reload conflicting operand
8336 if earlyclobber and matching operands are the same.
8338 2013-02-12 Richard Biener <rguenther@suse.de>
8341 * lto-streamer-out.c (write_symbol): Do not output symbols
8342 for hard register variables.
8344 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
8347 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8348 (umulsidi3_insn, mulsidi3_insn): New insns.
8350 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
8352 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8353 (struct tune_params): Add vec_costs field.
8354 * config/arm/arm.c (arm_builtin_vectorization_cost)
8355 (arm_add_stmt_cost): New functions.
8356 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8357 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8358 (arm_default_vec_cost): New struct of type cpu_vec_costs.
8359 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8360 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8361 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8362 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8364 2013-02-12 Richard Biener <rguenther@suse.de>
8367 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8368 decls again if possible.
8370 2013-02-12 Richard Biener <rguenther@suse.de>
8373 * tree-ssa.c (verify_ssa_name): Fix check, move
8374 SSA_NAME_IN_FREE_LIST check up.
8376 2013-02-12 Jakub Jelinek <jakub@redhat.com>
8377 Steven Bosscher <steven@gcc.gnu.org>
8379 PR rtl-optimization/56151
8380 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8381 equal to op0 or op1, and last_insn pattern is CODE operation
8382 with MEM dest and one of the operands matches that MEM.
8384 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
8386 * doc/extend.texi: Document Function Multiversioning and "default"
8387 parameter string to target attribute.
8388 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8389 target attribute parameter is "default".
8390 (ix86_compare_version_priority): Remove checks for target attribute.
8391 (ix86_mangle_function_version_assembler_name): Change error to sorry.
8392 Remove check for target attribute equal to NULL. Add assert.
8393 (ix86_generate_version_dispatcher_body): Change error to sorry.
8395 2013-02-11 Iain Sandoe <iain@codesourcery.com>
8396 Jack Howarth <howarth@bromo.med.uc.edu>
8397 Patrick Marlier <patrick.marlier@gmail.com>
8400 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8401 define ENDFILE_SPEC as TM_DESTRUCTOR.
8402 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8404 2013-02-11 Alexander Potapenko <glider@google.com>
8405 Jack Howarth <howarth@bromo.med.uc.edu>
8406 Jakub Jelinek <jakub@redhat.com>
8409 * config/darwin.c (cdtor_record): Rename ctor_record.
8410 (sort_cdtor_records): Rename sort_ctor_records.
8411 (finalize_dtors): New routine to sort destructors by
8412 priority before use in assemble_integer.
8413 (machopic_asm_out_destructor): Use finalize_dtors if needed.
8415 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
8417 PR rtl-optimization/56275
8418 * simplify-rtx.c (avoid_constant_pool_reference): Check that
8419 offset is non-negative and less than cmode size before
8420 calling simplify_subreg.
8422 2013-02-11 Richard Biener <rguenther@suse.de>
8424 PR tree-optimization/56264
8425 * cfgloop.h (fix_loop_structure): Adjust prototype.
8426 * loop-init.c (fix_loop_structure): Return the number of
8427 newly discovered loops.
8428 * tree-cfgcleanup.c (repair_loop_structures): When new loops
8429 are discovered, do a full loop-closed SSA rewrite.
8431 2013-02-11 Richard Biener <rguenther@suse.de>
8433 PR tree-optimization/56273
8434 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8436 (check_array_ref): Fix missing newline in dumps.
8437 (search_for_addr_array): Likewise.
8439 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
8441 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8443 2013-02-09 Jakub Jelinek <jakub@redhat.com>
8446 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8448 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
8450 PR rtl-optimization/56246
8451 * lra-constraints.c (simplify_operand_subreg): Try to reuse
8453 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8454 constraints are satisfied.
8456 2013-02-08 Jeff Law <law@redhat.com>
8459 * emit-rtl.c (reg_is_parm_p): New function.
8460 * regs.h (reg_is_parm_p): New prototype.
8461 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8462 callee-clobbered registers.
8464 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8467 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8468 If there is no implicit builtin declaration, just return NULL.
8470 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8472 * config/i386/sse.md (FMAMODEM): New mode iterator.
8473 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8474 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8476 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8478 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8479 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8480 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8482 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8484 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8485 (microblaze*-*-elf): Likewise.
8486 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8488 * config/microblaze/microblaze-c.c: Add builtin defines for
8489 _LITTLE_ENDIAN and _BIG_ENDIAN.
8490 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8491 add to TARGET_DEFAULT flags.
8492 Expand ASM_SPEC and LINK_SPEC.
8493 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8494 * config/microblaze/microblaze.md: Update extendsidi2 and
8495 movdi_internal instructions to use low-order / high-order reg
8497 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8498 options and inversemask / mask of LITTLE_ENDIAN.
8499 * config/microblaze/t-microblaze: Expand multilib options to
8500 include mlittle-endian (le) and update exceptions patterns.
8502 2013-02-08 Jakub Jelinek <jakub@redhat.com>
8504 PR rtl-optimization/56195
8505 * lra-constraints.c (get_reload_reg): Don't reuse regs
8506 if they have smaller mode than requested, if they have
8507 wider mode than requested, try to return a SUBREG.
8509 PR tree-optimization/56250
8510 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8511 if type is unsigned and code isn't MULT_EXPR.
8513 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
8515 PR tree-optimization/56064
8516 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8517 bits according to mode.
8518 * fixed-value.h (fixed_from_double_int)
8519 (const_fixed_from_double_int): Adjust comments.
8521 2013-02-08 Richard Biener <rguenther@suse.de>
8524 * lto-streamer.h (struct data_in): Remove current_file, current_line
8525 and current_col members.
8526 * lto-streamer-out.c (lto_output_location): Stream changed bits
8527 en-block for efficiency.
8528 * lto-streamer-in.c (clear_line_info): Remove.
8529 (lto_input_location): Cache current file, line and column
8530 globally via local statics. Read changed bits en-block.
8531 (input_function): Do not call clear_line_info.
8532 (lto_read_body): Likewise.
8533 (lto_input_toplevel_asms): Likewise.
8535 2013-02-08 Michael Matz <matz@suse.de>
8537 PR tree-optimization/52448
8538 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8539 (nt_call_phase): New static.
8540 (add_or_mark_expr): Only mark accesses with newer phase than any
8542 (nonfreeing_call_p): New.
8543 (nt_init_block): Update nt_call_phase, mark blocks as visited.
8544 (nt_fini_block): Keep blocks marked as visited.
8545 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8547 2013-02-08 Richard Biener <rguenther@suse.de>
8549 * ira.c (ira): Free broken dominator information.
8551 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8553 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8555 2013-02-08 Marek Polacek <polacek@redhat.com>
8557 * cfgloop.c (verify_loop_structure): Add more checking of headers.
8559 2013-02-08 Richard Biener <rguenther@suse.de>
8562 * cfgloop.h (flow_loops_find): Adjust.
8563 (bb_loop_header_p): Declare.
8564 * cfgloop.c (bb_loop_header_p): New function split out from ...
8565 (flow_loops_find): ... here. Adjust function signature,
8566 support incremental loop structure update.
8567 (verify_loop_structure): Cleanup. Verify a loop is a loop.
8568 * cfgloopmanip.c (fix_loop_structure): Move ...
8569 * loop-init.c (fix_loop_structure): ... here.
8570 (apply_loop_flags): Split out from ...
8571 (loop_optimizer_init): ... here.
8572 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
8573 in incremental mode, only remove dead loops here.
8575 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
8578 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8579 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8580 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8581 (*round<mode>3.libgcc): New insns for fixed-modes.
8582 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8583 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8584 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8585 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8586 implementations. Define to __builtin_avr_absFX,
8587 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8588 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8589 __builtin_avr_countlsFX, respectively.
8590 * config/avr/avr-c.c (target.h): Include it.
8591 (enum avr_builtin_id): New enum.
8592 (avr_resolve_overloaded_builtin): New static function.
8593 (avr_register_target_pragmas): Use it to set
8594 targetm.resolve_overloaded_builtin.
8595 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8596 tree nodes used by DEF_BUILTIN.
8597 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8598 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8599 <AVR_BUILTIN_xxBITS>: Same.
8601 2013-02-08 Richard Biener <rguenther@suse.de>
8603 * cfgloop.c (verify_loop_structure): Properly handle
8604 a loop exiting to another loop header.
8605 * ira-int.h (ira_loops): Remove.
8606 * ira.c (ira_loops): Remove.
8607 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8608 (do_reload): Use loop_optimizer_finalize.
8609 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8610 number_of_loops to access the loop tree.
8611 (more_one_region_p): Likewise.
8612 (finish_loop_tree_nodes): Likewise.
8613 (rebuild_regno_allocno_maps): Likewise.
8614 (mark_loops_for_removal): Likewise.
8615 (mark_all_loops_for_removal): Likewise.
8616 (remove_unnecessary_regions): Likewise.
8617 (ira_build): Likewise.
8618 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8620 2013-02-08 Richard Biener <rguenther@suse.de>
8622 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8623 * ipa-pure-const.c (analyze_function): Avoid calling
8624 mark_irreducible_loops twice.
8625 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
8627 2013-02-07 David S. Miller <davem@davemloft.net>
8629 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8631 * var-tracking.c (vt_add_function_parameter): Test the presence of
8632 HAVE_window_save properly and do not remap argument registers when
8633 we have a leaf function.
8635 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
8638 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8640 * config/i386/i386.c (ix86_print_operand): Ditto.
8642 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8644 * lra-constraints.c (process_alt_operands): Fix recently added comment.
8646 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8648 PR rtl-optimization/56225
8649 * lra-constraints.c (process_alt_operands): Check that reload hard
8650 reg can hold value for strict_low_part.
8652 2013-02-07 Jakub Jelinek <jakub@redhat.com>
8655 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8656 dwarf2out_end_function.
8657 (in_first_function_p, maybe_at_text_label_p,
8658 first_loclabel_num_not_at_text_label): New variables.
8659 (dwarf2out_var_location): In the first function find out
8660 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
8661 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8664 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8666 PR rtl-optimization/56178
8667 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8668 SUBREG of a register. Tidy up related block of code.
8669 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8670 note if the source is a register or a SUBREG of a register.
8672 2013-02-07 Jakub Jelinek <jakub@redhat.com>
8675 * config/rs6000/rs6000.md (ptrm): New mode attr.
8676 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8677 call_value_indirect_aix<pttrsize>,
8678 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8681 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8683 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8684 if -bnortl. Convert to strcmp and strncmp.
8686 2013-02-07 Alan Modra <amodra@gmail.com>
8689 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8690 addresses won't wrap when offsetting.
8691 (rs6000_secondary_reload): Provide secondary reloads needed for
8692 wrapping LO_SUM addresses.
8694 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8696 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8697 MACH, just __MACH__.
8699 2013-02-06 Richard Biener <rguenther@suse.de>
8701 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8702 instead of calling fix_loop_structure.
8704 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8707 * omp-low.c (use_pointer_for_field): Return false if
8708 lower_send_shared_vars doesn't generate any copy-out code.
8710 2013-02-06 Tom de Vries <tom@codesourcery.com>
8712 PR rtl-optimization/56131
8713 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8714 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8715 of the label is NULL. Add comment.
8717 2013-02-05 Jakub Jelinek <jakub@redhat.com>
8719 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8722 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8723 (STATIC_LIBTSAN_LIBS): Likewise.
8724 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8725 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8726 is defined, don't add anything else beyond that.
8727 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8728 (LINK_COMMAND_SPEC): Use them.
8730 PR tree-optimization/56205
8731 * tree-stdarg.c (check_all_va_list_escapes): Return true if
8732 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8733 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8735 2013-02-05 Richard Biener <rguenther@suse.de>
8737 PR tree-optimization/53342
8738 PR tree-optimization/53185
8739 * tree-vectorizer.h (vect_check_strided_load): Remove.
8740 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8741 not disallow peeling for vectorized strided loads.
8742 (vect_check_strided_load): Make static and simplify.
8743 (vect_analyze_data_refs): Adjust.
8744 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8745 correctly when vectorizing strided loads.
8747 2013-02-05 Richard Biener <rguenther@suse.de>
8749 * doc/install.texi: Refer to ISL, not PPL.
8751 2013-02-05 Jan Hubicka <jh@suse.cz>
8753 PR tree-optimization/55789
8754 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8756 2013-02-05 Jan Hubicka <jh@suse.cz>
8758 PR tree-optimization/55789
8759 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8760 the dead call anyway.
8762 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
8765 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8767 2013-02-04 Alexander Potapenko <glider@google.com>
8768 Jack Howarth <howarth@bromo.med.uc.edu>
8769 Jakub Jelinek <jakub@redhat.com>
8772 * config/darwin.c (sort_ctor_records): Stabilized qsort
8773 on constructor priority by using original position.
8774 (finalize_ctors): New routine to sort constructors by
8775 priority before use in assemble_integer.
8776 (machopic_asm_out_constructor): Use finalize_ctors if needed.
8778 2013-02-04 Jakub Jelinek <jakub@redhat.com>
8781 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8782 about visibility on artificial decls.
8783 * config/sol2.c (solaris_assemble_visibility): Likewise.
8785 2013-02-04 Kai Tietz <ktietz@redhat.com>
8788 * config/i386/i386.c (function_value_ms_64): Add additional valtype
8789 argument and improve checking of return-argument types for 16-byte
8791 (ix86_function_value_1): Add additional valtype argument on call
8792 of function_value_64.
8793 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8794 handling infunction_value_64 function.
8796 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8798 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
8800 2013-02-04 Richard Biener <rguenther@suse.de>
8802 PR tree-optimization/56188
8803 * tree-ssa-structalias.c (label_visit): Consider case with
8804 initially non-empty points-to set.
8805 (perform_var_substitution): Dump node mapping and clean up.
8807 2013-02-04 Richard Guenther <rguenther@suse.de>
8810 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8811 node prevail as last resort.
8812 (lto_symtab_merge_decls): Remove guard on LTRANS here.
8813 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
8815 2013-02-04 Richard Biener <rguenther@suse.de>
8817 PR tree-optimization/56113
8818 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8820 (equiv_class_lookup_or_add): ... this.
8821 (label_visit): Adjust and fix error in previous patch.
8822 (perform_var_substitution): Adjust.
8824 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8826 * config/sh/divtab.c: Fix formatting and comments throughout the file.
8827 * config/sh/sh4-300.md: Likewise.
8828 * config/sh/sh4a.md: Likewise.
8829 * config/sh/constraints.md: Likewise.
8830 * config/sh/sh.md: Likewise.
8831 * config/sh/netbsd-elf.h: Likewise.
8832 * config/sh/predicates.md: Likewise.
8833 * config/sh/sh-protos.h: Likewise.
8834 * config/sh/ushmedia.h: Likewise.
8835 * config/sh/linux.h: Likewise.
8836 * config/sh/sh.c: Likewise.
8837 * config/sh/superh.h: Likewise.
8838 * config/sh/elf.h: Likewise.
8839 * config/sh/sh4.md: Likewise.
8840 * config/sh/sh.h: Likewise.
8842 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8844 * config/pa/constraints.md: Adjust unused letters. Change "T"
8845 constraint to match_test floating_point_store_memory_operand().
8846 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8847 (base14_operand): New.
8848 (floating_point_store_memory_operand): New.
8849 (integer_store_memory_operand): Revise to use base14_operand and
8850 reg_plus_base_memory_operand.
8851 (move_dest_operand): Allow symbolic_memory_operands.
8852 (symbolic_memory_operand): Check for LO_SOM.
8853 (symbolic_operand): Change default case to break.
8854 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8855 CONST_DOUBLE values to be reloaded by putting them into memory when
8856 the destination is a floating point register.
8857 (movdf): Remove code to handle CONST_DOUBLE.
8859 (reload_indf_r1): New.
8860 (reload_insf_r1): New.
8861 Consistently use "Q" and "T" constraints with integer and floating
8862 point move instructions, respectively.
8863 (movdi): Remove FAIL.
8864 Change predicate for source operand unamed DImode move from
8865 general_operand to move_src_operand.
8866 (umulsidi3): Change predicate for destination operand to
8868 Likewise for similar unamed patterns.
8869 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8870 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8871 (hppa_legitimize_address): Simplify mask calculation.
8872 (pa_emit_move_sequence): Revised handling of secondary reloads from
8873 REG+D addresses for floating point loads and stores. Directly handle
8874 loading CONST0_RTX (mode) to a floating point register.
8875 (pa_secondary_reload): Handle reloading DF and SFmode constant values
8876 to floating point registers. Don't restrict secondary reloads to
8877 floating point registers to integer modes. Revise some comments and
8879 (TARGET_LEGITIMATE_ADDRESS_P): Define.
8880 (pa_legitimate_address_p): New.
8881 (pa_legitimize_reload_address): New.
8882 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8883 (STRICT_REG_OK_FOR_BASE_P): New.
8884 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
8885 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8887 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
8888 Andrew Dixie <andrewd@gentrack.com>
8890 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8893 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
8895 * expmed.c (extract_bit_field_1): Pass the full width of the
8896 structure to get_best_reg_extraction_insn.
8898 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
8901 * configure.ac (use_cxa_atexit): Add AIX.
8902 * configure: Regenerate.
8904 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
8906 2013-02-01 Jakub Jelinek <jakub@redhat.com>
8909 * final.c (need_profile_function): New variable.
8910 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
8911 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
8912 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
8913 notes, targetm.asm_out.function_prologue doesn't emit anything,
8914 HAVE_prologue and profiler should be emitted before prologue,
8915 set need_profile_function instead of emitting it.
8916 (final_scan_insn): If need_profile_function, emit
8917 profile_function on the first NOTE_INSN_BASIC_BLOCK or
8918 NOTE_INSN_FUNCTION_BEG note.
8920 2013-02-01 Richard Henderson <rth@redhat.com>
8922 * config/rs6000/rs6000.md (smulditi3): New.
8925 * config/alpha/alpha.md (umulditi3): New.
8927 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
8929 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
8930 (ASM_OUTPUT_ALIGNED_LOCAL): New.
8932 2013-02-01 Richard Biener <rguenther@suse.de>
8934 PR tree-optimization/56113
8935 * tree-ssa-structalias.c (label_visit): Reduce work for
8936 single-predecessor nodes.
8938 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
8940 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
8941 range isn't testing for zero.
8943 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
8946 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
8948 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
8949 Nick Clifton <nickc@redhat.com>
8951 * config/v850/constraints.md (Q): Define as a memory constraint.
8952 * config/v850/predicates.md (label_ref_operand): New predicate.
8953 (e3v5_shift_operand): New predicate.
8954 (ior_operator): New predicate.
8955 * config/v850/t-v850: Add e3v5 multilib.
8956 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8957 (v850_gen_movdi): Prototype.
8958 * config/v850/v850.c: Add support for e3v5 architecture.
8959 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8961 (construct_save_jarl): Add e3v5 long JARL support.
8962 (v850_adjust_insn_length): New function. Adjust length of call
8963 insns when using e3v5 instructions.
8964 (v850_gen_movdi): New function: Generate instructions to move a
8966 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8967 (CPP_SPEC): Define __v850e3v5__ as appropriate.
8968 (TARGET_USE_FPU): Enable for e3v5.
8969 (CONST_OK_FOR_W): New macro.
8970 (ADJUST_INSN_LENGTH): Define.
8971 * config/v850/v850.md (UNSPEC_LOOP): Define.
8972 (attr cpu): Add v850e3v5.
8973 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8974 (movdi): New pattern.
8975 (movdi_internal): New pattern.
8976 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8977 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8978 (cstoresf4): Likewise.
8979 (cstoredf4): Likewise.
8980 (insv): New pattern.
8981 (rotlso3_a): New pattern.
8982 (rotlsi3_b): New pattern
8983 (rotlsi3_v850e3v5): New pattern.
8984 (doloop_begin): New pattern.
8985 (fix_loop_counter): New pattern.
8986 (doloop_end): New pattern.
8987 (branch_normal): Add e3v5 long branch support.
8988 (branch_invert): Likewise.
8989 (branch_z_normal): Likewise.
8990 (branch_z_invert): Likewise.
8991 (branch_nz_normal): Likewise.
8992 (branch_nz_invert): Likewise.
8993 (call_internal_short): Add e3v5 register-indirect JARL support.
8994 (call_internal_long): Likewise.
8995 (call_value_internal_short): Likewise.
8996 (call_value_internal_long): Likewise.
8997 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8998 (mloop): New option.
8999 * config.gcc: Add support for configuring v840e3v5 target.
9000 * doc/invoke.texi: Document new v850 specific command line options.
9002 2013-01-31 Paul Koning <ni1d@arrl.net>
9006 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
9007 children if parent is a class.
9008 (prune_unused_types_prune): Don't add DW_AT_declaration.
9010 2013-01-31 Richard Biener <rguenther@suse.de>
9012 PR tree-optimization/56157
9013 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9014 match up operand with SLP child.
9016 2013-01-31 Jason Merrill <jason@redhat.com>
9019 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9020 parameters the first time.
9021 (gen_scheduled_generic_parms_dies): Check completeness here.
9023 2013-01-31 Richard Biener <rguenther@suse.de>
9026 * common.opt (faggressive-loop-optimizations): New flag,
9028 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9029 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9030 infer_loop_bounds_from_undefined by it.
9032 2013-01-31 Richard Biener <rguenther@suse.de>
9034 PR tree-optimization/56150
9035 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9036 visit virtual operands.
9037 (find_uses_to_rename_bb): Likewise.
9039 2013-01-31 Richard Biener <rguenther@suse.de>
9041 PR tree-optimization/56150
9042 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9043 mixed store non-store stmts.
9045 2013-01-30 Jakub Jelinek <jakub@redhat.com>
9048 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9049 LIBASAN_EARLY_SPEC is defined.
9050 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9051 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9053 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9056 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9057 invalid args instead of ICEing on it.
9058 (ix86_valid_target_attribute_tree): Return error_mark_node if
9059 ix86_valid_target_attribute_inner_p failed.
9060 (ix86_valid_target_attribute_p): Return false only if
9061 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9062 target("default") attribute.
9063 (sorted_attr_string): Change argument from const char * to tree,
9064 merge in all target attribute arguments rather than just one.
9065 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9066 instead of free. Avoid using strcat.
9067 (ix86_mangle_function_version_assembler_name): Mangle
9068 target("default") as if no target attribute is present. Adjust
9069 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9070 instead of xmalloc and XDELETEVEC instead of free.
9071 (ix86_function_versions): Don't return true if one of the decls
9072 doesn't have target attribute. If they don't and one of the decls
9073 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9074 sorted_attr_string caller. Use XDELETEVEC instead of free.
9075 (ix86_supports_function_versions): Remove.
9076 (make_name): Fix up formatting.
9077 (make_dispatcher_decl): Remove resolver_name and its initialization.
9078 Avoid leaking memory.
9079 (is_function_default_version): Return true if there is
9080 target("default") attribute rather than no target attribute at all.
9081 (make_resolver_func): Avoid leaking memory.
9082 (ix86_generate_version_dispatcher_body): Likewise.
9083 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9084 * target.def (supports_function_versions): Remove.
9085 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9086 * doc/tm.texi: Regenerated.
9088 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9090 PR rtl-optimization/56144
9091 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9092 for values with side effects.
9094 2013-01-30 Richard Biener <rguenther@suse.de>
9096 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9097 (sparseset_pop): Likewise.
9098 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9099 to be able to use quick_push in the worker loop.
9101 2013-01-30 Marek Polacek <polacek@redhat.com>
9103 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9105 2013-01-30 Richard Biener <rguenther@suse.de>
9108 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
9110 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
9112 PR tree-optimization/56064
9113 * fixed-value.c (fixed_from_double_int): New function.
9114 * fixed-value.h (fixed_from_double_int): New prototype.
9115 (const_fixed_from_double_int): New static inline function.
9116 * fold-const.c (native_interpret_fixed): New static function.
9117 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9118 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9119 (native_encode_fixed): New static function.
9120 (native_encode_expr) <FIXED_CST>: Use it.
9121 (native_interpret_int): Move double_int worker code to...
9122 * double-int.c (double_int::from_buffer): ...this new static method.
9123 * double-int.h (double_int::from_buffer): Prototype it.
9125 2013-01-30 Richard Biener <rguenther@suse.de>
9127 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9128 New pointer-map and obstack.
9129 (init_alias_vars): Allocate pointer-map and obstack.
9130 (delete_points_to_sets): Free them.
9131 (find_what_var_points_to): Cache result.
9132 (find_what_p_points_to): Adjust for changed interface of
9133 find_what_var_points_to.
9134 (compute_points_to_sets): Likewise.
9135 (ipa_pta_execute): Likewise.
9137 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9139 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9140 * configure: Regenerate.
9141 * config.in: Regenerate.
9142 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9143 #nobits/#progbits if supported.
9145 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9148 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9149 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9150 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9152 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9154 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9155 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
9157 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9159 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9160 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
9162 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9164 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9166 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9167 * config/arm/cortex-a7.md: New bypasses using
9168 arm_mac_accumulator_is_result.
9170 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9172 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
9173 (cortex_a7_neon_mla): Likewise.
9174 (cortex_a7_fpfmad): New reservation.
9175 (cortex_a7_fpmacs): Use ffmas and update required units.
9176 (cortex_a7_fpmuld): Update required units and latency.
9177 (cortex_a7_fpmacd): Likewise.
9178 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9179 (cortex_a7_neon). Likewise.
9180 (bypass) Update participating units.
9182 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9184 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9185 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9187 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9188 (vfp_fmul): Use ffmad.
9189 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9190 (cortex_r4_fmacd): Use ffmad.
9191 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9192 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9193 (cortex_a9_fmacd): Use ffmad.
9194 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9195 (cortex_a8_vfp_macd): Use ffmad.
9196 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
9197 (cortex_a5_fpmacd): Use ffmad.
9198 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
9199 (cortex_a15_vfp_macd): Use ffmad.
9200 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
9202 2013-01-29 Jason Merrill <jason@redhat.com>
9205 * varasm.c (default_assemble_visibility): Don't warn about
9206 visibility on artificial decls.
9208 2013-01-29 Richard Biener <rguenther@suse.de>
9210 PR tree-optimization/56113
9211 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9213 (label_visit): Free duplicate bitmaps and record the leader instead.
9214 (perform_var_substitution): Adjust.
9216 2013-01-29 Richard Biener <rguenther@suse.de>
9218 PR tree-optimization/55270
9219 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
9220 the CFG, schedule loops for fixup.
9222 2013-01-29 Nick Clifton <nickc@redhat.com>
9224 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
9227 2013-01-28 Leif Ekblad <leif@rdos.net>
9229 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
9230 * config/i386/i386.h (TARGET_RDOS): New macro.
9231 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
9232 * config/i386/i386.c (ix86_option_override_internal): For 64bit
9233 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
9234 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
9235 DEFAULT_LARGE_SECTION_THRESHOLD.
9236 * config/i386/i386.md (R14_REG, R15_REG): New constants.
9237 * config/i386/rdos.h: New file.
9238 * config/i386/rdos64.h: New file.
9240 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
9243 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
9246 2013-01-28 Jakub Jelinek <jakub@redhat.com>
9248 PR rtl-optimization/56117
9249 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
9250 call cselib_lookup_from_insn on the MEM before calling
9251 add_insn_mem_dependence.
9253 2013-01-28 Richard Biener <rguenther@suse.de>
9255 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
9256 to a stmt that didn't have one.
9257 (copy_phis_for_bb): Likewise for PHI arguments.
9258 (copy_debug_stmt): Likewise for debug stmts.
9260 2013-01-28 Richard Biener <rguenther@suse.de>
9262 PR tree-optimization/56034
9263 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
9264 (partition_builtin_p): Adjust.
9265 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
9266 it is the last partition.
9267 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9268 up the vertex for the definition.
9269 (classify_partition): Classify whether a partition is a
9270 PKIND_REDUCTION, thus has uses outside of the loop.
9271 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9272 Merge all PKIND_REDUCTION partitions into the last partition.
9273 (tree_loop_distribution): Seed partitions from reductions as well.
9275 2013-01-28 Jakub Jelinek <jakub@redhat.com>
9277 PR tree-optimization/56125
9278 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9279 pow(x,c) into sqrt(x) * powi(x, n/2) or
9280 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9281 optimizing for size.
9282 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9283 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9286 PR tree-optimization/56094
9287 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9288 to UNKNOWN_LOCATION while gimplifying expr.
9290 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
9293 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9294 operand 0 in movabs insn template for -masm=intel asm alternative.
9295 (*movabs<mode>_2): Ditto for operand 1.
9297 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
9300 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9303 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9305 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9308 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9310 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9311 Undef to avoid warning.
9313 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9315 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9316 * configure: Regenerate.
9318 2013-01-25 Jakub Jelinek <jakub@redhat.com>
9320 PR tree-optimization/56098
9321 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9322 for stmts with volatile ops.
9323 (cond_store_replacement): Don't optimize if assign has volatile ops.
9324 (cond_if_else_store_replacement_1): Don't optimize if either
9325 then_assign or else_assign have volatile ops.
9326 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9329 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9331 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9333 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9335 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9336 missing ':' in asm example.
9338 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
9340 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9341 entries into lane and laneq entries.
9342 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9343 Remove AdvSIMD scalar modes.
9344 (aarch64_sq<r>dmulh_laneq<mode>): New.
9345 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9347 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9348 builtin implementations to relfect changes in RTL in aarch64-simd.md.
9349 * config/aarch64/iterators.md (VCOND): New.
9352 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9355 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9356 Add NULL LIBNAME argument to existing definitions.
9357 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9358 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9359 * config/avr/avr.c (DEF_BUILTIN): Same.
9360 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9361 (avr_expand_builtin): Expand to a vanilla call if a libgcc
9362 implementation is available (DECL_ASSEMBLER_NAME is set).
9363 (avr_fold_absfx): New static function.
9364 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9365 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9366 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9368 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9369 (abshk, absk, abslk, absllk): Provide as static inline functions.
9371 2013-01-25 Marek Polacek <polacek@redhat.com>
9373 PR tree-optimization/56035
9374 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9376 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
9378 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9379 (*movtf_internal_rex64): Add (!o,C) alternative
9380 (*movxf_internal_rex64): Ditto.
9381 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9383 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
9385 * doc/invoke.texi: fix typo.
9386 * doc/objc.texi: fix typo.
9388 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9390 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9391 for the first two alternatives.
9393 2013-01-24 Diego Novillo <dnovillo@google.com>
9395 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
9396 (ggc-zone.o): Remove.
9397 * configure.ac: Remove option --with-gc.
9398 * configure: Re-generate.
9399 * doc/install.texi: Remove documentation for --with-gc.
9400 * gengtype.c (write_enum_defn): Remove. Update all users.
9401 (write_Types_process_field): Remove generation of gt_e_* argument.
9402 (output_type_enum): Remove. Update all users.
9403 (write_enum_defn): Remove. Update all users.
9404 (enum alloc_zone): Remove. Update all users.
9405 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
9406 * ggc-common.c (ggc_splay_alloc): Remove first argument.
9408 (struct ptr_data): Remove field TYPE. Update all users.
9409 (gt_pch_note_object): Remove argument TYPE. Update all users.
9410 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9412 * ggc-none.c (ggc_alloc_typed_stat): Remove.
9413 (struct alloc_zone): Remove.
9414 (ggc_internal_alloc_zone_stat): Remove.
9415 (ggc_internal_cleared_alloc_zone_stat): Remove.
9416 * ggc-page.c (ggc_alloc_typed_stat): Remove.
9417 (ggc_pch_count_object): Remove last argument. Update all users.
9418 (ggc_pch_alloc_object): Remove last argument. Update all users.
9419 (struct alloc_zone): Remove.
9420 * ggc-zone.c: Remove.
9421 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
9422 (struct alloc_zone): Remove.
9423 (ggc_alloc_typed_stat): Remove.
9424 (ggc_alloc_typed): Remove.
9425 (ggc_splay_alloc): Remove first argument.
9426 (rtl_zone): Remove. Update all users.
9427 (tree_zone): Remove. Update all users.
9428 (tree_id_zone): Remove. Update all users.
9429 (ggc_internal_zone_alloc_stat): Remove. Update all users.
9430 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
9431 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
9432 * tree-ssanames.c: Remove references to zone allocator in comments.
9434 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
9436 * config/avr/avr.c (avr_out_fract): Make register numbers that
9437 might be outside of source operand signed.
9439 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
9441 * config/i386/constraints.md (Yf): New constraint.
9442 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9443 of f constraint to conditionaly disable x87 register preferences.
9444 (*movdf_internal): Ditto.
9445 (*movsf_internal): Ditto.
9447 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
9450 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9451 that have operands with impossible constraints.
9452 Add a FIXME for a speed-up opportunity.
9453 * lra-constraints.c (process_alt_operands): Verify that a class
9454 selected from constraints on asms is valid for the operand mode.
9455 (curr_insn_transform): Remove incorrect comment.
9457 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
9459 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9460 TOC operand is a valid symbol ref in the constant pool.
9462 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9464 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
9466 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
9469 * config/avr/stdfix.h: New file.
9470 * t-avr (stdfix-gcc.h): New rule to build it.
9471 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9473 2013-01-23 Kostya Serebryany <kcc@google.com>
9475 * config/darwin.h: remove dependency on
9476 CoreFoundation (asan on Mac OS).
9478 2013-01-23 Jakub Jelinek <jakub@redhat.com>
9481 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9482 instead of cmpdi_operand for first comparison operand.
9483 Don't assert that comparison operands aren't both constants.
9485 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9487 * doc/install.texi (Downloading the Source): Update references to
9488 downloading separate components.
9490 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9492 * doc/extend.texi (__int128): Improve grammar.
9494 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
9497 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9498 alternative to (o,r).
9499 (*movdi_internal_rex64): Remove (!o,n) alternative.
9500 (DImode immediate->memory splitter): Remove.
9501 (DImode immediate->memory peephole2): Remove.
9502 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9503 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9504 alternative to (!o,*r).
9505 (*movtf_internal_sse): New pattern.
9506 (*movxf_internal_rex64): New pattern.
9507 (*movxf_internal): Disable for TARGET_64BIT.
9508 (*movdf_internal_rex64): Remove (!o,F) alternative.
9510 2013-01-22 Jakub Jelinek <jakub@redhat.com>
9513 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9514 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9515 * tree-vect-loop-manip.c (find_loop_location): Also ignore
9516 stmt locations where LOCATION_LOCUS of the stmt location is
9517 UNKNOWN_LOCATION or BUILTINS_LOCATION.
9520 * config/i386/i386.md (UNSPEC_STOS): New.
9521 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9522 *strsetqi_1): Add UNSPEC_STOS.
9524 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
9527 * doc/invoke.texi: Remove left over -Wsynth example.
9529 2013-01-21 Jakub Jelinek <jakub@redhat.com>
9531 PR tree-optimization/56051
9532 * fold-const.c (fold_binary_loc): Don't fold
9533 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9534 a narrowing conversion, or widening conversion from signed
9537 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
9539 PR rtl-optimization/56023
9540 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9541 dependent on debug instruction.
9543 2013-01-21 Martin Jambor <mjambor@suse.cz>
9546 * function.c (allocate_struct_function): Call
9547 invoke_set_current_function_hook earlier.
9549 2013-01-21 Jakub Jelinek <jakub@redhat.com>
9551 * reload1.c (init_reload): Only initialize reload_obstack
9552 during the first call.
9554 2013-01-21 Marek Polacek <polacek@redhat.com>
9556 * cfgloop.c (verify_loop_structure): Fix up grammar.
9558 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
9560 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9561 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9563 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9566 * config/arm/marvell-pj4.md: Update copyright year.
9567 Fix up use of alu to alu_reg and simple_alu_imm.
9569 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
9571 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9573 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
9576 * lra-constraints.c (curr_insn_transform): Don't reuse original
9577 insn for secondary memory move when memory mode should be different.
9579 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9581 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9582 atomic_storedi_1): New patterns.
9584 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9586 btver2 pipeline descriptions.
9587 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9589 * config/i386/i386.md (btver2_decode): New type attributes.
9590 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
9592 * config/i386/btver2.md: New file describing btver2 pipelines.
9594 2013-01-19 Andrew Pinski <apinski@cavium.com>
9596 PR tree-optimization/52631
9597 * tree-ssa-sccvn (visit_use): Before looking up the original
9598 statement, try looking up the simplified expression.
9600 2013-01-19 Anthony Green <green@moxielogic.com>
9602 * config/moxie/moxie.c (moxie_expand_prologue): Set
9603 current_function_static_stack_size.
9605 2013-01-18 Jakub Jelinek <jakub@redhat.com>
9607 PR tree-optimization/56029
9608 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9609 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9611 2013-01-18 Sharad Singhai <singhai@google.com>
9613 PR tree-optimization/55995
9614 * dumpfile.c (dump_loc): Print location only if available.
9615 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9617 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9620 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9621 secondary memory move.
9622 (inherit_reload_reg): Use rclass instead of cl for
9623 check_secondary_memory_needed_p.
9625 2013-01-18 Jakub Jelinek <jakub@redhat.com>
9628 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
9629 the case where writing real complex part of target modifies op1.
9631 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9633 * config/aarch64/aarch64-simd.md
9634 (aarch64_vcond_internal<mode>): Handle unordered cases.
9635 * config/aarch64/iterators.md (v_cmp_result): New.
9637 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9638 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9640 * config/arm/marvell-pj4.md: New file.
9641 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9642 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9643 (generic_vfp): Likewise.
9644 * config/arm/arm-cores.def: Add marvell-pj4.
9645 * config/arm/arm-tune.md: Regenerate.
9646 * config/arm/arm-tables.opt: Regenerate.
9647 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9648 * doc/invoke.texi: Document marvell-pj4.
9650 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9652 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9654 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9659 * var-tracking.c (negative_power_of_two_p): New.
9660 (global_get_addr_cache, local_get_addr_cache): New.
9661 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9662 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9664 (vt_stack_offset_p): Remove.
9665 (vt_canon_true_dep): Always canonicalize loc's address.
9666 (clobber_overlapping_mems): Make sure we have a MEM.
9667 (local_get_addr_clear_given_value): New.
9668 (val_reset): Clear local cached entries.
9669 (compute_bb_dataflow): Create and release the local cache.
9670 Disable duplicate MEMs clobbering.
9671 (emit_notes_in_bb): Clobber MEMs likewise.
9672 (vt_emit_notes): Create and release the local cache.
9673 (vt_initialize, vt_finalize): Create and release the global
9674 cache, respectively.
9675 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
9677 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9680 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9681 not found in the symtab.
9683 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9686 PR rtl-optimization/55547
9687 PR rtl-optimization/53827
9690 * alias.c (offset_overlap_p): New, factored out of...
9691 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9692 the conservative special case for symbolic constants. Don't
9693 adjust zero sizes on alignment.
9695 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9697 PR rtl-optimization/52573
9698 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9699 REG_UNUSED for the same register.
9701 2013-01-17 Richard Biener <rguenther@suse.de>
9702 Marek Polacek <polacek@redhat.com>
9704 PR rtl-optimization/55833
9705 * loop-unswitch.c (unswitch_loops): Move loop verification...
9706 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9707 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9708 Set it to true when we're removing a loop from hierarchy tree in
9709 an irreducible region.
9710 (fix_bb_placements): Adjust caller.
9711 (fix_loop_placements): Likewise.
9713 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
9715 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9716 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9717 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9718 Remove ID. Adjust comments.
9719 * config/avr/avr-c.c (avr_builtin_name): Remove.
9720 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9721 * config/avr/avr.c (avr_tolower): New static function.
9722 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9723 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9724 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9727 2013-01-17 Jan Hubicka <jh@suse.cz>
9729 PR tree-optimization/55273
9730 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9732 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
9735 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9736 store through atomic_store<mode>_1.
9737 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9739 2013-01-17 Martin Jambor <mjambor@suse.cz>
9741 PR tree-optimizations/55264
9742 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9743 for virtual methods.
9744 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9745 virtual methods before inlining is over.
9746 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9748 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9751 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
9753 PR rtl-optimization/56005
9754 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9755 pending reads for prefetch.
9757 2013-01-16 Ian Bolton <ian.bolton@arm.com>
9759 * config/aarch64/aarch64.md
9760 (*cstoresi_neg_uxtw): New pattern.
9761 (*cmovsi_insn_uxtw): New pattern.
9762 (*<optab>si3_uxtw): New pattern.
9763 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9764 (*<optab>si3_insn_uxtw): New pattern.
9765 (*bswapsi2_uxtw): New pattern.
9767 2013-01-16 Richard Biener <rguenther@suse.de>
9769 * tree-inline.c (tree_function_versioning): Remove set but
9770 never used variable.
9772 2013-01-16 Richard Biener <rguenther@suse.de>
9774 PR tree-optimization/55964
9775 * tree-flow.h (rename_variables_in_loop): Remove.
9776 (rename_variables_in_bb): Likewise.
9777 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9778 (copy_loop_before): Adjust and delete update-ssa status.
9779 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
9780 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
9781 (rename_variables_in_loop): Remove.
9782 (slpeel_update_phis_for_duplicate_loop): Likewise.
9783 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9784 use available cfg machinery instead of duplicating it.
9785 Update PHI nodes and perform poor-mans SSA update here.
9786 (slpeel_tree_peel_loop_to_edge): Adjust.
9788 2013-01-16 Richard Biener <rguenther@suse.de>
9790 PR tree-optimization/54767
9791 PR tree-optimization/53465
9792 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9793 (vrp_visit_phi_node): For PHI arguments coming via backedges
9794 drop all symbolical range information.
9795 (execute_vrp): Compute backedges.
9797 2013-01-16 Richard Biener <rguenther@suse.de>
9799 * doc/install.texi: Update CLooG and ISL requirements to
9802 2013-01-16 Christian Bruel <christian.bruel@st.com>
9805 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9806 (broken_move): Handle UNSPECV_SP_SWITCH_B.
9807 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9809 2013-01-16 DJ Delorie <dj@redhat.com>
9811 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9812 (UNSPECV_SP_SWITCH_E): New.
9813 (sp_switch_1): Change to an unspec.
9814 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9817 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
9819 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9820 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9821 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9822 (expand_mem_thread_fence): Ditto.
9823 (expand_mem_signal_fence): Ditto.
9824 (expand_atomic_load): Ditto.
9825 (expand_atomic_store): Ditto.
9827 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
9829 PR rtl-optimization/55547
9830 PR rtl-optimization/53827
9833 * alias.c (memrefs_conflict_p): Set sizes to negative after
9836 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9839 * function.c (thread_prologue_and_epilogue_insns): Always
9840 add crtl->drap_reg to set_up_by_prologue.set, even if
9841 stack_realign_drap is false.
9843 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9845 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9846 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9847 *call): Fix indention.
9849 2013-01-15 Tom de Vries <tom@codesourcery.com>
9852 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9855 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
9857 PR rtl-optimization/55153
9858 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9860 2013-01-15 Martin Jambor <mjambor@suse.cz>
9862 PR tree-optimization/55920
9863 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9864 accesses as grp_to_be_debug_replaced.
9866 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9868 PR tree-optimization/55920
9869 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9870 there is non-useless type conversion needed from debug rhs to lhs,
9871 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9873 2013-01-15 Joseph Myers <joseph@codesourcery.com>
9874 Mikael Pettersson <mikpe@it.uu.se>
9877 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9879 (ASM_OUTPUT_CASE_LABEL): Remove.
9880 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9881 * final.c (shorten_branches): Update alignment of labels before
9882 jump tables if CASE_VECTOR_SHORTEN_MODE.
9884 2013-01-15 Richard Biener <rguenther@suse.de>
9887 * system.h: Do not include gmp.h for building host tools.
9889 2013-01-15 Richard Biener <rguenther@suse.de>
9892 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9893 account for bitpos when computing alignment.
9895 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
9897 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
9898 (ix86_target_macros_internal): Likewise.
9900 * config/i386/i386.c (m_CORE2I7): Removed.
9901 (m_CORE_HASWELL): New macro.
9902 (m_CORE_ALL): Likewise.
9903 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
9904 (initial_ix86_arch_features): Likewise.
9905 (processor_target_table): Initializations for Core avx2.
9906 (cpu_names): New names "core-avx2".
9907 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
9908 PROCESSOR_CORE_HASWELL.
9909 (ix86_issue_rate): New case.
9910 (ia32_multipass_dfa_lookahead): Likewise.
9911 (ix86_sched_init_global): Likewise.
9913 * config/i386/i386.h (TARGET_HASWELL): New macro.
9914 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
9915 (processor_type): New PROCESSOR_HASWELL.
9917 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9919 PR tree-optimization/55955
9920 * tree-vect-loop.c (vectorizable_reduction): Give up early on
9921 *SHIFT_EXPR and *ROTATE_EXPR codes.
9923 PR tree-optimization/48766
9924 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
9925 -ftrapv disable -fwrapv.
9927 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9930 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
9931 etc. to 1 and not to __flash.
9932 Use LL suffix for __INT24_MAX__ with -mint8.
9933 Use ULL suffix for __UINT24_MAX__ with -mint8.
9935 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9937 * config/avr/avr-arch.h
9938 (struct base_arch_s): Use typedef avr_arch_t instead.
9939 (struct arch_info_s): Use typedef avr_arch_info_t instead.
9940 (struct mcu_type_s): Use typedef avr_mcu_t instead.
9941 * config/avr/avr.c: Same.
9942 * config/avr/avr-devices.c: Same.
9943 * config/avr/driver-avr.c: Same.
9944 * config/avr/gen-avr-mmcu-texi.c: Same.
9945 * config/avr/avr-mcus.def: Adjust comment.
9947 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
9949 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
9950 * config/aarch64/iterators.md (VALLDI): New.
9952 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
9953 Andi Kleen <ak@linux.intel.com>
9956 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9957 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9960 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9962 * config/avr/avr-stdint.h: Remove trailing blanks.
9963 * config/avr/avr-log.h: Same.
9964 * config/avr/avr-arch.h: Same.
9965 * config/avr/avr-devices.c: Same.
9966 * config/avr/avr-dimode.md: Same.
9967 * config/avr/predicates.md: Same.
9968 * config/avr/avr-c.c: Same. And fix typo.
9970 * config/avr/avr-protos.h: Same. And:
9971 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9972 (init_cumulative_args): Rename to avr_init_cumulative_args.
9973 (expand_prologue): Rename to avr_expand_prologue.
9974 (expand_epilogue): Rename to avr_expand_epilogue.
9975 (adjust_insn_length): Rename to avr_adjust_insn_length.
9976 (notice_update_cc): Rename to avr_notice_update_cc.
9977 (final_prescan_insn): Rename to avr_final_prescan_insn.
9978 * config/avr/avr.c: Same.
9979 * config/avr/avr.h: Same.
9980 * config/avr/avr.md: Remove trailing blanks.
9981 (prologue): Use avr_expand_prologue.
9982 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9984 2013-01-14 Richard Biener <rguenther@suse.de>
9986 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9987 verify_location, collect_subblocks): New functions.
9988 (verify_gimple_in_cfg): Verify that locations only reference
9989 BLOCKs in the functions BLOCK tree.
9991 2013-01-14 Richard Biener <rguenther@suse.de>
9993 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9995 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9997 (insert_out_of_ssa_copy_on_edge): Likewise.
9998 (rewrite_close_phi_out_of_ssa): Likewise.
9999 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
10001 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
10002 propagated constants.
10003 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
10006 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
10008 * config/avr/avr-modes.def: Add GPL copyright notice.
10010 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
10012 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10013 MEMMODEL_MASK to determine memory model.
10014 (atomic_store<mode>): Ditto from operands[2].
10015 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10017 2013-01-13 Jakub Jelinek <jakub@redhat.com>
10020 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
10021 (fold_gimple_assign): Don't call unshare_expr here.
10022 (fold_ctor_reference): Call unshare_expr.
10024 2013-01-13 Terry Guo <terry.guo@arm.com>
10026 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10027 * doc/fragments.texi: Document MULTILIB_REUSE.
10028 * gcc.c (multilib_reuse): New internal spec.
10029 (set_multilib_dir): Also search multilib from multilib_reuse.
10030 * genmultilib (tmpmultilib3): Refactor code.
10031 (tmpmultilib4): Ditto.
10032 (multilib_reuse): New multilib argument.
10034 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10036 * Makefile.in: Update copyright.
10038 2013-01-12 Tom de Vries <tom@codesourcery.com>
10040 PR middle-end/55890
10041 * calls.c (expand_call): Check if arg_nr is valid.
10043 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10045 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10046 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
10047 documentation. Add missing '__' in front of
10048 __builtin_ia32_packssdw256.
10050 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10053 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10054 NO_REGS for larl operands.
10055 (s390_reload_larl_operand): Use s390_load_address instead of
10058 2013-01-11 Richard Biener <rguenther@suse.de>
10060 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10061 (verify_node_sharing): ... here.
10062 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10064 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10066 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10067 Substitute TREECHECKING.
10068 * configure: Regenerate.
10069 * Makefile.in (TREECHECKING): New.
10071 2013-01-11 Richard Guenther <rguenther@suse.de>
10073 PR tree-optimization/44061
10074 * tree-vrp.c (extract_range_basic): Compute zero as
10075 value-range for __builtin_constant_p of function parameters.
10077 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10079 Update copyright years.
10081 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10083 PR rtl-optimization/55672
10084 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10085 const to be eliminable.
10087 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
10089 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10090 * configure: Regenerate.
10092 2013-01-10 Richard Biener <rguenther@suse.de>
10094 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
10096 2013-01-10 Richard Biener <rguenther@suse.de>
10099 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10100 locations for virtual PHI arguments.
10101 (rewrite_update_phi_arguments): Likewise.
10103 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10105 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10108 2013-01-10 Jakub Jelinek <jakub@redhat.com>
10110 PR tree-optimization/55921
10111 * tree-complex.c (expand_complex_asm): New function.
10112 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10114 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10117 * config/s390/s390.c (s390_symref_operand_p)
10118 (s390_loadrelative_operand_p): Merge the two functions.
10119 (s390_check_qrst_address, print_operand_address): Add parameters
10120 to s390_loadrelative_operand_p invokation.
10121 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10122 (s390_reload_larl_operand, s390_secondary_reload): Use
10123 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10124 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10126 2013-01-09 Mike Stump <mikestump@comcast.net>
10128 * dse.c (record_store): Remove unnecessary assert.
10130 2013-01-09 Jan Hubicka <jh@suse.cz>
10132 PR tree-optimization/55569
10133 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10134 * cfgloop.h (scale_loop_profile): Likewise.
10136 2013-01-09 Jan Hubicka <jh@suse.cz>
10139 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10141 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10143 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10145 PR middle-end/55114
10146 * expr.h (maybe_emit_group_store): Declare.
10147 * expr.c (maybe_emit_group_store): New function.
10148 * builtins.c (expand_builtin_int_roundingfn): Call it.
10149 (expand_builtin_int_roundingfn_2): Likewise.
10151 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10153 PR rtl-optimization/55829
10154 * lra-constraints.c (match_reload): Add code for absent output.
10155 (curr_insn_transform): Add code for reloads of matched inputs
10158 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
10160 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10161 attribute of movddup insn to DF.
10162 (*vec_interleave_lowv2df): Ditto.
10163 (vec_dupv2df): Ditto.
10165 2013-01-09 Jan Hubicka <jh@suse.cz>
10167 PR tree-optimiation/55875
10168 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10169 EVERY_ITERATION parameter.
10170 (number_of_iterations_exit): Check if exit is executed every iteration.
10171 (idx_infer_loop_bounds): Similarly here.
10172 (n_of_executions_at_most): Simplify
10173 to only test for cases where statement is dominated by the
10174 particular bound; handle correctly the "postdominance" test.
10175 (scev_probably_wraps_p): Use max loop iterations info
10176 as a global bound first.
10178 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
10179 Nick Clifton <nickc@redhat.com>
10181 * config/v850/v850.md (cbranchsf4): New pattern.
10182 (cstoresf4): New pattern.
10183 (cbranchdf4): New pattern.
10184 (cstoredf4): New pattern.
10185 (movsicc): Disallow floating point comparisons.
10186 (cmpsf_le_insn): Fix order of operators.
10187 (cmpsf_lt_insn): Likewise.
10188 (cmpsf_eq_insn): Likewise.
10189 (cmpdf_le_insn): Likewise.
10190 (cmpdf_lt_insn): Likewise.
10191 (cmpdf_eq_insn): Likewise.
10192 (cmpsf_ge_insn): Use LE comparison.
10193 (cmpdf_ge_insn): Likewise.
10194 (cmpsf_gt_insn): Use LT comparison.
10195 (cmpdf_gt_insn): Likewise.
10196 (cmpsf_ne_insn): Delete pattern.
10197 (cmpdf_ne_insn): Delete pattern.
10198 * config/v850/v850.c (v850_gen_float_compare): Use
10199 gen_cmpdf_eq_insn for NE comparison.
10200 (v850_float_z_comparison_operator)
10201 (v850_float_nz_comparison_operator): Move from here ...
10202 * config/v850/predicates.md: ... to here. Move GT and GE
10203 comparisons into v850_float_z_comparison_operator.
10204 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
10206 (v850_float_nz_comparison_operator): Likewise.
10208 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10210 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10211 with calls to gen_insvsi/gen_insvdi.
10213 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10215 * config/i386/i386.c (initial_ix86_tune_features): Set up
10216 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10218 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
10219 Jakub Jelinek <jakub@redhat.com>
10221 PR tree-optimization/48189
10222 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
10223 If nitercst is 0, don't predict the exit edge.
10225 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10227 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
10228 in asm_fprintf with reg_names.
10229 (aarch64_print_operand_address): Likewise.
10230 (aarch64_return_addr): Likewise.
10231 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
10233 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10235 * config/pa/pa.h (VAL_U6_BITS_P): Define.
10236 (INT_U6_BITS): Likewise.
10237 * config/pa/predicates.md (uint6_operand): New predicate.
10238 (shift5_operand, shift6_operand): Likewise.
10239 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
10241 (lshrdi3): Use shift6_operand.
10242 (shrpsi4, shrpdi4): New insn patterns.
10243 (extzv): Delete expander.
10244 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
10245 predicates in unamed zero extract patterns. Tighten common constraint.
10246 (extv): Delete expander.
10247 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
10248 predicates in unamed sign extract patterns. Tighten common constraint.
10249 (insv): Delete expander.
10250 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
10251 predicates in unamed insert patterns. Tighten common constraint.
10252 Change uint32_operand predicate to uint6_operand predicate in unamed
10253 DImode pattern to insert constant values of type 1...1xxxx.
10255 2013-01-04 Jan Hubicka <jh@suse.cz>
10257 PR tree-optimization/55823
10258 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
10261 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10262 Uros Bizjak <ubizjak@gmail.com>
10264 PR rtl-optimization/55845
10265 * df-problems.c (can_move_insns_across): Stop scanning at
10266 volatile_insn_p source instruction or give up if
10267 across_from .. across_to range contains any volatile_insn_p
10270 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10272 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10273 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10275 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
10276 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
10278 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10281 * asan.c (asan_clear_shadow): New function.
10282 (asan_emit_stack_protection): Use it.
10284 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10286 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10287 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10288 with tab instead of space.
10290 2013-01-08 Nick Clifton <nickc@redhat.com>
10292 * config/rl78/rl78.c (rl78_expand_prologue): Always select
10293 register bank 0 at the start of an interrupt handler.
10294 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10297 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10299 * config/aarch64/aarch64-simd.md
10300 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10301 (aarch64_simd_bsl): Likewise.
10302 (aarch64_vcond_internal<mode>): Likewise.
10303 (vcond<mode><mode>): Likewise.
10304 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10305 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10307 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10309 * config/aarch64/aarch64-builtins.c
10310 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10312 2013-01-08 Martin Jambor <mjambor@suse.cz>
10315 * tree-sra.c (analyze_access_subtree): Return true also after
10316 potentially creating a debug-only replacement.
10318 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10320 PR middle-end/55890
10321 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10323 PR tree-optimization/54120
10324 * tree-vrp.c (range_fits_type_p): Don't allow
10325 src_precision < precision from signed vr to unsigned_p
10326 if vr->min or vr->max is negative.
10327 (simplify_float_conversion_using_ranges): Test can_float_p
10328 against CODE_FOR_nothing.
10330 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10331 Richard Biener <rguenther@suse.de>
10333 PR middle-end/55851
10334 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10335 types instead of just INTEGER_TYPE types.
10337 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
10339 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10342 2013-01-07 Steve Ellcey <sellcey@mips.com>
10345 * config/mips/mips.opt: Change mad to mmad to match documentation.
10347 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10350 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10351 .progmemx.data now.
10353 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10356 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10357 (avr_addrspace_t): Add .section_name field.
10358 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10360 (avr_addrspace): Same. Initialize .section_name. Remove last
10361 NULL entry. Put __memx into .progmemx.data.
10362 (progmem_section_prefix): Remove.
10363 (avr_asm_init_sections): No need to initialize progmem_section.
10364 (avr_asm_named_section): Use avr_addrspace[].section_name to get
10365 section name prefix.
10366 (avr_asm_select_section): Ditto. And use get_unnamed_section to
10367 retrieve the progmem section.
10368 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10369 boundary to run over avr_addrspace[].
10370 (avr_register_target_pragmas): Ditto.
10372 2013-01-06 Jakub Jelinek <jakub@redhat.com>
10374 * varasm.c (output_constant_def_contents): For asan_protect_global
10375 protected strings, adjust DECL_ALIGN if needed, before testing for
10377 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10378 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
10380 (output_object_block): For asan protected decls, emit asan padding
10381 after their contents.
10382 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10383 (asan_finish_file): Test it here instead.
10385 2013-01-07 Nick Clifton <nickc@redhat.com>
10386 Matthias Klose <doko@debian.org>
10387 Doug Kwan <dougkwan@google.com>
10388 H.J. Lu <hongjiu.lu@intel.com>
10391 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10393 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10395 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10397 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
10399 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10401 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10404 * doc/install.texi (Cross-Compiler-Specific Options): Document
10407 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
10409 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10410 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10411 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10412 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10413 vqmovun_high_s64): Fix source operand number and update copyright.
10415 2013-01-07 Richard Biener <rguenther@suse.de>
10417 PR middle-end/55890
10418 * gimple.h (gimple_call_builtin_p): New overload.
10419 * gimple.c (validate_call): New function.
10420 (gimple_call_builtin_p): Likewise.
10421 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10422 Use gimple_call_builtin_p.
10423 (find_func_clobbers): Likewise.
10424 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10425 (strlen_optimize_stmt): Likewise.
10427 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10429 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10430 (vld1q_dup_*): Likewise.
10431 (vld1_*): Likewise.
10432 (vld1q_*): Likewise.
10433 (vld1_lane_*): Likewise.
10434 (vld1q_lane_*): Likewise.
10436 2013-01-07 Richard Biener <rguenther@suse.de>
10438 * lto-streamer.h (LTO_minor_version): Bump to 2.
10440 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10442 * config/aarch64/aarch64-protos.h
10443 (aarch64_const_double_zero_rtx_p): Rename to...
10444 (aarch64_float_const_zero_rtx_p): ...this.
10445 (aarch64_float_const_representable_p): New.
10446 (aarch64_output_simd_mov_immediate): Likewise.
10447 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10448 move immediate case.
10449 * config/aarch64/aarch64.c
10450 (aarch64_const_double_zero_rtx_p): Rename to...
10451 (aarch64_float_const_zero_rtx_p): ...this.
10452 (aarch64_print_operand): Allow printing of new constants.
10453 (aarch64_valid_floating_const): New.
10454 (aarch64_legitimate_constant_p): Check for valid floating-point
10456 (aarch64_simd_valid_immediate): Likewise.
10457 (aarch64_vect_float_const_representable_p): New.
10458 (aarch64_float_const_representable_p): Likewise.
10459 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10460 (aarch64_output_simd_mov_immediate): New.
10461 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10462 (*movdf_aarch64): Likewise.
10463 * config/aarch64/constraints.md (Ufc): New.
10464 (Y): call aarch64_float_const_zero_rtx.
10465 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10467 2013-01-07 Richard Biener <rguenther@suse.de>
10469 PR tree-optimization/55888
10470 PR tree-optimization/55862
10471 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10472 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10473 not if it is contained therein.
10475 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10477 * config/avr/t-avr: Typo.
10479 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10482 * config/avr/t-avr: Don't automatically rebuild
10483 $(srcdir)/config/avr/t-multilib
10484 $(srcdir)/config/avr/avr-tables.opt
10485 $(srcdir)/doc/avr-mmcu.texi
10486 (avr-mcus): New phony target to build them on request.
10487 (s-avr-mlib, s-avr-mmcu-texi): Remove.
10488 * avr/avr-mcus.def: Adjust comments.
10490 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
10492 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10494 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10496 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10498 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10500 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10502 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
10504 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10505 to generate profiling.
10506 * config/rs6000/aix64.h (LIB_SPEC): Same.
10508 2013-01-04 Andrew Pinski <apinski@cavium.com>
10510 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10512 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10514 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
10516 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10518 (ix86_expand_move): Ditto.
10519 (ix86_zero_extend_to_Pmode): Ditto.
10520 (ix86_expand_call): Ditto.
10521 (ix86_expand_special_args_builtin): Ditto.
10522 (ix86_expand_builtin): Ditto.
10524 2013-01-04 Richard Biener <rguenther@suse.de>
10526 PR tree-optimization/55862
10527 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10528 translating them through PHI nodes.
10530 2013-01-04 Martin Jambor <mjambor@suse.cz>
10532 PR tree-optimization/55755
10533 * tree-sra.c (sra_modify_assign): Do not check that an access has no
10534 children when trying to avoid producing a VIEW_CONVERT_EXPR.
10536 2013-01-04 Marek Polacek <polacek@redhat.com>
10538 PR middle-end/55859
10539 * opts.c (default_options_optimization): Clarify error message.
10541 2013-01-04 Richard Biener <rguenther@suse.de>
10543 PR middle-end/55863
10544 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10547 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10550 * config/pa/pa.md (movsi): Revert previous change.
10551 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10554 2013-01-03 Richard Henderson <rth@redhat.com>
10556 * config/i386/i386.c (ix86_expand_move): Always assign to op1
10557 after eliminating TLS symbols.
10559 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
10562 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10563 * graphite-poly.c (debug_gmp_value): Likewise.
10565 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
10568 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10569 selected code model, define __code_mode_small__, __code_model_medium__,
10570 __code_model_large__, __code_model_32__ or __code_model_kernel__.
10571 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10572 xchg temporary register with %k. Declare temporary register as
10574 [__x86_64__]: For medium and large code models, preserve %rbx register.
10576 2013-01-03 Richard Biener <rguenther@suse.de>
10578 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
10579 (dump_subscript): Adjust.
10580 (finalize_ddr_dependent): Do not dump redundant info.
10581 (analyze_siv_subscript): Adjust.
10582 (subscript_dependence_tester): Likewise.
10583 (compute_affine_dependence): Likewise.
10585 2013-01-03 Richard Biener <rguenther@suse.de>
10588 2013-01-03 Richard Biener <rguenther@suse.de>
10590 PR tree-optimization/55857
10591 * tree-vect-stmts.c (vectorizable_load): Do not setup
10592 re-alignment for invariant loads.
10594 2013-01-02 Richard Biener <rguenther@suse.de>
10596 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10597 invariant load do not generate a vector load from the scalar location.
10599 2013-01-03 Richard Biener <rguenther@suse.de>
10601 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10602 for not vectorizing.
10603 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10604 not build INDIRECT_REFs, call get_name once only.
10605 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10606 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10608 2013-01-03 Richard Biener <rguenther@suse.de>
10610 PR tree-optimization/55857
10611 * tree-vect-stmts.c (vectorizable_load): Do not setup
10612 re-alignment for invariant loads.
10614 2013-01-03 Richard Biener <rguenther@suse.de>
10617 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10618 prefer a built-in decl.
10620 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10622 * gcc.c (process_command): Update copyright notice dates.
10623 * gcov.c (print_version): Likewise.
10624 * gcov-dump.c (print_version): Likewise.
10626 PR rtl-optimization/55838
10627 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10628 iv0.step, iv1.step and step.
10630 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10631 Marc Glisse <marc.glisse@inria.fr>
10633 PR tree-optimization/55832
10634 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10635 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10636 integer_{one,zero}_node.
10638 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10641 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10642 * var-tracking.c (reverse_op): Don't add reverse ops to
10643 VALUEs that have already
10644 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
10646 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10648 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10650 2013-01-02 Teresa Johnson <tejohnson@google.com>
10652 * dumpfile.c (dump_loc): Print filename with location.
10653 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10654 new location_t parameter to emit complete unroll message with
10655 new dump framework.
10656 (canonicalize_loop_induction_variables): Compute loops location
10657 and pass to try_unroll_loop_completely.
10658 * loop-unroll.c (report_unroll_peel): New function.
10659 (peel_loops_completely): Use new dump format with location
10660 for main dumpfile message, and invoke report_unroll_peel on success.
10661 (decide_unrolling_and_peeling): Ditto.
10662 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10663 by report_unroll_peel.
10664 (decide_peel_completely): Ditto.
10665 (decide_unroll_constant_iterations): Ditto.
10666 (decide_unroll_runtime_iterations): Ditto.
10667 (decide_peel_simple): Ditto.
10668 (decide_unroll_stupid): Ditto.
10669 * cfgloop.c (get_loop_location): New function.
10670 * cfgloop.h (get_loop_location): Declare.
10672 2013-01-02 Sriraman Tallam <tmsriram@google.com>
10674 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10677 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10679 PR middle-end/55198
10680 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10681 BLKmode objects when EXPAND_MEMORY is specified.
10683 2013-01-02 Sriraman Tallam <tmsriram@google.com>
10685 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10687 (fold_builtin_cpu): Do not share cpu model decls across statements.
10689 2013-01-02 Jason Merrill <jason@redhat.com>
10692 * tree.c (build_array_type_1): Revert earlier change.
10694 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10696 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10698 * config/aarch64/aarch64-tune.md: Re-generate.
10700 2013-01-02 Richard Biener <rguenther@suse.de>
10702 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10703 invariant load do not generate a vector load from the scalar location.
10705 2013-01-02 Richard Biener <rguenther@suse.de>
10708 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10709 * configure: Regenerate.
10711 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10713 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10714 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10715 (expand_builtin_int_roundingfn_2): Keep the original target around
10716 for the fallback case.
10718 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10720 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10721 to be clear for sign changes.
10723 2013-01-01 Jan Hubicka <jh@suse.cz>
10725 * ipa-inline-analysis.c: Fix formatting.
10727 2013-01-01 Jakub Jelinek <jakub@redhat.com>
10729 PR tree-optimization/55831
10730 * tree-vect-loop.c (get_initial_def_for_induction): Use
10731 gsi_after_labels instead of gsi_start_bb.
10733 Copyright (C) 2013 Free Software Foundation, Inc.
10735 Copying and distribution of this file, with or without modification,
10736 are permitted in any medium without royalty provided the copyright
10737 notice and this notice are preserved.