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
6a921942
Commit
6a921942
authored
Oct 08, 2002
by
Anthony Green
Committed by
Anthony Green
Oct 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix string concatenation bug.
From-SVN: r57912
parent
25009e02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
gcc/java/ChangeLog
+4
-0
gcc/java/parse.y
+13
-2
No files found.
gcc/java/ChangeLog
View file @
6a921942
2002-10-07 Anthony Green <green@redhat.com>
* parse.y (merge_string_cste): Fix bug in string concatenation.
2002-10-03 Michael Koch <konqueror@gmx.de>
* gcj.texi (Standard properties):
...
...
gcc/java/parse.y
View file @
6a921942
...
...
@@ -13773,8 +13773,19 @@ merge_string_cste (op1, op2, after)
string = null_pointer;
else if (TREE_TYPE (op2) == char_type_node)
{
ch[0] = (char )TREE_INT_CST_LOW (op2);
ch[1] = '
\0'
;
/* Convert the character into UTF-8. */
unsigned char c = (unsigned char) TREE_INT_CST_LOW (op2);
unsigned char *p = (unsigned char *) ch;
if (0x01 <= c
&& c <= 0x7f)
*p++ = c;
else
{
*p++ = c >> 6 | 0xc0;
*p++ = c & 0x3f | 0x80;
}
*p = '
\0'
;
string = ch;
}
else
...
...
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