------- Comment #1 from rguenth at gcc dot gnu dot org 2006-04-22 11:04 ------- Testcase:
typedef unsigned int size_t; typedef void *ClientData; typedef struct Tcl_Interp { } Tcl_Interp; extern char *addRE; extern char *rmRE; extern char *aproposRE; typedef struct _mod_trace { char **re_ptr; } ModTrace; static char module_name[] = "cmdTrace.c"; static char _all_off[] = "-.*"; static ModTrace TraceSelect[] = { { &addRE, "load", _all_off, 0 } , { &rmRE, "unload", _all_off, 0 } , { &aproposRE, "apropos", _all_off, 0 } }; int cmdModuleTrace( ClientData client_data, Tcl_Interp *interp, int argc, char *argv[]) { int i, k; int cmd_tab_size; char *cmd_table; cmd_tab_size = sizeof( TraceSelect) / sizeof( TraceSelect[ 0]); if((char *) ((void *)0) == (cmd_table = (char *) malloc( cmd_tab_size))) return((0 == Module_Error( 70, module_name, 306, ((void *)0))) ? 0 : 1); (__builtin_constant_p (cmd_tab_size) && (cmd_tab_size) == 0 ? (__warn_memset_zero_len (), (void) (!i), (void) (cmd_tab_size), (void *) (cmd_table)) : ((__builtin_object_size (cmd_table, 0) != (size_t) -1) ? __builtin___memset_chk (cmd_table, !i, cmd_tab_size, __builtin_object_size (cmd_table, 0)) : __memset_ichk (cmd_table, !i, cmd_tab_size))); } -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amodra at bigpond dot net | |dot au http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27260