summaryrefslogtreecommitdiff
path: root/gcc/config/epiphany
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-15 12:31:11 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-15 12:31:11 +0000
commitdadc3e9aaef6a13b31d6633dffe7a958dfdd97fa (patch)
tree4d5cfbd66d8378127df093c279459122738db994 /gcc/config/epiphany
parentc50985730df65ebf60ae38b5edcf652ae64f8191 (diff)
downloadgcc-dadc3e9aaef6a13b31d6633dffe7a958dfdd97fa.tar.gz
2016-04-15 Basile Starynkevitch <basile@starynkevitch.net>
{{merging with even more of GCC 6, using subversion 1.9 svn merge -r230011:230100 ^/trunk }} git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@235022 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/epiphany')
-rw-r--r--gcc/config/epiphany/epiphany.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c
index c0578037329..1313fb44cbd 100644
--- a/gcc/config/epiphany/epiphany.c
+++ b/gcc/config/epiphany/epiphany.c
@@ -1317,7 +1317,7 @@ epiphany_print_operand (FILE *file, rtx x, int code)
offset = 0;
break;
}
- output_address (addr);
+ output_address (GET_MODE (x), addr);
fputc (']', file);
if (offset)
{
@@ -1338,7 +1338,7 @@ epiphany_print_operand (FILE *file, rtx x, int code)
case 1:
break;
}
- output_address (offset);
+ output_address (GET_MODE (x), offset);
}
break;
case CONST_DOUBLE :
@@ -1370,7 +1370,7 @@ epiphany_print_operand (FILE *file, rtx x, int code)
/* Print a memory address as an operand to reference that memory location. */
static void
-epiphany_print_operand_address (FILE *file, rtx addr)
+epiphany_print_operand_address (FILE *file, machine_mode /*mode*/, rtx addr)
{
register rtx base, index = 0;
int offset = 0;
@@ -1424,7 +1424,9 @@ epiphany_print_operand_address (FILE *file, rtx addr)
break;
case PRE_INC: case PRE_DEC: case POST_INC: case POST_DEC: case POST_MODIFY:
/* We shouldn't get here as we've lost the mode of the memory object
- (which says how much to inc/dec by. */
+ (which says how much to inc/dec by.
+ FIXME: We have the mode now, address printing can be moved into this
+ function. */
gcc_unreachable ();
break;
default: