expr.c (string_constant): Handle also read-only variables initialized to string literals.
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Sep 2004 09:05:03 +0000 (11:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Sep 2004 09:05:03 +0000 (11:05 +0200)
commita45f71f53768d5be6e5dac1906a3bd2bee19e38b
tree0cbdbd1cbd67bff87c68a499e533bf6a9938dc68
parent9a520f407392f0a984e7b74aa819e9f6eb3b0b90
expr.c (string_constant): Handle also read-only variables initialized to string literals.

* expr.c (string_constant): Handle also read-only variables
initialized to string literals.

* gcc.c-torture/execute/builtins/strlen-3.c: New test.
* gcc.c-torture/execute/builtins/strlen-3-lib.c: New.

From-SVN: r87540
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtins/strlen-3-lib.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/builtins/strlen-3.c [new file with mode: 0644]