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  
    6565  major = strtoul (version_str, &end, 10);
    6666  version_str = end + ((*end == '.') ? 1 : 0);
    6767
    68   if (major != 10) /* So far .. all MacOS 10 ... */
     68  if ((major < 10) || (major > 11)) /* So far .. all MacOS 10 ... */
    6969    return NULL;
    7070
    7171  /* Version string components must be present and numeric.  */
     
    104104  if (need_rewrite)
    105105    {
    106106      char *new_version;
    107       asprintf (&new_version, "10.%lu.%lu", minor, tiny);
     107      asprintf (&new_version, "%lu.%lu.%lu", major, minor, tiny);
    108108      return new_version;
    109109    }
    110110