1. 10 Sep, 2007 2 commits
  2. 08 Sep, 2007 2 commits
  3. 07 Sep, 2007 2 commits
    • Re-apply accidentally reverted change: · 0ab29e91
      	2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* raise-gcc.c (get_region_description_for, get_call_site_action_for,
      	get_action_description_for): Replace _Unwind_Word with _uleb128_t 
      	and _Unwind_SWord with _sleb128_t.
      
      From-SVN: r128252
      Eric Botcazou committed
    • Reapply reverted change: · 6ef9a246
      gcc/ada/
      	Reapply reverted change:
      
              2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
      
              * trans.c (convert_with_check): Update call to real_2expN.
      
      gcc/
      	config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
      	config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
      
      	Reapply reverted changes:
      
       	2007-09-06  Jan Hubicka  <jh@suse.cz>
       
      	* config/i386.c (ix86_expand_lround, ix86_expand_round): Update call of
      	real_2expN.
      
      	2007-09-06  Richard Sandiford  <richard@codesourcery.com>
      
      	* config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
      	(fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
      
      	2007-09-05  Janis Johnson  <janis187@us.ibm.com>
      
      	* optabs.c (expand_float): Convert unsigned integer as signed only
      	if it provides sufficient accuracy; add mode argument to real_2expN.
      	(expand_fix): Fix comment typos; extend binary float into mode
      	wider than destination for converion to unsigned integer; add mode
      	argument to real_2expN.
      	* real.c (real_2expN): Add mode argument to special-case decimal
      	float values.
      	* real.h (real_2expN): Ditto.
      	* fixed-value.c (check_real_for_fixed_mode): Add mode argument to
      	real_2expN.
      	(fixed_from_string): Ditto.
      	(fixed_to_decimal): Ditto.
      	(fixed_convert_from_real): Ditto.
      	(real_convert_from_fixed): Ditto.
      	* config/rs6000/rs6000.md (FP): Include DD and TD modes.
      	* config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
      	muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
      	floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
      
      From-SVN: r128247
      Janis Johnson committed
  4. 06 Sep, 2007 2 commits
  5. 05 Sep, 2007 1 commit
    • Add target hook invoked when cfun changes. · db2960f4
      2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	Add target hook invoked when cfun changes.
      
      	* doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
      	* target.h (struct gcc_target): Add set_current_function.
      	* target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
      	(TARGET_INITIALIZER): Add initializer for set_current_function.
      	* tree.h (push_struct_function): New.
      	* tree-inline.h (push_cfun, pop_cfun): Move declarations to...
      	* function.h: Here.
      	(set_cfun): Declare.
      	* tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
      	* function.c:  Here.
      	(push_function_context_to): Use allocate_struct_function
      	to create null context, not init_dummy_function_start.  Use set_cfun.
      	(pop_function_context_from): Use set_cfun.
      	(in_dummy_function): New.
      	(invoke_set_current_function_hook): New.
      	(set_cfun): New.
      	(push_cfun, pop_cfun): Use set_cfun.
      	(push_struct_function): New.
      	(allocate_struct_function): Call invoke_set_current_function_hook
      	before returning.
      	(prepare_function_start): Don't set cfun here.  Remove unused
      	argument; fix all callers.
      	(init_dummy_function_start): Fiddle with in_dummy_function.  Call
      	push_struct_function.
      	(init_function_start): Set cfun here.
      	(expand_dummy_function_end): Fiddle with in_dummy_function.  Pop cfun.
      	* omp-low.c (create_omp_child_function): Use push_struct_function
      	and pop_cfun to save/restore state.
      	(expand_omp_parallel): Remove unused saved_cfun variable.
      	* cgraphunit.c (ipa_passes): Use set_cfun.
      	* gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
      	* dwarf2out.c (dwarf2out_abstract_function): Likewise.
      	* matrix-reorg.c (transform_allocation_sites): Likewise.
      	(matrix_reorg): Use set_cfun.
      	* gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
      	* tree-optimize.c (tree_rest_of_compilation): Remove one redundant
      	assignment to cfun; use set_cfun for the other.
      	* tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
      	(dump_function_to_file): Use push_cfun/pop_cfun here.
      	* c-decl.c (finish_function): Use set_cfun.
      
      	gcc/ada/
      	* trans.c (Compilation_unit_to_gnu): Use set_cfun.
      	* utils.c (end_subprog_body): Likewise.
      
      	gcc/cp/
      	* decl.c (finish_function): Use set_cfun.
      	* method.c (use_thunk): Likewise.
      
      	gcc/fortran/
      	* trans-decl.c (build_entry_thunks): Use set_cfun.
      	(gfc_generate_function_code): Likewise.
      
      	gcc/java/
      	* decl.c (finish_method): Use set_cfun.
      
      	gcc/treelang/
      	* treetree.c (tree_code_create_function_wrapup):  Use set_cfun.
      
      From-SVN: r128132
      Sandra Loosemore committed
  6. 03 Sep, 2007 1 commit
  7. 31 Aug, 2007 2 commits
  8. 22 Aug, 2007 1 commit
  9. 16 Aug, 2007 2 commits
    • c-common.c (const_strip_array_types): New. · ac7d7749
      	* c-common.c (const_strip_array_types): New.
      	* c-common.h (lang_missing_noreturn_ok_p): Delete.
      	(const_strip_array_types): New.
      	* c-objc-common.c (c_disregard_inline_limits,
      	c_warn_unused_global_decl): Constify.
      	* c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
      	c_vla_type_p, c_incomplete_type_error): Likewise.
      	* c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
      	* hooks.c (hook_bool_const_tree_false): New.
      	* hooks.h (hook_bool_const_tree_false): Likewise.
      	* langhooks-def.h (lhd_warn_unused_global_decl,
      	lhd_incomplete_type_error, lhd_expr_size,
      	lhd_tree_inlining_disregard_inline_limits,
      	lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
      	LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
      	* langhooks.c (lhd_warn_unused_global_decl,
      	lhd_incomplete_type_error,
      	lhd_tree_inlining_disregard_inline_limits,
      	lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
      	lhd_expr_size): Likewise.
      	* langhooks.h (lang_hooks_for_tree_inlining,
      	lang_hooks_for_tree_dump, lang_hooks_for_types,
      	lang_hooks_for_decls, lang_hooks): Likewise.
      	* pointer-set.c (pointer_set_t, pointer_set_create,
      	pointer_set_contains, insert_aux, pointer_set_insert,
      	pointer_set_traverse, pointer_map_t, pointer_map_create,
      	pointer_map_contains, pointer_map_insert, pointer_map_traverse):
      	Likewise.
      	* pointer-set.h (pointer_set_contains, pointer_set_insert,
      	pointer_set_traverse, pointer_map_contains, pointer_map_insert,
      	pointer_map_traverse): Likewise.
      	* predict.c (assert_is_empty): Likewise.
      	* tree-affine.c (free_name_expansion): Likewise.
      	* tree-cfg.c (edge_to_cases_cleanup): Likewise.
      	* tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
      	* tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
      	
      ada:
      	* misc.c (gnat_type_max_size): Constify.
      
      cp:
      	* cp-objcp-common.c (cxx_warn_unused_global_decl, cp_expr_size):
      	Constify.
      	* cp-tree.h (local_variable_p, nonstatic_local_decl_p,
      	class_tmpl_impl_spec_p, cp_auto_var_in_fn_p, cp_type_quals,
      	cxx_incomplete_type_diagnostic, cxx_incomplete_type_error,
      	cxx_warn_unused_global_decl, cp_expr_size): Likewise.
      	* decl.c (local_variable_p, nonstatic_local_decl_p): Likewise.
      	* tree.c (class_tmpl_impl_spec_p, cp_auto_var_in_fn_p): Likewise.
      	* typeck.c (cp_type_quals): Likewise.
      	* typeck2.c (cxx_incomplete_type_diagnostic,
      	cxx_incomplete_type_error): Likewise.
      
      From-SVN: r127560
      Kaveh R. Ghazi committed
    • Resync · 833eddff
      From-SVN: r127553
      Arnaud Charlet committed
  10. 14 Aug, 2007 1 commit
  11. 11 Aug, 2007 3 commits
    • alias.h (alias_set_type): Define new type. · 4862826d
      ./:	* alias.h (alias_set_type): Define new type.
      	(ALIAS_SET_MEMORY_BARRIER): Use it.
      	* rtl.h: Include alias.h.
      	(struct mem_attrs): Use alias_set_type.
      	* tree.h: Include alias.h
      	(struct tree_type): Use alias_set_type.
      	(struct tree_struct_field_tag): Likewise.
      	(struct tree_decl_common): Likewise.
      	* alias.c (struct alias_set_entry): Use alias_set_type.
      	(get_alias_set_entry, alias_set_subset_of): Likewise.
      	(alias_sets_conflict_p): Likewise.
      	(alias_sets_must_conflict_p): Likewise.
      	(objects_must_conflict_p): Likewise.
      	(get_alias_set, new_alias_set): Likewise.
      	(record_alias_subset, record_component_aliases): Likewise.
      	(varargs_set, frame_set): Change to alias_set_type.
      	(get_varargs_alias_set): Use alias_set_type.
      	(get_frame_alias_set): Likewise.
      	* builtins.c (setjmp_alias_set): Change to alias_set_type.
      	* dse.c (struct store_info): Use alias_set_type.
      	(struct read_info, struct clear_alias_mode_holder): Likewise.
      	(clear_alias_set_lookup, canon_address): Likewise.
      	(record_store, check_mem_read_rtx): Likewise.
      	(dse_record_singleton_alias_set): Likewise.
      	(dse_invalidate_singleton_alias_set): Likewise.
      	* emit-rtl.c (get_mem_attrs): Likewise.
      	(set_mem_attributes_minus_bitpos): Likewise.
      	(set_mem_alias_set): Likewise.
      	* expr.c (store_constructor_field, store_field): Likewise.
      	* gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
      	* langhooks.c (lhd_get_alias_set): Likewise.
      	* langhooks-def.h (lhd_get_alias_set): Likewise.
      	* reload1.c (alter_reg): Likewise.
      	* tree-flow.h (struct fieldoff): Likewise.
      	* tree-ssa-alias.c (struct alias_map_d): Likewise.
      	(may_alias_p, get_smt_for, create_sft): Likewise.
      	* tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
      	* tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
      	(merge_smts_into): Likewise.
      	* varasm.c (const_alias_set): Likewise.
      	* c-common.c (strict_aliasing_warning): Likewise.
      	(c_common_get_alias_set): Likewise.
      	* dse.h (dse_record_singleton_alias_set): Update declaration.
      	(dse_invalidate_singleton_alias_set): Likewise.
      	* emit-rtl.h (set_mem_alias_set): Likewise.
      	* c-common.h (c_common_get_alias_set): Likewise.
      	* print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
      	* print-tree.c (print_node): Likewise.
      	* config/alpha/alpha.c (alpha_sr_alias_set): Change to
      	alias_set_type.
      	(alpha_setup_incoming_varargs): Use alias_set_type.
      	* config/i386/i386.c (setup_incoming_varargs_64): Use
      	alias_set_type.
      	(setup_incoming_varargs_ms_64): Likewise.
      	(ix86_GOT_alias_set): Likewise.
      	* config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
      	* config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
      	(set): Change to alias_set_type.
      	(get_TOC_alias_set): Use alias_set_type.
      	* config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
      	declaration.
      	* config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
      	* config/sparc/sparc.c (sparc_sr_alias_set): Change to
      	alias_set_type.
      	(struct_value_alias_set): Likewise.
      	* Makefile.in (GTFILES): Add $(srcdir)/alias.h.
      ada/:
      	* misc.c (gnat_get_alias_set): Change return type to
      	alias_set_type.
      cp/:
      	* cp-objcp-common.c (cxx_get_alias_set): Change return type to
      	alias_set_type.
      	* cp/cp-tree.h (cxx_get_alias_set): Update declaration.
      fortran:/
      	* f95-lang.c (gfc_get_alias_set): Change return type to
      	alias_set_type.
      
      From-SVN: r127362
      Ian Lance Taylor committed
    • decl.c, utils2.c: Fix whitespace in last change. · 4d8a9bfe
              * decl.c, utils2.c: Fix whitespace in last change.
      
      From-SVN: r127359
      Kaveh R. Ghazi committed
    • decl.c (compare_field_bitpos): Constify. · 39595763
      	* decl.c (compare_field_bitpos): Constify.
      	* utils2.c (compare_elmt_bitpos): Likewise.
      
      From-SVN: r127358
      Kaveh R. Ghazi committed
  12. 01 Aug, 2007 1 commit
  13. 08 Jul, 2007 1 commit
  14. 21 Jun, 2007 1 commit
  15. 16 Jun, 2007 1 commit
    • [multiple changes] · 5be014d5
      2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
                  Zdenek Dvorak <dvorakz@suse.cz>
                  Richard Guenther  <rguenther@suse.de>
                  Kaz Kojima  <kkojima@gcc.gnu.org>
      
      	* tree-vrp.c (compare_values_warnv): Convert val2 to
      	the type of val1.
      	(extract_range_from_assert): Create
      	POINTER_PLUS_EXPR for pointer types.
      	(extract_range_from_binary_expr): Handle
      	only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
      	for pointer types.
      	* doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
      	* tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
      	POINTER_PLUS_EXPR as PLUS_EXPR.
      	(number_of_iterations_lt_to_ne):
      	For pointer types, use sizetype when
      	creating MINUS_EXPR/PLUS_EXPRs.
      	(assert_loop_rolls_lt): For pointer types, use sizetype when
      	creating MINUS_EXPR/PLUS_EXPRs.
      	(number_of_iterations_le): Likewise.
      	(expand_simple_operations): POINTER_PLUS_EXPR are simple also.
      	(derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
      	like PLUS_EXPR and MINUS_EXPR.
      	* tree-pretty-print.c (dump_generic_node): Handle
      	POINTER_PLUS_EXPR.
      	(op_prio): Likewise.
      	(op_symbol_1): Likewise.
      	* optabs.c (optab_for_tree_code): Likewise.
      	* tree-ssa-loop-manip.c (create_iv): Handle pointer base
      	specially.
      	* tree-tailcall.c (process_assignment): Mention
      	POINTER_PLUS_EXPR in a TODO comment.
      	* tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
      	MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
      	not used with a pointer and an integer type.
      	* tree-scalar-evolution.c (add_to_evolution_1): Convert the
      	increment using chrec_convert_rhs instead of chrec_convert.
      	(follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
      	PLUS_EXPR except for the right hand side's type will be
      	sizetype.
      	(interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
      	(fold_used_pointer_cast): Kill.
      	(pointer_offset_p): Kill.
      	(fold_used_pointer): Kill.
      	(pointer_used_p): Kill.
      	(analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
      	call fold_used_pointer.
      	(instantiate_parameters_1): Convert the increment
      	using chrec_convert_rhs instead of chrec_convert.
      	Handle POINTER_PLUS_EXPR as PLUS_EXPR.
      	* builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
      	instead of PLUS_EXPR.
      	(expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
      	PLUS_EXPR for pointers.
      	(std_gimplify_va_arg_expr): Likewise.
      	(fold_builtin_memory_op): Likewise.
      	(fold_builtin_strstr): Likewise.
      	(fold_builtin_strchr): Likewise.
      	(fold_builtin_strrchr): Likewise.
      	(fold_builtin_strpbrk): Likewise.
      	(expand_builtin_memory_chk): Likewise.
      	(fold_builtin_memory_chk): Likewise.
      	(std_expand_builtin_va_start): Use
      	sizetype for the call to make_tree and then convert
      	to the pointer type.
      	(fold_builtin_memchr): Use POINTER_PLUS_EXPR
      	instead of PLUS_EXPR for adding to a pointer.
      	(std_gimplify_va_arg_expr): Use fold_build2 for
      	the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
      	the operands to sizetype first and then cast the BIT_AND_EXPR
      	back to the pointer type.
      	* fold-const.c (build_range_check): Handle pointer types
      	specially.
      	(extract_array_ref): Look for POINTER_PLUS_EXPR instead
      	of PLUS_EXPR's. Make sure the offset is converted to
      	sizetype.
      	(try_move_mult_to_index): Strip the NOPs from the offset.
      	Remove code argument and replace all uses with PLUS_EXPR.
      	(fold_to_nonsharp_ineq_using_bound): Handle pointer types
      	specially. Don't use a pointer type for MINUS_EXPR.
      	(fold_unary): Handle for (T1)(X op Y),
      	only p+ as that is the only as that can be handled for
      	binary operators now.
      	(fold_binary <case POINTER_PLUS_EXPR>): Add folding of
      	POINTER_PLUS_EXPR.
      	<case PLUS_EXPR>: Add folding of PTR+INT into
      	PTR p+ INT.
      	Don't call try_move_mult_to_index.
      	<case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
      	into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
      	(PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
      	Don't call try_move_mult_to_index.
      	(tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
      	(tree_expr_nonzero_p): Likewise.
      	(fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
      	of PLUS_EXPR for the complex expression folding.
      	* tree-chrec.c (chrec_fold_plus_poly_poly): If the
      	first chrec is a pointer type, then the second should
      	be sizetype and not the first's type.
      	For POINTER_PLUS_EXPR, use a different right hand side type.
      	Handle POINTER_PLUS_EXPR like PLUS_EXPR.
      	(chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
      	different right hand side type.
      	Handle POINTER_PLUS_EXPR like PLUS_EXPR.
      	(chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
      	instead of PLUS_EXPR.
      	When either operand is zero, convert the other operand.
      	(chrec_apply): Use chrec_convert_rhs
      	on the argument x instead of chrec_convert.
      	(reset_evolution_in_loop): For pointer types, the new_evol
      	should be sizetype.
      	(convert_affine_scev): For POINTER_PLUS_EXPR, use a
      	different right hand side type.
      	Handle POINTER_PLUS_EXPR like PLUS_EXPR.
      	(chrec_convert_rhs): New function.
      	(chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
      	different right hand side type.
      	Handle POINTER_PLUS_EXPR like PLUS_EXPR.
      	* tree-chrec.h (chrec_convert_rhs): New prototype.
      	(build_polynomial_chrec): For pointer types, the right hand
      	* tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
      	POINTER_PLUS_EXPR instead of PLUS_EXPR's.
      	Remove subtraction case as it is always addition now.
      	Make sure the offset is converted to sizetype.
      	(fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
      	Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
      	* tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
      	PLUS_EXPR in pointer type.
      	Handle POINTER_PLUS_EXPR.
      	(tree_to_aff_combination): Likewise.
      	(force_expr_to_var_cost): Likewise.
      	(force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
      	instead of PLUS_EXPR for pointers.
      	* c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
      	instead of PLUS_EXPR of pointer types.
      	* tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
      	as PLUS_EXPR.
      	(check_va_list_escapes): Likewise.
      	(check_all_va_list_escapes): Likewise.
      	* dwarf2out.c (loc_descriptor_from_tree_1):
      	Handle POINT_PLUS_EXPR as a PLUS_EXPR.
      	* expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
      	(string_constant): Likewise.
      	* tree-ssa-address.c (tree_mem_ref_addr): When adding
      	the offset to the base, use POINTER_PLUS_EXPR.
      	(add_to_parts): Convert the index to sizetype.
      	(create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
      	* matrix-reorg.c (collect_data_for_malloc_call): Stmt
      	will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
      	Offset only holds something for PLUS_EXPR.
      	(ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
      	a PLUS_EXPR.
      	(analyze_transpose): POINTER_PLUS_EXPR will only show up now
      	and not PLUS_EXPR.
      	(analyze_accesses_for_modify_stmt): Likewise.
      	Remove comment about the type being integral type as it is
      	wrong now.
      	(can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
      	PLUS_EXPR.
      	(transform_access_sites): POINTER_PLUS_EXPR will only show up now
      	and not PLUS_EXPR.
      	Correct the type which the artimentic is done in (is now
      	sizetype).
      	Reindent one loop.
      	* tree-data-ref.c (split_constant_offset): Handle
      	POINTER_PLUS_EXPR
      	* tree-affine.c (tree_to_aff_combination): Likewise.
      	* c-typeck.c (build_unary_op): For pointers create the increment
      	as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
      	for pointers.
      	* gimplify.c (gimplify_self_mod_expr): Create a
      	POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
      	(gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
      	* tree.def (POINTER_PLUS_EXPR): New tree code.
      	* tree-predcom.c (ref_at_iteration): If we have a pointer
      	type do the multiplication in sizetype.
      	* tree-mudflap.c (mf_xform_derefs_1): Create a
      	POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
      	* tree-ssa-forwprop.c 
      	(forward_propagate_addr_into_variable_array_index):
      	Don't expect there to be a cast for the index as that
      	does not exist anymore.
      	(forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
      	instead of PLUS_EXPR.
      	Don't check for the first operand of the POINTER_PLUS_EXPR
      	was the index as it cannot be.
      	Call forward_propagate_addr_into_variable_array_index with
      	the SSA_NAME instead of the statement.
      	* varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
      	(compare_constant): Likewise.
      	(copy_constant): Likewise.
      	(compute_reloc_for_constant): Likewise.
      	(output_addressed_constants): Likewise.
      	(initializer_constant_valid_p): Likewise.
      	* tree-ssa.c (tree_ssa_useless_type_conversion_1):
      	Convert the MIN/MAX of the inner type to the outer
      	type before comparing them.
      	* tree-ssa-loop-prefetch.c (idx_analyze_ref):  Handle
      	POINTER_PLUS_EXPR instead of PLUS_EXPR.
      	(issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
      	of PLUS_EXPR for pointers.
      	* tree-inline.c (estimate_num_insns_1): Handle
      	POINTER_PLUS_EXPR.
      	* tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
      	Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
      	(bump_vector_ptr): Create a POINTER_PLUS_EXPR
      	instead of PLUS_EXPR for the pointer increment statement.
      	(vect_update_ivs_after_vectorizer): For pointer types, create
      	POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
      	MULT_EXPR in sizetype.
      	(vect_gen_niters_for_prolog_loop): Add a cast when creating
      	byte_misalign.
      	* tree-object-size.c (plus_expr_object_size): Handle
      	POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
      	code which is trying to figure out which side is a pointer and 
      	is the index.
      	(check_for_plus_in_loops_1): Likewise.
      	(check_for_plus_in_loops): Likewise.
      	* c-common.c (pointer_int_sum): Create a
      	POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
      	* tree-ssa-structalias.c (handle_ptr_arith): Handle
      	only POINTER_PLUS_EXPR.  Removing all the extra
      	code which is trying to figure out which side is a pointer and 
      	is the index.
      	* tree-cfg.c (verify_expr): Add extra checking for pointers and
      	PLUS_EXPR and MINUS_EXPR.
      	Also add checking to make sure the operands of POINTER_PLUS_EXPR
      	are correct.
      	* config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
      	with make_tree, instead of a pointer type.
      	* config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
      	for pointers instead of PLUS_EXPR.
      	(s390_gimplify_va_arg): Likewise.
      	* config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
      	instead of PLUS_EXPR when doing addition on pointer
      	types.  Use sizetype for the second operand.
      	(spu_gimplify_va_arg_expr): Likewise.
      	* config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
      	POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
      	a pointer.  Don't create a BIT_AND_EXPR for pointer types.
      	* config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
      	for the pointer addition and also use size_int/sizetype
      	for the offset.
      	(ix86_gimplify_va_arg): Likewise.
      	Perform BIT_AND_EXPR on sizetype arguments.
      	* config/sh/sh.c (sh_va_start): Call make_tree with sizetype
      	and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
      	for the pointer additions and also use size_int for the offsets.
      	(sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
      	additions and also use size_int for the offsets.  Perform
      	BIT_AND_EXPR on sizetype arguments.
      	* config/ia64/ia64.c (ia64_gimplify_va_arg): Use
      	POINTER_PLUS_EXPR for pointers and create the
      	BIT_AND_EXPR in sizetype.
      	* config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
      	instead of PLUS_EXPR for pointer addition.
      	(rs6000_va_start): Likewise.
      	Also use sizetype for the offset.
      	* config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
      	as PLUS_EXPR/MINUS_EXPR.
      	(hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
      	PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
      	Don't use BIT_AND_EXPR on a pointer type, convert the
      	expression to sizetype first.
      	* config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
      	for pointers.
      	(mips_gimplify_va_arg_expr): Likewise.
      	Don't create BIT_AND_EXPR in a pointer type.
      
      
      
      2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * trans-intrinsic.c (gfc_conv_intrinsic_repeat): Use
              POINTER_PLUS_EXPR instead of PLUS_EXPR for pointer addition.
              * trans-expr.c (gfc_trans_string_copy): Create
              POINTER_PLUS_EXPR instead of a PLUS_EXPR
              for pointer types.
      
      2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
      	* typeck.c (build_binary_op): For templates build the
      	expression in pieces to avoid the assert in build2_stat.
      	(get_member_function_from_ptrfunc):
      	Change over to using POINTER_PLUS_EXPR and convert
      	the second operand to sizetype.
      	* typeck2.c (build_m_component_ref):  Likewise.
      	* init.c (expand_virtual_init): Create a POINTER_PLUS_EXPR
      	instead of PLUS_EXPR for pointers.
      	(build_new_1): Likewise.
      	(build_vec_delete_1): Likewise.
      	(build_vec_delete): Likewise.
      	* class.c (build_base_path): Likewise.
      	(build_base_path): Likewise.
      	(convert_to_base_statically): Likewise.
      	(fixed_type_or_null): Handle POINTER_PLUS_EXPR.
      	(get_vtbl_decl_for_binfo): Handle POINTER_PLUS_EXPR
      	instead of PLUS_EXPR.
      	(dfs_accumulate_vtbl_inits): Create a POINTER_PLUS_EXPR
      	instead of PLUS_EXPR for pointers.
      	* call.c (build_special_member_call): Likewise.
      	* rtti.c (build_headof): Likewise.
      	Use sizetype instead of ptrdiff_type_node.
      	(tinfo_base_init): Create a POINTER_PLUS_EXPR
      	instead of PLUS_EXPR for pointers.
      	* except.c (expand_start_catch_block):  Do a
      	NEGATIVE and then a POINTER_PLUS_EXPR instead
      	of a MINUS_EXPR.
      	* cp-gimplify.c (cxx_omp_clause_apply_fn): Convert
      	PLUS_EXPR on pointer types over to use
      	POINTER_PLUS_EXPR and remove the conversion
      	to the pointer types.
      	* method.c (thunk_adjust): Use POINTER_PLUS_EXPR for
      	adding to a pointer type. Use size_int instead of
      	ssize_int. Convert the index to sizetype before
      	adding it to the pointer.
      
      
      
      2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * trans.c (Attribute_to_gnu): When subtracting an
              offset from a pointer, use POINTER_PLUS_EXPR with
              NEGATE_EXPR instead of MINUS_EXPR.
              (gnat_to_gnu): Likewise.
              * utils.c (convert): When converting between
              thin pointers, use POINTER_PLUS_EXPR and sizetype
              for the offset.
              * utils2.c (known_alignment): POINTER_PLUS_EXPR
              have the same semantics as PLUS_EXPR for alignment.
              (build_binary_op): Add support for the semantics of
              POINTER_PLUS_EXPR's operands.
              When adding an offset to a pointer, use POINTER_PLUS_EXPR.
      
      
      
      2007-06-15 Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * class.c (make_class_data): Build the index in sizetype.
              Use POINTER_PLUS_EXPR instead of PLUS_EXPR when
              adding to a pointer type.
              (build_symbol_entry): Likewise.
              * expr.c (build_java_arrayaccess): Likewise.
              (build_field_ref): Likewise.
              (build_known_method_ref): Likewise.
              (build_invokevirtual): Likewise.
              * except.c (build_exception_object_ref): Do a
              NEGATIVE and then a POINTER_PLUS_EXPR instead
              of a MINUS_EXPR.
      
      
      2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
      	PR tree-opt/32225
      	* gcc.c-torture/compile/20070605-1.c: New test.
      
      	* gcc.c-torture/compile/20070603-1.c: New testcase.
      	* gcc.c-torture/compile/20070603-2.c: New testcase.
      
      	* gcc.c-torture/compile/20070531-1.c: New test.
      
      	PR tree-opt/32167
      	* gcc.c-torture/compile/20070531-2.c: New test.
      
      	PR tree-opt/32144
      	* gcc.c-torture/compile/20070529-1.c: New test.
      
      	PR tree-opt/32145
      	* gcc.c-torture/compile/20070529-2.c: New test.
      
      	PR tree-opt/32015
      	* gcc.c-torture/compile/20070520-1.c: New test.
      
      	* g++.dg/ext/java-1.C: New test.
      
      	* gcc.dg/vect/vect-106.c: We are now able to vectorize two
      	loops instead of one. Remove the "can't determine dependence"
      	check.
      	* gcc.dg/tree-ssa/20030815-1.c: Remove testcase which is no longer
      	needed as the cast is gone in the first place.
      	* gcc.dg/max-1.c: Change local variable a to be a global one.
      	* gcc.dg/tree-ssa/ssa-pre-8.c: Update testcase since we don't
      	have a cast which is PREd.
      
      From-SVN: r125755
      Andrew Pinski committed
  16. 12 Jun, 2007 1 commit
  17. 11 Jun, 2007 2 commits
  18. 10 Jun, 2007 1 commit
    • decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes... · 1bbf8502
      	* decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
      	than to void, for the fields when making a new fat pointer type.
      	(gnat_substitute_in_type): Now substitute_in_type.
      	* gigi.h (gnat_substitute_in_type): Likewise.
      	* trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
      	* utils.c (update_pointer_to): Update fat pointers by updating the
      	dummy node pointers used for the fields.
      
      From-SVN: r125602
      Duncan Sands committed
  19. 06 Jun, 2007 1 commit
  20. 22 May, 2007 1 commit
  21. 14 May, 2007 1 commit
    • c-common.c (warnings_for_convert_and_check): Use unsigned_type_for instead of… · ca5ba2a3
      c-common.c (warnings_for_convert_and_check): Use unsigned_type_for instead of c_common_unsigned_type.
      
      gcc/
             * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
             instead of c_common_unsigned_type.
             (c_common_unsigned_type): Remove.
             (shorten_compare): Use c_common_signed_or_unsigned_type instead of
             c_common_unsigned_type.
             (c_common_nodes_and_builtins): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-common.h (c_common_unsigned_type): Remove.
             * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-format.c (check_format_types): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
             c_common_unsigned_type.
             * convert.c (convert_to_integer): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             * expmed.c (make_tree): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
             lang_hooks.types.unsigned_type.
             (build_range_check): Likewise.
             (fold_unary): Likewise.
             (fold_binary): Likewise.
             (fold_ternary): Likewise.
             * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
             * tree.c (get_unsigned_type): New.
             (unsigned_type_for): Use get_unsigned_type instead of
             lang_hooks.types.unsigned_type
      
      gcc/ada
             * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
      
      gcc/cp
             * cp-objcp-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * decl.c (grokdeclarator): Use unsigned_type_for instead of
             c_common_unsigned_type.
      
      gcc/fortran
             * f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Use unsigned_type_for
             instead of gfc_unsigned_type.
             * trans-stmt.c (gfc_trans_do): Use unsigned_type_for instead of
             gfc_unsigned_type.
             * trans-types.c (gfc_unsigned_type): Remove.
             * trans-types.h (gfc_unsigned_type): Remove.
      
      gcc/java
             * expr.c (build_java_binop): Use unsigned_type_for instead of
             java_unsigned_type.
             * java-tree.h (java_unsigned_type): Remove.
             * lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
             * typeck.c (java_unsigned_type): Remove.
      
      gcc/treelang
             * treetree.c (tree_lang_unsigned_type): Remove.
             (LANG_HOOKS_UNSIGNED_TYPE): Remove.
      
      From-SVN: r124715
      Rafael Avila de Espindola committed
  22. 02 May, 2007 1 commit
    • re PR ada/29856 (broken if..else in gcc/ada/adaint.c) · d7598e11
      2007-04-20  Pascal Obry  <obry@adacore.com>
      
      	* gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
      	to use Stream_IO.File_Type. This is needed to make use of the UTF-8
      	encoding support of Stream_IO.
      	(Write_Unit): Idem.
      
      	* adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
      	filename and corresponding encoding to match the OS requirement.
      	(__gnat_file_exists): Do not call __gnat_stat() on Windows as this
      	routine will fail on specific devices like CON: AUX: ...
      
      	PR ada/29856: Add missing braces
      
      From-SVN: r124347
      Pascal Obry committed
  23. 23 Apr, 2007 1 commit
  24. 22 Apr, 2007 1 commit
    • misc.c (gnat_expand_body): Don't call target for destructors, avoid redundant… · 395a40e0
      misc.c (gnat_expand_body): Don't call target for destructors, avoid redundant check on syntax errors.
      
      
      	* ada/misc.c (gnat_expand_body): Don't call target for destructors,
      	avoid redundant check on syntax errors.
      
      	* final.c (rest_of_handle_final): Call
      	targetm.asm_out.constructor/targetm.asm_out.destructor
      	* cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
      	proper priority via decl_*_priority_insert.
      	* c-common.c (c_expand_body): Likewise.
      
      From-SVN: r124044
      Jan Hubicka committed
  25. 21 Apr, 2007 1 commit
    • tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs. · 3d95caa4
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
              (GENERIC_NEXT): New function macro.
              (PHI_CHAIN): Use phi_node's new chain variable.
              (tree_phi_node): Change tree_common to tree_base
              and add the chain field.
              * tree-phinodes.c (make_phi_node): Don't set
              TREE_TYPE on the new node.
              * c-decl.c (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_TUPLE_P in chain_next.
              * tree-vect-transform.c
              (get_initial_def_for_induction): Look at
              PHI_RESULT_TREE for the type of the phi node.
              (update_vuses_to_preheader): Use PHI_CHAIN
              instead of TREE_CHAIN on the phi node.
              * tree-ssa-structalias.c (compute_points_to_sets):
              Likewise.
              (ipa_pta_execute): Likewise.
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * cp-tree.h (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_STMT_P in chain_next.
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_STMT_P in chain_next.
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * f95-lang.c (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_STMT_P in chain_next.
      2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              * java-tree.h (lang_tree_node): Use GENERIC_NEXT
              instead of checking GIMPLE_STMT_P in chain_next.
      
      From-SVN: r124021
      Andrew Pinski committed
  26. 17 Apr, 2007 1 commit
    • re PR ada/31576 (Ada bootstrap error) · ea30850a
      2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	PR ada/31576
      	* system-linux-alpha.ads: Disable constant condition warning for the
      	Default_Bit_Order variable.
      	* system-linux-s390.ads: Likewise.
      	* system-linux-s390x.ads: Likewise.
      	* system-linux-sparc.ads: Likewise.
      
      From-SVN: r123915
      Andreas Krebbel committed
  27. 06 Apr, 2007 1 commit
  28. 30 Mar, 2007 1 commit
    • typeck.c (java_signed_or_unsigned_type): Remove. · 47ecd38d
      gcc/java/ChangeLog:
         * typeck.c (java_signed_or_unsigned_type): Remove.
         (java_signed_type): use get_signed_or_unsigned_type instead of
      java_signed_or_unsigned_type.
         (java_unsigned_type): Ditto.
         * lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
         * java-tree.h (java_signed_or_unsigned_type): Remove
      
      gcc/Changelog:
         * tree.h(get_signed_or_unsigned_type): New
         * fold-const.c (operand_equal_for_comparison_p): Use
      get_signed_or_unsigned_type instead of
      lang_hooks.types.signed_or_unsigned_type.
         * expr.c (store_expr): Ditto.
         * langhooks.c (get_signed_or_unsigned_type): New.
           (lhd_signed_or_unsigned_type): New
         * langhooks.h (lhd_signed_or_unsigned_type): New.
         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
      
      gcc/treelang/ChangeLog:
         * treetree.c (tree_lang_signed_or_unsigned_type): Remove.
         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove.
      
      gcc/ada/ChangeLog:
          * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
      instead of gnat_signed_or_unsigned_type.
          * utils.c (gnat_signed_or_unsigned_type): Remove.
          * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
          * gigi.h (gnat_signed_or_unsigned_type): Remove
      
      gcc/forrtan/trans-types.c:
         * trans-types.c (gfc_signed_or_unsigned_type): Remove.
           (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
      gfc_signed_or_unsigned_type.
           (gfc_signed_type): Ditto.
         * trans-types.h (gfc_signed_or_unsigned_type): Remove.
         * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
      
      From-SVN: r123373
      Rafael Avila de Espindola committed
  29. 09 Mar, 2007 1 commit
    • cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling fold with the result of buildN. · 9645c3c5
      	* cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
      	fold with the result of buildN.
      	* decl.c (gnat_to_gnu_entity): Likewise.
      	* trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
      	* utils.c (finish_record_type, merge_sizes, max_size, convert):
      	Likewise.
      	* utils2.c (gnat_truthvalue_conversion, compare_arrays,
      	nonbinary_modular_operation, build_binary_op, build_unary_op,
      	build_cond_expr): Likewise.
      
      	* utils.c (convert): Use fold_build1 when casting values to void.
      	* utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
      	fold_convert instead of convert when appropriate.
      
      From-SVN: r122752
      Roger Sayle committed
  30. 02 Mar, 2007 1 commit
  31. 28 Feb, 2007 1 commit