Commit c47af4b7 by Alexandre Oliva Committed by Alexandre Oliva

toplev.c (independent_decode_option): Require `=' between `-aux-info' and…

toplev.c (independent_decode_option): Require `=' between `-aux-info' and filename in the same argument.

* toplev.c (independent_decode_option): Require `=' between
`-aux-info' and filename in the same argument.
* gcc.c: Don't pass -aux-info=filename twice.

From-SVN: r43123
parent ceafcb98
2001-06-09 Alexandre Oliva <aoliva@redhat.com>
* toplev.c (independent_decode_option): Require `=' between
`-aux-info' and filename in the same argument.
* gcc.c: Don't pass -aux-info=filename twice.
2001-06-09 Mark Mitchell <mark@codesourcery.com> 2001-06-09 Mark Mitchell <mark@codesourcery.com>
* expr.c (expand_expr, case ARRAY_REF): Do not replace * expr.c (expand_expr, case ARRAY_REF): Do not replace
......
...@@ -663,7 +663,7 @@ static const char *cc1_options = ...@@ -663,7 +663,7 @@ static const char *cc1_options =
%1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*}\ %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*}\
%{g*} %{O*} %{W*} %{w} %{pedantic*} %{std*} %{ansi}\ %{g*} %{O*} %{W*} %{w} %{pedantic*} %{std*} %{ansi}\
%{traditional} %{v:-version} %{pg:-p} %{p} %{f*}\ %{traditional} %{v:-version} %{pg:-p} %{p} %{f*}\
%{aux-info*} %{Qn:-fno-ident} %{--help:--help}\ %{Qn:-fno-ident} %{--help:--help}\
%{--target-help:--target-help}\ %{--target-help:--target-help}\
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\ %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}}\
%{fsyntax-only:-o %j} %{-param*}"; %{fsyntax-only:-o %j} %{-param*}";
......
...@@ -3932,7 +3932,7 @@ display_help () ...@@ -3932,7 +3932,7 @@ display_help ()
debug_args[i].arg, _(debug_args[i].description)); debug_args[i].arg, _(debug_args[i].description));
} }
printf (_(" -aux-info <file> Emit declaration info into <file>.X\n")); printf (_(" -aux-info <file> Emit declaration info into <file>\n"));
printf (_(" -quiet Do not display functions compiled or elapsed time\n")); printf (_(" -quiet Do not display functions compiled or elapsed time\n"));
printf (_(" -version Display the compiler's version\n")); printf (_(" -version Display the compiler's version\n"));
printf (_(" -d[letters] Enable dumps from specific passes of the compiler\n")); printf (_(" -d[letters] Enable dumps from specific passes of the compiler\n"));
...@@ -4567,17 +4567,22 @@ independent_decode_option (argc, argv) ...@@ -4567,17 +4567,22 @@ independent_decode_option (argc, argv)
} }
else if (!strncmp (arg, "aux-info", 8)) else if (!strncmp (arg, "aux-info", 8))
{ {
flag_gen_aux_info = 1;
if (arg[8] == '\0') if (arg[8] == '\0')
{ {
if (argc == 1) if (argc == 1)
return 0; return 0;
aux_info_file_name = argv[1]; aux_info_file_name = argv[1];
flag_gen_aux_info = 1;
return 2; return 2;
} }
else if (arg[8] == '=')
{
aux_info_file_name = arg + 9;
flag_gen_aux_info = 1;
}
else else
aux_info_file_name = arg + 8; return 0;
} }
else else
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment