Ticket #52828: r241919.diff

File r241919.diff, 967 bytes (added by jwhowarth, 8 years ago)

upstream patch to make FSF gcc's cc1 Apple sandbox friendly

  • gcc/incpath.c

     
    253253
    254254      if (stat (cur->name, &st))
    255255        {
    256           /* Dirs that don't exist are silently ignored, unless verbose.  */
    257           if (errno != ENOENT)
     256          /* Dirs that don't exist or have denied permissions are
     257             silently ignored, unless verbose.  */
     258          if ((errno != ENOENT) && (errno != EPERM))
    258259            cpp_errno (pfile, CPP_DL_ERROR, cur->name);
    259260          else
    260261            {
  • gcc/ChangeLog

     
     12016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>
     2
     3        PR driver/78206
     4        * incpath.c: (remove_dup(): Also silently ignore EPERM.
     5
    162016-11-07  Martin Jambor  <mjambor@suse.cz>
    27
    38        * tree.c (verify_type_variant): Use pointer comparison to check that