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
a3c18e4f
Commit
a3c18e4f
authored
21 years ago
by
Nick Clifton
Committed by
Nick Clifton
21 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(read_braced_string): Check for EOF. If encountered issue an error message.
From-SVN: r68363
parent
4319ef2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
gcc/ChangeLog
+5
-0
gcc/read-rtl.c
+6
-0
No files found.
gcc/ChangeLog
View file @
a3c18e4f
2003-06-23 Nick Clifton <nickc@redhat.com>
* read-rtl.c (read_braced_string): Check for EOF. If
encountered issue an error message.
2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
* doc/invoke.texi: Document dump options, dT and dW.
...
...
This diff is collapsed.
Click to expand it.
gcc/read-rtl.c
View file @
a3c18e4f
...
...
@@ -298,11 +298,13 @@ read_braced_string (ob, infile)
{
int
c
;
int
brace_depth
=
1
;
/* caller-processed */
unsigned
long
starting_read_rtx_lineno
=
read_rtx_lineno
;
obstack_1grow
(
ob
,
'{'
);
while
(
brace_depth
)
{
c
=
getc
(
infile
);
/* Read the string */
if
(
c
==
'\n'
)
read_rtx_lineno
++
;
else
if
(
c
==
'{'
)
...
...
@@ -314,6 +316,10 @@ read_braced_string (ob, infile)
read_escape
(
ob
,
infile
);
continue
;
}
else
if
(
c
==
EOF
)
fatal_with_file_and_line
(
infile
,
"missing closing } for opening brace on line %lu"
,
starting_read_rtx_lineno
);
obstack_1grow
(
ob
,
c
);
}
...
...
This diff is collapsed.
Click to expand it.
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