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]
Other format: [Raw text]

[tree-ssa] Confine signed_size_type to C frontends


Now I've sorted out builtin functions in gfortran we can confine
signed_size_type_node to the C/C++ forntends. This is the same as currently
on mainline.

The patch below is basically just a reversal of Roger's earlier hack to get
things working. Ok to apply?

Paul

2003-08-30  Paul Brook  <paul@nowt.org>

	* tree.h (enum tree_index): Delete TI_SIGNED_SIZE_TYPE here.
	(signed_size_type_node): No longer a member of global_trees.
	* c-common.h (enum c_tree_index): New member CTI_SIGNED_SIZE_TYPE.
	(signed_size_type_node): Moved, now a member of c_global_trees.


Index: c-common.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.h,v
retrieving revision 1.141.2.30
diff -u -r1.141.2.30 c-common.h
--- c-common.h	20 Aug 2003 20:43:58 -0000	1.141.2.30
+++ c-common.h	30 Aug 2003 22:48:30 -0000
@@ -132,6 +132,7 @@
     CTI_SIGNED_WCHAR_TYPE,
     CTI_UNSIGNED_WCHAR_TYPE,
     CTI_WINT_TYPE,
+    CTI_SIGNED_SIZE_TYPE, /* For format checking only.  */
     CTI_UNSIGNED_PTRDIFF_TYPE, /* For format checking only.  */
     CTI_INTMAX_TYPE,
     CTI_UINTMAX_TYPE,
@@ -181,6 +182,7 @@
 #define signed_wchar_type_node		c_global_trees[CTI_SIGNED_WCHAR_TYPE]
 #define unsigned_wchar_type_node	c_global_trees[CTI_UNSIGNED_WCHAR_TYPE]
 #define wint_type_node			c_global_trees[CTI_WINT_TYPE]
+#define signed_size_type_node		c_global_trees[CTI_SIGNED_SIZE_TYPE]
 #define unsigned_ptrdiff_type_node c_global_trees[CTI_UNSIGNED_PTRDIFF_TYPE]
 #define intmax_type_node		c_global_trees[CTI_INTMAX_TYPE]
 #define uintmax_type_node		c_global_trees[CTI_UINTMAX_TYPE]
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.342.2.92
diff -u -r1.342.2.92 tree.h
--- tree.h	28 Aug 2003 19:02:59 -0000	1.342.2.92
+++ tree.h	30 Aug 2003 22:48:31 -0000
@@ -2169,7 +2169,6 @@
   TI_PTR_TYPE,
   TI_CONST_PTR_TYPE,
   TI_SIZE_TYPE,
-  TI_SIGNED_SIZE_TYPE,
   TI_PTRDIFF_TYPE,
   TI_VA_LIST_TYPE,
   TI_BOOLEAN_TYPE,
@@ -2256,8 +2255,6 @@
 #define const_ptr_type_node		global_trees[TI_CONST_PTR_TYPE]
 /* The C type `size_t'.  */
 #define size_type_node                  global_trees[TI_SIZE_TYPE]
-/* The C type `ssize_t'.  */
-#define signed_size_type_node		global_trees[TI_SIGNED_SIZE_TYPE]
 #define ptrdiff_type_node		global_trees[TI_PTRDIFF_TYPE]
 #define va_list_type_node		global_trees[TI_VA_LIST_TYPE]
 


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