Module Name: src
Committed By: joerg
Date: Fri Jul 20 21:18:00 UTC 2012
Modified Files:
src/external/gpl3/gcc/dist/libobjc: archive.c encoding.c sendmsg.c
Log Message:
Remove a bunch of broken inline qualifiers that break the -O0 build.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/libobjc/archive.c \
src/external/gpl3/gcc/dist/libobjc/encoding.c \
src/external/gpl3/gcc/dist/libobjc/sendmsg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/libobjc/archive.c
diff -u src/external/gpl3/gcc/dist/libobjc/archive.c:1.1.1.1 src/external/gpl3/gcc/dist/libobjc/archive.c:1.2
--- src/external/gpl3/gcc/dist/libobjc/archive.c:1.1.1.1 Tue Jun 21 01:24:52 2011
+++ src/external/gpl3/gcc/dist/libobjc/archive.c Fri Jul 20 21:18:00 2012
@@ -365,7 +365,7 @@ __objc_write_extension (struct objc_type
}
}
-inline int
+int
__objc_write_object (struct objc_typed_stream *stream, id object)
{
unsigned char buf = '\0';
@@ -431,7 +431,7 @@ objc_write_object (struct objc_typed_str
}
}
-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 @@ objc_write_class (struct objc_typed_stre
}
-inline int
+int
__objc_write_selector (struct objc_typed_stream *stream, SEL selector)
{
const char *sel_name;
@@ -503,7 +503,7 @@ objc_write_selector (struct objc_typed_s
** Read operations
*/
-inline int
+int
objc_read_char (struct objc_typed_stream *stream, char *val)
{
unsigned char buf;
@@ -530,7 +530,7 @@ objc_read_char (struct objc_typed_stream
}
-inline int
+int
objc_read_unsigned_char (struct objc_typed_stream *stream, unsigned char *val)
{
unsigned char buf;
@@ -551,7 +551,7 @@ objc_read_unsigned_char (struct objc_typ
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 @@ objc_read_short (struct objc_typed_strea
return len;
}
-inline int
+int
objc_read_unsigned_short (struct objc_typed_stream *stream,
unsigned short *value)
{
@@ -607,7 +607,7 @@ objc_read_unsigned_short (struct objc_ty
}
-inline int
+int
objc_read_int (struct objc_typed_stream *stream, int *value)
{
unsigned char buf[sizeof (int) + 1];
@@ -634,7 +634,7 @@ objc_read_int (struct objc_typed_stream
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 @@ objc_read_long (struct objc_typed_stream
return len;
}
-inline int
+int
__objc_read_nbyte_uint (struct objc_typed_stream *stream,
unsigned int nbytes, unsigned int *val)
{
@@ -680,7 +680,7 @@ __objc_read_nbyte_uint (struct objc_type
}
-inline int
+int
objc_read_unsigned_int (struct objc_typed_stream *stream,
unsigned int *value)
{
@@ -717,7 +717,7 @@ __objc_read_nbyte_ulong (struct objc_typ
}
-inline int
+int
objc_read_unsigned_long (struct objc_typed_stream *stream,
unsigned long *value)
{
@@ -735,7 +735,7 @@ objc_read_unsigned_long (struct objc_typ
return len;
}
-inline int
+int
objc_read_string (struct objc_typed_stream *stream,
char **string)
{
Index: src/external/gpl3/gcc/dist/libobjc/encoding.c
diff -u src/external/gpl3/gcc/dist/libobjc/encoding.c:1.1.1.1 src/external/gpl3/gcc/dist/libobjc/encoding.c:1.2
--- src/external/gpl3/gcc/dist/libobjc/encoding.c:1.1.1.1 Tue Jun 21 01:24:52 2011
+++ src/external/gpl3/gcc/dist/libobjc/encoding.c Fri Jul 20 21:18:00 2012
@@ -544,7 +544,7 @@ objc_promoted_size (const char *type)
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 @@ objc_skip_typespec (const char *type)
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 == '+')
Index: src/external/gpl3/gcc/dist/libobjc/sendmsg.c
diff -u src/external/gpl3/gcc/dist/libobjc/sendmsg.c:1.1.1.1 src/external/gpl3/gcc/dist/libobjc/sendmsg.c:1.2
--- src/external/gpl3/gcc/dist/libobjc/sendmsg.c:1.1.1.1 Tue Jun 21 01:24:52 2011
+++ src/external/gpl3/gcc/dist/libobjc/sendmsg.c Fri Jul 20 21:18:00 2012
@@ -90,7 +90,6 @@ Method_t search_for_method_in_list (Meth
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 @@ __objc_get_forward_imp (id rcv, SEL sel)
}
/* Given a class and selector, return the selector's implementation. */
-inline
IMP
get_imp (Class class, SEL sel)
{
@@ -190,7 +188,6 @@ get_imp (Class class, SEL sel)
/* 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 @@ __objc_responds_to (id object, SEL sel)
/* 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 @@ __objc_print_dtable_stats ()
/* 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 ()
{