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

Collapse All | Expand All

(-)a/gcc/config/i386/driver-i386.c (-2 / +23 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 468-474 const char *host_detect_local_cpu (int a Link Here
468
469
469
  if (!arch)
470
  if (!arch)
470
    {
471
    {
471
      if (vendor == SIG_AMD)
472
      if (vendor == SIG_AMD || vendor == SIG_VIA)
473
	/* FIXME: + transmeta + cyrix fam5/mod5 */
472
	cache = detect_caches_amd (ext_level);
474
	cache = detect_caches_amd (ext_level);
473
      else if (vendor == SIG_INTEL)
475
      else if (vendor == SIG_INTEL)
474
	{
476
	{
Lines 501-506 const char *host_detect_local_cpu (int a Link Here
501
      else
503
      else
502
	processor = PROCESSOR_PENTIUM;
504
	processor = PROCESSOR_PENTIUM;
503
    }
505
    }
506
  else if (vendor == SIG_VIA)
507
     if (family == 6)
508
	if (has_longmode)
509
	  cpu = "core2";
510
	else if (model > 9)
511
	  cpu = arch ? "prescott" : "core2";
512
	else if (model == 9)
513
	  /* -mtune vs. NOPL */
514
	  cpu = arch ? "c3-2" : "c3";
515
	else if (model >= 6)
516
	  cpu = "c3";
517
	else
518
	  processor = PROCESSOR_GENERIC32;
519
     else if (has_3dnow)
520
	cpu = "winchip2";
521
     else if (has_mmx)
522
	cpu = "winchip-c6";
523
     else
524
	processor = PROCESSOR_GENERIC32;
504
  else
525
  else
505
    {
526
    {
506
      switch (family)
527
      switch (family)

Return to bug 45359