aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2006-02-24 15:50:10 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2006-02-24 10:50:10 -0500
commit69ca35491357cd22ed769ea202f3a7f32b9f599b (patch)
treea3b7304ba1427ea77ab8edb48aca1761a1b7a326 /gcc
parent0f3162e391094d4b1836f76fd97911db8bd5f274 (diff)
downloadgcc-69ca35491357cd22ed769ea202f3a7f32b9f599b.zip
gcc-69ca35491357cd22ed769ea202f3a7f32b9f599b.tar.gz
gcc-69ca35491357cd22ed769ea202f3a7f32b9f599b.tar.bz2
rs6000.c (rs6000_init_builtins): Change decl libname for clog to __clog on AIX.
* config/rs6000/rs6000.c (rs6000_init_builtins): Change decl libname for clog to __clog on AIX. * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define. From-SVN: r111418
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/rs6000.c6
-rw-r--r--gcc/config/rs6000/xcoff.h5
3 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 919a75e..450d815 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2006-02-24 David Edelsohn <edelsohn@gnu.org>
+
+ * config/rs6000/rs6000.c (rs6000_init_builtins): Change
+ decl libname for clog to __clog on AIX.
+
+ * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
+
2006-02-24 Alan Modra <amodra@bigpond.net.au>
PR target/26453
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 2ca1b30..231154c 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -7966,6 +7966,12 @@ rs6000_init_builtins (void)
altivec_init_builtins ();
if (TARGET_ALTIVEC || TARGET_SPE)
rs6000_common_init_builtins ();
+
+#if TARGET_XCOFF
+ /* AIX libm provides clog as __clog. */
+ if (built_in_decls [BUILT_IN_CLOG])
+ set_user_assembler_name (built_in_decls [BUILT_IN_CLOG], "__clog");
+#endif
}
/* Search through a set of builtins and enable the mask bits.
diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h
index abeab5a..6a95465 100644
--- a/gcc/config/rs6000/xcoff.h
+++ b/gcc/config/rs6000/xcoff.h
@@ -56,6 +56,11 @@
#define DOLLARS_IN_IDENTIFIERS 0
+/* AIX .align pseudo-op accept value from 0 to 12, corresponding to
+ log base 2 of the alignment in bytes; 12 = 4096 bytes = 32768 bits. */
+
+#define MAX_OFILE_ALIGNMENT 32768
+
/* Return nonzero if this entry is to be written into the constant
pool in a special way. We do so if this is a SYMBOL_REF, LABEL_REF
or a CONST containing one of them. If -mfp-in-toc (the default),