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]

Re: [patch c++, ada, middle-end]: PR 38662 - __fastcall confuses a function's throw() specification


> Good, I remove this part of the patch. I wasn't quite sure if there
> would be some use of METHOD_TYPE. As by grepping through ada's gcc
> tree I found some hits for it.

Indeed, removed thusly, thanks for pointing this out.


2010-12-31  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (substitute_in_type): Do not deal with
	LANG_TYPE, METHOD_TYPE or OFFSET_TYPE.
	* gcc-interface/utils.c (handle_vector_size_attribute): Do not deal
	with METHOD_TYPE or OFFSET_TYPE.


-- 
Eric Botcazou
Index: gcc-interface/utils.c
===================================================================
--- gcc-interface/utils.c	(revision 168068)
+++ gcc-interface/utils.c	(working copy)
@@ -5313,9 +5313,7 @@ handle_vector_size_attribute (tree *node
 
   while (POINTER_TYPE_P (type)
 	 || TREE_CODE (type) == FUNCTION_TYPE
-	 || TREE_CODE (type) == METHOD_TYPE
-	 || TREE_CODE (type) == ARRAY_TYPE
-	 || TREE_CODE (type) == OFFSET_TYPE)
+	 || TREE_CODE (type) == ARRAY_TYPE)
     type = TREE_TYPE (type);
 
   /* Get the mode of the type being modified.  */
Index: gcc-interface/decl.c
===================================================================
--- gcc-interface/decl.c	(revision 168068)
+++ gcc-interface/decl.c	(working copy)
@@ -8638,10 +8638,7 @@ substitute_in_type (tree t, tree f, tree
 
       return build_complex_type (nt);
 
-    case OFFSET_TYPE:
-    case METHOD_TYPE:
     case FUNCTION_TYPE:
-    case LANG_TYPE:
       /* These should never show up here.  */
       gcc_unreachable ();
 

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