diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-20 16:37:47 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-20 16:37:47 +0000 |
commit | f63eb5d36d7d12fc7f0703dfc6fa5cbbf7315f18 (patch) | |
tree | db109e002ced660063996b0db54b6059f20aa4f5 /libmudflap | |
parent | 9a5e2a74356e5a43623c64af454771774cdabad7 (diff) | |
download | gcc-f63eb5d36d7d12fc7f0703dfc6fa5cbbf7315f18.tar.gz |
* common.opt (Wmudflap): New option.
* tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
(mx_register_decls): Likewise.
(mudflap_finish_file): Likewise.
* doc/invoke.texi: Document -Wno-mudflap.
* testsuite/libmudflap.c/pass63-frag.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133385 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 4 | ||||
-rw-r--r-- | libmudflap/testsuite/libmudflap.c/pass63-frag.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index cb1ac1cf413..178c7d0e173 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,7 @@ +2008-03-20 Volker Reichelt <v.reichelt@netcologne.de> + + * testsuite/libmudflap.c/pass63-frag.c: New test. + 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * aclocal.m4: Regenerate. diff --git a/libmudflap/testsuite/libmudflap.c/pass63-frag.c b/libmudflap/testsuite/libmudflap.c/pass63-frag.c new file mode 100644 index 00000000000..a5ad8f26b08 --- /dev/null +++ b/libmudflap/testsuite/libmudflap.c/pass63-frag.c @@ -0,0 +1,6 @@ +/* Check -Wno-mudflap flag */ +/* { dg-do compile } */ +/* { dg-options "-fmudflap -Wno-mudflap" } */ + +extern char x[]; +int main() { return x[3]; } /* { dg-bogus "mudflap cannot track" } */ |