toplev.c (warn_deprecated_use): Correct logic for saying "type" in diagnostic.
authorJoseph Myers <jsm@polyomino.org.uk>
Fri, 10 Sep 2004 10:54:25 +0000 (11:54 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 10 Sep 2004 10:54:25 +0000 (11:54 +0100)
commit108ebf88b21935d2e28ffe205b2126b49acf9e12
treeed2baafd2f1b72a27341679804ac68b6b935c411
parent6cb38cd4ae4e293f992f0593813c162803e533b9
toplev.c (warn_deprecated_use): Correct logic for saying "type" in diagnostic.

* toplev.c (warn_deprecated_use): Correct logic for saying "type"
in diagnostic.  Don't dereference NULL TYPE_NAME.

testsuite:
* gcc.dg/deprecated-2.c: New test.

From-SVN: r87289
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/deprecated-2.c [new file with mode: 0644]
gcc/toplev.c