patches/glibc/ports-2.10.1/440-alpha-cache-shape.patch
author |
Anthony Foiani <anthony.foiani@gmail.com> |
|
Thu May 19 23:06:16 2011 +0200 (2011-05-19) |
changeset 2461 |
ec30b191f0e3 |
parent 1625 |
fde082da9813
|
permissions |
-rw-r--r-- |
complibs/ppl: build only C and C++ interfaces for PPL
By default, PPL wants to build interfaces for any of a variety of
langauges it finds on the local host (python, java, possibly perl, also
more esoteric languages such as ocaml and prolog).
These extra interfaces can double the compile time for the library. For
single-process builds, I found a savings of more than 40%:
default / j1: 716s total, 143.2s avg, 0.52s stdev
just_c / j1: 406s total, 81.2s avg, 0.33s stdev
just_c_cpp / j1: 413s total, 82.6s avg, 0.22s stdev
And for multi-process builds, it approached 50%:
default / j4: 625s total, 125.0s avg, 0.57s stdev
just_c / j4: 338s total, 67.6s avg, 1.25s stdev
just_c_cpp / j4: 327s total, 65.4s avg, 0.36s stdev
Since the PPL we build within ct-ng is only used by GCC, we only need to
build the C and C++ interfaces.
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
yann@1625
|
1 |
older verisons of glibc would build dl-sysdep as shared-only and dl-support as
|
yann@1625
|
2 |
static-only. alpha hooks in a cache variable via dl-auxv.h. newer versions of
|
yann@1625
|
3 |
glibc build dl-sysdep as both shared and static which means we now have symbol
|
yann@1625
|
4 |
duplication for static builds with dl-sysdep and dl-support. since dl-sysdep
|
yann@1625
|
5 |
is both shared/static, there is no point in hooking dl-support anymore, so we
|
yann@1625
|
6 |
can punt it.
|
yann@1625
|
7 |
|
yann@1625
|
8 |
diff -durN glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/dl-support.c glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/dl-support.c
|
yann@1625
|
9 |
--- glibc-2.10.1.orig/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/dl-support.c 2009-05-16 10:36:20.000000000 +0200
|
yann@1625
|
10 |
+++ glibc-2.10.1/glibc-ports-2.10.1/sysdeps/unix/sysv/linux/alpha/dl-support.c 2009-11-13 00:50:53.000000000 +0100
|
yann@1655
|
11 |
@@ -1,2 +1,1 @@
|
yann@1625
|
12 |
-#include "dl-auxv.h"
|
yann@1655
|
13 |
#include <elf/dl-support.c>
|