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
23fb1469
Commit
23fb1469
authored
Feb 06, 2002
by
Nick Clifton
Committed by
Nick Clifton
Feb 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use an explicit alignment value as certain file formats cannot support
particularly large alignments. From-SVN: r49545
parent
1b8afbe7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/ext/align1.C
+7
-6
No files found.
gcc/testsuite/ChangeLog
View file @
23fb1469
2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
* g++.dg/ext/align1.C: Do not use an explicit alignment value
as certain file formats cannot support particularly large
alignments.
* g++.dg/warn/weak1.C: Expect a warning from COFF toolchains,
and do not expect to be able to link the executable.
...
...
gcc/testsuite/g++.dg/ext/align1.C
View file @
23fb1469
// Test that __attribute__ ((aligned)) is preserved.
// Cygwin does not support alignment greater than 16
// The alignment used to be 64 but Cygwin does not
// support an alignment greater than 16 and COFF
// not support an alignment greater than 4.
extern
"C"
int
printf
(
const
char
*
,
...);
typedef
float
at
[
4
][
4
]
__attribute__
((
aligned
(
64
)
));
typedef
float
at
[
4
][
4
]
__attribute__
((
aligned
));
float
dummy
[
4
][
4
][
15
];
static
volatile
at
a1
[
15
];
// { dg-warning "object file alignment" "" { target i?86-pc-cygwin } 10 }
float
f1
__attribute__
((
aligned
(
64
)));
// { dg-warning "object file alignment" "" { target i?86-pc-cygwin } 13 }
float
f1
__attribute__
((
aligned
));
int
main
()
int
main
(
void
)
{
printf
(
"%d %d
\n
"
,
__alignof
(
a1
),
__alignof
(
f1
));
return
(
__alignof
(
a1
)
<
__alignof
(
f1
));
...
...
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