public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41640]  New: [Regression] Compilation failure with "-g": bad assembler?
@ 2009-10-09  7:26 anlauf at gmx dot de
  2009-10-09  9:53 ` [Bug fortran/41640] " rguenth at gcc dot gnu dot org
  2009-10-09 10:02 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: anlauf at gmx dot de @ 2009-10-09  7:26 UTC (permalink / raw)
  To: gcc-bugs

Hi,

the following code fails to compile with Tobias Burnus' snapshot of trunk:

Character Function gfcbug89 (path)
  Character(len=*), Intent(in) :: path

  gfcbug89 = ""
  If (Len_Trim (path) < 1) Return
  gfcbug89 = path(1:1)   ! This assignment makes gfortran 4.5 error out

End Function gfcbug89

% gfc4x -g -c gfcbug89.f90
/tmp/ccmKoGIh.s: Assembler messages:
/tmp/ccmKoGIh.s:44: Error: unknown .loc sub-directive `discriminator'
/tmp/ccmKoGIh.s:44: Error: junk at end of line, first unrecognized character is
`1'
% gfc4x -g -fbounds-check -c gfcbug89.f90
/tmp/ccMBdSjB.s: Assembler messages:
/tmp/ccMBdSjB.s:52: Error: unknown .loc sub-directive `discriminator'
/tmp/ccMBdSjB.s:52: Error: junk at end of line, first unrecognized character is
`1'
/tmp/ccMBdSjB.s:56: Error: unknown .loc sub-directive `discriminator'
/tmp/ccMBdSjB.s:56: Error: junk at end of line, first unrecognized character is
`1'
/tmp/ccMBdSjB.s:69: Error: unknown .loc sub-directive `discriminator'
/tmp/ccMBdSjB.s:69: Error: junk at end of line, first unrecognized character is
`1'
% gfc4x --version
GNU Fortran (GCC) 4.5.0 20091008 (experimental) [trunk revision 152577]
[...]
% as --version
GNU assembler (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
Copyright 2007 Free Software Foundation, Inc.
[...]
This assembler was configured for a target of `x86_64-suse-linux'.


I cannot read assembler for x86_64, but it appears that the lines 41-44
in the first case read:

        .loc 1 10 0
        testl   %eax, %eax
        jle     .L1
        .loc 1 10 0 is_stmt 0 discriminator 1

Any ideas?

Cheers,
-ha


-- 
           Summary: [Regression] Compilation failure with "-g": bad
                    assembler?
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de
  GCC host triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41640


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/41640] [Regression] Compilation failure with "-g": bad assembler?
  2009-10-09  7:26 [Bug fortran/41640] New: [Regression] Compilation failure with "-g": bad assembler? anlauf at gmx dot de
@ 2009-10-09  9:53 ` rguenth at gcc dot gnu dot org
  2009-10-09 10:02 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-09  9:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-10-09 09:53 -------
Check why

gcc_GAS_CHECK_FEATURE([line table discriminator support],
 gcc_cv_as_discriminator,
 [2,19,51],,
[       .text
        .file 1 "conf.c"
        .loc 1 1 0 discriminator 1],,
[AC_DEFINE(HAVE_GAS_DISCRIMINATOR, 1,
  [Define if your assembler supports the .loc discriminator sub-directive.])])

says your gas supports this.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41640


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/41640] [Regression] Compilation failure with "-g": bad assembler?
  2009-10-09  7:26 [Bug fortran/41640] New: [Regression] Compilation failure with "-g": bad assembler? anlauf at gmx dot de
  2009-10-09  9:53 ` [Bug fortran/41640] " rguenth at gcc dot gnu dot org
@ 2009-10-09 10:02 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-09 10:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-10-09 10:01 -------
>says your gas supports this.

Easy this is a binary build with a newer binutils than you have.

So closing as invalid.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41640


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-09 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-09  7:26 [Bug fortran/41640] New: [Regression] Compilation failure with "-g": bad assembler? anlauf at gmx dot de
2009-10-09  9:53 ` [Bug fortran/41640] " rguenth at gcc dot gnu dot org
2009-10-09 10:02 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).