Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2017 18:20:51 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322670 - head/contrib/binutils/bfd
Message-ID:  <201708181820.v7IIKpam062065@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Aug 18 18:20:51 2017
New Revision: 322670
URL: https://svnweb.freebsd.org/changeset/base/322670

Log:
  bfd: cast BFD_ALIGN to fix clang error on mips
  
  error: implicit conversion from 'bfd_vma' (aka 'unsigned long long')
  to 'int' changes value from 18446744073709551615 to -1
    return BFD_ALIGN (ret, 16);
    ~~~~~~ ^~~~~~~~~~~~~~~~~~~
  note: expanded from macro 'BFD_ALIGN'
     : ~ (bfd_vma) 0)
       ^~~~~~~~~~~~~
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/contrib/binutils/bfd/ecoff.c

Modified: head/contrib/binutils/bfd/ecoff.c
==============================================================================
--- head/contrib/binutils/bfd/ecoff.c	Fri Aug 18 18:20:36 2017	(r322669)
+++ head/contrib/binutils/bfd/ecoff.c	Fri Aug 18 18:20:51 2017	(r322670)
@@ -1878,7 +1878,7 @@ _bfd_ecoff_sizeof_headers (bfd *abfd,
   ret = (bfd_coff_filhsz (abfd)
 	 + bfd_coff_aoutsz (abfd)
 	 + c * bfd_coff_scnhsz (abfd));
-  return BFD_ALIGN (ret, 16);
+  return (int) BFD_ALIGN (ret, 16);
 }
 
 /* Get the contents of a section.  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708181820.v7IIKpam062065>