Changeset 19324


Ignore:
Timestamp:
2010-01-25T11:52:23+01:00 (6 years ago)
Author:
kaloz
Message:

add preliminary support for the latest CodeSourcery toolchain

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

Legend:

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

    r19314 r19324  
    5050                bool "gcc 4.3.3 with CodeSourcery enhancements" 
    5151 
     52        config GCC_VERSION_4_4_1_CS 
     53                bool "gcc 4.4.1 with CodeSourcery enhancements" 
     54                depends BROKEN 
     55 
    5256endif 
    5357 
  • trunk/toolchain/gcc/Config.version

    r19314 r19324  
    88        default "4.3.4"     if GCC_VERSION_4_3_4 
    99        default "4.4.1"     if GCC_VERSION_4_4_1 
     10        default "4.4.1+cs"  if GCC_VERSION_4_4_1_CS 
    1011        default "4.4.2"     if GCC_VERSION_4_4_2 
    1112        default "4.4.3"     if GCC_VERSION_4_4_3 
     
    4849        bool 
    4950        default y       if GCC_VERSION_4_4_1 
     51        default y       if GCC_VERSION_4_4_1_CS 
    5052        default y       if GCC_VERSION_4_4_2 
    5153        default y       if GCC_VERSION_4_4_3 
  • trunk/toolchain/gcc/Makefile

    r19314 r19324  
    9999                $(if $(CONFIG_mips64)$(CONFIG_mips64el),--with-arch=mips64 --with-abi=64) \ 
    100100                $(if $(CONFIG_GCC_VERSION_LLVM),--enable-llvm=$(BUILD_DIR_BASE)/host/llvm) \ 
    101                 $(if $(CONFIG_GCC_VERSION_4_3_3_CS),--enable-poison-system-directories) 
     101                $(if $(CONFIG_GCC_VERSION_4_3_3_CS)$(CONFIG_GCC_VERSION_4_4_1_CS),--enable-poison-system-directories) 
    102102 
    103103ifneq ($(CONFIG_GCC_VERSION_4_3)$(CONFIG_GCC_VERSION_4_4),) 
  • trunk/toolchain/gcc/patches/4.4.1+cs/910-mbsd_multi.patch

    r17161 r19324  
    55          on environment variables). This is to catch errors 
    66          of misbuilt packages which override CFLAGS themselves. 
    7         * -Werror-maybe-reset 
    8           Has the effect of -Wno-error if GCC_NO_WERROR is 
    9           set and not '0', a no-operation otherwise. This is 
    10           to be able to use -Werror in "make" but prevent 
    11           GNU autoconf generated configure scripts from 
    12           freaking out. 
    137        * Make -fno-strict-aliasing and -fno-delete-null-pointer-checks 
    148          the default for -O2/-Os, because they trigger gcc bugs 
     
    3024 static void handle_OPT_d (const char *); 
    3125 static void set_std_cxx98 (int); 
    32 @@ -454,6 +457,14 @@ 
    33        enable_warning_as_error ("implicit-function-declaration", value, CL_C | CL_ObjC);  
    34        break; 
    35   
    36 +    case OPT_Werror_maybe_reset: 
    37 +      { 
    38 +       char *ev = getenv ("GCC_NO_WERROR"); 
    39 +       if ((ev != NULL) && (*ev != '0')) 
    40 +         cpp_opts->warnings_are_errors = 0; 
    41 +      } 
    42 +      break; 
    43 + 
    44      case OPT_Wformat: 
    45        set_Wformat (value); 
    46        break; 
    4726@@ -690,6 +701,12 @@ 
    4827       flag_exceptions = value; 
     
    10887--- a/gcc/c.opt 
    10988+++ b/gcc/c.opt 
    110 @@ -215,6 +215,10 @@ 
    111  C ObjC RejectNegative Warning 
    112  This switch is deprecated; use -Werror=implicit-function-declaration instead 
    113   
    114 +Werror-maybe-reset 
    115 +C ObjC C++ ObjC++ 
    116 +; Documented in common.opt 
    117 + 
    118  Wfloat-equal 
    119  C ObjC C++ ObjC++ Var(warn_float_equal) Warning 
    120  Warn if testing floating point numbers for equality 
    12189@@ -609,6 +613,9 @@ 
    12290 fhonor-std 
     
    13199--- a/gcc/common.opt 
    132100+++ b/gcc/common.opt 
    133 @@ -102,6 +102,10 @@ 
    134  Common Joined 
    135  Treat specified warning as error 
    136   
    137 +Werror-maybe-reset 
    138 +Common 
    139 +If environment variable GCC_NO_WERROR is set, act as -Wno-error 
    140 + 
    141  Wextra 
    142  Common Warning 
    143  Print extra (possibly unwanted) warnings 
    144101@@ -573,6 +577,9 @@ 
    145102 Common Report Var(flag_guess_branch_prob) Optimization 
     
    174131   flag_inline_functions = opt3; 
    175132   flag_unswitch_loops = opt3; 
    176 @@ -1601,6 +1601,17 @@ 
    177        enable_warning_as_error (arg, value, lang_mask); 
    178        break; 
    179   
    180 +    case OPT_Werror_maybe_reset: 
    181 +      { 
    182 +       char *ev = getenv ("GCC_NO_WERROR"); 
    183 +       if ((ev != NULL) && (*ev != '0')) 
    184 +         warnings_are_errors = 0; 
    185 +      } 
    186 +      break; 
    187 + 
    188 +    case OPT_fhonour_copts: 
    189 +      break; 
    190 + 
    191      case OPT_Wextra: 
    192        set_Wextra (value); 
    193        break; 
    194 --- a/gcc/doc/cppopts.texi 
    195 +++ b/gcc/doc/cppopts.texi 
    196 @@ -164,6 +164,11 @@ 
    197  Make all warnings into hard errors.  Source code which triggers warnings 
    198  will be rejected. 
    199   
    200 + at item -Werror-maybe-reset 
    201 + at opindex Werror-maybe-reset 
    202 +Act like @samp{-Wno-error} if the @env{GCC_NO_WERROR} environment 
    203 +variable is set to anything other than 0 or empty. 
    204 + 
    205  @item -Wsystem-headers 
    206  @opindex Wsystem-headers 
    207  Issue warnings for code in system headers.  These are normally unhelpful 
    208133--- a/gcc/doc/invoke.texi 
    209134+++ b/gcc/doc/invoke.texi 
    210 @@ -234,7 +234,7 @@ 
    211  -Wconversion  -Wcoverage-mismatch  -Wno-deprecated  @gol 
    212  -Wno-deprecated-declarations -Wdisabled-optimization  @gol 
    213  -Wno-div-by-zero -Wempty-body  -Wenum-compare -Wno-endif-labels @gol 
    214 --Werror  -Werror=* @gol 
    215 +-Werror  -Werror=* -Werror-maybe-reset @gol 
    216  -Wfatal-errors  -Wfloat-equal  -Wformat  -Wformat=2 @gol 
    217  -Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral @gol 
    218  -Wformat-security  -Wformat-y2k @gol 
    219 @@ -4161,6 +4161,22 @@ 
    220  @option{-Wall} and by @option{-pedantic}, which can be disabled with 
    221  @option{-Wno-pointer-sign}. 
    222   
    223 + at item -Werror-maybe-reset 
    224 + at opindex Werror-maybe-reset 
    225 +Act like @samp{-Wno-error} if the @env{GCC_NO_WERROR} environment 
    226 +variable is set to anything other than 0 or empty. 
    227 + 
    228 + at item -fhonour-copts 
    229 + at opindex fhonour-copts 
    230 +If @env{GCC_HONOUR_COPTS} is set to 1, abort if this option is not 
    231 +given at least once, and warn if it is given more than once. 
    232 +If @env{GCC_HONOUR_COPTS} is set to 2, abort if this option is not 
    233 +given exactly once. 
    234 +If @env{GCC_HONOUR_COPTS} is set to 0 or unset, warn if this option 
    235 +is not given exactly once. 
    236 +The warning is quelled if @env{GCC_HONOUR_COPTS} is set to @samp{s}. 
    237 +This flag and environment variable only affect the C language. 
    238 + 
    239  @item -Wstack-protector 
    240  @opindex Wstack-protector 
    241  @opindex Wno-stack-protector 
    242135@@ -5699,7 +5715,7 @@ 
    243136 second branch or a point immediately following it, depending on whether 
Note: See TracChangeset for help on using the changeset viewer.