microblaze-32bithost.patch 873 B

123456789101112131415161718192021222324
  1. From:
  2. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65649
  3. diff -Nur gcc-5.4.0.orig/gcc/config/microblaze/microblaze.c gcc-5.4.0/gcc/config/microblaze/microblaze.c
  4. --- gcc-5.4.0.orig/gcc/config/microblaze/microblaze.c 2015-01-15 14:28:42.000000000 +0100
  5. +++ gcc-5.4.0/gcc/config/microblaze/microblaze.c 2017-01-03 19:23:38.585074457 +0100
  6. @@ -2404,7 +2404,7 @@
  7. REAL_VALUE_TYPE value;
  8. REAL_VALUE_FROM_CONST_DOUBLE (value, op);
  9. REAL_VALUE_TO_TARGET_SINGLE (value, value_long);
  10. - fprintf (file, HOST_WIDE_INT_PRINT_HEX, value_long);
  11. + fprintf (file, "0x%lx", value_long);
  12. }
  13. else
  14. {
  15. @@ -2463,7 +2463,7 @@
  16. print_operand_address (file, XEXP (op, 0));
  17. }
  18. else if (letter == 'm')
  19. - fprintf (file, HOST_WIDE_INT_PRINT_DEC, (1L << INTVAL (op)));
  20. + fprintf (file, "%ld", (1L << INTVAL (op)));
  21. else
  22. output_addr_const (file, op);
  23. }