View | Details | Return to bug 45359 | Differences between
and this patch

Collapse All | Expand All

(-)a/gcc/config/i386/driver-i386.c (-2 / +22 lines)
Lines 351-357 detect_caches_intel (bool xeon_mp, unsig Link Here
351
enum vendor_signatures
351
enum vendor_signatures
352
{
352
{
353
  SIG_INTEL =	0x756e6547 /* Genu */,
353
  SIG_INTEL =	0x756e6547 /* Genu */,
354
  SIG_AMD =	0x68747541 /* Auth */
354
  SIG_AMD =	0x68747541 /* Auth */,
355
  SIG_VIA =	0x746e6543 /* Cent */
355
};
356
};
356
357
357
enum processor_signatures
358
enum processor_signatures
Lines 477-483 const char *host_detect_local_cpu (int a Link Here
477
478
478
  if (!arch)
479
  if (!arch)
479
    {
480
    {
480
      if (vendor == SIG_AMD)
481
      if (vendor == SIG_AMD || vendor == SIG_VIA)
482
	/* FIXME: + transmeta + cyrix fam5/mod5 */
481
	cache = detect_caches_amd (ext_level);
483
	cache = detect_caches_amd (ext_level);
482
      else if (vendor == SIG_INTEL)
484
      else if (vendor == SIG_INTEL)
483
	{
485
	{
Lines 512-517 const char *host_detect_local_cpu (int a Link Here
512
      else
514
      else
513
	processor = PROCESSOR_PENTIUM;
515
	processor = PROCESSOR_PENTIUM;
514
    }
516
    }
517
  else if (vendor == SIG_VIA)
518
     if (family == 6)
519
	if (has_longmode)
520
	  cpu = "core2";
521
	else if (model > 9)
522
	  cpu = arch ? "prescott" : "core2";
523
	else if (model == 9)
524
	  cpu = arch ? "c3-2" : "generic32";
525
	else if (model >= 6)
526
	  cpu = arch ? "c3" : "generic32";
527
	else
528
	  processor = PROCESSOR_GENERIC32;
529
     else if (has_3dnow)
530
	 cpu = arch ? "winchip2" : "generic32";
531
     else if (has_mmx)
532
	 cpu = arch ? "winchip2-c6" : "generic32";
533
     else
534
	processor = PROCESSOR_GENERIC32;
515
  else
535
  else
516
    {
536
    {
517
      switch (family)
537
      switch (family)

Return to bug 45359