Commit Graph

146 Commits

Author SHA1 Message Date
jnemeth
bd07cf4a8f PR/48419 - Henning Petersen -- unbalanced parenthesis 2013-11-30 19:05:25 +00:00
martin
9e26225e44 Make warnings non-fatal on sparc64.
Warings reported upstream.
2013-11-29 14:51:36 +00:00
mrg
c8016f96cd fix definition of __GMP_CC. 2013-11-29 13:48:15 +00:00
mrg
3fd6c8d025 clean up __GMP_CC, GMP_MPARAM_H_SUGGEST and CONFIG_TOP_SRCDIR. 2013-11-29 13:26:16 +00:00
mrg
0aff01013b GMP 5.1.3 updates for armeb and earm. 2013-11-29 08:54:48 +00:00
mrg
e19c02daef GMP 5.1.3 files for earmeb and mips64el. 2013-11-29 08:10:04 +00:00
mrg
65705a8482 updates for GMP 5.1.3, and new build files for most platforms. 2013-11-29 08:03:41 +00:00
mrg
41ff5b3ae1 port forward our changes:
- allow working on thumb-missing platforms
- fix some minor issues
2013-11-29 08:02:28 +00:00
mrg
3f2a32320a merge GMP 5.1.3 (part 1.) 2013-11-29 07:57:10 +00:00
mrg
dab47db46b initial import GMP 5.1.3 sources. changes include:
fixes for:
- mpn_sbpi1_div_qr_sec and mpn_sbpi1_div_r_sec
- mpz_powm_ui
- AMD family 11h
- mpz_powm_sec and mpn_powm_sec
- ASSERT() fixes
- gcd, gcdext, and invert function fixes
- some PPC division operations
2013-11-29 07:49:47 +00:00
mrg
3119017743 find mpfr.h. 2013-11-28 14:21:31 +00:00
mrg
2d9724377a build fixes for MPFR 3.1.2. 2013-11-28 12:36:55 +00:00
mrg
ac86932595 merge MPFR 3.1.2. changes to moved srcs are already merged. 2013-11-28 12:35:03 +00:00
mrg
d59437c0bc initial import of MPFR 3.1.2. changes since 3.0.1:
- Bug fixes (see <http://www.mpfr.org/mpfr-3.1.1/#fixed> or ChangeLog file).
- Bug fixes (see <http://www.mpfr.org/mpfr-3.1.0/#fixed> or ChangeLog file).
- TLS support is now detected automatically. If TLS is supported, MPFR is
  built as thread safe by default. To disable TLS explicitly, configure
  MPFR with --disable-thread-safe.
- The mpfr_urandom and mpfr_urandomb functions now return identical values
  on processors with different word size (assuming the same random seed, and
  since the GMP random generator does not depend itself on the word size,
  cf http://gmplib.org/list-archives/gmp-devel/2010-September/001642.html).
- The mpfr_add_one_ulp and mpfr_sub_one_ulp macros (which are obsolete and
  no more documented) will be removed in a future release.
- Speed improvement for the mpfr_sqr and mpfr_div functions using Mulders'
  algorithm. As a consequence, other functions using those routines are
  also faster.
- Much faster formatted output (mpfr_printf, etc.) with %Rg and similar.
- New functions mpfr_buildopt_gmpinternals_p, mpfr_buildopt_tune_case,
  mpfr_frexp, mpfr_grandom and mpfr_z_sub.
- New divide-by-zero exception (flag) and associated functions.
- Internal change: the logging mechanism has been improved.
- Bug fixes, in particular a huge inefficiency in mpfr_exp (when the
  target precision is less than MPFR_EXP_THRESHOLD) on hard-to-round
  cases, which can take several minutes.
2013-11-28 12:30:54 +00:00
mrg
a21412c687 build files for mpc 1.0.1. 2013-11-28 10:57:30 +00:00
mrg
8fa80f2961 initial import of MPC 1.0.1 package. changes since 0.9:
Changes in version 1.0.1:
  - Switched to automake 1.11.6, see
    https://lists.gnu.org/archive/html/automake/2012-07/msg00023.html
  - #14669: Fixed extraction of CC from gmp.h
  - Fixed case of intermediate zero real or imaginary part in mpc_fma,
    found by hydra with GMP_CHECK_RANDOMIZE=1346362345

Changes in version 1.0:
  - First release as a GNU package
  - License change: LGPLv3+ for code, GFDLv1.3+ (with no invariant sections)
    for documentation
  - 100% of all lines are covered by tests
  - Functions renamed:
    mpc_mul_2exp to mpc_mul_2ui, mpc_div_2exp to mpc_div_2ui
  - 0^0, which returned (NaN,NaN) previously, now returns (1,+0)
  - Removed compatibility with K&R compilers, untestable due to lack of
    such compilers
  - New functions: mpc_log10, mpc_mul_2si, mpc_div_2si
  - Speed-ups:
    - mpc_fma
  - Bug fixes:
    - mpc_div and mpc_norm now return a value indicating the effective
      rounding direction, as the other functions
    - mpc_mul, mpc_sqr and mpc_norm now return correct results even if there
      are over- or underflows during the computation
    - mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
      infinite part and equals output variable is corrected
    - mpc_fr_sub: Wrong return value for imaginary part is corrected
2013-11-28 10:32:39 +00:00
skrll
8cb04b2cd3 Appease new gas. Already fixed upstream. 2013-09-30 12:30:51 +00:00
matt
2959ac0b5b Add dropped v 2013-08-20 00:20:55 +00:00
matt
0e6587832d always compile GMP and MPFR as ARM 2013-08-19 22:25:32 +00:00
matt
0d76fcf318 Use armv[4-7] to be consistend 2013-08-06 05:35:56 +00:00
matt
10ba3edce2 Use GMP_MACHINE_ARCH which is MACHINE_ARCH with arm substituted for armv[467]. 2013-08-05 01:46:57 +00:00
matt
6618efcaf4 If MACHINE_ARCH contains armv[467], use arm instead. 2013-08-04 23:37:54 +00:00
matt
3ab889c115 gmp, binutils, gcc, gdb configury for coldfire 2013-07-19 22:14:23 +00:00
matt
203bed342b Add a M5407_PATTERN 2013-07-19 17:31:49 +00:00
matt
784ea6305e Match m5407-*-* 2013-07-19 17:31:14 +00:00
matt
6261dc2045 Add m5407--netbsdelf* support 2013-07-19 17:07:28 +00:00
matt
d15ef1a9ae default to MACHINE_GNU_PLATFORM so that when run with nbmake-foo the right
thing happens
2013-07-18 22:40:58 +00:00
mrg
d4106c6e4f note that Makefile.netbsd-gmp can help with the running of configure. 2013-07-15 08:59:47 +00:00
skrll
d2e06ef9d4 Add earmhfeb libgmp files. 2013-05-08 05:42:17 +00:00
skrll
2bbf1686a1 Add libgmp files for earmeb. 2013-05-08 05:40:15 +00:00
matt
4f3ff322ae Use NETBSDSRCDIR. Use ?= when setting target so you can override from cmdline. 2013-02-05 02:54:01 +00:00
matt
cb9822ba41 mknative for earmhf 2013-02-05 02:51:14 +00:00
matt
9e4a740eba Understand netbsd*-*eabi* for an os 2013-02-04 02:45:28 +00:00
martin
90a8c98760 Build glue for ia64 2012-12-26 19:39:26 +00:00
cegger
f5330ee300 Always use extern __inline__ with gcc >= 4.2.
Fall back to prototypes on older gcc versions.

Fixes link errors (duplicate symbols) when mpfr's configure check for libgmp
2012-12-16 14:40:07 +00:00
drochner
6eb7501d2c collect common rules in the shared Makefile, this propagates the .OBJDIR
fix done for i386 last year to all other ports
2012-11-26 18:57:33 +00:00
joerg
7ad1c4e7c0 Appease shift vs substract warning for clang. 2012-10-27 06:55:54 +00:00
joerg
b38acf62c6 Decouple Clang from HAVE_GCC. 2012-08-10 16:10:29 +00:00
joerg
c14f2d4ef8 Deal with optional HAVE_GCC. 2012-08-10 16:05:26 +00:00
matt
8f9b9d1333 Add gmp configury from earm (copied from arm) 2012-08-05 18:27:13 +00:00
christos
edd104c76c PR/46704: Antti Kantee: Recognize tilera in config.guess 2012-07-19 19:34:26 +00:00
christos
7035527430 disable exact cpu override to fix cross-compiling on linux 2012-03-27 21:56:04 +00:00
mrg
2466239b54 remove references to my src/obj trees, and make a note about avoiding
this in the future / should automate it too.
2012-03-20 08:21:38 +00:00
mrg
21ce43ac51 makefile frontend to run gmp configure under nbmake-$MACHINE. 2011-10-30 01:50:32 +00:00
mrg
d986b3bb4c make sure to use powerpc64/elf.m4, not powerpc32/elf.m4 here! 2011-10-29 11:42:09 +00:00
mrg
83554ca40d now that ppc64 sort of builds, i can generate at least gmp configury.
thanks christos!
2011-10-29 09:16:54 +00:00
mrg
a2a54c3f32 allow LIBISPRIVATE to be overriden, and install everything again.
helpful for mknative-gcc.
2011-09-21 02:06:42 +00:00
christos
c3ffa13cb0 PR/45367: Grégoire Sutre: don't depend on m4-ccas and cpp-ccas to be
executable; invoke the shell to run them.
2011-09-14 16:35:22 +00:00
joerg
11b90aaf13 Requires -Wno-unused-value -Wno-tautological-compare when building with
clang.
2011-08-09 13:01:34 +00:00
mrg
3f11e25c49 build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc.  not convinced it is worth it.
2011-07-21 03:13:30 +00:00
tron
7b580b1338 Disable SSP warnings (not SSP itself) for this library as their are too
many source files with functions that use variable sized arrays.
2011-07-18 16:55:49 +00:00
mrg
c590ede942 make mips64 builds of gmp and mpfr work including compat libs. 2011-07-10 03:05:33 +00:00
mrg
1b7b730ff0 make these look more like the sparc/powerpc ones.
XXX: a big chunk of these Makefile.inc's should promoted to the
XXX: main Makefile.
2011-07-10 02:41:50 +00:00
mrg
4f6b39fb44 hint from scw: "bx" is a thumb instruction. add code to work with
non-thumb cpus.  now /usr/bin/cc on my shark actually runs properly
without crashing (but very very slowly.)
2011-07-09 15:00:08 +00:00
mrg
50d7346b7f XXX: like ppc, build sparc gmp files with -DPIC for now.
now /usr/bin/cc in a gcc 4.5.3 world works on a sparc.
2011-07-08 09:21:17 +00:00
drochner
bd5f274d5d ignore error of "rmdir", to let "make clean" succeed in an already
clean directory
2011-07-07 17:55:26 +00:00
mrg
bdf189d888 for now, compile all the powerpc asm files -DPIC. fix this properly by
either compiling the dynamic version in a other dir separately, or call
gcc on the fly with the right arguments without generating .S file at all.
2011-07-07 08:02:52 +00:00
mrg
dc1519dda0 remove CONFIG_TOP_SRCDIR definitions provided by our Makefile. 2011-07-07 06:30:02 +00:00
mrg
c9663b8648 gmp files for alpha and hppa. 2011-07-07 02:06:32 +00:00
drochner
d2fc1968ed update mpfr to PL4 (minor fixes) 2011-07-06 19:53:24 +00:00
drochner
13669b2e41 cleanup:
-fix for OBJDIR
-link mpfr against gmp, and mpc against gmp+mpfr
-clean up generated files
2011-07-06 19:52:05 +00:00
mrg
b0c66baaac support LIBMPFR_MACHINE_ARCH, for compat.
expand the list of platforms here significantly.

XXX: someone who knows FP well across our platforms should have a look
XXX: at this list and fix any errors / omissions i've made.
2011-07-04 12:38:29 +00:00
mrg
77c9e6a6cb don't force LIBGMP_MACHINE_ARCH:=${MLIBDIR}. 2011-07-04 12:00:15 +00:00
mrg
5338c4af8c clean up another generator. 2011-07-03 15:25:11 +00:00
mrg
0520daf5cd new files to build mips64 gmp 2011-07-03 13:43:23 +00:00
mrg
7761b1c39b gmp native files for mipsel/mipseb. 2011-07-03 11:41:30 +00:00
mrg
70931e1e5a re-generate (add mpn_udiv_w_sdiv prototype.) 2011-07-03 07:26:21 +00:00
mrg
3f45d2627b (re-)generate mknative-gcc files for many platforms.
(re-)generate the gmp files for many platforms.
2011-07-03 06:52:14 +00:00
mrg
5ee4b0f8d3 clean up the created .s files. 2011-07-03 06:43:16 +00:00
matt
81158698ed Switch to using the secure-plt method of accessing the global offset table. 2011-07-03 03:30:19 +00:00
mrg
31ec5d717b make this build on vax.
XXX:  need to check this for platforms besides x86 and sparc64 to see
XXX:  if HAVE_LDOUBLE_IEEE_EXT_LITTLE or friends should be defined.
2011-07-02 14:08:45 +00:00
mrg
f1d1b82795 provide one of the ugly proto-prototypes for mpn_udiv_w_sdiv(). 2011-07-02 14:05:03 +00:00
mrg
d4418888f0 remove a stale XXX comment. 2011-07-02 14:04:30 +00:00
mrg
23303f4ab4 make this mostly appear to work by using the C versions for now. 2011-07-02 14:04:14 +00:00
mrg
73c2c27d52 also match .s and .S files for asm sources. 2011-07-02 14:03:20 +00:00
mrg
59dd8db7b7 gmp files for m68k. seems to build ok, at least enough to run mknative-gcc. 2011-07-02 13:43:05 +00:00
mrg
5eb47bd6a8 initial versions of these for vax. not 100% working yet. 2011-07-02 13:36:57 +00:00
mrg
0ed964cf37 split two sub-make targets into two separate make calls.
avoids an annoying -jN install problem.  idea from dh.  thanks!
2011-07-02 13:26:39 +00:00
mrg
43ff8cfa90 - add support for building GMP for powerpc, sparc, arm and armeb.
- XXX armeb files modified from arm, not based upon generated ones.
2011-07-01 01:51:02 +00:00
mrg
ef5d539c71 remove hard-coded CONFIG_TOP_SRCDIR macro definition 2011-07-01 01:49:42 +00:00
mrg
b464704f46 use C versions of various sources for now. there's an m4 problem that
fails to properly deal with defframe() macro being defined.
2011-07-01 01:49:18 +00:00
mrg
61fbc9498c XXX: patch these files to let them work with src/compat style builds 2011-07-01 01:48:02 +00:00
mrg
95be9d4b80 - add support for src/compat builds
- use .include not .sinclude for the arch Makefile.inc file
- clean up
2011-07-01 01:30:16 +00:00
mrg
65ffc105d5 enable lint.
fix the 32 / 64 bit problem.
2011-06-29 08:09:43 +00:00
mrg
233ed76519 Makefile and other snippets for gmp on i386.
XXX: this uses the LCD i486 parts, which may not be the fastest
2011-06-29 08:06:47 +00:00
mrg
6df884f582 add support for C files that are linked to different names for building. 2011-06-29 05:18:32 +00:00
mrg
fa32e7c8ca add gmp generated files for sparc64 2011-06-29 02:56:24 +00:00
simonb
be40ac2f1f Update date (ok phone). 2011-06-29 01:38:27 +00:00
mrg
d186a20caf add a README to describe how to port GMP build framework, and a script
to parse the GMP ./configure output and generate part of a makefile.

move all the mpn build stuff into the MD part of the framework, and
update the amd64 port to build all the parts it should.

XXX: amd64 build fails to preprocess redc_1.asm gcd_1.asm mod_1_4.asm,
XXX: so we're using the generic C versions for now.
2011-06-24 03:50:23 +00:00
mrg
b9124e5a28 make this build on amd64.
XXX: need to confirm that all the objects are built but this is
XXX: enough to make GCC happy.
2011-06-23 12:09:30 +00:00
mrg
eecc4c450e don't try to declare alloca() (wrongly) on netbsd. 2011-06-23 12:07:41 +00:00
mrg
0e6b883dda fix this to actually build and seem to work. 2011-06-23 04:38:36 +00:00
mrg
b7268f61f6 build stuff for mpc, mpfr and gmp. mpfr is mine, the others are from chuq.
XXX: i don't think gmp works yet.  it wants multiple files with the same
basename but in different subdirs to link into one library...
2011-06-21 04:23:56 +00:00
mrg
0c72853741 add some "NetBSD_Disabled*" rules to avoid r/o src tree build issues. 2011-06-21 04:03:33 +00:00
mrg
51c586b89d initial import of GMP 5.0.2.
GNU MP is a library for arbitrary precision arithmetic, operating on signed
integers, rational numbers, and floating point numbers.  It has a rich set
of functions, and the functions have a regular interface.

GMP is necessary for GCC >= 4.2.
2011-06-20 05:54:29 +00:00
mrg
efee5258bc initial import of MPRF 3.0.1.
The MPFR library is a C library for multiple-precision floating-point
computations with exact rounding (also called correct rounding).  It is
based on the GMP multiple-precision library and should replace the MPF
class in further releases of GMP.

GCC >= 4.2 requires MPFR.
2011-06-20 05:53:01 +00:00