aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/avr
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2009-10-08 22:28:48 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2009-10-08 22:28:48 +0400
commit007a178cff07dc03e9df0cc0798d5077dbd9a944 (patch)
treebaa39b99f458db604664b5d5b0a55a0cc8eab780 /gcc/config/avr
parente3104f55001fa42614c49cab274e078978d64e5a (diff)
downloadgcc-007a178cff07dc03e9df0cc0798d5077dbd9a944.zip
gcc-007a178cff07dc03e9df0cc0798d5077dbd9a944.tar.gz
gcc-007a178cff07dc03e9df0cc0798d5077dbd9a944.tar.bz2
* config/avr/avr.c (last_insn_address) Remove variable.
(expand_prologue): Don't initialise last_insn_address variable. (final_prescan_insn): Don't output insn size. * config/avr/avr.opt (msize): Remove switch. * doc/invoke.texi (AVR Options): Remove documentation of -msize switch. From-SVN: r152568
Diffstat (limited to 'gcc/config/avr')
-rw-r--r--gcc/config/avr/avr.c19
-rw-r--r--gcc/config/avr/avr.opt4
2 files changed, 3 insertions, 20 deletions
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 76df476..7c3234f 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -104,9 +104,6 @@ static GTY(()) rtx zero_reg_rtx;
/* AVR register names {"r0", "r1", ..., "r31"} */
static const char *const avr_regnames[] = REGISTER_NAMES;
-/* This holds the last insn address. */
-static int last_insn_address = 0;
-
/* Preprocessor macros to define depending on MCU type. */
static const char *avr_extra_arch_macro;
@@ -556,8 +553,6 @@ expand_prologue (void)
rtx pushword = gen_rtx_MEM (HImode,
gen_rtx_POST_DEC (HImode, stack_pointer_rtx));
rtx insn;
-
- last_insn_address = 0;
/* Init cfun->machine. */
cfun->machine->is_naked = avr_naked_function_p (current_function_decl);
@@ -1459,25 +1454,17 @@ byte_immediate_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)
&& INTVAL (op) <= 0xff && INTVAL (op) >= 0);
}
-/* Output all insn addresses and their sizes into the assembly language
- output file. This is helpful for debugging whether the length attributes
- in the md file are correct.
- Output insn cost for next insn. */
+/* Output insn cost for next insn. */
void
final_prescan_insn (rtx insn, rtx *operand ATTRIBUTE_UNUSED,
int num_operands ATTRIBUTE_UNUSED)
{
- int uid = INSN_UID (insn);
-
- if (TARGET_INSN_SIZE_DUMP || TARGET_ALL_DEBUG)
+ if (TARGET_ALL_DEBUG)
{
- fprintf (asm_out_file, "/*DEBUG: 0x%x\t\t%d\t%d */\n",
- INSN_ADDRESSES (uid),
- INSN_ADDRESSES (uid) - last_insn_address,
+ fprintf (asm_out_file, "/* DEBUG: cost = %d. */\n",
rtx_cost (PATTERN (insn), INSN, !optimize_size));
}
- last_insn_address = INSN_ADDRESSES (uid);
}
/* Return 0 if undefined, 1 if always true or always false. */
diff --git a/gcc/config/avr/avr.opt b/gcc/config/avr/avr.opt
index f94d6a3..f8013e5 100644
--- a/gcc/config/avr/avr.opt
+++ b/gcc/config/avr/avr.opt
@@ -47,10 +47,6 @@ mshort-calls
Target Report Mask(SHORT_CALLS)
Use rjmp/rcall (limited range) on >8K devices
-msize
-Target Report Mask(INSN_SIZE_DUMP)
-Output instruction sizes to the asm file
-
mtiny-stack
Target Report Mask(TINY_STACK)
Change only the low 8 bits of the stack pointer