OSDN Git Service

prepend underscores to itrunc and uitrunc
authoredelsohn <edelsohn@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 1997 22:07:42 +0000 (22:07 +0000)
committeredelsohn <edelsohn@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 1997 22:07:42 +0000 (22:07 +0000)
define RS6000_MCOUNT macro as symbol with underscores

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13906 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/rs6000/rs6000.h

index eac6df3..3b20a19 100644 (file)
@@ -2209,8 +2209,8 @@ extern int rs6000_trunc_used;
 
 /* Function names to call to do floating point truncation.  */
 
-#define RS6000_ITRUNC "itrunc"
-#define RS6000_UITRUNC "uitrunc"
+#define RS6000_ITRUNC "__itrunc"
+#define RS6000_UITRUNC "__uitrunc"
 
 /* Prefix and suffix to use to saving floating point */
 #ifndef SAVE_FP_PREFIX
@@ -2224,6 +2224,9 @@ extern int rs6000_trunc_used;
 #define RESTORE_FP_SUFFIX ""
 #endif
 
+/* Function name to call to do profiling.  */
+#define RS6000_MCOUNT ".__mcount"
+
 \f
 /* Control the assembler format that we output.  */
 
@@ -2262,7 +2265,7 @@ extern int rs6000_trunc_used;
     private_data_section ();                                   \
   text_section ();                                             \
   if (profile_flag)                                            \
-    fputs ("\t.extern .mcount\n", FILE);                       \
+    fprintf (FILE, "\t.extern %s\n", RS6000_MCOUNT);           \
   rs6000_file_start (FILE, TARGET_CPU_DEFAULT);                        \
 }