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
This commit is contained in:
parent
93f0c5dc94
commit
02f8406bd0
@ -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
|
||||
|
@ -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.)
|
||||
|
Loading…
Reference in New Issue
Block a user