Commit Graph

5902 Commits

Author SHA1 Message Date
drochner
ab9971ef78 add a line "image_generator gs" to the DESC file as the original
build framework does, lets "groff -Thtml" at least start
(it seems that ghostscript is not needed at least for simple documents)
2011-05-27 17:23:47 +00:00
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg
7411798a6a Don't define explicit instantiation as inline. 2011-05-25 15:51:55 +00:00
joerg
fb659447a4 Set WARNS explicitly to 0. 2011-05-25 15:24:07 +00:00
joerg
af600442cc Fix cast 2011-05-23 22:30:14 +00:00
joerg
2dd2550884 Avoid using a variable as format string. 2011-05-23 22:17:50 +00:00
wiz
d01698ddc5 Do not use TAB to line up library arguments, use spaces. 2011-05-21 17:15:46 +00:00
joerg
c4c86edd0d Put the -std=gnu89 into CPPFLAGS to make sure it gets applied after the
-std=gnu99. Add a comment about this.
2011-05-20 22:13:22 +00:00
joerg
b4f1f8d0c4 Needs -fheinous-gnu-extensions when building with Clang 2011-05-20 21:45:35 +00:00
joerg
5bb05ebf25 Force GNU89 mode for GCC itself to deal with the non-standard
"extern inline" mess.
2011-05-20 21:35:02 +00:00
joerg
19d7ede99e Clang doesn't support some of the GNU extensions here, so disable it. 2011-05-20 13:38:52 +00:00
christos
4c16c0afd2 Add missing prototype for __cmpdf2 2011-05-19 03:18:01 +00:00
christos
fdb4cc3dfa include headers to get proper prototypes visible. 2011-05-15 16:16:08 +00:00
christos
edde9a4247 find system.h in src 2011-05-15 14:57:56 +00:00
christos
3375c9d9a4 include "system.h" for idir() 2011-05-15 14:57:35 +00:00
christos
2944c22d0c include <sys/ioctl.h> for ioctl() 2011-05-15 14:35:47 +00:00
christos
6cea01f069 register c -> int c 2011-05-15 14:31:13 +00:00
christos
c6b5a988f9 include headers to make prototypes visible. 2011-05-15 14:30:08 +00:00
christos
6dbc927938 include posixver.h to find the prototype for posix2_version() 2011-05-15 13:55:21 +00:00
joerg
7e04890838 Fix two rather obviousbuffer overflows, one of them hitting all the time.
Inspired by corresponding FreeBSD patch.
2011-05-11 23:20:46 +00:00
christos
b58828d4bd Add a no_stack_protector function attribute to localize the effect
of disabling stack protection on a function-by-function level, as
opposed to per source file.
2011-05-08 01:49:32 +00:00
joerg
0cef9f9563 Add MKBSDGREP switch for easy testing of the GNU grep
replacement/alternative.
2011-04-21 14:26:33 +00:00
joerg
dd04acc9a4 Move the headers for compiler and platform specific intrinsincs from
/usr/include to /usr/include/gcc-4.1.
2011-04-15 13:42:22 +00:00
joerg
c5c155b784 Add back a stylish new line. 2011-04-10 21:25:56 +00:00
joerg
63235c7b3d Reduce difference between src/tools/gcc and src/gnu/usr.bin/gcc4
configuration. All but the target to helper programs should be the same.
Mark include directories as sysroot-relative.
2011-04-10 16:50:18 +00:00
joerg
6d711022e5 Don't install limits.h. 2011-04-10 16:48:51 +00:00
joerg
f9bbef6fd3 Extend CPPFLAGS, don't replace it 2011-04-10 16:47:04 +00:00
dyoung
444d8f7fa7 I've been using this patch (which comes from Matt Thomas, maybe?) for
about a year.  It make MKCROSSGDB=yes work for macppc, at least.
2011-04-04 22:33:32 +00:00
joerg
e9921aeb08 Don't install stddef.h and friends, they don't work as intended without
patching. Since our own versions are fine, don't bother.
2011-03-24 13:31:30 +00:00
matt
a1de880e3c Define HAVE_AS_TLS until our build tools figure out how to do it. 2011-03-12 07:57:38 +00:00
skrll
c86f122509 Re-run mknative to pick up TLS support.. 2011-03-10 15:15:26 +00:00
skrll
95e309863f Look for TLS on hppa on netbsd. 2011-03-10 15:14:49 +00:00
skrll
5463956946 Rename some registers to reflect reality. 2011-03-10 10:06:33 +00:00
skrll
59f75205eb Provide more regsiters including CR27. 2011-03-03 09:43:27 +00:00
haad
6024239e67 Fix problems in libdm manual page pointed by njoly@ thanks for help. 2011-02-28 23:23:08 +00:00
matt
3998b655ea Explicitly make sure TARGET_SECURE_PLT is defined correctly rather than
relying on HAVE_AS_REL16 from "auto-host.h".
2011-02-25 22:36:10 +00:00
joerg
bb8c5e2153 bsd-kvm.c needs -D_KMEMUSER now. 2011-02-18 22:27:51 +00:00
christos
13b2862bfd Tell the groff and friends about libsaslc(3).
Sort and fix whitespace on mdoc.local.
Add libisns to doc2html.
2011-02-11 23:47:49 +00:00
matt
73f5a201e2 Default NetBSD to -msecure-plt now. 2011-02-10 07:18:29 +00:00
joerg
403637aa12 Explicitly use template to allow building with the more strict
template lookup in clang. From FreeBSD.
2011-02-05 00:37:40 +00:00
uwe
9d18d32a41 Branch with delay slot executes delay slot even if branch is not
taken, so adjust next_pc logic accordingly.  Fixes SIGILL
(breakpoint's "trapa" causes an illegal slot instruction exception)
when stepping through such branches.
2011-02-04 00:05:29 +00:00
pooka
ff1200ecb5 add port-emips 2011-01-27 18:51:16 +00:00
matt
529766656e mips64 gcc now defaults to soft-float 2011-01-23 06:31:39 +00:00
matt
b2fee41732 Default mips64 to softfloat. 2011-01-23 06:29:52 +00:00
uwe
7b244b7d28 Add FreeBSD-9.0. 2011-01-19 00:10:10 +00:00
wiz
c1f176e16d Move isns description from dist/groff to usr.bin/groff, where it belongs.
Add isns to mdocml libraries as well.
2011-01-18 09:28:42 +00:00
matt
6038a89b0e Change to reflect switchframe/callframe changes. 2011-01-18 01:28:19 +00:00
matt
9925d622a5 Enable E500 (mpc85xx) support in GCC. 2011-01-18 00:19:28 +00:00
matt
bd081d44b9 Make the MIPS N32/N64 ABIs properly support 128-bit long doubles. With this
change, we should be fully conformant with the N32 and N64 ABIs.
Add {fpclassify,infinity,isnan,ininf,signbit}l_ieee754.c back to lib/libc/gen.
Note that infinityl_ieee754.c will work with either 64-bit, 80-bit, or
128-bit long doubles.
2011-01-17 23:53:03 +00:00
christos
0de39c68e9 add libisns 2011-01-17 21:57:04 +00:00
joerg
0e4ac962b5 Remove NOMANDOC, the documents are at least parsed somewhat sensible. 2011-01-12 23:03:55 +00:00
njoly
93cbd1415d Regen amd64 files for 32bit binaries support. 2010-12-24 14:49:18 +00:00
njoly
c196326bfe Add support for 32bit (i386) binaries on amd64. 2010-12-24 14:46:02 +00:00
njoly
deb4c35e46 Adjust LDFLAGS handling to fix curses detection for mknative-gdb. 2010-12-24 13:12:09 +00:00
matt
fbd8cee2df Emit DWARF relocation in its expected form 2010-12-22 02:58:35 +00:00
joerg
6c436c698f Push C++ library linkage into the shared Makefile.inc fragments. 2010-12-16 22:54:18 +00:00
wiz
3d3c5d42cb Observe the following spelling:
- wide character (noun)
- wide-character (adjective)

Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
joerg
674a655551 Prefix ctype bitmask macros with _CTYPE 2010-12-14 02:28:57 +00:00
mrg
1b84084183 remove obsolete file 2010-12-11 23:04:46 +00:00
joerg
2822ac080b Fix some LP64 issues 2010-12-08 01:54:21 +00:00
plunky
f33b316b63 Remove the do-external-lib and do-gnu-lib targets, along with
external/lib/Makefile and crypto/external/lib/Makefile, replacing
them all with SUBDIRs directly from lib/Makefile.

compat/compatsubdirs.mk becomes simpler now, as everything is built
from lib/Makefile, meaning all the libraries will now be built under
compat so update the set lists to account for that.
2010-12-03 21:38:46 +00:00
skrll
15fa0783d7 Centralise USE_COMPILERCRTSTUFF.
PCC might need help.
2010-11-28 18:40:54 +00:00
skrll
4da31ee6bb Don't create weird notes section in hppa binaries.
XXX maybe pa_netbsd_file_start is the proper fix.
2010-11-25 21:37:04 +00:00
skrll
50eaa87a8f Update pa-netbsd.h to match pa-linux.h where it should. That is, remove
local definitions of

	ASM_PREFERRED_EH_DATA_FORMAT
	ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX

and make it obvious we're not using local ASM_OUTPUT_INTERNAL_LABEL

This fixes the current build problems (and probably more)
2010-11-10 18:28:29 +00:00
dholland
5685631206 Fix -o behavior with patterns that match the empty string, as per PR 43896. 2010-09-28 00:54:04 +00:00
wiz
2ec5b1f671 Add entry for libperfuse. 2010-09-01 13:01:35 +00:00
joerg
a64143b682 PT_STEP historically ignores the argument. Indepent of whether this
behavior will be restored, pass down 0 for now to unbreak single
stepping after the thread changes.
2010-08-20 15:34:13 +00:00
wiz
dfcdc38176 Recognize x86 and xen. 2010-08-07 18:57:12 +00:00
joerg
5511fa25aa Don't build the CRT stuff here for i386 and x86_64. 2010-08-07 18:02:40 +00:00
matt
f2d2b6453a Don't use/rely on a constraint. Move the constraint predicate
to the pattern's condition.
2010-07-27 16:30:38 +00:00
matt
6910a36f83 Only allow jbls/jblc x(r) iff (x & 3) == 0 2010-07-27 01:13:41 +00:00
jnemeth
60fc9fff98 PR/43642 - OKANO Takayoshi -- update bug reporting URL in GCC 2010-07-19 20:05:06 +00:00
mrg
4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
joerg
7e9c48e195 Explicitly link libstdc++ against libm as found by Arnaud Lacombe. 2010-06-25 16:54:25 +00:00
christos
c48dffd069 perhaps this fixes the build issue? 2010-06-03 14:32:31 +00:00
jklos
99542d6976 Added optimization reduction for gdb/dwarf2-frame.c for Amigas. We don't
see the problem on other m68k platforms, but that could be because other
platforms don't have m68060s (except Atari, perhaps).
2010-05-28 19:11:23 +00:00
joerg
89d61a1cf0 Add .It for content of .Bl -column. Move .Pp out of .Bl. 2010-05-23 00:01:31 +00:00
joerg
571df0a6a5 Fix trailing whitespace 2010-05-14 01:53:28 +00:00
joerg
da269724b9 Reflect canonical order by majority rule. The local version in share/man
already got this chance a while ago.
2010-05-13 20:30:01 +00:00
mrg
2f6bd86c72 re-run mknative-gcc. picks up:
- gthr-posix.h fix
- stpcpy / stpncpy
- various GAS support
2010-05-08 03:00:10 +00:00
mrg
2eb85043a2 don't use the __{BIG,LITTLE}_ENDIAN__ test on NetBSD. it doesn't give
the right result for some platforms, and the later valid tests are
never used.  (this problem seems fixed in newer autoconf...)
2010-05-08 02:58:33 +00:00
drochner
3ad1f9ecb6 fix an operator precedence confusion which is harmless due to some luck 2010-05-06 19:00:08 +00:00
drochner
20f5933022 fix some operator precedence confusion (found by clang++)
Don't know whether this had a visible effect in practice, but the code
obviously didn't behave as expected.
2010-05-06 18:54:35 +00:00
drochner
7399a74f7a mknative-gcc run to pick up gthr-posix.h change
(also picks up stpcpy() and stpncpy(), and gas weakref support)
2010-05-06 10:08:11 +00:00
drochner
8d2b0eb1d3 make the stdc++ headers usable for clang++. clang wants that __weakref__
declarations are "static", gcc-4.1 uses "extern" here.
(gcc-4.2 uses "static" as well, so this looks like a bug in gcc.)
approved by mrg
2010-05-06 10:01:20 +00:00
uebayasi
fdee31b059 Make this build. 2010-04-21 12:58:38 +00:00
christos
765fc163a7 don't pretend to have do_fstatvfs 2010-04-07 17:13:10 +00:00
christos
2446060385 fix syntax errors 2010-04-07 12:58:33 +00:00
christos
66aa934e53 update system call table to reflect reality. 2010-04-06 23:02:10 +00:00
mrg
079372a7aa install altivec.h in powerpc64.
from dennis.c.ferguson@gmail.com in PR#43075.
2010-03-30 07:27:08 +00:00
mrg
d7055d4003 copy across the powerpc versions of these files for now. should use
mknative-gdb to generate these, but my initial attempt failed and
these ones seem to be about what i'd expect anyway.
suggested by dennis.c.ferguson@gmail.com in PR#43043.
2010-03-27 20:17:31 +00:00
mrg
1872638e5b don't include linux unwind support. we don't do this on 32 bit ppc,
we don't have the symbols to support it, and it breaks c++ linking.
from dennis.c.ferguson@gmail.com in PR#43041.
2010-03-27 20:11:06 +00:00
mrg
ac5bb775fa link in libsim on powerpc64 as well.
from dennis.c.ferguson@gmail.com in PR#43044.
2010-03-27 19:46:57 +00:00
skrll
5b65f3319f (re-)run gcc mknative for powerpc64.
Fixes PR/43008.
2010-03-19 14:01:57 +00:00
mrg
19499f3f8d update all of these makefiles for the .so -> .pico change.
most of them are most harmless, but the libgcc parts are quite essential.
before this change, all the special rules for .pico files were not applied,
and exception handling wasn't enabled.  this caused c++ exceptions not to
work on sparc64.


this fixes the build of boost-headers (it was correctly calling exception
support broken!), which in turn makes all the things that depend upon it
to actually work again on sparc64.
2010-03-14 00:26:09 +00:00
joerg
7780622b8d Use HUGE_VAL on VAX as INFINITY requires a warning according to ISO C99
on VAX. Use the less intrusive approach of a conditional here.
2010-03-01 00:15:47 +00:00
joerg
851c61a98d Resolve disagreement between comment and code in favour of the comment,
so that more than one .%U can be used. Found by Jukka Ruohonen.
2010-02-27 21:15:54 +00:00
dsl
02b1580f48 Fix check for old trap frame layout. 2010-02-22 08:19:38 +00:00
wiz
59afab0ca6 Add more FreeBSD versions. 2010-02-21 21:16:09 +00:00
wiz
00e9c46967 Add FreeBSD-8.0. 2010-02-21 21:08:27 +00:00