[New testcase] C++ sibcall related failure
Jakub Jelinek
jakub@redhat.com
Mon May 15 00:25:00 GMT 2000
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
More information about the Gcc-patches
mailing list