dependency.c (gfc_dep_compare_functions): Document new behavior for REALs and complex.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 29 Dec 2011 09:20:01 +0000 (09:20 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 29 Dec 2011 09:20:01 +0000 (09:20 +0000)
commitd8e5eb5711e236c0304becf5bd0ee28dfc3f67d5
treed10f25bdc5da73a713310bc59080aacef1f576df
parent663b7c930535f94f4a2dc3309dae30d22faab1b8
dependency.c (gfc_dep_compare_functions): Document new behavior for REALs and complex.

2011-12-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

* dependency.c (gfc_dep_compare_functions):  Document
new behavior for REALs and complex.  Add comment to cases
where only INTEGERs are handled.  Compare REAL and COMPLEX
constants, returning 0 and -2 only.  Add assert to make
sure that only integer constants are compared.

2011-12-29  Thomas Koenig  <tkoenig@gcc.gnu.org>

* gfortran.dg/function_optimize_9.f90:  New test.

From-SVN: r182720
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/function_optimize_9.f90 [new file with mode: 0644]