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.
This commit is contained in:
brad 2004-01-03 03:09:13 +00:00
parent ee59130181
commit 197f204abe

View File

@ -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';