This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/31254] ice for legal code with -O2
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Mar 2007 12:46:14 -0000
- Subject: [Bug tree-optimization/31254] ice for legal code with -O2
- References: <bug-31254-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tbm at cyrius dot com 2007-03-18 12:46 -------
Reduced testcase (fails at -O):
struct timespec
{
long tv_sec;
long tv_nsec;
};
struct inode
{
struct timespec i_atime;
struct timespec i_mtime;
};
struct afs_vnode
{
struct inode vfs_inode;
};
static inline
struct inode *AFS_VNODE_TO_I (struct afs_vnode *vnode)
{
return &vnode->vfs_inode;
};
afs_inode_map_status (struct afs_vnode *vnode)
{
struct inode *inode = AFS_VNODE_TO_I (vnode);
inode->i_atime = inode->i_mtime;
}
--
tbm at cyrius dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31254