prepend underscores to itrunc and uitrunc
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 14 Apr 1997 22:07:42 +0000 (22:07 +0000)
committerDavid Edelsohn <edelsohn@gnu.org>
Mon, 14 Apr 1997 22:07:42 +0000 (22:07 +0000)
define RS6000_MCOUNT macro as symbol with underscores

From-SVN: r13906

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);                        \
 }