From 4a5c494b6798b667de60149a37994424a44886d1 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 29 Feb 2016 00:09:45 +0000 Subject: Remove the inline stdargs version of NewObject() as GCC always optimised it away We replace it with our own implementation within NetSurf. --- .../recipes/patches/ndk/ndk.inline.intuition.h.p | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/m68k-unknown-amigaos/recipes/patches/ndk/ndk.inline.intuition.h.p b/m68k-unknown-amigaos/recipes/patches/ndk/ndk.inline.intuition.h.p index 0757ef2..c322504 100644 --- a/m68k-unknown-amigaos/recipes/patches/ndk/ndk.inline.intuition.h.p +++ b/m68k-unknown-amigaos/recipes/patches/ndk/ndk.inline.intuition.h.p @@ -1,14 +1,11 @@ ---- sys-include/inline/intuition.h.orig 2006-05-10 18:29:23.000000000 +0100 -+++ sys-include/inline/intuition.h 2010-12-30 01:24:28.000000000 +0000 -@@ -449,8 +449,10 @@ +--- sys-include/inline/intuition.h 2006-05-10 18:29:23.000000000 +0100 ++++ sys-include/inline/intuition.h 2016-02-29 00:06:48.824015807 +0000 +@@ -448,7 +448,7 @@ + LP3(0x27c, APTR, NewObjectA, struct IClass *, classPtr, a0, CONST_STRPTR, classID, a1, const struct TagItem *, tagList, a2, \ , INTUITION_BASE_NAME) - #ifndef NO_INLINE_STDARG --__inline APTR NewObject(struct IClass * classPtr, CONST_STRPTR classID, ULONG tagList, ...) -+static __inline APTR NewObject(struct IClass * classPtr, CONST_STRPTR classID, ULONG tagList, ...) +-#ifndef NO_INLINE_STDARG ++#if 0 + __inline APTR NewObject(struct IClass * classPtr, CONST_STRPTR classID, ULONG tagList, ...) { -+ extern struct IntuitionBase *INTUITION_BASE_NAME; -+ return NewObjectA(classPtr, classID, (const struct TagItem *) &tagList); - } - -- cgit v1.2.3