public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17901] New: max-identifier-length problem with -J option
@ 2004-10-08 21:50 yanait at ornl dot gov
  2004-10-08 21:56 ` [Bug fortran/17901] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: yanait at ornl dot gov @ 2004-10-08 21:50 UTC (permalink / raw)
  To: gcc-bugs

With
GNU Fortran 95 (GCC 4.0.0 20041008 (experimental))

I receive the error

$ ~/gcc/bin/gfortran -J. davi.f95
 In file davi.f95:2

integer :: identifier_length_more_than_32_characters = 123
                                          1
Error: Name at (1) is too long
 In file davi.f95:3

print *, identifier_length_more_than_32_characters
                                        1
Error: Name at (1) is too long


I again tried the following with the extra option "-fmax-identifier-length=63",

$ ./irun/bin/gfortran -J. -fmax-identifier-length=63 davi.f95

but it did make any changes.


Whereas, I did not have the above error when I compiled without the optoin "-J".

$ ~/gcc/bin/gfortran davi.f95
$ ./a.out
         123


for the following source code:
davi.f95

program davi
integer :: identifier_length_more_than_32_characters = 123
print *, identifier_length_more_than_32_characters
end program davi

-- 
           Summary: max-identifier-length problem with -J option
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yanait at ornl dot gov
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17901


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/17901] max-identifier-length problem with -J option
  2004-10-08 21:50 [Bug fortran/17901] New: max-identifier-length problem with -J option yanait at ornl dot gov
@ 2004-10-08 21:56 ` pinskia at gcc dot gnu dot org
  2004-10-08 21:57 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-08 21:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-08 21:56 -------
Confirmed, the problem is that there is no "break;" in options.c:
    case OPT_J:
    case OPT_M:
      gfc_handle_module_path_options (arg);

    case OPT_std_f95:

I will commit an obvious patch soon to fix this problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-08 21:56:38
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17901


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/17901] max-identifier-length problem with -J option
  2004-10-08 21:50 [Bug fortran/17901] New: max-identifier-length problem with -J option yanait at ornl dot gov
  2004-10-08 21:56 ` [Bug fortran/17901] " pinskia at gcc dot gnu dot org
@ 2004-10-08 21:57 ` pinskia at gcc dot gnu dot org
  2004-10-08 22:03 ` cvs-commit at gcc dot gnu dot org
  2004-10-08 22:03 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-08 21:57 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|                            |rejects-valid


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17901


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/17901] max-identifier-length problem with -J option
  2004-10-08 21:50 [Bug fortran/17901] New: max-identifier-length problem with -J option yanait at ornl dot gov
  2004-10-08 21:56 ` [Bug fortran/17901] " pinskia at gcc dot gnu dot org
  2004-10-08 21:57 ` pinskia at gcc dot gnu dot org
@ 2004-10-08 22:03 ` cvs-commit at gcc dot gnu dot org
  2004-10-08 22:03 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-08 22:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-08 22:03 -------
Subject: Bug 17901

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-10-08 22:03:37

Modified files:
	gcc/fortran    : ChangeLog options.c 

Log message:
	2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR fortran/17901
	* options.c (gfc_handle_option): Add break after handing the
	J/M option.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.234&r2=1.235
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/options.c.diff?cvsroot=gcc&r1=1.11&r2=1.12



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17901


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/17901] max-identifier-length problem with -J option
  2004-10-08 21:50 [Bug fortran/17901] New: max-identifier-length problem with -J option yanait at ornl dot gov
                   ` (2 preceding siblings ...)
  2004-10-08 22:03 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-08 22:03 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-08 22:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-08 22:03 -------
Subject: Bug 17901

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-10-08 22:03:37

Modified files:
	gcc/fortran    : ChangeLog options.c 

Log message:
	2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR fortran/17901
	* options.c (gfc_handle_option): Add break after handing the
	J/M option.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.234&r2=1.235
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/options.c.diff?cvsroot=gcc&r1=1.11&r2=1.12


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-08 22:03 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17901


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-08 22:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08 21:50 [Bug fortran/17901] New: max-identifier-length problem with -J option yanait at ornl dot gov
2004-10-08 21:56 ` [Bug fortran/17901] " pinskia at gcc dot gnu dot org
2004-10-08 21:57 ` pinskia at gcc dot gnu dot org
2004-10-08 22:03 ` cvs-commit at gcc dot gnu dot org
2004-10-08 22:03 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).