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
8696da34
Commit
8696da34
authored
Aug 27, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(readescape): For \x, don't include leading 0's in count.
From-SVN: r1973
parent
e64bddee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
gcc/c-lex.c
+7
-1
No files found.
gcc/c-lex.c
View file @
8696da34
...
...
@@ -803,6 +803,7 @@ readescape ()
register
int
code
;
register
unsigned
count
;
unsigned
firstdig
;
int
nonnull
;
switch
(
c
)
{
...
...
@@ -815,6 +816,7 @@ readescape ()
code
=
0
;
count
=
0
;
nonnull
=
0
;
while
(
1
)
{
c
=
getc
(
finput
);
...
...
@@ -832,11 +834,15 @@ readescape ()
code
+=
c
-
'A'
+
10
;
if
(
c
>=
'0'
&&
c
<=
'9'
)
code
+=
c
-
'0'
;
if
(
code
!=
0
||
count
!=
0
)
{
if
(
count
==
0
)
firstdig
=
code
;
count
++
;
}
if
(
count
==
0
)
nonnull
=
1
;
}
if
(
!
nonnull
)
error
(
"
\\
x used with no following hex digits"
);
else
if
((
count
-
1
)
*
4
>=
TYPE_PRECISION
(
integer_type_node
)
||
(
count
>
1
...
...
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