OSDN Git Service

* gcc.dg/dll-?.c Add thumb to target list.
[pf3gnuchains/gcc-fork.git] / gcc / c-aux-info.c
index a252153..3e2edde 100644 (file)
@@ -22,20 +22,11 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
 #include "config.h"
-#include <stdio.h>
-#ifdef HAVE_STRING_H
-# include <string.h>
-#else
-# ifdef HAVE_STRINGS_H
-#  include <strings.h>
-#endif
-#endif
+#include "system.h"
 #include "flags.h"
 #include "tree.h"
 #include "c-tree.h"
 
-extern char *xmalloc ();
-
 enum formals_style_enum {
   ansi,
   k_and_r_names,
@@ -368,7 +359,8 @@ gen_type (ret_val, t, style)
 {
   tree chain_p;
 
-  if (TYPE_NAME (t) && DECL_NAME (TYPE_NAME (t)))
+  /* If there is a typedef name for this type, use it.  */
+  if (TYPE_NAME (t) && TREE_CODE (TYPE_NAME (t)) == TYPE_DECL)
     data_type = IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (t)));
   else
     {