public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "amylaar at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug other/46677] frontends and tree optimizers use *_TYPE_SIZE Date: Mon, 27 Dec 2010 13:25:00 -0000 [thread overview] Message-ID: <bug-46677-4-EdyxwbpX7Y@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-46677-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46677 --- Comment #21 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> 2010-12-27 13:24:54 UTC --- Author: amylaar Date: Mon Dec 27 13:24:48 2010 New Revision: 168274 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168274 Log: PR other/46677 http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00934.html http://gcc.gnu.org/ml/gcc-cvs/2010-12/msg00947.html gcc: * doc/tm.texi: Regenerate. * doc/tm.texi.in (BOOL_TYPE_SIZE): Delete. (TARGET_BOOL_TYPE_SIZE): New hook. * targhooks.c (legacy_integer_type_size): New function. (default_bool_type_size, legacy_float_type_size): Likewise. * targhooks.h (legacy_integer_type_size): Declare. (default_bool_type_size, legacy_float_type_size): Likewise. * target.def (bool_type_size): New hook. (integer_type_size, float_type_size): Likewise. * defaults.h (BOOL_TYPE_SIZE): Delete. * tree.c (free_lang_data): Use targetm.bool_type_size. (build_common_tree_nodes): Likewise. * tree.h (enum integer_type_kind): Move from here... * coretypes.h ... to here. * target.h (enum th_float_type): New enum. * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Use targetm.integer_type_size. * tree-data-ref.c: Include target.h (estimated_loop_iterations_tree): Use targetm.integer_type_size. * system.h (BOOL_TYPE_SIZE): Poison. * Makefile.in (tree-data-ref.o): Depend on $(TARGET_H) . * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Delete. (TARGET_BOOL_TYPE_SIZE): Define. * config/darwin.c (darwin_bool_type_size): New function. * config/darwin.h: (darwin_bool_type_size): Declare. gcc/c-family.c: * c-common.c (c_common_to_target_charset): Use TYPE_PRECISION (char_type_node). gcc/java: * decl.c (java_init_decl_processing): Use targetm.integer_type_size. * expr.c (expand_java_return): Likewise. gcc/ada: * gcc-interface/decl.c (gnat_to_gnu_entity): Use targetm.float_type_size and targetm.integer_type_size. (make_type_from_size): Use targetm.integer_type_size. * gcc-interface/targtyps.c: Include target.h . [!ADA_LONG_TYPE_SIZE] (ADA_LONG_TYPE_SIZE): Use targetm.integer_type_size. [!WIDEST_HARDWARE_FP_SIZE] (LONG_DOUBLE_TYPE_SIZE): Don't define. (get_target_char_size): Use targetm.integer_type_size. (get_target_wchar_t_size, get_target_short_size): Likewise. (get_target_int_size, get_target_long_long_size): Likewise. (get_target_float_size): Use targetm.float_type_size. (get_target_double_size, get_target_long_double_size): Likewise. (MALLOC_OBSERVABLE_ALIGNMENT): Use targetm.integer_type_size. * gcc-interface/trans.c: Include target.h . (gigi): Use targetm.float_type_size. (build_binary_op_trapv): Use targetm.integer_type_size. * gcc-interface/Make-lang.in (ada/targtyps.o): Depend on $(TARGET_H). (ada/trans.o): Likewise. gcc/fortran: * trans-types.c (gfc_init_kinds): Use targetm.integer_type_size. (gfc_build_int_type): Likewise. (gfc_build_uint_type): Use TYPE_PRECISION on the type nodes checked. (gfc_build_real_type): Use targetm.float_type_size. (gfc_build_logical_type): Use targetm.bool_type_size. [0] (c_size_t_size): Delete. * f95-lang.c [!CHAR_TYPE_SIZE] (CHAR_TYPE_SIZE): Don't define. [!INT_TYPE_SIZE] (INT_TYPE_SIZE): Likewise. * iso-c-binding.def (c_bool): Use targetm.bool_type_size. * types.def (BT_BOOL): Likewise. * trans-intrinsic.c (build_round_expr): Use TYPE_PRECISION on *_integer_type_node to find out these type's sizes. (gfc_conv_intrinsic_leadz, gfc_conv_intrinsic_trailz): Likewise. (gfc_conv_intrinsic_popcnt_poppar): Likewise. 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/Makefile.in branches/pr46489-20101227-branch/gcc/ada/gcc-interface/Make-lang.in 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/trans.c branches/pr46489-20101227-branch/gcc/c-family/c-common.c branches/pr46489-20101227-branch/gcc/config/darwin.c branches/pr46489-20101227-branch/gcc/config/rs6000/darwin.h branches/pr46489-20101227-branch/gcc/coretypes.h branches/pr46489-20101227-branch/gcc/defaults.h branches/pr46489-20101227-branch/gcc/doc/tm.texi branches/pr46489-20101227-branch/gcc/doc/tm.texi.in branches/pr46489-20101227-branch/gcc/fortran/f95-lang.c branches/pr46489-20101227-branch/gcc/fortran/iso-c-binding.def branches/pr46489-20101227-branch/gcc/fortran/trans-intrinsic.c branches/pr46489-20101227-branch/gcc/fortran/trans-types.c branches/pr46489-20101227-branch/gcc/fortran/types.def branches/pr46489-20101227-branch/gcc/java/decl.c branches/pr46489-20101227-branch/gcc/java/expr.c branches/pr46489-20101227-branch/gcc/system.h branches/pr46489-20101227-branch/gcc/target.def branches/pr46489-20101227-branch/gcc/target.h branches/pr46489-20101227-branch/gcc/targhooks.c branches/pr46489-20101227-branch/gcc/targhooks.h branches/pr46489-20101227-branch/gcc/testsuite/gcc.target/powerpc/ppc-round.c (props changed) branches/pr46489-20101227-branch/gcc/tree-data-ref.c branches/pr46489-20101227-branch/gcc/tree-ssa-loop-ivopts.c branches/pr46489-20101227-branch/gcc/tree.c branches/pr46489-20101227-branch/gcc/tree.h 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)
next prev parent reply other threads:[~2010-12-27 13:25 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-11-26 19:50 [Bug other/46677] New: " amylaar at gcc dot gnu.org 2010-11-26 21:11 ` [Bug other/46677] " rguenth at gcc dot gnu.org 2010-11-26 21:24 ` amylaar at gcc dot gnu.org 2010-11-26 21:47 ` joseph at codesourcery dot com 2010-11-26 22:18 ` amylaar at gcc dot gnu.org 2010-11-26 22:22 ` amylaar at gcc dot gnu.org 2010-11-26 22:57 ` rguenth at gcc dot gnu.org 2010-11-26 23:45 ` amylaar at gcc dot gnu.org 2010-11-27 0:27 ` rguenth at gcc dot gnu.org 2010-11-27 0:35 ` joseph at codesourcery dot com 2010-11-29 4:25 ` amylaar at gcc dot gnu.org 2010-12-11 7:28 ` amylaar at gcc dot gnu.org 2010-12-13 17:58 ` joseph at codesourcery dot com 2010-12-13 19:17 ` amylaar at gcc dot gnu.org 2010-12-13 21:31 ` joseph at codesourcery dot com 2010-12-19 21:21 ` amylaar at gcc dot gnu.org 2010-12-20 16:48 ` amylaar at gcc dot gnu.org 2010-12-21 10:20 ` amylaar at gcc dot gnu.org 2010-12-27 8:56 ` amylaar at gcc dot gnu.org 2010-12-27 9:46 ` amylaar at gcc dot gnu.org 2010-12-27 13:09 ` amylaar at gcc dot gnu.org 2010-12-27 13:25 ` amylaar at gcc dot gnu.org [this message] 2010-12-27 13:40 ` amylaar at gcc dot gnu.org 2010-12-27 23:00 ` amylaar at gcc dot gnu.org 2011-04-05 15:13 ` jsm28 at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-46677-4-EdyxwbpX7Y@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).