Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 113541 | Differences between
and this patch

Collapse All | Expand All

(-)gcc/opts.c.orig (-1 / +10 lines)
Lines 434-439 Link Here
434
handle_options (unsigned int argc, const char **argv, unsigned int lang_mask)
434
handle_options (unsigned int argc, const char **argv, unsigned int lang_mask)
435
{
435
{
436
  unsigned int n, i;
436
  unsigned int n, i;
437
  int z;
438
  z = *(getenv ("GCC_IGNORE_UNKNOWN_CFLAGS") ?: "") == '\0' ? 0 : 1;
437
439
438
  for (i = 1; i < argc; i += n)
440
  for (i = 1; i < argc; i += n)
439
    {
441
    {
Lines 454-460 Link Here
454
      if (!n)
456
      if (!n)
455
	{
457
	{
456
	  n = 1;
458
	  n = 1;
457
	  error ("unrecognized command line option \"%s\"", opt);
459
	  if (z)
460
	    {
461
		warning ("unrecognized command line option \"%s\"", opt);
462
	    }
463
          else
464
	    {
465
		error ("unrecognized command line option \"%s\"", opt);
466
	    }
458
	}
467
	}
459
    }
468
    }
460
}
469
}

Return to bug 113541