Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1ca3916f
Commit
1ca3916f
authored
Oct 26, 2011
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build_string comments
From-SVN: r180537
parent
3ce4f9e4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletions
+5
-1
gcc/c-family/c-lex.c
+2
-0
gcc/cp/decl.c
+1
-1
gcc/cp/parser.c
+1
-0
gcc/tree.c
+1
-0
No files found.
gcc/c-family/c-lex.c
View file @
1ca3916f
...
...
@@ -344,6 +344,8 @@ c_lex_with_flags (tree *value, location_t *loc, unsigned char *cpp_flags,
{
tree
suffix_id
=
get_identifier
(
suffix
);
int
len
=
tok
->
val
.
str
.
len
-
strlen
(
suffix
);
/* If this is going to be used as a C string to pass to a
raw literal operator, we need to add a trailing NUL. */
tree
num_string
=
build_string
(
len
+
1
,
(
const
char
*
)
tok
->
val
.
str
.
text
);
TREE_TYPE
(
num_string
)
=
char_array_type_node
;
...
...
gcc/cp/decl.c
View file @
1ca3916f
...
...
@@ -8592,7 +8592,7 @@ grokdeclarator (const cp_declarator *declarator,
error
(
"declaration of %qD as non-function"
,
dname
);
return
error_mark_node
;
}
if
(
dname
&&
TREE_CODE
(
dname
)
==
IDENTIFIER_NODE
&&
UDLIT_OPER_P
(
dname
)
...
...
gcc/cp/parser.c
View file @
1ca3916f
...
...
@@ -3667,6 +3667,7 @@ cp_parser_userdef_numeric_literal (cp_parser *parser)
/* Parse a user-defined string constant. Returns a call to a user-defined
literal operator taking a character pointer and the length of the string
as arguments. */
static
tree
cp_parser_userdef_string_literal
(
cp_token
*
token
)
{
...
...
gcc/tree.c
View file @
1ca3916f
...
...
@@ -1525,6 +1525,7 @@ build_real_from_int_cst (tree type, const_tree i)
/* Return a newly constructed STRING_CST node whose value is
the LEN characters at STR.
Note that for a C string literal, LEN should include the trailing NUL.
The TREE_TYPE is not initialized. */
tree
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment