(sdbout_symbol): If non-static var has static-style RTL,
authorRichard Stallman <rms@gnu.org>
Tue, 16 Nov 1993 10:22:29 +0000 (10:22 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 16 Nov 1993 10:22:29 +0000 (10:22 +0000)
don't output anything for it.

From-SVN: r6106

gcc/sdbout.c

index 25b800916b4042164f5920ecaace7f9c89c7a4b0..ac7c0f14119cb8e10c34f1114357a7d58907fbc6 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