diff options
author | Arnaud Charlet <charlet@adacore.com> | 2011-01-26 08:42:27 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-01-26 09:42:27 +0100 |
commit | 908ef79b5cde51c1a2adf74b5fd7cb8a95c1a7da (patch) | |
tree | fcf9b9a57c55d0c01e438fe68fce19cd707d0331 /gcc/c-family | |
parent | 237e9384cf7d1b73333267eaa6d30f0f3ac33668 (diff) | |
download | gcc-908ef79b5cde51c1a2adf74b5fd7cb8a95c1a7da.zip gcc-908ef79b5cde51c1a2adf74b5fd7cb8a95c1a7da.tar.gz gcc-908ef79b5cde51c1a2adf74b5fd7cb8a95c1a7da.tar.bz2 |
* c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
From-SVN: r169278
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-family/c-ada-spec.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 9f88e97..ebcb5c2 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2011-01-26 Arnaud Charlet <charlet@adacore.com> + + * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type. + 2011-01-26 Jakub Jelinek <jakub@redhat.com> PR pch/47430 diff --git a/gcc/c-family/c-ada-spec.c b/gcc/c-family/c-ada-spec.c index 455151a..335acb0 100644 --- a/gcc/c-family/c-ada-spec.c +++ b/gcc/c-family/c-ada-spec.c @@ -2035,6 +2035,7 @@ dump_generic_ada_node (pretty_printer *buffer, tree node, tree type, || !TYPE_FIELDS (TREE_TYPE (underlying_type)))) /* Pointer to opaque structure. */ + || underlying_type == NULL_TREE || (!typ2 && !TREE_VISITED (underlying_type) && !TREE_VISITED (type_name) |