This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[New testcase] C++ sibcall related failure
- To: gcc-patches at gcc dot gnu dot org
- Subject: [New testcase] C++ sibcall related failure
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 15 May 2000 09:29:00 +0200
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
Hi!
Ok to commit?
This test crashes compiler on sparc-*-linux and sparc64-*-linux unless
-fno-optimize-sibling-calls is given.
I don't have a fix for this yet, the crash is in scan_region because one
NOTE_INSN_EH_REGION_BEG misses its counterpart.
2000-05-15 Jakub Jelinek <jakub@redhat.com>
* g++.old-deja/g++.other/eh.C: New test.
--- gcc/testsuite/g++.old-deja/g++.other/eh.C.jj Mon May 15 09:10:12 2000
+++ gcc/testsuite/g++.old-deja/g++.other/eh.C Mon May 15 09:10:54 2000
@@ -0,0 +1,20 @@
+// Build don't link:
+
+class foo {
+public:
+ ~foo();
+ foo &operator=(const foo &);
+ foo e() const;
+};
+class bar {
+public:
+ foo d() const;
+};
+struct x {
+ foo a;
+ bar* b;
+};
+void baz(x *f, int ic)
+{
+ f->a = ic ? f->b->d().e() : f->b->d();
+}
Jakub