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
72827ed7
Commit
72827ed7
authored
Jan 08, 2004
by
Mark Mitchell
Committed by
Mark Mitchell
Jan 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/abi/vbase10.C: Use -mstructure-size-boundary=8 on ARM.
From-SVN: r75529
parent
102d3176
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/abi/vbase10.C
+6
-7
No files found.
gcc/testsuite/ChangeLog
View file @
72827ed7
2004-01-07 Mark Mitchell <mark@codesourcery.com>
* g++.dg/abi/vbase10.C: Use -mstructure-size-boundary=8 on ARM.
2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
PR c/6024
PR c/6024
...
...
gcc/testsuite/g++.dg/abi/vbase10.C
View file @
72827ed7
// { dg-do compile }
// { dg-do compile }
// { dg-options "-Wabi -fabi-version=1" }
// { dg-options "-Wabi -fabi-version=1" }
// On ARM processors, the alignment of B will be 4 even though it
// contains only a single "char". That would avoids the situation
// that the warning below is designed to catch. We therefore
// explicitly set the default structure alignment to 1.
// { dg-options "-Wabi -fabi-version=1 -mstructure-size-boundary=8" { target arm*-*-* } }
struct
A
{
virtual
void
f
();
char
c1
;
};
struct
A
{
virtual
void
f
();
char
c1
;
};
struct
B
{
B
();
char
c2
;
};
struct
B
{
B
();
char
c2
;
};
// On ARM processors, the alignment of B will be 4 even though it
struct
C
:
public
A
,
public
virtual
B
{};
// { dg-warning "ABI" }
// contains only a single "char". That avoids the situation that the
// warning below is designed to catch. On ARM NetBSD, the alignment
// of B will be only 1 -- but there is no way to tell DejaGNU that a
// failure is expected on all ARM targets except arm*-*-netbsd*.
// Therefore, this test will XPASS on arm*-*-netbsd*.
struct
C
:
public
A
,
public
virtual
B
{};
// { dg-warning "ABI" "" { xfail arm*-*-* } }
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