patches/gcc/4.7.0/000-gcc-bug-54369.patch
author David Holsgrove <david.holsgrove@xilinx.com>
Wed Oct 03 15:59:22 2012 +1000 (2012-10-03)
changeset 3071 5243d1b432b1
permissions -rw-r--r--
scripts/gdb: If not building expat for gdb, disable

--with-expat=yes is unconditionally passed to the gdb configure
stage, instead of respecting the ${do_expat} decision.

Disable if not needed. Prevents error building canadian cross;

configure: error: expat is missing or unusable

Where configure stage fails to find expat on the host compiler.

Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Message-Id: <4c4410a2a8aab24a29c5.1349244128@localhost.localdomain>
PatchWork-Id: 188711
     1 Author: ebotcazou
     2 Date: Sun Sep  2 10:36:54 2012
     3 New Revision: 190859
     4 
     5 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190859
     6 Log:
     7     PR rtl-optimization/54369
     8     * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
     9     calling dbr_schedule.
    10     * config/sparc/sparc.c (sparc_reorg): Likewise.
    11 
    12 Modified:
    13     branches/gcc-4_7-branch/gcc/ChangeLog
    14     branches/gcc-4_7-branch/gcc/config/mips/mips.c
    15     branches/gcc-4_7-branch/gcc/config/sparc/sparc.c
    16 ---
    17 --- gcc-4_7-branch/gcc/config/mips/mips.c	2012/09/02 10:36:27	190858
    18 +++ gcc-4_7-branch/gcc/config/mips/mips.c	2012/09/02 10:36:54	190859
    19 @@ -15415,7 +15415,10 @@
    20      }
    21  
    22    if (optimize > 0 && flag_delayed_branch)
    23 -    dbr_schedule (get_insns ());
    24 +    {
    25 +      cleanup_barriers ();
    26 +      dbr_schedule (get_insns ());
    27 +    }
    28    mips_reorg_process_insns ();
    29    if (!TARGET_MIPS16
    30        && TARGET_EXPLICIT_RELOCS
    31 --- gcc-4_7-branch/gcc/config/sparc/sparc.c	2012/09/02 10:36:27	190858
    32 +++ gcc-4_7-branch/gcc/config/sparc/sparc.c	2012/09/02 10:36:54	190859
    33 @@ -10663,7 +10663,10 @@
    34    /* We need to have the (essentially) final form of the insn stream in order
    35       to properly detect the various hazards.  Run delay slot scheduling.  */
    36    if (optimize > 0 && flag_delayed_branch)
    37 -    dbr_schedule (get_insns ());
    38 +    {
    39 +      cleanup_barriers ();
    40 +      dbr_schedule (get_insns ());
    41 +    }
    42  
    43    /* Now look for specific patterns in the insn stream.  */
    44    for (insn = get_insns (); insn; insn = next)
    45