diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/picochip/picochip.c | 28 | ||||
-rw-r--r-- | gcc/config/picochip/picochip.h | 1 | ||||
-rw-r--r-- | gcc/config/picochip/picochip.md | 11 |
4 files changed, 6 insertions, 40 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2048378..1e664d8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com> + + * config/picochip/picochip.c: Removed profiling support. + * config/picochip/picochip.md: Removed profiling instruction. + * config/picochip/picochip.h: Removed profiling builtin. + 2009-03-16 Joseph Myers <joseph@codesourcery.com> * doc/install.texi (--with-host-libstdcxx): Document. diff --git a/gcc/config/picochip/picochip.c b/gcc/config/picochip/picochip.c index b77b301..e9b6156 100644 --- a/gcc/config/picochip/picochip.c +++ b/gcc/config/picochip/picochip.c @@ -3898,23 +3898,6 @@ picochip_generate_halt (void) return const0_rtx; } -static rtx -picochip_generate_profile (tree arglist) -{ - tree arg0 = TREE_VALUE (arglist); - rtx op0 = expand_expr (arg0, NULL_RTX, VOIDmode, 0); - - start_sequence(); - emit_insn (gen_profile (op0)); - - rtx insns = get_insns(); - end_sequence(); - emit_insn (insns); - - return const0_rtx; -} - - /* Initialise the builtin functions. Start by initialising descriptions of different types of functions (e.g., void fn(int), int fn(void)), and then use these to define the builtins. */ @@ -3996,14 +3979,6 @@ picochip_init_builtins (void) BUILT_IN_MD, NULL, NULL_TREE); /* Initialise the bit reverse function. */ - add_builtin_function ("__builtin_profile", void_ftype_int, - PICOCHIP_BUILTIN_PROFILE, BUILT_IN_MD, NULL, - NULL_TREE); - add_builtin_function ("picoProfile", void_ftype_int, - PICOCHIP_BUILTIN_PROFILE, BUILT_IN_MD, NULL, - NULL_TREE); - - /* Initialise the bit reverse function. */ add_builtin_function ("__builtin_brev", unsigned_ftype_unsigned, PICOCHIP_BUILTIN_BREV, BUILT_IN_MD, NULL, NULL_TREE); @@ -4135,9 +4110,6 @@ picochip_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, case PICOCHIP_BUILTIN_HALT: return picochip_generate_halt (); - case PICOCHIP_BUILTIN_PROFILE: - return picochip_generate_profile (arglist); - default: gcc_unreachable(); diff --git a/gcc/config/picochip/picochip.h b/gcc/config/picochip/picochip.h index 6c92fb4..dc57364 100644 --- a/gcc/config/picochip/picochip.h +++ b/gcc/config/picochip/picochip.h @@ -736,7 +736,6 @@ enum picochip_builtins PICOCHIP_BUILTIN_PUT_ARRAY, PICOCHIP_BUILTIN_TESTPORT_ARRAY, PICOCHIP_BUILTIN_ASRI, - PICOCHIP_BUILTIN_PROFILE, PICOCHIP_BUILTIN_HALT }; diff --git a/gcc/config/picochip/picochip.md b/gcc/config/picochip/picochip.md index e1f3b38..657629c 100644 --- a/gcc/config/picochip/picochip.md +++ b/gcc/config/picochip/picochip.md @@ -111,9 +111,6 @@ ; Internal TSTPORT instruction, used to generate a single TSTPORT ; instruction for use in the testport branch split. (UNSPEC_INTERNAL_TESTPORT 19) - - ; instruction for use in the profile based optimizations. - (UNSPEC_INTERNAL_PROFILE 20) ] ) @@ -2228,14 +2225,6 @@ [(set_attr "length" "1") (set_attr "type" "unknown")]) -(define_insn "profile" - [(unspec_volatile [(match_operand:HI 0 "const_int_operand" "i")] - UNSPEC_INTERNAL_PROFILE)] - "" - "PROFILE_DUMMY %0 \t// (profile instruction %0)" - [(set_attr "length" "1") - (set_attr "type" "unknown")]) - (define_insn "internal_testport" [(set (reg:CC CC_REGNUM) (unspec_volatile:CC [(match_operand:HI 0 "const_int_operand" "i")] |