Somehow this setting had been missed, and we really need the verbose
flag to enable useful debug output.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/m2/ChangeLog:
* gm2-gcc/m2options.h (M2Options_SetVerbose): Export the
function.
* gm2-lang.cc: Handle OPT_v, passing it to the compiler.
* lang-specs.h: Pass -v to cc1gm2.
EXTERN int M2Options_GetM2g (void);
EXTERN void M2Options_SetM2g (int value);
EXTERN void M2Options_SetLowerCaseKeywords (int value);
+EXTERN void M2Options_SetVerbose (int value);
EXTERN void M2Options_SetUnusedVariableChecking (int value);
EXTERN void M2Options_SetUnusedParameterChecking (int value);
EXTERN void M2Options_SetStrictTypeChecking (int value);
case OPT_save_temps_:
M2Options_SetSaveTempsDir (arg);
return 1;
+ case OPT_v:
+ M2Options_SetVerbose (value);
+ return 1;
default:
if (insideCppArgs)
{
"cc1gm2 " M2CPP
" %(cc1_options) %{B*} %{c*} %{f*} %{+e*} %{I*} "
" %{MD} %{MMD} %{M} %{MM} %{MA} %{MT*} %{MF*} %V"
- " %{save-temps*}"
+ " %{save-temps*} %{v} "
" %i %{!fsyntax-only:%(invoke_as)}",
0, 0, 0},