Compile using gcc 3.0

Fixed alot of warnings when using gcc 3.0

svn path=/trunk/; revision=2255
This commit is contained in:
Casper Hornstrup 2001-09-23 22:14:10 +00:00
parent 09237b9213
commit 2eb7adef67
183 changed files with 244 additions and 246 deletions

View file

@ -1,9 +1,9 @@
/*
* entry.c
*
* $Revision: 1.15 $
* $Author: jfilby $
* $Date: 2001/07/01 14:32:47 $
* $Revision: 1.16 $
* $Author: chorns $
* $Date: 2001/09/23 22:14:10 $
*
*/
@ -487,3 +487,4 @@ ULONG VGADDIGetModes(IN HANDLE Driver,
}
/* EOF */

View file

@ -22,6 +22,4 @@ typedef struct {
unsigned int empty:16;
} long_double_t;
#endif

View file

@ -18,9 +18,9 @@
* DISCLAMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* $Revision: 1.4 $
* $Revision: 1.5 $
* $Author: chorns $
* $Date: 2000/12/08 22:09:17 $
* $Date: 2001/09/23 22:14:02 $
*
*/
/* Appropriated for Reactos Crtdll by Ariadne */

View file

@ -1,4 +1,4 @@
/* $Id: haltypes.h,v 1.1 2001/08/27 01:18:57 ekohl Exp $
/* $Id: haltypes.h,v 1.2 2001/09/23 22:14:03 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel

View file

@ -22,6 +22,4 @@ typedef struct {
unsigned int empty:16;
} long_double_t;
#endif

View file

@ -18,9 +18,9 @@
* DISCLAMED. This includes but is not limited to warranties of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* $Revision: 1.1 $
* $Author: ekohl $
* $Date: 2000/12/03 17:49:21 $
* $Revision: 1.2 $
* $Author: chorns $
* $Date: 2001/09/23 22:14:03 $
*
*/
/* Appropriated for Reactos Crtdll by Ariadne */

View file

@ -44,18 +44,18 @@ static inline void __put_user(unsigned long x, void * y, int size)
{
switch (size) {
case 1:
__asm__ ("movb %b1,%%fs:%0"
:"=m" (*__sd(y))
__asm__ ("movb %b1,%%fs:%0" \
:"=m" (*__sd(y)) \
:"iq" ((unsigned char) x), "m" (*__sd(y)));
break;
case 2:
__asm__ ("movw %w1,%%fs:%0"
:"=m" (*__sd(y))
__asm__ ("movw %w1,%%fs:%0" \
:"=m" (*__sd(y)) \
:"ir" ((unsigned short) x), "m" (*__sd(y)));
break;
case 4:
__asm__ ("movl %1,%%fs:%0"
:"=m" (*__sd(y))
__asm__ ("movl %1,%%fs:%0" \
:"=m" (*__sd(y)) \
:"ir" (x), "m" (*__sd(y)));
break;
default:
@ -69,18 +69,18 @@ static inline unsigned long __get_user(const void * y, int size)
switch (size) {
case 1:
__asm__ ("movb %%fs:%1,%b0"
:"=q" (result)
__asm__ ("movb %%fs:%1,%b0" \
:"=q" (result) \
:"m" (*__const_sd(y)));
return (unsigned char) result;
case 2:
__asm__ ("movw %%fs:%1,%w0"
:"=r" (result)
__asm__ ("movw %%fs:%1,%w0" \
:"=r" (result) \
:"m" (*__const_sd(y)));
return (unsigned short) result;
case 4:
__asm__ ("movl %%fs:%1,%0"
:"=r" (result)
__asm__ ("movl %%fs:%1,%0" \
:"=r" (result) \
:"m" (*__const_sd(y)));
return result;
default:
@ -91,26 +91,26 @@ static inline unsigned long __get_user(const void * y, int size)
static inline void __generic_memcpy_tofs(void * to, const void * from, unsigned long n)
{
__asm__ volatile
(" cld
push %%es
push %%fs
cmpl $3,%0
pop %%es
jbe 1f
movl %%edi,%%ecx
negl %%ecx
andl $3,%%ecx
subl %%ecx,%0
rep; movsb
movl %0,%%ecx
shrl $2,%%ecx
rep; movsl
andl $3,%0
1: movl %0,%%ecx
rep; movsb
pop %%es"
:"=abd" (n)
:"0" (n),"D" ((long) to),"S" ((long) from)
(" cld \
push %%es \
push %%fs \
cmpl $3,%0 \
pop %%es \
jbe 1f \
movl %%edi,%%ecx \
negl %%ecx \
andl $3,%%ecx \
subl %%ecx,%0 \
rep; movsb \
movl %0,%%ecx \
shrl $2,%%ecx \
rep; movsl \
andl $3,%0 \
1: movl %0,%%ecx \
rep; movsb \
pop %%es" \
:"=abd" (n) \
:"0" (n),"D" ((long) to),"S" ((long) from) \
:"cx","di","si");
}
@ -180,19 +180,19 @@ __asm__("cld\n\t" \
static inline void __generic_memcpy_fromfs(void * to, const void * from, unsigned long n)
{
__asm__ volatile
(" cld
cmpl $3,%0
jbe 1f
movl %%edi,%%ecx
negl %%ecx
andl $3,%%ecx
subl %%ecx,%0
fs; rep; movsb
movl %0,%%ecx
shrl $2,%%ecx
fs; rep; movsl
andl $3,%0
1: movl %0,%%ecx
(" cld \
cmpl $3,%0 \
jbe 1f \
movl %%edi,%%ecx \
negl %%ecx \
andl $3,%%ecx \
subl %%ecx,%0 \
fs; rep; movsb \
movl %0,%%ecx \
shrl $2,%%ecx \
fs; rep; movsl \
andl $3,%0 \
1: movl %0,%%ecx \
fs; rep; movsb"
:"=abd" (n)
:"0" (n),"D" ((long) to),"S" ((long) from)

View file

@ -25,6 +25,3 @@ int mblen( const char *s, size_t count )
return -1;
return l;
}

View file

@ -26,7 +26,7 @@ vswprintf(wchar_t *str, const wchar_t *fmt, va_list ap)
int len;
f._flag = _IOWRT|_IOSTRG;
f._ptr = str;
f._ptr = (char*)str;
f._cnt = INT_MAX;
f._file = -1;
len = vfwprintf(&f,fmt, ap);
@ -56,7 +56,7 @@ _vsnwprintf(wchar_t *str, size_t maxlen, const wchar_t *fmt, va_list ap)
FILE f;
int len;
f._flag = _IOWRT|_IOSTRG;
f._ptr = str;
f._ptr = (char*)str;
f._cnt = maxlen;
f._file = -1;
len = vfwprintf(&f,fmt, ap);

View file

@ -29,7 +29,7 @@
static const wchar_t encoding_mask[] =
{
~0x7ff, ~0xffff, ~0x1fffff, ~0x3ffffff
(wchar_t)~0x7ff, (wchar_t)~0xffff, (wchar_t)~0x1fffff, (wchar_t)~0x3ffffff
};
static const unsigned char encoding_byte[] =

View file

@ -56,3 +56,4 @@ unsigned char * _mbsnbcat(unsigned char *dst, const unsigned char *src, size_t n
}
return dst;
}

View file

@ -37,3 +37,4 @@ int _mbsnbicmp(const unsigned char *s1, const unsigned char *s2, size_t n)
} while (n > 0);
return 0;
}

View file

@ -1,6 +1,6 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <stdarg.h>
#include <msvcrt/stdio.h>
#include <msvcrt/stdarg.h>
#include <msvcrt/malloc.h>
#include <msvcrt/internal/file.h>
@ -12,7 +12,7 @@ int _isinf(double x);
int
__vfprintf (FILE *fp, const char *fmt0, va_list argp);
__vfprintf (FILE *fp, const char *fmt0, va_list args);
int
vfprintf(FILE *f, const char *fmt, va_list ap)

View file

@ -16,11 +16,10 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <stdarg.h>
#include <msvcrt/errno.h>
#include <limits.h>
#include <msvcrt/ctype.h>
#include <msvcrt/stdarg.h>
#include <msvcrt/stdio.h>
#include <msvcrt/stdlib.h>
#include <msvcrt/string.h>

View file

@ -1,6 +1,6 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <stdarg.h>
#include <msvcrt/stdio.h>
#include <msvcrt/stdarg.h>
#include <msvcrt/malloc.h>
#include <msvcrt/internal/file.h>

View file

@ -1,4 +1,4 @@
# $Id: makefile,v 1.65 2001/08/21 20:13:06 chorns Exp $
# $Id: makefile,v 1.66 2001/09/23 22:14:09 chorns Exp $
PATH_TO_TOP = ../..
@ -9,7 +9,8 @@ TARGET_NAME = ntdll
TARGET_CFLAGS = -D__NTDLL__
TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
-Wl,--section-alignment,0x1000
-Wl,--section-alignment,0x1000 \
-nostartfiles
TARGET_GCCLIBS = gcc

View file

@ -54,6 +54,7 @@ NtSystemDebugControl(DEBUG_CONTROL_CODE ControlCode,
#ifdef KDBG
LdrLoadUserModuleSymbols((PLDR_MODULE)InputBuffer);
#endif /* KDBG */
break;
}
return STATUS_SUCCESS;
}

View file

@ -29,7 +29,8 @@ rcopy$(EXE_POSTFIX): rcopy.c
endif
rdel$(EXE_POSTFIX): rdel.c
$(HOST_CC) $(CFLAGS) -liberty rdel.c -o rdel$(EXE_POSTFIX)
$(HOST_CC) $(CFLAGS) rdel.c -o rdel$(EXE_POSTFIX)
# $(HOST_CC) $(CFLAGS) -liberty rdel.c -o rdel$(EXE_POSTFIX)
ifeq ($(HOST),mingw32-linux)
rmkdir$(EXE_POSTFIX): rmkdir.c