Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 233349 - gjavah and gcjh wrongly parse -jni and -cni
Summary: gjavah and gcjh wrongly parse -jni and -cni
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-03-21 19:15 UTC by Stepan Kasal
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version: 4.1.2-6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-03-28 10:35:33 UTC

Attachments (Terms of Use)
patch, not tested (deleted)
2007-03-21 19:15 UTC, Stepan Kasal
no flags Details | Diff

Description Stepan Kasal 2007-03-21 19:15:59 UTC
I noticed that a command starting with "gcjh -jni" reports
   "gcjh: only one of -jni or -cni may be used"
though no -cni was given.

After inspecting the code, I believe that "gjavah -jni -cni" would not complain

Comment 1 Stepan Kasal 2007-03-21 19:15:59 UTC
Created attachment 150612 [details]
patch, not tested

Comment 2 Tom Tromey 2007-03-26 17:08:29 UTC
Wow, embarrassing bug.
Your fix looks pretty good.  I'm testing it, if it works ok
I will check it in.  I'll update the bug when finished.

Comment 3 Tom Tromey 2007-03-26 22:17:34 UTC
Ok, I've checked this in to classpath, gcc trunk, and the gcc rh 4.1 branch.
On the branch it is r123241.

Note You need to log in before you can comment on or make changes to this bug.