From fdacb904eeb93ececa9df4968824fc136ff0415b Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 31 Jul 2003 19:50:54 +0200 Subject: [PATCH] cgraph.c (create_edge): Fix typo. * cgraph.c (create_edge): Fix typo. * i386.c (pic_symbolic_operand): Reorder tests. From-SVN: r70006 --- gcc/ChangeLog | 5 +++++ gcc/cgraph.c | 2 +- gcc/config/i386/i386.c | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index abc2733a087..923f25ea669 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 bc532690fe1..76cd63ac661 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 706ecc4ff59..22c495f443b 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 -- 2.30.2