diff options
author | Jan Hubicka <jh@suse.cz> | 2020-11-05 18:19:07 +0100 |
---|---|---|
committer | Jan Hubicka <jh@suse.cz> | 2020-11-05 18:19:07 +0100 |
commit | 58c9de46541ade795987b8949cfa685f02b0318a (patch) | |
tree | 611f10a41c0cdb8c0d952d3f4e210334748e4837 /gcc/gimple.h | |
parent | 9f87fcf3034d0e774c4dee380f9113d1453e0e72 (diff) | |
download | gcc-58c9de46541ade795987b8949cfa685f02b0318a.zip gcc-58c9de46541ade795987b8949cfa685f02b0318a.tar.gz gcc-58c9de46541ade795987b8949cfa685f02b0318a.tar.bz2 |
Add fnspecs for C++ new and delete operators
gcc/ChangeLog:
* gimple.c (gimple_call_fnspec): Handle C++ new and delete.
* gimple.h (gimple_call_from_new_or_delete): Constify parameter.
gcc/testsuite/ChangeLog:
* g++.dg/ipa/devirt-24.C: Update template.
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 87c90be..62b5a8a 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -3405,7 +3405,7 @@ gimple_call_set_from_new_or_delete (gcall *s, bool from_new_or_delete_p) from a new or delete expression. */ static inline bool -gimple_call_from_new_or_delete (gcall *s) +gimple_call_from_new_or_delete (const gcall *s) { return (s->subcode & GF_CALL_FROM_NEW_OR_DELETE) != 0; } |