public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] AIX SECTION_EXCLUDE
@ 2015-09-28 15:07 David Edelsohn
  0 siblings, 0 replies; only message in thread
From: David Edelsohn @ 2015-09-28 15:07 UTC (permalink / raw)
  To: GCC Patches

The appended patch allows GCC to emit LTO information to a reasonable
location in XCOFF objects.

Thanks, David

* config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
SECTION_EXCLUDE in XO mapping class.

Index: rs6000.c
===================================================================
--- rs6000.c    (revision 228202)
+++ rs6000.c    (working copy)
@@ -30845,14 +30845,16 @@
                                tree decl ATTRIBUTE_UNUSED)
 {
   int smclass;
-  static const char * const suffix[4] = { "PR", "RO", "RW", "TL" };
+  static const char * const suffix[5] = { "PR", "RO", "RW", "TL", "XO" };

-  if (flags & SECTION_DEBUG)
+  if (flags & SECTION_EXCLUDE)
+    smclass = 4;
+  else if (flags & SECTION_DEBUG)
     {
       fprintf (asm_out_file, "\t.dwsect %s\n", name);
       return;
     }
-  if (flags & SECTION_CODE)
+  else if (flags & SECTION_CODE)
     smclass = 0;
   else if (flags & SECTION_TLS)
     smclass = 3;

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

only message in thread, other threads:[~2015-09-28 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-28 15:07 [PATCH] AIX SECTION_EXCLUDE David Edelsohn

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).