[0/2] Fortran: Add attribute flatten

Message ID 20221110102031.1366016-1-aldot@gcc.gnu.org
Headers
Series Fortran: Add attribute flatten |

Message

Bernhard Reutner-Fischer Nov. 10, 2022, 10:20 a.m. UTC
  Hi!

I could imagine that the flatten attribute might be useful.
Do we want to add support for it for gcc-13?

Bernhard Reutner-Fischer (2):
  Fortran: Cleanup struct ext_attr_t
  Fortran: Add attribute flatten

 gcc/fortran/decl.cc                          | 41 +++++++++++++-------
 gcc/fortran/f95-lang.cc                      |  2 +
 gcc/fortran/gfortran.h                       |  1 -
 gcc/fortran/gfortran.texi                    |  8 ++++
 gcc/fortran/trans-decl.cc                    | 13 +------
 gcc/testsuite/gfortran.dg/attr_flatten-1.f90 | 41 ++++++++++++++++++++
 6 files changed, 80 insertions(+), 26 deletions(-)
 create mode 100644 gcc/testsuite/gfortran.dg/attr_flatten-1.f90