diff options
author | Ilya Enkovich <enkovich.gnu@gmail.com> | 2015-06-18 10:09:22 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2015-06-18 10:09:22 +0000 |
commit | 847ffe1718d3eac1a1e605686e8bb27b25969ef0 (patch) | |
tree | eba0ce1deaf12130f58e3a564eb43633841f6f11 /gcc/tree-chkp.c | |
parent | cc63a7fac467b03b48491d45724fa0e38fb1e58a (diff) | |
download | gcc-847ffe1718d3eac1a1e605686e8bb27b25969ef0.zip gcc-847ffe1718d3eac1a1e605686e8bb27b25969ef0.tar.gz gcc-847ffe1718d3eac1a1e605686e8bb27b25969ef0.tar.bz2 |
re PR middle-end/66567 ([CHKP] internal compiler error: in assign_parms)
gcc/
PR middle-end/66567
* ipa-chkp.c (chkp_maybe_create_clone): Require
functions to be instrumentable.
* tree-chkp.c (chkp_replace_function_pointer): Use
chkp_instrumentable_p instead of attribute check.
gcc/testsuite/
PR middle-end/66567
* gcc.target/i386/mpx/pr66567.c: New test.
From-SVN: r224600
Diffstat (limited to 'gcc/tree-chkp.c')
-rw-r--r-- | gcc/tree-chkp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c index bee63cd..ed734e6 100644 --- a/gcc/tree-chkp.c +++ b/gcc/tree-chkp.c @@ -4088,7 +4088,7 @@ chkp_replace_function_pointer (tree *op, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) { if (TREE_CODE (*op) == FUNCTION_DECL - && !lookup_attribute ("bnd_legacy", DECL_ATTRIBUTES (*op)) + && chkp_instrumentable_p (*op) && (DECL_BUILT_IN_CLASS (*op) == NOT_BUILT_IN /* For builtins we replace pointers only for selected function and functions having definitions. */ |