Module Name:    src
Committed By:   tsutsui
Date:           Mon Mar 23 13:47:32 UTC 2009

Modified Files:
        src/sys/arch/sparc/stand: Makefile.buildboot
        src/sys/arch/sparc/stand/bootxx: bootxx.c

Log Message:
- use -Os to shrink bianries
- remove local shrinked memcpy() from bootxx.c bacause
  now it's identical with __OPTIMIZE_SIZE__ libsa one
  derived from src/common/lib/libc/string/bcopy.c.

Tested netboot from le0 and bootxx + boot from sd0 on SS1+.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/sparc/stand/Makefile.buildboot
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/sparc/stand/bootxx/bootxx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/stand/Makefile.buildboot
diff -u src/sys/arch/sparc/stand/Makefile.buildboot:1.23 src/sys/arch/sparc/stand/Makefile.buildboot:1.24
--- src/sys/arch/sparc/stand/Makefile.buildboot:1.23	Sun Dec 11 12:19:08 2005
+++ src/sys/arch/sparc/stand/Makefile.buildboot	Mon Mar 23 13:47:32 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.buildboot,v 1.23 2005/12/11 12:19:08 christos Exp $
+#	$NetBSD: Makefile.buildboot,v 1.24 2009/03/23 13:47:32 tsutsui Exp $
 #
 # This file is for the sparc `boot' and `bootxx' only; it does not
 # currently play well on a 64-bit system.
@@ -34,7 +34,7 @@
 CPPFLAGS+=	-D_STANDALONE -DSUN4 -DSUN4C -DSUN4M -DSUN4D -DHEAP_VARIABLE
 
 CPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
-CFLAGS=		-O2
+CFLAGS=		-Os
 CFLAGS+=	-Wall -Wstrict-prototypes -Wmissing-prototypes -ffreestanding
 
 ### find out what to use for libkern

Index: src/sys/arch/sparc/stand/bootxx/bootxx.c
diff -u src/sys/arch/sparc/stand/bootxx/bootxx.c:1.22 src/sys/arch/sparc/stand/bootxx/bootxx.c:1.23
--- src/sys/arch/sparc/stand/bootxx/bootxx.c:1.22	Thu Mar 19 14:05:24 2009
+++ src/sys/arch/sparc/stand/bootxx/bootxx.c	Mon Mar 23 13:47:32 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: bootxx.c,v 1.22 2009/03/19 14:05:24 he Exp $ */
+/*	$NetBSD: bootxx.c,v 1.23 2009/03/23 13:47:32 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -140,19 +140,3 @@
 	}
 
 }
-
-/*
- * We don't need the overlap handling feature that the libkern version
- * of memcpy() provides. We DO need code compactness..
- */
-void *
-memcpy(void *dst, const void *src, size_t n)
-{
-	const char *p = src;
-	char *q = dst;
-
-	while (n-- > 0)
-		*q++ = *p++;
-
-	return dst;
-}

Reply via email to