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
69d4d74d
Commit
69d4d74d
authored
Sep 19, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Ignore byte-order-mark at start of file.
From-SVN: r191485
parent
17fff17b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
gcc/go/gofrontend/lex.cc
+10
-1
No files found.
gcc/go/gofrontend/lex.cc
View file @
69d4d74d
...
...
@@ -722,7 +722,16 @@ Lex::next_token()
unsigned
int
ci
;
bool
issued_error
;
this
->
lineoff_
=
p
-
this
->
linebuf_
;
this
->
advance_one_utf8_char
(
p
,
&
ci
,
&
issued_error
);
const
char
*
pnext
=
this
->
advance_one_utf8_char
(
p
,
&
ci
,
&
issued_error
);
// Ignore byte order mark at start of file.
if
(
ci
==
0xfeff
&&
this
->
lineno_
==
1
&&
this
->
lineoff_
==
0
)
{
p
=
pnext
;
break
;
}
if
(
Lex
::
is_unicode_letter
(
ci
))
return
this
->
gather_identifier
();
...
...
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