summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-11 10:23:11 +0000
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-11 10:23:11 +0000
commit71354ca16d702d2148d6716e90a3d30408201dbd (patch)
tree73d5fe607fbc1c6e6eca09691c82675527b1819f /gcc
parent13c14c0885503a499206d832ef75343e43c3f514 (diff)
downloadgcc-71354ca16d702d2148d6716e90a3d30408201dbd.tar.gz
remove signed(_or_unsigned)?_type langhooks
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125616 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog51
-rw-r--r--gcc/ada/ChangeLog6
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/treelang/ChangeLog5
6 files changed, 79 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 94067fc74e1..7a61593e7b8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,54 @@
+2007-06-11 Rafael Avila de Espindola <espindola@google.com>
+
+ * gcc/tree.c (signed_or_unsigned_type_for): New.
+ (unsigned_type_for): Use signed_or_unsigned_type_for.
+ (signed_type_for): Use signed_or_unsigned_type_for.
+ * gcc/tree.h (signed_or_unsigned_type_for): New.
+ (get_signed_or_unsigned_type): Remove.
+ * gcc/fold-const.c (fold_negate_expr): Use signed_type_for instead of
+ lang_hooks.types.signed_type
+ (size_diffop): Likewise.
+ (all_ones_mask_p): Likewise.
+ (build_range_check): Likewise.
+ (fold_cond_expr_with_comparison): Likewise.
+ (fold_cond_expr_with_comparison): Likewise.
+ (unextend): Likewise.
+ (extract_muldiv_1): Likewise.
+ (fold_single_bit_test_into_sign_test): Likewise.
+ (fold_binary): Likewise.
+ (fold_ternary): Likewise.
+ (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
+ instead of get_signed_or_unsigned_type.
+ * gcc/c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
+ (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
+ * gcc/expr.c (signed_or_unsigned_type_for): Use
+ signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
+ * gcc/langhooks.c (get_signed_or_unsigned_type): Remove.
+ (lhd_signed_or_unsigned_type): Remove.
+ * gcc/langhooks.h (lang_hooks_for_types): Remove signed_type and
+ signed_or_unsigned_type.
+ (lhd_signed_or_unsigned_type): Remove.
+ * gcc/expmed.c (make_tree): Use signed_type_for instead of
+ lang_hooks.types.signed_type.
+ * gcc/c-common.c (same_scalar_type_ignoring_signedness): Use
+ c_common_signed_type instead of lang_hooks.types.signed_type.
+ (c_common_unsigned_type): New.
+ (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
+ (shorten_compare): Use c_common_unsigned_type instead of
+ c_common_signed_or_unsigned_type.
+ (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
+ unsigned_type_for.
+ * gcc/convert.c (convert_to_integer): Use signed_type_for instead of
+ lang_hooks.types.signed_type.
+ * gcc/langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
+ (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
+ LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
+ * gcc/c-format.c (check_format_types): Use c_common_unsigned_type
+ instead of unsigned_type_for.
+ * gcc/c-decl.c (groakdeclarator): Likewise.
+ * gcc/c-typeck.c (convert_for_assignment): Likewise.
+ * gcc/c-common.h (c_common_unsigned_type): New.
+
2007-06-11 Uros Bizjak <ubizjak@gmail.com>
PR target/32280
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 8ad9d0d0c9a..b2cd9344fd8 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-11 Rafael Avila de Espindola <espindola@google.com>
+
+ * trans.c (Attribute_to_gnu): Use
+ signed_or_unsigned_type_for instead of get_signed_or_unsigned_type
+ * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
+
2007-06-11 Bob Duff <duff@adacore.com>
Thomas Quinot <quinot@adacore.com>
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 509f8ad4b78..3f010ae7723 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-11 Rafael Avila de Espindola <espindola@google.com>
+
+ * cp-objcp-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
+ (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
+
2007-06-08 Jakub Jelinek <jakub@redhat.com>
PR c++/32177
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index f79524461d4..32fb0238647 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-11 Rafael Avila de Espindola <espindola@google.com>
+
+ * trans-types.c (gfc_signed_type): Remove.
+ * trans-types.h (gfc_signed_type): Remove.
+ * f95-lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
+
2007-06-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* trans-intrinsic.c: Revert Lee's 2007-06-04 patch.
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 7bfa288ec5f..ec3807dd123 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-11 Rafael Avila de Espindola <espindola@google.com>
+
+ * typeck.c (java_signed_type): Remove.
+ * lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
+ * java-tree.h (java_signed_type): Remove.
+
2007-05-18 Geoffrey Keating <geoffk@apple.com>
* jcf-dump.c (HANDLE_MAGIC): Use 'unsigned long' for %lx.
diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog
index b74851c9487..65dfa89a85e 100644
--- a/gcc/treelang/ChangeLog
+++ b/gcc/treelang/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-11 Rafael Avila de Espindola <espindola@google.com>
+
+ * treetree.c (tree_lang_signed_type): Remove.
+ (LANG_HOOKS_SIGNED_TYPE): Remove.
+
2007-05-14 Rafael Avila de Espindola <espindola@google.com>
* treetree.c (tree_lang_unsigned_type): Remove.