Ticket #60908: darwin-driver.c.11.0.diff
File darwin-driver.c.11.0.diff, 695 bytes (added by vdoublie, 4 years ago) |
---|
-
gcc/config/darwin-driver.c
old new 65 65 major = strtoul (version_str, &end, 10); 66 66 version_str = end + ((*end == '.') ? 1 : 0); 67 67 68 if ( major != 10) /* So far .. all MacOS 10 ... */68 if ((major < 10) || (major > 11)) /* So far .. all MacOS 10 ... */ 69 69 return NULL; 70 70 71 71 /* Version string components must be present and numeric. */ … … 104 104 if (need_rewrite) 105 105 { 106 106 char *new_version; 107 asprintf (&new_version, " 10.%lu.%lu", minor, tiny);107 asprintf (&new_version, "%lu.%lu.%lu", major, minor, tiny); 108 108 return new_version; 109 109 } 110 110