shebs       02/08/20 20:38:04

  Modified:    gcc      c-common.h c-pragma.c cpplib.h toplev.c
  Log:
  Make some warnings go away.
  
  Revision  Changes    Path
  1.53      +5 -0      gcc3/gcc/c-common.h
  
  Index: c-common.h
  ===================================================================
  RCS file: /cvs/Darwin/gcc3/gcc/c-common.h,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- c-common.h        2002/08/16 17:06:53     1.52
  +++ c-common.h        2002/08/21 03:37:59     1.53
  @@ -1317,6 +1317,11 @@
   
   extern int c_dump_tree                               PARAMS ((void *, tree));
   
  +/* APPLE LOCAL begin AltiVec */
  +extern int altivec_treat_as_keyword          PARAMS ((tree));
  +extern int altivec_context;
  +/* APPLE LOCAL end AltiVec */
  +
   /* APPLE LOCAL begin Objective-C++  */
   /* The following have been moved here from c-tree.h, since they're needed
      in the ObjC++ world, too.  */
  
  
  
  1.9       +9 -2      gcc3/gcc/c-pragma.c
  
  Index: c-pragma.c
  ===================================================================
  RCS file: /cvs/Darwin/gcc3/gcc/c-pragma.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- c-pragma.c        2002/08/14 05:33:17     1.8
  +++ c-pragma.c        2002/08/21 03:37:59     1.9
  @@ -46,6 +46,9 @@
   
   static GTY(()) struct align_stack * alignment_stack;
   
  +/* APPLE LOCAL Macintosh alignment */
  +/* Cut out all of this so the compiler doesn't complain.  */
  +#if 0
   #ifdef HANDLE_PRAGMA_PACK
   static void handle_pragma_pack PARAMS ((cpp_reader *));
   
  @@ -255,6 +258,8 @@
       }
   }
   #endif  /* HANDLE_PRAGMA_PACK */
  +/* APPLE LOCAL Macintosh alignment */
  +#endif /* 0 */
   
   static GTY(()) tree pending_weaks;
   
  @@ -488,11 +493,12 @@
   #if 0
   /* We disable the handling of pragma pack here because it is handled
      in config/darwin-c.c.  */
  +/* APPLE LOCAL end Macintosh alignment 2002-1-22 ff */
   #ifdef HANDLE_PRAGMA_PACK
     cpp_register_pragma (parse_in, 0, "pack", handle_pragma_pack);
   #endif
  -#endif
  -/* APPLE LOCAL end Macintosh alignment 2002-1-22 ff */
  +/* APPLE LOCAL Macintosh alignment 2002-1-22 ff */
  +#endif /* 0 */
   #ifdef HANDLE_PRAGMA_WEAK
     cpp_register_pragma (parse_in, 0, "weak", handle_pragma_weak);
   #endif
  @@ -506,6 +512,7 @@
   #endif
   
     /* APPLE LOCAL begin OS pragma hook */
  +  /* Allow registration of OS-specific but arch-independent pragmas.  */
   #ifdef REGISTER_OS_PRAGMAS
     REGISTER_OS_PRAGMAS (parse_in);
   #endif
  
  
  
  1.30      +2 -2      gcc3/gcc/cpplib.h
  
  Index: cpplib.h
  ===================================================================
  RCS file: /cvs/Darwin/gcc3/gcc/cpplib.h,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- cpplib.h  2002/08/02 10:05:10     1.29
  +++ cpplib.h  2002/08/21 03:37:59     1.30
  @@ -752,8 +752,8 @@
     uint32 count;             /* Number of entries in the string table       */
     uint32 capacity;          /* Number of buckets (always a power of 2)     */
     uint32 max_value_length;  /* Length of longest result path (excl. '\0')  */
  -  struct hmap_bucket buckets[0]; /* Inline array of 'capacity' maptable buckets */
  -  char strings[0];          /* String contents follow the last bucket      */
  +  struct hmap_bucket buckets[1]; /* Inline array of 'capacity' maptable buckets */
  +  /* Strings follow the buckets, at strings_offset.  */
   };
   
   extern struct search_path *hmap_lookup_path  PARAMS ((cpp_reader *,
  
  
  
  1.148     +1 -1      gcc3/gcc/toplev.c
  
  Index: toplev.c
  ===================================================================
  RCS file: /cvs/Darwin/gcc3/gcc/toplev.c,v
  retrieving revision 1.147
  retrieving revision 1.148
  diff -u -r1.147 -r1.148
  --- toplev.c  2002/08/17 06:29:05     1.147
  +++ toplev.c  2002/08/21 03:38:00     1.148
  @@ -2302,7 +2302,7 @@
   
     /* APPLE LOCAL begin PFE */
     if (!PFE_LOADING)
  -    pfe_predefined_global_names = getdecls ();
  +    pfe_predefined_global_names = (*lang_hooks.decls.getdecls) ();
     /* APPLE LOCAL end PFE */
   
     timevar_push (TV_PARSE);
  
  
  


Reply via email to