OSDN Git Service

* cgraph.c (create_edge): Fix typo.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jul 2003 17:50:54 +0000 (17:50 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jul 2003 17:50:54 +0000 (17:50 +0000)
* i386.c (pic_symbolic_operand): Reorder tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70006 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraph.c
gcc/config/i386/i386.c

index abc2733..923f25e 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jul 31 19:49:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (create_edge): Fix typo.
+       * i386.c (pic_symbolic_operand): Reorder tests.
+
 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
 
        * doc/gcov.texi (Invoking Gcov): Describe output name mangling
index bc53269..76cd63a 100644 (file)
@@ -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;
index 706ecc4..22c495f 100644 (file)
@@ -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