Commit 39eae9f4 by Richard Stallman

(sdbout_symbol): If non-static var has static-style RTL,

don't output anything for it.

From-SVN: r6106
parent aa988991
...@@ -756,6 +756,12 @@ sdbout_symbol (decl, local) ...@@ -756,6 +756,12 @@ sdbout_symbol (decl, local)
alter_subreg (DECL_RTL (decl)); alter_subreg (DECL_RTL (decl));
value = 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. /* Emit any structure, union, or enum type that has not been output.
This occurs for tag-less structs (et al) used to declare variables This occurs for tag-less structs (et al) used to declare variables
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment