OSDN Git Service

(sdbout_symbol): If non-static var has static-style RTL,
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Nov 1993 10:22:29 +0000 (10:22 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Nov 1993 10:22:29 +0000 (10:22 +0000)
don't output anything for it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6106 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/sdbout.c

index 25b8009..ac7c0f1 100644 (file)
@@ -756,6 +756,12 @@ sdbout_symbol (decl, local)
          alter_subreg (DECL_RTL (decl));
          value = DECL_RTL (decl);
        }
+      /* Don't output anything if an auto variable
+        gets RTL that is static.
+        GAS version 2.2 can't handle such output.  */
+      else if (GET_CODE (value) == MEM && CONSTANT_P (XEXP (value, 0))
+              && ! TREE_STATIC (decl))
+       return;
 
       /* Emit any structure, union, or enum type that has not been output.
         This occurs for tag-less structs (et al) used to declare variables