public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/11498] New: asm can't be used to give a variable its own name
@ 2003-07-11 8:02 geoffk at gcc dot gnu dot org
2003-07-11 8:02 ` [Bug middle-end/11498] " geoffk at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2003-07-11 8:02 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=11498
Summary: asm can't be used to give a variable its own name
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: geoffk at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: any
GCC host triplet: any
GCC target triplet: any
This doesn't work:
int foo(void)
{
static int x asm ("x") = 3;
return x++;
}
because of the hacky way that make_decl_rtl tries to determine if
DECL_ASSEMBLER_NAME has already been set. It shouldn't be in that business at
all, that code should be in lhd_set_decl_assembler_name.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
@ 2003-07-11 8:02 ` geoffk at gcc dot gnu dot org
2003-07-11 10:22 ` pinskia at physics dot uc dot edu
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2003-07-11 8:02 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=11498
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-11 08:02:21
date| |
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
2003-07-11 8:02 ` [Bug middle-end/11498] " geoffk at gcc dot gnu dot org
@ 2003-07-11 10:22 ` pinskia at physics dot uc dot edu
2003-07-15 1:11 ` [Bug middle-end/11498] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-11 10:22 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=11498
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |etienne dot lorrain at
| |masroudeau dot com
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-11 10:22 -------
*** Bug 10151 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] [3.3/3.4 Regression] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
2003-07-11 8:02 ` [Bug middle-end/11498] " geoffk at gcc dot gnu dot org
2003-07-11 10:22 ` pinskia at physics dot uc dot edu
@ 2003-07-15 1:11 ` pinskia at physics dot uc dot edu
2003-07-15 13:23 ` pinskia at physics dot uc dot edu
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-15 1:11 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=11498
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Priority|P2 |P1
Summary|asm can't be used to give a |[3.3/3.4 Regression] asm
|variable its own name |can't be used to give a
| |variable its own name
Target Milestone|3.4 |3.3.2
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-15 01:11 -------
This is actually a regression from 2.95.3 and should been marked as so for the old bug.
Looks like this needs to be done for the intermodular patch to work right.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] [3.3/3.4 Regression] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-07-15 1:11 ` [Bug middle-end/11498] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
@ 2003-07-15 13:23 ` pinskia at physics dot uc dot edu
2003-07-16 20:58 ` geoffk at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-15 13:23 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=11498
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-15 13:23 -------
Acording to Phil's regression hunter (I just used 0,0 as the endpoint since I cannot
"compile" the code with it), the test has been failing since at least 2000-12-31, so a
change between 2.95.2 release and then caused this.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] [3.3/3.4 Regression] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-07-15 13:23 ` pinskia at physics dot uc dot edu
@ 2003-07-16 20:58 ` geoffk at gcc dot gnu dot org
2003-07-17 21:53 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2003-07-16 20:58 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=11498
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2003-07-11 08:02:21 |2003-07-16 20:58:46
date| |
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] [3.3/3.4 Regression] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-07-16 20:58 ` geoffk at gcc dot gnu dot org
@ 2003-07-17 21:53 ` cvs-commit at gcc dot gnu dot org
2003-07-17 21:55 ` geoffk at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-07-17 21:53 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=11498
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-07-17 21:52 -------
Subject: Bug 11498
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: geoffk@gcc.gnu.org 2003-07-17 21:52:51
Modified files:
gcc : ChangeLog Makefile.in c-common.h c-lang.c
c-opts.c langhooks.c varasm.c
gcc/objc : objc-lang.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.c-torture/compile: mangle-1.c
Log message:
PR 11498
* Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
(langhooks.o): Add $(GGC_H), gt-langhooks.h.
(GTFILES): Add langhooks.c.
(gt-langhooks.h): New.
* c-common.h (c_static_assembler_name): Prototype.
* c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
* objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
* c-opts.c: Include langhooks-def.h.
(c_static_assembler_name): New.
* langhooks.c: Include ggc.h. Include gt-langhooks.h.
(var_labelno): New.
(lhd_set_decl_assembler_name): Give static objects with context
unique names.
* varasm.c (var_labelno): Delete.
(make_decl_rtl): Don't change the assembler name once it's set.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.546&r2=2.547
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&r1=1.1117&r2=1.1118
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gcc&r1=1.191&r2=1.192
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-lang.c.diff?cvsroot=gcc&r1=1.109&r2=1.110
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-opts.c.diff?cvsroot=gcc&r1=1.75&r2=1.76
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.c.diff?cvsroot=gcc&r1=1.45&r2=1.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c.diff?cvsroot=gcc&r1=1.372&r2=1.373
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-lang.c.diff?cvsroot=gcc&r1=1.35&r2=1.36
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.2891&r2=1.2892
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/mangle-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] [3.3/3.4 Regression] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
` (6 preceding siblings ...)
2003-07-17 21:55 ` geoffk at gcc dot gnu dot org
@ 2003-07-17 21:55 ` geoffk at gcc dot gnu dot org
2003-07-26 2:30 ` neroden at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2003-07-17 21: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=11498
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
------- Additional Comments From geoffk at gcc dot gnu dot org 2003-07-17 21:55 -------
Works for me :-).
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] [3.3/3.4 Regression] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-07-17 21:53 ` cvs-commit at gcc dot gnu dot org
@ 2003-07-17 21:55 ` geoffk at gcc dot gnu dot org
2003-07-17 21:55 ` geoffk at gcc dot gnu dot org
2003-07-26 2:30 ` neroden at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2003-07-17 21: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=11498
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From geoffk at gcc dot gnu dot org 2003-07-17 21:55 -------
Fixed, see last comment.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/11498] [3.3/3.4 Regression] asm can't be used to give a variable its own name
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
` (7 preceding siblings ...)
2003-07-17 21:55 ` geoffk at gcc dot gnu dot org
@ 2003-07-26 2:30 ` neroden at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: neroden at gcc dot gnu dot org @ 2003-07-26 2:30 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=11498
neroden at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.2 |3.4
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-07-26 2:30 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-11 8:02 [Bug middle-end/11498] New: asm can't be used to give a variable its own name geoffk at gcc dot gnu dot org
2003-07-11 8:02 ` [Bug middle-end/11498] " geoffk at gcc dot gnu dot org
2003-07-11 10:22 ` pinskia at physics dot uc dot edu
2003-07-15 1:11 ` [Bug middle-end/11498] [3.3/3.4 Regression] " pinskia at physics dot uc dot edu
2003-07-15 13:23 ` pinskia at physics dot uc dot edu
2003-07-16 20:58 ` geoffk at gcc dot gnu dot org
2003-07-17 21:53 ` cvs-commit at gcc dot gnu dot org
2003-07-17 21:55 ` geoffk at gcc dot gnu dot org
2003-07-17 21:55 ` geoffk at gcc dot gnu dot org
2003-07-26 2:30 ` neroden 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).