Bug 233349 - gjavah and gcjh wrongly parse -jni and -cni
gjavah and gcjh wrongly parse -jni and -cni
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2007-03-21 15:15 EDT by Stepan Kasal
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version: 4.1.2-6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-28 06:35:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch, not tested (985 bytes, patch)
2007-03-21 15:15 EDT, Stepan Kasal
no flags Details | Diff

  None (edit)
Description Stepan Kasal 2007-03-21 15:15:59 EDT
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 15:15:59 EDT
Created attachment 150612 [details]
patch, not tested
Comment 2 Tom Tromey 2007-03-26 13:08:29 EDT
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 18:17:34 EDT
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.