summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authordenisc <denisc@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-13 09:58:37 +0000
committerdenisc <denisc@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-13 09:58:37 +0000
commitecee840bab80bf7c15b0a13c9b035a27bc50a72a (patch)
treea2384d5bf54aa699b1551dda698470735ce07e78 /gcc
parentff98ed79087449c074b9168994985c69e012dc1b (diff)
downloadgcc-ecee840bab80bf7c15b0a13c9b035a27bc50a72a.tar.gz
* config/ip2k/ip2k.c (commands_in_file): Variable removed.
(function_epilogue): Don't calculate function size. (ip2k_set_compare): Don't use lookup_const_double. (asm_file_start): Initialization of commands_in_file removed. (asm_file_end): Output of commands_in_file removed. * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of __INT_MAX__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56249 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/config/ip2k/ip2k.c23
-rw-r--r--gcc/config/ip2k/ip2k.h2
3 files changed, 16 insertions, 20 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6284939c4e1..2230f7779ac 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,14 @@
+2002-08-13 Denis Chertykov <denisc@overta.ru>
+
+ * config/ip2k/ip2k.c (commands_in_file): Variable removed.
+ (function_epilogue): Don't calculate function size.
+ (ip2k_set_compare): Don't use lookup_const_double.
+ (asm_file_start): Initialization of commands_in_file removed.
+ (asm_file_end): Output of commands_in_file removed.
+
+ * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
+ __INT_MAX__.
+
2002-08-13 Neil Booth <neil@daikokuya.co.uk>
* c-opts.c (c_common_init_options): Check option array is
diff --git a/gcc/config/ip2k/ip2k.c b/gcc/config/ip2k/ip2k.c
index 56228981d9d..94845fabfd2 100644
--- a/gcc/config/ip2k/ip2k.c
+++ b/gcc/config/ip2k/ip2k.c
@@ -90,9 +90,6 @@ static void mdr_try_wreg_elim PARAMS ((rtx));
struct gcc_target targetm = TARGET_INITIALIZER;
-/* Commands count in the compiled file. */
-static int commands_in_file;
-
/* Commands in the functions prologues in the compiled file. */
static int commands_in_prologues;
@@ -304,7 +301,6 @@ function_epilogue (file, size)
{
int leaf_func_p;
int reg,savelimit;
- int function_size;
rtx operands[2]; /* Dummy used by OUT_ASn */
int need_ret = 1;
@@ -324,9 +320,6 @@ function_epilogue (file, size)
}
leaf_func_p = leaf_function_p ();
- function_size = (INSN_ADDRESSES (INSN_UID (get_last_insn ()))
- - INSN_ADDRESSES (INSN_UID (get_insns ())));
-
epilogue_size = 0;
fprintf (file, "/* epilogue: frame size=%d */\n", size);
@@ -508,9 +501,6 @@ function_epilogue (file, size)
}
fprintf (file, "/* epilogue end (size=%d) */\n", epilogue_size);
- fprintf (file, "/* function %s size %d (%d) */\n", current_function_name,
- prologue_size + function_size + epilogue_size, function_size);
- commands_in_file += prologue_size + function_size + epilogue_size;
commands_in_prologues += prologue_size;
commands_in_epilogues += epilogue_size;
}
@@ -1091,7 +1081,7 @@ ip2k_set_compare (x, y)
{
rtx value;
size_t i;
-
+
value = rtx_alloc (CONST_DOUBLE);
PUT_MODE (value, VOIDmode);
@@ -1101,7 +1091,7 @@ ip2k_set_compare (x, y)
for (i = 2; i < (sizeof CONST_DOUBLE_FORMAT - 1); i++)
XWINT (value, i) = 0;
- y = lookup_const_double (value);
+ y = value;
}
ip2k_compare_operands[0] = x;
@@ -3196,7 +3186,6 @@ asm_file_start (file)
{
output_file_directive (file, main_input_filename);
- commands_in_file = 0;
commands_in_prologues = 0;
commands_in_epilogues = 0;
}
@@ -3210,12 +3199,8 @@ asm_file_end (file)
{
fprintf
(file,
- "/* File %s: code %4d = 0x%04x (%4d), prologues %3d, epilogues %3d */\n",
- main_input_filename,
- commands_in_file,
- commands_in_file,
- commands_in_file - commands_in_prologues - commands_in_epilogues,
- commands_in_prologues, commands_in_epilogues);
+ "/* File %s: prologues %3d, epilogues %3d */\n",
+ main_input_filename, commands_in_prologues, commands_in_epilogues);
}
/* Cost functions. */
diff --git a/gcc/config/ip2k/ip2k.h b/gcc/config/ip2k/ip2k.h
index d8aa1d8d997..379682d87bb 100644
--- a/gcc/config/ip2k/ip2k.h
+++ b/gcc/config/ip2k/ip2k.h
@@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA. */
#undef ASM_SPEC /* But we have a GAS assembler. */
#define CPP_PREDEFINES \
- "-DIP2K -D__INT_MAX__=SHRT_MAX -D_DOUBLE_IS_32BITS -D__BUFSIZ__=512 -D__FILENAME_MAX__=128"
+ "-DIP2K -D_DOUBLE_IS_32BITS -D__BUFSIZ__=512 -D__FILENAME_MAX__=128"
/* Define this to be a string constant containing `-D' options to
define the predefined macros that identify this machine and system.
These macros will be predefined unless the `-ansi' option is