dpatel      02/11/20 16:02:21

  Modified:    live/gcc3/gcc gcc.c
  Log:
  Do not invoke lipo during --dump-pch.
  Bug #:3078338
  
  Revision  Changes    Path
  1.156     +8 -4      src/live/gcc3/gcc/gcc.c
  
  Index: gcc.c
  ===================================================================
  RCS file: /cvs/Darwin/src/live/gcc3/gcc/gcc.c,v
  retrieving revision 1.155
  retrieving revision 1.156
  diff -u -r1.155 -r1.156
  --- gcc.c     2002/11/20 20:49:12     1.155
  +++ gcc.c     2002/11/21 00:02:20     1.156
  @@ -772,11 +772,11 @@
      compiling multiple architectures and the output is a .o or an
      executable. */
   static char *ofile_merge_spec = "\
  -%{!M:%{!MM:%{!E:%{!precomp:%{!S:lipo -create %F \
  -                          %{c:%W{o}%{!o:-o %w%b%O}}%{!c:-o %w%u%O}\n}}}}}";
  +%{!fdump=*:%{!M:%{!MM:%{!E:%{!precomp:%{!S:lipo -create %F \
  +                          %{c:%W{o}%{!o:-o %w%b%O}}%{!c:-o %w%u%O}\n}}}}}}";
   static char *exec_merge_spec = "\
  -%{!M:%{!MM:%{!E:%{!precomp:%{!S:%{!c:lipo -create %F \
  -                               %{o}%{!o:-o a.out}\n}}}}}}";
  +%{!fdump=*:%{!M:%{!MM:%{!E:%{!precomp:%{!S:%{!c:lipo -create %F \
  +                               %{o}%{!o:-o a.out}\n}}}}}}}";
   /* NOTE that this issues a .p file by default even if the input file
      is C++/ObjC++.  It's theoretically possible to infer .p vs .pp by
      examining infile language, but it would need a new %-directive.  */
  @@ -3553,8 +3553,12 @@
        }
       }
   
  +  /* APPLE LOCAL begin */
  +  /* FSF patch pending. Move translate_options() call before -b processing
  +     so that -bundle like options can be translated, if required.  */
     /* Convert new-style -- options to old-style.  */
     translate_options (&argc, &argv);
  +  /* APPLE LOCAL end */
   
     /* If there is a -V or -b option (or both), process it now, before
        trying to interpret the rest of the command line.  */
  
  
  


Reply via email to