aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-10-26 02:15:02 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-10-25 19:15:02 -0700
commit02f8406bd02ea1016df74868d5576138fe760d7d (patch)
treea73391aa16683e6aebff717c58244aca7c03c219
parent93f0c5dc9466b086977abd4c421549d552edee92 (diff)
downloadgcc-02f8406bd02ea1016df74868d5576138fe760d7d.zip
gcc-02f8406bd02ea1016df74868d5576138fe760d7d.tar.gz
gcc-02f8406bd02ea1016df74868d5576138fe760d7d.tar.bz2
re PR c/23103 (gcc_diag does not work with -combine)
2005-10-24 Andrew Pinski <pinskia@physics.uc.edu> PR c/23103 * c-format.c (check_format_types): Use lang_hooks.types_compatible_p instead of pointer equality when comparing types. From-SVN: r105911
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-format.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d636240..792d795 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR c/23103
+ * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
+ instead of pointer equality when comparing types.
+
2005-10-24 James E. Wilson <wilson@specifix.com>
* sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
diff --git a/gcc/c-format.c b/gcc/c-format.c
index 7d5af42..82f2bc7 100644
--- a/gcc/c-format.c
+++ b/gcc/c-format.c
@@ -2216,7 +2216,7 @@ check_format_types (format_wanted_type *types, const char *format_start,
|| cur_type == unsigned_char_type_node);
/* Check the type of the "real" argument, if there's a type we want. */
- if (wanted_type == cur_type)
+ if (lang_hooks.types_compatible_p (wanted_type, cur_type))
continue;
/* If we want 'void *', allow any pointer type.
(Anything else would already have got a warning.)