This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Specs - Brrrr; was: [Fwd: Re: fortran/9038: -ffixed-line-length-none-x f77-cpp-input gives: Warning: unknown register name line-length-none]


Apparently, the fix in

	http://gcc.gnu.org/ml/gcc-patches/2003-01/msg00209.html

wasn't good enough - see example below.

"Wie 't weet, mag 't zeggen!"

--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)
--- Begin Message ---
This seems to be related.

NEW PROBLEM:
----
The option -ffixed-line-length-none is dropped after using -x
f77-cpp-input.
---

This does not work now (g77 version 3.3 pre-release out of cvs), but did
work under g77 version 2.96 (comes with RedHat 7.3).

A small test case to demonstrate is attached.

ll.f :

C this test case demonstrates using CPP to create
C source lines longer than a standard punch card.
#include "pi.h"
       IMPLICIT NONE
       REAL*4 AAAAAAA
       AAAAAAA =  ( PI * PI  * PI)
       PRINT*,AAAAAAA
       END

and pi.h :
#define PI 3.14159265358979323846

So the line is forced over column 72 by the macro expansion. 

The compile error looks like this:

/usr/local/bin/g77 -ffixed-line-length-none -x f77-cpp-input ll.f
ll.f: In program `MAIN__':
ll.f:6: 
          AAAAAAA =  ( 3.14159265358979323846 * 3.14159265358979323846  * 3
                     1                                                     2
Missing close parenthese at (2) needed to match open parenthese at (1)

I will enter this into the gcc bugs database if that is what needs to be
done, unsure if this was a continuation of the previous PR or a new one.


--bud davis



On Sun, 2002-12-22 at 12:52, toon@gcc.gnu.org wrote:
> Synopsis: -ffixed-line-length-none -x f77-cpp-input gives: Warning: unknown register name line-length-none
> 
> Responsible-Changed-From-To: unassigned->toon
> Responsible-Changed-By: toon
> Responsible-Changed-When: Sun Dec 22 11:52:08 2002
> Responsible-Changed-Why:
>     Fortran Maintainer.
> State-Changed-From-To: open->analyzed
> State-Changed-By: toon
> State-Changed-When: Sun Dec 22 11:52:08 2002
> State-Changed-Why:
>     Failes on powerpc-unknown-linux-gnu
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9038
> 

C this test case demonstrates using CPP to create
C source lines longer than a standard punch card.
#include "pi.h"
       IMPLICIT NONE
       REAL*4 AAAAAAA
       AAAAAAA =  ( PI * PI  * PI)
       PRINT*,AAAAAAA
       END
#define PI 3.14159265358979323846
--- End Message ---

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]