This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
No build regressions. Gcc internally generates calls to non-BP memcpy and memset, so we must have them for BP programs. Non-BP memchr is used by CHECK_STRING to check that '\0' occurs before the high bound. OK? 2000-07-15 Greg McGary <greg@mcgary.org> * Makerules (o-objects): Supplement with $(o-objects$o). * string/Makefile (o-objects.ob): Add variable to pull unbounded versions of memcpy, memset and memchr into libc_b. Index: Makerules =================================================================== RCS file: /cvs/glibc/libc/Makerules,v retrieving revision 1.339 diff -u -p -r1.339 Makerules --- Makerules 2000/06/21 18:15:14 1.339 +++ Makerules 2000/07/16 05:35:31 @@ -554,7 +554,9 @@ lib-noranlib: libobjs # Makefiles can define `elide-routines.so = foo' to leave foo.so out. o-objects = $(patsubst %.o,%$o,$(filter-out $(patsubst %,$(objpfx)%.o,\ $(elide-routines$o)),\ - $(objects))) + $(objects))) \ + $(addprefix $(objpfx),$(o-objects$o)) + others: $(addprefix $(objpfx),$(install-lib)) ifndef objects Index: string/Makefile =================================================================== RCS file: /cvs/glibc/libc/string/Makefile,v retrieving revision 1.48 diff -u -p -r1.48 Makefile --- Makefile 1999/10/04 06:40:34 1.48 +++ Makefile 2000/07/16 05:35:31 @@ -1,4 +1,4 @@ -# Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc. +# Copyright (C) 1991,92,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -40,6 +40,10 @@ routines := strcat strchr strcmp strcoll addsep replace) \ envz basename \ strcoll_l strxfrm_l string-inlines memrchr + +# Gcc internally generates calls to unbounded memcpy and memset +# for -fbounded-pointer compiles. Glibc uses memchr for explicit checks. +o-objects.ob := memcpy.o memset.o memchr.o tests := tester inl-tester noinl-tester testcopy test-ffs \ tst-strlen stratcliff tst-svc tst-inlcall
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |