patches/gcc/4.4.4/110-trampolinewarn.patch
author Arnaud Lacombe <lacombar@gmail.com>
Tue Aug 03 06:17:51 2010 +0200 (2010-08-03)
changeset 2064 f5ebe8c429dc
child 2148 ada9128c98b8
permissions -rw-r--r--
libc/uClibc: add uClibc 0.9.30.3

This version has been released a couple of month ago, but it never reached
crosstool-ng tree. This may be linked to the fact that the current 0.9.30.2,
once patched, has nothing much different from 0.9.30.3, released.

I'm not including any patch with this upgrade, on purpose.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
     1 diff -durN gcc-4.4.0.orig/gcc/builtins.c gcc-4.4.0/gcc/builtins.c
     2 
     3 diff -durN gcc-4.4.4.orig/gcc/builtins.c gcc-4.4.4/gcc/builtins.c
     4 --- gcc-4.4.4.orig/gcc/builtins.c	2010-03-22 16:00:20.000000000 +0100
     5 +++ gcc-4.4.4/gcc/builtins.c	2010-05-16 19:10:34.000000000 +0200
     6 @@ -5783,6 +5783,9 @@
     7    trampolines_created = 1;
     8    INITIALIZE_TRAMPOLINE (r_tramp, r_func, r_chain);
     9  
    10 +  if (warn_trampolines)
    11 +    warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)");
    12 +
    13    return const0_rtx;
    14  }
    15  
    16 diff -durN gcc-4.4.4.orig/gcc/common.opt gcc-4.4.4/gcc/common.opt
    17 --- gcc-4.4.4.orig/gcc/common.opt	2009-03-28 18:28:45.000000000 +0100
    18 +++ gcc-4.4.4/gcc/common.opt	2010-05-16 19:10:34.000000000 +0200
    19 @@ -197,6 +197,10 @@
    20  Common Var(warn_type_limits) Init(-1) Warning
    21  Warn if a comparison is always true or always false due to the limited range of the data type
    22  
    23 +Wtrampolines
    24 +Common Var(warn_trampolines) Init(1)
    25 +Warn whenever a trampoline is generated
    26 +
    27  Wuninitialized
    28  Common Var(warn_uninitialized) Warning
    29  Warn about uninitialized automatic variables