re PR sanitizer/66452 ([UBSAN] *.Lubsan_data0' defined but not used)
authorMarek Polacek <polacek@redhat.com>
Mon, 8 Jun 2015 10:35:24 +0000 (10:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 8 Jun 2015 10:35:24 +0000 (10:35 +0000)
commitd216b2e085ddba748c0f61c5487783281e1f5f9f
tree93ce0d946ae170a99309f45479b8831c3c43ed81
parent02de9c16f0fc4884e06e708cb65ea4a515899e9a
re PR sanitizer/66452 ([UBSAN] *.Lubsan_data0' defined but not used)

PR sanitizer/66452
* toplev.c (check_global_declaration): Don't warn about artificial
decls.

* g++.dg/ubsan/pr66452.C: New test.

From-SVN: r224216
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr66452.C [new file with mode: 0644]
gcc/toplev.c