[PATCH v4 1/2] Fix __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__

Andreas Schwab schwab@linux-m68k.org
Sat Sep 13 09:04:00 GMT 2014


FX <fxcoudert@gmail.com> writes:

>> Index: gcc/config/darwin-driver.c
>> ===================================================================
>> --- gcc/config/darwin-driver.c	(revision 215234)
>> +++ gcc/config/darwin-driver.c	(working copy)
>> @@ -105,7 +103,7 @@ darwin_default_min_version (unsigned int
>>    const unsigned int argc = *decoded_options_count;
>>    struct cl_decoded_option *const argv = *decoded_options;
>>    unsigned int i;
>> -  static char new_flag[sizeof ("10.0.0") + 6];
>> +  static char new_flag[sizeof ("10.10.0") + 6];

That should be allocated in darwin_find_version_from_kernel, using
asprintf, and static doesn't make sense either.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list