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
d49debfe
Commit
d49debfe
authored
May 31, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_epilog): Don't crash if TYPE_SIZE of an arg is not set.
From-SVN: r4614
parent
433deffc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
gcc/config/romp/romp.c
+11
-3
No files found.
gcc/config/romp/romp.c
View file @
d49debfe
/* Subroutines used for code generation on ROMP.
/* Subroutines used for code generation on ROMP.
Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
Copyright (C) 1990, 1991, 1992
, 1993
Free Software Foundation, Inc.
Contributed by Richard Kenner (kenner@nyu.edu)
Contributed by Richard Kenner (kenner@nyu.edu)
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -1144,10 +1144,18 @@ output_epilog (file, size)
...
@@ -1144,10 +1144,18 @@ output_epilog (file, size)
int
nargs
=
0
;
/* words of arguments */
int
nargs
=
0
;
/* words of arguments */
tree
argptr
;
tree
argptr
;
/* Compute the number of words of arguments. Since this is just for
the traceback table, we ignore arguments that don't have a size or
don't have a fixed size. */
for
(
argptr
=
DECL_ARGUMENTS
(
current_function_decl
);
for
(
argptr
=
DECL_ARGUMENTS
(
current_function_decl
);
argptr
;
argptr
=
TREE_CHAIN
(
argptr
))
argptr
;
argptr
=
TREE_CHAIN
(
argptr
))
nargs
+=
((
TREE_INT_CST_LOW
(
TYPE_SIZE
(
TREE_TYPE
(
argptr
)))
{
+
BITS_PER_WORD
-
1
)
/
BITS_PER_WORD
);
int
this_size
=
int_size_in_bytes
(
TREE_TYPE
(
argptr
));
if
(
this_size
>
0
)
nargs
+=
(
this_size
+
UNITS_PER_WORD
-
1
)
/
UNITS_PER_WORD
;
}
/* If the last insn was a BARRIER, we don't have to write anything except
/* If the last insn was a BARRIER, we don't have to write anything except
the trace table. */
the trace table. */
...
...
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