gas/
2010-06-11 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (md_parse_option): Ignore impossible processor types. (show_arch): New parameter 'check'. (md_show_usage): Adjust calls to show_arch().
This commit is contained in:
parent
2bdf28a09d
commit
1ded560998
2 changed files with 19 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2010-06-11 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
|
* config/tc-i386.c (md_parse_option): Ignore impossible processor
|
||||||
|
types.
|
||||||
|
(show_arch): New parameter 'check'.
|
||||||
|
(md_show_usage): Adjust calls to show_arch().
|
||||||
|
|
||||||
2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
|
2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/tc-i386.c (update_code_flag): New.
|
* config/tc-i386.c (update_code_flag): New.
|
||||||
|
|
|
@ -8187,6 +8187,9 @@ md_parse_option (int c, char *arg)
|
||||||
if (strcmp (arch, cpu_arch [j].name) == 0)
|
if (strcmp (arch, cpu_arch [j].name) == 0)
|
||||||
{
|
{
|
||||||
/* Processor. */
|
/* Processor. */
|
||||||
|
if (! cpu_arch[j].flags.bitfield.cpui386)
|
||||||
|
continue;
|
||||||
|
|
||||||
cpu_arch_name = cpu_arch[j].name;
|
cpu_arch_name = cpu_arch[j].name;
|
||||||
cpu_sub_arch_name = NULL;
|
cpu_sub_arch_name = NULL;
|
||||||
cpu_arch_flags = cpu_arch[j].flags;
|
cpu_arch_flags = cpu_arch[j].flags;
|
||||||
|
@ -8318,7 +8321,7 @@ md_parse_option (int c, char *arg)
|
||||||
" "
|
" "
|
||||||
|
|
||||||
static void
|
static void
|
||||||
show_arch (FILE *stream, int ext)
|
show_arch (FILE *stream, int ext, int check)
|
||||||
{
|
{
|
||||||
static char message[] = MESSAGE_TEMPLATE;
|
static char message[] = MESSAGE_TEMPLATE;
|
||||||
char *start = message + 27;
|
char *start = message + 27;
|
||||||
|
@ -8355,6 +8358,11 @@ show_arch (FILE *stream, int ext)
|
||||||
/* It is an processor. Skip if we show only extension. */
|
/* It is an processor. Skip if we show only extension. */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else if (check && ! cpu_arch[j].flags.bitfield.cpui386)
|
||||||
|
{
|
||||||
|
/* It is an impossible processor - skip. */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* Reserve 2 spaces for ", " or ",\0" */
|
/* Reserve 2 spaces for ", " or ",\0" */
|
||||||
left -= len + 2;
|
left -= len + 2;
|
||||||
|
@ -8419,13 +8427,13 @@ md_show_usage (FILE *stream)
|
||||||
fprintf (stream, _("\
|
fprintf (stream, _("\
|
||||||
-march=CPU[,+EXTENSION...]\n\
|
-march=CPU[,+EXTENSION...]\n\
|
||||||
generate code for CPU and EXTENSION, CPU is one of:\n"));
|
generate code for CPU and EXTENSION, CPU is one of:\n"));
|
||||||
show_arch (stream, 0);
|
show_arch (stream, 0, 1);
|
||||||
fprintf (stream, _("\
|
fprintf (stream, _("\
|
||||||
EXTENSION is combination of:\n"));
|
EXTENSION is combination of:\n"));
|
||||||
show_arch (stream, 1);
|
show_arch (stream, 1, 0);
|
||||||
fprintf (stream, _("\
|
fprintf (stream, _("\
|
||||||
-mtune=CPU optimize for CPU, CPU is one of:\n"));
|
-mtune=CPU optimize for CPU, CPU is one of:\n"));
|
||||||
show_arch (stream, 0);
|
show_arch (stream, 0, 0);
|
||||||
fprintf (stream, _("\
|
fprintf (stream, _("\
|
||||||
-msse2avx encode SSE instructions with VEX prefix\n"));
|
-msse2avx encode SSE instructions with VEX prefix\n"));
|
||||||
fprintf (stream, _("\
|
fprintf (stream, _("\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue