[Lunar-commits] <moonbase-core> gcc-4.7.1
samuel verstraete
samuel.verstraete at gmail.com
Sat Aug 4 18:21:39 CEST 2012
commit b131e28137eb8f119e9d689c988b0dc4eb79064b
Author: samuel verstraete <samuel.verstraete at gmail.com>
Date: Sat, 04 Aug 2012 09:21:39 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/b131e28137eb8f119e9d689c988b0dc4eb79064b
gcc-4.7.1
---
compilers/gcc/DETAILS +3/-3
compilers/gcc/plugin.d/optimize-gcc_4_7.plugin +17/-17
2 files changed, 667 insertions (+), 667 deletions (-)
--- a/compilers/gcc/DETAILS
+++ b/compilers/gcc/DETAILS
@@ -1,16 +1,16 @@
MODULE=gcc
- VERSION=4.6.3
+ VERSION=4.7.1
SOURCE=$MODULE-$VERSION.tar.bz2
SOURCE2=$MODULE-4.5.0-python.patch.bz2
SOURCE_URL[0]=$GNU_URL/gcc/$MODULE-$VERSION
SOURCE_URL[1]=ftp://gcc.gnu.org/pub/gcc/releases/gcc-$VERSION
SOURCE_URL[2]=http://www.online-mirror.org/gcc/$MODULE-$VERSION
SOURCE2_URL=$PATCH_URL
- SOURCE_VFY=sha1:ce317ca5c8185b58bc9300182b534608c578637f
+ SOURCE_VFY=sha1:3ab74e63a8f2120b4f2c5557f5ffec6907337137
SOURCE2_VFY=sha1:7c1fc0b526b74cce301b85acee04011ed6e5aa5a
WEB_SITE=http://gcc.gnu.org
ENTERED=20020628
- UPDATED=20120301
+ UPDATED=20120804
SHORT="GNU compiler collection"
cat << EOF
@@ -1,16 +1,16 @@
#
-# gcc-4.6.x compiler optimizations plugin
+# gcc-4.7.x compiler optimizations plugin
#
-plugin_compiler_gcc_4_6_optimize()
+plugin_compiler_gcc_4_7_optimize()
{
- if [ "${LUNAR_COMPILER:-GCC_4_6}" != "GCC_4_6" ]; then
+ if [ "${LUNAR_COMPILER:-GCC_4_7}" != "GCC_4_7" ]; then
return 2
fi
- debug_msg "plugin_compiler_gcc_4_6_optimize($@)"
- if [ -f /etc/lunar/local/optimizations.GCC_4_6 ]; then
- . /etc/lunar/local/optimizations.GCC_4_6
+ debug_msg "plugin_compiler_gcc_4_7_optimize($@)"
+ if [ -f /etc/lunar/local/optimizations.GCC_4_7 ]; then
+ . /etc/lunar/local/optimizations.GCC_4_7
fi
# some local macro's
@@ -159,17 +159,17 @@ plugin_compiler_gcc_4_6_optimize()
}
-plugin_compiler_gcc_4_6_menu()
+plugin_compiler_gcc_4_7_menu()
{
# The main code calls this function WITHOUT $1 to find out which
# compiler optimization plugins exist. It then returns the plugin
# identifier which can be saved in $LUNAR_COMPILER as the user's
# choice for COMPILERS
if [ -z "$1" ]; then
- echo "GCC_4_6"
- echo "GNU C Compiler suite version 4.6.x"
+ echo "GCC_4_7"
+ echo "GNU C Compiler suite version 4.7.x"
return 2
- elif [ "$1" != "GCC_4_6" ]; then
+ elif [ "$1" != "GCC_4_7" ]; then
# we don't display anything when the user selected a
# different menu
return 2
@@ -198,7 +198,7 @@ plugin_compiler_gcc_4_6_menu()
save_optimizations()
{
debug_msg "save_optimizations($@)"
- cat >/etc/lunar/local/optimizations.GCC_4_6 <<EOF
+ cat >/etc/lunar/local/optimizations.GCC_4_7 <<EOF
CPU=$CPU
CPUTUNE=$CPUTUNE
BOPT=$BOPT
@@ -210,8 +210,8 @@ STACK=$STACK
EOF
}
- if [ -f /etc/lunar/local/optimizations.GCC_4_6 ]; then
- . /etc/lunar/local/optimizations.GCC_4_6
+ if [ -f /etc/lunar/local/optimizations.GCC_4_7 ]; then
+ . /etc/lunar/local/optimizations.GCC_4_7
fi
export IFS=$'\t\n'
@@ -221,7 +221,7 @@ EOF
while true; do
unset OPTIONS
- IS_DEFAULT=$([ `get_local_config LUNAR_COMPILER` == "GCC_4_6" ] && echo DEFAULT || get_local_config LUNAR_COMPILER)
+ IS_DEFAULT=$([ `get_local_config LUNAR_COMPILER` == "GCC_4_7" ] && echo DEFAULT || get_local_config LUNAR_COMPILER)
DEFAULT=${CHOICE:-safe}
CHOICE=`$DIALOG --title "$TITLE" --ok-label "Select" --cancel-label "Close" --default-item "$DEFAULT" --item-help --menu "" 0 0 0 $(
echo "default"
@@ -273,7 +273,7 @@ EOF
case $CHOICE in
default)
if [ "$IS_DEFAULT" != "DEFAULT" ]; then
- set_local_config LUNAR_COMPILER GCC_4_6
+ set_local_config LUNAR_COMPILER GCC_4_7
$DIALOG --msgbox "Gcc 4.6 is now the default compiler!" 6 60
fi
;;
@@ -659,6 +659,6 @@ EOF
}
-plugin_register BUILD_BUILD plugin_compiler_gcc_4_6_optimize
-plugin_register OPTIMIZE_MENU plugin_compiler_gcc_4_6_menu
+plugin_register BUILD_BUILD plugin_compiler_gcc_4_7_optimize
+plugin_register OPTIMIZE_MENU plugin_compiler_gcc_4_7_menu
More information about the Lunar-commits
mailing list