Message ID | 1283887795.3786.38.camel@linux-fd1f.site |
---|---|
State | New |
Headers | show |
Le 07.09.2010 21:29, Thomas Koenig a écrit : > Hello world, > > this fixes a regression introduced by my changes to gfc_deb_compare_expr > and exposed by my recent changes to string comparison. > > OK for trunk? > OK.
Hello Mikael, > Le 07.09.2010 21:29, Thomas Koenig a écrit : > > Hello world, > > > > this fixes a regression introduced by my changes to gfc_deb_compare_expr > > and exposed by my recent changes to string comparison. > > > > OK for trunk? > > > > OK. Sende fortran/ChangeLog Sende fortran/dependency.c Sende testsuite/ChangeLog Hinzufügen testsuite/gfortran.dg/char_length_18.f90 Übertrage Daten .... Revision 163978 übertragen. Thanks for the review! Thomas
Index: dependency.c =================================================================== --- dependency.c (Revision 163868) +++ dependency.c (Arbeitskopie) @@ -368,8 +368,14 @@ gfc_dep_compare_expr (gfc_expr *e1, gfc_expr *e2) /* Compare the argument lists for equality. */ while (args1 && args2) { - if (gfc_dep_compare_expr (args1->expr, args2->expr) != 0) + /* Bitwise xor, since C has no non-bitwise xor operator. */ + if ((args1->expr == NULL) ^ (args2->expr == NULL)) return -2; + + if (args1->expr != NULL && args2->expr != NULL + && gfc_dep_compare_expr (args1->expr, args2->expr) != 0) + return -2; + args1 = args1->next; args2 = args2->next; }