/* $NetBSD: sync.c,v 1.7 1995/03/21 09:11:37 cgd Exp $ */ /* * Copyright (c) 1987, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY 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. */ #ifndef lint static char copyright[] = "@(#) Copyright (c) 1987, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)sync.c 8.1 (Berkeley) 5/31/93"; #else static char rcsid[] = "$NetBSD: sync.c,v 1.7 1995/03/21 09:11:37 cgd Exp $"; #endif #endif /* not lint */ #include int main(argc, argv) int argc; char *argv[]; { sync(); exit(0); } it message (Collapse)Author 2006-11-20Delete more gcc3 stuff.skrll 2004-02-27Backout recent changes made to gnu/lib/libgcc3 for a forced MKPIC=no build.skrll Fix the behaviour of native and tools gcc when MKPIC=no is specified for platforms that mknative has determined support shared libraries. XXX distrib/sets/sets.subr doesn't support MKPIC=no 2004-02-25Turns out we need libgcc_s for MKPIC=no too (C++ wants it).matt 2004-02-25Always build libgcc_eh. It's still needed when MKPIC=nomatt 2004-02-15Be more gcc like in the way we deal with libgcc so that sh3/hppa millicodeskrll and exception handling have a chance of working properly. - creates libgcc, libgcc_eh and libgcc_s - updates LIBGCC_SPEC to use them appropriately. There's a hack in here at the moment with respect to libgcc_so in that it is preferable to link against libgcc_so will only when -shared-libgcc is specified (the c++ frontend does this automatically.) Configurations where LINK_EH_SPEC is defined already do this. The gcc configuration for NetBSD/alpha and another NetBSD platform (I forget which) actually define LINK_EH_SPEC probably by accident rather than design. - updates share/mk to use the compiler's knowledge of what needs linking into libraries and executables. This removes an hppa hack. - updates the sets for the newly created libgcc* files. - support for linking against the _pg version of libgcc has been removed. 2004-02-12pass all required -I paths:mrg +CPPFLAGS+= -I${G_EXTRA_HEADERS:H:u} this fixes ppc builds (reported by hannken & briggs) 2004-02-11- some libgcc3/Makefile updates for new mknativemrg - re-run mknative for ~nearly everyone 2004-01-02Move libgcc3/*.mk to libgcc3/arch.skrll Update mknative-gcc. 2003-12-11Don't use -traditional-cpp when assembling the PowerPC .S files.matt 2003-10-28fix a typo in previous pointed out by lukemmrg 2003-10-27sun2 lib*3 for GCC3.mrg 2003-10-21Rework how MAKEVERBOSE operates:lukem * Don't bother prefixing commands with a line of ${_MKCMD}\ and instead rely upon "make -s". This is less intrusive on all the Makefiles than the former. Idea from David Laight. * Rename the variables use to print messages. The scheme now is: _MKMSG_FOO Run _MKMSG 'foo' _MKTARGET_FOO Run _MKMSG_FOO ${.TARGET} From discussion with Alistair Crooks. 2003-10-19Support MAKEVERBOSE.lukem Use BUILDSYMLINKS instead of home-grown equivalents. 2003-10-16Add "cs-tconfig.h" to "CLEANFILES".tron 2003-10-06Add in-tree toolchain support for HPPA.matt 2003-10-01Add dynamically generated sources to "CLEANFILES".tron 2003-09-05make sure we build the unwind handlers with "-fexception". they weremrg supposed to, but the wrong variable was used as a base... should fix PR#22673. 2003-08-22add a patch from <sdegler@degler.net> to build .asm files by copying themmrg to .S files first. 2003-08-01Rework how dependency generation is performed:lukem * DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES. This is a change of behaviour. If a Makefile wants the clean semantics it must specifically append to CLEANFILES. Resolves PR toolchain/5204. * To recap: .d (depend) files are generated for all files in SRCS and DPSRCS that have a suffix of: .c .m .s .S .C .cc .cpp .cxx * If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES * Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS} * Deprecate the (short lived) DEPENDSRCS Update the various Makefiles to these new semantics; generally either adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing specific .o dependencies with DPSRCS entries. Tested with "make -j 8 distribution" and "make distribution". 2003-08-01- fix several build problemsmrg - regenerate for most platforms. missing: m68000, alpha, sh3eb. 2003-07-30- find gthr-default.h for libgcc3mrg - adapt for gcc3/libiberty change - regenerate 2003-07-29Adapt to bsd.dep.mk changes.uwe 2003-07-27build-tested support for m68000, m68k, sh3el and sh3eb.mrg XXX: sun2 seems to be currently generally busted but most of the world builds. of course it is untested.. XXX: sh3* and -pg goes BOOM with gcc3.3... it generates code that uses the same labels twice... need to set NOPROFILE for now. 2003-07-26- build/install a libsupc++.amrg - clean up commented & wrong rules - find the right bits/ headers for sparc64 & arm - make sure libsupc++/libstdc++ have all the symbols from libiberty they want - disable the build of libstdc++ for now (but keep the includes installing) 2003-07-25make sure tconfig.h exists before .dependmrg 2003-07-25new reach-over infrastructure (largely based on GCC2.95 one) that (mostly)mrg works. sparc & i386 support is included here. libstdc++-v3 does not yet properly build for some strange reasons (that may be due to broken netbsd header files, it's not yet clear) but i have been able to compile, link and run both i386 & sparc hello.c.