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
b8089d8d
Commit
b8089d8d
authored
Jan 24, 2003
by
Andreas Schwab
Committed by
Andreas Schwab
Jan 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stor-layout.c (excess_unit_span): Only define if used.
From-SVN: r61707
parent
c13bea50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
gcc/ChangeLog
+4
-0
gcc/stor-layout.c
+5
-1
No files found.
gcc/ChangeLog
View file @
b8089d8d
2003
-
01
-
24
Andreas
Schwab
<
schwab
@suse
.
de
>
*
stor
-
layout
.
c
(
excess_unit_span
)
:
Only
define
if
used
.
2003
-
01
-
24
Jerry
Quinn
<
jlquinn
@optonline
.
net
>
*
gcc
/
doc
/
invoke
.
texi
(
Optimization
Options
)
:
List
-
O
levels
...
...
gcc/stor-layout.c
View file @
b8089d8d
/* C-compiler utilities for types and variables storage layout
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1996, 1998,
1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1999, 2000, 2001, 2002
, 2003
Free Software Foundation, Inc.
This file is part of GCC.
...
...
@@ -62,9 +62,11 @@ static int reference_types_internal = 0;
static
void
finalize_record_size
PARAMS
((
record_layout_info
));
static
void
finalize_type_size
PARAMS
((
tree
));
static
void
place_union_field
PARAMS
((
record_layout_info
,
tree
));
#if defined (PCC_BITFIELD_TYPE_MATTERS) || defined (BITFIELD_NBYTES_LIMITED)
static
int
excess_unit_span
PARAMS
((
HOST_WIDE_INT
,
HOST_WIDE_INT
,
HOST_WIDE_INT
,
HOST_WIDE_INT
,
tree
));
#endif
static
unsigned
int
update_alignment_for_field
PARAMS
((
record_layout_info
,
tree
,
unsigned
int
));
...
...
@@ -791,6 +793,7 @@ place_union_field (rli, field)
DECL_SIZE_UNIT
(
field
),
rli
->
offset
));
}
#if defined (PCC_BITFIELD_TYPE_MATTERS) || defined (BITFIELD_NBYTES_LIMITED)
/* A bitfield of SIZE with a required access alignment of ALIGN is allocated
at BYTE_OFFSET / BIT_OFFSET. Return nonzero if the field would span more
units of alignment than the underlying TYPE. */
...
...
@@ -808,6 +811,7 @@ excess_unit_span (byte_offset, bit_offset, size, align, type)
>
((
unsigned
HOST_WIDE_INT
)
tree_low_cst
(
TYPE_SIZE
(
type
),
1
)
/
align
));
}
#endif
/* RLI contains information about the layout of a RECORD_TYPE. FIELD
is a FIELD_DECL to be added after those fields already present in
...
...
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