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]

DJGPP constify patch


Hello guys,
I finally updated my cvs repo and noticed that the latest round of const-ifying 
requires a small change to DJGPP's target config file to make some of the new warnings 
go away. This fixes the 'new' DJGPP specific warnings, but leaves several in varasm.c 
and sdbout.c.

While I'm at it, I'd like to point out that my libiberty patch 
(http://gcc.gnu.org/ml/gcc-patches/2000-05/msg00769.html) is still pending.

gcc/Changelog:

2000-09-27  Mark Elbrecht  <snowball3@bigfoot.com>

	* config/i386/djgpp.h (UNIQUE_SECTION): Constify the variables
	  name and prefix.

Index: gcc/gcc/config/i386/djgpp.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/djgpp.h,v
retrieving revision 1.17
diff -c -p -r1.17 djgpp.h
*** djgpp.h	2000/09/25 09:16:37	1.17
--- djgpp.h	2000/09/27 04:27:01
*************** dtor_section ()							\
*** 266,272 ****
  #define UNIQUE_SECTION(DECL,RELOC)				\
  do {								\
    int len;							\
!   char *name, *string, *prefix;					\
  								\
    name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL));	\
  								\
--- 266,273 ----
  #define UNIQUE_SECTION(DECL,RELOC)				\
  do {								\
    int len;							\
!   const char *name, *prefix;					\
!   char *string;							\
  								\
    name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (DECL));	\
  								\


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