This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Updated: Display all the target switches for SH compiler's '--target-help' option


Hi All,

Following is the modified patch to display the target switches when
--target-help option is given.

gcc/ChangeLog
2003-05-09 Rekha Bhintade <rekhad@kpitcummins.com>

	* gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
switches when --target-help option is specified. 

========================================================================
====================
*** gcc/gcc/config/sh/sh.h.orig	Thu May 22 11:35:32 2003
--- gcc/gcc/config/sh/sh.h	Thu May 22 12:42:05 2003
***************
*** 280,300 ****
  #define TARGET_SWITCHES  			\
  { {"1",	        TARGET_NONE, "" },		\
!   {"1",	        SELECT_SH1, "" },		\
    {"2",	        TARGET_NONE, "" },		\
!   {"2",	        SELECT_SH2, "" },		\
    {"2e",        TARGET_NONE, "" },		\
!   {"2e",        SELECT_SH2E, "" },		\
    {"3",	        TARGET_NONE, "" },		\
!   {"3",	        SELECT_SH3, "" },		\
    {"3e",	TARGET_NONE, "" },		\
!   {"3e",	SELECT_SH3E, "" },		\
    {"4-single-only",	TARGET_NONE, "" },	\
!   {"4-single-only",	SELECT_SH4_SINGLE_ONLY, "" },	\
    {"4-single",	TARGET_NONE, "" },		\
!   {"4-single",	SELECT_SH4_SINGLE, "" },	\
    {"4-nofpu",	TARGET_NONE, "" },		\
!   {"4-nofpu",	SELECT_SH4_NOFPU, "" },		\
    {"4",	        TARGET_NONE, "" },		\
!   {"4",	        SELECT_SH4, "" }, 		\
    {"5-64media",	TARGET_NONE, "" },		\
    {"5-64media", SELECT_SH5_64, "Generate 64-bit SHmedia code" }, \
--- 280,300 ----
  #define TARGET_SWITCHES  			\
  { {"1",	        TARGET_NONE, "" },		\
!   {"1",	        SELECT_SH1, "Generate SH1 code" },
\
    {"2",	        TARGET_NONE, "" },		\
!   {"2",	        SELECT_SH2, "Generate SH2 code" },
\
    {"2e",        TARGET_NONE, "" },		\
!   {"2e",        SELECT_SH2E, "Generate SH2e code" },		\
    {"3",	        TARGET_NONE, "" },		\
!   {"3",	        SELECT_SH3, "Generate SH3 code" },
\
    {"3e",	TARGET_NONE, "" },		\
!   {"3e",	SELECT_SH3E, "Generate SH3e code" },		\
    {"4-single-only",	TARGET_NONE, "" },	\
!   {"4-single-only",	SELECT_SH4_SINGLE_ONLY, "Generate only
single-precision SH4 code" },	\
    {"4-single",	TARGET_NONE, "" },		\
!   {"4-single",	SELECT_SH4_SINGLE, "Generate default
single-precision SH4 code" },	\
    {"4-nofpu",	TARGET_NONE, "" },		\
!   {"4-nofpu",	SELECT_SH4_NOFPU, "Generate SH4 FPU-less code" },
\
    {"4",	        TARGET_NONE, "" },		\
!   {"4",	        SELECT_SH4, "Generate SH4 code" },
\
    {"5-64media",	TARGET_NONE, "" },		\
    {"5-64media", SELECT_SH5_64, "Generate 64-bit SHmedia code" }, \
***************
*** 309,327 ****
    {"5-compact-nofpu", TARGET_NONE, "" },	\
    {"5-compact-nofpu", SELECT_SH5_COMPACT_NOFPU, "Generate FPU-less
SHcompact code" }, \
!   {"b",		-LITTLE_ENDIAN_BIT, "" },  	\
!   {"bigtable", 	BIGTABLE_BIT, "" },		\
!   {"dalign",  	DALIGN_BIT, "" },		\
    {"fmovd",  	FMOVD_BIT, "" },		\
!   {"hitachi",	HITACHI_BIT, "" },		\
!   {"nomacsave", NOMACSAVE_BIT, "" },		\
!   {"ieee",  	IEEE_BIT, "" },			\
    {"isize", 	ISIZE_BIT, "" },		\
!   {"l",		LITTLE_ENDIAN_BIT, "" },  	\
    {"no-ieee",  	-IEEE_BIT, "" },		\
    {"padstruct", PADSTRUCT_BIT, "" },    	\
!   {"prefergot",	PREFERGOT_BIT, "" },		\
!   {"relax",	RELAX_BIT, "" },		\
!   {"space", 	SPACE_BIT, "" },		\
!   {"usermode",	USERMODE_BIT, "" },		\
    SUBTARGET_SWITCHES                            \
    {"",   	TARGET_DEFAULT, "" } 		\
--- 309,327 ----
    {"5-compact-nofpu", TARGET_NONE, "" },	\
    {"5-compact-nofpu", SELECT_SH5_COMPACT_NOFPU, "Generate FPU-less
SHcompact code" }, \
!   {"b",		-LITTLE_ENDIAN_BIT, "Generate code in big endian
mode" },  	\
!   {"bigtable", 	BIGTABLE_BIT, "Generate 32-bit offsets in switch
tables" },		\
!   {"dalign",  	DALIGN_BIT, "Aligns doubles at 64-bit
boundaries" },		\
    {"fmovd",  	FMOVD_BIT, "" },		\
!   {"hitachi",	HITACHI_BIT, "Follow Renesas (formerly Hitachi) / SuperH
calling conventions" },		\
!   {"nomacsave", NOMACSAVE_BIT, "Mark MAC register as call-clobbered"
},		\
!   {"ieee",  	IEEE_BIT, "Increase the IEEE compliance for
floating-point code" },			\
    {"isize", 	ISIZE_BIT, "" },		\
!   {"l",		LITTLE_ENDIAN_BIT, "Generate code in little
endian mode" },  	\
    {"no-ieee",  	-IEEE_BIT, "" },		\
    {"padstruct", PADSTRUCT_BIT, "" },    	\
!   {"prefergot",	PREFERGOT_BIT, "Emit function-calls using global
offset table when generating PIC" },		\
!   {"relax",	RELAX_BIT, "Shorten address references during linking"
},		\
!   {"space", 	SPACE_BIT, "Deprecated. Use -Os instead" },
\
!   {"usermode",	USERMODE_BIT, "Generate library function call to
invalidate instruction cache entries after fixing trampoline" },
\
    SUBTARGET_SWITCHES                            \
    {"",   	TARGET_DEFAULT, "" } 		\

Thanks & regards,
Rekha Bhintade
KPIT Cummins Infosystem Ltd.
 



------------------------------------------------------------------------
-----
Free download of GNUSH and GNUH8 tool chains for Hitachi's SH and H8
Series.
The following site also offers free support to European customers.
Read more at http://www.gnush.com and http://www.gnuh8.com
Latest versions of GNUSH and GNUH8 are released on April 8, 2003.
------------------------------------------------------------------------
----- 



 <<sh.h.diff>> 


begin 666 sh.h.diff
M*BHJ(&=C8R]G8V,O8V]N9FEG+W-H+W-H+F@N;W)I9PE4:'4@36%Y(#(R(#$Q
M.C,U.C,R(#(P,#,*+2TM(&=C8R]G8V,O8V]N9FEG+W-H+W-H+F@)5&AU($UA
M>2 R,B Q,CHT,CHP-2 R,# S"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@,C@P+#,P
M," J*BHJ"B @(V1E9FEN92!405)'151?4U=)5$-(15,@( D)"5P*("![('LB
M,2(L"2 @(" @(" @5$%21T547TY/3D4L("(B('TL"0E<"B$@("![(C$B+ D@
M(" @(" @(%-%3$5#5%]32#$L("(B('TL"0E<"B @("![(C(B+ D@(" @(" @
M(%1!4D=%5%].3TY%+" B(B!]+ D)7 HA(" @>R(R(BP)(" @(" @("!314Q%
M0U1?4T@R+" B(B!]+ D)7 H@(" @>R(R92(L(" @(" @("!405)'151?3D].
M12P@(B(@?2P)"5P*(2 @('LB,F4B+" @(" @(" @4T5,14-47U-(,D4L("(B
M('TL"0E<"B @("![(C,B+ D@(" @(" @(%1!4D=%5%].3TY%+" B(B!]+ D)
M7 HA(" @>R(S(BP)(" @(" @("!314Q%0U1?4T@S+" B(B!]+ D)7 H@(" @
M>R(S92(L"51!4D=%5%].3TY%+" B(B!]+ D)7 HA(" @>R(S92(L"5-%3$5#
M5%]32#-%+" B(B!]+ D)7 H@(" @>R(T+7-I;F=L92UO;FQY(BP)5$%21T54
M7TY/3D4L("(B('TL"5P*(2 @('LB-"US:6YG;&4M;VYL>2(L"5-%3$5#5%]3
M2#1?4TE.1TQ%7T].3%DL("(B('TL"5P*(" @('LB-"US:6YG;&4B+ E405)'
M151?3D].12P@(B(@?2P)"5P*(2 @('LB-"US:6YG;&4B+ E314Q%0U1?4T@T
M7U-)3D=,12P@(B(@?2P)7 H@(" @>R(T+6YO9G!U(BP)5$%21T547TY/3D4L
M("(B('TL"0E<"B$@("![(C0M;F]F<'4B+ E314Q%0U1?4T@T7TY/1E!5+" B
M(B!]+ D)7 H@(" @>R(T(BP)(" @(" @("!405)'151?3D].12P@(B(@?2P)
M"5P*(2 @('LB-"(L"2 @(" @(" @4T5,14-47U-(-"P@(B(@?2P@"0E<"B @
M("![(C4M-C1M961I82(L"51!4D=%5%].3TY%+" B(B!]+ D)7 H@(" @>R(U
M+38T;65D:6$B+"!314Q%0U1?4T@U7S8T+" B1V5N97)A=&4@-C0M8FET(%-(
M;65D:6$@8V]D92(@?2P@7 HM+2T@,C@P+#,P," M+2TM"B @(V1E9FEN92!4
M05)'151?4U=)5$-(15,@( D)"5P*("![('LB,2(L"2 @(" @(" @5$%21T54
M7TY/3D4L("(B('TL"0E<"B$@("![(C$B+ D@(" @(" @(%-%3$5#5%]32#$L
M(")'96YE<F%T92!32#$@8V]D92(@?2P)"5P*(" @('LB,B(L"2 @(" @(" @
M5$%21T547TY/3D4L("(B('TL"0E<"B$@("![(C(B+ D@(" @(" @(%-%3$5#
M5%]32#(L(")'96YE<F%T92!32#(@8V]D92(@?2P)"5P*(" @('LB,F4B+" @
M(" @(" @5$%21T547TY/3D4L("(B('TL"0E<"B$@("![(C)E(BP@(" @(" @
M(%-%3$5#5%]32#)%+" B1V5N97)A=&4@4T@R92!C;V1E(B!]+ D)7 H@(" @
M>R(S(BP)(" @(" @("!405)'151?3D].12P@(B(@?2P)"5P*(2 @('LB,R(L
M"2 @(" @(" @4T5,14-47U-(,RP@(D=E;F5R871E(%-(,R!C;V1E(B!]+ D)
M7 H@(" @>R(S92(L"51!4D=%5%].3TY%+" B(B!]+ D)7 HA(" @>R(S92(L
M"5-%3$5#5%]32#-%+" B1V5N97)A=&4@4T@S92!C;V1E(B!]+ D)7 H@(" @
M>R(T+7-I;F=L92UO;FQY(BP)5$%21T547TY/3D4L("(B('TL"5P*(2 @('LB
M-"US:6YG;&4M;VYL>2(L"5-%3$5#5%]32#1?4TE.1TQ%7T].3%DL(")'96YE
M<F%T92!O;FQY('-I;F=L92UP<F5C:7-I;VX@4T@T(&-O9&4B('TL"5P*(" @
M('LB-"US:6YG;&4B+ E405)'151?3D].12P@(B(@?2P)"5P*(2 @('LB-"US
M:6YG;&4B+ E314Q%0U1?4T@T7U-)3D=,12P@(D=E;F5R871E(&1E9F%U;'0@
M<VEN9VQE+7!R96-I<VEO;B!32#0@8V]D92(@?2P)7 H@(" @>R(T+6YO9G!U
M(BP)5$%21T547TY/3D4L("(B('TL"0E<"B$@("![(C0M;F]F<'4B+ E314Q%
M0U1?4T@T7TY/1E!5+" B1V5N97)A=&4@4T@T($9052UL97-S(&-O9&4B('TL
M"0E<"B @("![(C0B+ D@(" @(" @(%1!4D=%5%].3TY%+" B(B!]+ D)7 HA
M(" @>R(T(BP)(" @(" @("!314Q%0U1?4T@T+" B1V5N97)A=&4@4T@T(&-O
M9&4B('TL( D)7 H@(" @>R(U+38T;65D:6$B+ E405)'151?3D].12P@(B(@
M?2P)"5P*(" @('LB-2TV-&UE9&EA(BP@4T5,14-47U-(-5\V-"P@(D=E;F5R
M871E(#8T+6)I="!32&UE9&EA(&-O9&4B('TL(%P**BHJ*BHJ*BHJ*BHJ*BHJ
M"BHJ*B S,#DL,S(W("HJ*BH*(" @('LB-2UC;VUP86-T+6YO9G!U(BP@5$%2
M1T547TY/3D4L("(B('TL"5P*(" @('LB-2UC;VUP86-T+6YO9G!U(BP@4T5,
M14-47U-(-5]#3TU004-47TY/1E!5+" B1V5N97)A=&4@1E!5+6QE<W,@4TAC
M;VUP86-T(&-O9&4B('TL(%P*(2 @('LB8B(L"0DM3$E45$Q%7T5.1$E!3E]"
M250L("(B('TL(" )7 HA(" @>R)B:6=T86)L92(L( E"24=404),15]"250L
M("(B('TL"0E<"B$@("![(F1A;&EG;B(L(" )1$%,24=.7T))5"P@(B(@?2P)
M"5P*(" @('LB9FUO=F0B+" @"49-3U9$7T))5"P@(B(@?2P)"5P*(2 @('LB
M:&ET86-H:2(L"4A)5$%#2$E?0DE4+" B(B!]+ D)7 HA(" @>R)N;VUA8W-A
M=F4B+"!.3TU!0U-!5D5?0DE4+" B(B!]+ D)7 HA(" @>R)I965E(BP@( E)
M145%7T))5"P@(B(@?2P)"0E<"B @("![(FES:7IE(BP@"4E325I%7T))5"P@
M(B(@?2P)"5P*(2 @('LB;"(L"0E,25143$5?14Y$24%.7T))5"P@(B(@?2P@
M( E<"B @("![(FYO+6EE964B+" @"2U)145%7T))5"P@(B(@?2P)"5P*(" @
M('LB<&%D<W1R=6-T(BP@4$%$4U1254-47T))5"P@(B(@?2P@(" @"5P*(2 @
M('LB<')E9F5R9V]T(BP)4%)%1D521T]47T))5"P@(B(@?2P)"5P*(2 @('LB
M<F5L87@B+ E214Q!6%]"250L("(B('TL"0E<"B$@("![(G-P86-E(BP@"5-0
M04-%7T))5"P@(B(@?2P)"5P*(2 @('LB=7-E<FUO9&4B+ E54T5234]$15]"
M250L("(B('TL"0E<"B @("!354)405)'151?4U=)5$-(15,@(" @(" @(" @
M(" @(" @(" @(" @(" @(" @7 H@(" @>R(B+" @( E405)'151?1$5&055,
M5"P@(B(@?2 )"5P*+2TM(#,P.2PS,C<@+2TM+0H@(" @>R(U+6-O;7!A8W0M
M;F]F<'4B+"!405)'151?3D].12P@(B(@?2P)7 H@(" @>R(U+6-O;7!A8W0M
M;F]F<'4B+"!314Q%0U1?4T@U7T-/35!!0U1?3D]&4%4L(")'96YE<F%T92!&
M4%4M;&5S<R!32&-O;7!A8W0@8V]D92(@?2P@7 HA(" @>R)B(BP)"2U,2514
M3$5?14Y$24%.7T))5"P@(D=E;F5R871E(&-O9&4@:6X@8FEG(&5N9&EA;B!M
M;V1E(B!]+" @"5P*(2 @('LB8FEG=&%B;&4B+" )0DE'5$%"3$5?0DE4+" B
M1V5N97)A=&4@,S(M8FET(&]F9G-E=',@:6X@<W=I=&-H('1A8FQE<R(@?2P)
M"5P*(2 @('LB9&%L:6=N(BP@( E$04Q)1TY?0DE4+" B06QI9VYS(&1O=6)L
M97,@870@-C0M8FET(&)O=6YD87)I97,B('TL"0E<"B @("![(F9M;W9D(BP@
M( E&34]61%]"250L("(B('TL"0E<"B$@("![(FAI=&%C:&DB+ E(251!0TA)
M7T))5"P@(D9O;&QO=R!296YE<V%S("AF;W)M97)L>2!(:71A8VAI*2 O(%-U
M<&5R2"!C86QL:6YG(&-O;G9E;G1I;VYS(B!]+ D)7 HA(" @>R)N;VUA8W-A
M=F4B+"!.3TU!0U-!5D5?0DE4+" B36%R:R!-04,@<F5G:7-T97(@87,@8V%L
M;"UC;&]B8F5R960B('TL"0E<"B$@("![(FEE964B+" @"4E%145?0DE4+" B
M26YC<F5A<V4@=&AE($E%144@8V]M<&QI86YC92!F;W(@9FQO871I;F<M<&]I
M;G0@8V]D92(@?2P)"0E<"B @("![(FES:7IE(BP@"4E325I%7T))5"P@(B(@
M?2P)"5P*(2 @('LB;"(L"0E,25143$5?14Y$24%.7T))5"P@(D=E;F5R871E
M(&-O9&4@:6X@;&ET=&QE(&5N9&EA;B!M;V1E(B!]+" @"5P*(" @('LB;F\M
M:65E92(L(" )+4E%145?0DE4+" B(B!]+ D)7 H@(" @>R)P861S=')U8W0B
M+"!004135%)50U1?0DE4+" B(B!]+" @(" )7 HA(" @>R)P<F5F97)G;W0B
M+ E04D5&15)'3U1?0DE4+" B16UI="!F=6YC=&EO;BUC86QL<R!U<VEN9R!G
M;&]B86P@;V9F<V5T('1A8FQE('=H96X@9V5N97)A=&EN9R!024,B('TL"0E<
M"B$@("![(G)E;&%X(BP)4D5,05A?0DE4+" B4VAO<G1E;B!A9&1R97-S(')E
M9F5R96YC97,@9'5R:6YG(&QI;FMI;F<B('TL"0E<"B$@("![(G-P86-E(BP@
M"5-004-%7T))5"P@(D1E<')E8V%T960N(%5S92 M3W,@:6YS=&5A9"(@?2P)
M"5P*(2 @('LB=7-E<FUO9&4B+ E54T5234]$15]"250L(")'96YE<F%T92!L
M:6)R87)Y(&9U;F-T:6]N(&-A;&P@=&\@:6YV86QI9&%T92!I;G-T<G5C=&EO
M;B!C86-H92!E;G1R:65S(&%F=&5R(&9I>&EN9R!T<F%M<&]L:6YE(B!]+ D)
M7 H@(" @4U5"5$%21T547U-7251#2$53(" @(" @(" @(" @(" @(" @(" @
M(" @(" @(%P*(" @('LB(BP@(" )5$%21T547T1%1D%53%0L("(B('T@"0E<
!"@``
`
end


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]