gcc.c cp/typeck2.c error messages

David Edelsohn dje@watson.ibm.com
Fri Oct 20 13:28:00 GMT 2000


	I changed the word "since" to "because" in error messages in gcc.c
and cp/typeck2.c.  "Because" is the more correct, more formal way to
express causality and "since" might cause confusion in translations.

David


Index: gcc.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gcc.c,v
retrieving revision 1.171
diff -c -p -r1.171 gcc.c
*** gcc.c	2000/10/05 22:55:19	1.171
--- gcc.c	2000/10/20 20:22:02
*************** process_command (argc, argv)
*** 3595,3605 ****
  	{
  	  /* -save-temps overrides -pipe, so that temp files are produced */
  	  if (save_temps_flag)
! 	    error ("Warning: -pipe ignored since -save-temps specified");
            /* -time overrides -pipe because we can't get correct stats when
  	     multiple children are running at once.  */
  	  else if (report_times)
! 	    error ("Warning: -pipe ignored since -time specified");
  	}
        else if (argv[i][0] == '-' && argv[i][1] != 0)
  	{
--- 3595,3605 ----
  	{
  	  /* -save-temps overrides -pipe, so that temp files are produced */
  	  if (save_temps_flag)
! 	    error ("Warning: -pipe ignored because -save-temps specified");
            /* -time overrides -pipe because we can't get correct stats when
  	     multiple children are running at once.  */
  	  else if (report_times)
! 	    error ("Warning: -pipe ignored because -time specified");
  	}
        else if (argv[i][0] == '-' && argv[i][1] != 0)
  	{
*************** main (argc, argv)
*** 5636,5642 ****
    if (! linker_was_run && error_count == 0)
      for (i = 0; (int) i < n_infiles; i++)
        if (explicit_link_files[i])
! 	error ("%s: linker input file unused since linking not done",
  	       outfiles[i]);
  
    /* Delete some or all of the temporary files we made.  */
--- 5636,5642 ----
    if (! linker_was_run && error_count == 0)
      for (i = 0; (int) i < n_infiles; i++)
        if (explicit_link_files[i])
! 	error ("%s: linker input file unused because linking not done",
  	       outfiles[i]);
  
    /* Delete some or all of the temporary files we made.  */
Index: cp/typeck2.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/typeck2.c,v
retrieving revision 1.88
diff -c -p -r1.88 typeck2.c
*** typeck2.c	2000/10/13 06:26:44	1.88
--- typeck2.c	2000/10/20 20:22:03
*************** abstract_virtuals_error (decl, type)
*** 168,174 ****
      {
        TREE_PURPOSE (u) = error_mark_node;
  
!       error ("  since the following virtual functions are abstract:");
        for (tu = u; tu; tu = TREE_CHAIN (tu))
  	cp_error_at ("\t%#D", TREE_VALUE (tu));
      }
--- 168,174 ----
      {
        TREE_PURPOSE (u) = error_mark_node;
  
!       error ("  because the following virtual functions are abstract:");
        for (tu = u; tu; tu = TREE_CHAIN (tu))
  	cp_error_at ("\t%#D", TREE_VALUE (tu));
      }


More information about the Gcc-patches mailing list