This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Kill warnings in elfos.h
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] Kill warnings in elfos.h
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Thu, 4 May 2000 18:24:19 +0200
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
Hi!
sparc.h defines ASM_OUTPUT_IDENT and IDENT_ASM_OP and elfos.h which is
included later on on some platforms redefines it. Recent gcc WARN_CFLAGS
show this.
Ok to install? It matches how things are solved with other macros...
2000-05-04 Jakub Jelinek <jakub@redhat.com>
* config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Undefine
first to avoid warnings.
--- gcc/config/elfos.h.jj Wed Apr 12 09:09:03 2000
+++ gcc/config/elfos.h Thu May 4 18:08:53 2000
@@ -90,6 +90,7 @@ Boston, MA 02111-1307, USA. */
/* Output #ident as a .ident. */
+#undef ASM_OUTPUT_IDENT
#define ASM_OUTPUT_IDENT(FILE, NAME) \
fprintf (FILE, "\t%s\t\"%s\"\n", IDENT_ASM_OP, NAME);
@@ -98,6 +99,7 @@ Boston, MA 02111-1307, USA. */
.ident string is patterned after the ones produced by native svr4
C compilers. */
+#undef IDENT_ASM_OP
#define IDENT_ASM_OP ".ident"
#define ASM_FILE_END(FILE) \
Jakub