source: trunk/dports/cross/mipsel-linux-gcc34/files/700-pr15068-fix.patch @ 21475

Last change on this file since 21475 was 21475, checked in by eridius@…, 13 years ago

Massive update to svn properties on files:
All patchfiles have svn:eol-style removed.
All files that are not in fact able to be executed have svn:executable removed
All binary files have svn:eol-style removed (and are probably corrupt)
All binary files have svn:mime-type set to application/octet-stream
All files which are not patchfiles or binary files have svn:eol-style set to native
All Portfiles have svn:eol-style set to native and svn:executable removed

File size: 2.0 KB
  • gcc-3.4.1/gcc/flow.c

    See http://gcc.gnu.org/PR15068
    
    Fixes error
    
    ../sysdeps/generic/s_fmax.c: In function `__fmax':
    ../sysdeps/generic/s_fmax.c:28: internal compiler error: in elim_reg_cond, at flow.c:3257
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    make[2]: *** [/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/build-glibc/math/s_fmax.o] Error 1
    make[2]: Leaving directory `/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/glibc-20040822/math'
    make[1]: *** [math/others] Error 2
    make[1]: Leaving directory `/home/dank/wk/crosstool-0.28-rc35/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-20040822/glibc-20040822'
    make: *** [all] Error 2
    
    [ rediffed against gcc-3.4.1, with elbow grease, ending up with same thing as
    http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/flow.c.diff?cvsroot=gcc&only_with_tag=csl-arm-branch&r1=1.563.4.2&r2=1.563.4.3 ]
    
    old new  
    18781878          rtx set_src = SET_SRC (pc_set (BB_END (bb)));
    18791879          rtx cond_true = XEXP (set_src, 0);
    18801880          rtx reg = XEXP (cond_true, 0);
     1881          enum rtx_code inv_cond;
    18811882
    18821883          if (GET_CODE (reg) == SUBREG)
    18831884            reg = SUBREG_REG (reg);
     
    18861887             in the form of a comparison of a register against zero. 
    18871888             If the condition is more complex than that, then it is safe
    18881889             not to record any information.  */
    1889           if (GET_CODE (reg) == REG
     1890          inv_cond = reversed_comparison_code (cond_true, BB_END (bb));
     1891          if (inv_cond != UNKNOWN
     1892              && GET_CODE (reg) == REG
    18901893              && XEXP (cond_true, 1) == const0_rtx)
    18911894            {
    18921895              rtx cond_false
    1893                 = gen_rtx_fmt_ee (reverse_condition (GET_CODE (cond_true)),
     1896                = gen_rtx_fmt_ee (inv_cond,
    18941897                                  GET_MODE (cond_true), XEXP (cond_true, 0),
    18951898                                  XEXP (cond_true, 1));
    18961899              if (GET_CODE (XEXP (set_src, 1)) == PC)
Note: See TracBrowser for help on using the repository browser.