diff options
author | 2008-04-20 09:24:43 +0000 | |
---|---|---|
committer | 2008-04-20 09:24:43 +0000 | |
commit | fcf23497968f6defb072c38de36ea4a9040cbaf2 (patch) | |
tree | 1a670cea4155ea4d8f9771b27ca5cfa7ec2f96ae /4.3.0 | |
parent | add some pr fixes, the gnu stack stuff, and cld revert (diff) | |
download | gcc-patches-fcf23497968f6defb072c38de36ea4a9040cbaf2.tar.gz gcc-patches-fcf23497968f6defb072c38de36ea4a9040cbaf2.tar.bz2 gcc-patches-fcf23497968f6defb072c38de36ea4a9040cbaf2.zip |
add fix for pr35705
Diffstat (limited to '4.3.0')
-rw-r--r-- | 4.3.0/gentoo/63_all_gcc43-pr35705.patch | 19 | ||||
-rw-r--r-- | 4.3.0/gentoo/README.history | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/4.3.0/gentoo/63_all_gcc43-pr35705.patch b/4.3.0/gentoo/63_all_gcc43-pr35705.patch new file mode 100644 index 0000000..7dd0b50 --- /dev/null +++ b/4.3.0/gentoo/63_all_gcc43-pr35705.patch @@ -0,0 +1,19 @@ +http://gcc.gnu.org/PR35705 + +2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + PR middle-end/35705 + * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if + the expression is a function address. + +--- branches/gcc-4_3-branch/gcc/fold-const.c 2008/04/01 22:14:41 133804 ++++ branches/gcc-4_3-branch/gcc/fold-const.c 2008/04/01 22:16:49 133805 +@@ -9360,7 +9360,7 @@ + } + } + +- if (DECL_P (expr)) ++ if (DECL_P (expr) && TREE_CODE (expr) != FUNCTION_DECL) + return DECL_ALIGN_UNIT (expr); + } + else if (code == POINTER_PLUS_EXPR) diff --git a/4.3.0/gentoo/README.history b/4.3.0/gentoo/README.history index 068996e..9596cca 100644 --- a/4.3.0/gentoo/README.history +++ b/4.3.0/gentoo/README.history @@ -5,7 +5,7 @@ + 61_all_gcc43-pr24170.patch + 62_all_gcc4-noteGNUstack.patch + 62_all_gcc43-pr27880.patch - + 63_all_gcc43-pr30961.patch + + 63_all_gcc43-pr35705.patch + 64_all_gcc43-pr34571.patch 1.0 16.03.2008 |