sdbout.c (sdbout_symbol): Do not output type .def statements for builtin types.
authorDanny Smith <dannysmith@users.sourceforge.net>
Sun, 31 Oct 2004 02:41:14 +0000 (02:41 +0000)
committerDanny Smith <dannysmith@gcc.gnu.org>
Sun, 31 Oct 2004 02:41:14 +0000 (02:41 +0000)
* sdbout.c (sdbout_symbol): Do not output type .def statements
for builtin types.

From-SVN: r89911

gcc/ChangeLog
gcc/sdbout.c

index 05f4e81..a689a2a 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-30  Danny Smith  <dannysmith@users.sourceforge.net>
+
+       * sdbout.c (sdbout_symbol): Do not output type .def statements
+       for builtin types.
+
 2004-10-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        * c-common.c (catenate_strings): New.
index a0f31fe..d9ab44c 100644 (file)
@@ -737,6 +737,11 @@ sdbout_symbol (tree decl, int local)
        return;
       if (DECL_IGNORED_P (decl))
        return;
+      /* Don't output intrinsic types.  GAS chokes on SDB .def
+        statements that contain identifiers with embedded spaces
+        (eg "unsigned long").  */
+      if (DECL_IS_BUILTIN (decl))
+       return;
 
       /* Output typedef name.  */
       if (template_name_p (DECL_NAME (decl)))