--- Begin Message ---
- From: bud davis <bdavis11 at directvinternet dot com>
- To: toon at gcc dot gnu dot org
- Date: 17 Jan 2003 03:44:56 -0700
- Subject: Re: fortran/9038: -ffixed-line-length-none -x f77-cpp-input gives:Warning: unknown register name line-length-none
- Envelope-to: toon@moene.indiv.nluug.nl
- References: <20021222195209.27986.qmail@sources.redhat.com>
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 ---