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] Changing "Class" in testsuite


On Oct 12, 2006, at 8:23 PM, Andrew Pinski wrote:

On Thu, 2006-10-12 at 20:23 -0700, Bill Wendling wrote:
Index: gcc/tree-ssa-forwprop.c
===================================================================
--- gcc/tree-ssa-forwprop.c     (revision 117682)
+++ gcc/tree-ssa-forwprop.c     (working copy)
@@ -210,6 +210,10 @@
    def_rhs = TREE_OPERAND (def, 1);
+  fprintf(stderr, "Forward Propagate Into Cond 1: DEF_RHS ::");
+  print_generic_expr (stderr, def_rhs, 0);
+  fprintf(stderr, "\n\n");
+
    /* If TEST_VAR is set by adding or subtracting a constant
       from an SSA_NAME, then it is interesting to us as we
       can adjust the constant in the conditional and thus


This does not belong in this patch.

Doh! Thanks. Sorry about the kruft. Here's a clean patch:

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog (revision 117682)
+++ gcc/testsuite/ChangeLog (working copy)
@@ -1,3 +1,19 @@
+2006-10-12 Bill Wendling <wendling@apple.com>
+
+ * g++.old-deja/g++.brendan/scope5.C,
+ g++.old-deja/g++.jason/hmc1.C,
+ g++.old-deja/g++.jason/cleanup2.C,
+ g++.old-deja/g++.law/shadow1.C,
+ g++.old-deja/g++.law/ctors10.C,
+ g++.dg/debug/namespace1.C,
+ g++.dg/inherit/namespace-as-base.C,
+ g++.dg/opt/delay-slot-1.C,
+ g++.dg/parse/defarg10.C,
+ g++.dg/template/ptrmem11.C,
+ g++.dg/template/mem_func_ptr.C,
+ g++.dg/template/spec19.C:
+ Changed "Class" to "Klasse".
+
2006-10-12 Lee Millward <lee.millward@codesourcery.com>
PR c++/27961
Index: gcc/testsuite/g++.old-deja/g++.brendan/scope5.C
===================================================================
--- gcc/testsuite/g++.old-deja/g++.brendan/scope5.C (revision 117682)
+++ gcc/testsuite/g++.old-deja/g++.brendan/scope5.C (working copy)
@@ -6,7 +6,7 @@
};
class Type {
- enum Class { ENUM, INTEGER };
+ enum Klasse { ENUM, INTEGER };
class Description {
public:
Index: gcc/testsuite/g++.old-deja/g++.jason/hmc1.C
===================================================================
--- gcc/testsuite/g++.old-deja/g++.jason/hmc1.C (revision 117682)
+++ gcc/testsuite/g++.old-deja/g++.jason/hmc1.C (working copy)
@@ -1,19 +1,19 @@
// { dg-do assemble }
// GROUPS passed templates default-arguments
template <class I>
-class Class {
+class Klasse {
public:
void func1(int n=1);
void func2(int d) {}
};
template <class I>
-void Class<I>::func1(int n) {}
+void Klasse<I>::func1(int n) {}
//if this is replaced by:
-//void Class<I>::func1(int n=1) {}
+//void Klasse<I>::func1(int n=1) {}
//the code compiles.
int main() {
- Class<int> C;
+ Klasse<int> C;
return 0;
}
Index: gcc/testsuite/g++.old-deja/g++.jason/cleanup2.C
===================================================================
--- gcc/testsuite/g++.old-deja/g++.jason/cleanup2.C (revision 117682)
+++ gcc/testsuite/g++.old-deja/g++.jason/cleanup2.C (working copy)
@@ -2,14 +2,14 @@
// PRMS Id: 6303
// Bug: compiler crashes processing the cleanup for arrayOfClass.
-class Class {
+class Klasse {
public:
- ~Class(); // This dtor MUST be declared to generate the error...
+ ~Klasse(); // This dtor MUST be declared to generate the error...
};
-Class varOfClass;
+Klasse varOfClass;
int main() {
// This MUST be 'const' to generate the error...
- const Class arrayOfClass[1] = { varOfClass }; // causes abort
+ const Klasse arrayOfClass[1] = { varOfClass }; // causes abort
}
Index: gcc/testsuite/g++.old-deja/g++.law/shadow1.C
===================================================================
--- gcc/testsuite/g++.old-deja/g++.law/shadow1.C (revision 117682)
+++ gcc/testsuite/g++.old-deja/g++.law/shadow1.C (working copy)
@@ -7,16 +7,16 @@
// Subject: GCC Bug..
// Date: Fri, 6 Nov 1992 10:27:10 -0700
-class Class
+class Klasse
{
public:
- Class(void); // constructor
+ Klasse(void); // constructor
int Shadow(void); // member function
private:
long value;
};
-Class::Class(void)
+Klasse::Klasse(void)
{
value = 0;
}
Index: gcc/testsuite/g++.old-deja/g++.law/ctors10.C
===================================================================
--- gcc/testsuite/g++.old-deja/g++.law/ctors10.C (revision 117682)
+++ gcc/testsuite/g++.old-deja/g++.law/ctors10.C (working copy)
@@ -8,7 +8,7 @@
#include <iostream>
-class Class
+class Klasse
{
class Err : public std::ostream
{
Index: gcc/testsuite/g++.dg/debug/namespace1.C
===================================================================
--- gcc/testsuite/g++.dg/debug/namespace1.C (revision 117682)
+++ gcc/testsuite/g++.dg/debug/namespace1.C (working copy)
@@ -29,7 +29,7 @@
char xyzq (char);
};
- class Class {
+ class Klasse {
public:
char xyzq (char);
int dummy;
@@ -62,7 +62,7 @@
return 'z';
}
-char BBB::Class::xyzq (char c)
+char BBB::Klasse::xyzq (char c)
{
return 'o';
}
@@ -248,7 +248,7 @@
y = AAA::A_xyzq (33);
y += B_xyzq (44);
- BBB::Class cl;
+ BBB::Klasse cl;
c1 = cl.xyzq('e');
Index: gcc/testsuite/g++.dg/inherit/namespace-as-base.C
===================================================================
--- gcc/testsuite/g++.dg/inherit/namespace-as-base.C (revision 117682)
+++ gcc/testsuite/g++.dg/inherit/namespace-as-base.C (working copy)
@@ -5,5 +5,5 @@
}
}
-class Class : public Out::In { // { dg-error ".*" "" }
+class Klasse : public Out::In { // { dg-error ".*" "" }
};
Index: gcc/testsuite/g++.dg/opt/delay-slot-1.C
===================================================================
--- gcc/testsuite/g++.dg/opt/delay-slot-1.C (revision 117682)
+++ gcc/testsuite/g++.dg/opt/delay-slot-1.C (working copy)
@@ -85,7 +85,7 @@
mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const)
{ return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); }
-class Class {
+class Klasse {
public:
void vf0c() const;
void vf1c(const int&) const;
@@ -93,19 +93,19 @@
int main()
{
- Class obj;
- const Class& objc = obj;
+ Klasse obj;
+ const Klasse& objc = obj;
- mem_fun(&Class::vf0c)(&objc);
- mem_fun(&Class::vf1c)(&objc, 1);
+ mem_fun(&Klasse::vf0c)(&objc);
+ mem_fun(&Klasse::vf1c)(&objc, 1);
- mem_fun_ref(&Class::vf0c)(objc);
- mem_fun_ref(&Class::vf1c)(objc, 1);
+ mem_fun_ref(&Klasse::vf0c)(objc);
+ mem_fun_ref(&Klasse::vf1c)(objc, 1);
return 0;
}
-void Class::vf0c() const
+void Klasse::vf0c() const
{}
-void Class::vf1c(const int&) const
+void Klasse::vf1c(const int&) const
{}
Index: gcc/testsuite/g++.dg/parse/defarg10.C
===================================================================
--- gcc/testsuite/g++.dg/parse/defarg10.C (revision 117682)
+++ gcc/testsuite/g++.dg/parse/defarg10.C (working copy)
@@ -5,7 +5,7 @@
void Foo (int = 0);
-class Class
+class Klasse
{
friend void Foo (int);
};
Index: gcc/testsuite/g++.dg/template/ptrmem11.C
===================================================================
--- gcc/testsuite/g++.dg/template/ptrmem11.C (revision 117682)
+++ gcc/testsuite/g++.dg/template/ptrmem11.C (working copy)
@@ -1,8 +1,8 @@
// PR c++/18407
-template <typename Class>
+template <typename Klasse>
struct the_base{
- template <void (Class::*Fn)()> void foo() { }
+ template <void (Klasse::*Fn)()> void foo() { }
};
template <typename T>
Index: gcc/testsuite/g++.dg/template/mem_func_ptr.C
===================================================================
--- gcc/testsuite/g++.dg/template/mem_func_ptr.C (revision 117682)
+++ gcc/testsuite/g++.dg/template/mem_func_ptr.C (working copy)
@@ -1,33 +1,33 @@
// { dg-do compile }
template<typename T> struct takes_member_ptr;
-template<typename T, typename Class> struct takes_member_ptr<T Class::*> {};
+template<typename T, typename Klasse> struct takes_member_ptr<T Klasse::*> {};
-template<typename T, typename Class>
-void fun_takes_member_ptr(T Class::*) {}
+template<typename T, typename Klasse>
+void fun_takes_member_ptr(T Klasse::*) {}
template<typename T> struct order_member_ptrs;
-template<typename T, typename Class> struct order_member_ptrs<T Class::*> {};
-template<typename R, typename T1, typename Class>
- struct order_member_ptrs<R (Class::*)(T1)>
+template<typename T, typename Klasse> struct order_member_ptrs<T Klasse::*> {};
+template<typename R, typename T1, typename Klasse>
+ struct order_member_ptrs<R (Klasse::*)(T1)>
{
typedef int type;
};
-template<typename R, typename T1, typename Class>
- struct order_member_ptrs<R (Class::*)(T1) const>
+template<typename R, typename T1, typename Klasse>
+ struct order_member_ptrs<R (Klasse::*)(T1) const>
{
typedef int c_type;
};
-template<typename R, typename T1, typename Class>
- struct order_member_ptrs<R (Class::*)(T1) volatile>
+template<typename R, typename T1, typename Klasse>
+ struct order_member_ptrs<R (Klasse::*)(T1) volatile>
{
typedef int v_type;
};
-template<typename R, typename T1, typename Class>
- struct order_member_ptrs<R (Class::*)(T1) const volatile>
+template<typename R, typename T1, typename Klasse>
+ struct order_member_ptrs<R (Klasse::*)(T1) const volatile>
{
typedef int cv_type;
};
Index: gcc/testsuite/g++.dg/template/spec19.C
===================================================================
--- gcc/testsuite/g++.dg/template/spec19.C (revision 117682)
+++ gcc/testsuite/g++.dg/template/spec19.C (working copy)
@@ -1,23 +1,23 @@
// PR c++/18962
template<class T1,int N1>
-class Class
+class Klasse
{
public:
template <class T2,int N2>
- void function( const Class<T2,N2>& );
+ void function( const Klasse<T2,N2>& );
};
template<>
template<class T2,int N2>
-void Class<int,1>::function( const Class<T2,N2>& param )
+void Klasse<int,1>::function( const Klasse<T2,N2>& param )
{
param; // make sure we use the argument list from the definition.
}
int main()
{
- Class<int,1> instance;
- Class<char,2> param;
+ Klasse<int,1> instance;
+ Klasse<char,2> param;
instance.function( param );
}



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