aboutsummaryrefslogtreecommitdiff
path: root/libmudflap
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2005-04-12 18:09:09 +0000
committerFrank Ch. Eigler <fche@gcc.gnu.org>2005-04-12 18:09:09 +0000
commita08a479fec88b963c28fc068d09f40298c5565b6 (patch)
treefa131f46b98ec3d1b41397fd52e1c6aceb8ed50a /libmudflap
parentb7d1c15e4efd1f63d19d23470b912b048cd9660b (diff)
downloadgcc-a08a479fec88b963c28fc068d09f40298c5565b6.zip
gcc-a08a479fec88b963c28fc068d09f40298c5565b6.tar.gz
gcc-a08a479fec88b963c28fc068d09f40298c5565b6.tar.bz2
re PR other/19266 ([mudflap] ICE when compiling with -fmudflap -O)
2005-04-12 Frank Ch. Eigler <fche@redhat.com> PR mudflap/19266 From Richard Henderson <rth@redhat.com>: * tree-mudflap.c (mf_build_check_statement_for): Correct block splitting logic. 2005-04-12 Frank Ch. Eigler <fche@redhat.com> PR mudflap/19266 * testsuite/libmudflap.c++/c++frags.exp: Also test -O permutation. * testsuite/libmudflap.c++/pass57-frag.cxx: New test. From-SVN: r98028
Diffstat (limited to 'libmudflap')
-rw-r--r--libmudflap/ChangeLog6
-rw-r--r--libmudflap/testsuite/libmudflap.c++/c++frags.exp2
-rw-r--r--libmudflap/testsuite/libmudflap.c++/pass57-frag.cxx25
3 files changed, 32 insertions, 1 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog
index 4f25712..73dfcbe 100644
--- a/libmudflap/ChangeLog
+++ b/libmudflap/ChangeLog
@@ -1,3 +1,9 @@
+2005-04-12 Frank Ch. Eigler <fche@redhat.com>
+
+ PR mudflap/19266
+ * testsuite/libmudflap.c++/c++frags.exp: Also test -O permutation.
+ * testsuite/libmudflap.c++/pass57-frag.cxx: New test.
+
2005-04-04 Alan Modra <amodra@bigpond.net.au>
* mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
diff --git a/libmudflap/testsuite/libmudflap.c++/c++frags.exp b/libmudflap/testsuite/libmudflap.c++/c++frags.exp
index 5eb69aa..1ac24ad 100644
--- a/libmudflap/testsuite/libmudflap.c++/c++frags.exp
+++ b/libmudflap/testsuite/libmudflap.c++/c++frags.exp
@@ -5,7 +5,7 @@ dg-init
global srcdir
-foreach flags [list {} {-static} {-O2} {-O3}] {
+foreach flags [list {} {-static} {-O} {-O2} {-O3}] {
foreach srcfile [lsort [glob -nocomplain ${srcdir}/libmudflap.c++/*frag.cxx]] {
set bsrc [file tail $srcfile]
setenv MUDFLAP_OPTIONS "-viol-segv"
diff --git a/libmudflap/testsuite/libmudflap.c++/pass57-frag.cxx b/libmudflap/testsuite/libmudflap.c++/pass57-frag.cxx
new file mode 100644
index 0000000..e4fa701
--- /dev/null
+++ b/libmudflap/testsuite/libmudflap.c++/pass57-frag.cxx
@@ -0,0 +1,25 @@
+#include <vector>
+#include <string>
+
+class fitscolumn
+ {
+ private:
+ std::string name_, unit_;
+ int i, t;
+ public:
+ fitscolumn (const std::string &nm, const std::string &un,int i1,int t1)
+ : name_(nm), unit_(un), i(i1), t(t1){}
+ };
+
+void init_bintab(std::vector<fitscolumn> & columns_)
+{
+ char ttype[81], tunit[81], tform[81];
+ long repc;
+ int typecode;
+ columns_.push_back (fitscolumn (ttype,tunit,1,typecode));
+}
+
+int main ()
+{
+ return 0;
+}