public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32
@ 2012-03-26 18:49 hjl.tools at gmail dot com
  2012-03-26 19:21 ` [Bug bootstrap/52730] " steven at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2012-03-26 18:49 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52730
           Summary: [4.8 Regression] bootstrap failure on Linux/ia32
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


On Linux/ia32, revision 185813 gave

/export/gnu/import/svn/gcc-test-ia32corei7/bld/./gcc/gcj
-B/export/gnu/import/svn/gcc-test-ia32corei7/bld/i686-linux/libjava/
-B/export/gnu/import/svn/gcc-test-ia32corei7/bld/./gcc/
-B/usr/local/i686-linux/bin/ -B/usr/local/i686-linux/lib/ -isystem
/usr/local/i686-linux/include -isystem /usr/local/i686-linux/sys-include
-ffloat-store -fomit-frame-pointer -Usun -fclasspath=
-fbootclasspath=../../../src-trunk/libjava/classpath/lib --encoding=UTF-8
-Wno-deprecated -fbootstrap-classes -g -O2 -c
-fsource-filename=../../../src-trunk/libjava/java/lang/Class.java
../../../src-trunk/libjava/classpath/lib/java/lang/Class.class  -fPIC -o
java/lang/.libs/Class.o
jc1: internal compiler error: in assemble_external, at varasm.c:2179
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug bootstrap/52730] [4.8 Regression] bootstrap failure on Linux/ia32
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
@ 2012-03-26 19:21 ` steven at gcc dot gnu.org
  2012-03-26 19:37 ` steven at gcc dot gnu.org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu.org @ 2012-03-26 19:21 UTC (permalink / raw)
  To: gcc-bugs

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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-03-26
                 CC|                            |steven at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |steven at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug bootstrap/52730] [4.8 Regression] bootstrap failure on Linux/ia32
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
  2012-03-26 19:21 ` [Bug bootstrap/52730] " steven at gcc dot gnu.org
@ 2012-03-26 19:37 ` steven at gcc dot gnu.org
  2012-03-26 20:54 ` [Bug java/52730] Java front end emits assembly steven at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu.org @ 2012-03-26 19:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Steven Bosscher <steven at gcc dot gnu.org> 2012-03-26 19:20:45 UTC ---
How disgusting. Java still emits RTL from the front end:

Breakpoint 1, internal_error (gmsgid=0x1551007 "in %s, at %s:%d") at
../../trunk/gcc/diagnostic.c:843
843       va_start (ap, gmsgid);
(gdb) up
#1  0x000000000120a503 in fancy_abort (file=0x135398c
"../../trunk/gcc/varasm.c", line=2179, function=0x1354450 "assemble_external")
at ../../trunk/gcc/diagnostic.c:899
899       internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) 
#2  0x0000000000d8942d in assemble_external (decl=0x7ffff70d7be0) at
../../trunk/gcc/varasm.c:2178
2178      gcc_assert (cgraph_state == CGRAPH_STATE_EXPANSION
(gdb) l
2173      /* This function should only be called if we are expanding, or have
2174         expanded, to RTL.
2175         Ideally, only final.c would be calling this function, but it is
2176         not clear whether that would break things somehow.  See PR 17982
2177         for further discussion.  */
2178      gcc_assert (cgraph_state == CGRAPH_STATE_EXPANSION
2179                  || cgraph_state == CGRAPH_STATE_FINISHED);
2180
2181      if (!DECL_P (decl) || !DECL_EXTERNAL (decl) || !TREE_PUBLIC (decl))
2182        return;
(gdb) p cgraph_state
$1 = CGRAPH_STATE_CONSTRUCTION
(gdb) bt 20
#0  internal_error (gmsgid=0x1551007 "in %s, at %s:%d") at
../../trunk/gcc/diagnostic.c:843
#1  0x000000000120a503 in fancy_abort (file=0x135398c
"../../trunk/gcc/varasm.c", line=2179, function=0x1354450 "assemble_external")
at ../../trunk/gcc/diagnostic.c:899
#2  0x0000000000d8942d in assemble_external (decl=0x7ffff70d7be0) at
../../trunk/gcc/varasm.c:2178
#3  0x00000000006f0c48 in output_addr_const (file=0x1ad94f0, x=0x7ffff71b2c00)
at ../../trunk/gcc/final.c:3568
#4  0x0000000000d89ee4 in assemble_integer_with_op (op=0x135e56d "\t.quad\t",
x=0x7ffff71b2c00) at ../../trunk/gcc/varasm.c:2466
#5  0x0000000000d89fa8 in default_assemble_integer (x=0x7ffff71b2c00, size=8,
aligned_p=1) at ../../trunk/gcc/varasm.c:2482
#6  0x0000000000d8a05c in assemble_integer (x=0x7ffff71b2c00, size=8, align=64,
force=0) at ../../trunk/gcc/varasm.c:2498
#7  0x0000000000d96806 in output_constant (exp=0x7ffff6df5e38, size=8,
align=64) at ../../trunk/gcc/varasm.c:4562
#8  0x00000000004baedf in emit_register_classes (list_p=0x7fffffffd880) at
../../trunk/gcc/java/class.c:2833
#9  0x000000000050b1e5 in java_emit_static_constructor () at
../../trunk/gcc/java/jcf-parse.c:1697
#10 0x000000000050c298 in java_parse_file () at
../../trunk/gcc/java/jcf-parse.c:1978
#11 0x0000000000a5c6a2 in compile_file () at ../../trunk/gcc/toplev.c:556
#12 0x0000000000a5eb5a in do_compile () at ../../trunk/gcc/toplev.c:1936
#13 0x0000000000a5ecaf in toplev_main (argc=33, argv=0x7fffffffdb88) at
../../trunk/gcc/toplev.c:2012
#14 0x00000000005235e3 in main (argc=33, argv=0x7fffffffdb88) at
../../trunk/gcc/main.c:36
(gdb)


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

* [Bug java/52730] Java front end emits assembly
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
  2012-03-26 19:21 ` [Bug bootstrap/52730] " steven at gcc dot gnu.org
  2012-03-26 19:37 ` steven at gcc dot gnu.org
@ 2012-03-26 20:54 ` steven at gcc dot gnu.org
  2012-03-26 21:09 ` ebotcazou at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu.org @ 2012-03-26 20:54 UTC (permalink / raw)
  To: gcc-bugs

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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |java
            Version|4.7.0                       |4.8.0
            Summary|[4.8 Regression] bootstrap  |Java front end emits
                   |failure on Linux/ia32       |assembly

--- Comment #2 from Steven Bosscher <steven at gcc dot gnu.org> 2012-03-26 20:18:49 UTC ---
I believe the following should fix the problem, altough I fail to see how this
can ever have worked with LTO.  HJ, could you test this for me, please? I have
no access to ia32 anymore. 

Index: class.c
===================================================================
--- class.c     (revision 185813)
+++ class.c     (working copy)
@@ -3241,6 +3241,7 @@ java_write_globals (void)
   write_global_declarations ();
   emit_debug_global_declarations (vec, len);
   VEC_free (tree, gc, pending_static_fields);
+  java_emit_static_constructor ();
 }

 #include "gt-java-class.h"
Index: jcf-parse.c
===================================================================
--- jcf-parse.c (revision 185813)
+++ jcf-parse.c (working copy)
@@ -1689,7 +1689,7 @@ predefined_filename_p (tree node)
 /* Generate a function that does all static initialization for this 
    translation unit.  */

-static void
+void
 java_emit_static_constructor (void)
 {
   tree body = NULL;
@@ -1974,8 +1974,6 @@ java_parse_file (void)
   bitmap_obstack_release (&bit_obstack);

  finish:
-  /* Arrange for any necessary initialization to happen.  */
-  java_emit_static_constructor ();
   gcc_assert (global_bindings_p ());
 }

Index: java-tree.h
===================================================================
--- java-tree.h (revision 185813)
+++ java-tree.h (working copy)
@@ -940,6 +940,7 @@ struct GTY((variable_size)) lang_type {
 struct eh_range;

 extern void java_parse_file (void);
+extern void java_emit_static_constructor (void);
 extern tree java_type_for_mode (enum machine_mode, int);
 extern tree java_type_for_size (unsigned int, int);
 extern tree java_truthvalue_conversion (tree);


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

* [Bug java/52730] Java front end emits assembly
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2012-03-26 20:54 ` [Bug java/52730] Java front end emits assembly steven at gcc dot gnu.org
@ 2012-03-26 21:09 ` ebotcazou at gcc dot gnu.org
  2012-03-26 21:20 ` hjl.tools at gmail dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-03-26 21:09 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-03-26 20:53:34 UTC ---
> I believe the following should fix the problem, altough I fail to see how this
> can ever have worked with LTO. 

Java doesn't work with LTO.


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

* [Bug java/52730] Java front end emits assembly
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2012-03-26 21:09 ` ebotcazou at gcc dot gnu.org
@ 2012-03-26 21:20 ` hjl.tools at gmail dot com
  2012-03-26 22:07 ` stevenb.gcc at gmail dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: hjl.tools at gmail dot com @ 2012-03-26 21:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2012-03-26 21:09:17 UTC ---
(In reply to comment #2)
> I believe the following should fix the problem, altough I fail to see how this
> can ever have worked with LTO.  HJ, could you test this for me, please? I have
> no access to ia32 anymore. 

It also failed on Linux/x86-64:

http://gcc.gnu.org/ml/gcc-regression/2012-03/msg00268.html

when configured with

--prefix=/usr/local --enable-clocale=gnu --with-system-zlib --enable-shared
--with-demangler-in-ld --with-fpmath=sse
--enable-languages=c,c++,fortran,java,lto,objc


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

* [Bug java/52730] Java front end emits assembly
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2012-03-26 21:20 ` hjl.tools at gmail dot com
@ 2012-03-26 22:07 ` stevenb.gcc at gmail dot com
  2012-03-27 20:13 ` steven at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: stevenb.gcc at gmail dot com @ 2012-03-26 22:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from stevenb.gcc at gmail dot com <stevenb.gcc at gmail dot com> 2012-03-26 21:31:44 UTC ---
Yes, I've reverted that patch for the time being.


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

* [Bug java/52730] Java front end emits assembly
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
                   ` (5 preceding siblings ...)
  2012-03-26 22:07 ` stevenb.gcc at gmail dot com
@ 2012-03-27 20:13 ` steven at gcc dot gnu.org
  2012-03-27 20:16 ` steven at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu.org @ 2012-03-27 20:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Steven Bosscher <steven at gcc dot gnu.org> 2012-03-27 20:11:44 UTC ---
Created attachment 27018
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27018
Stop using output_constant in class.c

I believe something like this should work, but I don't want to have a named
variable (now I output a constructor for "_Jv_CLS") and I have not yet been
able to figure out how to do so. Input from Java maintainer appreciated...


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

* [Bug java/52730] Java front end emits assembly
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
                   ` (6 preceding siblings ...)
  2012-03-27 20:13 ` steven at gcc dot gnu.org
@ 2012-03-27 20:16 ` steven at gcc dot gnu.org
  2012-03-29 21:03 ` steven at gcc dot gnu.org
  2012-03-29 21:11 ` steven at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu.org @ 2012-03-27 20:16 UTC (permalink / raw)
  To: gcc-bugs

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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu.org

--- Comment #7 from Steven Bosscher <steven at gcc dot gnu.org> 2012-03-27 20:12:21 UTC ---
Java maintainer help needed.


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

* [Bug java/52730] Java front end emits assembly
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
                   ` (7 preceding siblings ...)
  2012-03-27 20:16 ` steven at gcc dot gnu.org
@ 2012-03-29 21:03 ` steven at gcc dot gnu.org
  2012-03-29 21:11 ` steven at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu.org @ 2012-03-29 21:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Steven Bosscher <steven at gcc dot gnu.org> 2012-03-29 21:00:32 UTC ---
Author: steven
Date: Thu Mar 29 21:00:23 2012
New Revision: 185977

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185977
Log:
    PR java/52730
    * class.c (emit_register_classes_in_jcr_section): New function.
    (emit_Jv_RegisterClass_calls): New function, split out from ...
    (emit_register_classes): ... here. Reorganize.  Do not call
    output_constant.


Modified:
    trunk/gcc/java/ChangeLog
    trunk/gcc/java/class.c


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

* [Bug java/52730] Java front end emits assembly
  2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
                   ` (8 preceding siblings ...)
  2012-03-29 21:03 ` steven at gcc dot gnu.org
@ 2012-03-29 21:11 ` steven at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu.org @ 2012-03-29 21:11 UTC (permalink / raw)
  To: gcc-bugs

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

Steven Bosscher <steven at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #9 from Steven Bosscher <steven at gcc dot gnu.org> 2012-03-29 21:03:07 UTC ---
Java now emits a constructor to a static variable with DECL_SECTION_NAME set to
the .jcr section name.


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

end of thread, other threads:[~2012-03-29 21:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-26 18:49 [Bug bootstrap/52730] New: [4.8 Regression] bootstrap failure on Linux/ia32 hjl.tools at gmail dot com
2012-03-26 19:21 ` [Bug bootstrap/52730] " steven at gcc dot gnu.org
2012-03-26 19:37 ` steven at gcc dot gnu.org
2012-03-26 20:54 ` [Bug java/52730] Java front end emits assembly steven at gcc dot gnu.org
2012-03-26 21:09 ` ebotcazou at gcc dot gnu.org
2012-03-26 21:20 ` hjl.tools at gmail dot com
2012-03-26 22:07 ` stevenb.gcc at gmail dot com
2012-03-27 20:13 ` steven at gcc dot gnu.org
2012-03-27 20:16 ` steven at gcc dot gnu.org
2012-03-29 21:03 ` steven at gcc dot gnu.org
2012-03-29 21:11 ` steven at gcc dot gnu.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).