diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-09-02 15:18:30 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-09-02 09:18:30 -0600 |
commit | b5764229c1ea7ef49d480eca3c13ee460da45a56 (patch) | |
tree | c7acad98ebfa1677eaab8a2c4024707a021dc363 /gcc/c-family/c-common.h | |
parent | b101633fa6b8d7f47943857587c6f83c277482f7 (diff) | |
download | gcc-b5764229c1ea7ef49d480eca3c13ee460da45a56.zip gcc-b5764229c1ea7ef49d480eca3c13ee460da45a56.tar.gz gcc-b5764229c1ea7ef49d480eca3c13ee460da45a56.tar.bz2 |
c-common.c (braced_list_to_string): Remove eval parameter.
* c-common.c (braced_list_to_string): Remove eval parameter.
Add some more checks. Always create zero-terminated STRING_CST.
* c-common.h (braced_list_to_string): Adjust prototype.
* c-decl.c (finish_decl): Call braced_list_to_string here ...
* c-parser.c (c_parser_declaration_or_fndef): ... instead of here.
* decl.c (eval_check_narrowing): Remove.
(check_initializer): Move call to braced_list_to_string from here ...
* typeck2.c (store_init_value): ... to here.
(digest_init_r): Remove handing of signed/unsigned char strings.
* c-c++-common/array-init.c: New test.
* g++.dg/init/string2.C: Remove xfail.
From-SVN: r264042
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r-- | gcc/c-family/c-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index c5e2028..cc168e2 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -1331,7 +1331,7 @@ extern void maybe_add_include_fixit (rich_location *, const char *, bool); extern void maybe_suggest_missing_token_insertion (rich_location *richloc, enum cpp_ttype token_type, location_t prev_token_loc); -extern tree braced_list_to_string (tree, tree, tree (*)(tree, tree) = NULL); +extern tree braced_list_to_string (tree, tree); #if CHECKING_P namespace selftest { |