Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/libobjc Remove a bunch of broken inli...



details:   https://anonhg.NetBSD.org/src/rev/579878dca24c
branches:  trunk
changeset: 780351:579878dca24c
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Jul 20 21:18:00 2012 +0000

description:
Remove a bunch of broken inline qualifiers that break the -O0 build.

diffstat:

 external/gpl3/gcc/dist/libobjc/archive.c  |  26 +++++++++++++-------------
 external/gpl3/gcc/dist/libobjc/encoding.c |   4 ++--
 external/gpl3/gcc/dist/libobjc/sendmsg.c  |   5 -----
 3 files changed, 15 insertions(+), 20 deletions(-)

diffs (184 lines):

diff -r 4e259f6d08ce -r 579878dca24c external/gpl3/gcc/dist/libobjc/archive.c
--- a/external/gpl3/gcc/dist/libobjc/archive.c  Fri Jul 20 20:48:59 2012 +0000
+++ b/external/gpl3/gcc/dist/libobjc/archive.c  Fri Jul 20 21:18:00 2012 +0000
@@ -365,7 +365,7 @@
     }
 }
 
-inline int
+int
 __objc_write_object (struct objc_typed_stream *stream, id object)
 {
   unsigned char buf = '\0';
@@ -431,7 +431,7 @@
     }
 }
 
-inline int
+int
 __objc_write_class (struct objc_typed_stream *stream, struct objc_class *class)
 {
   __objc_write_extension (stream, _BX_CLASS);
@@ -460,7 +460,7 @@
 }
 
 
-inline int 
+int 
 __objc_write_selector (struct objc_typed_stream *stream, SEL selector)
 {
   const char *sel_name;
@@ -503,7 +503,7 @@
 ** Read operations 
 */
 
-inline int
+int
 objc_read_char (struct objc_typed_stream *stream, char *val)
 {
   unsigned char buf;
@@ -530,7 +530,7 @@
 }
 
 
-inline int
+int
 objc_read_unsigned_char (struct objc_typed_stream *stream, unsigned char *val)
 {
   unsigned char buf;
@@ -551,7 +551,7 @@
   return len;
 }
 
-inline int
+int
 objc_read_short (struct objc_typed_stream *stream, short *value)
 {
   unsigned char buf[sizeof (short) + 1];
@@ -579,7 +579,7 @@
   return len;
 }
 
-inline int
+int
 objc_read_unsigned_short (struct objc_typed_stream *stream,
                          unsigned short *value)
 {
@@ -607,7 +607,7 @@
 }
 
 
-inline int
+int
 objc_read_int (struct objc_typed_stream *stream, int *value)
 {
   unsigned char buf[sizeof (int) + 1];
@@ -634,7 +634,7 @@
   return len;
 }
 
-inline int
+int
 objc_read_long (struct objc_typed_stream *stream, long *value)
 {
   unsigned char buf[sizeof (long) + 1];
@@ -661,7 +661,7 @@
   return len;
 }
 
-inline int
+int
 __objc_read_nbyte_uint (struct objc_typed_stream *stream,
                        unsigned int nbytes, unsigned int *val)
 {
@@ -680,7 +680,7 @@
 }
   
 
-inline int
+int
 objc_read_unsigned_int (struct objc_typed_stream *stream,
                        unsigned int *value)
 {
@@ -717,7 +717,7 @@
 }
   
 
-inline int
+int
 objc_read_unsigned_long (struct objc_typed_stream *stream,
                         unsigned long *value)
 {
@@ -735,7 +735,7 @@
   return len;
 }
 
-inline int
+int
 objc_read_string (struct objc_typed_stream *stream,
                  char **string)
 {
diff -r 4e259f6d08ce -r 579878dca24c external/gpl3/gcc/dist/libobjc/encoding.c
--- a/external/gpl3/gcc/dist/libobjc/encoding.c Fri Jul 20 20:48:59 2012 +0000
+++ b/external/gpl3/gcc/dist/libobjc/encoding.c Fri Jul 20 21:18:00 2012 +0000
@@ -544,7 +544,7 @@
   occurring in method prototype encodings.
 */
 
-inline const char *
+const char *
 objc_skip_type_qualifiers (const char *type)
 {
   while (*type == _C_CONST
@@ -682,7 +682,7 @@
   Skip an offset as part of a method encoding.  This is prepended by a
   '+' if the argument is passed in registers.
 */
-inline const char *
+const char *
 objc_skip_offset (const char *type)
 {
   if (*type == '+')
diff -r 4e259f6d08ce -r 579878dca24c external/gpl3/gcc/dist/libobjc/sendmsg.c
--- a/external/gpl3/gcc/dist/libobjc/sendmsg.c  Fri Jul 20 20:48:59 2012 +0000
+++ b/external/gpl3/gcc/dist/libobjc/sendmsg.c  Fri Jul 20 21:18:00 2012 +0000
@@ -90,7 +90,6 @@
 id nil_method (id, SEL);
 
 /* Given a selector, return the proper forwarding implementation. */
-inline
 IMP
 __objc_get_forward_imp (id rcv, SEL sel)
 {
@@ -129,7 +128,6 @@
 }
 
 /* Given a class and selector, return the selector's implementation.  */
-inline
 IMP
 get_imp (Class class, SEL sel)
 {
@@ -190,7 +188,6 @@
 /* Query if an object can respond to a selector, returns YES if the
 object implements the selector otherwise NO.  Does not check if the
 method can be forwarded. */
-inline
 BOOL
 __objc_responds_to (id object, SEL sel)
 {
@@ -215,7 +212,6 @@
 /* This is the lookup function.  All entries in the table are either a 
    valid method *or* zero.  If zero then either the dispatch table
    needs to be installed or it doesn't exist and forwarding is attempted. */
-inline
 IMP
 objc_msg_lookup (id receiver, SEL op)
 {
@@ -705,7 +701,6 @@
 /* Returns the uninstalled dispatch table indicator.
  If a class' dispatch table points to __objc_uninstalled_dtable
  then that means it needs its dispatch table to be installed. */
-inline
 struct sarray *
 objc_get_uninstalled_dtable ()
 {



Home | Main Index | Thread Index | Old Index