This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cpp/g77 20000710 bug
- To: gcc-bugs at gcc dot gnu dot org
- Subject: cpp/g77 20000710 bug
- From: Norbert Conrad <Norbert dot Conrad at hrz dot uni-giessen dot de>
- Date: Wed, 12 Jul 2000 10:05:14 +0200 (CET)
Hi,
g77 snapshot 20000710 does not compile the code below when preprocessing
is requested (via filename.F or -xf77-cpp-input). It appears that the
cpp option -traditional is not working properly.
My system is a PentiumIII gnu/linux (RedHat 6.1). gcc was configured
./configure --prefix=/opt
# g77 --verbose -save-temps -c dq.F
g77 version 2.96 20000710 (experimental) (from FSF-g77 version 0.5.26 20000710 (experimental))
Reading specs from /opt/lib/gcc-lib/i686-pc-linux/2.96/specs
gcc version 2.96 20000710 (experimental)
/opt/lib/gcc-lib/i686-pc-linux/2.96/cpp -lang-fortran -v -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D_LANGUAGE_FORTRAN -traditional -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentiumpro__ dq.F dq.i
GNU CPP version 2.96 20000710 (experimental) (cpplib)
(i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/opt/include
/opt/lib/gcc-lib/i686-pc-linux/2.96/include
/opt/i686-pc-linux/include
/usr/include
End of search list.
/opt/lib/gcc-lib/i686-pc-linux/2.96/f771 dq.i -quiet -dumpbase dq.F -version -fversion -o dq.s
GNU F77 version 2.96 20000710 (experimental) (i686-pc-linux) compiled by GNU C version 2.96 20000710 (experimental).
GNU Fortran Front End version 0.5.26 20000710 (experimental)
dq.F: In subroutine `a':
dq.F:2:
call b('"')"
^
Invalid form for CALL statement at (^)
#
# cat dq.F
subroutine a
call b('"')
end
#
# cat dq.i
# 1 "dq.F"
subroutine a
call b('"')"
end
# exit
--
Norbert Conrad phone: ++49 641 9913021
Hochschulrechenzentrum email: conrad@hrz.uni-giessen.de
Heinrich-Buff-Ring 44
35392 Giessen
Germany