[Bug fortran/82865] Option -fdec collides with PDT

2018-07-16 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Fritz Reese  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |FIXED

--- Comment #15 from Fritz Reese  ---
Marking as resolved again since the 7-branch backport was reverted; the patch
is applied to trunk and 8-branch.

[Bug fortran/82865] Option -fdec collides with PDT

2018-07-02 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

--- Comment #14 from Fritz Reese  ---
(In reply to Rainer Orth from comment #13)
> 
> It seems the backport caused a caused quite a number on testsuite failures
> on the gcc-7 branch:
> ...

I reverted the backport in r262260. Are you certain that you still see those
errors after the reversion? That testcase file should no longer exist in the
tree.

> 
> Besides, all those svn property changes are at least unrelated.
> 
>   Rainer

That is what I suspected. ‘svn merge’ added them for some reason (even from a
clean tree). I’ll make sure to keep those out of future merges.

[Bug fortran/82865] Option -fdec collides with PDT

2018-07-02 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Rainer Orth  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||ro at gcc dot gnu.org
 Resolution|FIXED   |---

--- Comment #13 from Rainer Orth  ---
(In reply to Fritz Reese from comment #12)
> Author: foreese
> Date: Fri Jun 29 20:29:34 2018
> New Revision: 262260
> 
> URL: https://gcc.gnu.org/viewcvs?rev=262260&root=gcc&view=rev
> Log:
> Revert r262224 (backport of r262221) as PDTs are not supported in 7-branch.
> 
> gcc/fortran/ChangeLog:
> -2018-06-28  Fritz Reese  
> -
> - PR fortran/82865
> - Backport from trunk.
> - * decl.c (gfc_match_type): Refactor and check for PDT declarations.
> -
> 
> gcc/testsuite/ChangeLog:
> -2018-06-28  Fritz Reese  
> -
> - PR fortran/82865
> - Backport from trunk.
> - * gfortran.dg/dec_type_print_2.f03: New testcase.
> -
> 
> Removed:
> branches/gcc-7-branch/gcc/testsuite/gfortran.dg/dec_type_print_2.f03
> Modified:
> branches/gcc-7-branch/   (props changed)
> branches/gcc-7-branch/gcc/ada/s-interr-hwint.adb   (props changed)
> branches/gcc-7-branch/gcc/fortran/ChangeLog
> branches/gcc-7-branch/gcc/fortran/decl.c
> branches/gcc-7-branch/gcc/testsuite/ChangeLog
> branches/gcc-7-branch/gcc/testsuite/gnat.dg/opt65.adb   (props changed)
> 
> Propchange: branches/gcc-7-branch/
> ('svn:mergeinfo' modified)
> 
> Propchange: branches/gcc-7-branch/gcc/ada/s-interr-hwint.adb
> ('svn:mergeinfo' modified)
> 
> Propchange: branches/gcc-7-branch/gcc/testsuite/gnat.dg/opt65.adb
> ('svn:mergeinfo' modified)

It seems the backport caused a caused quite a number on testsuite failures
on the gcc-7 branch:

+FAIL: gfortran.dg/dec_type_print_2.f03   -O0  (test for excess errors)
+UNRESOLVED: gfortran.dg/dec_type_print_2.f03   -O0  compilation failed to
produce executable
+FAIL: gfortran.dg/dec_type_print_2.f03   -O1  (test for excess errors)
+UNRESOLVED: gfortran.dg/dec_type_print_2.f03   -O1  compilation failed to
produce executable
+FAIL: gfortran.dg/dec_type_print_2.f03   -O2  (test for excess errors)
+UNRESOLVED: gfortran.dg/dec_type_print_2.f03   -O2  compilation failed to
produce executable
+FAIL: gfortran.dg/dec_type_print_2.f03   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess
errors)
+UNRESOLVED: gfortran.dg/dec_type_print_2.f03   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  compilation failed to
produce executable
+FAIL: gfortran.dg/dec_type_print_2.f03   -O3 -g  (test for excess errors)
+UNRESOLVED: gfortran.dg/dec_type_print_2.f03   -O3 -g  compilation failed to
produce executable
+FAIL: gfortran.dg/dec_type_print_2.f03   -Os  (test for excess errors)
+UNRESOLVED: gfortran.dg/dec_type_print_2.f03   -Os  compilation failed to
produce executable

Excess errors:
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:12:2:
Error: Unclassifiable statement at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:13:12:
Error: Invalid character in name at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:14:12:
Error: Invalid character in name at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:15:16:
Error: Symbol 'i' at (1) already has basic type of INTEGER
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:16:17:
Error: Symbol 'a' at (1) has no IMPLICIT type
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:18:5:
Error: Expecting END PROGRAM statement at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:20:13:
Error: Derived type 'mytype' at (1) is being used before it is defined
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:21:13:
Error: Derived type 'mytype' at (1) is being used before it is defined
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:23:2:
Error: Unclassifiable statement at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:24:2:
Error: Unclassifiable statement at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:25:2:
Error: Unclassifiable statement at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:26:2:
Error: Unclassifiable statement at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:27:2:
Error: Unclassifiable statement at (1)
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/dec_type_print_2.f03:28:2:
Error: Unclassifiable statement at (1)
/vol/gcc/src/hg/gcc-7-bran

[Bug fortran/82865] Option -fdec collides with PDT

2018-06-29 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

--- Comment #12 from Fritz Reese  ---
Author: foreese
Date: Fri Jun 29 20:29:34 2018
New Revision: 262260

URL: https://gcc.gnu.org/viewcvs?rev=262260&root=gcc&view=rev
Log:
Revert r262224 (backport of r262221) as PDTs are not supported in 7-branch.

gcc/fortran/ChangeLog:
-2018-06-28  Fritz Reese  
-
-   PR fortran/82865
-   Backport from trunk.
-   * decl.c (gfc_match_type): Refactor and check for PDT declarations.
-

gcc/testsuite/ChangeLog:
-2018-06-28  Fritz Reese  
-
-   PR fortran/82865
-   Backport from trunk.
-   * gfortran.dg/dec_type_print_2.f03: New testcase.
-

Removed:
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/dec_type_print_2.f03
Modified:
branches/gcc-7-branch/   (props changed)
branches/gcc-7-branch/gcc/ada/s-interr-hwint.adb   (props changed)
branches/gcc-7-branch/gcc/fortran/ChangeLog
branches/gcc-7-branch/gcc/fortran/decl.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/testsuite/gnat.dg/opt65.adb   (props changed)

Propchange: branches/gcc-7-branch/
('svn:mergeinfo' modified)

Propchange: branches/gcc-7-branch/gcc/ada/s-interr-hwint.adb
('svn:mergeinfo' modified)

Propchange: branches/gcc-7-branch/gcc/testsuite/gnat.dg/opt65.adb
('svn:mergeinfo' modified)

[Bug fortran/82865] Option -fdec collides with PDT

2018-06-28 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

--- Comment #11 from Fritz Reese  ---
Author: foreese
Date: Thu Jun 28 16:51:23 2018
New Revision: 262224

URL: https://gcc.gnu.org/viewcvs?rev=262224&root=gcc&view=rev
Log:
2018-06-28  Fritz Reese  

gcc/testsuite/ChangeLog:

PR fortran/82865
Backport from trunk.
* gfortran.dg/dec_type_print_2.f03: New testcase.

gcc/fortran/ChangeLog:

PR fortran/82865
Backport from trunk.
* decl.c (gfc_match_type): Refactor and check for PDT declarations.


Added:
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/dec_type_print_2.f03
  - copied unchanged from r262221,
trunk/gcc/testsuite/gfortran.dg/dec_type_print_2.f03
Modified:
branches/gcc-7-branch/   (props changed)
branches/gcc-7-branch/gcc/ada/s-interr-hwint.adb   (props changed)
branches/gcc-7-branch/gcc/fortran/ChangeLog
branches/gcc-7-branch/gcc/fortran/decl.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/testsuite/gnat.dg/opt65.adb   (props changed)

Propchange: branches/gcc-7-branch/
('svn:mergeinfo' modified)

Propchange: branches/gcc-7-branch/gcc/ada/s-interr-hwint.adb
('svn:mergeinfo' modified)

Propchange: branches/gcc-7-branch/gcc/testsuite/gnat.dg/opt65.adb
('svn:mergeinfo' modified)

[Bug fortran/82865] Option -fdec collides with PDT

2018-06-28 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

--- Comment #10 from Fritz Reese  ---
Author: foreese
Date: Thu Jun 28 16:47:19 2018
New Revision: 262223

URL: https://gcc.gnu.org/viewcvs?rev=262223&root=gcc&view=rev
Log:
2018-06-28  Fritz Reese  

gcc/testsuite/ChangeLog:

PR fortran/82865
Backport from trunk.
* gfortran.dg/dec_type_print_2.f03: New testcase.

gcc/fortran/ChangeLog:

PR fortran/82865
Backport from trunk.
* decl.c (gfc_match_type): Refactor and check for PDT declarations.


Added:
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/dec_type_print_2.f03
Modified:
branches/gcc-8-branch/   (props changed)
branches/gcc-8-branch/contrib/mklog.pl   (props changed)
branches/gcc-8-branch/gcc/ada/libgnarl/s-interr__hwint.adb   (props
changed)
branches/gcc-8-branch/gcc/fortran/ChangeLog
branches/gcc-8-branch/gcc/fortran/decl.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog

Propchange: branches/gcc-8-branch/
('svn:mergeinfo' modified)

Propchange: branches/gcc-8-branch/contrib/mklog.pl
('svn:mergeinfo' modified)

Propchange: branches/gcc-8-branch/gcc/ada/libgnarl/s-interr__hwint.adb
('svn:mergeinfo' modified)

[Bug fortran/82865] Option -fdec collides with PDT

2018-06-28 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Fritz Reese  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Fritz Reese  ---
Fixed in r262221

[Bug fortran/82865] Option -fdec collides with PDT

2018-06-28 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

--- Comment #8 from Fritz Reese  ---
Author: foreese
Date: Thu Jun 28 15:31:24 2018
New Revision: 262221

URL: https://gcc.gnu.org/viewcvs?rev=262221&root=gcc&view=rev
Log:
2018-06-28  Fritz Reese  

gcc/fortran/ChangeLog:

PR fortran/82865
* decl.c (gfc_match_type): Refactor and check for PDT declarations.

gcc/testsuite/ChangeLog:

PR fortran/82865
* gfortran.dg/dec_type_print_2.f03: New testcase.


Added:
trunk/gcc/testsuite/gfortran.dg/dec_type_print_2.f03
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/testsuite/ChangeLog

[Bug fortran/82865] Option -fdec collides with PDT

2018-06-27 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

--- Comment #7 from Fritz Reese  ---
(In reply to Fritz Reese from comment #6)
> ... Though I agree -fdec should rarely be mixed with new
> Fortran, it is actually simple to patch gfc_match_type() so that it does
> match PDTs as a TYPE/PRINT statement. ...

s/does/does NOT/

[Bug fortran/82865] Option -fdec collides with PDT

2018-06-27 Thread foreese at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Fritz Reese  changed:

   What|Removed |Added

   Last reconfirmed|2017-11-06 00:00:00 |2018-6-27
   Assignee|pault at gcc dot gnu.org   |foreese at gcc dot 
gnu.org

--- Comment #6 from Fritz Reese  ---
Actually this is due to gfc_match_type() failing to account for PDT
declarations. The function was introduced in r241518 to allow using TYPE as an
alias for PRINT with -fdec but was not updated when PDT support was introduced
in r251925. Though I agree -fdec should rarely be mixed with new Fortran, it is
actually simple to patch gfc_match_type() so that it does match PDTs as a
TYPE/PRINT statement. I will submit a patch shortly.

[Bug fortran/82865] Option -fdec collides with PDT

2018-03-04 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED

[Bug fortran/82865] Option -fdec collides with PDT

2017-11-30 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Paul Thomas  changed:

   What|Removed |Added

 CC||pault at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |pault at gcc dot gnu.org

--- Comment #5 from Paul Thomas  ---
I agree with the general sentiment that this should probably be a WONT FIX.
However, it is concerning that there is an interaction.

I will put this on on side as one of the longer term TODOs.

Paul

[Bug fortran/82865] Option -fdec collides with PDT

2017-11-06 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

--- Comment #4 from Jerry DeLisle  ---
I would be OK with a hard error. If so, we need to think about any other
similir situations with other modern fortran features. Then we get into a game
of chasing more rabits. Perhaps best to document and just say that -fdec it is
known to be incompatible with some constructs such as PDT and should not be
mixed with modern fortran.

[Bug fortran/82865] Option -fdec collides with PDT

2017-11-06 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Thomas Koenig  changed:

   What|Removed |Added

 CC||tkoenig at gcc dot gnu.org

--- Comment #3 from Thomas Koenig  ---
(In reply to Jerry DeLisle from comment #2)
> This gets into philosophical issue.  The intent of -fdec was to allow old
> DEC codes to be compiled. Old DEC codes do not have PDT.  Any newer codes
> that use PDT should never use -fdec. I vote Invalid or Wont fix resolution.

I concur. Maybe we should document this in the manual or
throw a hard error if a PDT is discovered with one of the dec options
is in place.

[Bug fortran/82865] Option -fdec collides with PDT

2017-11-06 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Jerry DeLisle  changed:

   What|Removed |Added

 CC||jvdelisle at gcc dot gnu.org

--- Comment #2 from Jerry DeLisle  ---
This gets into philosophical issue.  The intent of -fdec was to allow old DEC
codes to be compiled. Old DEC codes do not have PDT.  Any newer codes that use
PDT should never use -fdec. I vote Invalid or Wont fix resolution.

[Bug fortran/82865] Option -fdec collides with PDT

2017-11-06 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82865

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-11-06
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres  ---
Confirmed: never mix f77 extensions with post f90 syntax!-(