patches/gmp/5.0.1/100-fix-tests-ABI-long-long.patch
author Cody Schafer <dev@codyps.com>
Fri May 09 19:13:49 2014 -0700 (2014-05-09)
changeset 3312 4876ff97e039
parent 1873 4477403726db
permissions -rw-r--r--
cc/gcc: allow CC_EXTRA_CONFIG_ARRAY on baremetal

The final bare-metal compiler is built using the core backend.
Currently the core uses the CC_CORE_EXTRA_CONFIG_ARRAY variable.

While this works as supposed to, this can leave the user puzzled
in the menuconfig, since all he can see is the core options, not
the final options.

Only show the core options if any of the core passes are needed,
and use the final options in the core-backend if we're issuing
the bare-metal compiler.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: hide core options if no core pass needed;
use final option in core backend if issuing the bare-metal compiler]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <22181e546ba746202489.1399688067@localhost>
Patchwork-Id: 347586
yann@1879
     1
From: http://gmplib.org:8000/gmp-5.0/raw-rev/794410151f5f
yann@1879
     2
yann@1879
     3
Tweaked to remove the hunk in the Changelog, as it did not apply cleanly
yann@1879
     4
( and who needs Changelogs? ;-) )
yann@1873
     5
yann@1873
     6
# HG changeset patch
yann@1873
     7
# User Torbjorn Granlund <tege@gmplib.org>
yann@1873
     8
# Date 1267122532 -3600
yann@1873
     9
# Node ID 794410151f5f966bcb5c3489b6441614990efe7c
yann@1873
    10
# Parent  948660e2e56d9cfaae035082b8fd473985505fb6
yann@1873
    11
Fix a test case to work for long long limbs.
yann@1873
    12
yann@1873
    13
diff -r 948660e2e56d -r 794410151f5f tests/mpz/t-perfpow.c
yann@1873
    14
--- a/tests/mpz/t-perfpow.c	Thu Feb 25 16:08:21 2010 +0100
yann@1873
    15
+++ b/tests/mpz/t-perfpow.c	Thu Feb 25 19:28:52 2010 +0100
yann@1873
    16
@@ -2,7 +2,7 @@
yann@1873
    17
 
yann@1873
    18
    Contributed to the GNU project by Torbjorn Granlund and Martin Boij.
yann@1873
    19
 
yann@1873
    20
-Copyright 2008, 2009 Free Software Foundation, Inc.
yann@1873
    21
+Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
yann@1873
    22
 
yann@1873
    23
 This file is part of the GNU MP Library.
yann@1873
    24
 
yann@1873
    25
@@ -109,7 +109,8 @@
yann@1873
    26
 {
yann@1873
    27
   mpz_t n, np, temp, primes[NRP];
yann@1873
    28
   int i, j, k, unique, destroy, res;
yann@1873
    29
-  unsigned long int nrprimes, primebits, g, exp[NRP], e;
yann@1873
    30
+  unsigned long int nrprimes, primebits;
yann@1873
    31
+  mp_limb_t g, exp[NRP], e;
yann@1873
    32
   gmp_randstate_ptr rands;
yann@1873
    33
 
yann@1873
    34
   rands = RANDS;
yann@1873
    35