7621f5d5fb
* 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. From-SVN: r133385
7 lines
189 B
C
7 lines
189 B
C
/* 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" } */
|