Bug 233349 - gjavah and gcjh wrongly parse -jni and -cni
Summary: gjavah and gcjh wrongly parse -jni and -cni
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
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
Clone Of:
Environment:
Last Closed: 2007-03-28 10:35:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch, not tested (985 bytes, patch)
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
though.

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.