diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-02-21 04:25:11 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-02-21 04:25:11 +0000 |
commit | 99740276e454972b57cca4b3b7a23dc1ec2690d5 (patch) | |
tree | 34b1425a0740085cf43509683e5adc81738ff6ce /gcc/varasm.c | |
parent | 8d7a5379cdb809096ffbe653fc91785eadbfa870 (diff) | |
download | gcc-99740276e454972b57cca4b3b7a23dc1ec2690d5.zip gcc-99740276e454972b57cca4b3b7a23dc1ec2690d5.tar.gz gcc-99740276e454972b57cca4b3b7a23dc1ec2690d5.tar.bz2 |
varasm.c (initializer_constant_valid_p): Call lang_expand_constant to simplify the constant.
* varasm.c (initializer_constant_valid_p): Call
lang_expand_constant to simplify the constant.
From-SVN: r32084
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index e71ba3a..992a3a3 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -4025,6 +4025,11 @@ initializer_constant_valid_p (value, endtype) tree value; tree endtype; { + /* Give the front-end a chance to convert VALUE to something that + looks more like a constant to the back-end. */ + if (lang_expand_constant) + value = (*lang_expand_constant) (value); + switch (TREE_CODE (value)) { case CONSTRUCTOR: |