[Gmp-commit] /var/hg/gmp: 2 new changesets
mercurial at gmplib.org
mercurial at gmplib.org
Mon Oct 13 19:35:48 UTC 2014
details: /var/hg/gmp/rev/47bfc5ebcd3c
changeset: 16501:47bfc5ebcd3c
user: Torbjorn Granlund <torbjorng at google.com>
date: Mon Oct 13 21:35:14 2014 +0200
description:
(freebsd hacked gcc): Test for crash-prone FreeBSD gcc.
details: /var/hg/gmp/rev/bfc8adc7cdfe
changeset: 16502:bfc8adc7cdfe
user: Torbjorn Granlund <torbjorng at google.com>
date: Mon Oct 13 21:35:45 2014 +0200
description:
ChangeLog
diffstat:
ChangeLog | 8 ++++++++
acinclude.m4 | 14 ++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)
diffs (39 lines):
diff -r 9f088d0b797b -r bfc8adc7cdfe ChangeLog
--- a/ChangeLog Fri Oct 03 22:53:11 2014 +0200
+++ b/ChangeLog Mon Oct 13 21:35:45 2014 +0200
@@ -1,3 +1,11 @@
+2014-10-13 Torbjörn Granlund <torbjorng at google.com>
+
+ * acinclude.m4 (freebsd hacked gcc): Test for crash-prone FreeBSD gcc.
+
+2014-10-03 Peter Breitenlohner <peb at mppmu.mpg.de>
+
+ * mpn/generic/sec_tabselect.c: Adjust type to silence compiler.
+
2014-10-01 Torbjörn Granlund <torbjorng at google.com>
* All Makefile.am: INCLUDES => AM_CPPFLAGS.
diff -r 9f088d0b797b -r bfc8adc7cdfe acinclude.m4
--- a/acinclude.m4 Fri Oct 03 22:53:11 2014 +0200
+++ b/acinclude.m4 Mon Oct 13 21:35:45 2014 +0200
@@ -634,6 +634,20 @@
#endif
])
+GMP_PROG_CC_WORKS_PART([$1], [freebsd hacked gcc],
+[/* Provokes an ICE on i386-freebsd with the FreeBSD-hacked gcc, under
+ -O2 -march=amdfam10. We call helper functions here "open" and "close" in
+ order for linking to succeed. */
+
+#if defined (__GNUC__) && ! defined (__cplusplus)
+int open(int*,int*,int);void*close(int);void g(int*rp,int*up,int un){
+__builtin_expect(un<=0x7f00,1)?__builtin_alloca(un):close(un);if(__builtin_clzl
+(up[un])){open(rp,up,un);while(1){if(rp[un-1]!=0)break;un--;}}}
+#else
+int dummy;
+#endif
+])
+
GMP_PROG_CC_WORKS_PART_MAIN([$1], [mpn_lshift_com optimization],
[/* The following is mis-compiled by HP ia-64 cc version
cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
More information about the gmp-commit
mailing list