delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/20/12:35:13

Sender: toon AT delorie DOT com
Message-ID: <3CE920E1.7B6F2448@moene.indiv.nluug.nl>
Date: Mon, 20 May 2002 18:14:25 +0200
From: Toon Moene <toon AT moene DOT indiv DOT nluug DOT nl>
Organization: Moene Computational Physics, Maartensdijk, The Netherlands
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.17 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: pavenis AT lanet DOT lv
CC: djgpp-workers AT delorie DOT com, gcc-bugs AT gcc DOT gnu DOT org
Subject: Re: fortran/3924: g77 generates code which is rejected by GAS if COFF
debugging info is requested
References: <3CE93944 DOT 9583 DOT 1336CFC AT localhost>
Reply-To: djgpp-workers AT delorie DOT com

pavenis AT lanet DOT 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 AT moene DOT indiv DOT nluug DOT 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)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019