public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/11387] New: using stop without any argument
@ 2003-07-01 3:20 pinskia at physics dot uc dot edu
2003-07-05 19:55 ` [Bug fortran/11387] " dhazeghi at yahoo dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-01 3:20 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11387
Summary: using stop without any argument
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at physics dot uc dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-apple-darwin6.6
Using stop with any argument cause no data to be output in the asm which confusses the
darwin's as:
/var/tmp//ccZrWjym.s:18:section difference relocatable subtraction expression, "LC0"
minus "L00000000001$pb" using a symbol at the end of section will not produce an
assembly time constant
/var/tmp//ccZrWjym.s:18:use a symbol with a constant value created with an assignment
instead of the expression, L_const_sym = LC0 - L00000000001$pb
/var/tmp//ccZrWjym.s:17:section difference relocatable subtraction expression, "LC0"
minus "L00000000001$pb" using a symbol at the end of section will not produce an
assembly time constant
/var/tmp//ccZrWjym.s:17:use a symbol with a constant value created with an assignment
instead of the expression, L_const_sym = LC0 - L00000000001$pb
The way to fix this would be output one byte so it would not confuse the Darwin's as.
Note that you need download the update to the compiler package to get the new version
of as which has this error.
source:
PROGRAM DUMB
STOP
END
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/11387] using stop without any argument
2003-07-01 3:20 [Bug fortran/11387] New: using stop without any argument pinskia at physics dot uc dot edu
@ 2003-07-05 19:55 ` dhazeghi at yahoo dot com
2003-07-05 19:59 ` pinskia at physics dot uc dot edu
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-05 19:55 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11387
------- Additional Comments From dhazeghi at yahoo dot com 2003-07-05 19:55 -------
Andrew, can you post the assembly (produced from this) that Apple's newer assembler doesn't
like? Thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/11387] using stop without any argument
2003-07-01 3:20 [Bug fortran/11387] New: using stop without any argument pinskia at physics dot uc dot edu
2003-07-05 19:55 ` [Bug fortran/11387] " dhazeghi at yahoo dot com
@ 2003-07-05 19:59 ` pinskia at physics dot uc dot edu
2003-07-05 20:18 ` dhazeghi at yahoo dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-05 19:59 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11387
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-05 19:59 -------
.data
.const
.align 2
LC0: <--- no is nothing below this!!!
.text
.align 2
.globl _MAIN__
_MAIN__:
mflr r2
bcl 20,31,"L00000000001$pb"
"L00000000001$pb":
stw r31,-4(r1)
li r4,0
mflr r31
stw r2,8(r1)
stwu r1,-80(r1)
addis r2,r31,ha16(LC0-"L00000000001$pb") <---errors here
la r3,lo16(LC0-"L00000000001$pb")(r2) <---and here
bl L_s_stop$stub
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/11387] using stop without any argument
2003-07-01 3:20 [Bug fortran/11387] New: using stop without any argument pinskia at physics dot uc dot edu
2003-07-05 19:55 ` [Bug fortran/11387] " dhazeghi at yahoo dot com
2003-07-05 19:59 ` pinskia at physics dot uc dot edu
@ 2003-07-05 20:18 ` dhazeghi at yahoo dot com
2003-07-05 20:21 ` pinskia at physics dot uc dot edu
2003-07-27 6:41 ` pinskia at physics dot uc dot edu
4 siblings, 0 replies; 6+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-07-05 20:18 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11387
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-05 20:18:54
date| |
------- Additional Comments From dhazeghi at yahoo dot com 2003-07-05 20:18 -------
Confirmed then. Is this really a bug in gcc, or in the assembler? Whatever it is, it's going to cause a
lot of people trouble, so updating to "critical" severity.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/11387] using stop without any argument
2003-07-01 3:20 [Bug fortran/11387] New: using stop without any argument pinskia at physics dot uc dot edu
` (2 preceding siblings ...)
2003-07-05 20:18 ` dhazeghi at yahoo dot com
@ 2003-07-05 20:21 ` pinskia at physics dot uc dot edu
2003-07-27 6:41 ` pinskia at physics dot uc dot edu
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-05 20:21 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11387
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-05 20:21 -------
In fact it already has, that is the reason why I reported it, someone on the darwin-
development list found it.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/11387] using stop without any argument
2003-07-01 3:20 [Bug fortran/11387] New: using stop without any argument pinskia at physics dot uc dot edu
` (3 preceding siblings ...)
2003-07-05 20:21 ` pinskia at physics dot uc dot edu
@ 2003-07-27 6:41 ` pinskia at physics dot uc dot edu
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-27 6:41 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11387
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-27 06:41 -------
Fixed by:
2003-07-26 Geoffrey Keating
* varasm.c (output_constant_def_contents): Use
ASM_DECLARE_CONSTANT_NAME if defined.
* doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
* config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
objects get at least one byte to prevent assembler problems.
(ASM_DECLARE_CONSTANT_NAME): New.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-07-27 6:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-01 3:20 [Bug fortran/11387] New: using stop without any argument pinskia at physics dot uc dot edu
2003-07-05 19:55 ` [Bug fortran/11387] " dhazeghi at yahoo dot com
2003-07-05 19:59 ` pinskia at physics dot uc dot edu
2003-07-05 20:18 ` dhazeghi at yahoo dot com
2003-07-05 20:21 ` pinskia at physics dot uc dot edu
2003-07-27 6:41 ` pinskia at physics dot uc dot edu
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).