This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
CHILL patch for some more warnings...
- To: bothner at cygnus dot com, brolley at cygnus dot com
- Subject: CHILL patch for some more warnings...
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 16 Oct 1998 21:26:03 -0400 (EDT)
- Cc: egcs-patches at cygnus dot com
Here are a couple of more nits squashed in the chill directory.
Okay to install?
--Kaveh
Fri Oct 16 21:04:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (lex.o): Depend on dwarfout.h.
* lang-specs.h: Add missing braces in initializer.
* lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
diff -rup orig/egcs-CVS19981015/gcc/ch/Makefile.in egcs-CVS19981015/gcc/ch/Makefile.in
--- orig/egcs-CVS19981015/gcc/ch/Makefile.in Thu Oct 15 20:00:40 1998
+++ egcs-CVS19981015/gcc/ch/Makefile.in Fri Oct 16 15:23:44 1998
@@ -291,7 +291,8 @@ lang.o : lang.c $(CONFIG_H) $(CHILL_TREE
$(srcdir)/../system.h $(srcdir)/../toplev.h
lex.o : lex.c $(CONFIG_H) $(CHILL_TREE_H) $(RTL_H) $(srcdir)/../flags.h \
$(srcdir)/../input.h $(srcdir)/parse.h $(srcdir)/../system.h \
- $(srcdir)/../toplev.h $(srcdir)/../../include/obstack.h lex.h
+ $(srcdir)/../toplev.h $(srcdir)/../../include/obstack.h lex.h \
+ $(srcdir)/../dwarfout.h
lex.c: hash.h
loop.o : loop.c $(CONFIG_H) $(RTL_H) $(CHILL_TREE_H) lex.h \
$(srcdir)/../flags.h $(srcdir)/../input.h \
diff -rup orig/egcs-CVS19981015/gcc/ch/lang-specs.h egcs-CVS19981015/gcc/ch/lang-specs.h
--- orig/egcs-CVS19981015/gcc/ch/lang-specs.h Thu Oct 15 20:00:42 1998
+++ egcs-CVS19981015/gcc/ch/lang-specs.h Fri Oct 16 15:03:41 1998
@@ -20,10 +20,10 @@ the Free Software Foundation, 675 Mass A
/* This is the contribution to the `default_compilers' array in gcc.c for
CHILL. */
- {".ch", "@chill" },
- {".chi", "@chill" },
+ {".ch", {"@chill"}},
+ {".chi", {"@chill"}},
{"@chill",
- "cpp -lang-chill %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
+ {"cpp -lang-chill %{nostdinc*} %{C} %{v} %{A*} %{I*} %{P} %I\
%{C:%{!E:%eGNU CHILL does not support -C without using -E}}\
-undef -D__GNUCHILL__=%v1 -D__GNUC_MINOR__=%v2\
%c %{Os:-D__OPTIMIZE_SIZE__} %{O*:-D__OPTIMIZE__} %{traditional} %{ftraditional:-traditional}\
@@ -39,4 +39,4 @@ the Free Software Foundation, 675 Mass A
%{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
%{!S:as %a %Y \
%{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}\
- %{!pipe:%g.s} %A\n }}"},
+ %{!pipe:%g.s} %A\n }}"}},
diff -rup orig/egcs-CVS19981015/gcc/ch/lex.c egcs-CVS19981015/gcc/ch/lex.c
--- orig/egcs-CVS19981015/gcc/ch/lex.c Thu Oct 15 20:00:42 1998
+++ egcs-CVS19981015/gcc/ch/lex.c Fri Oct 16 15:03:41 1998
@@ -32,6 +32,10 @@ the Free Software Foundation, 675 Mass A
#include "obstack.h"
#include "toplev.h"
+#ifdef DWARF_DEBUGGING_INFO
+#include "dwarfout.h"
+#endif
+
#ifdef MULTIBYTE_CHARS
#include <locale.h>
#endif