public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/26138]  New: Lots of warnings with gcj .jar -> .so
@ 2006-02-06 20:36 overholt at redhat dot com
  2006-02-06 20:37 ` [Bug java/26138] " tromey at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: overholt at redhat dot com @ 2006-02-06 20:36 UTC (permalink / raw)
  To: java-prs

When natively-compiling the Eclipse jars, I get lots of warnings similar to
this:

org/eclipse/swt/internal/SWTEventObject.java:0: warning:
'_otable_syms_org_eclipse_swt_internal_SWTEventObject' defined but not used
org/eclipse/swt/internal/SWTEventObject.java:0: warning:
'_itable_syms_org_eclipse_swt_internal_SWTEventObject' defined but not used

I am compiling this jar like this:

/usr/bin/gcj -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=pentium4
-fasynchronous-unwind-tables -fPIC -findirect-dispatch -fjni
/var/tmp/eclipse-3.1.2-1jpp_4fc-buildroot/usr/lib/gcj/eclipse/org.eclipse.swt.gtk.linux.x86_3.1.1.jar.1.jar
-o
/var/tmp/eclipse-3.1.2-1jpp_4fc-buildroot/usr/lib/gcj/eclipse/org.eclipse.swt.gtk.linux.x86_3.1.1.jar.1.jar.o

$ gcj --version
gcj (GCC) 4.1.0 20060131 (Red Hat 4.1.0-0.20)

i386


-- 
           Summary: Lots of warnings with gcj .jar -> .so
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: overholt at redhat dot com


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


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

* [Bug java/26138] Lots of warnings with gcj .jar -> .so
  2006-02-06 20:36 [Bug java/26138] New: Lots of warnings with gcj .jar -> .so overholt at redhat dot com
@ 2006-02-06 20:37 ` tromey at gcc dot gnu dot org
  2006-02-06 20:59 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-02-06 20:37 UTC (permalink / raw)
  To: java-prs



-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-06 20:37:07
               date|                            |


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


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

* [Bug java/26138] Lots of warnings with gcj .jar -> .so
  2006-02-06 20:36 [Bug java/26138] New: Lots of warnings with gcj .jar -> .so overholt at redhat dot com
  2006-02-06 20:37 ` [Bug java/26138] " tromey at gcc dot gnu dot org
@ 2006-02-06 20:59 ` pinskia at gcc dot gnu dot org
  2006-02-06 21:05 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06 20:59 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-06 20:59 -------
Hmm:
http://gcc.gnu.org/ml/java-patches/2003-q3/msg00722.html

I thought this was fixed.


-- 


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


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

* [Bug java/26138] Lots of warnings with gcj .jar -> .so
  2006-02-06 20:36 [Bug java/26138] New: Lots of warnings with gcj .jar -> .so overholt at redhat dot com
  2006-02-06 20:37 ` [Bug java/26138] " tromey at gcc dot gnu dot org
  2006-02-06 20:59 ` pinskia at gcc dot gnu dot org
@ 2006-02-06 21:05 ` tromey at gcc dot gnu dot org
  2006-02-07 19:23 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-02-06 21:05 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2006-02-06 21:05 -------
Testing a patch.

This may have been fixed, but it fails now.
Setting TREE_USED on the syms decl in GEN_TABLE fixes it.
But maybe that is just papering over the bug?


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-02-06 20:37:07         |2006-02-06 21:05:38
               date|                            |


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


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

* [Bug java/26138] Lots of warnings with gcj .jar -> .so
  2006-02-06 20:36 [Bug java/26138] New: Lots of warnings with gcj .jar -> .so overholt at redhat dot com
                   ` (2 preceding siblings ...)
  2006-02-06 21:05 ` tromey at gcc dot gnu dot org
@ 2006-02-07 19:23 ` tromey at gcc dot gnu dot org
  2006-03-15 20:19 ` tromey at gcc dot gnu dot org
  2006-03-15 23:15 ` aph at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-02-07 19:23 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from tromey at gcc dot gnu dot org  2006-02-07 19:23 -------
I looked at this a bit more.

We don't want to set TREE_USED on the itable syms decl, because
that will still cause it to be emitted, even though it is not used.
It would be preferable to not create the various decls here unless we
know for sure that they will be used.


-- 


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


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

* [Bug java/26138] Lots of warnings with gcj .jar -> .so
  2006-02-06 20:36 [Bug java/26138] New: Lots of warnings with gcj .jar -> .so overholt at redhat dot com
                   ` (3 preceding siblings ...)
  2006-02-07 19:23 ` tromey at gcc dot gnu dot org
@ 2006-03-15 20:19 ` tromey at gcc dot gnu dot org
  2006-03-15 23:15 ` aph at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-03-15 20:19 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from tromey at gcc dot gnu dot org  2006-03-15 20:19 -------
This was fixed on the trunk by:

2006-02-15  Andrew Haley  <aph@redhat.com>

        * class.c (GEN_TABLE): Don't pushdecl *_SYMS_DECL here.
        (make_class_data): pushdecl_top_level TYPE_OTABLE_SYMS_DECL,
        TYPE_ATABLE_SYMS_DECL, TYPE_ITABLE_SYMS_DECL here.

I don't think it was put in 4.1.x -- do we want it there?


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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


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

* [Bug java/26138] Lots of warnings with gcj .jar -> .so
  2006-02-06 20:36 [Bug java/26138] New: Lots of warnings with gcj .jar -> .so overholt at redhat dot com
                   ` (4 preceding siblings ...)
  2006-03-15 20:19 ` tromey at gcc dot gnu dot org
@ 2006-03-15 23:15 ` aph at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-03-15 23:15 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from aph at gcc dot gnu dot org  2006-03-15 23:15 -------
Oh yes, definitely.  It was just waiting for the branch to be unfrozen.


-- 


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


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

end of thread, other threads:[~2006-03-15 23:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 20:36 [Bug java/26138] New: Lots of warnings with gcj .jar -> .so overholt at redhat dot com
2006-02-06 20:37 ` [Bug java/26138] " tromey at gcc dot gnu dot org
2006-02-06 20:59 ` pinskia at gcc dot gnu dot org
2006-02-06 21:05 ` tromey at gcc dot gnu dot org
2006-02-07 19:23 ` tromey at gcc dot gnu dot org
2006-03-15 20:19 ` tromey at gcc dot gnu dot org
2006-03-15 23:15 ` aph 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).