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 to varasm.c: Don't use xxx_with_file_and_line


This one-liner makes varasm.c no longer use xxx_with_file_and_line.

Bootstrapped and tested on an i686-pc-linux-gnu.

-- Gaby
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.17687
diff -p -r1.17687 ChangeLog
*** ChangeLog	4 May 2003 05:34:12 -0000	1.17687
--- ChangeLog	4 May 2003 14:23:41 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+ 
+ 	* varasm.c (assemble_variable): Don't use error_with_file_and_line.
+ 
  2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
  
  	* builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.347
diff -p -r1.347 varasm.c
*** varasm.c	29 Apr 2003 12:18:17 -0000	1.347
--- varasm.c	4 May 2003 14:23:41 -0000
*************** assemble_variable (decl, top_level, at_e
*** 1432,1441 ****
  
    if (!dont_output_data && DECL_SIZE (decl) == 0)
      {
!       error_with_file_and_line (DECL_SOURCE_FILE (decl),
! 				DECL_SOURCE_LINE (decl),
! 				"storage size of `%s' isn't known",
! 				IDENTIFIER_POINTER (DECL_NAME (decl)));
        TREE_ASM_WRITTEN (decl) = 1;
        return;
      }
--- 1432,1440 ----
  
    if (!dont_output_data && DECL_SIZE (decl) == 0)
      {
!       error ("%Hstorage size of `%s' isn't known",
!              &DECL_SOURCE_LOCATION (decl),
!              IDENTIFIER_POINTER (DECL_NAME (decl)));
        TREE_ASM_WRITTEN (decl) = 1;
        return;
      }


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