Commit 007a178c by Anatoly Sokolov Committed by Anatoly Sokolov

* 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
parent e3104f55
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.
......@@ -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;
......@@ -557,8 +554,6 @@ expand_prologue (void)
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);
cfun->machine->is_interrupt = interrupt_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. */
......
......@@ -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
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment