Commit 236ac442 by Martin Liska Committed by Martin Liska

Do not put gimple stmt on an abnormal edge (PR sanitizer/82545).

2017-10-18  Martin Liska  <mliska@suse.cz>

	PR sanitizer/82545
	* asan.c (asan_expand_poison_ifn): Do not put gimple stmt
	on an abnormal edge.
2017-10-18  Martin Liska  <mliska@suse.cz>

	PR sanitizer/82545
	* gcc.dg/asan/pr82545.c: New test.

From-SVN: r253845
parent 1b2944cb
2017-10-18 Martin Liska <mliska@suse.cz>
PR sanitizer/82545
* asan.c (asan_expand_poison_ifn): Do not put gimple stmt
on an abnormal edge.
2017-10-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
* doc/invoke.texi (ffunction-sections and fdata-sections):
......@@ -3400,6 +3400,10 @@ asan_expand_poison_ifn (gimple_stmt_iterator *iter,
{
edge e = gimple_phi_arg_edge (phi, i);
/* Do not insert on an edge we can't split. */
if (e->flags & EDGE_ABNORMAL)
continue;
if (call_to_insert == NULL)
call_to_insert = gimple_copy (call);
......
2017-10-18 Martin Liska <mliska@suse.cz>
PR sanitizer/82545
* gcc.dg/asan/pr82545.c: New test.
2017-10-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/69057
......
/* PR sanitizer/82545. */
/* { dg-do compile } */
extern void c(int);
extern void d(void);
void *buf[5];
void a(void) {
{
int b;
&b;
__builtin_setjmp(buf);
c(b);
}
d();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment