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]

[gcc-in-cxx] Correct enum type


This patch corrects the type of an enum.  This does not matter in C,
but it matters in C++.  Committed to gcc-in-cxx branch.

Ian


2009-01-31  Ian Lance Taylor  <iant@google.com>

	* cp/semantics.c (finish_omp_clauses): Change c_kind to enum
	omp_clause_code.


Index: cp/semantics.c
===================================================================
--- cp/semantics.c	(revision 143841)
+++ cp/semantics.c	(working copy)
@@ -3603,7 +3603,7 @@ finish_omp_clauses (tree clauses)
 
   for (pc = &clauses, c = clauses; c ; c = *pc)
     {
-      enum tree_code c_kind = OMP_CLAUSE_CODE (c);
+      enum omp_clause_code c_kind = OMP_CLAUSE_CODE (c);
       bool remove = false;
       bool need_complete_non_reference = false;
       bool need_default_ctor = false;

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