1 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
3 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
6 2011-06-30 Richard Guenther <rguenther@suse.de>
8 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
9 * tree-ssa-structalias.c (create_variable_info_for): Do not
10 add initial constraints for non-var-decls. Properly handle
11 globals in other ltrans partitions.
12 (intra_create_variable_infos): Manually create constraints for
13 the fake no-alias parameter.
14 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
15 and assert there are no clones.
17 2011-06-30 Richard Guenther <rguenther@suse.de>
19 PR tree-optimization/46787
20 * tree-data-ref.c (dr_address_invariant_p): Remove.
21 (find_data_references_in_stmt): Invariant accesses are ok now.
22 * tree-vect-stmts.c (vectorizable_load): Handle invariant
24 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27 2011-06-30 Martin Jambor <mjambor@suse.cz>
29 PR tree-optimization/49094
30 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
31 (build_accesses_from_assign): Use it.
33 2011-06-30 Jakub Jelinek <jakub@redhat.com>
35 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
36 handling of BUILT_IN_ASSUME_ALIGNED.
39 * dwarf2out.c (output_abbrev_section): Don't return early
40 if abbrev_die_table_in_use is 1.
41 (dwarf2out_finish): Instead don't call output_abbrev_section
42 nor emit abbrev_section_label in that case.
44 2011-06-30 Nick Clifton <nickc@redhat.com>
46 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
49 2011-06-30 Jakub Jelinek <jakub@redhat.com>
51 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
52 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
54 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
56 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
57 both pattern and original statements if necessary.
58 (vect_transform_loop): Likewise.
59 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
60 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
61 Mark the pattern statement only if the original statement doesn't
63 (process_use): Call vect_mark_relevant with additional parameter.
64 (vect_mark_stmts_to_be_vectorized): Likewise.
65 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
66 (vect_analyze_stmt): Handle both pattern and original statements
68 (vect_transform_stmt): Don't store vectorized pattern statement
69 in the original statement.
70 (vect_is_simple_use_1): Use related pattern statement only if the
71 original statement is irrelevant.
72 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
74 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
76 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
78 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
80 (TARGET_AVX128_OPTIMAL): New definition.
81 * config/i386/i386.c (initial_ix86_tune_features): Initialize
82 X86_TUNE_AVX128_OPTIMAL entry.
83 (ix86_option_override_internal): Enable the generation
84 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
85 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
86 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
88 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
90 PR tree-optimization/49539
91 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
92 names by means of stmt_references_abnormal_ssa_name.
93 (associate_plusminus): Call can_propagate_from before propagating
94 from definition statements.
95 (ssa_forward_propagate_and_combine): Remove superfluous newline.
97 2011-06-29 Richard Guenther <rguenther@suse.de>
99 * doc/invoke.texi: Document -scev dump modifier.
100 * tree-pass.h (TDF_SCEV): New dump flag.
101 * tree-dump.c (dump_option_value_in): Add scev.
102 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
103 * tree-scalar-evolution.c: Likewise.
105 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
107 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
108 (cxa_type_match): Correct declaration.
109 (__gnu_unwind_pr_common): Reconstruct
110 additional indirection when __cxa_type_match returns
111 succeeded_with_ptr_to_base.
113 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
115 PR rtl-optimization/49114
116 * reload.c (struct replacement): Remove SUBREG_LOC member.
117 (push_reload): Do not set it.
118 (push_replacement): Likewise.
119 (subst_reload): Remove dead code.
120 (copy_replacements): Remove assertion.
121 (copy_replacements_1): Do not handle SUBREG_LOC.
122 (move_replacements): Likewise.
123 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
124 Detect subregs via recursive descent instead of via SUBREG_LOC.
126 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
128 * config/avr/avr.c (avr_encode_section_info): Dispatch to
129 default_encode_section_info.
131 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
133 PR tree-optimization/49545
134 * builtins.c (get_object_alignment_1): Update function comment.
135 Do not use DECL_ALIGN for functions, but test
136 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
137 * fold-const.c (get_pointer_modulus_and_residue): Don't check
139 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
141 2011-06-29 Jakub Jelinek <jakub@redhat.com>
144 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up
145 for non-MODE_INT modes instead of asserting the mode has MODE_INT
148 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
151 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
152 about uninitialized data attributed 'progmem' from here...
153 (avr_encode_section_info): ...to this new function.
154 (TARGET_ENCODE_SECTION_INFO): New define.
155 (avr_section_type_flags): For data in ".progmem.data", remove
156 section flag SECTION_WRITE.
158 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
160 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
162 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
163 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
164 (__umulhisi3): Ditto.
165 * config/avr/avr.md (mulhisi3): New insn expender.
166 (umulhisi3): New insn expender.
167 (*mulhisi3_call): New insn.
168 (*umulhisi3_call): New insn.
170 2011-06-28 Joseph Myers <joseph@codesourcery.com>
172 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
174 2011-06-28 Richard Henderson <rth@redhat.com>
176 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
177 all code and arguments that handled pushes. Update all callers.
179 2011-06-28 Richard Henderson <rth@redhat.com>
181 * config/arm/arm.c (arm_output_function_prologue): Don't call
182 thumb1_output_function_prologue.
183 (arm_expand_prologue): Avoid dead store.
184 (number_of_first_bit_set): Use ctz_hwi.
185 (thumb1_emit_multi_reg_push): New.
186 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
187 to emit the entire prologue as rtl.
188 (thumb1_output_interwork): Split out from
189 thumb1_output_function_prologue.
190 (thumb1_output_function_prologue): Remove.
191 (arm_attr_length_push_multi): Handle thumb1.
192 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
193 (prologue_thumb1_interwork): New.
194 (*push_multi): Allow thumb1; use push_mult_memory_operand.
195 * config/arm/predicates.md (push_mult_memory_operand): New.
197 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
199 * config/sparc/sync.md (*stbar): Delete.
200 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
202 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
204 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
206 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
208 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
209 (TARGET_64BIT_DEFAULT): Define.
210 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
212 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
214 2011-06-28 Joseph Myers <joseph@codesourcery.com>
216 * common.opt (in_lto_p): New Variable entry.
217 * flags.h (in_lto_p): Move to common.opt.
218 * gcc.c: Include params.h.
219 (set_option_handlers): Also use common_handle_option and
220 target_handle_option.
221 (main): Call global_init_params, finish_params and
223 * opts.c (debug_type_names): Move from toplev.c.
224 (print_filtered_help): Access quiet_flag through opts pointer.
225 (common_handle_option): Return early in the driver for some
226 options. Access in_lto_p, dwarf_version and
227 warn_maybe_uninitialized through opts pointer.
228 * toplev.c (in_lto_p): Move to common.opt.
229 (debug_type_names): Move to opts.c.
230 * Makefile.in (OBJS): Remove opts.o.
231 (OBJS-libcommon-target): Add opts.o.
232 (gcc.o): Update dependencies.
234 2011-06-28 Kai Tietz <ktietz@redhat.com>
236 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve
239 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
241 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
242 with '=' constraint modifier.
243 (*divdf3_vfp): Likewise.
244 ("*mulsf3_vfp"): Likewise.
245 ("*muldf3_vfp"): Likewise.
246 ("*mulsf3negsf_vfp"): Likewise.
247 ("*muldf3negdf_vfp"): Likewise.
249 2011-06-28 Nick Clifton <nickc@redhat.com>
251 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
252 relaxation when performing an incremental link.
254 2011-06-28 Kai Tietz <ktietz@redhat.com>
256 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
257 within BB from last to first.
259 2011-06-28 Joseph Myers <joseph@codesourcery.com>
261 * genattr-common.c: New. Based on genattr.c.
262 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
263 (MOSTLYCLEANFILES): Add insn-attr-common.h.
264 (opts.o): Update dependencies.
265 (.PRECIOUS): Add insn-attr-common.h.
266 (simple_rtl_generated_h): Add insn-attr-common.h.
267 (build/genattr-common.o): New.
268 (genprogrtl): Add attr-common.
269 * genattr.c (main): Include insn-attr-common.h. Don't generate
270 definitions of DELAY_SLOTS or INSN_SCHEDULING.
271 * opts.c: Include insn-attr-common.h instead of rtl.h and
274 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
276 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
277 avr-*-* and avr-*-rtems* targets.
279 * config/avr/elf.h: New file.
280 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
281 (TARGET_ASM_SELECT_SECTION): Define.
282 (INIT_SECTION_ASM_OP): Undefine.
283 (FINI_SECTION_ASM_OP): Undefine.
284 (READONLY_DATA_SECTION_ASM_OP): Undefine.
285 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
286 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
288 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
289 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
290 (MAX_OFILE_ALIGNMENT): Move to elf.h.
291 (STRING_LIMIT): Move to elf.h.
292 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
293 (ASM_DECLARE_OBJECT_NAME): Remove.
295 (ASM_OUTPUT_SKIP): Remove.
296 (DWARF2_DEBUGGING_INFO): Remove.
297 (OBJECT_FORMAT_ELF): Remove.
298 (USER_LABEL_PREFIX): Remove.
299 (ASM_OUTPUT_EXTERNAL): Remove.
300 (ASM_OUTPUT_ASCII): Remove.
301 (TYPE_ASM_OP): Remove.
302 (SIZE_ASM_OP): Remove.
303 (WEAK_ASM_OP): Remove.
304 (STRING_ASM_OP): Remove.
305 (SET_ASM_OP): Remove.
306 (ASM_WEAKEN_LABEL): Remove.
307 (TYPE_OPERAND_FMT): Remove.
308 (ASM_DECLARE_FUNCTION_SIZE): Remove.
309 (ASM_FINISH_DECLARE_OBJECT): Remove.
310 (NO_DOLLAR_IN_LABEL): Remove.
311 (ASM_GENERATE_INTERNAL_LABEL): Remove.
312 (ASM_OUTPUT_CASE_LABEL): Remove.
313 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
314 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
315 (gas_output_ascii): Remove.
316 (gas_output_limited_string): Remove.
317 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
318 * config/avr/avr-protos.h
319 (gas_output_ascii): Remove prototye.
320 (gas_output_limited_string): Remove prototype.
322 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
325 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
328 2011-06-27 Jan Hubicka <jh@suse.cz>
330 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
331 node instead of references in node.
333 2011-06-27 Richard Henderson <rth@redhat.com>
335 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
336 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
339 2011-06-27 Jakub Jelinek <jakub@redhat.com>
341 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
343 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
344 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
345 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
346 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
347 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
348 (evaluate_stmt, execute_fold_all_builtins): Handle
349 BUILT_IN_ASSUME_ALIGNED.
350 * tree-ssa-dce.c (propagate_necessity): Likewise.
351 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
352 call_may_clobber_ref_p_1): Likewise.
353 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
354 (expand_builtin_assume_aligned): New function.
355 * doc/extend.texi (__builtin_assume_aligned): Document.
358 * cselib.c (promote_debug_loc): If cselib_preserve_constants
359 and l has two DEBUG_INSN owned locs instead of just one, adjust
360 the second location's setting_insn too.
362 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
365 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
367 2011-06-27 Nick Clifton <nickc@redhat.com>
369 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to
370 convert bit position of highest bit set into a count of the high
373 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
375 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
377 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
380 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
383 2011-06-27 Richard Guenther <rguenther@suse.de>
385 PR tree-optimization/49394
386 * passes.c (execute_one_pass): Restore current_pass after
387 applying IPA transforms.
389 2011-06-27 Kai Tietz <ktietz@redhat.com>
391 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
392 out of type precision after operation.
393 (find_bswap): Take for limit value the integer auto-
394 promotion into account.
396 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
398 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
399 forward scan as well.
401 2011-06-27 Tristan Gingold <gingold@adacore.com>
404 * config/vms/vms-protos.h: New file.
405 * config/vms/vms-crtlmap.map: New file.
406 * config/vms/vms.c: New file.
407 * config/vms/make-crtlmap.awk: New file.
408 * config/vms/vms-crtl.h: File removed.
409 * config/vms/vms-crtl-64.h: File removed.
410 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
411 * config/alpha/vms64.h: Do not include vms-crtl-64.h
412 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
413 clear some builtins on VMS. Calls vms_patch_builtins.
414 (avms_asm_output_external): Remove.
415 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
416 (struct crtl_name_spec): Remove
417 (DO_CTRL_NAMES): Remove.
418 * config/ia64/vms.h (struct crtl_name_spec): Remove
419 (DO_CTRL_NAMES): Remove.
420 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
421 clear some builtins on VMS. Calls vms_patch_builtins.
422 (ia64_asm_output_external): Remove DO_CRTL_NAME.
423 * config/ia64/vms64.h: Do not include vms-crtl-64.h
424 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles,
427 2011-06-27 Tristan Gingold <gingold@adacore.com>
429 * config/alpha/alpha.c (alpha_end_function): Always generate .end
432 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
434 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
435 the function receives nonlocal gotos.
437 2011-06-27 Richard Guenther <rguenther@suse.de>
439 PR tree-optimization/49536
440 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
441 For non-scalar inner types use a scalar type according to
442 the scalar inner mode.
444 2011-06-27 Richard Guenther <rguenther@suse.de>
446 PR tree-optimization/49365
447 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
449 2011-06-27 Richard Guenther <rguenther@suse.de>
451 PR tree-optimization/49169
452 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
453 the alignment of function decls.
455 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
458 * config/darwin.c (darwin_mergeable_string_section): Place string
459 constants in '.cstring' rather than '.const' when CF/NSStrings are
462 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
464 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
465 (emit_save_register_window): Likewise.
466 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
467 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
468 Swap back %o7/%i7 in register naming.
470 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
473 * config/darwin.c (darwin_override_options): Improve warning when
474 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
475 is given with fpie/fPIE.
476 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
477 * config/darwin9.h (PIE_SPEC): New.
479 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
481 * timevar.c (timevar_print): Increase width for display of timevar
484 2011-06-24 Jakub Jelinek <jakub@redhat.com>
487 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
488 instead of TYPE_CHAIN for chain_next for types.
490 2011-06-24 Richard Henderson <rth@redhat.com>
492 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
493 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
494 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
495 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
496 (sparc_flat_expand_prologue): Emit individual instructions
497 instead of one of the above.
499 2011-06-24 Easwaran Raman <eraman@google.com>
501 PR rtl-optimization/49429
503 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
504 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
505 used to copy y into x.
506 * calls.c (initialize_argument_information): Mark
507 an argument addressable if it is passed by invisible reference.
508 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
509 if it is passed by reference.
511 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
513 PR rtl-optimization/49504
514 * rtlanal.c (nonzero_bits1): Properly handle addition or
515 subtraction of a pointer in Pmode if pointers extend unsigned.
516 (num_sign_bit_copies1): Likewise.
518 2011-06-24 Martin Jambor <mjambor@suse.cz>
520 PR tree-optimizations/49516
521 * tree-sra.c (sra_modify_assign): Choose the safe path for
522 aggregate copies if we also did scalar replacements.
524 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
527 * config/arm/predicates.md (add_operator): New.
528 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage
531 2011-06-24 Andi Kleen <ak@linux.intel.com>
533 * tree-sra.c (type_internals_preclude_sra_p): Add msg
534 parameter. Split up ifs and report reason in *msg.
536 (find_var_candiate): Add msg variable.
537 Split up ifs and report reason to reject.
538 (find_param_candidates): Add msg variable.
539 Pass msg to type_internals_preclude_sra_p.
541 2011-06-23 Jeff Law <law@redhat.com>
544 * reload.h (reload): Change to return a bool.
545 * ira.c (ira): If requested by reload, run a fast DCE pass after
546 reload has completed. Fix comment typo.
547 * reload1.c (need_dce): New file scoped static.
548 (reload): Set reload_completed here. Return whether or not a DCE
549 pass after reload is needed.
550 (delete_dead_insn): Set need_dce as needed.
553 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
554 to detect threading through joiner block. If there was already
555 an edge to the new target, then do not change the PHI nodes.
557 2011-06-23 Jakub Jelinek <jakub@redhat.com>
559 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
560 get_pointer_alignment to see if base isn't sufficiently aligned.
562 2011-06-23 Jan Hubicka <jh@suse.cz>
564 PR tree-optimize/49373
565 * tree-pass.h (all_late_ipa_passes): Declare.
566 * cgraphunit.c (init_lowered_empty_function): Fix properties.
567 (cgraph_optimize): Execute late passes; remove unreachable funcions
568 after materialization.
569 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
571 * passes.c (all_late_ipa_passes): Declare.
572 (dump_passes, register_pass): Handle late ipa passes.
573 (init_optimization_passes): Move ipa_pta to late passes; schedule
574 fixup_cfg at beggining of all_passes.
575 (apply_ipa_transforms): New function.
576 (execute_one_pass): When doing simple ipa pass, apply all transforms.
578 2011-06-23 Joseph Myers <joseph@codesourcery.com>
580 * params.c: Include common/common-target.h. Don't include tm.h.
581 (lang_independent_params): Move from toplev.c.
582 (global_init_params): New.
583 * params.h (global_init_params): Declare.
584 * target.def (default_params): Move to common-target.def.
585 * toplev.c (lang_independent_options): Remove.
586 (lang_independent_params): Move to params.c.
587 (general_init): Use global_init_params.
588 * common/common-target.def (option_default_params): Move from
590 * common/config/ia64/ia64-common.c: Include params.h.
591 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
593 * common/config/rs6000/rs6000-common.c: Include params.h.
594 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
596 * common/config/sh/sh-common.c: Include params.h.
597 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
599 * common/config/spu/spu-common.c: Include params.h.
600 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
602 * config/ia64/ia64.c (ia64_option_default_params,
603 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
604 * config/rs6000/rs6000.c (rs6000_option_default_params,
605 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
606 * config/sh/sh.c (sh_option_default_params,
607 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
608 * config/spu/spu.c (spu_option_default_params,
609 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
610 * Makefile.in (OBJS): Remove params.o.
611 (OBJS-libcommon-target): Add params.o.
612 (params.o, $(common_out_object_file)): Update dependencies.
613 * doc/tm.texi: Regenerate.
615 2011-06-23 Alan Modra <amodra@gmail.com>
618 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
619 invocation for 2011-06-09 changes.
621 2011-06-22 Jakub Jelinek <jakub@redhat.com>
624 * omp-low.c (expand_omp_for_static_nochunk): Only
625 use n ceil/ nthreads size for the first
626 n % nthreads threads in the team instead of
627 all threads except for the last few ones which
628 get less work or none at all.
631 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
634 2011-06-22 Richard Guenther <rguenther@suse.de>
636 PR tree-optimization/49493
637 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
638 Refer to the alias target of variables.
639 (associate_varinfo_to_alias_1): Remove.
640 (ipa_pta_execute): Do not associate aliases with anything.
641 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
642 (cgraph_function_node): Likewise.
643 (cgraph_function_or_thunk_node): Likewise.
644 (varpool_variable_node): Likewise.
646 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
648 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect
650 * config.gcc (arm*-*-linux*): Default to gnu tls.
651 (arm*-*-*): Add --with-tls option.
652 (all_defaults): Add 'tls'.
654 2011-06-22 Richard Henderson <rth@redhat.com>
656 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
657 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
658 (dwarf2out_frame_debug_cfa_window_save): Rename from
659 dwarf2out_window_save; make static.
660 * tree.h (dwarf2out_window_save): Don't declare.
662 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
663 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
664 (emit_save_register_window): Rename from gen_save_register_window;
665 emit the insn and add REG_CFA_* notes.
666 (sparc_expand_prologue): Update to match.
667 * config/sparc/sparc.md (save_register_window_1): Simplify from
668 save_register_window<P:mode>.
670 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
673 * config/i386/i386.md (*lea_general_2): Always allow SImode.
674 (*lea_general_2_zext): Likewise.
675 (imul to lea peepholes): Use const359_operand and check
676 TARGET_PARTIAL_REG_STALL.
678 * config/i386/predicates.md (const359_operand): New.
680 2011-06-22 Michael Matz <matz@suse.de>
682 * cgraphunit.c (assemble_thunk): Use correct return type.
684 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
685 Dmitry Melnik <dm@ispras.ru>
687 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
688 (neon_output_shift_immediate): Ditto.
689 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
691 (neon_output_shift_immediate): Ditto.
692 * config/arm/neon.md (vashl<mode>3): Modified constraint.
693 (vashr<mode>3_imm): New insn pattern.
694 (vlshr<mode>3_imm): Ditto.
695 (vashr<mode>3): Modified constraint.
696 (vlshr<mode>3): Ditto.
697 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
699 (imm_for_neon_rshift_operand): Ditto.
700 (imm_lshift_or_reg_neon): Ditto.
701 (imm_rshift_or_reg_neon): Ditto.
703 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
705 2011-06-22 Jakub Jelinek <jakub@redhat.com>
707 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
708 builtin calls even if likelyvalue is not CONSTANT.
709 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
710 Return get_value_for_expr of first operand
711 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
712 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
713 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
714 their non-checking counterparts.
715 (call_may_clobber_ref_p_1): Likewise.
716 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
717 like their non-checking counterparts.
718 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
719 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
720 like their non-checking counterparts.
721 (find_func_clobbers): Likewise.
722 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
723 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
725 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
726 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
727 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
728 of base type reference as argument.
729 (resolve_addr_in_expr): Likewise. Fix keep computation.
730 (convert_descriptor_to_signed): Renamed to...
731 (convert_descriptor_to_mode): ... this. For wider types convert
732 to unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to
734 (typed_binop): New function.
735 (scompare_loc_descriptor, ucompare_loc_descriptor,
736 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
737 default to unsigned type instead of signed.
740 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
741 (gimple_build_debug_source_bind_stat): New prototype.
742 (gimple_build_debug_source_bind): Define.
743 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
744 gimple_debug_source_bind_get_value,
745 gimple_debug_source_bind_get_value_ptr,
746 gimple_debug_source_bind_set_var,
747 gimple_debug_source_bind_set_value): New inlines.
748 * gimple.c (gimple_build_debug_source_bind_stat): New function.
749 * gimple-pretty-print.c (dump_gimple_debug): Handle
750 GIMPLE_DEBUG_SOURCE_BIND.
751 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
752 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
753 * tree-parloops.c (eliminate_local_variables,
754 separate_decls_in_region): Likewise.
755 (separate_decls_in_region_debug): Renamed from
756 separate_decls_in_region_debug_bind. Handle
757 gimple_debug_source_bind_p.
758 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
760 (DECL_HAS_DEBUG_ARGS_P): Define.
761 (struct tree_function_decl): Add has_debug_args_flag field.
762 * tree.c (debug_args_for_decl): New variable.
763 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
764 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
765 (rewrite_debug_stmt_uses): New function.
766 (rewrite_stmt): Use it to rewrite debug stmt uses.
767 * rtl.def (DEBUG_PARAMETER_REF): New.
768 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
769 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
771 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
772 * print-rtl.c (print_rtx): Likewise.
773 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
774 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
775 debug stmts in the first bb.
776 * tree-inline.c (remap_ssa_name): If remapping default def
777 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
778 a source bind debug stmt.
779 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
780 (maybe_move_debug_stmts_to_successors): Likewise.
781 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
782 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
783 debug args vector from old_decl to new_decl.
784 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
785 or modified parameters, add debug bind stmts before call
786 setting DEBUG_EXPR_DECL which is remembered in debug args
788 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
789 on DECL_DEBUG_EXPRs from debug args vector.
790 (expand_debug_source_expr): New function.
791 (expand_debug_locations): Use it for source bind insns.
792 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
793 * var-tracking.c (prepare_call_arguments): Add debug args
794 to call_arguments if any.
795 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
796 output_loc_operands, output_loc_operands_raw,
797 resolve_addr_in_expr, compare_loc_operands): Handle
798 DW_OP_GNU_parameter_ref.
799 (get_ref_die_offset, parameter_ref_descriptor): New functions.
800 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
801 (gen_subprogram_die): Handle parameters identified by
804 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
806 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
807 * doc/install.texi (Configuration): Document --with-tls.
808 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
809 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
810 (arm_tls_descseq_addr): New.
811 (legitimize_tls_address): Add tlsdesc support.
812 (arm_cannot_copy_insn_p): Check for tlscall.
813 (arm_emit_tls_decoration): Likewise.
814 * config/arm/arm.h (TARGET_GNU2_TLS): New.
815 (OPTION_DEFAULT_SPECS): Add with-tls support.
816 * config/arm/arm.md (R1_REGNUM): Define.
818 * config/arm/arm.opt (tls_type): New enumeration type and values.
819 (mtls-dialect): New switch.
820 * config/arm/arm-opts.h (enum tls_type): New.
822 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
824 * attribs.c (register_attribute): Added assert to check that all
825 attribute specs are registered with a name that is not empty and
826 does not start with '_'.
827 (decl_attributes): Avoid the lookup of the "naked" attribute spec
828 if the function has no attributes.
829 * tree.c (is_attribute_with_length_p): Removed.
830 (is_attribute_p): Removed.
831 (private_is_attribute_p): New.
832 (private_lookup_attribute): New.
833 (lookup_attribute): Removed.
834 (lookup_ident_attribute): New.
835 (remove_attribute): Require the first argument to be in the form
836 'text', not '__text__'. Updated asserts.
837 (merge_attributes): Use lookup_ident_attributes instead of
839 (merge_dllimport_decl_attributes): Use remove_attribute.
840 (attribute_list_contained): Likewise.
841 (attribute_list_equal): Immediately return 1 if the arguments are
843 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
844 'int'. Require the first argument to be in the form 'text', not
845 '__text__'. Require the second argument to be an identifier.
846 (lookup_attribute): Made inline. Require the first argument to be
847 in the form 'text', not '__text__'.
848 (private_is_attribute_p, private_lookup_attribute): New.
851 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
853 * builtins.c: Add sync_ or SYNC__ to builtin names.
854 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
855 * omp-low.c: Add sync_ or SYNC__ to builtin names.
857 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
860 * config/avr/avr.md (extzv): New expander.
862 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
863 * config/avr/constraints.md (C04): New constraint.
864 * doc/md.texi (Machine Constraints): Document it.
866 2011-06-21 Jakub Jelinek <jakub@redhat.com>
869 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
870 unsignedp argument instead of 1 for clrsb_optab.
871 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
872 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
873 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
874 * optabs.c (widen_leading): Call widen_operand and expand_unop
875 with 0 as unsignedp argument instead of 1 for clrsb_optab.
876 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
878 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
880 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
882 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
884 * gensupport.c (add_define_attr): New static function.
885 (is_predicable): Allow multi-alternative lists for the "predicable"
887 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
888 (process_one_cond_exec): Call alter_attrs_for_insn.
889 * doc/md.texi (Defining Attributes): Mention some standard names.
890 (Conditional Execution): Update documentation for "predicable".
892 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
893 __builtin_clrsbll): Document.
894 * doc/rtl.texi (clrsb): New entry.
895 * optabs.c (widen_leading): Renamed from widen_clz. New argument
896 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
897 (expand_unop): Handle clrsb_optab.
898 (init_optabs): Initialize it.
899 * optabs.h (enum optab_index): New entry OTI_clrsb.
900 (clrsb_optab): Define.
901 * genopinit.c (optabs): Add an entry for it.
902 * builtins.c (expand_builtin): Handle clrsb builtin functions.
903 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
904 BUILT_IN_CLRSBLL): New.
905 * rtl.def (CLRSB): New code.
906 * dwarf2out.c (mem_loc_descriptor): Handle it.
907 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
908 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
910 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
911 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
912 (__ctzDI2): Move declaration.
913 * config/bfin/bfin.md (clrsbsi2): New expander.
914 (signbitssi2): Use the CLRSB rtx.
915 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
916 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
918 2011-06-21 Richard Guenther <rguenther@suse.de>
920 * ipa-inline-transform.c (inline_transform): Fix previous change.
922 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
924 PR tree-optimization/49478
925 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
926 with constant operand.
928 2011-06-21 Richard Guenther <rguenther@suse.de>
930 * ipa-inline-transform.c (inline_transform): Fix typo.
932 2011-06-21 Richard Guenther <rguenther@suse.de>
934 PR tree-optimization/49483
935 * tree-vect-stmts.c (vectorizable_assignment): Also handle
936 VIEW_CONVERT_EXPR conversions.
938 2011-06-21 Joseph Myers <joseph@codesourcery.com>
940 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
941 * config/avr/avr-tables.opt: New file (generated).
942 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
943 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
945 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
946 (avr_option_override): Don't process -mmcu= argument here. Set
947 avr_current_device using avr_mcu_index.
948 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
949 * config/avr/avr.opt (mmcu=): Use Enum.
950 * config/avr/t-avr (avr-devices.o): Update dependencies.
951 ($(srcdir)/config/avr/avr-tables.opt): New.
952 * target.def (help): Remove.
953 * doc/tm.texi.in (TARGET_HELP): Remove.
954 * doc/tm.texi: Regenerate.
955 * opts.c: Don't include target.h.
956 (common_handle_option): Don't call targetm.help.
957 * system.h (TARGET_HELP): Poison.
958 * Makefile.in (opts.o): Update dependencies.
960 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
962 * config/usegld.h: New file.
963 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
964 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
965 (LIB_SPEC): Likewise. Search /lib.
966 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
967 (RDYNAMIC_SPEC): Handle GNU ld.
968 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
970 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
971 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
972 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
973 (STACK_CHECK_STATIC_BUILTIN): Define.
974 * config/sol2.opt (compat-bsd): Remove.
975 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
976 * config/sol2-bi.h: New file.
977 * config/sol2-gld.h: Remove.
978 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
979 (NO_DBX_BNSYM_ENSYM): Remove.
980 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
981 (STACK_CHECK_STATIC_BUILTIN): Remove.
982 Test USE_GLD instead of TARGET_GNU_LD.
983 * config/i386/sol2-10.h: Rename to ...
984 * config/i386/sol2-bi.h .. this.
985 (SUBTARGET_EXTRA_SPECS): Redefine.
986 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
987 (MULTILIB_DEFAULTS): Remove.
988 (DEFAULT_ARCH32_P): Define.
989 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
990 (ARCH64_SUBDIR): Define.
991 Test USE_GLD instead of TARGET_GNU_LD.
992 (I386_EMULATION): Rename to ...
993 (ARCH32_EMULATION): ... this.
994 (X86_64_EMULATION): Rename to ...
995 (ARCH64_EMULATION): ... this.
996 (TARGET_LD_EMULATION): Remove.
997 (LINK_ARCH_SPEC): Remove.
998 * config/i386/sol2-gas.h: Remove.
999 * config/i386/t-sol2-10: Rename to ...
1000 * config/i386/t-sol2-64: ... this.
1001 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1002 (AS_SPARC64_FLAG): Define.
1003 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1004 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1005 depending on TARGET_CPU_DEFAULT.
1006 (CPP_CPU_SPEC): Redefine.
1007 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1008 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1009 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1010 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1011 ASM_ARCH_DEFAULT_SPEC): Redefine.
1012 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1013 LINK_ARCH_DEFAULT_SPEC.
1014 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1015 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1016 (ARCH64_SUBDIR): Define.
1017 (LINK_ARCH64_SPEC): Redefine.
1018 (CC1_SPEC): Redefine.
1019 (OPTION_DEFAULT_SPECS): Redefine.
1020 (MULTILIB_DEFAULTS): Define.
1021 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1022 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1023 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1024 (NO_DBX_BNSYM_ENSYM): Remove.
1025 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1026 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1027 (TARGET_ASM_NAMED_SECTION): Likewise.
1028 (STACK_CHECK_STATIC_BUILTIN): Remove.
1029 * config/sparc/sol2-bi.h: Remove.
1030 * config/sparc/sol2-gas-bi.h: Remove.
1031 * config/sparc/sol2-gas.h: Remove.
1032 * config/sparc/sol2-gld-bi.h: Remove.
1033 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1035 (*-*-solaris2*): ... here.
1037 2011-06-21 Christian Bruel <christian.bruel@st.com>
1040 * ipa-inline.c (can_inline_edge_p): Check
1041 !DECL_DISREGARD_INLINE_LIMITS.
1043 2011-06-21 Christian Bruel <christian.bruel@st.com>
1046 * cgraphunit.c (process_function_and_variable_attributes): warn when
1047 always_inline functions that are not inline.
1048 * ipa-inline-transform.c (inline_transform): Always call
1050 * tree-inline.c (tree_inlinable_function_p): Use error instead
1052 (expand_call_inline): Likewise.
1054 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1056 * Makefile.in (dg_target_exps): Set.
1057 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1058 instead of 7, try to divide it more evenly.
1060 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1063 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1064 (avx256_split_unaligned_store): New definition.
1065 (ix86_option_override_internal): Enable avx256 unaligned load/store
1066 splitting only when avx256_split_unaligned_load/store is set.
1068 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1070 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1071 open chain in a smaller mode without failing the entire block.
1073 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1076 * combine.c (cant_combine_insn_p): Don't check zero/sign
1077 extended hard registers.
1079 2011-06-21 Alan Modra <amodra@gmail.com>
1081 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1082 CONST high part large-toc address.
1083 (rs6000_tls_referenced_p): Make static.
1084 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1086 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1089 * combine.c (cant_combine_insn_p): Check zero/sign extended
1092 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1095 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1096 one of the operands is a register.
1098 2011-06-20 Kai Tietz <ktietz@redhat.com>
1100 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1101 operations in combination with binary and.
1103 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1105 * regrename.c (do_replace): Don't update notes.
1107 2011-06-20 Alan Modra <amodra@gmail.com>
1109 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1110 of toc-relative address in CONST.
1111 (rs6000_delegitimize_address): Recognize changed address.
1112 (rs6000_legitimize_reload_address): Likewise.
1113 (rs6000_emit_move): Don't force these constants to memory.
1114 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1115 toc-relative address in CONST.
1116 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1117 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1119 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1121 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1122 (count_trailing_zeros): Likewise.
1124 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1127 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1128 .init_array can be used with .ctors on targets.
1129 * configure: Regenerated.
1131 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1133 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1134 if the element type is volatile.
1136 2011-06-18 Jan Hubicka <jh@suse.cz>
1138 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1140 (lto_symtab_resolve_can_prevail_p): Likewise.
1141 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1142 * cgraphbuild.c (record_reference): Remove extra body alias code.
1143 (mark_load): Likewise.
1144 (mark_store): Likewise.
1145 * cgraph.h (varpool_node): Remove extra_name filed;
1146 add alias_of and extraname_alias.
1147 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1148 (varpool_alias_aliased_node): New inline function.
1149 (varpool_variable_node): New function.
1150 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1151 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1152 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1153 (input_varpool_node): Likewise.
1154 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1155 (varpool_externally_visible_p): Remove extra body alias code.
1156 (function_and_variable_visibility): Likewise.
1157 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1158 (ipa_pta_execute): Use it.
1159 * varpool.c (varpool_remove_node): Remove extra name alias code.
1160 (varpool_mark_needed_node): Likewise.
1161 (varpool_analyze_pending_decls): Analyze aliases.
1162 (assemble_aliases): New functoin.
1163 (varpool_assemble_decl): Use it.
1164 (varpool_create_variable_alias): New function.
1165 (varpool_extra_name_alias): Rewrite.
1166 (varpool_for_node_and_aliases): New function.
1168 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1171 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1172 last_arg_constant and last argument doesn't match its predicate,
1173 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1174 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1175 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1176 spelling of error message.
1177 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1178 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1179 const_0_to_255_operand instead of const_int_operand.
1182 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1184 * config/i386/sse.md (blendbits): Remove mode attribute.
1185 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1186 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1187 Check integer value of operand 3 in insn constraint.
1189 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1191 PR rtl-optimization/48542
1192 * reload.c (find_equiv_reg): Stop looking when finding a
1194 * reload1.c (reload_as_needed): Invalidate all reload
1195 registers when crossing a setjmp-type call.
1197 2011-06-16 Jeff Law <law@redhat.com>
1199 * tree-ssa-threadupdate.c (struct redirection_data): New field
1201 (THREAD_TARGET2): Define.
1202 (redirection_data_eq): Also check that the intermediate edge is equal.
1203 (lookup_redirection_data): Drop useless argument. Extract the
1204 outgoing_edge and intermediate edge from E. Callers updated.
1205 (copy_phi_args, update_destination_phis): New functions.
1206 (fix_duplicate_block_edges): Likewise.
1207 (create_edge_and_update_destination_phis): Duplicate all the edges
1208 hung off e->aux. Use copy_phi_args.
1209 (create_duplicates): Use fix_duplicate_block_edges.
1210 (fixup_template_block): Likewise.
1211 (redirect_edges): If necessary, redirect the joiner block's incoming
1212 edge to the duplicate of the joiner block.
1213 (thread_block): Don't muck up loops when threading through a joiner
1215 (thread_through_loop_header): Handle threading through a joiner block.
1216 (mark_threaded_blocks, register_jump_thread): Likewise.
1217 * tree-flow.h (register_jump_thread): Add new argument. Callers
1219 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1220 (thread_across_edge): Handle threading through a joiner block.
1222 2011-06-16 Martin Jambor <mjambor@suse.cz>
1224 PR tree-optimization/49343
1225 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1226 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1228 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1230 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1231 inside RTX_CODE ifdef.
1233 2011-06-16 Tom de Vries <tom@codesourcery.com>
1236 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1237 Disallow NULL pointer for pointer arithmetic.
1239 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1243 2011-06-10 Wei Guozhi <carrot@google.com>
1246 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1247 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1248 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1250 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1252 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1253 (arm_legitimate_ldrd_p): New prototype.
1254 (arm_output_ldrd): New prototype.
1255 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1256 (arm_legitimate_ldrd_p): New function.
1257 (arm_output_ldrd): New function.
1259 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1262 * doc/tm.texi.in: Update Copyright date.
1263 * doc/tm.texi: Regenerate.
1264 * targhooks.c (default_setup_incoming_varargs): Replace
1265 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1266 (default_pretend_outgoing_varargs_named): Likewise.
1267 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1268 (hook_callee_copies_named): Likewise.
1269 (default_function_arg_advance): Likewise.
1270 (default_function_arg): Likewise.
1271 (default_function_incoming_arg): Likewise.
1272 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1273 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1274 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1275 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1276 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1277 * targhooks.h (default_setup_incoming_varargs): Likewise.
1278 (default_pretend_outgoing_varargs_named): Likewise.
1279 (hook_pass_by_reference_must_pass_in_stack): Likewise.
1280 (hook_callee_copies_named): Likewise.
1281 (default_function_arg_advance): Likewise.
1282 (default_function_arg): Likewise.
1283 (default_function_incoming_arg): Likewise.
1284 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
1285 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
1286 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
1287 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
1288 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
1289 * target.def (pass_by_reference): Likewise.
1290 (setup_incoming_varargs, strict_argument_naming): Likewise.
1291 (pretend_outgoing_varargs_named, callee_copies): Likewise.
1292 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
1293 (function_incoming_arg): Likewise.
1294 * target.h: Don't include "tm.h" .
1295 (cumulative_args_t): New typedef.
1296 [GCC_TM_H] (get_cumulative_args): New static inline function.
1297 [GCC_TM_H] (pack_cumulative_args): Likewise.
1298 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
1299 argument type with cumulative_args_t.
1300 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
1301 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
1302 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1303 (frv_arg_partial_bytes, frv_function_arg): Likewise.
1304 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
1305 (frv_function_arg_1): Likewise.
1306 * config/s390/s390.c (s390_pass_by_reference): Likewise.
1307 (s390_function_arg_advance, s390_function_arg): Likewise.
1308 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1309 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
1310 (m32c_strict_argument_naming): Likewise.
1311 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
1312 (spu_function_arg_advance): Likewise.
1313 (spu_setup_incoming_varargs): Likewise. Make static.
1314 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
1316 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
1317 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1318 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
1319 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
1320 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
1321 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
1322 (mep_pass_by_reference, mep_function_arg): Likewise.
1323 (mep_function_arg_advance): Likewise.
1324 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1325 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
1326 (m32r_function_arg, m32r_function_arg_advance): Likewise.
1327 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
1328 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
1329 (ix86_function_arg, ix86_pass_by_reference): Likewise.
1330 (ix86_setup_incoming_varargs): Likewise.
1331 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1332 (sh_strict_argument_naming): Likewise.
1333 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
1334 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
1335 (sh_function_arg_advance, sh_function_arg): Likewise.
1336 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1337 (pdp11_function_arg_advance): Likewise.
1338 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
1340 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
1341 * config/avr/avr.c (avr_function_arg): Likewise.
1342 (avr_function_arg_advance): Likewise.
1343 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
1344 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
1345 (xtensa_function_arg_1): Likewise.
1346 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
1348 (xstormy16_function_arg): Likewise.
1349 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1350 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
1351 (fr30_function_arg_advance): Likewise.
1352 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1353 (lm32_function_arg, lm32_function_arg_advance): Likewise.
1354 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1355 (moxie_function_arg, moxie_function_arg_advance): Likewise.
1356 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
1357 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1358 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
1359 (cris_function_arg, cris_function_incoming_arg): Likewise.
1360 (cris_function_arg_advance, cris_function_arg_1): Likewise.
1361 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1362 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
1363 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
1364 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1365 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
1366 (mn10300_arg_partial_bytes): Likewise.
1367 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1368 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
1369 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
1370 (ia64_function_arg_1): Likewise.
1371 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
1372 (m68k_function_arg): Likewise.
1373 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
1374 (rs6000_function_arg, setup_incoming_varargs): Likewise.
1375 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
1376 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
1377 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
1378 (picochip_arg_advance): Likewise.
1379 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1380 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
1381 (mcore_function_arg_advance): Likewise.
1382 * config/score/score.c (score_pass_by_reference): Likewise.
1383 (score_function_arg_advance): Likewise.
1384 (score_arg_partial_bytes): Likewise. Make static.
1385 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
1386 * config/arm/arm.c (arm_arg_partial_bytes): Replace
1387 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1388 (arm_function_arg, arm_function_arg_advance): Likewise.
1389 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
1390 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1391 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
1392 (pa_function_arg): Likewise.
1393 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
1394 (mips_function_arg, mips_function_arg_advance): Likewise.
1395 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
1396 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
1397 * config/vax/vax.c (vax_function_arg): Likewise.
1398 (vax_function_arg_advance): Likewise.
1399 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1400 (h8300_function_arg_advance): Likewise.
1401 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1402 (v850_strict_argument_naming, v850_function_arg): Likewise.
1403 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
1404 (v850_setup_incoming_varargs): Likewise.
1405 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1406 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
1407 (mmix_function_arg, mmix_pass_by_reference): Likewise.
1408 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
1410 * config/bfin/bfin.c (setup_incoming_varargs): Replace
1411 CUMULATIVE_ARGS* argument type with cumulative_args_t.
1412 (bfin_function_arg_advance, bfin_function_arg): Likewise.
1413 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
1414 * calls.c (emit_call_1): Change type of args_so_far to
1415 cumulative_args_t. Changed all callers.
1416 (initialize_argument_information): Likewise.
1417 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
1418 * dse.c (get_call_args): Likewise.
1419 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1420 * function.c (pass_by_reference, reference_callee_copied): Likewise.
1421 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
1422 New member args_so_far_v. Changed all users.
1423 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
1424 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1425 * config/mips/mips.c (mips_output_args_xfer): Likewise.
1426 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
1427 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1428 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1430 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
1431 m32r_pass_by_reference.
1433 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
1435 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
1436 argument to be a VEC of statements.
1437 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
1438 assert that pattern statements have to have their vector type set.
1439 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
1440 Change the first argument to be a VEC of statements. Update
1442 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
1443 (vect_handle_widen_mult_by_const): New function.
1444 (vect_recog_widen_mult_pattern): Change the first argument to be a
1445 VEC of statements. Update documentation. Check that the constant is
1446 INTEGER_CST. Support multiplication by a constant that fits an
1447 intermediate type - call vect_handle_widen_mult_by_const.
1448 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
1449 call. Handle additional pattern statements if necessary.
1451 2011-06-16 Nick Clifton <nickc@redhat.com>
1454 * config.gcc: Set cpu_type to v850 for any V850 architecture.
1455 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
1456 md_file, extra_modes, out_file and extra_options are these are all
1457 deduced from cpu_type.
1459 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1461 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
1462 truncation mask to 63.
1464 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
1468 * longlong.h: Add AVR support:
1469 (count_leading_zeros): New macro.
1470 (count_trailing_zeros): New macro.
1471 (COUNT_LEADING_ZEROS_0): New macro.
1472 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
1473 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
1474 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
1475 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
1476 (LIB2FUNCS_EXCLUDE): Add _clz.
1477 * config/avr/libgcc.S (XCALL): Move up in file.
1478 (XJMP): New C Macro.
1479 (DEFUN): New asm macro.
1480 (ENDF): New asm macro.
1481 (__ffssi2): New function.
1482 (__ffshi2): New function.
1483 (__loop_ffsqi2): New function.
1484 (__ctzsi2): New function.
1485 (__ctzhi2): New function.
1486 (__clzdi2): New function.
1487 (__clzsi2): New function.
1488 (__clzhi2): New function.
1489 (__paritydi2): New function.
1490 (__paritysi2): New function.
1491 (__parityhi2): New function.
1492 (__parityqi2): New function.
1493 (__popcounthi2): New function.
1494 (__popcountsi2): New function.
1495 (__popcountdi2): New function.
1496 (__popcountqi2): New function.
1497 (__bswapsi2): New function.
1498 (__bswapdi2): New function.
1499 (__ashldi3): New function.
1500 (__ashrdi3): New function.
1501 (__lshrdi3): New function.
1502 Fix suspicous lines.
1504 2011-06-16 Richard Guenther <rguenther@suse.de>
1506 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
1508 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
1510 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
1511 equality compares against zero for the lower bit.
1513 2011-06-16 Jakub Jelinek <jakub@redhat.com>
1515 PR tree-optimization/49419
1516 * tree-vrp.c (execute_vrp): Call init_range_assertions
1517 before estimate_numbers_of_iterations, call
1518 free_number_of_iterations_estimates before calling
1519 remove_range_assertions.
1521 2011-06-16 Revital Eres <revital.eres@linaro.org>
1523 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
1524 (struct partial_schedule): Add rows_length field.
1525 (verify_partial_schedule): Check rows_length.
1526 (ps_insert_empty_row): Handle rows_length.
1527 (create_partial_schedule): Likewise.
1528 (free_partial_schedule): Likewise.
1529 (reset_partial_schedule): Likewise.
1530 (create_ps_insn): Remove rest_count argument.
1531 (remove_node_from_ps): Update rows_length.
1532 (add_node_to_ps): Update rows_length and call create_ps_insn
1533 without passing row_rest_count.
1534 (rotate_partial_schedule): Update rows_length.
1536 2011-06-16 Revital Eres <revital.eres@linaro.org>
1538 * ddg.c (add_intra_loop_mem_dep): New function.
1539 (build_intra_loop_deps): Call it.
1541 2011-06-13 Jeff Law <law@redhat.com>
1543 * df-problems.c (df_lr_local_compute): Manually CSE
1544 PIC_OFFSET_TABLE_REGNUM.
1545 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
1546 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
1548 2011-06-13 Jan Hubicka <jh@suse.cz>
1550 * cgraphunit.c (handle_alias_pairs): New function.
1551 (cgraph_finalize_compilation_unit): Use it.
1552 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
1553 as externally visible.
1555 2011-06-15 Richard Guenther <rguenther@suse.de>
1557 * expr.c (expand_expr_real_2): Reduce all integral types to
1559 (expand_expr_real_1): Likewise.
1561 2011-06-15 Martin Jambor <mjambor@suse.cz>
1563 PR tree-optimization/48613
1564 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
1565 ipa_node_params_vector is NULL.
1567 2011-06-15 Jakub Jelinek <jakub@redhat.com>
1570 * dwarf2out.c (dw_loc_list_node): Add force field.
1571 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
1572 location in the list, even if it is modified before first real insn.
1573 (output_loc_list): Emit empty ranges with force flag set.
1574 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
1576 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
1579 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
1580 (fence_to_rewind). Use it to notice when bookkeeping will be placed
1581 above a fence. Update comments.
1582 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
1583 placed just above it. Do not allow NULL place_to_insert.
1585 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
1587 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
1588 (slpeel_tree_peel_loop_to_edge): Don't call
1589 remove_dead_stmts_from_loop.
1590 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1591 remove irrelevant pattern statements. For irrelevant statements
1592 check if it is the last statement of a detected pattern, use
1593 corresponding pattern statement instead.
1594 (destroy_loop_vec_info): No need to remove pattern statements,
1595 only free stmt_vec_info.
1596 (vect_transform_loop): For irrelevant statements check if it is
1597 the last statement of a detected pattern, use corresponding
1598 pattern statement instead.
1599 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
1600 pattern statements. Set basic block for the new statement.
1601 (vect_pattern_recog): Update documentation.
1602 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
1603 operands of pattern statements.
1604 (vectorizable_call): Fix printing. In case of a pattern statement
1605 use the lhs of the original statement when creating a dummy
1606 statement to replace the original call.
1607 (vect_analyze_stmt): For irrelevant statements check if it is
1608 the last statement of a detected pattern, use corresponding
1609 pattern statement instead.
1610 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
1611 statements use gsi of the original statement.
1613 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1615 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
1616 common/common-target-def.h.
1617 * target.def (default_target_flags, handle_option,
1618 supports_split_stack, optimization_table, init_struct,
1619 except_unwind_info, unwind_tables_default, have_named_sections):
1620 Move to common/common-target.def.
1621 * target.h (enum opt_levels, struct default_options): Move to
1622 common/common-target.h.
1623 * targhooks.c (default_except_unwind_info,
1624 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1625 default_target_handle_option, empty_optimization_table): Move to
1626 common/common-targhooks.c.
1627 * targhooks.h (default_except_unwind_info,
1628 dwarf2_except_unwind_info, sjlj_except_unwind_info,
1629 default_target_handle_option, empty_optimization_table): Move to
1630 common/common-targhooks.h.
1631 * common/common-target-def.h: Include common/common-targhooks.h.
1632 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
1634 * common/common-target.def (handle_option, option_init_struct,
1635 option_optimization_table, default_target_flags,
1636 except_unwind_info, supports_split_stack, unwind_tables_default,
1637 have_named_sections): Move from target.def.
1638 (HOOK_PREFIX): Undefine at end of file.
1639 * common/common-target.h: Include input.h.
1640 (enum opt_levels, struct default_options): Move from target.h.
1641 * common/common-targhooks.c, common/common-targhooks.h: New.
1642 * config.gcc (target_has_targetm_common): Default to yes.
1643 (moxie*): Set target_has_targetm_common=no.
1644 (hppa*-*-*): Don't set target_has_targetm_common=yes.
1645 * doc/tm.texi: Regenerate.
1646 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
1647 (C_TARGET_DEF_H): Add common/common-targhooks.h.
1648 (GCC_OBJS): Remove vec.o.
1649 (OBJS): Remove hooks.o and vec.o.
1650 (OBJS-libcommon-target): Add vec.o, hooks.o and
1651 common/common-targhooks.o.
1652 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
1653 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
1654 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
1655 cfglayout.o, $(out_object_file), $(common_out_object_file)):
1656 Update dependencies.
1657 (common/common-targhooks.o): New.
1658 * common/config/default-common.c: Include tm.h. Add FIXME comment.
1659 * common/config/pa/pa-common.c: Include more headers. Take
1660 copyright dates from pa.c.
1661 (pa_option_optimization_table, pa_handle_option,
1662 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
1663 TARGET_HANDLE_OPTION): Move from pa.c.
1664 * common/config/alpha/alpha-common.c,
1665 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
1666 common/config/bfin/bfin-common.c,
1667 common/config/cris/cris-common.c,
1668 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
1669 common/config/h8300/h8300-common.c,
1670 common/config/i386/i386-common.c,
1671 common/config/ia64/ia64-common.c,
1672 common/config/iq2000/iq2000-common.c,
1673 common/config/lm32/lm32-common.c,
1674 common/config/m32c/m32c-common.c,
1675 common/config/m32r/m32r-common.c,
1676 common/config/m68k/m68k-common.c,
1677 common/config/mcore/mcore-common.c,
1678 common/config/mep/mep-common.c,
1679 common/config/microblaze/microblaze-common.c,
1680 common/config/mips/mips-common.c,
1681 common/config/mmix/mmix-common.c,
1682 common/config/mn10300/mn10300-common.c,
1683 common/config/pdp11/pdp11-common.c,
1684 common/config/picochip/picochip-common.c,
1685 common/config/rs6000/rs6000-common.c,
1686 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
1687 common/config/score/score-common.c, common/config/sh/sh-common.c,
1688 common/config/sparc/sparc-common.c,
1689 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
1690 common/config/vax/vax-common.c,
1691 common/config/xstormy16/xstormy16-common.c,
1692 common/config/xtensa/xtensa-common.c: New.
1693 * config/alpha/alpha.c: Include common/common-target.h.
1694 (alpha_option_optimization_table, alpha_handle_option,
1695 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1696 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
1697 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
1698 * config/arm/arm.c (arm_option_optimization_table,
1699 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1700 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
1702 * config/avr/avr.c (avr_option_optimization_table,
1703 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1705 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
1706 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
1707 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
1708 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
1709 * config/cris/cris.c (cris_option_optimization_table,
1710 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1711 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
1713 * config/fr30/fr30.c (fr30_option_optimization_table,
1714 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
1716 * config/frv/frv.c (frv_option_optimization_table,
1717 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
1718 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
1719 * config/h8300/h8300.c (h8300_option_optimization_table,
1720 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1721 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
1722 * config/i386/i386-protos.h (ix86_handle_option): Declare.
1723 * config/i386/i386.c: Include common/common-target.h.
1724 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
1725 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
1726 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
1727 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
1728 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
1729 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
1730 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
1731 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
1732 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
1733 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
1734 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
1735 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
1736 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
1737 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
1738 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
1739 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
1740 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
1741 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
1742 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
1743 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
1744 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
1745 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
1746 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
1747 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
1748 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
1749 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
1750 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
1751 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
1752 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
1753 ix86_option_optimization_table, ix86_option_init_struct,
1754 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
1755 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1756 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
1758 * config/i386/t-i386 (i386.o): Update dependencies.
1759 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
1760 * config/ia64/ia64.c (ia64_option_optimization_table,
1761 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1762 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1763 ia64_handle_option): Move to ia64-common.c.
1764 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1765 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
1766 * config/lm32/lm32.c (lm32_option_optimization_table,
1767 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
1769 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
1771 * config/m32r/m32r.c (m32r_option_optimization_table,
1772 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1773 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
1774 m32r_handle_option): Move to m32r-common.c.
1775 (m32r_memory_move_cost): Remove comment referring to
1776 TARGET_HANDLE_OPTION.
1777 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
1778 Move to m68k-common.c.
1779 * config/mcore/mcore.c (mcore_option_optimization_table,
1780 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1781 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
1782 * config/mep/mep.c (mep_option_optimization_table,
1783 mep_handle_option, TARGET_HANDLE_OPTION,
1784 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
1785 Move to mep-common.c.
1786 * config/microblaze/microblaze.c
1787 (microblaze_option_optimization_table,
1788 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
1789 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
1790 * config/mips/mips.c (mips_handle_option,
1791 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1792 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
1794 * config/mmix/mmix.c (mmix_option_optimization_table,
1795 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1796 Move to mmix-common.c.
1797 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1798 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
1799 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1800 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
1801 * config/pa/pa.c: Include common/common-target.h.
1802 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
1803 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1804 pa_handle_option): Move to pa-common.c.
1805 (pa_option_override): Use targetm_common.except_unwind_info.
1806 (pa_asm_output_mi_thunk, pa_function_section): Use
1807 targetm_common.have_named_sections.
1808 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
1809 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1810 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1811 pdp11_handle_option, pdp11_option_init_struct): Move to
1813 * config/picochip/picochip.c (picochip_option_optimization_table,
1814 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
1815 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
1816 * config/rs6000/rs6000.c: Include common/common-target.h.
1817 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
1818 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
1819 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
1820 rs6000_handle_option): Move to rs6000-common.c.
1821 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
1822 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
1823 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1824 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
1825 * config/s390/s390.c (processor_flags_table,
1826 s390_option_optimization_table, s390_option_init_struct,
1827 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
1828 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
1829 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
1830 * config/s390/s390.h (processor_flags_table): Declare.
1831 * config/score/score.c (score_option_optimization_table,
1832 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1833 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
1834 score_handle_option): Move to score-common.c.
1835 * config/sh/sh.c (sh_option_optimization_table,
1836 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
1837 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
1838 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
1839 * config/sparc/sparc.c: Include common/common-target.h.
1840 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1841 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
1842 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
1843 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
1844 spu_option_init_struct): Move to spu-common.c.
1845 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1846 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
1847 * config/v850/v850.c (small_memory_physical_max,
1848 v850_handle_memory_optionn v850_handle_option,
1849 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
1850 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
1852 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
1853 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
1854 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
1855 Move to xtensa-common.c.
1856 * cfglayout.c: Include common/common-target.h.
1857 (fixup_reorder_chain): Use targetm_common.have_named_sections.
1858 * cfgrtl.c: Include common/common-target.h.
1859 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
1860 targetm_common.have_named_sections.
1861 * dbxout.c: Include common/common-target.h.
1862 (dbxout_function_end): Use targetm_common.have_named_sections.
1863 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
1864 targetm_common.except_unwind_info.
1865 * dwarf2out.c: Include common/common-target.h.
1866 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1867 dwarf2out_begin_prologue, dwarf2out_frame_init,
1868 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
1869 targetm_common.except_unwind_info.
1870 * except.c: Include common/common-target.h.
1871 (init_eh, finish_eh_generation,
1872 output_one_function_exception_table): Use
1873 targetm_common.except_unwind_info.
1874 (switch_to_exception_section): Use targetm_common.have_named_sections.
1875 * explow.c: Include common/common-target.h.
1876 * expr.c: Include common/common-target.h.
1877 (build_personality_function): Use targetm_common.except_unwind_info.
1878 * function.c: Include common/common-target.h.
1879 (expand_function_end): Use targetm_common.except_unwind_info.
1880 * haifa-sched.c: Include common/common-target.h.
1881 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
1882 * lto-opts.c: Include common/common-target.h instead of target.h.
1883 (lto_reissue_options): Use targetm_common.handle_option.
1884 * opts.c: Include common/common-target.h.
1885 (target_handle_option): Use targetm_common.handle_option.
1886 (init_options_struct): Update comment referring to
1887 targetm.target_option.optimization. Use
1888 targetm_common.default_target_flags,
1889 targetm_common.unwind_tables_default and
1890 targetm_common.option_init_struct.
1891 (default_options_optimization): Use
1892 targetm_common.option_optimization_table.
1893 (finish_options): Use targetm_common.except_unwind_info,
1894 targetm_common.unwind_tables_default,
1895 targetm_common.have_named_sections and
1896 targetm_common.supports_split_stack.
1897 * toplev.c: Include common/common-target.h.
1898 (process_options): Use targetm_common.have_named_sections.
1899 * tree-tailcall.c: Include common/common-target.h.
1900 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
1901 * tree.c: Include common/common-target.h.
1902 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
1903 * varasm.c: Include common/common-target.h.
1904 (resolve_unique_section, hot_function_section,
1905 default_function_section): Use targetm_common.have_named_sections.
1907 2011-06-14 Easwaran Raman <eraman@google.com>
1909 PR rtl-optimization/44194
1910 * dse.c: Include tree-flow.h
1911 (insn_info): Add new field non_frame_wild_read.
1912 (group_info): Add new fields escaped_n and escaped_p.
1913 (kill_on_calls): New variable.
1914 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1915 (dse_step0): Initialize kill_on_calls.
1916 (can_escape): New function.
1917 (set_usage_bits): Add additional parameter; record information
1918 about escaped locations.
1919 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
1920 (dse_step2_nospill): Set kill_on_calls based on
1921 group->escaped_n and group->escaped_n.
1922 (add_wild_read): Refactor into...
1923 (reset_active_stores): ... New function, and
1924 (free_read_records): ... New function.
1925 (add_non_frame_wild_read): New function.
1926 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1927 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
1928 (dse_step5_nospill): Call scan_reads_nospill for instructions
1929 marked as non_frame_wild_read.
1930 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
1932 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1934 * common/common-target-def.h, common/common-target.def,
1935 common/common-target.h, common/config/default-common.c,
1936 common/config/pa/pa-common.c: New files.
1937 * Makefile.in (common_out_file, common_out_object_file,
1938 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1939 (OBJS-libcommon-target): Include $(common_out_object_file).
1940 (prefix.o): Update dependencies.
1941 ($(common_out_object_file), common/common-target-hooks-def.h,
1942 s-common-target-hooks-def-h): New.
1943 (s-tm-texi): Also check timestamp on common-target.def.
1944 (build/genhooks.o): Update dependencies.
1945 * config.gcc (common_out_file, target_has_targetm_common): Define.
1946 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1947 TARGET_ALWAYS_STRIP_DOTDOT.
1948 * configure.ac (common_out_object_file): Define.
1949 (common_out_file, common_out_object_file): Substitute.
1950 (common): Create directory.
1951 * configure: Regenerate.
1952 * doc/tm.texi.in (targetm_common): Document.
1953 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1954 * doc/tm.texi: Regenerate.
1955 * genhooks.c (hook_array): Also include common/common-target.def.
1956 * prefix.c (tm.h): Don't include.
1957 (common/common-target.h): Include.
1958 (ALWAYS_STRIP_DOTDOT): Don't define.
1959 (update_path): Use targetm_common.always_strip_dotdot instead of
1960 ALWAYS_STRIP_DOTDOT.
1961 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1963 2011-06-14 David Li <davidxl@google.com>
1965 * passes.c (execute_function_todo): Remove TODO_dump_func.
1966 (execute_one_pass): Remove TODO_dump_func.
1967 (execute_function_dump): New function.
1968 * tree-vrp.c: Remove TODO_dump_func.
1969 * regrename.c: Remove TODO_dump_func.
1970 * fwprop.c: Remove TODO_dump_func.
1971 * tree-into-ssa.c: Remove TODO_dump_func.
1972 * tree-complex.c: Remove TODO_dump_func.
1973 * tracer.c: Remove TODO_dump_func.
1974 * tree-loop-distribution.c: Remove TODO_dump_func.
1975 * postreload-gcse.c: Remove TODO_dump_func.
1976 * postreload.c: Remove TODO_dump_func.
1977 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1978 * tree-tailcall.c: Remove TODO_dump_func.
1979 * ipa-cp.c: Remove TODO_dump_func.
1980 * final.c: Remove TODO_dump_func.
1981 * tree-emutls.c: Remove TODO_dump_func.
1982 * omp-low.c: Remove TODO_dump_func.
1983 * tree-ssa-dse.c: Remove TODO_dump_func.
1984 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1985 * auto-inc-dec.c: Remove TODO_dump_func.
1986 * reorg.c: Remove TODO_dump_func.
1987 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1988 * tree-ssa-ccp.c: Remove TODO_dump_func.
1989 * compare-elim.c: Remove TODO_dump_func.
1990 * mode-switching.c: Remove TODO_dump_func.
1991 * modulo-sched.c: Remove TODO_dump_func.
1992 * tree-call-cdce.c: Remove TODO_dump_func.
1993 * cse.c: Remove TODO_dump_func.
1994 * web.c: Remove TODO_dump_func.
1995 * tree-stdarg.c: Remove TODO_dump_func.
1996 * lto-streamer-out.c: Remove TODO_dump_func.
1997 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1998 * tree-ssa-dom.c: Remove TODO_dump_func.
1999 * tree-nrv.c: Remove TODO_dump_func.
2000 * loop-init.c: Remove TODO_dump_func.
2001 * gimple-low.c: Remove TODO_dump_func.
2002 * ipa-inline.c: Remove TODO_dump_func.
2003 * tree-ssa-sink.c: Remove TODO_dump_func.
2004 * jump.c: Remove TODO_dump_func.
2005 * ifcvt.c: Remove TODO_dump_func.
2006 * tree-ssa-loop.c: Remove TODO_dump_func.
2007 * recog.c: Remove TODO_dump_func.
2008 * dse.c: Remove TODO_dump_func.
2009 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2010 * matrix-reorg.c: Remove TODO_dump_func.
2011 * tree-eh.c: Remove TODO_dump_func.
2012 * regmove.c: Remove TODO_dump_func.
2013 * function.c: Remove TODO_dump_func.
2014 * tree-vectorizer.c: Remove TODO_dump_func.
2015 * ipa-split.c: Remove TODO_dump_func.
2016 * gcse.c: Remove TODO_dump_func.
2017 * tree-if-conv.c: Remove TODO_dump_func.
2018 * init-regs.c: Remove TODO_dump_func.
2019 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2020 * implicit-zee.c: Remove TODO_dump_func.
2021 * lower-subreg.c: Remove TODO_dump_func.
2022 * bt-load.c: Remove TODO_dump_func.
2023 * tree-dfa.c: Remove TODO_dump_func.
2024 * except.c: Remove TODO_dump_func.
2025 * emit-rtl.c: Remove TODO_dump_func.
2026 * store-motion.c: Remove TODO_dump_func.
2027 * cfgexpand.c: Remove TODO_dump_func.
2028 * tree-cfgcleanup.c: Remove TODO_dump_func.
2029 * cfgcleanup.c: Remove TODO_dump_func.
2030 * tree-ssa-pre.c: Remove TODO_dump_func.
2031 * tree-sra.c: Remove TODO_dump_func.
2032 * tree-mudflap.c: Remove TODO_dump_func.
2033 * tree-ssa-copy.c: Remove TODO_dump_func.
2034 * cfglayout.c: Remove TODO_dump_func.
2035 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2036 * tree-ssa-dce.c: Remove TODO_dump_func.
2037 * ira.c: Remove TODO_dump_func.
2038 * tree-ssa.c: Remove TODO_dump_func.
2039 * integrate.c: Remove TODO_dump_func.
2040 * tree-optimize.c: Remove TODO_dump_func.
2041 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2042 * tree-object-size.c: Remove TODO_dump_func.
2043 * combine.c: Remove TODO_dump_func.
2044 * bb-reorder.c: Remove TODO_dump_func.
2045 * cprop.c: Remove TODO_dump_func.
2046 * var-tracking.c: Remove TODO_dump_func.
2047 * tree-profile.c: Remove TODO_dump_func.
2048 * tree-vect-generic.c: Remove TODO_dump_func.
2049 * reg-stack.c: Remove TODO_dump_func.
2050 * sched-rgn.c: Remove TODO_dump_func.
2051 * tree-ssa-structalias.c: Remove TODO_dump_func.
2052 * tree-switch-conversion.c: Remove TODO_dump_func.
2053 * tree-cfg.c: Remove TODO_dump_func.
2054 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2055 * combine-stack-adj.c: Remove TODO_dump_func.
2056 * dce.c: Remove TODO_dump_func.
2057 * tree-ssanames.c: Remove TODO_dump_func.
2058 * regcprop.c: Remove TODO_dump_func.
2060 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2063 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2064 and properly handle result not in Pmode.
2066 2011-06-14 Robert Millan <rmh@gnu.org>
2068 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2069 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2072 * config/i386/kfreebsd-gnu64.h: New file.
2073 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2074 with `i386/kfreebsd-gnu64.h'.
2076 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2077 (GNU_USER_LINK_EMULATION64): New macros.
2078 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2079 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2080 of hardcoding `elf_i386' and `elf_x86_64'.
2082 2011-06-14 Nick Clifton <nickc@redhat.com>
2085 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2088 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2090 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2093 * tree.h (DECL_NONSHAREABLE): Define.
2094 (struct tree_decl_common): Change decl_common_unused to
2095 decl_nonshareable_flag.
2096 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2097 Ignore vars with DECL_NONSHAREABLE bit set.
2098 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2099 on stores to automatic aggregate vars.
2101 PR rtl-optimization/49390
2103 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2105 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2108 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
2109 Tom de Vries <tom@codesourcery.com>
2112 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2113 Document changed semantics.
2114 (max_stmt_executions, max_stmt_executions_int): Declare.
2115 * tree-data-ref.c (estimated_loop_iterations)
2116 (estimated_loop_iterations_int): Move functions...
2117 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2118 (estimated_loop_iterations_int): here.
2119 (record_estimate): Change nb_iterations_upper_bound and
2120 nb_iterations_estimate semantics.
2121 (max_stmt_executions, max_stmt_executions_int): New function.
2122 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2123 (max_stmt_executions_tree): this.
2124 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2125 estimated_loop_iterations_tree.
2126 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2127 max_stmt_executions_int instead of estimated_loop_iterations_int.
2128 * predict.c (predict_loops): Idem.
2129 * tree-parloops.c (parallelize_loops): Idem.
2130 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2131 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2132 (init_omega_for_ddr_1): Idem.
2133 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2134 (loop_prefetch_arrays): Idem
2135 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2136 max_stmt_executions instead of estimated_loop_iterations.
2137 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2138 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2139 instead of nb_iterations_upper_bound.
2141 2011-06-13 Jan Hubicka <jh@suse.cz>
2143 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2145 2011-06-14 Richard Henderson <rth@redhat.com>
2148 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2149 (based_loc_descr): Assert it's true.
2150 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2151 aborting immediately.
2153 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2154 Mingfeng Wu <mingfeng@faraday-tech.com>
2156 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2158 2011-06-13 Jan Hubicka <jh@suse.cz>
2160 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2162 2011-06-13 Jan Hubicka <jh@suse.cz>
2164 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2165 similarly to DECL_COMDAT.
2166 * cgraphunit.c (cgraph_analyze_function): Likewise.
2167 * ipa.c (function_and_variable_visibility): Likewise.
2169 2011-06-13 Jan Hubicka <jh@suse.cz>
2171 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2172 BINFO_VIRTUALS when streaming for ltrans unit.
2174 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2176 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2177 (movdi_internal64): Same.
2179 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2182 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2183 a set of similar patterns, where the MATCH_OPERAND for the function
2184 argument is replaced with individual references to hardware registers.
2185 (save_fpregs_<mode>): Ditto
2186 (restore_gpregs_<mode>): Ditto
2187 (return_and_restore_gpregs_<mode>): Ditto
2188 (return_and_restore_fpregs_<mode>): Ditto
2189 (return_and_restore_fpregs_aix_<mode>): Ditto
2191 2011-06-13 Jan Hubicka <jh@suse.cz>
2193 * ipa-utils.c (postorder_stack): New structure.
2194 (ipa_reverse_postorder): Handle aliases.
2196 2011-06-13 Jan Hubicka <jh@suse.cz>
2198 * ipa-inline.c (reset_edge_caches): Walk aliases.
2199 (update_caller_keys): Do not test inlinability of aliases.
2200 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2201 (do_estimate_growth): Fix typo.
2203 2011-06-13 Jan Hubicka <jh@suse.cz>
2205 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2206 (can_remove_node_now_p): ... here; handle same comdat groups.
2207 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2208 (inline_call): Update use of can_remove_node_now_p.
2210 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2212 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2213 condition to disallow non-identical memory locations.
2214 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2215 preference to bit manipulation instructions.
2217 2011-06-13 Jan Hubicka <jh@suse.cz>
2219 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2220 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2221 (nonremovable_p): New function.
2222 (cgraph_can_remove_if_no_direct_calls_p): New function.
2223 (used_from_object_file_p): New functoin.
2224 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2225 references from aliases.
2226 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2227 * ipa-inline.c (check_caller_edge): New function.
2228 (want_inline_function_called_once_p): Use it; accept aliases called
2230 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2232 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2235 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2236 correctly for the case with Quad vectors.
2238 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2239 Ira Rosen <ira.rosen@linaro.org>
2241 PR tree-optimization/49352
2242 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2243 all, make sure loop_use_stmt after the loop is a def stmt of a used
2244 SSA_NAME that is the only one defined inside of the loop. Don't
2245 check for COND_EXPR and GIMPLE_BINARY_RHS.
2246 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2247 check_reduction is true.
2249 2011-06-11 Jan Hubicka <jh@suse.cz>
2252 * ipa.c (cgraph_externally_visible_p): Check resolution info.
2254 2011-06-11 Jan Hubicka <jh@suse.cz>
2257 * ipa-inline-transform.c: Include tree-pass.h
2258 (inline_transform): Set TODO_update_ssa_only_virtuals.
2259 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
2261 2011-06-11 Jan Hubicka <jh@suse.cz>
2264 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
2267 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
2269 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
2270 Take number of iterations to peel into account for equally frequent
2271 misalignment values.
2273 2011-06-11 Jan Hubicka <jh@suse.cz>
2275 * lto-streamer-out.c (produce_symtab): Stream out the newly
2276 represented aliases.
2278 2011-06-11 Jan Hubicka <jh@suse.cz>
2280 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
2282 (ipa_update_after_lto_read): Likewise.
2283 (ipa_write_node_info): Do not sream call_with_var_arguments.
2284 (ipa_read_node_info): Likewise.
2286 2011-06-11 Jan Hubicka <jh@suse.cz>
2288 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
2290 2011-06-11 Jan Hubicka <jh@suse.cz>
2292 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
2293 (lto_symtab_resolve_can_prevail_p): Likewise.
2294 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
2295 * cgraph.c (same_body_aliases_done): New global var.
2296 (cgraph_same_body_alias_1): Rename to ...
2297 (cgraph_create_function_alias): ... this one; reorg to new
2299 (cgraph_same_body_alias): Use cgraph_create_function_alias;
2300 record references when asked to.
2301 (cgraph_add_thunk): Fix formating.
2302 (cgraph_get_node): Kill same body alias code.
2303 (cgraph_node_for_asm): Likewise.
2304 (cgraph_remove_same_body_alias): Remove.
2305 (cgraph_remove_node): Kill same body alias code.
2306 (cgraph_mark_address_taken_node): Mark also the aliased function
2307 as having address taken.
2308 (dump_cgraph_node): Dump same body aliases.
2309 (cgraph_for_node_thunks_and_aliases): Update for new alias
2311 (cgraph_for_node_and_aliases): Likewise.
2312 * cgraph.h (same_body): Kll pointer.
2313 (same_body_alias): Update comment.
2314 (same_body_aliases_done): Declare.
2315 (cgraph_remove_same_body_alias): Remove declaration.
2316 (cgraph_create_function_alias): Declare.
2317 (cgraph_process_same_body_aliases): Declare.
2318 (cgraph_function_with_gimple_body_p): Check for alias.
2319 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
2320 (cgraph_alias_aliased_node): New function.
2321 (cgraph_function_node): Update for new aliases.
2322 (cgraph_function_or_thunk_node): Likewise.
2323 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
2324 (inline_call): Remove dead aliases.
2325 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
2326 name hack for same body aliases.
2327 (clone_of_p): Look through aliases.
2328 (verify_cgraph_node): Verify aliases.
2329 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
2330 (cgraph_process_same_body_aliases): New function.
2331 (process_function_and_variable_attributes): Disable weakref warning on
2333 (cgraph_analyze_functions): Handle aliases.
2334 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
2335 (assemble_thunks): Rename to ...
2336 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
2337 (cgraph_expand_function): Remove alias output code.
2338 (cgraph_output_in_order): Skip aliases.
2339 (cgraph_preserve_function_body_p): Aliases don't need preserving.
2340 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
2341 (ipa_record_reference): Do not assert on alias references.
2342 (ipa_ref_has_aliases_p): New function.
2343 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
2344 (ipa_ref_has_aliases_p): Declare.
2345 * lto-cgraph.c (lto_output_node): Handle aliases.
2346 (input_node): Likewise.
2347 * lto-streamer-out.c (lto_output): Skip aliases.
2348 (produce_symtab): Kill same_body_alias code.
2349 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
2350 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
2351 * ipa-inline.c (update_caller_keys): Walk aliases.
2352 (inline_small_functions): Fix thinko in previous patch.
2353 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
2354 (function_and_variable_visibility): Do not walk same body aliases.
2355 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
2356 (ipa_pta_execute): Use it.
2358 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2360 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
2361 (*vec_dupv2df): Rename from vec_dupv2df.
2362 (vec_dupv2df): New expander.
2364 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2366 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
2368 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
2370 * config/i386/i386.md: Use default value in "isa" attribute.
2371 * config/i386/sse.md: Ditto.
2372 * config/i386/mmx.md: Ditto.
2374 2011-06-10 Wei Guozhi <carrot@google.com>
2377 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2378 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2379 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2381 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2383 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2384 (arm_legitimate_ldrd_p): New prototype.
2385 (arm_output_ldrd): New prototype.
2386 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2387 (arm_legitimate_ldrd_p): New function.
2388 (arm_output_ldrd): New function.
2390 2011-06-10 David Li <davidxl@google.com>
2392 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2393 * passes.c (passr_eq): New function.
2394 (create_pass_tab): New function.
2395 (pass_traverse): New function.
2396 (dump_one_pass): New function.
2397 (dump_pass_list): New function.
2398 (dump_passes): New function.
2400 2011-06-10 Jan Hubicka <jh@suse.cz>
2402 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
2403 setting the nothrow flag.
2404 * ipa-reference.c (propagate): Skip aliases.
2405 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
2406 (propagate_nothrow): Skip aliases; do not update cgraph.
2407 (local_pure_const): Do not update cgraph.
2408 * tree-profile.c (tree_profiling): Do fixup_cfg.
2410 2011-06-10 Jan Hubicka <jh@suse.cz>
2412 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
2413 (cgraph_local_node_p): ... here; handle aliases.
2414 (has_addr_references_p): Break out from ...;
2415 (cgraph_remove_unreachable_nodes) ... here.
2417 2011-06-10 Jan Hubicka <jh@suse.cz>
2419 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
2420 * common.opt (flag_inline_functions_called_once): Do not
2423 2011-06-10 Jan Hubicka <jh@suse.cz>
2425 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
2426 (ipcp_initialize_node_lattices): Do not deal with aliases;
2427 Do not try to propagate through thunks.
2428 (ipcp_change_tops_to_bottom): Do not deal with aliases.
2430 2011-06-10 Jan Hubicka <jh@suse.cz>
2432 * ipa-prop.c (ipa_write_node_info): Stream jump functions
2434 (ipa_read_node_info): Likewise.
2436 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2439 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
2440 (build_and_insert_call): Likewise.
2441 (build_and_insert_ref): New.
2442 (gimple_expand_builtin_pow): Minor cleanup.
2443 (gimple_expand_builtin_cabs): New.
2444 (execute_cse_sincos): Add case for BUILT_IN_CABS.
2446 2011-06-10 Jan Hubicka <jh@suse.cz>
2448 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
2449 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
2450 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
2451 (ipcp_propagate_stage): Skip aliases when propagating.
2452 (ipcp_need_redirect_p): Skip aliases.
2453 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
2454 collect_callers_of_node.
2455 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
2457 (ipa_compute_jump_functions): Look through aliases.
2459 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2461 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
2463 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2465 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
2467 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
2469 2011-06-10 Jan Hubicka <jh@suse.cz>
2471 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
2472 Update call of gimple_get_virt_method_for_binfo.
2473 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
2474 refuse_thunks parameter.
2475 (gimple_fold_call): Update.
2476 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
2478 2011-06-10 Jan Hubicka <jh@suse.cz>
2480 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
2481 (not_all_callers_have_enough_arguments_p): ... this one; turn into
2482 worker for cgraph_for_node_and_aliases.
2483 (convert_callers_for_node): Break out from ...
2484 (convert_callers): ... here.
2485 (modify_function): Use collect_callers_of_node.
2486 (ipa_early_sra): Use cgraph_for_node_and_aliases.
2488 2011-06-10 Richard Guenther <rguenther@suse.de>
2490 PR tree-optimization/49361
2491 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
2492 when not already in gimple form.
2494 2011-06-10 Richard Guenther <rguenther@suse.de>
2497 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
2498 FOR_EACH_PHI_OR_STMT_USE.
2500 2011-06-10 Jan Hubicka <jh@suse.cz>
2502 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
2503 (clone_inlined_nodes): ... here.
2504 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
2505 to real destination prior inlining.
2506 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
2507 can_early_inline_edge_p, want_early_inline_function_p,
2508 want_early_inline_function_p, want_inline_small_function_p,
2509 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
2510 edge_badness, update_all_callee_keys, lookup_recursive_calls,
2511 add_new_edges_to_heap, inline_small_functions, flatten_function,
2512 inline_always_inline_functions, early_inline_small_functions): Use
2513 cgraph_function_or_thunk_node.
2514 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
2515 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
2516 (do_estimate_edge_growth_1): Break out from ...
2517 (do_estimate_growth) ... here; walk aliases.
2518 (inline_generate_summary): Skip aliases.
2520 2011-06-10 Richard Guenther <rguenther@suse.de>
2522 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
2523 forward when combining, visit inserted stmts when a stmt was changed.
2525 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
2527 * tree.h (error_operand_p): Add.
2528 * dbxout.c (dbxout_type_fields): Use the latter.
2529 * c-decl.c (add_stmt): Likewise.
2530 * gimplify.c (omp_add_variable, omp_notice_variable,
2531 gimplify_scan_omp_clauses): Likewise.
2533 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
2535 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
2536 when a value is actually passed in regs.
2538 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
2539 Laurent Rougé <laurent.rouge@menta.fr>
2541 * doc/invoke.texi (SPARC options): Add -mflat.
2542 * config/sparc/sparc.opt: Likewise.
2543 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
2544 (sparc_flat_expand_prologue): Declare.
2545 (sparc_flat_expand_epilogue): Likewise.
2546 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
2547 (CPP_ENDIAN_SPEC): Replace with...
2548 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
2549 (CPP_SPEC): Adjust to above change.
2550 (EXTRA_SPECS): Likewise.
2551 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
2552 (INCOMING_REGNO): Likewise.
2553 (OUTGOING_REGNO): Likewise.
2554 (LOCAL_REGNO): Likewise.
2555 (SETUP_FRAME_ADDRESSES): Likewise.
2556 (FIXED_REGISTERS): Set 0 for %fp.
2557 (CALL_USED_REGISTERS): Likewise.
2558 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
2559 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
2560 (RETURN_ADDR_REGNUM): Define.
2561 (RETURN_ADDR_RTX): Use it.
2562 (INCOMING_RETURN_ADDR_REGNUM): Define.
2563 (INCOMING_RETURN_ADDR_RTX): Use it.
2564 (DWARF_FRAME_RETURN_COLUMN): Likewise.
2565 (EH_RETURN_REGNUM): Define.
2566 (EH_RETURN_STACKADJ_RTX): Use it.
2567 (EH_RETURN_HANDLER_RTX): Delete.
2568 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
2569 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
2571 (struct machine_function): Add frame_size, apparent_frame_size,
2572 frame_base_reg, frame_base_offset, n_global_fp_regs and
2573 save_local_in_regs_p fields.
2574 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
2575 sparc_frame_base_offset, sparc_n_global_fp_regs,
2576 sparc_save_local_in_regs_p): New macros.
2577 (sparc_option_override): Error out if -fcall-saved-REG is specified
2579 (eligible_for_restore_insn): Fix formatting.
2580 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
2581 (eligible_for_sibcall_delay): Likewise.
2582 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
2583 (sparc_legitimate_address_p): Adjust to above change.
2584 (save_global_or_fp_reg_p): New predicate.
2585 (return_addr_reg_needed_p): Likewise.
2586 (save_local_or_in_reg_p): Likewise.
2587 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
2588 (SORR_SAVE, SORR_RESTORE): Delete.
2589 (sorr_pred_t): New typedef.
2590 (sorr_act_t): New enum.
2591 (save_or_restore_regs): Rename to...
2592 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
2593 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
2594 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
2595 mechanism. Add CFI information for double-word saves in 32-bit mode.
2596 (emit_adjust_base_to_offset): New function extracted from...
2597 (emit_save_or_restore_regs): ...this. Rename the rest to...
2598 (emit_save_or_restore_regs_global_fp_regs): ...this.
2599 (emit_save_or_restore_regs_local_in_regs): New function.
2600 (gen_create_flat_frame_[123]): New functions.
2601 (sparc_expand_prologue): Use SIZE local variable. Adjust.
2602 (sparc_flat_expand_prologue): New function.
2603 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
2604 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
2605 (sparc_flat_expand_epilogue): New function.
2606 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
2607 (output_return): Likewise.
2608 (output_sibcall): Likewise.
2609 (sparc_output_mi_thunk): Likewise.
2610 (sparc_frame_pointer_required): Likewise.
2611 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
2612 function optimization.
2613 * config/sparc/sparc.md (flat): New attribute.
2614 (prologue): Add TARGET_FLAT handling.
2615 (save_register_window): Disable if TARGET_FLAT.
2616 (create_flat_frame_[123]): New patterns.
2617 (epilogue): Add TARGET_FLAT handling.
2618 (sibcall_epilogue): Likewise.
2619 (eh_return): New expander.
2620 (eh_return_internal): New insn and splitter.
2621 (return_internal): Add TARGET_FLAT handling.
2622 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
2623 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
2624 (nonlocal_goto): Add TARGET_FLAT handling.
2625 * config/sparc/t-elf: Add -mflat multilib.
2626 * config/sparc/t-leon: Likewise.
2628 2011-06-10 Jan Hubicka <jh@suse.cz>
2630 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
2631 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
2632 (self_recursive_p): Use cgraph_function_node.
2633 (propagate_pure_const): Likewise.
2634 (propagate_nothrow): Likewise.
2635 * ipa-reference.c (ipa_reference_get_not_read_global): Use
2636 cgraph_function_node.
2637 (propagate_bits): Likewise.
2638 (propagate): Likewise.
2640 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2641 Richard Earnshaw <rearnsha@arm.com>
2643 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
2644 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
2645 (*thumb2_movdi_vfp): Delete.
2646 (*arm_movdi_vfp_cortexa8): Delete.
2647 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
2648 (*movdi_vfp_cortexa8): Likewise.
2650 2011-06-10 Richard Guenther <rguenther@suse.de>
2652 * stor-layout.c (initialize_sizetypes): Give names to all
2655 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
2657 PR tree-optimization/49318
2658 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
2659 irrelevant pattern statements.
2661 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2663 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
2666 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
2669 2011-06-09 Jan Hubicka <jh@suse.cz>
2671 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
2672 do not recompute reachable flag.
2673 (cgraph_finalize_function, cgraph_analyze_functions): Set
2674 redefined_extern_inline here.
2676 2011-06-09 Jan Hubicka <jh@suse.cz>
2678 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
2679 (cgraph_only_called_directly_p): ... this one; bring offline.
2680 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
2681 varpool_used_from_object_file_p): Drop names from the declaratoin.
2682 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
2683 collect_callers_of_node): New.
2684 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
2685 (cgraph_edge_recursive_p): Use cgraph_function_node.
2686 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
2687 (cgraph_node_cannot_be_local_p_1): Break out from ...
2688 (cgraph_node_can_be_local_p): ... here; walk aliases.
2689 (cgraph_for_node_thunks_and_aliases): New function.
2690 (cgraph_for_node_and_aliases): New function.
2691 (cgraph_make_node_local_1): Break out from ...
2692 (cgraph_make_node_local) ... here; use
2693 cgraph_for_node_thunks_and_aliases.
2694 (cgraph_set_nothrow_flag_1): Break out from ...
2695 (cgraph_set_nothrow_flag) ... here;
2696 use cgraph_for_node_thunks_and_aliases.
2697 (cgraph_set_const_flag_1): Break out from ...
2698 (cgraph_set_const_flag) ... here;
2699 use cgraph_for_node_thunks_and_aliases.
2700 (cgraph_set_pure_flag_1): Break out from ...
2701 (cgraph_set_pure_flag) ... here;
2702 use cgraph_for_node_thunks_and_aliases.
2703 (cgraph_propagate_frequency_1): Break out from ...
2704 (cgraph_propagate_frequency) ... here; use
2705 cgraph_for_node_thunks_and_aliases.
2706 (cgraph_used_from_object_file_p): Do not care about aliases.
2707 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
2709 (collect_callers_of_node_1, collect_callers_of_node): New functions.
2711 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2713 PR rtl-optimization/49154
2714 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
2715 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
2716 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2717 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
2718 * config/cris/cris.h (cris_register_move_cost): Remove
2719 !TARGET_V32 code. Tweak comments.
2721 2011-06-09 Jan Hubicka <jh@suse.cz>
2723 * cgraphbuild.c (record_eh_tables): Mark personality function as having
2726 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
2728 PR rtl-optimization/49154
2729 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
2730 is a matching slot in the hashtable, assign it to classes_ptr.
2732 PR rtl-optimization/49154
2733 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
2735 * doc/tm.texi: Regenerate.
2737 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
2740 * config/sh/sh.md (UNSPEC_CHKADD): New.
2741 (chk_guard_add): New define_insn_and_split.
2742 (symGOT_load): Use chk_guard_add instead of blockage.
2744 2011-06-09 Kai Tietz <ktietz@redhat.com>
2746 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
2748 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
2750 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
2752 2011-06-09 Wei Guozhi <carrot@google.com>
2755 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
2756 (peephole2 for conditional move): Generate 16 bit instructions.
2758 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
2760 * config/i386/i386.md (*movdi_internal_rex64): Merge
2761 alternatives 6 and 8.
2763 2011-06-09 David Li <davidxl@google.com>
2765 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
2766 * passes.c (passr_eq): New function.
2767 (create_pass_tab): New function.
2768 (pass_traverse): New function.
2769 (dump_one_pass): New function.
2770 (dump_pass_list): New function.
2771 (dump_passes): New function.
2773 2011-06-09 David Li <davidxl@google.com>
2775 * tree-complex.c (tree_lower_complex): Gate cleanup.
2776 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
2777 (execute_optimize_stdarg): Ditto.
2778 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
2779 (execute_cleanup_eh_1): Ditto.
2780 (execute_cleanup_eh): Ditto.
2781 * gcse.c (gate_rtl_pre): Ditto.
2782 (execute_rtl_pre): Ditto.
2783 * except.c (finish_eh_generation): Ditto.
2784 (convert_to_eh_region_ranges): Ditto.
2785 * cprop.c (one_cprop_pass): Ditto.
2787 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
2790 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
2791 in all basic blocks.
2793 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2795 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
2796 (HAVE_ENABLE_EXECUTE_STACK): Define.
2797 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
2798 (HAVE_ENABLE_EXECUTE_STACK): Define.
2799 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
2800 (HAVE_ENABLE_EXECUTE_STACK): Define.
2801 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
2802 (ENABLE_EXECUTE_STACK): Remove.
2803 (HAVE_ENABLE_EXECUTE_STACK): Define.
2804 [IN_LIBGCC2]: Don't include <windows.h>.
2805 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2806 (HAVE_ENABLE_EXECUTE_STACK): Define.
2807 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
2808 (HAVE_ENABLE_EXECUTE_STACK): Define.
2809 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
2810 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
2811 (HAVE_ENABLE_EXECUTE_STACK): Define.
2812 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
2813 (HAVE_ENABLE_EXECUTE_STACK): Define.
2814 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
2815 (HAVE_ENABLE_EXECUTE_STACK): Define.
2816 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
2817 (HAVE_ENABLE_EXECUTE_STACK): Define.
2818 * config/alpha/alpha.c (alpha_trampoline_init): Test
2819 HAVE_ENABLE_EXECUTE_STACK.
2820 * config/i386/i386.c (ix86_trampoline_init): Likewise.
2821 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2822 (sparc64_initialize_trampoline): Likewise.
2823 * libgcc2.c [L_enable_execute_stack]: Remove.
2824 * system.h (ENABLE_EXECUTE_STACK): Poison.
2825 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
2826 * doc/tm.texi: Regenerate.
2827 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
2829 2011-06-09 Jakub Jelinek <jakub@redhat.com>
2832 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
2833 variable. After resetting and rescanning insn continue with previous
2836 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2838 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
2839 (gcc_cv_ld_hidden): Likewise.
2840 * configure: Regenerate.
2841 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
2842 (ix86_stack_protect_fail): Mark unused.
2843 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
2844 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
2845 [TARGET_MACHO]: Don't define.
2846 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
2847 (TARGET_STACK_PROTECT_FAIL): Likewise.
2848 (rs6000_stack_protect_fail): Mark unused.
2849 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
2850 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
2852 2011-06-08 Andi Kleen <ak@linux.intel.com>
2854 * varasm.c (get_section): Print location of other conflict
2855 for section conflicts.
2857 2011-06-08 Andi Kleen <ak@linux.intel.com>
2859 * config/i386/driver-i386.c (host_detect_local_cpu):
2860 Add model 0x2d Intel CPU.
2862 2011-06-08 Andi Kleen <ak@linux.intel.com>
2864 * reginfo.c (global_regs_decl): Add.
2865 (globalize_reg): Add decl parameter. Compute location. Pass location
2866 to warnings and add inform. Store decl in global_regs_decl.
2867 * rtl.h (globalize_reg): Update prototype.
2868 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
2870 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
2872 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
2874 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2877 * config/sh/predicates.md (general_movsrc_operand): Check
2878 mode for memory with indexed address for QI and HImode.
2879 (general_movdst_operand): Likewise.
2881 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
2883 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
2885 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
2887 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
2888 (num_ssa_operands): Likewise.
2889 (op_iter_init_phiuse): Forward-declare.
2890 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
2892 2011-06-08 Nick Clifton <nickc@redhat.com>
2894 * doc/invoke.texi (ARM Options): Update description of
2897 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
2899 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2900 unknown Intel family 0x6 CPUs.
2902 2011-06-08 Martin Jambor <mjambor@suse.cz>
2904 * tree-sra.c (mark_rw_status): Removed.
2905 (analyze_access_subtree): New parameter parent instead of
2906 mark_read and mark_write, propagate from that.
2908 2011-06-08 Julian Brown <julian@codesourcery.com>
2910 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2911 for double-precision helper functions in hard-float mode if only
2912 single-precision arithmetic is supported in hardware.
2914 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2916 PR rtl-optimization/49303
2917 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2918 code_motion_path_driver returned 0 or 1.
2919 (sel_region_finish): Clear h_d_i_d.
2921 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2923 * config/sh/sh.c (prepare_move_operands): Set pic register
2924 appropriately for global and local dynamic tls models even
2925 if flag_pic is unset.
2927 2011-06-07 Jason Merrill <jason@redhat.com>
2929 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2931 2011-06-07 Xinliang David Li <davidxl@google.com>
2932 * passes.c (enable_disable_pass): Handle assembler name.
2933 (is_pass_explicitly_enabled_or_disabled): Ditto.
2935 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2937 PR tree-optimization/48497
2938 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2940 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2942 PR tree-optimization/46728
2943 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2944 to use gimple_val_nonnegative_real_p.
2945 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2946 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2948 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2950 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2952 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2954 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2957 2011-06-07 Richard Guenther <rguenther@suse.de>
2959 * stor-layout.c (initialize_sizetypes): Initialize all
2960 sizetypes based on target definitions.
2961 (set_sizetype): Remove.
2962 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2963 * tree.h (set_sizetype): Remove.
2965 2011-06-07 Nick Clifton <nickc@redhat.com>
2967 * config.gcc: Unify V850 architecture options and add support for
2968 newer V850 architectures.
2969 * config/v850/t-v850e: Delete.
2971 2011-06-07 Richard Guenther <rguenther@suse.de>
2973 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2974 Call set_sizetype from here.
2976 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2978 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2979 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2981 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2982 Andrew Stubbs <ams@codesourcery.com>
2984 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2986 * doc/md.texi (Canonicalization of Instructions): Document widening
2987 multiply canonicalization.
2989 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2991 PR gcov-profile/49299
2992 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2994 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2996 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2998 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2999 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3000 vect_recog_pow_pattern): Likewise.
3001 (vect_pattern_recog_1): Remove declaration.
3002 (widened_name_p): Remove declaration. Add new argument to specify
3003 whether to check that both types are either signed or unsigned.
3004 (vect_recog_widen_mult_pattern): Update documentation. Handle
3005 unsigned patterns and multiplication by constants.
3006 (vect_pattern_recog_1): Update vect_recog_func references. Use
3007 statement information from the statement returned from pattern
3008 detection functions.
3009 (vect_pattern_recog): Update vect_recog_func reference.
3010 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3011 multiplication by a constant use the type of the other operand.
3013 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3015 PR rtl-optimization/49145
3016 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3018 2011-06-06 Jakub Jelinek <jakub@redhat.com>
3021 * dwarf2out.c (native_encode_initializer): Decrement count in each
3025 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3029 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3030 if stmt folded into nothing.
3031 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3032 a bb folded into nothing, just update cgraph edges and move to next bb.
3033 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3034 to be NULL. Don't compute count and frequency if new_call is NULL.
3036 2011-06-04 Diego Novillo <dnovillo@google.com>
3038 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3039 (cgraph.o): Likewise.
3040 (cgraphunit.o): Likewise.
3041 * cgraphunit.c: Include lto-streamer.h
3042 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3044 * lto-streamer-in.c (unpack_value_fields): Call
3045 streamer_hooks.unpack_value_fields if set.
3046 (lto_materialize_tree): For unhandled nodes, first try to
3047 call lto_streamer_hooks.alloc_tree, if it exists.
3048 (lto_input_ts_decl_common_tree_pointers): Move reading of
3049 DECL_INITIAL to lto_streamer_read_tree.
3050 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3051 (lto_streamer_read_tree): New.
3052 (lto_reader_init): Rename from lto_init_reader.
3053 Move initialization code to lto/lto.c.
3054 * lto-streamer-out.c (pack_value_fields): Call
3055 streamer_hooks.pack_value_fields if set.
3056 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3057 call streamer_hooks.indexable_with_decls_p before giving up.
3058 (lto_output_ts_decl_common_tree_pointers): Move handling
3059 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3060 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3061 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3062 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3063 (lto_streamer_write_tree): New.
3064 (lto_output): Call lto_streamer_init directly.
3065 (lto_writer_init): Remove.
3066 * lto-streamer.c (streamer_hooks): New.
3067 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3068 instead of lto_preload_common_nodes.
3069 (lto_is_streamable): Move from lto-streamer.h
3070 (lto_streamer_hooks_init): New.
3071 (streamer_hooks): New.
3072 (streamer_hooks_init): New.
3073 * lto-streamer.h (struct output_block): Forward declare.
3074 (struct lto_input_block): Likewise.
3075 (struct data_in): Likewise.
3076 (struct bitpack_d): Likewise.
3077 (struct streamer_hooks): Declare.
3078 (streamer_hooks): Declare.
3079 (lto_streamer_hooks_init): Declare.
3080 (lto_streamer_write_tree): Declare.
3081 (lto_streamer_read_tree): Declare.
3082 (streamer_hooks_init): Declare.
3083 (lto_is_streamable): Move to lto-streamer.c
3085 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3087 * longlong.h (smul_ppmm): The resulting register pair contains the
3088 higher order word first.
3090 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3092 PR tree-optimization/46728
3093 * builtins.c (powi_table): Remove.
3094 (powi_lookup_cost): Remove.
3095 (powi_cost): Remove.
3096 (expand_powi_1): Remove.
3097 (expand_powi): Remove.
3098 (expand_builtin_pow_root): Remove.
3099 (expand_builtin_pow): Remove.
3100 (expand_builtin_powi): Eliminate handling of constant exponent.
3101 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3103 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3105 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3107 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3109 * dce.c (reset_unmarked_insns_debug_uses): New.
3110 (delete_unmarked_insns): Skip debug insns.
3111 (prescan_insns_for_dce): Likewise.
3112 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3113 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3114 active reg can be found.
3115 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3116 (convert_regs_1): Use it.
3118 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3120 * tree-pretty-print.c (dump_function_header): Add flags.
3121 Don't dump decl_uid with nouid.
3122 * tree-pretty-print.h (dump_function_header): Adjust.
3123 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3124 * passes.c (pass_init_dump_file): Pass dump_flags on.
3125 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3127 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3130 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3132 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3134 PR tree-optimization/49243
3135 * calls.c (setjmp_call_p): Also check if fndecl has the
3136 returns_twice attribute.
3138 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3140 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3143 2011-06-06 Richard Henderson <rth@redhat.com>
3144 Georg-Johann Lay <avr@gjlay.de>
3147 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3149 * config/avr/avr.md ("insv"): New insn expander.
3150 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3151 "*insv.not.io", "*insv.reg"): New insns.
3153 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3156 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3157 to nonimmediate_operand from memory_operand for the operand that is to
3158 be forced to memory by the expander. Lose the constraints.
3160 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3162 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3163 EH return when delayed branches are disabled.
3165 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3167 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3168 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3170 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3171 Simplify MODE_V1DF and MODE_V2SF handling.
3172 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3173 Simplify MODE_SF handling.
3175 2011-06-04 Jan Hubicka <jh@suse.cz>
3177 PR tree-optimization/48893
3178 PR tree-optimization/49091
3179 PR tree-optimization/49179
3180 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3183 2011-06-04 Jan Hubicka <jh@suse.cz>
3186 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3189 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3191 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3193 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3196 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3197 to be strictly smaller than 1 << shiftcount.
3199 2011-06-04 Jan Hubicka <jh@suse.cz>
3201 PR tree-optimize/48929
3202 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3205 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3208 * calls.c (emit_call_1): Prefer the __builtin declaration of
3211 2011-06-03 Diego Novillo <dnovillo@google.com>
3213 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3214 (lto_input_tree_pointers): Likewise.
3215 * lto-streamer-out.c (pack_value_fields): Likewise.
3216 (lto_output_tree_pointers): Likewise.
3217 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3218 and OPTIMIZATION_NODE.
3220 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3222 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3223 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3224 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3225 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3226 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3227 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3228 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3229 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3230 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3231 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3232 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3233 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3234 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3235 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3236 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3237 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3238 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3239 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3240 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3241 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3242 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3243 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3244 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3245 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3246 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3247 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3248 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3249 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
3250 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
3251 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
3252 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
3253 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
3254 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
3255 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
3256 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
3257 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
3258 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
3259 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
3260 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
3261 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
3262 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
3263 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
3264 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
3265 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
3266 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
3267 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
3268 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
3269 * system.h (MD_UNWIND_SUPPORT): Poison.
3270 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
3271 * doc/tm.texi: Regenerate.
3272 * unwind-dw2.c: Include md-unwind-support.h instead of
3274 * config/ia64/unwind-ia64.c: Likewise.
3275 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
3277 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
3279 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
3281 2011-06-03 Richard Henderson <rth@redhat.com>
3282 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3284 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
3285 (sigill_hdlr): Correct insn, insn size.
3286 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
3288 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3290 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
3292 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
3293 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
3294 * config/mips/t-iris: Remove.
3295 * config/mips/t-irix6: New file.
3296 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
3298 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3300 * Makefile.in (LIB2ADDEHDEP): Remove.
3301 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
3302 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
3303 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
3304 * config/t-darwin (LIB2ADDEHDEP): Remove.
3305 * config/t-freebsd (LIB2ADDEHDEP): Remove.
3306 * config/t-linux (LIB2ADDEHDEP): Remove.
3308 2011-06-03 Diego Novillo <dnovillo@google.com>
3310 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
3311 (lto_register_var_decl_in_symtab): Likewise.
3312 (lto_register_function_decl_in_symtab): Likewise.
3313 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
3314 logic to uniquify_nodes.
3316 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3318 * config/alpha/t-osf5: Remove.
3319 * config/alpha/t-osf-pthread: Remove.
3320 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
3321 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
3323 2011-06-03 Julian Brown <julian@codesourcery.com>
3325 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
3326 (strongarm1110): Use strongarm tuning.
3327 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
3328 * config/arm/arm.c (arm_strongarm_tune): New.
3329 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3330 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
3331 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
3332 setting, using previous defaults or 1 for Cortex-A5.
3333 (arm_option_override): Set max_insns_skipped from current tuning.
3335 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
3337 * doc/install.texi (Options specification): Document --with-specs.
3339 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3341 * config/arm/neon.md (orndi3_neon): Actually split it.
3343 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3345 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
3346 * var-tracking.c (reverse_op): Limite recurse depth to 5.
3348 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
3351 * target.def (delay_sched2, delay_vartrack): New.
3352 * doc/tm.texi.in: Update.
3353 * doc/tm.texi: Rebuild.
3354 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
3355 * var-tracking.c (gate_handle_var_tracking): Likewise.
3356 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
3357 (bfin_flag_var_tracking): Drop.
3358 (output_file_start): Don't save and override flag_var_tracking.
3359 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
3360 (bfin_reorg): Test original variables.
3361 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3362 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
3363 (ia64_flag_var_tracking): Drop.
3364 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3365 (ia64_file_start): Don't save and override flag_var_tracking.
3366 (ia64_override_options_after_change): Ditto
3367 flag_schedule_insns_after_reload.
3368 (ia64_reorg): Test original variables.
3369 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
3370 (picochip_flag_var_tracking): Drop.
3371 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
3372 (picochip_option_override): Don't save and override
3373 flag_schedule_insns_after_reload.
3374 (picochip_asm_file_start): Ditto flag_var_tracking.
3375 (picochip_reorg): Test original variables.
3376 * config/spu/spu.c (spu_flag_var_tracking): Drop.
3377 (TARGET_DELAY_VARTRACK): Define.
3378 (spu_var_tracking): New.
3379 (spu_machine_dependent_reorg): Call it.
3380 (asm_file_start): Don't save and override flag_var_tracking.
3382 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
3385 * config/sh/predicates.md (general_movsrc_operand): Return 0
3386 for memory and memory subreg of which address is an invalid
3387 indexed address for QI and HImode.
3388 (general_movdst_operand): Likewise.
3390 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3392 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
3393 edges only, when there is a non-local label in the function.
3394 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
3396 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3398 * config/i386/constraints.md (Y3): New register constraint.
3399 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
3400 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
3401 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
3402 *sse2_interleave_lowv2df.
3404 2011-06-02 Julian Brown <julian@codesourcery.com>
3406 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
3407 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
3408 (arm_cortex_a5_tune): New.
3410 2011-06-02 Julian Brown <julian@codesourcery.com>
3412 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
3413 * config/arm/arm.c (arm_default_branch_cost): New.
3414 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
3415 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
3416 (arm_fa726_tune): Set branch_cost field using
3417 arm_default_branch_cost.
3418 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
3419 current_tune structure.
3420 * dojump.c (tm_p.h): Include file.
3422 2011-06-02 Julian Brown <julian@codesourcery.com>
3424 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
3426 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
3427 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
3428 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
3430 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
3431 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
3432 (arm_fa726te_tune): Add prefer_constant_pool setting.
3433 (arm_v6t2_tune, arm_cortex_tune): New.
3434 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
3435 prefer_constant_pool setting.
3437 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
3439 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
3441 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
3442 (*movdf_internal) <case 6,7,8>: Ditto.
3444 * config/i386/constraints.md (Y4): New register constraint.
3445 * config/i386/sse.md (vec_set<mode>_0): Merge with
3446 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
3447 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
3448 *vec_extractv2di_1_sse.
3449 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
3450 and *vec_concatv2di_rex64_sse.
3452 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
3455 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
3456 of cgraph_local_info for null before attempting to use it.
3458 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
3460 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
3461 (current_function_dynamic_alloc_count): Delete.
3462 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
3463 (expand_builtin_nonlocal_goto): Remove obsolete comment.
3464 (expand_builtin_update_setjmp_buf): Remove dead code.
3465 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
3466 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
3468 * function.c (instantiate_virtual_regs): Likewise.
3469 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
3470 for a block with a single abnormal incoming edge.
3471 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
3472 (SETJMP_VIA_SAVE_AREA): Delete.
3473 * config/sparc/sparc-protos.h (load_got_register): Declare.
3474 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3475 (load_got_register): Make global.
3476 (sparc_frame_pointer_required): Add 'static'.
3477 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
3478 (sparc_builtin_setjmp_frame_value): New function.
3479 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
3480 (save_stack_nonlocal): New expander.
3481 (restore_stack_nonlocal): Likewise.
3482 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
3483 (nonlocal_goto_internal): New insn.
3484 (goto_handler_and_restore): Delete.
3485 (builtin_setjmp_setup): Likewise.
3486 (do_builtin_setjmp_setup): Likewise.
3488 (builtin_setjmp_receiver): New expander.
3490 2011-06-01 David Li <davidxl@google.com>
3493 * tree-pretty-print.c (dump_function_header): Format cleanup.
3495 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3498 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
3499 needed when original operands are used for msw_skip comparison.
3501 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3504 * var-tracking.c (add_uses, add_stores): Don't call
3505 cselib_subst_to_values on ENTRY_VALUE.
3507 2011-06-01 Diego Novillo <dnovillo@google.com>
3509 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
3510 output_record_start with LTO_null instead of output_zero.
3511 (lto_output_ts_binfo_tree_pointers): Likewise.
3512 (lto_output_tree): Likewise.
3513 (output_eh_try_list): Likewise.
3514 (output_eh_region): Likewise.
3515 (output_eh_lp): Likewise.
3516 (output_eh_regions): Likewise.
3517 (output_bb): Likewise.
3518 (output_function): Likewise.
3519 (output_unreferenced_globals): Likewise.
3520 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
3521 instead of NUM_TREE_CODES.
3522 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
3523 (lto_output_int_in_range): Change << to >> when shifting VAL.
3525 2011-06-01 Diego Novillo <dnovillo@google.com>
3527 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
3528 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
3530 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3533 * optabs.h (valid_multiword_target_p): Declare.
3534 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
3535 doing multi-word operations.
3536 * optabs.c (expand_binop): Likewise.
3537 (expand_doubleword_bswap): Likewise.
3538 (expand_absneg_bit): Likewise.
3539 (expand_unop): Likewise.
3540 (expand_copysign_bit): Likewise.
3541 (multiword_target_p): New function.
3543 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
3545 PR rtl-optimization/48830
3546 PR rtl-optimization/48808
3547 PR rtl-optimization/48792
3548 * reload.c (push_reload): Check contains_reg_of_mode.
3549 * reload1.c (strip_paradoxical_subreg): New function.
3550 (gen_reload_chain_without_interm_reg_p): Use it to handle
3551 paradoxical subregs.
3552 (emit_output_reload_insns, gen_reload): Likewise.
3554 2011-06-01 David Li <davidxl@google.com>
3556 * predict.c : Change pass name
3559 * tree-profile.c: Ditto.
3562 2011-06-01 David Li <davidxl@google.com>
3564 * tree-pretty-print.c (dump_function_header): New function.
3565 * final.c (rest_of_clean_state): Use header dumper.
3566 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
3567 * passes.c (pass_init_dump_file): Use header dumper.
3569 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3571 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
3572 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
3573 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
3575 (mem_loc_descriptor): Use them.
3577 * var-tracking.c (create_entry_value): New function.
3578 (vt_add_function_parameter): Use it.
3580 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3582 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
3583 Include <signal.h>, <ucontext.h>.
3584 (sigill_caught): Define.
3585 (sigill_hdlr): New function.
3586 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
3587 insns can be executed.
3588 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
3589 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
3591 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3593 * config/t-slibgcc-darwin: Move to ...
3594 * config/t-slibgcc-dummy: ... this. Clarify comments.
3595 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
3596 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
3597 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
3598 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
3599 Remove i386/t-crtstuff from tmake_file.
3600 (i[34567]86-*-solaris2*): Remove t-svr4,
3601 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
3603 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
3604 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
3605 sparc/t-crtfm from tmake_file.
3606 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
3607 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
3609 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
3610 * config/i386/t-nwld (SHLIB_LINK): Remove.
3611 * config/i386/t-rtems-i386: Rename to ...
3612 * config/i386/t-rtems: ... this.
3613 ($(T)crti.o, $(T)crtn.o): Remove.
3614 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
3615 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
3616 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
3617 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
3618 EXTRA_MULTILIB_PARTS): Remove.
3619 * config/sparc/t-sol2-64: Likewise.
3620 * config/sparc/t-sol2: Remove.
3621 * config/sparc/t-crtin: Remove.
3622 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
3623 * config/i386/gmon-sol2.c: Remove.
3624 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
3625 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
3626 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
3627 * config/i386/sol2-gc1.asm: Remove.
3628 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
3629 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
3630 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
3631 * config/t-slibgcc-sld: Remove.
3633 2011-06-01 Jakub Jelinek <jakub@redhat.com>
3635 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
3636 base_type_for_mode with op_mode instead of mode.
3638 2011-06-01 Paul Brook <paul@cpodesourcery.com>
3640 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
3642 * config/arm/arm-tune.md: Regenerate.
3643 * config/arm/arm-tables.opt: Regenerate.
3644 * config/arm/arm.c (FL_DIV): Rename...
3645 (FL_THUMB_DIV): ... to this.
3646 (FL_ARM_DIV): Define.
3647 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
3648 (arm_arch_hwdiv): Remove.
3649 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
3650 (arm_issue_rate): Add cortexr5.
3651 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
3652 __ARM_ARCH_EXT_IDIV__.
3653 (TARGET_IDIV): Define.
3654 (arm_arch_hwdiv): Remove.
3655 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
3656 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
3657 (divsi3, udivsi3): New patterns.
3658 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
3659 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
3661 2011-06-01 Martin Jambor <mjambor@suse.cz>
3663 * ipa-utils.c (ipa_dfs_info): New field scc_no.
3664 * ipa-utils.c (searchc): Set scc_no.
3666 2011-06-01 Martin Jambor <mjambor@suse.cz>
3668 * ipa-utils.c (searchc_env): New field allow_overwritable.
3669 (searchc): do not ignore edges to overwritable nodes if indicated
3670 by env->allow_overwritable.
3671 (ipa_reduced_postorder): Set env.allow_overwritable.
3673 2011-06-01 Richard Guenther <rguenther@suse.de>
3675 * tree.c (free_lang_data): Do not reset boolean_type_node nor
3677 * lto-streamer.c (lto_record_common_node): Take node pointer,
3678 do not register types.
3679 (lto_preload_common_nodes): Explicitly skip preloading nodes
3680 that differ between frontends.
3682 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3684 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
3687 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
3689 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
3690 parameter value for dump. Dump cost on outermost call only.
3691 (rs6000_memory_move_cost): Dump cost on outermost call only.
3693 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3695 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
3696 DW_OP_GNU_convert ops.
3698 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
3699 cselib_preserve_constants.
3700 (cselib_lookup_1): If cselib_preserve_constants,
3701 a new VALUE is being created for REG and there is a VALUE for the
3702 same register in wider mode, add another loc with lowpart SUBREG of
3704 (cselib_subst_to_values): Handle ENTRY_VALUE.
3705 * var-tracking.c (replace_expr_with_values): Return NULL for
3707 * dwarf2out.c (convert_descriptor_to_signed): New function.
3708 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
3709 instead of two shifts.
3710 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
3711 the right mode if needed.
3712 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
3713 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
3714 convert_descriptor_to_signed.
3715 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
3716 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
3719 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
3721 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3723 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
3724 of X87MODEI12 and SWI48x instead of SSEMODEI24.
3725 (SWI248x): New mode iterator, rename from X87MODEI.
3726 (X87MODEI): Remove mode iterator.
3727 (X87MODEI12): Ditto.
3728 (SSEMODEI24): Ditto.
3730 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3732 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
3733 * doc/invoke.texi: Document max-vartrack-expr-depth.
3734 * var-tracking.c (EXPR_DEPTH): New.
3735 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
3737 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3739 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
3740 * config/i386/sse.md: Add n to negated FMA pattern names.
3742 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3744 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
3746 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
3748 * gengtype-state.c (read_state_params_structs): Initialize previous.
3750 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3752 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
3753 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
3755 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
3757 * config/i386/i386.md (*movtf_internal): Avoid allocating general
3758 registers. Penalize F*r->o alternative to prevent partial memory
3759 stalls. Slightly penalize *roF->*r alternative. Generate SSE
3760 CONST_DOUBLE immediates when optimizing function for size. Do not move
3761 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3762 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
3763 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
3764 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
3766 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
3768 (fp_register_operand splitters): Use fp_register_operand
3769 constraint. Do not use FP_REG_P in insn condition.
3770 (any_fp_register_operand splitters): Use any_fp_register_operand
3771 constraint. Do not use ANY_FP_REG_P in insn condition.
3773 2011-05-31 Jan Hubicka <jh@suse.cz>
3775 * cgraph.h (cgraph_inline_failed_t): Give enum a name
3776 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
3777 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
3778 (lto_output_edge): Use output_enum and var_len_unsigned.
3779 (lto_output_varpool_node): Likewise.
3780 (input_overwrite_node): Do not take resolution parameter;
3781 extract it from a bitpack.
3782 (input_node): Do not read resolution; use input_enum and
3784 (input_varpool_node): Likewise.
3785 (input_edge): Likewise.
3786 (input_cgraph_1): Likewise.
3788 2011-05-31 Richard Guenther <rguenther@suse.de>
3790 * gimple.c (gimple_register_canonical_type): Do not register
3791 any types via gimple_register_type.
3793 2011-05-31 Jan Hubicka <jh@suse.cz>
3795 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
3798 2011-05-31 Jakub Jelinek <jakub@redhat.com>
3800 PR rtl-optimization/49235
3801 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
3802 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
3804 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
3806 PR tree-optimization/49093
3807 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
3810 2011-05-31 Dodji Seketeli <dodji@redhat.com>
3813 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
3814 for concrete functions containing the code of cloned functions.
3816 2011-05-31 Richard Guenther <rguenther@suse.de>
3818 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
3820 (forward_propagate_into_comparison_1): ... this.
3821 (forward_propagate_comparison): Rename to ...
3822 (forward_propagate_into_comparison): ... this. Split out
3823 real forward propagation code to ...
3824 (forward_propagate_comparison): ... this.
3825 (forward_propagate_into_gimple_cond): Remove looping.
3826 (forward_propagate_into_cond): Likewise.
3827 (simplify_not_neg_expr): Return whether we have done something.
3828 (simplify_gimple_switch): Likewise.
3829 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
3830 (ssa_forward_propagate_and_combine): ... this. Re-structure
3831 to do a forward forward-propagation walk on BBs and a backward
3832 stmt combining walk on BBs. Consistently re-scan changed statements.
3833 (pass_forwprop): Adjust.
3835 2011-05-30 Ian Lance Taylor <iant@google.com>
3837 * godump.c (go_format_type): Correct length of name added to
3838 obstack for anonymous field.
3840 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
3843 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
3844 part of the second operand is 0.
3846 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
3848 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
3849 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
3850 to memory for !TARGET_MEMORY_MISMATCH_STALL.
3851 (*movdf_internal_rex64): Do not penalize F->r alternative.
3852 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
3853 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
3854 when optimizing function for size. Do not move CONST_DOUBLEs
3855 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
3856 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
3857 SUBREGs. Do not check for MEM_P operands in the insn condition,
3858 check for ANY_FP_REGNO_P instead.
3859 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
3860 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
3862 * config/i386/i386.c (ix86_option_override_internal): Do not
3863 set TARGET_INTEGER_DFMODE_MOVES here.
3865 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
3868 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
3870 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3872 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
3873 DW_TAG_rvalue_reference_type even for
3874 -gdwarf-4 -fno-debug-types-section.
3876 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3878 PR tree-optimization/46728
3879 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
3880 (build_and_insert_binop): New.
3881 (gimple_expand_builtin_pow): Reorder args for
3882 build_and_insert_call; use build_and_insert_binop; add more
3883 optimizations for fractional exponents.
3885 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3890 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3892 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3894 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3895 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3896 TS_BASE instead of TS_COMMON.
3897 * varasm.c (assemble_name): Remove assert.
3899 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3901 * config.gcc: Keep obselete list sorted.
3903 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3904 Eric Botcazou <ebotcazou@adacore.com>
3906 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3907 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3908 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3909 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3910 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3912 2011-05-30 Richard Guenther <rguenther@suse.de>
3914 * gimple.c (gimple_types_compatible_p_1): Compare record
3915 and union type members properly.
3917 2011-05-30 Richard Guenther <rguenther@suse.de>
3919 PR tree-optimization/49210
3920 * ipa-split.c (split_function): Care for the case where the call
3921 result is not trivially convertible to the result holding variable.
3923 2011-05-30 Richard Guenther <rguenther@suse.de>
3925 PR tree-optimization/49218
3926 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3929 2011-05-30 Richard Guenther <rguenther@suse.de>
3931 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3932 New function split out from ...
3933 (forward_propagate_into_gimple_cond): ... here. Adjust.
3934 (forward_propagate_into_cond): Likewise.
3935 (forward_propagate_comparison): Also propagate into
3936 comparisons on assignment RHS. Change return value to
3937 behave similar to forward_propagate_into_cond.
3938 (tree_ssa_forward_propagate_single_use_vars): Handle
3939 strict-overflow warnings properly for forward_propagate_comparison.
3941 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3943 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3945 * configure: Regenerate.
3947 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3949 PR tree-optimization/49199
3950 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3951 non-reduction operands are either defined in the loop or by induction.
3953 2011-05-29 Xinliang David Li <davidxl@google.com>
3955 * opts-global.c (handle_common_deferred_options): Handle new options.
3956 * passes.c (register_one_dump_file): Call register_pass_name.
3957 (execute_one_pass): Check explicit enable/disable flag.
3958 (passr_hash): New function.
3960 (register_pass_name): Ditto.
3961 (get_pass_by_name): Ditto.
3964 (enable_pass): Ditto.
3965 (disable_pass): Ditto.
3966 (is_pass_explicitly_enabled_or_disabled): Ditto.
3968 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3970 * config/i386/i386.md (*movoi_internal_avx): Use
3971 standard_sse_constant_opcode for alternative 0.
3972 (*movti_internal_sse): Ditto.
3973 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3975 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3977 (*movsi_internal): Ditto.
3978 (*movdi_internal): Ditto. Add ssecvt type moves.
3980 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3983 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3985 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3987 PR rtl-optimization/49095
3988 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3989 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3991 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3994 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3995 recurse_p argument. Only follow register copies if it is set,
3996 and prevent mips_find_pic_call_symbol from recursing.
3997 (mips_find_pic_call_symbol): Add a recurse_p argument.
3998 Pass it to mips_pic_call_symbol_from_set.
3999 (mips_annotate_pic_calls): Update accordingly.
4001 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4003 * emit-rtl.c (try_split): Use a loop to search for
4004 NOTE_INSN_CALL_ARG_LOCATIONs.
4006 2011-05-29 Richard Guenther <rguenther@suse.de>
4008 PR tree-optimization/49217
4009 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4011 2011-05-28 Jan Hubicka <jh@suse.cz>
4013 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4015 (string_slot_free): Remove
4016 (create_output_block): Initialize obstack.
4017 (destroy_output_block): Free obstack.
4018 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4019 the string unless it needs to be added into the hash.
4020 (lto_output_string_with_length): Add persistent attribute;
4021 handle NULL strings.
4022 (lto_output_string): Add PERSISTENT parameter.
4023 (output_string_cst, output_identifier): Simplify.
4024 (lto_output_location_bitpack): Update.
4025 (lto_output_builtin_tree): Update.
4026 * lto-streamer.h (struct output_block): Add obstack.
4027 (lto_output_string, lto_output_string_with_length): Remove
4028 declarations; functions are static now.
4030 2011-05-28 Jan Hubicka <jh@suse.cz>
4032 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4033 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4034 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4035 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4036 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4037 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4038 unpack_ts_decl_with_vis_value_fields,
4039 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4040 lto_get_builtin_tree): Use enum and variable length i/o.
4041 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4042 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4044 (bp_pack_enum, bp_unpack_enum): New macros.
4046 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4048 * genrecog.c: Remove redundant forward declarations.
4050 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4052 * config.gcc: Deprecate mips*-*-openbsd*.
4054 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4057 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4060 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4063 * gengtype.c (vec_prefix_type): New function.
4064 (note_def_vec): Use vec_prefix_type and change the length
4065 attribute to be based on the prefix.
4066 * vec.c: Include coretypes.h before vec.h.
4067 (struct vec_prefix): Remove.
4068 (vec_gc_p_reserve): Change the offsetof to sizeof.
4069 (vec_gc_p_reserve_exact): Likewise.
4070 (vec_heap_p_reserve): Likewise.
4071 (vec_heap_p_reserve_exact): Likewise.
4072 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4073 (vec_stack_p_reserve): Change the offsetof to sizeof.
4074 (vec_stack_p_reserve_exact): Likewise.
4075 * vec.h (struct vec_prefix): New struct definition.
4076 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4077 (VEC_T_GTY(T,B)): Likewise.
4078 (DEF_VEC_FUNC_P(T)): Use prefix field.
4079 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4080 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4082 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4084 PR tree-optimization/46728
4085 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4086 (powi_as_mults): Add gimple_set_location.
4087 (build_and_insert_call): New.
4088 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4089 0.5, 0.25, 0.75, 1./3., or 1./6.
4091 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
4093 * doc/contrib.texi: Update copyright years.
4094 (Contributors): Add Zdenek Sojka.
4096 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4098 * c-decl.c (c_push_function_context): Copy the current statement
4100 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4101 (finish_struct): Call building_stmt_list_p instead of checking
4103 * c-parser.c (c_parser_postfix_expression): Likewise.
4104 * c-typeck.c (c_end_compound_stmt): Likewise.
4105 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4106 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4107 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4108 (free_stmt_list): Likewise.
4109 * tree.h (struct tree_statement_list): Include typed_tree instead
4111 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4112 as TS_TYPED instead of TS_COMMON.
4114 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4115 Uros Bizjak <ubizjak@gmail.com>
4117 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4118 (HAVE_AS_IX86_TLSGDPTL): Define.
4119 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4120 (HAVE_AS_IX86_TLSLDMPLT): Define.
4121 * configure: Regenerate.
4122 * config.in: Regenerate.
4123 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4124 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4125 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4126 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4127 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4129 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4131 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4133 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4135 (INSN_COND, INSN_REVERSE_COND): New macros.
4136 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4138 (sched_get_condition_with_rev): Cache the results, and look them up
4140 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4141 are clobbered by the current insn.
4142 * target.def (exposed_pipline): New sched data hook.
4143 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4144 * doc/tm.texi: Regenerate.
4146 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4148 PR tree-optimization/49170
4149 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4152 2011-05-27 Richard Guenther <rguenther@suse.de>
4155 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4158 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4160 * haifa-sched.c (sched_scan_info): Remove.
4161 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4163 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4165 (sched_scan): Remove.
4166 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4167 static. All callers changed.
4168 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4169 static. All callers changed.
4170 (sched_init_luids): Remove all arguments except the first. All
4171 callers changed. Don't use sched_scan.
4172 (haifa_init_h_i_d): Likewise.
4173 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4174 manually rather than using sched_init_luids. Likewise with
4175 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4176 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4177 rather than sched_init_luids with NULL args.
4178 * sel-sched-ir.c (new_insns): Remove variable.
4179 (sched_scan): New static function, previously in haifa-sched.c. Remove
4180 all arguments but the first two; all callers changed.
4181 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4182 rather than sched_init_luids.
4183 (sel_init_bbs): Remove second argument. All callers changed.
4184 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4185 with NULL arguments.
4186 (create_insn_rtx_from_pattern): Likewise.
4187 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4188 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4189 (sched_init_insn_luid, sched_extend_luids): Declare.
4190 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4193 2011-05-27 Richard Guenther <rguenther@suse.de>
4196 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4197 A CMP B ? (T) true : (T) false for non-integral types T again.
4199 2011-05-27 Jan Hubicka <jh@suse.cz>
4201 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4202 so 0 means NULL string.
4203 (lto_output_string_with_length): ... here.
4204 (lto_output_string, output_string_cst, output_identifier): Update
4205 handling of NULL strings.
4206 (lto_output_location_bitpack): New function.
4207 (lto_output_location): Use it.
4208 (lto_output_tree_ref): Use output_record_start.
4209 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4211 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4213 (input_string_internal): ... here;
4214 (input_string_cst, input_identifier, lto_input_string): Update handling
4216 (lto_input_location_bitpack): New function
4217 (lto_input_location): Use it.
4218 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4220 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4221 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4222 (bp_pack_value): Sanity check the value range.
4223 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4225 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4228 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4230 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4231 call_arg_location instructions down the floor.
4233 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4235 PR rtl-optimization/49154
4236 * ira.c (setup_pressure_classes): Process class without sublcasses
4237 as a candidate for pressure classes.
4239 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4241 PR rtl-optimization/48575
4242 * genrecog.c (position_type): New enum.
4243 (position): New structure.
4244 (decision): Use position structure instead of a string.
4245 (root_pos, peep2_insn_pos_list): New variables.
4246 (next_position, compare_positions): New functions.
4247 (new_decision): Use position structures instead of strings.
4248 (maybe_both_true): Likewise.
4249 (change_state): Likewise.
4250 (write_tree): Likewise.
4251 (make_insn_sequence): Likewise.
4253 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4255 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
4256 TS_BASE instead of TS_COMMON.
4257 (find_decls_types_r): Check for TS_TYPED structure before looking at
4259 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
4261 (BLOCK_CHAIN): Use new chain field.
4263 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
4265 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
4266 moves expensive on Power7 also.
4268 2011-05-26 Richard Guenther <rguenther@suse.de>
4270 * fold-const.c (fold_unary_loc): Remove bogus code.
4272 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4274 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4276 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4277 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4278 TS_BASE instead of TS_COMMON.
4279 * varasm.c (assemble_name): Remove assert.
4281 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4283 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
4285 * libgcc-std.ver: Delete file.
4287 2011-05-26 Richard Guenther <rguenther@suse.de>
4289 PR tree-optimization/48702
4290 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
4291 only when we know the base address is within bounds.
4292 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
4293 assume the base address of TARGET_MEM_REFs is in bounds.
4295 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4298 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
4299 declaration in TARGET_SOLARIS.
4301 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
4303 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
4304 The instruction is then expanded explicitly.
4305 (supported_compare): Callable instruction.
4306 (compare): Likewise.
4308 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4311 * gimplify.c (shortcut_cond_r): Don't special case
4312 COND_EXPRs if they have void type on one of their arms.
4314 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
4316 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
4317 to reduce duplication, and to achieve a slightly more logical order
4320 2011-05-26 Jakub Jelinek <jakub@redhat.com>
4322 PR tree-optimization/49161
4323 * tree-vrp.c (struct case_info): New type.
4324 (compare_case_labels): Sort case_info structs instead of
4325 trees, and not primarily by CASE_LABEL uids but by
4326 label_for_block indexes.
4327 (find_switch_asserts): Put case labels into struct case_info
4328 array instead of TREE_VEC, adjust sorting, compare label_for_block
4329 values instead of CASE_LABELs.
4331 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4333 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4334 ("orndi3_neon"): Likewise.
4335 ("bic<mode>3_neon"): Likewise.
4337 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
4339 PR tree-optimization/49038
4340 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
4341 Ensure at least one epilogue iteration if required by data
4343 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4344 to mark loops that require peeling for gaps.
4345 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
4346 (vect_get_known_peeling_cost): Take peeling for gaps into
4348 (vect_transform_loop): Generate epilogue if required by data
4350 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
4351 loop as requiring an epilogue if there are gaps in the end of
4354 2011-05-25 Ian Lance Taylor <iant@google.com>
4356 * godump.c (go_format_type): Output the first field with a usable
4359 2011-05-25 Ian Lance Taylor <iant@google.com>
4361 * godump.c (go_format_type): Check for invalid type names, pointer
4362 target types, and struct field types.
4364 2011-05-25 Jason Merrill <jason@redhat.com>
4366 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
4368 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
4370 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
4372 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4374 * config/i386/i386.md (*movqi_extv_1)): Put back
4375 "register_operand" check in "type" calculation.
4376 (*movqi_extzv_2): Likewise.
4378 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4380 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
4382 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4385 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
4386 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
4387 __divxc3, __divtc3): Wrap definitions in #ifndef.
4389 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4392 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
4393 "register_operand" check and replace q_regs_operand with
4394 QIreg_operand in "type" calculation.
4395 (*movqi_extv_1): Likewise.
4396 (*movqi_extzv_2_rex64): Likewise.
4397 (*movqi_extzv_2): Likewise.
4399 * config/i386/predicates.md (QIreg_operand): New.
4401 2011-05-25 Richard Guenther <rguenther@suse.de>
4403 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
4404 type-based offset disambiguation, streamline MEM_REF and
4405 TARGET_MEM_REF handling.
4407 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4409 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4410 (bdesc_special_args): Add pause intrinsic.
4412 * config/i386/i386.md (UNSPEC_PAUSE): New.
4415 * config/i386/ia32intrin.h (__pause): Likewise.
4417 * doc/extend.texi (X86 Built-in Functions): Add documentation for
4420 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4422 PR tree-optimization/46728
4423 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
4424 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
4426 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
4428 * tree.h (struct tree_exp): Inherit from struct tree_typed.
4429 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
4430 instead of TS_COMMON.
4432 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
4434 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
4435 LIBGCC2_GNU_PREFIX is defined.
4437 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
4438 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
4439 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
4440 __clz_tab): Define using __N.
4441 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
4442 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
4443 * target.def (libfunc_gnu_prefix): New hook.
4444 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
4445 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
4446 * doc/tm.texi: Regenerate.
4447 * system.h (LIBGCC2_GNU_PREFIX): Poison.
4448 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
4450 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
4451 (init_optabs): Likewise for the bswap libfuncs.
4452 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
4454 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
4455 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
4456 * libgcc-std.ver: Remove.
4457 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
4458 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
4460 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4461 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
4462 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
4463 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
4464 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
4465 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4466 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
4467 * config/fixed-bit.h (FIXED_OP): Define differently depending on
4468 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
4469 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
4471 2011-05-25 Jan Hubicka <jh@suse.cz>
4473 * lto-streamer-out.c (output_record_start): Use lto_output_enum
4474 (lto_output_tree): Use output_record_start.
4475 * lto-streamer-in.c (input_record_start): Use lto_input_enum
4476 (lto_get_pickled_tree): Use input_record_start.
4477 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
4478 (lto_value_range_error): New function.
4479 * lto-streamer.h (lto_value_range_error): Declare.
4480 (lto_output_int_in_range, lto_input_int_in_range): New functions.
4481 (lto_output_enum, lto_input_enum): New macros.
4483 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
4485 * common.opt (flag_stack_usage_info): New variable.
4486 (-Wstack-usage): New option.
4487 * doc/invoke.texi (Warning options): Document -Wstack-usage.
4488 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
4489 <OPT_fstack_usage>: Likewise.
4490 * toplev.c (output_stack_usage): Handle -Wstack-usage.
4491 * calls.c (expand_call): Test flag_stack_usage_info variable instead
4492 of flag_stack_usage.
4493 (emit_library_call_value_1): Likewise.
4494 * explow.c (allocate_dynamic_stack_space): Likewise.
4495 * function.c (instantiate_virtual_regs ): Likewise.
4496 (prepare_function_start): Likewise.
4497 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
4498 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4499 * config/arm/arm.c (arm_expand_prologue): Likewise.
4500 (thumb1_expand_prologue): Likewise.
4501 * config/avr/avr.c (expand_prologue): Likewise.
4502 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4503 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4504 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
4505 * config/mips/mips.c (mips_expand_prologue): Likewise.
4506 * config/pa/pa.c (hppa_expand_prologue): Likewise.
4507 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4508 * config/s390/s390.c (s390_emit_prologue): Likewise.
4509 * config/sh/sh.c (sh_expand_prologue): Likewise.
4510 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4511 * config/spu/spu.c (spu_expand_prologue): Likewise.
4513 2011-05-25 Richard Guenther <rguenther@suse.de>
4515 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
4516 (gimple_canonical_types_compatible_p): Likewise.
4518 2011-05-25 Jan Hubicka <jh@suse.cz>
4521 * ipa.c (function_and_variable_visibility): Only add to same
4522 comdat group list if DECL_ONE_ONLY.
4524 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
4526 PR rtl-optimization/49014
4527 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
4529 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4532 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4534 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4536 PR rtl-optimization/48757
4537 * ira-build.c (loop_with_eh_edge_p): Rename to
4538 loop_with_complex_edge_p, check edges on complexity, make function
4540 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
4543 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4545 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
4546 force flag_ira_share_save_slots to 0.
4548 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4550 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
4551 (vt_initialize): Set PROLOGUE_BB unconditionally.
4552 Add block comment about CFA_BASE_RTX machinery.
4553 Reset FP_CFA_OFFSET to -1 on all invalid paths.
4554 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
4556 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
4559 * c-parser.c (c_parser_objc_class_instance_variables): More robust
4560 parsing of syntax error in ObjC instance variable lists. In
4561 particular, avoid an infinite loop if there is a stray ']'.
4562 Updated error message.
4564 2011-05-24 Ian Lance Taylor <iant@google.com>
4566 * godump.c (go_define): Don't accept a string immediately after
4569 2011-05-24 Ian Lance Taylor <iant@google.com>
4571 * godump.c (struct godump_container): Add invalid_hash field.
4572 (go_format_type): Return false if type is found in invalid_hash.
4573 (go_output_typedef): Add invalid type to invalid_hash.
4574 (go_finish): Create and delete invalid_hash.
4576 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4578 PR tree-optimization/46728
4579 * tree-ssa-math-opts.c (powi_table): New.
4580 (powi_lookup_cost): New.
4582 (powi_as_mults_1): New.
4583 (powi_as_mults): New.
4584 (gimple_expand_builtin_powi): New.
4585 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
4586 (gate_cse_sincos): Remove sincos/cexp restriction.
4588 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4591 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
4593 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
4594 * mips-tdump.c: Likewise.
4596 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
4599 * config/i386/driver-i386.c (host_detect_local_cpu): Always
4600 add -mno-XXX. Handle FMA.
4602 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4604 PR rtl-optimization/48633
4605 * ira-build.c (loop_with_eh_edge_p): New function.
4606 (mark_loops_for_removal): Use it.
4608 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
4610 PR rtl-optimization/48971
4611 * ira.c (setup_pressure_classes): Don't check register move cost
4612 for classes with one registers. Don't add pressure class if there
4613 is a pressure class with the same available hard registers.
4614 Check contains_reg_of_mode. Fix a typo in collecting
4615 temp_hard_regset. Ignore hard registers not belonging to a class.
4617 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
4620 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
4622 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
4623 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4625 PR gcov-profile/48845
4626 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
4628 2011-05-24 Richard Guenther <rguenther@suse.de>
4630 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
4631 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
4632 (gimple_types_compatible_p_1): Adjust.
4633 (iterative_hash_canonical_type): Do not bother about complete vs.
4635 (gimple_canonical_types_compatible_p): Likewise.
4637 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4639 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
4641 2011-05-24 Richard Guenther <rguenther@suse.de>
4644 * gimple.c (gimple_register_canonical_type): Revert
4646 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
4647 does not for a tree for the case where it matters. Cache
4648 pointer-type alias-sets.
4650 2011-05-24 Joseph Myers <joseph@codesourcery.com>
4652 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
4653 (OBJS): Remove options.o, opts-common.o and prefix.o.
4654 (OBJS-libcommon-target): New.
4655 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
4656 (BACKEND): Include libcommon-target.a.
4657 (MOSTLYCLEANFILES): Include libcommon-target.a.
4658 (libcommon-target.a): New.
4659 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
4662 2011-05-23 Joseph Myers <joseph@codesourcery.com>
4664 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
4665 parts of output shared with the driver.
4666 * optc-gen.awk: Don't generate parts of output not shared with the
4668 * opth-gen.awk: Remove GCC_DRIVER conditionals.
4669 * doc/options.texi (SourcerInclude): Mention options-save.c.
4670 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
4671 (OBJS): Add options-save.o.
4672 (options-save.c, options-save.o): New.
4673 (options.o): Update dependencies.
4674 (gcc-options.o): Remove.
4675 (mostlyclean): Remove options-save.c.
4677 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4680 * dbxout.c: Include cgraph.h.
4681 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
4682 and without value expr, return NULL if no varpool node exists for
4683 it or if it is not needed.
4684 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
4687 * c-decl.c (start_decl): Convert expr to void_type_node.
4689 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
4691 PR rtl-optimization/48826
4692 * emit-rtl.c (try_split): When splitting a call that is followed
4693 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
4695 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4697 * cfgexpand.c (expand_debug_expr): For unused non-addressable
4698 parameters passed in memory prefer using DECL_INCOMING_RTL over
4699 the pseudos it will be copied into.
4701 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
4704 * config/i386/i386.c (ix86_option_override_internal): Save the
4705 initial options after checking vzeroupper.
4707 2011-05-23 David Li <davidxl@google.com>
4709 PR tree-optimization/48988
4710 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
4711 Initialize has_valid_pred for each pred chain.
4713 2011-05-23 Richard Guenther <rguenther@suse.de>
4715 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
4716 (iterative_hash_gimple_type): Always hash type names.
4718 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4720 * c-typeck.c (build_function_call_vec): Tweak call to
4721 check_function_arguments.
4723 2011-05-23 Richard Guenther <rguenther@suse.de>
4725 PR tree-optimization/49115
4726 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
4727 is not necessarily carried out, do not claim it kills the ref.
4728 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
4730 2011-05-23 Richard Guenther <rguenther@suse.de>
4733 * builtins.c (fold_builtin_memory_op): Be less restrictive about
4734 what pointer types we accept for folding.
4736 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4738 * gthr-gnat.c: Remove.
4739 * gthr-gnat.h: Remove.
4740 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
4741 * config/t-freebsd (LIB2ADDEH): Likewise.
4742 * config/t-linux (LIB2ADDEH): Likewise.
4743 * config/t-sol2 (LIB2ADDEH): Likewise.
4744 * config/ia64/t-vms (LIB2ADDEH): Likewise.
4745 * configure.ac (target_thread_file): Remove gnat handling.
4746 * configure: Regenerate.
4747 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
4749 2011-05-23 Tristan Gingold <gingold@adacore.com>
4750 Eric Botcazou <ebotcazou@adacore.com>
4752 * gcov.c (create_file_names): If no object directory is specified,
4753 keep the directory of the file.
4755 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4757 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
4758 * configure: Regenerate.
4760 2011-05-23 Jakub Jelinek <jakub@redhat.com>
4763 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
4764 failed and the comparison has a single bit signed type, use
4765 constm1_rtx instead of const1_rtx for true value.
4766 (do_store_flag): If ops->type is single bit signed type, disable
4767 signel bit test optimization and pass -1 instead of 1 as last
4768 parameter to emit_store_flag_force.
4770 2011-05-23 Tom de Vries <tom@codesourcery.com>
4773 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
4775 (infer_loop_bounds_from_undefined): Use new function.
4777 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4779 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4780 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
4781 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
4783 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
4785 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4787 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
4788 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
4791 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
4793 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
4795 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4797 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
4798 UNSPEC_MOVE_PIC pattern.
4800 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
4802 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
4803 (sparc-*-rtems*): Likewise.
4804 (sparc64-*-elf*): Likewise.
4805 (sparc64-*-rtems*): Likewise.
4806 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
4807 * config/sparc/t-crtin: New file.
4808 * config/sparc/t-sol2 (crti.o): Delete rule.
4810 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
4811 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
4812 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
4813 (ENDFILE_SPEC): Add crtn.o.
4815 2011-05-22 Tom de Vries <tom@codesourcery.com>
4818 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
4819 CODE_CONTAINS_STRUCT (TS_COMMON).
4821 2011-05-22 Jakub Jelinek <jakub@redhat.com>
4824 * expmed.c (extract_fixed_bit_field): Test whether target can be used
4825 only after deciding which mode to use.
4827 2011-05-22 Tom de Vries <tom@codesourcery.com>
4830 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
4831 for call to get_shiftadd_cost.
4833 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
4836 * config/i386/cpuid.h (bit_MMXEXT): New define.
4838 2011-05-22 Nick Clifton <nickc@redhat.com>
4840 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
4841 initialisation of non-existant args[2] element. Use args[] array
4842 not arg[] array to pass arguments to build_function_type_list.
4844 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
4846 PR tree-optimization/49087
4847 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
4849 2011-05-21 Jason Merrill <jason@redhat.com>
4852 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
4853 static storage duration.
4855 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4857 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
4860 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
4862 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
4863 false if there are call-saved registers here...
4864 (sparc_can_use_return_insn_p): ...but here instead.
4865 (save_or_restore_regs): Fix thinko.
4866 (sparc_expand_prologue): Use current_function_is_leaf.
4867 (sparc_frame_pointer_required): Likewise.
4869 2011-05-21 Nick Clifton <nickc@redhat.com>
4872 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
4874 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
4876 * gengtype.c (walk_type): Implemented "atomic" GTY option.
4877 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
4879 2011-05-21 Joseph Myers <joseph@codesourcery.com>
4881 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
4882 * optc-gen.awk: Move common code to opt-read.awk.
4883 * opth-gen.awk: Likewise.
4884 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
4886 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
4888 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
4890 2011-05-20 Tom de Vries <tom@codesourcery.com>
4893 * tree-ssa-loop-ivopts.c: Include expmed.h.
4894 (get_shiftadd_cost): New function.
4895 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
4897 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4900 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
4901 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
4903 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4905 * Makefile.in: Update comment referring to $(OBJS-common).
4907 2011-05-20 Ian Lance Taylor <iant@google.com>
4909 * godump.c (go_output_typedef): Put enum constants in the macro
4910 hash table to avoid duplicate Go const definitions.
4912 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4914 * Makefile.in (LIBDEPS): Add libcommon.a.
4916 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4917 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4918 pretty-print.o and version.o.
4919 (OBJS-libcommon): New.
4920 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4921 (BACKEND): Add libcommon.a.
4922 (MOSTLYCLEANFILES): Likewise.
4924 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4925 (cpp$(exeext)): Likewise.
4926 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4927 pretty-print.o and input.o.
4928 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4929 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4931 (mips-tfile): Don't explicitly use version.o.
4932 (mips-tdump): Likewise.
4933 (gcov.o): Depend on $(DIAGNOSTIC_H).
4934 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4935 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4936 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4937 * gcov-dump.c: Include intl.h and diagnostic.h.
4938 (main): Initialize diagnostics.
4939 * gcov.c: Include diagnostic.h.
4941 (main): Initialize diagnostics.
4942 * lto-wrapper.c: Include diagnostic.h.
4943 (main): Initialize diagnostics.
4945 2011-05-20 Michael Matz <matz@suse.de>
4947 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4949 2011-05-20 Michael Matz <matz@suse.de>
4950 Richard Guenther <rguenther@suse.de>
4952 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4953 use lto_streamer_cache_append directly instead of returning a VEC.
4954 (preload_common_node): Remove.
4955 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4957 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4959 2011-05-20 Richard Guenther <rguenther@suse.de>
4961 PR tree-optimization/49079
4962 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4963 MEM_REFs correctly for the trailing array access detection.
4964 Special case constants the same way as decls for overall size
4967 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4969 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4972 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4974 PR tree-optimization/49073
4975 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4976 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4977 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4979 2011-05-20 Richard Guenther <rguenther@suse.de>
4982 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4983 of pointer types the same way the middle-end does.
4985 2011-05-20 Richard Guenther <rguenther@suse.de>
4987 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4988 or pointer-to chains. Delay all fixup to uniquify_nodes.
4990 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4992 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4993 (fma4_fmaddsub): Likewise
4995 2011-05-19 Jan Hubicka <jh@suse.cz>
4997 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4998 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4999 (type_pair_cache): New static var.
5000 (lookup_type_pair): Use fixed sized custom hash; make inline.
5001 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5002 calls of lookup_type_pair.
5003 (print_gimple_types_stats): Remove cache stats.
5004 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5007 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5009 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5010 when TARGET_RDRND is active.
5011 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5012 Generate dummy SImode target register when target is NULL.
5014 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5016 * config/arm/arm-fpus.def: New.
5017 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5019 * config/arm/arm-tables.opt: Regenerate.
5020 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5021 (arm_option_override): Don't decode FPU name to string here.
5022 * config/arm/arm.opt (mfpu=): Use Enum.
5023 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5024 Update dependencies.
5026 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5028 * collect2.c: Include diagnostic.h.
5029 (fatal_perror, fatal, error, fancy_abort): Remove.
5030 (main): Set progname. Call xmalloc_set_program_name and
5031 diagnostic_initialize.
5032 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5033 scan_libraries, resolve_lib_name): Call fatal_error instead of
5034 fatal and fatal_perror.
5035 * collect2.h (error, fatal, fatal_perror): Don't declare.
5036 * tlink.c: Include diagnostic-core.h.
5037 (recompile_files): Call fatal_error instead of fatal_perror.
5038 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5039 pretty-print.o and input.o.
5040 (collect2.o, tlink.o): Update dependencies.
5042 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5044 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5046 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5049 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5050 COMDAT group syntax, both SPARC and x86 variants.
5051 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5052 * configure: Regenerate.
5053 * config/sol2.h (TARGET_SOLARIS): Define.
5054 (PUSHSECTION_FORMAT): Remove.
5055 (SECTION_NAME_FORMAT): Define.
5056 * config/sol2.c: Include hashtab.h.
5057 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5058 expansion, using SECTION_NAME_FORMAT.
5059 (solaris_comdat_htab): New variable.
5060 (struct comdat_entry): Define.
5061 (comdat_hash): New function.
5062 (comdat_eq): New function.
5063 (solaris_elf_asm_comdat_section): New function.
5064 (solaris_define_comdat_signature): New function.
5065 (solaris_code_end): New function.
5066 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5067 (solaris_code_end): Declare.
5068 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5069 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5071 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5072 Remove ATTRIBUTE_UNUSED.
5073 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5074 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5075 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5076 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5077 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5078 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5079 (PUSHSECTION_FORMAT): Remove.
5080 (SECTION_NAME_FORMAT): Redefine.
5082 2011-05-19 Kai Tietz <ktietz@redhat.com>
5084 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5085 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5086 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5088 2011-05-19 Anatoly Sokolov <aesok@post.ru>
5089 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5091 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5093 2011-05-19 Richard Guenther <rguenther@suse.de>
5096 * tree-object-size.c (addr_object_size): If the pointed-to
5097 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5099 2011-05-19 Richard Guenther <rguenther@suse.de>
5101 * gimple.c (gimple_types_compatible_p_1): Compare names of
5102 the types themselves.
5103 (iterative_hash_gimple_type): And hash them that way.
5104 (gimple_register_type_1): If we register a main variant properly
5105 initialize the leader to ourselves.
5107 2011-05-19 Tom de Vries <tom@codesourcery.com>
5110 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5111 get_loop_invariant_expr_id.
5112 (get_loop_invariant_expr_id): Use get_expr_id.
5113 (parm_decl_cost): New function.
5114 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5115 Improve bound cost estimation. Use different inv_expr_id for elim and
5118 2011-05-19 Tom de Vries <tom@codesourcery.com>
5121 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5122 cost_base.cost == 0.
5124 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5127 * config/i386/sse.md
5128 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5131 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5133 PR tree-optimization/49039
5134 * tree-vrp.c (extract_range_from_binary_expr): For
5135 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5136 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5138 2011-05-18 Tom de Vries <tom@codesourcery.com>
5141 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5143 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5145 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5146 (*tls_global_dynamic_64): Ditto.
5147 (*tls_local_dynamic_base_32_gnu): Ditto.
5148 (*tls_local_dynamic_base_64): Ditto.
5149 (tls_initial_exec_64_sun): Ditto.
5151 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5153 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5154 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5156 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5157 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5158 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5159 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5160 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5161 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5162 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5164 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5166 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5167 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5168 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5169 target_thread_pointer, arm_structure_size_boundary, struct
5170 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5171 struct abi_name, arm_all_abis): Remove.
5172 (arm_option_override) Don't process most enumerated option values here.
5173 Don't process target_fpe_name here. Work with integer not string for
5174 structure size boundary; use separate diagnostics for each case.
5175 * config/arm/arm.h (enum float_abi_type, enum
5176 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5178 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5179 arm_structure_size_boundary): Remove.
5180 * config/arm/arm.opt (mabi=): Use Enum and Init.
5181 (arm_abi_type): New Enum and EnumValue entries.
5182 (mfloat-abi=): Use Enum and Init.
5183 (float_abi_type): New Enum and EnumValue entries.
5184 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5185 (mfp16-format=): Use Enum and Init.
5186 (arm_fp16_format_type): New Enum and EnumValue entries.
5187 (mstructure-size-boundary=): Use UInteger and Init.
5188 (mtp=): Use Enum and Init.
5189 (arm_tp_type): New Enum and EnumValue entries.
5191 2011-05-18 Richard Guenther <rguenther@suse.de>
5193 PR tree-optimization/49018
5194 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5195 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5196 gimple_has_side_effects.
5198 2011-05-18 Richard Guenther <rguenther@suse.de>
5200 * gimple.c (gimple_register_type_1): New function, split out from ...
5201 (gimple_register_type): ... here. Avoid infinite recursion.
5203 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5205 PR tree-optimization/41881
5206 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5207 reduction_chains along with a macro for its access.
5208 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5209 (destroy_loop_vec_info): Free reduction chains.
5210 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5211 (vect_is_slp_reduction): New function.
5212 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5213 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5214 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5215 definition types for reduction chains.
5216 (vect_supported_load_permutation_p): Don't allow permutations for
5218 (vect_analyze_slp_instance): Support reduction chains.
5219 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5220 (vect_get_constant_vectors): Handle reduction chains.
5221 (vect_schedule_slp_instance): Mark the first statement of the
5222 reduction chain as reduction.
5224 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5226 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5227 names for group elements access.
5228 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5229 reduction chains as well. Remove data reference and interleaving
5230 related words from the fields names.
5231 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5233 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5234 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5235 vect_update_interleaving_chain, vect_same_range_drs,
5236 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5237 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5238 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5239 vect_analyze_group_access, vect_analyze_data_ref_access,
5240 vect_create_data_ref_ptr, vect_transform_strided_load,
5241 vect_record_strided_load_vectors): Likewise.
5242 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5243 vect_model_load_cost, vectorizable_store, vectorizable_load,
5244 vect_remove_stores, new_stmt_vec_info): Likewise.
5245 * tree-vect-slp.c (vect_build_slp_tree,
5246 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5248 2011-05-18 Richard Guenther <rguenther@suse.de>
5251 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
5252 operand verification.
5253 (verify_gimple_assign_binary): Likewise.
5254 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
5255 to non-1-precision BOOLEAN_TYPEs.
5257 2011-05-18 Tom de Vries <tom@codesourcery.com>
5260 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
5262 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5264 PR tree-optimization/49000
5265 * tree-ssa.c (execute_update_addresses_taken): Call
5266 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
5267 be rewritten and decl has been marked for renaming, reset
5270 2011-05-17 Joseph Myers <joseph@codesourcery.com>
5272 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
5273 enum_opts_set when testing if attributes have set -mfpmath=.
5275 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5277 * config/mips/mips.c (mips_handle_option): Remove unused variable.
5279 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5281 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
5283 * tree-inline.c (maybe_inline_call_in_expr): Initialize
5284 id.transform_lang_insert_block with NULL.
5286 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
5288 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
5289 (output_fp_compare): Change args 3 and 4 to bool.
5290 (ix86_expand_call): Change arg 6 to bool.
5291 (ix86_attr_length_immediate_default): Change arg 2 to bool.
5292 (ix86_attr_length_vex_default): Change arg 3 to bool.
5293 * config/i386/i386.md: Update all uses.
5294 * config/i386/i386.c: Ditto.
5295 (ix86_flags_dependent): Change return type to bool.
5297 2011-05-17 Richard Guenther <rguenther@suse.de>
5299 * gimple.c (type_hash_pair_compare): Fix comparison.
5301 2011-05-17 Richard Guenther <rguenther@suse.de>
5303 * gimple.c (iterative_hash_gimple_type): Simplify singleton
5304 case some more, fix final hash value of the non-singleton case.
5306 2011-05-17 Richard Guenther <rguenther@suse.de>
5310 2011-05-16 Richard Guenther <rguenther@suse.de>
5312 * gimple.c (gimple_types_compatible_p_1): Use names of the
5313 type itself, not its main variant.
5314 (iterative_hash_gimple_type): Likewise.
5316 2011-05-17 Richard Guenther <rguenther@suse.de>
5318 * gimple.c (gimple_register_canonical_type): Use the main-variant
5319 leader for computing the canonical type.
5321 2011-05-17 Nick Clifton <nickc@redhat.com>
5323 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
5326 * config/rx/rx.md: Add peephole to remove redundant extensions
5328 (bitset_in_memory): Use rx_restricted_mem_operand.
5329 (bitinvert_in_memory): Likewise.
5330 (bitclr_in_memory): Likewise.
5332 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
5333 Nick Clifton <nickc@redhat.com>
5335 * config/rx/rx.md: Add peepholes to match a register move followed
5336 by a comparison of the moved register. Replace these with an
5337 addition of zero that does both actions in one instruction.
5339 2011-05-17 Jakub Jelinek <jakub@redhat.com>
5342 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
5343 predicate to allow CONST_INT.
5344 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
5346 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5348 * opts-common.c (opt_enum_arg_to_value): New.
5349 * opts.h (opt_enum_arg_to_value): Declare.
5350 * config/i386/i386.opt (fpmath): Remove.
5351 (mfpmath=): Use Enum, Init and Save.
5352 (fpmath_unit): New Enum and EnumValue entries.
5353 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
5354 name for function fpmath state.
5355 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
5356 * config/i386/i386.c: Include diagnostic.h.
5357 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
5358 (ix86_target_string): Take enum fpmath_unit value instead of string.
5359 (ix86_debug_options): Update call to ix86_target_string.
5360 (ix86_option_override_internal): Don't process fpmath strings here.
5361 (x86_function_specific_save, ix86_function_specific_restore):
5362 Don't handle fpmath state specially.
5363 (ix86_function_specific_print): Pass fpmath state to
5364 ix86_target_string instead of printing in this function.
5365 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
5366 Handle enum attributes.
5367 (IX86_ATTR_ENUM, ix86_opt_enum): New.
5368 (ix86_valid_target_attribute_tree): Update option_strings
5369 handling. Handle fpmath as enum option.
5370 (ix86_can_inline_p): Update field names for function fpmath state.
5371 (ix86_expand_builtin): Update call to ix86_target_string.
5372 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
5373 (ix86_fpmath): Remove.
5374 * config/i386/t-i386 (i386.o): Update dependencies.
5376 2011-05-16 Joseph Myers <joseph@codesourcery.com>
5378 PR preprocessor/48677
5379 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
5380 from decoded_options[0], not from itself.
5382 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
5384 * config/i386/constraints.md (z): New constraint.
5385 * config/i386/i386.c (c): New mode attribute.
5386 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
5387 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
5388 constraint for operand 0.
5389 (*call_vzeroupper): Ditto.
5390 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
5391 (*call_rex64_ms_sysv_vzeroupper): Ditto.
5392 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
5393 Use "lzm" constraint for operand 0.
5394 (*call_pop_vzeroupper): Ditto.
5395 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
5396 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
5397 constraint for operand 0.
5398 (*sibcall_vzeroupper): Ditto.
5399 (*sibcall_rex64_ms_sysv): Ditto.
5400 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
5401 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
5402 *sibcall_pop_1. Use "Uz" constraint for operand 0.
5403 (*sibcall_pop_vzeroupper): Ditto.
5404 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
5405 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
5406 mode iterator. Use "<c>zm" constraint for operand 1.
5407 (*call_value_vzeroupper): Ditto.
5408 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
5410 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
5411 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
5412 *call_value_pop_1. Use "lzm" constraint for operand 1.
5413 (*call_value_pop_vzeroupper): Ditto.
5414 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
5415 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
5416 mode iterator. Use "Uz" constraint for operand 1.
5417 (*sibcall_value_vzeroupper): Ditto.
5418 (*sibcall_value_rex64_ms_sysv): Ditto.
5419 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
5420 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
5421 constraint for operand 1.
5422 (*sibcall_value_pop_vzeroupper): Ditto.
5423 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
5424 and "z" constraint for operand 2.
5425 (*tls_global_dynamic_32_gnu): Ditto.
5426 (*tls_local_dynamic_base_32_gnu): Ditto.
5427 (*tls_local_dynamic_base_64): Ditto.
5428 (*tls_local_dynamic_32_once): Ditto.
5429 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
5431 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
5433 2011-05-16 Richard Guenther <rguenther@suse.de>
5435 * gimple.c (gimple_types_compatible_p_1): Use names of the
5436 type itself, not its main variant.
5437 (iterative_hash_gimple_type): Likewise.
5439 2011-05-16 Richard Guenther <rguenther@suse.de>
5441 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
5442 always visit pointer target and function result and argument types.
5444 2011-05-16 Jason Merrill <jason@redhat.com>
5447 * tree-inline.c (copy_statement_list): Put back recursion.
5449 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5453 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
5454 * config/avr/avr.md ("*ior<mode>qi.byte0",
5455 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
5457 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
5460 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
5461 register is needed for a function argument.
5463 2011-05-16 Richard Guenther <rguenther@suse.de>
5465 * gimple.c (struct type_hash_pair): New type.
5466 (type_hash_pair_compare): New function.
5467 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
5469 2011-05-16 Revital Eres <revital.eres@linaro.org>
5471 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
5473 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5475 * config/i386/i386.md (floating point move splitters): Fix
5476 usage of standard_80387_constant_p.
5477 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
5479 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
5481 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
5483 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
5485 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
5486 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
5487 (tree_ssa_lim_finalize): Likewise.
5489 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
5491 * config/i386/constraint.md (Yd, Yx): New register constraints.
5492 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
5493 Yd conditional register constraint.
5494 (*movtf_internal): Use standard_sse_constant_opcode.
5495 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
5496 Yx conditional register constraint.
5497 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
5498 Yd conditional register constraint. Use standard_sse_constant_p to
5499 check for valid SSE constants and call standard_sse_constant_opcode to
5501 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
5502 constants and call standard_sse_constant_opcode to output SSE insn.
5503 * config/i386/i386.c (ix86_option_ovverride_internal): Set
5504 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
5505 optimize_size is set.
5506 (standard_sse_constant_opcode): Output conditional AVX insn templates.
5508 2011-05-14 Tobias Burnus <burnus@net-b.de>
5510 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
5512 2011-05-13 Martin Jambor <mjambor@suse.cz>
5514 * ipa-prop.c (ipa_cst_from_jfunc): New function.
5515 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
5516 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
5517 (evaluate_conditions_for_ipcp_clone): Removed.
5518 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
5519 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
5520 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
5522 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
5524 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
5525 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
5526 lieu of MAY_HAVE_DEBUG_STMTS.
5527 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
5528 debug statements if !MAY_HAVE_DEBUG_STMTS.
5530 2011-05-13 Martin Thuresson <martint@google.com>
5532 PR gcov-profile/47793
5533 * libgcov.c (gcov_exit): Support relative profile paths.
5534 * doc/invoke.texi (-fprofile-dir): Update for above change.
5536 2011-05-13 Richard Guenther <rguenther@suse.de>
5538 * gimple.c (gimple_canonical_types_compatible_p): Do not use
5539 type-pair caching, do not compare hashes.
5541 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
5544 * tree-cfg.c (edge_to_cases_cleanup): Return true.
5545 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
5547 2011-05-13 Kai Tietz <ktietz@redhat.com>
5549 * gimplify.c (gimplify_expr): Make sure operand is boolified.
5550 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
5551 compatible type for TRUTH_NOT_EXPR.
5553 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
5555 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
5556 (ix86_hard_regno_mode_ok): Change return value to bool. Use
5557 can_create_pseudo_p ().
5559 2011-05-13 Richard Guenther <rguenther@suse.de>
5562 * gimple.c (iterative_hash_gimple_type): Revert change in
5563 pointer target and function result and argument hashing.
5565 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
5567 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
5568 (*movxf_internal_nointeger): Ditto.
5569 (*movdf_internal_rex64): Ditto.
5570 (*movdf_internal): Ditto.
5571 (*movdf_internal_nointeger): Ditto.
5572 (*movsf_internal): Ditto.
5573 (sincos splitters): Use can_create_pseudo ().
5575 2011-05-13 Joseph Myers <joseph@codesourcery.com>
5577 * config/i386/i386-opts.h: New.
5578 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
5579 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
5580 ix86_section_threshold): Remove.
5581 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
5582 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
5584 (ix86_option_override_internal): Don't decode strings for options
5585 other than -march=, -mtune= and -mfpmath=. Don't allow for
5586 __attribute__ uses in remaining diagnostics for options with
5587 string arguments. Don't check for integer arguments being negative.
5588 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
5589 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
5590 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
5591 ix86_branch_cost, ix86_section_threshold): Remove.
5592 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
5594 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
5596 (masm=): Use Enum and Init.
5597 (asm_dialect): New Enum and EnumValue entries.
5598 (mbranch-cost=): Use UInteger.
5599 (mlarge-data-threshold=): Use UInteger and Init.
5600 (mcmodel=): Use Enum and Init.
5601 (cmodel): New Enum and EnumValue entries.
5602 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
5603 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
5604 mregparm=): Use UInteger.
5605 (mstringop-strategy=): Use Enum and Init.
5606 (stringop_alg): New Enum and EnumValue entries.
5607 (mtls-dialect=): Use Enum and Init.
5608 (tls_dialect): New Enum and EnumValue entries.
5609 (mabi=): Use Enum and Init.
5610 (calling_abi): New Enum and EnumValue entries.
5611 (mveclibabi=): Use Enum and Init.
5612 (ix86_veclibabi): New Enum and EnumValue entries.
5614 2011-05-13 Nick Clifton <nickc@redhat.com>
5616 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
5617 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
5619 2011-05-13 Kai Tietz <ktietz@redhat.com>
5622 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
5623 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
5624 (gimple_boolify): Check for cast for boolean_type_node instead for
5627 2011-05-13 Richard Guenther <rguenther@suse.de>
5629 PR tree-optimization/48172
5630 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
5631 multiplying by number of iterations for equal step.
5632 (vect_create_cond_for_alias_checks): Likewise.
5634 2011-05-13 Andreas Schwab <schwab@redhat.com>
5636 * configure.ac: Use AS_HELP_STRING throughout.
5637 * configure: Regenerate.
5639 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
5641 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
5642 (ix86_emit_restore_regs_using_mov): Likewise.
5643 (ix86_emit_restore_sse_regs_using_mov): Likewise.
5645 2011-05-12 Anatoly Sokolov <aesok@post.ru>
5647 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
5648 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
5649 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
5650 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
5651 RTX_OK_FOR_OLO10_P): ...here.
5652 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
5655 2011-05-12 Kai Tietz <ktietz@redhat.com>
5657 * gimplify.c (gimple_boolify): Re-boolify expression
5658 arguments even if expression type is of kind BOOLEAN_TYPE.
5659 (gimplify_boolean_expr): Removed.
5660 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
5661 and XOR. Additional take care that we keep expression's type.
5662 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
5663 of TRUTH_AND|OR|XOR_EXPR.
5665 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5667 PR tree-optimization/48975
5668 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
5669 on all bbs here and free and clear ifc_bbs at the end.
5671 2011-05-12 Richard Guenther <rguenther@suse.de>
5673 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
5674 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
5675 until after simple checks.
5676 (gimple_types_compatible_p): Likewise.
5677 (iterative_hash_gimple_type): Always hash pointer targets
5678 and function return and argument types.
5679 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
5680 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
5681 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
5682 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
5683 completely in the simple compare section.
5684 (gimple_register_canonical_type): Query the cache again after
5687 2011-05-12 Richard Guenther <rguenther@suse.de>
5689 PR tree-optimization/48172
5690 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
5691 the number of iterations from the segment size calculation.
5692 (vect_create_cond_for_alias_checks): Adjust.
5694 2011-05-12 Jakub Jelinek <jakub@redhat.com>
5697 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
5698 if validate_subreg fails.
5700 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
5702 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
5703 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5706 2011-05-12 DJ Delorie <dj@redhat.com>
5708 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
5709 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
5710 created builtin into rx_builtins array.
5711 (rx_builtin_decl): New function.
5712 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
5714 2011-05-12 DJ Delorie <dj@redhat.com>
5715 Nick Clifton <nickc@redhat.com>
5717 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
5718 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
5719 (rx_is_legitimate_address): Add pre-decrement and post-increment
5720 addressing in HImode and QImode. Fix test for out of range
5722 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5723 (rx_align_for_label): Test label before extracting its usage count.
5724 (rx_adjust_insn_lengths): Fix selection of insn codes.
5725 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5727 2011-05-11 Jason Merrill <jason@redhat.com>
5729 * tree.c (type_hash_canon): Use struct tree_type_non_common.
5731 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5733 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
5734 reindent the subsequent block.
5736 2011-05-11 Satoru Takabayashi <satorux@google.com>
5737 Paul Pluzhnikov <ppluzhnikov@google.com>
5739 * doc/install.texi (Configuration): Document --with-linker-hash-style.
5740 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
5741 * config.in: Add LINKER_HASH_STYLE.
5742 * configure.ac: Add --with-linker-hash-style.
5743 * configure: Regenerate.
5745 2011-05-11 Richard Guenther <rguenther@suse.de>
5748 * gimple.c (iterative_hash_canonical_type): Fix typo.
5750 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
5752 * config/i386/i386.c (legitimize_tls_address)
5753 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5754 expanders directly for TARGET_GNU2_TLS. Determine pic and
5755 __tls_get_addr symbol reference here. Update call to
5756 gen_tls_global_dynamic_{32,64} for added arguments.
5757 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
5758 expanders directly for TARGET_GNU2_TLS. Determine
5759 __tls_get_addr symbol reference here. Update call to
5760 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
5761 unique UNSPEC REG_EQUIV to libcall block.
5762 (ix86_tls_get_addr): Declare static.
5763 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
5764 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
5765 Do not determine pic and __tls_get_addr symbol reference here. Do not
5766 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
5767 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
5768 (tls_global_dynamic_64): Add operand 2. Do not determine
5769 __tls_get_addr symbol reference here. Do not call
5770 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
5771 (tls_local_dynamic_base64): Ditto for operand 1.
5773 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
5775 * function.c (expand_function_start): Initialize stack_check_probe_note
5776 only if the generic stack checking mechanism is used.
5778 2011-05-11 Richard Guenther <rguenther@suse.de>
5780 PR tree-optimization/15256
5781 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
5782 (A & B) | C, combine (A op CST1) op CST2.
5783 (tree_ssa_forward_propagate_single_use_vars): Only bother to
5784 visit assigns that have uses.
5786 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
5788 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
5789 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
5790 (unpack_ts_type_common_value_fields): ...this. Update comment.
5791 (unpack_value_fields): Adjust for renaming.
5792 (lto_input_ts_type_tree_pointers): Split into...
5793 (lto_input_ts_type_common_tree_pointer): ...this and...
5794 (lto_input_ts_type_non_common_tree_pointers): ...this.
5795 (lto_input_tree_pointers): Adjust for above split.
5796 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
5797 (pack_ts_type_common_value_fields): ...this. Update comment.
5798 (lto_output_ts_type_tree_pointers): Split into...
5799 (lto_output_ts_type_common_tree_pointers): ...this and...
5800 (lto_output_ts_type_non_common_tree_pointers): ...this.
5801 (lto_output_tree_pointers): Adjust for above split.
5802 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
5803 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
5804 * stor-layout.c (vector_type_mode): Adjust location of mode field.
5805 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
5807 (struct tree_type): Split into...
5808 (struct tree_type_common: ...this and...
5809 (struct tree_type_with_lang_specific): ...this and...
5810 (struct tree_type_non_common): ...this. Adjust accessor macros
5812 (TYPE_VALUES_RAW): Define.
5813 (union tree_node): Update for above changes.
5814 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
5816 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
5817 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
5818 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
5819 * treestructu.def (TS_TYPE): Remove.
5820 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
5823 2011-05-11 Jakub Jelinek <jakub@redhat.com>
5826 * tree-ssa.c (reset_debug_uses): New function.
5827 * tree-flow.h (reset_debug_uses): New prototype.
5828 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
5829 * tree-loop-distribution.c (generate_loops_for_partition): Call
5830 reset_debug_uses on the stmts that will be removed. Keep around
5831 all debug stmts, don't count them as bits in partition bitmap.
5832 (generate_builtin): Don't count debug stmts or labels as bits in
5835 2011-05-11 Richard Guenther <rguenther@suse.de>
5837 * gimple.c (gimple_type_hash_1): Merge with ...
5838 (gimple_type_hash): ... this.
5839 (gtc_visit): Remove mode parameter and simplify accordingly.
5840 (gimple_types_compatible_p_1): Likewise.
5841 (gimple_types_compatible_p): Likewise.
5842 (iterative_hash_gimple_type): Likewise.
5844 (gimple_type_eq): Adjust.
5846 2011-05-11 Revital Eres <revital.eres@linaro.org>
5848 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
5849 enters the branch create an anti edge in the opposite direction
5850 to prevent the creation of reg-moves.
5851 * modulo-sched.c: Adjust comment to reflect the fact we are
5852 scheduling closing branch.
5853 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
5854 (stage_count): New field in struct partial_schedule.
5855 (calculate_stage_count): New function.
5856 (normalize_sched_times): Rename to reset_sched_times and handle
5857 incrementing the sched time of the nodes by a constant value
5858 passed as parameter.
5859 (duplicate_insns_of_cycles): Skip closing branch.
5860 (sms_schedule_by_order): Schedule closing branch.
5861 (ps_insn_find_column): Handle closing branch.
5862 (sms_schedule): Call reset_sched_times and adjust the code to
5863 support scheduling of the closing branch.
5864 (ps_insert_empty_row): Update calls to normalize_sched_times
5865 and rotate_partial_schedule functions.
5867 2011-05-11 Richard Guenther <rguenther@suse.de>
5870 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
5872 2011-05-11 Joseph Myers <joseph@codesourcery.com>
5874 * opts.c (finish_options): Move warning settings from process_options.
5875 * toplev.c (process_options): Move warning settings to finish_options.
5877 2011-05-11 Richard Guenther <rguenther@suse.de>
5879 PR tree-optimization/18041
5880 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
5881 (simplify_bitwise_binary): ... this. Handle operand conversions
5882 by applying them to the result instead.
5883 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
5885 2011-05-11 Richard Guenther <rguenther@suse.de>
5887 * gimple.c (gimple_canonical_types_compatible_p): Split out
5888 from gimple_types_compatible_p and friends. Do not recurse
5889 to pointed-to types.
5890 (gimple_canonical_type_eq): Use it.
5891 (iterative_hash_canonical_type): Split out from
5892 iterative_hash_gimple_type and friends. Do not recurse
5893 to pointed-to types.
5894 (gimple_canonical_type_hash): Use it, allocate the hash here.
5896 2011-05-11 Revital Eres <revital.eres@linaro.org>
5898 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
5901 2011-05-11 Revital Eres <revital.eres@linaro.org>
5903 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5904 instead of PREV_INSN.
5906 2011-05-11 Revital Eres <revital.eres@linaro.org>
5908 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5909 * loop-doloop.c (doloop_condition_get): Likewise.
5910 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5912 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5914 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5916 * tree.def (CASE_LABEL_EXPR): Add an operand.
5917 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5919 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5921 * c-decl.c (c_override_global_bindings_to_false): Remove.
5922 (global_bindings_p): Don't check
5923 c_override_global_bindings_to_false.
5924 * c-tree.h (c_override_global_bindings_to_false): Remove.
5925 * c-typeck.c (composite_type): Don't set
5926 c_override_global_bindings_to_false.
5928 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5930 PR target/48857, 48495
5931 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5933 (VSX_MOVE_MODE): Ditto.
5934 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5935 VSX vector types. Add V2DImode.
5936 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5937 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5938 (MODES_TIEABLE_P): Ditto.
5940 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5941 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5943 (init_cumulative_args): Ditto.
5944 (rs6000_function_arg_boundary): Ditto.
5945 (rs6000_function_arg_advance_1): Ditto.
5946 (rs6000_function_arg): Ditto.
5947 (rs6000_function_ok_for_sibcall): Ditto.
5948 (emit_frame_save): Ditto.
5949 (rs6000_function_value): Ditto.
5950 (rs6000_libcall_value): Ditto.
5952 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5954 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5955 i386/darwin-lib.h to $libgcc_tm_file.
5956 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5958 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5960 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5962 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5964 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5965 * config/rs6000/rs6000-tables.opt: New file (generated).
5966 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5967 rs6000/rs6000-tables.opt to extra_options.
5968 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5969 * config/rs6000/rs6000.c (rs6000_select): Remove.
5970 (processor_target_table): Move contents to rs6000-cpus.def.
5971 (darwin_rs6000_override_options): Check
5972 global_options_set.x_rs6000_cpu_index instead of
5973 rs6000_select[1].string.
5974 (rs6000_option_override_internal): Likewise.
5975 (rs6000_handle_option): Don't assert that global structures are in
5976 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5977 (rs6000_default_cpu): New variable.
5978 (rs6000_file_start): Set it instead of local default_cpu. Check
5979 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5980 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5981 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5982 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5983 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5984 rs6000_select): Remove.
5985 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5987 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5988 * config/rs6000/t-rs6000
5989 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5990 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5991 global_options_set.x_rs6000_cpu_index instead of
5992 rs6000_select[1].string.
5993 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5994 global_options_set.x_rs6000_cpu_index instead of
5995 rs6000_select[1].string.
5997 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5999 * config.gcc (libgcc_tm_file): Define instead of including files
6000 from ../../libgcc/config/ in tm_file.
6001 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6002 * configure: Regenerate.
6003 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6004 libgcc_tm.h, cs-libgcc_tm.h): New.
6005 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6006 (clean): Remove libgcc_tm.h.
6007 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6008 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6009 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6011 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6014 * config/avr/avr.c (avr_ret_register): Return unsigned int
6016 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6017 it to avr_libcall_value.
6018 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6020 (avr_expand_binop_builtin): Ditto.
6021 (avr_expand_unop_builtin): Ditto.
6023 2011-05-10 DJ Delorie <dj@redhat.com>
6025 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6026 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6027 * config/rx/rx.c (rx_align_for_label): Add label and
6028 uses_threshold parameters. Do not align when the label is not
6030 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6032 2011-05-10 Richard Guenther <rguenther@suse.de>
6034 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6035 a series of conversions and apply foldings similar to what
6037 (tree_ssa_forward_propagate_single_use_vars): Call it.
6039 2011-05-10 Jakub Jelinek <jakub@redhat.com>
6041 PR tree-optimization/48611
6042 PR tree-optimization/48794
6043 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6044 referenced from RESX or EH_DISPATCH arguments.
6047 * dfp.c (decimal_to_decnumber): Handle conversion from
6048 dconst{1,2,m1,half}.
6050 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6052 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6053 for !flag_prefer_avx128.
6054 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6056 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6058 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6059 (fold_ternary_loc): Use expr_location_or.
6061 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6064 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6065 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6066 Pmode and mem_mode is not VOIDmode.
6068 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
6070 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6071 TYPE_QUAL_RESTRICT): Convert to enum.
6073 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6075 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6076 (const_pow2_1_to_8_operand): Ditto.
6077 (const_pow2_1_to_128_operand): Ditto.
6078 (const_pow2_1_to_32768_operand): Ditto.
6079 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6080 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6081 in insn constraint to check integer value of operand 3.
6082 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6084 (PINSR_MODE): New mode iterator.
6085 (sse2p4_1): New mode attribute.
6086 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6087 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6088 iterator. Use const_int_operand instead of
6089 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6090 exact_log2 in insn constraint to check integer value of operand 3.
6092 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6094 * config/i386/sse.md (blendbits): Remove mode attribute.
6095 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6096 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6097 Check integer value of operand 3 in insn constraint.
6099 2011-05-09 Richard Guenther <rguenther@suse.de>
6101 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6103 (lto_symtab_merge): Likewise. Do not register types here.
6104 (lto_symtab_merge_decls_2): Likewise.
6105 (lto_symtab_merge_decls_1): Likewise.
6106 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6107 * gimple.c (enum gtc_mode): Declare.
6108 (gimple_types_compatible_p): Make static.
6110 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6112 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6113 temporary register to match Pmode.
6115 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6117 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6118 and *vec_concatv4si_1_avx.
6120 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6122 PR rtl-optimization/48927
6123 * ira-conflicts.c (commutative_constraint_p): Use
6124 recog_data.alternative_enabled_p to disable alternatives where
6125 "enabled" attribute is false.
6126 (get_dup_num): Ditto.
6127 * ira-lives.c (single_reg_class): Ditto.
6128 (ira_implicitly_set_insn_hard_regs): Ditto.
6130 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6132 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6133 (dataflow_set_preserve_mem_locs): Likewise.
6135 2011-05-09 Philipp Thomas <pth@suse.de>
6137 * config/mep/mep.c (mep_validate_vliw): Syntax description
6138 should not be translated.
6140 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6142 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6143 * config/mips/mips-tables.opt: New file (generated).
6144 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6145 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6146 MIPS_ARCH_OPTION_NATIVE): Define.
6147 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6149 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6150 mips_parse_cpu): Remove.
6151 (mips_cpu_info_from_opt, mips_default_arch): New.
6152 (mips_handle_option): Don't assert that global structures are in
6153 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6154 (mips_option_override): Use new variables and functions to set
6155 state of these options. Use strcmp to check for individual CPU names.
6156 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6158 * config/mips/mips.opt (march=): Use ToLower and Enum.
6159 (mips): Use ToLower, Enum and Var.
6160 (mtune=): Use ToLower and Enum.
6161 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6163 2011-05-08 Jan Hubicka <jh@suse.cz>
6165 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6166 Arrange type pairs to be UID ordered.
6167 (gimple_lookup_type_leader): Make inline.
6169 2011-05-09 Nick Clifton <nickc@redhat.com>
6172 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6176 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6179 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6181 * combine.c (simplify_comparison): Abstract out parts into...
6182 (simplify_compare_const): ... new function.
6183 (try_combine): Generalize parallel arithmetic/compare combining
6184 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6186 2011-05-08 Jan Hubicka <jh@suse.cz>
6188 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6189 (cgraph_create_virtual_clone): Call hooks once virtual clone
6191 * cgraph.h (cgraph_clone_node): Update prototype.
6192 * ipa-cp.c (ipcp_estimate_growth): Use
6193 estimate_ipcp_clone_size_and_time.
6194 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6195 * lto-cgraph.c (input_node): Update.
6196 * ipa-inline.c (recursive_inlining): Update.
6197 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6198 (evaluate_conditions_for_known_args): Break out from ...
6199 (evaluate_conditions_for_edge): ... here.
6200 (evaluate_conditions_for_ipcp_clone): New function.
6201 (inline_node_duplication_hook): Update clone summary based
6203 (estimate_callee_size_and_time): Rename to ...
6204 (estimate_node_size_and_time): take NODE instead of EDGE;
6205 take POSSIBLE_TRUTHS as argument.
6206 (estimate_callee_size_and_time): Update.
6207 (estimate_ipcp_clone_size_and_time): New function.
6208 (do_estimate_edge_time): Update.
6210 2011-05-08 Richard Guenther <rguenther@suse.de>
6214 * expmed.c (expand_shift_1): Compute adjusted constant shift
6217 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6219 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6221 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6223 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6225 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6227 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6229 2011-05-07 Jan Hubicka <jh@suse.cz>
6231 * ipa-inline-transform.c (inline_call): Account when program size
6233 * ipa-inline.c (relative_time_benefit): New function.
6234 (edge_badness): Reorganize to be power 2 based; fix thinko when
6235 computing badness for negative growth; update comments to match
6236 reality; better dumps.
6238 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6240 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6241 type to bool and adjust comment.
6242 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6243 (fold_mathfn_compare): Remove calls to global_bindings_p.
6244 (fold_inf_compare): Likewise.
6245 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6246 * c-tree.h (global_bindings_p): Adjust prototype.
6247 * c-decl.c (global_bindings_p): Return bool and simplify.
6249 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
6251 PR tree-optimization/48837
6252 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
6253 when accumulator transformation is performed.
6255 2011-05-06 Jan Hubicka <jh@suse.cz>
6257 * i386.h (ix86_tune_indices): Add
6258 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
6259 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
6260 * i386.c (initial_ix86_tune_features): Add
6261 X86_SOFTARE_PREFETCHING_BENEFICIAL.
6262 (software_prefetching_beneficial_p): Remove predicate.
6263 (ix86_option_override_internal): Use new macro.
6265 2011-05-06 Jan Hubicka <jh@suse.cz>
6267 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
6269 2011-05-06 Jan Hubicka <jh@suse.cz>
6271 * cgraph.c (cgraph_add_thunk): Create real function node instead
6272 of alias node; finalize it and mark needed/reachale; arrange visibility
6273 to be right and add it into the corresponding same comdat group list.
6274 (dump_cgraph_node): Dump thunks.
6275 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
6276 cgraph_function_with_gimple_body_p,
6277 cgraph_first_function_with_gimple_body,
6278 cgraph_next_function_with_gimple_body): New functions.
6279 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
6281 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
6282 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6283 * cgraphunit.c (cgraph_finalize_function): Only look into possible
6284 devirtualization when optimizing.
6285 (verify_cgraph_node): Verify thunks.
6286 (cgraph_analyze_function): Analyze thunks.
6287 (cgraph_mark_functions_to_output): Output thunks only in combination
6288 with function they are assigned to.
6289 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
6290 alias into normal node.
6291 (assemble_thunks): New functoin.
6292 (cgraph_expand_function): Use it.
6293 * lto-cgraph.c (lto_output_node): Stream thunks.
6294 (input_overwrite_node): Stream in thunks.
6295 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
6296 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
6297 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
6298 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
6299 (inline_analyze_function): Do not care about thunk jump functions.
6300 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
6301 * ipa-prop.c (ipa_prop_write_jump_functions): Use
6302 cgraph_function_with_gimple_body_p.
6303 * passes.c (do_per_function_toporder): Use
6304 cgraph_function_with_gimple_body_p.
6305 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
6306 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
6307 (function_called_by_processed_nodes_p): Likewise.
6309 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6311 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
6312 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
6314 (mabi=): Replace with separate entries for mabi=altivec,
6315 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
6316 mabi=ieeelongdouble and mabi=ibmlongdouble.
6317 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
6318 check for -mabi=spe without SPE ABI support here.
6319 (rs6000_handle_option): Replace OPT_mabi_ handling with
6320 OPT_mabi_altivec and OPT_mabi_spe handling.
6322 2011-05-06 Cary Coutant <ccoutant@google.com>
6324 * dwarf2out.c (contains_subprogram_definition): New function.
6325 (should_move_die_to_comdat): Call it.
6327 2011-05-06 Jeff Law <law@redhat.com>
6329 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
6330 remove_ctrl_stmt_and_useless_edges.
6331 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
6332 (fixup_template_block, thread_single_edge): Likewise.
6333 (mark_threaded_blocks): Use THREAD_TARGET.
6335 2011-05-06 Alan Modra <amodra@gmail.com>
6338 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6339 const0_rtx as the arg to the dummy __tls_get_addr libcall.
6341 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6343 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
6344 constraint modifier to "r".
6346 2011-05-06 Joseph Myers <joseph@codesourcery.com>
6348 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
6349 fall through for OPT_mcmodel_.
6351 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6353 * config/s390/s390.c (s390_asm_trampoline_template): Comment
6355 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
6357 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6360 * config/arm/arm.opt (marm): Document it.
6361 (mthumb): Reject negative variant.
6363 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
6366 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6367 Fix typo in "ccvt" variable name.
6369 2011-05-06 Tristan Gingold <gingold@adacore.com>
6372 * config/vms/vms-ar.c (main): Remove cwd variable.
6374 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6377 * var-tracking.c (prepare_call_arguments): Move else before #endif.
6379 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
6381 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
6382 * gimplify.c (gimplify_switch_expr): Likewise.
6383 * omp-low.c (expand_omp_sections): Likewise.
6384 * tree-eh.c (lower_try_finally_switch): Likewise.
6385 (lower_eh_dispatch): Likewise.
6386 * tree.h (build_case_label): Declare.
6387 * tree.c (build_case_label): Define.
6389 2011-05-05 Jason Merrill <jason@redhat.com>
6392 * tree-inline.c (copy_tree_r): Use copy_statement_list.
6393 (copy_statement_list): Don't recurse.
6394 * stor-layout.c (copy_self_referential_tree_r): Don't allow
6397 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6399 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
6400 through from -mfpu= handling.
6401 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
6403 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
6405 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
6408 2011-05-05 Steve Ellcey <sje@cup.hp.com>
6410 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
6412 (hppa[12]*-*-hpux11*): Ditto.
6413 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
6414 * config/ia64/hpux-unix2003.h: New.
6415 * config/pa/pa-hpux1131.opt: New.
6416 * config/pa/pa-hpux1131.h: New.
6417 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
6418 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
6419 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
6421 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6424 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
6425 instead of mode as 3rd argument to recursive call.
6426 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
6427 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
6429 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
6430 don't give up if mode is Pmode and mem_mode is not VOIDmode.
6431 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
6432 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
6434 2011-05-05 Julian Brown <julian@codesourcery.com>
6436 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
6437 parenthesis in D-register case.
6439 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6441 * opt-functions.awk (var_type_struct): Handle Enum options.
6442 * optc-gen.awk: Don't check range of variables of character type.
6443 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
6444 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
6445 rs6000_sdata_name, rs6000_explicit_options): Remove.
6446 (rs6000_option_override_internal): Check for -malign-power here.
6447 Use global_options_set instead of rs6000_explicit_options.
6448 (rs6000_parse_fpu_option): Remove.
6449 (rs6000_handle_option): Access variables via opts and opts_set
6450 pointers. Use error_at and warning_at. Add fall-through
6451 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
6452 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
6453 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
6454 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
6455 here. Don't use rs6000_parse_fpu_option.
6456 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
6457 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
6458 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
6460 (mspe): Use Var and Save.
6461 (mtraceback=): Use Enum and Var.
6462 (rs6000_traceback_type): New Enum and EnumValue entries.
6463 (mfloat-gprs=): Use Enum, Var and Save.
6464 (rs6000_float_gprs): New Enum and EnumValue entries.
6465 (mlong-double-): use Var and Save.
6466 (msched-costly-dep=, minsert-sched-nops=): Use Var.
6467 (malign-): Use Enum and Var.
6468 (rs6000_alignment_flags): New Enum and EnumValue entries.
6470 (fpu_type_t): New Enum and EnumValue entries.
6471 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6472 global_options_set instead of rs6000_explicit_options.
6473 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6474 global_options_set instead of rs6000_explicit_options.
6475 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6476 global_options_set instead of rs6000_explicit_options.
6477 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
6478 global_options_set instead of rs6000_explicit_options.
6479 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
6480 global_options_set instead of rs6000_explicit_options.
6481 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6482 global_options_set instead of rs6000_explicit_options.
6483 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
6485 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6486 global_options_set instead of rs6000_explicit_options.
6487 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
6488 (rs6000_cmodel): New Enum and EnumValue entries.
6489 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6490 global_options_set instead of rs6000_explicit_options.
6491 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
6492 (mtls-size=): Use Enum and Var.
6493 (rs6000_tls_size): New Enum and EnumValue entries.
6495 2011-05-05 Michael Matz <matz@suse.de>
6497 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
6498 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
6499 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
6500 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
6501 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
6502 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
6503 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
6504 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
6505 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
6506 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
6507 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
6508 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
6509 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
6510 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
6511 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
6512 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
6514 2011-05-05 Richard Guenther <rguenther@suse.de>
6516 * expmed.c (expand_variable_shift): Rename to ...
6517 (expand_shift_1): ... this. Take an expanded shift amount.
6518 For rotates recurse directly not building trees for the shift amount.
6519 (expand_variable_shift): Wrap around expand_shift_1.
6520 (expand_shift): Adjust.
6522 2011-05-05 Jakub Jelinek <jakub@redhat.com>
6524 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
6526 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
6528 * tree.h (get_pending_sizes): Remove prototype.
6529 (put_pending_size): Likewise.
6530 (put_pending_sizes): Likewise.
6531 * stor-layout.c (pending_sizes): Delete.
6532 (get_pending_sizes): Likewise.
6533 (put_pending_size): Likewise.
6534 (put_pending_sizes): Likewise.
6535 (variable_size): Do not call put_pending_size and tidy up.
6536 * function.h (struct function): Remove dont_save_pending_sizes_p.
6537 * lto-streamer-in.c (input_function): Do not stream it.
6538 * lto-streamer-out.c (output_function): Likewise.
6539 * tree-inline.c (initialize_cfun): Do not copy it.
6540 * c-decl.c (store_parm_decls): Do not set it.
6541 * omp-low.c (create_task_copyfn): Likewise.
6542 * tree-optimize.c (tree_rest_of_compilation): Likewise.
6544 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
6546 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
6548 (*movdf_internal): Ditto.
6549 (*movdf_internal_nointeger): Ditto.
6550 (*movsf_internal): Ditto.
6552 2011-05-05 Joseph Myers <joseph@codesourcery.com>
6554 * c-decl.c (finish_decl): Don't call get_pending_sizes.
6555 (grokparm): Add parameter expr. Pass it to grokdeclarator.
6556 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
6557 (c_variable_size): Remove.
6558 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
6559 call put_pending_sizes.
6560 (get_parm_info): Add parameter expr. Use it to set
6561 arg_info->pending_sizes.
6562 (store_parm_decls): Use arg_info->pending_sizes instead or calling
6564 * c-parser.c (c_parser_parms_declarator): Update call to
6565 c_parser_parms_list_declarator.
6566 (c_parser_parms_list_declarator): Take parameter expr. Update
6567 call to push_parm_decl. Update recursive call. Don't call
6568 get_pending_sizes. Update calls to get_parm_info.
6569 (c_parser_objc_method_definition): Update calls to
6570 c_parser_objc_method_decl and objc_start_method_definition.
6571 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
6572 (c_parser_objc_method_decl): Add parameter expr. Update call to
6574 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
6575 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
6576 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
6578 2011-05-05 Michael Hope <michael.hope@linaro.org>
6581 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
6584 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6586 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6587 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6588 (spu_output_mi_thunk): New function.
6590 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6592 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
6593 targetm.asm_out.print_operand.
6594 * config/sol2.c: Include target.h.
6596 2011-05-04 Jan Hubicka <jh@suse.cz>
6598 * ipa-inline.c (reset_edge_caches): New function.
6599 (update_caller_keys): Add check_inlinablity_for; do not
6600 reset edge caches; remove now unnecesary loop.
6601 (update_callee_keys): Add comments; reset node_growth_cache of callee.
6602 (update_all_callee_keys): Likewise.
6603 (inline_small_functions): Sanity check cache; update code
6606 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
6608 PR rtl-optimization/47612
6609 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
6610 as the last insn of the sequence to be moved.
6612 2011-05-04 Tobias Burnus <burnus@net-b.de>
6615 * doc/invoke.texi (Ofast): Document that it
6616 enables Fortran's -fno-protect-parens.
6618 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6620 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
6622 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
6624 * stor-layout.c (variable_size): Do not issue errors.
6626 2011-05-04 Richard Guenther <rguenther@suse.de>
6628 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
6629 for array-ref indices.
6630 (tree_coverage_counter_addr): Likewise.
6631 (build_fn_info_type): Use size_int for index types.
6632 (build_gcov_info): Likewise.
6634 2011-05-04 Richard Guenther <rguenther@suse.de>
6636 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
6638 * c-typeck.c (really_start_incremental_init): Use bitsize_int
6639 for constructor indices.
6640 (push_init_level): Likewise.
6642 2011-05-04 Richard Guenther <rguenther@suse.de>
6644 * explow.c (promote_mode): Move variable declarations before code.
6646 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
6648 * tree.h (build_function_type_array): Declare.
6649 (build_varargs_function_type_array): Declare.
6650 (build_function_type_vec, build_varargs_function_type_vec): Define.
6651 * tree.c (build_function_type_array_1): New function.
6652 (build_function_type_array): New function.
6653 (build_varargs_function_type_array): New function.
6655 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
6657 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
6658 before setting STMT_VINFO_TYPE.
6660 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6662 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
6663 instead of spu_pass_by_reference.
6665 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6667 * calls.c (emit_library_call_value_1): Invoke
6668 promote_function_mode hook on libcall arguments.
6669 * explow.c (promote_function_mode, promote_mode): Handle TYPE
6670 argument being NULL.
6671 * targhooks.c (default_promote_function_mode): Lisewise.
6672 * config/s390/s390.c (s390_promote_function_mode): Likewise.
6673 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
6675 * doc/tm.texi: Document that TYPE argument might be NULL.
6677 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6679 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
6681 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6684 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
6686 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6688 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
6689 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
6691 * mips-tfile.c: ... here.
6692 Don't include coretypes.h, tm.h, filenames.h.
6693 (saber_stop): Remove definition and all calls.
6694 [__SABER__]: Remove.
6695 (__LINE__): Remove default.
6696 (Size_t, Ptrdiff_t): Remove definitions.
6697 Replace by size_t, ptrdiff_t.
6698 [!MIPS_DEBUGGING_INFO]: Remove.
6699 (SHASH_SIZE, THASH_SIZE): Remove defaults.
6700 (progname): Add const.
6702 Replace all uses by static.
6703 (ALIGN_SYMTABLE_OFFSET): Remove default.
6704 * mips-tdump.c: Don't include coretypes.h, tm.h.
6705 Remove !MIPS_IS_STAB guard.
6706 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
6707 $(TM_H), filenames.h dependencies.
6708 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
6710 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6713 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
6714 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6716 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6719 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
6720 account and save/restore RETS.
6721 (PROFILE_BEFORE_PROLOGUE): Define.
6722 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
6723 the push insn to use predecrement.
6725 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
6728 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
6730 2011-05-04 Nick Clifton <nickc@redhat.com>
6732 * config/mn10300/mn10300.c: Include cfgloop.h.
6734 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
6735 Lcc or a FLcc insn into the instruction stream.
6736 (mn10300_block_contains_call): New function. Returns true if the
6737 given basic block contains a CALL insn.
6738 (mn10300_loop_contains_call_insn): New function. Returns true if
6739 the given loop contains a CALL insn.
6740 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
6741 to use the SETLB and Lcc or FLcc insns.
6742 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
6743 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
6744 * config/mn10300/mn10300.opt (msetlb): New option. Used to
6745 disable the SETLB optimization.
6746 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
6747 __SETLB__ or __NO_SETLB__.
6748 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
6749 (movsf_internal): Handle MDR register.
6750 (cmpsi): Make visible.
6751 (setlb): New pattern.
6753 (FLcc): New pattern.
6755 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
6758 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
6759 for reg<->xmm moves.
6760 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
6761 (vec_concatv2di_rex64_sse): Ditto.
6762 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
6763 (*vec_extractv2di_1_rex64): Ditto.
6766 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6768 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6770 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
6772 2011-05-04 Richard Guenther <rguenther@suse.de>
6774 * tree.h (int_const_binop): Remove notrunc argument.
6775 * fold-const.c (int_const_binop): Remove notrunc argument. Always
6776 create integer constants that are properly truncated.
6777 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
6778 (const_binop): Remove zero notrunc argument to int_const_binop.
6779 (size_binop_loc): Likewise.
6780 (fold_div_compare): Likewise.
6781 (maybe_canonicalize_comparison_1): Likewise.
6782 (fold_comparison): Likewise.
6783 (fold_binary_loc): Likewise.
6784 (multiple_of_p): Likewise.
6785 * expr.c (store_constructor): Likewise.
6786 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6787 (maybe_fold_stmt_addition): Likewise.
6788 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
6789 * stor-layout.c (layout_type): Likewise.
6790 * tree-data-ref.c (tree_fold_divides_p): Likewise.
6791 * tree-sra.c (build_ref_for_offset): Likewise.
6792 (build_user_friendly_ref_for_offset): Likewise.
6793 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
6794 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6795 * tree-ssa-loop-niter.c (inverse): Likewise.
6796 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6797 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
6798 * tree-switch-conversion.c (check_range): Likewise.
6799 (build_constructors): Likewise.
6800 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
6801 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
6802 (extract_range_from_assert): Likewise.
6803 (vrp_int_const_binop): Likewise.
6804 (extract_range_from_binary_expr): Likewise.
6805 (extract_range_from_unary_expr): Likewise.
6806 (check_array_ref): Likewise.
6807 (find_case_label_range): Likewise.
6808 (simplify_div_or_mod_using_ranges): Likewise.
6809 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
6810 comparing case labels for merging.
6812 2011-05-03 Mark Wielaard <mjw@redhat.com>
6814 * dwarf2out.c (debug_str_hash_forced): Removed.
6815 (gen_label_for_indirect_string): Removed.
6816 (get_debug_string_label): Removed.
6817 (AT_string_form): Generate label directly.
6818 (output_indirect_string): Test indirect_string_node for
6819 DW_FORM_strp instead of checking label and refcount.
6820 (prune_indirect_string): Removed.
6821 (prune_unused_types): Don't check debug_str_hash_forced or
6822 call prune_indirect_string.
6824 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6827 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
6829 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
6833 * combine.c (try_combine): Skip debug insns at m_split tests.
6835 2011-04-26 Mark Wielaard <mjw@redhat.com>
6838 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
6839 when info_section_emitted.
6841 2011-05-03 Joseph Myers <joseph@codesourcery.com>
6843 * config/mips/mips-opts.h: New.
6844 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
6846 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
6847 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
6848 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
6850 * config/mips/mips.h (enum mips_code_readable_setting): Move to
6852 (mips_abi, mips_code_readable): Don't declare.
6853 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
6854 (mabi=): Use Enum and Var.
6855 (mips_abi): New Enum and EnumValue entries.
6856 (mcode-readable=): Use Enum and Var.
6857 (mips_code_readable_setting): New Enum and EnumValue entries.
6858 (mr10k-cache-barrier=): Use Enum and Var.
6859 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
6861 2011-05-03 Jan Hubicka <jh@suse.cz>
6863 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
6864 replace hash by pointer map.
6865 (cgraph_node_set_element_def, cgraph_node_set_element,
6866 const_cgraph_node_set_element, varpool_node_set_element_def,
6867 varpool_node_set_element, const_varpool_node_set_element): Remove.
6868 (free_cgraph_node_set, free_varpool_node_set): New function.
6869 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
6870 * tree-emutls.c: Free varpool node set.
6871 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
6872 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6873 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
6874 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6875 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
6876 Move here from ipa.c; implement using pointer_map
6877 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
6878 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
6879 debug_cgraph_node_set, varpool_node_set_new,
6880 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
6881 dump_varpool_node_set, debug_varpool_node_set):
6882 Move to ipa-uitls.c.
6883 * passes.c (ipa_write_summaries): Update.
6885 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6887 From Mike Frysinger:
6888 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
6889 bf542/bf544/bf547/bf548/bf549.
6891 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6893 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
6895 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6898 * config/bfin/bfin.md (MOVCC): New mode_macro.
6899 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
6900 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
6901 comments from generated assembly.
6903 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6906 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6907 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6908 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6909 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6910 * config/bfin/lib1funcs.asm (___muldi3): New function.
6912 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6914 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6915 build_function_type_list instead of build_function_type.
6916 Rearrange initialization of `args' to do so.
6918 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6920 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6921 instead of build_function_type.
6923 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6925 * config/rs6000/rs6000.c (spe_init_builtins): Call
6926 build_function_type_list instead of build_function_type.
6927 (paired_init_builtins, altivec_init_builtins): Likewise.
6928 (builtin_function_type): Likewise.
6930 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6932 * config/sh/sh.c (sh_media_init_builtins): Call
6933 build_function_type_list instead of build_function_type.
6935 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6937 * config/sparc/sparc.c (sparc_file_end): Call
6938 build_function_type_list instead of build_function_type.
6940 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6942 * config/alpha/alpha.c (alpha_init_builtins): Call
6943 build_function_type_list instead of build_function_type.
6945 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6947 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6948 build_function_type_list instead of build_function_type.
6950 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6952 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6953 build_function_type_list instead of build_function_type.
6954 Delete `endlink' variable.
6956 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6958 * config/avr/avr.c (avr_init_builtins): Call
6959 build_function_type_list instead of build_function_type.
6961 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6963 * config/picochip/picochip.c (picochip_init_builtins): Call
6964 build_function_type_list instead of build_function_type.
6965 Delete `endlink' variable.
6967 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6969 * config/bfin/bfin.c (bfin_init_builtins): Call
6970 build_function_type_list instead of build_function_type.
6972 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6975 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6976 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6978 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6981 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6982 libbffastfp overrides libgcc when -mfast-fp.
6984 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6986 Originally from Bernd Schmidt
6987 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6988 * config/bfin/bfin.c (override_options): Test it and error if
6991 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6993 Originally From Bernd Schmidt
6994 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6997 2011-05-03 Jeff Law <law@redhat.com>
6999 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7000 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7001 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7002 than accessing AUX field directly. Free the AUX field before
7004 (thread_block, thread_through_loop_header): Likewise.
7005 (thread_single_edge, mark_threaded_blocks): Likewise.
7006 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7007 (register_jump_thread): Do not attempt to thread to a NULL edge.
7009 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7011 * function.c (init_function_start): Call decide_function_section.
7012 * varasm.c (decide_function_section): New function.
7013 (assemble_start_function): When not using
7014 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7015 or first_function_block_is_cold.
7016 * rtl.h (decide_function_section): Declare.
7018 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7019 Jakub Jelinek <jakub@redhat.com>
7022 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7023 only succeed if req_mode is the same as set_mode.
7025 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7027 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7028 * genemit.c (gen_exp): Handle RETURN.
7029 * emit-rtl.c (verify_rtx_sharing): Likewise.
7030 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7031 * rtl.c (copy_rtx): RETURN is shared.
7032 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7034 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7035 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7036 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7037 * config/cris/cris.c (cris_expand_return): Likewise.
7038 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7039 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7040 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7041 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7042 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7044 * config/v850/v850.c (expand_epilogue): Likewise.
7045 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7046 * config/arm/arm.md (epilogue): Likewise.
7047 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7048 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7049 variable to ret_reg.
7051 2011-05-03 Richard Guenther <rguenther@suse.de>
7054 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7055 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7056 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7058 2011-05-03 Richard Guenther <rguenther@suse.de>
7060 * c-decl.c (grokdeclarator): Instead of looking at
7061 TREE_OVERFLOW check if the constant fits in the index type.
7063 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7065 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7066 (vec_store_lanes<mode><mode>): Likewise.
7068 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7070 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7071 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7072 convert_optab_index values.
7073 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7074 * genopinit.c (optabs): Initialize the new optabs.
7075 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7076 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7077 (expand_STORE_LANES): New functions.
7078 * tree.h (build_array_type_nelts): Declare.
7079 * tree.c (build_array_type_nelts): New function.
7080 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7081 (vect_model_load_cost): Likewise.
7082 (vect_store_lanes_supported, vect_load_lanes_supported)
7083 (vect_record_strided_load_vectors): Declare.
7084 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7085 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7086 (vect_transform_strided_load): Split out statement recording into...
7087 (vect_record_strided_load_vectors): ...this new function.
7088 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7089 (write_vector_array, create_array_ref): New functions.
7090 (vect_model_store_cost): Add store_lanes_p argument.
7091 (vect_model_load_cost): Add load_lanes_p argument.
7092 (vectorizable_store): Try to use store-lanes functions for
7094 (vectorizable_load): Likewise load-lanes and loads.
7095 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7096 to vect_model_store_cost.
7097 (vect_build_slp_tree): Likewise vect_model_load_cost.
7099 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7101 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7102 * hooks.c (hook_bool_mode_uhwi_false): New function.
7103 * target.def (array_mode_supported_p): New hook.
7104 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7105 * doc/tm.texi: Regenerate.
7106 * stor-layout.c (mode_for_array): New function.
7107 (layout_type): Use it.
7108 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7109 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7111 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7114 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7115 for -fstack-check if the size to allocate is negative.
7117 2011-05-02 Lawrence Crowl <crowl@google.com>
7119 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7120 (timevar_cond_start): New for starting a timer only when it is not
7122 (timevar_cond_stop): New for stopping a timer when it was not already
7125 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7126 (timevar_cond_start): New as above.
7127 (timevar_cond_stop): New as above.
7129 * timevar.def: Add start/stop timers for compiler phases,
7130 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7131 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7132 and TV_PHASE_FINALIZE.
7133 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7134 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7135 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7136 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7137 Make unused TV_OVERLOAD into a start/stop timer.
7139 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7140 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7141 to indicate that they are start/stop timers.
7143 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7144 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7145 Move initialization to do_compile.
7146 (do_compile): Add initialization from above.
7147 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7149 * c-decl.c (c_write_global_declarations): Add start/stop of
7150 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7152 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7153 or TV_PARSE_INLINE, as appropriate.
7154 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7155 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7157 2011-05-02 Jason Merrill <jason@redhat.com>
7160 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7162 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7165 * c-decl.c (finish_decl): Only create a composite if the types are
7168 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7170 * config/fr30/fr30-protos.h (Mmode): Don't define.
7171 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7172 definition where used.
7173 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7174 define. Expand definitions where used.
7175 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7176 Expand definitions where used.
7177 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7178 rx_function_arg, rx_function_arg_advance,
7179 rx_function_arg_boundary): Expand definitions of those macros.
7180 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7181 definition where used.
7183 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7185 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7187 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7188 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7189 with *movv2sf_internal_rex64_avx.
7190 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7191 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7192 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7193 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7194 "vex" in "prefix" attribute calculation.
7195 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7197 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7200 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7201 inputs match the output.
7203 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7206 * config/m68k/m68k.c (m68k_expand_prologue): Set
7207 current_function_static_stack_size.
7209 2011-05-02 Jan Hubicka <jh@suse.cz>
7211 * lto-streamer.c (lto_streamer_cache_insert_1,
7212 lto_streamer_cache_lookup, lto_streamer_cache_create,
7213 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7214 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7216 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7218 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7219 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7220 config/m68k/t-opts: New files.
7221 * config/m68k/m68k-tables.opt: New file (generated).
7222 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7223 extra_options and m68k/t-opts to tmake_file.
7224 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7225 (all_isas): Initialize using m68k-isas.def.
7226 (all_microarchs): Initialize using m68k-microarchs.def.
7227 (m68k_find_selection): Remove.
7228 (m68k_handle_option): Don't assert that global structures are in
7229 use. Use error_at. Access variables via opts pointer. Don't
7230 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7231 directly for -m68020-40 and -m68020-60.
7232 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7233 m68k_tune_entry here.
7234 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7236 (m68k_library_id_string): Remove declaration.
7237 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7238 (m68k_library_id_string): New Variable.
7239 (march=, mcpu=, mtune=): Use Enum and Var.
7241 2011-05-02 Richard Guenther <rguenther@suse.de>
7243 * varasm.c (output_constructor_regular_field): Compute zero-based
7244 index with double-ints. Make sure to ICE instead of producing
7246 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7247 in asserts. Properly use a signed type.
7249 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7251 * config/i386/sse.md (V): New mode iterator.
7252 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
7254 (V_256): Rename from AVX256MODE.
7255 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
7256 condition to all users.
7258 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
7259 condition to all users.
7260 (VF_128): Make V4SF mode unconditional.
7261 (VF_256): Rename from AVX256MODEF2P.
7262 (VI4F_128): Rename from SSEMODE4S.
7263 (VI8F_128): Rename from SSEMODE2D.
7264 (VI4F_256): Rename from AVX256MODE8P.
7265 (VI8F_256): Rename from AVX256MODE4P.
7266 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
7267 (ssescalarmodesuffix): Remove SF and DF modes.
7268 (SSEMODE124): Remove.
7269 (SSEMODE1248): Ditto.
7270 (SSEMODEF2P): Ditto.
7271 (AVXMODEF2P): Ditto.
7272 (AVXMODEFDP): Ditto.
7273 (AVXMODEFSP): Ditto.
7274 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
7276 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
7278 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
7279 xop_pcmov_<mode>256. Use V mode iterator.
7281 Adjust RTX patterns globally for renamed mode attributes.
7283 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7285 * haifa-sched.c (sched_emit_insn): Emit insn before first
7286 non-scheduled insn. Inform back-end about new insn. Add
7287 new insn to scheduled_insns list.
7289 2011-05-02 Richard Guenther <rguenther@suse.de>
7291 PR tree-optimization/48822
7292 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
7293 (process_scc): Indicate which iteration we start.
7295 2011-05-02 Jan Hubicka <jh@suse.cz>
7297 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
7298 (lto_section_overrun): New.
7299 * lto-section-out.c (append_block): Rename to ...
7300 (lto_append_block): ... this one; export.
7301 (lto_output_1_stream): Move lto lto-streamer.h
7302 (lto_output_data_stream): Update.
7303 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
7304 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
7307 2011-05-02 Richard Guenther <rguenther@suse.de>
7309 * tree.c (tree_code_counts): New global array.
7310 (record_node_allocation_statistics): Count individual tree codes.
7311 (dump_tree_statistics): Dump individual code stats.
7313 2011-05-01 Jan Hubicka <jh@suse.cz>
7315 * ipa-inline.c (caller_growth_limits): Fix thinko when
7316 looking for largest stack frame.
7317 * ipa-inline.h (dump_inline_summary): Declare.
7318 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
7320 (dump_inline_summary): Export.
7321 (debug_inline_summary): Declare as DEBUG_FUNCTION.
7323 2011-05-01 Anatoly Sokolov <aesok@post.ru>
7325 * reginfo.c (memory_move_cost): Change rclass argument type form
7326 'enum reg_class' to reg_class_t.
7327 * reload.h (memory_move_cost): Update prototype.
7328 * postreload.c reload_cse_simplify_set): Change type dclass var to
7330 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
7332 (ira_allocate_and_set_costs): Change aclass argument type form
7333 'enum reg_class' to reg_class_t.
7334 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
7335 Change aclass argument type to reg_class_t.
7336 (update_conflict_hard_reg_costs): Change type aclass and pref vars
7338 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
7339 memory_move_cost call.
7341 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
7342 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
7343 Change type tmp var to reg_class_t.
7345 2011-04-30 Jan Hubicka <jh@suse.cz>
7347 * ipa-inline.c (can_inline_edge_p): Disregard limits when
7348 inlining into function with flatten attribute.
7349 (want_inline_small_function_p): Be more realistic about inlining
7350 cold calls where callee size grows.
7352 2011-04-30 Jan Hubicka <jh@suse.cz>
7354 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
7357 2011-04-30 Anatoly Sokolov <aesok@post.ru>
7359 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
7360 PRINT_OPERAND_PUNCT_VALID_P): Remove.
7361 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
7362 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
7363 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7364 (print_operand): Rename to...
7365 (sparc_print_operand): ...this. Make static. Adjust
7366 sparc_print_operand function call.
7367 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
7370 2011-04-30 Jan Hubicka <jh@suse.cz>
7373 * ipa-inline.c (early_inliner): Disable when doing late
7374 addition of function.
7376 2011-04-30 Jakub Jelinek <jakub@redhat.com>
7378 * dwarf2out.c (get_address_mode): New inline.
7379 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
7380 if not dwarf_strict emit
7381 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
7382 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
7383 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
7384 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
7385 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
7386 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
7387 mem_loc_descriptor callers.
7388 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
7389 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
7390 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
7391 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
7392 (base_types): New variable.
7393 (get_base_type_offset, calc_base_type_die_sizes,
7394 base_type_for_mode, mark_base_types, base_type_cmp,
7395 move_marked_base_types): New functions.
7396 (calc_die_sizes): Assert that die_offset is 0 or equal to
7398 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
7399 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
7400 callers. If not dwarf_strict, call mem_loc_descriptor even for
7401 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
7402 (gen_subprogram_die): Don't give up on call site parameters
7403 with non-integral or large integral modes. Adjust
7404 mem_loc_descriptor callers.
7405 (prune_unused_types): Call prune_unused_types_mark on base_types
7407 (resolve_addr): Call mark_base_types.
7408 (dwarf2out_finish): Call move_marked_base_types.
7410 PR tree-optimization/48809
7411 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
7413 (gen_inbound_check): Don't compute index_expr - range_min in utype
7414 again, instead reuse SSA_NAME initialized in build_arrays.
7415 Remove two useless gsi_for_stmt calls.
7417 2011-04-29 Jeff Law <law@redhat.com>
7419 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
7421 2011-04-29 Martin Jambor <mjambor@suse.cz>
7423 * cgraph.h (cgraph_postorder): Remove declaration.
7424 * ipa-utils.h (ipa_free_postorder_info): Declare.
7425 (ipa_reverse_postorder): Likewise.
7426 * cgraphunit.c: Include ipa-utils.h.
7427 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
7428 * ipa-inline.c: Include ipa-utils.h.
7429 (ipa_inline): Update call to ipa_reverse_postorder.
7430 * ipa-pure-const.c (propagate_pure_const): Update call to
7431 ipa_reduced_postorder and ipa_print_order. Call
7432 ipa_free_postorder_info to clean up.
7433 (propagate_nothrow): Likewise.
7434 * ipa-reference.c (propagate): Removed a useless call to
7435 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
7436 and ipa_print_order. Call ipa_free_postorder_info to clean up.
7437 * ipa.c: Include ipa-utils.h.
7438 (ipa_profile): Update call to ipa_reverse_postorder.
7439 (cgraph_postorder): Moved to...
7440 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
7441 (ipa_utils_print_order): Renamed to ipa_print_order.
7442 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
7444 (ipa_free_postorder_info): New function.
7445 * passes.c: Include ipa-utils.h.
7446 (do_per_function_toporder): Update call to ipa_reverse_postorder.
7447 (ipa_write_summaries): Likewise.
7448 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
7449 (cgraphunit.o): Likewise.
7451 (ipa-inline.o): Likewise.
7453 2011-04-29 Jan Hubicka <jh@suse.cz>
7455 * gcc.dg/tree-ssa/inline-10.c: New testcase.
7456 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
7457 * ipa-inline.h (clause_t): Turn into unsigned int.
7458 * ipa-inline-analysis.c (add_clause): Do more simplification.
7459 (and_predicates): Shortcut more cases.
7460 (predicates_equal_p): Move forward; check that clauses are properly
7462 (or_predicates): Shortcut more cases.
7463 (edge_execution_predicate): Rewrite as...
7464 (set_cond_stmt_execution_predicate): ... this function; handle
7465 __builtin_constant_p.
7466 (set_switch_stmt_execution_predicate): New .
7467 (compute_bb_predicates): New.
7468 (will_be_nonconstant_predicate): Update TODO.
7469 (estimate_function_body_sizes): Use compute_bb_predicates
7470 and free them later, always try to estimate if stmt is constant.
7471 (estimate_time_after_inlining, estimate_size_after_inlining):
7472 Gracefully handle optimized out edges.
7473 (read_predicate): Fix off by one error.
7475 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
7477 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
7479 2011-04-27 Xinliang David Li <davidxl@google.com>
7481 * tree-profile.c (init_ic_make_global_vars): Set
7482 tls attribute on ic vars.
7483 * coverage.c (coverage_end_function): Initialize
7484 function_list with zero.
7486 2011-04-29 Richard Guenther <rguenther@suse.de>
7488 * builtins.c (fold_builtin_classify_type): Use integer_type_node
7489 for the type of the result.
7490 (fold_builtin_isascii): Likewise.
7491 (fold_builtin_toascii): Use integer_type_node where appropriate.
7492 (fold_builtin_logb): Likewise.
7493 (fold_builtin_frexp): Likewise.
7494 (fold_builtin_strstr): Likewise.
7495 (fold_builtin_strpbrk): Likewise.
7496 (fold_builtin_fputs): Likewise.
7497 (fold_builtin_sprintf): Likewise.
7498 (fold_builtin_snprintf): Likewise.
7499 (fold_builtin_printf): Likewise.
7500 (do_mpfr_remquo): Use a proper type for the assigned constant.
7501 (do_mpfr_lgamma_r): Likewise.
7502 * dwarf2out.c (resolve_one_addr): Use size_int.
7503 * except.c (init_eh): Likewise.
7504 (assign_filter_values): Use integer_type_node for filter values.
7505 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
7507 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
7508 for EH region numbers.
7509 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
7510 for the shift amount.
7512 2011-04-29 Richard Guenther <rguenther@suse.de>
7514 * expr.h (expand_shift): Rename to ...
7515 (expand_variable_shift): ... this.
7516 (expand_shift): Take a constant shift amount.
7517 * expmed.c (expand_shift): Rename to ...
7518 (expand_variable_shift): ... this.
7519 (expand_shift): New wrapper around expand_variable_shift.
7520 * expr.c (convert_move, emit_group_load_1, emit_group_store,
7521 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
7522 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
7523 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
7524 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
7525 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
7526 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
7527 emit_store_flag_1, emit_store_flag): Likewise.
7528 * builtins.c (expand_builtin_signbit): Likewise.
7529 * calls.c (load_register_parameters): Likewise.
7530 * function.c (assign_parm_setup_block): Likewise.
7531 * lower-subreg.c (resolve_shift_zext): Likewise.
7532 * optabs.c (widen_bswap, expand_abs_nojump,
7533 expand_one_cmpl_abs_nojump, expand_float): Likewise.
7534 * spu/spu.c (spu_expand_extv): Likewise.
7535 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7537 2011-04-29 Richard Guenther <rguenther@suse.de>
7539 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
7540 for the remapped region number.
7541 * predict.c (build_predict_expr): Use integer_type_node for the
7543 * fold-const.c (fold_binary_loc): Use integer_type_node for
7544 the shift amount. Use a proper type for the PLUS_EXPR operand.
7546 2011-04-29 Michael Matz <matz@suse.de>
7548 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
7549 other trees that just builtins.
7550 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
7552 2011-04-29 Richard Guenther <rguenther@suse.de>
7554 * tree-nested.c (get_trampoline_type): Use size_int.
7555 (get_nl_goto_field): Likewise.
7556 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
7558 (lower_eh_constructs_2): Likewise.
7559 (lower_resx): Likewise.
7560 (lower_eh_dispatch): Likewise.
7561 * tree-mudflap.c (mf_build_string): Use size_int.
7562 (mudflap_register_call): Use integer_type_node for the flag.
7563 (mudflap_enqueue_constant): Use size_int.
7564 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
7565 instead of rebuilding it.
7567 2011-04-29 Richard Guenther <rguenther@suse.de>
7569 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
7570 Handle OBJ_TYPE_REF.
7571 (find_func_aliases_for_call): Use it more consistently.
7573 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
7575 * haifa-sched.c (last_nondebug_scheduled_insn): New.
7576 (rank_for_schedule): Use it.
7577 (schedule_block): Set it.
7579 2011-04-28 David Li <davidxl@google.com>
7581 * tree.c (crc32_string): Use crc32_byte.
7582 (crc32_byte): New function.
7583 * tree.h (crc32_byte): New function.
7584 * gcov.c (read_graph_file): Handle new cfg_cksum.
7585 (read_count_file): Ditto.
7586 * profile.c (instrument_values): Ditto.
7587 (get_exec_counts): Ditto.
7588 (read_profile_edge_counts): Ditto.
7589 (compute_branch_probabilities): Ditto.
7590 (compute_value_histograms): Ditto.
7591 (branch_prob): Ditto.
7592 (end_branch_prob): Ditto.
7593 * coverage.c (read_counts_file): Ditto.
7594 (get_coverage_counts): Ditto.
7595 (tree_coverage_counter_addr): Ditto.
7596 (coverage_checksum_string): Ditto.
7597 (coverage_begin_output): Ditto.
7598 (coverage_end_function): Ditto.
7599 (build_fn_info_type): Ditto.
7600 (build_fn_info_value): Ditto.
7601 * libgcov.c (gcov_exit): Ditto.
7602 * gcov-dump.c (tag_function): Ditto.
7603 (compute_checksum): Remove.
7605 2011-04-29 Alan Modra <amodra@gmail.com>
7607 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7608 unspec plus offset. Tidy macho code.
7610 2011-04-29 Martin Jambor <mjambor@suse.cz>
7612 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
7613 node instead of a decl. Update all callers.
7614 * cgraph.h: Update declaration.
7616 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
7618 PR tree-optimization/48765
7619 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
7620 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
7621 to indicate if loop aware SLP is being used. Scan the statements
7622 and update the vectorization factor according to the type of
7623 vectorization before statement analysis.
7624 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
7625 pass it to vect_analyze_loop_operations.
7626 (vectorizable_reduction): Set number of copies to 1 in case of pure
7628 * tree-vect-stmts.c (vectorizable_conversion,
7629 vectorizable_assignment, vectorizable_shift,
7630 vectorizable_operation, vectorizable_type_demotion,
7631 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
7633 (vectorizable_condition): Move the check that it is not SLP
7634 vectorization before the number of copies check.
7635 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
7636 to vectorize the loop using SLP.
7638 2011-04-28 Jakub Jelinek <jakub@redhat.com>
7641 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
7644 2011-04-28 Joseph Myers <joseph@codesourcery.com>
7646 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
7647 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
7648 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7649 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7650 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
7652 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
7653 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7654 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7655 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7656 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
7657 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
7659 * config/i386/linux.h (REG_NAME): Don't define.
7660 * config/i386/linux64.h (REG_NAME): Don't define.
7661 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
7662 Undefine before defining.
7664 2011-04-28 Jan Hubicka <jh@suse.cz>
7666 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
7667 nonconstant_names array.
7668 (estimate_function_body_sizes): Build nonconstant_names array; handle
7669 BUILT_IN_CONSTANT_P.
7671 2011-04-28 Richard Guenther <rguenther@suse.de>
7675 2011-04-28 Richard Guenther <rguenther@suse.de>
7677 * tree-ssa-structalias.c (solve_constraints): Build succ graph
7678 as late as possible.
7680 2011-04-28 Richard Guenther <rguenther@suse.de>
7682 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
7683 (debug_constraint): Do it here.
7684 (dump_constraints): And here.
7685 (rewrite_constraints): And here.
7686 (dump_constraint_edge): Remove.
7687 (dump_constraint_graph): Rewrite to produce DOT output.
7688 (solve_constraints): Build succ graph as late as possible.
7689 Dump constraint graphs before and after solving.
7691 2011-04-28 Richard Guenther <rguenther@suse.de>
7693 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7694 New function split out from ...
7695 (find_func_aliases): ... here. Call it.
7696 (find_func_aliases_for_call): Likewise.
7698 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7700 * internal-fn.h (internal_fn_name_array): Declare.
7701 (internal_fn_flags_array): Likewise.
7703 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7705 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
7706 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
7708 (ssemodefsuffix): Remove.
7709 (ssevecmodesuffix): New mode attribute.
7710 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
7711 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7712 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7713 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7714 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
7715 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
7716 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
7717 ssemodesuffix mode attribute.
7718 (float splitters): Use ssevecmodesuffix mode attribute.
7719 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
7720 (sseinsmode): Rename from avxvecmode.
7721 (avxsizesuffix): Rename from avxmodesuffix.
7722 (sseintvecmode): Rename from avxpermvecmode.
7723 (ssedoublevecmode): Rename from ssedoublesizemode.
7724 (ssehalfvecmode): Rename from avxhalfvecmode.
7725 (ssescalarmode): Rename from avxscalarmode.
7726 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
7727 templates for ssemodesuffix mode attribute.
7728 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
7731 Adjust RTX patterns globally for renamed mode attributes.
7733 2011-04-27 Jan Hubcika <jh@suse.cz>
7735 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
7736 * ipa-inline-analysis.c: Include alloc-pool.h.
7737 (edge_predicate_pool): New.
7738 (trye_predicate_p): New function
7739 (false_predicate_p): New function.
7740 (add_clause): Sanity check that false clauses are "optimized";
7741 never add clauses to predicate that is already known to be false.
7742 (and_predicate): Use flase_predicate_p.
7743 (evaulate_predicate): Rename to ...
7744 (evaluate_predicate): ... this one; update all callers; assert
7745 that false is not listed among possible truths.
7746 (dump_predicate): Use true_predicate_p.
7747 (account_size_time): Use false_predicate_p.
7748 (evaulate_conditions_for_edge): Rename to ...
7749 (evaluate_conditions_for_edge) ... this one.
7750 (edge_set_predicate): New function.
7751 (inline_edge_duplication_hook): Duplicate edge predicates.
7752 (inline_edge_removal_hook): Free edge predicates.
7753 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
7754 (dump_inline_summary): Update.
7755 (estimate_function_body_sizes): Set edge predicates.
7756 (estimate_calls_size_and_time): Handle predicates.
7757 (estimate_callee_size_and_time): Update.
7758 (remap_predicate): Add toplev_predicate; update comment.
7759 (remap_edge_predicates): New function.
7760 (inline_merge_summary): Compute toplev predicate; update.
7761 (read_predicate): New function.
7762 (read_inline_edge_summary): Use it.
7763 (inline_read_section): Likewise.
7764 (write_predicate): New function.
7765 (write_inline_edge_summary): Use it.
7766 (inline_write_summary): Likewise.
7767 (inline_free_summary): Free alloc pool and edge summary vec.
7769 2011-04-27 Richard Guenther <rguenther@suse.de>
7771 * tree-ssa-structalias.c (changed_count): Remove.
7772 (changed): Use a bitmap.
7773 (unify_nodes): Adjust.
7774 (do_sd_constraint): Likewise.
7775 (do_ds_constraint): Likewise.
7776 (do_complex_constraint): Likewise.
7777 (solve_graph): Likewise.
7779 2011-04-27 Jan Hubicka <jh@suse.cz>
7781 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
7783 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
7785 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
7786 (avx_vperm2f128_*_operand): Ditto.
7787 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
7788 Use avx_vpermilp_parallel in insn condition.
7789 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
7790 Use avx_vperm2f128_parallel in insn condition.
7792 2011-04-27 Richard Guenther <rguenther@suse.de>
7794 * Makefile.in (tree-ssa-structalias.o): Remove
7795 gt-tree-ssa-structalias.h dependency.
7796 (GTFILES): Remove tree-ssa-structalias.c.
7797 * tree.c (allocate_decl_uid): New function.
7798 (make_node_stat): Use it.
7799 (copy_node_stat): Likewise.
7800 * tree.h (allocate_decl_uid): Declare.
7801 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
7802 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
7803 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
7804 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7805 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
7806 (struct heapvar_map): Likewise.
7807 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
7808 heapvar_insert): Likewise.
7809 (make_heapvar_for): Rename to ...
7810 (make_heapvar): ... this. Simplify.
7811 (fake_var_decl_obstack): New global var.
7812 (build_fake_var_decl): New function.
7813 (make_constraint_from_heapvar): Adjust.
7814 (handle_lhs_call): Likewise.
7815 (create_function_info_for): Likewise.
7816 (intra_create_variable_infos): Likewise.
7817 (init_alias_vars): Allocate fake_var_decl_obstack.
7818 (init_alias_heapvars, delete_alias_heapvars): Remove.
7819 (compute_points_to_sets): Do not call init_alias_heapvars.
7820 (ipa_pta_execute): Likewise.
7821 (delete_points_to_sets): Free fake_var_decl_obstack.
7823 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7825 * config/spu/divmovti4.c (union qword_UTItype): New data type.
7826 (si_from_UTItype, si_to_UTItype): New functions.
7827 (__udivmodti4): Use them to implement type-punning.
7828 * config/spu/multi3.c (union qword_TItype): New data type.
7829 (si_from_TItype, si_to_TItype): New functions.
7830 (__multi3): Use them to implement type-punning.
7832 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7834 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
7836 2011-04-27 Jan Hubicka <jh@suse.cz>
7838 * ipa-prop.c (function_insertion_hook_holder): New holder.
7839 (ipa_add_new_function): New function.
7840 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
7841 Register/deregister holder.
7843 2011-04-27 Richard Guenther <rguenther@suse.de>
7845 PR tree-optimization/48772
7846 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
7848 2011-04-27 Richard Guenther <rguenther@suse.de>
7850 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
7851 TARGET_MEM_REF handling.
7853 2011-04-27 Nick Clifton <nickc@redhat.com>
7855 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
7856 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
7857 (REG_CLASS_NAMES): Likewise.
7858 (REG_CLASS_CONTENTS): Likewise.
7859 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7860 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
7861 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
7862 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
7863 (EVEN_REGS): New macro. Alias for QUAD_REGS.
7864 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
7865 duplicate register classes.
7866 (frv_class_likely_spilled_p): Likewise.
7867 (frv_register_move_cost): Likewise.
7869 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
7870 end of the regno_reg_class array.
7872 2011-04-27 Jakub Jelinek <jakub@redhat.com>
7875 * c-typeck.c (build_binary_op): Don't wrap arguments if
7876 int_operands is true.
7878 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
7881 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
7882 targetm.calls.must_pass_in_stack for void type.
7884 2011-04-26 Jan Hubicka <jh@suse.cz>
7886 * cgraphbuild.c (build_cgraph_edges): Update call
7887 of cgraph_create_edge and cgraph_create_indirect_edge.
7888 * cgraph.c (cgraph_create_edge_including_clones,
7889 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
7890 cgraph_update_edges_for_call_stmt_node): Do not take nest
7891 argument; do not initialize call_stmt_size/time.
7892 (dump_cgraph_node): Do not dump nest.
7893 (cgraph_clone_edge): Do not take loop_nest argument;
7894 do not propagate it; do not clone call_stmt_size/time.
7895 (cgraph_clone_node): Likewise.
7896 (cgraph_create_virtual_clone): Update.
7897 * cgraph.h (struct cgraph_edge): Remove
7898 call_stmt_size/call_stmt_time/loop_nest.
7899 (cgraph_create_edge, cgraph_create_indirect_edge,
7900 cgraph_create_edge_including_clones, cgraph_clone_node): Update
7902 * tree-emutls.c (gen_emutls_addr): Update.
7903 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7904 loop_nest; handle indirect calls, too.
7905 (clone_inlined_nodes): Do not care about updating inline summaries.
7906 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7907 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7908 stream call_stmt_size/call_stmt_time/loop_nest.
7909 * ipa-inline.c (edge_badness): Update.
7910 (ipa_inline): dump summaries after inlining.
7911 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7913 (inline_edge_summary): New function.
7914 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7915 (inline_edge_removal_hook): Handle edge summaries.
7916 (inline_edge_duplication_hook): New hook.
7917 (inline_summary_alloc): Alloc hooks.
7918 (initialize_growth_caches): Do not register removal hooks.
7919 (free_growth_caches); Do not free removal hook.
7920 (dump_inline_edge_summary): New function.
7921 (dump_inline_summary): Use it.
7922 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7923 (inline_update_callee_summaries): New function.
7924 (inline_merge_summary): Use it.
7925 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7926 (read_inline_edge_summary): New function.
7927 (inline_read_section): Use it.
7928 (write_inline_edge_summary): New function.
7929 (inline_write_summary): Use it.
7930 (inline_free_summary): Free edge new holders.
7931 * tree-inline.c (copy_bb): Update.
7933 2011-04-26 Jason Merrill <jason@redhat.com>
7935 * tree-eh.c (lower_try_finally_switch): Create the label along with
7936 the CASE_LABEL_EXPR.
7938 2011-04-26 David S. Miller <davem@davemloft.net>
7939 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7941 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7942 * configure: Regenerate.
7944 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7947 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7949 (VEC_reduc): New code iterator and splitters for vector reduction.
7950 (VEC_reduc_name): Ditto.
7951 (VEC_reduc_rtx): Ditto.
7952 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7953 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7955 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7956 support for extracting SF on VSX.
7958 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7959 generating xscvspdp.
7960 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7961 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7962 double add, minimum, maximum vector reduction.
7963 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7964 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7965 optimize double vector reduction.
7966 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7968 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7970 * config/fr30/fr30.h (inhibit_libc): Don't define.
7971 * config/m32r/m32r-protos.h: Correct comment.
7972 * config/v850/v850.h (GHS_default_section_names,
7973 GHS_current_section_names): Use tree, not union tree_node *.
7975 2011-04-26 Xinliang David Li <davidxl@google.com>
7977 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7978 * c-family/c-opts.c (c_common_handle_option): Set
7979 warn_maybe_uninitialized.
7980 * opts.c (common_handle_option): Ditto.
7981 * common.opt: New option.
7982 * tree-ssa.c (warn_uninit): Add one more parameter.
7983 (warn_uninitialized_var): Pass warning code.
7984 * tree-flow.h: Interface change.
7986 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7988 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7989 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7990 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7992 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7994 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7995 * config/mips/mips.opt (mmips-tfile): Remove.
7997 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7998 mips-tdump reference to ...
7999 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8000 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8001 reference by Tru64 UNIX.
8003 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8006 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8007 is error_mark_node, set value to NULL.
8009 PR tree-optimization/48734
8010 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8011 if return value from maybe_fold_*_comparsions isn't something
8012 the code is prepared to handle.
8014 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8016 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8018 (ext_QIreg_nomode_operands): Remove.
8019 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8023 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
8025 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8027 2011-04-26 Richard Guenther <rguenther@suse.de>
8029 * c-typeck.c (build_unary_op): Do not expand array-refs via
8030 pointer arithmetic. Only adjust qualifiers for function types.
8032 2011-04-26 Richard Guenther <rguenther@suse.de>
8035 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8036 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8037 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8038 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8040 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8042 * doc/extend.texi: Document __underlying_type.
8044 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8046 * config/rs6000/titan.md (automata_option "progress"): Remove.
8048 2011-04-25 Jeff Law <law@redhat.com>
8050 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8052 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8054 * system.h (ENUM_BITFIELD): Remove.
8056 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
8057 Eric Botcazou <ebotcazou@adacore.com>
8059 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8060 for STORE_FLAG_VALUE==-1 case.
8062 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8065 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8066 LEGITIMATE_PIC_OPERAND_P.
8068 2011-04-24 Jan Hubicka <jh@suse.cz>
8070 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8072 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8073 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8074 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8075 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8076 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8077 Sanity check predicate length.
8078 (remap_predicate): Likewise; sanity check jump functions.
8079 (inline_read_section, inline_write_summary): Sanity check
8082 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8085 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8086 __is_literal_type, and __is_trivial; update throughout about
8087 possibly cv-qualified void types.
8089 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8091 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8092 testsuite and make it version agnostic.
8094 2011-04-22 Jan Hubicka <jh@suse.cz>
8096 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8098 2011-04-23 Jakub Jelinek <jakub@redhat.com>
8101 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8102 to VOID_TYPE even around MODIFY_EXPR.
8104 2011-04-22 Mike Stump <mikestump@comcast.net>
8106 * gensupport.c (read_md_rtx): Fix typo in comment.
8107 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8110 2011-04-22 Jan Hubicka <jh@suse.cz>
8112 * gengtype.c (open_base_files): Add ipa-inline.h include.
8113 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8114 ipa-prop.c; update all uses.
8115 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8116 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8117 merge summary of inlined function into former caller.
8118 * ipa-inline.c (max_benefit): Remove.
8119 (edge_badness): Compensate for removal of benefits.
8120 (update_caller_keys): Use
8121 reset_node_growth_cache/reset_edge_growth_cache.
8122 (update_callee_keys): Likewise.
8123 (update_all_callee_keys): Likewise.
8124 (inline_small_functions): Do not collect max_benefit; do not reset
8125 estimated_growth; call free_growth_caches and initialize_growth_caches.
8126 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8127 struct size_time_entry): New structures.
8128 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8129 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8130 and estimated_growth.
8131 (edge_growth_cache_entry): New structure.
8132 (node_growth_cache, edge_growth_cache): New global vars.
8133 (estimate_growth): Turn into inline.
8134 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8135 initialize_growth_caches, free_growth_caches): Declare.
8136 (estimate_edge_growth): Rewrite.
8137 (estimate_edge_time): Implement as inline cache lookup.
8138 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8140 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8141 (NUM_CONDITIONS): New constant.
8142 (predicate_conditions): New enum.
8143 (IS_NOT_CONSTANT): New constant.
8144 (edge_removal_hook_holder): New var.
8145 (node_growth_cache, edge_growth_cache): New global vars.
8146 (true_predicate, single_cond_predicate, false_predicate,
8147 not_inlined_predicate, add_condition, add_clause, and_predicates,
8148 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8149 dump_clause, dump_predicate, account_size_time,
8150 evaulate_conditions_for_edge): New functions.
8151 (inline_summary_alloc): Move to heap.
8152 (inline_node_removal_hook): Clear condition and entry vectors.
8153 (inline_edge_removal_hook): New function.
8154 (initialize_growth_caches, free_growth_caches): New function.
8155 (dump_inline_summary): Update.
8156 (edge_execution_predicate): New function.
8157 (will_be_nonconstant_predicate): New function.
8158 (estimate_function_body_sizes): Compute BB and constantness predicates.
8159 (compute_inline_parameters): Do not clear estimated_growth.
8160 (estimate_edge_size_and_time): New function.
8161 (estimate_calls_size_and_time): New function.
8162 (estimate_callee_size_and_time): New function.
8163 (remap_predicate): New function.
8164 (inline_merge_summary): New function.
8165 (do_estimate_edge_time): New function based on...
8166 (estimate_edge_time): ... this one.
8167 (do_estimate_edge_growth): New function.
8168 (do_estimate_growth): New function based on....
8169 (estimate_growth): ... this one.
8170 (inline_analyze_function): Analyze after deciding on jump functions.
8171 (inline_read_section): New function.
8172 (inline_read_summary): Use it.
8173 (inline_write_summary): Write all the new data.
8174 * ipa-prop.c (ipa_get_param_decl_index): Export.
8175 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8176 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8178 (ipa_get_lattice): Move here from ipa-cp.c
8179 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8180 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8181 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8182 cgraph_edge_inlinable_p): Remove.
8183 * cgraphunit.c: Include ipainline.h
8184 (cgraph_process_new_functions): Update call of
8185 compute_inline_parameters.
8187 2011-04-22 Richard Guenther <rguenther@suse.de>
8189 * tree.c (build_int_cst): Properly create canonicalized integer
8191 (build_int_cst_type): Remove scary comments.
8193 2011-04-22 Xinliang David Li <davidxl@google.com>
8195 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8196 by default when -Wno-error is not specified.
8197 * opts-global.c (decode_options): Remove call to
8198 control_warning_options.
8200 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8202 PR tree-optimization/48717
8203 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8204 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8206 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8208 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8209 definition where used.
8211 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8214 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8215 TREE_STATIC variables declared inside of some OpenMP construct.
8217 2011-04-22 Martin Jambor <mjambor@suse.cz>
8220 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8222 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8225 * c-typeck.c (pop_init_level): Do not warn about initializing
8228 2011-04-22 Alan Modra <amodra@gmail.com>
8230 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8231 when returning call_cookie.
8232 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8233 pointers, to functions with no more vector args than the current
8234 function, and some non-local calls for ABI_V4.
8235 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8236 sibcall_nonlocal_aix64): Combine to ..
8237 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8238 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8239 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8240 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8241 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8243 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8244 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8245 sibcall_value_symbolic_64): Delete.
8247 2011-04-21 Xinliang David Li <davidxl@google.com>
8249 * cgraph.h: Remove pid.
8250 * cgraph.c: Remove pid.
8251 * value-prof.c (init_node_map): New function.
8252 (del_node_map): New function.
8253 (find_func_by_funcdef_no): New function.
8254 (gimple_ic_transform): Call new function.
8255 * cgraphunit.c (cgraph_finalize_function): Remove pid.
8256 * function.c (get_last_funcdef_no): New function.
8257 * function.h (get_last_funcdef_no): New function.
8258 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
8259 to libgcov function.
8260 (tree-profiling): Call node map init and delete function.
8262 2011-04-21 Ian Lance Taylor <iant@google.com>
8264 * godump.c (go_format_type): Use exported Go name for anonymous
8267 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8269 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
8270 Call builtin_function_type_list instead of builtin_function_type.
8271 (UNARY, BINARY, TRINARY, QUAD): Likewise.
8273 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8275 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
8276 build_function_type_list instead of build_function_type.
8277 Delete variable `endlink'.
8279 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8281 * config/s390/s390.c (s390_init_builtins): Call
8282 build_function_type_list instead of build_function_type.
8284 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
8286 * config/ia64/ia64.c (ia64_init_builtins): Call
8287 build_function_type_list instead of builtin_function_type.
8289 2011-04-21 Easwaran Raman <eraman@google.com>
8291 * cfgexpand.c (stack_var): Remove OFFSET...
8292 (add_stack_var): ...and its reference here...
8293 (expand_stack_vars): ...and here.
8294 (stack_var_cmp): Sort by descending order of size.
8295 (partition_stack_vars): Change heuristic.
8296 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
8297 (dump_stack_var_partition): Add newline after each partition.
8299 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
8300 Jeff Law <law@redhat.com>
8302 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
8303 * gengtype.c (matching_file_name_substitute): Likewise.
8305 2011-04-21 Richard Guenther <rguenther@suse.de>
8308 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
8310 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
8312 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
8314 2011-04-21 Richard Guenther <rguenther@suse.de>
8316 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
8319 2011-04-21 Richard Guenther <rguenther@suse.de>
8321 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
8322 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
8323 Use DECL_P, not SSA_VAR_P.
8324 (ptr_derefs_may_alias_p): Likewise.
8325 (ptr_deref_may_alias_ref_p_1): Likewise.
8326 (decl_refs_may_alias_p): Likewise.
8327 (refs_may_alias_p_1): Likewise.
8328 (ref_maybe_used_by_call_p_1): Likewise.
8329 (call_may_clobber_ref_p_1): Likewise.
8330 (indirect_ref_may_alias_decl_p): Assume indirect refrences
8331 are either MEM_REF or TARGET_MEM_REF.
8332 (indirect_refs_may_alias_p): Likewise.
8333 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
8334 for MEM_EXPR of indirect calls.
8336 2011-04-21 Tristan Gingold <gingold@adacore.com>
8338 * vmsdbgout.c (write_srccorr): Compute file length from the string.
8339 (dst_file_info_struct): Remove flen field.
8340 (lookup_filename): Remove code that set flen field.
8342 2011-04-21 Tristan Gingold <gingold@adacore.com>
8344 * config/ia64/ia64.c (ia64_start_function): Add a guard.
8346 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
8349 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
8350 vec_extract and vec_concat for non-SSE4_1 targets.
8352 2011-04-21 Richard Guenther <rguenther@suse.de>
8354 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
8357 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8359 * config/i386/cygming.h (union tree_node, TREE): Don't define or
8361 (FILE): Don't undefine.
8363 2011-04-21 Joseph Myers <joseph@codesourcery.com>
8365 * config/alpha/alpha.c (struct machine_function): Use rtx, not
8367 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
8369 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
8370 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
8371 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
8373 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
8374 definitions where used.
8375 * config/microblaze/microblaze.h (struct microblaze_args): Use
8376 rtx, not struct rtx_def *.
8377 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
8379 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
8380 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
8381 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
8382 not struct rtx_def *.
8383 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
8385 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
8387 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
8389 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8391 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
8392 operand_equal_p to compare DR_BASE_ADDRESSes.
8393 (vect_check_interleaving): Likewise.
8395 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8398 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
8399 for all Neon struct constants.
8401 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8403 * target.def (legitimate_constant_p): New hook.
8404 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
8405 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
8406 * doc/tm.texi: Regenerate.
8407 * hooks.h (hook_bool_mode_rtx_true): Declare.
8408 * hooks.c (hook_bool_mode_rtx_true): Define.
8409 * system.h (LEGITIMATE_CONSTANT_P): Poison.
8410 * calls.c (precompute_register_parameters): Replace uses of
8411 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
8412 (emit_library_call_value_1): Likewise.
8413 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
8414 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
8415 * ira-costs.c (scan_one_insn): Likewise.
8416 * recog.c (general_operand, immediate_operand): Likewise.
8417 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
8418 * reload1.c (init_eliminable_invariants): Likewise.
8420 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
8422 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
8423 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
8425 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8426 * config/alpha/predicates.md (input_operand): Update call to
8427 alpha_legitimate_constant_p.
8429 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
8430 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
8431 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
8432 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8433 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
8434 (arm_legitimate_constant_p): New functions.
8435 (arm_cannot_force_const_mem): Make static.
8437 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
8439 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
8440 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
8441 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
8442 instead of bfin_legitimate_constant_p.
8443 (bfin_legitimate_constant_p): Make static. Add a mode argument.
8444 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8446 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
8448 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
8450 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
8451 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
8452 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8453 (frv_legitimate_constant_p): Make static. Add a mode argument.
8455 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
8456 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
8457 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
8459 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
8460 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
8461 * config/i386/i386.c (legitimate_constant_p): Rename to...
8462 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
8464 (ix86_cannot_force_const_mem): Update accordingly.
8465 (ix86_legitimate_address_p): Likewise.
8466 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8467 * config/i386/i386.md: Update commentary.
8469 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
8470 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
8471 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8472 (ia64_legitimate_constant_p): Make static. Add a mode argument.
8474 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
8476 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
8477 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
8478 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8479 (lm32_legitimate_constant_p): Make static. Add a mode argument.
8481 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
8482 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
8483 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
8485 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
8486 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8487 (m32r_legitimate_constant_p): New function.
8489 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
8490 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
8491 LEGITIMATE_CONSTANT_P.
8492 (LEGITIMATE_CONSTANT_P): Delete.
8493 * config/m68k/m68k.c (m68k_expand_prologue): Call
8494 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
8495 (m68k_legitimate_constant_p): New function.
8496 * config/m68k/m68k.md: Update comments.
8498 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
8499 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8500 (mcore_legitimate_constant_p): New function.
8502 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
8503 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
8504 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
8505 Add a mode argument.
8506 (mep_legitimate_address): Update accordingly.
8507 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8509 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
8511 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
8512 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
8513 static. Check OP's mode for VOIDmode.
8514 (microblaze_legitimate_constant_p): New function.
8515 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8517 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
8518 * config/mips/mips.c (mips_legitimate_constant_p): New function.
8519 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
8520 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8521 * config/mips/predicates.md: Update comments.
8523 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
8524 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
8525 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8526 (mmix_legitimate_constant_p): Make static, return a bool, and take
8528 (mmix_print_operand_address): Update accordingly.
8530 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
8532 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
8533 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
8534 static. Add a mode argument.
8535 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8537 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
8539 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
8540 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8541 (pa_legitimate_constant_p): New function.
8543 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
8545 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
8546 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8547 (pdp11_legitimate_constant_p): New function.
8549 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
8550 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8551 (rs6000_legitimate_constant_p): New function.
8553 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
8554 (rx_legitimate_constant_p): ...this.
8555 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
8556 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
8557 (rx_legitimate_constant_p): ...this.
8558 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8559 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
8561 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
8562 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
8563 * config/s390/s390.c (legitimate_constant_p): Rename to...
8564 (s390_legitimate_constant_p): ...this. Make static, return a bool,
8565 and add a mode argument.
8566 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8568 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
8570 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
8571 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8572 (sh_legitimate_constant_p): New function.
8574 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
8575 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
8576 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8577 (legitimate_constant_p): Rename to...
8578 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
8580 (constant_address_p): Update accordingly.
8582 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
8583 argument and return a bool.
8584 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
8585 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8586 (spu_legitimate_constant_p): Add a mode argument and return a bool.
8587 (spu_rtx_costs): Update accordingly.
8588 * config/spu/predicates.md (vec_imm_operand): Likewise.
8590 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
8592 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
8593 * config/v850/v850.c (v850_legitimate_constant_p): New function.
8594 (TARGET_LEGITIMATE_CONSTANT_P): Define.
8596 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
8597 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
8598 * config/vax/vax.c (legitimate_constant_p): Likewise.
8600 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
8601 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
8602 (xtensa_legitimate_constant_p): New function.
8604 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
8606 * target.def (cannot_force_const_mem): Add a mode argument.
8607 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
8608 * doc/tm.texi: Regenerate.
8609 * hooks.h (hook_bool_mode_rtx_false): Declare.
8610 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
8611 (hook_bool_mode_const_rtx_true): Likewise.
8612 (hook_bool_mode_rtx_false): New function.
8613 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
8614 to be non-VOID. Update call to cannot_force_const_mem.
8615 (find_reloads): Update accordingly.
8616 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
8617 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
8619 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
8620 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
8621 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
8622 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
8623 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
8624 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
8625 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
8626 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8627 (m68k_cannot_force_const_mem): ...this new function.
8628 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
8630 (mips_const_insns, mips_legitimize_const_move): Update calls.
8631 (mips_secondary_reload_class): Likewise.
8632 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
8633 (pa_cannot_force_const_mem): ...this new function.
8634 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
8635 (rs6000_cannot_force_const_mem): ...this new function.
8636 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
8638 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
8639 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
8641 (xtensa_cannot_force_const_mem): ...this new function.
8643 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8645 * config/mips/mips.c (mips16_build_function_stub): Call
8646 build_function_type_list instead of build_function_type.
8647 (mips16_build_call_stub): Likewise.
8649 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8651 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
8652 instead of build_function_type.
8654 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
8656 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
8657 instead of build_function_type.
8659 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
8662 * config/i386/i386.md (insv): Change operand 0 constraint to
8663 "register_operand". Change operand 1 and 2 constraint to
8664 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
8665 * config/i386/sse.md (sse4_1_pinsrb): Export.
8666 (sse2_pinsrw): Ditto.
8667 (sse4_1_pinsrd): Ditto.
8668 (sse4_1_pinsrq): Ditto.
8669 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
8670 * config/i386/i386.c (ix86_expand_pinsr): New.
8672 2011-04-20 Easwaran Raman <eraman@google.com>
8674 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
8675 containing union type only with -fstrict-aliasing.
8677 2011-04-20 Jim Meyering <meyering@redhat.com>
8679 Remove useless if-before-free tests.
8680 * calls.c (expand_call, save_area): Likewise.
8681 * cfgcleanup.c (try_forward_edges): Likewise.
8682 * collect2.c (collect_execute): Likewise.
8683 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
8684 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
8685 * coverage.c (coverage_checksum_string): Likewise.
8686 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
8687 * cselib.c (cselib_init): Likewise.
8688 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
8689 (df_set_clean_cfg): Likewise.
8690 * function.c (free_after_compilation): Likewise.
8691 * gcc.c (do_spec_1, main): Likewise.
8692 * gcov.c (create_file_names): Likewise.
8693 * gensupport.c (identify_predicable_attribute): Likewise.
8694 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
8695 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
8696 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
8697 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
8698 * ipa-pure-const.c (local_pure_const): Likewise.
8699 * ipa-reference.c (propagate): Likewise.
8700 * ira-costs.c (free_ira_costs): Likewise.
8701 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
8702 * matrix-reorg.c (mat_free): Likewise.
8703 * prefix.c (get_key_value): Likewise.
8704 * profile.c (compute_value_histograms): Likewise.
8705 * reload1.c (free_reg_equiv): Likewise.
8706 * sched-deps.c (free_deps): Likewise.
8707 * sel-sched-ir.c (fence_clear): Likewise.
8708 * sese.c (set_rename, if_region_set_false_region): Likewise.
8709 * tree-data-ref.c (free_rdg): Likewise.
8710 * tree-eh.c (lower_try_finally): Likewise.
8711 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
8712 * tree-ssa-live.c (delete_var_map): Likewise.
8713 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
8714 * tree-ssa-pre.c (phi_trans_add): Likewise.
8716 2011-04-20 Jakub Jelinek <jakub@redhat.com>
8718 PR tree-optimization/48611
8719 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
8720 beyond ERT_MUST_NOT_THROW region.
8722 2011-04-20 Catherine Moore <clm@codesourcery.com>
8724 * config/mips/mips.opt (mfix-24k): New.
8725 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
8726 * config/mips/mips.md (length): Increase by 4 for stores if
8728 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
8729 all noreorder if fixing 24K errata.
8730 * doc/invoke.texi: Document mfix-24k.
8732 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
8734 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
8735 quad-word modes, reduce to 9-bit index range when above 1016 limit.
8737 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8739 * config/arm/arm.c (arm_gen_constant): Move movw support ....
8740 (const_ok_for_op): ... to here.
8742 2011-04-20 Kai Tietz <ktietz@redhat.com>
8744 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
8745 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
8747 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
8749 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
8751 2011-04-20 Richard Guenther <rguenther@suse.de>
8753 PR tree-optimization/47892
8754 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
8757 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
8759 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
8761 2011-04-20 Tristan Gingold <gingold@adacore.com>
8763 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
8765 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
8769 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
8770 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
8771 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
8772 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
8773 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
8775 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
8778 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
8779 (avr_asm_named_section, avr_asm_output_aligned_common,
8780 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
8781 New functions to update...
8782 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
8783 (avr_asm_init_sections): Overwrite section callbacks for
8784 data_section, bss_section.
8785 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
8787 (avr_file_end): ...here.
8789 2011-04-20 Richard Guenther <rguenther@suse.de>
8792 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
8793 objects and types here. Adjust for their offset before comparing.
8795 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8797 * tree-vect-stmts.c (vectorizable_store): Only chain one related
8800 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
8802 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
8803 (GIMPLE_H): Include $(INTERNAL_FN_H).
8804 (OBJS-common): Add internal-fn.o.
8805 (internal-fn.o): New rule.
8806 * internal-fn.def: New file.
8807 * internal-fn.h: Likewise.
8808 * internal-fn.c: Likewise.
8809 * gimple.h: Include internal-fn.h.
8810 (GF_CALL_INTERNAL): New gf_mask.
8811 (gimple_statement_call): Put fntype into a union with a new
8813 (gimple_build_call_internal): Declare.
8814 (gimple_build_call_internal_vec): Likewise.
8815 (gimple_call_same_target_p): Likewise.
8816 (gimple_call_internal_p): New function.
8817 (gimple_call_internal_fn): Likewise.
8818 (gimple_call_fntype): Return null for internal calls.
8819 (gimple_call_set_fntype): Assert that the function is not internal.
8820 (gimple_call_set_fn): Likewise.
8821 (gimple_call_set_fndecl): Likewise.
8822 (gimple_call_set_internal_fn): New function.
8823 (gimple_call_addr_fndecl): Handle null functions.
8824 (gimple_call_return_type): Likewise null types.
8825 * gimple.c (gimple_build_call_internal_1): New function.
8826 (gimple_build_call_internal): Likewise.
8827 (gimple_build_call_internal_vec): Likewise.
8828 (gimple_call_same_target_p): Likewise.
8829 (gimple_call_flags): Handle calls to internal functions.
8830 (gimple_call_fnspec): New function.
8831 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
8832 (gimple_has_side_effects): Handle null functions.
8833 (gimple_rhs_has_side_effects): Likewise.
8834 (gimple_call_copy_skip_args): Handle calls to internal functions.
8835 * cfgexpand.c (expand_call_stmt): Likewise.
8836 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
8837 * gimple-fold.c (gimple_fold_call): Handle null functions.
8838 (gimple_fold_stmt_to_constant_1): Don't fold
8839 calls to internal functions.
8840 * gimple-low.c (gimple_check_call_args): Handle calls to internal
8842 * gimple-pretty-print.c (dump_gimple_call): Likewise.
8843 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
8844 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
8845 (do_warn_unused_result): Likewise.
8846 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
8847 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
8848 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
8849 the target of a call.
8850 (initialize_hash_element): Update accordingly.
8851 (hashable_expr_equal_p): Use gimple_call_same_target_p.
8852 (iterative_hash_hashable_expr): Handle calls to internal functions.
8853 (print_expr_hash_elt): Likewise.
8854 * tree-ssa-pre.c (can_value_number_call): Likewise.
8855 (eliminate): Handle null functions.
8856 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
8857 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
8858 (find_func_aliases): Likewise.
8859 * value-prof.c (gimple_ic_transform): Likewise.
8860 (gimple_indirect_call_to_profile): Likewise.
8861 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8862 * lto-streamer-out.c (output_gimple_stmt): Likewise.
8864 2011-04-19 Jan Hubicka <jh@suse.cz>
8866 * ipa-inline-transform.c (save_inline_function_body): Add comments.
8867 * ipa-inline.c (inline_small_functions): Compute summaries first,
8868 populate heap later.
8870 2011-04-19 Jan Hubicka <jh@suse.cz>
8872 * cgraph.h (save_inline_function_body): Remove.
8873 * ipa-inline-transform.c: New file, broke out of...
8874 * ipa-inline.c: ... this one; Update toplevel comment.
8875 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
8877 (update_noncloned_frequencies): Move to ipa-inline-transform.c
8878 (cgraph_mark_inline_edge): Rename to inline_call; move to
8879 ipa-inline-transform.c.
8880 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
8881 move to ipa-inline-transform.c
8882 (recursive_inlining, inline_small_functions, flatten_function,
8883 ipa_inline, inline_always_inline_functions,
8884 early_inline_small_functions): Update.
8885 (inline_transform): Move to ipa-inline-transform.c.
8886 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
8888 * Makefile.in (ipa-inline-transform.o): New file.
8889 * cgraphunit.c (save_inline_function_body): Move to
8890 ipa-inline-transform.c
8892 2011-04-19 DJ Delorie <dj@redhat.com>
8894 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
8895 registers if we already know there aren't any.
8896 (m32c_emit_epilogue): Don't emit a barrier here.
8897 (m32c_emit_eh_epilogue): Likewise.
8898 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
8899 operands at expand time.
8900 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
8902 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
8903 duplicates. Provide aliases instead.
8904 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8905 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8908 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8910 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8911 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8912 (general_or_i64_p, sparc_register_move_cost): New function.
8914 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8916 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8917 Add lynx, mipssde. Sort table.
8919 2011-04-19 Xinliang David Li <davidxl@google.com>
8921 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8924 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8927 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8928 is a SUBREG with non-MODE_INT mode inside of it.
8930 2011-04-19 Martin Jambor <mjambor@suse.cz>
8932 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8933 also according to actual contants.
8934 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8935 (gimple_fold_call): Use it.
8936 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8938 2011-04-19 Martin Jambor <mjambor@suse.cz>
8940 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8941 non-pointer assignments.
8943 2011-04-19 Martin Jambor <mjambor@suse.cz>
8945 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8946 account anc_offset and otr_type from the indirect edge info.
8947 * ipa-prop.c (get_ancestor_addr_info): New function.
8948 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8949 get_ancestor_addr_info, call it.
8950 (ipa_note_param_call): Do not initialize information about polymorphic
8951 calls, return the indirect call graph edge. Remove the last
8952 parameter, adjust all callers.
8953 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8954 parameters. Initialize polymorphic information in the indirect edge.
8956 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8959 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8960 the types if they have different enumeration identifiers.
8962 2011-04-19 Jan Hubicka <jh@suse.cz>
8964 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8965 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8966 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8967 (optimize_function_for_size_p) ... here.
8969 2011-04-19 Richard Guenther <rguenther@suse.de>
8972 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8975 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8977 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8978 if DECL_NO_INLINE_WARNING_P is set on the function.
8980 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8983 * reload1.c (inc_for_reload): Return void. All callers changed.
8984 (emit_input_reload_insns): Don't try to delete previous output
8985 reloads to a register, or record spill_reg_store for autoincs.
8987 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8989 * gengtype.h: Updated copyright year.
8990 (struct input_file_st): Add inpisplugin field.
8991 (type_fileloc): New function.
8993 (write_typed_struct_alloc_def): Add gcc_assert.
8994 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8995 (write_typed_alloc_defns): Don't output for plugin files.
8996 (input_file_by_name): Clear inpisplugin field.
8997 (main): Set inpisplugin field for plugin files.
8999 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9001 * gengtype-state.c (string_eq): New.
9002 (read_state): Use string_eq instead of strcmp when creating the
9005 2011-04-19 Wei Guozhi <carrot@google.com>
9008 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9009 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9011 * config/arm/constraints.md (Uu): New constraint.
9012 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9014 2011-04-19 Tristan Gingold <gingold@adacore.com>
9016 * config.gcc (-*-*-*vms): Added.
9017 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9019 * config/vms/vms-ld.c: New file.
9020 * config/vms/vms-ar.c: New file.
9021 * config/vms/t-vmsnative: New file.
9023 2011-04-18 Xinliang David Li <davidxl@google.com>
9025 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9027 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9030 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9031 if TREE_TYPE (v) is non-NULL.
9033 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9034 gimple_get_virt_mehtod_for_binfo.
9035 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9036 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9038 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9040 2011-04-18 Michael Matz <matz@suse.de>
9041 Steve Ellcey <sje@cup.hp.com>
9043 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9044 use its mode as source mode if it isn't VOIDmode.
9046 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9048 * doc/passes.texi: Fill crossref nodes.
9050 2011-04-18 Jim Meyering <meyering@redhat.com>
9052 Fix doubled-word typos in comments and strings
9053 * config/alpha/vms-unwind.h: s/for for/for/
9054 * config/arm/unwind-arm.h: Likewise.
9055 * config/microblaze/microblaze.c: Likewise.
9056 * config/sh/constraints.md: s/in in/in/
9057 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9059 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
9061 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9062 (AVX_FLOAT_MODE_P): Ditto.
9063 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9064 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9065 (AVX_VEC_FLOAT_MODE_P): Ditto.
9066 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9067 (UNSPEC_MASKSTORE): Ditto.
9068 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9069 Merge from <sse>_movmsk<ssemodesuffix> and
9070 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9071 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9073 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9074 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9075 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9077 2011-04-18 Jan Hubicka <jh@suse.cz>
9079 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9081 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9082 (want_inline_function_called_once_p): Break out the logic from
9084 (edge_badness): Ensure that profile is not misupdated.
9085 (lookup_recursive_calls): Prioritize by call frequencies.
9086 (inline_small_functions): Move program size estimates here;
9087 actually process whole queue even when unit growth has been
9088 met. (to properly compute inline_failed reasons and for the
9089 case unit size decrease.) Revisit comments on recursive inlining.
9090 (ipa_inline): Remove unit summary code; first inline hot calls
9091 of functions called once, cold calls next.
9092 (order, nnodes): Remove unused variables.
9093 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9094 (GTFILES): Remove ipa-inline.c
9095 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9097 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9099 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9101 2011-04-18 Jie Zhang <jie@codesourcery.com>
9102 Richard Earnshaw <rearnsha@arm.com>
9104 * arm.c (neon_builtin_type_bits): Remove.
9105 (typedef enum neon_builtin_mode): New.
9106 (T_MAX): Don't define.
9107 (typedef enum neon_builtin_datum): Remove bits, codes[],
9108 num_vars and base_fcode. Add mode, code and fcode.
9109 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9110 VAR10): Change accordingly.
9111 (neon_builtin_data[]): Change accordingly
9112 (arm_init_neon_builtins): Change accordingly.
9113 (neon_builtin_compare): Remove.
9114 (locate_neon_builtin_icode): Remove.
9115 (arm_expand_neon_builtin): Change accordingly.
9117 * arm.h (enum arm_builtins): Move to ...
9118 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9120 * arm.c (arm_builtin_decl): Declare.
9121 (TARGET_BUILTIN_DECL): Define.
9122 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9123 (arm_builtin_decls[]): New.
9124 (arm_init_neon_builtins): Store builtin declarations in
9125 arm_builtin_decls[].
9126 (arm_init_tls_builtins): Likewise.
9127 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9128 (arm_builtin_decl): New.
9130 2011-04-18 Richard Guenther <rguenther@suse.de>
9132 * tree.c (upper_bound_in_type): Build properly canonicalized
9134 (lower_bound_in_type): Likewise.
9136 2011-04-18 Richard Guenther <rguenther@suse.de>
9138 * gimple.h (gimple_call_addr_fndecl): New function.
9139 (gimple_call_fndecl): Use it.
9140 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9142 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9143 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9145 2011-04-18 Richard Guenther <rguenther@suse.de>
9148 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9150 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9153 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9154 DECL_IN_CONSTANT_POOL without RTL.
9156 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9157 Ira Rosen <ira.rosen@linaro.org>
9160 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9161 to match neon_vzip/vuzp/vtrn_internal.
9162 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9163 outputs explicitly dependent on both inputs.
9164 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9166 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9168 PR tree-optimization/48616
9169 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9170 whether the shift is by scalar or vector based on whether all SLP
9171 scalar stmts have the same rhs.
9173 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9175 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9178 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9181 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9184 2011-04-17 Jan Hubicka <jh@suse.cz>
9186 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9187 * cgrpahunit.c (cgraph_finalize_function): Do not set
9188 finalized_by_frontend.
9189 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9190 finalized_by_frontend.
9192 2011-04-17 Jan Hubicka <jh@suse.cz>
9194 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9195 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9196 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9197 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9199 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9201 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9203 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9206 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9207 is non-null before accessing it.
9208 (input_cgraph): Remove trailing spaces.
9210 2011-04-17 Revital Eres <revital.eres@linaro.org>
9212 * params.def (sms-min-sc): New param flag.
9213 * modulo-sched.c (sms_schedule): Use it.
9214 * doc/invoke.texi (sms-min-sc): Document it.
9216 2011-04-17 Jan Hubicka <jh@suse.cz>
9218 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9219 present, also set gimple_call_set_cannot_inline.
9220 * ipa-inline.c: Update toplevel comment.
9222 (cgraph_clone_inlined_nodes): Fix linebreaks.
9223 (cgraph_check_inline_limits): Restructure to ...
9224 (caller_growth_limits): ... this one; be more tolerant
9225 on growth in nested inline chains; add explanatory comment;
9226 fix stack accounting thinko introduced by previous patch.
9227 (cgraph_default_inline_p): Remove.
9228 (report_inline_failed_reason): New function.
9229 (can_inline_edge_p): New function.
9230 (can_early_inline_edge_p): New function.
9231 (leaf_node_p): Move upwards in file.
9232 (want_early_inline_function_p): New function.
9233 (want_inline_small_function_p): New function.
9234 (want_inline_self_recursive_call_p): New function.
9235 (cgraph_edge_badness): Rename to ...
9236 (edge_badness) ... this one; fix linebreaks.
9237 (update_edge_key): Update call of edge_baddness; add
9238 detailed dump about queue updates.
9239 (update_caller_keys): Use can_inline_edge_p and
9240 want_inline_small_function_p.
9241 (cgraph_decide_recursive_inlining): Rename to...
9242 (recursive_inlining): Use can_inline_edge_p and
9243 want_inline_self_recursive_call_p; simplify and remove no longer
9245 (cgraph_set_inline_failed): Remove.
9246 (add_new_edges_to_heap): Use can_inline_edge_p and
9247 want_inline_small_function_p.
9248 (cgraph_decide_inlining_of_small_functions): Rename to ...
9249 (inline_small_functions): ... this one; cleanup; use
9250 can/want predicates; cleanup debug ouput; work edges till fibheap
9251 is exhausted and do not stop once unit growth is reached; remove
9252 later loop processing remaining edges.
9253 (cgraph_flatten): Rename to ...
9254 (flatten_function): ... this one; use can_inline_edge_p
9255 and can_early_inline_edge_p predicates.
9256 (cgraph_decide_inlining): Rename to ...
9257 (ipa_inline): ... this one; remove unreachable nodes before
9258 inlining functions called once; simplify the pass.
9259 (cgraph_perform_always_inlining): Rename to ...
9260 (inline_always_inline_functions): ... this one; use
9261 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
9262 (cgraph_decide_inlining_incrementally): Rename to ...
9263 (early_inline_small_functions): ... this one; simplify
9264 using new predicates; cleanup; make dumps prettier.
9265 (cgraph_early_inlining): Rename to ...
9266 (early_inliner): newer inline regular functions into always-inlines;
9267 fix updating of call stmt summaries.
9268 (pass_early_inline): Update for new names.
9269 (inline_transform): Fix formating.
9270 (gate_cgraph_decide_inlining): Rename to ...
9271 (pass_ipa_inline): ... this one.
9272 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
9273 * ipa-inline-analysis.c (dump_inline_summary): Update.
9274 (compute_inline_parameters): Do not compute disregard_inline_limits;
9275 look for mismatching arguments.
9276 (estimate_growth): Fix handlig of non-trivial self recursion.
9277 (inline_read_summary): Do not read info->disregard_inline_limits.
9278 (inline_write_summary): Do not write info->disregard_inline_limits.
9279 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
9280 and move all checks into can_inline_edge_p predicate; re-enable code
9281 comparing optimization levels.
9282 (expand_call_inline): Do not test inline_forbidden_into_p.
9283 * Makefile.in (ipa-inline.o): Update arguments.
9285 2011-04-17 Revital Eres <revital.eres@linaro.org>
9287 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
9289 2011-04-17 Revital Eres <revital.eres@linaro.org>
9291 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
9293 2011-04-17 Michael Matz <matz@suse.de>
9295 PR tree-optimization/48622
9297 * ipa-inline-analysis.c (inline_read_summary): Read size/time
9298 in same order as they're written.
9300 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9302 * config/pa/predicates.md: Reorganize and simplify predicates.
9303 Eliminate duplicate code checks.
9304 (arith_operand): Rename to arith14_operand
9305 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
9306 * config/pa/pa.md: Use renamed operands.
9307 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
9308 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
9309 arith11_operand, adddi3_operand, indexed_memory_operand,
9310 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
9311 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
9312 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
9313 move_dest_operand, move_src_operand, prefetch_cc_operand,
9314 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
9315 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
9316 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
9317 div_operand, int5_operand, movb_comparison_operator,
9318 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
9319 arith_double_operand, ireg_operand, lhs_lshift_operand,
9320 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
9321 integer_store_memory_operand): Likewise.
9322 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
9323 (integer_store_memory_operand, read_only_operand,
9324 function_label_operand, borx_reg_operand,
9325 non_hard_reg_operand): Likewise.
9326 (eq_neq_comparison_operator): Delete unused operator.
9327 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
9328 function_label_operand.
9329 (emit_move_sequence): Likewise.
9331 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9333 * config/i386/sse.md (sseunpackmode): New mode attribute.
9334 (ssepackmode): Ditto.
9335 (vec_pack_trunc_<mode>): Macroize expander from
9336 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
9337 (vec_unpacks_lo_<mode>): Macroize expander from
9338 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9339 (vec_unpacks_hi_<mode>): Macroize expander from
9340 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9341 (vec_unpacku_lo_<mode>): Macroize expander from
9342 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9343 (vec_unpacku_hi_<mode>): Macroize expander from
9344 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
9345 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
9346 ix86_expand_sse4_unpack.
9347 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
9349 2011-04-16 Jan Hubicka <jh@suse.cz>
9351 * cgraphbuild.c: Include ipa-inline.h.
9352 (reset_inline_failed): Use initialize_inline_failed.
9353 * cgraph.c: Include ipa-inline.h.
9354 (cgraph_create_node_1): Do not initialize estimated_growth.
9355 (initialize_inline_failed): More to ipa-inline-analysis.c
9356 (dump_cgraph_node): Do not dump inline flags.
9357 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
9358 and disregard_inline_limits flags.
9359 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
9360 time, size, estimated_growth.
9361 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
9363 * cgraphunit.c (cgraph_decide_is_function_needed): Use
9364 DECL_DISREGARD_INLINE_LIMITS.
9365 (cgraph_analyze_function): Do not initialize
9366 node->local.disregard_inline_limits.
9367 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9368 inlinable, versionable and disregard_inline_limits.
9369 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9370 cgraph_check_inline_limits, cgraph_default_inline_p,
9371 cgraph_edge_badness, update_caller_keys, update_callee_keys,
9372 add_new_edges_to_heap): Update.
9373 (cgraph_decide_inlining_of_small_function): Update; set
9374 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
9375 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
9376 cgraph_decide_inlining_incrementally): Update.
9377 * ipa-inline.h (inline_summary): Add inlinable, versionable,
9378 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
9379 time, size and estimated_growth parameters.
9380 (estimate_edge_growth): Update.
9381 (initialize_inline_failed): Declare.
9382 * ipa-split.c: Include ipa-inline.h
9383 (execute_split_functions): Update.
9384 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
9385 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
9386 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
9387 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
9388 estimated_growth to INT_MIN.
9389 (inline_node_duplication_hook): Likewise.
9390 (dump_inline_summary): Dump new fields.
9391 (compute_inline_parameters): Update.
9392 (estimate_edge_time, estimate_time_after_inlining,
9393 estimate_size_after_inlining, estimate_growth, inline_read_summary,
9394 inline_write_summary):
9395 (initialize_inline_failed): Move here from cgraph.c.
9396 * tree-sra.c: Include ipa-inline.h.
9397 (ipa_sra_preliminary_function_checks): Update.
9398 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
9401 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
9403 * config/i386/sse.md (V16): New mode iterator.
9405 (AVXMODEQI, AVXMODEDI): Remove.
9406 (sse2, sse3): New mode attribute.
9407 (mov<mode>): Use V16 mode iterator.
9408 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
9409 (push<mode>1): Use V16 mode iterator.
9410 (movmisalign<mode>): Ditto.
9411 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9412 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
9413 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
9414 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
9415 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
9416 avx_movdqu<avxmodesuffix>.
9417 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
9418 *avx_movdqu<avxmodesuffix>.
9419 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
9420 avx_lddqu<avxmodesuffix>.
9421 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
9422 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
9423 avx_movnt<AVXMODEDI:mode>.
9424 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
9425 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
9427 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
9430 * haifa-sched.c (prune_ready_list, schedule_block): Use
9431 sched_pressure_p rather than flag_sched_pressure.
9433 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
9435 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9436 cgraph_get_node instead of cgraph_get_create_node.
9438 2011-04-15 Jakub Jelinek <jakub@redhat.com>
9440 * cfgexpand.c (expand_debug_expr): Use
9441 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
9443 2011-04-15 Michael Matz <matz@suse.de>
9445 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
9446 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
9447 * function.c (gimplify_parameters): Ditto.
9448 * gimplify.c (gimplify_vla_decl): Ditto.
9450 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
9451 (gimple_call_set_alloca_for_var): New inline function.
9452 (gimple_call_alloca_for_var_p): Ditto.
9453 * gimple.c (gimple_build_call_from_tree): Remember
9454 CALL_ALLOCA_FOR_VAR_P state.
9455 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
9457 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
9458 calls if they were for VLA objects.
9460 2011-04-15 Martin Jambor <mjambor@suse.cz>
9462 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
9465 2011-04-15 Martin Jambor <mjambor@suse.cz>
9468 * tree-emutls.c (lower_emutls_function_body): Call
9469 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
9472 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
9474 * c-decl.c (detect_field_duplicates): Call
9475 objc_detect_field_duplicates instead of objc_get_interface_ivars.
9477 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
9479 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
9480 * gimple.c (gimple_asm_clobbers_memory_p): Define.
9481 * ipa-pure-const.c (check_stmt): Call it.
9482 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
9484 2011-04-15 Richard Guenther <rguenther@suse.de>
9486 PR tree-optimization/48290
9487 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
9488 Properly decide inhibiting propagation based on the valueized
9489 operand. Do loop-closed SSA form preserving here ...
9490 (init_copy_prop): ... not here.
9492 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
9495 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
9496 (*ieee_smax<mode>3): Likewise.
9498 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9500 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
9501 Replace match_operand with match_dup for the third operand in
9504 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9506 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
9507 to track processing of conditionals. Update all callers.
9508 (try_combine, simplify_if_then_else): Update.
9510 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
9512 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
9515 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
9517 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
9518 instead of match_operand for operand 3.
9520 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
9522 * recog.h (insn_operand_data): Add an "allows_mem" field.
9523 * genoutput.c (output_operand_data): Initialize it.
9524 * optabs.c (maybe_legitimize_operand_same_code): New function.
9525 (maybe_legitimize_operand): Use it when matching the original
9528 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9530 * gimplify.c: Fix issues in comments throughout.
9531 (voidify_wrapper_expr): Fix long line.
9532 (build_stack_save_restore): Likewise.
9533 (gimplify_loop_expr): Likewise.
9534 (gimplify_compound_lval): Likewise.
9535 (gimplify_init_ctor_eval): Likewise.
9536 (gimplify_modify_expr_rhs): Likewise.
9537 (omp_notice_threadprivate_variable): Likewise.
9539 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
9541 * cfgexpand.c (expand_call_stmt): Convert the function type to the
9542 original one if this is not a builtin function.
9544 2011-04-14 Jakub Jelinek <jakub@redhat.com>
9547 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
9548 offset it as needed based on top 2 bits in operands[3], change
9549 MEM mode to SFmode and mask those 2 bits away from operands[3].
9551 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9553 * c-parser.c (c_parser_objc_protocol_definition): Updated for
9554 change from objc_declare_protocols() to objc_declare_protocol().
9556 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
9558 * config/i386/sse.md (sse4_1): New mode attribute.
9559 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
9560 avx_blend<ssemodesuffix><avxmodesuffix> and
9561 sse4_1_blend<ssemodesuffix> using VF mode iterator.
9562 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
9563 avx_blendv<ssemodesuffix><avxmodesuffix> and
9564 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
9565 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
9566 avx_dp<ssemodesuffix><avxmodesuffix> and
9567 sse4_1_dp<ssemodesuffix> using VF mode iterator.
9568 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
9569 (sse4_1_packusdw): Merge with *avx_packusdw.
9570 (sse4_1_pblendvb): Merge with *avx_pblendvb.
9571 (sse4_1_pblendw): Merge with *avx_pblendw.
9572 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
9573 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
9574 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
9576 (sse4_1_round<ssescalarmodesuffix>): Merge with
9577 *avx_round<ssescalarmodesuffix>.
9578 (aesenc): Merge with *avx_aesenc.
9579 (aesenclast): Merge with *avx_aesenclast.
9580 (aesdec): Merge with *avx_aesdec.
9581 (aesdeclast): Merge with *avx_aesdeclast.
9582 (pclmulqdq): Merge with *pclmulqdq.
9583 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
9585 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9587 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
9590 * cfgexpand.c (get_decl_align_unit): Renamed to ...
9591 (align_local_variable): This. Update DECL_ALIGN.
9592 (add_stack_var): Updated.
9593 (expand_one_stack_var): Likewise.
9595 2011-04-14 Richard Guenther <rguenther@suse.de>
9597 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
9599 (dse_initialize_block_local_data, dse_leave_block,
9600 record_voperand_set, get_stmt_uid): Likewise.
9601 (dse_possible_dead_store_p): Allow any kind of killing stmt.
9602 (dse_optimize_stmt): Remove voperand set handling code.
9603 Simplify and improve to handle any kind of killing stmt.
9604 (dse_record_phi): Remove.
9605 (dse_enter_block): Simplify.
9606 (tree_ssa_dse): Likewise.
9607 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
9609 2011-04-14 Jan Hubicka <jh@suse.cz>
9611 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
9612 * cgraph.h (struct inline_summary): Move to ipa-inline.h
9613 (cgraph_local_info): Remove inline_summary.
9614 * ipa-cp.c: Include ipa-inline.h.
9615 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
9616 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
9618 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
9619 (input_overwrite_node): Do not set inline summary.
9620 (input_node): Do not stream inline summary.
9621 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
9622 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
9623 growth; we do not have inline parameters computed for that anyway.
9624 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
9625 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
9626 (inline_summary_t): New type and VECtor.
9627 (debug_inline_summary, dump_inline_summaries): Declare.
9628 (inline_summary): Use VOCtor.
9629 (estimate_edge_growth): Kill hack computing call stmt size directly.
9630 * lto-section-in.c (lto_section_name): Add inline section.
9631 * ipa-inline-analysis.c: Include lto-streamer.h
9632 (node_removal_hook_holder, node_duplication_hook_holder): New holders
9633 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
9634 (inline_summary_vec): Define.
9635 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
9636 dump_inline_summaries): New functions.
9637 (estimate_function_body_sizes): Properly compute size/time of outgoing
9639 (compute_inline_parameters): Alloc inline_summary; do not compute
9640 size/time of incomming calls.
9641 (estimate_edge_time): Avoid missing time summary hack.
9642 (inline_read_summary): Read inline summary info.
9643 (inline_write_summary): Write inline summary info.
9644 (inline_free_summary): Free all hooks and inline summary vector.
9645 * lto-streamer.h: Add LTO_section_inline_summary section.
9646 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
9647 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
9649 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9651 * tree-vectorizer.h (vect_strided_store_supported): Add a
9652 HOST_WIDE_INT argument.
9653 (vect_strided_load_supported): Likewise.
9654 (vect_permute_store_chain): Return void.
9655 (vect_transform_strided_load): Likewise.
9656 (vect_permute_load_chain): Delete.
9657 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
9658 count argument. Check that the count is a power of two.
9659 (vect_strided_load_supported): Likewise.
9660 (vect_permute_store_chain): Return void. Update after above changes.
9661 Assert that the access is supported.
9662 (vect_permute_load_chain): Likewise.
9663 (vect_transform_strided_load): Return void.
9664 * tree-vect-stmts.c (vectorizable_store): Update calls after
9665 above interface changes.
9666 (vectorizable_load): Likewise.
9667 (vect_analyze_stmt): Don't check for strided powers of two here.
9669 2011-04-14 Richard Guenther <rguenther@suse.de>
9671 PR tree-optimization/48590
9672 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9673 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9674 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
9675 BUILT_IN_STACK_SAVE.
9676 * tree-ssa-dce.c (propagate_necessity): Handle
9677 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
9679 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
9681 * c-parser.c (c_parser_objc_class_declaration): Updated call to
9684 2011-04-14 Richard Guenther <rguenther@suse.de>
9686 * tree.h (get_object_alignment_1): Declare.
9687 * builtins.c (get_object_alignment_1): Split out worker from ...
9688 (get_object_alignment): ... here.
9689 * fold-const.c (get_pointer_modulus_and_residue): Use
9690 get_object_alignment_1.
9692 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9694 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
9696 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
9697 parameter. Generalise code to handle arrays as well as vectors.
9698 (vect_setup_realignment): Update accordingly.
9699 * tree-vect-stmts.c (vectorizable_store): Likewise.
9700 (vectorizable_load): Likewise.
9702 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9704 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
9705 within the per-copy loop.
9707 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9709 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
9712 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
9714 * doc/options.texi (Negative): Explicitly mention that the
9715 Negative chain must be circular.
9717 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
9719 * function.h (block_chainon): Declare.
9720 * function.c (block_chainon): Define.
9722 2011-04-14 Anatoly Sokolov <aesok@post.ru>
9723 Eric Weddington <eric.weddington@atmel.com>
9724 Georg-Johann Lay <avr@gjlay.de>
9726 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
9728 (avr_init_builtins, avr_expand_builtin,
9729 avr_expand_delay_cycles, avr_expand_unop_builtin,
9730 avr_expand_binop_builtin ): New functions.
9731 (avr_builtin_id): New enum
9732 (struct avr_builtin_description): New struct
9733 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
9734 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
9736 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
9737 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
9738 UNSPECV_DELAY_CYCLES): new enumeration values
9739 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
9740 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
9741 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
9742 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
9743 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
9744 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
9745 "fmulsu"): New insns
9747 * config/avr/avr-c.c: fix line endings
9748 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
9749 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
9750 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
9751 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
9752 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
9754 * doc/extend.texi (AVR Built-in Functions): New node
9755 (Target Builtins): Add documentation of AVR
9758 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
9761 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
9762 alone. Error if non-const data has attribute progmem.
9764 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9766 * tree.h (struct tree_constructor): Include tree_typed instead of
9768 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
9769 TS_TYPED instead of TS_COMMON.
9771 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9773 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
9774 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
9775 (sse2_psadbw): Merge with *avx_psadbw.
9776 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
9777 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
9778 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
9779 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
9780 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
9781 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
9782 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
9783 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
9784 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
9785 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
9786 (ssse3_palignrti): Merge with *avx_palignrti.
9788 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9790 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
9791 * tree-ssanames.c (fini_ssanames): VEC_free it.
9792 (make_ssa_name_fn): Update for VECness of free_ssanames.
9793 (release_ssa_name, release_dead_ssa_names): Likewise.
9794 * tree.h (struct tree_ssa_name): Include tree_typed instead of
9796 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
9797 TS_TYPED instead of TS_COMMON.
9799 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9801 * postreload-gcse.c (gcse_after_reload_main): Add calls to
9802 statistics_counter_event.
9803 * tree-ssa-copyrename.c (stats): Define.
9804 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
9805 statistics_counter_event.
9806 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
9807 (bswap_stats, widen_mul_stats): Define.
9808 (insert_reciprocals): Increment rdivs_inserted.
9809 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
9810 rfuncs_inserted. Add calls to statistics_counter_event.
9811 (execute_cse_sincos_1): Increment inserted.
9812 (execute_cse_sincos): Zeroize sincos_stats. Add call to
9813 statistics_counter_event.
9814 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
9815 of bswap_stats. Add calls to statistics_counter_event.
9816 (convert_mult_to_widen): Increment widen_mults_inserted.
9817 (convert_plusminus_to_widen): Increment maccs_inserted.
9818 (convert_mult_to_fma): Increment fmas_inserted.
9819 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
9820 calls to statistics_counter_event.
9822 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
9824 PR rtl-optimization/48455
9825 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
9826 `temp_costs->mem_cost'.
9828 2011-04-13 Jan Hubicka <jh@suse.cz>
9830 * ipa-inline.h: New file.
9831 * ipa-inline-analysis.c: New file. Broken out of ...
9832 * ipa-inline.c: ... this file; update toplevel comment;
9833 include ipa-inline.h
9834 (inline_summary): Move to ipa-inline.h
9835 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9836 ipa-inline-analysis.c.
9837 (cgraph_estimate_time_after_inlining): Rename to
9838 estiamte_time_after_inlining; move to ipa-inline-analysis.c
9839 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
9840 to estimate_edge_growth.
9841 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
9842 rename to estimate_size_after_inlining.
9843 (cgraph_mark_inline_edge): Update for new naming convention.
9844 (cgraph_check_inline_limits): Likewise.
9845 (cgraph_edge_badness): Likewise.
9846 (cgraph_decide_recursive_inlining): Likewise.
9847 (cgraph_decide_inlining_of_small_functions): Likewise.
9848 (cgraph_decide_inlining_incrementally): Likewise.
9849 (cgraph_estimate_growth): Rename to estimate_growth; move to
9850 ipa-inline-analysis.c.
9851 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
9852 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
9853 (compute_inline_parameters): Likewise.
9854 (compute_inline_parameters_for_current): Likewise.
9855 (pass_inline_parameters): Likewise.
9856 (inline_indirect_intraprocedural_analysis): Likewise.
9857 (analyze_function): Rename to inline_analyze_function; likewise.
9858 (add_new_function): Move to ipa-inline-analysis.c.
9859 (inline_generate_summary): Likewise.
9860 (inline_read_summary): Likewise.
9861 (inline_write_summary): Likewise.
9862 * Makefile.in (ipa-inline-analysis.c): New file.
9864 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9866 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
9867 * configure: Regenerate.
9869 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
9871 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
9872 instead of tree_common.
9873 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
9875 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
9876 TS_TYPED rather than TS_COMMON.
9877 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
9879 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
9882 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
9883 r20 around calls of __tablejump_elpm__
9885 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9888 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
9890 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
9892 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
9894 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
9895 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
9896 (cfi_vec): New typedef.
9897 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
9898 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
9899 (cie_cfi_vec): New static variable.
9900 (cie_cfi_head): Delete.
9901 (add_cfi): Accept a cfi_vec * as first argument. All callers and
9902 declaration changed. Use vector rather than list operations.
9903 (new_cfi): Don't initialize the dw_cfi_next field.
9904 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9905 rather than list operations.
9906 (lookup_cfa): Use vector rather than list operations.
9907 (output_cfis): New argument upto. Accept a cfi_vec rather than
9908 a dw_cfi_ref list head as argument. All callers changed.
9909 Iterate over the vector using upto as a maximum index.
9910 (output_all_cfis): New static function.
9911 (output_fde): Use vector rather than list operations. Use the
9912 new upto argument for output_cfis rather than manipulating a
9914 (dwarf2out_begin_prologue): Change initializations to match
9916 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9917 from the vector length rather than searching for the end of a list.
9918 Use output_all_cfis.
9919 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9921 2011-04-13 Nick Clifton <nickc@redhat.com>
9923 * config/rx/rx.md (movmemsi): Do not use this pattern when
9924 volatile pointers are involved.
9926 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9928 * config/i386/sse.md (pinsrbits): Remove.
9929 (sse2_packsswb): Merge with *avx_packsswb.
9930 (sse2_packssdw): Merge with *avx_packssdw.
9931 (sse2_packuswb): Merge with *avx_packuswb.
9932 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9933 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9934 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9935 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9936 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9937 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9938 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9939 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9940 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9941 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9942 (sse2_loadld): Merge with *avx_loadld.
9943 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9944 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9945 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9946 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9947 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9949 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9951 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9953 * print-tree.c (print_node): Likewise.
9954 * tree-inline.c (copy_tree_r): Likewise.
9955 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9956 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9957 instead of TS_COMMON.
9958 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9959 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9960 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9961 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9962 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9964 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9966 (TREE_CHAIN): Check for a TS_COMMON structure.
9967 (TREE_TYPE): Check for a TS_TYPED structure.
9969 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9971 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9972 cgraph_get_create_node instead of cgraph_node.
9974 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9976 * c-parser.c (c_parser_initelt): Updated call to
9977 objc_build_message_expr.
9978 (c_parser_postfix_expression): Likewise.
9980 2011-04-12 Kai Tietz <ktietz@redhat.com>
9982 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9983 MASK_MS_BITFIELD_LAYOUT bit.
9985 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9987 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9988 assert it is always true.
9989 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9992 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9994 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9995 compiling Objective-C to be more efficient.
9997 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9999 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10002 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10004 * recog.h, genoutput.c, optabs.c: Revert last patch.
10006 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10009 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10011 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10013 * recog.h (insn_operand_data): Add an "allows_mem" field.
10014 * genoutput.c (output_operand_data): Initialize it.
10015 * optabs.c (maybe_legitimize_operand_same_code): New function.
10016 (maybe_legitimize_operand): Use it when matching the original
10019 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10021 * genpreds.c (process_define_predicate): Move most processing
10022 to gensupport.c. Continue to validate the expression.
10023 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10024 (process_define_predicate): Move processing to gensupport.c.
10025 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10026 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10027 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10029 (valid_predicate_name_p): New function, split out from old
10030 genpreds.c:process_define_predicate.
10031 (process_define_predicate): New function, combining code from
10032 old genpreds.c and genrecog.c functions.
10033 (process_rtx): Call it for DEFINE_PREDICATE and
10034 DEFINE_SPECIAL_PREDICATE.
10036 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10038 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10039 size of a '%A' memory reference.
10040 (T_DREG, T_QREG): New neon_builtin_type_bits.
10041 (arm_init_neon_builtins): Assert that the load and store operands
10042 are neon_struct_operands.
10043 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10044 (NEON_ARG_MEMORY): New builtin_arg.
10045 (neon_dereference_pointer): New function.
10046 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10047 Handle NEON_ARG_MEMORY.
10048 (arm_expand_neon_builtin): Update after above interface changes.
10049 Use NEON_ARG_MEMORY for loads and stores.
10050 * config/arm/predicates.md (neon_struct_operand): New predicate.
10051 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10052 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10053 (V_four_elem): Tweak formatting.
10054 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10055 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10056 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10057 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10058 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10059 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10060 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10061 Use %A in the output template.
10062 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10063 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10064 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10065 the width of the memory access. Remove post-increment.
10066 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10068 2011-04-12 Nick Clifton <nickc@redhat.com>
10070 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10071 instruction for interrupt handlers if the target is the basic V850
10073 (expand_epilogue): Likewise.
10075 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10077 PR rtl-optimization/48549
10078 * combine.c (propagate_for_debug): Also stop after BB_END of
10079 this_basic_block. Process LAST and just stop processing after it.
10080 (combine_instructions): If last_combined_insn has been deleted,
10081 set last_combined_insn to its PREV_INSN.
10083 2011-04-12 Richard Guenther <rguenther@suse.de>
10085 PR tree-optimization/46076
10086 * gimple.h (struct gimple_statement_call): Add fntype field.
10087 (gimple_call_fntype): Adjust.
10088 (gimple_call_set_fntype): New function.
10089 * gimple.c (gimple_build_call_1): Set the call function type.
10090 * gimplify.c (gimplify_call_expr): Preserve the function
10091 type the frontend used for the call.
10092 (gimplify_modify_expr): Likewise.
10093 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10095 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10097 * tree-ssa.c (useless_type_conversion_p): Function pointer
10098 conversions are useless.
10100 2011-04-12 Martin Jambor <mjambor@suse.cz>
10102 * cgraph.h (cgraph_node): Remove function declaration.
10103 (cgraph_create_node): Declare.
10104 (cgraph_get_create_node): Likewise.
10105 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10106 Updated all callers.
10107 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10108 the decl does not already exist. Call cgraph_get_create_node instead
10110 (cgraph_get_create_node): New function.
10111 (cgraph_same_body_alias): Update comment.
10112 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10113 assert it does not return NULL.
10114 (cgraph_update_edges_for_call_stmt): Likewise.
10115 (cgraph_clone_edge): Likewise.
10116 (cgraph_create_virtual_clone): Likewise.
10117 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10118 instead of cgraph_node.
10119 (cgraph_add_new_function): Call cgraph_create_node or
10120 cgraph_get_create_node instead of cgraph_node.
10121 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10122 instead of cgraph_node.
10123 (record_eh_tables): Likewise.
10124 (mark_address): Likewise.
10125 (mark_load): Likewise.
10126 (build_cgraph_edges): Call cgraph_get_create_node instead
10128 (rebuild_cgraph_edges): Likewise.
10129 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10130 instead of cgraph_node.
10131 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10133 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10134 cgraph_create_node instead of cgraph_node.
10135 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10137 * lto-cgraph.c (input_node): Likewise.
10138 * lto-streamer-in.c (input_function): Likewise.
10139 * varasm.c (mark_decl_referenced): Likewise.
10140 (assemble_alias): Likewise.
10142 2011-04-12 Martin Jambor <mjambor@suse.cz>
10144 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10145 instead of cgraph_node and assert it does not return NULL.
10146 * lto-streamer-in.c (lto_read_body): Likewise.
10147 * omp-low.c (new_omp_context): Likewise.
10148 (create_task_copyfn): Likewise.
10149 * tree-emutls.c (lower_emutls_function_body): Likewise.
10150 * matrix-reorg.c (transform_allocation_sites): Likewise.
10152 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10155 * c-typeck.c (build_asm_expr): Error out on attempts to use
10156 void type outputs or inputs for constraints that allow reg or
10157 don't allow memory.
10159 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10160 Richard Earnshaw <rearnsha@arm.com>
10163 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10164 to use sign-magnitude offsets. Reject unsupported unaligned
10165 cases. Add detailed description in comments.
10166 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10167 condition from TARGET_32BIT to TARGET_ARM.
10169 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10171 * tree.h (struct typed_tree): New.
10172 (struct tree_common): Include it instead of tree_base.
10173 (TREE_TYPE): Update for new location of type field.
10174 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10175 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10176 (union tree_node): Add typed field.
10177 * treestruct.def (TS_TYPED): New.
10178 * lto-streamer.c (check_handled_ts_structures): Handle it.
10179 * tree.c (MARK_TS_TYPED): New macro.
10180 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10182 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10184 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10185 (force_nonfallthru): Do not alter the loop nest if no basic block
10188 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10190 * config/i386/sse.md (VI): New mode iterator.
10191 (SSEMODEI): Remove.
10192 (AVX256MODEI): Ditto.
10193 (AVXMODEF4P): Ditto.
10194 (avxvecpsmode): Ditto.
10195 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10196 (sse2_andnot<mode>3): New expander.
10197 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10198 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10199 (<any_logic:code><mode>3): Use VI mode iterator.
10200 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10201 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10202 (*andnottf3): Handle AVX three-operand constraints.
10203 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10205 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10206 Robert Millan <rmh@gnu.org>
10208 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10209 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10210 GNU_USER_DYNAMIC_LINKER64): Define.
10211 (REG_NAME): Don't undefine.
10212 (MD_UNWIND_SUPPORT): Undefine.
10213 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10214 (REG_NAME): Don't undefine.
10215 (MD_UNWIND_SUPPORT): Undefine.
10216 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10218 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10220 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10221 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10223 2011-04-11 Xinliang David Li <davidxl@google.com>
10225 * value-profile.c (check_ic_target): New function.
10226 (gimple_ic_transform): Sanity check indirect call target.
10227 * gimple-low.c (gimple_check_call_args): Interface change.
10228 (gimple_check_call_matching_types): New function.
10229 * tree-inline.c (tree_can_inline_p): Call new function.
10231 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10233 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10234 tree-pretty-print.h & realmpfr.h.
10236 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10238 PR middle-end/48464
10239 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10240 (setup_allocno_and_important_classes): Ditto.
10242 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10244 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10245 GNU_USER_DYNAMIC_LINKER.
10246 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10247 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10248 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10249 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10250 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10251 GNU_USER_TARGET_OS_CPP_BUILTINS.
10252 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
10253 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10254 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10255 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10256 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
10257 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10258 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10259 GNU_USER_TARGET_OS_CPP_BUILTINS.
10260 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10261 GNU_USER_DYNAMIC_LINKER.
10262 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10263 GNU_USER_TARGET_OS_CPP_BUILTINS.
10264 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
10265 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10266 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
10267 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10268 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
10269 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
10270 GNU_USER_DYNAMIC_LINKER64): Remove.
10271 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
10272 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10273 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10274 GNU_USER_DYNAMIC_LINKER.
10275 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10276 GNU_USER_TARGET_OS_CPP_BUILTINS.
10277 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10278 GNU_USER_TARGET_OS_CPP_BUILTINS.
10279 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
10280 to GNU_USER_TARGET_OS_CPP_BUILTINS.
10281 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
10282 GNU_USER_TARGET_OS_CPP_BUILTINS.
10283 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
10284 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
10285 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10286 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
10287 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10288 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10289 GNU_USER_DYNAMIC_LINKER.
10290 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
10291 GNU_USER_TARGET_OS_CPP_BUILTINS.
10292 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
10293 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10294 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10295 GNU_USER_DYNAMIC_LINKER.
10296 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10298 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
10299 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10300 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10301 GNU_USER_DYNAMIC_LINKER.
10302 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
10303 GNU_USER_DYNAMIC_LINKERN32.
10304 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
10305 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
10306 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
10307 GNU_USER_DYNAMIC_LINKER32.
10308 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
10309 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10310 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10311 GNU_USER_DYNAMIC_LINKER.
10312 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
10313 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10314 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
10315 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10316 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10317 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
10318 GNU_USER_DYNAMIC_LINKER32.
10319 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
10320 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
10321 GNU_USER_DYNAMIC_LINKER.
10322 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
10323 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10324 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10325 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
10326 GNU_USER_DYNAMIC_LINKER64.
10327 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
10328 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10329 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10330 GNU_USER_DYNAMIC_LINKER.
10331 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
10332 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10333 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
10334 GNU_USER_DYNAMIC_LINKER.
10335 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
10336 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10337 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
10338 GNU_USER_DYNAMIC_LINKER32.
10339 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10340 GNU_USER_DYNAMIC_LINKER64.
10341 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
10342 GNU_USER_DYNAMIC_LINKER64.
10343 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
10344 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10345 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
10346 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10347 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
10349 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10351 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
10352 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
10353 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
10354 GNU_USER_DYNAMIC_LINKER.
10355 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10356 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
10357 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
10358 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
10359 GNU_USER_DYNAMIC_LINKER64.
10360 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
10361 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
10362 GNU_USER_LINK_EMULATION.
10363 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
10364 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
10365 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
10366 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
10367 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
10368 CPP_SPEC, CC1_SPEC): Remove.
10369 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
10370 (GNU_USER_DYNAMIC_LINKER): Define.
10371 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
10372 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
10373 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
10374 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
10375 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
10376 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
10377 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10378 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
10379 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
10380 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
10381 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
10382 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
10383 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
10384 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
10385 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
10386 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
10387 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10388 GNU_USER_DYNAMIC_LINKER.
10389 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10390 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10391 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10392 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10393 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
10394 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
10395 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
10396 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
10397 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
10398 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
10400 2011-04-11 Kai Tietz <ktietz@redhat.com>
10404 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
10405 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
10407 (ix86_is_msabi_thiscall): Removed.
10408 (ix86_is_type_thiscall): Likewise.
10409 (ix86_get_callcvt): New function.
10410 (ix86_comp_type_attributes): Simplify check.
10411 (ix86_function_regparm): Use ix86_get_callcvt for calling
10412 convention attribute checks.
10413 (ix86_return_pops_args): Likewise.
10414 (ix86_static_chain): Likewise.
10415 (x86_this_parameter): Likewise.
10416 (x86_output_mi_thunk): Likewise.
10417 (ix86_function_type_abi): Optimize check for types without attributes.
10418 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
10419 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
10420 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
10422 (IX86_BASE_CALLCVT): Helper macro.
10423 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10424 Use ix86_get_callcvt for calling convention attribute checks and avoid
10425 symbol-decoration for stdcall in TARGET_RTD case.
10426 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
10428 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
10431 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10433 * config/i386/sse.md (VI_128): New mode iterator.
10434 (VI12_128): Rename from SSEMODE12.
10435 (VI14_128): Rename from SSEMODE14.
10436 (VI124_128): New mode iterator.
10437 (VI24_128): Rename from SSEMODE248.
10438 (VI248_128): Rename from SSEMODE248.
10439 (SSEMODE124C8): Remove.
10440 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10441 (*sse2_<plusminus_insn><mode>3): Merge with
10442 *avx_<plusminus_insn><mode>3.
10443 (*mulv8hi3): Merge with *avx_mulv8hi3.
10444 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
10445 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
10446 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
10447 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
10448 (ashr<mode>3): Merge with *avx_ashr<mode>3.
10449 (lshr<mode>3): Merge with *avx_lshr<mode>3.
10450 (ashl<mode>3): Merge with *avx_ashl<mode>3.
10451 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
10452 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
10453 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10454 (*<smaxmin:code>v8hi3): Ditto.
10455 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
10456 (*<smaxmin:code>v16qi3): Ditto.
10457 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
10458 (*sse2_eq<mode>3): Ditto.
10459 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
10460 (*sse2_gt<mode>3): Ditto.
10461 (vcondv2di): Split out of vcond<mode>.
10462 (vconduv2di): Split out of vcondu<mode>.
10464 2011-04-11 Richard Guenther <rguenther@suse.de>
10466 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
10467 before calling tree_low_cst.
10469 2011-04-11 Richard Guenther <rguenther@suse.de>
10471 * stor-layout.c (layout_type): Compute all array index size operations
10472 in the original type.
10473 (initialize_sizetypes): Add comment.
10474 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
10476 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10478 * common.opt (Tbss=, Tdata=, Ttext=): New options.
10480 2011-04-11 Martin Jambor <mjambor@suse.cz>
10482 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
10483 of cgraph_node, handle NULL return value.
10484 (cgraph_global_info): Likewise.
10485 (cgraph_rtl_info): Likewise.
10486 * tree-inline.c (estimate_num_insns): Likewise.
10487 * gimplify.c (unshare_body): Likewise.
10488 (unvisit_body): Likewise.
10489 (gimplify_body): Likewise.
10490 * predict.c (optimize_function_for_size_p): Likewise.
10491 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10492 (call_may_clobber_ref_p_1): Likewise.
10493 * varasm.c (function_section_1): Likewise.
10494 (assemble_start_function): Likewise.
10496 2011-04-11 Martin Jambor <mjambor@suse.cz>
10498 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
10500 * final.c (rest_of_clean_state): Likewise.
10501 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
10502 * passes.c (pass_init_dump_file): Likewise.
10503 (execute_all_ipa_transforms): Likewise.
10504 (function_called_by_processed_nodes_p): Likewise.
10505 * predict.c (maybe_hot_frequency_p): Likewise.
10506 (probably_never_executed_bb_p): Likewise.
10507 (compute_function_frequency): Likewise.
10508 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
10509 (unnest_nesting_tree_1): Likewise.
10510 (lower_nested_functions): Likewise.
10511 * tree-optimize.c (execute_fixup_cfg): Likewise.
10512 (tree_rest_of_compilation): Likewise.
10513 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
10514 * tree-sra.c (ipa_early_sra): Likewise.
10515 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
10516 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
10517 * ipa.c (record_cdtor_fn): Likewise.
10518 * ipa-inline.c (cgraph_early_inlining): Likewise.
10519 (compute_inline_parameters_for_current): Likewise.
10520 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10521 * ipa-pure-const.c (local_pure_const): Likewise.
10522 * ipa-split.c (split_function): Likewise.
10523 (execute_split_functions): Likewise.
10524 * cgraphbuild.c (build_cgraph_edges): Likewise.
10525 (rebuild_cgraph_edges): Likewise.
10526 (cgraph_rebuild_references): Likewise.
10527 (remove_cgraph_callee_edges): Likewise.
10528 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
10529 (verify_cgraph_node): Likewise.
10530 (cgraph_analyze_functions): Likewise.
10531 (cgraph_preserve_function_body_p): Likewise.
10532 (save_inline_function_body): Likewise.
10533 (save_inline_function_body): Likewise.
10534 * tree-inline.c (copy_bb): Likewise.
10535 (optimize_inline_calls): Likewise.
10537 2011-04-11 Martin Jambor <mjambor@suse.cz>
10539 PR tree-optimization/48195
10540 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
10541 ipa_check_create_edge_args.
10542 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
10543 ipa_check_create_edge_args.
10544 * ipa-inline.c (inline_generate_summary): Do not call
10545 ipa_check_create_node_params and ipa_check_create_edge_args.
10546 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
10547 ipa_check_create_edge_args.
10549 2011-04-09 Anatoly Sokolov <aesok@post.ru>
10551 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
10553 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10554 * function.c (record_hard_reg_sets): Likewise.
10555 * ira.c (compute_regs_asm_clobbered): Likewise.
10556 * sched-deps.c (sched_analyze_1): Likewise.
10557 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
10559 2011-04-09 Xinliang David Li <davidxl@google.com>
10561 PR tree-optimization/PR48484
10562 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
10563 has_valid_pred lazily
10565 2011-04-09 Duncan Sands <baldrick@free.fr>
10567 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
10569 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
10571 * combine.c (combine_validate_cost): Adjust comments. Set registered
10572 cost of I0 to zero at the end, if any.
10574 2011-04-08 Xinliang David Li <davidxl@google.com>
10576 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
10577 to insane profile data.
10579 2011-04-08 Xinliang David Li <davidxl@google.com>
10581 * ipa-cp.c (ipcp_update_profiling): Correct
10582 negative scale factor due to insane profile data.
10584 2011-04-08 Xinliang David Li <davidxl@google.com>
10586 * final.c (dump_basic_block_info): New function.
10587 (final): Dump basic block.
10588 (final_scan_insn): Remove old dump.
10590 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
10593 * config.gcc (i386-*-freebsd): Disable unwind table generation for
10596 2011-04-08 Michael Matz <matz@suse.de>
10598 PR middle-end/48389
10599 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
10601 (rebuild_jump_labels): Call rebuild_jump_labels_1.
10602 * rtl.h (rebuild_jump_labels_chain): Declare.
10603 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
10604 insns inserted on edges.
10606 2011-04-08 Joseph Myers <joseph@codesourcery.com>
10608 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
10609 * config/arm/arm-arches.def: New.
10610 * config/arm/arm-opts.h: New.
10611 * config/arm/genopt.sh: New.
10612 * config/arm/arm-tables.opt: New (generated).
10613 * config/arm/arm.c (arm_handle_option, arm_target_help,
10614 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
10615 (all_architectures): Get most table contents from arm-arches.def.
10616 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
10617 arm_selected_tune here.
10618 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
10619 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
10620 (march=, mcpu=, mtune=): Use Enum and Var.
10621 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
10622 (arm.o): Update dependencies.
10624 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
10626 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
10628 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
10629 (write_typed_alloc_defns): Likewise.
10630 (main): Calls write_typed_alloc_defns with output_header.
10632 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
10634 PR inline-asm/48435
10635 * ira-color.c (setup_profitable_hard_regs): Add comments.
10636 Don't take prohibited hard regs into account.
10637 (setup_conflict_profitable_regs): Rename to
10638 get_conflict_profitable_regs.
10639 (check_hard_reg_p): Check prohibited hard regs.
10641 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
10643 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
10644 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
10645 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
10647 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10650 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
10651 move from floating point to shift amount register.
10652 (emit_move_sequence): Remove secondary reload support for floating
10653 point to shift amount amount register copies.
10654 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
10655 amount register copies.
10656 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
10657 register, return false if mode isn't a scalar integer mode.
10658 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
10660 2011-04-08 Richard Guenther <rguenther@suse.de>
10662 * gimple.c (gimple_call_flags): Remove kludge.
10664 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10666 * sel-sched.c (sel_region_init): Move call to
10667 sel_setup_region_sched_flags after setup_current_loop_nest.
10669 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
10671 PR rtl-optimization/48272
10672 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
10673 init_insn_reg_pressure_info. Adjust a caller.
10674 * sched-int.h (init_insn_reg_pressure_info): Declare.
10675 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
10676 when sched-pressure is enabled.
10678 2011-04-08 Richard Guenther <rguenther@suse.de>
10680 * gimple.c (gimple_set_modified): Do not queue calls to
10681 MODIFIED_NORETURN_CALLS here ...
10682 * tree-ssa-operands.c (update_stmt_operands): ... but here.
10684 2011-04-08 Richard Guenther <rguenther@suse.de>
10687 * toplev.c (lang_dependent_init): Do not open asm_out_file
10688 in WPA mode, nor perform debug machinery initialization.
10689 (finalize): Do not unlink asm_out_file in WPA mode.
10691 2011-04-08 Richard Guenther <rguenther@suse.de>
10693 * gimple.h (gimple_call_fntype): New function.
10694 (gimple_call_return_type): Use it.
10695 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
10696 * gimple-low.c (gimple_check_call_args): Likewise.
10697 * gimple.c (gimple_call_flags): Likewise.
10698 (gimple_call_arg_flags): Likewise.
10699 (gimple_call_return_flags): Likewise.
10700 * tree-cfg.c (verify_gimple_call): Likewise.
10701 (do_warn_unused_result): Likewise.
10702 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10703 * value-prof.c (gimple_ic_transform): Fix fndecl check.
10705 2011-04-08 Dmitry Melnik <dm@ispras.ru>
10707 PR rtl-optimization/48235
10708 * sel-sched.c (code_motion_process_successors): Recompute the last
10709 insn in basic block if control flow changed.
10710 (code_motion_path_driver): Ditto. Recompute the first insn as well.
10711 Update condition for ilist_remove.
10713 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10715 PR rtl-optimization/48302
10716 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
10717 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
10718 it to record added preheader blocks.
10719 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
10720 on to sel_add_loop_preheaders.
10721 (sel_region_init): Move call to setup_current_loop_nest after
10724 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10727 * cfgloop.h (loop_has_exit_edges): New helper.
10728 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
10730 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
10731 that have no exit edges.
10733 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
10735 PR rtl-optimization/48442
10736 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
10737 all callers. Adjust assert.
10739 2011-04-08 Jakub Jelinek <jakub@redhat.com>
10741 PR tree-optimization/48377
10742 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
10743 is_packed to true even for types with smaller TYPE_ALIGN than
10746 2011-04-08 Richard Guenther <rguenther@suse.de>
10749 * doc/tm.texi: Re-generate.
10751 2011-04-08 Wei Guozhi <carrot@google.com>
10754 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
10755 * config/arm/arm.c (arm_attr_length_push_multi): New function.
10756 * config/arm/arm.md (*push_multi): Change the length computation to
10759 2011-04-08 Anatoly Sokolov <aesok@post.ru>
10761 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
10762 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
10763 * doc/tm.texi: Regenerate.
10764 * system.h (ASM_OUTPUT_BSS): Poison.
10765 * varasm.c (asm_output_bss): Remove function.
10766 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
10768 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
10769 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
10770 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
10771 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10773 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10775 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
10777 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10779 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10781 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
10784 2011-04-07 Joseph Myers <joseph@codesourcery.com>
10786 * config/m68k/m68k.c (m68k_handle_option): Don't handle
10787 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
10788 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
10790 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10791 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
10792 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
10793 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
10794 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
10795 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
10796 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10797 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
10798 options. Don't map other m68k options manually. Don't handle
10799 old-style options as canonical.
10800 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
10801 * doc/install.texi (m68k-*-*): Document binutils version requirement.
10803 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
10805 * basic-block.h (force_nonfallthru): Move to...
10806 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
10807 (force_nonfallthru): ...here.
10808 * cfghooks.c (force_nonfallthru): New function.
10809 * cfgrtl.c (force_nonfallthru): Rename into...
10810 (rtl_force_nonfallthru): ...this.
10811 (commit_one_edge_insertion): Do not set AUX field.
10812 (commit_edge_insertions): Do not discover new basic blocks.
10813 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
10814 (cfg_layout_rtl_cfg_hooks): Likewise.
10815 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
10816 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
10817 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
10819 2011-04-07 Anatoly Sokolov <aesok@post.ru>
10821 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10824 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
10826 * config/i386/sse.md: Update copyright year.
10827 (avxcvtvecmode): Remove.
10828 (sse_movhlps): Merge with *avx_movhlps.
10829 (sse_movlhps): Merge with *avx_movlhps.
10830 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
10831 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
10832 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
10833 (sse_loadhps): Merge with *avx_loadhps.
10834 (sse_storelps): Merge with *avx_storelps.
10835 (sse_loadlps): Merge with *avx_loadlps.
10836 (sse_movss): Merge with *avx_movss.
10837 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
10838 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
10839 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
10840 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
10841 (vec_set<mode>_0): Ditto.
10842 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
10843 (sse4_1_insertps): Merge with *avx_insertps.
10844 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
10845 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
10846 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
10847 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
10848 (sse2_storehpd): Merge with *avx_storehpd.
10849 (sse2_loadhpd): Merge with *avx_loadhpd.
10850 (sse2_loadlpd): Merge with *avx_loadlpd.
10851 (sse2_movsd): Merge with *avx_movsd.
10852 (*vec_concatv2df): Merge with *vec_concatv2df.
10854 2011-04-07 Jakub Jelinek <jakub@redhat.com>
10857 * combine.c (combine_instructions): Add last_combined_insn,
10858 update it if insn is after it, pass it to all try_combine calls.
10859 (try_combine): Add last_combined_insn parameter, pass it instead of
10860 i3 to propagate_for_debug.
10862 2011-04-07 Nick Clifton <nickc@redhat.com>
10864 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
10865 to handle MDR <-> data register transfers.
10866 (movhi_internal): Likewise.
10868 2011-04-07 Alan Modra <amodra@gmail.com>
10870 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
10871 previous stack info.
10873 2011-04-07 Tom de Vries <tom@codesourcery.com>
10876 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
10877 flow_find_cross_jump. Swap variables to implement backward replacement.
10878 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
10880 2011-04-07 Tom de Vries <tom@codesourcery.com>
10883 * cfgcleanup.c (walk_to_nondebug_insn): New function.
10884 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
10886 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
10887 src1 or src2. Redirect edges to the last basic block. Update
10888 frequency and count on multiple basic blocks in case of fallthru.
10890 2011-04-07 Tom de Vries <tom@codesourcery.com>
10893 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
10895 (old_insns_match_p): Change return type. Replace return false/true
10896 with return dir_none/dir_both. Use can_replace_by.
10897 (flow_find_cross_jump): Add dir_p parameter. Init replacement
10898 direction from dir_p. Register replacement direction in dir, last_dir
10899 and afterlast_dir. Handle new return type of old_insns_match_p using
10900 merge_dir. Return replacement direction in dir_p.
10901 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
10902 return type of old_insns_match_p.
10903 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10904 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10905 flow_find_cross_jump.
10906 * basic-block.h (enum replace_direction): New type.
10907 (flow_find_cross_jump): Add parameter to declaration.
10909 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10911 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10912 (AVXMODEDCVTPS2DQ): Ditto.
10913 (VEC_FLOAT_MODE): Ditto.
10914 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10915 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10916 (<any_logic:code><mode>3): Use VF mode iterator.
10917 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10918 Use VF mode iterator.
10919 (copysign<mode>3): Use VF mode iterator.
10920 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10921 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10922 (*<any_logic:code><MODEF:mode>3): Merge with
10923 *avx_<any_logic:code><MODEF:mode>3.
10924 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10925 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10926 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10927 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10928 (sse2_cvtdq2ps): Use %v modifier.
10929 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10930 (avx_cvtps2dq<avxmodesuffix>): Remove.
10931 (sse2_cvtps2dq): Use %v modifier.
10932 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10933 (avx_cvttps2dq<avxmodesuffix>): Remove.
10934 (sse2_cvttps2dq): Use %v modifier.
10935 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10936 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10937 (sse2_cvtsd2siq): Fix insn template.
10938 (sse2_cvtsd2siq_2): Ditto.
10939 (sse2_cvttsd2siq): Ditto.
10940 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10941 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10943 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10945 * gcov-io.c: Use GCC Runtime Library Exception.
10947 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10950 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10951 as base_reg whatever register reg has been eliminated to, instead
10952 of hardcoding STACK_POINTER_REGNUM.
10954 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10956 * doc/tm.texi.in: Document C target hooks as separate from general
10958 * doc/tm.texi: Regenerate.
10959 * genhooks.c (struct hook_desc): Add docname field.
10960 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10962 (hook_array): Include c-target.def.
10963 (emit_documentation): Use docname field in output.
10964 (emit_init_macros): Take docname argument. Only emit definitions
10965 for hooks matching docname.
10966 (main): Expect additional arguments in all cases. Pass argument
10967 to emit_init_macros.
10968 * target.def: Move initial macro definitions and comments to
10969 target-hooks-macros.h.
10970 (gcc_targetcm): Move to c-family/c-target.def.
10971 * target.h (targetcm): Move declaration to c-family/c-target.h.
10972 * targhooks.c (default_handle_c_option): Move to
10974 * targhooks.h (default_handle_c_option): Move declaration to
10975 c-family/c-common.h.
10976 * target-hooks-macros.h: New file.
10977 * config.gcc (target_has_targetcm): Define and use to add to
10978 c_target_objs and cxx_target_objs.
10979 * config/default-c.c: New file.
10980 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10981 of target.h and target-def.h.
10982 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10983 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10984 darwin_check_cfstring_format_arg): Make static.
10985 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10986 TARGET_STRING_OBJECT_REF_TYPE_P,
10987 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10988 * config/darwin-protos.h (darwin_objc_construct_string,
10989 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10991 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10992 TARGET_STRING_OBJECT_REF_TYPE_P,
10993 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10994 * config/t-darwin (darwin-c.o): Update dependencies.
10995 * system.h (TARGET_HAS_TARGETCM): Poison.
10996 * Makefile.in (TARGET_H): Update.
10997 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10998 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10999 (default-c.o): New target.
11000 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11001 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11002 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11004 (build/genhooks.o): Update dependencies.
11006 2011-04-06 Richard Guenther <rguenther@suse.de>
11008 * ipa-inline.c (enum inlining_mode): Remove.
11009 (cgraph_flatten): Use some other token.
11010 (cgraph_edge_early_inlinable_p): New function, split out from ...
11011 (cgraph_perform_always_inlining): New function, split out from ...
11012 (cgraph_decide_inlining_incrementally): ... here.
11013 (cgraph_mark_inline_edge): Adjust.
11014 (cgraph_early_inlining): Re-structure.
11015 (pass_early_inline): Require SSA form.
11017 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
11018 Julian Brown <julian@codesourcery.com>
11019 Mark Shinwell <shinwell@codesourcery.com>
11021 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11022 LO_REGS only for Thumb-1.
11023 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11024 be used in short instructions when optimising for size on Thumb-2.
11026 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11028 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11029 associated with user returns to be preserved.
11031 2011-04-06 Tristan Gingold <gingold@adacore.com>
11033 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11034 symbol_queue_size, DBXOUT_DECR_NESTING,
11035 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11036 if XCOFF_DEBUGGING_INFO.
11038 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11040 * config/i386/i386.md (attribute isa): New.
11041 (attribute enabled): New.
11042 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11043 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11044 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11045 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11046 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11047 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11048 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11049 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11051 * config/i386/sse.md (VF): New mode iterator.
11055 (SSEMODEF4): Remove.
11056 (attribute sse): Handle V8SF and V4DF modes.
11057 (<absneg:code><mode>2): Use VF mode iterator.
11058 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11060 (<plusminus_insn><mode>3): Use VF mode iterator.
11061 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11062 Use VF mode iterator.
11063 (<sse>_vm<plusminus_insn><mode>3): Merge with
11064 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11065 (mul<mode>3): Use VF mode iterator.
11066 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11067 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11069 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11070 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11071 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11072 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11074 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11075 Use VF1 mode iterator.
11076 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11077 (sqrt<VF2:mode>2): New expander.
11078 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11079 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11080 and sqrtv2df2. Use VF mode iterator.
11081 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11083 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11084 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11085 Use VF1 mode iterator.
11086 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11087 (<smaxmin:code><mode>3): Use VF mode iterator.
11088 (*<smaxmin:code><mode>3_finite): Merge with
11089 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11090 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11091 (<sse>_vm<smaxmin:code><mode>2): Merge with
11092 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11093 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11095 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11097 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11098 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11099 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11100 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11101 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11103 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11104 Use VF_128 mode iterator.
11105 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11107 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11108 VF_128 mode iterator.
11109 (vcond<mode>): Use VF mode iterator.
11110 * config/i386/predicates.md (sse_comparison_operator): Merge with
11111 avx_comparison_float_operator. Do not declare as special_predicate.
11112 * config/i386/i386.c (struct builtin_description): Update for renamed
11114 (ix86_expand_args_builtin): Ditto.
11115 (ix86_expand_sse_compare_mask): Ditto.
11117 2011-04-06 Richard Guenther <rguenther@suse.de>
11119 * tree-inline.c (estimate_num_insns): For calls simply account
11120 for all passed arguments and a used return value.
11122 2011-04-06 Richard Guenther <rguenther@suse.de>
11124 PR tree-optimization/47663
11125 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11126 call_stmt_time fields.
11127 (cgraph_edge_inlinable_p): Declare.
11128 (cgraph_edge_recursive_p): New inline function.
11129 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11130 (cgraph_clone_edge): Copy it.
11131 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11132 Account for call stmt time.
11133 (cgraph_estimate_time_after_inlining): Take edge argument.
11134 (cgraph_estimate_edge_growth): Account call stmt size.
11135 (cgraph_estimate_size_after_inlining): Take edge argument.
11136 (cgraph_mark_inline_edge): Adjust.
11137 (cgraph_check_inline_limits): Likewise.
11138 (cgraph_recursive_inlining_p): Remove.
11139 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11140 (cgraph_decide_recursive_inlining): Take edge argument and
11142 (cgraph_decide_inlining_of_small_functions): Do not avoid
11143 diags for recursive inlining here.
11144 (cgraph_flatten): Adjust.
11145 (cgraph_decide_inlining_incrementally): Likewise.
11146 (estimate_function_body_sizes): Remove call cost handling.
11147 (compute_inline_parameters): Initialize caller edge call costs.
11148 (cgraph_estimate_edge_growth): New function.
11149 (cgraph_estimate_growth): Use it.
11150 (cgraph_edge_badness): Likewise.
11151 (cgraph_check_inline_limits): Take an edge argument.
11152 (cgraph_decide_inlining_of_small_functions): Adjust.
11153 (cgraph_decide_inlining): Likewise.
11154 * tree-inline.c (estimate_num_insns): Only account for call
11155 return value if it is used.
11156 (expand_call_inline): Avoid diagnostics on recursive inline
11158 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11159 (input_edge): Input edge call costs.
11161 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11163 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11165 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11167 * doc/invoke.texi (Spec Files): Fix typo.
11169 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11171 * profile.c (branch_prob): Move declaration of local variable. Remove
11172 obsolete ??? comment. Expand the location explicitly instead of using
11173 the LOCATION_FILE and LOCATION_LINE macros.
11175 2011-04-06 Wei Guozhi <carrot@google.com>
11178 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11179 (arm_cond_branch): Likewise.
11180 (arm_cond_branch_reversed): Likewise.
11181 (arm_jump): Likewise.
11182 (push_multi): Likewise.
11183 * config/arm/constraints.md (Py): New constraint.
11185 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11188 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11190 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11191 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11192 #ifdef DBX_DEBUGGING_INFO.
11194 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11197 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11198 if old and new states differ.
11200 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11202 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11203 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11204 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11205 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11206 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11207 mcfv4e): Use Alias.
11208 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11209 ColdFire options to -mcpu= options.
11211 2011-04-05 Jeff Law <law@redhat.com>
11213 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11214 check if BB is a successor of LOOP->header and return
11215 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11217 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11219 * cprop.c (struct reg_use): Remove.
11220 (reg_use_table): Make an array of RTX.
11221 (find_used_regs, constprop_register, local_cprop_pass,
11222 bypass_block): Simplify users of reg_use_table.
11223 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11224 on one of the uses found by find_used_regs.
11226 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11229 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11232 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11234 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11236 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11238 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11240 PR middle-end/48441
11241 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11243 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11245 * combine.c: Include obstack.h.
11246 (struct insn_link): Define.
11247 (uid_log_links): Adjust type.
11248 (FOR_EACH_LOG_LINK): New macro.
11249 (insn_link_obstack): Declare.
11250 (alloc_insn_link): Define.
11251 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
11252 type of link variables.
11253 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
11254 (try_combine, record_promoted_values, distribute_notes): Likewise.
11255 (distribute_links): Likewise. Tweak prototype.
11256 (clear_log_links): Delete.
11257 (adjust_for_new_dest): Call alloc_insn_link.
11258 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
11260 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11262 * gcse.c (modify_mem_list): Convert to an array of VECs.
11263 (canon_modify_mem_list, compute_transp): Tweak formatting.
11264 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
11265 (load_killed_in_block_p): Likewise.
11266 (record_last_mem_set_info): Likewise.
11267 (clear_modify_mem_tables): Likewise.
11269 2011-04-05 Tom de Vries <tom@codesourcery.com>
11271 PR middle-end/48461
11272 * function.c (emit_use_return_register_into_block): Only define if
11275 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
11277 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
11279 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11281 * config/rx/rx-opts.h: New.
11282 * config/rx/rx.c (rx_cpu_type): Remove.
11283 (rx_handle_option): Don't assert that global structures are in
11284 use. Access variables via opts pointer. Defer most handling of
11285 OPT_mint_register_. Use error_at.
11286 (rx_option_override): Handle deferred OPT_mint_register_ here.
11287 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
11288 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
11289 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
11290 (rx_cpu_types): New Enum and EnumValue entries.
11291 (mint-register=): Use Defer and use Var accordingly.
11293 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11295 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
11296 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
11297 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
11299 (debug_free_queue, debug_nesting, symbol_queue_index):
11301 * dbxout.c: ...to here. Make static.
11303 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11305 * gcse.c (modify_pair): Define. Define a VEC of it.
11306 (canon_modify_mem_list): Convert to an array of VECs.
11307 (free_insn_expr_list_list): Delete.
11308 (clear_modify_mem_tables): Call VEC_free instead.
11309 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
11310 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
11311 (canon_list_insert, compute_transp): Likewise.
11313 2011-04-05 Tom de Vries <tom@codesourcery.com>
11316 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
11319 2011-04-05 Tom de Vries <tom@codesourcery.com>
11322 * function.c (emit_use_return_register_into_block): New function.
11323 (thread_prologue_and_epilogue_insns): Use
11324 emit_use_return_register_into_block.
11326 2011-04-05 Tom de Vries <tom@codesourcery.com>
11329 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
11332 2011-04-05 Tom de Vries <tom@codesourcery.com>
11334 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
11336 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
11338 * config/arm/arm.md (define_constants for unspec): Replace with
11340 (define_constants for unspecv): Replace with define_c_enum.
11341 * config/arm/neon.md (define_constants for unspec): Replace with
11344 2011-04-04 Richard Henderson <rth@redhat.com>
11347 * dwarf2out.c (output_line_info): Always emit line info from
11348 at least one section.
11349 (dwarf2out_init): Create text_section_line_info here ...
11350 (set_cur_line_info_table): ... not here.
11352 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
11355 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
11358 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
11360 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
11362 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
11363 (expr_equiv_p): Remove.
11364 (insert_set_in_table): Look at <dest, src> pair instead of expr.
11365 (hash_scan_set): Update call to insert_set_in_table.
11366 (dump_hash_table): Dump <dest, src> pair.
11367 (lookup_set): Simplify. Lookup <dest, src> pair.
11368 (compute_transp): Remove, fold heavily simplified code into...
11369 (compute_local_properties): ...here. Expect COMP and TRANSP
11371 (find_avail_set): Take set directly from struct expr.
11372 (find_bypass-set): Likewise.
11373 (bypass_block): Likewise.
11374 (cprop_insn): Likewise. Remove redundant INSN_P test.
11376 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
11377 checks on form of COND from find_implicit_sets to here.
11378 (find_implicit_sets): Cleanup control flow. Split critical edges
11379 if it exposes implicit sets. Allocate/resize implicit_sets as
11381 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
11382 changed something. Run df_analyze after find_implicit_sets if any
11383 edges were split. Do not allocate implicit_sets here.
11385 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
11386 (gcse_obstack): Renamed to cprop_obstack.
11387 (GNEW, GNEWVEC, GNEWVAR): Remove.
11389 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
11390 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
11391 (gcse_alloc): Likewise, and rename to cprop_alloc.
11392 (alloc_gcse_men, free_gcse_mem): Remove.
11393 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
11394 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
11395 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
11397 * cprop.c (oprs_not_set_p): Remove.
11398 (mark_set, mark_clobber): Remove.
11399 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
11400 (reg_not_set_p): New function.
11401 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
11402 (cprop_insn): Likewise.
11403 (cprop_jump): Use FOR_EACH_EDGE.
11405 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
11408 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
11409 (rank_for_schedule): Use scheduled_insns vector instead of
11410 last_scheduled_insn.
11411 (ok_for_early_queue_removal): Likewise.
11412 (queue_to_ready): Search forward in nonscheduled_insns_begin if
11414 (choose_ready): Likewise.
11415 (commit_schedule): Use VEC_iterate.
11416 (schedule_block): Initialize nonscheduled_insns_begin. If we have
11417 a dbg_cnt, use it and ensure the first insn is in the ready list.
11418 (haifa_sched_init): Allocate scheduled_insns.
11419 (sched_extend_ready_list): Don't allocate it; reserve space.
11420 (haifa_sched_finish): Free it.
11422 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11424 * optc-gen.awk: Always remove type from Variable entry before
11425 recording in var_seen.
11427 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
11429 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
11430 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
11431 call to tidy_fallthru_edges.
11433 2011-04-04 Joseph Myers <joseph@codesourcery.com>
11435 * doc/options.texi (ToLower): Document.
11436 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
11437 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
11438 * opts.h (cl_option): Add cl_tolower field.
11439 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
11440 arguments with lowercase strings.
11441 * config/rx/rx.opt (mcpu=): Add ToLower.
11442 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
11445 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11447 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
11449 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
11451 * config/vax/vax.c: Include reload.h.
11453 2011-04-04 Anatoly Sokolov <aesok@post.ru>
11455 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
11456 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11457 (sparc_preferred_reload_class): New function.
11459 2011-04-04 Jakub Jelinek <jakub@redhat.com>
11462 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11463 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
11465 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
11467 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
11468 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
11470 2011-04-03 Anatoly Sokolov <aesok@post.ru>
11472 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
11473 (ASM_OUTPUT_ALIGNED_BSS): Define.
11475 2011-04-03 Michael Matz <matz@suse.de>
11477 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
11478 and next_slot members.
11479 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
11480 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
11481 (lto_streamer_cache_append): Declare.
11482 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
11483 unsigned index, remove offset parameter, ensure that we append
11484 or update existing entries.
11485 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
11486 parameter, update next_slot for append.
11487 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
11489 (lto_streamer_cache_insert_at): Likewise.
11490 (lto_streamer_cache_append): New function.
11491 (lto_streamer_cache_lookup): Use unsigned index.
11492 (lto_streamer_cache_get): Likewise.
11493 (lto_record_common_node): Don't test tree_node_can_be_shared.
11494 (preload_common_node): Adjust call to lto_streamer_cache_insert.
11495 (lto_streamer_cache_delete): Don't free offsets member.
11496 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
11497 (lto_output_string_with_length): Use lto_output_data_stream.
11498 (lto_output_tree_header): Remove ix parameter, don't write it.
11499 (lto_output_builtin_tree): Likewise.
11500 (lto_write_tree): Adjust callers to above, don't track and write
11501 offset, write unsigned index.
11502 (output_unreferenced_globals): Don't emit all global vars.
11503 (write_global_references): Use unsigned indices.
11504 (lto_output_decl_state_refs): Likewise.
11505 (write_symbol): Likewise.
11506 * lto-streamer-in.c (lto_input_chain): Move earlier.
11507 (input_function): Use unsigned index.
11508 (input_alias_pairs): Don't read and then ignore all global vars.
11509 (lto_materialize_tree): Remove ix_p parameter, don't read index,
11510 don't pass it back, use lto_streamer_cache_append.
11511 (lto_register_var_decl_in_symtab): Use unsigned index.
11512 (lto_register_function_decl_in_symtab): Likewise.
11513 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
11515 (lto_get_builtin_tree): Don't read index, use
11516 lto_streamer_cache_append.
11517 (lto_read_tree): Adjust call to lto_materialize_tree.
11519 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
11520 don't use function calls in arguments to MIN.
11522 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
11525 * gimple.c (gimple_type_leader_entry): Mark deletable.
11527 2011-04-03 Alan Modra <amodra@gmail.com>
11529 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
11531 2011-04-03 Michael Matz <matz@suse.de>
11533 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
11535 * tree.h (tree_decl_non_common.vindex): Adjust comment.
11537 2011-04-03 Michael Matz <matz@suse.de>
11539 * cgraphbuild.c (record_reference): Canonicalize constructor values.
11540 * gimple-fold.c (canonicalize_constructor_val): Accept being called
11541 without function context.
11542 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
11543 current_function_decl and cfun.
11545 2011-04-03 Michael Matz <matz@suse.de>
11547 * tree.c (decl_init_priority_insert): Don't create entry for
11549 (decl_fini_priority_insert): Ditto.
11550 (fields_compatible_p, find_compatible_field): Remove.
11551 * tree.h (fields_compatible_p, find_compatible_field): Remove.
11552 * gimple.c (gimple_compare_field_offset): Adjust block comment.
11554 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
11556 * combine.c (try_combine): Remove useless local variable.
11558 2011-04-03 Richard Guenther <rguenther@suse.de>
11559 Ira Rosen <ira.rosen@linaro.org>
11561 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
11562 non-variable offsets and compare the remaining bases of the two
11563 accesses instead of looking for exact same data-ref.
11565 2011-04-02 Kai Tietz <ktietz@redhat.com>
11568 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
11570 * i386.c (ix86_is_msabi_thiscall): New helper function.
11571 (ix86_is_type_thiscall): New helper function.
11572 (ix86_comp_type_attributes): Handle thiscall for method-functions
11574 (init_cumulative_args): Likewise.
11575 (find_drap_reg): Likewise.
11576 (ix86_static_chain): Likewise.
11577 (x86_this_parameter): Likewise.
11578 (x86_output_mi_thunk): Likewise.
11580 2011-04-01 Olivier Hainque <hainque@adacore.com>
11581 Nicolas Setton <setton@adacore.com>
11582 Eric Botcazou <ebotcazou@adacore.com>
11584 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
11585 (add_gnat_descriptive_type_attribute): New function.
11586 (gen_array_type_die): Call it.
11587 (gen_enumeration_type_die): Likewise.
11588 (gen_struct_or_union_type_die): Likewise.
11589 (modified_type_die): Likewise.
11590 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
11591 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
11592 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
11594 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11597 * dwarf2out.c (resolve_addr): Don't call force_decl_die
11598 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
11601 2011-03-17 Richard Guenther <rguenther@suse.de>
11604 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11605 origin for decls in other ltrans units.
11606 (input_varpool_node): Likewise.
11608 2011-04-01 Jakub Jelinek <jakub@redhat.com>
11610 PR middle-end/48335
11611 * expr.c (expand_assignment): Handle all possibilities
11612 if TO_RTX is CONCAT.
11613 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
11614 (store_split_bit_field): If SUBREG_REG (op0) or
11615 op0 itself has smaller mode than word, return it
11616 for offset 0 and const0_rtx for out-of-bounds stores.
11617 If word is const0_rtx, skip it.
11619 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
11621 * config/h8300/h8300.c (print_operand_address): Rename to...
11622 (h8300_print_operand_address): ...this. Make static. Adjust comments.
11623 Call h8300_print_operand and h8300_print_operand_address instead of
11624 print_operand and print_operand_address. Declare.
11625 (print_operand): Renake to...
11626 (h8300_print_operand): ...this. Make static. Adjust comments.
11627 Call h8300_print_operand instead of print_operand. Declare.
11628 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
11629 (h8300_register_move_cost): Likewise.
11630 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
11631 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
11632 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
11633 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
11634 * config/h8300/h8300-protos.h (print_operand): Delete.
11635 (print_operand_address): Delete.
11637 2011-04-01 Richard Henderson <rth@redhat.com>
11640 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
11641 in strict mode before dwarf4. Re-order tests to early out
11642 before switching sections.
11644 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
11646 * config/h8300/constraints.md: New file.
11647 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
11648 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
11649 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
11650 * config/h8300/predicates.md (bit_operand): Likewise.
11651 (incdec_operand): Use satisfies_constraint_M and
11652 satisfies_constraint_O. Don't use C code block.
11653 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
11654 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
11655 (compute_mov_length): Use satisfies_constraint_G.
11656 (fix_bit_operand): Use satisfies_constraint_U.
11657 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
11658 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
11659 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
11660 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
11661 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
11662 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
11663 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11664 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
11665 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
11666 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
11667 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
11668 (EXTRA_MEMORY_CONSTRAINT): Delete.
11670 2011-04-01 Andrew Pinski <pinskia@gmail.com>
11671 Michael Meissner <meissner@linux.vnet.ibm.com>
11674 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
11675 operands, as per the specifications.
11677 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
11678 (vec_extract_evenv4sf): Ditto.
11679 (vec_extract_evenv8hi): Ditto.
11680 (vec_extract_evenv16qi): Ditto.
11681 (vec_extract_oddv4si): Ditto.
11683 2011-03-31 Mark Wielaard <mjw@redhat.com>
11685 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
11686 high_pc attribute if the CU has no associated code. Only output
11687 DW_AT_entry_pc for CU if not generating strict dwarf and
11690 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
11692 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
11693 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
11695 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
11696 * final.c (final_start_function): Call the new function rather
11697 than using a NULL argument for dwarf2out_frame_debug.
11699 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
11700 that contains the prologue.
11702 * haifa-sched.c (queue_insn): New arg REASON. All callers
11703 changed. Print it in debugging output.
11705 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
11707 * sched-ebb.c (begin_schedule_ready): Remove second argument.
11708 Split most of the code into...
11709 (begin_move_insn): ... here. New function.
11710 (ebb_sched_info): Add a pointer to it.
11711 * haifa-sched.c (scheduled_insns): New static variable.
11712 (sched_extend_ready_list): Allocate it.
11713 (schedule_block): Use it to record the order of scheduled insns.
11714 Perform RTL changes to move insns only after all scheduling
11715 decisions have been made.
11716 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
11717 begin_move_insn field.
11718 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
11719 * sched-int.h (struct haifa_sched_info): Remove second argument
11720 from begin_schedule_ready hook. Add new member begin_move_insn.
11721 * sched-rgn.c (begin_schedule_ready): Remove second argument.
11722 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
11724 * haifa-sched.c (prune_ready_list): New function, broken out of
11726 (schedule_block): Use it.
11728 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11730 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
11732 2011-04-01 Kai Tietz <ktietz@redhat.com>
11734 * config.gcc (*-*-mingw*): Allow as option the
11735 posix threading model.
11736 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
11737 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
11739 (CPP_SPEC): Add pthread/no-pthread handling.
11740 (LIB_SPEC): Likewise.
11741 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
11742 (LIB_SPEC): Likewise.
11743 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
11744 flag to pass -pthread option for shared libgcc build.
11745 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
11746 for shared libgcc build.
11747 * config/i386/t-mingw-pthread: New file.
11748 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
11749 New define to enable use of library pthread by default.
11750 * config/i386/mingw.opt (pthread): New driver option.
11751 (no-pthread): New driver option.
11752 * config/i386/cygming.opt: Make sure trailing empty line is retained.
11753 * config/i386/mingw-w64.opt: Likewise.
11755 2011-04-01 Gary Funck <gary@intrepid.com>
11757 * c-decl.c (grokdeclarator): Fix formatting.
11759 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11761 * expr.c (emit_block_move_via_movmem): Use n_generator_args
11762 instead of n_operands.
11763 (set_storage_via_setmem): Likewise.
11764 * optabs.c (maybe_gen_insn): Likewise.
11765 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
11766 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
11767 (mips_expand_builtin_direct): Likewise.
11768 * config/spu/spu.c (expand_builtin_args): Likewise.
11770 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11772 * recog.h (insn_data_d): Add n_generator_args.
11773 * genoutput.c (data): Likewise.
11774 (output_insn_data): Print it.
11775 (max_opno, num_dups): Delete.
11776 (scan_operands): Just fill in "d->operand[...]".
11777 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
11779 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
11781 * gensupport.h (pattern_stats): New structure.
11782 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
11783 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
11784 (max_operand_1, max_operand_vec): Delete.
11785 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
11787 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
11789 * emit-rtl.c (emit_pattern_after_setloc): New function.
11790 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
11791 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
11792 (emit_pattern_after): New function.
11793 (emit_insn_after, emit_jump_insn_after): Call it.
11794 (emit_call_insn_after, emit_debug_insn_after): Likewise.
11795 (emit_pattern_before_setloc): New function.
11796 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
11797 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
11799 (emit_pattern_before): New function.
11800 (emit_insn_before, emit_jump_insn_before): Call it.
11801 (emit_call_insn_before, emit_debug_insn_before): Likewise.
11803 2011-03-31 Richard Henderson <rth@redhat.com>
11805 * dwarf2out.c (dw_separate_line_info_ref): Remove.
11806 (dw_separate_line_info_entry): Remove.
11807 (enum dw_line_info_opcode): New.
11808 (dw_line_info_entry): Use it.
11809 (dw_line_info_table, dw_line_info_table_p): New.
11810 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
11811 (line_info_table, line_info_label_num): Remove.
11812 (line_info_table_in_use): Remove.
11813 (separate_line_info_table): Remove.
11814 (separate_line_info_table_allocated): Remove.
11815 (separate_line_info_table_in_use): Remove.
11816 (LINE_INFO_TABLE_INCREMENT): Remove.
11817 (line_info_label_num): New.
11818 (cur_line_info_table): New.
11819 (text_section_line_info, cold_text_section_line_info): New.
11820 (separate_line_info): New.
11821 (SEPARATE_LINE_CODE_LABEL): Remove.
11822 (print_dwarf_line_table): Remove.
11823 (debug_dwarf): Don't dump it.
11824 (output_one_line_info_table): New.
11825 (output_line_info): Use it.
11826 (new_line_info_table): New.
11827 (set_cur_line_info_table): New.
11828 (dwarf2out_switch_text_section): Use it.
11829 (dwarf2out_begin_function): Likewise.
11830 (push_dw_line_info_entry): New.
11831 (dwarf2out_source_line): Rewrite for new line info tables.
11832 (dwarf2out_init): Remove dead initailizations.
11834 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11836 * opts.h (cl_option): Add comments to fields. Add bit-fields for
11838 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
11839 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
11840 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
11841 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
11842 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
11843 * opt-functions.awk (flag_init, switch_bit_fields): New.
11844 (switch_flags): Don't handle flags moved to bit-fields. Don't
11845 generate CL_MISSING_OK or CL_SAVE.
11846 * optc-gen.awk: Update to generate bit-field output as well as
11848 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
11849 bit-field instead of CL_REJECT_DRIVER flag.
11850 * opts-common.c (generate_canonical_option,
11851 decode_cmdline_option): Use bit-fields instead of CL_* flags.
11852 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
11853 instead of CL_REJECT_NEGATIVE flag.
11854 * toplev.c (print_switch_values): Use cl_report bit-field instead
11857 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11859 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
11860 a zero minimum index only if it is redundant.
11862 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
11864 PR rtl-optimization/48381
11865 * ira-color.c (assign_hard_reg): Use hard reg set intersection
11866 instead of ira_class_hard_reg_index for calculating conflicting
11869 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
11871 * cprop.c: Clean up hash table building.
11872 (reg_avail_info): Remove.
11873 (oprs_available_p): Remove.
11874 (record_last_reg_set_info): Remove.
11875 (record_last_set_info): Remove.
11876 (reg_available_p): New function.
11877 (gcse_constant_p): Do not treat unfolded conditions as constants.
11878 (make_set_regs_unavailable): New function.
11879 (hash_scan_set): Simplify with new reg_available_p.
11880 (compute_hash_table_work): Traverse insns stream only once.
11881 Do not compute reg_avail_info. Traverse insns in reverse order.
11882 Record implicit sets after recording explicit sets from the block.
11884 2011-03-31 Michael Matz <matz@suse.de>
11886 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
11888 2011-03-31 Anatoly Sokolov <aesok@post.ru>
11890 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
11891 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
11892 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11893 (h8300_mode_dependent_address_p): New function.
11894 (h8300_get_index): Make static.
11896 2011-03-31 Jeff Law <law@redhat.com>
11898 * reload1.c (elimination_effects): Fix typo in recent change.
11900 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
11901 typo potentially leading to null pointer dereference.
11903 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11904 (setup_save_areas): Corresponding changes to avoid useless
11907 * jump.c (reversed_comparison_code_parts): Avoid successive return
11908 statements when REVERSE_CONDITION is defined.
11910 * expr.c (expand_assignment): Avoid useless assignments.
11911 (expand_expr_real_1): Likewise.
11912 (expand_expr_real_2): Avoid useless statements.
11914 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11916 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11918 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11921 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11923 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11926 * doc/tm.texi.in (TARGET_VERSION): Remove.
11927 * doc/tm.texi: Regenerate.
11928 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11929 * collect2.c (main): Don't use TARGET_VERSION.
11930 * mips-tdump.c (main): Don't use TARGET_VERSION.
11931 * mips-tfile.c (main): Don't use TARGET_VERSION.
11932 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11933 * config/rs6000/vxworksae.h: Remove.
11934 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11935 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11936 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11937 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11938 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11939 * config/arm/arm.h (TARGET_VERSION): Remove.
11940 * config/arm/coff.h (TARGET_VERSION): Remove.
11941 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11942 * config/arm/elf.h (TARGET_VERSION): Remove.
11943 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11944 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11945 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11946 * config/arm/pe.h (TARGET_VERSION): Remove.
11947 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11948 * config/arm/semi.h (TARGET_VERSION): Remove.
11949 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11950 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11951 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11952 * config/avr/avr.h (TARGET_VERSION): Remove.
11953 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11954 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11955 * config/frv/frv.h (TARGET_VERSION): Remove.
11956 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11957 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11958 * config/i386/darwin.h (TARGET_VERSION): Remove.
11959 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11960 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11961 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11962 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11963 * config/i386/gnu.h (TARGET_VERSION): Remove.
11964 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11965 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11966 * config/i386/linux.h (TARGET_VERSION): Remove.
11967 * config/i386/linux64.h (TARGET_VERSION): Remove.
11968 * config/i386/lynx.h (TARGET_VERSION): Remove.
11969 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11970 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11971 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11972 * config/i386/netware.h (TARGET_VERSION): Remove.
11973 * config/i386/nto.h (TARGET_VERSION): Remove.
11974 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11975 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11976 * config/ia64/elf.h (TARGET_VERSION): Remove.
11977 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11978 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11979 * config/ia64/linux.h (TARGET_VERSION): Remove.
11980 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11981 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11982 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11983 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11984 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11985 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11986 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11987 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11988 * config/m68k/linux.h (TARGET_VERSION): Remove.
11989 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11990 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11991 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11992 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11993 * config/mep/mep.h (TARGET_VERSION): Remove.
11994 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11995 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11996 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11997 * config/mips/linux.h (TARGET_VERSION): Remove.
11998 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11999 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12000 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12001 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12002 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12003 * config/pa/pa.h (TARGET_VERSION): Remove.
12004 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12005 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12006 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12007 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12008 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12009 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12010 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12011 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12012 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12013 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12014 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12015 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12016 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12017 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12018 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12019 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12020 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12021 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12022 * config/s390/linux.h (TARGET_VERSION): Remove.
12023 * config/s390/s390.h (TARGET_VERSION): Remove.
12024 * config/s390/tpf.h (TARGET_VERSION): Remove.
12025 * config/score/score.h (TARGET_VERSION): Remove.
12026 * config/sh/linux.h (TARGET_VERSION): Remove.
12027 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12028 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12029 * config/sh/sh.h (TARGET_VERSION): Remove.
12030 * config/sh/sh64.h (TARGET_VERSION): Remove.
12031 * config/sh/superh.h (TARGET_VERSION): Remove.
12032 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12033 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12034 * config/sparc/linux.h (TARGET_VERSION): Remove.
12035 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12036 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12037 TARGET_NAME32, TARGET_NAME): Remove.
12038 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12039 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12040 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12041 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12042 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12043 * config/spu/spu.h (TARGET_VERSION): Remove.
12044 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12045 * config/v850/v850.h (TARGET_VERSION): Remove.
12046 * config/vax/linux.h (TARGET_VERSION): Remove.
12047 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12048 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12049 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12051 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12054 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12055 frame-related from frame-unrelated adjustments to the stack pointer.
12057 2011-03-31 Jakub Jelinek <jakub@redhat.com>
12059 * common.opt (fdebug-types-section): Move earlier.
12060 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12062 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
12064 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12067 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12069 * tree.h (CASE_CHAIN): Define.
12070 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12071 (gimple_redirect_edge_and_branch): Likewise.
12073 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12075 PR middle-end/48367
12076 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12079 2011-03-30 Jeff Law <law@redhat.com>
12081 * PR bootstrap/48371
12082 * reload1.c (reload): Fix botch in last change.
12084 * reload.h (struct reload): Fix typo introduced in last change.
12086 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12088 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12089 Undocumented. Remove help text.
12090 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12093 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12095 * doc/options.texi (NegativeAlias): Document.
12096 (Alias): Mention NegativeAlias.
12097 * opt-functions.awk: Handle NegativeAlias.
12098 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12099 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12100 * opts.h (CL_NEGATIVE_ALIAS): Define.
12101 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12102 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12104 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12106 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12107 mno-spe and mno-isel instead of mspe=no and -misel=no.
12109 2011-03-29 Mark Wielaard <mjw@redhat.com>
12111 * common.opt (fdebug-types-section): New flag.
12112 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12113 * dwarf2out.c (use_debug_types): New define.
12114 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12115 (print_die): Guard output of type unit signatures using
12117 (build_abbrev_table): Replace assert of dwarf_version >= 4
12118 with assert on use_debug_types.
12119 (size_of_die): Likewise.
12120 (unmark_dies): Likewise.
12121 (value_format): Decide AT_ref_external form on use_debug_types.
12122 (output_die): Replace dwarf_version version check guard with
12123 use_debug_types where appropriate.
12124 (modified_type_die): Likewise.
12125 (gen_reference_type_die): Likewise.
12126 (dwarf2out_start_source_file): Likewise.
12127 (dwarf2out_end_source_file): Likewise.
12128 (prune_unused_types_walk_attribs): Likewise.
12129 (dwarf2out_finish): Likewise.
12131 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12133 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12135 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12137 PR rtl-optimization/48332
12138 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12139 mode of input operand N and modeN to its actual mode.
12141 2011-03-30 Jeff Law <law@redhat.com>
12143 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12144 define accessor macro.
12145 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12146 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12147 (reg_equiv_init): Likewise.
12148 (reg_equivs_size): New variable.
12149 (reg_equiv_init_size): Remove.
12150 (allocate_initial_values): Move prototype to here from....
12151 * integrate.h (allocate_initial_values): Remove prototype.
12152 * integrate.c: Include reload.h.
12153 (allocate_initial_values): Corresponding changes.
12154 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12155 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12156 (update_equiv_regs): Corresponding changes.
12157 (ira): Corresponding changes.
12158 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12159 (push_secondary_reload): Corresponding changes.
12160 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12161 (make_memloc, find_reloads_address): Corresponding changes.
12162 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12163 (find_reloads_address_1): Corresponding changes.
12164 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12165 (refers_to_regno_for_reload_p): Corresponding changes.
12166 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12167 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12168 * reload1.c: Include ggc.h.
12169 (grow_reg_equivs): New function.
12170 (replace_pseudos_in, reload): Corresponding changes.
12171 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12172 (eliminate_regs_1, elimination_effects): Corresponding changes.
12173 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12174 (delete_output_reload): Likewise.
12175 * caller-save.c (mark_referenced_regs): Corresponding changes.
12176 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12177 * frv/predicates.md (frv_load_operand): Corresponding changes.
12178 * microblaze/microblaze.c (double_memory_operand): Corresponding
12180 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12181 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12182 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12183 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12184 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12186 * pa/pa.c (emit_move_sequence): Corresponding changes.
12187 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12189 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12192 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12193 structure modes. Don't check neon_vector_mem_operand for
12194 vector or structure modes.
12196 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12197 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12200 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12201 operand 1 and reshuffle the operands to match.
12202 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12204 2011-03-30 Christian Schüler <cschueler@gmx.de>
12207 * config/c.opt (F): Added 'Driver' to -F option.
12210 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12212 * config/darwin.opt: Added '-arch' option.
12214 2011-03-30 Nick Clifton <nickc@redhat.com>
12216 * config/rx/rx.md: Add peepholes and patterns to combine
12217 extending loads and simple arithmetic instructions.
12218 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12219 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12220 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12221 modes to use pre-decrement and post-increment addressing.
12222 (rx_is_restricted_memory_address): Add range checking of REG+INT
12224 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12225 (rx_memory_move_cost): Adjust cost of stores.
12226 (rx_adjust_insn_length): New function.
12228 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12231 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12232 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12233 matching arg00/arg01 types.
12235 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12237 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12238 last_location to UNKNOWN_LOCATION.
12240 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12243 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12246 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12247 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12250 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
12251 Init(PROCESSOR_V7).
12252 (sparc_cpu): Likewise.
12253 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
12256 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12259 PR middle-end/48342
12260 PR rtl-optimization/48345
12261 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
12262 hard regs for given mode from profitable regs when doing secondary
12265 2011-03-29 Jeff Law <law@redhat.com>
12268 * tree-ssa-threadupdate.c (struct redirection_data): Remove
12269 do_not_duplicate field.
12270 (lookup_redirection_data): Corresponding changes.
12271 (create_duplicates): Always create a template block.
12272 (redirect_edges): Remove code which reused the original block
12273 when it was going to become unreachable code.
12274 (thread_block): Don't set do_not_duplicate field.
12276 2011-03-29 Joseph Myers <joseph@codesourcery.com>
12278 * lto-opts.c (register_user_option_p, lto_register_user_option):
12279 Make type argument unsigned.
12280 * lto-streamer.h (lto_register_user_option): Make type argument
12282 * opth-gen.awk: Make CL_* macros unsigned.
12283 * opts-common.c (find_opt): Make lang_mask argument unsigned.
12284 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
12285 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
12286 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
12287 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
12288 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
12289 (find_opt): Make lang_mask argument unsigned.
12291 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12293 PR rtl-optimization/48331
12294 PR rtl-optimization/48334
12295 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
12296 for any used algorithm.
12298 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
12300 * ira-conflicts.c (build_object_conflicts): Add unused attribute
12303 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
12305 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
12306 (alpha_option_override): Don't set alpha_sr_alias_set.
12307 (emit_frame_store_1): Use gen_frame_mem rather than calling
12309 (alpha_expand_epilogue): Ditto.
12311 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
12313 PR tree-optimization/48290
12314 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
12315 vectorization, check that relevant phis in the basic block after
12316 the inner loop are really inner loop's exit phis.
12318 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
12321 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
12322 (cached_dw_loc_list_def): New structure.
12323 (cached_dw_loc_list): New typedef.
12324 (cached_dw_loc_list_table): New variable.
12325 (cached_dw_loc_list_table_hash): New function.
12326 (cached_dw_loc_list_table_eq): Likewise.
12327 (add_location_or_const_value_attribute): Take a bool cache_p.
12328 Cache the list when the parameter is true.
12329 (gen_formal_parameter_die): Update caller.
12330 (gen_variable_die): Likewise.
12331 (dwarf2out_finish): Likewise.
12332 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
12333 while generating debug info for the decl.
12334 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
12335 (dwarf2out_init): Initialize cached_dw_loc_list_table.
12336 (resolve_addr): Cache the result of resolving a chain of
12339 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
12341 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
12342 conflict object hard regset nodes have intersecting hard reg sets.
12344 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
12345 after regstat_init_n_sets_and_refs.
12347 * ira.c: Add more comments at the top.
12348 (setup_stack_reg_pressure_class, setup_pressure_classes):
12349 Add comments how we compute the register pressure classes.
12350 (setup_allocno_and_important_classes): Add more comments.
12351 (setup_class_translate_array, reorder_important_classes)
12352 (setup_reg_class_relations): Add comments.
12354 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
12357 * ira-color.c: Add 2011 to the Copyright line.
12358 (assign_hard_reg): Add more comments.
12359 (improve_allocation): Ditto.
12361 * ira-costs.c: Add 2011 to the Copyright line.
12362 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
12364 (setup_regno_cost_classes_by_mode): Ditto.
12366 Initial patches from ira-improv branch:
12368 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12370 * ira-build.c (ira_create_object): Remove initialization of
12371 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
12372 (ira_create_allocno): Remove initialization of
12373 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
12374 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
12375 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12376 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
12377 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
12378 Initialize ALLOCNO_ADD_DATA.
12379 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
12380 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
12382 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
12383 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
12385 * ira.c (ira_reallocate): Remove.
12386 (setup_pressure_classes): Call
12387 ira_init_register_move_cost_if_necessary. Use
12388 ira_register_move_cost instead of ira_get_register_move_cost.
12389 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
12390 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
12392 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
12393 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
12394 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
12395 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
12396 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
12397 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
12399 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
12400 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12401 (struct allocno_color_data): New.
12402 (allocno_color_data_t): New typedef.
12403 (allocno_color_data): New definition.
12404 (ALLOCNO_COLOR_DATA): New macro.
12405 (struct object_color_data): New.
12406 (object_color_data_t): New typedef.
12407 (object_color_data): New definition.
12408 (OBJECT_COLOR_DATA): New macro.
12409 (update_copy_costs, calculate_allocno_spill_cost): Call
12410 ira_init_register_move_cost_if_necessary. Use
12411 ira_register_move_cost instead of ira_get_register_move_cost.
12412 (move_spill_restore, update_curr_costs): Ditto.
12413 (allocno_spill_priority): Make it inline.
12414 (color_pass): Allocate and free allocno_color_dat and object_color_data.
12415 (struct coalesce_data, coalesce_data_t): New.
12416 (allocno_coalesce_data): New definition.
12417 (ALLOCNO_COALESCE_DATA): New macro.
12418 (merge_allocnos, coalesced_allocno_conflict_p): Use
12419 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
12420 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
12421 (coalesce_allocnos): Ditto.
12422 (setup_coalesced_allocno_costs_and_nums): Ditto.
12423 (collect_spilled_coalesced_allocnos): Ditto.
12424 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
12425 (setup_slot_coalesced_allocno_live_ranges): Ditto.
12426 (coalesce_spill_slots): Ditto.
12427 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
12428 free allocno_coalesce_data.
12430 * ira-conflicts.c: Fix formatting.
12431 (process_regs_for_copy): Call
12432 ira_init_register_move_cost_if_necessary. Use
12433 ira_register_move_cost instead of ira_get_register_move_cost.
12434 (build_object_conflicts): Optimize.
12436 * ira-costs.c (record_reg_classes): Optimize. Call
12437 ira_init_register_move_cost_if_necessary. Use
12438 ira_register_move_cost, ira_may_move_in_cost, and
12439 ira_may_move_out_cost instead of ira_get_register_move_cost and
12440 ira_get_may_move_cost.
12441 (record_address_regs): Ditto.
12442 (scan_one_insn): Optimize.
12443 (find_costs_and_classes): Optimize.
12444 (process_bb_node_for_hard_reg_moves): Call
12445 ira_init_register_move_cost_if_necessary. Use
12446 ira_register_move_cost instead of ira_get_register_move_cost.
12448 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
12449 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
12450 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
12451 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
12453 (ira_initiate_emit_data, ira_finish_emit_data)
12454 (create_new_allocno): New functions.
12455 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
12456 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
12457 Use ira_register_move_cost instead of ira_get_register_move_cost.
12459 * ira-int.h: Fix some comments.
12460 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
12461 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
12462 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
12463 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
12465 (struct ira_allocno): Make mode and aclass a bitfield. Move other
12466 bitfield after mode. Make hard_regno a short int. Make
12467 hard_regno short. Remove first_coalesced_allocno and
12468 next_coalesced_allocno. Move mem_optimized_dest_p,
12469 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
12470 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
12471 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
12472 temp, colorable_p. Add new member add_data.
12473 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
12474 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
12475 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
12476 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
12477 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
12478 (ALLOCNO_ADD_DATA): New macro.
12479 (ira_emit_data_t): New typedef.
12480 (struct ira_emit_data): New. Move mem_optimized_dest_p,
12481 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
12482 from struct ira_allocno.
12483 (ALLOCNO_EMIT_DATA): New macro.
12484 (ira_allocno_emit_data, allocno_emit_reg): New.
12485 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
12486 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
12487 (OBJECT_ADD_DATA): New macro.
12488 (ira_reallocate): Remove.
12489 (ira_initiate_emit_data, ira_finish_emit_data): New.
12490 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
12491 (ira_init_register_move_cost_if_necessary): New.
12492 (ira_object_conflict_iter_next): Merge into
12493 ira_object_conflict_iter_cond.
12494 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
12496 * ira-live.c (process_single_reg_class_operands): Call
12497 ira_init_register_move_cost_if_necessary. Use
12498 ira_register_move_cost instead of ira_get_register_move_cost.
12500 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
12502 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
12504 * ira-costs.c: Fix formatting.
12505 (cost_classes, cost_classes_num): Remove.
12506 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
12507 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
12508 (cost_classes_del, cost_classes_htab): New.
12509 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
12510 (initiate_regno_cost_classes, setup_cost_classes): New.
12511 (setup_regno_cost_classes_by_aclass): New.
12512 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
12513 (record_reg_classes): Use regno_cost_classes instead of
12514 cost_classes. Move checking opposite operand up.
12515 (record_address_regs): Use regno_cost_classes
12516 instead of cost_classes.
12517 (scan_one_insn): Ditto. Use always general register.
12518 (print_allocno_costs): Use regno_cost_classes instead of
12520 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
12521 (find_costs_and_classes): Set up cost classes for each registers.
12522 Use also their mode for this. Use regno_cost_classes instead of
12524 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
12526 (free_ira_costs, ira_init_costs): Don't use cost_classes.
12527 (ira_costs, ira_set_pseudo_classes): Call
12528 initiate_regno_cost_classes and finish_regno_cost_classes.
12530 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
12532 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
12534 * target.def (ira_cover_classes): Remove.
12536 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
12538 * doc/tm.texi.in: Ditto.
12540 * ira-conflicts.c: Remove mentioning cover classes from the file.
12541 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
12542 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
12544 * targhooks.c (default_ira_cover_classes): Remove.
12546 * targhooks.h (default_ira_cover_classes): Ditto.
12548 * haifa-sched.c: Remove mentioning cover classes from the file.
12549 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12550 ira_pressure_classes and ira_pressure_classes_num instead of
12551 ira_reg_class_cover_size and ira_reg_class_cover. Use
12552 sched_regno_pressure_class instead of sched_regno_cover_class.
12553 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
12554 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12556 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
12557 classes from the file.
12558 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
12559 (struct object_hard_regs, struct object_hard_regs_node): New.
12560 (struct ira_object): New members profitable_hard_regs,
12561 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
12562 (struct ira_allocno): Rename cover_class to aclass. Rename
12563 cover_class_cost and updated_cover_class_cost to class_cost and
12564 updated_class_cost. Remove splay_removed_p and
12565 left_conflict_size. Add new members colorable_p.
12566 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
12567 (ALLOCNO_COLORABLE_P): New macro.
12568 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
12569 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
12570 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
12571 (OBJECT_...): Rename parameter C to O.
12572 (OBJECT_PROFITABLE_HARD_REGS): New macro.
12573 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
12574 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
12575 (struct target_ira_int): New members x_ira_max_memory_move_cost,
12576 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
12577 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
12578 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
12579 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
12580 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
12581 x_ira_reg_class_subunion.
12582 (ira_max_memory_move_cost, ira_max_register_move_cost)
12583 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
12584 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
12585 (ira_important_class_nums, ira_reg_class_superunion): New macros.
12586 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
12587 (ira_reg_class_union): Rename to ira_reg_class_subunion.
12588 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12589 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12590 (ira_tune_allocno_costs_and_cover_classes): Rename to
12591 ira_tune_allocno_costs.
12592 (ira_debug_hard_regs_forest): New.
12593 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
12594 (ira_object_conflict_iter_next): Fix comments.
12595 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
12596 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
12597 cover_class to aclass.
12598 (ira_allocate_and_accumulate_costs): Ditto.
12599 (ira_allocate_and_set_or_copy_costs): Ditto.
12601 * opts.c (decode_options): Remove ira_cover_class check.
12603 * ira-color.c: Remove mentioning cover classes from the file. Use
12604 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
12605 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
12606 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12607 (splay-tree.h): Remove include.
12608 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
12609 before copy_freq_compare_func.
12610 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
12611 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
12613 (hard_regs_roots, hard_regs_node_vec): Ditto.
12614 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
12615 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
12616 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
12617 (create_new_object_hard_regs_node): Ditto.
12618 (add_new_object_hard_regs_node_to_forest): Ditto.
12619 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
12620 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
12622 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
12623 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
12624 (remove_unused_object_hard_regs_nodes): Ditto.
12625 (enumerate_object_hard_regs_nodes): Ditto.
12626 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
12627 (object_hard_regs_subnode_t): Ditto.
12628 (struct object_hard_regs_subnode): Ditto.
12629 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
12630 (setup_object_hard_regs_subnode_index): Ditto.
12631 (get_object_hard_regs_subnodes_num): Ditto.
12632 (form_object_hard_regs_nodes_forest): Ditto.
12633 (finish_object_hard_regs_nodes_tree): Ditto.
12634 (finish_object_hard_regs_nodes_forest): Ditto.
12635 (allocnos_have_intersected_live_ranges_p): Rename to
12636 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12637 (pseudos_have_intersected_live_ranges_p): Rename to
12638 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
12639 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
12640 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
12641 (update_copy_costs): Remove assert. Skip cost update if the hard
12642 reg does not belong the class.
12643 (assign_hard_reg): Process only profitable hard regs.
12644 (uncolorable_allocnos_num): Make it scalar.
12645 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12646 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
12647 and ira_reg_class_max_nregs.
12648 (bucket_allocno_compare_func): Check frequency first.
12649 (sort_bucket): Add compare function as a parameter.
12650 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
12651 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
12652 (push_allocno_to_stack): Rewrite for checking new allocno
12654 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
12655 (push_only_colorable): Pass new parameter to sort_bucket.
12656 (push_allocno_to_spill): Remove.
12657 (allocno_spill_priority_compare): Make it inline and rewrite.
12658 (splay_tree_allocate, splay_tree_free): Remove.
12659 (allocno_spill_sort_compare): New function.
12660 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
12661 build and use splay tree. Choose first allocno in uncolorable
12662 allocno bucket to spill. Remove setting spill cost.
12663 (all_conflicting_hard_regs): Remove.
12664 (setup_allocno_available_regs_num): Check only profitable hard
12665 regs. Print info about hard regs nodes.
12666 (setup_allocno_left_conflicts_size): Remove.
12667 (put_allocno_into_bucket): Don't call
12668 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
12669 (improve_allocation): New.
12670 (color_allocnos): Call setup_profitable_hard_regs,
12671 form_object_hard_regs_nodes_forest, improve_allocation,
12672 finish_object_hard_regs_nodes_forest. Setup spill cost.
12673 (print_loop_title): Use pressure classes.
12674 (color_allocnso): Ditto.
12675 (do_coloring): Remove allocation and freeing splay_tree_node_pool
12676 and allocnos_for_spilling.
12677 (ira_sort_regnos_for_alter_reg): Don't setup members
12678 {first,next}_coalesced_allocno.
12679 (color): Remove allocating and freeing removed_splay_allocno_vec.
12680 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
12681 prohibited_class_mode_regs.
12683 * ira-lives.c: Remove mentioning cover classes from the file. Fix
12685 (update_allocno_pressure_excess_length): Use pressure classes.
12686 (inc_register_pressure, dec_register_pressure): Check for pressure
12688 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
12689 pressure class. Use ira_reg_class_nregs instead of
12690 ira_reg_class_max_nregs.
12691 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
12692 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
12693 (single_reg_class): Use ira_reg_class_nregs instead of
12694 ira_reg_class_max_nregs.
12695 (process_bb_node_lives): Use pressure classes.
12697 * ira-emit.c: Remove mentioning cover classes from the file. Use
12698 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
12699 (change_loop): Use pressure classes.
12700 (modify_move_list): Call ira_set_allocno_class instead of
12701 ira_set_allocno_cover_class.
12703 * ira-build.c: Remove mentioning cover classes from the file. Use
12704 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
12705 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
12706 ALLOCNO_UPDATED_CLASS_COST instead of
12707 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
12708 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
12709 (ira_create_allocno): Remove initialization of
12710 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
12711 ALLOCNO_COLORABLE_P.
12712 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
12713 Update conflict regs for the objects.
12714 (create_cap_allocno): Remove assert. Don't propagate
12715 ALLOCNO_AVAILABLE_REGS_NUM.
12716 (ira_free_allocno_costs): New function.
12717 (finish_allocno): Change a part of code into call of
12718 ira_free_allocno_costs.
12719 (low_pressure_loop_node_p): Use pressure classes.
12720 (object_range_compare_func): Don't compare classes.
12721 (setup_min_max_conflict_allocno_ids): Ditto.
12723 * loop-invariant.c: Remove mentioning cover classes from the file.
12724 Use ira_pressure_classes and ira_pressure_classes_num instead of
12725 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
12726 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
12727 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12728 Use reg_allocno_class instead of reg_cover_class.
12729 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
12730 STACK_REG_COVER_CLASS.
12731 (get_regno_cover_class): Rename to get_regno_pressure_class.
12732 (move_loop_invariants): Initialize and finalize regstat.
12734 * ira.c: Remove mentioning cover classes from the file. Add
12735 comments about coloring without cover classes. Use ALLOCNO_CLASS
12736 instead of ALLOCNO_COVER_CLASS. Fix formatting.
12737 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
12738 setup_class_subset_and_memory_move_costs.
12739 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
12740 (setup_cover_and_important_classes): Rename to
12741 setup_allocno_and_important_classes.
12742 (setup_class_translate_array): New.
12743 (setup_class_translate): Call it for allocno and pressure classes.
12744 (cover_class_order): Rename to allocno_class_order.
12745 (comp_reg_classes_func): Use ira_allocno_class_translate instead
12746 of ira_class_translate.
12747 (reorder_important_classes): Set up ira_important_class_nums.
12748 (setup_reg_class_relations): Set up ira_reg_class_superunion.
12749 (print_class_cover): Rename to print_classes. Add parameter.
12750 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
12751 Print pressure classes too.
12752 (find_reg_class_closure): Rename to find_reg_classes. Don't call
12753 setup_reg_subclasses.
12754 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12755 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12756 (setup_prohibited_class_mode_regs): Use
12757 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
12758 (clarify_prohibited_class_mode_regs): New function.
12759 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
12760 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
12761 (ira_init_once): Initialize them.
12762 (free_register_move_costs): Process them.
12763 (ira_init): Move calls of find_reg_classes and
12764 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
12765 Call clarify_prohibited_class_mode_regs.
12766 (ira_no_alloc_reg): Remove.
12767 (too_high_register_pressure_p): Use pressure classes.
12769 * sched-deps.c: Remove mentioning cover classes from the file.
12770 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
12771 ira_pressure_classes and ira_pressure_classes_num instead of
12772 ira_reg_class_cover_size and ira_reg_class_cover.
12773 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
12774 sched_regno_pressure_class instead of sched_regno_cover_class.
12775 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
12776 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
12778 * ira.h: Add 2010 to Copyright.
12779 (ira_no_alloc_reg): Remove external.
12780 (struct target_ira): Rename x_ira_hard_regno_cover_class,
12781 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
12782 x_ira_class_translate to x_ira_hard_regno_allocno_class,
12783 x_ira_allocno_classes_num, x_ira_allocno_classes, and
12784 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
12785 x_ira_pressure_classes, x_ira_pressure_class_translate, and
12786 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
12787 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
12788 x_ira_no_alloc_regs.
12789 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
12790 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
12791 ira_allocno_classes_num and ira_allocno_classes.
12792 (ira_class_translate): Rename to ira_allocno_class_translate.
12793 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
12794 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
12795 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
12796 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
12797 (ira_no_alloc_regs): New.
12799 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
12800 classes from the file. Use ALLOCNO_CLASS instead of
12801 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
12802 ALLOCNO_COVER_CLASS_COST.
12803 (regno_cover_class): Rename to regno_aclass.
12804 (record_reg_classes): Use ira_reg_class_subunion instead of
12805 ira_reg_class_union.
12806 (record_address_regs): Check overflow.
12807 (scan_one_insn): Ditto.
12808 (print_allocno_costs): Print total mem cost fore regional allocation.
12809 (print_pseudo_costs): Use REG_N_REFS.
12810 (find_costs_and_classes): Use classes intersected with them on the
12811 1st pass. Check overflow. Use ira_reg_class_subunion instead of
12812 ira_reg_class_union. Use ira_allocno_class_translate and
12813 regno_aclass instead of ira_class_translate and regno_cover_class.
12814 Modify code for finding regno_aclass. Setup preferred classes for
12816 (setup_allocno_cover_class_and_costs): Rename to
12817 setup_allocno_class_and_costs. Use regno_aclass instead of
12818 regno_cover_class. Use ira_set_allocno_class instead of
12819 ira_set_allocno_cover_class.
12820 (init_costs, finish_costs): Use regno_aclass instead of
12822 (ira_costs): Use setup_allocno_class_and_costs instead of
12823 setup_allocno_cover_class_and_costs.
12824 (ira_tune_allocno_costs_and_cover_classes): Rename to
12825 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
12826 by processing objects. Use ira_reg_class_max_nregs instead of
12827 ira_reg_class_nregs.
12829 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
12831 * sched-int.h: Remove mentioning cover classes from the file.
12832 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
12834 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
12835 classes from the file.
12836 (struct reg_pref): Rename coverclass into allocnoclass.
12837 (reg_cover_class): Rename to reg_allocno_class.
12839 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
12841 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
12843 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
12845 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
12847 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
12849 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
12851 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
12853 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
12855 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
12857 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
12859 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
12860 (i386_ira_cover_classes): Ditto.
12862 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
12864 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
12866 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
12868 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
12870 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
12872 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
12874 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
12875 (mips_ira_cover_classes): Ditto.
12877 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
12879 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
12881 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
12883 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
12885 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
12887 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
12888 (IRA_COVER_CLASSES_VSX): Ditto.
12890 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
12891 (rs6000_ira_cover_classes): Ditto.
12893 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
12895 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
12897 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
12899 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
12901 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
12903 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12905 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12907 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12909 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12911 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12913 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12916 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12917 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12918 dw_fde_unlikely_section_end_label, cold_in_std_section,
12919 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12920 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12922 (output_fde): Use dw_fde_second_{begin,end} if second is
12923 true, otherwise dw_fde_{begin,end}.
12924 (output_call_frame_info): Test dw_fde_second_begin != NULL
12925 instead of dw_fde_switched_sections.
12926 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12927 fields, initialize new fields. Initialize in_std_section
12928 unconditionally from the first partition.
12929 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12930 dw_fde_second_begin is non-NULL.
12931 (dwarf2out_switch_text_section): Stop initializing removed
12932 dw_fde_struct fields, initialize new fields, initialize
12933 also dw_fde_end here. Set dw_fde_switch_cfi even when
12934 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12935 (struct var_loc_list_def): Add last_before_switch field.
12936 (arange_table, arange_table_allocated, arange_table_in_use,
12937 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12938 (size_of_aranges): Count !in_std_section and !second_in_std_section
12939 hunks in fdes, instead of looking at arange_table_in_use.
12940 (output_aranges): Add aranges_length argument, don't call
12941 size_of_aranges here. Instead of using aranges_table*
12942 emit ranges for fdes when !in_std_section resp.
12943 !second_in_std_section.
12944 (dw_loc_list): Break ranges crossing section switch.
12945 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12946 use dw_fde_second_end instead of dw_fde_end as end of last range.
12947 (gen_subprogram_die): Don't call add_arange. Use
12948 dw_fde_{begin,end} for first partition and if switched
12949 section dw_fde_second_{begin,end} for the second.
12950 (var_location_switch_text_section_1,
12951 var_location_switch_text_section): New functions.
12952 (dwarf2out_begin_function): Initialize cold_text_section even
12953 when function_section () isn't text_section.
12954 (prune_unused_types): Don't walk arange_table.
12955 (dwarf2out_finish): Don't needlessly test
12956 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12957 If info_section_emitted, call size_of_aranges and if it indicates
12958 non-empty .debug_aranges, call output_aranges with the computed
12959 size. Stop using removed dw_fde_struct fields, use
12960 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12964 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12965 create ENTRY_VALUE if incoming or address of incoming's MEM
12967 * dwarf2out.c (mem_loc_descriptor): Don't emit
12968 DW_OP_GNU_entry_value of DW_OP_fbreg.
12969 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12970 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12971 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12972 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12974 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12975 is a REG_P or MEM_P with REG_P address, compute hash directly
12976 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12977 (preserve_only_constants): Don't clear VALUES forwaring
12978 ENTRY_VALUE to some other VALUE.
12980 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12982 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12983 instead of GEN_INT.
12985 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12987 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12988 block before expanding the statement.
12989 (expand_gimple_stmt_1): Likewise. Set them here...
12990 (expand_gimple_stmt): ...and not here. Tidy.
12991 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12994 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12996 * Makefile.in: New rule for cprop.o.
12997 * gcse.c: Move constant/copy propagation to cprop.c.
12998 (compute_local_properties): Only handle expression tables.
12999 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13000 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13001 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13002 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13003 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13004 compute_cprop_data, find_used_regs, try_replace_reg,
13005 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13006 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13007 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13008 find_bypass_set, reg_killed_on_edge, bypass_block,
13009 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13010 execute_rtl_cprop, pass_rtl_cprop): Move to...
13011 * cprop.c: ...here. New file, constant/copy propagation for RTL
13012 moved from gcse.c to here with minor cleanups in duplicated code.
13014 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13016 * config/i386/i386.c (flag_opts): Fix a typo in
13017 -mavx256-split-unaligned-store.
13019 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13021 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13022 LIBCALL_VALUE): Remove macros.
13023 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13024 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13025 (h8300_function_value, h8300_libcall_value,
13026 h8300_function_value_regno_p): New functions.
13028 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13030 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13032 2011-03-28 Jeff Law <law@redhat.com>
13034 * tree-ssa-threadupdate.c (redirect_edges): Call
13035 create_edge_and_update_destination_phis as needed.
13036 (create_edge_and_update_destination_phis): Accept new BB argument.
13037 All callers updated.
13038 (thread_block): Do not update the profile when threading around
13039 intermediate blocks.
13040 (thread_single_edge): Likewise.
13041 (determine_bb_domination_status): If BB is not a successor of the
13042 loop header, return NONDOMINATING.
13043 (register_jump_thread): Note when we register a jump thread around
13044 an intermediate block.
13045 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13046 (thread_across_edge): Use it.
13048 2011-03-28 Tristan Gingold <gingold@adacore.com>
13050 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13051 when for_return is 2.
13053 2011-03-28 Jeff Law <law@redhat.com>
13055 * var-tracking.c (canonicalize_values_mark): Delete unused
13057 (canonicalize_values_star, set_variable_part): Likewise.
13058 (clobber_variable_part, delete_variable_part): Likewise.
13060 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13062 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13064 2011-03-28 Martin Jambor <mjambor@suse.cz>
13066 * tree-inline.c (expand_call_inline): Do not check that destination
13068 (optimize_inline_calls): Assert that destination node is analyzed.
13069 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13070 not call tree_lowering_passes.
13071 * cgraph.h (cgraph_analyze_function): Declare.
13072 * cgraphunit.c (cgraph_analyze_function): Make public.
13074 2011-03-28 Joseph Myers <joseph@codesourcery.com>
13076 * config/sparc/sparc-opts.h: New.
13077 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13078 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13079 (sparc_option_override): Store processor_type enumeration rather
13080 than string in cpu_default. Remove name and enumeration from
13081 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13082 without using sparc_select. Use target_flags_explicit instead of
13084 * config/sparc/sparc.h (enum processor_type): Move to
13086 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13087 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13088 HeaderInclude entry.
13089 (mcpu=, mtune=): Use Var and Enum.
13090 (sparc_processor_type): New Enum and EnumValue entries.
13092 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13093 Iain Sandoe <iains@gcc.gnu.org>
13096 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13098 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13100 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13101 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13102 Insert new statements at it in lieu of STMT.
13103 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13104 * tree-vect-stmts.c (vectorizable_store): Likewise.
13105 (vectorizable_load): Likewise.
13107 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
13109 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13114 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13116 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13117 unaligned 256bit load/store.
13118 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13119 (*avx_movdqu<avxmodesuffix>): Likewise.
13121 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13124 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13125 * config/pa/pa.md (iordi3): Use new predicate in expander.
13126 (iorsi3): Likewise.
13128 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13130 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13131 FUNCTION_VALUE_REGNO_P): Remove macros.
13132 * config/mips/mips-protos.h (mips_function_value): Remove.
13133 * config/mips/mips.c (mips_function_value): Rename to...
13134 (mips_function_value_1): ... this. Make static. Handle receiving
13135 the function type in 'fn_decl_or_type' argument.
13136 (mips_function_value, mips_libcall_value,
13137 mips_function_value_regno_p): New function.
13138 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13139 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13141 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13143 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13144 and -mavx256-split-unaligned-store.
13145 (ix86_option_override_internal): Split 32-byte AVX unaligned
13146 load/store by default.
13147 (ix86_avx256_split_vector_move_misalign): New.
13148 (ix86_expand_vector_move_misalign): Use it.
13150 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13151 -mavx256-split-unaligned-store.
13153 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13154 256bit load/store. Generate unaligned store on misaligned memory
13156 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13158 (*avx_movdqu<avxmodesuffix>): Likewise.
13160 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13161 -mavx256-split-unaligned-store.
13163 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13166 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13169 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13171 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13172 opno arguments with an expand_operand. Use create_input_operand.
13173 (mips_prepare_builtin_target): Delete.
13174 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13176 (mips_expand_builtin_direct): Use create_output_operand and
13177 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13178 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13179 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13181 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13183 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13185 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13187 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13189 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13190 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13191 basic blocks and call commit_edge_insertions directly.
13192 (fixup_abnormal_edges): Move from here to...
13193 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13194 on the edges and return whether some have actually been inserted.
13195 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13198 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13200 PR rtl-optimization/48144
13201 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13202 (merge_expr_data): ... here.
13203 (av_set_intersect): Rename to av_set_code_motion_filter.
13204 Update all callers. Call merge_history_vect when an expression
13205 is found in both sets.
13206 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13208 2011-03-26 Alan Modra <amodra@gmail.com>
13210 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13211 cmodel medium addresses.
13212 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13213 64-bit gpr loads and stores.
13214 (rs6000_secondary_reload_ppc64): New function.
13215 * config/rs6000/rs6000-protos.h: Declare it.
13216 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13218 2011-03-26 Alan Modra <amodra@gmail.com>
13221 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13222 GNU Go in traceback table.
13224 2011-03-25 Richard Henderson <rth@redhat.com>
13226 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13227 if there are exactly 6 operands.
13228 (set_storage_via_setmem): Similarly.
13230 2011-03-25 Kai Tietz <ktietz@redhat.com>
13232 * collect2.c (write_c_file_stat): Handle backslash
13233 as right-hand directory separator.
13234 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13235 checking just for slash.
13236 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13237 instead of checking for trailing slash.
13238 * gcc.c (record_temp_file): Use filename_cmp instead
13240 (do_spec_1): Likewise.
13241 (replace_outfile_spec_function): Likewise.
13242 (is_directory): Use filename_ncmp instead of strncmp.
13243 (print_multilib_info): Likewise.
13244 * gcov.c (find_source): Use filename_cmp instead
13246 (make_gcov_file_name): Fix order of slash/backslash
13248 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13249 (add_standard_paths): Likewise.
13250 * mips-tfile.c (saber_stop): Handle backslash.
13251 * prefix.c (update_path): Use filename_ncmp instead of
13253 * profile.c (output_location): Use filename_cmp instead
13255 * read-md.c (handle_toplevel_file): Handle backslash.
13256 * tlink.c (frob_extension): Likewise.
13257 * tree-cfg.c (same_line_p): Use filename_cmp instead of
13259 * tree-dump.c (dequeue_and_dump): Handle backslash.
13260 * tree.c (get_file_function_name): Likewise.
13261 * gengtype.c (read_input_list): Likewise.
13262 (get_file_realbasename): Likewise.
13263 (get_output_file_with_visibility): Use filename_cmp
13266 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
13268 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
13271 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13273 * fold-const.c (expr_location_or): New function.
13274 (fold_truth_not_expr): Call it.
13276 2011-03-25 Jeff Law <law@redhat.com>
13278 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
13280 * c-family/c-common.c (def_fn_type): Likewise.
13281 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
13282 * emit-rtl.c (gen_rtvec): Likewise.
13283 * lto/lto-lang.c (def_fn_type): Likewise.
13285 2011-03-25 Richard Guenther <rguenther@suse.de>
13287 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
13288 also generate copies.
13289 (fini_copy_prop): Handle constant values properly.
13291 2011-03-25 Jakub Jelinek <jakub@redhat.com>
13293 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
13294 mode size instead of bitsize with DWARF2_ADDR_SIZE.
13295 (hash_loc_operands, compare_loc_operands): Handle
13296 DW_OP_GNU_entry_value.
13298 2011-03-25 Kai Tietz <ktietz@redhat.com>
13300 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
13301 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
13302 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
13303 comment and use macro TARGET_64BIT_MS_ABI instead.
13304 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
13305 and change default behavior for 32-bit MS_ABI.
13306 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
13307 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
13309 (ix86_cfun_abi): Likewise.
13310 (ix86_maybe_switch_abi): Adjust comment.
13311 (init_cumulative_args): Check for bit-ness in MS_ABI case.
13312 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
13313 instead of checking for SYSV_ABI.
13314 (ix86_nsaved_sseregs): Likewise.
13315 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
13317 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
13318 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
13319 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
13320 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
13321 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
13323 2011-03-25 Richard Guenther <rguenther@suse.de>
13325 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
13326 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13327 (verify_gimple): Remove.
13328 * tree-cfg.c (verify_gimple_call): Merge verification
13330 (verify_gimple_phi): Merge verification from verify_stmts.
13331 (verify_gimple_label): New function.
13332 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
13333 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
13334 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
13335 (verify_stmts): Rename to verify_gimple_in_cfg.
13336 (verify_gimple_in_cfg): New function.
13337 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
13338 * tree-ssa.c (verify_ssa): Likewise.
13339 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
13341 2011-03-25 Richard Guenther <rguenther@suse.de>
13343 * passes.c (init_optimization_passes): Add FRE pass after
13346 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
13347 Andrew Stubbs <ams@codesourcery.com>
13349 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
13351 (arm_movdi_vfp_cortexa8): New pattern.
13352 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
13353 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
13354 instructions when tuning for Cortex-A8. Set attribute "arch".
13355 * config/arm/arm.md: Move include arm-tune.md up a bit.
13356 (define_attr "arch"): Add "onlya8" and "nota8" values.
13357 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
13359 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
13363 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13365 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13366 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13367 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13368 * passes.c (init_optimization_passes): Move
13369 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13371 2011-03-25 Kai Tietz <ktietz@redhat.com>
13373 * c-typeck.c (comptypes_internal): Replace target
13374 hook call of comp_type_attributes by version in tree.c file.
13375 * gimple.c (gimple_types_compatible_p_1): Likewise.
13376 * tree-ssa.c (useless_type_conversion_p): Likewise.
13377 * tree.c (build_type_attribute_qual_variant): Likewise.
13378 (attribute_value_equal): New static helper function.
13379 (comp_type_attributes): New function.
13380 (merge_attributes): Use attribute_value_equal for comparison.
13381 (attribute_list_contained): Likewise.
13382 * tree.h (comp_type_attributes): New prototype.
13384 2011-03-25 Richard Guenther <rguenther@suse.de>
13386 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
13387 of complex types at -O0.
13388 (verify_gimple_assign_binary): Likewise.
13389 (verify_gimple_assign_ternary): Likewise.
13391 2011-03-24 Mark Wielaard <mjw@redhat.com>
13393 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
13394 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
13396 2011-03-24 Mark Wielaard <mjw@redhat.com>
13399 * dwarf2out.c (output_abbrev_section): Only write table when
13400 abbrev_die_table_in_use > 1.
13402 2011-02-24 Richard Henderson <rth@redhat.com>
13404 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
13405 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
13406 (alpha_expand_unaligned_load_words): Use extql.
13407 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
13408 (emit_insxl): Handle all modes for consistency.
13410 2011-02-24 Richard Henderson <rth@redhat.com>
13412 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
13413 (alpha_expand_unaligned_load): Likewise.
13414 (alpha_expand_unaligned_store): Likewise.
13415 (alpha_expand_unaligned_load_words): Likewise.
13416 (alpha_expand_unaligned_store_words): Likewise.
13417 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
13418 (alpha_split_lock_test_and_set_12): Likewise.
13419 (print_operand, alpha_fold_builtin_extxx): Likewise.
13420 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
13421 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
13422 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
13423 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
13424 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
13425 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
13426 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
13427 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
13428 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
13429 (extwl, extll, extql): Similarly.
13430 (inswh, inslh, insqh): Similarly.
13431 (mskbl, mskwl, mskll, mskql): Similarly.
13432 (mskwh, msklh, mskqh): Similarly.
13434 2011-02-24 Richard Henderson <rth@redhat.com>
13436 * config/alpha/alpha.md (attribute isa): Add er, ner.
13437 (attribute enabled): Handle them.
13438 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
13440 2011-02-24 Richard Henderson <rth@redhat.com>
13442 * config/alpha/alpha.md (attribute isa): Add vms.
13443 (attribute enabled): Handle it.
13444 (*movsf): Merge *movsf_{nofix,fix,nofp}.
13445 (*movdf): Merge *movdf_{nofix,fix,nofp}.
13446 (*movtf): Rename from *movtf_internal for consistency.
13447 (*movsi): Merge with *movsi_nt_vms.
13448 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
13449 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
13450 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
13451 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
13453 2011-02-24 Richard Henderson <rth@redhat.com>
13455 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
13456 (extendqisi2, extendhisi2): Likewise.
13457 (extendqidi2): Simplify BWX/non-BWX expansions.
13458 (extendhidi2): Similarly.
13460 2011-02-24 Richard Henderson <rth@redhat.com>
13462 * config/alpha/alpha.md (attribute isa): New.
13463 (attribute enabled): New.
13464 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
13465 (zero_extendqisi2, zero_extendqidi2): Similarly.
13466 (zero_extendhisi2, zero_extendhidi2): Similarly.
13467 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
13469 2011-02-24 Richard Henderson <rth@redhat.com>
13471 * config/alpha/predicates.md (input_operand): Revert last change;
13472 update comment to mention 32-bit VMS rather than Windows.
13474 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13476 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
13477 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
13478 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
13479 * passes.c (init_optimization_passes): Move
13480 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
13482 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13484 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
13486 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13488 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
13491 2011-03-24 Jakub Jelinek <jakub@redhat.com>
13494 * simplify-rtx.c (simplify_const_unary_operation): Call
13495 real_convert when changing mode class with FLOAT_EXTEND.
13497 2011-03-24 Nick Clifton <nickc@redhat.com>
13499 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
13500 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
13501 * config/rx/rx.c (rx_option_override): Set align_jumps,
13502 align_loops and align_labels if not set by the user.
13503 (rx_align_for_label): New function.
13504 (rx_max_skip_for_label): New function.
13505 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
13506 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
13507 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
13508 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
13509 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
13511 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13513 PR rtl-optimization/48263
13514 * optabs.c (expand_binop_directly): Reinstate convert_modes code
13515 and original commutative_p handling. Use maybe_gen_insn.
13517 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13519 * reload.c (find_reloads_subreg_address): Add address_reloaded
13520 parameter and return true there if the full address has been
13522 (find_reloads_toplev): Pass address_reloaded flag.
13523 (find_reloads_address_1): Don't use address_reloaded parameter.
13525 2011-03-24 Jeff Law <law@redhat.com>
13527 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
13528 unused variable "ann".
13529 (remove_unused_locals): Likewise.
13531 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
13534 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
13537 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13539 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
13540 for invalid symbolic addresses.
13541 (s390_secondary_reload): Don't use s390_check_symref_alignment for
13544 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13546 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
13547 the argument in calls to fold_truth_not_expr.
13549 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13551 * tree.c (record_node_allocation_statistics): New function.
13552 (make_node_stat, copy_node_stat, build_string): Call it.
13553 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
13554 (build1_stat, build_omp_clause): Likewise.
13556 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13558 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
13561 2011-03-24 Richard Guenther <rguenther@suse.de>
13563 PR tree-optimization/48271
13564 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
13565 blocks that still exist.
13567 2011-03-24 Richard Guenther <rguenther@suse.de>
13569 PR tree-optimization/48270
13570 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
13571 not free datarefs before ddrs.
13573 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
13575 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
13576 from the address built for a reference with variable offset.
13578 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
13581 * config/i386/i386.md (*movdf_internal_rex64): Do not split
13582 alternatives that can be handled with movq or movabsq insn.
13583 (*movdf_internal): Disable for !TARGET_64BIT.
13584 (*movdf_internal_nointeger): Ditto.
13585 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
13587 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
13589 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13590 (FUNCTION_ARG_ADVANCE): Likewise.
13591 * tm.texi.in: Change references to them to hook references.
13592 * tm.texi: Regenerate.
13593 * targhooks.c (default_function_arg): Eliminate check for target macro.
13594 (default_function_incoming_arg): Likewise.
13595 (default_function_arg_advance): Likewise.
13596 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13597 (function_arg_advance): Likewise.
13598 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13600 2011-03-24 Richard Guenther <rguenther@suse.de>
13602 PR middle-end/48269
13603 * tree-object-size.c (addr_object_size): Do not double-account
13604 for MEM_REF offsets.
13606 2011-03-24 Diego Novillo <dnovillo@google.com>
13608 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
13609 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
13610 (lto_input_data_block): Move from lto-opts.c. Make extern.
13612 (lto_input_string): Rename from input_string. Make extern.
13614 * lto-streamer-out.c (lto_output_string_with_length): Rename from
13615 output_string_with_length.
13616 Output 0 to indicate a non-NULL string. Update all callers to
13618 (lto_output_string): Rename from output_string. Make extern.
13620 (lto_output_decl_state_streams): Make extern.
13621 (lto_output_decl_state_refs): Make extern.
13622 * lto-streamer.h (lto_input_string): Declare.
13623 (lto_input_data_block): Declare.
13624 (lto_output_string): Declare.
13625 (lto_output_string_with_length): Declare.
13626 (lto_output_decl_state_streams): Declare.
13627 (lto_output_decl_state_refs): Declare.
13629 2011-03-24 Richard Guenther <rguenther@suse.de>
13631 PR tree-optimization/46562
13632 * tree.c (build_invariant_address): New function.
13633 * tree.h (build_invariant_address): Declare.
13634 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
13635 a renamed function moved ...
13636 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
13637 Take valueization callback parameter.
13638 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
13639 * gimple-fold.h: New file.
13640 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
13641 (ccp_fold, fold_const_aggregate_ref,
13642 fold_ctor_reference, fold_nonarray_ctor_reference,
13643 fold_array_ctor_reference, fold_string_cst_ctor_reference,
13644 get_base_constructor): Move ...
13645 * gimple-fold.c: ... here.
13646 (gimple_fold_stmt_to_constant_1): New function
13647 split out from ccp_fold. Take a valueization callback parameter.
13648 Valueize all operands.
13649 (gimple_fold_stmt_to_constant): New wrapper function.
13650 (fold_const_aggregate_ref_1): New function split out from
13651 fold_const_aggregate_ref. Take a valueization callback parameter.
13652 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
13653 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
13654 invariant POINTER_PLUS_EXPRs to invariant form.
13655 (vn_valueize): New function.
13656 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
13657 * tree-vrp.c (vrp_valueize): New function.
13658 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
13659 to fold statements to constants.
13660 * tree-ssa-pre.c (eliminate): Properly guard propagation of
13661 function declarations.
13662 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
13663 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
13665 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
13667 * config/h8300/predicates.md (jump_address_operand): Fix register
13670 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
13672 * doc/invoke.texi (max-stores-to-sink): Document.
13673 * params.h (MAX_STORES_TO_SINK): Define.
13674 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
13675 if either vectorization or if-conversion is disabled.
13676 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
13677 tree-vect-data-refs.c vect_equal_offsets.
13678 (dr_equal_offsets_p): New function.
13679 (find_data_references_in_bb): Remove static.
13680 * tree-data-ref.h (find_data_references_in_bb): Declare.
13681 (dr_equal_offsets_p): Likewise.
13682 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
13683 (vect_drs_dependent_in_basic_block): Update calls to
13684 vect_equal_offsets.
13685 (vect_check_interleaving): Likewise.
13686 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
13687 (cond_if_else_store_replacement): Rename to...
13688 (cond_if_else_store_replacement_1): ... this. Change arguments and
13690 (cond_if_else_store_replacement): New function.
13691 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
13692 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
13694 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
13697 * config/arm/arm.md (casesi): Use the gen_int_mode() function
13698 to subtract lower bound instead of GEN_INT().
13700 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
13705 * doc/extend.texi (Alignment): Move section to match order in TOC.
13706 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
13707 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
13709 2011-03-23 Jeff Law <law@redhat.com>
13711 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
13712 before removing the edge.
13714 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
13715 it may have been freed by redirect_branch_edge or
13716 redirect_edge_succ_nodup.
13718 2011-03-23 Richard Guenther <rguenther@suse.de>
13720 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
13721 (check_va_list_escapes): Likewise.
13722 (check_all_va_list_escapes): Likewise.
13724 2011-03-23 Richard Guenther <rguenther@suse.de>
13726 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
13727 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
13728 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
13729 (alias.o): Likewise.
13730 (ipa-type-escape.o): Remove.
13731 (ipa-struct-reorg.o): Likewise.
13732 (GTFILES): Remove ipa-struct-reorg.c.
13733 * alias.c: Do not include ipa-type-escape.h.
13734 * tree-ssa-alias.c: Likewise.
13735 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
13736 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
13737 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
13738 and ipa-type-escape passes.
13739 * tree-pass.h (pass_ipa_type_escape): Remove.
13740 (pass_ipa_struct_reorg): Likewise.
13741 * ipa-struct-reorg.h: Remove.
13742 * ipa-struct-reorg.c: Likewise.
13743 * ipa-type-escape.h: Likewise.
13744 * ipa-type-escape.c: Likewise.
13745 * doc/invoke.texi (-fipa-struct-reorg): Remove.
13746 (--param struct-reorg-cold-struct-ratio): Likewise.
13747 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13748 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
13749 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
13751 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13753 * config/s390/2084.md: Enable all insn reservations also for z9_ec
13754 cpu attribute value.
13755 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
13756 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
13757 * config/s390/s390.c (processor_flags_table): New constant array.
13758 (s390_handle_arch_option): Remove.
13759 (s390_handle_option): Remove s390_handle_arch_option invocations
13760 and OPT_mwarn_framesize_ handling.
13761 (s390_option_override): Remove s390_handle_arch_option invocation.
13762 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
13764 * config/s390/s390.md (cpu attribute): Add z9_ec value.
13765 * config/s390/s390.opt (s390_tune, s390_arch)
13766 (march=): Replace s390_arch_option enum and values with
13767 processor_type. Set variable name to s390_arch. Set
13768 initialization value.
13769 (mtune=): Replace s390_arch_option with processor_type. Set
13770 variable name to s390_tune. Set initialization value.
13772 2011-03-23 Julian Brown <julian@codesourcery.com>
13774 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
13775 accesses which are not naturally aligned.
13777 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13780 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
13782 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
13784 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
13785 parameter from "int" to "enum insn_code".
13786 (expand_operand_type): New enum.
13787 (expand_operand): New structure.
13788 (create_expand_operand): New function.
13789 (create_fixed_operand, create_output_operand): Likewise
13790 (create_input_operand, create_convert_operand_to): Likewise.
13791 (create_convert_operand_from, create_address_operand): Likewise.
13792 (create_integer_operand): Likewise.
13793 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
13794 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13795 (expand_insn, expand_jump_insn): Likewise.
13796 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
13797 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
13798 (expand_movstr, expand_builtin___clear_cache): Likewise.
13799 (expand_builtin_lock_release): Likewise.
13800 * explow.c (allocate_dynamic_stack_space): Likewise.
13801 (probe_stack_range): Likewise. Allow check_stack to FAIL,
13802 and use the default handling in that case.
13803 * expmed.c (check_predicate_volatile_ok): Delete.
13804 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
13805 (emit_cstore): Likewise.
13806 * expr.c (emit_block_move_via_movmem): Likewise.
13807 (set_storage_via_setmem, expand_assignment): Likewise.
13808 (emit_storent_insn, try_casesi): Likewise.
13809 (emit_single_push_insn): Likewise. Allow the expansion to fail.
13810 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
13811 (expand_vec_shift_expr, expand_binop_directly): Likewise.
13812 (expand_twoval_unop, expand_twoval_binop): Likewise.
13813 (expand_unop_direct, emit_indirect_jump): Likewise.
13814 (emit_conditional_move, vector_compare_rtx): Likewise.
13815 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
13816 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
13817 (expand_sync_lock_test_and_set): Likewise.
13818 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
13819 (emit_unop_insn): Likewise.
13820 (expand_copysign_absneg): Change icode to an insn_code.
13821 (create_convert_operand_from_type): New function.
13822 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
13823 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
13824 (expand_insn, expand_jump_insn): Likewise.
13825 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
13826 than const_int_operand for operand 2.
13828 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13830 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
13833 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13835 * emit-rtl.c (emit_pattern_before_noloc): New function.
13836 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
13837 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
13838 (emit_pattern_after_noloc): New function.
13839 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
13840 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
13842 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13844 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
13845 (__ffsDI2): Likewise.
13847 2011-03-22 Richard Henderson <rth@redhat.com>
13849 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
13850 of !TARGET_ABI_OPEN_VMS.
13851 (alpha_trampoline_init, alpha_start_function): Likewise.
13852 (alpha_expand_epilogue, alpha_file_start): Likewise.
13853 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
13854 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
13855 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
13856 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
13857 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
13859 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13861 * config/s390/s390-opts.h: New.
13862 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
13863 s390_arch_flags, s390_warn_framesize, s390_stack_size,
13864 s390_stack_guard): Remove.
13865 (s390_handle_arch_option): Return void. Take enum
13866 s390_arch_option value instead of string and searching array.
13867 (s390_handle_option): Don't assert that global structures are in
13868 use. Access variables via opts pointer. Use error_at. Don't use
13869 sscanf for -mstack-guard= or -mstack-size=. Update call to
13870 s390_handle_arch_option.
13871 (s390_option_override): Update call to s390_handle_arch_option.
13872 (s390_emit_prologue): Use %d format for s390_stack_size in
13873 diagnostic. Use %wd for HOST_WIDE_INT.
13874 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
13875 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
13876 * config/s390/s390.opt (config/s390/s390-opts.h): New
13877 HeaderInclude entry.
13878 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
13879 s390_arch_flags, s390_warn_framesize): New Variable entries.
13880 (s390_arch_option): New Enum and EnumValue entries.
13881 (march=): Use Enum instead of Var.
13882 (mstack-guard=, mstack-size=): Use UInteger and Var.
13883 (mtune=): Use Enum.
13885 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13887 * config/score/score.c (score_handle_option): Don't assert that
13888 global structures are in use. Access target_flags via opts
13889 pointer. Use value of -march= option to determine target_flags
13891 * config/score/score.opt (march=): Use Enum.
13892 (score_arch): New Enum and EnumValue entries.
13894 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13896 * config/mep/mep.c (option_mtiny_specified): Remove.
13897 (mep_option_override): Move register handling for -mivc2 from
13898 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
13899 instead of option_mtiny_specified.
13900 (mep_handle_option): Access target_flags via opts pointer. Don't
13901 assert that global structures are in use. Defer part of -mivc2
13902 handling and move it to mep_option_override.
13903 * config/mep/mep.opt (IVC2): New Mask entry.
13904 (mivc2): Use Var and Defer instead of Mask.
13906 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13908 * config/v850/v850-opts.h: New.
13909 * config/v850/v850.c (small_memory): Replace with
13910 small_memory_physical_max array. Make that array static const.
13911 (v850_handle_memory_option): Take integer value of argument. Take
13912 gcc_options pointer, option text and location. Return void.
13913 Update for changes to small memory structures.
13914 (v850_handle_option): Access target_flags via opts pointer. Don't
13915 assert that global structures are in use. Update calls to
13916 v850_handle_memory_option.
13917 (v850_encode_data_area): Update references to small memory settings.
13918 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13919 (enum small_memory_type): Move to v850-opts.h.
13920 * config/v850/v850.opt (config/v850/v850-opts.h): New
13921 HeaderInclude entry.
13922 (small_memory_max): New Variable entry.
13923 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13924 (mtda, mzda): Likewise.
13926 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13928 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13929 pointer. Don't assert that global structures are in use.
13931 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13933 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13934 via opts pointer. Don't assert that global structures are in use.
13936 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13938 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13939 (munix=93): Use Var.
13940 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13941 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13942 * config/pa/pa-opts.h: New.
13943 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13944 (pa_handle_option): Don't assert that global structures are in
13945 use. Access target_flags via opts pointer. Don't handle
13946 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13948 (pa_option_override): Handle deferred OPT_mfixed_range_.
13950 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13952 * config/mn10300/mn10300-opts.h: New.
13953 * config/mn10300/mn10300.c (mn10300_processor,
13954 mn10300_tune_string): Remove.
13955 (mn10300_handle_option): Don't assert that global structures are
13956 in use. Access mn10300_processor via opts pointer. Don't handle
13958 * config/mn10300/mn10300.h (enum processor_type): Move to
13960 (mn10300_processor): Remove.
13961 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13962 HeaderInclude entry.
13963 (mn10300_processor): New Variable entry.
13966 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13968 * config/microblaze/microblaze.c: Don't include opts.h.
13969 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13970 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13971 (mno-clearbss): Use Var and Warn.
13973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13975 * config/m32r/m32r-opts.h: New.
13976 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13977 (m32r_handle_option): Don't assert that global structures are in
13978 use. Access target_flags and m32r_cache_flush_func via opts
13979 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13980 OPT_mno_flush_trap here.
13981 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13982 include of m32r-opts.h.
13983 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13984 HeaderInclude entry.
13985 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13986 (mmodel=): Use Enum and Var.
13987 (m32r_model): New Enum and EnumValue entries.
13988 (mno-flush-trap): Use Var.
13989 (msdata=): Use Enum and Var.
13990 (m32r_sdata): New Enum and EnumValue entries.
13992 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13994 * config/m32c/m32c.c: Don't include opts.h.
13995 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13996 m32c_handle_option): Remove.
13997 (m32c_option_override): Check global_options_set.x_target_memregs
13998 instead of target_memregs_set.
13999 * config/m32c/m32c.h (target_memregs): Remove.
14000 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14003 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14005 * config/iq2000/iq2000-opts.h: New.
14006 * config/iq2000/iq2000.c: Don't include opts.h.
14007 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14008 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14009 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14010 HeaderInclude entry.
14011 (iq2000_tune): New Variable entry.
14012 (march=): Add comment. Use Enum.
14013 (iq2000_arch): New Enum and EnumValue entries.
14014 (mcpu=): Use Enum and Var.
14015 (iq2000_tune): New Enum and EnumValue entries.
14017 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14019 * config/ia64/ia64-opts.h: New.
14020 * config/ia64/ia64.c (ia64_tune): Remove.
14021 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14022 here. Use error_at.
14023 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14024 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14025 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14026 HeaderInclude entry.
14027 (ia64_tune): New Variable entry.
14028 (mfixed-range=): Use Defer and Var.
14029 (mtune=): Use Enum and Var.
14030 (ia64_tune): New Enum and EnumValue entries.
14032 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14034 * config/frv/frv-opts.h: New.
14035 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14037 (frv_cpu_type): Remove.
14038 * config/frv/frv.c: Don't include opts.h.
14039 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14040 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14041 (frv_cpu_type): New Variable entry.
14042 (frv_cpu): New Enum and EnumValue entries.
14044 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14046 * config/cris/cris.c (cris_handle_option): Access target_flags via
14047 opts pointer. Don't assert that global structures are in use.
14048 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14049 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14051 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14053 * config/bfin/bfin-opts.h: New.
14054 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14055 bfin_si_revision, bfin_workarounds): Remove.
14056 (bfin_cpus): Make static const.
14057 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14058 not bfin_lib_id_given.
14059 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14060 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14061 pointer. Use error_at. Don't assert that global structures are in use.
14062 * config/bfin/bfin.h: Include bfin-opts.h.
14063 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14064 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14065 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14066 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14069 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14071 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14072 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14073 or -msoft-float here.
14074 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14075 -msoft-float and -mhard-float.
14076 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14077 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14079 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14081 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14082 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14084 (LIBGCC_SPEC): Don't handle -msoft-float.
14085 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14087 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14089 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14090 -mfloat-abi=*, not -msoft-float and -mhard-float.
14091 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14093 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14094 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14095 mhard-float and msoft-float.
14096 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14097 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14098 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14099 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14101 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14102 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14104 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14106 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14109 2011-03-22 Richard Henderson <rth@redhat.com>
14111 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14112 TARGET_ABI_WINDOWS_NT.
14113 (alpha_output_function_end_prologue): Likewise.
14114 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14115 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14116 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14117 (trap, *movsi_nt_vms): Likewise.
14118 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14119 (*tablejump_osf_nt_internal): Remove.
14120 * config/alpha/predicates.md (input_operand): Only test Pmode.
14122 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14124 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14125 via opts pointer. Use error_at. Don't assert that global
14126 structures are in use.
14128 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14130 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14131 (ix86_handle_option): Access ix86_isa_flags and
14132 ix86_isa_flags_explicit via opts pointer. Don't assert that
14133 global structures are in use.
14134 (ix86_function_specific_save, ix86_function_specific_restore):
14135 Update ix86_isa_flags_explicit field name.
14136 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14137 (ix86_isa_flags_explicit): Rename TargetSave entry to
14138 x_ix86_isa_flags_explicit.
14140 2011-03-22 Richard Henderson <rth@redhat.com>
14142 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14143 (alpha_option_override, direct_return): Likewise.
14144 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14145 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14146 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14147 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14148 (alpha_expand_epilogue, alpha_end_function): Likewise.
14149 (alpha_init_libfuncs): Likewise.
14150 (struct machine_function): Remove unicosmk members.
14151 (print_operand) ['t']: Remove.
14152 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14153 unicosmk_output_module_name, unicosmk_output_common,
14154 current_section_align, unicosmk_output_text_section_asm_op,
14155 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14156 unicosmk_section_type_flags, unicosmk_unique_section,
14157 unicosmk_asm_named_section, unicosmk_insert_attributes,
14158 unicosmk_output_align, unicosmk_defer_case_vector,
14159 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14160 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14161 unicosmk_output_ssib, unicosmk_add_call_info_word,
14162 unicosmk_extern_head, unicosmk_output_default_externs,
14163 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14164 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14165 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14166 * config/alpha/alpha-protos.h: Update.
14167 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14168 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14169 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14170 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14171 (*mulsi_se, mulvsi3): Likewise.
14172 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14173 (*divmodsi_internal, call, call_value, realign): Likewise.
14174 (moddi3, umoddi3): Likewise; remove duplicate expander.
14175 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14176 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14177 (*movdi_nofix): Remove r/U alternative.
14178 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14179 * config/alpha/constraints.md ("U"): Remove.
14180 * config/alpha/predicates.md (call_operand"): Don't test
14181 TARGET_ABI_UNICOSMK.
14183 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14185 * target.def (handle_option): Take gcc_options and
14186 cl_decoded_option pointers and location_t.
14187 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14188 * doc/tm.texi: Regenerate.
14189 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14190 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14191 * lto-opts.c (lto_reissue_options): Generate option structure for
14192 targetm.handle_option call.
14193 * opts.c (target_handle_option): Update call to
14194 targetm.handle_option. Remove assertions about values now passed
14196 * targhooks.c (default_target_handle_option): New.
14197 * targhooks.h (default_target_handle_option): Declare.
14198 * config/alpha/alpha.c: Include opts.h.
14199 (alpha_handle_option): Update to new hook interface.
14200 * config/arm/arm.c: Include opts.h.
14201 (arm_handle_option): Update to new hook interface.
14202 * config/arm/t-arm (arm.o): Update dependencies.
14203 * config/bfin/bfin.c: Include opts.h.
14204 (bfin_handle_option): Update to new hook interface.
14205 * config/cris/cris.c: Include opts.h.
14206 (cris_handle_option): Update to new hook interface.
14207 * config/frv/frv.c: Include opts.h.
14208 (frv_handle_option): Update to new hook interface.
14209 * config/i386/i386.c: Include opts.h.
14210 (ix86_handle_option): Update to new hook interface.
14211 (ix86_valid_target_attribute_inner_p): Generate option structure
14212 for call to ix86_handle_option.
14213 * config/i386/t-i386 (i386.o): Update dependencies.
14214 * config/ia64/ia64.c: Include opts.h.
14215 (ia64_handle_option): Update to new hook interface.
14216 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14217 * config/iq2000/iq2000.c: Include opts.h.
14218 (iq2000_handle_option): Update to new hook interface.
14219 * config/m32c/m32c.c: Include opts.h.
14220 (m32c_handle_option): Update to new hook interface.
14221 * config/m32r/m32r.c: Include opts.h.
14222 (m32r_handle_option): Update to new hook interface.
14223 * config/m68k/m68k.c: Include opts.h.
14224 (m68k_handle_option): Update to new hook interface.
14225 * config/mep/mep.c: Include opts.h.
14226 (mep_handle_option): Update to new hook interface.
14227 * config/microblaze/microblaze.c: Include opts.h.
14228 (microblaze_handle_option): Update to new hook interface.
14229 * config/mips/mips.c: Include opts.h.
14230 (mips_handle_option): Update to new hook interface.
14231 * config/mn10300/mn10300.c: Include opts.h.
14232 (mn10300_handle_option): Update to new hook interface.
14233 * config/pa/pa.c: Include opts.h.
14234 (pa_handle_option): Update to new hook interface.
14235 * config/pdp11/pdp11.c: Include opts.h.
14236 (pdp11_handle_option): Update to new hook interface.
14237 * config/rs6000/rs6000.c: Include opts.h.
14238 (rs6000_handle_option): Update to new hook interface.
14239 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14240 * config/rx/rx.c: Include opts.h.
14241 (rx_handle_option): Update to new hook interface.
14242 * config/s390/s390.c: Include opts.h.
14243 (s390_handle_option): Update to new hook interface.
14244 * config/score/score.c: Include opts.h.
14245 (score_handle_option): Update to new hook interface.
14246 * config/sh/sh.c: Include opts.h.
14247 (sh_handle_option): Update to new hook interface.
14248 * config/sparc/sparc.c: Include opts.h.
14249 (sparc_handle_option): Update to new hook interface.
14250 * config/v850/v850.c: Include opts.h.
14251 (v850_handle_option): Update to new hook interface.
14253 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14255 * gcc.c (driver_unknown_option_callback): Only permit and save
14256 unknown -Wno- options.
14257 (driver_wrong_lang_callback): Save options directly instead of via
14258 driver_unknown_option_callback.
14260 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14262 * combine.c (simplify_set): Try harder to find the best CC mode when
14263 simplifying a nested COMPARE on the RHS.
14265 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14267 * config/alpha/gnu.h: Remove.
14268 * config/arc: Remove directory.
14269 * config/arm/netbsd.h: Remove.
14270 * config/arm/t-pe: Remove.
14271 * config/crx: Remove directory.
14272 * config/i386/netbsd.h: Remove.
14273 * config/m68hc11: Remove directory.
14274 * config/m68k/uclinux-oldabi.h: Remove.
14275 * config/mcore/mcore-pe.h: Remove.
14276 * config/mcore/t-mcore-pe: Remove.
14277 * config/netbsd-aout.h: Remove.
14278 * config/rs6000/gnu.h: Remove.
14279 * config/sh/sh-symbian.h: Remove.
14280 * config/sh/symbian-base.c: Remove.
14281 * config/sh/symbian-c.c: Remove.
14282 * config/sh/symbian-cxx.c: Remove.
14283 * config/sh/symbian-post.h: Remove.
14284 * config/sh/symbian-pre.h: Remove.
14285 * config/sh/t-symbian: Remove.
14286 * config/svr3.h: Remove.
14287 * config/vax/netbsd.h: Remove.
14288 * config.build: Don't handle i[34567]86-*-pe.
14289 * config.gcc: Remove handling of deprecations for most deprecated
14291 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
14292 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
14293 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
14294 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
14295 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
14296 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
14298 * config.host: Don't handle i[34567]86-*-pe.
14299 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
14300 (ASM_SPEC32): Don't handle -mcall-gnu.
14301 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
14303 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
14304 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
14305 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
14306 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
14307 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
14308 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
14309 conditional on SYMBIAN.
14310 * configure.ac: Don't handle powerpc*-*-gnu*.
14311 * configure: Regenerate.
14312 * doc/extend.texi (interrupt attribute): Don't mention CRX.
14313 * doc/install-old.texi (m6811, m6812): Don't mention.
14314 * doc/install.texi (arc-*-elf*): Don't document multilib option.
14315 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
14316 (m68k-uclinuxoldabi): Don't mention.
14317 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
14319 (-mcall-gnu): Remove.
14320 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
14321 families): Remove constraint documentation.
14323 2011-03-22 Marius Strobl <marius@FreeBSD.org>
14325 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
14326 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
14327 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
14329 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14332 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
14333 vector when peeking at the next token for vector, don't expand the
14336 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
14338 * config/avr/avr-protos.h (expand_epilogue): Change prototype
14339 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
14340 * config/avr/avr.c (init_cumulative_args)
14341 (avr_function_arg_advance): Use it.
14342 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
14344 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
14345 (avr_function_ok_for_sibcall): ...this new function.
14346 (avr_lookup_function_attribute1): New static Function.
14347 (avr_naked_function_p, interrupt_function_p)
14348 (signal_function_p, avr_OS_task_function_p)
14349 (avr_OS_main_function_p): Use it.
14350 * config/avr/avr.md ("sibcall", "sibcall_value")
14351 ("sibcall_epilogue"): New expander.
14352 ("*call_insn", "*call_value_insn"): New insn.
14353 ("call_insn", "call_value_insn"): Remove
14354 ("call", "call_value", "epilogue"): Change expander to handle
14357 2011-03-21 Nick Clifton <nickc@redhat.com>
14359 * doc/invoke.texi (Overall Options): Move closing brace to end of
14361 (Optimization Options): Add missing @gol.
14362 (Directory Options): Likewise.
14363 (i386 and x86-64 Options): Likewise.
14364 (RS6000 and PowerPC Options): Likewise.
14365 (i386 and x86-64 Windows Options): Likewise.
14366 (V850 Options): Add text missing from descriptions.
14368 2011-03-22 Richard Henderson <rth@redhat.com>
14370 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
14371 (avr_incoming_return_addr_rtx): New.
14372 (emit_push_byte): New.
14373 (expand_prologue): Use it. Remove incorrect dwarf annotation for
14374 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
14375 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
14376 (emit_pop_byte): New.
14377 (expand_epilogue): Use it. Pop frame pointer by bytes.
14378 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
14379 (INCOMING_RETURN_ADDR_RTX): New.
14380 (INCOMING_FRAME_SP_OFFSET): New.
14381 (ARG_POINTER_CFA_OFFSET): New.
14382 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
14383 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
14386 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
14388 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14390 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14391 (FUNCTION_ARG_ADVANCE): Likewise.
14392 * tm.texi.in: Change references to them to hook references.
14393 * tm.texi: Regenerate.
14394 * targhooks.c (default_function_arg): Eliminate check for target
14396 (default_function_incoming_arg): Likewise.
14397 (default_function_arg_advance): Likewise.
14398 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14399 (function_arg_advance): Likewise.
14400 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14402 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14404 * tree.c (build_call_1): New function.
14405 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
14407 2011-03-22 Richard Guenther <rguenther@suse.de>
14409 PR tree-optimization/48228
14410 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
14411 for single-arg PHIs.
14413 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
14415 PR rtl-optimization/48143
14416 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
14417 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
14418 sse2_cvtps2pd): Likewise.
14420 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14422 * recog.c (canonicalize_change_group): Use validate_unshare_change.
14424 2011-03-22 Richard Guenther <rguenther@suse.de>
14426 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
14427 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
14428 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
14429 and REALIGN_LOAD_EXPR.
14430 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
14431 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
14432 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
14433 DOT_PROD_EXPR case ...
14434 (expand_expr_real_2): ... here.
14435 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
14436 and REALIGN_LOAD_EXPR.
14437 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
14438 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
14439 (vect_create_epilog_for_reduction): Likewise.
14440 (vectorizable_reduction): Likewise.
14441 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
14442 * tree-vect-stmts.c (vectorizable_load): Likewise.
14444 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
14446 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
14448 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14450 * config/s390/s390.c (s390_delegitimize_address): Fix offset
14451 handling for PLTOFF/GOTOFF.
14453 2011-03-22 Nick Clifton <nickc@redhat.com>
14455 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
14456 trailing backslash from the end of the macro definition.
14458 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14460 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
14463 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
14465 * expr.h (prepare_operand): Move to...
14466 * optabs.h (prepare_operand): ...here and change the insn code
14467 parameter from "int" to "enum insn_code".
14468 (insn_operand_matches): Declare.
14469 * expr.c (init_expr_target): Use insn_operand_matches.
14470 (compress_float_constant): Likewise.
14471 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
14472 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
14473 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
14474 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
14476 (gen_cond_trap): Likewise.
14477 (prepare_operand): Likewise. Change icode to an insn_code.
14478 (insn_operand_matches): New function.
14479 * reload.c (find_reloads_address_1): Use insn_operand_matches.
14480 * reload1.c (gen_reload): Likewise.
14481 * targhooks.c (default_secondary_reload): Likewise.
14483 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14485 * config/alpha/alpha.md (unspec): New define_c_enum.
14488 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
14491 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
14492 between a call and its CALL_ARG_LOCATION note.
14494 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
14496 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
14498 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14502 * c-common.c (shorten_compare): If primopN is first sign-extended
14503 to opN and then zero-extended to result type, set primopN to opN.
14505 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
14507 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
14508 for barrier handlers.
14510 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14512 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
14513 UNSPEC constants to be in the unspec enumeration, and redefine
14514 all UNSPECV constants to be in the unspecv enumeration, so that
14515 dumps print which unspec/unspec_volatile this is.
14516 * config/rs6000/vector.md (UNSPEC_*): Ditto.
14517 * config/rs6000/paired.md (UNSPEC_*): Ditto.
14518 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
14519 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
14520 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
14522 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
14523 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
14524 UNSPECV_LWSYNC, since these are used as unspec_volatile.
14525 * config/rs6000/sync.md (isync, lwsync): Ditto.
14527 2011-03-21 Richard Guenther <rguenther@suse.de>
14529 * params.def (lto-min-partition): Fix typo.
14531 2011-03-21 Richard Guenther <rguenther@suse.de>
14534 * c-decl.c (grokdeclarator): Drop to the main variant only
14535 for array types. Drop flag_gen_aux_info check.
14537 2011-03-21 Richard Guenther <rguenther@suse.de>
14539 PR translation/47911
14540 * params.def (lto-partitions): Fix typo.
14541 (lto-min-partition): Fix wording.
14543 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
14545 * config/rs6000/t-freebsd: Remove duplication from file.
14547 2011-03-21 Richard Guenther <rguenther@suse.de>
14549 PR middle-end/47661
14550 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
14552 2011-03-21 Richard Guenther <rguenther@suse.de>
14555 * params.def (lto-partitions): Require at least 1 partition.
14557 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14559 * gthr-solaris.h: Remove.
14560 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
14561 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
14562 (LIB_SPEC): Likewise.
14563 * config/sol2.opt (threads): Remove.
14564 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
14565 (sparc*-*-solaris2*): Likewise.
14566 * configure.ac (enable_threads): Enable solaris support.
14567 * configure: Regenerate.
14568 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
14569 * doc/install.texi (Configuration, --enable-threads=lib): Remove
14572 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14574 * config.gcc: Obsolete *-*-solaris2.8*.
14575 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14577 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14580 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
14581 reference. Solaris 8 perl works.
14583 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14586 * doc/install.texi (Prerequisites): Move jar etc. up.
14587 Explain support library version requirements.
14589 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14592 * doc/install.texi (Prerequisites): Move Perl to build
14593 requirements. Always necessary on Solaris 2 with Sun ld.
14595 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14597 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
14599 (Specific, i?86-*-solaris2.[89]): Likewise.
14600 (Specific, i?86-*-solaris2.10): Likewise.
14601 (Specific, mips-sgi-irix6): Likewise.
14602 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
14603 Update for binutils 2.21.
14605 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14607 * configure.ac (gcc_cv_lto_plugin): Fix typo.
14608 Allow -fuse-linker-plugin for non-default plugin linker.
14609 * configure: Regenerate.
14611 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
14614 * gengtype.c (files_rules): Added rule for cp/parser.h.
14616 2011-03-21 Jakub Jelinek <jakub@redhat.com>
14619 * config/s390/s390.c (s390_delegitimize_address): Don't call
14620 lowpart_subreg if orig_x has BLKmode.
14622 2011-03-21 Kai Tietz <ktietz@redhat.com>
14625 * doc/plugins.texi: Adjust documentation for plugin register_callback.
14626 * tree.h (attribute_spec): Add new member affects_type_identity.
14627 * attribs.c (empty_attribute_table): Adjust attribute_spec
14629 * config/alpha/alpha.c: Likewise.
14630 * config/arc/arc.c: Likewise.
14631 * config/arm/arm.c: Likewise.
14632 * config/avr/avr.c: Likewise.
14633 * config/bfin/bfin.c: Likewise.
14634 * config/crx/crx.c: Likewise.
14635 * config/darwin.h: Likewise.
14636 * config/h8300/h8300.c: Likewise.
14637 * config/i386/cygming.h: Likewise.
14638 * config/i386/i386.c: Likewise.
14639 * config/ia64/ia64.c: Likewise.
14640 * config/m32c/m32c.c: Likewise.
14641 * config/m32r/m32r.c: Likewise.
14642 * config/m68hc11/m68hc11.c: Likewise.
14643 * config/m68k/m68k.c: Likewise.
14644 * config/mcore/mcore.c: Likewise.
14645 * config/mep/mep.c: Likewise.
14646 * config/microblaze/microblaze.c: Likewise.
14647 * config/mips/mips.c: Likewise.
14648 * config/rs6000/rs6000.c: Likewise.
14649 * config/rx/rx.c: Likewise.
14650 * config/sh/sh.c: Likewise.
14651 * config/sol2.h: Likewise.
14652 * config/sparc/sparc.c: Likewise.
14653 * config/spu/spu.c: Likewise.
14654 * config/stormy16/stormy16.c: Likewise.
14655 * config/v850/v850.c: Likewise.
14657 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
14659 * simplify-rtx.c (simplify_binary_operation_1): Handle
14660 (xor (and A B) C) case when B and C are both constants.
14662 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
14664 * tree-dfa.c (add_referenced_var): Fix typo in comment.
14666 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
14669 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
14671 2011-03-20 Jakub Jelinek <jakub@redhat.com>
14673 PR rtl-optimization/48156
14674 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
14675 assume df and df_lr are not NULL.
14677 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14680 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
14681 between a call and its CALL_ARG_LOCATION note.
14683 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
14686 * config/sh/sh.c (find_barrier): Don't emit a constant pool
14687 between a call and its corresponding CALL_ARG_LOCATION note.
14689 2011-03-19 Anatoly Sokolov <aesok@post.ru>
14691 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
14692 instead of loop. Use HARD_REGISTER_NUM_P predicate.
14693 * haifa-sched.c (setup_ref_regs): Ditto.
14694 * caller-save.c (add_used_regs_1): Ditto.
14695 * dse.c (look_for_hardregs): Ditto.
14696 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
14697 * sched-rgn.c (check_live_1): Ditto.
14699 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14701 * c-decl.c (diagnose_mismatched_decls): Give an error for
14702 redefining a typedef with variably modified type.
14704 2011-03-18 Joseph Myers <joseph@codesourcery.com>
14706 * c-decl.c (grokfield): Don't allow typedefs for structures or
14707 unions with no tag by default.
14708 * doc/extend.texi (Unnamed Fields): Update.
14710 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
14712 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
14713 Rewrite using indirect functions.
14714 (lwp_slwpcb): Ditto.
14715 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
14716 (avx_vinsertf128<mode>): Ditto.
14718 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14720 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
14723 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14725 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
14726 splitting between a call and its corresponding CALL_ARG_LOCATION note.
14728 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14730 PR rtl-optimization/48170
14731 * gcse.c (hoist_code): Remove bogus asserts.
14733 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
14735 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
14736 computation for prologue/epilogue.
14738 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14740 * Makefile.in (check-consistency): Remove.
14742 2011-03-18 Jakub Jelinek <jakub@redhat.com>
14745 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
14746 arange_table_in_use is 0, but either text_section_used or
14747 cold_text_section_used is true. Don't call it if
14748 !info_section_emitted.
14750 2011-03-18 Anatoly Sokolov <aesok@post.ru>
14752 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
14753 FUNCTION_VALUE_REGNO_P): Remove.
14754 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
14756 * config/avr/avr.c (avr_ret_register): Make static inline.
14757 (avr_function_value_regno_p): New function.
14758 (avr_libcall_value): Make static. Add 'func' argument.
14759 (avr_function_value): Make static. Rename 'func' argument to
14760 'fn_decl_or_type', forward it to avr_libcall_value. Call
14761 avr_ret_register function instead of RET_REGISTER macro.
14762 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14764 2011-03-18 Jason Merrill <jason@redhat.com>
14767 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
14769 2011-03-18 Richard Guenther <rguenther@suse.de>
14771 * doc/install.texi (--enable-gold): Remove.
14772 (--with-plugin-ld): Document.
14773 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
14775 2011-03-18 Andrew Pinski <pinskia@gmail.com>
14777 PR middle-end/47790
14778 * expr.c (optimize_bitfield_assignment_op): Revamp to work
14779 again after expansion changes.
14781 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
14783 * combine.c (try_combine): Do simplification only call of
14784 subst() on i2 even when i1 is present. Update comments.
14786 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
14788 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
14789 and UNSPEC_PCREL_SYMOFF.
14791 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14793 * config/s390/s390.md: Use define_c_enum for the unspec constant
14796 2011-03-18 Richard Henderson <rth@redhat.com>
14797 Jakub Jelinek <jakub@redhat.com>
14800 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
14801 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
14803 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14805 PR middle-end/47725
14806 * combine.c (cant_combine_insn_p): Don't check zero/sign
14807 extended hard registers.
14809 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14811 PR middle-end/47725
14812 * combine.c (cant_combine_insn_p): Check zero/sign extended
14815 2011-03-17 Anatoly Sokolov <aesok@post.ru>
14817 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14818 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
14819 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
14820 Change return type to bool.
14821 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14823 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14826 * var-tracking.c (prepare_call_arguments): If CALL target
14827 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
14828 pc instead of looking it up using cselib_lookup and use
14829 Pmode for it if x has VOIDmode.
14830 * dwarf2out.c (gen_subprogram_die): If also both first and
14831 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
14834 * function.c (assign_parms): For data.passed_pointer parms
14835 use MEM of data.entry_parm instead of data.entry_parm itself
14836 as DECL_INCOMING_RTL.
14837 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
14838 also when passed and declared mode is the same, DECL_RTL
14839 is a MEM with pseudo as address and DECL_INCOMING_RTL is
14842 2011-03-16 Jeff Law <law@redhat.com>
14844 PR rtl-optimization/37273
14845 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14846 handle them like argument loads from stack slots. Do not double
14847 count memory for memory constants and argument loads from stack slots.
14849 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14852 * var-tracking.c (prepare_call_arguments): Check SUBREG.
14854 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
14857 * config/i386/i386.opt: Add Save to -mavx and -mfma.
14859 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14862 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
14864 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
14865 Clear call_arg_locations and call_arg_loc_last always.
14867 PR middle-end/48152
14868 * var-tracking.c (prepare_call_arguments): If argument needs to be
14869 passed by reference, adjust argtype and mode.
14871 2011-03-17 Richard Guenther <rguenther@suse.de>
14873 PR middle-end/48134
14874 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
14875 a value make sure to fold the statement.
14877 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
14880 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
14881 return condition with !cfun->calls_alloca.
14883 2011-03-17 Richard Guenther <rguenther@suse.de>
14886 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14887 origin for decls in other ltrans units.
14888 (input_varpool_node): Likewise.
14890 2011-03-17 Richard Guenther <rguenther@suse.de>
14892 PR middle-end/48165
14893 * tree-object-size.c (compute_object_offset): Properly return
14894 the offset operand of MEM_REFs as sizetype.
14896 2011-03-17 Jakub Jelinek <jakub@redhat.com>
14898 PR rtl-optimization/48141
14899 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
14900 * dse.c: Include params.h.
14901 (active_local_stores_len): New variable.
14902 (add_wild_read, dse_step1): Clear it when setting active_local_stores
14904 (record_store, check_mem_read_rtx): Decrease it when removing
14906 (scan_insn): Likewise. Increase it when adding to chain, if it
14907 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14908 set active_local_stores to NULL before the addition.
14909 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14911 PR rtl-optimization/48141
14912 * dse.c (record_store): If no positions are needed in an insn
14913 that cannot be deleted, at least unchain it from active_local_stores.
14915 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14918 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14919 (lookup_type_die_strip_naming_typedef): ... here.
14920 (get_context_die): Use it.
14921 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14922 the anonymous struct named by the naming typedef.
14924 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14927 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14928 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14930 2011-03-16 Jeff Law <law@redhat.com>
14932 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14933 check for operands of conditional. Allow type to be a pointer.
14935 2011-03-16 Richard Guenther <rguenther@suse.de>
14937 PR tree-optimization/48149
14938 * fold-const.c (fold_binary_loc): Fold
14939 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14941 2011-03-16 Richard Guenther <rguenther@suse.de>
14943 PR tree-optimization/26134
14944 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14945 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14946 (non_rewritable_mem_ref_base): Handle complex type component
14947 accesses, constrain offsets for vector and complex extracts
14950 2011-03-16 Richard Guenther <rguenther@suse.de>
14952 PR tree-optimization/48146
14953 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14954 operands avoiding the need for renaming.
14956 2011-03-16 Richard Guenther <rguenther@suse.de>
14958 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14959 constant folding. Move MEM_REF canonicalization first.
14960 Rely on fold_const_aggregate_ref for initializer folding.
14961 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14963 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14965 PR middle-end/48136
14966 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14967 arg0/arg1 or their arguments are always fold converted to matching
14970 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14973 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14976 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14977 Handle in-tree gold.
14978 (ld_vers): Extract binutils version for gold.
14979 (gcc_cv_ld_hidden): Handle gold here.
14980 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14981 * configure: Regenerate.
14982 * config.in: Regenerate.
14983 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14984 -fuse-linker-plugin otherwise.
14985 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14986 (LINK_COMMAND_SPEC): Use it.
14987 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14989 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14991 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14992 * calls.c: Remove debug.h include.
14993 (emit_call_1): Don't call virtual_call_token debug hook.
14994 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14995 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14996 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14997 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14998 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14999 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15000 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15001 dwarf2out_virtual_call): Remove.
15002 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15003 copy_call_info and virtual_call hooks.
15004 (dwarf2out_init): Don't initialize vcall_insn_table,
15005 debug_dcall_section and debug_vcall_section.
15006 (prune_unused_types): Don't mark nodes from dcall_table.
15007 (dwarf2out_finish): Don't output dcall or vcall tables.
15008 * final.c (final_scan_insn): Don't call direct_call or
15009 virtual_call debug hooks.
15010 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15011 virtual_call_token, copy_call_info and virtual_call hooks.
15012 (debug_nothing_uid): Remove prototype.
15013 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15014 copy_call_info and virtual_call hooks.
15015 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15016 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15017 * debug.c (do_nothing_debug_hooks): Likewise.
15018 (debug_nothing_uid): Remove.
15019 * doc/invoke.texi (-fenable-icf-debug): Remove.
15020 * common.opt (-fenable-icf-debug): Likewise.
15022 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15023 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15024 call's MEM. Handle functions returning aggregate through a hidden
15025 first pointer. For virtual calls add clobbered pc to call arguments
15027 * dwarf2out.c (gen_subprogram_die): Emit
15028 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15032 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15033 * rtl.h (ENTRY_VALUE_EXP): Define.
15034 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15035 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15036 * print-rtl.c (print_rtx): Likewise.
15037 * gengtype.c (adjust_field_rtx_def): Likewise.
15038 * var-tracking.c (vt_add_function_parameter): Adjust
15039 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15040 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15041 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15042 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15043 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15045 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15046 Call var_location debug hook even on CALL_INSNs.
15047 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15048 * rtl.def (ENTRY_VALUE): New.
15049 * dwarf2out.c: Include cfglayout.h.
15050 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15051 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15052 (struct call_arg_loc_node): New type.
15053 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15054 tail_call_site_count): New variables.
15055 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15056 DW_TAG_GNU_call_site_parameter.
15057 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15058 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15059 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15060 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15061 and DW_AT_GNU_all_source_call_sites.
15062 (mem_loc_descriptor): Handle ENTRY_VALUE.
15063 (add_src_coords_attributes): Don't add enything if
15064 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15065 (dwarf2out_abstract_function): Save and clear call_arg_location,
15066 call_site_count and tail_call_site_count around dwarf2out_decl call.
15067 (gen_call_site_die): New function.
15068 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15069 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15070 (dwarf2out_function_decl): Clear call_arg_locations,
15071 call_arg_loc_last, set call_site_count and tail_call_site_count
15072 to -1 and free block_map.
15073 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15074 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15075 followed by any real instructions.
15076 (dwarf2out_begin_function): Set call_site_count and
15077 tail_call_site_count to 0.
15078 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15079 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15080 attempt to force a DIE for it and worst case remove the attribute.
15081 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15082 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15084 * var-tracking.c: Include tm_p.h.
15085 (vt_stack_adjustments): For calls call note_register_arguments.
15086 (argument_reg_set): New variable.
15087 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15088 ensure the VALUE is resolved.
15089 (call_arguments): New variable.
15090 (prepare_call_arguments): New function.
15091 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15092 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15093 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15094 always use the best expression.
15095 (vt_expand_loc): Add ignore_cur_loc argument.
15096 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15097 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15098 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15099 note for all calls.
15100 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15101 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15102 argument. Don't call cselib_preserve_only_values and
15103 cselib_reset_table.
15104 (note_register_arguments): New function.
15105 (vt_initialize): Compute argument_reg_set. Call
15106 vt_add_function_parameters before processing basic blocks instead of
15107 afterwards. For calls call prepare_call_arguments before calling
15108 cselib_process_insn.
15109 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15110 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15111 (var-tracking.o): Depend on $(TM_P_H).
15112 * cfglayout.h (insn_scope): New prototype.
15113 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15114 * cfglayout.c (insn_scope): No longer static.
15115 * insn-notes.def (CALL_ARG_LOCATION): New.
15116 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15117 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15118 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15119 nothing for DECL_EXTERNAL BLOCK_VARS.
15121 2011-03-16 Alan Modra <amodra@gmail.com>
15124 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15125 create invalid offset address for vsx splat insn.
15126 * config/rs6000/predicates.md (splat_input_operand): New.
15127 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15129 2011-03-15 Xinliang David Li <davidxl@google.com>
15132 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15133 (normalize_preds): New function.
15134 (is_use_properly_guarded): Normalize def predicates.
15136 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15139 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15140 in the output template.
15142 2011-03-15 Richard Guenther <rguenther@suse.de>
15144 PR middle-end/47650
15145 * tree-pretty-print.c (dump_function_declaration): Properly
15146 dump unprototyped and varargs function types.
15148 2011-03-15 Richard Guenther <rguenther@suse.de>
15150 PR tree-optimization/13954
15151 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15154 2011-03-15 Richard Guenther <rguenther@suse.de>
15156 PR tree-optimization/48037
15157 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15158 selects into BIT_FIELD_REFs.
15159 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15162 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15164 PR tree-optimization/48129
15165 * builtins.c (fold_builtin_snprintf): Convert to type of
15166 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15167 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15169 2011-03-15 Richard Guenther <rguenther@suse.de>
15171 PR tree-optimization/41490
15172 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15173 value but with VUSE.
15174 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15176 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15177 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15178 * tree-tailcall.c (find_tail_calls): Ignore returns.
15180 2011-03-15 Richard Guenther <rguenther@suse.de>
15182 PR middle-end/48031
15183 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15184 or variable-indexed array accesses when in gimple form.
15186 2011-03-15 Richard Guenther <rguenther@suse.de>
15188 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15190 2011-03-15 Alan Modra <amodra@gmail.com>
15193 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15194 presume symbol_refs without a symbol_ref_decl are suitably
15195 aligned, nor other trees we may see here. Handle anchor symbols.
15196 (legitimate_constant_pool_address_p): Comment. Add mode param.
15197 Check cmodel=medium addresses. Adjust all calls.
15198 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15199 creating cmodel=medium optimized access to locals.
15200 * config/rs6000/constraints.md (R): Pass QImode to
15201 legitimate_constant_pool_address_p.
15202 * config/rs6000/predicates.md (input_operand): Pass mode to
15203 legitimate_constant_pool_address_p.
15204 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15207 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15210 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15211 64-bit constants being loaded into registers other than GPRs such
15212 as loading 0 into a VSX register.
15214 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15216 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15218 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15220 PR middle-end/47917
15221 * builtins.c (fold_builtin_snprintf): New function.
15222 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15223 (fold_builtin_4): Likewise.
15225 PR middle-end/38878
15226 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15227 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15228 and C - X == X also strip nops from +/-/p+ operand.
15229 When optimizing -X == C, fold C to arg0's type.
15232 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15233 emit it as add_AT_int instead of add_AT_unsigned.
15235 2011-03-14 Tom Tromey <tromey@redhat.com>
15237 * unwind-dw2.c: Include sys/sdt.h if it exists.
15238 (_Unwind_DebugHook): Use STAP_PROBE2.
15239 * config.in, configure: Rebuild.
15240 * configure.ac: Check for sys/sdt.h.
15242 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15244 * config/i386/i386.md (ROUND_FLOOR): New constant.
15245 (ROUND_CEIL): Ditto.
15246 (ROUND_TRUNC): Ditto.
15247 (ROUND_MXCSR): Ditto.
15248 (ROUND_NO_EXC): Ditto.
15249 (rint<mode>2): Use new defines instead of numerical constants.
15250 (floor<mode>2): Ditto.
15251 (ceil<mode>2): Ditto.
15252 (btrunc<mode>2): Ditto.
15253 * config/i386/i386-builtin-types.def: Define ROUND function type
15255 * config/i386/i386.c (enum ix86_builtins): Add
15256 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
15257 (struct builtin_description): Add
15258 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
15259 (ix86_expand_sse_round): New static function.
15260 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
15262 (ix86_builtin_vectorized_function): Handle
15263 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15265 2011-03-14 Tom Tromey <tromey@redhat.com>
15267 * c-parser.c (c_parser_asm_string_literal): Clear
15268 warn_overlength_strings.
15270 2011-03-14 Tom Tromey <tromey@redhat.com>
15272 * c-parser.c (disable_extension_diagnostics): Save
15273 warn_overlength_strings.
15274 (restore_extension_diagnostics): Restore warn_overlength_strings.
15276 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15278 * BASE-VER: Change to 4.7.0.
15280 2011-03-14 Richard Guenther <rguenther@suse.de>
15282 PR middle-end/48098
15283 * tree.c (build_vector_from_val): Adjust assert to requirements
15286 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15289 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
15291 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
15293 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
15294 terms of target_flags_explicit. Adjust copyright year.
15296 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
15297 * config/rs6000/t-freebsd: New file. Add override for
15300 2011-03-13 Chris Demetriou <cgd@google.com>
15302 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
15303 (-fno-diagnostics-show-option): this, to reflect current default.
15304 (-Werror=): Update text about -fno-diagnostics-show-option.
15306 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
15309 * config/rs6000/predicates.md (easy_vector_constant_add_self,
15310 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
15311 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
15312 mode is not V2DImode or V2DFmode.
15313 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15314 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
15315 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
15317 (movdi_internal64): Likewise.
15319 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
15321 PR tree-optimization/47127
15322 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
15324 (set_cloog_options): Same.
15325 (scop_to_clast): Same.
15326 (print_clast_stmt): Do not call cloog_state_malloc and
15328 (print_generated_program): Same.
15330 * graphite-clast-to-gimple.h (cloog_state): Declared.
15331 (scop_to_clast): Adjust declaration.
15332 * graphite.c (cloog_state): Defined here.
15333 (graphite_initialize): Call cloog_state_malloc.
15334 (graphite_finalize): Call cloog_state_free.
15336 2011-03-11 Jason Merrill <jason@redhat.com>
15338 * attribs.c (lookup_attribute_spec): Take const_tree.
15341 2011-03-11 Joseph Myers <joseph@codesourcery.com>
15343 * config/sparc/sparc.c (sparc_option_override): Use
15344 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
15346 2011-03-11 Richard Guenther <rguenther@suse.de>
15348 PR tree-optimization/48067
15349 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
15350 multiplication result will be only used once on the target
15353 2011-03-11 Richard Guenther <rguenther@suse.de>
15355 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
15357 2011-03-11 Richard Guenther <rguenther@suse.de>
15360 * tree.c (find_decls_types_r): Do not walk types only reachable
15361 from IDENTIFIER_NODEs.
15363 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15365 PR middle-end/48044
15366 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
15367 all vnode->force_output nodes as needed.
15369 2011-03-11 Jason Merrill <jason@redhat.com>
15372 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
15373 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
15375 2011-03-11 Martin Jambor <mjambor@suse.cz>
15377 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
15380 2011-03-11 Jakub Jelinek <jakub@redhat.com>
15382 PR tree-optimization/48063
15383 * ipa-inline.c (cgraph_decide_inlining): Don't try to
15384 inline functions called once if !tree_can_inline_p (node->callers).
15386 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
15388 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
15390 * config/score/score3.c: Delete.
15391 * config/score/score3.h: Delete.
15392 * config/score/mul-div.S: Delete.
15393 * config/score/sfp-machine.h: Add new file.
15394 * config/score/constraints.md: Add new file.
15395 * config/score/t-score-softfp: Add new file.
15396 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
15397 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
15398 (score7_extra_constraint): Delete.
15399 (score7_option_override): Remove unused code.
15400 * config/score/score.c: Remove score3 and score5 define and code.
15401 * config/score/score.h: Remove score3 and score5 define and code.
15402 * config/score/score.md: Remove score3 template and unusual insn.
15403 * config/score/score.opt: Remove score3 and score5 options.
15405 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15407 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
15408 when _HPUX_SOURCE is defined.
15409 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
15411 2011-03-10 Jason Merrill <jason@redhat.com>
15414 * stor-layout.c (layout_type): Don't set structural equality
15415 on arrays of incomplete type.
15416 * tree.c (type_hash_eq): Handle comparing them properly.
15418 2011-03-10 Jakub Jelinek <jakub@redhat.com>
15421 * config/s390/s390.c (s390_delegitimize_address): Make sure the
15422 result mode matches original rtl mode.
15424 2011-03-10 Nick Clifton <nickc@redhat.com>
15426 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
15427 (andsi3, andsi3_flags): Fix timings for three operand alternative.
15429 2011-03-09 Jakub Jelinek <jakub@redhat.com>
15431 PR rtl-optimization/47866
15432 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
15433 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
15434 if target wasn't scalar.
15435 * function.c (assign_stack_temp_for_type): Assert that neither
15436 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
15437 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
15439 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
15441 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15443 * config/s390/s390-protos.h (s390_label_align): New prototype.
15444 * config/s390/s390.c (s390_label_align): New function.
15445 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
15447 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15450 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
15451 V2DI/V2DF constants. Only all 0's or all 1's are easy.
15452 (output_vec_const_move): Ditto.
15454 2011-03-08 Anatoly Sokolov <aesok@post.ru>
15456 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
15457 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
15458 * config/mips/mips.c (mips_preferred_reload_class): Make static.
15459 Change 'rclass' argument and result type to reg_class_t.
15460 (TARGET_PREFERRED_RELOAD_CLASS): Define.
15462 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
15464 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15465 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
15466 (TARGET_MEMORY_MOVE_COST): Define.
15467 (avr_register_move_cost, avr_memory_move_cost): New Functions.
15469 2011-03-08 Jakub Jelinek <jakub@redhat.com>
15472 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
15475 PR tree-optimization/48022
15476 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
15479 2011-03-07 Jakub Jelinek <jakub@redhat.com>
15482 * var-tracking.c (find_use_val): Return NULL for
15483 cui->sets && cui->store_p BLKmode MEMs.
15485 2011-03-07 Anatoly Sokolov <aesok@post.ru>
15487 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
15489 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
15490 xstormy16_print_operand_address): Remove.
15491 * config/stormy16/stormy16.c (xstormy16_print_operand,
15492 xstormy16_print_operand_address): Make static.
15493 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
15495 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
15498 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
15499 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
15502 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
15505 * cfgloopmanip.c (fix_bb_placements): Return immediately
15506 if FROM is BASE_LOOP's header.
15508 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
15510 * gimplify.c (gimplify_function_tree): Fix building calls
15511 to __builtin_return_address.
15513 2011-03-07 Alan Modra <amodra@gmail.com>
15515 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
15516 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
15517 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
15518 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
15520 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
15521 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
15522 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
15523 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
15524 * config/rs6000/rs6000.c
15525 (rs6000_elf_end_indicate_exec_stack): Rename to..
15526 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
15527 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
15528 (rs6000_file_start): ..here.
15529 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
15530 file scope variables.
15531 (call_ABI_of_interest): New function.
15532 (init_cumulative_args): Set above vars when function return value
15533 is a float, vector, or small struct.
15534 (rs6000_function_arg_advance_1): Likewise for function args.
15535 (rs6000_va_start): Set rs6000_passes_float if variable arg function
15536 references float args.
15538 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
15540 * doc/cfg.texi: Remove "See" before @ref.
15541 * doc/invoke.texi: Likewise.
15543 2011-03-05 Jason Merrill <jason@redhat.com>
15545 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
15547 2011-03-05 Anthony Green <green@moxielogic.com>
15549 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
15551 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
15553 PR rtl-optimization/47899
15554 * cfgloopmanip.c (fix_bb_placements): Fix first argument
15555 to flow_loop_nested_p when moving the loop upward.
15557 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
15560 * arm.md (movhi_insn_arch4): Accept any immediate constant.
15562 2011-03-05 Jakub Jelinek <jakub@redhat.com>
15564 PR tree-optimization/47967
15565 * ipa-cp.c (build_const_val): Return NULL instead of creating
15566 VIEW_CONVERT_EXPR for mismatching sizes.
15567 (ipcp_create_replace_map): Return NULL if build_const_val failed.
15568 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
15569 give up on versioning.
15571 2011-03-05 Alan Modra <amodra@gmail.com>
15574 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15575 full cmodel medium/large lo_sum + high addresses.
15577 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15579 * config/s390/s390.c (s390_decompose_address): Reject non-literal
15580 pool references in UNSPEC_LTREL_OFFSET.
15582 2011-03-04 Jan Hubicka <jh@suse.cz>
15585 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
15586 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
15587 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
15589 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
15590 cgraph_add_thunk): Add node pointers.
15591 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
15592 associated to right node.
15593 (input_node): Update use of cgraph_same_body_alias
15594 and cgraph_add_thunk.
15596 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
15598 * config/i386/i386.opt (mprefer-avx128): New flag.
15599 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
15600 modes when the flag -mprefer-avx128 is on.
15602 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
15604 * dwarf2out.c (compare_loc_operands): Fix address handling.
15606 2011-03-04 Alan Modra <amodra@gmail.com>
15608 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
15610 2011-03-04 Richard Guenther <rguenther@suse.de>
15612 PR middle-end/47968
15613 * expmed.c (extract_bit_field_1): Prefer vector modes that
15614 vec_extract patterns can handle.
15616 2011-03-04 Richard Guenther <rguenther@suse.de>
15618 PR middle-end/47975
15619 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
15621 2011-03-04 Richard Henderson <rth@redhat.com>
15623 * explow.c (emit_stack_save): Remove 'after' parameter.
15624 (emit_stack_restore): Likewise.
15625 * expr.h: Update to match.
15626 * builtins.c, calls.c, stmt.c: Likewise.
15627 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
15628 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
15629 * function.c (expand_function_end): Insert the emit_stack_save
15630 sequence before parm_birth_insn instead of after.
15632 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
15634 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
15635 (ssse3_pmaddubsw128): Ditto.
15636 (ssse3_pmaddubsw): Ditto.
15638 2011-03-03 Steve Ellcey <sje@cup.hp.com>
15640 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
15642 2011-03-03 Jakub Jelinek <jakub@redhat.com>
15645 * gimplify.c (omp_add_variable): Only call omp_notice_variable
15646 on TYPE_SIZE_UNIT if it is a DECL.
15649 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
15650 first operand is not is_gimple_mem_ref_addr, try to fold it.
15651 If the operand still isn't is_gimple_mem_ref_addr, clear
15654 2011-03-03 Richard Guenther <rguenther@suse.de>
15656 PR middle-end/47283
15657 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
15659 (refs_may_alias_p_1): For release branches return true if
15660 we are confused by our input.
15662 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15664 * config/s390/s390.c (s390_function_value): Rename to ...
15665 (s390_function_and_libcall_value): ... this.
15666 (s390_function_value): New function.
15667 (s390_libcall_value): New function.
15668 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
15669 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
15670 target macro definitions.
15671 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
15673 2011-03-02 Joseph Myers <joseph@codesourcery.com>
15675 * config/i386/freebsd64.h (CC1_SPEC): Define.
15676 * config/i386/linux64.h (CC1_SPEC): Define.
15677 * config/i386/x86-64.h (CC1_SPEC): Don't define.
15679 2011-03-02 Anatoly Sokolov <aesok@post.ru>
15681 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15683 * config/stormy16/stormy16.c: Include reload.h.
15684 (xstormy16_memory_move_cost): New function.
15685 (TARGET_MEMORY_MOVE_COST): Define.
15687 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
15689 PR rtl-optimization/47925
15690 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
15691 with side effects. Remove the more-specific check for volatile asms.
15693 2011-03-02 Alan Modra <amodra@gmail.com>
15696 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
15697 toc relative addresses for valid offsets.
15699 2011-03-01 Richard Guenther <rguenther@suse.de>
15701 PR tree-optimization/47890
15702 * tree-vect-loop.c (get_initial_def_for_induction): Set
15703 related stmt properly.
15705 2011-03-01 Richard Guenther <rguenther@suse.de>
15708 * lto-streamer.c (lto_record_common_node): Also register
15709 the canonical type.
15711 2011-03-01 Richard Guenther <rguenther@suse.de>
15714 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15715 Do not stream DECL_ABSTRACT_ORIGIN.
15716 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15717 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15718 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15719 Do not stream DECL_ABSTRACT_ORIGIN.
15720 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
15721 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
15723 2011-02-28 Anatoly Sokolov <aesok@post.ru>
15725 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
15726 FUNCTION_VALUE_REGNO_P): Remove.
15727 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
15728 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
15729 Add 'outgoing' argument.
15730 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
15732 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15733 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15735 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
15738 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
15739 (lookup_filename): Likewise.
15740 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
15742 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
15743 Jakub Jelinek <jakub@redhat.com>
15745 PR middle-end/47893
15746 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
15747 (assign_stack_local_1): Change last argument type to int.
15748 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
15749 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
15750 don't record padding space into frame_space_list nor use those areas.
15751 (assign_stack_local): Adjust caller.
15752 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
15753 of assign_stack_local, pass 0 as last argument.
15754 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
15757 2011-02-28 Jakub Jelinek <jakub@redhat.com>
15760 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
15761 Use target address_mode and pointer_mode hooks instead of hardcoded
15762 Pmode and ptr_mode. Handle some simple cases of extending if
15763 POINTERS_EXTEND_UNSIGNED < 0.
15764 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
15765 Call convert_debug_memory_address.
15766 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
15767 convert_debug_memory_address.
15769 PR middle-end/46790
15770 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
15771 * configure: Regenerated.
15772 * config.in: Regenerated.
15773 * varasm.c (default_function_section): Return NULL
15774 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
15776 2011-02-28 Martin Jambor <mjambor@suse.cz>
15778 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
15779 the description to match the printed values.
15781 2011-02-28 Richard Guenther <rguenther@suse.de>
15783 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
15784 of the copied scope tree.
15786 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15788 * doc/extend.texi (Function Attributes): Avoid deeply (and
15789 wrongly) nested tables.
15791 2011-02-27 Jakub Jelinek <jakub@redhat.com>
15793 PR middle-end/47903
15794 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
15795 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
15796 r isn't op0 nor op1.
15798 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15800 * config/avr/avr.md: Remove magic comment for emacs.
15802 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
15805 * config/avr/avr.c (avr_option_override): Use error on bad options.
15806 (avr_help): New function.
15807 (TARGET_HELP): Define.
15809 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
15812 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
15813 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
15815 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
15817 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
15818 (ARM Options): Ditto.
15819 (i386 and x86-64 Options): Ditto.
15820 (RX Options): Ditto.
15821 (SPARC Options): Ditto.
15823 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
15825 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
15826 FreeBSD 6 and later. Generally use cpu generic.
15828 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15830 * doc/cpp.texi: Update copyright years.
15832 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
15835 * config/lm32/lm32.md (ashrsi3): Added needed variable.
15837 2011-02-25 Jon Beniston <jon@beniston.com>
15840 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
15841 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15842 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
15843 (lm32_block_move_inline): Add type cast to remove warning.
15844 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
15845 (gen_int_relational): Move declarations to start of function.
15847 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
15849 PR tree-optimization/45470
15850 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
15851 can throw internally only.
15852 * tree-vect-stmts.c (vectorizable_call): Likewise.
15854 2011-02-24 Anatoly Sokolov <aesok@post.ru>
15856 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
15857 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15858 * config/stormy16/stormy16-protos.h
15859 (xstormy16_preferred_reload_class): Remove.
15860 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
15861 static. Change 'rclass' argument and return type to reg_class_t.
15862 (TARGET_PREFERRED_RELOAD_CLASS,
15863 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15865 2011-02-24 Richard Guenther <rguenther@suse.de>
15867 * lto-streamer-in.c (input_bb): Do not find referenced vars
15868 in debug statements.
15870 2011-02-23 Jason Merrill <jason@redhat.com>
15872 * common.opt (fabi-version): Document v5 and v6.
15874 2011-02-23 Richard Guenther <rguenther@suse.de>
15876 PR tree-optimization/47849
15877 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
15879 2011-02-23 Jie Zhang <jie@codesourcery.com>
15881 * opts-common.c (decode_cmdline_option): Print empty string
15882 argument as "" in decoded->orig_option_with_args_text.
15883 * gcc.c (execute): Print empty string argument as ""
15884 in the verbose output.
15885 (do_spec_1): Keep empty string argument.
15887 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
15889 * config.gcc: Declare score-* and crx-* obsolete.
15891 2011-02-23 Jie Zhang <jie@codesourcery.com>
15893 PR rtl-optimization/47763
15894 * web.c (web_main): Ignore naked clobber when replacing register.
15896 2011-02-22 Anatoly Sokolov <aesok@post.ru>
15898 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15901 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
15904 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15906 2011-02-22 Mike Stump <mikestump@comcast.net>
15908 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15910 * configure: Regenerate.
15912 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15914 PR rtl-optimization/46002
15915 * ira-color.c (update_copy_costs): Change class intersection
15916 test to reg_class_contents[] test of 'hard_regno'.
15918 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15920 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15921 than Driver option.
15922 * config/hpux11.opt (mt): Likewise.
15923 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15924 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15925 * config/vax/elf.opt (mno-asm-pic): Likewise.
15926 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15928 2011-02-21 Mike Stump <mikestump@comcast.net>
15931 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15932 tree so we can get save the type.
15933 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15934 for CFString instead of trying to use past the end of the builtins.
15935 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15936 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15937 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15938 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15939 Rename to darwin_builtin_cfstring.
15940 (darwin_init_cfstring_builtins): Return the built type.
15942 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15945 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15946 (_mm256_insert_epi64): Use _mm_insert_epi64.
15948 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15950 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15951 * config/stormy16/stormy16-protos.h
15952 (xstormy16_mode_dependent_address_p): Remove.
15953 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15954 Make static. Change return type to bool. Change argument type to
15955 const_rtx. Remove dead code.
15956 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15958 2011-02-21 Richard Guenther <rguenther@suse.de>
15961 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15962 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15963 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15965 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15966 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15968 2011-02-20 Richard Guenther <rguenther@suse.de>
15971 * tree.c (free_lang_data_in_decl): Clean builtins from
15972 the TU decl BLOCK_VARS.
15974 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15978 * haifa-sched.c (fix_tick_ready): Skip tick computation
15981 2011-02-19 Richard Guenther <rguenther@suse.de>
15984 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15985 Remove lazy BLOCK_VARS streaming.
15986 (lto_input_ts_block_tree_pointers): Likewise.
15987 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15989 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15991 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15993 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15995 * config/i386/biarch32.h, config/i386/mach.h,
15996 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15998 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16001 * config/i386/i386.md (peephole2 for shift and plus): Use
16002 operands[1] original mode in the first insn.
16004 2011-02-18 Mike Stump <mikestump@comcast.net>
16006 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16008 2011-02-18 Jan Hubicka <jh@suse.cz>
16010 PR middle-end/47788
16011 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16012 to zero when the function is not inlinable at all.
16014 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16016 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16017 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16018 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16019 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16020 * config/pa/t-pa64: Likewise.
16021 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16023 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16026 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16028 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16031 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16033 2011-02-18 Anatoly Sokolov <aesok@post.ru>
16035 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16036 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16037 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16038 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16039 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16040 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16041 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16042 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16043 m32r_legitimate_address_p): New functions.
16044 * config/m32r/constraints.md (constraint "S"): Don't use
16045 STORE_PREINC_PREDEC_P.
16046 (constraint "U"): Don't use LOAD_POSTINC_P.
16048 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16050 PR rtl-optimization/46178
16051 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16052 compute ira_hard_regno_cover_class[].
16054 2011-02-18 Richard Guenther <rguenther@suse.de>
16057 * lto-streamer.h (lto_global_var_decls): Declare.
16058 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16059 statics for global var processing.
16061 2011-02-18 Richard Guenther <rguenther@suse.de>
16063 PR tree-optimization/47737
16064 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16065 edge dominance check.
16067 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16070 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16071 avoid invalid rtx sharing.
16073 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16075 * doc/cpp.texi (Obsolete Features): Add background on the
16076 origin of assertions.
16078 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16080 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16082 * config/darwin.c (output_objc_section_asm_op): Added support for
16084 (is_objc_metadata): New.
16085 (darwin_objc2_section): New.
16086 (darwin_objc1_section): New.
16087 (machopic_select_section): Added support for ABI v1 and v2.
16088 (darwin_emit_objc_zeroed): New.
16089 (darwin_output_aligned_bss): Detect objc metadata and treat it
16091 (darwin_asm_output_aligned_decl_common): Same.
16092 (darwin_asm_output_aligned_decl_local): Same.
16093 * config/darwin-sections.def: Updated for ABI v1 and v2.
16094 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16095 compiling Objective-C code for the NeXT runtime, default to using
16096 ABI version 0 for 32-bit, and version 2 for 64-bit.
16098 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16100 * common.opt (optimize_fast): New Variable.
16101 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16102 instead of local variable ofast.
16104 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16106 * doc/invoke.texi (fobjc-abi-version): Documented.
16107 (fobjc-nilcheck): Documented.
16108 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16111 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16114 * common.opt (export-dynamic): New Driver option.
16115 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16117 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16119 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16121 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
16122 Jan Hubicka <jh@suse.cz>
16126 * cfgexpand.c (account_used_vars_for_block): Remove.
16127 (estimated_stack_frame_size): Use referenced vars.
16128 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16129 that were referenced in the original function. Test src_fn
16130 rather than cfun. Drop redundant get_var_ann.
16131 (setup_one_parameter): Drop redundant get_var_ann.
16132 (declare_return_variable): Likewise.
16133 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16134 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16135 * ipa-inline.c (compute_inline_parameters): Do not compute
16136 disregard_inline_limits here.
16137 (compute_inlinable_for_current, pass_inlinable): New.
16138 (pass_inline_parameters): Require PROP_referenced_vars.
16139 * cgraphunit.c (cgraph_process_new_functions): Don't run
16140 compute_inline_parameters explicitly unless function is in SSA form.
16141 (cgraph_analyze_function): Set .disregard_inline_limits.
16142 * tree-sra.c (convert_callers): Compute inliner parameters
16143 only for functions already in SSA form.
16145 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16147 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16148 -mlittle-endian-data.
16150 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16152 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16153 -mno-fpu, not -fpu and -no-fpu.
16154 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16155 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16157 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16160 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16161 input reload with PLUS RTX.
16163 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16165 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16166 of InverseVar(MDMX).
16168 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16170 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16173 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16175 * config/mn10300/mn10300.opt (mno-crt0): New.
16177 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16179 * config/m68k/uclinux.opt (static-libc): New Driver option.
16181 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16183 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16185 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16187 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16188 %{muser-extend-enabled}.
16190 2011-02-16 Richard Guenther <rguenther@suse.de>
16192 PR tree-optimization/47738
16193 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16194 the TODO from tree_predictive_commoning.
16196 2011-02-15 Jeff Law <law@redhat.com>
16199 2011-01-25 Jeff Law <law@redhat.com>
16201 PR rtl-optimization/37273
16202 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16203 handle them like argument loads from stack slots. Do not double
16204 count memory for memory constants and argument loads from stack slots.
16206 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16208 PR middle-end/47725
16209 * combine.c (cant_combine_insn_p): Revert the last change.
16211 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16214 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16215 mode for vector constants. Remove code that checks for TImode.
16217 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16221 * cgraph.h (compute_inline_parameters): Return void.
16222 * ipa-inline.c (compute_inline_parameters): Adjust.
16224 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16228 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16230 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16231 * ipa-inline.c (compute_inline_parameters): Adjust.
16233 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16237 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16238 Adjust all users. Pass FN to...
16239 * tree-flow-inline.h (first_referenced_var): ... this. Add
16241 * ipa-struct-reorg.c: Adjust.
16242 * tree-dfa.c: Adjust.
16243 * tree-into-ssa.c: Adjust.
16244 * tree-sra.c: Adjust.
16245 * tree-ssa-alias.c: Adjust.
16246 * tree-ssa-live.c: Adjust.
16247 * tree-ssa.c: Adjust.
16248 * tree-ssanames.c: Adjust.
16249 * tree-tailcall.c: Adjust.
16251 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16255 * tree-flow.h (referenced_var_lookup): Add fn parameter.
16256 Adjust all callers.
16257 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
16258 * tree-flow-inline.h: Adjust.
16259 * gimple-pretty-print.c: Adjust.
16260 * tree-into-ssa.c: Adjust.
16261 * tree-ssa.c: Adjust.
16262 * cfgexpand.c: Adjust.
16264 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16266 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
16267 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16268 (EXTRA_CONSTRAINT): Delete.
16269 * config/iq2000/constraints.md: New file.
16270 * config/iq2000/iq2000.md: Include it.
16271 (define_insn ""): Delete.
16272 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
16273 unsupported constraint letters from patterns.
16274 (call_value, call_value_internal1): Likewise.
16275 (call_value_multiple_internal1): Likewise.
16277 2011-02-15 Nick Clifton <nickc@redhat.com>
16279 * config/mn10300/mn10300.c: Include tm-constrs.h.
16280 (struct liw_data): New data structure describing an LIW candidate
16282 (extract_bundle): Use struct liw_data. Allow small integer
16283 operands for some instructions.
16284 (check_liw_constraints): Use struct liw_data. Remove swapped
16285 parameter. Add comments describing the checks. Fix bug when
16286 assigning the source of liw1 to the source of liw2.
16287 (liw_candidate): Delete. Code moved into extract_bundle.
16288 (mn10300_bundle_liw): Use struct liw_data. Check constraints
16290 * config/mn10300/predicates.md (liw_operand): New predicate.
16291 Allows registers and small integer constants.
16292 * config/mn10300/constraints.md (O): New constraint. Accetps
16293 integers in the range -8 to +7 inclusive.
16294 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
16295 for moving a small integer into a register. Give this alternative
16297 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
16298 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
16299 using the J,K,L and M constraints,
16300 (liw): Remove SI mode on second operands to allow for HI and QI
16302 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
16305 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16307 PR middle-end/47725
16308 * combine.c (cant_combine_insn_p): Check zero/sign extended
16311 2011-02-15 Richard Guenther <rguenther@suse.de>
16313 PR tree-optimization/47743
16314 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
16315 for a non-type-compatible VN lookup bail out.
16317 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16319 * config/fr30/constraints.md: New file.
16320 * config/fr30/fr30.md: Include it.
16321 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
16322 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16323 (EXTRA_CONSTRAINT): Delete.
16325 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
16327 * config/frv/constraints.md: New file.
16328 * config/frv/predicates.md: Include it.
16329 * config/frv/frv.c (reg_class_from_letter): Delete.
16330 (frv_option_override): Don't initialize it.
16331 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
16332 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
16333 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
16334 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16335 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
16336 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16337 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
16338 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
16339 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
16340 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
16341 (REG_CLASS_FROM_CONSTRAINT): Delete.
16343 2011-02-15 Jakub Jelinek <jakub@redhat.com>
16345 PR middle-end/47581
16346 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
16347 if frame size is 0 in a leaf function.
16349 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16352 * config/alpha/host-osf.c: New file.
16353 * config/alpha/x-osf: New file.
16354 * config.host (alpha*-dec-osf*): Use it.
16356 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16358 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16359 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
16360 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
16361 (rx_mode_dependent_address_p): ...this. Make static. Change argument
16363 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16365 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16367 * config/stormy16/constraints.md: New file.
16368 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
16369 Use satisfies_constraint_Q and satisfies_constraint_R.
16370 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
16372 (xstormy16_legitiamte_address_p): Declare.
16373 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
16374 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16375 (EXTRA_CONSTRAINT): Delete.
16376 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16378 (xstormy16_extra_constraint_p): Delete.
16380 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
16382 PR tree-optimization/46494
16383 * loop-unroll.c (split_edge_and_insert): Adjust comment.
16384 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
16385 (pass_rtl_loop_done): Add TODO_verify_flow.
16386 * fwprop.c (pass_rtl_fwprop): Likewise.
16387 * modulo-sched.c (pass_sms): Likewise.
16388 * tree-ssa-dom.c (pass_dominator): Likewise.
16389 * tree-ssa-loop-ch.c (pass_ch): Likewise.
16390 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
16391 (pass_tree_loop_done): Likewise.
16392 * tree-ssa-pre.c (execute_pre): Likewise.
16393 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
16394 * tree-ssa-sink.c (pass_sink_code): Likewise.
16395 * tree-vrp.c (pass_vrp): Likewise.
16397 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16399 * config/v850/constraints.md: New file.
16400 * config/v850/v850.md: Include it.
16401 * config/v850/predicates.md (reg_or_0_operand): Use
16402 satisfies_constraint_G.
16403 (special_symbolref_operand): Use satisfies_constraint_K.
16404 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
16405 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
16406 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
16407 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
16408 (EXTRA_CONSTRAINT): Delete.
16409 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
16410 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
16411 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
16413 2011-02-14 Anatoly Sokolov <aesok@post.ru>
16416 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
16419 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
16421 * config/mcore/constraints.md: New file.
16422 * config/mcore/mcore.md: Include it.
16423 * config/mcore/mcore.c (reg_class_from_letter): Delete.
16424 * config/mcore/mcore.h (reg_class_from_letter): Delete.
16425 (REG_CLASS_FROM_LETTER): Delete.
16426 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
16427 insn_const_int_ok_for_constraint.
16428 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
16429 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
16430 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16431 (EXTRA_CONSTRAINT): Delete.
16433 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16436 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
16437 (IS_SIGHANDLER): Define.
16438 (sparc64_is_sighandler): New function, split off from
16439 sparc64_fallback_frame_state.
16440 (sparc_is_sighandler): New function, split off from
16441 sparc_fallback_frame_state.
16442 (sparc64_fallback_frame_state): Merge with ...
16443 (sparc_fallback_frame_state): ... this into ...
16444 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
16445 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
16446 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
16447 stack instead of hardcoded offsets.
16449 2011-02-14 Andriy Gapon <avg@freebsd.org>
16452 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
16454 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16456 * configure: Regenerate.
16458 2011-02-12 Joseph Myers <joseph@codesourcery.com>
16461 * gcc.c (asm_options): Correct spec matching --target-help.
16463 2011-02-12 Martin Jambor <mjambor@suse.cz>
16465 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
16466 to gimple call error.
16468 2011-02-12 Mike Stump <mikestump@comcast.net>
16470 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
16471 comments in backslash regions.
16473 2011-02-12 Mike Stump <mikestump@comcast.net>
16474 Jakub Jelinek <jakub@redhat.com>
16475 Iain Sandoe <iains@gcc.gnu.org>
16478 * dwarf2out.c (output_cfa_loc): When required, apply the
16479 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
16480 (output_loc_sequence): Likewise.
16481 (output_loc_operands_raw): Likewise.
16482 (output_loc_sequence_raw): Likewise.
16483 (output_cfa_loc): Likewise.
16484 (output_loc_list): Suppress register number adjustment when
16485 calling output_loc_sequence()
16486 (output_die): Likewise.
16488 2011-02-12 Anatoly Sokolov <aesok@post.ru>
16490 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16492 * config/xtensa/xtensa.c (xtensa_register_move_cost,
16493 xtensa_memory_move_cost): New functions.
16494 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
16496 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
16499 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
16500 in the current directory.
16501 * configure: Rebuilt.
16503 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16505 * config/darwin.c (darwin_override_options): Add a hunk missed
16506 from the commit of r168571. Trim comment line lengths and
16507 correct indents of the preceding block.
16509 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
16511 * gcc.c (driver_handle_option): Concatenate the argument to -F with
16514 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16516 * common.opt (nostartfiles): New Driver option.
16518 2011-02-11 Xinliang David Li <davidxl@google.com>
16520 PR tree-optimization/47707
16521 * tree-chrec.c (convert_affine_scev): Keep type precision.
16523 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
16525 PR tree-optimization/47420
16526 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
16528 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
16530 PR rtl-optimization/47614
16531 * rtl.h (check_for_inc_dec): Declare.
16532 * dse.c (check_for_inc_dec): Externalize...
16533 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
16534 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
16536 2011-02-11 Joseph Myers <joseph@codesourcery.com>
16539 * gcc.c (main): Do not compile inputs if there were errors in
16541 * opts-common.c (read_cmdline_option): Check for wrong language
16542 after other error checks.
16544 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
16546 * cgraph.c: Fix comment typos.
16547 * cgraph.h: Likewise.
16548 * cgraphunit.c: Likewise.
16549 * ipa-cp.c: Likewise.
16550 * ipa-inline.c: Likewise.
16551 * ipa-prop.c: Likewise.
16552 * ipa-pure-const.c: Likewise.
16553 * ipa-ref.c: Likewise.
16554 * ipa-reference.c: Likewise.
16556 2011-02-11 Jakub Jelinek <jakub@redhat.com>
16559 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
16561 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16564 * doc/sourcebuild.texi (Require Support): Document
16565 dg-require-ascii-locale.
16567 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
16569 * doc/lto.texi (Write summary): Fix missing parentheses.
16571 2011-02-10 DJ Delorie <dj@redhat.com>
16573 * config/m32c/m32c.c (m32c_option_override): Disable
16574 -fcombine-stack-adjustments until flag value tracking and compare
16575 optimization can be rewritten.
16577 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
16579 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
16581 (PROCESSOR_DEFAULT64): Likewise.
16583 2011-02-10 Richard Henderson <rth@redhat.com>
16585 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
16586 change from 2011-02-03.
16587 * config/rx/rx.c (flags_from_code): Likewise.
16588 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
16589 is valid, n/pz otherwise.
16590 (rx_select_cc_mode): Return CCmode if Y is not zero.
16592 2011-02-10 Richard Guenther <rguenther@suse.de>
16594 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
16596 2011-02-10 Richard Guenther <rguenther@suse.de>
16598 PR tree-optimization/47677
16599 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
16601 2011-02-10 Jakub Jelinek <jakub@redhat.com>
16604 * combine.c (make_compound_operation): Only change shifts into
16605 multiplication for SCALAR_INT_MODE_P.
16607 2011-02-10 Jie Zhang <jie@codesourcery.com>
16611 2011-02-05 Jie Zhang <jie@codesourcery.com>
16613 * web.c (entry_register): Don't clobber the number of the
16614 first uninitialized reference in used[].
16616 2011-02-09 Richard Guenther <rguenther@suse.de>
16618 PR tree-optimization/47664
16619 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
16622 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
16626 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
16628 (PROCESSOR_DEFAULT64): Same.
16629 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
16631 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16633 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
16635 2011-02-09 Martin Jambor <mjambor@suse.cz>
16637 PR middle-end/45505
16638 * tree-sra.c (struct access): New flags grp_scalar_read and
16639 grp_scalar_write. Changed description of assignment read and write
16641 (dump_access): Dump new flags, reorder all of them.
16642 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
16643 to detect multiple scalar reads.
16644 (analyze_access_subtree): Use the new scalar read write flags instead
16645 of the old flags. Adjusted comments.
16647 2011-02-08 DJ Delorie <dj@redhat.com>
16650 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
16653 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16655 * config/m68k/uclinux.opt: New.
16656 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
16658 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16660 * config/cris/elf.opt (sim): New Driver option.
16662 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16664 * config/xtensa/elf.opt: New.
16665 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
16667 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16669 * config/vax/elf.opt: New.
16670 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
16672 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16674 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
16676 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16678 * config/gnu-user.opt: New.
16679 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
16680 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
16681 *-*-uclinux*): Use gnu-user.opt.
16683 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
16685 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
16686 * config/i386/gnu.h (CPP_SPEC): Likewise.
16688 2011-02-08 Ian Lance Taylor <iant@google.com>
16690 * common.opt (fcx-limited-range): Add SetByCombined flag.
16691 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
16692 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
16693 (fassociative-math, freciprocal-math): Likewise.
16694 (funsafe-math-optimizations): Likewise.
16695 * opth-gen.awk: Handle SetByCombined.
16696 * optc-gen.awk: Likewise.
16697 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
16698 (set_unsafe_math_optimizations_flags): Likewise.
16699 * doc/options.texi (Option properties): Document SetByCombined.
16701 2011-02-08 Joseph Myers <joseph@codesourcery.com>
16703 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
16704 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
16705 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
16706 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
16707 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
16709 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
16711 PR tree-optimization/46834
16712 PR tree-optimization/46994
16713 PR tree-optimization/46995
16714 * graphite-sese-to-poly.c (used_outside_reduction): New.
16715 (detect_commutative_reduction): Call used_outside_reduction.
16716 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
16717 translate_scalar_reduction_to_array only when at least one
16718 loop-phi/close-phi tuple has been detected.
16720 2011-02-08 Richard Guenther <rguenther@suse.de>
16722 PR middle-end/47639
16723 * tree-vect-generic.c (expand_vector_operations_1): Update
16725 (expand_vector_operations): ... not here. Cleanup EH info
16726 and the CFG if required.
16728 2011-02-08 Richard Guenther <rguenther@suse.de>
16730 PR tree-optimization/47641
16731 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
16732 require type compatibility.
16734 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16736 * gimple-low.c (lower_function_body): Don't remove the location of
16737 the return statement here.
16738 (lower_gimple_return): Do it here instead but only if the return
16739 statement is actually used twice.
16741 2011-02-08 Richard Guenther <rguenther@suse.de>
16743 PR tree-optimization/47632
16744 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
16745 unused up_to_stmt parameter, return whether cfg-cleanup is
16746 necessary, remove EH info properly.
16747 (forward_propagate_into_gimple_cond): Adjust caller.
16748 (forward_propagate_into_cond): Likewise.
16749 (forward_propagate_comparison): Likewise.
16750 (tree_ssa_forward_propagate_single_use_vars): Make
16751 forward_propagate_comparison case similar to the two others.
16753 2011-02-08 Nick Clifton <nickc@redhat.com>
16755 * config/mn10300/mn10300.opt (mliw): New command line option.
16756 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
16757 (liw_bundling): New automaton.
16758 (liw): New attribute.
16759 (liw_op): New attribute.
16760 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
16761 (movsi_internal): Add LIW attributes.
16762 (andsi3): Likewise.
16763 (iorsi3): Likewise.
16764 (xorsi3): Likewise.
16765 (addsi3): Separate register and immediate alternatives.
16766 Add LIW attributes.
16767 (subsi3): Likewise.
16769 (aslsi3): Likewise.
16770 (lshrsi3): Likewise.
16771 (ashrsi3): Likewise.
16772 (liw): New pattern.
16773 * config/mn10300/mn10300.c (liw_op_names): New
16774 (mn10300_print_operand): Handle 'W' operand descriptor.
16775 (extract_bundle): New function.
16776 (check_liw_constraints): New function.
16777 (liw_candidate): New function.
16778 (mn10300_bundle_liw): New function.
16779 (mn10300_reorg): New function.
16780 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16781 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
16782 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
16783 __LIW__ or __NO_LIW__.
16784 * doc/invoke.texi: Describe the -mliw command line option.
16786 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16788 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
16789 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16790 pthread_mutex_unlock): Remove.
16791 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
16792 * config/pa/t-pa64: Likewise.
16793 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
16794 shared libc if not linking against libpthread.
16795 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
16797 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
16800 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
16801 on 10.6 and later to ensure that we always use the unwinder from
16802 the system. Only add -no_compact_unwind when tarteting darwin
16805 2011-02-07 Steve Ellcey <sje@cup.hp.com>
16808 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
16809 (vec_interleave_lowv2sf): Ditto.
16810 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
16811 (vec_extract_oddv2sf): Ditto.
16813 2011-02-07 Mike Stump <mikestump@comcast.net>
16816 Add __ieee_divdc3 entry point.
16817 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
16819 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
16820 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
16821 * config/darwin.c (darwin_rename_builtins): Add.
16822 * config/darwin-protos.h (darwin_rename_builtins): Add.
16824 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
16827 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
16830 2011-02-07 Mike Stump <mikestump@comcast.net>
16832 * config/darwin.opt (mmacosx-version-min): Update default OS version.
16834 2011-02-07 Denis Chertykov <chertykov@gmail.com>
16837 * config/avr/libgcc.S (exit): Move .endfunc
16839 2011-02-07 Richard Guenther <rguenther@suse.de>
16841 PR tree-optimization/47615
16842 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
16843 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
16844 (run_scc_vn): Initialize it.
16845 (visit_reference_op_load): Use it.
16846 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
16848 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16850 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
16851 DImode trapping arithmetic libfuncs.
16853 2011-02-07 Richard Guenther <rguenther@suse.de>
16855 PR tree-optimization/47621
16856 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
16858 (execute_update_addresses_taken): ... here. Make it more
16859 conservative in what we accept.
16861 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16863 * config/sparc/freebsd.h (ASM_SPEC): Define.
16864 * config/sparc/vxworks.h (ASM_SPEC): Define.
16866 2011-02-06 Joseph Myers <joseph@codesourcery.com>
16868 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16870 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
16872 * doc/invoke.texi: Remove reference to compiler internals from
16873 user documentation.
16875 * reg-notes.def: Remove REG_VALUE_PROFILE.
16876 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
16878 2011-02-05 Jakub Jelinek <jakub@redhat.com>
16880 PR middle-end/47610
16881 * varasm.c (default_section_type_flags): If decl is NULL,
16882 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
16884 2011-02-05 Jie Zhang <jie@codesourcery.com>
16887 * web.c (entry_register): Don't clobber the number of the
16888 first uninitialized reference in used[].
16890 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
16892 PR tree-optimization/46194
16893 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
16894 (build_classic_dist_vector_1): Do not represent classic distance
16895 vectors when the access functions are variating in different loops.
16897 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16899 * config/mips/iris6.opt: New.
16900 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
16902 2011-02-04 Richard Henderson <rth@redhat.com>
16903 Steve Ellcey <sje@cup.hp.com>
16906 * config/ia64/predicates.md (mux1_brcst_element): New.
16907 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16908 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16909 (ia64_unpack_sign): New.
16910 (ia64_expand_unpack): Rewrite using new routines.
16911 (ia64_expand_widen_sum): Ditto.
16912 (ia64_expand_dot_prod_v8qi): Ditto.
16913 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16914 routines, add endian check.
16915 (pmpy2_even): Rename from pmpy2_r, add endian check.
16916 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16917 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16918 (vec_widen_smult_hi_v4hi): Ditto.
16919 (vec_widen_umult_lo_v4hi): Ditto.
16920 (vec_widen_umult_hi_v4hi): Ditto.
16921 (mulv2si3): Change endian checks.
16922 (sdot_prodv4hi): Rewrite with new calls.
16923 (udot_prodv4hi): New.
16924 (vec_pack_ssat_v4hi): Add endian check.
16925 (vec_pack_usat_v4hi): Ditto.
16926 (vec_pack_ssat_v2si): Ditto.
16927 (max1_even): Rename from max1_r, add endian check.
16928 (max1_odd): Rename from max1_l, add endian check.
16929 (*mux1_rev): Format change.
16930 (*mux1_mix): Ditto.
16931 (*mux1_shuf): Ditto.
16932 (*mux1_alt): Ditto.
16933 (*mux1_brcst_v8qi): Use new predicate.
16934 (vec_extract_evenv8qi): Remove endian check.
16935 (vec_extract_oddv8qi): Ditto.
16936 (vec_interleave_lowv4hi): Format change.
16937 (vec_interleave_highv4hi): Ditto.
16938 (mix2_even): Rename from mix2_r, add endian check.
16939 (mix2_odd): Rename from mux2_l, add endian check.
16940 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16941 (vec_extract_evenodd_helper): Format change.
16942 (vec_extract_evenv4hi): Remove endian check.
16943 (vec_extract_oddv4hi): Remove endian check.
16944 (vec_interleave_lowv2si): Format change.
16945 (vec_interleave_highv2si): Format change.
16946 (vec_initv2si): Remove endian check.
16947 (vecinit_v2si): Add endian check.
16948 (reduc_splus_v2sf): Add endian check.
16949 (reduc_smax_v2sf): Ditto.
16950 (reduc_smin_v2sf): Ditto.
16951 (vec_initv2sf): Remove endian check.
16952 (fpack): Add endian check.
16953 (fswap): Add endian check.
16954 (vec_interleave_highv2sf): Add endian check.
16955 (vec_interleave_lowv2sf): Add endian check.
16956 (fmix_lr): Add endian check.
16957 (vec_setv2sf): Format change.
16958 (*vec_extractv2sf_0_be): Use shift to extract operand.
16959 (*vec_extractv2sf_1_be): New.
16960 (vec_pack_trunc_v4hi): Add endian check.
16961 (vec_pack_trunc_v2si): Format change.
16963 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16965 PR inline-asm/23200
16966 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16967 do bb, locus and block comparison and disallow loads if it is not set.
16968 (stmt_is_replaceable_p): New function.
16969 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16971 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16972 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16974 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16976 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16978 * config/rs6000/xilinx.opt: New.
16979 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16981 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16983 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16985 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16987 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16988 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16989 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16990 secondary_reload_info, xtensa_secondary_reload): Remove.
16991 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16992 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16993 (xtensa_preferred_reload_class): Make static. Change return and
16994 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16995 Use CONST_DOUBLE_P predicate.
16996 (xtensa_preferred_output_reload_class): New function.
16997 (xtensa_secondary_reload): Make static.
16999 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17001 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17002 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17003 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17005 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17007 PR middle-end/31490
17008 * output.h (SECTION_RELRO): Define.
17009 (SECTION_MACH_DEP): Adjust.
17010 (get_variable_section): New prototype.
17011 * varpool.c (varpool_finalize_named_section_flags): New function.
17012 (varpool_assemble_pending_decls): Call it.
17013 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17014 * cgraphunit.c (cgraph_output_in_order): Call
17015 varpool_finalize_named_section_flags.
17016 * varasm.c (get_section): Allow section flags conflicts between
17017 relro and read-only sections if the section hasn't been declared yet.
17018 Set SECTION_OVERRIDE after diagnosing section type conflict.
17019 (get_variable_section): No longer static.
17020 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17021 readonly sections that need relocations.
17022 (decl_readonly_section_1): New function.
17023 (decl_readonly_section): Use it.
17026 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
17027 Steve Ellcey <sje@cup.hp.com>
17029 PR middle-end/31490
17030 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17031 if section attribute used.
17033 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17035 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17036 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17037 (darwin_init_sections): Remove assertion.
17039 2011-02-03 Nick Clifton <nickc@redhat.com>
17041 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17043 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17044 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17045 instead of "n" and "pz".
17046 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17049 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17052 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17053 fma, expand FMA_EXPR as fma{,f,l} call.
17056 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17057 copy them into a unsigned char variable and pass address of it to
17058 lto_output_data_stream.
17061 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17062 around backend_init_target and lang_dependent_init_target calls.
17063 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17064 (verify_cgraph_node): Don't call set_cfun here. Use
17065 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17066 Set error_found for incorrectly represented calls to thunks.
17068 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17071 PR rtl-optimization/43494
17072 * rtl.h (for_each_inc_dec_fn): New type.
17073 (for_each_inc_dec): Declare.
17074 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17075 (for_each_inc_dec_find_inc_dec): New fn.
17076 (for_each_inc_dec_find_mem): New fn.
17077 (for_each_inc_dec): New fn.
17078 * dse.c (struct insn_size): Remove.
17079 (replace_inc_dec, replace_inc_dec_mem): Remove.
17080 (emit_inc_dec_insn_before): New fn.
17081 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17082 (canon_address): Pass mem modes to cselib_lookup.
17083 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17084 (cselib_lookup_from_insn): Likewise.
17085 (cselib_subst_to_values): Likewise.
17086 * cselib.c (find_slot_memmode): New var.
17087 (cselib_find_slot): New fn. Use it instead of
17088 htab_find_slot_with_hash everywhere.
17089 (entry_and_rtx_equal_p): Use find_slot_memmode.
17090 (autoinc_split): New fn.
17091 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17092 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17093 Deal with autoinc. Special-case recursion into MEMs.
17094 (cselib_hash_rtx): Likewise.
17095 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17096 address and MEM modes.
17097 (cselib_subst_to_values): Add memmode, pass it on.
17099 (cselib_lookup): Add memmode argument, pass it on.
17100 (cselib_lookup_from_insn): Add memmode.
17101 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17102 (struct cselib_record_autoinc_data): New.
17103 (cselib_record_autoinc_cb): New fn.
17104 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17105 mode to cselib_lookup. Reset autoinced REGs here instead of...
17106 (cselib_process_insn): ... here.
17107 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17109 (add_uses): Likewise, also to cselib_subst_to_values.
17110 (add_stores): Likewise.
17111 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17112 cselib_subst_to_values.
17113 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17114 * gcse.c (do_local_cprop): Adjusted.
17115 * postreload.c (reload_cse_simplify_set): Adjusted.
17116 (reload_cse_simplify_operands): Adjusted.
17117 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17119 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17121 PR tree-optimization/45122
17122 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17123 unsafe assumptions when there's more than one loop exit.
17125 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17128 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17129 Document using vector double with the load/store builtins, and
17130 that the load/store builtins always use Altivec instructions.
17132 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17133 to use altivec memory instructions, even on VSX.
17134 (vector_altivec_store_<mode>): Ditto.
17136 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17139 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17140 V2DF, V2DI support to load/store overloaded builtins.
17142 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17143 altivec load/store builtins for V2DF/V2DI types.
17145 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17146 set avoid indexed addresses on power6 if -maltivec.
17147 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17148 vector_altivec_load/vector_altivec_store builtins.
17149 (altivec_expand_st_builtin): Ditto.
17150 (altivec_expand_builtin): Add VSX memory builtins.
17151 (rs6000_init_builtins): Add V2DI types to internal types.
17152 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17153 load/store builtins.
17154 (rs6000_address_for_altivec): Insure memory address is appropriate
17157 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17158 vec_vsx_ld and vec_vsx_st.
17159 (vsx_store_<mode>): Ditto.
17161 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17162 variables to hold long long types for VSX vector memory builtins.
17163 (RS6000_BTI_unsigned_long_long): Ditto.
17164 (long_long_integer_type_internal_node): Ditti.
17165 (long_long_unsigned_type_internal_node): Ditti.
17167 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17168 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17169 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17171 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17173 (vec_vsx_st): Ditto.
17175 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17177 * config/pa/pa-hpux10.opt: New.
17178 * config/hpux11.opt (pthread): New Driver option.
17179 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17180 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17182 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17184 * config/ia64/vms.opt: New.
17185 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17187 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17190 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17191 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17192 generator functions.
17193 (vsx_floatuns<VSi><mode>2): Ditto.
17194 (vsx_fix_trunc<mode><VSi>2): Ditto.
17195 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17197 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17199 * config/i386/djgpp.opt (posix): New Driver option.
17201 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17203 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17204 Move to the unsupported targets list.
17206 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17208 PR rtl-optimization/47525
17209 * df-scan.c: Update copyright years.
17210 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17211 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17213 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17215 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17216 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17217 (ASM_OUTPUT_ASCII): Remove.
17218 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17220 2011-02-02 Jeff Law <law@redhat.com>
17222 PR middle-end/47543
17223 * reload.c (find_reloads_address): Handle reg+d address where both
17224 components are invalid by reloading the entire address.
17226 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17227 Richard Guenther <rguenther@suse.de>
17229 PR tree-optimization/40979
17231 * passes.c (init_optimization_passes): After LIM call copy_prop
17232 and DCE to clean up.
17233 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17235 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17237 PR tree-optimization/47576
17238 PR tree-optimization/47555
17239 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17240 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17241 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17242 * tree-scalar-evolution.c (follow_ssa_edge): Use
17243 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17245 2011-02-02 Richard Guenther <rguenther@suse.de>
17247 PR tree-optimization/47566
17248 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
17250 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17254 * tree-inline.c (declare_return_variable): Remove unused caller
17259 * tree-flow-inline.h (clear_is_used, is_used_p): New.
17260 * cfgexpand.c (account_used_vars_for_block): Use them.
17261 * tree-nrv.c (tree_nrv): Likewise.
17262 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
17263 (dump_scope_block): Likewise.
17264 (remove_unused_locals): Likewise.
17268 * tree-inline.c (declare_return_variable): Add result decl to
17269 local decls only once.
17270 * gimple-low.c (record_vars_into): Mark newly-created variables
17273 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
17279 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17281 (no_real_insns_p, schedule_block, set_priorities): Drop special
17282 treatment of boundary debug insns.
17283 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17284 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
17285 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17286 (BOUNDARY_DEBUG_INSN_P): Likewise.
17287 (SCHEDULE_DEBUG_INSN_P): Likewise.
17288 * sched-rgn.c (init_ready_list): Drop special treatment of
17289 boundary debug insns.
17290 * final.c (rest_of_clean_state): Clear notes' BB.
17292 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17294 * config/openbsd.opt (assert=): New Driver option.
17296 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17298 * config/i386/nto.opt: New.
17299 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
17301 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17303 * config/i386/netware.opt: New.
17304 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
17306 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17308 * config/interix.opt (posix): New Driver option.
17310 2011-02-01 DJ Delorie <dj@redhat.com>
17312 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
17314 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
17317 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
17319 PR tree-optimization/47561
17320 * toplev.c (process_options): Print the Graphite flags. Add
17321 flag_loop_flatten to the list of options requiring Graphite.
17323 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17325 * config/i386/cygming.opt (posix): New Driver option.
17327 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17329 * config/arm/vxworks.opt: New.
17330 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
17332 2011-02-01 Joseph Myers <joseph@codesourcery.com>
17334 * config/alpha/elf.opt: New.
17335 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
17336 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
17338 2011-02-01 Richard Guenther <rguenther@suse.de>
17340 PR tree-optimization/47559
17341 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
17342 store-motion on references that can throw.
17344 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
17346 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
17347 * tree-pass.h (TDF_CSELIB): New macro.
17348 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
17349 cselib_lookup): Check for it rather than for TDF_DETAILS.
17351 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
17354 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
17355 is HOST_BIT_BUCKET.
17357 * opts.c (finish_options): Don't add x_aux_base_name if it is
17360 2011-02-01 Richard Guenther <rguenther@suse.de>
17362 PR tree-optimization/47555
17364 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
17366 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17368 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
17371 * config/lm32/t-lm32: Add multilib for all CPU options.
17373 2011-02-01 Richard Guenther <rguenther@suse.de>
17375 PR tree-optimization/47541
17376 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
17377 sure to have a field at offset zero.
17379 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17381 * config/arc/arc.opt (EB, EL): New Driver options.
17383 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17385 * config/alpha/osf5.opt: New.
17386 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
17388 2011-01-31 Joseph Myers <joseph@codesourcery.com>
17390 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
17392 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
17394 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
17395 -floop-interchange.
17396 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
17397 is an alias of -floop-interchange and that it requires the
17398 Graphite infrastructure.
17399 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
17400 flag_loop_interchange based on the value of flag_tree_loop_linear.
17402 2011-01-31 Jakub Jelinek <jakub@redhat.com>
17403 Richard Guenther <rguenther@suse.de>
17405 PR tree-optimization/47538
17406 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
17407 type instead of r1type, except for comparisons. For right
17408 shifts and comparisons punt if there are mismatches in
17409 sizetype vs. non-sizetype types.
17411 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17413 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17416 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17418 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
17420 * configure: Regenerate.
17422 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17424 * configure.ac (gcc_cv_ld_static_option): Define.
17425 (gcc_cv_ld_dynamic_option): Define.
17426 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
17428 (HAVE_LD_STATIC_DYNAMIC): Update message.
17429 (LD_STATIC_OPTION): Define.
17430 (LD_DYNAMIC_OPTION): Define.
17431 * configure: Regenerate.
17432 * config.in: Regenerate.
17433 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
17434 HAVE_LD_STATIC_DYNAMIC]: Use them.
17436 2011-01-31 Nick Clifton <nickc@redhat.com>
17438 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
17439 registers inside interrupt handlers if the handler is not a leaf
17442 2011-01-31 Nick Clifton <nickc@redhat.com>
17444 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
17445 reg_renumber returning an INVALID_REGNUM.
17447 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17450 * doc/install.texi: Document host options discarded when cross
17451 configuring target libraries.
17453 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
17456 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17459 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17461 (no_real_insns_p, schedule_block, set_priorities): Drop special
17462 treatment of boundary debug insns.
17463 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17464 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17465 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17466 (BOUNDARY_DEBUG_INSN_P): Likewise.
17467 (SCHEDULE_DEBUG_INSN_P): Likewise.
17468 * sched-rgn.c (init_ready_list): Drop special treatment of
17469 boundary debug insns.
17470 * final.c (rest_of_clean-state): Clear notes' BB.
17472 2011-01-31 Alan Modra <amodra@gmail.com>
17474 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
17475 toc relative expressions as we do in print_operand_address.
17477 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
17479 * doc/extend.texi: Follow spelling conventions.
17480 * doc/invoke.texi: Fix a typo.
17482 2011-01-30 Joseph Myers <joseph@codesourcery.com>
17484 * config/hpux11.opt: New.
17485 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
17486 ia64*-*-hpux*): Use hpux11.opt.
17488 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
17490 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
17493 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17495 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
17498 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17500 * doc/install.texi (Binaries): Remove outdated reference for
17501 Motorola 68HC11/68HC12 downloads.
17503 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
17505 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
17508 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
17511 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
17514 2011-01-28 Ahmad Sharif <asharif@google.com>
17516 * value-prof.c (check_counter): Corrected error message.
17518 2011-01-29 Jie Zhang <jie@codesourcery.com>
17520 * config/arm/arm.c (arm_legitimize_reload_address): New.
17521 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
17522 arm_legitimize_reload_address.
17523 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
17525 2011-01-28 Ian Lance Taylor <iant@google.com>
17527 * godump.c (go_define): Ignore macros whose definitions include
17528 two adjacent operands.
17530 2011-01-28 Jakub Jelinek <jakub@redhat.com>
17533 * varasm.c (force_const_mem): Store copy of x in desc->constant
17534 instead of x itself.
17535 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
17536 itself into REG_EQUAL note.
17538 2011-01-28 Joseph Myers <joseph@codesourcery.com>
17540 * config/freebsd.opt (posix, rdynamic): New Driver options.
17542 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17544 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
17545 -Bstatic/-Bdynamic.
17546 * configure: Regenerate.
17548 2011-01-27 Joseph Myers <joseph@codesourcery.com>
17550 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
17551 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
17553 2011-01-27 Anatoly Sokolov <aesok@post.ru>
17555 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
17556 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
17557 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17558 (s390_preferred_reload_class): Make static. Change return and
17559 'rclass' argument type to reg_class_t.
17561 2011-01-27 Jan Hubicka <jh@suse.cz>
17563 PR middle-end/46949
17564 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
17565 (process_function_and_variable_attributes): Check defined weakrefs.
17567 2011-01-27 Martin Jambor <mjambor@suse.cz>
17569 PR tree-optimization/47228
17570 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
17571 build_ref_for_offset.
17573 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17575 * config/spu/spu-elf.h (ASM_SPEC): Remove.
17577 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
17579 PR rtl-optimization/46856
17580 * postreload.c (reload_combine_recognize_const_pattern): Do not
17581 separate cc0 setter and user on cc0 targets.
17583 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
17586 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
17587 passed a VOID_TYPE expression, immediately emit an error and
17588 return error_mark_node.
17590 2011-01-26 Jeff Law <law@redhat.com>
17592 PR rtl-optimization/47464
17593 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
17594 rather than may_trap_p as needed.
17596 2011-01-26 DJ Delorie <dj@redhat.com>
17598 PR rtl-optimization/46878
17599 * combine.c (insn_a_feeds_b): Check for the implicit cc0
17600 setter/user dependency as well.
17602 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
17604 PR rtl-optimization/44469
17605 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
17606 after removing trivially dead basic blocks.
17608 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17610 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
17611 * config/frv/frv.h (LINK_SPEC): Likewise.
17612 * config/i386/netware.h (LINK_SPEC): Likewise.
17613 * config/m68k/linux.h (ASM_SPEC): Likewise.
17614 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
17615 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17616 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17617 * config/sparc/linux.h (ASM_SPEC): Likewise.
17618 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17619 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17621 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17623 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
17624 * config/frv/frv.h (ASM_SPEC): Likewise.
17625 * config/m68k/linux.h (ASM_SPEC): Likewise.
17626 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17627 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
17628 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17629 * config/sparc/linux.h (ASM_SPEC): Likewise.
17630 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17631 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17633 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17635 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
17636 * config/frv/frv.h (LINK_SPEC): Likewise.
17637 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
17639 2011-01-26 Joseph Myers <joseph@codesourcery.com>
17641 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
17642 * config/frv/frv.h (ASM_SPEC): Likewise.
17643 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
17644 * config/m68k/linux.h (ASM_SPEC): Likewise.
17645 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
17646 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17647 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17648 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
17649 * config/sparc/linux.h (ASM_SPEC): Likewise.
17650 * config/sparc/linux64.h (ASM_SPEC): Likewise.
17651 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17652 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
17654 2011-01-26 Steve Ellcey <sje@cup.hp.com>
17657 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
17659 (vec_extract_evenodd_help): Ditto.
17660 (vec_extract_evenv4hi): Ditto.
17661 (vec_extract_oddv4hi): Ditto.
17662 (vec_interleave_lowv2si): Ditto.
17663 (vec_interleave_highv2si): Ditto.
17664 (vec_extract_evenv2si): Ditto.
17665 (vec_extract_oddv2si: Ditto.
17666 (vec_pack_trunc_v2si): Ditto.
17668 2011-01-22 Jan Hubicka <jh@suse.cz>
17671 * cgraph.h (cgraph_local_info): New field can_change_signature.
17672 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
17673 signature can change.
17674 (ipcp_estimate_growth): Call sequence simplify only if calle signature
17676 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
17677 (cgraph_function_versioning): We can not change signature of functions
17678 that don't allow that.
17679 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
17680 (lto_input_node): Likewise.
17681 * ipa-inline.c (compute_inline_parameters): Compute
17682 local.can_change_signature.
17683 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
17684 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
17685 functions that can not change signature.
17686 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
17687 init_cumulative_args): Do not use local calling conventions
17688 for functions that can not change signature.
17690 2011-01-22 Jan Hubicka <jh@suse.cz>
17692 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
17694 2011-01-26 Richard Guenther <rguenther@suse.de>
17696 PR tree-optimization/47190
17697 * cgraphunit.c (process_common_attributes): New function.
17698 (process_function_and_variable_attributes): Use it.
17700 2011-01-26 Richard Guenther <rguenther@suse.de>
17703 * cgraphbuild.c (record_eh_tables): Record reference to personality
17706 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
17709 * sel-sched.c (moveup_expr): Don't let debug insns prevent
17710 non-debug insns from moving up.
17712 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17715 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
17716 t-dlldir{,-x} fragment for build and add it to tmake_file.
17717 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
17718 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
17719 * config/i386/t-dlldir: New file.
17720 (SHLIB_DLLDIR): Define.
17721 * config/i386/t-dlldir-x: New file.
17722 (SHLIB_DLLDIR): Define.
17723 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
17724 (SHLIB_INSTALL): Use it.
17726 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
17729 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
17730 lower bound of the allowed Thumb-2 coprocessor load/store
17731 index range to -256. Add explaining comment.
17733 2011-01-25 Ian Lance Taylor <iant@google.com>
17735 * godump.c (go_define): Improve lexing of macro expansion to only
17736 accept expressions which match Go spec.
17738 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
17741 * tree.c (handle_dll_attribute): Handle it.
17742 * doc/extend.texi (@item dllexport): Mention it.
17743 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
17745 2011-01-25 Ian Lance Taylor <iant@google.com>
17747 PR tree-optimization/26854
17748 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
17749 (decl_jump_unsafe): Move higher in file, with no other change.
17750 (bind): Set has_jump_unsafe_decl if appropriate.
17751 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
17752 (check_earlier_gotos): Likewise.
17753 (c_check_switch_jump_warnings): Likewise.
17755 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
17757 * doc/invoke.texi (Warning Options): Add missing hyphen.
17758 (-fprofile-dir): Minor grammatical fixes.
17759 (-fbranch-probabilities): Likewise.
17761 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
17765 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
17767 (no_real_insns_p, schedule_block, set_priorities): Drop special
17768 treatment of boundary debug insns.
17769 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
17770 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
17771 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
17772 (BOUNDARY_DEBUG_INSN_P): Likewise.
17773 (SCHEDULE_DEBUG_INSN_P): Likewise.
17774 * sched-rgn.c (init_ready_list): Drop special treatment of
17775 boundary debug insns.
17776 * final.c (rest_of_clean-state): Clear notes' BB.
17778 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17780 * Makefile.in (LAMBDA_H): Removed.
17781 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
17782 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
17783 lambda-trans.o, and tree-loop-linear.o.
17784 (lto-symtab.o): Remove dependence on LAMBDA_H.
17785 (tree-loop-linear.o): Remove rule.
17786 (lambda-mat.o): Same.
17787 (lambda-trans.o): Same.
17788 (lambda-code.o): Same.
17789 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
17790 (tree-vect-slp.o): Same.
17791 * hwint.h (gcd): Moved here.
17792 (least_common_multiple): Same.
17793 * lambda-code.c: Removed.
17794 * lambda-mat.c: Removed.
17795 * lambda-trans.c: Removed.
17796 * lambda.h: Removed.
17797 * tree-loop-linear.c: Removed.
17798 * lto-symtab.c: Do not include lambda.h.
17799 * omega.c (gcd): Removed.
17800 * passes.c (init_optimization_passes): Remove pass_linear_transform.
17801 * tree-data-ref.c (print_lambda_vector): Moved here.
17802 (lambda_vector_copy): Same.
17803 (lambda_matrix_copy): Same.
17804 (lambda_matrix_id): Same.
17805 (lambda_vector_first_nz): Same.
17806 (lambda_matrix_row_add): Same.
17807 (lambda_matrix_row_exchange): Same.
17808 (lambda_vector_mult_const): Same.
17809 (lambda_vector_negate): Same.
17810 (lambda_matrix_row_negate): Same.
17811 (lambda_vector_equal): Same.
17812 (lambda_matrix_right_hermite): Same.
17813 * tree-data-ref.h: Do not include lambda.h.
17814 (lambda_vector): Moved here.
17815 (lambda_matrix): Same.
17816 (dependence_level): Same.
17817 (lambda_transform_legal_p): Removed declaration.
17818 (lambda_collect_parameters): Same.
17819 (lambda_compute_access_matrices): Same.
17820 (lambda_vector_gcd): Same.
17821 (lambda_vector_new): Same.
17822 (lambda_vector_clear): Same.
17823 (lambda_vector_lexico_pos): Same.
17824 (lambda_vector_zerop): Same.
17825 (lambda_matrix_new): Same.
17826 * tree-flow.h (least_common_multiple): Removed declaration.
17827 * tree-parloops.c (lambda_trans_matrix): Moved here.
17828 (LTM_MATRIX): Same.
17829 (LTM_ROWSIZE): Same.
17830 (LTM_COLSIZE): Same.
17831 (LTM_DENOMINATOR): Same.
17832 (lambda_trans_matrix_new): Same.
17833 (lambda_matrix_vector_mult): Same.
17834 (lambda_transform_legal_p): Same.
17835 * tree-pass.h (pass_linear_transform): Removed declaration.
17836 * tree-ssa-loop.c (tree_linear_transform): Removed.
17837 (gate_tree_linear_transform): Removed.
17838 (pass_linear_transform): Removed.
17839 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
17840 flag_loop_interchange.
17842 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17844 PR tree-optimization/47265
17845 PR tree-optimization/47443
17846 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
17847 if name still has some uses.
17849 2011-01-25 Martin Jambor <mjambor@suse.cz>
17851 PR tree-optimization/47382
17852 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
17853 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
17855 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
17857 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
17858 sjlj_except_unwind_info.
17860 2011-01-25 Richard Guenther <rguenther@suse.de>
17862 PR tree-optimization/47426
17863 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
17864 visible functions results escape.
17866 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17869 * config/arm/arm.c (any_sibcall_uses_r3): New function.
17870 (arm_get_frame_offsets): Use it.
17872 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17873 Jakub Jelinek <jakub@redhat.com>
17875 PR tree-optimization/47271
17876 * tree-if-conv.c (bb_postdominates_preds): New.
17877 (if_convertible_bb_p): Call bb_postdominates_preds.
17878 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
17879 (predicate_scalar_phi): Call bb_postdominates_preds.
17881 2011-01-25 Nick Clifton <nickc@redhat.com>
17883 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
17884 * config/rx/rx.c (rx_function_value): Likewise.
17885 (rx_promote_function_mode): Likewise.
17886 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
17887 in order to make it legitimate.
17888 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
17889 make sure that the first operand is the same as the result register.
17890 (addsi3_unspec): Delete.
17891 (subdi3): Do not accept immediate operands.
17892 (subdi3_internal): Likewise.
17894 2011-01-25 Jeff Law <law@redhat.com>
17896 PR rtl-optimization/37273
17897 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17898 handle them like argument loads from stack slots. Do not double
17899 count memory for memory constants and argument loads from stack slots.
17901 2011-01-25 Jakub Jelinek <jakub@redhat.com>
17903 PR tree-optimization/47427
17904 PR tree-optimization/47428
17905 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17906 coalesce if the new root var would be TREE_READONLY.
17908 2011-01-25 Richard Guenther <rguenther@suse.de>
17910 PR middle-end/47414
17911 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17912 correct type for TBAA.
17914 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17916 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17917 (close_phi_written_to_memory): Call for_each_index with
17918 dr_indices_valid_in_loop.
17920 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17922 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17923 when it is initialized.
17925 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17927 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17928 call to graphite_find_data_references_in_stmt.
17929 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17930 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17931 call to graphite_find_data_references_in_stmt.
17932 (analyze_drs_in_stmts): Same.
17933 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17934 in which the scalar analysis of indices is performed.
17935 (create_data_ref): Same. Update call to dr_analyze_indices.
17936 (find_data_references_in_stmt): Update call to create_data_ref.
17937 (graphite_find_data_references_in_stmt): Same.
17938 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17940 (create_data_ref): Same.
17941 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17942 call to create_data_ref.
17944 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17946 * graphite-sese-to-poly.c (build_poly_scop): Move
17947 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17949 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17951 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17952 VAR_DECL, PARM_DECL, and RESULT_DECL.
17954 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17956 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17957 in a reduction PBB.
17958 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17959 that have already been marked as PBB_IS_REDUCTION.
17961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17963 * graphite-scop-detection.c (same_close_phi_node): New.
17964 (remove_duplicate_close_phi): New.
17965 (make_close_phi_nodes_unique): New.
17966 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17968 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17970 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17971 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17972 of both data references to be the same.
17974 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17976 * graphite-dependences.c (build_lexicographical_constraint): Remove
17977 the gdim parameter.
17978 (build_lexicographical_constraint): Adjust call to
17979 ppl_powerset_is_empty.
17980 (dependence_polyhedron): Same.
17981 (graphite_legal_transform_dr): Same.
17982 (graphite_carried_dependence_level_k): Same.
17983 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17985 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17987 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17989 * graphite-sese-to-poly.c
17990 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17991 (close_phi_written_to_memory): New.
17992 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17995 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17997 * doc/install.texi: Update the expected version number of PPL to 0.11.
17998 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17999 #if PPL_VERSION_MINOR < 11.
18001 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18003 * graphite-dependences.c: Include graphite-cloog-util.h.
18004 (new_poly_ddr): Inlined into dependence_polyhedron.
18005 (free_poly_ddr): Moved close by new_poly_ddr.
18006 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18007 Early return NULL when ppl_powerset_is_empty returns true.
18008 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18009 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18010 (graphite_legal_transform_dr): Call new_poly_ddr.
18011 (graphite_carried_dependence_level_k): Same.
18012 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18013 (dot_transformed_deps_stmt_1): Removed.
18014 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18015 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18016 (dot_deps_1): Call dot_deps_2.
18017 * Makefile.in (graphite-dependences.o): Add missing dependence on
18018 graphite-cloog-util.h.
18020 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18022 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18023 (build_lexicographical_constraint): Same.
18024 (dependence_polyhedron_1): Same.
18025 (graphite_legal_transform_dr): Same.
18026 (graphite_carried_dependence_level_k): Same.
18027 * graphite-ppl.c (ppl_powerset_is_empty): New.
18028 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18029 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18031 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18033 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18034 the "a followed by b" relation and document it.
18036 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18038 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18039 iteration when the bag of constraints is empty.
18041 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18043 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18045 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18047 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18048 nest and two loop depths as parameters.
18049 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18050 lst_perfect_nestify.
18052 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18054 * graphite-dependences.c (print_pddr): Call
18055 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18057 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18059 * graphite-ppl.c (debug_gmp_value): New.
18060 * graphite-ppl.h (debug_gmp_value): Declared.
18062 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18064 * doc/install.texi: Document availability of cloog-0.16.
18066 2011-01-25 Vladimir Kargov <kargov@gmail.com>
18068 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18069 invalid postdominance info.
18071 2011-01-24 Jan Hubicka <jh@suse.cz>
18074 * doc/extend.texi (weak pragma): Drop claim that it must
18075 appear before definition.
18076 * varasm.c (merge_weak, declare_weak): Only sanity check
18077 that DECL is not output at a time it is declared weak.
18079 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18081 * machmode.def: Fixed comments.
18083 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
18085 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18087 2011-01-24 Paul Koning <ni1d@arrl.net>
18089 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18092 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18095 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18096 (block_info): Add scanned and prev.
18097 (move_or_delete_vzeroupper_2): Return if the basic block
18098 has been scanned and the upper 128bit state is unchanged
18099 from the last scan.
18100 (move_or_delete_vzeroupper_1): Return true if the exit
18102 (move_or_delete_vzeroupper): Visit basic blocks using the
18103 work-list based algorithm based on vt_find_locations in
18106 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18108 2011-01-24 Nick Clifton <nickc@redhat.com>
18110 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18111 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18112 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18113 then define __v850e1__.
18114 * doc/invoke.texi: Document -mv850es.
18116 2011-01-24 Richard Henderson <rth@redhat.com>
18118 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18119 compound unordered comparisons.
18120 * config/rx/rx.c (rx_split_fp_compare): Remove.
18121 * config/rx/rx-protos.h: Update.
18122 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18123 (cbranchsf4): Don't call rx_split_fp_compare.
18124 (*cbranchsf4): Use rx_split_cbranch.
18125 (*cmpsf): Don't accept "i" constraint.
18126 (*conditional_branch): Only valid after reload.
18127 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18129 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18132 * config/rs6000/altivec.md (vector constant splitters): Add
18133 support for creating vector single precision constants if -mvsx is
18134 used and we would create the constant using Altivec primitives.
18136 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18137 Richard Sandiford <rdsandiford@googlemail.com>
18139 PR rtl-optimization/47166
18140 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18141 mechanism for PRE_MODIFY and POST_MODIFY.
18142 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18145 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18147 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18149 2011-01-22 Jan Hubicka <jh@suse.cz>
18152 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18154 2011-01-22 Jan Hubicka <jh@suse.cz>
18156 PR tree-optimization/43884
18158 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18159 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18161 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18163 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18164 * config/s390/s390.c (s390_register_move_cost,
18165 s390_memory_move_cost): New.
18166 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18168 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18170 PR middle-end/47401
18171 * except.c (sjlj_assign_call_site_values): Move setting the
18172 crtl->uses_eh_lsda flag to ...
18173 (sjlj_mark_call_sites): ... here.
18174 (sjlj_emit_function_enter): Support NULL dispatch label.
18175 (sjlj_build_landing_pads): In a function with no landing pads
18176 that still has must-not-throw regions, generate code to register
18177 a personality function with empty LSDA.
18179 2011-01-21 Richard Henderson <rth@redhat.com>
18181 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18183 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18185 * compare-elim.c: New file.
18186 * Makefile.in (OBJS-common): Add it.
18187 (compare-elim.o): New.
18188 * common.opt (fcompare-elim): New.
18189 * opts.c (default_options_table): Add OPT_fcompare_elim.
18190 * tree-pass.h (pass_compare_elim_after_reload): New.
18191 * passes.c (init_optimization_passes): Add it.
18192 * recog.h: Protect against re-inclusion.
18193 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18194 * doc/invoke.texi (-fcompare-elim): Document it.
18195 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18196 * doc/tm.texi: Rebuild.
18198 2011-01-22 Nick Clifton <nickc@redhat.com>
18200 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18201 rx_split_fp_compare.
18203 2011-01-22 Nick Clifton <nickc@redhat.com>
18205 * config/rx/rx.md (UNSPEC_CONST): New.
18206 (deallocate_and_return): Wrap the amount popped off the stack in
18207 an UNSPEC_CONST in order to stop it being rejected by
18208 -mmax-constant-size.
18209 (pop_and_return): Add a "(return)" rtx.
18210 (call): Drop the immediate operand.
18211 (call_internal): Likewise.
18212 (call_value): Likewise.
18213 (call_value_internal): Likewise.
18214 (sibcall_internal): Likewise.
18215 (sibcall_value_internal): Likewise.
18216 (sibcall): Likewise. Generate an explicit call using
18218 (sibcall_value): Likewise.
18219 (mov<>): FAIL if a constant operand is not legitimate.
18220 (addsi3_unpsec): New pattern.
18222 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18223 (ok_for_max_constant): New function.
18224 (gen_safe_add): New function.
18225 (rx_expand_prologue): Use gen_safe_add.
18226 (rx_expand_epilogue): Likewise.
18227 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18230 2011-01-21 Jeff Law <law@redhat.com>
18232 PR tree-optimization/47053
18233 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18234 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18235 statements are deleted.
18236 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18237 is nonempty, then purge dead edges and cleanup the CFG.
18239 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18242 Temporarily revert:
18243 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18245 * tree-dfa.c (create_var_ann): Mark variable as used.
18247 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18249 PR middle-end/45566
18250 * except.c (convert_to_eh_region_ranges): Emit queued no-region
18251 notes from other section in hot/cold partitioning even if
18252 last_action is -3. Increment call_site_base.
18254 PR rtl-optimization/47366
18255 * fwprop.c (forward_propagate_into): Return bool. If
18256 any changes are made, -fnon-call-exceptions is used and
18257 REG_EH_REGION note is present, call purge_dead_edges
18258 and return true if it purged anything.
18259 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
18260 any EH edges were purged.
18262 2011-01-21 Jeff Law <law@redhat.com>
18264 PR rtl-optimization/41619
18265 * caller-save.c (setup_save_areas): Break out code to determine
18266 which hard regs are live across calls by examining the reload chains
18267 so that it is always used.
18268 Eliminate code which checked REG_N_CALLS_CROSSED.
18270 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18272 PR tree-optimization/47355
18273 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
18274 NOP has non-debug uses beyond PHIs in new_bb.
18276 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18279 * cfgexpand.c (account_used_vars_for_block): Only account vars
18280 that are annotated as used.
18281 (estimated_stack_frame_size): Don't set TREE_USED.
18282 * tree-dfa.c (create_var_ann): Mark variable as used.
18284 2011-01-21 Richard Guenther <rguenther@suse.de>
18286 PR middle-end/47395
18287 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
18289 2011-01-21 Richard Guenther <rguenther@suse.de>
18291 PR tree-optimization/47365
18292 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
18293 (vn_reference_lookup_pieces): Adjust.
18294 (vn_reference_lookup): Likewise.
18295 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
18296 (vn_reference_lookup_3): Only look through kills if in
18297 VN_WALKREWRITE mode.
18298 (vn_reference_lookup_pieces): Adjust.
18299 (vn_reference_lookup): Likewise.
18300 (visit_reference_op_load): Likewise.
18301 (visit_reference_op_store): Likewise.
18302 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
18303 (compute_avail): Likewise.
18304 (eliminate): Likewise.
18306 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18308 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
18309 DECL_IGNORED_P non-reg vars if they are used.
18311 PR tree-optimization/47391
18312 * varpool.c (const_value_known_p): Return false if
18315 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
18318 * config/i386/i386.c (ix86_local_alignment): Handle
18319 case for va_list_type_node is nil.
18320 (ix86_canonical_va_list_type): Likewise.
18322 2011-01-21 Alan Modra <amodra@gmail.com>
18324 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
18325 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
18327 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18329 * config/arm/arm.md (define_attr type): Rename f_load
18330 and f_store to f_fpa_load and f_fpa_store. Update.
18331 (write_conflict): Deal with rename fallout.
18332 (*push_fp_multi): Likewise.
18333 * config/arm/fpa.md (f_load): Use f_fpa_load.
18334 (f_store): Use f_fpa_store.
18335 (*movsf_fpa): Likewise.
18336 (*movdf_fpa): Likewise.
18337 (*movxf_fpa): Likewise.
18338 (*thumb2_movsf_fpa): Likewise.
18339 (*thumb2_movdf_fpa): Likewise.
18340 (*thumb2_movxf_fpa): Likewise.
18341 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
18342 f_loadd and f_stored.
18343 (*thumb2_movdi_vfp): Likewise.
18344 (*thumb2_movsf_vfp): Fix attribute to f_loads.
18345 (*thumb2_movsi_vfp): Likewise.
18346 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
18347 Use f_loads instead of f_load.
18348 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
18350 2011-01-20 Anatoly Sokolov <aesok@post.ru>
18352 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18353 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
18354 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18355 (xtensa_mode_dependent_address_p): New function.
18356 (constantpool_address_p): Make static. Change return type to bool.
18357 Change argument type to const_rtx. Use CONST_INT_P predicate.
18359 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
18362 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
18364 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18367 * cfgexpand.c (expand_debug_expr): Instead of generating
18368 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
18371 2011-01-20 Richard Guenther <rguenther@suse.de>
18373 PR middle-end/47370
18374 * tree-inline.c (remap_gimple_op_r): Recurse manually for
18375 the pointer operand of MEM_REFs.
18377 2011-01-20 Jakub Jelinek <jakub@redhat.com>
18379 PR tree-optimization/46130
18380 * ipa-split.c (consider_split): If return_bb contains non-virtual
18381 PHIs other than for retval or if split_function would not adjust it,
18384 2011-01-20 Richard Guenther <rguenther@suse.de>
18386 PR tree-optimization/47167
18387 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
18388 Revert previous change, only avoid enumeral type changes.
18390 2011-01-19 Mike Stump <mikestump@comcast.net>
18392 * doc/tm.texi.in (BRANCH_COST): Englishify.
18393 * doc/tm.texi (BRANCH_COST): Likewise.
18395 2011-01-19 Dodji Seketeli <dodji@redhat.com>
18398 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
18399 (gen_scheduled_generic_parms_dies): New functions.
18400 (gen_struct_or_union_type_die): Schedule template parameters DIEs
18401 generation for the end of CU compilation.
18402 (dwarf2out_finish): Generate template parameters DIEs here.
18404 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18407 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
18408 debug bind stmt on merge edges.
18410 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18414 * function.c (instantiate_expr): Instantiate incoming rtl of
18415 implicit arguments, and recurse on VALUE_EXPRs.
18416 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
18417 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
18419 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
18421 * c-parser.c (c_parser_for_statement): Initialize
18422 collection_expression.
18424 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18426 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
18428 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18430 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
18431 (LINK_SHLIB_SPEC): Don't use %(link_path).
18432 (SUBTARGET_EXTRA_SPECS): Remove link_path.
18434 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18436 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
18437 (NO_SHARED_LIB_SUPPORT): Remove.
18438 (LINK_SHLIB_SPEC): Remove one conditional definition.
18440 2011-01-19 Joseph Myers <joseph@codesourcery.com>
18442 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
18444 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
18445 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
18446 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
18447 %{call_shared} and conditionals on these options not being passed.
18448 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
18451 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18453 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
18456 * ipa-split.c: Spelling fixes.
18458 2011-01-19 Richard Henderson <rth@redhat.com>
18460 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
18461 (*mulsi3): Likewise.
18463 * longlong.h [__mn10300__] (count_leading_zeros): New.
18464 [__mn10300__] (umul_ppmm, smul_ppmm): New.
18465 [__mn10300__] (add_ssaaaa, subddmmss): New.
18466 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
18467 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
18469 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18471 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
18473 2011-01-19 Richard Henderson <rth@redhat.com>
18475 * config/mn10300/mn10300.md (addsi3_flags): New.
18476 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
18477 (subsi3_flags, subc_internal, subdi3): New.
18478 (subdi3_internal, *subdi3_degenerate): New.
18479 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
18481 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
18482 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
18483 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
18484 * config/mn10300/mn10300-protos.h: Update.
18485 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
18486 (return_ret): Likewise. Rename from return_internal_regs.
18487 (return_internal): Remove.
18489 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
18490 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
18491 (mn10300_legitimate_constant_p): Likewise.
18492 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
18493 (mn10300_frame_size): New.
18494 (mn10300_expand_prologue): Use it.
18495 (mn10300_expand_epilogue): Likewise.
18496 (mn10300_initial_offset): Likewise.
18497 * config/mn10300/mn10300-protos.h: Update.
18498 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
18499 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
18500 (prologue, epilogue, return_internal): Tidy output code.
18501 (mn10300_store_multiple_operation, return): Likewise.
18502 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
18503 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
18504 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
18505 (load_pic, am33_load_pic): New.
18506 (mn10300_load_pic0, mn10300_load_pic1): New.
18508 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
18509 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
18510 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
18511 (cc_flags_for_mode, cc_flags_for_code): New.
18512 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
18513 overflow flag is not valid. Validate that the flags we need
18514 for the comparison are valid.
18515 (mn10300_output_cmp): Remove.
18516 (mn10300_output_add): New.
18517 (mn10300_select_cc_mode): Use cc_flags_for_code.
18518 (mn10300_split_cbranch): New.
18519 (mn10300_match_ccmode): New.
18520 (mn10300_split_and_operand_count): New.
18521 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
18523 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
18524 (addsi3): ... here. Use mn10300_output_add.
18525 (*addsi3_flags): New.
18526 (*am33_subsi3, *mn10300_subsi3): Merge...
18527 (subsi3): ... here. Use attribute isa.
18528 (*subsi3_flags): New.
18529 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
18531 (*am33_andsi3, *mn10300_andsi3): Merge...
18532 (andsi3): ... here.
18533 (*andsi3_flags): New.
18534 (andsi3 splitters): New.
18535 (*am33_iorsi3, *mn10300_iorsi3): Merge...
18536 (iorsi3): ... here.
18537 (*iorsi3_flags): New.
18538 (*am33_xorsi3, *mn10300_xorsi3): Merge...
18539 (xorsi3): ... here.
18540 (*xorsi3_flags): New.
18541 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
18542 (one_cmplsi2): ... here.
18543 (*one_cmplsi2_flags): New.
18544 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
18545 instead of "dax" in constraints. Use mn10300_split_cbranch.
18546 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
18547 use matching constraints to eliminate a self-comparison.
18548 (*integer_conditional_branch): Rename from integer_conditional_branch.
18549 Use int_mode_flags to match CC_REG.
18550 (*cbranchsi4_btst, *btstsi): New.
18551 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
18552 mn10300_split_cbranch.
18553 (*am33_cmpsf): Rename from am33_cmpsf.
18554 (*float_conditional_branch): Rename from float_conditional_branch.
18555 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
18556 (zero_extendqisi2): ... here.
18557 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
18558 (zero_extendhisi2): ... here.
18559 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
18560 (extendqisi2): ... here.
18561 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
18562 (extendhisi2): ... here.
18563 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
18564 (ashlsi3): ... here.
18565 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
18566 (lshrsi3): ... here.
18567 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
18568 (ashrsi3): ... here.
18569 (consecutive add peephole): Remove.
18570 * config/mn10300/predicates.md (label_ref_operand): New.
18571 (int_mode_flags): New.
18572 (CCZN_comparison_operator): New.
18574 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
18575 (throughput_42_latency_43): New reservation.
18576 (mulsidi3, umulsidi3): New expanders.
18577 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
18578 the MDR register to allocation; separately allocate the low and
18579 high parts of the DImode result.
18580 (umulsidi3_internal): Similarly.
18581 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
18582 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
18583 (udivsi3, umodsi3): Remove.
18584 (udivmodsi4, divmodsi4): New expanders.
18585 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
18586 (*divmodsi4): Simiarly.
18587 (ext_internal): New.
18589 * config/mn10300/constraints.md ("z"): New constraint.
18590 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
18591 (FIXED_REGISTERS): Don't fix MDR.
18592 (CALL_USED_REGSITERS): Reformat nicely.
18593 (REG_ALLOC_ORDER): Add MDR.
18594 (enum regclass): Add MDR_REGS.
18595 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
18596 (IRA_COVER_CLASSES): Add MDR_REGS.
18597 (REGNO_REG_CLASS): Handle MDR_REG.
18598 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
18599 (mn10300_register_move_cost): Likewise.
18600 * config/mn10300/mn10300.md (MDR_REG): New.
18601 (*movsi_internal): Handle moves to/from MDR_REGS.
18603 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
18605 (mn10300_secondary_reload): Tidy combination reload classes.
18606 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
18607 addresses for AM33. Allow symbolic offsets for reg+imm.
18608 (mn10300_regno_in_class_p): New.
18609 (mn10300_legitimize_reload_address): New.
18610 * config/mn10300/mn10300.h (enum reg_class): Remove
18611 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
18612 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
18613 SP_OR_GENERAL_REGS.
18614 (REG_CLASS_NAMES): Update to match.
18615 (REG_CLASS_CONTENTS): Likewise.
18616 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
18617 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
18618 (REGNO_IN_RANGE_P): Remove.
18619 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
18620 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
18621 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
18622 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
18623 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
18624 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
18625 (REGNO_GENERAL_P): New.
18626 (HAVE_POST_MODIFY_DISP): New.
18627 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
18628 (LEGITIMIZE_RELOAD_ADDRESS): New.
18629 * config/mn10300/mn10300-protos.h: Update.
18631 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
18632 DATA_REGS for AM33 stack-pointer destination.
18633 (mn10300_preferred_output_reload_class): Likewise.
18634 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
18635 into a form appropriate for ...
18636 (TARGET_SECONDARY_RELOAD): New.
18637 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
18638 * config/mn10300/mn10300-protos.h: Update.
18639 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
18640 reload_insi; use the "A" constraint for the scratch; handle AM33
18641 moves of sp to non-address registers.
18643 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
18644 (*movqi_internal): ... here.
18645 (*am33_movhi, *mn10300_movhi): Merge into...
18646 (*movhi_internal): ... here.
18647 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
18648 as the source/destination of moves from/to SP.
18649 (movsf): Only allow for AM33-2.
18650 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
18651 any integer constant constraint. Only allow for AM33-2. Tidy
18652 all of the alternative outputs.
18653 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
18654 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
18656 (udivsi3, umodsi3): New patterns for MN103 only.
18658 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
18660 * doc/tm.texi.in: Spell out that a lack of register class unions
18662 * doc/tm.texi: Regenerate.
18664 2011-01-19 Jakub Jelinek <jakub@redhat.com>
18666 PR rtl-optimization/47337
18667 * dce.c (check_argument_store): New function.
18668 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
18670 PR tree-optimization/47290
18671 * tree-eh.c (infinite_empty_loop_p): New function.
18672 (cleanup_empty_eh): Use it.
18674 2011-01-18 Steve Ellcey <sje@cup.hp.com>
18677 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
18678 (a64_expand_widen_sum): Ditto.
18679 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
18680 (vec_extract_evenodd_help): Ditto.
18681 (vec_extract_evenv4hi): Ditto.
18682 (vec_extract_oddv4hi): Ditto.
18683 (vec_extract_evenv2si): Ditto.
18684 (vec_extract_oddv2si): Ditto.
18685 (vec_extract_evenv2sf): Ditto.
18686 (vec_extract_oddv2sf): Ditto.
18687 (vec_pack_trunc_v4hi: Ditto.
18688 (vec_pack_trunc_v2si): Ditto.
18689 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
18690 (vec_interleave_highv8qi): Ditto.
18692 (vec_extract_oddv8qi): Ditto.
18693 (vec_interleave_lowv4hi): Ditto.
18694 (vec_interleave_highv4hi): Ditto.
18695 (vec_interleave_lowv2si): Ditto.
18696 (vec_interleave_highv2si): Ditto.
18698 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18700 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
18701 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
18702 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
18703 (pa_c_mode_for_suffix): New.
18704 (TARGET_EXPAND_BUILTIN): Define.
18705 (TARGET_C_MODE_FOR_SUFFIX): Define.
18706 (pa_builtins): Define.
18707 (pa_init_builtins): Register __float128 type and init new support
18709 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
18710 * config/pa/quadlib.c (_U_Qfcopysign): New.
18712 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
18714 PR middle-end/46894
18715 * explow.c (allocate_dynamic_stack_space): Do not assume more than
18716 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
18719 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18721 PR tree-optimization/47179
18722 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
18723 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
18725 2011-01-18 Richard Guenther <rguenther@suse.de>
18727 PR rtl-optimization/47216
18728 * emit-rtl.c: Include tree-flow.h.
18729 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
18730 of replicating it with different semantics.
18731 * Makefile.in (emit-rtl.o): Adjust.
18733 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18735 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
18736 (cortex_a9_dp): Handle neon types correctly.
18738 2011-01-18 Jakub Jelinek <jakub@redhat.com>
18740 PR rtl-optimization/47299
18741 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
18742 subtarget. Use normal multiplication if both operands are constants.
18743 * expmed.c (expand_widening_mult): Don't try to optimize constant
18744 multiplication if op0 has VOIDmode. Convert op1 constant to mode
18747 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18749 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
18750 spacing after 'e.g.', typos, comma, hyphenation.
18752 2011-01-17 Richard Henderson <rth@redhat.com>
18754 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
18755 (rx_restricted_mem_operand): New.
18756 (rx_shift_operand): Use register_operand.
18757 (rx_source_operand, rx_compare_operand): Likewise.
18758 * config/rx/rx.md (addsi3_flags): New expander.
18759 (adddi3): Rewrite as expander.
18760 (adc_internal, *adc_flags, adddi3_internal): New patterns.
18761 (subsi3_flags): New expander.
18762 (subdi3): Rewrite as expander.
18763 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
18765 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
18766 (rx_init_builtins): Remove sat builtin.
18767 (rx_expand_builtin): Likewise.
18768 * config/rx/rx.md (ssaddsi3): New.
18769 (*sat): Rename from sat. Represent the CC_REG input.
18771 * config/rx/predicates.md (rshift_operator): New.
18772 * config/rx/rx.c (rx_expand_insv): Remove.
18773 * config/rx/rx-protos.h: Update.
18774 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
18775 operand to the canonical position.
18776 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
18777 (*bitclr, *bitclr_in_memory): Similarly.
18778 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
18779 (insv): Retain the zero_extract in the expansion.
18781 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
18782 (bswaphi2, bitinvert, revw): Likewise.
18784 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
18785 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
18786 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
18787 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
18788 (bitset, bitset_in_memory): Likewise.
18789 (bitinvert, bitinvert_in_memory): Likewise.
18790 (bitclr, bitclr_in_memory): Likewise.
18791 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
18792 (rx_strend, rx_cmpstrn): Likewise.
18793 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
18794 (bitop peep2 patterns): Remove.
18796 * config/rx/rx.c (rx_match_ccmode): New.
18797 * config/rx/rx-protos.h: Update.
18798 * config/rx/rx.md (abssi2): Clobber, don't set flags.
18799 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
18800 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
18801 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
18802 (fix_truncsfsi2, floatsisf2): Likewise.
18803 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
18804 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
18805 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
18806 (*subsi3_flags, *xorsi3_flags): New.
18808 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
18810 * config/rx/rx.c (rx_print_operand): Remove workaround for
18811 unsplit comparison operations.
18813 * config/rx/rx.md (movsicc): Split after reload.
18814 (*movsicc): Merge *movsieq and *movsine via match_operator.
18815 (*stcc): New pattern.
18817 * config/rx/rx.c (rx_float_compare_mode): Remove.
18818 * config/rx/rx.h (rx_float_compare_mode): Remove.
18819 * config/rx/rx.md (cstoresi4): Split after reload.
18820 (*sccc): New pattern.
18822 * config/rx/predicates.md (label_ref_operand): New.
18823 (rx_z_comparison_operator): New.
18824 (rx_zs_comparison_operator): New.
18825 (rx_fp_comparison_operator): New.
18826 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
18827 Validate that the flags are set properly for the comparison.
18828 (rx_gen_cond_branch_template): Remove.
18829 (rx_cc_modes_compatible): Remove.
18830 (mode_from_flags): New.
18831 (flags_from_code): Rename from flags_needed_for_conditional.
18832 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
18833 (rx_select_cc_mode): Likewise.
18834 (rx_split_fp_compare): New.
18835 (rx_split_cbranch): New.
18836 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
18837 (*cbranchsi4): Use match_operator and rx_split_cbranch.
18838 (*cbranchsf4): Similarly.
18839 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
18840 match_operator and rx_split_cbranch.
18841 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
18842 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
18843 (*cmpsi): Rename from cmpsi.
18844 (*tstsi): Rename from tstsi.
18845 (*cmpsf): Rename from cmpsf; use CC_Fmode.
18846 (*conditional_branch): Rename from conditional_branch.
18847 (*reveresed_conditional_branch): Remove.
18848 (b<code>): Remove expander.
18849 * config/rx/rx-protos.h: Update.
18851 * config/rx/rx.c (rx_compare_redundant): Remove.
18852 * config/rx/rx.md (cmpsi): Don't use it.
18853 * config/rx/rx-protos.h: Update.
18855 * config/rx/rx-modes.def (CC_F): New mode.
18856 * config/rx/rx.c (rx_select_cc_mode): New.
18857 * config/rx/rx.h (SELECT_CC_MODE): Use it.
18858 * config/rx/rx-protos.h: Update.
18860 2011-01-17 Richard Henderson <rth@redhat.com>
18862 * except.c (dump_eh_tree): Fix stray ; after for statement.
18864 2011-01-17 Richard Guenther <rguenther@suse.de>
18866 PR tree-optimization/47313
18867 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
18868 handling before copying the body. Properly deal with
18869 by-reference result in SSA form.
18871 2011-01-17 Ian Lance Taylor <iant@google.com>
18874 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
18875 (struct_value_alias_set): Don't define.
18876 (sparc_option_override): Don't set sparc_sr_alias_set and
18877 struct_value_alias_set.
18878 (save_or_restore_regs): Use gen_frame_mem rather than calling
18880 (sparc_struct_value_rtx): Likewise.
18882 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
18885 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
18886 (_mm_maskstore_pd): Likewise.
18887 (_mm_maskload_ps): Likewise.
18888 (_mm_maskstore_ps): Likewise.
18889 (_mm256_maskload_pd): Change mask to __m256i.
18890 (_mm256_maskstore_pd): Likewise.
18891 (_mm256_maskload_ps): Likewise.
18892 (_mm256_maskstore_ps): Likewise.
18894 * config/i386/i386-builtin-types.def: Updated.
18895 (ix86_expand_special_args_builtin): Likewise.
18897 * config/i386/i386.c (bdesc_special_args): Update
18898 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
18899 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
18900 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
18901 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
18903 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18904 Use <avxpermvecmode> on mask register.
18905 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18907 2011-01-17 Olivier Hainque <hainque@adacore.com>
18908 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18909 Eric Botcazou <ebotcazou@adacore.com>
18912 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18913 if <= USHRT_MAX in 32-bit mode.
18915 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18917 * doc/install.texi (Configuration, Specific): Wrap long
18918 lines in examples. Allow line wrapping in long options
18919 and URLs where beneficial for PDF output.
18921 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18923 * config/mips/mips.c (mips_classify_symbol): Don't return
18924 SYMBOL_PC_RELATIVE for nonlocal labels.
18926 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18928 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18930 2011-01-15 Jan Hubicka <jh@suse.cz>
18932 PR tree-optimization/47276
18933 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18934 declarations as needed.
18936 2011-01-15 Martin Jambor <mjambor@suse.cz>
18938 * common.opt (fdevirtualize): New flag.
18939 * doc/invoke.texi (Option Summary): Document it.
18940 * opts.c (default_options_table): Add devirtualize flag.
18941 * ipa-prop.c (detect_type_change): Return immediately if
18942 devirtualize flag is not set.
18943 (detect_type_change_ssa): Likewise.
18944 (compute_known_type_jump_func): Likewise.
18945 (ipa_analyze_virtual_call_uses): Likewise.
18947 2011-01-14 Martin Jambor <mjambor@suse.cz>
18949 PR tree-optimization/45934
18950 PR tree-optimization/46302
18951 * ipa-prop.c (type_change_info): New type.
18952 (stmt_may_be_vtbl_ptr_store): New function.
18953 (check_stmt_for_type_change): Likewise.
18954 (detect_type_change): Likewise.
18955 (detect_type_change_ssa): Likewise.
18956 (compute_complex_assign_jump_func): Check for dynamic type change.
18957 (compute_complex_ancestor_jump_func): Likewise.
18958 (compute_known_type_jump_func): Likewise.
18959 (compute_scalar_jump_functions): Likewise.
18960 (ipa_analyze_virtual_call_uses): Likewise.
18961 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18963 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18965 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18966 * config/i386/i386.opt (msse5): New Alias.
18968 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18970 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18971 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18972 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18973 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18975 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18977 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18979 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18980 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18981 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18982 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18984 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18986 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18988 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18990 2011-01-14 Mike Stump <mikestump@comcast.net>
18992 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18993 * config/fr30/fr30.md: Likweise
18994 (movsi_push): Likewise.
18995 (movsi_pop): Likewise.
18996 (enter_func): Likewise.
18997 * config/moxie/moxie.md (movsi_push): Likewise.
18998 (movsi_pop): Likewise.
19000 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19002 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19003 %{no_archive} %{exact_version}.
19004 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19005 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19006 %{no_archive} %{exact_version}.
19007 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19008 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19009 * config/mips/vxworks.h: Likewise.
19011 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19013 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19015 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19017 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19018 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19020 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19022 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19025 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19027 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19029 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19030 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19032 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19033 Don't handle -shlib.
19035 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19037 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19038 (CC1_SPEC): Don't handle -profile.
19040 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19042 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19043 * config/mips/mips.h (CC1_SPEC): Likewise.
19045 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19047 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19048 * config/mips/mips.h (CC1_SPEC): Likewise.
19050 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19052 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19053 * config/m32r/linux.h (LINK_SPEC): Likewise.
19054 * config/mips/linux.h (LINK_SPEC): Likewise.
19055 * config/mips/linux64.h (LINK_SPEC): Likewise.
19056 * config/sparc/linux.h (LINK_SPEC): Likewise.
19057 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19058 LINK_SPEC): Likewise.
19059 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19061 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19063 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19065 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19067 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19069 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19070 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19072 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19074 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19076 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19078 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19079 supports -Bstatic/-Bdynamic.
19080 * configure: Regenerate.
19082 2011-01-14 Jan Hubicka <jh@suse.cz>
19083 Jack Howarth <howarth@bromo.med.uc.edu>
19086 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19087 when checking debug_info_level. Test write_symbols instead of
19088 debug_hooks->var_location when setting flag_var_tracking_uninit.
19090 2011-01-14 Richard Guenther <rguenther@suse.de>
19092 PR tree-optimization/47179
19093 * target.def (ref_may_alias_errno): New target hook.
19094 * targhooks.h (default_ref_may_alias_errno): Declare.
19095 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19096 (default_ref_may_alias_errno): New function.
19097 * target.h (struct ao_ref_s): Declare.
19098 * tree-ssa-alias.c: Include target.h.
19099 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19100 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19101 (targhooks.o): Likewise.
19102 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19103 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19105 2011-01-14 Richard Guenther <rguenther@suse.de>
19107 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19109 2011-01-14 Richard Guenther <rguenther@suse.de>
19111 PR tree-optimization/47280
19112 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19113 return CFG changes.
19114 (tree_ssa_forward_propagate_single_use_vars): Deal with
19115 CFG changes from associate_plusminus.
19117 2011-01-14 Richard Guenther <rguenther@suse.de>
19119 PR middle-end/47281
19121 2011-01-11 Richard Guenther <rguenther@suse.de>
19123 PR tree-optimization/46076
19124 * tree-ssa.c (useless_type_conversion_p): Conversions from
19125 unprototyped to empty argument list function types are useless.
19127 2011-01-14 Richard Guenther <rguenther@suse.de>
19129 PR tree-optimization/47286
19130 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19132 2011-01-14 Martin Jambor <mjambor@suse.cz>
19134 PR middle-end/46823
19135 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19137 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19139 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19140 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19141 * config/xtensa/xtensa.c (xtensa_libcall_value,
19142 xtensa_function_value_regno_p): New functions.
19143 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19145 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19148 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19150 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19151 New function prototype.
19152 * config/i386/winnt.c (i386_pe_assemble_visibility):
19153 Warn only if attribute was specified by user.
19155 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19158 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19160 (floatunsdidf2_fcfidu): Ditto.
19162 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19164 * config/s390/s390.c (print_operand_address): Replace 'error' with
19165 'output_operand_lossage'.
19166 (print_operand): Likewise.
19168 2011-01-13 Jeff Law <law@redhat.com>
19170 PR rtl-optimization/39077
19171 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19172 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19173 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19174 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19175 * gcse.c (prune_insertions_deletions): New function.
19176 (compute_pre_data): Use it.
19178 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19181 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19183 (prune_unused_types_mark): Use it.
19185 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19187 PR rtl-optimization/45352
19188 * sel-sched.c: Update copyright years.
19189 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19190 in the advancing loop when we have issued issue_rate insns.
19192 2011-01-12 Richard Henderson <rth@redhat.com>
19194 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19195 (TARGET_MD_ASM_CLOBBERS): New.
19197 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19198 (TARGET_DELEGITIMIZE_ADDRESS): New.
19200 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19201 (clzsi2, *bsch): New patterns.
19203 * config/mn10300/mn10300.md (INT): New mode iterator.
19204 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19206 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19207 flag_split_wide_types.
19209 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19210 (mn10300_trampoline_init): Rewrite without a template, an immediate
19211 load and a direct branch.
19212 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19214 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19216 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19217 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19218 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19219 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19221 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19224 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19227 2011-01-12 Jan Hubicka <jh@suse.cz>
19230 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19231 (PLUGIN_COND_CLOSE): New macro.
19232 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19234 2011-01-12 Richard Guenther <rguenther@suse.de>
19237 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19238 register variables in a MEM_REF.
19240 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19242 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19243 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19244 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19245 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19246 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19247 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19248 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19249 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
19250 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
19251 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
19252 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
19253 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
19254 * config/gnu-user.h: New. Copied from linux.h.
19255 (LINUX_TARGET_STARTFILE_SPEC): Rename to
19256 GNU_USER_TARGET_STARTFILE_SPEC.
19257 (LINUX_TARGET_ENDFILE_SPEC): Rename to
19258 GNU_USER_TARGET_ENDFILE_SPEC.
19259 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
19260 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
19261 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
19262 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
19263 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
19264 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
19265 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
19266 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
19267 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
19268 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
19269 * config/arm/linux-eabi.h (CC1_SPEC): Use
19270 GNU_USER_TARGET_CC1_SPEC.
19271 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
19272 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
19273 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
19274 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
19275 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
19276 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
19277 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
19278 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
19280 2011-01-12 Richard Guenther <rguenther@suse.de>
19283 * doc/invoke.texi (ffast-math): Document it is turned on
19286 2011-01-12 Jan Hubicka <jh@suse.cz>
19288 PR tree-optimization/47233
19289 * opts.c (common_handle_option): Disable ipa-reference with profile
19292 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19294 * c-parser.c (c_parser_objc_at_property_declaration): Improved
19297 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
19299 * c-parser.c (c_lex_one_token): Updated and reindented some
19300 comments. No changes in code.
19302 2011-01-11 Ian Lance Taylor <iant@google.com>
19304 * godump.c (go_output_var): Don't output the variable if there is
19305 already a type with the same name.
19307 2011-01-11 Ian Lance Taylor <iant@google.com>
19309 * godump.c (go_format_type): Don't generate float80.
19311 2011-01-11 Richard Henderson <rth@redhat.com>
19313 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
19314 declaration. Rewrite for both speed and size.
19315 (mn10300_address_cost_1): Remove.
19316 (mn10300_register_move_cost): New.
19317 (mn10300_memory_move_cost): New.
19318 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
19319 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
19320 extensions, shifts, BSWAP, CLZ.
19321 (mn10300_wide_const_load_uses_clr): Remove.
19322 (TARGET_REGISTER_MOVE_COST): New.
19323 (TARGET_MEMORY_MOVE_COST): New.
19324 * config/mn10300/mn10300-protos.h: Update.
19325 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
19327 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
19328 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
19329 * config/mn10300/mn10300-protos.h: Update.
19330 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
19331 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
19332 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
19333 (*test_int_bitfield, *test_byte_bitfield): Remove.
19334 (*bit_test, *subreg_bit_test): Remove.
19335 * config/mn10300/predicates.md (const_8bit_operand): Remove.
19337 * config/mn10300/constraints.md ("c"): Rename from "A".
19338 ("A", "D"): New constraint letters.
19339 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
19340 (fmssf4, fnmasf4, fnmssf4): Likewise.
19342 * config/mn10300/mn10300.md (isa): New attribute.
19343 (enabled): New attribute.
19345 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
19346 (abssf2, negsf2): Define only for hardware fp.
19347 (sqrtsf2): Reformat.
19348 (addsf3, subsf3, mulsf3): Merge expander and insn.
19350 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
19351 (DEBUGGER_AUTO_OFFSET): Remove.
19352 (DEBUGGER_ARG_OFFSET): Remove.
19354 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
19355 Emit register stores with the same offsets as the hardware.
19356 (mn10300_store_multiple_operation): Don't check that the register
19357 save offsets are monotonic.
19358 * config/mn10300/mn10300-protos.h: Update.
19360 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
19362 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
19363 in terms of the value on the stack, not the MDR register.
19365 2011-01-11 Jan Hubicka <jh@suse.cz>
19369 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
19370 (symbol_alias_set_destroy, symbol_alias_set_contains,
19371 propagate_aliases_backward): Declare.
19372 * lto-streamer-out.c (struct sets): New sturcture.
19373 (trivally_defined_alias): New function.
19374 (output_alias_pair_p): Rewrite.
19375 (output_unreferenced_globals): Fix output of alias pairs.
19376 (produce_symtab): Likewise.
19377 * ipa.c (function_and_variable_visibility): Set weak alias destination
19379 * varasm.c (symbol_alias_set_t): Remove.
19380 (symbol_alias_set_destroy): Export.
19381 (propagate_aliases_forward, propagate_aliases_backward): New functions
19383 (compute_visible_aliases): ... this one; remove.
19384 (trivially_visible_alias): New
19385 (trivially_defined_alias): New.
19386 (remove_unreachable_alias_pairs): Rewrite.
19387 (finish_aliases_1): Reorganize code checking if alias is defined.
19388 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
19391 2011-01-11 Richard Guenther <rguenther@suse.de>
19393 PR tree-optimization/46076
19394 * tree-ssa.c (useless_type_conversion_p): Conversions from
19395 unprototyped to empty argument list function types are useless.
19397 2011-01-11 Richard Guenther <rguenther@suse.de>
19399 PR middle-end/45235
19400 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
19401 volatile MEMs as MEM_READONLY_P.
19403 2011-01-11 Richard Guenther <rguenther@suse.de>
19405 PR tree-optimization/47239
19406 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
19408 2011-01-11 Jeff Law <law@redhat.com>
19410 PR tree-optimization/47086
19411 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
19412 IVs from statements that might throw.
19414 2011-01-10 Jan Hubicka <jh@suse.cz>
19417 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
19419 2011-01-10 Jan Hubicka <jh@suse.cz>
19422 * profile.c (read_profile_edge_counts): Ignore profile inconistency
19423 when correcting profile.
19425 2011-01-10 Jan Hubicka <jh@suse.cz>
19428 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
19429 DECL_FINI_PRIORITY.
19430 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
19431 Restore DECL_FINI_PRIORITY.
19433 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19435 * doc/gimple.texi: Fix quoting of multi-word return values in
19436 @deftypefn statements. Ensure presence of return value. Wrap
19437 overlong @deftypefn lines.
19438 (is_gimple_operand, is_gimple_min_invariant_address): Remove
19439 descriptions of removed functions.
19440 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
19441 of multi-word return value in @deftypefn statement.
19443 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19445 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
19446 (Conditional Expressions, Logical Operators)
19447 (Statement and operand traversals): Do not indent smallexample
19448 code. Fix duplicate function argument in example.
19450 2011-01-10 Jeff Law <law@redhat.com>
19452 PR tree-optimization/47141
19453 * ipa-split.c (split_function): Handle case where we are
19454 returning a value and the return block has a virtual operand phi.
19456 2011-01-10 Jan Hubicka <jh@suse.cz>
19458 PR tree-optimization/47234
19459 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
19460 (pass_feedback_split_functions): Declare.
19461 * passes.c (init_optimization_passes): Add ipa-split as subpass of
19463 * ipa-split.c (gate_split_functions): Update comments; disable
19464 split-functions for profile_arc_flag and branch_probabilities.
19465 (gate_feedback_split_functions): New function.
19466 (execute_feedback_split_functions): New function.
19467 (pass_feedback_split_functions): New global var.
19469 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
19472 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
19473 calling gimple_call_set_cannot_inline.
19475 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
19477 * config/darwin-sections.def: Remove unused section.
19479 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
19482 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
19484 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
19487 * c-parser.c (c_parser_declaration_or_fndef): Improved
19490 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
19492 * config/i386/winnt.c (i386_pe_start_function): Make sure
19493 to switch back to function's section.
19495 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
19499 * plugin.c: Move include of dlfcn.h from here...
19500 * system.h: ... to here.
19502 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19504 * doc/cpp.texi (C++ Named Operators): Fix markup for header
19506 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
19507 two extra empty pages in PDF output.
19509 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
19512 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
19513 for error recovery purposes behave as if it was not specified so
19514 that the default type is usd.
19516 2011-01-07 Jan Hubicka <jh@suse.cz>
19518 PR tree-optmization/46469
19519 * ipa.c (function_and_variable_visibility): Clear needed flags on
19520 nodes with external decls; handle weakrefs merging correctly.
19522 2011-01-07 Joseph Myers <joseph@codesourcery.com>
19524 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
19527 2011-01-07 Jan Hubicka <jh@suse.cz>
19529 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
19530 and no longer claim that gold is required for linker plugin.
19531 * configure: Regenerate.
19532 * gcc.c (PLUGIN_COND): New macro.
19533 (LINK_COMMAND_SPEC): Use it.
19534 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
19535 * config.in (HAVE_LTO_PLUGIN): New.
19536 * configure.ac (--with-lto-plugin): New parameter; autodetect
19539 2011-01-07 Jan Hubicka <jh@suse.cz>
19541 PR tree-optimization/46367
19542 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
19543 when we can update original.
19544 (cgraph_mark_inline_edge): Sanity check.
19545 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
19547 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19549 * config/spu/spu.h (ASM_COMMENT_START): Define.
19551 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
19554 * gcc.c (%>S): New.
19555 (SWITCH_KEEP_FOR_GCC): Likewise.
19556 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
19557 (do_spec_1): Handle "%>".
19559 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
19561 2011-01-07 Jakub Jelinek <jakub@redhat.com>
19564 * config/i386/i386.c (ix86_delegitimize_address): If
19565 simplify_gen_subreg fails, return orig_x.
19568 * value-prof.c (gimple_stringop_fixed_value): Handle
19569 lhs of the call properly.
19571 2011-01-07 Jan Hubicka <jh@suse.cz>
19574 * lto-opt.c (lto_reissue_options): Set flag_shlib.
19576 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19578 * target.def (function_switched_text_sections): New hook.
19579 * doc/tm.texi: Regenerated.
19580 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19581 * final.c (default_function_switched_text_sections): New.
19582 (final_scan_insn): Call function_switched_text_sections when a
19583 mid-function section change occurs.
19584 * output.h (default_function_switched_text_sections): Declare.
19585 * config/darwin-protos.h (darwin_function_switched_text_sections):
19587 * config/darwin.c (darwin_function_switched_text_sections): New.
19588 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
19590 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
19592 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
19593 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
19594 the secondary code fragment when outputting for DWARF == 2.
19596 2011-01-07 Anatoly Sokolov <aesok@post.ru>
19598 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19599 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
19601 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
19602 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19604 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
19607 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
19608 when it is not empty.
19610 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
19613 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
19614 (case ${target}): Add btver1.
19615 * config/i386/driver-i386.c (host_detect_local_cpu): Let
19616 -march=native recognize btver1 processors.
19617 * config/i386/i386-c.c (ix86_target_macros_internal): Add
19618 btver1 def_and_undef
19619 * config/i386/i386.c (struct processor_costs btver1_cost): New
19621 (m_BTVER1): New definition.
19622 (m_AMD_MULTIPLE): Includes m_BTVER1.
19623 (initial_ix86_tune_features): Add btver1 tune.
19624 (processor_target_table): Add btver1 entry.
19625 (static const char *const cpu_names): Add btver1 entry.
19626 (software_prefetching_beneficial_p): Add btver1.
19627 (ix86_option_override_internal): Add btver1 instruction sets.
19628 (ix86_issue_rate): Add btver1.
19629 (ix86_adjust_cost): Add btver1.
19630 * config/i386/i386.h (TARGET_BTVER1): New definition.
19631 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
19632 (enum processor_type): Add PROCESSOR_BTVER1.
19633 * config/i386/i386.md (define_attr "cpu"): Add btver1.
19635 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19638 * config/i386/i386.c (legitimize_tls_address)
19639 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
19640 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
19641 (tls_initial_exec_64_sun): New pattern.
19643 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19645 * doc/invoke.texi (Overall Options): Improve wording and markup
19646 of the description of -wrapper.
19648 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19650 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
19651 rdynamic, threads): New Driver options.
19653 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19656 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
19657 if coming from .tdata.
19658 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19660 2011-01-06 Jan Hubicka <jh@suse.cz>
19663 * collect2.c (main): Do not enable LTOmode when plugin is active.
19665 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19668 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
19669 --version output if supported.
19670 * configure: Regenerate.
19672 2011-01-06 Joseph Myers <joseph@codesourcery.com>
19674 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
19677 2011-01-06 Jakub Jelinek <jakub@redhat.com>
19680 * c-convert.c (convert): When converting a complex expression
19681 other than COMPLEX_EXPR to a different complex type, ensure
19682 c_save_expr is called instead of save_expr, unless in_late_binary_op.
19683 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
19684 when converting COMPLEX_TYPE.
19686 2011-01-06 Ira Rosen <irar@il.ibm.com>
19688 PR tree-optimization/47139
19689 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
19690 only the last reduction value is used outside the loop. Update
19693 2011-01-05 Joseph Myers <joseph@codesourcery.com>
19695 * config/rtems.opt: New.
19696 * config.gcc (*-*-rtems*): Use rtems.opt.
19698 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
19700 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
19701 processors do not support 3DNow instructions.
19703 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19705 * config/spu/spu.c (spu_option_override): Set parameter
19706 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
19708 2011-01-05 Jan Hubicka <jh@suse.cz>
19710 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
19711 at the command line.
19713 2011-01-05 Martin Jambor <mjambor@suse.cz>
19716 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
19717 deltas on streamed outgoing edges.
19718 (output_node_opt_summary): Output info for outgoing edges only when
19719 the node is in new parameter set.
19720 (output_cgraph_opt_summary): New parameter set, passed to the two
19721 aforementioned functions. Update its forward declaration and its
19724 2011-01-05 Tom Tromey <tromey@redhat.com>
19726 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
19727 operator to c_finish_omp_atomic.
19728 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
19729 (build_unary_op): Update.
19730 (build_modify_expr): Update.
19731 (build_asm_expr): Update.
19733 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19735 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
19736 newly inserted insns.
19737 (pad_bb): Likewise.
19738 (spu_emit_branch_hint): Likewise.
19739 (insert_hbrp_for_ilb_runout): Likewise.
19740 (spu_machine_dependent_reorg): Call df_finish_pass after
19741 schedule_insns returns.
19743 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19745 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
19747 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
19749 PR tree-optimization/47005
19750 * tree-sra.c (struct access): Add 'non_addressable' bit.
19751 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
19752 (decide_one_param_reduction): Return 0 if the parameter is passed by
19753 reference and one of the accesses in the group is non_addressable.
19755 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19757 PR tree-optimization/47056
19758 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
19759 (mark_load): Likewise. Handle FUNCTION_DECL specially.
19760 (mark_store): Likewise. Pass STMT to ipa_record_reference.
19762 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
19764 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
19765 initializer. Skip view conversions from aggregate types.
19767 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
19770 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
19772 2011-01-04 Philipp Thomas <pth@suse.de>
19774 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
19777 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19779 * function.c (thread_prologue_and_epilogue_insns): Do not crash
19780 on empty epilogue sequences.
19782 2011-01-04 Joseph Myers <joseph@codesourcery.com>
19784 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
19785 non-static): New Driver options.
19787 2011-01-04 Jie Zhang <jie@codesourcery.com>
19790 * gcc.c (default_compilers[]): Set combinable field to 0
19791 for all assembly languages.
19793 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
19795 * config/mips/loongson3a.md: New file.
19796 * config/mips/mips.md: Include loongson3a.md.
19797 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
19800 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
19802 PR middle-end/47017
19803 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
19804 instead of convert_memory_address_addr_space on the base expression.
19806 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19808 * config/spu/spu.c (spu_option_override): Update error text
19809 for bad -march= / -mtune= values.
19811 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19813 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
19814 if branch-hint optimization will be performed.
19816 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19818 PR tree-optimization/47148
19819 * ipa-split.c (split_function): Convert arguments to
19820 DECL_ARG_TYPE if possible.
19822 PR tree-optimization/47155
19823 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
19824 when computing uns.
19826 PR rtl-optimization/47157
19827 * combine.c (try_combine): If undobuf.other_insn becomes
19828 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
19829 and set *new_direct_jump_p too.
19831 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
19833 PR tree-optimization/47021
19834 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
19836 2011-01-03 Jakub Jelinek <jakub@redhat.com>
19838 * gcc.c (process_command): Update copyright notice dates.
19839 * gcov.c (print_version): Likewise.
19840 * gcov-dump.c (print_version): Likewise.
19841 * mips-tfile.c (main): Likewise.
19842 * mips-tdump.c (main): Likewise.
19844 2011-01-03 Martin Jambor <mjambor@suse.cz>
19846 PR tree-optimization/46801
19847 * tree-sra.c (type_internals_preclude_sra_p): Check whether
19848 aggregate fields start at byte boundary instead of the bit-field flag.
19850 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
19853 * gcc.c (main): Revert revision 168407.
19855 2011-01-03 Martin Jambor <mjambor@suse.cz>
19857 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
19859 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19861 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
19862 vector optab to expand vector/scalar shift, update gimple to vector.
19864 2011-01-03 Martin Jambor <mjambor@suse.cz>
19866 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
19869 2011-01-03 Martin Jambor <mjambor@suse.cz>
19871 PR tree-optimization/46984
19872 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
19874 (cgraph_create_indirect_edge): Fixed line length.
19875 (cgraph_indirect_call_info): Declare.
19876 (cgraph_make_edge_direct) Update declaration.
19877 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
19878 (cgraph_create_indirect_edge): Use it.
19879 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
19881 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
19882 the new thunk_delta representation.
19883 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
19885 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
19886 (ipa_read_indirect_edge_info): Likewise.
19887 * lto-cgraph.c (output_edge_opt_summary): New function.
19888 (output_node_opt_summary): Call it on all outgoing edges.
19889 (input_edge_opt_summary): New function.
19890 (input_node_opt_summary): Call it on all outgoing edges.
19892 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
19895 * gcc.c (main): Don't check have_o when settting combine_inputs.
19897 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
19899 * regrename.c: Add general comment describing the pass.
19900 (struct du_head): Remove 'length' field.
19901 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
19902 (regrename_optimize): Do not sort chains. Rework comments, add others.
19903 Force renaming to the preferred class (if any) in the first pass and do
19904 not consider registers that belong to it in the second pass.
19905 (create_new_chain): Do not set 'length' field.
19906 (scan_rtx_reg): Likewise.
19908 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19910 PR tree-optimization/47140
19911 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19912 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19913 to bit_value_binop.
19915 PR rtl-optimization/47028
19916 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19917 parm_birth_insn instead of at the beginning of first bb.
19919 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19921 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19922 Remove the word "see" before "@pxref".
19923 * doc/rtl.texi: Remove the word "see" before "@pxref".
19925 2011-01-01 Jan Hubicka <jh@suse.cz>
19927 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19930 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19933 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19936 Copyright (C) 2011 Free Software Foundation, Inc.
19938 Copying and distribution of this file, with or without modification,
19939 are permitted in any medium without royalty provided the copyright
19940 notice and this notice are preserved.