]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Wed, 1 Dec 2004 12:58:17 +0000 (12:58 +0000)
committerNo Author <no-author@gcc.gnu.org>
Wed, 1 Dec 2004 12:58:17 +0000 (12:58 +0000)
'gcc-3_4-branch'.

From-SVN: r91560

gcc/config/pa/x-hpux [new file with mode: 0644]
gcc/config/pa/x-linux [new file with mode: 0644]
gcc/testsuite/g++.dg/overload/arg1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/overload/arg2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/overload/arg3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/overload/arg4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash29.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/empty-include.c [new file with mode: 0644]

diff --git a/gcc/config/pa/x-hpux b/gcc/config/pa/x-hpux
new file mode 100644 (file)
index 0000000..2f16d31
--- /dev/null
@@ -0,0 +1,9 @@
+# The ada virtual array implementation requires that indexing be disabled on
+# hosts such as hpux that use a segmented memory architecture.  Both the c
+# and ada files need to be compiled with this option for correct operation.
+X_ADA_CFLAGS=-mdisable-indexing
+
+pa-host.o : $(srcdir)/config/pa/pa-host.c $(CONFIG_H) $(SYSTEM_H) \
+  coretypes.h hosthooks.h hosthooks-def.h $(HOOKS_H)
+       $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
+               $(srcdir)/config/pa/pa-host.c
diff --git a/gcc/config/pa/x-linux b/gcc/config/pa/x-linux
new file mode 100644 (file)
index 0000000..8a5bc6f
--- /dev/null
@@ -0,0 +1,4 @@
+pa-host.o : $(srcdir)/config/pa/pa-host.c $(CONFIG_H) $(SYSTEM_H) \
+  coretypes.h hosthooks.h hosthooks-def.h $(HOOKS_H)
+       $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
+               $(srcdir)/config/pa/pa-host.c
diff --git a/gcc/testsuite/g++.dg/overload/arg1.C b/gcc/testsuite/g++.dg/overload/arg1.C
new file mode 100644 (file)
index 0000000..6ac6a7e
--- /dev/null
@@ -0,0 +1,23 @@
+// { dg-do compile }
+
+// Copyright (C) 2004 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 30 Nov 2004 <nathan@codesourcery.com>
+
+// PR 17431. copy ctor from user conv
+// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
+
+struct A {};
+
+struct B : A
+{
+  B(int); // { dg-error "" "" }
+  B(B &); // { dg-error "" "" }
+  B(A); // { dg-error "" "" }
+};
+
+void foo(B);
+
+void bar()
+{
+  foo(0); // { dg-error "no matching function|initializing" "" }
+}
diff --git a/gcc/testsuite/g++.dg/overload/arg2.C b/gcc/testsuite/g++.dg/overload/arg2.C
new file mode 100644 (file)
index 0000000..1e39186
--- /dev/null
@@ -0,0 +1,22 @@
+// { dg-do compile }
+
+// Copyright (C) 2004 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 30 Nov 2004 <nathan@codesourcery.com>
+
+// PR 17431. copy ctor from user conv
+// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
+
+struct A {};
+
+struct B : A
+{
+  B(int);
+  B(A);
+};
+
+void foo(B);
+
+void bar()
+{
+  foo(0);
+}
diff --git a/gcc/testsuite/g++.dg/overload/arg3.C b/gcc/testsuite/g++.dg/overload/arg3.C
new file mode 100644 (file)
index 0000000..1778ce5
--- /dev/null
@@ -0,0 +1,22 @@
+// { dg-do compile }
+
+// Copyright (C) 2004 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 30 Nov 2004 <nathan@codesourcery.com>
+
+// PR 17431. copy ctor from user conv
+// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
+
+struct A {};
+
+struct B : A
+{
+  B(int); // { dg-error "" "" }
+  B(B&);  // { dg-error "" "" }
+};
+
+void foo(B);
+
+void bar()
+{
+  foo(0); // { dg-error "no matching function|initializing" "" }
+}
diff --git a/gcc/testsuite/g++.dg/overload/arg4.C b/gcc/testsuite/g++.dg/overload/arg4.C
new file mode 100644 (file)
index 0000000..34aa625
--- /dev/null
@@ -0,0 +1,30 @@
+// { dg-do compile }
+
+// Copyright (C) 2004 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 30 Nov 2004 <nathan@codesourcery.com>
+
+// PR 17431. copy ctor from user conv
+// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
+
+struct A {};
+
+struct B : A
+{
+  B(int);  // { dg-error "" "" }
+  B(B&);   // { dg-error "" "" }
+  B(A);    // { dg-error "" "" }
+};
+
+struct C
+{
+  operator B () const;  
+};
+
+
+void foo(B);
+
+void bar()
+{
+  C c;
+  foo(c); // { dg-error "no matching function|initializing" "" }
+}
diff --git a/gcc/testsuite/g++.dg/template/crash29.C b/gcc/testsuite/g++.dg/template/crash29.C
new file mode 100644 (file)
index 0000000..55953ed
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/18512
+
+template <int> struct A {};
+
+struct B : A<0>
+{
+  void foo() { this->A<0>; } // { dg-error "" }
+};
diff --git a/gcc/testsuite/gcc.dg/cpp/empty-include.c b/gcc/testsuite/gcc.dg/cpp/empty-include.c
new file mode 100644 (file)
index 0000000..6b5a47c
--- /dev/null
@@ -0,0 +1,13 @@
+/* 
+ * Copyright 2004 Free Software Foundation, Inc.
+ * Contributed and written by Nathanael Nerode.
+ *
+ * GCC 3.4 would attempt to open stdin as the included file
+ * (PR 17610), causing a sort of hang.
+ * 
+ * We should get an error.
+ */
+
+/* {dg-do preprocess} */
+#include "" /* { dg-error "empty" "error on empty filename in include" } */
+int x; /* Otherwise we have an empty file and get more errors. */