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
723ae7c1
Commit
723ae7c1
authored
25 years ago
by
Nick Clifton
Committed by
Nick Clifton
25 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow netbsd target to also set structure size boundary
From-SVN: r30234
parent
566047c2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
10 deletions
+25
-10
gcc/ChangeLog
+9
-0
gcc/config/arm/arm.c
+1
-1
gcc/config/arm/arm.h
+13
-7
gcc/config/arm/netbsd.h
+2
-2
No files found.
gcc/ChangeLog
View file @
723ae7c1
Thu
Oct
28
10
:
00
:
48
1999
Nick
Clifton
<
nickc
@cygnus
.
com
>
*
config
/
arm
/
arm
.
c
:
Initialise
arm_structure_size_boundary
to
DEFAULT_STRUCTURE_SIZE_BOUNDARY
.
*
config
/
arm
/
arm
.
h
(
DEFAULT_STRUCTURE_SIZE_BOUNDARY
)
:
Define
to
the
value
32
if
it
has
not
already
been
defined
.
*
config
/
arm
/
netbsd
.
h
(
DEFAULT_STRUCTURE_SIZE_BOUNDARY
)
:
Override
definition
in
arm
.
h
with
a
value
of
8
.
Thu
Oct
28
03
:
12
:
02
1999
David
Starner
<
dstarner98
@aasaa
.
ofe
.
org
>
*
c
-
pragma
.
c
(
push_alignment
)
:
Don
'
t
check
the
return
value
...
...
This diff is collapsed.
Click to expand it.
gcc/config/arm/arm.c
View file @
723ae7c1
...
...
@@ -96,7 +96,7 @@ const char * target_fp_name = NULL;
/* Used to parse -mstructure_size_boundary command line option. */
const
char
*
structure_size_string
=
NULL
;
int
arm_structure_size_boundary
=
32
;
/* Used to be 8 */
int
arm_structure_size_boundary
=
DEFAULT_STRUCTURE_SIZE_BOUNDARY
;
/* Bit values used to identify processor capabilities. */
#define FL_CO_PROC (1 << 0)
/* Has external co-processor bus */
...
...
This diff is collapsed.
Click to expand it.
gcc/config/arm/arm.h
View file @
723ae7c1
...
...
@@ -615,15 +615,21 @@ extern int arm_is_6_or_7;
(TREE_CODE (EXP) == STRING_CST \
&& (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN))
/* Setting this to 32 produces more efficient code, but the value set in
previous versions of this toolchain was 8, which produces more compact
structures. The command line option -mstructure_size_boundary=<n> can
be used to change this value, for compatability with the ARM SDK however
the value should be left at 32. ARM SDT Reference Manual (ARM DUI 0020D)
page 2-20 says "Structures are aligned on word boundaries". */
#ifndef STRUCTURE_SIZE_BOUNDARY
/* Setting STRUCTURE_SIZE_BOUNDARY to 32 produces more efficient code, but the
value set in previous versions of this toolchain was 8, which produces more
compact structures. The command line option -mstructure_size_boundary=<n>
can be used to change this value. For compatability with the ARM SDK
however the value should be left at 32. ARM SDT Reference Manual (ARM DUI
0020D) page 2-20 says "Structures are aligned on word boundaries". */
#define STRUCTURE_SIZE_BOUNDARY arm_structure_size_boundary
extern
int
arm_structure_size_boundary
;
/* This is the value used to initialise arm_structure_size_boundary. If a
particular arm target wants to change the default value it should change
the definition of this macro, not STRUCTRUE_SIZE_BOUNDARY. See netbsd.h
for an example of this. */
#ifndef DEFAULT_STRUCTURE_SIZE_BOUNDARY
#define DEFAULT_STRUCTURE_SIZE_BOUNDARY 32
#endif
/* Used when parsing command line option -mstructure_size_boundary. */
...
...
This diff is collapsed.
Click to expand it.
gcc/config/arm/netbsd.h
View file @
723ae7c1
...
...
@@ -157,5 +157,5 @@ Boston, MA 02111-1307, USA. */
This modification is not encouraged but with the present state of the
NetBSD source tree it is currently the only solution that meets the
requirements. */
#undef STRUCTURE_SIZE_BOUNDARY
#define STRUCTURE_SIZE_BOUNDARY 8
#undef
DEFAULT_
STRUCTURE_SIZE_BOUNDARY
#define
DEFAULT_
STRUCTURE_SIZE_BOUNDARY 8
This diff is collapsed.
Click to expand it.
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