aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config/avr/avr.c19
-rw-r--r--gcc/config/avr/avr.opt4
-rw-r--r--gcc/doc/invoke.texi6
4 files changed, 13 insertions, 25 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2a11001..c128a74 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2009-10-08 Anatoly Sokolov <aesok@post.ru>
+
+ * 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.
+
2009-10-08 Adam Nemet <anemet@caviumnetworks.com>
* combine.c (label_tick_ebb_start): Fix comment.
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
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index a805f2b..6d0d4c4 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -471,7 +471,7 @@ Objective-C and Objective-C++ Dialects}.
-mfix-cortex-m3-ldrd}
@emph{AVR Options}
-@gccoptlist{-mmcu=@var{mcu} -msize -mno-interrupts @gol
+@gccoptlist{-mmcu=@var{mcu} -mno-interrupts @gol
-mcall-prologues -mtiny-stack -mint8}
@emph{Blackfin Options}
@@ -9931,10 +9931,6 @@ Instruction set avr5 is for the enhanced AVR core with up to 128K program
memory space (MCU types: atmega16, atmega161, atmega163, atmega32, atmega323,
atmega64, atmega128, at43usb355, at94k).
-@item -msize
-@opindex msize
-Output instruction sizes to the asm file.
-
@item -mno-interrupts
@opindex mno-interrupts
Generated code is not compatible with hardware interrupts.