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]
Other format: [Raw text]

[mainline] PATCH objc/objc-act.c: Remove xxx_with_file_and_line


This removes xxx_with_file_and_line from the Objective-C front-end.

Bootstrapped and regtested on an i686-pc-linux.

-- Gaby

2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>

	* objc/objc-act.c (error_with_ivar): Don't use
	error_with_file_and_line. 
	(warn_with_method): Don't use warning_with_file_and_line.
  
Index: objc/objc-act.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/objc/objc-act.c,v
retrieving revision 1.171
diff -p -r1.171 objc-act.c
*** objc/objc-act.c	1 May 2003 16:13:36 -0000	1.171
--- objc/objc-act.c	8 May 2003 17:31:48 -0000
*************** error_with_ivar (message, decl, rawdecl)
*** 3543,3552 ****
  
    diagnostic_report_current_function (global_dc);
  
!   error_with_file_and_line (DECL_SOURCE_FILE (decl),
! 			    DECL_SOURCE_LINE (decl),
! 			    "%s `%s'",
! 			    message, gen_declaration (rawdecl, errbuf));
  
  }
  
--- 3543,3550 ----
  
    diagnostic_report_current_function (global_dc);
  
!   error ("%H%s `%s'", &DECL_SOURCE_LOCATION (decl),
!          message, gen_declaration (rawdecl, errbuf));
  
  }
  
*************** warn_with_method (message, mtype, method
*** 7116,7126 ****
    diagnostic_report_current_function (global_dc);
  
    /* Add a readable method name to the warning.  */
!   warning_with_file_and_line (DECL_SOURCE_FILE (method),
! 			      DECL_SOURCE_LINE (method),
! 			      "%s `%c%s'",
! 			      message, mtype,
! 			      gen_method_decl (method, errbuf));
  }
  
  /* Return 1 if METHOD is consistent with PROTO.  */
--- 7114,7121 ----
    diagnostic_report_current_function (global_dc);
  
    /* Add a readable method name to the warning.  */
!   warning ("%H%s `%c%s'", &DECL_SOURCE_LOCATION (method),
!            message, mtype, gen_method_decl (method, errbuf));
  }
  
  /* Return 1 if METHOD is consistent with PROTO.  */


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