aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-05-20 10:37:50 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-05-20 10:37:50 +0000
commite697e20a892668e5a9189980193e23412a0cc221 (patch)
tree63b68f9258232c111fa185a58bb0c65f557a3d2a /gcc/varasm.c
parentf96b337ae42e599a58d93473061854c2fb34d749 (diff)
downloadgcc-e697e20a892668e5a9189980193e23412a0cc221.zip
gcc-e697e20a892668e5a9189980193e23412a0cc221.tar.gz
gcc-e697e20a892668e5a9189980193e23412a0cc221.tar.bz2
expr.h (lang_expand_constant): Declare.
* expr.h (lang_expand_constant): Declare. * toplev.c (lang_expand_constant): Define it. * varasm.c (output_constant): Use it. From-SVN: r27058
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index e4eef2d..4f92290 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -3897,6 +3897,13 @@ output_constant (exp, size)
{
register enum tree_code code = TREE_CODE (TREE_TYPE (exp));
+ /* Some front-ends use constants other than the standard
+ language-indepdent varieties, but which may still be output
+ directly. Give the front-end a chance to convert EXP to a
+ language-independent representation. */
+ if (lang_expand_constant)
+ exp = (*lang_expand_constant) (exp);
+
if (size == 0 || flag_syntax_only)
return;