Bug 42661 - Documented -mmad option not accepted.
Summary: Documented -mmad option not accepted.
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 18:07 UTC by David Daney
Modified: 2013-01-08 16:37 UTC (History)
2 users (show)

See Also:
Host: mips64-unknown-linux
Target: mips64-unknown-linux
Build: mips64-unknown-linux
Known to work: 4.8.0
Known to fail:
Last reconfirmed: 2011-04-11 20:57:21


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Daney 2010-01-08 18:07:23 UTC
$ mips64-linux-gcc --version
mips64-linux-gcc (GCC) 4.5.0 20091201 (experimental) [trunk revision 154864]


The fine GCC documentation says:
-mmad
-mno-mad
    Enable (disable) use of the mad, madu and mul instructions, as provided by the R4650 ISA.

I get:

$ mips64-linux-gcc -march=r5000 -mmad -S hello.c
cc1: error: unrecognized command line option "-mmad"
$ mips64-linux-gcc -march=r5000 -mno-mad -S hello.c
cc1: error: unrecognized command line option "-mno-mad"

But these undocumented options are accpeted:
$ mips64-linux-gcc -march=r5000 -mad -S hello.c
$ mips64-linux-gcc -march=r5000 -mno-ad -S hello.c
Comment 1 Andrew Pinski 2011-04-11 20:57:21 UTC
Confirmed.
Comment 2 Steve Ellcey 2013-01-07 22:16:53 UTC
Author: sje
Date: Mon Jan  7 22:16:45 2013
New Revision: 194998

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194998
Log:
2013-01-07  Steve Ellcey  <sellcey@mips.com>

	PR target/42661
	* config/mips/mips.opt: Change mad to mmad to match documentation.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/mips/mips.opt
Comment 3 Steve Ellcey 2013-01-08 16:37:05 UTC
Fixed on ToT for 4.8 release.