diff options
author | Richard Guenther <rguenther@suse.de> | 2011-01-14 15:02:20 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-01-14 15:02:20 +0000 |
commit | 7352c013323c184875acec7bde645c99b7c18b9b (patch) | |
tree | e8806b70dd48d5f2e48f1df1922bb15787ffe2ba /gcc/targhooks.h | |
parent | 9a6c928887f6ae52f45a74f4aa54dd946c9c97d7 (diff) | |
download | gcc-7352c013323c184875acec7bde645c99b7c18b9b.tar.gz |
re PR tree-optimization/47179 (SPU: errno misoptimization around malloc call)
2011-01-14 Richard Guenther <rguenther@suse.de>
PR tree-optimization/47179
* target.def (ref_may_alias_errno): New target hook.
* targhooks.h (default_ref_may_alias_errno): Declare.
* targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
(default_ref_may_alias_errno): New function.
* target.h (struct ao_ref_s): Declare.
* tree-ssa-alias.c: Include target.h.
(call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
* Makefile.in (tree-ssa-alias.o): Adjust dependencies.
(targhooks.o): Likewise.
* doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
* doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
From-SVN: r168788
Diffstat (limited to 'gcc/targhooks.h')
-rw-r--r-- | gcc/targhooks.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/targhooks.h b/gcc/targhooks.h index d34ad9f52a1..a8dbb11e716 100644 --- a/gcc/targhooks.h +++ b/gcc/targhooks.h @@ -143,6 +143,7 @@ extern bool default_target_option_valid_attribute_p (tree, tree, tree, int); extern bool default_target_option_pragma_parse (tree, tree); extern bool default_target_can_inline_p (tree, tree); extern bool default_valid_pointer_mode (enum machine_mode); +extern bool default_ref_may_alias_errno (struct ao_ref_s *); extern enum machine_mode default_addr_space_pointer_mode (addr_space_t); extern enum machine_mode default_addr_space_address_mode (addr_space_t); extern bool default_addr_space_valid_pointer_mode (enum machine_mode, |