patches/gcc/4.4.4/110-trampolinewarn.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 31 23:24:40 2010 +0200 (2010-08-31)
changeset 2107 f5ab0a80e466
child 2148 ada9128c98b8
permissions -rw-r--r--
binutils/binutils: remove faulty patch

The added code should be conditinal to the target system
being !MIPS, but is based on the host system being !MIPS.

This is plain wrong, and had not been noticed until now
as I never used those binutils versions on MIPS.

See:
http://sourceware.org/ml/crossgcc/2010-08/msg00192.html

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     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