This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gfortran, commited] Remove superfluous assertion


gfc_return_by_reference contained an assertion which was unreachable if its
condition was true (see two lines above). I removed it.

Bubblestrapped and tested.

- Tobi

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/ChangeLog,v
retrieving revision 1.212
diff -u -p -r1.212 ChangeLog
--- ChangeLog   20 Sep 2004 20:38:29 -0000      1.212
+++ ChangeLog   24 Sep 2004 16:24:02 -0000
@@ -1,3 +1,8 @@
+2004-09-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       * trans-types.c (gfc_return_by_reference): Remove superfluous
+       assertion.
+
 2004-09-20  Jan Hubicka  <jh@suse.cz>

        * trans-decl.c (build_entry_thunks): Finalize the function; do not lower
Index: trans-types.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/trans-types.c,v
retrieving revision 1.30
diff -u -p -r1.30 trans-types.c
--- trans-types.c       16 Sep 2004 16:00:44 -0000      1.30
+++ trans-types.c       24 Sep 2004 16:24:02 -0000
@@ -1435,8 +1435,6 @@ gfc_return_by_reference (gfc_symbol * sy
   if (!sym->attr.function)
     return 0;

-  gcc_assert (sym->attr.function);
-
   if (sym->result)
     sym = sym->result;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]