diff options
author | Richard Stallman <rms@gnu.org> | 1993-11-16 10:22:29 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-11-16 10:22:29 +0000 |
commit | 39eae9f47a1132355e2132dc262de9534833e02d (patch) | |
tree | 04248a811cf452acf2edd6aa7fee3b3f227b825c /gcc/sdbout.c | |
parent | aa988991ba0aec1677612c76ca5998460e77891f (diff) | |
download | gcc-39eae9f47a1132355e2132dc262de9534833e02d.zip gcc-39eae9f47a1132355e2132dc262de9534833e02d.tar.gz gcc-39eae9f47a1132355e2132dc262de9534833e02d.tar.bz2 |
(sdbout_symbol): If non-static var has static-style RTL,
don't output anything for it.
From-SVN: r6106
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r-- | gcc/sdbout.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 25b8009..ac7c0f1 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 |