function_optimize_1.f90: Add -Warray-temporaries, check for corresponding warning.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 29 Mar 2011 07:58:54 +0000 (07:58 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Tue, 29 Mar 2011 07:58:54 +0000 (07:58 +0000)
commit23360fe40929b6f731db12007a7b262e72e5e336
tree1acd8e0e6c03c7b1a06a0e430e76382f808828b6
parentb7469e034026f2c99add427a6c7e90f7088cd712
function_optimize_1.f90: Add -Warray-temporaries, check for corresponding warning.

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

* gfortran.dg/function_optimize_1.f90:  Add -Warray-temporaries,
check for corresponding warning.

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

* frontend-passes.c (create_var):  Warn about creating an
array temporary if requested.

From-SVN: r171653
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/function_optimize_1.f90