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]

Minor nits in toplev.c


I committed the following:

Sat Feb 26 09:39:16 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* toplev.c (documented_lang_options): Correct spelling error.
	(decode_d_option, decode_f_option, main): Likewise.

	* toplev.c (print_time): Avoid SIGFPE when all_time is zero.

*** toplev.c	2000/02/26 02:54:36	1.293
--- toplev.c	2000/02/26 14:36:46
*************** documented_lang_options[] =
*** 1116,1120 ****
    { "-Wfloat-equal", "Warn about testing equality of floating point numbers" },
    { "-Wno-float-equal", "" },
!   { "-Wunknown-pragmas", "Warn about unrecognised pragmas" },
    { "-Wno-unknown-pragmas", "" },
    { "-Wstrict-prototypes", "Warn about non-prototyped function decls" },
--- 1116,1120 ----
    { "-Wfloat-equal", "Warn about testing equality of floating point numbers" },
    { "-Wno-float-equal", "" },
!   { "-Wunknown-pragmas", "Warn about unrecognized pragmas" },
    { "-Wno-unknown-pragmas", "" },
    { "-Wstrict-prototypes", "Warn about non-prototyped function decls" },
*************** print_time (str, total)
*** 1426,1430 ****
  	   "time in %s: %d.%06d (%.0f%%)\n",
  	   str, total / 1000000, total % 1000000,
! 	   (double)total / (double)all_time * 100.0);
  }
  
--- 1426,1430 ----
  	   "time in %s: %d.%06d (%.0f%%)\n",
  	   str, total / 1000000, total % 1000000,
! 	   all_time == 0 ? 0.00 : (double) total / (double) all_time * 100.0);
  }
  
*************** decode_d_option (arg)
*** 4104,4108 ****
  	break;
        default:
! 	warning ("unrecognised gcc debugging option: %c", arg[-1]);
  	break;
        }
--- 4104,4108 ----
  	break;
        default:
! 	warning ("unrecognized gcc debugging option: %c", arg[-1]);
  	break;
        }
*************** decode_f_option (arg)
*** 4180,4184 ****
    else if (!strcmp (arg, "preprocessed"))
      /* Recognise this switch but do nothing.  This prevents warnings
!        about an unrecognised switch if cpplib has not been linked in.  */
      ;
    else
--- 4180,4184 ----
    else if (!strcmp (arg, "preprocessed"))
      /* Recognise this switch but do nothing.  This prevents warnings
!        about an unrecognized switch if cpplib has not been linked in.  */
      ;
    else
*************** main (argc, argv)
*** 4759,4763 ****
  	    }
  	  else
! 	    error ("Unrecognised option `%s'", argv[i]);
  	  
  	  i++;
--- 4759,4763 ----
  	    }
  	  else
! 	    error ("Unrecognized option `%s'", argv[i]);
  	  
  	  i++;

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