Ticket #295: verbose-warnings-2.patch
File verbose-warnings-2.patch, 3.7 KB (added by , 10 years ago) |
---|
-
stabshll.c
381 381 382 382 static int unnamed_struct_number; 383 383 384 /* Show more warnings if this variable is TRUE (-v option). */ 385 extern int verbose; 386 384 387 /* kso #456 2003-06-11: Reversed quiet workaround. */ 385 388 #define no_warning warning_parse 386 389 … … 1781 1784 t.index = 0x8a; /* 80 bit real */ 1782 1785 else 1783 1786 { 1784 no_warning ("Unknown range type: %lld..%lld", range_lo, range_hi);1787 if (verbose) no_warning ("Unknown range type: %lld..%lld", range_lo, range_hi); 1785 1788 goto syntax; 1786 1789 } 1787 1790 break; … … 2024 2027 } 2025 2028 else 2026 2029 { 2027 warning_parse ("Invalid BASE_OFFSET GNU extension format!");2030 if (verbose) warning_parse ("Invalid BASE_OFFSET GNU extension format!"); 2028 2031 goto syntax; 2029 2032 } 2030 2033 break; … … 2643 2646 return result; 2644 2647 2645 2648 syntax: 2646 no_warning ("syntax error in stabs: %c (off %ld)\n stabs: %s",2649 if (verbose) no_warning ("syntax error in stabs: %c (off %ld)\n stabs: %s", 2647 2650 *parse_ptr, parse_ptr - parse_start, parse_start); 2648 2651 2649 2652 grow_free (&g1); … … 2693 2696 * The normal issue is C++ class references. */ 2694 2697 if (tp->tag != ty_alias || tp->index <= -3) 2695 2698 { 2696 warning_parse ("Cycle detected by make_type.");2699 if (verbose) warning_parse ("Cycle detected by make_type."); 2697 2700 RETURN (0); 2698 2701 } 2699 2702 } … … 2706 2709 t1 = stype_find (tp->d.stabs_ref); 2707 2710 if (t1 == NULL) 2708 2711 { 2709 warning_parse ("Undefined stabs type %d referenced", tp->d.stabs_ref);2712 if (verbose) warning_parse ("Undefined stabs type %d referenced", tp->d.stabs_ref); 2710 2713 RETURN (0x82); /* 32 bit signed */ 2711 2714 } 2712 2715 make_type (t1, &tp->index); -
emxomf.c
407 407 /* Supress certain warnings if this variable is TRUE (-q option). */ 408 408 static int quiet = FALSE; 409 409 410 /* Show more warnings if this variable is TRUE (-v option). */ 411 int verbose = FALSE; 412 410 413 /* The libreq_head variable contains a pointer to the head of the list 411 414 of default libraries. The -i option is used to add a default 412 415 library request. The libreq_add pointer is used for appending new … … 587 590 } 588 591 589 592 590 /* Set the hll_type of a symbol s. */593 /* Set the hll_type of a symbol. */ 591 594 void set_hll_type (int index, int hll_type) 592 595 { 593 596 if (index > sym_count || index < 0) … … 822 825 memcpy(pszOutBuf + SYMBOL_MAX_LENGTH, szHash, SYMBOL_HASH_LENGTH); 823 826 pszOutBuf[SYMBOL_MAX_LENGTH + SYMBOL_HASH_LENGTH] = '\0'; 824 827 825 warning ("Truncated symbol '%.*s' to '%.*s%s'", cch, pszName, SYMBOL_MAX_LENGTH, pszName, szHash); 828 if (verbose) 829 warning ("Truncated symbol '%.*s' to '%.*s%s'", cch, pszName, SYMBOL_MAX_LENGTH, pszName, szHash); 826 830 827 831 cch = SYMBOL_MAX_LENGTH + SYMBOL_HASH_LENGTH; 828 832 } … … 3744 3761 puts (" -O <directory> Extract files to <directory>"); 3745 3762 puts (" -z Remove underscores from all symbol names"); 3746 3763 puts (" -P <dbgpackdll> Name the dbgpack DLL (ilink)"); 3764 puts (" -v Show more warnings (truncated symbols and HLL warnings)"); 3747 3765 exit (1); 3748 3766 } 3749 3767 … … 4244 4262 case 'u': 4245 4263 unknown_stabs = TRUE; 4246 4264 break; 4265 case 'v': 4266 verbose = TRUE; 4267 break; 4247 4268 case 'x': 4248 4269 opt_x = TRUE; 4249 4270 break;