ppc: Fix warning messages when IBM and IEEE long double are mixed
authorTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Wed, 2 May 2018 22:18:44 +0000 (19:18 -0300)
committerAlan Modra <amodra@gmail.com>
Fri, 4 May 2018 09:28:03 +0000 (18:58 +0930)
When IBM long double is used, the .gnu_attribute 4 is set to 1 | (1 *
4).  IEEE long double sets the same .gnu_attribute to 1 | (3 * 4).

* elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
of arguments when warning about different long double types.

bfd/ChangeLog
bfd/elf32-ppc.c

index 94f28b128ddbdd24abb1d75510ce83847d9bb5b3..40daa88c0e0561fcc7789031cb27369b52be3644 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
+
+       * elf32-ppc.c (_bfd_elf_ppc_merge_fp_attributes): Fix the order
+       of arguments when warning about different long double types.
+
 2018-05-03  Simon Atanasyan  <simon@atanasyan.com>
 
        * elf32-mips.c: (elf32_mips_fixup_symbol): New function.
index 1200de8458228897fc73f2596417587eb3a91c99..7f4ed01f20afa6116032b7946f259cc884b5fc62 100644 (file)
@@ -4776,12 +4776,12 @@ _bfd_elf_ppc_merge_fp_attributes (bfd *ibfd, struct bfd_link_info *info)
        _bfd_error_handler
          /* xgettext:c-format */
          (_("warning: %pB uses IBM long double, "
-            "%pB uses IEEE long double"), ibfd, obfd);
+            "%pB uses IEEE long double"), obfd, ibfd);
       else if (out_fp == 3 * 4 && in_fp == 1 * 4)
        _bfd_error_handler
          /* xgettext:c-format */
          (_("warning: %pB uses IBM long double, "
-            "%pB uses IEEE long double"), obfd, ibfd);
+            "%pB uses IEEE long double"), ibfd, obfd);
     }
 }
 
This page took 0.032371 seconds and 4 git commands to generate.