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
e529bd42
Commit
e529bd42
authored
Nov 05, 2001
by
Nick Clifton
Committed by
Nick Clifton
Nov 05, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cope with int_size_in_bytes returning -1.
From-SVN: r46788
parent
648f5f04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
gcc/ChangeLog
+3
-0
gcc/config/arm/arm.c
+5
-3
No files found.
gcc/ChangeLog
View file @
e529bd42
2001
-
11
-
05
Nick
Clifton
<
nickc
@cambridge
.
redhat
.
com
>
2001
-
11
-
05
Nick
Clifton
<
nickc
@cambridge
.
redhat
.
com
>
*
config
/
arm
/
arm
.
c
(
arm_return_in_memory
)
:
Cope
with
int_size_in_bytes
returning
-
1
.
*
config
/
arm
/
unknown
-
elf
.
h
(
ASM_OUTPUT_ALIGNED_DECL_LOCAL
)
:
Handle
*
config
/
arm
/
unknown
-
elf
.
h
(
ASM_OUTPUT_ALIGNED_DECL_LOCAL
)
:
Handle
DECL
being
NULL
.
DECL
being
NULL
.
...
...
gcc/config/arm/arm.c
View file @
e529bd42
...
@@ -1729,9 +1729,11 @@ arm_return_in_memory (type)
...
@@ -1729,9 +1729,11 @@ arm_return_in_memory (type)
/* For the arm-wince targets we choose to be compitable with Microsoft's
/* For the arm-wince targets we choose to be compitable with Microsoft's
ARM and Thumb compilers, which always return aggregates in memory. */
ARM and Thumb compilers, which always return aggregates in memory. */
#ifndef ARM_WINCE
#ifndef ARM_WINCE
/* All structures/unions bigger than one word are returned in memory.
if
(
int_size_in_bytes
(
type
)
>
4
)
Also catch the case where int_size_in_bytes returns -1. In this case
/* All structures/unions bigger than one word are returned in memory. */
the aggregate is either huge or of varaible size, and in either case
we will want to return it via memory and not in a register. */
if
(((
unsigned
int
)
int_size_in_bytes
(
type
))
>
UNITS_PER_WORD
)
return
1
;
return
1
;
if
(
TREE_CODE
(
type
)
==
RECORD_TYPE
)
if
(
TREE_CODE
(
type
)
==
RECORD_TYPE
)
...
...
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