X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gcc%2Ftarghooks.c;h=3eca47e988813969f22df8eda73a6e7ae843cdcf;hb=c5ce61b0a5c554a003b99b250796ee6d0f782c54;hp=7f694b62242a8fe58bd7f55028e623508d6a5a87;hpb=376bddabe1ebdedbc0a99341f5b6a927fd40563f;p=platform%2Fupstream%2Fgcc.git diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 7f694b6..3eca47e 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -50,27 +50,14 @@ along with GCC; see the file COPYING3. If not see #include "system.h" #include "coretypes.h" #include "tm.h" -#include "machmode.h" #include "rtl.h" -#include "hash-set.h" -#include "vec.h" -#include "double-int.h" -#include "input.h" #include "alias.h" -#include "symtab.h" -#include "wide-int.h" -#include "inchash.h" #include "tree.h" #include "fold-const.h" #include "stor-layout.h" #include "varasm.h" -#include "hashtab.h" -#include "hard-reg-set.h" #include "function.h" #include "flags.h" -#include "statistics.h" -#include "real.h" -#include "fixed-value.h" #include "insn-config.h" #include "expmed.h" #include "dojump.h" @@ -83,7 +70,6 @@ along with GCC; see the file COPYING3. If not see #include "diagnostic-core.h" #include "target.h" #include "tm_p.h" -#include "target-def.h" #include "regs.h" #include "reload.h" #include "insn-codes.h" @@ -914,6 +900,13 @@ default_branch_target_register_class (void) return NO_REGS; } +reg_class_t +default_ira_change_pseudo_allocno_class (int regno ATTRIBUTE_UNUSED, + reg_class_t cl) +{ + return cl; +} + extern bool default_lra_p (void) { @@ -1344,10 +1337,6 @@ default_target_can_inline_p (tree caller, tree callee) return ret; } -#ifndef HAVE_casesi -# define HAVE_casesi 0 -#endif - /* If the machine does not have a case insn that compares the bounds, this means extra overhead for dispatch tables, which raises the threshold for using them. */ @@ -1355,7 +1344,7 @@ default_target_can_inline_p (tree caller, tree callee) unsigned int default_case_values_threshold (void) { - return (HAVE_casesi ? 4 : 5); + return (targetm.have_casesi () ? 4 : 5); } bool @@ -1786,12 +1775,11 @@ std_gimplify_va_arg_expr (tree valist, tree type, gimple_seq *pre_p, unsigned HOST_WIDE_INT align, boundary; bool indirect; -#if ARGS_GROW_DOWNWARD /* All of the alignment and movement below is for args-grow-up machines. As of 2004, there are only 3 ARGS_GROW_DOWNWARD targets, and they all implement their own specialized gimplify_va_arg_expr routines. */ - gcc_unreachable (); -#endif + if (ARGS_GROW_DOWNWARD) + gcc_unreachable (); indirect = pass_by_reference (NULL, TYPE_MODE (type), type, false); if (indirect)