From 197f204abe0eca065f6c8a930a4f54838a853e5c Mon Sep 17 00:00:00 2001 From: brad Date: Sat, 3 Jan 2004 03:09:13 +0000 Subject: [PATCH] from in-tree binutils, by millert@. Reverse the order of a test in the loop invariant. It makes more sense this way and works around an apparent gcc optimizer bug on macppc related to inline functions. --- devel/binutils/stable/patches/patch-gas_read_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 devel/binutils/stable/patches/patch-gas_read_c diff --git a/devel/binutils/stable/patches/patch-gas_read_c b/devel/binutils/stable/patches/patch-gas_read_c new file mode 100644 index 00000000000..ab8e57c06c7 --- /dev/null +++ b/devel/binutils/stable/patches/patch-gas_read_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gas_read_c,v 1.1 2004/01/03 03:09:13 brad Exp $ +--- gas/read.c.orig 2004-01-02 21:57:16.000000000 -0500 ++++ gas/read.c 2004-01-02 21:54:35.000000000 -0500 +@@ -4688,7 +4688,7 @@ next_char_of_string () + int i; + + for (i = 0, number = 0; +- ISDIGIT (c) && i < 3; ++ i < 3 && ISDIGIT (c); + c = *input_line_pointer++, i++) + { + number = number * 8 + c - '0';