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
0e7a8c4b
Commit
0e7a8c4b
authored
Apr 21, 2003
by
Andreas Jaeger
Committed by
Andreas Jaeger
Apr 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
From-SVN: r65883
parent
8de9bb0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
gcc/ChangeLog
+4
-0
gcc/cppcharset.c
+4
-4
No files found.
gcc/ChangeLog
View file @
0e7a8c4b
2003-04-21 Andreas Jaeger <aj@suse.de>
* cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
2003-04-20 Chris Lattner <sabre@nondot.org>
Zack Weinberg <zack@codesourcery.com>
...
...
gcc/cppcharset.c
View file @
0e7a8c4b
...
...
@@ -92,7 +92,7 @@ _cpp_valid_ucn (pfile, pstr, identifier_pos)
if
(
length
)
/* We'll error when we try it out as the start of an identifier. */
cpp_error
(
pfile
,
DL_ERROR
,
"incomplete universal character name %.*s"
,
str
-
base
,
base
);
(
int
)
(
str
-
base
)
,
base
);
/* The standard permits $, @ and ` to be specified as UCNs. We use
hex escapes so that this also works with EBCDIC hosts. */
else
if
((
result
<
0xa0
...
...
@@ -101,7 +101,7 @@ _cpp_valid_ucn (pfile, pstr, identifier_pos)
||
(
result
>=
0xD800
&&
result
<=
0xDFFF
))
{
cpp_error
(
pfile
,
DL_ERROR
,
"%.*s is not a valid universal character"
,
str
-
base
,
base
);
(
int
)
(
str
-
base
)
,
base
);
}
else
if
(
identifier_pos
)
{
...
...
@@ -110,11 +110,11 @@ _cpp_valid_ucn (pfile, pstr, identifier_pos)
if
(
validity
==
0
)
cpp_error
(
pfile
,
DL_ERROR
,
"universal character %.*s is not valid in an identifier"
,
str
-
base
,
base
);
(
int
)
(
str
-
base
)
,
base
);
else
if
(
validity
==
2
&&
identifier_pos
==
1
)
cpp_error
(
pfile
,
DL_ERROR
,
"universal character %.*s is not valid at the start of an identifier"
,
str
-
base
,
base
);
(
int
)
(
str
-
base
)
,
base
);
}
if
(
result
==
0
)
...
...
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