Commit 88e7d85f by Jan Hubicka Committed by Jan Hubicka

re PR middle-end/65595 (Linux kernel build failure: ICE: in as_a, at is-a.h:192)


	PR middle-end/65595
	* cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
	do redirection if the call is not optimized out.

	* gcc.c-torture/compile/pr65595.c: New testcase.

From-SVN: r221726
parent 79d64904
2015-03-26 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/65595
* cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
do redirection if the call is not optimized out.
2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com> 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/65495 PR target/65495
......
...@@ -1516,7 +1516,7 @@ cgraph_update_edges_for_call_stmt_node (cgraph_node *node, ...@@ -1516,7 +1516,7 @@ cgraph_update_edges_for_call_stmt_node (cgraph_node *node,
if (e) if (e)
{ {
/* Keep calls marked as dead dead. */ /* Keep calls marked as dead dead. */
if (e->callee if (new_call && e->callee
&& DECL_BUILT_IN_CLASS (e->callee->decl) == BUILT_IN_NORMAL && DECL_BUILT_IN_CLASS (e->callee->decl) == BUILT_IN_NORMAL
&& DECL_FUNCTION_CODE (e->callee->decl) == BUILT_IN_UNREACHABLE) && DECL_FUNCTION_CODE (e->callee->decl) == BUILT_IN_UNREACHABLE)
{ {
......
2015-03-26 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/65595
* gcc.c-torture/compile/pr65595.c: New testcase.
2015-03-27 Marek Polacek <polacek@redhat.com> 2015-03-27 Marek Polacek <polacek@redhat.com>
PR sanitizer/65583 PR sanitizer/65583
......
extern void *memcpy(void *, const void *, unsigned long);
struct in6_addr {
struct {
int u6_addr32[4];
};
};
struct foo {
struct in6_addr daddr;
struct in6_addr saddr;
} a;
extern void ip6_route_output(struct foo, int);
int b;
static void find_route_ipv6(struct in6_addr *p1) {
if (p1)
memcpy(0, p1, sizeof(struct in6_addr));
ip6_route_output(a, b);
}
void cxgbi_ep_connect() { find_route_ipv6(0); }
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