From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31013 invoked by alias); 23 Sep 2010 10:35:43 -0000 Received: (qmail 28302 invoked by uid 48); 23 Sep 2010 10:35:28 -0000 Date: Thu, 23 Sep 2010 10:35:00 -0000 Message-ID: <20100923103528.28301.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "iains at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg02586.txt.bz2 ------- 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