Bug 3924 - g77 generates code which is rejected by GAS if COFF debugging info is requested
Summary: g77 generates code which is rejected by GAS if COFF debugging info is requested
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 3.0.1
: P3 normal
Target Milestone: ---
Assignee: Toon Moene
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-03 09:06 UTC by Andris Pavenis
Modified: 2003-09-23 22:14 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
gcofferr.tgz (2.14 KB, application/x-gzip )
2003-05-21 15:17 UTC, Andris Pavenis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andris Pavenis 2001-08-03 09:06:01 UTC
Both gcc-3.0 and gcc-3.0.1 20010802 (prerelease) built for target 
i586-pc-msdosdjgpp generates assemebler output rejected by GAS (binutils-2.11.2)  if -COFF debugging info is requested (-gcoff) compiiling LAPACK tests 

-gcoff is default for DJGPP so -g is the same as -gcoff

This problem doesn't appear with stabs debugging info.
FORTRAN source (from LAPACK) and assembler output are in 
attached archive

command line:
   g77 -v -save-temps -g -O2 -c xerbla.f

Release:
gcc-3.0 release and gcc-3.0.1 20010802 (prerelease)

Environment:
DJGPP, binutils-2.11.2,. Tests are done in DOS session under Win98SE
Comment 1 Toon Moene 2002-05-20 07:19:28 UTC
Responsible-Changed-From-To: unassigned->toon
Responsible-Changed-Why: Fortran maintainer.
Comment 2 Toon Moene 2002-05-20 07:19:28 UTC
State-Changed-From-To: open->feedback
State-Changed-Why: Andris, I just saw that you were able to build gcc-3.1
    for msdosdjgpp - Could you check if this still is a problem ?
    
    Thanks in advance.
Comment 3 Toon Moene 2002-07-10 14:42:03 UTC
State-Changed-From-To: feedback->analyzed
State-Changed-Why: It's clear what's wrong now - the COFF emitter shouldn't
    accept A+IOFFSET addresses (or better, accept them but not
    try to emit debug info for them.
Comment 4 Richard Henderson 2002-09-16 23:06:39 UTC
State-Changed-From-To: analyzed->closed
State-Changed-Why: http://gcc.gnu.org/ml/gcc-patches/2002-09/msg01018.html
Comment 5 Richard Henderson 2002-09-17 06:05:54 UTC
From: rth@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: fortran/3924
Date: 17 Sep 2002 06:05:54 -0000

 CVSROOT:	/cvs/gcc
 Module name:	gcc
 Changes by:	rth@gcc.gnu.org	2002-09-16 23:05:54
 
 Modified files:
 	gcc            : ChangeLog sdbout.c 
 
 Log message:
 	PR fortran/3924
 	* sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
 
 Patches:
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=1.15451&r2=1.15452
 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/sdbout.c.diff?cvsroot=gcc&r1=1.71&r2=1.72