aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>2007-02-04 11:30:17 +0100
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2007-02-04 10:30:17 +0000
commit3075a4cd0815b333358a14fd16d326efc5267a8d (patch)
tree825af2fb0d37366d20fb14c3209321c62c2f8dd8 /libgfortran
parentb10fc6f54a06abc88d4910128602e3d88aa31bff (diff)
downloadgcc-3075a4cd0815b333358a14fd16d326efc5267a8d.zip
gcc-3075a4cd0815b333358a14fd16d326efc5267a8d.tar.gz
gcc-3075a4cd0815b333358a14fd16d326efc5267a8d.tar.bz2
re PR libfortran/30007 (libgfortran doesn't build for sh-elf)
PR libfortran/30007 * libgfortran.h: Do not prefix symbol name with __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))). From-SVN: r121569
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/libgfortran.h8
2 files changed, 10 insertions, 4 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 4f5eed4..48b7e94 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
+
+ PR libfortran/30007
+ * libgfortran.h: Do not prefix symbol name with
+ __USER_LABEL_PREFIX__ when used in __attribute__((__alias__(...))).
+
2007-02-02 Paul Thomas <pault@gcc.gnu.org>
PR fortran/30284
diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h
index af53e480..2f7a539 100644
--- a/libgfortran/libgfortran.h
+++ b/libgfortran/libgfortran.h
@@ -126,10 +126,10 @@ typedef off_t gfc_offset;
# define export_proto(x) sym_rename(x, PREFIX(x))
# define export_proto_np(x) extern char swallow_semicolon
# define iexport_proto(x) internal_proto(x)
-# define iexport(x) iexport1(x, __USER_LABEL_PREFIX__, IPREFIX(x))
-# define iexport1(x,p,y) iexport2(x,p,y)
-# define iexport2(x,p,y) \
- extern __typeof(x) PREFIX(x) __attribute__((__alias__(#p #y)))
+# define iexport(x) iexport1(x, IPREFIX(x))
+# define iexport1(x,y) iexport2(x,y)
+# define iexport2(x,y) \
+ extern __typeof(x) PREFIX(x) __attribute__((__alias__(#y)))
/* ??? We're not currently building a dll, and it's wrong to add dllexport
to objects going into a static library archive. */
#elif 0 && defined(HAVE_ATTRIBUTE_DLLEXPORT)