joerg
be4584e4d4
Don't depend on ctype.h pulling in sys/ctype_bits.h, do so explicitly.
2013-04-26 17:34:55 +00:00
joerg
e8fa8f4db7
Extend ctype classification table to 16bit. Based on patch by
...
Takehiko Nozaki, with changes to compile fail when using the old names
and to exploit __BUILD_LEGACY
2013-04-13 10:21:20 +00:00
joerg
3942a5096b
yy_size_t is typically unsigned, so use a separate variable for the
...
return value of read(2).
2013-04-12 18:12:15 +00:00
christos
3eca9b543f
fix argument passing.
2013-04-11 19:00:41 +00:00
martin
ebfcfb962b
Fix "ashq" second argument sign extension (the assembler does not treat
...
-1 as a 64bit value).
Upstream reported as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56875
Problemm noted by Jonny Billquist (in lint), hint for solution from mouse.
2013-04-08 12:10:53 +00:00
dholland
255fdbee78
Improve the output of gcc when a subprogram gets a signal. When OOMing
...
it gets signal 9, which prints "Killed" -- that this is actually
signal 9 and not a generic message is never clear and causes people to
file PRs unnecessarily.
Suggested by followups to PR 44096.
I applied this to gcc 4.5 ages ago, but this copy has been sitting
around in one of my trees for even longer and it may as well get
committed too.
2013-04-05 03:14:45 +00:00
wiz
500d85431e
casing.
2013-03-08 08:29:36 +00:00
pooka
e23a1341b4
Add librumpclient. requested by wiz
2013-03-08 08:13:34 +00:00
wiz
ba9019db8d
Add libnpf. From rmind.
...
While here, add consistency in casing.
2013-03-07 21:54:04 +00:00
agc
63d2555829
Following a prompt from wiz, ensure that explanations for the
...
minimalist JSON library libmj, and the netpgp verification library,
libnetpgpverify, are in the correct places.
2013-03-07 05:33:13 +00:00
wiz
72cafb0e98
Add libmandoc.
2013-03-06 21:42:47 +00:00
joerg
34173e99da
Fix template lookup.
2013-03-02 23:23:55 +00:00
matt
58ca788453
Make GCC define __ARM_PCS and __ARM_PCS_VFP as defined by the ARM C Language
...
Extentions (clang already defines them):
__ARM_PCS is defined to 1 if the default procedure calling standard for
the translation unit conforms to the "base PCS" defined in [AAPCS].
__ARM_PCS_VFP is defined to 1 if the default is to pass floating-point
parameters in hardware floating-point registers using the "VFP variant PCS"
defined in [AAPCS].
2013-01-25 08:31:43 +00:00
christos
8743a11216
Apply GCC/35998 from FreeBSD http://svnweb.freebsd.org/changeset/base/245024
...
gcc: avoid generating negative values to DW_AT_byte_size.
There is a bug in gcc (GCC/35998) where dwarf reports
sizes of unsigned -1 (0xffffffff).
On NetBSD this generated a faulty CTF entry which then
caused a segfault in ctfmerge. The issue was worked
around in NetBSD's Dtrace but since the issue originated
in gcc, it seems reasonable to fix it here.
Thanks to Christoph Mallon for pointing out a correct fix.
2013-01-17 20:01:37 +00:00
apb
aa3786b9b6
Change several int variables to size_t, ssize_t, or ptrdiff_t.
...
This should fix the bug described in CVE-2012-5667 when an input
line is so long that its length cannot be stored in an int
variable.
This change to NetBSD's version of GNU grep 2.5.1 (licenced under
GPLv2) was made without direct reference to any code licenced
under GPLv3.
Thanks to Ignatios Souvatzis for looking at GPLv3-derived
patches and describing the problem in general terms. Thanks to
pkgsrc/devel/coccinelle for helping me find places where int
variables were used to store the results from pointer arithmetic
or strlen(). Thanks to Martin Husemann for testing.
2013-01-05 09:40:15 +00:00
wiz
6192c2fd3b
Set GNATS_ADDR to gnats-bugs@NetBSD.org, like in all other places.
...
Ok spz for admins.
Requested by Bug Hunting.
2012-12-21 09:40:17 +00:00
apb
ee9a2498cf
Adjust everything under src (but outside src/tools) to use
...
the TOOLDIR version of libnbcompat, associated include files,
and associated defs.mk file, instead of the version from the
.OBJDIR of src/tools/compat. This should fix PR 47188.
2012-12-02 12:55:27 +00:00
apb
6f1f99ca7a
Teach gcc4.1's cpp about the magic __COUNTER__ macro,
...
which returns a unique integer each time it is expanded.
This code was written without reference to any other
implementation of the same feature.
2012-11-24 09:07:44 +00:00
skrll
042a670178
Remove GDB 6.
2012-11-06 11:51:46 +00:00
joerg
135a988400
Don't link explicitly against libsupc++, just use the normal C++
...
linkage.
2012-08-10 12:12:18 +00:00
joerg
f184a5c33b
Only build gcc here, if MKGCC != no.
2012-08-10 12:11:30 +00:00
christos
edd104c76c
PR/46704: Antti Kantee: Recognize tilera in config.guess
2012-07-19 19:34:26 +00:00
matt
0bca5478cf
Fix ffssi2 again.
...
Use a UNSPEC for the internal ffs.
use (match_dup 1) since Z will be set if it is 0 just as if tst:SI was done.
This can let gcc produce better code if you code appropriately.
2012-07-16 17:39:29 +00:00
ragge
f5b90a279f
Bugfix builtin ffs, fixes PR port-vax/46677, fix from Paul Koning.
2012-07-11 13:34:45 +00:00
christos
cbd8b26f5f
add libexecinfo
2012-06-10 15:04:47 +00:00
christos
2636f12679
revert previous
2012-06-10 15:02:31 +00:00
christos
e848a9e55e
add libexecinfo
2012-06-10 00:25:51 +00:00
joerg
12d82dda2b
Format strings don't use all arguments in the non-pluralized case.
2012-05-09 07:59:23 +00:00
joerg
b757af438b
Disable new -Wstring-plus-int warning where needed for now.
...
Adjust various places that add GCC-only options to check for the active
compiler first.
2012-04-04 10:59:44 +00:00
christos
0357fcd849
PR/26453: Ken Raeburn: make zero byte allocations return NULL instead of error
...
out.
2012-03-12 17:41:59 +00:00
plunky
645e112039
format the generated manpage date as per Dd macro, for consistency
...
(although this field is a free-form footer, mandoc -Tlint warns about it)
2012-03-12 08:19:46 +00:00
wiz
7a488c1ecf
Fix typo, now this has a NAME section.
2012-03-11 10:21:25 +00:00
plunky
4dc9c6884a
use character escapes for non-ASCII chars, according to mandoc_char(7)
2012-03-11 08:44:45 +00:00
joerg
4acff4c01b
Implement sem_timedwait.
2012-03-08 21:59:24 +00:00
christos
540f3eef91
Teach rcs about the new cvs "commitid" keyword, so that we don't bitch each
...
time we play with an RCS file maintained by CVS.
2012-03-08 21:32:28 +00:00
matt
c706ec8d90
Add bsd_kvm.o
2012-03-02 16:39:26 +00:00
matt
f96b5daea9
target kvm support for mips
2012-03-02 16:38:20 +00:00
apb
0e3dcd74ed
Add a definition for ".St -isoC-2011". The equivalent definition
...
was already in external/bsd/mdocml/dist/st.in
2012-02-21 10:43:46 +00:00
riz
80d0f48794
Add NetBSD 7.0, and make the default 6.0.
2012-02-15 23:06:20 +00:00
matt
703f2e538a
Use REG_P, CONST_INT_P, and gcc_unreachable.
2012-02-05 17:34:34 +00:00
matt
a12df59a7e
Handle another case the new gcc_assert(0) caught.
2012-02-02 18:33:03 +00:00
matt
b7a0413860
Fix a bug in movmemsi in which couldn't handle sym(reg) expressions properly.
2012-02-02 13:32:17 +00:00
dholland
de37c897b5
Add libquota, as requested by wiz
2012-01-25 22:22:20 +00:00
joerg
a1968c686d
Second try to sort out the dangling elses. Just use {} markers.
...
Produces identical on amd64.
2012-01-12 14:10:56 +00:00
tron
f834547595
Revert last change. The extra while loop intruced by the macro changes
...
causes an end-less loop in ci(1) which uses "break" inside one of the
macros.
"/etc/security" will now no longer fill up "/" (or "/var" depending on
file-system layout).
2012-01-08 13:57:31 +00:00
joerg
3a4dc84ff4
Don't use dangling elses.
2012-01-06 15:16:02 +00:00
is
1ee229bdd2
Remove pattern for arith_adjacentmem in arm.md, thus fixing
...
PR toolchain/45576 at a very small run-time cost.
This was suggested by Richard Earnshaw.
A real fix is known to be in gcc 4.5.3 (as in NetBSD-current) and in
gcc-current; don't apply in that tree.
2011-11-07 20:35:39 +00:00
chs
02dd92991a
do not build profiling versions of libgcc or libgcc_eh.
...
they are not used, and they don't build on arm with gcc 4.5.
2011-10-17 14:20:54 +00:00
christos
ecb433c89b
undo previous, my sources were wrong.
2011-10-02 15:04:47 +00:00
christos
7cdf1ad1d3
add a missing file, found with the new binutils. No chance we are going
...
to run mknative again on this, so the manual fix.
2011-10-02 14:24:08 +00:00
apb
b799ebe187
Disable rebuilding files in the source tree.
2011-09-10 20:35:42 +00:00
wiz
7c47a19704
Add libppath.
2011-08-29 08:58:18 +00:00
joerg
4c415c49ae
Passes relaxed array boundary checks with clang now.
2011-08-09 13:02:11 +00:00
apb
576d24caba
Redo previous change in a better way, as suggested by mrg.
...
Where the original Makefile.in had this:
filename: dependencies
run autosomething to regenerate the file
we now do this:
filename: dependencies
@echo "NOT REBUILDING $@"
NetBSD_DISABLED_filename:
run autosomething to regenerate the file
2011-07-15 07:04:52 +00:00
apb
a28cf61e18
Sprinkle some "NetBSD_DISABLED_" prefixes in file names in Makefile
...
targets, to ensure that the associated commands do not run. This should
prevent source files from being overwritten at build time by autoconf
and friends. Fixes PR 45132.
2011-07-14 17:29:43 +00:00
martin
7d1d8fc18d
replace "(CORE_ADDR) (uintptr_t) NULL" by a simple "0" - avoids the dance
...
with HAVE_STDINT_H and fixes the tool build for me.
Idea from dsl, OK: mrg.
2011-07-11 18:47:01 +00:00
mrg
fc24f81836
apply a couple of (int) before r_type switch usage.
2011-07-07 07:47:11 +00:00
mrg
55bcf9d074
cast to int as the fake relocs are not in enum elf_ppc_reloc_type, and
...
GCC 4.5 complains about values not in the enum as part of a switch block.
2011-07-06 09:01:35 +00:00
mrg
fe6ec5094e
apply some -O0 for sun2.
2011-07-03 15:26:25 +00:00
mrg
67d3860982
apply some (uintptr_t) between pointers, ints and other casts.
2011-07-03 15:26:06 +00:00
mrg
f15b09a338
use:
...
extern "C" { stuff-here; }
instead of just
extern "C" stuff-here;
that GCC 4.5 demands.
2011-06-29 01:59:26 +00:00
mrg
8dbf0d5bb3
prepare to build native gcc 4.5, don't build native gcc 4.1, for HAVE_GCC=45
2011-06-21 04:52:49 +00:00
mrg
0de3f09ec1
remove sh5 code.
2011-06-20 09:27:43 +00:00
matt
408fc28bdd
If compiled with -msoft-float, make the compiler emit soft float code
...
by default.
2011-06-11 00:59:44 +00:00
matt
8798b98c60
If we are compiling -msoft-float, define _SOFT_FLOAT
2011-06-11 00:57:29 +00:00
tsutsui
c2c4ea5e04
Pull following m68k softfloat fixes from upstream:
...
---
Revision 109143
2005-12-29 Paul Brook <paul@codesourcery.com>
* config/m68k/fpgnulib.c (__extendsfdf2): Handle negative zero.
(__truncdfsf2): Ditto.
(__extenddfxf2): Ditto.
(__truncxfdf2): Ditto.
* config/m68k/lb1sf68.asm (__addsf3): Return -0.0 for -0.0 + -0.0.
(__adddf3): Ditto.
---
Revision 109145
2005-12-29 Paul Brook <paul@codesourcery.com>
* config/m68k/lb1sf68.asm (__cmpdf2): Fix typo in immediate mask.
Create wrapper and rename body...
(__cmpdf2_internal): ... to this. Return correct value for unordered
result.
(__cmpsf2): Create wrapper and rename body...
(__cmpsf2_internal): ... to this. Return corerct value for unordered
result.
(__eqdf2, __nedf2, __gtdf2, __gedf2, __ltdf2, __ledf2): Use
__cmpdf2_internal.
(__eqsf2, __nesf2, __gtsf2, __gesf2, __ltsf2, __lesf2): Use
__cmpsf2_internal.
---
Revision 110744
* gcc/config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
__muldf3): Return a correctly signed zero.
---
Note:
- lb1sf68.asm revision 110744 is still GPLv2.
- fpgnulib.c is not GPLed.
2011-06-07 14:22:14 +00:00
tsutsui
078de69e1f
Pull the following revision from upstream to provide __unordsf2() and
...
other missing softfloat functions:
---
Revision 108487
2005-12-13 Paul Brook <paul@codesourcery.com>
* config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
__floatunsidf, __floatunsisf, __floatunsixf): New functions.
---
Fixes link errors of sources that refer isnan() on m68000.
Note this file is not GPLed.
2011-06-06 12:02:26 +00:00
joerg
a5a3799cb4
Disable build with clang since it ends up calling __floatuntixf, which
...
this version of libgcc doesn't have.
2011-05-30 19:03:09 +00:00
joerg
28050549eb
Ignore warnings when building with clang for now.
2011-05-30 14:41:26 +00:00
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