This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: fortran/3924: g77 generates code which is rejected by GAS if COFF debugging info is requested
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: pavenis at lanet dot lv
- Cc: djgpp-workers at delorie dot com, gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 May 2002 18:14:25 +0200
- Subject: Re: fortran/3924: g77 generates code which is rejected by GAS if COFF debugging info is requested
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <3CE93944.9583.1336CFC@localhost>
pavenis@lanet.lv wrote:
> Fortran source of test example:
>
> subroutine foo
> common /bar/ a,b
> end
>
> GCC output from: g77 -c -save-temps -gcoff foo.f
>
> Reading specs from c:/djgpp/lib/gcc-lib/djgpp/3.1/specs
> Configured with: ../configure i586-pc-msdosdjgpp --prefix=/dev/env/DJDIR --
> disable-nls
> Thread model: single
> gcc version 3.1
> c:/djgpp/lib/gcc-lib/djgpp/3.1/f771.exe foo.f -quiet -dumpbase foo.f -gcoff -
> version -o foo.s
> GNU F77 version 3.1 (djgpp)
> compiled by GNU C version 3.1.
> c:/djgpp/bin/as.exe --traditional-format -o foo.o foo.s
> foo.s: Assembler messages:
> foo.s:9: Warning: rest of line ignored; first ignored character is `+'
>
> Assembler output
>
> .file "foo.f"
> .section .text
> .p2align 1
> .def _foo_; .val _foo_; .scl 2; .type 041; .endef
> .globl _foo_
> _foo_:
> .def .bf; .val .; .scl 101; .line 1; .endef
> .def _a; .val _bar_; .scl 3; .type 06; .endef
> .def _b; .val _bar_+4; .scl 3; .type 06; .endef
Thanks - that means it can't cope with the _bar_+4 thingie [the offset
of the variable b in the common block bar]. Anyone have a good guess
what part of the compiler issues this, while it (apparently) isn't
allowed by COFF standards ?
Thanks in advance,
--
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
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)