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]

PATCH: Dont say "internal compiler error: internal error:"


This patchlet stops the "internal compiler error" reporter repeating
himself. 

Bootstrapped and tested on an i686-pc-linux.
Applied to mainline.

-- Gaby

2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>

	* diagnostic.c (fancy_abort): Don't repeat "internal error".
	* toplev.c (crash_signal): Likewise.

Index: diagnostic.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/diagnostic.c,v
retrieving revision 1.96
diff -p -r1.96 diagnostic.c
*** diagnostic.c	12 Aug 2002 18:34:51 -0000	1.96
--- diagnostic.c	29 Aug 2002 23:29:16 -0000
*************** fancy_abort (file, line, function)
*** 1350,1357 ****
       int line;
       const char *function;
  {
!   internal_error ("Internal compiler error in %s, at %s:%d",
! 		  function, trim_filename (file), line);
  }
  
  void
--- 1350,1356 ----
       int line;
       const char *function;
  {
!   internal_error ("in %s, at %s:%d", function, trim_filename (file), line);
  }
  
  void
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/toplev.c,v
retrieving revision 1.669
diff -p -r1.669 toplev.c
*** toplev.c	25 Aug 2002 05:21:11 -0000	1.669
--- toplev.c	29 Aug 2002 23:29:19 -0000
*************** static void
*** 1700,1706 ****
  crash_signal (signo)
       int signo;
  {
!   internal_error ("internal error: %s", strsignal (signo));
  }
  
  /* Strip off a legitimate source ending from the input string NAME of
--- 1700,1706 ----
  crash_signal (signo)
       int signo;
  {
!   internal_error ("%s", strsignal (signo));
  }
  
  /* Strip off a legitimate source ending from the input string NAME of


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