aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-07-05 17:48:04 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-07-05 17:48:04 -0400
commit11117bb9ad8b49835ec9d22e15dcf6125339fd26 (patch)
tree76352ce0215bc996436a32605f5ee964094ffe82 /gcc/config/rs6000
parenta8b3aeda411792a2585b8329273cefe3d5221f57 (diff)
downloadgcc-11117bb9ad8b49835ec9d22e15dcf6125339fd26.zip
gcc-11117bb9ad8b49835ec9d22e15dcf6125339fd26.tar.gz
gcc-11117bb9ad8b49835ec9d22e15dcf6125339fd26.tar.bz2
(CPP_PREDEFINES): Define _AIX32.
(ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP): Use ".text[PR]" as csect name. (RS6000_CROR_BIT_NUMBER): New macro. (PRINT_OPERAND_PUNCT_VALID_P): Allow `.' as valid. From-SVN: r4847
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/rs6000.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index 6cac85e..13d7745 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -1,5 +1,5 @@
/* Definitions of target machine for GNU compiler, for IBM RS/6000.
- Copyright (C) 1992 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1993 Free Software Foundation, Inc.
Contributed by Richard Kenner (kenner@nyu.edu)
This file is part of GNU CC.
@@ -25,7 +25,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Names to predefine in the preprocessor for this target machine. */
-#define CPP_PREDEFINES "-D_IBMR2 -D_AIX"
+#define CPP_PREDEFINES "-D_IBMR2 -D_AIX -D_AIX32"
/* Print subsidiary information on the compiler version in use. */
#define TARGET_VERSION ;
@@ -1492,7 +1492,7 @@ toc_section () \
fprintf (FILE, "\t.long ."); \
RS6000_OUTPUT_BASENAME (FILE, NAME); \
fprintf (FILE, ", TOC[tc0], 0\n"); \
- fprintf (FILE, ".csect [PR]\n."); \
+ fprintf (FILE, ".csect .text[PR]\n."); \
RS6000_OUTPUT_BASENAME (FILE, NAME); \
fprintf (FILE, ":\n"); \
if (write_symbols == XCOFF_DEBUG) \
@@ -1631,7 +1631,7 @@ toc_section () \
/* Output before instructions. */
-#define TEXT_SECTION_ASM_OP ".csect [PR]"
+#define TEXT_SECTION_ASM_OP ".csect .text[PR]"
/* Output before writable data. */
@@ -1680,6 +1680,10 @@ toc_section () \
#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
+/* Bit number to use in cror after branch. Different between AIX 3.2 and
+ earlier systems. */
+#define RS6000_CROR_BIT_NUMBER 31
+
/* This is how to output the definition of a user-level label named NAME,
such as the label on a static function or variable NAME. */
@@ -1842,7 +1846,7 @@ toc_section () \
/* Define which CODE values are valid. */
-#define PRINT_OPERAND_PUNCT_VALID_P(CODE) 0
+#define PRINT_OPERAND_PUNCT_VALID_P(CODE) ((CODE) == '.')
/* Print a memory address as an operand to reference that memory location. */