From: Jan Hubicka Date: Thu, 31 Jul 2003 17:50:54 +0000 (+0200) Subject: cgraph.c (create_edge): Fix typo. X-Git-Tag: releases/gcc-3.4.0~4492 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdacb904eeb93ececa9df4968824fc136ff0415b;p=thirdparty%2Fgcc.git cgraph.c (create_edge): Fix typo. * cgraph.c (create_edge): Fix typo. * i386.c (pic_symbolic_operand): Reorder tests. From-SVN: r70006 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index abc2733a087a..923f25ea6699 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka + + * cgraph.c (create_edge): Fix typo. + * i386.c (pic_symbolic_operand): Reorder tests. + 2003-07-31 Nathan Sidwell * doc/gcov.texi (Invoking Gcov): Describe output name mangling diff --git a/gcc/cgraph.c b/gcc/cgraph.c index bc532690fe17..76cd63ac6619 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -162,7 +162,7 @@ create_edge (struct cgraph_node *caller, struct cgraph_node *callee) as we probably ought to, so we must preserve inline_call flags to be the same in all copies of the same edge. */ if (cgraph_global_info_ready) - for (edge2 = caller->callees; edge2; edge2 = edge2->next_caller) + for (edge2 = caller->callees; edge2; edge2 = edge2->next_callee) if (edge2->callee == callee) { edge->inline_call = edge2->inline_call; diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 706ecc4ff590..22c495f443b3 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3414,8 +3414,8 @@ pic_symbolic_operand (register rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) && XINT (op, 1) == UNSPEC_GOTPCREL) return 1; if (GET_CODE (op) == PLUS - && XINT (XEXP (op, 0), 1) == UNSPEC_GOTPCREL - && GET_CODE (XEXP (op, 0)) == UNSPEC) + && GET_CODE (XEXP (op, 0)) == UNSPEC + && XINT (XEXP (op, 0), 1) == UNSPEC_GOTPCREL) return 1; } else