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
b4f69040
Commit
b4f69040
authored
Sep 29, 2004
by
Aaron W. LaFramboise
Committed by
Richard Sandiford
Sep 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* read-rtl.c (apply_macro_to_string): Replace index with strchr.
From-SVN: r88283
parent
58c8adc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+4
-0
gcc/read-rtl.c
+2
-2
No files found.
gcc/ChangeLog
View file @
b4f69040
2004
-
09
-
29
Aaron
W
.
LaFramboise
<
aaronavay62
@
aaronwl
.
com
>
*
read
-
rtl
.
c
(
apply_macro_to_string
):
Replace
index
with
strchr
.
2004
-
09
-
29
Jakub
Jelinek
<
jakub
@
redhat
.
com
>
2004
-
09
-
29
Jakub
Jelinek
<
jakub
@
redhat
.
com
>
*
tree
.
h
(
enum
tree_index
):
Add
TI_VA_LIST_GPR_COUNTER_FIELD
*
tree
.
h
(
enum
tree_index
):
Add
TI_VA_LIST_GPR_COUNTER_FIELD
...
...
gcc/read-rtl.c
View file @
b4f69040
...
@@ -245,13 +245,13 @@ apply_macro_to_string (const char *string, struct mapping *macro, int value)
...
@@ -245,13 +245,13 @@ apply_macro_to_string (const char *string, struct mapping *macro, int value)
return
string
;
return
string
;
base
=
p
=
copy
=
ASTRDUP
(
string
);
base
=
p
=
copy
=
ASTRDUP
(
string
);
while
((
start
=
index
(
p
,
'<'
))
&&
(
end
=
index
(
start
,
'>'
)))
while
((
start
=
strchr
(
p
,
'<'
))
&&
(
end
=
strchr
(
start
,
'>'
)))
{
{
p
=
start
+
1
;
p
=
start
+
1
;
/* If there's a "macro:" prefix, check whether the macro name matches.
/* If there's a "macro:" prefix, check whether the macro name matches.
Set ATTR to the start of the attribute name. */
Set ATTR to the start of the attribute name. */
attr
=
index
(
p
,
':'
);
attr
=
strchr
(
p
,
':'
);
if
(
attr
==
0
||
attr
>
end
)
if
(
attr
==
0
||
attr
>
end
)
attr
=
p
;
attr
=
p
;
else
else
...
...
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