This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Make honor_readonly field bool
- To: gcc-patches at gcc dot gnu dot org
- Subject: Make honor_readonly field bool
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Sat, 20 Oct 01 07:33:08 EDT
Suggested by RTH, but unfortunately also required a cleanup in main.c.
Sat Oct 20 07:27:14 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* toplev.h (struct lang_hooks): HONOR_READONLY now bool.
* main.c: Include config.h and system.h, but not ansidecl.h.
* Makefile.in (main.o): Update accordingly.
*** toplev.h 2001/10/19 19:54:06 1.75
--- toplev.h 2001/10/20 11:03:25
*************** struct lang_hooks
*** 168,172 ****
/* Nonzero if TYPE_READONLY and TREE_READONLY should always be honored. */
! int honor_readonly;
struct lang_hooks_for_tree_inlining tree_inlining;
--- 168,172 ----
/* Nonzero if TYPE_READONLY and TREE_READONLY should always be honored. */
! bool honor_readonly;
struct lang_hooks_for_tree_inlining tree_inlining;
*** main.c 2001/08/22 14:35:29 1.3
--- main.c 2001/10/20 11:03:24
*************** Software Foundation, 59 Temple Place - S
*** 18,22 ****
02111-1307, USA. */
! #include "ansidecl.h"
#include "toplev.h"
--- 18,23 ----
02111-1307, USA. */
! #include "config.h"
! #include "system.h"
#include "toplev.h"
*** Makefile.in 2001/10/20 10:03:49 1.755
--- Makefile.in 2001/10/20 11:02:58
*************** toplev.o : toplev.c $(CONFIG_H) $(SYSTEM
*** 1374,1378 ****
-DTARGET_NAME=\"$(target_alias)\" \
-c $(srcdir)/toplev.c
! main.o : main.c toplev.h
rtl-error.o: rtl-error.c system.h $(RTL_H) $(INSN_ATTR_H) insn-config.h \
--- 1374,1378 ----
-DTARGET_NAME=\"$(target_alias)\" \
-c $(srcdir)/toplev.c
! main.o : main.c $(CONFIG_H) $(SYSTEM_H) toplev.h
rtl-error.o: rtl-error.c system.h $(RTL_H) $(INSN_ATTR_H) insn-config.h \