diff options
author | Ian Lance Taylor <ian@airs.com> | 2005-08-16 00:35:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2005-08-16 00:35:50 +0000 |
commit | 1595ec20a0651860017624f62d8fea2578b57ad6 (patch) | |
tree | 34c3ce14296e3b85e395ce780f210e5fe7f3b687 /gcc/tree.c | |
parent | eb5f0c07fccb756cbafb0ceaffa8e0527e20d674 (diff) | |
download | gcc-1595ec20a0651860017624f62d8fea2578b57ad6.zip gcc-1595ec20a0651860017624f62d8fea2578b57ad6.tar.gz gcc-1595ec20a0651860017624f62d8fea2578b57ad6.tar.bz2 |
* tree.c (build_string): Mark tree CONSTANT and INVARIANT.
From-SVN: r103141
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1053,6 +1053,8 @@ build_string (int len, const char *str) memset (s, 0, sizeof (struct tree_common)); TREE_SET_CODE (s, STRING_CST); + TREE_CONSTANT (s) = 1; + TREE_INVARIANT (s) = 1; TREE_STRING_LENGTH (s) = len; memcpy ((char *) TREE_STRING_POINTER (s), str, len); ((char *) TREE_STRING_POINTER (s))[len] = '\0'; |