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
055da6a8
Commit
055da6a8
authored
Apr 11, 2015
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: discard carriage returns in raw string literals
Fixes golang/go#10407. From-SVN: r222001
parent
b025e292
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gcc/go/gofrontend/lex.cc
+4
-1
No files found.
gcc/go/gofrontend/lex.cc
View file @
055da6a8
...
...
@@ -1440,7 +1440,10 @@ Lex::gather_raw_string()
bool
issued_error
;
this
->
lineoff_
=
p
-
this
->
linebuf_
;
p
=
this
->
advance_one_utf8_char
(
p
,
&
c
,
&
issued_error
);
Lex
::
append_char
(
c
,
true
,
&
value
,
loc
);
// "Carriage return characters ('\r') inside raw string literals
// are discarded from the raw string value."
if
(
c
!=
'\r'
)
Lex
::
append_char
(
c
,
true
,
&
value
,
loc
);
}
this
->
lineoff_
=
p
-
this
->
linebuf_
;
if
(
!
this
->
require_line
())
...
...
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