--- Comment #5 from ebotcazou at gcc dot gnu dot org 2008-06-13 10:23
---
Thanks for the testcase.
--
ebotcazou at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #4 from ebotcazou at gcc dot gnu dot org 2008-06-13 10:21
---
Subject: Bug 36520
Author: ebotcazou
Date: Fri Jun 13 10:20:57 2008
New Revision: 136747
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=136747
Log:
PR middle-end/36520
* builtins.c (get_me
--- Comment #3 from ebotcazou at gcc dot gnu dot org 2008-06-13 08:46
---
> For
>
> struct cmsghdr {
> size_t cmsg_len;
> __extension__ unsigned char __cmsg_data [];
> };
>
> DECL_SIZE{_UNIT} of __cmsg_data is NULL.
I wondered if this could happen... now I know. :-) Fixing
--- Comment #2 from rguenth at gcc dot gnu dot org 2008-06-13 08:35 ---
For
struct cmsghdr {
size_t cmsg_len;
__extension__ unsigned char __cmsg_data [];
};
DECL_SIZE{_UNIT} of __cmsg_data is NULL.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36520
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-06-13 08:33 ---
Testcase from net-tools:
typedef long unsigned int size_t;
typedef unsigned short int sa_family_t;
struct cmsghdr {
size_t cmsg_len;
__extension__ unsigned char __cmsg_data [];
};
typedef unsigned int uint