pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/cwrappers/files/bin Drop properly drop -mt an...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b7174154471c
branches:  trunk
changeset: 648753:b7174154471c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Mar 18 14:54:53 2015 +0000

description:
Drop properly drop -mt and generate.

diffstat:

 pkgtools/cwrappers/files/bin/transform-gcc-rules |   3 +-
 pkgtools/cwrappers/files/bin/transform-gcc.c     |  52 +++++++++++------------
 2 files changed, 26 insertions(+), 29 deletions(-)

diffs (88 lines):

diff -r 6996c4d17c3e -r b7174154471c pkgtools/cwrappers/files/bin/transform-gcc-rules
--- a/pkgtools/cwrappers/files/bin/transform-gcc-rules  Wed Mar 18 14:02:15 2015 +0000
+++ b/pkgtools/cwrappers/files/bin/transform-gcc-rules  Wed Mar 18 14:54:53 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-gcc-rules,v 1.1 2014/09/17 12:40:56 joerg Exp $
+# $NetBSD: transform-gcc-rules,v 1.2 2015/03/18 14:54:53 joerg Exp $
 #
 # Copyright (c) 2009 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
 # All rights reserved.
@@ -167,6 +167,5 @@
 -kpic ==> -fPIC
 -KPIC ==> -fPIC
 -kPIC ==> -fPIC
--mt ==> -threads
 -64 ==> -m64
 -* ==!
diff -r 6996c4d17c3e -r b7174154471c pkgtools/cwrappers/files/bin/transform-gcc.c
--- a/pkgtools/cwrappers/files/bin/transform-gcc.c      Wed Mar 18 14:02:15 2015 +0000
+++ b/pkgtools/cwrappers/files/bin/transform-gcc.c      Wed Mar 18 14:54:53 2015 +0000
@@ -3,35 +3,34 @@
 static uint32_t
 transform_cc_fixed(const void * __restrict key, size_t keylen)
 {
-       static const uint8_t g[221] = {
-           0x00, 0x6b, 0x00, 0x3d, 0x12, 0x21, 0x67, 0x16, 0x0d, 0x0b,
-           0x00, 0x1e, 0x00, 0x45, 0x0a, 0x0b, 0x00, 0x52, 0x00, 0x00,
-           0x00, 0x4a, 0x00, 0x2a, 0x00, 0x00, 0x5c, 0x2a, 0x45, 0x68,
-           0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x2a,
-           0x12, 0x57, 0x00, 0x43, 0x2f, 0x29, 0x00, 0x00, 0x00, 0x38,
-           0x67, 0x00, 0x00, 0x00, 0x00, 0x36, 0x50, 0x04, 0x00, 0x08,
-           0x32, 0x52, 0x00, 0x00, 0x3e, 0x67, 0x1f, 0x45, 0x00, 0x0f,
-           0x5b, 0x00, 0x00, 0x00, 0x00, 0x50, 0x58, 0x62, 0x00, 0x00,
-           0x17, 0x6b, 0x29, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x46, 0x00,
-           0x69, 0x00, 0x47, 0x19, 0x27, 0x00, 0x00, 0x00, 0x00, 0x2e,
-           0x00, 0x00, 0x2e, 0x00, 0x00, 0x39, 0x19, 0x68, 0x64, 0x00,
-           0x36, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x40, 0x00, 0x06, 0x43,
-           0x00, 0x00, 0x00, 0x6b, 0x00, 0x5f, 0x3f, 0x3c, 0x00, 0x51,
-           0x00, 0x00, 0x00, 0x39, 0x00, 0x04, 0x00, 0x41, 0x3e, 0x5e,
-           0x00, 0x00, 0x00, 0x56, 0x4b, 0x00, 0x17, 0x00, 0x00, 0x00,
-           0x47, 0x40, 0x00, 0x00, 0x00, 0x11, 0x0e, 0x00, 0x59, 0x33,
-           0x3f, 0x52, 0x00, 0x18, 0x42, 0x14, 0x00, 0x00, 0x00, 0x00,
-           0x18, 0x00, 0x00, 0x00, 0x68, 0x6b, 0x00, 0x00, 0x00, 0x2c,
-           0x1a, 0x00, 0x12, 0x00, 0x31, 0x00, 0x00, 0x16, 0x4a, 0x00,
-           0x00, 0x1a, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x3a, 0x00,
-           0x00, 0x00, 0x54, 0x4b, 0x00, 0x4c, 0x53, 0x1c, 0x00, 0x00,
-           0x00, 0x6d, 0x00, 0x00, 0x6b, 0x24, 0x00, 0x00, 0x22, 0x00,
-           0x00,
+       static const uint8_t g[219] = {
+           0x00, 0x00, 0x00, 0x14, 0x00, 0x35, 0x49, 0x15, 0x53, 0x45,
+           0x56, 0x00, 0x12, 0x1b, 0x40, 0x00, 0x00, 0x3b, 0x3a, 0x00,
+           0x00, 0x50, 0x00, 0x00, 0x06, 0x00, 0x18, 0x00, 0x00, 0x00,
+           0x00, 0x17, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+           0x62, 0x4c, 0x00, 0x00, 0x1f, 0x3c, 0x00, 0x3d, 0x00, 0x00,
+           0x15, 0x00, 0x03, 0x00, 0x1c, 0x10, 0x00, 0x00, 0x4a, 0x00,
+           0x33, 0x00, 0x00, 0x00, 0x50, 0x00, 0x15, 0x00, 0x00, 0x00,
+           0x24, 0x27, 0x3f, 0x24, 0x46, 0x00, 0x6a, 0x00, 0x00, 0x32,
+           0x66, 0x00, 0x00, 0x48, 0x60, 0x01, 0x6b, 0x00, 0x28, 0x10,
+           0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x20, 0x4c, 0x33, 0x00,
+           0x32, 0x61, 0x08, 0x54, 0x00, 0x00, 0x48, 0x00, 0x4c, 0x56,
+           0x00, 0x5f, 0x00, 0x00, 0x00, 0x5b, 0x55, 0x64, 0x68, 0x2f,
+           0x00, 0x5a, 0x64, 0x51, 0x00, 0x00, 0x00, 0x26, 0x4e, 0x00,
+           0x00, 0x0e, 0x00, 0x00, 0x00, 0x6c, 0x13, 0x1c, 0x00, 0x00,
+           0x0c, 0x00, 0x00, 0x09, 0x2e, 0x00, 0x0d, 0x00, 0x00, 0x1e,
+           0x12, 0x00, 0x23, 0x3e, 0x58, 0x00, 0x00, 0x36, 0x00, 0x0f,
+           0x00, 0x0e, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x29, 0x30,
+           0x00, 0x4f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x00,
+           0x00, 0x13, 0x00, 0x00, 0x25, 0x65, 0x00, 0x00, 0x31, 0x00,
+           0x00, 0x32, 0x29, 0x22, 0x54, 0x41, 0x14, 0x00, 0x00, 0x00,
+           0x00, 0x5e, 0x05, 0x38, 0x2e, 0x00, 0x00, 0x00, 0x38, 0x5f,
+           0x43, 0x00, 0x1e, 0x44, 0x26, 0x00, 0x00, 0x4e, 0x19,
        };
        uint32_t h[3];
 
-       mi_vector_hash(key, keylen, 0xcee3bdd8U, h);
-       return (g[h[0] % 221] + g[h[1] % 221]) % 110;
+       mi_vector_hash(key, keylen, 0x507ed7abU, h);
+       return (g[h[0] % 219] + g[h[1] % 219]) % 109;
 }
 
 static struct transformation fixed_transforms[] = {
@@ -143,7 +142,6 @@
        { "-kpic", 5, transform_replace, "-fPIC" },
        { "-KPIC", 5, transform_replace, "-fPIC" },
        { "-kPIC", 5, transform_replace, "-fPIC" },
-       { "-mt", 3, transform_discard, NULL },
        { "-64", 3, transform_replace, "-m64" },
 };
 



Home | Main Index | Thread Index | Old Index