This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17766] [4.0 Regression] cc1 hangs in with -O3, works with -O2
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2004 20:41:34 -0000
- Subject: [Bug tree-optimization/17766] [4.0 Regression] cc1 hangs in with -O3, works with -O2
- References: <20041001071243.17766.olh@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-07 20:41 -------
A little more reduced:
struct msghdr
{
struct cmsghdr *msg_control;
int msg_controllen;
};
struct cmsghdr
{
int cmsg_len, cmsg_level, cmsg_type;
};
static struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) ;
static __inline struct cmsghdr *
__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg)
{
if (__cmsg->cmsg_len < 1)
return 0;
if (__cmsg > __mhdr->msg_control || __cmsg->cmsg_len > 0)
return 0;
return __cmsg;
}
void SLPMDNSXcastRecvMessage(struct msghdr mhdr, struct cmsghdr *cmsg)
{
for (cmsg = (mhdr.msg_controllen >= 1 ? mhdr.msg_control : 0 );
cmsg;
__cmsg_nxthdr (&mhdr, cmsg))
if (cmsg->cmsg_level == 0 && cmsg->cmsg_type == 2)
break;
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |law at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17766