diff options
author | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-06-09 18:02:21 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-06-09 18:02:21 +0000 |
commit | e7cd085f5cd9498841bba14f1dd8808a83e857b0 (patch) | |
tree | 76507c57d90792d498db4d3ef2764c831dfc5ca1 /gcc | |
parent | 4d8a1dd6c640c04cd69596e3d05f9999fcbf7e87 (diff) | |
download | gcc-e7cd085f5cd9498841bba14f1dd8808a83e857b0.zip gcc-e7cd085f5cd9498841bba14f1dd8808a83e857b0.tar.gz gcc-e7cd085f5cd9498841bba14f1dd8808a83e857b0.tar.bz2 |
tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT of an error_type_node.
* tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT
of an error_type_node.
From-SVN: r34475
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/tree.h | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea7e328..13fb2d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-06-09 Geoff Keating <geoffk@cygnus.com> + + * tree.h (VOID_TYPE_P): Don't look at the TYPE_MAIN_VARIANT + of an error_type_node. + Fri Jun 9 20:35:13 2000 Denis Chertykov <denisc@overta.ru> * config/avr/avr.c (asm_output_section_name): bugfix. @@ -319,12 +324,12 @@ Mon Jun 5 06:46:28 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * Makefile.in (intl.*): Honor non-zero exit codes in the intl subdir. -S2000-06-03 Geoff Keating <geoffk@cygnus.com> +2000-06-03 Geoff Keating <geoffk@cygnus.com> * alias.c (record_component_aliases): Don't inspect DECL_NONADDRESSABLE_P of non-FIELD_DECL components of structures. -at Jun 3 19:05:30 2000 Michael Meissner <meissner@redhat.com> +Sat Jun 3 19:05:30 2000 Michael Meissner <meissner@redhat.com> * ifcvt.c (process_insns): If IFCVT_MODIFY_INSN is defined, call it with the pattern to do machine dependent work. @@ -454,7 +454,7 @@ extern void tree_class_check_failed PARAMS ((const tree, char, #define COMPLETE_TYPE_P(NODE) (TYPE_SIZE (NODE) != NULL_TREE) /* Nonzero if this type is the (possibly qualified) void type. */ -#define VOID_TYPE_P(NODE) (TYPE_MAIN_VARIANT (NODE) == void_type_node) +#define VOID_TYPE_P(NODE) (TREE_CODE (NODE) == VOID_TYPE) /* Nonzero if this type is complete or is cv void. */ #define COMPLETE_OR_VOID_TYPE_P(NODE) \ |