public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/11533] New: Inlining drops static initialization of inner class
@ 2003-07-15 23:47 jsturm at gcc dot gnu dot org
2003-07-20 2:34 ` [Bug java/11533] " pinskia at physics dot uc dot edu
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: jsturm at gcc dot gnu dot org @ 2003-07-15 23:47 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=11533
Summary: Inlining drops static initialization of inner class
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsturm at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
Compile/run the following with -O3. Note this is broken in 3.3 also; I haven't
tested earlier versions.
public class Log {
private static class Singleton {static final Log __instance = new Log();}
public static Log instance() {
return Singleton.__instance;
}
public String toString() {
return "Log";
}
public static void main(String[] args) {
System.out.println(Log.instance());
}
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/11533] Inlining drops static initialization of inner class
2003-07-15 23:47 [Bug java/11533] New: Inlining drops static initialization of inner class jsturm at gcc dot gnu dot org
@ 2003-07-20 2:34 ` pinskia at physics dot uc dot edu
2003-08-23 0:48 ` dhazeghi at yahoo dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-20 2:34 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=11533
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-20 02:34:45
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-20 02:34 -------
I can confirm this on the mainline (20030714).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/11533] Inlining drops static initialization of inner class
2003-07-15 23:47 [Bug java/11533] New: Inlining drops static initialization of inner class jsturm at gcc dot gnu dot org
2003-07-20 2:34 ` [Bug java/11533] " pinskia at physics dot uc dot edu
@ 2003-08-23 0:48 ` dhazeghi at yahoo dot com
2003-11-03 22:44 ` aph at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23 0:48 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=11533
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/11533] Inlining drops static initialization of inner class
2003-07-15 23:47 [Bug java/11533] New: Inlining drops static initialization of inner class jsturm at gcc dot gnu dot org
2003-07-20 2:34 ` [Bug java/11533] " pinskia at physics dot uc dot edu
2003-08-23 0:48 ` dhazeghi at yahoo dot com
@ 2003-11-03 22:44 ` aph at gcc dot gnu dot org
2003-11-12 15:23 ` aph at gcc dot gnu dot org
2003-11-12 15:24 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: aph at gcc dot gnu dot org @ 2003-11-03 22:44 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=11533
aph at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aph at gcc dot gnu dot org
|dot org |
Severity|normal |critical
Status|NEW |ASSIGNED
Target Milestone|--- |3.4
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/11533] Inlining drops static initialization of inner class
2003-07-15 23:47 [Bug java/11533] New: Inlining drops static initialization of inner class jsturm at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-11-03 22:44 ` aph at gcc dot gnu dot org
@ 2003-11-12 15:23 ` aph at gcc dot gnu dot org
2003-11-12 15:24 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: aph at gcc dot gnu dot org @ 2003-11-12 15:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aph at gcc dot gnu dot org 2003-11-12 15:23 -------
2003-11-11 Andrew Haley <aph@redhat.com>
PR java/11533
* lang.c (merge_init_test_initialization): Clear DECL_INITIAL for
init_test_decls being inlined.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11533
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug java/11533] Inlining drops static initialization of inner class
2003-07-15 23:47 [Bug java/11533] New: Inlining drops static initialization of inner class jsturm at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-11-12 15:23 ` aph at gcc dot gnu dot org
@ 2003-11-12 15:24 ` cvs-commit at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-11-12 15:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-11-12 15:24 -------
Subject: Bug 11533
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: aph@gcc.gnu.org 2003-11-12 15:24:42
Modified files:
gcc/java : ChangeLog lang.c parse.y
Log message:
2003-11-12 Andrew Haley <aph@redhat.com>
PR java/11533
* lang.c (merge_init_test_initialization): Clear DECL_INITIAL for
init_test_decls being inlined.
PR java/12890:
* parse.y (do_resolve_class): Check return value from
breakdown_qualified().
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1287&r2=1.1288
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/lang.c.diff?cvsroot=gcc&r1=1.145&r2=1.146
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.453&r2=1.454
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11533
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-11-12 15:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-15 23:47 [Bug java/11533] New: Inlining drops static initialization of inner class jsturm at gcc dot gnu dot org
2003-07-20 2:34 ` [Bug java/11533] " pinskia at physics dot uc dot edu
2003-08-23 0:48 ` dhazeghi at yahoo dot com
2003-11-03 22:44 ` aph at gcc dot gnu dot org
2003-11-12 15:23 ` aph at gcc dot gnu dot org
2003-11-12 15:24 ` cvs-commit 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).