mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-25 20:46:20 +08:00
* target.def (handle_option): Take gcc_options and cl_decoded_option pointers and location_t. * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation. * doc/tm.texi: Regenerate. * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove. * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare. * lto-opts.c (lto_reissue_options): Generate option structure for targetm.handle_option call. * opts.c (target_handle_option): Update call to targetm.handle_option. Remove assertions about values now passed down to hook. * targhooks.c (default_target_handle_option): New. * targhooks.h (default_target_handle_option): Declare. * config/alpha/alpha.c: Include opts.h. (alpha_handle_option): Update to new hook interface. * config/arm/arm.c: Include opts.h. (arm_handle_option): Update to new hook interface. * config/arm/t-arm (arm.o): Update dependencies. * config/bfin/bfin.c: Include opts.h. (bfin_handle_option): Update to new hook interface. * config/cris/cris.c: Include opts.h. (cris_handle_option): Update to new hook interface. * config/frv/frv.c: Include opts.h. (frv_handle_option): Update to new hook interface. * config/i386/i386.c: Include opts.h. (ix86_handle_option): Update to new hook interface. (ix86_valid_target_attribute_inner_p): Generate option structure for call to ix86_handle_option. * config/i386/t-i386 (i386.o): Update dependencies. * config/ia64/ia64.c: Include opts.h. (ia64_handle_option): Update to new hook interface. * config/ia64/t-ia64 (ia64.o): Update dependencies. * config/iq2000/iq2000.c: Include opts.h. (iq2000_handle_option): Update to new hook interface. * config/m32c/m32c.c: Include opts.h. (m32c_handle_option): Update to new hook interface. * config/m32r/m32r.c: Include opts.h. (m32r_handle_option): Update to new hook interface. * config/m68k/m68k.c: Include opts.h. (m68k_handle_option): Update to new hook interface. * config/mep/mep.c: Include opts.h. (mep_handle_option): Update to new hook interface. * config/microblaze/microblaze.c: Include opts.h. (microblaze_handle_option): Update to new hook interface. * config/mips/mips.c: Include opts.h. (mips_handle_option): Update to new hook interface. * config/mn10300/mn10300.c: Include opts.h. (mn10300_handle_option): Update to new hook interface. * config/pa/pa.c: Include opts.h. (pa_handle_option): Update to new hook interface. * config/pdp11/pdp11.c: Include opts.h. (pdp11_handle_option): Update to new hook interface. * config/rs6000/rs6000.c: Include opts.h. (rs6000_handle_option): Update to new hook interface. * config/rs6000/t-rs6000 (rs6000.o): Update dependencies. * config/rx/rx.c: Include opts.h. (rx_handle_option): Update to new hook interface. * config/s390/s390.c: Include opts.h. (s390_handle_option): Update to new hook interface. * config/score/score.c: Include opts.h. (score_handle_option): Update to new hook interface. * config/sh/sh.c: Include opts.h. (sh_handle_option): Update to new hook interface. * config/sparc/sparc.c: Include opts.h. (sparc_handle_option): Update to new hook interface. * config/v850/v850.c: Include opts.h. (v850_handle_option): Update to new hook interface. From-SVN: r171308
93 lines
3.9 KiB
C
93 lines
3.9 KiB
C
/* General-purpose hooks.
|
|
Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
|
|
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
|
|
Free Software Foundation; either version 3, or (at your option) any
|
|
later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; see the file COPYING3. If not see
|
|
<http://www.gnu.org/licenses/>.
|
|
|
|
In other words, you are welcome to use, share and improve this program.
|
|
You are forbidden to forbid anyone else to use, share and improve
|
|
what you give them. Help stamp out software-hoarding! */
|
|
|
|
#ifndef GCC_HOOKS_H
|
|
#define GCC_HOOKS_H
|
|
|
|
#include "machmode.h"
|
|
|
|
extern bool hook_bool_void_false (void);
|
|
extern bool hook_bool_void_true (void);
|
|
extern bool hook_bool_bool_false (bool);
|
|
extern bool hook_bool_bool_gcc_optionsp_false (bool, struct gcc_options *);
|
|
extern bool hook_bool_const_int_const_int_true (const int, const int);
|
|
extern bool hook_bool_mode_false (enum machine_mode);
|
|
extern bool hook_bool_mode_true (enum machine_mode);
|
|
extern bool hook_bool_mode_const_rtx_false (enum machine_mode, const_rtx);
|
|
extern bool hook_bool_mode_const_rtx_true (enum machine_mode, const_rtx);
|
|
extern bool hook_bool_tree_false (tree);
|
|
extern bool hook_bool_const_tree_false (const_tree);
|
|
extern bool hook_bool_tree_true (tree);
|
|
extern bool hook_bool_const_tree_true (const_tree);
|
|
extern bool hook_bool_const_tree_hwi_hwi_const_tree_false (const_tree,
|
|
HOST_WIDE_INT,
|
|
HOST_WIDE_INT,
|
|
const_tree);
|
|
extern bool hook_bool_const_tree_hwi_hwi_const_tree_true (const_tree,
|
|
HOST_WIDE_INT,
|
|
HOST_WIDE_INT,
|
|
const_tree);
|
|
extern bool hook_bool_rtx_false (rtx);
|
|
extern bool hook_bool_rtx_int_false (rtx, int);
|
|
extern bool hook_bool_uintp_uintp_false (unsigned int *, unsigned int *);
|
|
extern bool hook_bool_rtx_int_int_intp_bool_false (rtx, int, int, int *, bool);
|
|
extern bool hook_bool_tree_tree_false (tree, tree);
|
|
extern bool hook_bool_tree_tree_true (tree, tree);
|
|
extern bool hook_bool_tree_bool_false (tree, bool);
|
|
|
|
extern void hook_void_void (void);
|
|
extern void hook_void_constcharptr (const char *);
|
|
extern void hook_void_rtx_int (rtx, int);
|
|
extern void hook_void_FILEptr_constcharptr (FILE *, const char *);
|
|
extern void hook_void_tree (tree);
|
|
extern void hook_void_tree_treeptr (tree, tree *);
|
|
extern void hook_void_int_int (int, int);
|
|
extern void hook_void_gcc_optionsp (struct gcc_options *);
|
|
|
|
extern int hook_int_const_tree_0 (const_tree);
|
|
extern int hook_int_const_tree_const_tree_1 (const_tree, const_tree);
|
|
extern int hook_int_rtx_0 (rtx);
|
|
extern int hook_int_rtx_bool_0 (rtx, bool);
|
|
|
|
extern tree hook_tree_const_tree_null (const_tree);
|
|
|
|
extern tree hook_tree_tree_tree_null (tree, tree);
|
|
extern tree hook_tree_tree_tree_tree_null (tree, tree, tree);
|
|
extern tree hook_tree_tree_tree_tree_3rd_identity (tree, tree, tree);
|
|
extern tree hook_tree_tree_int_treep_bool_null (tree, int, tree *, bool);
|
|
|
|
extern unsigned hook_uint_void_0 (void);
|
|
|
|
extern bool default_can_output_mi_thunk_no_vcall (const_tree, HOST_WIDE_INT,
|
|
HOST_WIDE_INT, const_tree);
|
|
|
|
extern rtx hook_rtx_rtx_identity (rtx);
|
|
extern rtx hook_rtx_rtx_null (rtx);
|
|
extern rtx hook_rtx_tree_int_null (tree, int);
|
|
|
|
extern const char *hook_constcharptr_const_tree_null (const_tree);
|
|
extern const char *hook_constcharptr_const_rtx_null (const_rtx);
|
|
extern const char *hook_constcharptr_const_tree_const_tree_null (const_tree, const_tree);
|
|
extern const char *hook_constcharptr_int_const_tree_null (int, const_tree);
|
|
extern const char *hook_constcharptr_int_const_tree_const_tree_null (int, const_tree, const_tree);
|
|
#endif
|