This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

java/3490: internal error using static synchronized



>Number:         3490
>Category:       java
>Synopsis:       internal error using static synchronized
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 30 03:16:04 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Patrik Hagglund <patha@softlab.ericsson.se>
>Release:        3.0 (Debian GNU/Linux)
>Organization:
The Debian project
>Environment:
System: Debian GNU/Linux (testing/unstable)
Architecture: i686
	
host: i386-linux
build: i386-linux
target: i386-linux
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
[ Reported to the Debian BTS as report #99038.
  Please CC 99038-quiet@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/99038 ]
 	

[ first sent to http://gcc.gnu.org/ml/java/2001-05/msg00311.html]

//  gcj-3.0 -c -O1 Bug.java
//  Bug.java: In class `Bug':
//  Bug.java: In method `Bug.get()':
//  Bug.java:3: Internal error: Segmentation fault

class Bug {
    static synchronized Object get(int i) { return null; }
    static synchronized Object get() { return get(1); }
}


Tom Tromey added: This fails for me (on x86) with -O1, but not with -O0.

>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]