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]

Complain about wrong -mcpu settings for x86-64


Hi,
installed as obvious

Tue Nov 26 15:55:27 CET 2002  Jan Hubicka  <jh@suse.cz>
	* i386.c (override_options): Error about wrong -mcpu
	on x86-64 compilation.
Index: i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.447.2.28
diff -c -3 -p -r1.447.2.28 i386.c
*** i386.c	25 Nov 2002 23:16:23 -0000	1.447.2.28
--- i386.c	26 Nov 2002 14:53:48 -0000
*************** override_options ()
*** 1182,1187 ****
--- 1182,1189 ----
      if (! strcmp (ix86_cpu_string, processor_alias_table[i].name))
        {
  	ix86_cpu = processor_alias_table[i].processor;
+ 	if (TARGET_64BIT && !(processor_alias_table[i].flags & PTA_64BIT))
+ 	  error ("CPU you sellected does not support x86-64 instruction set");
  	break;
        }
    if (processor_alias_table[i].flags & PTA_PREFETCH_SSE)


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