svn commit: r212513 - in head/usr.bin/xlint/arch: powerpc powerpc64
Warner Losh
imp at FreeBSD.org
Mon Sep 13 01:20:54 UTC 2010
Author: imp
Date: Mon Sep 13 01:20:53 2010
New Revision: 212513
URL: http://svn.freebsd.org/changeset/base/212513
Log:
merge powerpc and powerpc64 now that we use TARGET_CPUARCH
Deleted:
head/usr.bin/xlint/arch/powerpc64/
Modified:
head/usr.bin/xlint/arch/powerpc/targparam.h
Modified: head/usr.bin/xlint/arch/powerpc/targparam.h
==============================================================================
--- head/usr.bin/xlint/arch/powerpc/targparam.h Mon Sep 13 01:00:48 2010 (r212512)
+++ head/usr.bin/xlint/arch/powerpc/targparam.h Mon Sep 13 01:20:53 2010 (r212513)
@@ -29,13 +29,19 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
/*
* Machine-dependent target parameters for lint1.
*/
+#ifdef __powerpc64__
+#include "lp64.h"
+#else
#include "ilp32.h"
+#endif
/*
* Should be set to 1 if the difference of two pointers is of type long
@@ -43,8 +49,13 @@
* kept in sync with the compiler!
*/
+#ifdef __powerpc64__
+#define PTRDIFF_IS_LONG 1
+#define SIZEOF_IS_ULONG 1
+#else
#define PTRDIFF_IS_LONG 0
#define SIZEOF_IS_ULONG 0
+#endif
#define FLOAT_SIZE (4 * CHAR_BIT)
#define DOUBLE_SIZE (8 * CHAR_BIT)
More information about the svn-src-head
mailing list