From 39eae9f47a1132355e2132dc262de9534833e02d Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 16 Nov 1993 10:22:29 +0000 Subject: [PATCH] (sdbout_symbol): If non-static var has static-style RTL, don't output anything for it. From-SVN: r6106 --- gcc/sdbout.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 25b800916b4..ac7c0f14119 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -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 -- 2.30.2