aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaul Koning <ni1d@arrl.net>2010-11-09 06:59:05 -0500
committerPaul Koning <pkoning@gcc.gnu.org>2010-11-09 06:59:05 -0500
commitb9cb66d281d279a13ed9628a9046e4523cb677d5 (patch)
tree5bb7ca82ed69fee88f04996d609398bfedf0769c /gcc
parent277dc8106a0e984c7183d650283515cfe49045b4 (diff)
downloadgcc-b9cb66d281d279a13ed9628a9046e4523cb677d5.zip
gcc-b9cb66d281d279a13ed9628a9046e4523cb677d5.tar.gz
gcc-b9cb66d281d279a13ed9628a9046e4523cb677d5.tar.bz2
pdp11.c (pdp11_assemble_integer): Clean up fix for output of byte values.
* config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for output of byte values. From-SVN: r166483
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/pdp11/pdp11.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 110b7fb..95a436f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-09 Paul Koning <ni1d@arrl.net>
+
+ * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
+ output of byte values.
+
2010-11-09 Jakub Jelinek <jakub@redhat.com>
PR middle-end/46360
diff --git a/gcc/config/pdp11/pdp11.c b/gcc/config/pdp11/pdp11.c
index a9c758b..3c6c9c5 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: