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
ecce923e
Commit
ecce923e
authored
Aug 23, 2004
by
Richard Sandiford
Committed by
Richard Sandiford
Aug 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* read-rtl.c (read_rtx): Tidy use of format_ptr.
From-SVN: r86403
parent
a269d6c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gcc/ChangeLog
+4
-0
gcc/read-rtl.c
+5
-5
No files found.
gcc/ChangeLog
View file @
ecce923e
2004-08-23 Richard Sandiford <rsandifo@redhat.com>
* read-rtl.c (read_rtx): Tidy use of format_ptr.
2004-08-23 Richard Sandiford <rsandifo@redhat.com>
* read-rtl.c (string_obstack): New file-scope variable.
(read_string, read_quoted_string, read_braced_string)
(read_escape): Remove obstack parameter and use string_obstack instead.
...
...
gcc/read-rtl.c
View file @
ecce923e
...
...
@@ -598,8 +598,8 @@ again:
else
ungetc
(
i
,
infile
);
for
(
i
=
0
;
i
<
GET_RTX_LENGTH
(
GET_CODE
(
return_rtx
))
;
i
++
)
switch
(
*
format_ptr
++
)
for
(
i
=
0
;
format_ptr
[
i
]
!=
0
;
i
++
)
switch
(
format_ptr
[
i
]
)
{
/* 0 means a field for internal use only.
Don't expect it to be present in the input. */
...
...
@@ -668,7 +668,7 @@ again:
/* 'S' fields are optional and should be NULL if no string
was given. Also allow normal 's' and 'T' strings to be
omitted, treating them in the same way as empty strings. */
XSTR
(
return_rtx
,
i
)
=
(
format_ptr
[
-
1
]
==
'S'
?
NULL
:
""
);
XSTR
(
return_rtx
,
i
)
=
(
format_ptr
[
i
]
==
'S'
?
NULL
:
""
);
break
;
}
...
...
@@ -676,7 +676,7 @@ again:
DEFINE_INSN_AND_SPLIT, or DEFINE_PEEPHOLE automatically
gets a star inserted as its first character, if it is
written with a brace block instead of a string constant. */
star_if_braced
=
(
format_ptr
[
-
1
]
==
'T'
);
star_if_braced
=
(
format_ptr
[
i
]
==
'T'
);
stringbuf
=
read_string
(
infile
,
star_if_braced
);
...
...
@@ -741,7 +741,7 @@ again:
default:
fprintf
(
stderr
,
"switch format wrong in rtl.read_rtx(). format was: %c.
\n
"
,
format_ptr
[
-
1
]);
format_ptr
[
i
]);
fprintf
(
stderr
,
"
\t
file position: %ld
\n
"
,
ftell
(
infile
));
abort
();
}
...
...
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