summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-10 00:31:07 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-10 00:31:07 +0000
commit05dfd2e8a3878ba024f8d1acc08c18120222b179 (patch)
treecba96b91c08438e643554266175cf0bd3ef638b5 /gcc/toplev.c
parent83f53b402f510e82a51b5d0bc1bfbcb99dffeecf (diff)
downloadgcc-05dfd2e8a3878ba024f8d1acc08c18120222b179.tar.gz
* toplev.c (independent_decode_option): Require `=' between
`-aux-info' and filename in the same argument. * gcc.c: Don't pass -aux-info=filename twice. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43123 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 2b75aa20a58..2f803aa44bb 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3932,7 +3932,7 @@ display_help ()
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 (_(" -version Display the compiler's version\n"));
printf (_(" -d[letters] Enable dumps from specific passes of the compiler\n"));
@@ -4567,17 +4567,22 @@ independent_decode_option (argc, argv)
}
else if (!strncmp (arg, "aux-info", 8))
{
- flag_gen_aux_info = 1;
if (arg[8] == '\0')
{
if (argc == 1)
return 0;
aux_info_file_name = argv[1];
+ flag_gen_aux_info = 1;
return 2;
}
+ else if (arg[8] == '=')
+ {
+ aux_info_file_name = arg + 9;
+ flag_gen_aux_info = 1;
+ }
else
- aux_info_file_name = arg + 8;
+ return 0;
}
else
return 0;