From: Richard Stallman Date: Tue, 16 Nov 1993 10:22:29 +0000 (+0000) Subject: (sdbout_symbol): If non-static var has static-style RTL, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39eae9f47a1132355e2132dc262de9534833e02d;p=gcc.git (sdbout_symbol): If non-static var has static-style RTL, don't output anything for it. From-SVN: r6106 --- 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