1 2013-05-23 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/57380
4 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
5 least one invariant or re-used load.
6 * passes.c (init_optimization_passes): Move pass_phiprop before
9 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
11 * config/aarch64/aarch64-simd.md
12 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
14 2013-05-23 Richard Biener <rguenther@suse.de>
17 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
18 OEP_CONSTANT_ADDRESS_OF retained.
20 2013-05-23 Jakub Jelinek <jakub@redhat.com>
23 * expmed.c (store_split_bit_field): If op0 is a REG or
24 SUBREG of a REG, don't lower unit. Handle unit not being
27 2013-05-23 Richard Biener <rguenther@suse.de>
29 PR rtl-optimization/57341
30 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
31 instead of true_dependence.
33 2013-05-22 David Malcolm <dmalcolm@redhat.com>
35 * bb-reorder.c (branch_threshold): make const
36 (exec_threshold): ditto
38 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
39 Pat Haugen <pthaugen@us.ibm.com>
40 Peter Bergner <bergner@vnet.ibm.com>
42 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
43 documentation for the power8 crypto builtins.
45 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
47 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
48 macros for defining power8 builtin functions.
49 (BU_P8V_AV_2): Likewise.
50 (BU_P8V_AV_P): Likewise.
51 (BU_P8V_VSX_1): Likewise.
52 (BU_P8V_OVERLOAD_1): Likewise.
53 (BU_P8V_OVERLOAD_2): Likewise.
54 (BU_CRYPTO_1): Likewise.
55 (BU_CRYPTO_2): Likewise.
56 (BU_CRYPTO_3): Likewise.
57 (BU_CRYPTO_OVERLOAD_1): Likewise.
58 (BU_CRYPTO_OVERLOAD_2): Likewise.
59 (XSCVSPDP): Fix typo, point to the correct instruction.
60 (VCIPHER): Add power8 crypto builtins.
61 (VCIPHERLAST): Likewise.
63 (VNCIPHERLAST): Likewise.
67 (VPERMXOR_V2DI): Likewise.
68 (VPERMXOR_V4SI: Likewise.
69 (VPERMXOR_V8HI: Likewise.
70 (VPERMXOR_V16QI: Likewise.
71 (VSHASIGMAW): Likewise.
72 (VSHASIGMAD): Likewise.
75 (VSHASIGMA): Likewise.
77 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
78 __CRYPTO__ if the crypto instructions are available.
79 (altivec_overloaded_builtins): Add support for overloaded power8
82 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
83 support for power8 crypto builtins.
84 (builtin_function_type): Likewise.
85 (altivec_init_builtins): Add support for builtins that take vector
86 long long (V2DI) arguments.
88 * config/rs6000/crypto.md: New file, define power8 crypto
91 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
92 Pat Haugen <pthaugen@us.ibm.com>
93 Peter Bergner <bergner@vnet.ibm.com>
95 * doc/invoke.texi (Option Summary): Add power8 options.
96 (RS/6000 and PowerPC Options): Likewise.
98 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
99 constraints.md instead of rs6000.h. Reorder w* constraints. Add
100 wm, wn, wr documentation.
102 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
103 registers if direct move instructions are enabled.
104 (wn): New constraint for no registers.
105 (wq): New constraint for quad word even GPR registers.
106 (wr): New constraint if 64-bit instructions are enabled.
107 (wv): New constraint if power8 vector instructions are enabled.
108 (wQ): New constraint for quad word memory locations.
110 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
111 constraint for 0..15 for crypto instructions.
112 (gpc_reg_operand): If VSX allow registers in VSX registers as well
113 as GPR and floating point registers.
114 (int_reg_operand): New predicate to match only GPR registers.
115 (base_reg_operand): New predicate to match base registers.
116 (quad_int_reg_operand): New predicate to match even GPR registers
117 for quad memory operations.
118 (vsx_reg_or_cint_operand): New predicate to allow vector logical
119 operations in both GPR and VSX registers.
120 (quad_memory_operand): New predicate for quad memory operations.
121 (reg_or_indexed_operand): New predicate for direct move support.
123 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
124 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
125 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
126 (POWERPC_MASKS): Add power8 options.
127 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
130 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
131 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
133 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
134 (-mpower8-fusion): New power8 options.
135 (-mpower8-fusion-sign): Likewise.
136 (-mpower8-vector): Likewise.
137 (-mcrypto): Likewise.
138 (-mdirect-move): Likewise.
139 (-mquad-memory): Likewise.
141 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
143 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
145 (rs6000_debug_reg_print): Print the base register class if
147 (rs6000_debug_vector_unit): Add p8_vector.
148 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
149 definitions. Also print fusion state.
150 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
151 (rs6000_builtin_mask_calculate): Add power8 builtin support.
152 (rs6000_option_override_internal): Add support for power8.
153 (rs6000_common_init_builtins): Add debugging for skipped builtins
155 (rs6000_adjust_cost): Add power8 support.
156 (rs6000_issue_rate): Likewise.
157 (insn_must_be_first_in_group): Likewise.
158 (insn_must_be_last_in_group): Likewise.
159 (force_new_group): Likewise.
160 (rs6000_register_move_cost): Likewise.
161 (rs6000_opt_masks): Likewise.
163 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
164 power8 capable assembler, default to power7 options.
165 (TARGET_DIRECT_MOVE): Likewise.
166 (TARGET_CRYPTO): Likewise.
167 (TARGET_P8_VECTOR): Likewise.
168 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
169 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
170 (VECTOR_MEM_P8_VECTOR_P): Likewise.
171 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
172 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
173 (TARGET_XSCVDPSPN): Likewise.
174 (TARGET_XSCVSPDPN): Likewsie.
175 (TARGET_SYNC_HI_QI): Likewise.
176 (TARGET_SYNC_TI): Likewise.
177 (MASK_CRYPTO): Likewise.
178 (MASK_DIRECT_MOVE): Likewise.
179 (MASK_P8_FUSION): Likewise.
180 (MASK_P8_VECTOR): Likewise.
181 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the
182 TFmode temporary used by some of the direct move instructions to
183 get two FP temporary registers does not force creation of a stack
185 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
186 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
187 that any VSX registers are tieable, even if they are also an
189 (r6000_reg_class_enum): Add wm, wr, wv constraints.
190 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
191 (RS6000_BTM_CRYPTO): Likewise.
192 (RS6000_BTM_COMMON): Likewise.
194 * config/rs6000/rs6000.md (cpu attribute): Add power8.
195 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
196 (enum rs6000_vector): Add power8 vector support.
198 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
202 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
203 (any_sibcall_could_use_r3): this and handle indirect calls.
204 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
206 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
208 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
210 2013-05-22 Richard Biener <rguenther@suse.de>
213 * profile.c (branch_prob): Do not split blocks that are
214 abnormally receiving from ECF_RETURNS_TWICE functions.
216 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
218 * recog.c (offsettable_address_addr_space_p): Fix calculation of
219 address mode. Move pointer mode initialization to the same place.
221 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
223 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
224 while it has any effect.
226 2013-05-21 Easwaran Raman <eraman@google.com>
228 PR tree-optimization/57322
229 * (build_and_add_sum): If a BB is empty, set the UID of the statement
230 added to the BB to be 1.
232 2013-05-21 Jakub Jelinek <jakub@redhat.com>
234 PR tree-optimization/57331
235 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize
236 comparison of conversion from pointer type to integral type
239 2013-05-21 Martin Jambor <mjambor@suse.cz>
242 * ipa-prop.c (ipa_read_node_info): Process param_used and
243 controlled_uses in the same order as when writing.
245 2013-05-21 Magnus Granberg <baldrick@free.fr>
248 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
250 2013-05-21 Richard Biener <rguenther@suse.de>
252 PR tree-optimization/57318
253 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
254 estimate stmts with side-effects as likely eliminated.
256 2013-05-21 Richard Biener <rguenther@suse.de>
258 PR tree-optimization/57330
259 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
260 preserve the call stmts fntype.
262 2013-05-21 Richard Biener <rguenther@suse.de>
264 PR tree-optimization/57303
265 * tree-ssa-sink.c (statement_sink_location): Improve killing
266 stmt detection and properly handle self-assignments.
268 2013-05-21 Christian Bruel <christian.bruel@st.com>
270 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
271 spanning registers. LEAF_REG_REMAP is supported only for contiguous
272 registers. Set register size out of the PARALLEL loop.
274 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
277 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
278 (*fmasf4, *fmasf4_media): New insns.
280 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
282 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
283 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
284 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
285 (mips_idiv_insns): Update the comments to say that the returned
286 instruction counts are in units of BASE_INSN_LENGTH.
287 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
288 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
289 using 2 rather than 4 as the length of indirect MIPS16 and
290 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
291 length of a NOP. Don't divide MIPS16 lengths by 2.
292 (mips16_split_long_branches): Assume a branch is long if the
293 length is greater than 4 rather than 8.
294 * config/mips/mips.md (length): Give MIPS16 lengths directly,
295 rather than multiplying them by 2. Multiply instruction counts
296 by BASE_INSN_LENGTH rather than 4.
297 (*jump_mips16, tls_get_tp_mips16_<mode>)
298 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
300 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
302 * config/mips/mips.md (extended_mips16): Remove branch case.
303 (length): Remove duplicated extended_mips16 test.
305 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
307 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
309 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
311 * recog.h (Recog_data): Rename to...
312 (recog_data_d): ...this.
313 (recog_data): Update accordingly.
314 * recog.c (recog_data): Likewise.
315 * reload.c (save_recog_data): Likewise.
316 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
317 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
319 2013-05-17 Julian Brown <julian@codesourcery.com>
321 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
322 found in a REG_EQUAL note, invalidate it.
324 2013-05-17 Easwaran Raman <eraman@google.com>
326 * tree-ssa-reassoc.c (find_insert_point): New function.
327 (insert_stmt_after): Likewise.
328 (get_def_stmt): Likewise.
329 (ensure_ops_are_available): Likewise.
330 (not_dominated_by): Likewise.
331 (rewrite_expr_tree): Do not move statements beyond what is
332 necessary. Remove call to swap_ops_for_binary_stmt...
333 (reassociate_bb): ... and move it here.
334 (build_and_add_sum): Assign UIDs for new statements.
335 (linearize_expr): Likewise.
336 (do_reassoc): Renumber gimple statement UIDs.
338 2013-05-17 Jan Hubicka <jh@suse.cz>
340 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
342 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
343 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
345 (output_weakrefs): Update.
347 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
348 Martin Jambor <mjambor@suse.cz>
351 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
352 value that corresponds to the given aggval is found in values vector.
354 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
356 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
357 sse, sse2, sse3, ssse3 and sse4a flags to options.
359 2013-05-17 David Malcolm <dmalcolm@redhat.com>
361 * gengtype-state.c: (s_expr_writer): New class, to handle
362 prettifying of output layout of s-expressions.
363 (state_writer): New class, to write out gtype.state.
364 (state_written_type_count): Move this variable into member data of
366 (s_expr_writer::s_expr_writer): New code: constructor for new class
367 (state_writer::state_writer(): ditto
368 (s_expr_writer::write_new_line): New function
369 (s_expr_writer::write_any_indent): ditto
370 (s_expr_writer::begin_s_expr): ditto
371 (s_expr_writer::end_s_expr): ditto
372 (write_state_fileloc): convert to method of state_writer...
373 (state_writer:: write_state_fileloc): ...and use methods of
374 s_expr_writer to write indentation into the gtype.state output file
375 to visually represent the hierarchical structure of the list
377 (write_state_fields): ditto, renaming to...
378 (state_writer::write_state_fields)
379 (write_state_a_string): ditto, renaming to...
380 (state_writer::write_state_a_string)
381 (write_state_string_option): ditto, renaming to...
382 (state_writer::write_state_string_option)
383 (write_state_type_option): ditto, renaming to...
384 (state_writer::write_state_type_option)
385 (write_state_nested_option): ditto, renaming to...
386 (state_writer::write_state_nested_option)
387 (write_state_option): ditto, renaming to...
388 (state_writer::write_state_option)
389 (write_state_options): ditto, renaming to...
390 (state_writer::write_state_options)
391 (write_state_lang_bitmap): ditto, renaming to...
392 (state_writer::write_state_lang_bitmap)
393 (write_state_version): ditto, renaming to...
394 (state_writer::write_state_version)
395 (write_state_scalar_type): ditto, renaming to...
396 (state_writer::write_state_scalar_type)
397 (write_state_string_type): ditto, renaming to...
398 (state_writer::write_state_string_type)
399 (write_state_undefined_type): ditto, renaming to...
400 (state_writer::write_state_undefined_type)
401 (write_state_struct_union_type): ditto, renaming to...
402 (state_writer::write_state_struct_union_type)
403 (write_state_struct_type): ditto, renaming to...
404 (state_writer::write_state_struct_type)
405 (write_state_user_struct_type): ditto, renaming to...
406 (state_writer::write_state_user_struct_type)
407 (write_state_lang_struct_type): ditto, renaming to...
408 (state_writer::write_state_lang_struct_type)
409 (write_state_param_struct_type): ditto, renaming to...
410 (state_writer::write_state_param_struct_type)
411 (write_state_pointer_type): ditto, renaming to...
412 (state_writer::write_state_pointer_type)
413 (write_state_array_type): ditto, renaming to...
414 (state_writer::write_state_array_type)
415 (write_state_gc_used): ditto, renaming to...
416 (state_writer::write_state_gc_used)
417 (write_state_common_type_content): ditto, renaming to...
418 (state_writer::write_state_common_type_content)
419 (write_state_type): ditto, renaming to...
420 (state_writer::write_state_type)
421 (write_state_pair_list): ditto, renaming to...
422 (state_writer::write_state_pair_list)
423 (write_state_pair): ditto, renaming to...
424 (state_writer::write_state_pair)
425 (write_state_typedefs): ditto, renaming to...
426 (state_writer::write_state_typedefs)
427 (write_state_structures): ditto, renaming to...
428 (state_writer::write_state_structures)
429 (write_state_param_structs): ditto, renaming to...
430 (state_writer::write_state_param_structs)
431 (write_state_variables): ditto, renaming to...
432 (state_writer::write_state_variables)
433 (write_state_srcdir): ditto, renaming to...
434 (state_writer::write_state_srcdir)
435 (write_state_files_list): ditto, renaming to...
436 (state_writer::write_state_files_list)
437 (write_state_languages): ditto, renaming to...
438 (state_writer::write_state_languages)
439 (write_state): create a state_writer instance and use it when
440 writing out the state file
442 2013-05-17 Mike Stump <mikestump@comcast.net>
444 PR rtl-optimization/57304
445 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
446 accessing DF_REF_REAL_LOC.
448 2013-05-17 Jakub Jelinek <jakub@redhat.com>
450 PR rtl-optimization/57281
451 PR rtl-optimization/57300
452 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
453 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
454 what the other splitter did if the registers are dead.
456 2013-05-17 Richard Biener <rguenther@suse.de>
458 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
461 2013-05-17 Jakub Jelinek <jakub@redhat.com>
463 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
466 2013-05-17 Marek Polacek <polacek@redhat.com>
468 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
469 length when doing non-zero store of storing '\0' to '\0'.
471 2013-05-17 Jakub Jelinek <jakub@redhat.com>
473 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
474 vect_external_def oprnd1 with loop_vinfo, try to emit
475 optional cast, negation and and stmts on the loop preheader
476 edge instead of into the pattern def seq.
478 PR tree-optimization/57051
479 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
480 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
482 2013-05-16 Nick Clifton <nickc@redhat.com>
484 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
485 (rl78_is_naked_func): New function.
486 (rl78_expand_prologue): Skip prologue generation for naked
488 (rl78_expand_epilogue): Skip epilogue generation for naked
490 * doc/extend.texi (naked): Add RL78 to the list of processors
491 that supports this attribute.
493 2013-05-16 Jeff Law <law@redhat.com>
495 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
497 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
499 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
500 cache parameters using detect_caches_amd also for CYRIX,
501 NSC and TM2 signatures.
503 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
504 Dzianis Kahanovich <mahatma@eu.by>
508 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
509 VIA/Centaur processors and determine their cache parameters
510 using detect_caches_amd.
512 2013-05-16 Teresa Johnson <tejohnson@google.com>
514 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
515 (rtl_verify_edges): New function.
516 (rtl_verify_bb_insns): Ditto.
517 (rtl_verify_bb_pointers): Ditto.
518 (rtl_verify_bb_insn_chain): Ditto.
519 (rtl_verify_fallthru): Ditto.
520 (rtl_verify_bb_layout): Ditto.
521 (rtl_verify_flow_info_1): Outline checks into new functions.
522 (rtl_verify_flow_info): Ditto.
524 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
526 * cfghooks.c (copy_bbs): Add update_dominance argument.
527 * cfghooks.h (copy_bbs): Update prototype.
528 * tree-cfg.c (gimple_duplicate_sese_region):
529 Add update_dominance argument.
530 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
531 * tree-ssa-loop-ch.c (copy_loop_headers): Update
532 gimple_duplicate_sese_region call.
533 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
534 Update copy_bbs call.
535 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
536 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
538 2013-05-16 Jakub Jelinek <jakub@redhat.com>
540 * tree-vectorizer.h (NUM_PATTERNS): Increment.
541 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
542 vect_recog_rotate_pattern.
543 (vect_recog_rotate_pattern): New function.
545 2013-05-16 Jason Merrill <jason@redhat.com>
547 * Makefile.in (LLINKER): New variable.
548 (mostlyclean): Remove link mutex.
549 * configure.ac: Handle --enable-link-mutex.
550 * lock-and-run.sh: New script.
552 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
555 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
558 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
560 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
562 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
564 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
565 * config/arm/arm.c (next_consecutive_mem): New function.
566 (gen_movmem_ldrd_strd): Likewise.
567 * config/arm/arm.md (movmemqi): Update condition and code.
568 (unaligned_loaddi, unaligned_storedi): New patterns.
570 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
572 * config.gcc: Obsolete *-*-solaris2.9*.
573 * doc/install.texi (Specific, *-*-solaris2*): Document it.
575 2013-05-16 Richard Biener <rguenther@suse.de>
577 * passes.c (init_optimization_passes): Move pass_parallelize_loops
578 earlier, after GRAPHITE transforms and IV canonicalization.
580 2013-05-16 Jakub Jelinek <jakub@redhat.com>
582 * omp-low.c (extract_omp_for_data): For collapsed loops,
583 if at least one of the loops is known at compile time to
584 iterate zero times, set count to 0.
585 (expand_omp_regimplify_p): New function.
586 (expand_omp_for_generic): For collapsed loops, if at least
587 one of the loops isn't known to iterate at least once,
588 add runtime check with setting count to 0.
589 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
590 For unsigned types if it isn't known at compile time that
591 the loop will iterate at least once, add runtime check to bypass
592 the whole loop if initial condition isn't true.
594 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
596 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
598 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
601 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
602 transformations to avoid an infinite loop.
604 2013-05-16 Marek Polacek <polacek@redhat.com>
606 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
608 2013-05-15 Leif Ekblad <leif@rdos.net>
610 * config/i386/i386.c (ix86_decompose_address): Use
611 DEFAULT_TLS_SEG_REG to access TLS segment register.
612 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
613 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
614 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
616 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
619 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
620 sibling calls to functions that would normally be lazily bound,
621 unless $gp is call-clobbered.
623 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
625 * config/i386/i386.c (ix86_option_override_internal): Update
626 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
627 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
628 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
629 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
631 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
633 2013-05-15 Andreas Schwab <schwab@suse.de>
635 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
636 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
639 2013-05-15 Teresa Johnson <tejohnson@google.com>
641 * loop-unroll.c (report_unroll_peel): Check decision before
642 emitting unroll/peel message.
644 2013-05-15 Teresa Johnson <tejohnson@google.com>
646 * function.h (has_bb_partition): New rtl_data flag.
647 (bb_reorder_complete): Ditto.
648 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
649 instead of flag_reorder_blocks_and_partition.
650 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
651 with some enhancements.
652 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
653 * bb-reorder.c (connect_traces): Check for has_bb_partition
654 instead of flag_reorder_blocks_and_partition.
655 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
656 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
657 verify_hot_cold_block_grouping.
658 (partition_hot_cold_basic_blocks): Set has_bb_partition.
660 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
663 * config/arm/predicates.md (call_insn_operand): New predicate.
664 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
665 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
666 if insn is not a tail call.
667 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
669 * config/arm/arm.h (enum reg_class): New caller save register class.
670 (REG_CLASS_NAMES): Likewise.
671 (REG_CLASS_CONTENTS): Likewise.
672 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
675 2013-05-15 Richard Biener <rguenther@suse.de>
677 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
678 of MSG_OPTIMIZED_LOCATIONS.
679 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
680 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
682 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
683 of MSG_OPTIMIZED_LOCATIONS.
684 (execute_vect_slp): Likewise.
685 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
686 (vect_create_cond_for_alias_checks): Likewise.
687 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
688 (vect_recog_widen_mult_pattern): Likewise.
689 (vect_recog_widen_sum_pattern): Likewise.
690 (vect_recog_over_widening_pattern): Likewise.
691 (vect_recog_widen_shift_pattern): Likewise.
692 (vect_recog_vector_vector_shift_pattern): Likewise.
693 (vect_recog_divmod_pattern): Likewise.
694 (vect_recog_mixed_size_cond_pattern): Likewise.
695 (vect_recog_bool_pattern): Likewise.
696 (vect_pattern_recog_1): Likewise.
698 2013-05-15 Martin Jambor <mjambor@suse.cz>
700 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
701 non-functions to builtin_unreachable.
702 * ipa-inline-transform.c (inline_call): Do not assert estimates were
703 correct when new direct edges were discovered.
705 2013-05-15 Martin Jambor <mjambor@suse.cz>
707 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
708 header, print symbol order instead of node uid, print more information
709 about indirect edge targets.
710 (ipa_make_edge_direct_to_target): Print symbol order instead of node
712 (ipa_make_edge_direct_to_target): Likewise.
713 (remove_described_reference): Likewise.
714 (propagate_controlled_uses): Likewise.
715 (ipa_print_node_params): Also print symbol order.
716 (ipcp_transform_function): Print symbol order instead of node uids.
717 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
718 (cgraph_get_create_real_symbol_node): Likewise.
719 * ipa-cp.c (print_lattice): Likewise.
720 (print_all_lattices): Likewise.
721 (determine_versionability): Likewise.
722 (initialize_node_lattices): Likewise.
723 (estimate_local_effects): Likewise.
724 (update_profiling_info): Likewise.
725 (create_specialized_node): Likewise.
726 (perhaps_add_new_callers): Likewise.
727 (decide_about_value): Likewise.
728 (decide_whether_version_node): Likewise.
729 (identify_dead_nodes): Likewise.
730 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
731 (dump_inline_summary): Likewise.
732 (estimate_node_size_and_time): Likewise.
733 (inline_analyze_function): Likewise.
734 * ipa-inline.c (report_inline_failed_reason): Likewise.
735 (want_early_inline_function_p): Likewise.
736 (edge_badness): Likewise.
737 (update_edge_key): Likewise.
738 (inline_small_functions): Likewise. Add dumping of order to two other
740 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
741 instead of node uids.
742 (propagate_pure_const): Likewise.
743 (propagate_pure_const): Likewise.
744 * ipa-utils.c (dump_cgraph_node_set): Likewise.
745 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
746 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
748 * tree-pretty-print.c (dump_function_header): Likewise.
749 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
750 Print symbol order instead of node uids.
752 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
754 * config/s390/s390.c (s390_register_move_cost): Don't impose the
755 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
757 2013-05-15 Richard Biener <rguenther@suse.de>
759 PR tree-optimization/57275
760 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
761 return value for fail to do runtime alias checks for gather loads.
763 2013-05-15 Jan Hubicka <jh@suse.cz>
767 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
768 weakrefs are not external.
769 (lto_symtab_merge_decls): Fix thinko when dealing with
770 non-lto_symtab decls.
771 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
772 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
773 * varpool.c (dump_varpool_node): Dump more flags.
775 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
777 * config/i386/i386.c (processor_alias_table): Add instruction
778 FSGSBASE for AMD bdver3 architecture.
780 2013-05-14 Jakub Jelinek <jakub@redhat.com>
782 * tree.c (warn_deprecated_use): Print file:line using locus color.
783 * diagnostic.c (diagnostic_report_current_module): Print file:line
784 and file:line:column using locus color.
786 2013-05-14 Mike Stump <mikestump@comcast.net>
788 * gdbinit.in: Add __null.
790 2013-05-14 Mike Stump <mikestump@comcast.net>
792 * recog.h: Rename struct recog_data to Recog_data.
794 * reload.c (can_reload_into): Likewise.
795 * config/picochip/picochip.c: Likewise.
797 2013-05-14 Mike Stump <mikestump@comcast.net>
799 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
801 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
803 * resource.h (struct resources): Remove unch_memory member.
804 (CLEAR_RESOURCE): Don't clear unch_memory.
805 * resource.c (mark_referenced_resources): Don't set it.
806 (mark_set_resources): Likewise.
807 (mark_target_live_regs): Don't clear it.
808 (init_resource_info): Likewise.
809 * reorg.c (resource_conflicts_p): Don't compare it.
810 (redundant_insn): Don't set it.
812 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
814 * emit-rtl.c (next_label): Remove unused function.
815 (skip_consecutive_labels, link_cc0_insns): Move to ...
816 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
817 only place where these functions are used, and make them static.
819 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
821 * fold-const.c (fold_negate_expr): Handle vectors.
822 (fold_truth_not_expr): Make it static.
823 (fold_invert_truthvalue): New static function.
824 (invert_truthvalue_loc): Handle vectors. Do not call
825 fold_truth_not_expr directly.
826 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
827 <TRUTH_NOT_EXPR>: Do not cast to boolean.
828 (fold_comparison): Handle vector constants.
829 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
830 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
831 * tree.h (fold_truth_not_expr): Remove declaration.
833 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
835 * config/aarch64/aarch64-simd.md
836 (aarch64_vcond_internal<mode>): Rename to...
837 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
838 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
839 float modes. Clarify all iterator modes.
840 (vcond<mode><mode>): Use new name for vcond expanders.
841 (vcond<v_cmp_result><mode>): Likewise.
842 (vcondu<mode><mode>: Likewise.
843 * config/aarch64/iterators.md (VDQF_COND): New.
845 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
848 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
849 variable for the shift amount. Check that we shift by non-negative
852 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
855 * config/arm/arm.h (EPILOGUE_USES): Only return true
856 for LR_REGNUM after epilogue_completed.
858 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
860 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
863 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
866 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
867 and Solaris 11+/x86 with gld.
868 * configure: Regenerate.
870 2013-05-14 Jakub Jelinek <jakub@redhat.com>
872 * expmed.c (expand_shift_1): Canonicalize rotates by
873 constant bitsize / 2 to bitsize - 1.
874 * simplify-rt.x (simplify_binary_operation_1) <case ROTATE,
875 case ROTATERT>: Likewise.
878 2013-05-10 Jakub Jelinek <jakub@redhat.com>
880 * config/i386/i386.md (rotateinv): New code attr.
881 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
882 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
885 2013-05-14 Richard Biener <rguenther@suse.de>
888 * tree-eh.c (sink_clobbers): Give up for successors with
889 multiple predecessors and no virtual uses.
891 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
893 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
894 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
896 2013-05-14 Jakub Jelinek <jakub@redhat.com>
899 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
900 the case when both op0 and op1 have VOIDmode.
902 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
904 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
905 in multiply-accumulate mode.
907 2013-05-13 Guozhi Wei <carrot@google.com>
909 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
911 2013-05-13 Kai Tietz <ktietz@redhat.com>
914 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
915 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
916 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
917 * config/i386/i386.c (ix86_option_override_internal): Likewise.
918 (ix86_expand_prologue): Likewise.
919 (ix86_expand_split_stack_prologue): Likewise.
920 (legitimate_pic_address_disp_p): Likewise.
921 (legitimize_pic_address): Likewise.
922 (legitimize_tls_address): Likewise.
923 (legitimize_pe_coff_symbol): Likewise.
924 (output_pic_addr_const): Likewise.
925 (construct_plt_address): Likewise.
926 (ix86_expand_call): Likewise.
927 (x86_output_mi_thunk): Likewise.
928 (x86_function_profiler): Likewise.
930 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
932 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
933 similar switch cases.
934 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
935 (aarch64_simd_mov_to_<mode>low): Delete.
936 (aarch64_simd_mov_to_<mode>high): Delete.
937 (move_lo_quad_<mode>): Add w<-r alternative.
938 (aarch64_simd_move_hi_quad_<mode>): Likewise.
939 (aarch64_simd_mov_from_*): Update type attribute.
940 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
943 2013-05-13 Jan Hubicka <jh@suse.cz>
945 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
946 * config/i386/i386.c (ix86_compute_frame_layout,
947 ix86_expand_epilogue, emit_i387_cw_initialization,
948 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
949 ix86_local_alignment): Fix use of size/speed predicates.
951 2013-05-13 Jakub Jelinek <jakub@redhat.com>
953 PR tree-optimization/45216
954 PR tree-optimization/57157
955 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
956 the (-Y) & (B - 1) variant if OP is |.
957 * expmed.c (expand_shift_1): For rotations by const0_rtx just
958 return shifted. Use (-op1) & (prec - 1) as other_amount
959 instead of prec - op1.
961 2013-05-13 Martin Jambor <mjambor@suse.cz>
964 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
965 (ipa_constant_data): New type.
966 (ipa_jump_func): Use ipa_constant_data to hold information about
967 constant jump functions.
968 (ipa_get_jf_constant): Adjust to jump function type changes.
969 (ipa_get_jf_constant_rdesc): New function.
970 (ipa_param_descriptor): New field controlled_uses.
971 (ipa_get_controlled_uses): New function.
972 (ipa_set_controlled_uses): Likewise.
973 * ipa-ref.h (ipa_find_reference): Declare.
974 * ipa-prop.c (ipa_cst_ref_desc): New type.
975 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
977 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
978 New parameter cs. Adjust all callers.
979 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
980 (remove_described_reference): New function.
981 (jfunc_rdesc_usable): Likewise.
982 (try_make_edge_direct_simple_call): Decrement controlled use count,
983 attempt to remove reference if it hits zero.
984 (combine_controlled_uses_counters): New function.
985 (propagate_controlled_uses): Likewise.
986 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
987 (ipa_edge_duplication_hook): Duplicate reference descriptions.
988 (ipa_print_node_params): Print described use counter.
989 (ipa_write_jump_function): Adjust to jump function type changes.
990 (ipa_read_jump_function): New parameter CS, pass it to
991 ipa_set_jf_constant. Adjust caller.
992 (ipa_write_node_info): Stream controlled use count
993 (ipa_read_node_info): Likewise.
994 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
996 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
997 count. Remove cloning-added reference if it reaches zero.
998 * ipa-ref.c (ipa_find_reference): New function.
1000 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1002 * config/i386/i386.c (processor_target_table): Modified default
1003 alignment values for AMD BD and BT architectures.
1005 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
1007 * tree-vect-generic.c (uniform_vector_p): Move ...
1008 * tree.c (uniform_vector_p): ... here.
1009 * tree.h (uniform_vector_p): Declare it.
1010 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
1013 2013-05-13 Jakub Jelinek <jakub@redhat.com>
1015 PR tree-optimization/57230
1016 * tree-ssa-strlen.c (handle_char_store): Record length for
1017 array store from STRING_CST.
1019 PR tree-optimization/57230
1020 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
1023 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
1025 * config/epiphany/epiphany.c (epiphany_init): Check size of
1026 NUM_MODES_FOR_MODE_SWITCHING.
1027 (epiphany_expand_prologue):
1028 Remove CONFIG_REGNUM initial value handling code.
1029 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1030 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
1031 (emit_set_fp_mode, epiphany_mode_after): Likewise.
1032 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1033 Don't return 1 for FP_MODE_NONE.
1034 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1035 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1036 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1037 * config/epiphany/epiphany.md (save_config): New pattern.
1039 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
1041 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
1043 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
1045 * config/i386/i386.md (memory): Handle sseishft1.
1046 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
1047 (*vec_extractv2di_1): Ditto.
1049 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
1051 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
1054 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
1056 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1057 Add mthumb/march=armv7-a multilib.
1058 Add mthumb/march=armv7-r multilib.
1059 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1061 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
1063 * config/v850/t-rtems: Add more multilibs.
1065 2013-05-10 Richard Biener <rguenther@suse.de>
1067 PR tree-optimization/57214
1068 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1069 not propagate from SSA names that occur in abnormal PHI nodes.
1071 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1073 * stor-layout.c (element_precision): New function.
1074 * machmode.h (element_precision): Declare it.
1075 * tree.c (build_minus_one_cst): New function.
1076 (element_precision): Likewise.
1077 * tree.h (build_minus_one_cst): Declare new function.
1078 (element_precision): Likewise.
1079 * fold-const.c (operand_equal_p): Use element_precision.
1080 (fold_binary_loc): Handle vector types.
1081 * convert.c (convert_to_integer): Use element_precision.
1082 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
1085 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
1087 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
1088 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
1089 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
1090 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1091 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
1092 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
1093 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
1094 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
1095 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
1096 (Uuw8): New constraints.
1097 (Usb4): Move into alphabetical order.
1098 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
1099 (sd8_operand, ub8_operand, uw8_operand): New predicates.
1100 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
1101 previously unnamed patterns.
1102 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
1103 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
1104 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
1105 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
1106 of set_attr_alternative/if_then_else. Use extended_mips16 instead
1107 of specific lengths.
1109 2013-05-10 Jakub Jelinek <jakub@redhat.com>
1111 * config/i386/i386.md (rotateinv): New code attr.
1112 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
1113 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
1114 roll $31, %eax, etc.
1116 PR tree-optimization/45216
1117 PR tree-optimization/57157
1118 * tree-ssa-forwprop.c (simplify_rotate): New function.
1119 (ssa_forward_propagate_and_combine): Call it.
1121 2013-05-10 Richard Biener <rguenther@suse.de>
1123 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1124 disable peeling when we version for aliasing.
1125 (vector_alignment_reachable_p): Honor explicit user alignment.
1126 (vect_supportable_dr_alignment): Likewise.
1127 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
1128 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
1129 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
1130 then peeling to arrange for the cost-model check to come first.
1132 2013-05-10 Alan Modra <amodra@gmail.com>
1134 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
1135 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
1136 * configure: Regenerate.
1138 2013-05-10 Alan Modra <amodra@gmail.com>
1141 * varasm.c (default_elf_select_section): Move !DECL_P check..
1142 (get_named_section): ..to here before calling get_section_name.
1144 (default_section_type_flags): Add DECL_P check.
1145 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1146 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1148 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
1150 * config/epiphany/epiphany.c (epiphany_expand_prologue):
1151 When using gen_stack_adjust_str with a register offset, add a
1152 REG_FRAME_RELATED_EXPR note.
1154 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
1156 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
1157 (*vec_extractv4si_zext_mem): Ditto.
1158 (*vec_extractv2di): Add 0->x and x->x alternatives.
1159 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
1160 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
1162 2013-05-09 Jason Merrill <jason@redhat.com>
1164 N3639 C++1y VLA support
1165 * gimplify.c (gimplify_vla_decl): Don't touch an existing
1168 * tree.c (build_constructor_va): New.
1169 * tree.h: Declare it.
1171 2013-05-09 Martin Jambor <mjambor@suse.cz>
1174 * gimple-fold.c (canonicalize_constructor_val): Call
1175 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
1177 2013-05-09 Jan Hubicka <jh@suse.cz>
1178 Richard Biener <rguenther@suse.de>
1181 * symtab.c (symtab_make_decl_local): Do not add private names.
1183 2013-05-09 Jan Hubicka <jh@suse.cz>
1186 * symtab.c (insert_to_assembler_name_hash): Handle clones.
1187 (unlink_from_assembler_name_hash): Likewise.
1188 (symtab_prevail_in_asm_name_hash, symtab_register_node,
1189 symtab_unregister_node, symtab_initialize_asm_name_hash,
1190 change_decl_assembler_name): Update.
1192 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
1194 * config/aarch64/aarch64.md: New movtf split.
1195 (*movtf_aarch64): Update.
1196 (aarch64_movdi_tilow): Handle TF modes and rename to
1197 aarch64_movdi_<mode>low.
1198 (aarch64_movdi_tihigh): Handle TF modes and rename to
1199 aarch64_movdi_<mode>high
1200 (aarch64_movtihigh_di): Handle TF modes and rename to
1201 aarch64_mov<mode>high_di
1202 (aarch64_movtilow_di): Handle TF modes and rename to
1203 aarch64_mov<mode>low_di
1204 (aarch64_movtilow_tilow): Remove spurious whitespace.
1205 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
1207 (aarch64_print_operand): Update.
1209 2013-05-09 Alan Modra <amodra@gmail.com>
1211 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
1213 * configure: Regenerate.
1215 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
1217 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
1218 splitter preparation statements.
1219 * config/i386/sse.md (*vec_extract* splitters): Ditto.
1220 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
1223 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1225 * gimple-ssa-strength-reduction.c (count_candidates): Change
1226 return value to int.
1227 (analyze_candidates_and_replace): Change type of length to int.
1229 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
1231 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
1232 (*vec_extract<mode>): Use VI12_128 mode iterator.
1233 (*vec_extract<mode>_mem): Ditto.
1234 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
1237 2013-05-08 Diego Novillo <dnovillo@google.com>
1242 2012-08-17 Diego Novillo <dnovillo@google.com>
1245 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1246 * config.in: Regenerate.
1247 * configure: Regenerate.
1248 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
1250 2013-05-08 Jan Hubicka <jh@suse.cz>
1253 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
1254 * cgraph.h (symtab_node_base): Add unique_name.
1255 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1256 input_overwrite_node, input_varpool_node): Stream unique_name.
1257 * cgraphclones.c (cgraph_create_virtual_clone,
1258 cgraph_function_versioning): Set unique_name.
1259 * ipa.c (function_and_variable_visibility): Set unique_name.
1261 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1263 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
1264 (alloc_cand_and_find_basis): Restrict conditional candidate
1265 processing to CAND_MULTs.
1267 2013-05-08 Jan Hubicka <jh@suse.cz>
1270 lto-symtab.c (lto_symtab_symbol_p): New function.
1271 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
1272 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
1273 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
1274 Skip static symbols.
1276 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
1278 PR tree-optimization/57200
1279 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1280 Only call inform if the preceding warning_at returns true.
1282 2013-05-07 Han Shen <shenhan@google.com>
1284 * cfgexpand.c (record_or_union_type_has_array_p): New function.
1285 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
1286 * common.opt (fstack-protector-strong): New option.
1287 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
1288 * doc/invoke.texi (Optimization Options): Document
1289 "-fstack-protector-strong".
1290 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
1292 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1294 * config/mips/mips.c (mips_machine_reorg2): Return 0.
1296 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
1298 * ira.c (update_equiv_regs): Add insn having equiv memory even if
1299 it is not lhs of the insn.
1300 (setup_reg_equiv): Remove insn having equiv memory which it is not
1302 * lra-constraints.c (process_address): Try to improve generation
1303 code for address base + disp.
1304 (lra_constraints): Make correct the code for checking insn setting
1305 up backward equivalence. Remove insn only if it is in the init
1307 * lra-eliminations.c (update_reg_eliminate): Change return value.
1308 (lra_eliminate): Use the result.
1310 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
1312 * config/i386/sse.md (ssescalarnummask): New mode attribute.
1313 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
1314 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
1315 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
1316 register target operands.
1317 (*vec_extractv8hi_sse2): New pattern.
1318 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
1319 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
1320 (*vec_extract<mode>_mem): New insn and split pattern.
1322 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
1324 * config/arm/arm.c (arm_asan_shadow_offset): New function.
1325 (TARGET_ASAN_SHADOW_OFFSET): Define.
1326 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
1327 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
1329 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1331 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
1332 (incr_vec_index): Return -1 if increment not found.
1333 (create_add_on_incoming_edge): Assert if increment not found.
1334 (record_increment): Limit number of increments recorded.
1335 (all_phi_incrs_profitable): Return false if an increment not found.
1336 (replace_profitable_candidates): Don't process increments that were
1338 (analyze_candidates_and_replace): Limit size of incr_vec.
1340 2013-05-07 Richard Biener <rguenther@suse.de>
1342 * calls.c (special_function_p): setjmp-like functions are leaf.
1343 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
1344 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
1346 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
1348 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
1349 (aarch64_simd_mov<mode>): New expander.
1350 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
1351 (aarch64_simd_mov_to_<mode>high): Likewise.
1352 (aarch64_simd_mov_from_<mode>low): Likewise.
1353 (aarch64_simd_mov_from_<mode>high): Likewise.
1354 (aarch64_dup_lane<mode>): Update.
1355 (aarch64_dup_lanedi): New instruction pattern.
1356 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
1357 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
1359 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1361 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
1362 (replace_mult_candidate): Remove unnecessary argument; remove
1363 unnecessary parameter from call to introduce_cast_before_cand.
1364 (replace_unconditional_candidate): Remove unnecessary parameter
1365 from call to replace_mult_candidate.
1366 (replace_conditional_candidate): Likewise.
1367 (insert_initializers): Use make_temp_ssa_name.
1368 (introduce_cast_before_cand): Remove unnecessary argument; use
1370 (replace_one_candidate): Remove unnecessary argument; remove
1371 unnecessary parameter from calls to introduce_cast_before_cand.
1372 (replace_profitable_candidates): Remove unnecessary parameters
1373 from calls to replace_one_candidate.
1375 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1377 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
1378 phi def as possibly hiding a basis for a CAND_ADD whose operands
1379 have been commuted in the analysis.
1380 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
1382 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1384 * config/aarch64/aarch64.md
1385 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
1386 shift value between 0-4.
1388 2013-05-07 Richard Biener <rguenther@suse.de>
1390 * double-int.h (rshift): New overload.
1391 * double-int.c (rshift): New function.
1392 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
1393 (create_reference_ops_from_ref): Remove.
1394 (vn_reference_insert): Use shared ops for constructing the
1395 reference and copy it.
1397 2013-05-07 Richard Biener <rguenther@suse.de>
1400 * tree-eh.c (sink_clobbers): Properly propagate
1401 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1403 2013-05-07 Jakub Jelinek <jakub@redhat.com>
1405 PR tree-optimization/57149
1406 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1407 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1408 collect_phi_def_edges, execute_late_warn_uninitialized): Use
1409 uninit_undefined_value_p instead of ssa_undefined_value_p.
1412 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1413 for modifier == EXPAND_INITIALIZER.
1415 2013-05-07 Anton Blanchard <anton@samba.org>
1417 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
1418 for powerpc64 little endian.
1419 * configure: Regenerate.
1421 2013-05-06 Graham Stott <grahams@btinternet.com>
1423 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
1424 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
1425 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
1426 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
1428 2013-05-06 Graham Stott <grahams@btinternet.com>
1430 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
1431 codes which allow non-lvalues.
1433 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
1435 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
1436 components are all 1s.
1437 (integer_minus_onep): New function.
1438 * tree.h (integer_minus_onep): Declare it.
1439 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
1440 integer_minus_onep instead of integer_all_onesp.
1442 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1445 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
1446 variations of these patterns.
1448 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
1450 * config/i386/i386.md (isa): Add x64_sse4 member.
1451 (enabled): Handle x64_sse4.
1452 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
1453 instruction for 64bit SSE4_1 targets. Update insn attributes.
1454 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
1455 instruction for SSE4_1 targets. Update insn attributes.
1456 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1457 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
1458 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
1460 (*vec_extractv4si): Rename from *sse4_1_pextrd.
1461 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
1462 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
1464 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1467 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1469 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
1471 * final.c (do_assembler_dialects): Don't handle curly braces and
1472 vertical bar escaped by % as dialect delimiters.
1473 (output_asm_insn): Print curly braces and vertical bar if escaped
1474 by % and ASSEMBLER_DIALECT defined.
1475 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
1476 * doc/tm.texi: Regenerated.
1478 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
1480 * config/mips/mips.c: Include tree-pass.h.
1481 (mips_reorg): Split in pre- and post-dbr_schedule parts.
1482 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
1483 (pass_mips_machine_reorg2): New machine specific pass.
1484 (insert_pass_mips_machine_reorg2): New pass plugin definition.
1485 (mips_option_override): Register the new pass.
1486 * rtl.h (cleanup_barriers): Remove prototype.
1487 (dbr_schedule): Likewise.
1488 * jump.c (cleanup_barriers): Make static.
1489 * reorg.c (dbr_schedule): Likewise.
1491 2013-05-06 Richard Biener <rguenther@suse.de>
1493 PR tree-optimization/57185
1494 * tree-parloops.c (add_field_for_reduction): Handle anonymous
1497 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
1500 * config/i386/i386.c (add_parameter_dependencies): Add dependence
1501 between "first_arg" and "insn", not "last" and "insn".
1503 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1505 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
1506 (find_candidates_in_block): Re-enable slsr_process_phi.
1507 (create_phi_basis): Fix double counting of candidate adjustment.
1509 2013-05-06 Richard Biener <rguenther@suse.de>
1512 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
1513 the edge is also fallthru, preserve it and just clear the
1515 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
1516 also complex, preserve that and just clear the fallthru flag.
1517 * tree-inline.c (update_ssa_across_abnormal_edges): Also
1518 update virtual operands.
1520 2013-05-06 Alan Modra <amodra@gmail.com>
1522 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
1523 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
1524 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
1525 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
1526 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1527 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
1529 2013-05-06 Alan Modra <amodra@gmail.com>
1531 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
1532 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
1533 (DEFAULT_ASM_ENDIAN): Define.
1534 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
1535 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
1536 Update -K PIC clause from sysv4.h.
1537 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
1538 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
1540 2013-05-06 Alan Modra <amodra@gmail.com>
1542 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
1543 twice for little-endian.
1544 (ashrdi3_no_power, ashrdi3): Support little-endian.
1546 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
1549 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
1550 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
1552 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
1553 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
1554 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
1557 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
1558 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1560 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
1561 * config/pa/pa.opt: Make mbig-switch a no-op.
1562 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
1563 (CASE_VECTOR_MODE): Always return SImode.
1564 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
1565 for the !TARGET_BIG_SWITCH case.
1566 * config/pa/pa-linux.h: Likewise.
1567 * config/pa/pa-openbsd.h: Likewise.
1568 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
1569 * config/pa/pa.md (short_jump): Remove define_insn.
1570 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
1571 (casesi0): Remove define_insn.
1572 (type): Remove btable_branch.
1573 (pa_combine_type): Likewise.
1574 (in_nullified_branch_delay): Likewise.
1575 (in_call_delay): Likewise.
1576 (define_delay): Likewise.
1577 (define_insn_reservation "Z3"): Likewise.
1578 (define_insn_reservation "Z4"): Likewise.
1579 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
1580 (pa_adjust_insn_length): Remove adjustment for btable branches.
1581 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
1584 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
1586 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
1587 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
1588 Add m->r,x alternatives.
1589 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
1590 splitters using SWI48x mode iterator.
1591 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
1592 TARGET_64BIT. Add m->x alternative.
1593 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
1594 Add o->x alternative. Enable for TARGET_SSE.
1595 (sse_storeq): Remove expander.
1596 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
1597 with memory input operand.
1598 (*vec_extractv2di_1 splitter): New.
1599 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
1600 * config/i386/i386.md (ssevecmodelower): New mode attribute.
1602 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1604 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
1605 (INT_LOWPART): Delete.
1606 (extract_MB): Adjust.
1607 (extract_ME): Adjust.
1608 (print_operand): Adjust.
1610 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
1612 * config/rs6000/predicates.md (reg_or_add_cint_operand,
1613 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1614 (reg_or_logical_cint_operand, easy_fp_constant,
1615 logical_const_operand): Delete "CONST_DOUBLE" case.
1616 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
1617 "HOST_BITS_PER_WIDE_INT == 64" test.
1618 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
1619 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
1620 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
1621 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
1623 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
1624 CONST_DOUBLE DImode/VOIDmode case.
1625 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
1626 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1627 CONST_DOUBLE VOIDmode case.
1628 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
1629 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
1630 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
1631 Delete CONST_DOUBLE case.
1632 (splitters for mov FMOVE64 const_double): Delete
1633 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
1634 "HOST_BITS_PER_WIDE_INT >= 64" test.
1635 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
1637 (mov DI const_double): Delete.
1639 2013-05-04 Jakub Jelinek <jakub@redhat.com>
1641 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
1642 on op shows all bits zero in mode of a lowpart subreg, return zero.
1644 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1647 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1648 to save TFmode registers and DImode to save TImode registers for
1649 caller save operations.
1650 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1651 mark being partially clobbered since they only use the first
1654 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1655 and TDmode only use the upper 64-bits of each VSX register.
1657 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1659 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
1660 (find_candidates_in_block): Disable slsr_process_phi.
1662 2013-05-03 Guozhi Wei <carrot@google.com>
1664 * coverage.c (coverage_obj_init): Move the construction of gcov
1666 (build_init_ctor): ... here.
1668 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1670 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
1671 (slsr_cand_d): Redefine def_phi.
1672 (stride_status, phi_adjust_status, count_phis_status): New enums.
1673 (find_phi_def): New.
1674 (find_basis_for_base_expr): New.
1675 (find_basis_for_candidate): Handle hidden bases.
1676 (alloc_cand_and_find_basis): Handle phi candidates.
1677 (slsr_process_phi): New.
1678 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
1679 (create_mul_imm_cand): Likewise.
1680 (create_add_ssa_cand): Exclude phi base candidates.
1681 (create_add_imm_cand): Likewise.
1682 (slsr_process_cast): Likewise.
1683 (slsr_process_copy): Likewise.
1684 (find_candidates_in_block): Handle phi candidates.
1685 (dump_candidate): Likewise.
1686 (unconditional_cands): Delete.
1687 (unconditional_cands_with_known_stride_p): Delete.
1688 (phi_dependent_cand_p): New.
1689 (cand_increment): Handle phi-dependent candidates.
1690 (replace_dependent): Delete.
1691 (replace_mult_candidate): New.
1692 (replace_unconditional_candidate): New.
1693 (incr_vec_index): Move to avoid forward reference.
1694 (create_add_on_incoming_edge): New.
1695 (create_phi_basis): New.
1696 (replace_dependents): Delete.
1697 (replace_conditional_candidate): New.
1698 (phi_add_costs): New.
1699 (replace_uncond_cands_and_profitable_phis): New.
1700 (record_increment): Handle phi adjustments.
1701 (record_phi_increments): New.
1702 (record_increments): Handle phi adjustments.
1703 (phi_incr_cost): New.
1704 (lowest_cost_path): Handle phis.
1705 (total_savings): Likewise.
1706 (analyze_increments): Likewise.
1707 (ncd_with_phi): New.
1708 (ncd_of_cand_and_phis): New.
1709 (nearest_common_dominator_for_cands): Handle phi increments.
1710 (all_phi_incrs_profitable): New.
1711 (replace_profitable_candidates): Handle phi-dependent candidates.
1712 (analyze_candidates_and_replace): Likewise.
1714 2013-05-03 Teresa Johnson <tejohnson@google.com>
1717 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
1718 do not exceed REG_BR_PROB_BASE.
1720 2013-05-03 Jeff Law <law@redhat.com>
1722 PR tree-optimization/57144
1723 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
1724 operand of the condition will bit into the new type when eliminating
1725 a cast feeding a condition.
1727 2013-05-03 Jakub Jelinek <jakub@redhat.com>
1729 PR rtl-optimization/57130
1730 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
1731 of COMPARE as in_code to the recursive call if needed.
1733 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
1735 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
1736 (enabled): Handle new members.
1737 * config/i386/sse.md (*vec_concatv2si): Merge from
1738 *vec_concatv2si_sse2 and vec_concatv2si_sse.
1739 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
1741 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
1743 PR tree-optimization/57027
1744 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
1745 for fnms opportunity, check we got the prerequisite kind
1746 of tree / gimple before using accessor functions.
1748 2013-05-03 Richard Biener <rguenther@suse.de>
1750 * double-int.h (lshift): New overload without precision
1752 (operator *=, operator +=, operator -=): Move ...
1753 * double-int.c (operator *=, operator +=, operator -=): ... here
1754 and implement more efficiently.
1755 (mul_double_with_sign): Remove.
1756 (lshift_double): Adjust to take unsinged shift argument, push
1757 dispatching code to callers.
1758 (mul_double_wide_with_sign): Add early out for callers that
1759 are not interested in high parts or overflow.
1760 (lshift): New function.
1761 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
1763 (lrotate, rrotate): Use logical shifts.
1764 * expr.c (get_inner_reference): Use lshift.
1765 * fixed-value.c (do_fixed_divide): Likewise.
1766 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1767 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
1768 (indirect_refs_may_alias_p): Likewise.
1769 (stmt_kills_ref_p_1): Likewise.
1771 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1773 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
1775 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
1777 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
1778 scalar form of FABD instruction.
1780 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
1782 * lra-constraints.c (process_alt_operands): Add checking alt
1783 number to choose the best alternative.
1785 2013-05-02 Richard Biener <rguenther@suse.de>
1787 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
1788 bitmap and its handling.
1789 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
1791 2013-05-02 Richard Biener <rguenther@suse.de>
1794 * tree-inline.c (copy_loops): Properly handle removed loops.
1795 (copy_cfg_body): Mark destination loops for fixup if source
1798 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
1801 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
1802 generating simple_return for naked functions.
1804 2013-05-02 Martin Jambor <mjambor@suse.cz>
1807 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1808 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
1810 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
1811 ipa_agg_replacement_value structures.
1812 (known_aggs_to_agg_replacement_list): Likewise.
1813 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1814 (read_agg_replacement_chain): Likewise.
1815 (ipcp_transform_function): Also check that by_ref flags match.
1817 2013-05-02 Richard Biener <rguenther@suse.de>
1819 * graphds.h (struct graph): Add obstack member.
1820 * graphds.c (new_graph): Initialize obstack and allocate
1822 (add_edge): Allocate edge from the obstack.
1823 (free_graph): Free the obstack instead of all edges and vertices.
1825 2013-05-02 Teresa Johnson <tejohnson@google.com>
1827 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
1829 * cfg.c (update_bb_profile_for_threading): Ditto.
1830 * tree-inline.c (copy_bb): Ditto.
1831 (copy_edges_for_bb): Ditto.
1832 (initialize_cfun): Ditto.
1833 (copy_cfg_body): Ditto.
1834 (expand_call_inline): Ditto.
1835 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
1836 (estimate_node_size_and_time): Ditto.
1837 (inline_merge_summary): Ditto.
1838 * cgraphclones.c (cgraph_clone_edge): Ditto.
1839 (cgraph_clone_node): Ditto.
1840 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1841 (compute_trg_info): Ditto.
1843 2013-05-02 Ian Bolton <ian.bolton@arm.com>
1845 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
1846 S reg when fp attribute set.
1847 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
1849 2013-05-02 Ian Bolton <ian.bolton@arm.com>
1851 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
1853 (*and_one_cmplsi3_compare0_uxtw): Likewise.
1854 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
1855 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
1857 2013-05-02 Richard Biener <rguenther@suse.de>
1859 * tree-scalar-evolution.c (scev_info_hasher): Remove.
1860 (struct instantiate_cache_entry): New type.
1861 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
1862 (struct instantiate_cache_type): New type.
1863 (set_instantiated_value, get_instantiated_value): Remove.
1864 (get_instantiated_value_entry): New function.
1865 (instantiate_scev_name): Use the new cache and adjust.
1866 (instantiate_scev_poly): Adjust.
1867 (instantiate_scev_binary): Likewise.
1868 (instantiate_array_ref): Likewise.
1869 (instantiate_scev_convert): Likewise.
1870 (instantiate_scev_not): Likewise.
1871 (instantiate_scev_3): Likewise.
1872 (instantiate_scev_2): Likewise.
1873 (instantiate_scev_r): Likewise.
1874 (instantiate_scev): Likewise.
1875 (resolve_mixers): Likewise.
1877 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
1880 * lra-constraints.c (best_small_class_operands_num): Remove.
1881 (process_alt_operands): Remove small_class_operands_num. Take
1882 small classes operands into losers and only if the operand is not
1883 matched. Modify debugging output.
1884 (curr_insn_transform): Remove best_small_class_operands_num.
1887 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1889 * config/aarch64/aarch64-builtins.c
1890 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
1891 * config/aarch64/aarch64-simd-builtins.def
1892 (reduc_splus_): Add new modes.
1893 (reduc_uplus_): New.
1894 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
1895 (reduc_uplus_v4sf): Likewise.
1896 (reduc_splus_v4sf): Likewise.
1897 (aarch64_addv<mode>): Likewise.
1898 (reduc_uplus_<mode>): Likewise.
1899 (reduc_splus_<mode>): Likewise.
1900 (aarch64_addvv2di): Likewise.
1901 (reduc_uplus_v2di): Likewise.
1902 (reduc_splus_v2di): Likewise.
1903 (aarch64_addvv2si): Likewise.
1904 (reduc_uplus_v2si): Likewise.
1905 (reduc_splus_v2si): Likewise.
1906 (reduc_<sur>plus_<mode>): New.
1907 (reduc_<sur>plus_v2di): Likewise.
1908 (reduc_<sur>plus_v2si): Likewise.
1909 (reduc_<sur>plus_v4sf): Likewise.
1910 (aarch64_addpv4sf): Likewise.
1911 * config/aarch64/arm_neon.h
1912 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
1913 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
1914 add UNSPEC_SADDV, UNSPEC_UADDV.
1916 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
1918 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1920 * config/aarch64/arm_neon.h
1921 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
1923 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1925 * config/aarch64/aarch64-builtins
1926 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
1928 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1930 * config/aarch64/aarch64-simd-builtins.def
1932 (reduc_smin_): Likewise.
1933 (reduc_umax_): Likewise.
1934 (reduc_umin_): Likewise.
1935 (reduc_smax_nan_): Likewise.
1936 (reduc_smin_nan_): Likewise.
1939 (smax): Update for V2SF, V4SF and V2DF modes.
1942 (smin_nan): Likewise.
1943 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1944 (<su><maxmin><mode>3): ...This, refactor.
1945 (s<maxmin><mode>3): New.
1946 (<maxmin_uns><mode>3): Likewise.
1947 (reduc_<maxmin_uns>_<mode>): Refactor.
1948 (reduc_<maxmin_uns>_v4sf): Likewise.
1949 (reduc_<maxmin_uns>_v2si): Likewise.
1950 (aarch64_<fmaxmin><mode>: Remove.
1951 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1953 (vmin<q>_f<32,64>): Likewise.
1954 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1956 (su): Add mappings for smax, smin, umax, umin.
1958 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1959 (FMAXMIN): Rename as...
1960 (FMAXMIN_UNS): ...This.
1962 (fmaxminv): Likewise.
1963 (fmaxmin): Likewise.
1965 (maxmin_uns_op): Likewise.
1967 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1969 * config/aarch64/arm_neon.h
1970 (vac<ge, gt><sd>_f<32, 64>): Rename to...
1971 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1972 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1974 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1976 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1977 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1979 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1981 * config/aarch64/aarch64-simd.md
1982 (vcond<mode>_internal): Handle special cases for constant masks.
1983 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1984 (vcondu<mode><mode>): Likewise.
1985 (vcond<v_cmp_result><mode>): New.
1987 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1989 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1990 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
1991 * config/aarch64/aarch64-simd-builtins.def
1992 (cmeq): Update to BUILTIN_VALLDI.
1997 * config/aarch64/arm_neon.h
1998 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
1999 to builtins or C as appropriate.
2001 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
2003 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
2005 (cmhi): Rename to...
2007 * config/aarch64/aarch64-simd.md
2008 (simd_mode): Add SF.
2009 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
2010 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
2011 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
2012 (cstore<mode>_neg): ...This.
2013 * config/aarch64/iterators.md
2015 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
2017 (UCOMPARISONS): Likewise.
2018 (optab): Add missing comparisons.
2026 (V_cmp_result): Add DF, SF modes.
2027 (v_cmp_result): Likewise.
2030 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
2032 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
2034 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
2035 define_insn to define_insn_and_split.
2036 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
2037 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
2038 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
2039 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
2040 (thumb2_negscc): Likewise.
2042 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2044 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
2046 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
2048 * config/arm/thumb2.md: Remove trailing whitespaces.
2050 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2052 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
2053 Use gen_int_mode rather than GEN_INT.
2055 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
2057 * value-prof.c (stream_in_histogram_value): Remove the strayed
2060 2013-04-30 Richard Biener <rguenther@suse.de>
2063 * cfghooks.c (split_edge): Properly check for the loop latch edge.
2065 2013-04-30 Richard Biener <rguenther@suse.de>
2068 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
2070 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
2072 PR rtl-optimization/56957
2073 PR rtl-optimization/57105
2074 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
2075 variable. Use just INSN_UID for determining whether an insn
2076 should be only disconnected from the insn stream.
2077 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
2079 2013-04-30 Jakub Jelinek <jakub@redhat.com>
2081 PR tree-optimization/57104
2082 * tsan.c (instrument_expr): Don't instrument accesses to
2083 DECL_HARD_REGISTER VAR_DECLs.
2085 2013-04-30 Richard Biener <rguenther@suse.de>
2087 * function.h (loops_for_fn): New inline function.
2088 (set_loops_for_fn): Likewise.
2089 * cfgloop.h (place_new_loop): Add struct function parameter.
2090 (get_loop): Likewise.
2091 (get_loops): Likewise.
2092 (number_of_loops): Likewise.
2094 (fel_init): Likewise.
2095 * cfg.c (get_loop_copy): Adjust.
2096 * cfgloop.c (flow_loops_dump): Likewise.
2097 (record_loop_exits): Likewise.
2098 (verify_loop_structure): Likewise.
2099 * cfgloopanal.c (mark_irreducible_loops): Likewise.
2100 (estimate_reg_pressure_cost): Likewise.
2101 (mark_loop_exit_edges): Likewise.
2102 * cfgloopmanip.c (place_new_loop): Likewise.
2103 (add_loop): Likewise.
2104 (duplicate_loop): Likewise.
2105 * graph.c (draw_cfg_nodes): Likewise.
2106 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
2107 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
2108 (extract_affine_chrec): Likewise.
2109 (build_scop_iteration_domain): Likewise.
2110 * graphite.c (graphite_initialize): Likewise.
2111 * ira-build.c (create_loop_tree_nodes): Likewise.
2112 (more_one_region_p): Likewise.
2113 (rebuild_regno_allocno_maps): Likewise.
2114 (mark_loops_for_removal): Likewise.
2115 (mark_all_loops_for_removal): Likewise.
2116 (remove_unnecessary_regions): Likewise.
2117 (ira_build): Likewise.
2118 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
2119 * loop-init.c (fix_loop_structure): Likewise.
2120 (gate_rtl_move_loop_invariants): Likewise.
2121 (gate_rtl_unswitch): Likewise.
2122 (gate_rtl_unroll_and_peel_loops): Likewise.
2123 (rtl_doloop): Likewise.
2124 * lto-streamer-in.c (input_cfg): Likewise.
2125 * lto-streamer-out.c (output_cfg): Likewise.
2126 * modulo-sched.c (sms_schedule): Likewise.
2127 * predict.c (tree_estimate_probability): Likewise.
2128 (tree_estimate_probability_driver): Likewise.
2129 (estimate_loops): Likewise.
2130 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
2131 (move_sese_region_to_fn): Likewise.
2132 (debug_loop_num): Likewise.
2133 * tree-chrec.c (chrec_evaluate): Likewise.
2134 (hide_evolution_in_other_loops_than_loop): Likewise.
2135 (chrec_component_in_loop_num): Likewise.
2136 (reset_evolution_in_loop): Likewise.
2137 (evolution_function_is_invariant_rec_p): Likewise.
2138 * tree-if-conv.c (main_tree_if_conversion): Likewise.
2139 * tree-inline.c (copy_loops): Likewise.
2140 (copy_cfg_body): Likewise.
2141 (tree_function_versioning): Likewise.
2142 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
2143 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
2145 (add_to_evolution_1): Likewise.
2146 (scev_const_prop): Likewise.
2147 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
2148 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
2149 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2150 (tree_ssa_lim_initialize): Likewise.
2151 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
2152 (verify_loop_closed_ssa): Likewise.
2153 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
2154 (tree_ssa_loop_im): Likewise.
2155 (tree_ssa_loop_unswitch): Likewise.
2156 (tree_vectorize): Likewise.
2157 (check_data_deps): Likewise.
2158 (tree_ssa_loop_ivcanon): Likewise.
2159 (tree_ssa_loop_bounds): Likewise.
2160 (tree_complete_unroll): Likewise.
2161 (tree_complete_unroll_inner): Likewise.
2162 (tree_parallelize_loops): Likewise.
2163 (tree_ssa_loop_prefetch): Likewise.
2164 (tree_ssa_loop_ivopts): Likewise.
2165 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
2166 * tree-vectorizer.c (vectorize_loops): Likewise.
2168 2013-04-29 Mike Frysinger <vapier@gentoo.org>
2170 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
2171 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
2172 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
2173 with EABI_LINK_SPEC.
2175 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2178 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
2181 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
2184 * lra-constraints.c (process_alt_operands): Discourage a bit more
2185 using memory for pseudos. Print cost dump for alternatives.
2186 Modify cost values for conflicts with early clobbers.
2187 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
2189 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2192 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
2194 2013-04-29 Ian Bolton <ian.bolton@arm.com>
2196 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
2198 (movdi_aarch64): Support LDR/STR from/to D register.
2200 2013-04-29 Ian Bolton <ian.bolton@arm.com>
2202 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
2203 or higher by default.
2205 2013-04-29 Richard Biener <rguenther@suse.de>
2208 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
2209 even if not adding abnormal edges for calls that can make
2212 2013-04-29 Richard Biener <rguenther@suse.de>
2215 * tree-cfg.c (move_stmt_op): Fix condition under which to update
2217 (move_stmt_r): Remove redundant checking.
2219 2013-04-29 Teresa Johnson <tejohnson@google.com>
2222 * basic-block.h (apply_scale): New function.
2223 (apply_probability): Use apply_scale.
2224 * gimple-streamer-in.c (input_bb): Ditto.
2225 * lto-streamer-in.c (input_cfg): Ditto.
2226 * lto-cgraph.c (merge_profile_summaries): Ditto.
2227 * tree-optimize.c (execute_fixup_cfg): Ditto.
2228 * tree-inline.c (copy_bb): Update comment to use apply_scale.
2229 (copy_edges_for_bb): Ditto.
2230 (copy_cfg_body): Ditto.
2232 2013-04-29 Tom de Vries <tom@codesourcery.com>
2234 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
2235 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
2236 (tail_merge_optimize): Handle current_loops == NULL.
2238 2013-04-26 Jeff Law <law@redhat.com>
2240 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
2241 (simplify_cond_using_ranges): Generalize code to simplify
2242 COND_EXPRs where one argument is a constant and the other
2243 is an SSA_NAME created by an integral type conversion.
2245 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2247 * config/arm/arm.md (store_minmaxsi): Use only when
2248 optimize_insn_for_size_p.
2250 2013-04-29 Christian Bruel <christian.bruel@st.com>
2253 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2255 2013-04-29 Richard Biener <rguenther@suse.de>
2258 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
2259 loop tree make sure to schedule a fixup for the child as well.
2260 (expand_omp_for_generic): Properly add loops.
2261 (expand_omp_for_static_nochunk): Likewise.
2262 (expand_omp_for_static_chunk): Likewise.
2263 (expand_omp_for): For the degenerate case fixup loops.
2264 (expand_omp_sections): Fix default bb placement in loops.
2265 (expand_omp_atomic_pipeline): Properly add loops.
2267 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2269 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
2271 2013-04-29 Tom de Vries <tom@codesourcery.com>
2273 * tree-ssa-tail-merge.c: Update header comment.
2275 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2277 * config/aarch64/arm_neon.h
2278 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
2279 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
2280 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
2281 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
2282 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
2283 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
2284 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
2285 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
2287 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2289 * config/aarch64/aarch64-simd.md
2290 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
2291 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
2292 fix_trunc, fixuns_trunc.
2293 (ftrunc<VDQF:mode>2): New.
2294 * config/aarch64/iterators.md (optab): Add fix, fixuns.
2295 (fix_trunc_optab): New.
2297 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2299 * config/aarch64/aarch64-builtins.c
2300 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
2301 iceilf, lround, iroundf.
2303 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
2306 * config/i386/i386.h (enum ix86_tune_indices)
2307 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
2308 New, split from X86_TUNE_INTER_UNIT_MOVES.
2309 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
2310 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
2311 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
2312 (TARGET_INTER_UNIT_MOVES): Remove.
2313 * config/i386/i386.c (initial_ix86_tune_features): Update.
2314 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
2315 (ix86_expand_convert_uns_didf_sse): Use
2316 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2317 (ix86_expand_vector_init_one_nonzero): Ditto.
2318 (ix86_expand_vector_init_interleave): Ditto.
2319 (inline_secondary_memory_needed): Return true for moves from SSE class
2320 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
2321 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
2322 * config/i386/constraints.md (Yi, Ym): Depend on
2323 TARGET_INTER_UNIT_MOVES_TO_VEC.
2324 (Yj, Yn): New constraints.
2325 * config/i386/i386.md (*movdi_internal): Change constraints of
2326 operand 1 from Yi to Yj and from Ym to Yn.
2327 (*movsi_internal): Ditto.
2328 (*movdf_internal): Ditto.
2329 (*movsf_internal): Ditto.
2330 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
2331 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
2332 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
2333 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
2334 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
2335 * config/i386/sse.md (movdi_to_sse): Ditto.
2336 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
2337 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
2338 TARGET_INTER_UNIT_MOVES.
2339 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
2340 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
2341 instead of TARGET_INTER_UNIT_MOVES.
2342 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
2343 operand 1 from Yi to Yj and from Ym to Yn.
2345 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2347 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
2348 (float_truncate_hi_): Likewise.
2349 (float_extend_lo_): Likewise.
2350 (float_truncate_lo_): Likewise.
2351 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
2352 (aarch64_float_extend_lo_v2df): Likewise.
2353 (vec_unpacks_hi_v4sf): Likewise.
2354 (aarch64_float_truncate_lo_v2sf): Likewise.
2355 (aarch64_float_truncate_hi_v4sf): Likewise.
2356 (vec_pack_trunc_v2df): Likewise.
2357 (vec_pack_trunc_df): Likewise.
2359 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2361 * config/aarch64/aarch64-builtins.c
2362 (aarch64_fold_builtin): Fold float conversions.
2363 * config/aarch64/aarch64-simd-builtins.def
2364 (floatv2si, floatv4si, floatv2di): New.
2365 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
2366 * config/aarch64/aarch64-simd.md
2367 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
2368 * config/aarch64/iterators.md (FLOATUORS): New.
2369 (optab): Add float, floatuns.
2370 (su_optab): Likewise.
2372 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2374 * config/aarch64/aarch64-builtins.c
2375 (aarch64_builtin_vectorized_function): Use new names for
2377 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
2378 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
2379 (fcvtzu): Split as...
2380 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
2381 (fcvtas): Split as...
2382 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
2383 (fcvtau): Split as...
2384 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
2385 (fcvtps): Split as...
2386 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
2387 (fcvtpu): Split as...
2388 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
2389 (fcvtms): Split as...
2390 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
2391 (fcvtmu): Split as...
2392 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
2393 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
2394 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
2395 (lfrintnusf, lfrintnudf): Likewise.
2396 * config/aarch64/aarch64-simd.md
2397 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
2399 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
2400 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
2401 (fcvt_pattern): Likewise.
2403 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2405 * config/aarch64/aarch64-simd.md
2406 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
2407 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
2409 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2411 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
2412 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
2413 (vrnd<a,m,n,p>_f32): Implement using builtins.
2414 (vrnd<i,x><q>_f<32, 64>): New.
2416 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
2418 * config/aarch64/aarch64-builtins.c
2419 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
2420 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
2421 (frintz): Rename to...
2423 (frintp): Rename to...
2425 (frintm): Rename to...
2427 (frinti): Rename to...
2428 (nearbyint): ...this.
2429 (frintx): Rename to...
2431 (frinta): Rename to...
2433 * config/aarch64/aarch64-simd.md
2434 (aarch64_frint<frint_suffix><mode>): Delete.
2435 (<frint_pattern><mode>2): Convert to insn.
2436 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
2437 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
2438 (frint_pattern): Likewise.
2439 (frint_suffix): Likewise.
2441 2013-04-29 Richard Biener <rguenther@suse.de>
2443 PR tree-optimization/57081
2444 * loop-init.c: Include tree-flow.h.
2445 (loop_optimizer_finalize): Free number of iteration estimates.
2446 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
2448 2013-04-29 Jakub Jelinek <jakub@redhat.com>
2450 PR tree-optimization/57083
2451 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
2452 non-singleton shift count range, zero extend low_bound for uns case.
2454 * config/i386/predicates.md (general_vector_operand): New predicate.
2455 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
2456 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
2457 if they aren't nonimmediate operands. If their original values
2458 satisfy const_vector_equal_evenodd_p, don't shift them.
2459 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
2460 predicates. For the SSE4.1 case force operands[{1,2}] into registers
2461 if not nonimmediate_operand.
2462 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
2463 instead of register_operand.
2464 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
2466 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
2468 * stor-layout.c (finalize_size_functions): Allocate a structure and
2469 reset cfun before dumping the functions.
2471 2013-04-27 Jakub Jelinek <jakub@redhat.com>
2473 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
2476 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
2477 use xop_pmacsdqh if uns_p.
2478 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
2479 the immediate rotate count.
2481 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
2483 * rtl.h (struct rtx_def): Add comment for field jump.
2484 (LRA_SUBREG_P): New macro.
2485 * recog.c (register_operand): Check LRA_SUBREG_P.
2486 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2488 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2489 (lra_final_code_change): Skip subreg change for operators.
2490 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2491 if there are no operand changes.
2492 * lra-constraints.c (curr_insn_set): New.
2493 (match_reload): Set LRA_SUBREG_P.
2494 (emit_spill_move): Ditto.
2495 (check_and_process_move): Use curr_insn_set. Process only single
2496 set insns. Don't initialize sec_mem_p and change_p.
2497 (simplify_operand_subreg): Use LRA_SUBREG_P.
2498 (reg_in_class_p): New function.
2499 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2500 of #ifdef. Add code to remove cycling.
2501 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2502 non-null disp. Reload inner instead of disp when base and index
2503 are null. Try to put lo_sum into register.
2504 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
2505 (check_and_process_move): Move code for move cost check to
2506 simple_move_p. Remove equiv_substitution.
2507 (simple_move_p): New function.
2508 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2509 curr_insn_set. Call check_and_process_move only for single set
2510 insns. Use the new function. Move call of check_and_process_move
2511 after operand equiv substitution and address process.
2513 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2516 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
2517 with nonlocal goto receivers or returns twice calls, ignore
2518 unininitialized values from abnormal edges to nl goto receiver
2519 or returns twice call.
2521 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2523 PR tree-optimization/57051
2524 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
2525 and VEC_RSHIFT_EXPR if shift count is a multiple of element
2528 2013-04-26 Richard Biener <rguenther@suse.de>
2530 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
2531 (expand_omp_taskreg): Likewise. Mark loops for fixup.
2532 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
2533 (fixup_loop_arrays_after_move): New function.
2534 (move_sese_region_to_fn): Properly outline the loop tree parts
2537 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
2539 * config/i386/i386.md (type, unit): Fix long lines.
2541 2013-04-26 Richard Biener <rguenther@suse.de>
2543 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
2544 (lto-streamer-out.o): Likewise.
2545 * cfgloop.c (init_loops_structure): Export, add struct function
2546 argument and adjust.
2547 (flow_loops_find): Adjust.
2548 * cfgloop.h (enum loop_estimation): Add EST_LAST.
2549 (init_loops_structure): Declare.
2550 * lto-streamer-in.c: Include cfgloop.h.
2551 (input_cfg): Input the loop tree.
2552 * lto-streamer-out.c: Include cfgloop.h.
2553 (output_cfg): Output the loop tree.
2554 (output_struct_function_base): Do not drop PROP_loops.
2556 2013-03-26 Richard Biener <rguenther@suse.de>
2558 * tree-cfg.c (execute_build_cfg): Build the loop tree.
2559 (pass_build_cfg): Provide PROP_loops.
2560 (move_sese_region_to_fn): Remove loops that are outlined into fn
2562 * tree-inline.c: Include cfgloop.h.
2563 (initialize_cfun): Do not drop PROP_loops.
2564 (copy_loops): New function.
2565 (copy_cfg_body): Copy loop structure.
2566 (tree_function_versioning): Initialize destination loop tree.
2567 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
2568 (pass_parallelize_loops): Do IL verification.
2569 * loop-init.c (loop_optimizer_init): Fixup loops if required.
2570 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
2571 the CFG make sure we fixup loops as well.
2572 * tree-ssa-tail-merge.c: Include cfgloop.h.
2573 (replace_block_by): When merging loop latches mark loops for fixup.
2574 * lto-streamer-out.c (output_struct_function_base): Drop
2576 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
2577 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
2578 * ipa-split.c: Include cfgloop.h.
2579 (split_function): Add the new return block to the loop tree root.
2580 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
2581 whether we have removed the forwarder block.
2582 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
2583 * cfgloop.h (place_new_loop): Declare.
2584 * cfgloopmanip.c (place_new_loop): Export.
2585 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
2586 (tree-switch-conversion.o): Likewise.
2587 (tree-complex.o): Likewise.
2588 (tree-inline.o): Likewise.
2589 (tree-ssa-tailmerge.o): Likewise.
2590 (ipa-split.o): Likewise.
2591 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
2592 (tree-ssa-copy.o): Likewise.
2593 * tree-switch-conversion.c: Include cfgloop.h
2594 (process_switch): If we emit a bit-test cascade, schedule loops
2596 * tree-complex.c: Include cfgloop.h.
2597 (expand_complex_div_wide): Properly add new basic-blocks to loops.
2598 * asan.c: Include cfgloop.h.
2599 (create_cond_insert_point): Properly add new basic-blocks to
2600 loops, schedule loop fixup.
2601 * cfgloop.c (verify_loop_structure): Check that looks are not
2603 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
2605 (expand_omp_for_generic): Likewise.
2606 (expand_omp_sections): Likewise.
2607 (expand_omp_atomic_pipeline): Schedule loops for fixup.
2608 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
2609 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
2610 is initialized, not when loops are present.
2611 * tree-parloops.c (parallelize_loops): Remove checking here.
2612 * passes.c (init_optimization_passes): Schedule a copy-propagation
2613 pass before complete unrolling of inner loops.
2615 2013-04-26 Jakub Jelinek <jakub@redhat.com>
2617 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
2618 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
2619 (colorize_init): Add argument to _WIN32 version.
2620 * toplev.c: Include diagnostic-color.h.
2621 (process_options): Default to -fdiagnostics-color=auto if
2622 GCC_COLORS env var is in the environment.
2623 * common.opt (fdiagnostics-color=): Add Var and Init.
2624 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
2625 env var is in the environment, the default is auto rather than never.
2627 * diagnostic.h (file_name_as_prefix): Add context argument.
2628 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
2629 the string as locus.
2630 * langhooks.c (lhd_print_error_function): Adjust caller.
2632 2013-04-25 Lawrence Crowl <crowl@google.com>
2634 * var-tracking.c (shared_hash_def::htab):
2635 Change type to hash_table. Update dependent calls and types.
2637 2013-04-25 Lawrence Crowl <crowl@google.com>
2639 * Makefile.in: Update as needed below.
2641 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
2642 Move declaration to after the type's method definitons.
2644 * attribs.c (htab_t scoped_attributes::attribute_hash):
2645 Change type to hash_table. Update dependent calls and types.
2647 * bitmap.c (htab_t bitmap_desc_hash):
2648 Change type to hash_table. Update dependent calls and types.
2650 * cselib.c (htab_t cselib_hash_table):
2651 Change type to hash_table. Update dependent calls and types.
2653 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
2654 (hash_string_slot_node): Move implementation into lto-streamer.h
2655 struct string_slot_hasher.
2656 (eq_string_slot_node): Likewise.
2658 * data-streamer-out.c: Update output_block::string_hash_table
2659 dependent calls and types.
2661 * dwarf2cfi.c (htab_t trace_index):
2662 Change type to hash_table. Update dependent calls and types.
2664 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
2665 Change type to hash_table. Update dependent calls and types.
2666 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
2667 (htab_t optimize_external_refs::map): Likewise.
2668 (htab_t output_comp_unit::extern_map): Likewise.
2669 (htab_t output_comdat_type_unit::extern_map): Likewise.
2670 (htab_t output_macinfo::macinfo_htab): Likewise.
2671 (htab_t optimize_location_lists::htab): Likewise.
2672 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
2674 * except.c (htab_t ehspec_hash_type):
2675 Change type to hash_table. Update dependent calls and types.
2676 (assign_filter_values::ttypes): Likewise.
2677 (assign_filter_values::ehspec): Likewise.
2678 (sjlj_assign_call_site_values::ar_hash): Likewise.
2679 (convert_to_eh_region_ranges::ar_hash): Likewise.
2681 * gcse.c (htab_t pre_ldst_table):
2682 Change type to hash_table. Update dependent calls and types.
2684 * ggc-common.c (htab_t saving_htab):
2685 Change type to hash_table. Update dependent calls and types.
2686 (htab_t loc_hash): Likewise.
2687 (htab_t ptr_hash): Likewise.
2688 (call_count): Rename ggc_call_count.
2689 (call_alloc): Rename ggc_call_alloc.
2690 (loc_descriptor): Rename make_loc_descriptor.
2691 (add_statistics): Rename ggc_add_statistics.
2693 * ggc-common.c (saving_htab):
2694 Change type to hash_table. Update dependent calls and types.
2696 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
2697 (push_gimplify_context): Likewise.
2698 (pop_gimplify_context): Likewise.
2699 (struct gimple_temp_hash_elt): Added.
2700 (struct gimplify_hasher): Likewise.
2701 (struct gimplify_ctx.temp_htab):
2702 Change type to hash_table. Update dependent calls and types.
2704 * gimple-fold.c: Include gimplify-ctx.h.
2706 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
2707 Change type to hash_table. Update dependent calls and types.
2708 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
2709 avoid potential global name collision.
2711 * gimplify.c: Include gimplify-ctx.h.
2712 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
2713 (htab_t gimplify_ctx::temp_htab):
2714 Update dependent calls and types for new type hash_table.
2715 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
2716 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
2718 * gimplify-ctx.h: New.
2719 (struct gimple_temp_hash_elt): Move from gimplify.c.
2720 (class gimplify_hasher): New.
2721 (struct gimplify_ctx): Move from gimple.h.
2722 (htab_t gimplify_ctx::temp_htab):
2723 Change type to hash_table. Update dependent calls and types.
2725 * graphite-clast-to-gimple.c: Include graphite-htab.h.
2726 (htab_t ivs_params::newivs_index):
2727 Change type to hash_table. Update dependent calls and types.
2728 (htab_t ivs_params::params_index): Likewise.
2729 (htab_t print_generated_program::params_index): Likewise.
2730 (htab_t gloog::newivs_index): Likewise.
2731 (htab_t gloog::params_index): Likewise.
2733 * graphite.c: Include graphite-htab.h.
2734 4htab_t graphite_transform_loops::bb_pbb_mapping):
2735 Change type to hash_table. Update dependent calls and types.
2737 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
2738 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
2739 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
2741 * graphite-dependences.c: Include graphite-htab.h.
2742 (loop_is_parallel_p): Change hash table type of parameter.
2744 * graphite-htab.h: New.
2745 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
2746 (extern find_pbb_via_hash): Move from graphite-poly.h.
2747 (extern loop_is_parallel_p): Move from graphite-poly.h.
2748 (extern get_loop_body_pbbs): Move from graphite-poly.h.
2750 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
2751 (extern loop_is_parallel_p): Move to graphite-htab.h.
2752 (extern get_loop_body_pbbs): Move to graphite-htab.h.
2754 * haifa-sched.c (htab_t delay_htab):
2755 Change type to hash_table. Update dependent calls and types.
2756 (htab_t delay_htab_i2): Likewise.
2758 * ira-color.c (htab_t allocno_hard_regs_htab):
2759 Change type to hash_table. Update dependent calls and types.
2761 * ira-costs.c (htab_t cost_classes_htab):
2762 Change type to hash_table. Update dependent calls and types.
2764 * loop-invariant.c (htab_t merge_identical_invariants::eq):
2765 Change type to hash_table. Update dependent calls and types.
2767 * loop-iv.c (htab_t bivs):
2768 Change type to hash_table. Update dependent calls and types.
2770 * loop-unroll.c (htab_t opt_info::insns_to_split):
2771 Change type to hash_table. Update dependent calls and types.
2772 (htab_t opt_info::insns_with_var_to_expand): Likewise.
2774 * lto-streamer.h (struct string_slot): Move from data-streamer.h
2775 (struct string_slot_hasher): New.
2776 (htab_t output_block::string_hash_table):
2777 Change type to hash_table. Update dependent calls and types.
2779 * lto-streamer-in.c (freeing_string_slot_hasher): New.
2780 (htab_t file_name_hash_table):
2781 Change type to hash_table. Update dependent calls and types.
2783 * lto-streamer-out.c: Update output_block::string_hash_table dependent
2786 * lto-streamer.c (htab_t tree_htab):
2787 Change type to hash_table. Update dependent calls and types.
2789 * omp-low.c: Include gimplify-ctx.h.
2791 * passes.c (htab_t name_to_pass_map):
2792 Change type to hash_table. Update dependent calls and types.
2793 (pass_traverse): Rename to passes_pass_traverse.
2795 * plugin.c (htab_t event_tab):
2796 Change type to hash_table. Update dependent calls and types.
2798 * postreload-gcse.c (htab_t expr_table):
2799 Change type to hash_table. Update dependent calls and types.
2800 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
2802 * sese.c (debug_rename_map_1): Make extern.
2803 (htab_t copy_bb_and_scalar_dependences::rename_map):
2804 Change type to hash_table. Update dependent calls and types.
2806 * sese.h (extern debug_rename_map): Move to .c file.
2808 * store-motion.c (htab_t store_motion_mems_table):
2809 Change type to hash_table. Update dependent calls and types.
2811 * trans-mem.c (htab_t tm_new_mem_hash):
2812 Change type to hash_table. Update dependent calls and types.
2814 * tree-browser.c (htab_t TB_up_ht):
2815 Change type to hash_table. Update dependent calls and types.
2817 * tree-cfg.c (htab_t discriminator_per_locus):
2818 Change type to hash_table. Update dependent calls and types.
2820 * tree-complex.c: Include tree-hasher.h
2821 (htab_t complex_variable_components):
2822 Change type to hash_table. Update dependent calls and types.
2824 * tree-eh.c (htab_t finally_tree):
2825 Change type to hash_table. Update dependent calls and types.
2827 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
2828 struct int_tree_hasher.
2829 (extern int_tree_map_eq): Likewise.
2830 (uid_decl_map_hash): Removed.
2831 (extern decl_tree_map_eq): Likewise.
2833 * tree-hasher.h: New.
2834 (struct int_tree_hasher): New.
2835 (typedef int_tree_htab_type): New.
2837 * tree-inline.c: Include gimplify-ctx.h.
2839 * tree-mudflap.c: Include gimplify-ctx.h.
2841 * tree-parloops.c: Include tree-hasher.h.
2842 (htab_t eliminate_local_variables_stmt::decl_address):
2843 Change type to hash_table. Update dependent calls and types.
2844 (htab_t separate_decls_in_region::decl_copies): Likewise.
2846 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
2847 Change type to hash_table. Update dependent calls and types.
2849 * tree-sra.c (candidates):
2850 Change type to hash_table. Update dependent calls and types.
2852 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
2854 (int_tree_map_hash): Likewise.
2856 * tree-ssa-dom.c (htab_t avail_exprs):
2857 Change type to hash_table. Update dependent calls and types.
2859 * tree-ssa-live.c (var_map_base_init::tree_to_index):
2860 Change type to hash_table. Update dependent calls and types.
2862 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
2863 Change type to hash_table. Update dependent calls and types.
2865 * tree-ssa-phiopt.c (seen_ssa_names):
2866 Change type to hash_table. Update dependent calls and types.
2868 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
2869 Change type to hash_table. Update dependent calls and types.
2871 * tree-ssa-uncprop.c (equiv):
2872 Change type to hash_table. Update dependent calls and types.
2874 2013-04-25 Jakub Jelinek <jakub@redhat.com>
2876 PR rtl-optimization/57003
2877 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2878 call note_stores with kill_clobbered_value callback again after
2879 killing regs_invalidated_by_call.
2881 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2883 * config/aarch64/aarch64-simd.md
2884 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
2885 (aarch64_simd_bsl<mode>): Likewise.
2886 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
2888 2013-04-25 Marek Polacek <polacek@redhat.com>
2890 PR tree-optimization/57066
2891 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
2893 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
2895 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
2897 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2899 * config/aarch64/aarch64-builtins.c
2900 (aarch64_fold_builtin): New.
2901 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
2902 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
2903 * config/aarch64/aarch64-simd-builtins.def (abs): New.
2904 * config/aarch64/arm_neon.h
2905 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
2907 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2908 Tejas Belagod <tejas.belagod@arm.com>
2910 * config/aarch64/aarch64-builtins.c
2911 (aarch64_gimple_fold_builtin): New.
2912 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
2913 * config/aarch64/aarch64-simd-builtins.def (addv): New.
2914 * config/aarch64/aarch64-simd.md (addpv4sf): New.
2916 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2918 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2920 * config/aarch64/aarch64.md
2921 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
2923 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2925 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
2926 (*ngcsi_uxtw): New pattern.
2928 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2929 Julian Brown <julian@codesourcery.com>
2931 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
2932 (TB_DREG): Add T_V4HF.
2933 (v4hf_UP): New macro.
2934 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2935 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2936 Handle initialisation of V4HF. Adjust initialisation of reinterpret
2938 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
2939 (arm_vector_mode_supported_p): Handle V4HF.
2940 (arm_mangle_map): Handle V4HFmode.
2941 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
2942 * config/arm/arm_neon_builtins.def: Add entries for
2943 vcvtv4hfv4sf, vcvtv4sfv4hf.
2944 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2945 (neon_vcvtv4hfv4sf): Likewise.
2946 * config/arm/neon-gen.ml: Handle half-precision floating point
2948 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2949 * config/arm/arm_neon.h: Regenerate.
2950 * config/arm/neon.ml (type elts): Add F16.
2951 (type vectype): Add T_float16x4, T_floatHF.
2952 (type vecmode): Add V4HF.
2953 (type features): Add Requires_FP_bit feature.
2954 (elt_width): Handle F16.
2955 (elt_class): Likewise.
2956 (elt_of_class_width): Likewise.
2957 (mode_of_elt): Refactor.
2958 (type_for_elt): Handle F16, fix error messages.
2959 (vectype_size): Handle T_float16x4.
2960 (vcvt_sh): New function.
2961 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2962 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2963 (string_of_mode): Handle V4HF.
2964 * doc/arm-neon-intrinsics.texi: Regenerate.
2966 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2968 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2969 format specifier in 'X' case.
2971 2013-04-25 Alan Modra <amodra@gmail.com>
2974 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2975 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2976 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2977 Repeat for many other rotate/shift and mask patterns using subregs.
2978 Name lshiftrt insns.
2979 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2980 on WORDS_BIG_ENDIAN.
2982 2013-04-25 Alan Modra <amodra@gmail.com>
2984 * config.gcc: Support little-endian powerpc-linux targets.
2985 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2986 (LINK_OS_LINUX_SPEC): Define.
2987 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2988 Preserve MASK_LITTLE_ENDIAN.
2989 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2990 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2991 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2992 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2993 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2994 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2995 Correct fp word order for little-endian. Don't shift toc entries
2996 smaller than a word for little-endian.
2997 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2998 (bswapdi2 splits): Correct low-part subreg for little-endian.
2999 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
3000 low/high where such is correct only for be.
3001 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
3002 little-endian for -mcall-aixdesc.
3004 2013-04-25 Alan Modra <amodra@gmail.com>
3006 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
3007 replace_equiv_address_nv.
3009 2013-04-25 Alan Modra <amodra@gmail.com>
3011 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
3013 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3016 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3017 * rtl.h (struct rtx_def): ...
3019 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3021 PR rtl-optimizations/57046
3022 * lra-constraints (split_reg): Set up lra_risky_transformations_p
3023 for multi-reg splits.
3025 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
3027 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
3029 2013-04-24 Sterling Augustine <saugustine@google.com>
3031 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
3032 (comp_dir_string, debug_str_dwo_section): New.
3033 (DEBUG_STR_DWO_SECTION): Rename to ...
3034 (DEBUG_DWO_STR_SECTION): ... this.
3035 (DEBUG_NORM_STR_SECTION): Delete.
3036 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
3037 (DEBUG_STR_DWO_SECTION_FLAGS): New.
3038 (find_AT_string): Move most logic to ...
3039 (find_AT_string_in_table): ... here. New.
3040 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
3041 add_skeleton_AT_string. Delete logic.
3042 (output_skeleton_debug_sections): Remove call to
3043 add_top_level_skeleton_die_attrs.
3044 (add_comp_dir_attribute): Move logic to comp_dir_string.
3045 (dwarf2out_init): Initialize debug_str_dwo_section.
3046 (output_indirect_string): Call find_string_form.
3047 (output_indirect_strings): Rewrite.
3048 (prune_unused_types): Empty skeleton_debug_str_hash.
3049 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
3050 (dwarf2out_finish): Call output_indirect_strings.
3052 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3054 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
3056 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
3058 * rtl.h (struct rtx_def): Add comment for field jump.
3059 (LRA_SUBREG_P): New macro.
3060 * recog.c (register_operand): Check LRA_SUBREG_P.
3061 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3063 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3064 (lra_final_code_change): Skip subreg change for operators.
3065 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3066 if there are no operand changes.
3067 * lra-constraints.c (curr_insn_set): New.
3068 (match_reload): Set LRA_SUBREG_P.
3069 (emit_spill_move): Ditto.
3070 (check_and_process_move): Use curr_insn_set. Process only single
3071 set insns. Don't initialize sec_mem_p and change_p.
3072 (simplify_operand_subreg): Use LRA_SUBREG_P.
3073 (reg_in_class_p): New function.
3074 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3075 of #ifdef. Add code to remove cycling.
3076 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3077 non-null disp. Reload inner instead of disp when base and index
3078 are null. Try to put lo_sum into register.
3079 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3080 (check_and_process_move): Move code for move cost check to
3081 simple_move_p. Remove equiv_substitution.
3082 (simple_move_p): New function.
3083 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3084 curr_insn_set. Call check_and_process_move only for single set
3085 insns. Use the new function. Move call of check_and_process_move
3086 after operand equiv substitution and address process.
3088 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
3090 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
3091 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
3092 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
3094 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3096 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
3098 2013-04-24 Marek Polacek <polacek@redhat.com>
3100 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
3101 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
3102 (select_loops_exit_conditions): Likewise.
3103 (number_of_iterations_for_all_loops): Likewise.
3104 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
3105 (scev_analysis): Likewise.
3107 2013-04-02 Catherine Moore <clm@codesourcery.com>
3108 Chao-ying Fu <fu@mips.com>
3110 * config/mips/micromips.md (jraddiusp): New pattern.
3111 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
3112 instruction if possible.
3114 2013-04-24 Alan Modra <amodra@gmail.com>
3116 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
3118 2013-04-24 Julian Brown <julian@codesourcery.com>
3119 Chung-Lin Tang <cltang@codesourcery.com>
3121 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
3122 dependency behavior in enumeration type DIE generation. Add TODO note
3123 to comments about future DW_FORM_sdata/udata re-work of related code.
3125 2013-04-23 Lawrence Crowl <crowl@google.com>
3127 * Makefile.in: Update as needed below.
3129 * hash-table.h (class hash_table):
3130 Correct many methods with parameter types compare_type to the correct
3131 value_type. (Correct code was unlikely to notice the change.)
3132 (hash_table::elements_with_deleted) New.
3133 (class hashtable::iterator): New.
3134 (hashtable::begin()): New.
3135 (hashtable::end()): New.
3136 (FOR_EACH_HASH_TABLE_ELEMENT): New.
3138 * statistics.c (statistics_hashes):
3139 Change type to hash_table. Update dependent calls and types.
3141 * tree-into-ssa.c (var_infos):
3142 Change type to hash_table. Update dependent calls and types.
3144 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
3145 Change type to hash_table. Update dependent calls and types.
3147 * tree-ssa-loop-im.c (struct mem_ref.refs):
3148 Change type to hash_table. Update dependent calls and types.
3150 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
3151 Change type to hash_table. Update dependent calls and types.
3153 * tree-ssa-sccvn.c (vn_tables_s::nary):
3154 Change type to hash_table. Update dependent calls and types.
3155 (vn_tables_s::phis): Likewise.
3156 (vn_tables_s::references): Likewise.
3158 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
3159 (vn_reference_eq): Update parameter and return types.
3161 * tree-ssa-structalias.c (pointer_equiv_class_table):
3162 Change type to hash_table. Update dependent calls and types.
3163 (location_equiv_class_table): Likewise.
3165 * tree-vect-data-refs.c: Consequential changes for making
3166 peeling a hash_table.
3168 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
3169 (destroy_loop_vec_info): Dependent hash_table update.
3171 * tree-vectorizer.h (peeling_htab):
3172 Change type to hash_table. Update dependent calls and types.
3174 2013-04-23 Shiva Chen <shiva0217@gmail.com>
3176 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
3177 to check the register content is equal or not.
3178 * lra-constraints.c (match_reload): Use lra_assign_reg_val
3179 to assign register content record.
3180 * lra-eliminations.c (update_reg_eliminate): Use
3181 lra_update_reg_val_offset to update register content offset.
3182 * lra-int.h (struct lra_reg): Add offset member.
3183 (lra_reg_val_equal_p): New static inline function.
3184 (lra_update_reg_val_offset): New static inline function.
3185 (lra_assign_reg_val): New static inline function.
3186 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
3187 to assign register content record.
3188 (initialize_lra_reg_info_element): Initial offset to zero.
3190 2013-04-23 Catherine Moore <clm@codesourcery.com>
3192 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
3193 operands. Record compression.
3195 2013-04-23 Xinliang David Li <davidxl@google.com>
3197 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
3199 2013-04-23 Richard Biener <rguenther@suse.de>
3202 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
3203 parameter, only add abnormal goto edges from the copied body
3204 if the call could perform abnormal gotos.
3205 (copy_cfg_body): Adjust.
3207 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
3209 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
3211 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
3213 * coretypes.h (gimple_stmt_iterator): Add struct to make
3216 2013-04-23 Richard Biener <rguenther@suse.de>
3218 PR tree-optimization/57026
3219 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
3220 from SSA names occuring in abnormal PHI nodes.
3222 2013-04-22 Andi Kleen <ak@linux.intel.com>
3224 * lto/lto.c (print_lto_report_1): Fix LTO report names.
3226 2013-04-22 Andi Kleen <ak@linux.intel.com>
3228 * lto/lto.c (print_lto_report_1): Declare early.
3229 (read_cgraph_and_symbols): Call print_lto_report_1 early.
3231 2013-04-22 Andi Kleen <ak@linux.intel.com>
3233 * common.opt (-flto-report-wpa): Add.
3234 * doc/invoke.texi (-flto-report-wpa): Add.
3235 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
3238 2013-04-22 Xinliang David Li <davidxl@google.com>
3240 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
3241 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
3242 * Makefile.in: New dependency
3244 David Daney <ddaney.cavm@gmail.com>
3246 * configure.ac (gcc_cv_as_micromips_support): Use the
3247 --fatal-warnings option.
3248 * configure: Regenerate.
3250 2013-04-22 Marek Polacek <polacek@redhat.com>
3253 * tsan.c (instrument_expr): Don't instrument expression
3254 in case its size is zero.
3256 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
3260 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
3262 * config/alpha/alpha.c (TARGET_LRA_P): New define.
3264 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3266 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
3267 (gimple_stmt_iterator): New typedef.
3268 * gimple.h (gimple_stmt_iterator): Rename to...
3269 (gimple_stmt_iterator_d): ... This.
3270 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
3271 trees be valid for GIMPLE and GENERIC.
3272 (TARGET_GIMPLE_FOLD_BUILTIN): New.
3273 * gimple-fold.c (gimple_fold_call): Call target hook
3274 gimple_fold_builtin.
3275 * hooks.c (hook_bool_gsiptr_false): New.
3276 * hooks.h (hook_bool_gsiptr_false): New.
3277 * target.def (fold_stmt): New.
3278 * doc/tm.texi: Regenerate.
3280 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
3283 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
3284 a set sp if no stack realignment.
3286 2013-04-22 Nick Clifton <nickc@redhat.com>
3288 * config.gcc (tilegx-linux): Extend extra_objs rather than
3290 (tilepro-linux): Likewise.
3292 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3294 * config/aarch64/aarch64-builtins.c
3296 (CF0, CF1, CF2, CF3, CF4, CF10): New.
3297 (VAR<1-12>): Add MAP parameter.
3298 (BUILTIN_*): Likewise.
3299 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
3300 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
3301 (aarch64_ushl_n<mode>): Likewise.
3302 (aarch64_sshr_n<mode>): Likewise.
3303 (aarch64_ushr_n<mode>): Likewise.
3304 (aarch64_<maxmin><mode>): Likewise.
3305 (aarch64_sqrt<mode>): Likewise.
3306 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
3307 (vshr<q>_n_*): Likewise.
3309 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
3311 * config/aarch64/aarch64-builtins.c
3312 (aarch64_simd_builtin_type_mode): Handle SF types.
3314 (BUILTIN_GPF): Define.
3315 (aarch64_init_simd_builtins): Handle SF types.
3316 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
3319 * config/aarch64/aarch64-simd.md
3320 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
3321 (aarch64_frecpe<mode>): New.
3322 (aarch64_frecps<mode>): Likewise.
3323 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
3324 (v8type): Add frecp<esx>.
3325 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
3326 (aarch64_frecps<mode>): Likewise.
3327 * config/aarch64/iterators.md (FRECP): New.
3328 (frecp_suffix): Likewise.
3329 * config/aarch64/arm_neon.h
3330 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
3332 2013-04-22 Christian Bruel <christian.bruel@st.com>
3335 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
3336 (REG_CLASS_NAMES): Idem.
3337 (REG_CLASS_CONTENTS): Idem.
3338 (REGCLASS_HAS_FP_REG): Idem.
3339 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
3340 (sh_conditional_register_usage): Idem.
3342 2013-04-21 Jeff Law <law@redhat.com>
3344 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
3345 (ssa_forward_propagate_and_combine): Use it.
3347 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3349 * lra.c: Update the flow chart diagram.
3351 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
3353 PR rtl-optimization/56847
3354 * lra-constraints.c (process_alt_operands): Discourage alternative
3355 with non-matche doffsettable memory constraint fro memory with
3358 2013-04-19 Richard Biener <rguenther@suse.de>
3360 PR tree-optimization/56982
3361 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
3363 * gimplify.c (gimplify_call_expr): Notice special calls.
3364 (gimplify_modify_expr): Likewise.
3365 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
3366 abnormal control flow receivers.
3367 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
3368 in the same way as cfun->has_nonlocal_labels.
3369 (gimple_purge_dead_abnormal_call_edges): Likewise.
3370 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
3371 receivers start a basic-block.
3373 2013-04-19 Richard Biener <rguenther@suse.de>
3375 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
3377 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
3378 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
3379 (SLP_TREE_LOAD_PERMUTATION): Add.
3380 (vect_transform_slp_perm_load): Adjust prototype.
3381 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
3382 (vect_free_slp_instance): Likewise.
3383 (vect_create_new_slp_node): Likewise.
3384 (vect_supported_slp_permutation_p): Remove.
3385 (vect_slp_rearrange_stmts): Adjust.
3386 (vect_supported_load_permutation_p): Likewise. Inline
3387 vect_supported_slp_permutation_p here.
3388 (vect_analyze_slp_instance): Compute load permutations per
3389 slp node instead of per instance.
3390 (vect_get_slp_defs): Adjust.
3391 (vect_transform_slp_perm_load): Likewise.
3392 (vect_schedule_slp_instance): Remove redundant code.
3393 (vect_schedule_slp): Remove hack for PR56270, add it ...
3394 * tree-vect-stmts.c (vectorizable_load): ... here, do not
3395 CSE loads for SLP. Adjust.
3397 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3399 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
3400 spelling in two comments.
3402 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
3405 * config/arm/arm.c (load_multiple_sequence): Require SP
3406 as base register for loads if SP is in the register list.
3408 2013-04-19 Martin Jambor <mjambor@suse.cz>
3410 PR tree-optimization/56718
3411 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
3412 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
3413 and made public. Adjusted all callers.
3414 (ipa_intraprocedural_devirtualization): New function.
3415 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
3416 (ipa_intraprocedural_devirtualization): Likewise.
3417 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
3419 2013-04-19 Richard Biener <rguenther@suse.de>
3421 PR tree-optimization/57000
3422 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
3424 2013-04-19 Terry Guo <terry.guo@arm.com>
3426 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
3428 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
3429 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
3430 (cortex_m4_fmacs): Use new reservations.
3431 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
3433 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
3435 PR rtl-optimization/56999
3436 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
3438 (lra_coalesce): Remove split_origin_bitmap and related code.
3439 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
3440 ranges if necessary.
3442 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
3444 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
3446 (ix86_expand_call): Remove clobbered_registers array and use
3447 x86_64_ms_sysv_extra_clobbered_registers instead.
3448 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
3450 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
3452 * config/i386/i386.md (*call_rex64_ms_sysv): Use
3453 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
3454 (*call_value_rex64_ms_sysv): Ditto.
3456 2013-04-18 Cary Coutant <ccoutant@google.com>
3458 * dwarf2out.c (output_pubnames): Check die_perennial_p of
3459 parent instead of die_mark.
3461 2013-04-18 Diego Novillo <dnovillo@google.com>
3463 * gimple.c (create_gimple_tmp): New.
3464 (get_expr_type): New.
3465 (build_assign): New.
3466 (build_type_cast): New.
3467 * gimple.h (enum ssa_mode): Define.
3468 (gimple_seq_set_location): New.
3469 * asan.c (build_check_stmt): Change some gimple_build_* calls
3470 to use build_assign and build_type_cast.
3472 2013-04-18 Richard Biener <rguenther@suse.de>
3474 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3475 handle negative step. Remove redundant checks.
3476 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
3477 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
3478 for negative step and grouped loads fail to vectorize.
3480 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3482 * emit-rtl.c (reset_insn_used_flags): New function.
3483 (reset_all_used_flags): Use it.
3484 (verify_insn_sharing): New function.
3485 (verify_rtl_sharing): Fix verification for SEQUENCEs.
3487 2013-04-18 Jakub Jelinek <jakub@redhat.com>
3489 PR tree-optimization/56984
3490 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
3491 and (x >> M) >= N don't register any assertion if N << M is the
3494 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
3496 * lower-subreg.c (resolve_simple_move): If called self-recursive,
3497 do not delete_insn insns that have not yet been emitted, only
3498 unlink them with remove_insn.
3499 * df-scan.c (df_insn_delete): Revert r197492.
3501 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
3503 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
3504 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
3506 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
3508 * config/arm/arm.md (movsicc_insn): Convert define_insn into
3509 define_insn_and_split.
3510 (and_scc,ior_scc,negscc): Likewise.
3511 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
3513 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
3515 * config/arm/arm.c (use_return_insn): Return 0 for targets that
3516 can benefit from using a sequence of LDRD instructions in epilogue
3517 instead of a single LDM instruction.
3519 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3522 * doc/extend.texi: Fix typo.
3524 2013-04-17 Richard Biener <rguenther@suse.de>
3526 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
3527 (vect_build_slp_tree): ... here.
3528 (vect_build_slp_tree_1): Compute which stmts of the SLP group
3529 match. Remove special-casing of mismatched complex loads.
3530 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
3531 re-try the match with swapped commutative operands.
3532 (vect_supported_load_permutation_p): Remove special-casing of
3533 mismatched complex loads.
3534 (vect_analyze_slp_instance): Adjust.
3536 2013-04-17 Richard Biener <rguenther@suse.de>
3538 PR rtl-optimization/56921
3539 * cfgloop.h (struct loop): Add simple_loop_desc member.
3540 (struct niter_desc): Mark with GTY(()).
3541 (simple_loop_desc): Do not use aux field but simple_loop_desc.
3542 * loop-iv.c (get_simple_loop_desc): Likewise.
3543 (free_simple_loop_desc): Likewise.
3546 2013-04-16 Richard Biener <rguenther@suse.de>
3548 PR rtl-optimization/56921
3549 * loop-init.c (pass_rtl_move_loop_invariants): Add
3550 TODO_do_not_ggc_collect to todo_flags_finish.
3551 (pass_rtl_unswitch): Same.
3552 (pass_rtl_unroll_and_peel_loops): Same.
3553 (pass_rtl_doloop): Same.
3555 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
3557 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
3558 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
3559 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
3561 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
3562 * tree-streamer.c (record_common_node): Adjust reference in comment.
3564 2013-04-17 Terry Guo <terry.guo@arm.com>
3566 * config/arm/cortex-m4.md: Add a new bypass.
3568 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3570 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
3572 (*subs_<optab><mode>_multp2): New pattern.
3573 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3574 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
3576 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3578 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
3579 (*subs_mul_imm_<mode>): New pattern.
3581 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
3584 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
3585 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
3586 (vsx_movti_32bit): Change j->wa to O->wa.
3588 2013-04-16 Richard Biener <rguenther@suse.de>
3590 PR rtl-optimization/56921
3591 * loop-init.c (pass_rtl_move_loop_invariants): Add
3592 TODO_do_not_ggc_collect to todo_flags_finish.
3593 (pass_rtl_unswitch): Same.
3594 (pass_rtl_unroll_and_peel_loops): Same.
3595 (pass_rtl_doloop): Same.
3597 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
3599 * config/arm/arm.c (emit_multi_reg_push): New declaration
3600 for an existing function.
3601 (arm_emit_strd_push): New function.
3602 (arm_expand_prologue): Used here.
3603 (arm_emit_ldrd_pop): New function.
3604 (arm_expand_epilogue): Used here.
3605 (arm_get_frame_offsets): Update condition.
3606 (arm_emit_multi_reg_pop): Add a special case for load of a single
3607 register with writeback.
3609 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
3611 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
3614 2013-04-16 Richard Biener <rguenther@suse.de>
3616 PR tree-optimization/56756
3617 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
3618 (first_mem_ref_loc): New.
3619 (execute_sm): Place the load temporarily before a previous
3620 access instead of in the latch edge to ensure its SSA dependencies
3621 are defined at points dominating the load.
3623 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
3625 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
3626 correct fix by moving header and footer insn to the footer of
3627 the merged basic block. Clear BB_END of the merged-away block.
3630 * emit-rtl.c (make_note_raw): New function.
3631 (link_insn_into_chain): New static inline function.
3633 (add_insn_before, add_insn_after): Factor insn chain linking code...
3634 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
3635 using link_insn_into_chain.
3636 (note_outside_basic_block_p): New helper function for emit_note_after
3637 and emit_note_before.
3638 (emit_note_after): Use nobb variant of add_insn_after if the note
3639 should not be contained in a basic block.
3640 (emit_note_before): Use nobb variant of add_insn_before if the note
3641 should not be contained in a basic block.
3642 (emit_note_copy): Use make_note_raw.
3643 (emit_note): Likewise.
3644 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
3645 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
3646 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
3647 the moved barrier the tail of the basic block it follows.
3648 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
3650 2013-04-15 Jakub Jelinek <jakub@redhat.com>
3652 PR tree-optimization/56962
3653 * gimple-ssa-strength-reduction.c (record_increment): Only set
3654 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
3655 either rhs1 or rhs2 is equal to c->base_expr.
3657 2013-04-15 Richard Biener <rguenther@suse.de>
3659 PR tree-optimization/56933
3660 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
3662 (GROUP_READ_WRITE_DEPENDENCE): Remove.
3663 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
3664 * tree-vect-data-refs.c (vect_analyze_group_access): Move
3665 dependence check ...
3666 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
3668 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
3669 GROUP_READ_WRITE_DEPENDENCE.
3671 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3673 * emit-rtl.c (reset_all_used_flags): New function.
3674 (verify_rtl_sharing): Call reset_all_used_flags before and after
3675 performing the checks.
3677 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3679 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
3680 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
3681 * config/arm/constraints.md (De): New constraint.
3682 * config/arm/neon.md (anddi3_neon): Delete.
3683 (neon_vand<mode>): Expand to standard anddi3 pattern.
3684 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
3685 Move earlier in the file.
3686 (neon_inv_logic_op2): Likewise.
3687 (arm_anddi_operand_neon): New predicate.
3689 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3691 * configure.ac (gcc_cv_ld_as_needed): Set
3692 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
3693 Use -z ignore, -z record on *-*-solaris2*.
3694 (HAVE_LD_AS_NEEDED): Update comment.
3695 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
3696 * configure: Regenerate.
3697 * config.in: Regenerate.
3698 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
3699 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
3700 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
3701 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
3702 equivalents. Fix markup.
3703 * doc/tm.texi: Regenerate.
3705 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
3707 * config/i386/i386.opt: New option mstack-protector-guard=.
3708 * config/i386/i386-opts.h: Add enum stack_protector_guard.
3709 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
3710 TARGET_SSP_TLS_GUARD.
3711 * config/i386/i386.c (ix86_option_override_internal): Set
3712 ix86_stack_protector_guard.
3713 * config/i386/i386.md (stack_protect_set): Enable for
3714 TARGET_SSP_TLS_GUARD only.
3715 (stack_protect_set_<mode>): Ditto.
3716 (stack_protect_test): Ditto.
3717 (stack_protect_test_<mode>): Ditto.
3718 * doc/invoke.texi (i386 Option): Document.
3720 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
3723 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
3724 (S_MODES): Set H_MODE bit.
3725 (SF_MODES): Set only S_MODE and SF_MODE bits.
3726 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
3727 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
3728 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
3729 <MODE_FLOAT>: Likewise.
3731 2013-04-15 Joey Ye <joey.ye@arm.com>
3733 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
3735 2013-04-15 Joey Ye <joey.ye@arm.com>
3737 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
3739 (thumb_far_jump_used_p): Count instruction size and set
3742 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
3744 * reorg.c (fill_simple_delay_slots): Reindent block of code.
3745 * resource.c (mark_target_live_regs): Reformat conditional block.
3747 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3749 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
3750 notes, they are emitted only just before final.
3751 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
3753 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
3755 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
3756 * cfgrtl.c (delete_insn): Call it here instead.
3757 * lra-spills.c (lra_final_code_change): Use delete_insn.
3758 * haifa-sched.c (sched_remove_insn): Likewise.
3759 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
3760 returning to the nop pool.
3761 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
3762 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
3764 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3766 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
3767 * doc/tm.texi: Regenerated.
3769 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
3771 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
3774 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
3776 * df-core.c (df_find_def): Compare register numbers.
3777 (df_find_use): Likewise.
3779 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
3782 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
3783 lra_in_progress for return.
3785 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3787 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
3788 define_insn into define_insn_and_split and emit movsicc patterns.
3790 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
3792 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
3794 2013-04-12 Richard Biener <rguenther@suse.de>
3796 * tree-pass.h (TODO_do_not_ggc_collect): New.
3797 * passes.c (execute_one_ipa_transform_pass): Honor
3798 TODO_do_not_ggc_collect.
3799 (execute_one_pass): Likewise.
3802 2013-04-10 Richard Biener <rguenther@suse.de>
3804 * passes.c (init_optimization_passes): Remove reload pass.
3805 * ira.c (do_reload): Merge into ...
3807 (rest_of_handle_reload): Remove.
3808 (pass_reload): Likewise.
3809 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3810 of reload for vzeroupper pass placement.
3812 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3814 PR tree-optimization/56918
3815 PR tree-optimization/56920
3816 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
3817 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
3818 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
3819 use wide_mul_with_sign method.
3821 2013-04-12 Richard Biener <rguenther@suse.de>
3823 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
3824 not be considered a gimple constant.
3826 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
3828 * fold-const.c (const_binop): Handle vector shifts by a scalar.
3829 (fold_binary_loc): Call const_binop also for mixed vector-scalar
3832 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
3833 Jakub Jelinek <jakub@redhat.com>
3835 * opts.c: Include diagnostic-color.h.
3836 (common_handle_option): Handle OPT_fdiagnostics_color_.
3837 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
3838 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
3839 (diagnostic-color.o): New.
3840 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
3841 (diagnostic_color_rule): New enum.
3842 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
3843 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
3844 the location string.
3845 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
3846 either NULL, or color kind.
3847 * diagnostic-color.c: New file.
3848 * diagnostic-color.h: New file.
3849 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
3851 * doc/invoke.texi (-fdiagnostics-color): Document.
3852 * pretty-print.h (pp_show_color): Define.
3853 (struct pretty_print_info): Add show_color field.
3854 * diagnostic.c: Include diagnostic-color.h.
3855 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
3856 macros. Colorize error:, warning: etc. strings and also the location
3858 (diagnostic_show_locus): Colorize the caret line.
3859 * pretty-print.c: Include diagnostic-color.h.
3860 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
3861 inside of %< %> quotes or quoted through q format modifier.
3863 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3865 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
3867 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3869 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
3871 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
3874 2013-04-11 Marek Polacek <polacek@redhat.com>
3876 PR tree-optimization/48184
3877 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
3879 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
3881 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
3882 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
3883 (skip_simple_arithmetic): Tidy up.
3884 * tree.h (skip_simple_constant_arithmetic): Declare.
3886 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3888 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
3890 2013-04-11 Richard Biener <rguenther@suse.de>
3892 * tree-vect-loop.c (get_initial_def_for_induction): Properly
3893 generate vector constants.
3895 2013-04-11 Richard Biener <rguenther@suse.de>
3897 PR tree-optimization/56878
3898 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
3899 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
3901 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3902 Prefer to align the DR with the most invariant base address.
3904 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3906 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
3909 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
3911 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
3912 floating-point vector comparisons against 0.
3914 2013-04-11 Jakub Jelinek <jakub@redhat.com>
3916 PR tree-optimization/56899
3917 * fold-const.c (extract_muldiv_1): Apply distributive law
3918 only if TYPE_OVERFLOW_WRAPS (ctype).
3920 2013-04-11 Bin Cheng <bin.cheng@arm.com>
3923 * ira-costs.c (scan_one_insn): Check whether the source rtx of
3924 loading has side effect.
3926 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
3928 * config/sparc/sparc.c: Include tree-pass.h.
3929 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
3930 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
3931 head of file. Change return type. Split off gate function.
3932 (sparc_gate_work_around_errata): New function.
3933 (pass_work_around_errata): New pass definition.
3934 (insert_pass_work_around_errata) New pass insert definition to
3935 insert pass_work_around_errata just after delayed-branch scheduling.
3936 (sparc_option_override): Insert the pass.
3937 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
3939 2013-04-10 David S. Miller <davem@davemloft.net>
3941 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
3942 or -mcpu=hypersparc.
3944 * target.def (cstore_mode): New hook.
3945 * target.h: Include insn-codes.h
3946 * targhooks.c: Likewise.
3947 (default_cstore_mode): New function.
3948 * targhooks.h: Declare it.
3949 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3950 * doc/tm.texi: Rebuild.
3951 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3952 target hook, rather than inspecting the insn_data.
3953 * config/sparc/sparc.c (sparc_cstore_mode): New function.
3954 (TARGET_CSTORE_MODE): Redefine.
3955 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3957 * config/sparc/predicates.md (cstore_result_operand): New special
3959 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3960 Use it for operand 0.
3961 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3962 (*snesi_special): Likewise.
3963 (*snesi_zero): Likewise.
3964 (*seqsi_zero): Likewise.
3965 (*sltu_insn): Likewise.
3966 (*sgeu_insn): Likewise.
3967 (*seqdi_special): Make operand 0 and comparison operation be of
3969 (*snedi_special): Likewise.
3970 (*snedi_special_vis3): Likewise.
3971 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3972 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3973 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3974 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3975 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3976 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3977 (*sltu_extend_sp64): Likewise.
3978 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3979 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3980 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3981 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3982 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3984 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
3986 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3987 (aarch64_start_file): Use the new function.
3989 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3990 Jason Merrill <jason@redhat.com>
3992 * common.opt: Add -gdwarf.
3993 * opts.c (common_handle_option): Handle it.
3994 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
3996 2013-04-10 Richard Biener <rguenther@suse.de>
3998 * passes.c (execute_todo): Do not call ggc_collect conditional here.
3999 (execute_one_ipa_transform_pass): But unconditionally here.
4000 (execute_one_pass): And here.
4001 (init_optimization_passes): Remove reload pass.
4002 * tree-pass.h (TODO_ggc_collect): Remove.
4003 (pass_reload): Likewise.
4004 * ira.c (do_reload): Merge into ...
4006 (rest_of_handle_reload): Remove.
4007 (pass_reload): Likewise.
4008 * config/i386/i386.c (ix86_option_override): Refer to ira instead
4009 of reload for vzeroupper pass placement.
4010 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
4011 and todo_flags_finish of all passes.
4013 2013-04-10 Richard Biener <rguenther@suse.de>
4015 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
4016 first_const_oprnd field, rename first_def_type to first_op_type.
4017 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
4018 (vect_get_and_check_slp_defs): Always use the type of the
4019 operand. Allow mixed vect_external_def, vect_constant_def types.
4020 (vect_get_constant_vectors): Handle mixed vect_external_def,
4021 vect_constant_def types.
4023 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
4025 PR tree-optimization/55524
4026 * tree-ssa-math-opts.c
4027 (convert_mult_to_fma): Don't use an fms construct
4028 when we don't have an fms operation, but fnma, and it looks
4029 likely that we'll be able to use the latter.
4031 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4033 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
4035 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
4036 inline fail caused by overwritable functions.
4038 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
4040 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
4041 unnecessary bits in the constant power of two case.
4043 2013-04-10 Richard Biener <rguenther@suse.de>
4045 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
4046 broken code swapping operands.
4047 (vect_build_slp_tree): Do not compute load permutations here.
4048 (vect_analyze_slp_instance): Compute load permutations here,
4049 after building the SLP tree.
4051 2013-04-09 Christian Bruel <christian.bruel@st.com>
4053 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
4054 of next/prev_real_insn.
4056 2013-04-09 Jan Hubicka <jh@suse.cz>
4058 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
4059 Drop aliased parameter.
4060 (function_and_variable_visibility): Do not handle alias pairs.
4061 * cgraph.c (varpool_externally_visible_p): Update prototype.
4062 * varpool.c (varpool_add_new_variable): Update.
4064 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4066 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
4068 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
4070 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
4072 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
4074 2013-04-09 Marek Polacek <polacek@redhat.com>
4076 PR tree-optimization/48762
4077 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
4079 2013-04-09 Richard Biener <rguenther@suse.de>
4081 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
4083 (vect_build_slp_tree): Likewise.
4084 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
4085 calculating the cost of a SLP instance.
4086 (vect_analyze_slp_instance): Use it from here, after building
4089 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4092 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4093 expand_omp_for_static_chunk): Use simple_p = true in
4094 force_gimple_operand_gsi calls when assigning to addressable decls.
4096 2013-04-09 Jeff Law <law@redhat.com>
4098 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
4099 when the boolean was created by converting a wider object which
4100 had a boolean range.
4102 2013-04-09 Richard Biener <rguenther@suse.de>
4104 * tree-vectorizer.h (slp_void_p): Remove.
4105 (slp_tree): Typedef before _slp_tree declaration.
4106 (struct _slp_tree): Use a vector of slp_tree as children.
4107 (vect_get_place_in_interleaving_chain): Remove.
4108 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
4110 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
4112 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
4113 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
4114 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
4115 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
4116 Use slp_node instead of slp_void_p and adjust.
4118 2013-04-09 Richard Biener <rguenther@suse.de>
4120 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
4121 work that is not necessary.
4123 2013-04-09 Jakub Jelinek <jakub@redhat.com>
4125 PR tree-optimization/56854
4126 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
4127 forward into clobber stmts if it would change MEM_REF lhs into
4130 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
4132 * tree.c (type_hash_lookup, type_hash_add): Make static.
4133 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
4135 2013-04-09 Richard Biener <rguenther@suse.de>
4137 * tree.h (unsave_expr_now): Remove.
4138 * tree-inline.c (mark_local_for_remap_r): Remove.
4139 (unsave_expr_1): Likewise.
4140 (unsave_r): Likewise.
4141 (unsave_expr_now): Likewise.
4142 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
4143 (propagate_tree_value): Likewise.
4145 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
4147 * doc/rtl.texi (sequence): Rewrite documentation to match the
4148 current use of SEQUENCE rtl objects.
4149 * rtl.def (SEQUENCE): Likewise.
4151 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
4152 Update documentation.
4153 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
4154 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
4156 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
4158 2013-04-08 Teresa Johnson <tejohnson@google.com>
4160 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
4161 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
4163 (estimate_edge_size_and_time): Add comment to suggest using rounding
4165 (estimate_node_size_and_time): Ditto.
4166 (remap_edge_change_prob): Use helper rounding divide methods.
4167 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
4168 (gimple_mod_pow2_value_transform): Ditto.
4169 (gimple_mod_subtract_transform): Ditto.
4170 (gimple_ic_transform): Ditto.
4171 (gimple_stringops_transform): Ditto.
4172 * stmt.c (conditional_probability): Ditto.
4173 (emit_case_dispatch_table): Ditto.
4174 * lto-cgraph.c (merge_profile_summaries): Ditto.
4175 * tree-optimize.c (execute_fixup_cfg): Ditto.
4176 * cfgcleanup.c (try_forward_edges): Ditto.
4177 * cfgloopmanip.c (scale_loop_profile): Ditto.
4179 (duplicate_loop_to_header_edge): Ditto.
4180 (lv_adjust_loop_entry_edge): Ditto.
4181 * tree-vect-loop.c (vect_transform_loop): Ditto.
4182 * profile.c (compute_branch_probabilities): Ditto.
4183 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
4184 * lto-streamer-in.c (input_cfg): Ditto.
4185 * gimple-streamer-in.c (input_bb): Ditto.
4186 * ipa-cp.c (update_profiling_info): Ditto.
4187 (update_specialized_profile): Ditto.
4188 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
4189 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
4191 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4192 (compute_trg_info): Ditto.
4193 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
4194 (purge_dead_edges): Ditto.
4195 * loop-unswitch.c (unswitch_loop): Ditto.
4196 * cgraphclones.c (cgraph_clone_edge): Ditto.
4197 (cgraph_clone_node): Ditto.
4198 * tree-inline.c (copy_bb): Ditto.
4199 (copy_edges_for_bb): Ditto.
4200 (initialize_cfun): Ditto.
4201 (copy_cfg_body): Ditto.
4202 (expand_call_inline): Ditto.
4204 2013-04-08 Kai Tietz <ktietz@redhat.com>
4206 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
4207 TARGET_CYGWIN64 by TARGET_64BIT.
4209 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4211 * config/epiphany/epiphany.md (GPR_1): New constant.
4212 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
4213 * config/epiphany/epiphany.c (gen_compare_reg):
4214 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
4215 is already in place.
4216 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
4217 Don't require being called during rtl expansion; If y operlaps r0,
4219 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
4220 (epiphany_expand_epilogue): Likewise.
4222 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
4223 Don't use CC_FPmode for ORDERED / UNORDERED.
4224 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
4226 * config/epiphany/constraints.md (CnL): New constraint.
4227 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
4228 * config/epiphany/predicates.md (add_operand): Allow 1024.
4230 * config/epiphany/epiphany.md (logical_op): New code iterator.
4231 (op_mnc): New code attribute.
4232 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
4233 (mov_f+1, mov_f+2): New peephole2 patterns.
4235 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
4236 (cstoresi4): Also allow re-use of zero result when doing a NE
4237 comparison to a non-zero operand.
4238 Use (clobber (scratch)) for first insn if the gpr output is not needed.
4240 * config/epiphany/epiphany.md (<insn_opname>v2si3):
4241 Use gen_addsi3_i / gen_subsi3_i.
4243 2013-04-08 Jakub Jelinek <jakub@redhat.com>
4247 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
4248 contain anything but clobbers, at most one __builtin_stack_restore,
4249 optionally debug stmts and final resx, and if it has at least one
4250 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
4251 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
4252 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
4253 which isn't defaut definition, remove them.
4254 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
4255 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
4256 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
4257 with MEM_REF LHS with SSA_NAME address.
4259 2013-04-08 Jeff Law <law@redhat.com>
4261 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
4263 2013-04-08 Richard Biener <rguenther@suse.de>
4265 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
4267 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
4268 determined vector type.
4269 (vect_analyze_data_refs): Likewise.
4270 (vect_get_new_vect_var): Adjust.
4271 (vect_create_destination_var): Preserve SSA name versions.
4272 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
4273 not dump anything here.
4275 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
4277 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
4278 Add member lr_slot_known.
4279 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
4281 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
4282 Remove code that sets lr_slot_offset according to what a previous
4283 version of epiphany_emit_save_restore used to do.
4284 (epiphany_emit_save_restore): When doing an lr save or restore,
4285 set/verify lr_slot_known and lr_slot_offset.
4287 2013-04-08 Xinyu Qi <xyqi@marvell.com>
4290 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
4293 2013-04-08 Richard Biener <rguenther@suse.de>
4295 * alias.c (find_base_term): Fix thinko in previous change.
4297 2013-04-08 Jakub Jelinek <jakub@redhat.com>
4299 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
4300 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
4301 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
4302 if possible to compute val.
4303 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
4304 For QImode integers don't require anything about precision. Use
4305 const_with_all_bytes_same to find out if the constant doesn't have
4306 repeated bytes in it.
4308 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4310 * config/s390/s390.c (s390_expand_insv): Only accept insertions
4313 2013-04-08 Marek Polacek <polacek@redhat.com>
4315 PR rtl-optimization/48182
4316 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
4319 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4322 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
4323 nuses, make sure we have a label.
4325 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4328 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
4329 (rs6000_emit_swdiv_low_precision): Remove.
4330 (rs6000_emit_swdiv): Rewrite to handle between one and four
4331 iterations of Newton-Raphson generally; modify required number of
4332 iterations for some cases.
4333 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
4335 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
4337 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
4338 set-but-unused variable.
4340 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
4341 basic blocks of released function bodies garbage-collectable.
4343 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
4344 (struct rtl_opt_pass): Add TODO_df_finish.
4346 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
4348 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4350 * config/arm/constraints.md (q): New constraint.
4351 * config/arm/ldrdstrd.md: New file.
4352 * config/arm/arm.md (ldrdstrd.md) New include.
4353 (arm_movdi): Use "q" instead of "r" constraint
4354 for double-word memory access.
4355 (movdf_soft_insn): Likewise.
4356 * config/arm/vfp.md (movdi_vfp): Likewise.
4357 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
4358 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4359 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
4360 (mem_ok_for_ldrd_strd): Likewise.
4361 (output_move_double): Update assertion.
4363 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4365 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
4367 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4369 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
4370 define_insn_and_split.
4371 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
4373 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4375 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
4376 define_insn_and_split.
4377 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
4378 (shiftsi3_compare): New pattern.
4380 * config/arm/unspecs.md (UNSPEC_RRX): New.
4382 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4384 * config/arm/arm.md (negdi_extendsidi): New pattern.
4385 (negdi_zero_extendsidi): Likewise.
4387 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4389 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
4390 define_insn_and_split.
4391 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
4392 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
4394 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4396 * config/arm/arm.md (arm_subdi3): Convert define_insn into
4397 define_insn_and_split.
4398 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
4399 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
4401 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4403 * config/arm/arm.md (subsi3_carryin): New pattern.
4404 (subsi3_carryin_const): Likewise.
4405 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
4406 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
4408 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4410 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
4412 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
4414 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
4415 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
4417 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4419 * config/arm/arm.c (arm_expand_builtin): Change fcode
4420 type to unsigned int.
4422 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4424 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
4426 2013-04-04 Ian Lance Taylor <iant@google.com>
4428 * doc/standards.texi (Standards): The Go frontend supports the Go 1
4431 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
4434 * df-scan.c (df_insn_delete): Disable failing assert.
4436 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4438 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
4439 New function prototype.
4440 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
4441 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
4442 (arm_builtin_vectorized_function): New function.
4444 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4446 * config/arm/arm_neon_builtins.def: New file.
4447 * config/arm/arm.c (neon_builtin_data): Move contents to
4448 arm_neon_builtins.def.
4449 (enum arm_builtins): Include neon builtin definitions.
4450 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
4451 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
4453 2013-04-04 Marek Polacek <polacek@redhat.com>
4455 PR tree-optimization/48186
4456 * predict.c (maybe_hot_frequency_p): Return false if
4457 HOT_BB_FREQUENCY_FRACTION is 0.
4458 (cgraph_maybe_hot_edge_p): Likewise.
4460 2013-04-04 Richard Biener <rguenther@suse.de>
4462 PR tree-optimization/56826
4463 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
4466 2013-04-04 Richard Biener <rguenther@suse.de>
4468 PR tree-optimization/56213
4469 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
4470 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
4472 2013-04-04 Richard Biener <rguenther@suse.de>
4474 PR tree-optimization/56837
4475 * tree-loop-distribution.c (classify_partition): For non-zero
4476 values require that the value has the same precision as its
4477 mode to be useful as memset value.
4479 2013-04-03 Nick Clifton <nickc@redhat.com>
4481 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
4482 (fmssf4): Use fmsf.s on E3V5 architectures.
4483 (fnmasf4): Use fnmaf.s on E3V5 architectures.
4484 (fnmssf4): Use fnmsf.s on E3V5 architectures.
4486 2013-04-03 Jeff Law <law@redhat.com>
4488 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
4489 (lra-eliminations.o): Likewise.
4491 2013-04-03 Teresa Johnson <tejohnson@google.com>
4493 * gcov-io.c (compute_working_sets): Moved most of body of old
4494 compute_working_sets here from profile.c.
4495 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
4496 (gcov_working_set_t): Moved typedef here from basic-block.h
4497 (compute_working_set): Declare.
4498 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
4499 (get_working_sets): Renamed from compute_working_set,
4500 replace most of body with call to new compute_working_sets.
4501 (get_exec_counts): Replace call to compute_working_sets
4502 to get_working_sets.
4503 * profile.h (get_working_sets): Renamed from compute_working_set.
4504 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
4505 to get_working_sets.
4506 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
4507 * gcov-dump.c (dump_working_sets): New function.
4509 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4511 * hwint.c (sext_hwi, zext_hwi): New functions.
4512 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
4513 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
4514 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
4515 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
4516 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
4517 (sext_hwi, zext_hwi): New functions.
4519 2013-04-03 Jeff Law <law@redhat.com>
4521 PR tree-optimization/56799
4522 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
4523 back test for widening conversion erroneously dropped in prior change.
4525 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4528 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
4529 instead of next_real_insn.
4531 2013-04-03 Marek Polacek <polacek@redhat.com>
4534 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
4536 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4539 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
4541 (thumb1_output_casesi): Likewise.
4542 (thumb2_output_casesi): Likewise.
4544 2013-04-03 Richard Biener <rguenther@suse.de>
4546 PR tree-optimization/56817
4547 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4549 (tree_unroll_loops_completely_1): ... new function to manually
4550 walk the loop tree, properly defering outer loops of unrolled
4551 loops to later iterations.
4553 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4555 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
4556 (vectorizable_load): Likewise.
4557 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
4558 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
4560 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4562 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
4565 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4567 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
4569 2013-04-03 Bin Cheng <bin.cheng@arm.com>
4571 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
4573 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4575 PR tree-optimization/56790
4576 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
4579 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
4581 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4583 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
4584 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
4587 2013-04-03 Jakub Jelinek <jakub@redhat.com>
4590 * tree.h (force_folding_builtin_constant_p): New decl.
4591 * builtins.c (force_folding_builtin_constant_p): New variable.
4592 (fold_builtin_constant_p): Fold immediately also if
4593 force_folding_builtin_constant_p.
4595 2013-04-03 Richard Biener <rguenther@suse.de>
4597 PR tree-optimization/56812
4598 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4599 DRs of the same interleaving chain are independent.
4601 2013-04-02 Jason Merrill <jason@redhat.com>
4603 * gdbinit.in (pbb): Use debug fn.
4605 2013-04-02 Lawrence Crowl <crowl@google.com>
4607 * sese.h (struct ivtype_map_elt_s): Remove unused.
4608 (extern debug_ivtype_map): Remove unused.
4609 (extern eq_ivtype_map_elts): Remove unused.
4610 * sese.c (debug_ivtype_map): Removed unused.
4611 (debug_ivtype_map_1): Removed unused.
4612 (debug_ivtype_elt): Remove unused.
4613 (eq_ivtype_map_elts): Remove unused.
4616 2013-04-02 Kai Tietz <ktietz@redhat.com>
4619 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
4620 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
4621 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
4623 (legitimize_pe_coff_symbol): Likewise.
4624 (is_imported_p): New helper-function.
4625 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
4626 for Windows x64 targets.
4627 (ix86_expand_prologue): Optimize for pe-coff targets.
4628 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
4629 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
4630 medium/large code-model.
4631 (legitimize_pic_address): Likewise.
4632 (legitimize_tls_address): Likewise.
4633 (ix86_expand_call): Likewise.
4634 (x86_output_mi_thunk): Likewise.
4635 (get_dllimport_decl): Add new beimport argument.
4636 (construct_plt_address): Don't assert for x64 pe-coff targets.
4637 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
4639 (SYMBOL_FLAG_STUBVAR): New macro.
4640 (SYMBOL_REF_STUBVAR_P): Likewise.
4641 * config/i386/winnt.c (stub_list): New structure.
4642 (stub_head): New local variable.
4643 (i386_pe_record_stub): New function.
4644 (i386_pe_file_end): Emit refptr-stubs.
4646 2013-04-02 Jakub Jelinek <jakub@redhat.com>
4648 PR rtl-optimization/56745
4649 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
4650 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
4653 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
4654 and both of them are MEM_REFs, just compare first argument for
4655 equality and attempt to deal even with differing offsets.
4658 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
4659 of gimple_clobber_p to be MEM_REF.
4660 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
4661 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
4662 after gimplification.
4663 * asan.c (get_mem_ref_of_assignment): Don't instrument
4664 gimple_clobber_p stmts.
4665 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
4666 gimple_clobber_p stmt if they have MEM_REF lhs and
4667 are dead because of another gimple_clobber_p stmt.
4668 * tree-ssa-live.c (clear_unused_block_pointer): Treat
4669 gimple_clobber_p stmts like debug stmts.
4670 (remove_unused_locals): Remove clobbers with MEM_REF lhs
4671 that refer to unused VAR_DECLs or uninitialized values.
4672 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
4673 gimple_clobber_p stmts if they refer to removed parameters.
4674 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
4677 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
4679 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
4680 using SWI48 mode attribute.
4682 2013-04-02 Wei Mi <wmi@google.com>
4684 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
4685 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
4686 *<rotate_insn><mode>3_mask in i386.md.
4688 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
4690 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
4692 2013-04-02 Richard Biener <rguenther@suse.de>
4694 PR tree-optimization/56778
4695 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4696 Runtime alias tests are not supported for gather loads.
4697 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
4698 stmts referenced from SSA operands before updating SSA form.
4700 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
4701 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4703 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
4704 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
4705 * config/arm/cortex-a53.md: New file.
4706 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
4707 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
4708 * config/arm/arm.c (arm_issue_rate): Likewise.
4709 * config/arm/arm-tune.md: Regenerate
4710 * config/arm/arm-tables.opt: Regenerate.
4711 * config/arm/arm-cores.def: Add cortex-a53.
4713 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
4715 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
4718 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4720 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
4721 scalar load/store operations using B/H registers.
4722 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
4724 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
4726 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
4728 * config/aarch64/aarch64.c
4729 (aarch64_simd_scalar_immediate_valid_for_move): New.
4730 * config/aarch64/aarch64-protos.h
4731 (aarch64_simd_scalar_immediate_valid_for_move): New.
4732 * config/aarch64/constraints.md (Dh, Dq): New.
4733 * config/aarch64/iterators.md (hq): New.
4735 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
4737 * reorg.c (get_branch_condition): Deal with conditional returns.
4738 (fill_simple_delay_slots): Remove dead code dealing with jumps.
4740 2013-04-01 Wei Mi <wmi@google.com>
4742 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
4743 Truncate operand 2 using %b asm operand modifier.
4744 (*<shift_insn><mode>3_mask): Ditto.
4745 (*<rotate_insn><mode>3_mask): Ditto.
4747 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
4750 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
4752 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
4754 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
4756 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
4758 2013-03-30 Lawrence Crowl <crowl@google.com>
4760 * dse.c (clear_alias_sets): Remove never set.
4761 (disqualified_clear_alias_sets): Remove never set.
4762 (clear_alias_mode_pool): Remove never set.
4763 (dse_step0): Remove condition that is never true.
4764 (canon_address): Remove condition that is never true.
4765 (dse_step7): Remove condition that is never true.
4766 (rest_of_handle_dse): Remove condition that is never true.
4767 (rest_of_handle_dse::did_global): Remove never read from above.
4768 (dse_step2_spill): Remove never called from above.
4769 (dse_step5_spill): Remove never called from above.
4771 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
4773 * doc/md.texi (Standard Names) <casesi>: Update documentation for
4774 JUMP_TABLE_DATA changes.
4775 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
4776 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
4777 (Insns) <jump_table_data>: New entry.
4778 * doc/tm.texi: Regenerate.
4780 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
4782 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
4783 for table jump at the end of a basic block using tablejump_p.
4784 * targhooks.c (default_invalid_within_doloop): Likewise.
4785 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
4786 target hook implementation that is identical to the default hook.
4787 (rs6000_invalid_within_doloop): Remove.
4789 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
4790 unused variable from tablejump_p call.
4792 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
4793 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
4794 (INSN_DELETED_P): Likewise.
4795 (emit_jump_table_data): New prototype.
4796 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
4797 after 4th as unused.
4798 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
4799 * sched-vis.c (print_insn): Likewise.
4800 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
4801 insn for compatibility with back ends that use next_active_insn to
4802 identify jump table data.
4803 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
4804 (remove_insn): Likewise.
4805 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
4807 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
4808 (emit_jump_table_data): New function.
4810 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
4811 basic block, a JUMP_TABLE_DATA never is.
4812 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
4813 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
4814 off from code handling real insns.
4815 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
4816 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
4817 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
4818 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
4819 is not a NONDEBUG_INSN_P.
4820 * ira-costs.c (scan_one_insn): Likewise.
4821 * jump.c (mark_all_labels): Likewise.
4822 (mark_jump_label_1): Likewise.
4823 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4824 * lra.c (get_insn_freq): Expect all insns reaching here to be in
4826 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
4827 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
4828 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
4829 JUMP_TABLE_DATA_P insns.
4830 (calculate_elim_costs_all_insns): Likewise.
4831 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
4832 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
4833 (delete_output_reload): Code style fixups.
4834 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
4835 insn flags on this non-insn.
4836 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
4837 as scheduling barriers, for pre-change compatibility.
4838 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
4839 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
4841 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
4842 redundant JUMP_TABLE_DATA_P test.
4843 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
4844 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4845 (frv_for_each_packet): Likewise.
4846 * config/i386/i386.c (min_insn_size): Likewise.
4847 (ix86_avoid_jump_mispredicts): Likewise.
4848 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4849 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
4850 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4851 (mips16_insn_length): Robustify.
4852 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
4853 (mips16_split_long_branches): Likewise.
4854 * config/pa/pa.c (pa_combine_instructions): Likewise.
4855 * config/rs6000/rs6000.c (get_next_active_insn): Treat
4856 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
4857 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
4858 as contributing to pool range lengths.
4859 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
4860 Remove redundant JUMP_TABLE_DATA_P test.
4861 (sh_loop_align): Likewise.
4862 (split_branches): Likewise.
4863 (sh_insn_length_adjustment): Likewise.
4864 * config/spu/spu.c (get_branch_target): Likewise.
4866 2013-03-29 Jan Hubicka <jh@suse.cz>
4868 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
4869 gcov streaming; stream hot bb threshold to ltrans.
4870 * predict.c (get_hot_bb_threshold): Break out from ....
4871 (maybe_hot_count_p): ... here.
4872 (set_hot_bb_threshold): New function.
4873 * lto-section-in.c (lto_section_name): Add profile.
4874 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
4875 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
4877 (histogram_entry): New structure.
4878 (histogram, histogram_pool): New global vars.
4879 (histogram_hash): New structure.
4880 (histogram_hash::hash): New method.
4881 (histogram_hash::equal): Likewise.
4882 (account_time_size): New function.
4883 (cmp_counts): New function.
4884 (dump_histogram): New function.
4885 (ipa_profile_generate_summary): New function.
4886 (ipa_profile_write_summary): New function.
4887 (ipa_profile_read_summary): New function.
4888 (ipa_profile): Decide on threshold.
4889 (pass_ipa_profile): Add ipa_profile_write_summary and
4890 ipa_profile_read_summary.
4891 * Makefile.in (ipa.o): Update dependencies.
4892 * lto-streamer.h (LTO_section_ipa_profile): New section.
4894 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4896 * tree.h (VAR_P): New.
4898 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
4901 * doc/invoke.texi ([-fwhole-program]): Fix typo.
4903 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
4905 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
4906 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4907 (control_flow_insn_p): Likewise.
4908 * cfgrtl.c (duplicate_insn_chain): Likewise.
4909 * final.c (get_attr_length_1): Likewise.
4910 (shorten_branches): Likewise.
4911 (final_scan_insn): Likewise.
4912 * function.c (instantiate_virtual_regs): Likewise.
4913 * gcse.c (insert_insn_end_basic_block): Likewise.
4914 * ira-costs.c (scan_one_insn): Likewise.
4915 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4916 * lra.c (check_rtl): Likewise.
4917 * reload1.c (elimination_costs_in_insn): Likewise.
4918 * reorg.c (follow_jumps): Likewise.
4920 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
4921 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
4922 (thumb_far_jump_used_p): Likewise.
4923 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
4924 (workaround_speculation): Likewise.
4925 (add_sched_insns_for_speculation): Likewise.
4926 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
4927 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
4928 (frv_for_each_packet): Likewise.
4929 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
4930 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
4931 (final_emit_insn_group_barriers): Likewise.
4932 * config/m32r/m32r.c (m32r_is_insn): Likewise.
4933 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
4934 (mips16_insn_length): Likewise.
4935 * config/pa/pa.c (pa_reorg): Likewise.
4936 (pa_combine_instructions): Likewise.
4937 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
4938 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
4939 (sh_reorg): Likewise.
4940 (split_branches): Likewise.
4941 * config/spu/spu.c (get_branch_target): Likewise.
4943 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4946 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
4948 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4949 Fix declaration name.
4951 2013-03-28 Lawrence Crowl <crowl@google.com>
4953 * graphds.h (struct graph.indicies): Remove unused.
4954 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4955 (SCOP_ORIGINAL_PDDRS): Remove unused.
4956 * sese.h (extern insert_loop_close_phis): Removed unused.
4957 (extern insert_guard_phis): Removed unused.
4958 (extern ivtype_map_elt_info): Removed unused.
4959 (new_ivtype_map_elt): Removed unused.
4960 * sese.c (ivtype_map_elt_info): Removed unused.
4962 2013-03-28 Lawrence Crowl <crowl@google.com>
4964 * Makefile.in: Add several missing include dependences.
4966 (test-dump.o): New. This object is not added to any executable,
4967 but is present for ad-hoc testing.
4969 (debug (const bitmap_head_def &)): New.
4970 (debug (const bitmap_head_def *)): New.
4972 (extern debug (const bitmap_head_def &)): New.
4973 (extern debug (const bitmap_head_def *)): New.
4975 (debug (edge_def &)): New.
4976 (debug (edge_def *)): New.
4978 (debug (basic_block_def &)): New.
4979 (debug (basic_block_def *)): New.
4981 (dump_node (const_tree, int, FILE *)): Correct source file.
4983 (debug (die_struct &)): New.
4984 (debug (die_struct *)): New.
4986 (extern debug (die_struct &)): New.
4987 (extern debug (die_struct *)): New.
4988 * gimple-pretty-print.c
4989 (debug (gimple_statement_d &)): New.
4990 (debug (gimple_statement_d *)): New.
4991 * gimple-pretty-print.h
4992 (extern debug (gimple_statement_d &)): New.
4993 (extern debug (gimple_statement_d *)): New.
4995 (debug (ira_allocno_copy &)): New.
4996 (debug (ira_allocno_copy *)): New.
4997 (debug (ira_allocno &)): New.
4998 (debug (ira_allocno *)): New.
5000 (extern debug (ira_allocno_copy &)): New.
5001 (extern debug (ira_allocno_copy *)): New.
5002 (extern debug (ira_allocno &)): New.
5003 (extern debug (ira_allocno *)): New.
5005 (debug (live_range &)): New.
5006 (debug (live_range *)): New.
5008 (debug (lra_live_range &)): New.
5009 (debug (lra_live_range *)): New.
5011 (debug (lra_live_range &)): New.
5012 (debug (lra_live_range *)): New.
5014 (debug (omega_pb_d &)): New.
5015 (debug (omega_pb_d *)): New.
5017 (extern debug (omega_pb_d &)): New.
5018 (extern debug (omega_pb_d *)): New.
5020 (debug (const rtx_def &)): New.
5021 (debug (const rtx_def *)): New.
5023 (debug_tree (tree): Move within file.
5024 (debug_raw (const tree_node &)): New.
5025 (debug_raw (const tree_node *)): New.
5026 (dump_tree_via_hooks (const tree_node *, int)): New.
5027 (debug (const tree_node &)): New.
5028 (debug (const tree_node *)): New.
5029 (debug_verbose (const tree_node &)): New.
5030 (debug_verbose (const tree_node *)): New.
5031 (debug_head (const tree_node &)): New.
5032 (debug_head (const tree_node *)): New.
5033 (debug_body (const tree_node &)): New.
5034 (debug_body (const tree_node *)): New.
5035 (debug_vec_tree (tree): Move and reimplement in terms of dump.
5036 (debug (vec<tree, va_gc> &)): New.
5037 (debug (vec<tree, va_gc> *)): New.
5039 (extern debug (const rtx_def &)): New.
5040 (extern debug (const rtx_def *)): New.
5042 (debug_raw (simple_bitmap_def &)): New.
5043 (debug_raw (simple_bitmap_def *)): New.
5044 (debug (simple_bitmap_def &)): New.
5045 (debug (simple_bitmap_def *)): New.
5047 (extern debug (simple_bitmap_def &)): New.
5048 (extern debug (simple_bitmap_def *)): New.
5049 (extern debug_raw (simple_bitmap_def &)): New.
5050 (extern debug_raw (simple_bitmap_def *)): New.
5052 (debug (vinsn_def &)): New.
5053 (debug (vinsn_def *)): New.
5054 (debug_verbose (vinsn_def &)): New.
5055 (debug_verbose (vinsn_def *)): New.
5056 (debug (expr_def &)): New.
5057 (debug (expr_def *)): New.
5058 (debug_verbose (expr_def &)): New.
5059 (debug_verbose (expr_def *)): New.
5060 (debug (vec<rtx> &)): New.
5061 (debug (vec<rtx> *)): New.
5063 (extern debug (vinsn_def &)): New.
5064 (extern debug (vinsn_def *)): New.
5065 (extern debug_verbose (vinsn_def &)): New.
5066 (extern debug_verbose (vinsn_def *)): New.
5067 (extern debug (expr_def &)): New.
5068 (extern debug (expr_def *)): New.
5069 (extern debug_verbose (expr_def &)): New.
5070 (extern debug_verbose (expr_def *)): New.
5071 (extern debug (vec<rtx> &)): New.
5072 (extern debug (vec<rtx> *)): New.
5074 (_list_iter_cond_expr): Make inline instead of static.
5076 (debug (sreal &)): New.
5077 (debug (sreal *)): New.
5079 (extern debug (sreal &)): New.
5080 (extern debug (sreal *)): New.
5082 (extern debug_raw (const tree_node &)): New.
5083 (extern debug_raw (const tree_node *)): New.
5084 (extern debug (const tree_node &)): New.
5085 (extern debug (const tree_node *)): New.
5086 (extern debug_verbose (const tree_node &)): New.
5087 (extern debug_verbose (const tree_node *)): New.
5088 (extern debug_head (const tree_node &)): New.
5089 (extern debug_head (const tree_node *)): New.
5090 (extern debug_body (const tree_node &)): New.
5091 (extern debug_body (const tree_node *)): New.
5092 (extern debug (vec<tree, va_gc> &)): New.
5093 (extern debug (vec<tree, va_gc> *)): New.
5095 (debug (struct loop &)): New.
5096 (debug (struct loop *)): New.
5097 (debug_verbose (struct loop &)): New.
5098 (debug_verbose (struct loop *)): New.
5099 * tree-dump.c: Add header dependence.
5101 (extern debug (struct loop &)): New.
5102 (extern debug (struct loop *)): New.
5103 (extern debug_verbose (struct loop &)): New.
5104 (extern debug_verbose (struct loop *)): New.
5106 (debug (data_reference &)): New.
5107 (debug (data_reference *)): New.
5108 (debug (vec<data_reference_p> &)): New.
5109 (debug (vec<data_reference_p> *)): New.
5110 (debug (vec<ddr_p> &)): New.
5111 (debug (vec<ddr_p> *)): New.
5113 (extern debug (data_reference &)): New.
5114 (extern debug (data_reference *)): New.
5115 (extern debug (vec<data_reference_p> &)): New.
5116 (extern debug (vec<data_reference_p> *)): New.
5117 (extern debug (vec<ddr_p> &)): New.
5118 (extern debug (vec<ddr_p> *)): New.
5120 (debug (pt_solution &)): New.
5121 (debug (pt_solution *)): New.
5123 (extern debug (pt_solution &)): New.
5124 (extern debug (pt_solution *)): New.
5126 (debug (_var_map &)): New.
5127 (debug (_var_map *)): New.
5128 (debug (tree_live_info_d &)): New.
5129 (debug (tree_live_info_d *)): New.
5131 (extern debug (_var_map &)): New.
5132 (extern debug (_var_map *)): New.
5133 (extern debug (tree_live_info_d &)): New.
5134 (extern debug (tree_live_info_d *)): New.
5136 2013-03-28 Jan Hubicka <jh@suse.cz>
5138 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
5140 2013-03-28 Ian Bolton <ian.bolton@arm.com>
5142 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
5143 record only when desired or required.
5145 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
5147 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
5148 *vec_extractv2di_1_rex64. Use x64 isa attribute.
5150 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5152 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
5153 (*andsi3_compare0_uxtw): New pattern.
5154 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
5155 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
5157 2013-03-28 Jan Hubicka <jh@suse.cz>
5159 * data-streamer-in.c (streamer_read_gcov_count): New function.
5160 * gimple-streamer-out.c: Include value-prof.h.
5161 (output_gimple_stmt): Output histogram.
5162 (output_bb): Use streamer_write_gcov_count.
5163 * value-prof.c: Include data-streamer.h
5164 (dump_histogram_value): Add HIST_TYPE_MAX.
5165 (stream_out_histogram_value): New function.
5166 (stream_in_histogram_value): New function.
5167 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
5168 (stream_out_histogram_value, stream_in_histogram_value): Declare.
5169 * data-streamer-out.c (streamer_write_gcov_count): New function.
5170 (streamer_write_gcov_count_stream): New function.
5171 * lto-cgraph.c (lto_output_edge): Update counter streaming.
5172 (lto_output_node): Likewise.
5173 (input_node, input_edge): Likewise.
5174 * lto-streamer-out.c (output_cfg): Update streaming.
5175 * lto-streamer-in.c (input_cfg): Likewise.
5176 * data-streamer.h (streamer_write_gcov_count,
5177 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
5178 * gimple-streamer-in.c: Include value-prof.h
5179 (input_gimple_stmt): Input histograms.
5180 (input_bb): Update profile streaming.
5182 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5184 * genmodes.c (emit_max_int): New function.
5185 (emit_insn_modes_h): Added call to emit_max_function.
5186 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
5188 * machmode.def: Fixed comment.
5190 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
5192 * combine.c (try_combine): Removed useless assert.
5193 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
5195 2013-03-28 Marek Polacek <polacek@redhat.com>
5196 Richard Biener <rguenther@suse.de>
5198 PR tree-optimization/56695
5199 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
5200 build signed result of a vector comparison.
5201 * tree-cfg.c (verify_gimple_comparison): Check that a result
5202 of a vector comparison has signed type.
5204 2013-03-28 Richard Biener <rguenther@suse.de>
5206 PR tree-optimization/37021
5207 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
5208 do not restrict gaps between groups.
5209 * tree-vect-stmts.c (vectorizable_load): Properly account for
5210 a gap between groups.
5212 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
5214 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
5215 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
5218 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
5220 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
5221 * doc/extend.texi (Named Address Spaces): Ditto.
5222 (Variable Attributes): Ditto.
5224 2013-03-27 Kai Tietz <ktietz@redhat.com>
5226 * config.build: Add support for cygwin x64 target.
5227 * config.gcc: Likewise.
5228 * config.host: Likewise.
5229 * configure.ac: Likewise
5230 * configure: Regenerated.
5232 2013-03-27 Kai Tietz <ktietz@redhat.com>
5234 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
5235 * config/i386/t-cygwin-w64: New file.
5236 * config/i386/cygwin-w64.h: New file.
5237 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
5238 and add support for x64-cygwin target.
5239 (CPP_SPEC): Likewise.
5240 (CXX_WRAP_SPEC_LIST): Undefine before define.
5241 (LIBGCJ_SONAME): Use 15 as version.
5243 2013-03-27 Richard Biener <rguenther@suse.de>
5245 PR tree-optimization/56716
5246 * tree-ssa-structalias.c (perform_var_substitution): Adjust
5247 dumping for ref nodes.
5249 2013-03-27 Martin Jambor <mjambor@suse.cz>
5251 PR tree-optimization/55334
5252 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
5253 restricted pointers to arrays.
5255 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5257 * Makefile.in (.SUFFIXES): Add .cc.
5258 (.c.o): Apply same recipe for implicit rule .cc.o.
5260 2013-03-27 Richard Biener <rguenther@suse.de>
5262 PR tree-optimization/37021
5263 * tree-vect-data-refs.c (vect_check_strided_load): Allow
5264 REALPART/IMAGPART_EXPRs around the supported refs.
5265 * tree-ssa-structalias.c (find_func_aliases): Assume that
5266 floating-point values are not used to transfer pointers.
5268 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
5270 * target.def (TARGET_HAS_IFUNC_P): New target hook.
5271 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5272 * doc/tm.texi: Regenerate.
5273 * targhooks.h (default_has_ifunc_p): New.
5274 * targhooks.c (default_has_ifunc_p): Ditto.
5275 * config/linux-protos.h: New file.
5276 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
5277 this hook for linux which disables support of indirect functions in
5279 * config/linux-android.c: New file.
5280 * config/t-linux-android.c: Ditto.
5281 * config.gcc: Added new object file linux-android.o.
5282 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
5283 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
5284 * varasm.c (do_assemble_alias): Likewise.
5285 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
5286 doesn't support indirect functions.
5287 * configure: Regenerate.
5289 2013-03-27 Bin Cheng <bin.cheng@arm.com>
5292 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
5293 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
5296 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5298 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
5300 2013-03-27 Terry Guo <terry.guo@arm.com>
5302 * config/arm/arm-cores.def: Added core cortex-r7.
5303 * config/arm/arm-tune.md: Regenerated.
5304 * config/arm/arm-tables.opt: Regenerated.
5305 * doc/invoke.texi: Added entry for core cortex-r7.
5307 2013-03-27 Walter Lee <walt@tilera.com>
5309 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
5310 double-decrement of next_scratch_regno.
5312 2013-03-27 Walter Lee <walt@tilera.com>
5314 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
5316 (insn_v1mulus): Ditto.
5317 (insn_v2muls): Ditto.
5319 2013-03-27 Walter Lee <walt@tilera.com>
5321 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
5322 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
5324 2013-03-27 Walter Lee <walt@tilera.com>
5326 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
5327 (*sibcall_value): Ditto.
5329 2013-03-27 Walter Lee <walt@tilera.com>
5331 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
5332 (insn_mnz_v8qi): ... this ...
5333 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
5335 (insn_v<n>mnz): Replaced by ...
5336 (insn_v1mnz): ... this ...
5337 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
5339 (insn_mz_<mode>): Replaced by ...
5340 (insn_mz_v8qi): ... this ...
5341 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
5343 (insn_v<n>mz): Replaced by ...
5344 (insn_v1mz): ... this ...
5345 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
5348 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
5350 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
5352 2013-03-26 Roland McGrath <mcgrathr@google.com>
5354 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
5355 than fprintf with a non-constant, non-format string.
5357 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
5359 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
5360 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
5361 operand 0 predicate.
5362 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
5363 attribute. Use general_x64nomem_operand as operand 1 predicate.
5364 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
5365 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5366 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
5367 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
5368 (mov<mode>_insv_1): Remove expander. Merge insn with
5369 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
5370 Use general_x64nomem_operand as operand 1 predicate.
5371 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
5372 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
5373 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5374 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
5375 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
5376 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
5377 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
5378 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
5379 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
5380 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
5381 (general_x64nomem_operand): Ditto.
5383 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
5385 * config/rtems.opt: Add -pthread option.
5387 2013-03-26 Richard Biener <rguenther@suse.de>
5389 * alias.c (find_base_term): Avoid redundant and not used recursion.
5390 (base_alias_check): Get the initial base term from the caller.
5391 (true_dependence_1): Compute and pass base terms to base_alias_check.
5392 (write_dependence_p): Likewise.
5393 (may_alias_p): Likewise.
5395 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
5397 * config/aarch64/aarch64.c (aarch64_classify_address): Support
5398 PC-relative load in SI modes and above only.
5400 2013-03-26 Xinyu Qi <xyqi@marvell.com>
5402 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
5403 * config/arm/iwmmxt.md (WCGR0): Update.
5404 (WCGR1, WCGR2, WCGR3): Likewise.
5406 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
5408 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
5409 Use x64 and nox64 isa attributes.
5411 2013-03-26 Richard Biener <rguenther@suse.de>
5413 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5414 alignment computations and rely on get_object_alignment_1
5415 for the !TYPE_P case.
5416 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
5418 2013-03-26 Walter Lee <walt@tilera.com>
5420 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
5421 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
5423 2013-03-25 Jeff Law <law@redhat.com>
5425 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
5426 check for INTEGRAL_TYPE_P that was missing due to checking in
5427 wrong version of prior patch.
5429 2013-03-25 Walter Lee <walt@tilera.com>
5431 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
5432 TILEGX_INSN_SHUFFLEBYTES1.
5433 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
5435 (tilegx_builtins): Ditto.
5436 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
5438 2013-03-25 Walter Lee <walt@tilera.com>
5440 * config/tilegx/tilegx.md (floatsisf2): New pattern.
5441 (floatunssisf2): New pattern.
5442 (floatsidf2): New pattern.
5443 (floatunssidf2): New pattern.
5445 2013-03-25 Walter Lee <walt@tilera.com>
5447 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
5448 tests for constraint J, K, N, P.
5450 2013-03-25 Walter Lee <walt@tilera.com>
5452 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
5453 Use indirect/pcrel encoding.
5454 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
5457 2013-03-25 Steve Ellcey <sellcey@mips.com>
5459 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
5460 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
5461 * config/mips/mips.c (mips_option_override): Set IMADD default.
5462 * config/mips/mips.h (PTF_AVOID_IMADD): New.
5463 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
5464 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
5465 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
5466 * doc/invoke.texi (-mimadd/-mno-imadd): New.
5468 2013-03-25 Jeff Law <law@redhat.com>
5470 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
5471 slightly to avoid creating and folding useless trees. Simplify
5472 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
5474 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
5476 * config/i386/i386.md (*zero_extendsidi2): Merge with
5477 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
5478 * config/i386/predicates.md (x86_64_zext_operand): Rename from
5479 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
5480 targets. Clarify comment.
5482 2013-03-25 Martin Jambor <mjambor@suse.cz>
5484 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
5485 pass-through jump functions differently.
5486 (ipa_read_jump_function): Likewise. Also use setter functions to set
5489 2013-03-25 Martin Jambor <mjambor@suse.cz>
5491 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
5492 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
5494 (ipa_get_indirect_edge_target): New function.
5495 (devirtualization_time_bonus): New parameter known_aggs, pass it to
5496 ipa_get_indirect_edge_target. Update all callers.
5497 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
5498 ipa_get_indirect_edge_target_1 instead of calling
5499 ipa_get_indirect_edge_target.
5500 (create_specialized_node): Pass aggvlas to
5501 ipcp_discover_new_direct_edges.
5503 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5505 * config/arm/arm.md (f_sels, f_seld): New types.
5506 (*cmov<mode>): New pattern.
5507 * config/arm/predicates.md (arm_vsel_comparison_operator): New
5510 2013-03-25 Kai Tietz <ktietz@redhat.com>
5512 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
5513 POSIX-printf for mingw-hosted builds.
5515 2013-03-25 Richard Biener <rguenther@suse.de>
5518 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
5519 must-not-throw stmt location.
5521 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5523 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
5524 Emit load-acquire versions when acq is true.
5525 (arm_emit_store_exclusive): Add rel parameter.
5526 Emit store-release versions when rel is true.
5527 (arm_split_compare_and_swap): Use acquire-release instructions
5529 of barriers when appropriate.
5530 (arm_split_atomic_op): Likewise.
5531 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
5532 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
5533 (VUNSPEC_SLX): Likewise.
5534 (VUNSPEC_LDA): Likewise.
5535 (VUNSPEC_STL): Likewise.
5536 * config/arm/sync.md (atomic_load<mode>): New pattern.
5537 (atomic_store<mode>): Likewise.
5538 (arm_load_acquire_exclusive<mode>): Likewise.
5539 (arm_load_acquire_exclusivesi): Likewise.
5540 (arm_load_acquire_exclusivedi): Likewise.
5541 (arm_store_release_exclusive<mode>): Likewise.
5543 2013-03-25 Catherine Moore <clm@codesourcery.com>
5545 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
5546 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
5547 * config/mip/predicates.md (lwsp_swsp_operand,
5548 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
5549 sb16_operand, db4_operand, db7_operand, ib3_operand,
5550 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
5551 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
5552 andi16_operand): New predicates.
5553 * config/mips/mips.md (compression): New attribute.
5554 (enabled): New attribute.
5555 (length): Consider compression in computing length.
5556 (shift_compression): New code attribute.
5557 (*add<mode>3): New operands. Record compression.
5558 (sub<mode>3): Likewise.
5559 (one_cmpl<mode>2): Likewise.
5560 (*and<mode>3): Likewise.
5561 (*ior<mode>3): Likewise.
5562 (unnamed pattern for xor): Likewise.
5563 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
5564 (*<optab><mode>3): Likewise.
5565 (*mov<mode>_internal: Likewise.
5566 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
5567 (mips_unsigned_immediate_p): New.
5568 (umips_lwsp_swsp_address_p): New.
5569 (m16_based_address_p): New.
5570 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
5571 (mips_unsigned_immediate_p): New prototype.
5572 (lwsp_swsp_address_p): New prototype.
5573 (m16_based_address_p): New prototype.
5574 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
5575 (mips_signed_immediate_p): New function.
5576 (m16_based_address_p): New function.
5577 (lwsp_swsp_address_p): New function.
5578 (mips_print_operand_punctuation): Recognize short delay slot insns
5579 for microMIPS.add<mode>3"
5581 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5584 * config/arm/iterators.md (v_cmp_result): New mode attribute.
5585 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
5587 2013-03-25 Richard Biener <rguenther@suse.de>
5589 PR tree-optimization/56689
5590 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
5593 2013-03-25 Richard Biener <rguenther@suse.de>
5595 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
5597 (memory_references): Likewise.
5598 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
5599 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
5600 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
5601 (gather_mem_refs_in_loops): Fold into ...
5602 (analyze_memory_references): ... this. Move initialization
5603 to tree_ssa_lim_initialize.
5604 (fill_always_executed_in): Rename to ...
5605 (fill_always_executed_in_1): ... this.
5606 (fill_always_executed_in): Move contains_call computation to
5607 this new function from ...
5608 (tree_ssa_lim_initialize): ... here.
5609 (tree_ssa_lim): Call fill_always_executed_in.
5611 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5613 * postreload.c (reload_combine): Fix code detecting returns.
5615 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
5617 * function.c (emit_use_return_register_into_block): On cc0 targets,
5618 do not emit the sequence between cc0 setter and user.
5620 2013-03-25 Kai Tietz <ktietz@redhat.com>
5622 * config/i386/predicates.md (local_symbolic_operand): Interpret
5623 dll-imported symbols as none-local.
5625 2013-03-25 Richard Biener <rguenther@suse.de>
5627 * tree-ssa-loop-im.c (struct depend): Remove.
5628 (struct lim_aux_data): Make depends a vec of gimples.
5629 (free_lim_aux_data): Adjust.
5630 (add_dependency): Likewise.
5631 (set_level): Likewise.
5633 2013-03-25 Richard Biener <rguenther@suse.de>
5636 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
5637 the pointer returned by calls with ECF_MALLOC set.
5639 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
5641 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
5643 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
5645 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
5646 using MMXMODE mode iterator.
5647 (*move<mode>_internal): Merge with *movv2sf_internal and
5648 *movv2sf_internal_rex64 using MMXMODE mode iterator.
5650 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5652 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
5653 (record_last_mem_set_info): Likewise.
5655 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
5656 of XNEWVEC followed by memset.
5657 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
5659 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
5661 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5662 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
5663 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
5664 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
5665 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
5666 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
5667 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
5668 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
5669 BARRIER_P instead of GET_CODE.
5671 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5673 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
5674 inaccuracy in the probing code.
5676 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
5677 (ctrapdi4): Likewise.
5679 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5681 * calls.c (expand_call): Add missing guard to code handling return
5682 of non-BLKmode structures in MSB.
5683 * function.c (expand_function_end): Likewise.
5685 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
5687 * combine.c (try_combine): Adjust comment. Do not add the set of
5688 insn #0 if the destination indirectly is set or dies in insn #2.
5689 Tidy up code to distribute a new note.
5691 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
5693 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
5694 also for alternatives 16 and 17.
5696 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
5698 * config/i386/sse.md (*mov<mode>_internal): Merge with
5699 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
5700 Emit insn template depending on type attribute. Use
5701 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5702 movd instead of movq mnemonic for interunit moves. Rewrite mode
5703 attribute calculation. Remove unit attribute calculation.
5704 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
5705 Set prefix_data16 attribute for DImode ssemov types.
5706 Use Ym instead of y for SSE-MMX conversion alternatives.
5707 Reorder operand constraints.
5709 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
5711 * df.h (df_insn_delete): Adjust prototype.
5712 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
5713 and let it decide whether mark the basic block dirty.
5714 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
5715 * df-scan.c (df_insn_info_delete): New helper function, split
5716 off from df_insn_delete.
5717 (df_scan_free_bb_info): Use it.
5718 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
5720 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
5721 that the insn is actually an insn and it has a non-NULL basic block.
5722 Do not mark basic block dirty if only deleting a DEBUG_INSN.
5724 2013-03-22 Richard Biener <rguenther@suse.de>
5726 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
5728 (mem_ref_alloc): Do not allocate them.
5729 (refs_independent_p): Do not query or maintain a cache.
5731 2013-03-22 Richard Biener <rguenther@suse.de>
5733 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
5734 (gather_mem_refs_in_loops): Do not compute it.
5735 (analyze_memory_references): Do not allocate it.
5736 (tree_ssa_lim_finalize): Do not free it.
5737 (for_all_locs_in_loop): Do not query all_refs_in_loop.
5739 2013-03-22 Richard Biener <rguenther@suse.de>
5741 * is-a.h (as_a): Use gcc_checking_assert.
5743 2013-03-22 Ian Bolton <ian.bolton@arm.com>
5745 * config/aarch64/aarch64.c (aarch64_print_operand): New
5746 format specifier for printing a constant in hex.
5747 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
5748 format specifier for printing second operand.
5750 2013-03-22 Richard Biener <rguenther@suse.de>
5752 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
5754 (gather_mem_refs_in_loops): Perform store accumulation here.
5755 (create_vop_ref_mapping_loop): Remove.
5756 (create_vop_ref_mapping): Likewise.
5757 (analyze_memory_references): Initialize refs_stored_in_loop.
5758 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
5759 (record_indep_loop): Remove.
5760 (record_dep_loop): New function.
5761 (ref_indep_loop_p_1): Adjust to only walk over references
5762 in the loop, not its subloops.
5763 (ref_indep_loop_p): Rename to ...
5764 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
5765 maintaining a more fine-grained cache.
5766 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
5767 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
5769 2013-03-22 Richard Biener <rguenther@suse.de>
5771 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
5772 (struct mem_ref): Make accesses_in_loop a vec of a vec of
5773 aggregate mem_ref_loc.
5774 (free_mem_ref_locs): Inline into ...
5775 (memref_free): ... this and adjust.
5776 (mem_ref_alloc): Adjust.
5777 (mem_ref_locs_alloc): Remove.
5778 (record_mem_ref_loc): Adjust.
5779 (get_all_locs_in_loop): Rewrite into ...
5780 (for_all_locs_in_loop): ... this iterator.
5781 (rewrite_mem_ref_loc): New functor.
5782 (rewrite_mem_refs): Use for_all_locs_in_loop.
5783 (sm_set_flag_if_changed): New functor.
5784 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
5785 (ref_always_accessed): New functor.
5786 (ref_always_accessed_p): Use for_all_locs_in_loop.
5788 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5790 * tree-pass.h (PROP_gimple_lvec): New.
5791 * passes.c (dump_properties): Handle PROP_gimple_lvec.
5792 (init_optimization_passes): Move pass_lower_vector.
5793 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
5795 (pass_lower_vector): Provide PROP_gimple_lvec.
5796 (pass_lower_vector_ssa): Likewise.
5797 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
5799 2013-03-21 Mark Wielaard <mjw@redhat.com>
5801 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
5803 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
5805 * config/i386/i386.md (*movdi_internal): Disparage slightly
5806 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
5807 conversion alternatives.
5809 2013-03-21 Jakub Jelinek <jakub@redhat.com>
5812 * diagnostic.def (DK_WERROR): New kind.
5813 * diagnostic.h (werrorcount): Define.
5814 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
5815 promoted to DK_ERROR, increment DK_WERROR counter instead of
5817 * toplev.c (toplev_main): Call print_ignored_options even if
5818 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
5819 even if just werrorcount is non-zero.
5822 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
5824 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
5825 (string_cst_pool_decl): New function.
5826 (optimize_one_addr_into_implicit_ptr): New function.
5827 (resolve_addr_in_expr): Optimize DWARF location expression
5828 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
5829 which doesn't live in memory, but has DW_AT_location or
5830 DW_AT_const_value, or refers to a string literal, into
5831 DW_OP_GNU_implicit_pointer.
5832 (optimize_location_into_implicit_ptr): New function.
5833 (resolve_addr): If removing DW_AT_location of a variable because
5834 it was DW_OP_addr of address of the variable, but the variable doesn't
5835 live in memory, try to emit const value attribute for the initializer.
5837 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5839 * tree.h (VECTOR_TYPE_P): New macro.
5840 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
5842 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
5843 VEC_COND_EXPR cannot be lvalues.
5844 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
5846 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
5848 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
5849 Restrict the transformation to equal modes.
5851 2013-03-21 Richard Biener <rguenther@suse.de>
5853 PR tree-optimization/39326
5854 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
5855 (MEM_ANALYZABLE): Adjust.
5856 (record_mem_ref_loc): Move bitmap ops ...
5857 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
5858 unanalyzable refs, do not record locations for it.
5859 (analyze_memory_references): Allocate ref zero as shared
5861 (refs_independent_p): Do not test for unanalyzed mems here.
5862 (ref_indep_loop_p_1): Special-case disambiguation against
5864 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
5866 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
5868 * config/arm/arm-protos.h (tune_params): Add
5869 prefer_neon_for_64bits field.
5870 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
5871 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
5872 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5873 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5874 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
5875 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5876 (arm_option_override): Handle -mneon-for-64bits new option.
5877 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
5878 (prefer_neon_for_64bits): Declare new variable.
5879 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
5880 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
5881 (arch_enabled): Handle new arch types. Remove support for onlya8
5883 (one_cmpldi2): Use new arch names.
5884 (zero_extend<mode>di2, extend<mode>di2): Ditto.
5885 * config/arm/arm.opt (mneon-for-64bits): Add option.
5886 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
5887 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
5888 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
5890 * doc/invoke.texi (-mneon-for-64bits): Document.
5892 2013-03-21 Richard Biener <rguenther@suse.de>
5894 PR tree-optimization/39326
5895 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
5896 (sort_bbs_in_loop_postorder_cmp): New function.
5897 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5899 2013-03-21 Richard Biener <rguenther@suse.de>
5901 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
5902 (vect_insert_into_interleaving_chain): Likewise.
5903 (vect_drs_dependent_in_basic_block): Inline ...
5904 (vect_slp_analyze_data_ref_dependence): ... here. New function,
5906 (vect_analyze_data_ref_dependence): ... here. Simplify.
5907 (vect_check_interleaving): Simplify.
5908 (vect_analyze_data_ref_dependences): Likewise. Split out ...
5909 (vect_slp_analyze_data_ref_dependences): ... this new function.
5910 (dr_group_sort_cmp): New function.
5911 (vect_analyze_data_ref_accesses): Compute data-reference groups
5912 here instead of in vect_analyze_data_ref_dependence. Use
5913 a more efficient algorithm.
5914 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
5915 vect_slp_analyze_data_ref_dependences. Call
5916 vect_analyze_data_ref_accesses earlier.
5917 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
5918 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
5919 (vect_slp_analyze_data_ref_dependences): New prototype.
5921 2013-03-21 Richard Biener <rguenther@suse.de>
5923 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
5924 ref is stored in the loop.
5925 (find_refs_for_sm): Walk only over all stores.
5926 (store_motion_loop): Allocate from lim_bitmap_obstack.
5927 (store_motion): Likewise.
5929 2013-03-21 Richard Biener <rguenther@suse.de>
5931 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
5932 Update virtual SSA form.
5934 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5936 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
5937 * configure: Regenerate.
5938 * config.in: Regenerate.
5939 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
5940 if !HAVE_LD_EH_FRAME_CIEV3.
5942 2013-03-21 Richard Biener <rguenther@suse.de>
5944 * tree-cfg.c (verify_expr_no_block): New function.
5945 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5946 nor DECL_VALUE_EXPR have locations with associated blocks.
5947 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5948 (clear_unused_block_pointer): Remove code dealing with
5949 blocks in DECL_DEBUG_EXPR locations.
5951 2013-03-21 Richard Biener <rguenther@suse.de>
5953 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5954 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
5955 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5956 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5957 instead of DECL_DEBUG_EXPR_IS_FROM.
5958 * gimplify.c (gimplify_modify_expr): Likewise.
5959 * tree-cfg.c (verify_expr_location_1): Likewise.
5960 * tree-complex.c (create_one_component_var): Likewise.
5961 * tree-sra.c (create_access_replacement): Likewise.
5962 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5963 (clear_unused_block_pointer): Likewise.
5964 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5965 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5966 * var-tracking.c (var_debug_decl): Likewise.
5967 (track_expr_p): Likewise.
5968 * tree-inline.c (add_local_variables): Likewise. Set
5969 DECL_HAS_DEBUG_EXPR_P after copying it.
5970 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5971 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
5973 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
5976 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5977 * configure: Regenerate.
5978 * config.in: Regenerate.
5979 * config/i386/i386.md (*movdf_internal): Use
5980 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5981 movd instead of movq mnemonic for interunit moves.
5982 (*movdi_internal): Ditto.
5984 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5986 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5987 (abd<mode>_3): New pattern.
5988 (aba<mode>_3): New pattern.
5989 (fabd<mode>_3): New pattern.
5991 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5993 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
5994 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
5995 occurrence of REGISTER_PREFIX as its empty string.
5997 2013-03-20 Jeff Law <law@redhat.com>
5999 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
6000 addititional equivalences for equality comparisons between an SSA_NAME
6001 and a constant where the SSA_NAME was set from a widening conversion.
6003 2013-03-20 Walter Lee <walt@tilera.com>
6005 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
6007 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6009 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
6010 depending on type attribute.
6011 (*movti_internal): Ditto.
6012 (*movtf_internal): Ditto.
6013 (*movxf_internal): Ditto.
6014 (*movdf_internal): Ditto.
6015 (*movsf_internal): Ditto.
6017 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6019 * config/i386/i386.md (*movti_internal): Set prefix attribute to
6020 maybe_vex for sselog1 and ssemov types.
6021 (*movdi_internal): Reorder operand constraints.
6022 (*movsi_internal): Ditto. Set prefix attribute to
6023 maybe_vex for sselog1 and ssemov types.
6024 (*movtf_internal): Set prefix attribute to maybe_vex
6025 for sselog1 and ssemov types.
6026 (*movdf_internal): Ditto. Set prefix_data16 attribute for
6027 DImode ssemov types. Reorder operand constraints.
6028 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
6029 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
6030 attribute for SImode ssemov types. Reorder operand constraints.
6032 2013-03-20 Martin Jambor <mjambor@suse.cz>
6034 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
6035 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
6037 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
6039 * config/rs6000/predicates.md (indexed_address, update_address_mem
6040 update_indexed_address_mem): New predicates.
6041 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
6042 attribute for load/store instructions.
6043 * config/rs6000/dfp.md (movsd_store): Likewise.
6044 (movsd_load): Likewise.
6045 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
6046 (unnamed HI->DI extend define_insn): Likewise.
6047 (unnamed SI->DI extend define_insn): Likewise.
6048 (unnamed QI->SI extend define_insn): Likewise.
6049 (unnamed QI->HI extend define_insn): Likewise.
6050 (unnamed HI->SI extend define_insn): Likewise.
6051 (unnamed HI->SI extend define_insn): Likewise.
6052 (extendsfdf2_fpr): Likewise.
6053 (movsi_internal1): Likewise.
6054 (movsi_internal1_single): Likewise.
6055 (movhi_internal): Likewise.
6056 (movqi_internal): Likewise.
6057 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
6058 attribute for load/store instructions.
6059 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
6061 (mov<mode>_softfloat): Likewise.
6062 (mov<mode>_hardfloat32): Likewise.
6063 (mov<mode>_hardfloat64): Likewise.
6064 (mov<mode>_softfloat64): Likewise.
6065 (movdi_internal32): Likewise.
6066 (movdi_internal64): Likewise.
6067 (probe_stack_<mode>): Likewise.
6069 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6071 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
6072 floating point, and decimal floating point to reload iterator.
6074 * config/rs6000/constraints.md (wl constraint): New constraints to
6075 return FLOAT_REGS if certain options are used to reduce the number
6076 of separate patterns that exist in the file.
6077 (wx constraint): Likewise.
6078 (wz constraint): Likewise.
6080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6081 -mdebug=reg, print wg, wl, wx, and wz constraints.
6082 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6083 Initialize the reload functions for 64-bit binary/decimal floating
6085 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6086 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6087 create the buffer on the stack to overcome not having a 32-bit
6089 (rs6000_emit_move): Likewise.
6090 (rs6000_secondary_memory_needed_rtx): Likewise.
6091 (rs6000_alloc_sdmode_stack_slot): Likewise.
6092 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6093 via xxlxor, just like DFmode 0.0.
6095 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
6096 define as 1 if we are running on a power7 or newer.
6097 (enum r6000_reg_class_enum): Add new constraints.
6099 * config/rs6000/dfp.md (movsd): Delete, combine with binary
6100 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6101 with other moves by using conditional constraits (wg). Use LFIWZX
6102 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
6103 (movsd splitter): Likewise.
6104 (movsd_hardfloat): Likewise.
6105 (movsd_softfloat): Likewise.
6107 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
6108 binary and decimal floating point moves.
6109 (fmove_ok): New attributes to combine binary and decimal floating
6110 point moves, and to combine power6x (mfpgpr) moves along normal
6112 (real_value_to_target): Likewise.
6119 (movsf): Combine binary and decimal floating point moves. Combine
6120 power6x (mfpgpr) moves with other moves by using conditional
6121 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
6122 (mov<mode> for SFmode/SDmode); Likewise.
6123 (SFmode/SDmode splitters): Likewise.
6124 (movsf_hardfloat): Likewise.
6125 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
6126 (movsf_softfloat): Likewise.
6127 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
6129 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
6130 wx and wz constraints.
6132 * config/rs6000/constraints.md (wg constraint): New constraint to
6133 return FLOAT_REGS if -mmfpgpr (power6x) was used.
6135 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
6138 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
6139 -mdebug=reg, print wg, wl, wx, and wz constraints.
6140 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
6141 Initialize the reload functions for 64-bit binary/decimal floating
6143 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
6144 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
6145 create the buffer on the stack to overcome not having a 32-bit
6147 (rs6000_emit_move): Likewise.
6148 (rs6000_secondary_memory_needed_rtx): Likewise.
6149 (rs6000_alloc_sdmode_stack_slot): Likewise.
6150 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
6151 via xxlxor, just like DFmode 0.0.
6153 * config/rs6000/dfp.md (movdd): Delete, combine with binary
6154 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
6155 with other moves by using conditional constraits (wg). Use LFIWZX
6156 and STFIWX for loading SDmode on power7.
6157 (movdd splitters): Likewise.
6158 (movdd_hardfloat32): Likewise.
6159 (movdd_softfloat32): Likewise.
6160 (movdd_hardfloat64_mfpgpr): Likewise.
6161 (movdd_hardfloat64): Likewise.
6162 (movdd_softfloat64): Likewise.
6164 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
6165 64-bit binary and decimal floating point moves.
6166 (FMOVE64X): Likewise.
6167 (movdf): Combine 64-bit binary and decimal floating point moves.
6168 Combine power6x (mfpgpr) moves with other moves by using
6169 conditional constraits (wg).
6170 (mov<mode> for DFmode/DDmode): Likewise.
6171 (DFmode/DDmode splitters): Likewise.
6172 (movdf_hardfloat32): Likewise.
6173 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
6174 (movdf_softfloat32): Likewise.
6175 (movdf_hardfloat64_mfpgpr): Likewise.
6176 (movdf_hardfloat64): Likewise.
6177 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
6178 (movdf_softfloat64): Likewise.
6179 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
6180 (reload_<mode>_load): Move to later in the file so they aren't in
6181 the middle of the floating point move insns.
6182 (reload_<mode>_store): Likewise.
6184 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
6187 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
6188 constraint if -mdebug=reg.
6189 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
6190 Enable using dd reload support if needed.
6192 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
6193 binary and decimal floating point moves in rs6000.md.
6194 (movtd_internal): Likewise.
6196 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
6197 decimal floating point moves.
6199 (movtf_internal): Likewise.
6200 (mov<mode>_internal, TDmode/TFmode): Likewise.
6201 (movtf_softfloat): Likewise.
6202 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
6204 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
6205 movdi_internal64, using wg constraint for move direct operations.
6206 (movdi_internal64): Likewise.
6208 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
6209 MODES_TIEABLE_P for selected modes. Print the numerical value of
6210 the various virtual registers. Use GPR/FPR first/last values,
6211 instead of hard coding the register numbers. Print which modes
6212 have reload functions registered.
6213 (rs6000_option_override_internal): If -mdebug=reg, trace the options
6214 settings before/after setting cpu, target and subtarget settings.
6215 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
6216 and for secondary reload failures in rs6000_secondary_reload_inner.
6217 (rs6000_secondary_reload_fail): Likewise.
6218 (rs6000_secondary_reload_inner): Likewise.
6220 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
6221 macros for first/last GPR and FPR registers.
6222 (LAST_GPR_REGNO): Likewise.
6223 (FIRST_FPR_REGNO): Likewise.
6224 (LAST_FPR_REGNO): Likewise.
6226 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
6227 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
6228 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
6229 (vcond<mode><mode>): Likewise.
6230 (vcondu<mode><mode>): Likewise.
6231 (vector_gtu<mode>): Likewise.
6232 (vector_gte<mode>): Likewise.
6233 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
6234 to prevent the compiler from converting DImode operations to TImode.
6235 (ior<mode>3): Likewise.
6236 (and<mode>3): Likewise.
6237 (one_cmpl<mode>2): Likewise.
6238 (nor<mode>3): Likewise.
6239 (andc<mode>3): Likewise.
6241 * config/rs6000/constraints.md (wt constraint): New constraint
6242 that returns VSX_REGS if TImode is allowed in VSX registers.
6244 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
6247 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
6248 similar to TImode, but it is restricted to being in the GPRs.
6250 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
6251 TImode to occupy a single VSX register.
6253 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
6254 -mvsx-timode for power7/power8.
6255 (power7 cpu): Likewise.
6256 (power8 cpu): Likewise.
6258 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
6259 sure that TFmode/TDmode take up two registers if they are ever
6260 allowed in the upper VSX registers.
6261 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
6263 (rs6000_init_hard_regno_mode_ok): Likewise.
6264 (rs6000_debug_reg_global): Add debugging for PTImode and wt
6265 constraint. Print if LRA is turned on.
6266 (rs6000_option_override_internal): Give an error if -mvsx-timode
6267 and VSX is not enabled.
6268 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
6269 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
6270 to reg+offset addressing. Use PTImode when checking offset
6271 addresses for validity.
6272 (reg_offset_addressing_ok_p): Likewise.
6273 (rs6000_legitimate_offset_address_p): Likewise.
6274 (rs6000_legitimize_address): Likewise.
6275 (rs6000_legitimize_reload_address): Likewise.
6276 (rs6000_legitimate_address_p): Likewise.
6277 (rs6000_eliminate_indexed_memrefs): Likewise.
6278 (rs6000_emit_move): Likewise.
6279 (rs6000_secondary_reload): Likewise.
6280 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
6281 reloads to fpr registers to continue to use reg+offset addressing,
6282 but 64-bit reloads to altivec registers need reg+reg addressing.
6283 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
6284 it. Treat LO_SUM like a PLUS operation.
6285 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
6286 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
6287 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
6288 registers to share a register with a smaller sized type, since VSX
6289 puts scalars in the upper 64-bits.
6290 (print_operand): Add support for PTImode.
6291 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
6292 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
6293 registers, but don't have arithmetic support.
6294 (rs6000_memory_move_cost): Add test for VSX.
6295 (rs6000_opt_masks): Add -mvsx-timode.
6297 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
6300 (VSr): Use wt constraint for TImode.
6301 (VSv): Drop TImode support.
6302 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
6303 (vsx_movti_64bit): Likewise.
6304 (vsx_movti_32bit): Likewise.
6305 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
6306 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
6307 one '?' on the appropriate output constraint. Do not allow TImode
6308 logical operations on 32-bit systems.
6309 (vsx_ior<mode>3): Likewise.
6310 (vsx_xor<mode>3): Likewise.
6311 (vsx_one_cmpl<mode>2): Likewise.
6312 (vsx_nor<mode>3): Likewise.
6313 (vsx_andc<mode>3): Likewise.
6314 (vsx_concat_<mode>): Likewise.
6315 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
6317 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
6318 OPTION_MASK_VSX_TIMODE.
6319 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
6320 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
6322 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
6323 (TI2 iterator): New iterator for TImode, PTImode.
6324 (wd mode attribute): Add values for vector types.
6325 (movti_string): Replace TI move operations with operations for TImode
6326 and PTImode. Add support for TImode being allowed in VSX registers.
6327 (mov<mode>_string, TImode/PTImode): Likewise.
6328 (movti_ppc64): Likewise.
6329 (mov<mode>_ppc64, TImode/PTImode): Likewise.
6330 (TI mode splitters): Likewise.
6332 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
6335 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
6337 PR tree-optimization/56355
6338 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
6339 Also handle integers with undefined overflow.
6341 2013-03-20 Catherine Moore <clm@codesourcery.com>
6342 Maciej W. Rozycki <macro@codesourcery.com>
6343 Tom de Vries <tom@codesourcery.com>
6344 Nathan Sidwell <nathan@codesourcery.com>
6345 Iain Sandoe <iain@codesourcery.com>
6346 Nathan Froyd <froydnj@codesourcery.com>
6347 Chao-ying Fu <fu@mips.com>
6349 * doc/extend.texi: (micromips, nomicromips, nocompression):
6350 Document new function attributes.
6351 * doc/invoke.texi (minterlink-compressed, mmicromips,
6352 m14k, m14ke, m14kec): Document new options.
6353 (minterlink-mips16): Update documentation.
6354 * doc/md.texi (ZC, ZD): Document new constraints.
6355 * configure.ac (gcc_cv_as_micromips): Check if linker
6356 supports the .set micromips directive.
6357 * configure: Regenerate.
6358 * config.in: Regenerate.
6359 * config/mips/mips-tables.opt: Regenerate.
6360 * config/mips/micromips.md: New file.
6361 * constraints.md (ZC, ZD): New constraints.
6362 * config/mips/predicates.md (movep_src_register): New predicate.
6363 (movep_src_operand): New predicate.
6364 (non_volatile_mem_operand): New predicate.
6365 * config/mips/mips.md (multimem): New type.
6366 (length): Differentiate between 17-bit and 18-bit branch offsets.
6367 (MOVEP1, MOVEP2): New mode iterator.
6368 (mov_<load>l): Use ZC constraint.
6369 (mov_<load>r): Likewise.
6370 (mov_<store>l): Likewise.
6371 (mov_<store>r): Likewise.
6372 (*branch_equality<mode>_inverted): Add microMIPS support.
6373 (*branch_equality<mode>): Likewise.
6374 (*jump_absolute): Likewise.
6375 (indirect_jump_<mode>): Likewise.
6376 (tablejump_<mode>): Likewise.
6377 (<optab>_internal): Likewise.
6378 (sibcall_internal): Likewise.
6379 (sibcall_value_internal): Likewise.
6380 (prefetch): Use constraint ZD.
6381 * config/mips/mips.opt (minterlink-compressed): New option.
6382 (minterlink-mips16): Now an alias for minterlink-compressed.
6383 (mmicromips): New option.
6384 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6385 (compare_and_swap_12): Likewise.
6386 (sync_add<mode>): Likewise.
6387 (sync_<optab>_12): Likewise.
6388 (sync_old_<optab>_12): Likewise.
6389 (sync_new_<optab>_12): Likewise.
6390 (sync_nand_12): Likewise.
6391 (sync_old_nand_12): Likewise.
6392 (sync_new_nand_12): Likewise.
6393 (sync_sub<mode>): Likewise.
6394 (sync_old_add<mode>): Likewise.
6395 (sync_old_sub<mode>): Likewise.
6396 (sync_new_add<mode>): Likewise.
6397 (sync_new_sub<mode>): Likewise.
6398 (sync_<optab><mode>): Likewise.
6399 (sync_old_<optab><mode>): Likewise.
6400 (sync_new_<optab><mode>): Likewise.
6401 (sync_nand<mode>): Likewise.
6402 (sync_old_nand<mode>): Likewise.
6403 (sync_new_nand<mode>): Likewise.
6404 (sync_lock_test_and_set<mode>): Likewise.
6405 (test_and_set_12): Likewise.
6406 (atomic_compare_and_swap<mode>): Likewise.
6407 (atomic_exchange<mode>_llsc): Likewise.
6408 (atomic_fetch_add<mode>_llsc): Likewise.
6409 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6410 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6411 (umips_save_restore_pattern_p): Likewise.
6412 (umips_load_store_pair_p): Likewise.
6413 (umips_output_load_store_pair): Likewise.
6414 (umips_movep_target_p): Likewise.
6415 (umips_12bit_offset_address_p): Likewise.
6416 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6417 (mips_base_mips16): Rename this...
6418 (mips_base_compression_flags): ...to this. Update all uses.
6419 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6420 (mips_mips16_decl_p): Delete.
6421 (mips_nomips16_decl_p): Delete.
6422 (mips_get_compress_on_flags): New function.
6423 (mips_get_compress_off_flags): New function.
6424 (mips_get_compress_mode): New function.
6425 (mips_get_compress_on_name): New function.
6426 (mips_get_compress_off_name): New function.
6427 (mips_insert_attributes): Support multiple compression types.
6428 (mips_merge_decl_attributes): Likewise.
6429 (umips_12bit_offset_address_p): New function.
6430 (mips_start_function_definition): Emit .set micromips directive.
6431 (mips_call_may_need_jalx_p): New function.
6432 (mips_function_ok_for_sibcall): Add microMIPS support.
6433 (mips_print_operand_punctuation): Support short delay slots and
6435 (umips_swm_mask, umips_swm_encoding): New.
6436 (umips_build_save_restore): New function.
6437 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6438 (was_mips16_p): Remove.
6439 (old_compression_mode): New.
6440 (mips_set_compression_mode): New function.
6441 (mips_set_current_function): Add microMIPS support.
6442 (mips_option_override): Likewise.
6443 (umips_save_restore_pattern_p): New function.
6444 (umips_output_save_restore): New function.
6445 (umips_load_store_pair_p_1): New function.
6446 (umips_load_store_pair_p): New function.
6447 (umips_output_load_store_pair_1): New function.
6448 (umips_output_load_store_pair): New function.
6449 (umips_movep_target_p) New function.
6450 (mips_prepare_pch_save): Add microMIPS support.
6451 * config/mips/mips.h (TARGET_COMPRESSION): New.
6452 (TARGET_CPU_CPP_BUILTINS): Update macro
6453 to use new compression flags and to support microMIPS.
6454 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6455 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6456 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6457 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6458 (ASM_SPEC): Support mmicromips and mno-micromips.
6459 (M16STORE_REG_P): New macro.
6460 (MIPS_CALL): Support TARGET_MICROMIPS.
6461 (MICROMIPS_J): New macro.
6462 (mips_base_mips16): Rename this...
6463 (mips_base_compression_flags): ...to this.
6464 (UMIPS_12BIT_OFFSET_P): New macro.
6465 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6466 (MULTILIB_DIRNAMES): Likewise.
6467 2013-03-20 Richard Biener <rguenther@suse.de>
6469 PR tree-optimization/56661
6470 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
6471 the result does not have to be distinct.
6473 2013-03-20 Richard Biener <rguenther@suse.de>
6475 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
6478 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6479 Steven Bosscher <steven@gcc.gnu.org>
6481 PR rtl-optimization/56605
6482 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
6484 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
6487 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
6488 that require movd instead of movq.
6490 2013-03-20 Richard Biener <rguenther@suse.de>
6492 * tree-ssa-structalias.c (struct variable_info): Add pointer
6493 to the first field of an aggregate with sub-vars. Make
6494 this and the pointer to the next subfield its ID.
6495 (vi_next): New function.
6496 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
6497 storedanything_id, integer_id): Increment by one.
6498 (new_var_info, get_call_vi, lookup_call_clobber_vi,
6499 get_call_clobber_vi): Adjust.
6500 (solution_set_expand): Simplify and speedup.
6501 (solution_set_add): Inline into ...
6502 (set_union_with_increment): ... this. Adjust accordingly.
6503 (do_sd_constraint): Likewise.
6504 (do_ds_constraint): Likewise.
6505 (do_complex_constraint): Simplify.
6506 (build_pred_graph): Adjust.
6507 (solve_graph): Likewise. Simplify and speedup.
6508 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
6509 get_constraint_for_component_ref, get_constraint_for_1,
6510 first_vi_for_offset, first_or_preceding_vi_for_offset,
6511 create_function_info_for, create_variable_info_for_1,
6512 create_variable_info_for, intra_create_variable_infos): Adjust.
6513 (init_base_vars): Push NULL for ID zero.
6514 (compute_points_to_sets): Adjust.
6516 2013-03-20 Richard Biener <rguenther@suse.de>
6518 * cfgloop.c (verify_loop_structure): Streamline and avoid
6519 ICEing on corrupt loop tree.
6520 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
6523 2013-03-20 Richard Biener <rguenther@suse.de>
6525 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
6526 check whether an SSA update is needed.
6528 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
6530 * config/mips/constraints.md (T): Rename to...
6534 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
6535 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
6537 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6539 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
6540 (*subsi3_carryin_uxtw): Likewise.
6542 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6544 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
6545 (*rorsi3_insn_uxtw): Likewise.
6547 2013-03-19 Ian Bolton <ian.bolton@arm.com>
6549 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
6550 (*extrsi5_insn_uxtw): Likewise.
6552 2013-03-19 Richard Biener <rguenther@suse.de>
6554 PR tree-optimization/56273
6555 * passes.c (init_optimization_passes): Move second VRP after DOM.
6557 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
6559 * config/i386/i386.md (*movti_internal): Merge from
6560 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
6561 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
6562 nox64 isa attributes.
6564 2013-03-18 Richard Biener <rguenther@suse.de>
6566 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
6568 (merge_node_constraints): Likewise.
6569 (build_succ_graph): Likewise.
6570 (valid_graph_edge): Inline into single caller.
6571 (unify_nodes): Likewise. Use bitmap_set_bit return value
6573 (scc_visit): Fix formatting and variable use.
6574 (do_sd_constraint): Use gcc_checking_assert.
6575 (do_ds_constraint): Likewise.
6576 (do_complex_constraint): Likewise.
6577 (condense_visit): Likewise. Cleanup.
6578 (dump_pred_graph): New function.
6579 (perform_var_substitution): Dump the pred-graph before
6580 variable substitution.
6581 (find_equivalent_node): Use gcc_checking_assert.
6582 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
6584 2013-03-18 Richard Biener <rguenther@suse.de>
6586 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6587 Remove cond_expr_stmt_list argument and do not gimplify the
6589 (vect_loop_versioning): Adjust.
6590 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6591 Cleanup to use less temporaries.
6592 (vect_create_data_ref_ptr): Cleanup.
6594 2013-03-18 Jakub Jelinek <jakub@redhat.com>
6596 PR tree-optimization/56635
6597 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
6598 require types_compatible_p types.
6600 2013-03-18 Nick Clifton <nickc@redhat.com>
6602 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
6605 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
6606 Add missing line to comment describing function.
6608 2013-03-18 Richard Biener <rguenther@suse.de>
6610 PR tree-optimization/56210
6611 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6612 Handle string / character search functions.
6613 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6615 2013-03-18 Richard Biener <rguenther@suse.de>
6618 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
6619 and implement properly.
6620 * gimple.h (gimple_cond_single_var_p): Remove.
6622 2013-03-18 Richard Biener <rguenther@suse.de>
6624 * tree-data-ref.h (find_data_references_in_loop): Declare.
6625 * tree-data-ref.c (get_references_in_stmt): Use a stack
6626 vector pre-allocated in the callers.
6627 (find_data_references_in_stmt): Adjust.
6628 (graphite_find_data_references_in_stmt): Likewise.
6629 (create_rdg_vertices): Likewise.
6630 (find_data_references_in_loop): Export.
6631 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6632 Compute dependences here...
6633 (vect_analyze_data_refs): ...not here. When we encounter
6634 a non-vectorizable data reference in basic-block vectorization
6635 truncate the data reference vector. Do not bother to
6636 fixup data-dependence information for gather loads.
6637 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
6638 of data references, as reported.
6640 2013-03-18 Richard Biener <rguenther@suse.de>
6642 PR tree-optimization/3713
6643 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
6644 has_constants and expr.
6645 (stmt_has_constants): Properly valueize SSA names when deciding
6646 whether the stmt has constants.
6648 2013-03-18 Richard Biener <rguenther@suse.de>
6650 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
6651 whole function when there is nothing to do.
6652 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
6653 * tree-vectorizer.c (vectorize_loops): Update virtual and
6654 loop-closed SSA once.
6655 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
6657 2013-03-18 Richard Biener <rguenther@suse.de>
6660 * domwalk.c (bb_postorder): New global static.
6661 (cmp_bb_postorder): New function.
6662 (walk_dominator_tree): Replace scheme imposing an order for
6663 visiting dominator sons by one sorting them at the time they
6664 are pushed on the stack.
6666 2013-03-18 Richard Biener <rguenther@suse.de>
6668 PR tree-optimization/39326
6669 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
6670 (struct mem_ref): Replace mem member with ao_ref typed member.
6671 (MEM_ANALYZABLE): Adjust.
6672 (memref_eq): Likewise.
6673 (mem_ref_alloc): Likewise.
6674 (gather_mem_refs_stmt): Likewise.
6675 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
6676 (execute_sm_if_changed_flag_set): Adjust.
6677 (execute_sm): Likewise.
6678 (ref_always_accessed_p): Likewise.
6679 (refs_independent_p): Likewise.
6680 (can_sm_ref_p): Likewise.
6682 2013-03-18 Jakub Jelinek <jakub@redhat.com>
6685 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
6686 return 1 even for !unsignedp.
6688 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6690 * config/i386/i386.md (isa): Add x64 and nox64.
6691 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
6692 (*pushtf): Enable *roF alternative for x64 isa only.
6693 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
6694 mode attribute of integer alternatives to DImode for TARGET_64BIT.
6695 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
6696 (*movtf_internal): Merge from *movtf_internal_rex64 and
6697 *movtf_internal_sse. Use x64 and nox64 isa attributes.
6698 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
6699 nox64 isa attributes.
6700 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
6701 nox64 isa attributes.
6702 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
6704 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6706 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6708 2013-03-17 Jakub Jelinek <jakub@redhat.com>
6711 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
6712 class names. Remove trailing comma after "ALL_REGS".
6714 2013-03-16 Jan Hubicka <jh@suse.cz>
6716 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
6717 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
6718 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
6719 of cgraph_get_create_node.
6720 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6722 2013-03-16 Jason Merrill <jason@redhat.com>
6725 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
6726 with DW_AT_default_value.
6728 2013-03-16 Jakub Jelinek <jakub@redhat.com>
6730 * BASE-VER: Set to 4.9.0.
6732 2013-03-14 Andi Kleen <ak@linux.intel.com>
6735 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
6736 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
6737 Document _x* TSX intrinsics.
6739 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
6740 David Holsgrove <david.holsgrove@xilinx.com>
6742 * configure.ac: Add MicroBlaze TLS support detection.
6743 * configure: Regenerate.
6744 * config/microblaze/microblaze-protos.h
6745 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
6746 symbol_mentioned_p, label_mentioned_p): Add prototypes.
6747 * config/microblaze/microblaze.c (microblaze_address_type): Add
6748 ADDRESS_TLS and tls_reloc address types.
6749 (microblaze_address_info): Add tls_reloc.
6750 (TARGET_HAVE_TLS): Define.
6751 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
6752 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
6753 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
6754 load_tls_operand, microblaze_call_tls_get_addr,
6755 microblaze_legitimize_tls_address): New functions.
6756 (microblaze_classify_unspec): Handle UNSPEC_TLS.
6757 (get_base_reg): Use microblaze_tls_symbol_p.
6758 (microblaze_classify_address): Handle TLS.
6759 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
6760 label_mentioned_p and microblaze_tls_referenced_p.
6761 (microblaze_legitimize_address): Handle TLS.
6762 (microblaze_address_insns): Handle ADDRESS_TLS.
6763 (pic_address_needs_scratch): Handle TLS.
6764 (print_operand_address): Handle TLS.
6765 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
6766 (microblaze_expand_move): Handle TLS.
6767 (microblaze_legitimate_constant_p): Check
6768 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
6769 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6770 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
6771 (PIC_OFFSET_TABLE_REGNUM): Set.
6772 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
6773 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
6774 (addsi3, movsi_internal2, movdf_internal): Update constraints
6775 * config/microblaze/predicates.md (arith_plus_operand): Define
6776 (move_operand): Redefine as move_src_operand,
6777 check microblaze_tls_referenced_p.
6779 2013-03-14 Ian Bolton <ian.bolton@arm.com>
6781 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
6782 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
6784 2013-03-14 Ian Bolton <ian.bolton@arm.com>
6786 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
6789 2013-03-14 Jakub Jelinek <jakub@redhat.com>
6791 PR tree-optimization/53265
6792 * common.opt (Waggressive-loop-optimizations): New option.
6793 * tree-ssa-loop-niter.c: Include tree-pass.h.
6794 (do_warn_aggressive_loop_optimizations): New function.
6795 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
6796 if number_of_latch_executions returned constant.
6797 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
6798 early. If number_of_latch_executions returned constant, set
6799 nb_iterations_upper_bound back to it.
6800 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
6802 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
6803 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
6805 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
6806 (MULTILIB_OSDIRNAMES): Set.
6807 * genmultilib: If defaultosdirname doesn't start with :: , set
6808 defaultosdirname2 instead, clear it and emit two . multilib_raw
6809 entries instead of just one.
6811 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
6813 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6814 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
6815 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
6816 (SUBTARGET_OVERRIDE_OPTIONS): New.
6818 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
6821 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
6822 (musermode): Convert to Var(TARGET_USERMODE).
6823 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
6824 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
6825 * config/sh/sh.c (sh_option_override): Use
6826 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
6827 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
6829 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
6831 (udivsi3_i4_single, divsi3_i4_single): Use
6832 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
6834 2013-03-13 Dave Korn <dave.korn.cygwin@....>
6836 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
6839 2013-03-13 Richard Biener <rguenther@suse.de>
6841 PR tree-optimization/56608
6842 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
6843 calls when vectorizing basic-blocks.
6845 2013-03-13 Jakub Jelinek <jakub@redhat.com>
6848 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
6851 2013-03-12 Jakub Jelinek <jakub@redhat.com>
6853 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
6855 2013-03-11 Jan Hubicka <jh@suse.cz>
6858 * lto-streamer-out.c (output_symbol_p): Skip references from
6859 constructors of external variables.
6861 2013-03-11 Jan Hubicka <jh@suse.cz>
6864 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
6866 * emit-rtl.c (verify_rtx_sharing): Likewise.
6867 (copy_insn_1): Likewise.
6868 * rtl.c (copy_rtx): Likewise.
6870 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
6873 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
6874 output_operand_lossage message.
6876 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
6879 * arm.c (shift_op): Validate RTL pattern on the fly.
6880 (arm_print_operand, case 'S'): Don't use shift_operator to validate
6883 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6886 * config/pa/pa.md (call_value): Check for calls to powf and direct to
6887 new call patterns that clobber %fr12.
6888 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
6889 split and postreload patterns.
6890 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
6891 registers %fr12 and %fr12R as call used.
6893 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
6895 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
6896 (canon_address, record_store, replace_read, check_mem_read_rtx,
6897 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
6898 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
6899 rest_of_handle_dse): Likewise.
6901 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6904 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
6906 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
6907 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
6908 (save_optabs_if_changed): Replace with...
6909 (init_tree_optimization_optabs): ...this.
6910 * optabs.c (save_optabs_if_changed): Rename to...
6911 (init_tree_optimization_optabs): ...this. Take the optimization node
6912 as argument. Do nothing if the base optabs are already correct.
6913 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
6914 to recompute optabs.
6915 * function.h (function): Remove optabs field.
6916 * function.c (invoke_set_current_function_hook): Call
6917 init_tree_optimization_optabs. Use the result to initialize
6920 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
6922 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
6923 if GTMA_HAS_NO_INSTRUMENTATION.
6924 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
6925 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
6926 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
6927 * gimple-pretty-print.c (dump_gimple_transaction): Handle
6928 GTMA_HAS_NO_INSTRUMENTATION.
6930 2013-03-08 Jakub Jelinek <jakub@redhat.com>
6932 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
6935 2013-03-08 Marek Polacek <polacek@redhat.com>
6936 Jakub Jelinek <jakub@redhat.com>
6938 PR tree-optimization/56478
6939 * predict.c (is_comparison_with_loop_invariant_p): Change the
6940 type of loop_step to tree.
6941 (predict_loops): Adjust.
6942 (predict_iv_comparison): Perform the computations on double_ints.
6944 2013-03-08 Richard Biener <rguenther@suse.de>
6946 PR tree-optimization/56570
6947 * tree-cfg.c (verify_expr_location_1): Verify locations for
6949 * tree-sra.c (create_access_replacement): Strip locations
6950 from DECL_DEBUG_EXPRs.
6952 2013-03-08 Richard Biener <rguenther@suse.de>
6954 * tree-inline.c (expand_call_inline): Do not associate
6955 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6956 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6958 2013-03-08 Richard Biener <rguenther@suse.de>
6960 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6961 or block changes with -Og. Fix for location / block encoding
6962 changes and PHI arguments with locations.
6964 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
6966 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6968 (struct output_info): Likewise.
6969 (register_overhead): Remove bad gcc_assert.
6970 (bitmap_find_bit): If there is only a single bitmap element, do not
6971 count a miss as a search.
6972 (print_statistics): Update for counter type changes.
6973 (dump_bitmap_statistics): Likewise. Print headers such that they
6974 are properly lined up with the printed counters.
6976 2013-03-07 Jakub Jelinek <jakub@redhat.com>
6978 PR tree-optimization/56559
6979 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6980 check that it has only a single use.
6982 2013-03-07 Richard Biener <rguenther@suse.de>
6984 * doc/invoke.texi (fwhole-program): Discourage use in combination
6987 2013-03-06 Jakub Jelinek <jakub@redhat.com>
6989 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
6991 PR tree-optimization/56539
6992 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
6993 instead of GSI_CONTINUE_LINKING as last argument to
6994 force_gimple_operand_gsi. Adjust function comment.
6996 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
7000 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
7001 promoted mode, convert the result back to the original mode.
7003 2013-03-06 Richard Biener <rguenther@suse.de>
7006 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
7007 (insert_updated_phi_nodes_compare_uids): New function.
7008 (update_ssa): Sort symbols_to_rename after UID before
7009 traversing it to insert PHI nodes.
7011 2013-03-06 Richard Biener <rguenther@suse.de>
7014 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
7015 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
7018 2013-02-13 Richard Biener <rguenther@suse.de>
7021 * varasm.c (output_constant_def_1): Get the decl representing
7022 the constant as argument.
7023 (output_constant_def): Wrap output_constant_def_1.
7024 (make_decl_rtl): Use output_constant_def_1 with the decl
7025 representing the constant.
7026 (build_constant_desc): Optionally re-use a decl already
7027 representing the constant.
7028 (tree_output_constant_def): Adjust.
7030 2013-03-06 Joey Ye <joey.ye@arm.com>
7033 * gcc.c (convert_white_space): New function.
7034 (main): Handles white space in function name.
7036 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7039 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
7040 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
7041 to SH_DIV_CALL_TABLE for TARGET_SH2.
7042 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
7044 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
7047 2013-03-05 Sterling Augustine <saugustine@google.com>
7048 Cary Coutant <ccoutant@google.com>
7051 * dwarf2out.c (resolve_addr): Don't call
7052 remove_loc_list_addr_table_entries a second time for the same
7055 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7058 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
7059 (avoid_complex_debug_insns): New function.
7060 (expand_debug_locations): Call it.
7062 PR rtl-optimization/56484
7063 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
7064 lifetimes of hard registers on small register class machines.
7066 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7068 * config/microblaze/microblaze-protos.h: Rename
7069 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
7070 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
7072 (microblaze_fast_interrupt_function_p): New function.
7073 (microblaze_is_interrupt_handler): Rename to
7074 microblaze_is_interrupt_variant and add fast_interrupt check.
7075 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
7076 (save_restore_insns): Likewise.
7077 (compute_frame_size): Likewise.
7078 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
7079 (microblaze_globalize_label): Likewise.
7080 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
7081 * config/microblaze/microblaze.md: Use wrapper
7082 microblaze_is_interrupt_variant.
7084 2013-03-05 Kai Tietz <ktietz@redhat.com>
7086 * sdbout.c (sdbout_one_type): Switch to current function's section
7087 supporting cold/hot.
7089 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
7091 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
7094 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7097 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
7098 if VALGRIND_GET_VBITS is defined, temporarily make object
7099 memory all defined, and restore previous valgrind addressability
7100 and definability afterwards. Free this_object at the end.
7103 * lra.c (lra): Call lra_clear_live_ranges if live_p,
7104 right before calling lra_create_live_ranges, also call it
7105 when clearing live_p. Only call lra_clear_live_ranges
7106 at the end if live_p.
7109 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
7111 2013-03-05 Richard Biener <rguenther@suse.de>
7113 PR tree-optimization/56521
7114 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
7117 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
7120 * except.h (remove_unreachable_eh_regions): New prototype.
7121 * except.c (remove_eh_handler_splicer): New function, split out
7122 of remove_eh_handler.
7123 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
7124 warning about running it on many EH regions one at a time.
7125 (remove_unreachable_eh_regions_worker): New function, walk the
7126 EH tree in depth-first order and remove non-marked regions.
7127 (remove_unreachable_eh_regions): New function.
7128 * tree-eh.c (mark_reachable_handlers): New function, split out
7129 from remove_unreachable_handlers.
7130 (remove_unreachable_handlers): Use mark_reachable_handlers and
7131 remove_unreachable_eh_regions.
7132 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
7133 and remove_unreachable_eh_regions.
7135 2013-03-05 Richard Biener <rguenther@suse.de>
7138 * loop-init.c (fix_loop_structure): Remove loops in two stages,
7139 not freeing them until the end.
7141 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7143 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
7145 2013-03-05 Richard Biener <rguenther@suse.de>
7147 PR tree-optimization/56270
7148 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
7149 of loads after scheduling an SLP instance.
7151 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7153 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
7155 (check_gcc_parallelize): Run guality.exp as a separate job from
7156 vect.exp with unsorted.exp and $(dg_target_exps) separately from
7157 struct-layout-1.exp with stackalign.exp.
7159 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
7162 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
7163 load_index sbitmap even if some bit in it isn't set.
7166 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
7167 (discover_iteration_bound_by_body_walk): Change queues to
7168 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
7169 spelling in comment. Call safe_push on queues[bound_index] directly.
7170 Release queues[queue_index] in every iteration unconditionally.
7171 Release bounds vector.
7174 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
7175 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
7176 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
7179 2013-03-05 Richard Biener <rguenther@suse.de>
7182 * tree-inline.c (remap_blocks_to_null): New function.
7183 (expand_call_inline): When expanding a call stmt without
7184 an associated block inline remap all callee blocks to NULL.
7186 2013-03-05 Jakub Jelinek <jakub@redhat.com>
7188 PR rtl-optimization/56494
7189 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
7190 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
7191 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
7194 * sel-sched-ir.c (free_sched_pools): Release
7195 succs_info_pool.stack[succs_info_pool.max_top] vectors too
7196 if succs_info_pool.max_top isn't -1.
7199 * opts.c (opts_obstack, opts_concat): Moved to...
7200 * opts-common.c (opts_obstack, opts_concat): ... here.
7202 2013-03-04 Jakub Jelinek <jakub@redhat.com>
7205 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
7207 2013-03-04 Martin Jambor <mjambor@suse.cz>
7209 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
7210 all appropriate places.
7212 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
7214 PR tree-optimization/56424
7215 * ipa-split.c (split_function): Do not set the RSO flag if result is
7216 not by reference and its type is a register type.
7218 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
7220 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
7221 (microblaze_legitimate_pic_operand): Likewise
7222 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
7223 new function microblaze_legitimate_pic_operand
7224 * config/microblaze/microblaze-protos.h
7225 (microblaze_legitimate_pic_operand): Declare.
7227 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7229 * config/microblaze/predicates.md (call_insn_simple_operand):
7230 New predicate for supported rtx code types.
7231 * config/microblaze/microblaze.md (call_internal1): Use
7232 call_insn_simple_operand predicate.
7234 2013-03-04 Jakub Jelinek <jakub@redhat.com>
7237 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
7238 partitions.ordered_remove.
7241 * tree-vect-stmts.c (vectorizable_conversion): Don't call
7242 vec_oprnds0.create (1) for modifier == NONE.
7245 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
7246 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
7247 vec_oprnds1 right before pushing anything to it for
7251 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
7252 set nbbs to 0 instead of having separate code path.
7253 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
7254 instead of false as last argument if returning NULL.
7256 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
7258 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
7259 the attribute is now called "target" instead of "option".
7260 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
7261 * doc/tm.texi.in (Target Attributes): Likewise document the correct
7262 attribute/pragma name for TARGET_OPTION_VALID_P and
7263 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
7264 * doc/tm.texi: Regenerated.
7266 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
7268 * config/microblaze/microblaze.c:
7269 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
7270 * config/microblaze/microblaze.h: Add -mxl-reorder to
7272 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
7273 instructions emitted if TARGET_REORDER.
7274 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
7275 or 0 for -m/-mno case, but initialises as 2 to detect default use case
7278 2013-03-01 Xinliang David Li <davidxl@google.com>
7280 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
7283 2013-03-01 Jakub Jelinek <jakub@redhat.com>
7286 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
7287 vector even when returning true. Fix up function comment formatting.
7290 * ira-build.c (ira_loop_nodes_count): New variable.
7291 (create_loop_tree_nodes): Initialize it.
7292 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
7295 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
7296 method on dr_chain and result_chain.
7297 * tree-vect-stmts.c (vectorizable_store): Only call
7298 result_chain.create if j == 0.
7301 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
7302 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
7303 before overwriting it.
7305 2013-03-01 Tobias Burnus <burnus@net-b.de>
7307 * doc/extended.texi (C Extensions): Change order in @menu
7309 (Other MIPS Built-in Functions): Move last MIPS entry before
7310 "picoChip Built-in Functions".
7311 (SH Built-in Functions): Move after RX Built-in Functions.
7312 * doc/gcc.texi (Introduction): Change order in @menu
7314 * doc/md.texi (Constraints): Ditto.
7315 * gty.texi (Type Information): Ditto.
7316 (User-provided marking routines for template types): Make
7318 * doc/invoke.texi (AArch64 Options): Move before
7319 "Adapteva Epiphany Options".
7321 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7322 Jakub Jelinek <jakub@redhat.com>
7325 * asan.c (gate_asan): Lookup no_sanitize_address instead of
7326 no_address_safety_analysis attribute.
7327 * doc/extend.texi (no_address_safety_attribute): Rename to
7328 no_sanitize_address attribute, mention no_address_safety_analysis
7329 attribute as deprecated alias.
7331 2013-02-28 Jakub Jelinek <jakub@redhat.com>
7334 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
7335 type to vec<vec<tree> > *.
7336 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
7337 to be vec<tree> instead of vec<tree> *, set vec_defs
7338 to vNULL and call vec_defs.create (number_of_vects), adjust other
7340 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
7341 vectorizable_condition): Adjust vect_get_slp_defs callers.
7343 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7345 * config/aarch64/aarch64.c
7346 (aarch64_float_const_representable): Remove unused variable.
7348 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7350 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
7352 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7354 * config/aarch64/aarch64-builtins.c
7355 (aarch64_init_simd_builtins): Make static.
7357 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
7359 * config/aarch64/aarch64.c
7360 (aarch64_simd_make_constant): Make static.
7362 2013-02-28 Martin Jambor <mjambor@suse.cz>
7364 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
7365 with no initialization to the RHS of debug statements.
7367 2013-02-28 Martin Jambor <mjambor@suse.cz>
7369 PR tree-optimization/56294
7370 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
7372 (get_access_replacement): Do not call create_access_replacement.
7373 Assert a replacement exists.
7374 (get_repl_default_def_ssa_name): Create the replacement declaration
7377 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7379 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
7382 2013-02-28 Marek Polacek <polacek@redhat.com>
7384 PR rtl-optimization/56466
7385 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
7386 if we're changing a loop.
7387 (peel_loops_completely): Likewise.
7389 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
7392 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
7394 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7397 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
7398 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
7399 INTX_FTYPE_FX, FX_FTYPE_INTX.
7400 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
7402 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7404 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
7405 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
7406 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
7407 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
7408 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
7409 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
7410 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
7411 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
7412 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
7413 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
7414 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
7415 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
7416 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
7417 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
7418 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
7419 (avrxmega6): Increase max flash segments from 5 to 6.
7420 * config/avr/t-multilib: Regenerate.
7421 * config/avr/avr-tables.opt: Regenerate.
7422 * doc/avr-mmcu.texi: Regenerate.
7424 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
7426 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
7427 (avr_device_to_arch): Rename to avr_device_to_ld.
7428 (avr_device_to_as): New prototype.
7429 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
7430 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
7431 * config/avr/driver-avr.c (avr_device_to_as): New.
7432 (avr_device_to_arch): Rename to avr_device_to_ld.
7434 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7437 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
7438 method on dr_chain and result_chain.
7441 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
7442 pointer_set_destroy on not_executed_last_iteration.
7445 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
7448 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
7449 FOR_EACH_DEFINED_FUNCTION when freeing state.
7452 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
7454 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
7458 * ipa-cp.c (decide_whether_version_node): Call vec_free on
7459 known_aggs[i].items and release known_aggs vector.
7462 * ipa-reference.c (propagate): Free node_info even for alias nodes.
7464 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7466 * config/microblaze/microblaze.c (microblaze_emit_compare):
7467 Use xor for EQ/NE comparisions.
7468 * config/microblaze/microblaze.md (cstoresf4): Add constraints
7469 (cbranchsf4): Adjust operator to comparison_operator.
7471 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7474 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
7476 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
7477 vec_safe_push, always update *slot.
7478 (redirect_edge_var_map_clear): Use vec_free.
7479 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
7480 (free_var_map_entry): Use vec_free.
7481 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
7482 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
7484 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
7487 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
7488 when the may_trap_p bit of the exprs being merged differs.
7489 Reorder tests for speculativeness in the logical and operator.
7491 2013-02-27 Jakub Jelinek <jakub@redhat.com>
7493 * incpath.c (add_standard_paths): Use reconcat instead of concat
7494 where appropriate and avoid leaking memory.
7496 * opts.h: Include obstack.h.
7497 (opts_concat): New prototype.
7498 (opts_obstack): New declaration.
7499 * opts.c (opts_concat): New function.
7500 (opts_obstack): New variable.
7501 (init_options_struct): Call gcc_init_obstack on opts_obstack.
7502 (finish_options): Use opts_concat instead of concat
7503 and XOBNEWVEC instead of XNEWVEC.
7504 * opts-common.c (generate_canonical_option, decode_cmdline_option,
7505 generate_option): Likewise.
7506 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
7507 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
7510 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
7511 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
7513 2013-02-26 Jakub Jelinek <jakub@redhat.com>
7516 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
7518 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7520 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
7521 (arm_block_move_unaligned_straight): Likewise.
7522 (arm_adjust_block_mem): Likewise.
7524 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
7527 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
7528 temp, cond and label.
7529 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
7532 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
7533 * config/c6x/c6x.h (dbx_register_map): Update declaration.
7536 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
7537 of prologue/epilogue functions.
7540 * config/tilegx/tilegx.c (tilegx_expand_prologue):
7541 Remove unused variable cfa_offset.
7542 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
7545 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
7546 type promotion to unsigned.
7549 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
7550 for HOST_WIDE_INT of 32 bit / same size as int.
7551 (arm_block_move_unaligned_straight): Likewise.
7552 (arm_adjust_block_mem): Likewise.
7555 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
7558 2013-02-26 Marek Polacek <polacek@redhat.com>
7560 PR tree-optimization/56426
7561 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
7563 2013-02-26 Richard Biener <rguenther@suse.de>
7566 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
7567 unused variable loops.
7569 2013-02-26 Jakub Jelinek <jakub@redhat.com>
7571 PR tree-optimization/56448
7572 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
7573 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
7574 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
7575 later operands of the references, or even first operand for
7576 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
7578 PR tree-optimization/56443
7579 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
7580 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
7581 to type_for_mode langhook.
7583 2013-02-25 Matt Turner <mattst88@gmail.com>
7585 * doc/invoke.texi: Document r4700.
7587 2013-02-25 Richard Biener <rguenther@suse.de>
7589 PR tree-optimization/56175
7590 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
7592 (simplify_bitwise_binary): ... here. Also guard the conversion
7593 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
7595 2013-02-25 Catherine Moore <clm@codesourcery.com>
7598 2013-02-24 Catherine Moore <clm@codesourcery.com>
7599 Maciej W. Rozycki <macro@codesourcery.com>
7600 Tom de Vries <tom@codesourcery.com>
7601 Nathan Sidwell <nathan@codesourcery.com>
7602 Iain Sandoe <iain@codesourcery.com>
7603 Nathan Froyd <froydnj@codesourcery.com>
7604 Chao-ying Fu <fu@mips.com>
7606 * doc/extend.texi: (micromips, nomicromips, nocompression):
7607 Document new function attributes.
7608 * doc/invoke.texi (minterlink-compressed, mmicromips,
7609 m14k, m14ke, m14kec): Document new options.
7610 (minterlink-mips16): Update documentation.
7611 * doc/md.texi (ZC, ZD): Document new constraints.
7612 * configure.ac (gcc_cv_as_micromips): Check if linker
7613 supports the .set micromips directive.
7614 * configure: Regenerate.
7615 * config.in: Regenerate.
7616 * config/mips/mips-tables.opt: Regenerate.
7617 * config/mips/micromips.md: New file.
7618 * constraints.md (ZC, AD): New constraints.
7619 * config/mips/predicates.md (movep_src_register): New predicate.
7620 (movep_src_operand): New predicate.
7621 (non_volatile_mem_operand): New predicate.
7622 * config/mips/mips.md (multimem): New type.
7623 (length): Differentiate between 17-bit and 18-bit branch offsets.
7624 (MOVEP1, MOVEP2): New mode iterator.
7625 (mov_<load>l): Use ZC constraint.
7626 (mov_<load>r): Likewise.
7627 (mov_<store>l): Likewise.
7628 (mov_<store>r): Likewise.
7629 (*branch_equality<mode>_inverted): Add microMIPS support.
7630 (*branch_equality<mode>): Likewise.
7631 (*jump_absolute): Likewise.
7632 (indirect_jump_<mode>): Likewise.
7633 (tablejump_<mode>): Likewise.
7634 (<optab>_internal): Likewise.
7635 (sibcall_internal): Likewise.
7636 (sibcall_value_internal): Likewise.
7637 (prefetch): Use constraint ZD.
7638 * config/mips/mips.opt (minterlink-compressed): New option.
7639 (minterlink-mips16): Now an alias for minterlink-compressed.
7640 (mmicromips): New option.
7641 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7642 (compare_and_swap_12): Likewise.
7643 (sync_add<mode>): Likewise.
7644 (sync_<optab>_12): Likewise.
7645 (sync_old_<optab>_12): Likewise.
7646 (sync_new_<optab>_12): Likewise.
7647 (sync_nand_12): Likewise.
7648 (sync_old_nand_12): Likewise.
7649 (sync_new_nand_12): Likewise.
7650 (sync_sub<mode>): Likewise.
7651 (sync_old_add<mode>): Likewise.
7652 (sync_old_sub<mode>): Likewise.
7653 (sync_new_add<mode>): Likewise.
7654 (sync_new_sub<mode>): Likewise.
7655 (sync_<optab><mode>): Likewise.
7656 (sync_old_<optab><mode>): Likewise.
7657 (sync_new_<optab><mode>): Likewise.
7658 (sync_nand<mode>): Likewise.
7659 (sync_old_nand<mode>): Likewise.
7660 (sync_new_nand<mode>): Likewise.
7661 (sync_lock_test_and_set<mode>): Likewise.
7662 (test_and_set_12): Likewise.
7663 (atomic_compare_and_swap<mode>): Likewise.
7664 (atomic_exchange<mode>_llsc): Likewise.
7665 (atomic_fetch_add<mode>_llsc): Likewise.
7666 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7667 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7668 (umips_save_restore_pattern_p): Likewise.
7669 (umips_load_store_pair_p): Likewise.
7670 (umips_output_load_store_pair): Likewise.
7671 (umips_movep_target_p): Likewise.
7672 (umips_12bit_offset_address_p): Likewise.
7673 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7674 (mips_base_mips16): Rename this...
7675 (mips_base_compression_flags): ...to this. Update all uses.
7676 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7677 (mips_mips16_decl_p): Delete.
7678 (mips_nomips16_decl_p): Delete.
7679 (mips_get_compress_on_flags): New function.
7680 (mips_get_compress_off_flags): New function.
7681 (mips_get_compress_mode): New function.
7682 (mips_get_compress_on_name): New function.
7683 (mips_get_compress_off_name): New function.
7684 (mips_insert_attributes): Support multiple compression types.
7685 (mips_merge_decl_attributes): Likewise.
7686 (umips_12bit_offset_address_p): New function.
7687 (mips_start_function_definition): Emit .set micromips directive.
7688 (mips_call_may_need_jalx_p): New function.
7689 (mips_function_ok_for_sibcall): Add microMIPS support.
7690 (mips_print_operand_punctuation): Support short delay slots and
7692 (umips_swm_mask, umips_swm_encoding): New.
7693 (umips_build_save_restore): New function.
7694 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7695 (was_mips16_p): Remove.
7696 (old_compression_mode): New.
7697 (mips_set_compression_mode): New function.
7698 (mips_set_current_function): Add microMIPS support.
7699 (mips_option_override): Likewise.
7700 (umips_save_restore_pattern_p): New function.
7701 (umips_output_save_restore): New function.
7702 (umips_load_store_pair_p_1): New function.
7703 (umips_load_store_pair_p): New function.
7704 (umips_output_load_store_pair_1): New function.
7705 (umips_output_load_store_pair): New function.
7706 (umips_movep_target_p) New function.
7707 (mips_prepare_pch_save): Add microMIPS support.
7708 * config/mips/mips.h (TARGET_COMPRESSION): New.
7709 (TARGET_CPU_CPP_BUILTINS): Update macro
7710 to use new compression flags and to support microMIPS.
7711 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7712 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7713 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7714 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7715 (ASM_SPEC): Support mmicromips and mno-micromips.
7716 (M16STORE_REG_P): New macro.
7717 (MIPS_CALL): Support TARGET_MICROMIPS.
7718 (MICROMIPS_J): New macro.
7719 (mips_base_mips16): Rename this...
7720 (mips_base_compression_flags): ...to this.
7721 (UMIPS_12BIT_OFFSET_P): New macro.
7722 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7723 (MULTILIB_DIRNAMES): Likewise.
7725 2013-02-25 Tom de Vries <tom@codesourcery.com>
7727 PR rtl-optimization/56131
7728 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
7729 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
7730 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
7732 2013-02-25 Tobias Burnus <burnus@net-b.de>
7734 * doc/invoke.texi (-fsanitize=): Move from optimization
7735 to debugging options.
7737 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
7739 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
7741 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
7742 Alexander Monakov <amonakov@ispras.ru>
7745 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
7746 flush pending lists also on non-jumps. Adjust comment.
7748 2013-02-24 Catherine Moore <clm@codesourcery.com>
7749 Maciej W. Rozycki <macro@codesourcery.com>
7750 Tom de Vries <tom@codesourcery.com>
7751 Nathan Sidwell <nathan@codesourcery.com>
7752 Iain Sandoe <iain@codesourcery.com>
7753 Nathan Froyd <froydnj@codesourcery.com>
7754 Chao-ying Fu <fu@mips.com>
7756 * doc/extend.texi: (micromips, nomicromips, nocompression):
7757 Document new function attributes.
7758 * doc/invoke.texi (minterlink-compressed, mmicromips,
7759 m14k, m14ke, m14kec): Document new options.
7760 (minterlink-mips16): Update documentation.
7761 * doc/md.texi (ZC, ZD): Document new constraints.
7762 * configure.ac (gcc_cv_as_micromips): Check if linker
7763 supports the .set micromips directive.
7764 * configure: Regenerate.
7765 * config.in: Regenerate.
7766 * config/mips/mips-tables.opt: Regenerate.
7767 * config/mips/micromips.md: New file.
7768 * constraints.md (ZC, AD): New constraints.
7769 * config/mips/predicates.md (movep_src_register): New predicate.
7770 (movep_src_operand): New predicate.
7771 (non_volatile_mem_operand): New predicate.
7772 * config/mips/mips.md (multimem): New type.
7773 (length): Differentiate between 17-bit and 18-bit branch offsets.
7774 (MOVEP1, MOVEP2): New mode iterator.
7775 (mov_<load>l): Use ZC constraint.
7776 (mov_<load>r): Likewise.
7777 (mov_<store>l): Likewise.
7778 (mov_<store>r): Likewise.
7779 (*branch_equality<mode>_inverted): Add microMIPS support.
7780 (*branch_equality<mode>): Likewise.
7781 (*jump_absolute): Likewise.
7782 (indirect_jump_<mode>): Likewise.
7783 (tablejump_<mode>): Likewise.
7784 (<optab>_internal): Likewise.
7785 (sibcall_internal): Likewise.
7786 (sibcall_value_internal): Likewise.
7787 (prefetch): Use constraint ZD.
7788 * config/mips/mips.opt (minterlink-compressed): New option.
7789 (minterlink-mips16): Now an alias for minterlink-compressed.
7790 (mmicromips): New option.
7791 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7792 (compare_and_swap_12): Likewise.
7793 (sync_add<mode>): Likewise.
7794 (sync_<optab>_12): Likewise.
7795 (sync_old_<optab>_12): Likewise.
7796 (sync_new_<optab>_12): Likewise.
7797 (sync_nand_12): Likewise.
7798 (sync_old_nand_12): Likewise.
7799 (sync_new_nand_12): Likewise.
7800 (sync_sub<mode>): Likewise.
7801 (sync_old_add<mode>): Likewise.
7802 (sync_old_sub<mode>): Likewise.
7803 (sync_new_add<mode>): Likewise.
7804 (sync_new_sub<mode>): Likewise.
7805 (sync_<optab><mode>): Likewise.
7806 (sync_old_<optab><mode>): Likewise.
7807 (sync_new_<optab><mode>): Likewise.
7808 (sync_nand<mode>): Likewise.
7809 (sync_old_nand<mode>): Likewise.
7810 (sync_new_nand<mode>): Likewise.
7811 (sync_lock_test_and_set<mode>): Likewise.
7812 (test_and_set_12): Likewise.
7813 (atomic_compare_and_swap<mode>): Likewise.
7814 (atomic_exchange<mode>_llsc): Likewise.
7815 (atomic_fetch_add<mode>_llsc): Likewise.
7816 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7817 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7818 (umips_save_restore_pattern_p): Likewise.
7819 (umips_load_store_pair_p): Likewise.
7820 (umips_output_load_store_pair): Likewise.
7821 (umips_movep_target_p): Likewise.
7822 (umips_12bit_offset_address_p): Likewise.
7823 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7824 (mips_base_mips16): Rename this...
7825 (mips_base_compression_flags): ...to this. Update all uses.
7826 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7827 (mips_mips16_decl_p): Delete.
7828 (mips_nomips16_decl_p): Delete.
7829 (mips_get_compress_on_flags): New function.
7830 (mips_get_compress_off_flags): New function.
7831 (mips_get_compress_mode): New function.
7832 (mips_get_compress_on_name): New function.
7833 (mips_get_compress_off_name): New function.
7834 (mips_insert_attributes): Support multiple compression types.
7835 (mips_merge_decl_attributes): Likewise.
7836 (umips_12bit_offset_address_p): New function.
7837 (mips_start_function_definition): Emit .set micromips directive.
7838 (mips_call_may_need_jalx_p): New function.
7839 (mips_function_ok_for_sibcall): Add microMIPS support.
7840 (mips_print_operand_punctuation): Support short delay slots and
7842 (umips_swm_mask, umips_swm_encoding): New.
7843 (umips_build_save_restore): New function.
7844 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7845 (was_mips16_p): Remove.
7846 (old_compression_mode): New.
7847 (mips_set_compression_mode): New function.
7848 (mips_set_current_function): Add microMIPS support.
7849 (mips_option_override): Likewise.
7850 (umips_save_restore_pattern_p): New function.
7851 (umips_output_save_restore): New function.
7852 (umips_load_store_pair_p_1): New function.
7853 (umips_load_store_pair_p): New function.
7854 (umips_output_load_store_pair_1): New function.
7855 (umips_output_load_store_pair): New function.
7856 (umips_movep_target_p) New function.
7857 (mips_prepare_pch_save): Add microMIPS support.
7858 * config/mips/mips.h (TARGET_COMPRESSION): New.
7859 (TARGET_CPU_CPP_BUILTINS): Update macro
7860 to use new compression flags and to support microMIPS.
7861 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7862 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7863 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7864 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7865 (ASM_SPEC): Support mmicromips and mno-micromips.
7866 (M16STORE_REG_P): New macro.
7867 (MIPS_CALL): Support TARGET_MICROMIPS.
7868 (MICROMIPS_J): New macro.
7869 (mips_base_mips16): Rename this...
7870 (mips_base_compression_flags): ...to this.
7871 (UMIPS_12BIT_OFFSET_P): New macro.
7872 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7873 (MULTILIB_DIRNAMES): Likewise.
7875 2013-02-24 Jakub Jelinek <jakub@redhat.com>
7878 * target-globals.c (save_target_globals): For init_reg_sets and
7879 target_reinit remporarily set this_fn_optabs to this_target_optabs.
7881 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
7883 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
7884 * config/aarch64/t-aarch64
7885 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
7887 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
7890 * lra-constraints.c (process_alt_operands): Reload operand
7891 conflicting with earlier clobber only if no more other conflicting
7894 2013-02-22 Jakub Jelinek <jakub@redhat.com>
7897 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
7898 if not linking a shared library.
7900 2013-02-22 Seth LaForge <sethml@google.com>
7902 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
7904 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
7906 * config/arm/arm.md (split for extendsidi): Update condition.
7907 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
7908 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
7909 (qhs_zextenddi_cstr): Likewise.
7911 2013-02-21 Jakub Jelinek <jakub@redhat.com>
7914 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
7915 avoid signed wrapping.
7916 (expand_mult): Handle properly multiplication by
7917 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
7918 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
7919 in the compiler if coeff is HOST_WIDE_INT_MIN.
7920 (expand_divmod): Don't make ext_op1 static, change it's type to
7921 uhwi. Avoid undefined behavior in -INTVAL (op1).
7923 PR rtl-optimization/50339
7924 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
7926 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
7927 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
7928 into splitting_ashiftrt field.
7929 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
7931 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
7934 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
7937 * trans-mem.c (execute_tm_mark): Do not expand transactions that
7938 are sure to go irrevocable.
7940 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
7942 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7943 scalars are valid operands.
7945 2013-02-21 Martin Jambor <mjambor@suse.cz>
7947 PR tree-optimization/56310
7948 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7949 only matching indices and non-negative final offsets.
7950 (intersect_aggregates_with_edge): Pass src_idx to
7951 agg_replacements_to_vector. Pass src_idx insstead of index to
7952 intersect_with_agg_replacements.
7954 2013-02-21 Martin Jambor <mjambor@suse.cz>
7956 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7957 instead of hard-wired defaults.
7959 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
7961 * doc/invoke.texi (MIPS Options): Update documentation of the
7962 floating-point multiply-accumulate instruction restrictions.
7964 2013-02-21 Kostya Serebryany <kcc@google.com>
7966 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7967 asan_shadow_offset on x86_64 linux.
7969 2013-02-21 Richard Biener <rguenther@suse.de>
7971 PR tree-optimization/56415
7973 2013-02-11 Richard Biener <rguenther@suse.de>
7975 PR tree-optimization/56273
7976 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7979 2013-02-21 Jakub Jelinek <jakub@redhat.com>
7982 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7986 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7987 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7989 2013-02-20 Jan Hubicka <jh@suse.cz>
7991 PR tree-optimization/56265
7992 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
7993 when target is referenced for first time.
7995 2013-02-20 Richard Biener <rguenther@suse.de>
7997 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
7998 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
7999 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8000 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
8001 not return anything.
8002 (rename_ssa_copies): Do not remove unused locals.
8003 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
8004 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
8005 * passes.c (execute_function_todo): Do not schedule unused locals
8006 removal if cleanup_tree_cfg did something.
8007 * tree-ssa-live.c (remove_unused_locals): Dump statistics
8008 about the number of removed locals.
8010 2013-02-20 Richard Biener <rguenther@suse.de>
8012 PR tree-optimization/56398
8013 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
8015 2013-02-20 Martin Jambor <mjambor@suse.cz>
8017 PR tree-optimization/55334
8018 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
8019 restricted pointers to arrays.
8021 2013-02-20 Richard Biener <rguenther@suse.de>
8022 Jakub Jelinek <jakub@redhat.com>
8024 PR tree-optimization/56396
8025 * tree-ssa-ccp.c (n_const_val): New static variable.
8026 (get_value): Return NULL for SSA names we don't have a lattice
8028 (ccp_initialize): Initialize n_const_val.
8029 * tree-ssa-copy.c (n_copy_of): New static variable.
8030 (init_copy_prop): Initialize n_copy_of.
8031 (get_value): Return NULL_TREE for SSA names we don't have a
8034 2013-02-20 Martin Jambor <mjambor@suse.cz>
8036 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
8038 2013-02-20 Richard Biener <rguenther@suse.de>
8040 * genpreds.c (write_lookup_constraint): Do not compare first
8041 letter of the constraint again.
8043 2013-02-20 Richard Biener <rguenther@suse.de>
8045 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
8047 (get_use_iv_cost): Terminate hashtable walk when coming across
8050 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
8052 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
8053 reassociation for avx2 targets.
8055 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8057 * config/microblaze/microblaze.c: microblaze_has_clz = 0
8058 Add version check for v8.10.a to enable microblaze_has_clz
8059 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
8060 version and TARGET_PATTERN_COMPARE check
8061 * config/microblaze/microblaze.md: New clzsi2 instruction
8063 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8065 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
8066 function before branching.
8068 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8070 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
8072 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
8074 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
8077 * sel-sched.c: Include ira.h.
8078 (implicit_clobber_conflict_p): New function.
8079 (moveup_expr): Use it.
8080 * Makefile.in (sel-sched.o): Depend on ira.h.
8082 2013-02-19 Richard Biener <rguenther@suse.de>
8084 PR tree-optimization/56384
8085 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
8086 (vn_hash_type): Split out from ...
8087 (vn_hash_constant_with_type): ... here.
8088 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
8089 (vn_phi_eq): Compare types from vn_phi_s structure.
8090 (vn_phi_lookup): Populate vn_phi_s type.
8091 (vn_phi_insert): Likewise.
8093 2013-02-19 Jakub Jelinek <jakub@redhat.com>
8095 PR tree-optimization/56350
8096 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
8097 if haven't found reduction or nested cycle operand, rather than
8098 asserting we must find it.
8100 PR tree-optimization/56381
8101 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
8104 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
8105 Jakub Jelinek <jakub@redhat.com>
8108 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
8109 (swap_optab_enable): Same.
8110 (init_all_optabs): Use argument instead of global.
8111 * tree.h (struct tree_optimization_option): New field target_optabs.
8112 * expr.h (init_all_optabs): Add argument to prototype.
8113 (TREE_OPTIMIZATION_OPTABS): New.
8114 (save_optabs_if_changed): Protoize.
8115 * optabs.h: Declare this_fn_optabs.
8116 * optabs.c (save_optabs_if_changed): New.
8117 Declare this_fn_optabs.
8118 (init_optabs): Add argument to init_all_optabs() call.
8119 * function.c (invoke_set_current_function_hook): Handle per
8121 * function.h (struct function): New field optabs.
8122 * config/mips/mips.c (mips_set_mips16_mode): Handle when
8123 optimization_current_node has changed.
8124 * target-globals.h (save_target_globals_default_opts): Protoize.
8125 * target-globals.c (save_target_globals_default_opts): New.
8127 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8130 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
8131 registers %fr12 and %fr12R as call used.
8134 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
8135 and HImode, require all displacements to be an integer multiple of
8137 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
8138 only allow QImode and HImode when reload is in progress and strict is
8139 true. Likewise for symbolic addresses. Use base14_operand to check
8140 displacements in REG+BASE addresses.
8142 2013-02-18 Richard Biener <rguenther@suse.de>
8144 PR tree-optimization/56366
8145 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8146 handle sign-conversion of outer-loop initial induction value.
8148 2013-02-18 Richard Biener <rguenther@suse.de>
8151 * cfghooks.c (merge_blocks): If we merge a latch into another
8152 block adjust references to it.
8153 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
8154 (verify_loop_structure): Verify that a recorded latch is in fact
8157 2013-02-18 Richard Biener <rguenther@suse.de>
8159 PR tree-optimization/56321
8160 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
8161 order SSA name release and virtual operand unlinking.
8163 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8165 * config/microblaze/microblaze.md (save_stack_block): Define.
8166 (restore_stack_block): Likewise.
8168 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8170 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
8171 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
8172 * config/microblaze/microblaze.c (microblaze_option_override):
8173 Bail out early for PIC modes when target does not support PIC.
8175 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8177 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8178 Replace with a microblaze version.
8179 (microblaze_trampoline_init): Adapt for microblaze.
8180 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8183 2013-02-16 Jakub Jelinek <jakub@redhat.com>
8184 Dodji Seketeli <dodji@redhat.com>
8187 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
8188 (instrument_mem_region_access): Do not forget to always put
8189 instrumentation of the of 'base' and 'base + len' in a "if (len !=
8190 0) statement, even for cases where either 'base' or 'base + len'
8191 are not instrumented -- because they have been previously
8192 instrumented. Simplify the logic by putting all the statements
8193 instrument 'base + len' inside a sequence, and then insert that
8194 sequence right before the current insertion point. Then, to
8195 instrument 'base + len', just get an iterator on that statement.
8196 And do not forget to update the pointer to iterator the function
8197 received as argument.
8199 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
8201 PR rtl-optimization/56348
8202 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
8204 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
8206 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
8207 (clean_graph_dump_file): Pass base to start_graph_dump.
8209 2013-02-14 Richard Henderson <rth@redhat.com>
8212 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
8214 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
8216 * collect2-aix.h: Define F_LOADONLY.
8218 2013-02-14 Richard Biener <rguenther@suse.de>
8221 * varasm.c (output_constant_def_1): Get the decl representing
8222 the constant as argument.
8223 (output_constant_def): Wrap output_constant_def_1.
8224 (make_decl_rtl): Use output_constant_def_1 with the decl
8225 representing the constant.
8226 (build_constant_desc): Optionally re-use a decl already
8227 representing the constant.
8228 (tree_output_constant_def): Adjust.
8230 2013-02-14 Dodji Seketeli <dodji@redhat.com>
8233 * asan.c (instrument_builtin_call): Really put the length of the
8234 second source argument into src1_len.
8236 2013-02-13 Jakub Jelinek <jakub@redhat.com>
8238 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
8239 argument. If it is false, don't create edge from then_bb to
8241 (insert_if_then_before_iter): Pass true to it.
8242 (build_check_stmt): Pass false to it.
8243 (transform_statements): Flush hash table only on extended basic
8244 block boundaries, rather than at the beginning of every bb.
8245 Don't flush hash table on nonfreeing_call_p calls.
8246 * tree-flow.h (nonfreeing_call_p): New prototype.
8247 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
8249 2013-02-13 David S. Miller <davem@davemloft.net>
8251 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
8253 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
8256 * ira.c (max_regno_before_ira): Move from ...
8258 (fix_reg_equiv_init): Use max_regno_before_ira instead of
8261 2013-02-13 Jakub Jelinek <jakub@redhat.com>
8263 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
8265 2013-02-13 Richard Biener <rguenther@suse.de>
8268 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
8269 globals in MEM_REFs.
8271 2013-02-13 Richard Biener <rguenther@suse.de>
8273 * loop-init.c (loop_optimizer_init): Clear loop state when
8274 re-initializing preserved loops.
8275 * loop-unswitch.c (unswitch_single_loop): Return whether
8276 we unswitched the loop. Do not verify loop state here.
8277 (unswitch_loops): When we unswitched a loop discover new loops.
8279 2013-02-13 Kostya Serebryany <kcc@google.com>
8281 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
8283 * sanitizer.def: Rename __asan_init to __asan_init_v1.
8285 2013-02-12 Dodji Seketeli <dodji@redhat.com>
8287 Avoid instrumenting duplicated memory access in the same basic block
8288 * Makefile.in (asan.o): Add new dependency on hash-table.h
8289 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
8290 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
8291 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
8292 (free_mem_ref_resources, has_mem_ref_been_instrumented)
8293 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
8294 (get_mem_ref_of_assignment): New functions.
8295 (get_mem_refs_of_builtin_call): Extract from
8296 instrument_builtin_call and tweak a little bit to make it fit with
8298 (instrument_builtin_call): Use the new
8299 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
8300 of is_gimple_builtin_call.
8301 (instrument_derefs, instrument_mem_region_access): Insert the
8302 instrumented memory reference into the hash table.
8303 (maybe_instrument_assignment): Renamed instrument_assignment into
8304 this, and change it to advance the iterator when instrumentation
8305 actually happened and return true in that case. This makes it
8306 homogeneous with maybe_instrument_assignment, and thus give a
8307 chance to callers to be more 'regular'.
8308 (transform_statements): Clear the memory reference hash table
8309 whenever we enter a new BB, when we cross a function call, or when
8310 we are done transforming statements. Use
8311 maybe_instrument_assignment instead of instrumentation. No more
8312 need to special case maybe_instrument_assignment and advance the
8313 iterator after calling it; it's now handled just like
8314 maybe_instrument_call. Update comment.
8316 2013-02-13 Richard Biener <rguenther@suse.de>
8318 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
8319 Fix loop discovery code.
8321 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
8324 * lra-constraints.c (process_alt_operands): Match early clobber
8325 operand with itself. Check conflicts with earlyclobber only if
8326 the operand is not reloaded. Prefer to reload conflicting operand
8327 if earlyclobber and matching operands are the same.
8329 2013-02-12 Richard Biener <rguenther@suse.de>
8332 * lto-streamer-out.c (write_symbol): Do not output symbols
8333 for hard register variables.
8335 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
8338 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
8339 (umulsidi3_insn, mulsidi3_insn): New insns.
8341 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
8343 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
8344 (struct tune_params): Add vec_costs field.
8345 * config/arm/arm.c (arm_builtin_vectorization_cost)
8346 (arm_add_stmt_cost): New functions.
8347 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
8348 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
8349 (arm_default_vec_cost): New struct of type cpu_vec_costs.
8350 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
8351 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
8352 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
8353 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
8355 2013-02-12 Richard Biener <rguenther@suse.de>
8358 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
8359 decls again if possible.
8361 2013-02-12 Richard Biener <rguenther@suse.de>
8364 * tree-ssa.c (verify_ssa_name): Fix check, move
8365 SSA_NAME_IN_FREE_LIST check up.
8367 2013-02-12 Jakub Jelinek <jakub@redhat.com>
8368 Steven Bosscher <steven@gcc.gnu.org>
8370 PR rtl-optimization/56151
8371 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
8372 equal to op0 or op1, and last_insn pattern is CODE operation
8373 with MEM dest and one of the operands matches that MEM.
8375 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
8377 * doc/extend.texi: Document Function Multiversioning and "default"
8378 parameter string to target attribute.
8379 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
8380 target attribute parameter is "default".
8381 (ix86_compare_version_priority): Remove checks for target attribute.
8382 (ix86_mangle_function_version_assembler_name): Change error to sorry.
8383 Remove check for target attribute equal to NULL. Add assert.
8384 (ix86_generate_version_dispatcher_body): Change error to sorry.
8386 2013-02-11 Iain Sandoe <iain@codesourcery.com>
8387 Jack Howarth <howarth@bromo.med.uc.edu>
8388 Patrick Marlier <patrick.marlier@gmail.com>
8391 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
8392 define ENDFILE_SPEC as TM_DESTRUCTOR.
8393 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
8395 2013-02-11 Alexander Potapenko <glider@google.com>
8396 Jack Howarth <howarth@bromo.med.uc.edu>
8397 Jakub Jelinek <jakub@redhat.com>
8400 * config/darwin.c (cdtor_record): Rename ctor_record.
8401 (sort_cdtor_records): Rename sort_ctor_records.
8402 (finalize_dtors): New routine to sort destructors by
8403 priority before use in assemble_integer.
8404 (machopic_asm_out_destructor): Use finalize_dtors if needed.
8406 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
8408 PR rtl-optimization/56275
8409 * simplify-rtx.c (avoid_constant_pool_reference): Check that
8410 offset is non-negative and less than cmode size before
8411 calling simplify_subreg.
8413 2013-02-11 Richard Biener <rguenther@suse.de>
8415 PR tree-optimization/56264
8416 * cfgloop.h (fix_loop_structure): Adjust prototype.
8417 * loop-init.c (fix_loop_structure): Return the number of
8418 newly discovered loops.
8419 * tree-cfgcleanup.c (repair_loop_structures): When new loops
8420 are discovered, do a full loop-closed SSA rewrite.
8422 2013-02-11 Richard Biener <rguenther@suse.de>
8424 PR tree-optimization/56273
8425 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
8427 (check_array_ref): Fix missing newline in dumps.
8428 (search_for_addr_array): Likewise.
8430 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
8432 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
8434 2013-02-09 Jakub Jelinek <jakub@redhat.com>
8437 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
8439 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
8441 PR rtl-optimization/56246
8442 * lra-constraints.c (simplify_operand_subreg): Try to reuse
8444 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
8445 constraints are satisfied.
8447 2013-02-08 Jeff Law <law@redhat.com>
8450 * emit-rtl.c (reg_is_parm_p): New function.
8451 * regs.h (reg_is_parm_p): New prototype.
8452 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
8453 callee-clobbered registers.
8455 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
8458 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
8459 If there is no implicit builtin declaration, just return NULL.
8461 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8463 * config/i386/sse.md (FMAMODEM): New mode iterator.
8464 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
8465 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
8467 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8469 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
8470 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
8471 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
8473 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
8475 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
8476 (microblaze*-*-elf): Likewise.
8477 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
8479 * config/microblaze/microblaze-c.c: Add builtin defines for
8480 _LITTLE_ENDIAN and _BIG_ENDIAN.
8481 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
8482 add to TARGET_DEFAULT flags.
8483 Expand ASM_SPEC and LINK_SPEC.
8484 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
8485 * config/microblaze/microblaze.md: Update extendsidi2 and
8486 movdi_internal instructions to use low-order / high-order reg
8488 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
8489 options and inversemask / mask of LITTLE_ENDIAN.
8490 * config/microblaze/t-microblaze: Expand multilib options to
8491 include mlittle-endian (le) and update exceptions patterns.
8493 2013-02-08 Jakub Jelinek <jakub@redhat.com>
8495 PR rtl-optimization/56195
8496 * lra-constraints.c (get_reload_reg): Don't reuse regs
8497 if they have smaller mode than requested, if they have
8498 wider mode than requested, try to return a SUBREG.
8500 PR tree-optimization/56250
8501 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
8502 if type is unsigned and code isn't MULT_EXPR.
8504 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
8506 PR tree-optimization/56064
8507 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
8508 bits according to mode.
8509 * fixed-value.h (fixed_from_double_int)
8510 (const_fixed_from_double_int): Adjust comments.
8512 2013-02-08 Richard Biener <rguenther@suse.de>
8515 * lto-streamer.h (struct data_in): Remove current_file, current_line
8516 and current_col members.
8517 * lto-streamer-out.c (lto_output_location): Stream changed bits
8518 en-block for efficiency.
8519 * lto-streamer-in.c (clear_line_info): Remove.
8520 (lto_input_location): Cache current file, line and column
8521 globally via local statics. Read changed bits en-block.
8522 (input_function): Do not call clear_line_info.
8523 (lto_read_body): Likewise.
8524 (lto_input_toplevel_asms): Likewise.
8526 2013-02-08 Michael Matz <matz@suse.de>
8528 PR tree-optimization/52448
8529 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
8530 (nt_call_phase): New static.
8531 (add_or_mark_expr): Only mark accesses with newer phase than any
8533 (nonfreeing_call_p): New.
8534 (nt_init_block): Update nt_call_phase, mark blocks as visited.
8535 (nt_fini_block): Keep blocks marked as visited.
8536 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
8538 2013-02-08 Richard Biener <rguenther@suse.de>
8540 * ira.c (ira): Free broken dominator information.
8542 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
8544 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
8546 2013-02-08 Marek Polacek <polacek@redhat.com>
8548 * cfgloop.c (verify_loop_structure): Add more checking of headers.
8550 2013-02-08 Richard Biener <rguenther@suse.de>
8553 * cfgloop.h (flow_loops_find): Adjust.
8554 (bb_loop_header_p): Declare.
8555 * cfgloop.c (bb_loop_header_p): New function split out from ...
8556 (flow_loops_find): ... here. Adjust function signature,
8557 support incremental loop structure update.
8558 (verify_loop_structure): Cleanup. Verify a loop is a loop.
8559 * cfgloopmanip.c (fix_loop_structure): Move ...
8560 * loop-init.c (fix_loop_structure): ... here.
8561 (apply_loop_flags): Split out from ...
8562 (loop_optimizer_init): ... here.
8563 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
8564 in incremental mode, only remove dead loops here.
8566 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
8569 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
8570 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
8571 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
8572 (*round<mode>3.libgcc): New insns for fixed-modes.
8573 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
8574 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
8575 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
8576 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
8577 implementations. Define to __builtin_avr_absFX,
8578 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
8579 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
8580 __builtin_avr_countlsFX, respectively.
8581 * config/avr/avr-c.c (target.h): Include it.
8582 (enum avr_builtin_id): New enum.
8583 (avr_resolve_overloaded_builtin): New static function.
8584 (avr_register_target_pragmas): Use it to set
8585 targetm.resolve_overloaded_builtin.
8586 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
8587 tree nodes used by DEF_BUILTIN.
8588 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
8589 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
8590 <AVR_BUILTIN_xxBITS>: Same.
8592 2013-02-08 Richard Biener <rguenther@suse.de>
8594 * cfgloop.c (verify_loop_structure): Properly handle
8595 a loop exiting to another loop header.
8596 * ira-int.h (ira_loops): Remove.
8597 * ira.c (ira_loops): Remove.
8598 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
8599 (do_reload): Use loop_optimizer_finalize.
8600 * ira-build.c (create_loop_tree_nodes): Use get_loops and
8601 number_of_loops to access the loop tree.
8602 (more_one_region_p): Likewise.
8603 (finish_loop_tree_nodes): Likewise.
8604 (rebuild_regno_allocno_maps): Likewise.
8605 (mark_loops_for_removal): Likewise.
8606 (mark_all_loops_for_removal): Likewise.
8607 (remove_unnecessary_regions): Likewise.
8608 (ira_build): Likewise.
8609 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
8611 2013-02-08 Richard Biener <rguenther@suse.de>
8613 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
8614 * ipa-pure-const.c (analyze_function): Avoid calling
8615 mark_irreducible_loops twice.
8616 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
8618 2013-02-07 David S. Miller <davem@davemloft.net>
8620 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
8622 * var-tracking.c (vt_add_function_parameter): Test the presence of
8623 HAVE_window_save properly and do not remap argument registers when
8624 we have a leaf function.
8626 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
8629 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
8631 * config/i386/i386.c (ix86_print_operand): Ditto.
8633 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8635 * lra-constraints.c (process_alt_operands): Fix recently added comment.
8637 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
8639 PR rtl-optimization/56225
8640 * lra-constraints.c (process_alt_operands): Check that reload hard
8641 reg can hold value for strict_low_part.
8643 2013-02-07 Jakub Jelinek <jakub@redhat.com>
8646 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
8647 dwarf2out_end_function.
8648 (in_first_function_p, maybe_at_text_label_p,
8649 first_loclabel_num_not_at_text_label): New variables.
8650 (dwarf2out_var_location): In the first function find out
8651 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
8652 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
8655 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
8657 PR rtl-optimization/56178
8658 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
8659 SUBREG of a register. Tidy up related block of code.
8660 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
8661 note if the source is a register or a SUBREG of a register.
8663 2013-02-07 Jakub Jelinek <jakub@redhat.com>
8666 * config/rs6000/rs6000.md (ptrm): New mode attr.
8667 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
8668 call_value_indirect_aix<pttrsize>,
8669 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
8672 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8674 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
8675 if -bnortl. Convert to strcmp and strncmp.
8677 2013-02-07 Alan Modra <amodra@gmail.com>
8680 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
8681 addresses won't wrap when offsetting.
8682 (rs6000_secondary_reload): Provide secondary reloads needed for
8683 wrapping LO_SUM addresses.
8685 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
8687 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
8688 MACH, just __MACH__.
8690 2013-02-06 Richard Biener <rguenther@suse.de>
8692 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
8693 instead of calling fix_loop_structure.
8695 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8698 * omp-low.c (use_pointer_for_field): Return false if
8699 lower_send_shared_vars doesn't generate any copy-out code.
8701 2013-02-06 Tom de Vries <tom@codesourcery.com>
8703 PR rtl-optimization/56131
8704 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
8705 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
8706 of the label is NULL. Add comment.
8708 2013-02-05 Jakub Jelinek <jakub@redhat.com>
8710 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
8713 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
8714 (STATIC_LIBTSAN_LIBS): Likewise.
8715 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
8716 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
8717 is defined, don't add anything else beyond that.
8718 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
8719 (LINK_COMMAND_SPEC): Use them.
8721 PR tree-optimization/56205
8722 * tree-stdarg.c (check_all_va_list_escapes): Return true if
8723 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
8724 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
8726 2013-02-05 Richard Biener <rguenther@suse.de>
8728 PR tree-optimization/53342
8729 PR tree-optimization/53185
8730 * tree-vectorizer.h (vect_check_strided_load): Remove.
8731 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
8732 not disallow peeling for vectorized strided loads.
8733 (vect_check_strided_load): Make static and simplify.
8734 (vect_analyze_data_refs): Adjust.
8735 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
8736 correctly when vectorizing strided loads.
8738 2013-02-05 Richard Biener <rguenther@suse.de>
8740 * doc/install.texi: Refer to ISL, not PPL.
8742 2013-02-05 Jan Hubicka <jh@suse.cz>
8744 PR tree-optimization/55789
8745 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
8747 2013-02-05 Jan Hubicka <jh@suse.cz>
8749 PR tree-optimization/55789
8750 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
8751 the dead call anyway.
8753 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
8756 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
8758 2013-02-04 Alexander Potapenko <glider@google.com>
8759 Jack Howarth <howarth@bromo.med.uc.edu>
8760 Jakub Jelinek <jakub@redhat.com>
8763 * config/darwin.c (sort_ctor_records): Stabilized qsort
8764 on constructor priority by using original position.
8765 (finalize_ctors): New routine to sort constructors by
8766 priority before use in assemble_integer.
8767 (machopic_asm_out_constructor): Use finalize_ctors if needed.
8769 2013-02-04 Jakub Jelinek <jakub@redhat.com>
8772 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
8773 about visibility on artificial decls.
8774 * config/sol2.c (solaris_assemble_visibility): Likewise.
8776 2013-02-04 Kai Tietz <ktietz@redhat.com>
8779 * config/i386/i386.c (function_value_ms_64): Add additional valtype
8780 argument and improve checking of return-argument types for 16-byte
8782 (ix86_function_value_1): Add additional valtype argument on call
8783 of function_value_64.
8784 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
8785 handling infunction_value_64 function.
8787 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8789 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
8791 2013-02-04 Richard Biener <rguenther@suse.de>
8793 PR tree-optimization/56188
8794 * tree-ssa-structalias.c (label_visit): Consider case with
8795 initially non-empty points-to set.
8796 (perform_var_substitution): Dump node mapping and clean up.
8798 2013-02-04 Richard Guenther <rguenther@suse.de>
8801 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
8802 node prevail as last resort.
8803 (lto_symtab_merge_decls): Remove guard on LTRANS here.
8804 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
8806 2013-02-04 Richard Biener <rguenther@suse.de>
8808 PR tree-optimization/56113
8809 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
8811 (equiv_class_lookup_or_add): ... this.
8812 (label_visit): Adjust and fix error in previous patch.
8813 (perform_var_substitution): Adjust.
8815 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
8817 * config/sh/divtab.c: Fix formatting and comments throughout the file.
8818 * config/sh/sh4-300.md: Likewise.
8819 * config/sh/sh4a.md: Likewise.
8820 * config/sh/constraints.md: Likewise.
8821 * config/sh/sh.md: Likewise.
8822 * config/sh/netbsd-elf.h: Likewise.
8823 * config/sh/predicates.md: Likewise.
8824 * config/sh/sh-protos.h: Likewise.
8825 * config/sh/ushmedia.h: Likewise.
8826 * config/sh/linux.h: Likewise.
8827 * config/sh/sh.c: Likewise.
8828 * config/sh/superh.h: Likewise.
8829 * config/sh/elf.h: Likewise.
8830 * config/sh/sh4.md: Likewise.
8831 * config/sh/sh.h: Likewise.
8833 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8835 * config/pa/constraints.md: Adjust unused letters. Change "T"
8836 constraint to match_test floating_point_store_memory_operand().
8837 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
8838 (base14_operand): New.
8839 (floating_point_store_memory_operand): New.
8840 (integer_store_memory_operand): Revise to use base14_operand and
8841 reg_plus_base_memory_operand.
8842 (move_dest_operand): Allow symbolic_memory_operands.
8843 (symbolic_memory_operand): Check for LO_SOM.
8844 (symbolic_operand): Change default case to break.
8845 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
8846 CONST_DOUBLE values to be reloaded by putting them into memory when
8847 the destination is a floating point register.
8848 (movdf): Remove code to handle CONST_DOUBLE.
8850 (reload_indf_r1): New.
8851 (reload_insf_r1): New.
8852 Consistently use "Q" and "T" constraints with integer and floating
8853 point move instructions, respectively.
8854 (movdi): Remove FAIL.
8855 Change predicate for source operand unamed DImode move from
8856 general_operand to move_src_operand.
8857 (umulsidi3): Change predicate for destination operand to
8859 Likewise for similar unamed patterns.
8860 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
8861 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
8862 (hppa_legitimize_address): Simplify mask calculation.
8863 (pa_emit_move_sequence): Revised handling of secondary reloads from
8864 REG+D addresses for floating point loads and stores. Directly handle
8865 loading CONST0_RTX (mode) to a floating point register.
8866 (pa_secondary_reload): Handle reloading DF and SFmode constant values
8867 to floating point registers. Don't restrict secondary reloads to
8868 floating point registers to integer modes. Revise some comments and
8870 (TARGET_LEGITIMATE_ADDRESS_P): Define.
8871 (pa_legitimate_address_p): New.
8872 (pa_legitimize_reload_address): New.
8873 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
8874 (STRICT_REG_OK_FOR_BASE_P): New.
8875 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
8876 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
8878 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
8879 Andrew Dixie <andrewd@gentrack.com>
8881 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
8884 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
8886 * expmed.c (extract_bit_field_1): Pass the full width of the
8887 structure to get_best_reg_extraction_insn.
8889 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
8892 * configure.ac (use_cxa_atexit): Add AIX.
8893 * configure: Regenerate.
8895 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
8897 2013-02-01 Jakub Jelinek <jakub@redhat.com>
8900 * final.c (need_profile_function): New variable.
8901 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
8902 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
8903 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
8904 notes, targetm.asm_out.function_prologue doesn't emit anything,
8905 HAVE_prologue and profiler should be emitted before prologue,
8906 set need_profile_function instead of emitting it.
8907 (final_scan_insn): If need_profile_function, emit
8908 profile_function on the first NOTE_INSN_BASIC_BLOCK or
8909 NOTE_INSN_FUNCTION_BEG note.
8911 2013-02-01 Richard Henderson <rth@redhat.com>
8913 * config/rs6000/rs6000.md (smulditi3): New.
8916 * config/alpha/alpha.md (umulditi3): New.
8918 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
8920 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
8921 (ASM_OUTPUT_ALIGNED_LOCAL): New.
8923 2013-02-01 Richard Biener <rguenther@suse.de>
8925 PR tree-optimization/56113
8926 * tree-ssa-structalias.c (label_visit): Reduce work for
8927 single-predecessor nodes.
8929 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
8931 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
8932 range isn't testing for zero.
8934 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
8937 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
8939 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
8940 Nick Clifton <nickc@redhat.com>
8942 * config/v850/constraints.md (Q): Define as a memory constraint.
8943 * config/v850/predicates.md (label_ref_operand): New predicate.
8944 (e3v5_shift_operand): New predicate.
8945 (ior_operator): New predicate.
8946 * config/v850/t-v850: Add e3v5 multilib.
8947 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8948 (v850_gen_movdi): Prototype.
8949 * config/v850/v850.c: Add support for e3v5 architecture.
8950 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8952 (construct_save_jarl): Add e3v5 long JARL support.
8953 (v850_adjust_insn_length): New function. Adjust length of call
8954 insns when using e3v5 instructions.
8955 (v850_gen_movdi): New function: Generate instructions to move a
8957 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8958 (CPP_SPEC): Define __v850e3v5__ as appropriate.
8959 (TARGET_USE_FPU): Enable for e3v5.
8960 (CONST_OK_FOR_W): New macro.
8961 (ADJUST_INSN_LENGTH): Define.
8962 * config/v850/v850.md (UNSPEC_LOOP): Define.
8963 (attr cpu): Add v850e3v5.
8964 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8965 (movdi): New pattern.
8966 (movdi_internal): New pattern.
8967 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8968 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8969 (cstoresf4): Likewise.
8970 (cstoredf4): Likewise.
8971 (insv): New pattern.
8972 (rotlso3_a): New pattern.
8973 (rotlsi3_b): New pattern
8974 (rotlsi3_v850e3v5): New pattern.
8975 (doloop_begin): New pattern.
8976 (fix_loop_counter): New pattern.
8977 (doloop_end): New pattern.
8978 (branch_normal): Add e3v5 long branch support.
8979 (branch_invert): Likewise.
8980 (branch_z_normal): Likewise.
8981 (branch_z_invert): Likewise.
8982 (branch_nz_normal): Likewise.
8983 (branch_nz_invert): Likewise.
8984 (call_internal_short): Add e3v5 register-indirect JARL support.
8985 (call_internal_long): Likewise.
8986 (call_value_internal_short): Likewise.
8987 (call_value_internal_long): Likewise.
8988 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8989 (mloop): New option.
8990 * config.gcc: Add support for configuring v840e3v5 target.
8991 * doc/invoke.texi: Document new v850 specific command line options.
8993 2013-01-31 Paul Koning <ni1d@arrl.net>
8997 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
8998 children if parent is a class.
8999 (prune_unused_types_prune): Don't add DW_AT_declaration.
9001 2013-01-31 Richard Biener <rguenther@suse.de>
9003 PR tree-optimization/56157
9004 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
9005 match up operand with SLP child.
9007 2013-01-31 Jason Merrill <jason@redhat.com>
9010 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
9011 parameters the first time.
9012 (gen_scheduled_generic_parms_dies): Check completeness here.
9014 2013-01-31 Richard Biener <rguenther@suse.de>
9017 * common.opt (faggressive-loop-optimizations): New flag,
9019 * doc/invoke.texi (faggressive-loop-optimizations): Document.
9020 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
9021 infer_loop_bounds_from_undefined by it.
9023 2013-01-31 Richard Biener <rguenther@suse.de>
9025 PR tree-optimization/56150
9026 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
9027 visit virtual operands.
9028 (find_uses_to_rename_bb): Likewise.
9030 2013-01-31 Richard Biener <rguenther@suse.de>
9032 PR tree-optimization/56150
9033 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
9034 mixed store non-store stmts.
9036 2013-01-30 Jakub Jelinek <jakub@redhat.com>
9039 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
9040 LIBASAN_EARLY_SPEC is defined.
9041 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
9042 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
9044 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
9047 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
9048 invalid args instead of ICEing on it.
9049 (ix86_valid_target_attribute_tree): Return error_mark_node if
9050 ix86_valid_target_attribute_inner_p failed.
9051 (ix86_valid_target_attribute_p): Return false only if
9052 ix86_valid_target_attribute_tree returned error_mark_node. Allow
9053 target("default") attribute.
9054 (sorted_attr_string): Change argument from const char * to tree,
9055 merge in all target attribute arguments rather than just one.
9056 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
9057 instead of free. Avoid using strcat.
9058 (ix86_mangle_function_version_assembler_name): Mangle
9059 target("default") as if no target attribute is present. Adjust
9060 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
9061 instead of xmalloc and XDELETEVEC instead of free.
9062 (ix86_function_versions): Don't return true if one of the decls
9063 doesn't have target attribute. If they don't and one of the decls
9064 is DECL_FUNCTION_VERSIONED, report an error. Adjust
9065 sorted_attr_string caller. Use XDELETEVEC instead of free.
9066 (ix86_supports_function_versions): Remove.
9067 (make_name): Fix up formatting.
9068 (make_dispatcher_decl): Remove resolver_name and its initialization.
9069 Avoid leaking memory.
9070 (is_function_default_version): Return true if there is
9071 target("default") attribute rather than no target attribute at all.
9072 (make_resolver_func): Avoid leaking memory.
9073 (ix86_generate_version_dispatcher_body): Likewise.
9074 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
9075 * target.def (supports_function_versions): Remove.
9076 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
9077 * doc/tm.texi: Regenerated.
9079 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
9081 PR rtl-optimization/56144
9082 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
9083 for values with side effects.
9085 2013-01-30 Richard Biener <rguenther@suse.de>
9087 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
9088 (sparseset_pop): Likewise.
9089 * cfganal.c (compute_idf): Likewise. Increase work-stack size
9090 to be able to use quick_push in the worker loop.
9092 2013-01-30 Marek Polacek <polacek@redhat.com>
9094 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
9096 2013-01-30 Richard Biener <rguenther@suse.de>
9099 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
9101 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
9103 PR tree-optimization/56064
9104 * fixed-value.c (fixed_from_double_int): New function.
9105 * fixed-value.h (fixed_from_double_int): New prototype.
9106 (const_fixed_from_double_int): New static inline function.
9107 * fold-const.c (native_interpret_fixed): New static function.
9108 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
9109 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
9110 (native_encode_fixed): New static function.
9111 (native_encode_expr) <FIXED_CST>: Use it.
9112 (native_interpret_int): Move double_int worker code to...
9113 * double-int.c (double_int::from_buffer): ...this new static method.
9114 * double-int.h (double_int::from_buffer): Prototype it.
9116 2013-01-30 Richard Biener <rguenther@suse.de>
9118 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
9119 New pointer-map and obstack.
9120 (init_alias_vars): Allocate pointer-map and obstack.
9121 (delete_points_to_sets): Free them.
9122 (find_what_var_points_to): Cache result.
9123 (find_what_p_points_to): Adjust for changed interface of
9124 find_what_var_points_to.
9125 (compute_points_to_sets): Likewise.
9126 (ipa_pta_execute): Likewise.
9128 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9130 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
9131 * configure: Regenerate.
9132 * config.in: Regenerate.
9133 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
9134 #nobits/#progbits if supported.
9136 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
9139 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
9140 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
9141 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
9143 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9145 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
9146 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
9148 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9150 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
9151 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
9153 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9155 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
9157 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
9158 * config/arm/cortex-a7.md: New bypasses using
9159 arm_mac_accumulator_is_result.
9161 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9163 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
9164 (cortex_a7_neon_mla): Likewise.
9165 (cortex_a7_fpfmad): New reservation.
9166 (cortex_a7_fpmacs): Use ffmas and update required units.
9167 (cortex_a7_fpmuld): Update required units and latency.
9168 (cortex_a7_fpmacd): Likewise.
9169 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
9170 (cortex_a7_neon). Likewise.
9171 (bypass) Update participating units.
9173 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
9175 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
9176 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
9178 * config/arm/vfp11.md (vfp_farith): Use ffmas.
9179 (vfp_fmul): Use ffmad.
9180 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
9181 (cortex_r4_fmacd): Use ffmad.
9182 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
9183 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
9184 (cortex_a9_fmacd): Use ffmad.
9185 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
9186 (cortex_a8_vfp_macd): Use ffmad.
9187 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
9188 (cortex_a5_fpmacd): Use ffmad.
9189 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
9190 (cortex_a15_vfp_macd): Use ffmad.
9191 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
9193 2013-01-29 Jason Merrill <jason@redhat.com>
9196 * varasm.c (default_assemble_visibility): Don't warn about
9197 visibility on artificial decls.
9199 2013-01-29 Richard Biener <rguenther@suse.de>
9201 PR tree-optimization/56113
9202 * tree-ssa-structalias.c (equiv_class_lookup): Also return
9204 (label_visit): Free duplicate bitmaps and record the leader instead.
9205 (perform_var_substitution): Adjust.
9207 2013-01-29 Richard Biener <rguenther@suse.de>
9209 PR tree-optimization/55270
9210 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
9211 the CFG, schedule loops for fixup.
9213 2013-01-29 Nick Clifton <nickc@redhat.com>
9215 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
9218 2013-01-28 Leif Ekblad <leif@rdos.net>
9220 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
9221 * config/i386/i386.h (TARGET_RDOS): New macro.
9222 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
9223 * config/i386/i386.c (ix86_option_override_internal): For 64bit
9224 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
9225 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
9226 DEFAULT_LARGE_SECTION_THRESHOLD.
9227 * config/i386/i386.md (R14_REG, R15_REG): New constants.
9228 * config/i386/rdos.h: New file.
9229 * config/i386/rdos64.h: New file.
9231 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
9234 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
9237 2013-01-28 Jakub Jelinek <jakub@redhat.com>
9239 PR rtl-optimization/56117
9240 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
9241 call cselib_lookup_from_insn on the MEM before calling
9242 add_insn_mem_dependence.
9244 2013-01-28 Richard Biener <rguenther@suse.de>
9246 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
9247 to a stmt that didn't have one.
9248 (copy_phis_for_bb): Likewise for PHI arguments.
9249 (copy_debug_stmt): Likewise for debug stmts.
9251 2013-01-28 Richard Biener <rguenther@suse.de>
9253 PR tree-optimization/56034
9254 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
9255 (partition_builtin_p): Adjust.
9256 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
9257 it is the last partition.
9258 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
9259 up the vertex for the definition.
9260 (classify_partition): Classify whether a partition is a
9261 PKIND_REDUCTION, thus has uses outside of the loop.
9262 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
9263 Merge all PKIND_REDUCTION partitions into the last partition.
9264 (tree_loop_distribution): Seed partitions from reductions as well.
9266 2013-01-28 Jakub Jelinek <jakub@redhat.com>
9268 PR tree-optimization/56125
9269 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
9270 pow(x,c) into sqrt(x) * powi(x, n/2) or
9271 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
9272 optimizing for size.
9273 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
9274 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
9277 PR tree-optimization/56094
9278 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
9279 to UNKNOWN_LOCATION while gimplifying expr.
9281 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
9284 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
9285 operand 0 in movabs insn template for -masm=intel asm alternative.
9286 (*movabs<mode>_2): Ditto for operand 1.
9288 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
9291 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
9294 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9296 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
9299 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9301 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
9302 Undef to avoid warning.
9304 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9306 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
9307 * configure: Regenerate.
9309 2013-01-25 Jakub Jelinek <jakub@redhat.com>
9311 PR tree-optimization/56098
9312 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
9313 for stmts with volatile ops.
9314 (cond_store_replacement): Don't optimize if assign has volatile ops.
9315 (cond_if_else_store_replacement_1): Don't optimize if either
9316 then_assign or else_assign have volatile ops.
9317 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
9320 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9322 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
9324 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9326 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
9327 missing ':' in asm example.
9329 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
9331 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
9332 entries into lane and laneq entries.
9333 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
9334 Remove AdvSIMD scalar modes.
9335 (aarch64_sq<r>dmulh_laneq<mode>): New.
9336 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
9338 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
9339 builtin implementations to relfect changes in RTL in aarch64-simd.md.
9340 * config/aarch64/iterators.md (VCOND): New.
9343 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
9346 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
9347 Add NULL LIBNAME argument to existing definitions.
9348 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
9349 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
9350 * config/avr/avr.c (DEF_BUILTIN): Same.
9351 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
9352 (avr_expand_builtin): Expand to a vanilla call if a libgcc
9353 implementation is available (DECL_ASSEMBLER_NAME is set).
9354 (avr_fold_absfx): New static function.
9355 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
9356 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
9357 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
9359 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
9360 (abshk, absk, abslk, absllk): Provide as static inline functions.
9362 2013-01-25 Marek Polacek <polacek@redhat.com>
9364 PR tree-optimization/56035
9365 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
9367 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
9369 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
9370 (*movtf_internal_rex64): Add (!o,C) alternative
9371 (*movxf_internal_rex64): Ditto.
9372 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
9374 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
9376 * doc/invoke.texi: fix typo.
9377 * doc/objc.texi: fix typo.
9379 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9381 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
9382 for the first two alternatives.
9384 2013-01-24 Diego Novillo <dnovillo@google.com>
9386 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
9387 (ggc-zone.o): Remove.
9388 * configure.ac: Remove option --with-gc.
9389 * configure: Re-generate.
9390 * doc/install.texi: Remove documentation for --with-gc.
9391 * gengtype.c (write_enum_defn): Remove. Update all users.
9392 (write_Types_process_field): Remove generation of gt_e_* argument.
9393 (output_type_enum): Remove. Update all users.
9394 (write_enum_defn): Remove. Update all users.
9395 (enum alloc_zone): Remove. Update all users.
9396 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
9397 * ggc-common.c (ggc_splay_alloc): Remove first argument.
9399 (struct ptr_data): Remove field TYPE. Update all users.
9400 (gt_pch_note_object): Remove argument TYPE. Update all users.
9401 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
9403 * ggc-none.c (ggc_alloc_typed_stat): Remove.
9404 (struct alloc_zone): Remove.
9405 (ggc_internal_alloc_zone_stat): Remove.
9406 (ggc_internal_cleared_alloc_zone_stat): Remove.
9407 * ggc-page.c (ggc_alloc_typed_stat): Remove.
9408 (ggc_pch_count_object): Remove last argument. Update all users.
9409 (ggc_pch_alloc_object): Remove last argument. Update all users.
9410 (struct alloc_zone): Remove.
9411 * ggc-zone.c: Remove.
9412 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
9413 (struct alloc_zone): Remove.
9414 (ggc_alloc_typed_stat): Remove.
9415 (ggc_alloc_typed): Remove.
9416 (ggc_splay_alloc): Remove first argument.
9417 (rtl_zone): Remove. Update all users.
9418 (tree_zone): Remove. Update all users.
9419 (tree_id_zone): Remove. Update all users.
9420 (ggc_internal_zone_alloc_stat): Remove. Update all users.
9421 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
9422 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
9423 * tree-ssanames.c: Remove references to zone allocator in comments.
9425 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
9427 * config/avr/avr.c (avr_out_fract): Make register numbers that
9428 might be outside of source operand signed.
9430 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
9432 * config/i386/constraints.md (Yf): New constraint.
9433 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
9434 of f constraint to conditionaly disable x87 register preferences.
9435 (*movdf_internal): Ditto.
9436 (*movsf_internal): Ditto.
9438 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
9441 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
9442 that have operands with impossible constraints.
9443 Add a FIXME for a speed-up opportunity.
9444 * lra-constraints.c (process_alt_operands): Verify that a class
9445 selected from constraints on asms is valid for the operand mode.
9446 (curr_insn_transform): Remove incorrect comment.
9448 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
9450 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
9451 TOC operand is a valid symbol ref in the constant pool.
9453 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9455 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
9457 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
9460 * config/avr/stdfix.h: New file.
9461 * t-avr (stdfix-gcc.h): New rule to build it.
9462 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
9464 2013-01-23 Kostya Serebryany <kcc@google.com>
9466 * config/darwin.h: remove dependency on
9467 CoreFoundation (asan on Mac OS).
9469 2013-01-23 Jakub Jelinek <jakub@redhat.com>
9472 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
9473 instead of cmpdi_operand for first comparison operand.
9474 Don't assert that comparison operands aren't both constants.
9476 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9478 * doc/install.texi (Downloading the Source): Update references to
9479 downloading separate components.
9481 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
9483 * doc/extend.texi (__int128): Improve grammar.
9485 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
9488 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
9489 alternative to (o,r).
9490 (*movdi_internal_rex64): Remove (!o,n) alternative.
9491 (DImode immediate->memory splitter): Remove.
9492 (DImode immediate->memory peephole2): Remove.
9493 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
9494 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
9495 alternative to (!o,*r).
9496 (*movtf_internal_sse): New pattern.
9497 (*movxf_internal_rex64): New pattern.
9498 (*movxf_internal): Disable for TARGET_64BIT.
9499 (*movdf_internal_rex64): Remove (!o,F) alternative.
9501 2013-01-22 Jakub Jelinek <jakub@redhat.com>
9504 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
9505 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
9506 * tree-vect-loop-manip.c (find_loop_location): Also ignore
9507 stmt locations where LOCATION_LOCUS of the stmt location is
9508 UNKNOWN_LOCATION or BUILTINS_LOCATION.
9511 * config/i386/i386.md (UNSPEC_STOS): New.
9512 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
9513 *strsetqi_1): Add UNSPEC_STOS.
9515 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
9518 * doc/invoke.texi: Remove left over -Wsynth example.
9520 2013-01-21 Jakub Jelinek <jakub@redhat.com>
9522 PR tree-optimization/56051
9523 * fold-const.c (fold_binary_loc): Don't fold
9524 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
9525 a narrowing conversion, or widening conversion from signed
9528 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
9530 PR rtl-optimization/56023
9531 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
9532 dependent on debug instruction.
9534 2013-01-21 Martin Jambor <mjambor@suse.cz>
9537 * function.c (allocate_struct_function): Call
9538 invoke_set_current_function_hook earlier.
9540 2013-01-21 Jakub Jelinek <jakub@redhat.com>
9542 * reload1.c (init_reload): Only initialize reload_obstack
9543 during the first call.
9545 2013-01-21 Marek Polacek <polacek@redhat.com>
9547 * cfgloop.c (verify_loop_structure): Fix up grammar.
9549 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
9551 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
9552 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
9554 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9557 * config/arm/marvell-pj4.md: Update copyright year.
9558 Fix up use of alu to alu_reg and simple_alu_imm.
9560 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
9562 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
9564 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
9567 * lra-constraints.c (curr_insn_transform): Don't reuse original
9568 insn for secondary memory move when memory mode should be different.
9570 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9572 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
9573 atomic_storedi_1): New patterns.
9575 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9577 btver2 pipeline descriptions.
9578 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
9580 * config/i386/i386.md (btver2_decode): New type attributes.
9581 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
9583 * config/i386/btver2.md: New file describing btver2 pipelines.
9585 2013-01-19 Andrew Pinski <apinski@cavium.com>
9587 PR tree-optimization/52631
9588 * tree-ssa-sccvn (visit_use): Before looking up the original
9589 statement, try looking up the simplified expression.
9591 2013-01-19 Anthony Green <green@moxielogic.com>
9593 * config/moxie/moxie.c (moxie_expand_prologue): Set
9594 current_function_static_stack_size.
9596 2013-01-18 Jakub Jelinek <jakub@redhat.com>
9598 PR tree-optimization/56029
9599 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
9600 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
9602 2013-01-18 Sharad Singhai <singhai@google.com>
9604 PR tree-optimization/55995
9605 * dumpfile.c (dump_loc): Print location only if available.
9606 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
9608 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
9611 * lra-constraints.c (curr_insn_transform): Reuse original insn for
9612 secondary memory move.
9613 (inherit_reload_reg): Use rclass instead of cl for
9614 check_secondary_memory_needed_p.
9616 2013-01-18 Jakub Jelinek <jakub@redhat.com>
9619 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
9620 the case where writing real complex part of target modifies op1.
9622 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
9624 * config/aarch64/aarch64-simd.md
9625 (aarch64_vcond_internal<mode>): Handle unordered cases.
9626 * config/aarch64/iterators.md (v_cmp_result): New.
9628 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
9629 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9631 * config/arm/marvell-pj4.md: New file.
9632 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
9633 * config/arm/arm.md (generic_sched): Add marvell_pj4.
9634 (generic_vfp): Likewise.
9635 * config/arm/arm-cores.def: Add marvell-pj4.
9636 * config/arm/arm-tune.md: Regenerate.
9637 * config/arm/arm-tables.opt: Regenerate.
9638 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
9639 * doc/invoke.texi: Document marvell-pj4.
9641 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
9643 * config/aarch64/arm_neon.h: Map scalar types to standard types.
9645 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9650 * var-tracking.c (negative_power_of_two_p): New.
9651 (global_get_addr_cache, local_get_addr_cache): New.
9652 (get_addr_from_global_cache, get_addr_from_local_cache): New.
9653 (vt_canonicalize_addr): Rewrite using the above. Adjust the
9655 (vt_stack_offset_p): Remove.
9656 (vt_canon_true_dep): Always canonicalize loc's address.
9657 (clobber_overlapping_mems): Make sure we have a MEM.
9658 (local_get_addr_clear_given_value): New.
9659 (val_reset): Clear local cached entries.
9660 (compute_bb_dataflow): Create and release the local cache.
9661 Disable duplicate MEMs clobbering.
9662 (emit_notes_in_bb): Clobber MEMs likewise.
9663 (vt_emit_notes): Create and release the local cache.
9664 (vt_initialize, vt_finalize): Create and release the global
9665 cache, respectively.
9666 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
9668 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9671 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
9672 not found in the symtab.
9674 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
9677 PR rtl-optimization/55547
9678 PR rtl-optimization/53827
9681 * alias.c (offset_overlap_p): New, factored out of...
9682 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
9683 the conservative special case for symbolic constants. Don't
9684 adjust zero sizes on alignment.
9686 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
9688 PR rtl-optimization/52573
9689 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
9690 REG_UNUSED for the same register.
9692 2013-01-17 Richard Biener <rguenther@suse.de>
9693 Marek Polacek <polacek@redhat.com>
9695 PR rtl-optimization/55833
9696 * loop-unswitch.c (unswitch_loops): Move loop verification...
9697 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
9698 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
9699 Set it to true when we're removing a loop from hierarchy tree in
9700 an irreducible region.
9701 (fix_bb_placements): Adjust caller.
9702 (fix_loop_placements): Likewise.
9704 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
9706 * config/avr/builtins.def (DEF_BUILTIN): Factor out
9707 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
9708 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
9709 Remove ID. Adjust comments.
9710 * config/avr/avr-c.c (avr_builtin_name): Remove.
9711 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
9712 * config/avr/avr.c (avr_tolower): New static function.
9713 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
9714 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
9715 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
9718 2013-01-17 Jan Hubicka <jh@suse.cz>
9720 PR tree-optimization/55273
9721 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
9723 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
9726 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
9727 store through atomic_store<mode>_1.
9728 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
9730 2013-01-17 Martin Jambor <mjambor@suse.cz>
9732 PR tree-optimizations/55264
9733 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
9734 for virtual methods.
9735 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
9736 virtual methods before inlining is over.
9737 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
9739 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
9742 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
9744 PR rtl-optimization/56005
9745 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
9746 pending reads for prefetch.
9748 2013-01-16 Ian Bolton <ian.bolton@arm.com>
9750 * config/aarch64/aarch64.md
9751 (*cstoresi_neg_uxtw): New pattern.
9752 (*cmovsi_insn_uxtw): New pattern.
9753 (*<optab>si3_uxtw): New pattern.
9754 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
9755 (*<optab>si3_insn_uxtw): New pattern.
9756 (*bswapsi2_uxtw): New pattern.
9758 2013-01-16 Richard Biener <rguenther@suse.de>
9760 * tree-inline.c (tree_function_versioning): Remove set but
9761 never used variable.
9763 2013-01-16 Richard Biener <rguenther@suse.de>
9765 PR tree-optimization/55964
9766 * tree-flow.h (rename_variables_in_loop): Remove.
9767 (rename_variables_in_bb): Likewise.
9768 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
9769 (copy_loop_before): Adjust and delete update-ssa status.
9770 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
9771 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
9772 (rename_variables_in_loop): Remove.
9773 (slpeel_update_phis_for_duplicate_loop): Likewise.
9774 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
9775 use available cfg machinery instead of duplicating it.
9776 Update PHI nodes and perform poor-mans SSA update here.
9777 (slpeel_tree_peel_loop_to_edge): Adjust.
9779 2013-01-16 Richard Biener <rguenther@suse.de>
9781 PR tree-optimization/54767
9782 PR tree-optimization/53465
9783 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
9784 (vrp_visit_phi_node): For PHI arguments coming via backedges
9785 drop all symbolical range information.
9786 (execute_vrp): Compute backedges.
9788 2013-01-16 Richard Biener <rguenther@suse.de>
9790 * doc/install.texi: Update CLooG and ISL requirements to
9793 2013-01-16 Christian Bruel <christian.bruel@st.com>
9796 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
9797 (broken_move): Handle UNSPECV_SP_SWITCH_B.
9798 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
9800 2013-01-16 DJ Delorie <dj@redhat.com>
9802 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
9803 (UNSPECV_SP_SWITCH_E): New.
9804 (sp_switch_1): Change to an unspec.
9805 (sp_switch_2): Change to an unspec. Don't use post-inc when we
9808 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
9810 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
9811 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
9812 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
9813 (expand_mem_thread_fence): Ditto.
9814 (expand_mem_signal_fence): Ditto.
9815 (expand_atomic_load): Ditto.
9816 (expand_atomic_store): Ditto.
9818 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
9820 PR rtl-optimization/55547
9821 PR rtl-optimization/53827
9824 * alias.c (memrefs_conflict_p): Set sizes to negative after
9827 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9830 * function.c (thread_prologue_and_epilogue_insns): Always
9831 add crtl->drap_reg to set_up_by_prologue.set, even if
9832 stack_realign_drap is false.
9834 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9836 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
9837 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
9838 *call): Fix indention.
9840 2013-01-15 Tom de Vries <tom@codesourcery.com>
9843 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
9846 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
9848 PR rtl-optimization/55153
9849 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
9851 2013-01-15 Martin Jambor <mjambor@suse.cz>
9853 PR tree-optimization/55920
9854 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
9855 accesses as grp_to_be_debug_replaced.
9857 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9859 PR tree-optimization/55920
9860 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
9861 there is non-useless type conversion needed from debug rhs to lhs,
9862 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
9864 2013-01-15 Joseph Myers <joseph@codesourcery.com>
9865 Mikael Pettersson <mikpe@it.uu.se>
9868 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
9870 (ASM_OUTPUT_CASE_LABEL): Remove.
9871 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
9872 * final.c (shorten_branches): Update alignment of labels before
9873 jump tables if CASE_VECTOR_SHORTEN_MODE.
9875 2013-01-15 Richard Biener <rguenther@suse.de>
9878 * system.h: Do not include gmp.h for building host tools.
9880 2013-01-15 Richard Biener <rguenther@suse.de>
9883 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
9884 account for bitpos when computing alignment.
9886 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
9888 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
9889 (ix86_target_macros_internal): Likewise.
9891 * config/i386/i386.c (m_CORE2I7): Removed.
9892 (m_CORE_HASWELL): New macro.
9893 (m_CORE_ALL): Likewise.
9894 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
9895 (initial_ix86_arch_features): Likewise.
9896 (processor_target_table): Initializations for Core avx2.
9897 (cpu_names): New names "core-avx2".
9898 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
9899 PROCESSOR_CORE_HASWELL.
9900 (ix86_issue_rate): New case.
9901 (ia32_multipass_dfa_lookahead): Likewise.
9902 (ix86_sched_init_global): Likewise.
9904 * config/i386/i386.h (TARGET_HASWELL): New macro.
9905 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
9906 (processor_type): New PROCESSOR_HASWELL.
9908 2013-01-15 Jakub Jelinek <jakub@redhat.com>
9910 PR tree-optimization/55955
9911 * tree-vect-loop.c (vectorizable_reduction): Give up early on
9912 *SHIFT_EXPR and *ROTATE_EXPR codes.
9914 PR tree-optimization/48766
9915 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
9916 -ftrapv disable -fwrapv.
9918 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9921 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
9922 etc. to 1 and not to __flash.
9923 Use LL suffix for __INT24_MAX__ with -mint8.
9924 Use ULL suffix for __UINT24_MAX__ with -mint8.
9926 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9928 * config/avr/avr-arch.h
9929 (struct base_arch_s): Use typedef avr_arch_t instead.
9930 (struct arch_info_s): Use typedef avr_arch_info_t instead.
9931 (struct mcu_type_s): Use typedef avr_mcu_t instead.
9932 * config/avr/avr.c: Same.
9933 * config/avr/avr-devices.c: Same.
9934 * config/avr/driver-avr.c: Same.
9935 * config/avr/gen-avr-mmcu-texi.c: Same.
9936 * config/avr/avr-mcus.def: Adjust comment.
9938 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
9940 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
9941 * config/aarch64/iterators.md (VALLDI): New.
9943 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
9944 Andi Kleen <ak@linux.intel.com>
9947 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9948 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9951 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9953 * config/avr/avr-stdint.h: Remove trailing blanks.
9954 * config/avr/avr-log.h: Same.
9955 * config/avr/avr-arch.h: Same.
9956 * config/avr/avr-devices.c: Same.
9957 * config/avr/avr-dimode.md: Same.
9958 * config/avr/predicates.md: Same.
9959 * config/avr/avr-c.c: Same. And fix typo.
9961 * config/avr/avr-protos.h: Same. And:
9962 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9963 (init_cumulative_args): Rename to avr_init_cumulative_args.
9964 (expand_prologue): Rename to avr_expand_prologue.
9965 (expand_epilogue): Rename to avr_expand_epilogue.
9966 (adjust_insn_length): Rename to avr_adjust_insn_length.
9967 (notice_update_cc): Rename to avr_notice_update_cc.
9968 (final_prescan_insn): Rename to avr_final_prescan_insn.
9969 * config/avr/avr.c: Same.
9970 * config/avr/avr.h: Same.
9971 * config/avr/avr.md: Remove trailing blanks.
9972 (prologue): Use avr_expand_prologue.
9973 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9975 2013-01-14 Richard Biener <rguenther@suse.de>
9977 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9978 verify_location, collect_subblocks): New functions.
9979 (verify_gimple_in_cfg): Verify that locations only reference
9980 BLOCKs in the functions BLOCK tree.
9982 2013-01-14 Richard Biener <rguenther@suse.de>
9984 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9986 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9988 (insert_out_of_ssa_copy_on_edge): Likewise.
9989 (rewrite_close_phi_out_of_ssa): Likewise.
9990 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
9992 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
9993 propagated constants.
9994 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
9997 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
9999 * config/avr/avr-modes.def: Add GPL copyright notice.
10001 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
10003 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
10004 MEMMODEL_MASK to determine memory model.
10005 (atomic_store<mode>): Ditto from operands[2].
10006 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
10008 2013-01-13 Jakub Jelinek <jakub@redhat.com>
10011 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
10012 (fold_gimple_assign): Don't call unshare_expr here.
10013 (fold_ctor_reference): Call unshare_expr.
10015 2013-01-13 Terry Guo <terry.guo@arm.com>
10017 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
10018 * doc/fragments.texi: Document MULTILIB_REUSE.
10019 * gcc.c (multilib_reuse): New internal spec.
10020 (set_multilib_dir): Also search multilib from multilib_reuse.
10021 * genmultilib (tmpmultilib3): Refactor code.
10022 (tmpmultilib4): Ditto.
10023 (multilib_reuse): New multilib argument.
10025 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
10027 * Makefile.in: Update copyright.
10029 2013-01-12 Tom de Vries <tom@codesourcery.com>
10031 PR middle-end/55890
10032 * calls.c (expand_call): Check if arg_nr is valid.
10034 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10036 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
10037 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
10038 documentation. Add missing '__' in front of
10039 __builtin_ia32_packssdw256.
10041 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10044 * config/s390/s390.c (s390_preferred_reload_class): Do not return
10045 NO_REGS for larl operands.
10046 (s390_reload_larl_operand): Use s390_load_address instead of
10049 2013-01-11 Richard Biener <rguenther@suse.de>
10051 * tree-cfg.c (verify_node_sharing_1): Split out from ...
10052 (verify_node_sharing): ... here.
10053 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
10055 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
10057 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
10058 Substitute TREECHECKING.
10059 * configure: Regenerate.
10060 * Makefile.in (TREECHECKING): New.
10062 2013-01-11 Richard Guenther <rguenther@suse.de>
10064 PR tree-optimization/44061
10065 * tree-vrp.c (extract_range_basic): Compute zero as
10066 value-range for __builtin_constant_p of function parameters.
10068 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
10070 Update copyright years.
10072 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
10074 PR rtl-optimization/55672
10075 * lra-eliminations.c (mark_not_eliminable): Permit addition with
10076 const to be eliminable.
10078 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
10080 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
10081 * configure: Regenerate.
10083 2013-01-10 Richard Biener <rguenther@suse.de>
10085 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
10087 2013-01-10 Richard Biener <rguenther@suse.de>
10090 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
10091 locations for virtual PHI arguments.
10092 (rewrite_update_phi_arguments): Likewise.
10094 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
10096 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
10099 2013-01-10 Jakub Jelinek <jakub@redhat.com>
10101 PR tree-optimization/55921
10102 * tree-complex.c (expand_complex_asm): New function.
10103 (expand_complex_operations_1): Call it for GIMPLE_ASM.
10105 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10108 * config/s390/s390.c (s390_symref_operand_p)
10109 (s390_loadrelative_operand_p): Merge the two functions.
10110 (s390_check_qrst_address, print_operand_address): Add parameters
10111 to s390_loadrelative_operand_p invokation.
10112 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
10113 (s390_reload_larl_operand, s390_secondary_reload): Use
10114 s390_loadrelative_operand_p instead of s390_symref_operand_p.
10115 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
10117 2013-01-09 Mike Stump <mikestump@comcast.net>
10119 * dse.c (record_store): Remove unnecessary assert.
10121 2013-01-09 Jan Hubicka <jh@suse.cz>
10123 PR tree-optimization/55569
10124 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
10125 * cfgloop.h (scale_loop_profile): Likewise.
10127 2013-01-09 Jan Hubicka <jh@suse.cz>
10130 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
10132 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
10134 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10136 PR middle-end/55114
10137 * expr.h (maybe_emit_group_store): Declare.
10138 * expr.c (maybe_emit_group_store): New function.
10139 * builtins.c (expand_builtin_int_roundingfn): Call it.
10140 (expand_builtin_int_roundingfn_2): Likewise.
10142 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
10144 PR rtl-optimization/55829
10145 * lra-constraints.c (match_reload): Add code for absent output.
10146 (curr_insn_transform): Add code for reloads of matched inputs
10149 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
10151 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
10152 attribute of movddup insn to DF.
10153 (*vec_interleave_lowv2df): Ditto.
10154 (vec_dupv2df): Ditto.
10156 2013-01-09 Jan Hubicka <jh@suse.cz>
10158 PR tree-optimiation/55875
10159 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
10160 EVERY_ITERATION parameter.
10161 (number_of_iterations_exit): Check if exit is executed every iteration.
10162 (idx_infer_loop_bounds): Similarly here.
10163 (n_of_executions_at_most): Simplify
10164 to only test for cases where statement is dominated by the
10165 particular bound; handle correctly the "postdominance" test.
10166 (scev_probably_wraps_p): Use max loop iterations info
10167 as a global bound first.
10169 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
10170 Nick Clifton <nickc@redhat.com>
10172 * config/v850/v850.md (cbranchsf4): New pattern.
10173 (cstoresf4): New pattern.
10174 (cbranchdf4): New pattern.
10175 (cstoredf4): New pattern.
10176 (movsicc): Disallow floating point comparisons.
10177 (cmpsf_le_insn): Fix order of operators.
10178 (cmpsf_lt_insn): Likewise.
10179 (cmpsf_eq_insn): Likewise.
10180 (cmpdf_le_insn): Likewise.
10181 (cmpdf_lt_insn): Likewise.
10182 (cmpdf_eq_insn): Likewise.
10183 (cmpsf_ge_insn): Use LE comparison.
10184 (cmpdf_ge_insn): Likewise.
10185 (cmpsf_gt_insn): Use LT comparison.
10186 (cmpdf_gt_insn): Likewise.
10187 (cmpsf_ne_insn): Delete pattern.
10188 (cmpdf_ne_insn): Delete pattern.
10189 * config/v850/v850.c (v850_gen_float_compare): Use
10190 gen_cmpdf_eq_insn for NE comparison.
10191 (v850_float_z_comparison_operator)
10192 (v850_float_nz_comparison_operator): Move from here ...
10193 * config/v850/predicates.md: ... to here. Move GT and GE
10194 comparisons into v850_float_z_comparison_operator.
10195 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
10197 (v850_float_nz_comparison_operator): Likewise.
10199 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10201 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
10202 with calls to gen_insvsi/gen_insvdi.
10204 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10206 * config/i386/i386.c (initial_ix86_tune_features): Set up
10207 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
10209 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
10210 Jakub Jelinek <jakub@redhat.com>
10212 PR tree-optimization/48189
10213 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
10214 If nitercst is 0, don't predict the exit edge.
10216 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10218 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
10219 in asm_fprintf with reg_names.
10220 (aarch64_print_operand_address): Likewise.
10221 (aarch64_return_addr): Likewise.
10222 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
10224 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10226 * config/pa/pa.h (VAL_U6_BITS_P): Define.
10227 (INT_U6_BITS): Likewise.
10228 * config/pa/predicates.md (uint6_operand): New predicate.
10229 (shift5_operand, shift6_operand): Likewise.
10230 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
10232 (lshrdi3): Use shift6_operand.
10233 (shrpsi4, shrpdi4): New insn patterns.
10234 (extzv): Delete expander.
10235 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
10236 predicates in unamed zero extract patterns. Tighten common constraint.
10237 (extv): Delete expander.
10238 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
10239 predicates in unamed sign extract patterns. Tighten common constraint.
10240 (insv): Delete expander.
10241 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
10242 predicates in unamed insert patterns. Tighten common constraint.
10243 Change uint32_operand predicate to uint6_operand predicate in unamed
10244 DImode pattern to insert constant values of type 1...1xxxx.
10246 2013-01-04 Jan Hubicka <jh@suse.cz>
10248 PR tree-optimization/55823
10249 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
10252 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10253 Uros Bizjak <ubizjak@gmail.com>
10255 PR rtl-optimization/55845
10256 * df-problems.c (can_move_insns_across): Stop scanning at
10257 volatile_insn_p source instruction or give up if
10258 across_from .. across_to range contains any volatile_insn_p
10261 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10263 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
10264 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
10266 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
10267 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
10269 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10272 * asan.c (asan_clear_shadow): New function.
10273 (asan_emit_stack_protection): Use it.
10275 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
10277 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
10278 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
10279 with tab instead of space.
10281 2013-01-08 Nick Clifton <nickc@redhat.com>
10283 * config/rl78/rl78.c (rl78_expand_prologue): Always select
10284 register bank 0 at the start of an interrupt handler.
10285 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
10288 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10290 * config/aarch64/aarch64-simd.md
10291 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
10292 (aarch64_simd_bsl): Likewise.
10293 (aarch64_vcond_internal<mode>): Likewise.
10294 (vcond<mode><mode>): Likewise.
10295 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
10296 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
10298 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
10300 * config/aarch64/aarch64-builtins.c
10301 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
10303 2013-01-08 Martin Jambor <mjambor@suse.cz>
10306 * tree-sra.c (analyze_access_subtree): Return true also after
10307 potentially creating a debug-only replacement.
10309 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10311 PR middle-end/55890
10312 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
10314 PR tree-optimization/54120
10315 * tree-vrp.c (range_fits_type_p): Don't allow
10316 src_precision < precision from signed vr to unsigned_p
10317 if vr->min or vr->max is negative.
10318 (simplify_float_conversion_using_ranges): Test can_float_p
10319 against CODE_FOR_nothing.
10321 2013-01-08 Jakub Jelinek <jakub@redhat.com>
10322 Richard Biener <rguenther@suse.de>
10324 PR middle-end/55851
10325 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
10326 types instead of just INTEGER_TYPE types.
10328 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
10330 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
10333 2013-01-07 Steve Ellcey <sellcey@mips.com>
10336 * config/mips/mips.opt: Change mad to mmad to match documentation.
10338 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10341 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
10342 .progmemx.data now.
10344 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10347 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
10348 (avr_addrspace_t): Add .section_name field.
10349 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
10351 (avr_addrspace): Same. Initialize .section_name. Remove last
10352 NULL entry. Put __memx into .progmemx.data.
10353 (progmem_section_prefix): Remove.
10354 (avr_asm_init_sections): No need to initialize progmem_section.
10355 (avr_asm_named_section): Use avr_addrspace[].section_name to get
10356 section name prefix.
10357 (avr_asm_select_section): Ditto. And use get_unnamed_section to
10358 retrieve the progmem section.
10359 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
10360 boundary to run over avr_addrspace[].
10361 (avr_register_target_pragmas): Ditto.
10363 2013-01-06 Jakub Jelinek <jakub@redhat.com>
10365 * varasm.c (output_constant_def_contents): For asan_protect_global
10366 protected strings, adjust DECL_ALIGN if needed, before testing for
10368 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
10369 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
10371 (output_object_block): For asan protected decls, emit asan padding
10372 after their contents.
10373 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
10374 (asan_finish_file): Test it here instead.
10376 2013-01-07 Nick Clifton <nickc@redhat.com>
10377 Matthias Klose <doko@debian.org>
10378 Doug Kwan <dougkwan@google.com>
10379 H.J. Lu <hongjiu.lu@intel.com>
10382 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
10384 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
10386 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
10388 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
10390 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
10392 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10395 * doc/install.texi (Cross-Compiler-Specific Options): Document
10398 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
10400 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
10401 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
10402 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
10403 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
10404 vqmovun_high_s64): Fix source operand number and update copyright.
10406 2013-01-07 Richard Biener <rguenther@suse.de>
10408 PR middle-end/55890
10409 * gimple.h (gimple_call_builtin_p): New overload.
10410 * gimple.c (validate_call): New function.
10411 (gimple_call_builtin_p): Likewise.
10412 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10413 Use gimple_call_builtin_p.
10414 (find_func_clobbers): Likewise.
10415 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
10416 (strlen_optimize_stmt): Likewise.
10418 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10420 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
10421 (vld1q_dup_*): Likewise.
10422 (vld1_*): Likewise.
10423 (vld1q_*): Likewise.
10424 (vld1_lane_*): Likewise.
10425 (vld1q_lane_*): Likewise.
10427 2013-01-07 Richard Biener <rguenther@suse.de>
10429 * lto-streamer.h (LTO_minor_version): Bump to 2.
10431 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
10433 * config/aarch64/aarch64-protos.h
10434 (aarch64_const_double_zero_rtx_p): Rename to...
10435 (aarch64_float_const_zero_rtx_p): ...this.
10436 (aarch64_float_const_representable_p): New.
10437 (aarch64_output_simd_mov_immediate): Likewise.
10438 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
10439 move immediate case.
10440 * config/aarch64/aarch64.c
10441 (aarch64_const_double_zero_rtx_p): Rename to...
10442 (aarch64_float_const_zero_rtx_p): ...this.
10443 (aarch64_print_operand): Allow printing of new constants.
10444 (aarch64_valid_floating_const): New.
10445 (aarch64_legitimate_constant_p): Check for valid floating-point
10447 (aarch64_simd_valid_immediate): Likewise.
10448 (aarch64_vect_float_const_representable_p): New.
10449 (aarch64_float_const_representable_p): Likewise.
10450 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
10451 (aarch64_output_simd_mov_immediate): New.
10452 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
10453 (*movdf_aarch64): Likewise.
10454 * config/aarch64/constraints.md (Ufc): New.
10455 (Y): call aarch64_float_const_zero_rtx.
10456 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
10458 2013-01-07 Richard Biener <rguenther@suse.de>
10460 PR tree-optimization/55888
10461 PR tree-optimization/55862
10462 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
10463 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
10464 not if it is contained therein.
10466 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10468 * config/avr/t-avr: Typo.
10470 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
10473 * config/avr/t-avr: Don't automatically rebuild
10474 $(srcdir)/config/avr/t-multilib
10475 $(srcdir)/config/avr/avr-tables.opt
10476 $(srcdir)/doc/avr-mmcu.texi
10477 (avr-mcus): New phony target to build them on request.
10478 (s-avr-mlib, s-avr-mmcu-texi): Remove.
10479 * avr/avr-mcus.def: Adjust comments.
10481 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
10483 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
10485 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10487 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
10489 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
10491 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
10493 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
10495 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
10496 to generate profiling.
10497 * config/rs6000/aix64.h (LIB_SPEC): Same.
10499 2013-01-04 Andrew Pinski <apinski@cavium.com>
10501 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
10503 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10505 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
10507 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
10509 (ix86_expand_move): Ditto.
10510 (ix86_zero_extend_to_Pmode): Ditto.
10511 (ix86_expand_call): Ditto.
10512 (ix86_expand_special_args_builtin): Ditto.
10513 (ix86_expand_builtin): Ditto.
10515 2013-01-04 Richard Biener <rguenther@suse.de>
10517 PR tree-optimization/55862
10518 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
10519 translating them through PHI nodes.
10521 2013-01-04 Martin Jambor <mjambor@suse.cz>
10523 PR tree-optimization/55755
10524 * tree-sra.c (sra_modify_assign): Do not check that an access has no
10525 children when trying to avoid producing a VIEW_CONVERT_EXPR.
10527 2013-01-04 Marek Polacek <polacek@redhat.com>
10529 PR middle-end/55859
10530 * opts.c (default_options_optimization): Clarify error message.
10532 2013-01-04 Richard Biener <rguenther@suse.de>
10534 PR middle-end/55863
10535 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
10538 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10541 * config/pa/pa.md (movsi): Revert previous change.
10542 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
10545 2013-01-03 Richard Henderson <rth@redhat.com>
10547 * config/i386/i386.c (ix86_expand_move): Always assign to op1
10548 after eliminating TLS symbols.
10550 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
10553 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
10554 * graphite-poly.c (debug_gmp_value): Likewise.
10556 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
10559 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
10560 selected code model, define __code_mode_small__, __code_model_medium__,
10561 __code_model_large__, __code_model_32__ or __code_model_kernel__.
10562 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
10563 xchg temporary register with %k. Declare temporary register as
10565 [__x86_64__]: For medium and large code models, preserve %rbx register.
10567 2013-01-03 Richard Biener <rguenther@suse.de>
10569 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
10570 (dump_subscript): Adjust.
10571 (finalize_ddr_dependent): Do not dump redundant info.
10572 (analyze_siv_subscript): Adjust.
10573 (subscript_dependence_tester): Likewise.
10574 (compute_affine_dependence): Likewise.
10576 2013-01-03 Richard Biener <rguenther@suse.de>
10579 2013-01-03 Richard Biener <rguenther@suse.de>
10581 PR tree-optimization/55857
10582 * tree-vect-stmts.c (vectorizable_load): Do not setup
10583 re-alignment for invariant loads.
10585 2013-01-02 Richard Biener <rguenther@suse.de>
10587 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10588 invariant load do not generate a vector load from the scalar location.
10590 2013-01-03 Richard Biener <rguenther@suse.de>
10592 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
10593 for not vectorizing.
10594 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
10595 not build INDIRECT_REFs, call get_name once only.
10596 (vect_create_data_ref_ptr): Likewise. Dump base object kind
10597 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
10599 2013-01-03 Richard Biener <rguenther@suse.de>
10601 PR tree-optimization/55857
10602 * tree-vect-stmts.c (vectorizable_load): Do not setup
10603 re-alignment for invariant loads.
10605 2013-01-03 Richard Biener <rguenther@suse.de>
10608 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
10609 prefer a built-in decl.
10611 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10613 * gcc.c (process_command): Update copyright notice dates.
10614 * gcov.c (print_version): Likewise.
10615 * gcov-dump.c (print_version): Likewise.
10617 PR rtl-optimization/55838
10618 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
10619 iv0.step, iv1.step and step.
10621 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10622 Marc Glisse <marc.glisse@inria.fr>
10624 PR tree-optimization/55832
10625 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
10626 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
10627 integer_{one,zero}_node.
10629 2013-01-03 Jakub Jelinek <jakub@redhat.com>
10632 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
10633 * var-tracking.c (reverse_op): Don't add reverse ops to
10634 VALUEs that have already
10635 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
10637 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10639 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
10641 2013-01-02 Teresa Johnson <tejohnson@google.com>
10643 * dumpfile.c (dump_loc): Print filename with location.
10644 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
10645 new location_t parameter to emit complete unroll message with
10646 new dump framework.
10647 (canonicalize_loop_induction_variables): Compute loops location
10648 and pass to try_unroll_loop_completely.
10649 * loop-unroll.c (report_unroll_peel): New function.
10650 (peel_loops_completely): Use new dump format with location
10651 for main dumpfile message, and invoke report_unroll_peel on success.
10652 (decide_unrolling_and_peeling): Ditto.
10653 (decide_peel_once_rolling): Remove old dumpfile message subsumed
10654 by report_unroll_peel.
10655 (decide_peel_completely): Ditto.
10656 (decide_unroll_constant_iterations): Ditto.
10657 (decide_unroll_runtime_iterations): Ditto.
10658 (decide_peel_simple): Ditto.
10659 (decide_unroll_stupid): Ditto.
10660 * cfgloop.c (get_loop_location): New function.
10661 * cfgloop.h (get_loop_location): Declare.
10663 2013-01-02 Sriraman Tallam <tmsriram@google.com>
10665 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
10668 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10670 PR middle-end/55198
10671 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
10672 BLKmode objects when EXPAND_MEMORY is specified.
10674 2013-01-02 Sriraman Tallam <tmsriram@google.com>
10676 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
10678 (fold_builtin_cpu): Do not share cpu model decls across statements.
10680 2013-01-02 Jason Merrill <jason@redhat.com>
10683 * tree.c (build_array_type_1): Revert earlier change.
10685 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
10687 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
10689 * config/aarch64/aarch64-tune.md: Re-generate.
10691 2013-01-02 Richard Biener <rguenther@suse.de>
10693 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
10694 invariant load do not generate a vector load from the scalar location.
10696 2013-01-02 Richard Biener <rguenther@suse.de>
10699 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
10700 * configure: Regenerate.
10702 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10704 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
10705 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
10706 (expand_builtin_int_roundingfn_2): Keep the original target around
10707 for the fallback case.
10709 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10711 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
10712 to be clear for sign changes.
10714 2013-01-01 Jan Hubicka <jh@suse.cz>
10716 * ipa-inline-analysis.c: Fix formatting.
10718 2013-01-01 Jakub Jelinek <jakub@redhat.com>
10720 PR tree-optimization/55831
10721 * tree-vect-loop.c (get_initial_def_for_induction): Use
10722 gsi_after_labels instead of gsi_start_bb.
10724 Copyright (C) 2013 Free Software Foundation, Inc.
10726 Copying and distribution of this file, with or without modification,
10727 are permitted in any medium without royalty provided the copyright
10728 notice and this notice are preserved.