Changeset 36155


Ignore:
Timestamp:
2013-04-02T18:00:35+02:00 (5 years ago)
Author:
florian
Message:

toolchain/gcc: add support for GCC 4.8.0

Signed-off-by: Florian Fainelli <florian@…>

Location:
trunk/toolchain/gcc
Files:
1 added
3 edited
4 copied

Legend:

Unmodified
Added
Removed
  • trunk/toolchain/gcc/Config.in

    r36149 r36155  
    2323        config GCC_VERSION_4_7_LINARO 
    2424                bool "gcc 4.7.x with Linaro enhancements" 
     25 
     26        config GCC_VERSION_4_8_0 
     27                bool "gcc 4.8.0" 
    2528 
    2629endchoice 
  • trunk/toolchain/gcc/Config.version

    r36149 r36155  
    1919        default "4.6-linaro"    if GCC_VERSION_4_6_LINARO 
    2020        default "4.7-linaro"    if GCC_VERSION_4_7_LINARO 
     21        default "4.8.0"     if GCC_VERSION_4_8_0 
     22        default "llvm"      if GCC_VERSION_LLVM 
    2123        default "4.6-linaro" 
    2224 
     
    3335        default y       if (GCC_VERSION_4_7_2 || GCC_VERSION_4_7_LINARO) 
    3436 
     37config GCC_VERSION_4_8 
     38        bool 
     39        default y       if GCC_VERSION_4_8_0 
     40 
    3541if !TOOLCHAINOPTS 
    3642 
  • trunk/toolchain/gcc/common.mk

    r36154 r36155  
    5555  ifeq ($(PKG_VERSION),4.7.2) 
    5656    PKG_MD5SUM:=cc308a0891e778cfda7a151ab8a6e762 
     57  endif 
     58  ifeq ($(PKG_VERSION),4.8.0) 
     59    PKG_MD5SUM:=e6040024eb9e761c3bea348d1fa5abb0 
    5760  endif 
    5861endif 
  • trunk/toolchain/gcc/patches/4.8.0/010-documentation.patch

    r36154 r36155  
    11--- a/gcc/Makefile.in 
    22+++ b/gcc/Makefile.in 
    3 @@ -4251,18 +4251,10 @@ 
     3@@ -4326,18 +4326,10 @@ doc/gcc.info: $(TEXI_GCC_FILES) 
    44 doc/gccint.info: $(TEXI_GCCINT_FILES) 
    55 doc/cppinternals.info: $(TEXI_CPPINT_FILES) 
  • trunk/toolchain/gcc/patches/4.8.0/200-musl.patch

    r36154 r36155  
    11--- a/gcc/config.gcc 
    22+++ b/gcc/config.gcc 
    3 @@ -529,7 +529,7 @@ case ${target} in 
     3@@ -549,7 +549,7 @@ case ${target} in 
    44 esac 
    55  
     
    1010 # Common parts for widely ported systems. 
    1111 case ${target} in 
    12 @@ -632,6 +632,9 @@ case ${target} in 
     12@@ -652,6 +652,9 @@ case ${target} in 
    1313     *-*-*uclibc*) 
    1414       tm_defines="$tm_defines DEFAULT_LIBC=LIBC_UCLIBC" 
     
    2020       tm_defines="$tm_defines DEFAULT_LIBC=LIBC_GLIBC" 
    2121       ;; 
    22 @@ -1755,6 +1758,7 @@ microblaze*-linux*) 
    23         tm_file="${tm_file} dbxelf.h gnu-user.h linux.h microblaze/linux.h" 
    24         c_target_objs="${c_target_objs} microblaze-c.o" 
    25         cxx_target_objs="${cxx_target_objs} microblaze-c.o" 
    26 +        tmake_file="${tmake_file} microblaze/t-microblaze" 
    27         ;; 
    28  microblaze*-*-rtems*) 
    29         tm_file="${tm_file} dbxelf.h" 
    3022--- a/gcc/config/arm/linux-eabi.h 
    3123+++ b/gcc/config/arm/linux-eabi.h 
    32 @@ -78,6 +78,10 @@ 
     24@@ -77,6 +77,10 @@ 
    3325     %{mfloat-abi=soft*:" GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "} \ 
    3426     %{!mfloat-abi=*:" GLIBC_DYNAMIC_LINKER_DEFAULT "}" 
     
    4335--- a/gcc/config/i386/linux.h 
    4436+++ b/gcc/config/i386/linux.h 
    45 @@ -22,3 +22,4 @@ along with GCC; see the file COPYING3. 
     37@@ -21,3 +21,4 @@ along with GCC; see the file COPYING3. 
    4638  
    4739 #define GNU_USER_LINK_EMULATION "elf_i386" 
     
    5042--- a/gcc/config/i386/linux64.h 
    5143+++ b/gcc/config/i386/linux64.h 
    52 @@ -31,3 +31,7 @@ see the files COPYING3 and COPYING.RUNTI 
     44@@ -30,3 +30,7 @@ see the files COPYING3 and COPYING.RUNTI 
    5345 #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2" 
    5446 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2" 
     
    6052--- a/gcc/config/linux.h 
    6153+++ b/gcc/config/linux.h 
    62 @@ -33,10 +33,12 @@ see the files COPYING3 and COPYING.RUNTI 
     54@@ -32,10 +32,12 @@ see the files COPYING3 and COPYING.RUNTI 
    6355 #define OPTION_GLIBC  (DEFAULT_LIBC == LIBC_GLIBC) 
    6456 #define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC) 
     
    7365  
    7466 #define GNU_USER_TARGET_OS_CPP_BUILTINS()                      \ 
    75 @@ -54,18 +56,21 @@ see the files COPYING3 and COPYING.RUNTI 
     67@@ -53,18 +55,21 @@ see the files COPYING3 and COPYING.RUNTI 
    7668    uClibc or Bionic is the default C library and whether 
    7769    -muclibc or -mglibc or -mbionic has been passed to change the default.  */ 
     
    10395 #error "Unsupported DEFAULT_LIBC" 
    10496 #endif /* DEFAULT_LIBC */ 
    105 @@ -85,16 +90,16 @@ see the files COPYING3 and COPYING.RUNTI 
     97@@ -84,16 +89,16 @@ see the files COPYING3 and COPYING.RUNTI 
    10698  
    10799 #define GNU_USER_DYNAMIC_LINKER                                                \ 
     
    136128--- a/gcc/config/mips/linux.h 
    137129+++ b/gcc/config/mips/linux.h 
    138 @@ -19,3 +19,5 @@ along with GCC; see the file COPYING3. 
     130@@ -18,3 +18,5 @@ along with GCC; see the file COPYING3. 
    139131 <http://www.gnu.org/licenses/>.  */ 
    140132  
     
    144136--- a/gcc/config/rs6000/linux64.h 
    145137+++ b/gcc/config/rs6000/linux64.h 
    146 @@ -362,17 +362,21 @@ extern int dot_symbols; 
     138@@ -364,17 +364,21 @@ extern int dot_symbols; 
    147139 #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1" 
    148140 #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0" 
     
    172164--- a/gcc/config/rs6000/sysv4.h 
    173165+++ b/gcc/config/rs6000/sysv4.h 
    174 @@ -804,15 +804,18 @@ extern int fixuplabelno; 
     166@@ -789,15 +789,18 @@ extern int fixuplabelno; 
    175167  
    176168 #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1" 
     
    196188--- a/gcc/ginclude/stddef.h 
    197189+++ b/gcc/ginclude/stddef.h 
    198 @@ -184,6 +184,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; 
     190@@ -181,6 +181,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; 
    199191 #ifndef _GCC_SIZE_T 
    200192 #ifndef _SIZET_ 
     
    204196 #define __SIZE_T__     /* Cray Unicos/Mk */ 
    205197 #define _SIZE_T 
    206 @@ -200,6 +201,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; 
     198@@ -197,6 +198,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; 
    207199 #define ___int_size_t_h 
    208200 #define _GCC_SIZE_T 
     
    212204   || defined(__FreeBSD_kernel__) 
    213205 /* __size_t is a typedef on FreeBSD 5, must not trash it. */ 
    214 @@ -215,6 +217,7 @@ typedef __SIZE_TYPE__ size_t; 
     206@@ -214,6 +216,7 @@ typedef __SIZE_TYPE__ size_t; 
    215207 typedef long ssize_t; 
    216208 #endif /* __BEOS__ */ 
     
    278270--- a/libstdc++-v3/configure.host 
    279271+++ b/libstdc++-v3/configure.host 
    280 @@ -246,6 +246,13 @@ case "${host_os}" in 
     272@@ -264,6 +264,13 @@ case "${host_os}" in 
    281273     os_include_dir="os/bsd/freebsd" 
    282274     ;; 
     
    292284       os_include_dir="os/uclibc" 
    293285     elif [ "$bionic" = "yes" ]; then 
    294 @@ -254,6 +261,9 @@ case "${host_os}" in 
     286@@ -272,6 +279,9 @@ case "${host_os}" in 
    295287       os_include_dir="os/gnu-linux" 
    296288     fi 
     
    304296--- a/gcc/config/mips/linux64.h 
    305297+++ b/gcc/config/mips/linux64.h 
    306 @@ -28,6 +28,9 @@ along with GCC; see the file COPYING3. 
     298@@ -27,6 +27,9 @@ along with GCC; see the file COPYING3. 
    307299 #define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1" 
    308300 #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0" 
  • trunk/toolchain/gcc/patches/4.8.0/910-mbsd_multi.patch

    r36154 r36155  
    2020--- a/gcc/c-family/c-opts.c 
    2121+++ b/gcc/c-family/c-opts.c 
    22 @@ -108,6 +108,9 @@ static size_t deferred_count; 
    23  /* Number of deferred options scanned for -include.  */ 
    24  static size_t include_cursor; 
     22@@ -104,6 +104,9 @@ static size_t include_cursor; 
     23 /* Whether any standard preincluded header has been preincluded.  */ 
     24 static bool done_preinclude; 
    2525  
    2626+/* Check if a port honours COPTS.  */ 
     
    3030 static void set_std_cxx98 (int); 
    3131 static void set_std_cxx11 (int); 
    32 @@ -449,6 +452,9 @@ c_common_handle_option (size_t scode, co 
     32@@ -383,6 +386,9 @@ c_common_handle_option (size_t scode, co 
    3333       cpp_opts->warn_endif_labels = value; 
    3434       break; 
     
    3737+      break; 
    3838+ 
    39      case OPT_Wformat: 
    40        set_Wformat (value); 
    41        break; 
    42 @@ -592,6 +598,12 @@ c_common_handle_option (size_t scode, co 
     39     case OPT_Winvalid_pch: 
     40       cpp_opts->warn_invalid_pch = value; 
     41       break; 
     42@@ -491,6 +497,12 @@ c_common_handle_option (size_t scode, co 
    4343       flag_no_builtin = !value; 
    4444       break; 
     
    5353       constant_string_class_name = arg; 
    5454       break; 
    55 @@ -1098,6 +1110,47 @@ c_common_init (void) 
     55@@ -1027,6 +1039,47 @@ c_common_init (void) 
    5656       return false; 
    5757     } 
     
    103103--- a/gcc/c-family/c.opt 
    104104+++ b/gcc/c-family/c.opt 
    105 @@ -371,6 +371,10 @@ Werror-implicit-function-declaration 
     105@@ -379,6 +379,10 @@ Werror-implicit-function-declaration 
    106106 C ObjC RejectNegative Warning Alias(Werror=, implicit-function-declaration) 
    107107 This switch is deprecated; use -Werror=implicit-function-declaration instead 
     
    114114 C ObjC C++ ObjC++ Var(warn_float_equal) Warning 
    115115 Warn if testing floating point numbers for equality 
    116 @@ -830,6 +834,9 @@ C++ ObjC++ Optimization Alias(fexception 
     116@@ -949,6 +953,9 @@ C++ ObjC++ Optimization Alias(fexception 
    117117 fhonor-std 
    118118 C++ ObjC++ Ignore Warn(switch %qs is no longer supported) 
     
    126126--- a/gcc/common.opt 
    127127+++ b/gcc/common.opt 
    128 @@ -531,6 +531,10 @@ Werror= 
     128@@ -541,6 +541,10 @@ Werror= 
    129129 Common Joined 
    130130 Treat specified warning as error 
     
    137137 Common Var(extra_warnings) Warning 
    138138 Print extra (possibly unwanted) warnings 
    139 @@ -1209,6 +1213,9 @@ fguess-branch-probability 
     139@@ -1242,6 +1246,9 @@ fguess-branch-probability 
    140140 Common Report Var(flag_guess_branch_prob) Optimization 
    141141 Enable guessing of branch probabilities 
     
    149149--- a/gcc/opts.c 
    150150+++ b/gcc/opts.c 
    151 @@ -470,8 +470,6 @@ static const struct default_options defa 
     151@@ -468,8 +468,6 @@ static const struct default_options defa 
    152152     { OPT_LEVELS_2_PLUS, OPT_fschedule_insns2, NULL, 1 }, 
    153153 #endif 
     
    158158     { OPT_LEVELS_2_PLUS, OPT_freorder_functions, NULL, 1 }, 
    159159     { OPT_LEVELS_2_PLUS, OPT_ftree_vrp, NULL, 1 }, 
    160 @@ -489,6 +487,8 @@ static const struct default_options defa 
    161      { OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_foptimize_strlen, NULL, 1 }, 
     160@@ -488,6 +486,8 @@ static const struct default_options defa 
     161     { OPT_LEVELS_2_PLUS, OPT_fhoist_adjacent_loads, NULL, 1 }, 
    162162  
    163163     /* -O3 optimizations.  */ 
     
    167167     { OPT_LEVELS_3_PLUS, OPT_fpredictive_commoning, NULL, 1 }, 
    168168     /* Inlining of functions reducing size is a good idea with -Os 
    169 @@ -1432,6 +1432,17 @@ common_handle_option (struct gcc_options 
     169@@ -1423,6 +1423,17 @@ common_handle_option (struct gcc_options 
    170170                               opts, opts_set, loc, dc); 
    171171       break; 
     
    187187--- a/gcc/doc/cppopts.texi 
    188188+++ b/gcc/doc/cppopts.texi 
    189 @@ -164,6 +164,11 @@ in older programs.  This warning is on b 
     189@@ -163,6 +163,11 @@ in older programs.  This warning is on b 
    190190 Make all warnings into hard errors.  Source code which triggers warnings 
    191191 will be rejected. 
     
    201201--- a/gcc/doc/invoke.texi 
    202202+++ b/gcc/doc/invoke.texi 
    203 @@ -242,7 +242,7 @@ Objective-C and Objective-C++ Dialects}. 
     203@@ -240,7 +240,7 @@ Objective-C and Objective-C++ Dialects}. 
    204204 -Wconversion  -Wcoverage-mismatch  -Wno-cpp  -Wno-deprecated  @gol 
    205205 -Wno-deprecated-declarations -Wdisabled-optimization  @gol 
     
    210210 -Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral @gol 
    211211 -Wformat-security  -Wformat-y2k @gol 
    212 @@ -4651,6 +4651,22 @@ This option is only supported for C and 
    213  @option{-Wall} and by @option{-pedantic}, which can be disabled with 
     212@@ -4808,6 +4808,22 @@ This option is only supported for C and 
     213 @option{-Wall} and by @option{-Wpedantic}, which can be disabled with 
    214214 @option{-Wno-pointer-sign}. 
    215215  
     
    233233 @opindex Wstack-protector 
    234234 @opindex Wno-stack-protector 
    235 @@ -6570,7 +6586,7 @@ so, the first branch is redirected to ei 
     235@@ -6919,7 +6935,7 @@ so, the first branch is redirected to ei 
    236236 second branch or a point immediately following it, depending on whether 
    237237 the condition is known to be true or false. 
     
    244244--- a/gcc/java/jvspec.c 
    245245+++ b/gcc/java/jvspec.c 
    246 @@ -627,6 +627,7 @@ lang_specific_pre_link (void) 
     246@@ -626,6 +626,7 @@ lang_specific_pre_link (void) 
    247247      class name.  Append dummy `.c' that can be stripped by set_input so %b 
    248248      is correct.  */  
Note: See TracChangeset for help on using the changeset viewer.