public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed.
@ 2005-02-19  1:17 dir at lanl dot gov
  2005-02-19  2:23 ` [Bug fortran/20063] " sgk at troutmask dot apl dot washington dot edu
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: dir at lanl dot gov @ 2005-02-19  1:17 UTC (permalink / raw)
  To: gcc-bugs

I get this error with the Macintosh gfortran from the 20050213 package with some
of my programs.

[dranta:~/tests/gfortran] dir% gfortran -c block.f
/var/tmp//ccu5xNom.s:28:Bad Absolute Expression, absolute 0 assumed.
/var/tmp//ccu5xNom.s:28:Repeat < 0, .space ignored
/var/tmp//ccu5xNom.s:88:Bad Absolute Expression, absolute 0 assumed.
/var/tmp//ccu5xNom.s:88:Repeat < 0, .space ignored
[dranta:~/tests/gfortran] dir% cat  block.f
      block data blkdat
      character*8 names                                                 vax
      common/vfile/names(60)                                            vax
      data names / 'rstxyz', 'disk05', 'disk06', 'thrxyz', '      ',    noto
     1             '      ', 'disk01', 'disk02', 'n3plot', 'n3dump',    noto
     2             'disk11', 'disk12', 'strxyz', 'n3runr', 'itrcnt',    noto
     3             '      ', '      ', 'xyz123', 28*'      ',           noto
     4             'n3dhsp','n3data', 10*'      ', 'tty', '      '/     noto
      end

-- 
           Summary: gfortran assembler error - : Bad Absolute Expression,
                    absolute 0 assumed.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dir at lanl dot gov
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.8.0


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


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

* [Bug fortran/20063] gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed.
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
@ 2005-02-19  2:23 ` sgk at troutmask dot apl dot washington dot edu
  2005-02-19  2:25 ` [Bug fortran/20063] gfortran assembler error, n*'xxxx' is broken pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sgk at troutmask dot apl dot washington dot edu @ 2005-02-19  2:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sgk at troutmask dot apl dot washington dot edu  2005-02-18 21:01 -------
Your code compiles fine on amd64-*-freebsd where I'm using a gfortran
form 20050218 sources.  I do get a warning though

troutmask:kargl[205] /usr/tmp/sgk/bin/gfc -c e.f
/var/tmp/ccvV0Vua.s: Assembler messages:
/var/tmp/ccvV0Vua.s:39: Warning: .space repeat count is zero, ignored
/var/tmp/ccvV0Vua.s:99: Warning: .space repeat count is zero, ignored

I suspect that this a target specific bug or it could be related to
a serious bug introduced on 2/13 and fix last night.

-- 


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


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

* [Bug fortran/20063] gfortran assembler error, n*'xxxx' is broken
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
  2005-02-19  2:23 ` [Bug fortran/20063] " sgk at troutmask dot apl dot washington dot edu
@ 2005-02-19  2:25 ` pinskia at gcc dot gnu dot org
  2005-02-19  2:33 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-19  2:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-18 21:06 -------
Confirmed, reduced to:
      block data blkdat
      character*8 names
      common/vfile/names(3)
      data names / 'a',2*'    '/
      end

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-18 21:06:33
               date|                            |
            Summary|gfortran assembler error - :|gfortran assembler error,
                   |Bad Absolute Expression,    |n*'xxxx' is broken
                   |absolute 0 assumed.         |


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


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

* [Bug fortran/20063] gfortran assembler error, n*'xxxx' is broken
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
  2005-02-19  2:23 ` [Bug fortran/20063] " sgk at troutmask dot apl dot washington dot edu
  2005-02-19  2:25 ` [Bug fortran/20063] gfortran assembler error, n*'xxxx' is broken pinskia at gcc dot gnu dot org
@ 2005-02-19  2:33 ` pinskia at gcc dot gnu dot org
  2005-02-19  3:29 ` [Bug fortran/20063] n*'xxxx' disables padding tobi at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-19  2:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-18 21:07 -------
(In reply to comment #1)
> Your code compiles fine on amd64-*-freebsd where I'm using a gfortran
> form 20050218 sources.  I do get a warning though
Darwin's as treats those warnings as errors as they really should as this is a bug
in the front-end.
If you take a look at my reduced testcase and look at the assembly ouput you will see that
the assembly outputed is wrong.

-- 


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


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

* [Bug fortran/20063] n*'xxxx' disables padding
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
                   ` (2 preceding siblings ...)
  2005-02-19  2:33 ` pinskia at gcc dot gnu dot org
@ 2005-02-19  3:29 ` tobi at gcc dot gnu dot org
  2005-02-19  3:30 ` tobi at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-02-19  3:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-02-18 21:35 -------
>From the generated assembly
        .ascii  "a       "
        .zero   4294967292
        .ascii  "    "
        .zero   4
        .ascii  "    "
        .zero   4
        .zero   4
i.e. the elements that are filled in with a repeat count are not padded to the
correct length.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gfortran assembler error,   |n*'xxxx' disables padding
                   |n*'xxxx' is broken          |


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


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

* [Bug fortran/20063] n*'xxxx' disables padding
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
                   ` (3 preceding siblings ...)
  2005-02-19  3:29 ` [Bug fortran/20063] n*'xxxx' disables padding tobi at gcc dot gnu dot org
@ 2005-02-19  3:30 ` tobi at gcc dot gnu dot org
  2005-04-06 18:27 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-02-19  3:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-02-18 21:37 -------
Well, more precisely: they're zero-padded instead of being padded with blanks.

-- 


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


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

* [Bug fortran/20063] n*'xxxx' disables padding
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
                   ` (4 preceding siblings ...)
  2005-02-19  3:30 ` tobi at gcc dot gnu dot org
@ 2005-04-06 18:27 ` pinskia at gcc dot gnu dot org
  2005-07-09 15:57 ` giovannibajo at libero dot it
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-06 18:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-06 18:27 -------
*** Bug 20798 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |federico dot carminati at
                   |                            |cern dot ch


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


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

* [Bug fortran/20063] n*'xxxx' disables padding
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
                   ` (5 preceding siblings ...)
  2005-04-06 18:27 ` pinskia at gcc dot gnu dot org
@ 2005-07-09 15:57 ` giovannibajo at libero dot it
  2005-07-25  7:52 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: giovannibajo at libero dot it @ 2005-07-09 15:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-07-09 15:48 -------
This will likely change to an ICE in varasm.c after my CONSTRUCTOR patch goes 
in.

-- 


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


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

* [Bug fortran/20063] n*'xxxx' disables padding
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
                   ` (6 preceding siblings ...)
  2005-07-09 15:57 ` giovannibajo at libero dot it
@ 2005-07-25  7:52 ` cvs-commit at gcc dot gnu dot org
  2005-07-25  8:48 ` cvs-commit at gcc dot gnu dot org
  2005-07-25 12:58 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-25  7:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-25 07:51 -------
Subject: Bug 20063

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jakub@gcc.gnu.org	2005-07-25 07:51:12

Modified files:
	gcc/fortran    : ChangeLog data.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: data_4.f90 

Log message:
	PR fortran/20063
	* data.c (gfc_assign_data_value_range): Call
	create_character_initializer if last_ts is a character type.
	
	* gfortran.fortran-torture/execute/data_4.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.501&r2=1.502
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/data.c.diff?cvsroot=gcc&r1=1.13&r2=1.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5813&r2=1.5814
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/data_4.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug fortran/20063] n*'xxxx' disables padding
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
                   ` (7 preceding siblings ...)
  2005-07-25  7:52 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-25  8:48 ` cvs-commit at gcc dot gnu dot org
  2005-07-25 12:58 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-25  8:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-25 08:47 -------
Subject: Bug 20063

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	jakub@gcc.gnu.org	2005-07-25 08:47:01

Modified files:
	gcc/fortran    : ChangeLog data.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gfortran.fortran-torture/execute: data_4.f90 

Log message:
	PR fortran/20063
	* data.c (gfc_assign_data_value_range): Call
	create_character_initializer if last_ts is a character type.
	
	* gfortran.fortran-torture/execute/data_4.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.94&r2=1.335.2.95
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/data.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.11&r2=1.11.10.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.299&r2=1.5084.2.300
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/data_4.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug fortran/20063] n*'xxxx' disables padding
  2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
                   ` (8 preceding siblings ...)
  2005-07-25  8:48 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-25 12:58 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-25 12:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-25 12:53 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.2


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


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

end of thread, other threads:[~2005-07-25 12:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-19  1:17 [Bug fortran/20063] New: gfortran assembler error - : Bad Absolute Expression, absolute 0 assumed dir at lanl dot gov
2005-02-19  2:23 ` [Bug fortran/20063] " sgk at troutmask dot apl dot washington dot edu
2005-02-19  2:25 ` [Bug fortran/20063] gfortran assembler error, n*'xxxx' is broken pinskia at gcc dot gnu dot org
2005-02-19  2:33 ` pinskia at gcc dot gnu dot org
2005-02-19  3:29 ` [Bug fortran/20063] n*'xxxx' disables padding tobi at gcc dot gnu dot org
2005-02-19  3:30 ` tobi at gcc dot gnu dot org
2005-04-06 18:27 ` pinskia at gcc dot gnu dot org
2005-07-09 15:57 ` giovannibajo at libero dot it
2005-07-25  7:52 ` cvs-commit at gcc dot gnu dot org
2005-07-25  8:48 ` cvs-commit at gcc dot gnu dot org
2005-07-25 12:58 ` 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).