summaryrefslogtreecommitdiff
path: root/gcc/config/pdp11/pdp11.c
diff options
context:
space:
mode:
authorpkoning <pkoning@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-09 11:59:05 +0000
committerpkoning <pkoning@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-09 11:59:05 +0000
commite12262f9255e80d8d750fbebb99b0ff42bf6c85f (patch)
tree5bb7ca82ed69fee88f04996d609398bfedf0769c /gcc/config/pdp11/pdp11.c
parentfa30068d3f9f56bcd98ccba845ae84f6b8110e0d (diff)
downloadgcc-e12262f9255e80d8d750fbebb99b0ff42bf6c85f.tar.gz
* config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
output of byte values. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166483 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/pdp11/pdp11.c')
-rw-r--r--gcc/config/pdp11/pdp11.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c
index a9c758b4548..3c6c9c5c97b 100644
--- a/gcc/config/pdp11/pdp11.c
+++ b/gcc/config/pdp11/pdp11.c
@@ -1002,9 +1002,7 @@ pdp11_assemble_integer (rtx x, unsigned int size, int aligned_p)
{
case 1:
fprintf (asm_out_file, "\t.byte\t");
- output_addr_const_pdp11 (asm_out_file,
- GEN_INT (trunc_int_for_mode (INTVAL (x),
- QImode) & 0xff));
+ output_addr_const_pdp11 (asm_out_file, GEN_INT (INTVAL (x) & 0xff));
;
fprintf (asm_out_file, " /* char */\n");
return true;
@@ -1742,7 +1740,7 @@ output_addr_const_pdp11 (FILE *file, rtx x)
break;
case CONST_INT:
- fprintf (file, "%#o", (int) trunc_int_for_mode (INTVAL (x), HImode) & 0xffff);
+ fprintf (file, "%#o", (int) INTVAL (x) & 0xffff);
break;
case CONST: