Skip to content

Commit

Permalink
We don't need ggc hack for bootstrapped targets
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
  • Loading branch information
Carsten Munk committed Dec 13, 2014
1 parent a414722 commit 00de878
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 24 deletions.
8 changes: 6 additions & 2 deletions cross-aarch64-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-armv5tel-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-armv6l-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-armv7hl-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-armv7l-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-armv7nhl-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-armv7thl-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-armv7tnhl-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-i486-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-mipsel-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
8 changes: 6 additions & 2 deletions cross-x86_64-gcc.spec
Expand Up @@ -666,13 +666,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down
3 changes: 3 additions & 0 deletions gcc.changes
@@ -1,3 +1,6 @@
* Sat Dec 13 2014 Carsten Munk <carsten.munk@jolla.com> - 4.8.3
- We don't need ggc hack for bootstrapped targets.

* Sat Dec 13 2014 Carsten Munk <carsten.munk@jolla.com> - 4.8.3
- Disables fixed point arthemetic, takes ages to build

Expand Down
8 changes: 6 additions & 2 deletions gcc.spec
Expand Up @@ -665,13 +665,17 @@ case "$OPT_FLAGS" in
esac

%ifarch mipsel
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Apply this in case you ever need to qemu bootstrap --cvm
#
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
%endif

%ifarch %arm
# gcc 45 fails to bootstrap itself otherwise on insn-attrtab.o
# issue is bad interaction between ggc and qemu
export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"
# Enable this only if --enable-bootstrap is active for QEMU --cvm
# export OPT_FLAGS="$OPT_FLAGS --param ggc-min-expand=0 --param ggc-min-heapsize=65536"

# gcc 45 segfaults on O2g.gch generation. (cc1plus)
%define ARM_EXTRA_CONFIGURE --disable-libstdcxx-pch
# for armv7hl reset the gcc specs
Expand Down

0 comments on commit 00de878

Please sign in to comment.