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
f43a85ca
Commit
f43a85ca
authored
Sep 16, 1998
by
Nick Clifton
Committed by
Nick Clifton
Sep 16, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update definition/use of HANDLE_PRAGMA to match new specification.
From-SVN: r22451
parent
c0f5ceb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
gcc/ChangeLog
+9
-0
gcc/config/sh/sh.c
+4
-8
gcc/config/sh/sh.h
+4
-6
No files found.
gcc/ChangeLog
View file @
f43a85ca
Wed
Sep
16
12
:
29
:
22
1998
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
config
/
sh
/
sh
.
h
:
Update
definition
of
HANDLE_PRAGMA
to
match
new
specification
.
*
config
/
sh
/
sh
.
c
(
handle_pragma
)
:
Rename
to
sh_handle_pragma
().
(
sh_handle_pragma
)
:
Change
function
arguments
to
match
new
specification
for
HANDLE_PRAGMA
.
Wed
Sep
16
12
:
43
:
19
1998
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
Wed
Sep
16
12
:
43
:
19
1998
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
gen
-
protos
.
c
(
parse_fn_proto
)
:
Cast
argument
of
ISALNUM
to
*
gen
-
protos
.
c
(
parse_fn_proto
)
:
Cast
argument
of
ISALNUM
to
...
...
gcc/config/sh/sh.c
View file @
f43a85ca
...
@@ -3700,17 +3700,13 @@ initial_elimination_offset (from, to)
...
@@ -3700,17 +3700,13 @@ initial_elimination_offset (from, to)
compiler. */
compiler. */
int
int
handle_pragma
(
file
,
t
)
sh_handle_pragma
(
p_getc
,
p_ungetc
,
pname
)
FILE
*
file
;
int
(
*
p_getc
)
PROTO
((
void
));
tree
t
;
void
(
*
p_ungetc
)
PROTO
((
int
));
char
*
pname
;
{
{
int
retval
=
0
;
int
retval
=
0
;
register
char
*
pname
;
if
(
TREE_CODE
(
t
)
!=
IDENTIFIER_NODE
)
return
0
;
pname
=
IDENTIFIER_POINTER
(
t
);
if
(
strcmp
(
pname
,
"interrupt"
)
==
0
)
if
(
strcmp
(
pname
,
"interrupt"
)
==
0
)
pragma_interrupt
=
retval
=
1
;
pragma_interrupt
=
retval
=
1
;
else
if
(
strcmp
(
pname
,
"trapa"
)
==
0
)
else
if
(
strcmp
(
pname
,
"trapa"
)
==
0
)
...
...
gcc/config/sh/sh.h
View file @
f43a85ca
...
@@ -1819,12 +1819,10 @@ int barrier_align ();
...
@@ -1819,12 +1819,10 @@ int barrier_align ();
#define TARGET_MEM_FUNCTIONS
#define TARGET_MEM_FUNCTIONS
/* Define this macro if you want to implement any pragmas. If defined, it
/* Define this macro if you want to implement any pragmas. If defined, it
is a C expression to be executed when #pragma is seen. The
is a C expression whose value is 1 if the pragma was handled by the
argument FILE is the stdio input stream from which the source
macro, zero otherwise. */
text can be read. CH is the first character after the #pragma. The
#define HANDLE_PRAGMA(GETC, UNGETC, NODE) sh_handle_pragma (GETC, UNGETC, NODE)
result of the expression is the terminating character found
extern
int
sh_handle_pragma
();
(newline or EOF). */
#define HANDLE_PRAGMA(FILE, NODE) handle_pragma ((FILE), (NODE))
/* Set when processing a function with pragma interrupt turned on. */
/* Set when processing a function with pragma interrupt turned on. */
...
...
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