r168075 - in /branches/pr46489-20101217-branch/...

amylaar@gcc.gnu.org amylaar@gcc.gnu.org
Sun Dec 19 21:21:00 GMT 2010


Author: amylaar
Date: Sun Dec 19 21:21:26 2010
New Revision: 168075

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168075
Log:
	PR other/46677
	http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02772.html
gcc:
	* targhooks.c (pointer_size): New function.
	* cppbuiltin.c (define_builtin_macros_for_lp64): Use pointer_size.
	(define_builtin_macros_for_type_sizes): Likewise.
	* target.h (pointer_size): Declare.

	* cppbuiltin.c (define_builtin_macros_for_type_sizes):
	Use TYPE_PRECISION (char_type_node).
gcc/c-family:
	c-common.c (c_common_nodes_and_builtins): Use pointer_size.
gcc/java:
	* decl.c (java_init_decl_processing): Use pointer_size.
	* java-tree.h (JAVA_POINTER_SIZE): Define.
	* class.c (make_class_data): Use JAVA_POINTER_SIZE.
	(emit_register_classes): Likewise.
	* jcf-parse.c (handle_long_constant): Likewise.
	* constants.c (build_constants_constructor): Likewise.
	* builtins.c (UNMARSHAL3, UNMARSHAL4, UNMARSHAL5): Likewise.
	(compareAndSwapObject_builtin): Likewise.
	* boehm.c (get_boehm_type_descriptor): Likewise.
	(mark_reference_fields): Add log2_size parameter.  Changed all callers.
gcc/cp:
	* cvt.c (cp_convert_to_pointer): Use TYPE_PRECISION (ptr_type_node).
gcc/fortran:
	* trans-types.c (gfc_init_kinds): Use pointer_size.
gcc/lto:
	* lto-object.c (lto_obj_begin_section): Use pointer_size.
ada:
	* gcc-interface/decl.c (gnat_to_gnu_entity): Replace pointer_size
	with pointer_size_t.  Replace POINTER_SIZE with pointer_size ().
	(rest_of_type_decl_compilation_no_defer): Use pointer_size.
	(gnat_to_gnu_param, annotate_rep, make_type_from_size): Likewise.
	* gcc-interface/utils2.c: Include target.h .
	(maybe_wrap_malloc, maybe_wrap_free): Use pointer_size.
	* gcc-interface/targtyps.c: Include target.h .
	(get_target_pointer_size): Use pointer_size.

Modified:
    branches/pr46489-20101217-branch/gcc/ChangeLog.46489
    branches/pr46489-20101217-branch/gcc/ada/gcc-interface/decl.c
    branches/pr46489-20101217-branch/gcc/ada/gcc-interface/targtyps.c
    branches/pr46489-20101217-branch/gcc/ada/gcc-interface/utils2.c
    branches/pr46489-20101217-branch/gcc/c-family/c-common.c
    branches/pr46489-20101217-branch/gcc/cp/cvt.c
    branches/pr46489-20101217-branch/gcc/cppbuiltin.c
    branches/pr46489-20101217-branch/gcc/fortran/f95-lang.c
    branches/pr46489-20101217-branch/gcc/fortran/trans-types.c
    branches/pr46489-20101217-branch/gcc/java/boehm.c
    branches/pr46489-20101217-branch/gcc/java/builtins.c
    branches/pr46489-20101217-branch/gcc/java/class.c
    branches/pr46489-20101217-branch/gcc/java/constants.c
    branches/pr46489-20101217-branch/gcc/java/decl.c
    branches/pr46489-20101217-branch/gcc/java/java-tree.h
    branches/pr46489-20101217-branch/gcc/java/jcf-parse.c
    branches/pr46489-20101217-branch/gcc/lto/lto-object.c
    branches/pr46489-20101217-branch/gcc/target.h
    branches/pr46489-20101217-branch/gcc/targhooks.c



More information about the Gcc-cvs mailing list