diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-03 19:40:58 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-03 19:40:58 +0000 |
commit | bfe57ab76a1ec5a46cf5af5a07554a51816ccffd (patch) | |
tree | 941a0c444f84c4242289e65f0a9288ba576f035e /gcc/hooks.c | |
parent | 64d339f229a8b85f3d46651c02d3c34e869d3db3 (diff) | |
download | gcc-bfe57ab76a1ec5a46cf5af5a07554a51816ccffd.tar.gz |
* hooks.c (hook_rtx_rtx_identity): Generic hook function that
takes a single rtx and returns it unmodified.
* hooks.h (hook_rtx_rtx_identity): Prototype here.
* target.h (struct gcc_target): Add "delegitimize_address"
field to target structure.
* target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
for delegitimize_address target using hook_rtx_rtx_identity.
(TARGET_INITIALIZER): Initialize delegitimize_address field
using TARGET_DELEGITIMIZE_ADDRESS macro.
* simplify-rtx.c (avoid_constant_pool_reference): Handle float
extensions of constant pool references. Use delegitimize_address
to undo the obfuscation of "-fpic".
* Makefile.in (simplify-rtx.o): Add dependency on target.h.
* config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
i386_simplify_dwarf_addr.
(ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
(maybe_get_pool_constant): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62336 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r-- | gcc/hooks.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c index 0954bde936b..8926638347c 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -1,5 +1,5 @@ /* General-purpose hooks. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -149,3 +149,11 @@ hook_bool_rtx_int_int_intp_false (a, b, c, d) return false; } +/* Generic hook that takes an rtx and returns it. */ +rtx +hook_rtx_rtx_identity (x) + rtx x; +{ + return x; +} + |