From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11390 invoked by alias); 27 Dec 2010 13:09:06 -0000 Received: (qmail 11379 invoked by uid 22791); 27 Dec 2010 13:09:05 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_JC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Dec 2010 13:09:01 +0000 From: "amylaar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/46677] frontends and tree optimizers use *_TYPE_SIZE X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amylaar at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 27 Dec 2010 13:09:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-12/txt/msg02665.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46677 --- Comment #20 from Jorn Wolfgang Rennecke 2010-12-27 13:08:49 UTC --- Author: amylaar Date: Mon Dec 27 13:08:44 2010 New Revision: 168273 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168273 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-20101227-branch/ (props changed) branches/pr46489-20101227-branch/ChangeLog.46489 branches/pr46489-20101227-branch/gcc/ (props changed) branches/pr46489-20101227-branch/gcc/ada/gcc-interface/decl.c branches/pr46489-20101227-branch/gcc/ada/gcc-interface/targtyps.c branches/pr46489-20101227-branch/gcc/ada/gcc-interface/utils2.c branches/pr46489-20101227-branch/gcc/c-family/c-common.c branches/pr46489-20101227-branch/gcc/cp/cvt.c branches/pr46489-20101227-branch/gcc/cppbuiltin.c branches/pr46489-20101227-branch/gcc/fortran/f95-lang.c branches/pr46489-20101227-branch/gcc/fortran/trans-types.c branches/pr46489-20101227-branch/gcc/java/boehm.c branches/pr46489-20101227-branch/gcc/java/builtins.c branches/pr46489-20101227-branch/gcc/java/class.c branches/pr46489-20101227-branch/gcc/java/constants.c branches/pr46489-20101227-branch/gcc/java/decl.c branches/pr46489-20101227-branch/gcc/java/java-tree.h branches/pr46489-20101227-branch/gcc/java/jcf-parse.c branches/pr46489-20101227-branch/gcc/lto/lto-object.c branches/pr46489-20101227-branch/gcc/target.h branches/pr46489-20101227-branch/gcc/targhooks.c branches/pr46489-20101227-branch/gcc/testsuite/gcc.target/powerpc/ppc-round.c (props changed) branches/pr46489-20101227-branch/libjava/classpath/ (props changed) Propchange: branches/pr46489-20101227-branch/ ('svn:mergeinfo' modified) Propchange: branches/pr46489-20101227-branch/gcc/ ('svn:mergeinfo' modified) Propchange: branches/pr46489-20101227-branch/gcc/testsuite/gcc.target/powerpc/ppc-round.c ('svn:mergeinfo' modified) Propchange: branches/pr46489-20101227-branch/libjava/classpath/ ('svn:mergeinfo' modified)