]> gcc.gnu.org Git - gcc.git/commit - gcc/c-decl.c
c-common.c (combine_strings): Also set TREE_READONLY.
authorJason Merrill <jason@gcc.gnu.org>
Mon, 24 Aug 1998 02:08:45 +0000 (22:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 24 Aug 1998 02:08:45 +0000 (22:08 -0400)
commitd9cf7c824593edf5fba4c00f41eaa1e791855c3e
treea665b0240e32b8e9553746924e2725aa56002700
parentdf44f2b0e98dccd15796b2e9af364c1704fba95e
c-common.c (combine_strings): Also set TREE_READONLY.

* c-common.c (combine_strings): Also set TREE_READONLY.
Change warn_write_strings to flag_const_strings.
* c-decl.c, c-tree.h: Likewise.
cp/
* tree.c (lvalue_type): Fix for arrays.
* typeck.c (string_conv_p): New fn.
(convert_for_assignment): Use it.
(build_unary_op): Use lvalue_type.
* call.c (standard_conversion, convert_like): Use string_conv_p.
(add_function_candidate): Use lvalue_type.
* cvt.c (convert_to_reference): Likewise.
* decl2.c (lang_decode_option): Ignore -traditional.
* decl.c (init_decl_processing): flag_writable_strings inhibits
flag_const_strings.
* lang-options.h (lang_options): Add fconst-strings to the list
of valid options.
* decl2.c (lang_f_options, lang_decode_option): Likewise.

From-SVN: r21928
gcc/c-common.c
gcc/c-decl.c
gcc/c-tree.h
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/lang-options.h
gcc/cp/typeck.c
This page took 0.060718 seconds and 5 git commands to generate.