Browse Source

Juergen Sawinski <george@sun0.mpimf-heidelberg.mpg.de>:

fixed gcc3 for -Os -fPIC compilation (backport of gcc33 patch)


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2245 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Juergen "George" Sawinski 21 years ago
parent
commit
ab28ac7f82
1 changed files with 27 additions and 0 deletions
  1. +27
    -0
      package/base/gcc3/gcc-Os-fix.patch

+ 27
- 0
package/base/gcc3/gcc-Os-fix.patch

@ -0,0 +1,27 @@
This patch is extracted from
http://gcc.gnu.org/ml/gcc-patches/2004-01/msg00791.html
- Juergen "George" Sawinski <jsaw@gmx.net>
--- gcc-3.2.3/gcc/cfgcleanup.c.orig 2004-01-12 01:03:22.000000000 +0100
+++ gcc-3.2.3/gcc/cfgcleanup.c 2004-01-12 01:04:59.000000000 +0100
@@ -1640,7 +1640,7 @@
/* If the jump insn has side effects,
we can't kill the edge. */
&& (GET_CODE (b->end) != JUMP_INSN
- || (flow2_completed
+ || (reload_completed
? simplejump_p (b->end)
: onlyjump_p (b->end)))
&& merge_blocks (s, b, c, mode))
--- gcc-3.2.3/gcc/cfgrtl.c.orig 2004-01-12 01:03:40.000000000 +0100
+++ gcc-3.2.3/gcc/cfgrtl.c 2004-01-12 01:06:41.000000000 +0100
@@ -674,7 +674,7 @@
if (tmp || !onlyjump_p (insn))
return false;
- if ((!optimize || flow2_completed) && tablejump_p (insn))
+ if ((!optimize || reload_completed) && tablejump_p (insn))
return false;
/* Avoid removing branch with side effects. */

Loading…
Cancel
Save