public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kon at iki dot fi" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug java/21428] New: bogus warning: unused parameter 'this'
Date: Fri, 06 May 2005 21:04:00 -0000	[thread overview]
Message-ID: <20050506210427.21428.kon@iki.fi> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2574 bytes --]

kalle@Astalo:~/pikkuohjelmat/java/TESTIT$ echo 'class foo {}' > foo.java
kalle@Astalo:~/pikkuohjelmat/java/TESTIT$ gcj -v -O2 -Wall -W -c foo.java
Using built-in specs.
Reading specs from
/home/kalle/stow/gcc/i686-pc-linux-gnu/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../../../libgcj.spec
rename spec lib to liborig
Target: i686-pc-linux-gnu
Configured with: /home/kalle/src/FOREIGN-CVS/gcc/configure --prefix=/home/kalle
--exec-prefix=/home/kalle/i686-pc-linux-gnu --host=i686-pc-linux-gnu
--build=i686-pc-linux-gnu --with-x-toolkit=gtk --with-gjdoc
--enable-java-awt=gtk,xlib
Thread model: posix
gcc version 4.1.0 20050505 (experimental)

/home/kalle/stow/gcc/i686-pc-linux-gnu/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.0/jc1 foo.java -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc
-fnon-call-exceptions -fno-omit-frame-pointer -fkeep-inline-functions -quiet
-dumpbase foo.java -mtune=pentiumpro -auxbase foo -O2 -Wall -W -version -o
/tmp/ccProouV.s
GNU Java version 4.1.0 20050505 (experimental) (i686-pc-linux-gnu)
	compiled by GNU C version 4.1.0 20050430 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
    /home/kalle/pikkuohjelmat/java/
   
/home/kalle/stow/gcc/i686-pc-linux-gnu/bin/../lib/gcc/../../../share/java/libgcj-4.1.0.jar/ (system) (zip)
foo.java: In class 'foo':
foo.java: In constructor '()':
foo.java:0: warning: unused parameter â**thisâ**
 as -V -Qy -o foo.o /tmp/ccProouV.s
GNU assembler version 2.15 (i386-linux) using BFD version 2.15
kalle@Astalo:~/pikkuohjelmat/java/TESTIT$ 

GCJ should not output that warning.

This causes trouble when building gjdoc with "CFLAGS=-O2 -g -Wall -W"
in the environment.  For some reason, Libtool 1.5.6 passes $CFLAGS to
the Java compiler when checking whether it supports the -c and -o
options together.  Because of the warning, Libtool assumes the
compiler did not support the options.  This breaks the build later
because --resource requires -o.

-- 
           Summary: bogus warning: unused parameter 'this'
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kon at iki dot fi
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


             reply	other threads:[~2005-05-06 21:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-06 21:04 kon at iki dot fi [this message]
2005-05-06 21:13 ` [Bug java/21428] " mark at gcc dot gnu dot org
2005-05-06 21:22 ` [Bug java/21428] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-16 13:06 ` aph at gcc dot gnu dot org
2005-05-26 18:57 ` pinskia at gcc dot gnu dot org
2005-06-30  5:34 ` tromey at gcc dot gnu dot org
2005-06-30  8:58 ` aph at redhat dot com
2005-08-22  3:34 ` mmitchel at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050506210427.21428.kon@iki.fi \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).