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
5bb43f8f
Commit
5bb43f8f
authored
Apr 17, 1996
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(process_pragma): Take the IDENTIFIER_POINTER tree
node instead of a character. From-SVN: r11844
parent
f72bbc37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
25 deletions
+12
-25
gcc/config/h8300/h8300.c
+12
-25
No files found.
gcc/config/h8300/h8300.c
View file @
5bb43f8f
...
...
@@ -618,36 +618,23 @@ eq_operator (x, mode)
with this attribute may be safely used in an interrupt vector. */
int
handle_pragma
(
file
,
c
)
handle_pragma
(
file
,
t
)
FILE
*
file
;
int
c
;
tree
t
;
{
char
pbuf
[
20
]
;
int
psize
=
0
;
int
retval
=
0
;
register
char
*
pname
;
while
(
c
==
' '
||
c
==
'\t'
)
c
=
getc
(
file
);
if
(
c
!=
'\n'
&
c
!=
EOF
)
{
while
(
psize
<
sizeof
(
pbuf
)
-
1
&&
isalpha
(
c
))
{
pbuf
[
psize
++
]
=
c
;
c
=
getc
(
file
);
}
pbuf
[
psize
]
=
0
;
if
(
strcmp
(
pbuf
,
"interrupt"
)
==
0
)
interrupt_handler
=
1
;
else
if
(
strcmp
(
pbuf
,
"saveall"
)
==
0
)
pragma_saveall
=
1
;
if
(
TREE_CODE
(
t
)
!=
IDENTIFIER_NODE
)
return
0
;
while
(
c
!=
'\n'
&&
c
!=
EOF
)
c
=
getc
(
file
);
}
pname
=
IDENTIFIER_POINTER
(
t
);
if
(
strcmp
(
pname
,
"interrupt"
)
==
0
)
interrupt_handler
=
retval
=
1
;
else
if
(
strcmp
(
pname
,
"saveall"
)
==
0
)
pragma_saveall
=
retval
=
1
;
return
c
;
return
retval
;
}
/* If the next arg with MODE and TYPE is to be passed in a register, return
...
...
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