This is the mail archive of the gcc-bugs@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]

Re: fortran/3924: g77 generates code which is rejected by GAS if COFF debugging info is requested


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)


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