This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
DJGPP constify patch
- To: gcc-patches at gcc dot gnu dot org
- Subject: DJGPP constify patch
- From: "Mark E." <snowball3 at bigfoot dot com>
- Date: Wed, 27 Sep 2000 00:35:41 -0400
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)); \
\