public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-3782] Ojective-C, Darwin : Adjust category superclass ref names (NFC).
@ 2020-10-11 10:38 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2020-10-11 10:38 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1174b08b140d1fed6012d7dcf66165fabd49b7e5

commit r11-3782-g1174b08b140d1fed6012d7dcf66165fabd49b7e5
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Oct 10 22:21:05 2020 +0100

    Ojective-C, Darwin : Adjust category superclass ref names (NFC).
    
    Make the order of the class and superclass match the metadata
    order from clang.  Makes it easier to compare produced meta-
    data between implementations.
    
    gcc/objc/ChangeLog:
    
            * objc-next-runtime-abi-02.c
            (next_runtime_abi_02_category_decl): Adjust category
            superclass name ordering.

Diff:
---
 gcc/objc/objc-next-runtime-abi-02.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/objc/objc-next-runtime-abi-02.c b/gcc/objc/objc-next-runtime-abi-02.c
index 3a308975325..92ede0325e9 100644
--- a/gcc/objc/objc-next-runtime-abi-02.c
+++ b/gcc/objc/objc-next-runtime-abi-02.c
@@ -980,9 +980,9 @@ next_runtime_abi_02_category_decl (tree klass)
 {
   tree decl;
   char buf[BUFSIZE];
-  snprintf (buf, BUFSIZE, "_OBJC_Category_%s_on_%s",
-	    IDENTIFIER_POINTER (CLASS_SUPER_NAME (klass)),
-	    IDENTIFIER_POINTER (CLASS_NAME (klass)));
+  snprintf (buf, BUFSIZE, "_OBJC_Category_%s_%s",
+	    IDENTIFIER_POINTER (CLASS_NAME (klass)),
+	    IDENTIFIER_POINTER (CLASS_SUPER_NAME (klass)));
   decl = start_var_decl (objc_v2_category_template, buf);
   OBJCMETA (decl, objc_meta, meta_category);
   return decl;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-11 10:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-11 10:38 [gcc r11-3782] Ojective-C, Darwin : Adjust category superclass ref names (NFC) Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).