public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2036] rust: Update usage of TARGET_AIX to TARGET_AIX_OS
@ 2023-06-22 23:36 Peter Bergner
  0 siblings, 0 replies; only message in thread
From: Peter Bergner @ 2023-06-22 23:36 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8a30775b0d3037123ee540f7b65a736ad49e05ce

commit r14-2036-g8a30775b0d3037123ee540f7b65a736ad49e05ce
Author: Paul E. Murphy <murphyp@linux.ibm.com>
Date:   Thu Jun 22 17:57:23 2023 -0500

    rust: Update usage of TARGET_AIX to TARGET_AIX_OS
    
    This was noticed when fixing the gccgo usage of the macro, the
    rust usage is very similar.
    
    TARGET_AIX is defined as a non-zero value on linux/powerpc64le
    which may cause unexpected behavior.  TARGET_AIX_OS should be
    used to toggle AIX specific behavior.
    
    2023-06-22  Paul E. Murphy  <murphyp@linux.ibm.com>
    
    gcc/rust/
            * rust-object-export.cc [TARGET_AIX]: Rename and update usage to
            TARGET_AIX_OS.

Diff:
---
 gcc/rust/rust-object-export.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/rust/rust-object-export.cc b/gcc/rust/rust-object-export.cc
index 1143c767784..f9a395f6964 100644
--- a/gcc/rust/rust-object-export.cc
+++ b/gcc/rust/rust-object-export.cc
@@ -46,8 +46,8 @@
 #define RUST_EXPORT_SECTION_NAME ".rust_export"
 #endif
 
-#ifndef TARGET_AIX
-#define TARGET_AIX 0
+#ifndef TARGET_AIX_OS
+#define TARGET_AIX_OS 0
 #endif
 
 /* Return whether or not GCC has reported any errors.  */
@@ -91,7 +91,7 @@ rust_write_export_data (const char *bytes, unsigned int size)
     {
       gcc_assert (targetm_common.have_named_sections);
       sec = get_section (RUST_EXPORT_SECTION_NAME,
-			 TARGET_AIX ? SECTION_EXCLUDE : SECTION_DEBUG, NULL);
+			 TARGET_AIX_OS ? SECTION_EXCLUDE : SECTION_DEBUG, NULL);
     }
 
   switch_to_section (sec);

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

only message in thread, other threads:[~2023-06-22 23:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-22 23:36 [gcc r14-2036] rust: Update usage of TARGET_AIX to TARGET_AIX_OS Peter Bergner

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