------- Comment #5 from iains at gcc dot gnu dot org 2010-09-23 10:35 ------- if the array was intended to be an array of structs then this fixes:
Index: gcc/config/darwin-driver.c =================================================================== --- gcc/config/darwin-driver.c (revision 164549) +++ gcc/config/darwin-driver.c (working copy) @@ -128,7 +128,7 @@ darwin_default_min_version (unsigned int *decoded_ generate_option (OPT_mmacosx_version_min_, new_flag, 1, CL_DRIVER, &(*decoded_options)[1]); memcpy (*decoded_options + 2, argv + 1, - (argc - 1) * sizeof (struct cl_decoded_option *)); + (argc - 1) * sizeof (struct cl_decoded_option)); return; parse_failed: -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751