Commit 4ae50669 by Joern Rennecke Committed by Joern Rennecke

re PR target/46415 (mmix-knuth-mmixware --enable-werror-always build fails)

        PR target/46415
        * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
        (mmix_dbx_register_number): Likewise.
        * config/mmix/mmix.c: Include df.h .
        (mmix_local_alignment): Change argument basic_align and return type
        to unsigned.
        (mmix_dbx_register_number): Change argument and return type to
        unsigned.
        (mmix_expand_prologue): Use add_reg_note.

From-SVN: r166545
parent e639b206
...@@ -116,6 +116,16 @@ ...@@ -116,6 +116,16 @@
(valid_psw_flag): Constify parameter which. (valid_psw_flag): Constify parameter which.
(rx_memory_move_cost): Change type of parameter regclass to reg_class_t. (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
PR target/46415
* config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
(mmix_dbx_register_number): Likewise.
* config/mmix/mmix.c: Include df.h .
(mmix_local_alignment): Change argument basic_align and return type
to unsigned.
(mmix_dbx_register_number): Change argument and return type to
unsigned.
(mmix_expand_prologue): Use add_reg_note.
2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com> 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
PR/46268 PR/46268
...@@ -48,12 +48,12 @@ extern void mmix_output_register_setting (FILE *, int, HOST_WIDEST_INT, int); ...@@ -48,12 +48,12 @@ extern void mmix_output_register_setting (FILE *, int, HOST_WIDEST_INT, int);
extern void mmix_conditional_register_usage (void); extern void mmix_conditional_register_usage (void);
extern int mmix_opposite_regno (int, int); extern int mmix_opposite_regno (int, int);
extern int mmix_local_regno (int); extern int mmix_local_regno (int);
extern int mmix_dbx_register_number (int); extern unsigned mmix_dbx_register_number (unsigned);
extern int mmix_use_simple_return (void); extern int mmix_use_simple_return (void);
extern void mmix_make_decl_one_only (tree); extern void mmix_make_decl_one_only (tree);
extern int mmix_data_alignment (tree, int); extern int mmix_data_alignment (tree, int);
extern int mmix_constant_alignment (tree, int); extern int mmix_constant_alignment (tree, int);
extern int mmix_local_alignment (tree, int); extern unsigned mmix_local_alignment (tree, unsigned);
extern void mmix_asm_output_pool_prologue (FILE *, const char *, tree, int); extern void mmix_asm_output_pool_prologue (FILE *, const char *, tree, int);
extern void mmix_asm_output_aligned_common (FILE *, const char *, int, int); extern void mmix_asm_output_aligned_common (FILE *, const char *, int, int);
extern void mmix_asm_output_aligned_local (FILE *, const char *, int, int); extern void mmix_asm_output_aligned_local (FILE *, const char *, int, int);
......
...@@ -45,6 +45,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -45,6 +45,7 @@ along with GCC; see the file COPYING3. If not see
#include "integrate.h" #include "integrate.h"
#include "target.h" #include "target.h"
#include "target-def.h" #include "target-def.h"
#include "df.h"
/* First some local helper definitions. */ /* First some local helper definitions. */
#define MMIX_FIRST_GLOBAL_REGNUM 32 #define MMIX_FIRST_GLOBAL_REGNUM 32
...@@ -327,8 +328,8 @@ mmix_constant_alignment (tree constant ATTRIBUTE_UNUSED, int basic_align) ...@@ -327,8 +328,8 @@ mmix_constant_alignment (tree constant ATTRIBUTE_UNUSED, int basic_align)
/* LOCAL_ALIGNMENT. */ /* LOCAL_ALIGNMENT. */
int unsigned
mmix_local_alignment (tree type ATTRIBUTE_UNUSED, int basic_align) mmix_local_alignment (tree type ATTRIBUTE_UNUSED, unsigned basic_align)
{ {
if (basic_align < 32) if (basic_align < 32)
return 32; return 32;
...@@ -1901,8 +1902,8 @@ mmix_asm_output_align (FILE *stream, int power) ...@@ -1901,8 +1902,8 @@ mmix_asm_output_align (FILE *stream, int power)
/* DBX_REGISTER_NUMBER. */ /* DBX_REGISTER_NUMBER. */
int unsigned
mmix_dbx_register_number (int regno) mmix_dbx_register_number (unsigned regno)
{ {
/* Adjust the register number to the one it will be output as, dammit. /* Adjust the register number to the one it will be output as, dammit.
It'd be nice if we could check the assumption that we're filling a It'd be nice if we could check the assumption that we're filling a
...@@ -2110,14 +2111,12 @@ mmix_expand_prologue (void) ...@@ -2110,14 +2111,12 @@ mmix_expand_prologue (void)
offset)), offset)),
tmpreg); tmpreg);
RTX_FRAME_RELATED_P (insn) = 1; RTX_FRAME_RELATED_P (insn) = 1;
REG_NOTES (insn) add_reg_note (insn, REG_FRAME_RELATED_EXPR,
= gen_rtx_EXPR_LIST (REG_FRAME_RELATED_EXPR, gen_rtx_SET (VOIDmode,
gen_rtx_SET (VOIDmode, gen_rtx_MEM (DImode,
gen_rtx_MEM (DImode, plus_constant (stack_pointer_rtx,
plus_constant (stack_pointer_rtx, offset)),
offset)), retreg));
retreg),
REG_NOTES (insn));
offset -= 8; offset -= 8;
} }
......
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