OSDN Git Service

* varasm.c (mergeable_string_section): Check for embedded NULs and
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2006 08:58:44 +0000 (08:58 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Jun 2006 08:58:44 +0000 (08:58 +0000)
commit1fc5c8affbf852fa27e7781cb1e23b2892983d33
treefd1af8dab866ad596acc77b89185aabb10394617
parent7a0c37debdedc3e121fb676f63c6d1cc4845859b
* varasm.c (mergeable_string_section): Check for embedded NULs and
NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
rather than TREE_STRING_LENGTH bytes.

* gcc.dg/merge-all-constants-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114842 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/merge-all-constants-1.c [new file with mode: 0644]
gcc/varasm.c