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
012cd3b6
Commit
012cd3b6
authored
Mar 24, 2010
by
Mike Stump
Committed by
Mike Stump
Mar 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability.
From-SVN: r157690
parent
5c3bacee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C
+2
-2
No files found.
gcc/testsuite/ChangeLog
View file @
012cd3b6
2010-03-23 Mike Stump <mikestump@comcast.net>
* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Enhance portability.
2010-03-23 Jason Merrill <jason@redhat.com>
* g++.dg/ext/altivec-17.C: Adjust error message.
...
...
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C
View file @
012cd3b6
...
...
@@ -4,9 +4,9 @@
int
foo
()
{
int
x
;
float
&
q
=
reinterpret_cast
<
float
&>
(
x
);
/* { dg-message "
initialized" "" { xfail
*-*-* } } */
float
&
q
=
reinterpret_cast
<
float
&>
(
x
);
/* { dg-message "
dereferencing type-punned" "" { target
*-*-* } } */
q
=
1
.
0
;
/* { dg-warning "does break strict-aliasing" "" { xfail *-*-* } } */
return
x
;
}
/* { dg-message "
dereferencing type-punned" "" { target
*-*-* } 7 } */
/* { dg-message "
initialized" "" { xfail
*-*-* } 7 } */
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