22 Commits

Author SHA1 Message Date
49621cbaa0 Remove gmake support for cross-compilation
Change-Id: I41d5aec5e11df6c44438501b09f85c6ad5eba096
2018-08-25 13:47:25 +02:00
2054828fa8 Remove GCC Libraries dependencies
Change-Id: I75608863e4d321df1333649b23db63ec411c319e
2018-08-25 13:47:24 +02:00
4e339bc1ae Remove GCC support
Change-Id: Ie238ed4878bc6dcc6404648cb7c5b8c63d6b7c61
2018-08-25 13:47:22 +02:00
fe28e6e4e8 works better, but weird failures 2018-08-25 12:08:35 +02:00
5036a533c6 Create README.md 2018-08-25 12:08:35 +02:00
4db348ac63 Remove unncessary variable definitions 2018-08-25 12:08:34 +02:00
79b2b6d9f5 ARM: Compile whole tree with clang.
Note: GCC is still the default compiler, to use clang do the following:

 $ BUILDVARS="" ./releasetools/arm_sdimage.sh
2018-08-25 12:08:34 +02:00
39c5f62ec2 ARM: Remove linker script for VM.
The linker script has been replaced by small adaptations to make sure
the required structures are aligned at runtime per hardware
requirements.

In some cases, the linker script failed to guarantee proper physical
addresses alignement.

This is important for page entries descriptors which are required to be
aligned as the MMU doesn't support unaligned accesses to those.

Change-Id: I3e22d3da102230be2534b4261e2c6c937e367de6
2018-08-25 12:08:34 +02:00
Sevan Janiyan
7377a594e4 Sync with manuals from netbsd-8 branch.
Change-Id: I82fdb7486ae4f0f8f622046538806471bfb17c1d
2018-08-25 12:05:46 +02:00
Sevan Janiyan
a513517459 Sync with cat.c from netbsd-8
When cat is invoked with -se, print a '$' on blank lines.

Change-Id: I1bdcced967261a231eab93e8d28736f9f52f53fd
2018-08-25 12:05:46 +02:00
145839b147 Fix Compilation on Ubuntu 18.04
* Fix Compilation of GCC on Ubuntu 18.04
   Apply the following patch:
     https://gcc.gnu.org/git/?p=gcc.git;a=patch;h=ec1cc0263f156f70693a62cf17b254a0029f4852

 * Fix GNU make build on new GNU glibc systems

Change-Id: I44fcdc23b037a53d8cf50ec09ba9f210a1e127c8
2018-08-24 21:29:20 +02:00
03ac74ede9 Fix ARM NDEBUG Builds
Change-Id: I1250744d54b75d6380393afe848a6eb8c5dc894d
2018-03-31 19:34:03 +02:00
Arne Welzel
35b65c5af1 minix/tests/arm: naive tests to cause data aborts
Some assembly code to cause unaligned access as well as
segmentation faults to exercise the data abort path.

Change-Id: Ie419114b76a8db849537a94fda781019cf14d50d
2018-03-25 17:44:11 +02:00
Arne Welzel
0dd719f1bd kernel/arm: send SIGSEGV to processes
On second thought, handle unknown faults caused by processes by sending
SIGSEGV to them instead of bringing the whole system to a grind.

arm/archconst: use values defined in armreg.h

Change-Id: Ieed5bb06910ab0c8eef1e68b0b4eec680867acd3
2018-03-25 15:16:29 +02:00
Arne Welzel
5e9e5b98f6 bsd.own.mk: use -mno-unaligned-access on ARM
Without this option, gcc may emit code accessing unaligned memory. This,
and the fact that SCTRL.A (System Control Register - Alignment Check) is
set to 1 in Minix causes data aborts when such code is encountered.

This was the cause of #104. The `minix-service' executable caused
unaligned memory accesses calling into getpwnam(). These then trigger
data abort exceptions. On ARM, these were previously forwarded to `vm'
as pagefaults. However, `vm' did not properly handle them, but instead
allocated one page for the faulting address (over and over again) and
then resumed the process at the faulting instruction (over and over
again). This behavior masked the whole story as an OOM.

Below the assembly version getpwent.c in which unaligned memory
accesses are even highlighted...

 ...
 341         ldr     lr, [sp, #48]
 342         cmp     lr, #0
 343         bne     .L46
 344         ldr     r0, [r4]        @ unaligned
 345         add     r1, r7, #5
 346         str     r0, [sp, #4]    @ unaligned
 347         ldr     r4, [sp, #4]
 348         mov     r5, r4, asr #31
 349         strd    r4, [r8, #40]
 ...

This should fix #104. It was tested on an actual Beaglebone Black.

An alternative fix would be to disable alignment checking by setting
SCTRL.A to 0 and allowing unaligned memory accesses.

Change-Id: I4d366eb0af1b2936bca369fd28014fb829228ad5
2018-03-25 11:23:21 +02:00
Arne Welzel
7c3424c244 kernel/arm: do not treat all data aborts as pagefaults
For now, distinguish alignment, translation and permission faults.
The first kind of faults cause the kernel to send SIGBUS to the
process causing the fault, the latter two are forwarded to `vm' as
pagefaults. Previously, any data abort was forwarded to `vm' as
a pagefault, resulting in hard to debug issue #104.

Any unhandled fault status results in a disaster. This seems
better than naively hoping `vm' can do something about it.

Change-Id: I526f575bb2681e087e20fd49c5c0846cdd450c31
2018-03-25 11:22:35 +02:00
Marcelo Alencar
a27e58e1f7 Fix brazilian ABNT2 keymap
This adds two missing keys (0x73 and 0x7e) and fixes KP_PERIOD (it
should type a comma, not a period), as mentioned in

https://groups.google.com/d/msg/minix3/Pezep_HOL3I/mnfZXAeLsTMJ

Closes #247

Change-Id: Id85d04e36adcaa1a502cac8e5013396ea92502fe
2018-03-23 07:38:56 +01:00
blackdragonepic
4667c87c4d remove a duplicate include
removed #include <minix/type.h> duplicate

Closes #246

Change-Id: Icd575c452d562eb601133157a77d9d995ce043e9
2018-03-23 07:38:25 +01:00
Nik Nyby
2117e99cef Update usage man page: remove reference to /usr/ast
This directory no longer exists, probably since the netbsd file layout
re-organization.

Closes #244

Change-Id: Ie4e3761dbf3adbdd76cb6323f920a4abab6b29d5
2018-03-23 07:37:54 +01:00
Nik Nyby
9866ad31fd fs/mfs: Remove a few assert.h includes
Those are unnecessary.

Closes #241

Change-Id: I26db0f07c65e7d078e642001b97e6d4313e6660a
2018-03-23 07:36:59 +01:00
Nik Nyby
24f3305be0 mkfs.mfs: fix typo in error message
Closes #242

Change-Id: I91ec2b36b2abfa897a43c97d886578fd28a5c768
2018-03-23 07:33:25 +01:00
Krystian Lewandowski
b2ee0702ff pci server crashes during boot on Qubes OS
I tried to launch Minix3 in Qubes OS. While there is no problem to boot
minix as a qube (in Qubes OS terminology) before 3641562, it fails with
the commit (and after). I didn't digg into PCI handling but this change
fixes the problem. Minix handles NULL case from pci_subclass_name.

Change-Id: I162424d92b613598e6eb845a71f90a02e31041db
2017-11-16 23:05:02 +01:00
1767 changed files with 579 additions and 448849 deletions

17
README.md Normal file
View File

@@ -0,0 +1,17 @@
# Build MINIX/arm with clang
It is now possible to build a full minix distribution for BeaglBone White/Black and BeagleBoardxM using clang instead of GCC.
This also add support to run the Kuya tests on ARM, which was not possible when GCC was used, because of problems in the C++ exception handling.
## Known Bugs
The following tests still fails:
1. 53: Division by zero does not trigger exceptions
2. 75: ru.tv_secs can't be zero (and is zero)
3. 85: hangs
4. isofs: Fails because of an out of memory condition
5. vnd: crash
6. Running two times the kyua tests in a row, without rebooting in between will lead to a mostly failed second run because of copy-on-write errors.

View File

@@ -1,4 +1,4 @@
/* $NetBSD: cat.c,v 1.55 2015/07/25 16:17:01 sevan Exp $ */
/* $NetBSD: cat.c,v 1.57 2016/06/16 00:52:37 sevan Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -44,7 +44,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
#else
__RCSID("$NetBSD: cat.c,v 1.55 2015/07/25 16:17:01 sevan Exp $");
__RCSID("$NetBSD: cat.c,v 1.57 2016/06/16 00:52:37 sevan Exp $");
#endif
#endif /* not lint */
@@ -113,6 +113,7 @@ main(int argc, char *argv[])
vflag = 1;
break;
default:
case '?':
(void)fprintf(stderr,
"Usage: %s [-beflnstuv] [-B bsize] [-] "
"[file ...]\n", getprogname());
@@ -174,18 +175,16 @@ cook_buf(FILE *fp)
line = gobble = 0;
for (prev = '\n'; (ch = getc(fp)) != EOF; prev = ch) {
if (prev == '\n') {
if (ch == '\n') {
if (sflag) {
if (!gobble && nflag && !bflag)
(void)fprintf(stdout,
"%6d\t\n", ++line);
else if (!gobble && putchar(ch) == EOF)
break;
if (sflag) {
if (ch == '\n') {
if (gobble)
continue;
gobble = 1;
continue;
} else
gobble = 0;
}
if (nflag) {
if (!bflag) {
if (!bflag || ch != '\n') {
(void)fprintf(stdout,
"%6d\t", ++line);
if (ferror(stdout))
@@ -197,13 +196,7 @@ cook_buf(FILE *fp)
break;
}
}
} else if (nflag) {
(void)fprintf(stdout, "%6d\t", ++line);
if (ferror(stdout))
break;
}
}
gobble = 0;
if (ch == '\n') {
if (eflag)
if (putchar('$') == EOF)

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: chmod.1,v 1.25 2013/12/17 09:54:08 apb Exp $
.\" $NetBSD: chmod.1,v 1.26 2016/08/11 00:10:42 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)chmod.1 8.4 (Berkeley) 3/31/94
.\"
.Dd October 22, 2012
.Dd August 11, 2016
.Dt CHMOD 1
.Os
.Sh NAME
@@ -304,6 +304,11 @@ compatible with the exception of the
symbol
.Dq t
which is not included in that standard.
.Sh HISTORY
A
.Nm
utility appeared in
.At v1 .
.Sh BUGS
There's no
.Ar perm

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: cp.1,v 1.44 2015/06/28 16:22:54 wiz Exp $
.\" $NetBSD: cp.1,v 1.45 2016/08/11 00:17:23 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)cp.1 8.3 (Berkeley) 4/18/94
.\"
.Dd March 25, 2012
.Dd August 11, 2016
.Dt CP 1
.Os
.Sh NAME
@@ -255,3 +255,8 @@ The
.Fl v
option is an extension to
.St -p1003.2 .
.Sh HISTORY
A
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: csh.1,v 1.52 2013/01/22 21:20:26 wiz Exp $
.\" $NetBSD: csh.1,v 1.53 2016/08/10 17:16:47 sevan Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)csh.1 8.2 (Berkeley) 1/21/94
.\"
.Dd January 22, 2013
.Dd August 8, 2016
.Dt CSH 1
.Os
.Sh NAME
@@ -2233,7 +2233,7 @@ substitutions on a single line to 20.
.Sh HISTORY
.Nm
appeared in
.Bx 3 .
.Bx 2 .
It was a first implementation of a command language interpreter
incorporating a history mechanism (see
.Sx History substitutions ) ,

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: date.1,v 1.42 2012/04/06 11:36:56 wiz Exp $
.\" $NetBSD: date.1,v 1.44 2017/01/03 16:01:05 abhinav Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
.\"
.Dd November 15, 2006
.Dd August 11, 2016
.Dt DATE 1
.Os
.Sh NAME
@@ -148,7 +148,7 @@ The hour of the day, from 00 to 23.
.It Ar MM
The minute of the hour, from 00 to 59.
.It Ar SS
The second of the minute, from 00 to 61.
The second of the minute, from 00 to 60.
.El
.Pp
Everything but the minutes is optional.
@@ -244,3 +244,8 @@ The
.Nm
utility is expected to be compatible with
.St -p1003.2 .
.Sh HISTORY
A
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: dd.1,v 1.27 2015/03/18 13:30:13 wiz Exp $
.\" $NetBSD: dd.1,v 1.32 2016/08/18 22:43:49 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)dd.1 8.2 (Berkeley) 1/13/94
.\"
.Dd March 18, 2015
.Dd August 18, 2016
.Dt DD 1
.Os
.Sh NAME
@@ -209,7 +209,7 @@ in order to output to a nonexistent file.
The default or specified value is or'ed with
.Va rdwr
for a first
.Xt open 2
.Xr open 2
attempt, then on failure with
.Va wronly
on a second attempt.
@@ -486,7 +486,6 @@ To print summary information in human-readable form:
.Pp
To customize the information summary output and print it through
.Xr unvis 3 :
.Pp
.Bd -literal -offset indent
dd if=/dev/zero of=/dev/null count=1 \e
msgfmt='speed:%E, in %s seconds\en' 2\*[Gt]\*[Am]1 | unvis
@@ -516,3 +515,8 @@ and
values are extensions to the
.Tn POSIX
standard.
.Sh HISTORY
A
.Nm
utility appeared in
.At v5 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: df.1,v 1.44 2010/04/05 21:17:28 joerg Exp $
.\" $NetBSD: df.1,v 1.46 2016/08/10 23:48:14 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)df.1 8.2 (Berkeley) 1/13/92
.\"
.Dd March 4, 2008
.Dd August 10, 2016
.Dt DF 1
.Os
.Sh NAME
@@ -203,4 +203,4 @@ size block.
A
.Nm
utility appeared in
.At v6 .
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: echo.1,v 1.13 2003/08/07 09:05:12 agc Exp $
.\" $NetBSD: echo.1,v 1.15 2016/08/14 22:59:22 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
.\"
.Dd July 22, 1993
.Dd August 14, 2016
.Dt ECHO 1
.Os
.Sh NAME
@@ -66,3 +66,8 @@ The
utility is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
An
.Nm
utility appeared in
.At v2 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: expr.1,v 1.33 2012/08/12 17:27:04 wiz Exp $
.\" $NetBSD: expr.1,v 1.36 2016/08/23 20:34:23 sevan Exp $
.\"
.\" Copyright (c) 2000,2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd April 20, 2004
.Dd August 23, 2016
.Dt EXPR 1
.Os
.Sh NAME
@@ -214,7 +214,7 @@ treat it as a delimiter to mark the end of command
line options, and ignore it.
Some
.Nm
implementations don't recognize it at all; others
implementations do not recognize it at all; others
might ignore it even in cases where doing so results in syntax
error.
There should be same result for both following examples,
@@ -242,15 +242,28 @@ The
.Ar length
keyword is an extension for compatibility with GNU
.Nm .
.Sh HISTORY
An
.Nm
utility first appeared in the Programmer's Workbench (PWB/UNIX).
A public domain version of
.Nm
written by
.An Pace Willisson
.Aq pace@blitz.com
appeared in
.Bx 386 0.1 .
.Sh AUTHORS
Original implementation was written by
.An J.T. Conklin
.Aq jtc@NetBSD.org .
It was rewritten for
Initial implementation by
.An Pace Willisson Aq Mt pace@blitz.com
was largely rewritten by
.An -nosplit
.An J.T. Conklin Aq Mt jtc@NetBSD.org .
It was rewritten again for
.Nx 1.6
by
.An Jaromir Dolecek
.Aq jdolecek@NetBSD.org .
.An -nosplit
.An Jaromir Dolecek Aq Mt jdolecek@NetBSD.org .
.Sh NOTES
The empty string
.Do Dc

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: kill.1,v 1.22 2012/03/22 07:58:17 wiz Exp $
.\" $NetBSD: kill.1,v 1.28 2017/04/22 23:01:36 christos Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)kill.1 8.2 (Berkeley) 4/28/95
.\"
.Dd April 28, 1995
.Dd April 22, 2017
.Dt KILL 1
.Os
.Sh NAME
@@ -63,7 +63,6 @@ by the pid operand(s).
Only the super-user may send signals to other users' processes.
.Pp
The options are as follows:
.Pp
.Bl -tag -width Ds
.It Fl s Ar signal_name
A symbolic signal name specifying the signal to be sent instead of the
@@ -104,6 +103,9 @@ belonging to the user.
.Pp
Some of the more commonly used signals:
.Bl -tag -width Ds -compact
.It 0
0 (does not affect the process; can be used to test whether the
process exists)
.It 1
HUP (hang up)
.It 2
@@ -130,6 +132,8 @@ arguments.
See
.Xr csh 1
for details.
.Sh DIAGNOSTICS
.Ex -std
.Sh SEE ALSO
.Xr csh 1 ,
.Xr pgrep 1 ,
@@ -141,11 +145,12 @@ for details.
.Sh STANDARDS
The
.Nm
function is expected to be
utility is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
A
.Nm
command appeared in
.At v6 .
.At v3
in section 8 of the manual.

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: ls.1,v 1.78 2014/10/18 01:49:01 jschauma Exp $
.\" $NetBSD: ls.1,v 1.79 2016/08/10 17:45:12 sevan Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\"
.Dd October 17, 2014
.Dd August 10, 2016
.Dt LS 1
.Os
.Sh NAME
@@ -513,4 +513,4 @@ specification.
An
.Nm
utility appeared in
.At v5 .
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: mkdir.1,v 1.17 2012/03/22 07:58:17 wiz Exp $
.\" $NetBSD: mkdir.1,v 1.19 2016/08/10 18:42:00 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)mkdir.1 8.2 (Berkeley) 1/25/94
.\"
.Dd January 25, 1994
.Dd August 10, 2016
.Dt MKDIR 1
.Os
.Sh NAME
@@ -92,3 +92,8 @@ The
utility is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
A
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: mv.1,v 1.26 2012/03/22 07:58:17 wiz Exp $
.\" $NetBSD: mv.1,v 1.28 2016/08/10 18:08:14 sevan Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)mv.1 8.1 (Berkeley) 5/31/93
.\"
.Dd December 26, 2002
.Dd August 10, 2016
.Dt MV 1
.Os
.Sh NAME
@@ -144,3 +144,8 @@ The
.Fl v
option is an extension to
.St -p1003.2 .
.Sh HISTORY
An
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: cpio.1,v 1.13 2011/06/19 07:34:24 wiz Exp $
.\" $NetBSD: cpio.1,v 1.14 2015/12/19 18:48:33 wiz Exp $
.\"
.\" Copyright (c) 1997 SigmaSoft, Th. Lockert
.\" All rights reserved.
@@ -297,7 +297,8 @@ specific archive format specification.
.Xr pax 1 ,
.Xr tar 1
.Sh AUTHORS
Keith Muller at the University of California, San Diego.
.An Keith Muller
at the University of California, San Diego.
.Sh BUGS
The
.Fl s

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: pwd.1,v 1.24 2003/10/30 14:58:23 wiz Exp $
.\" $NetBSD: pwd.1,v 1.25 2016/08/12 02:03:26 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)pwd.1 8.2 (Berkeley) 4/28/95
.\"
.Dd October 30, 2003
.Dd August 12, 2016
.Dt PWD 1
.Os
.Sh NAME
@@ -87,6 +87,11 @@ except that the default is
.Fl P
not
.Fl L .
.Sh HISTORY
A
.Nm
utility appeared in
.At v5 .
.Sh BUGS
In
.Xr csh 1

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: rm.1,v 1.27 2013/04/26 19:34:34 wiz Exp $
.\" $NetBSD: rm.1,v 1.28 2016/08/12 02:26:42 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994, 2003
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)rm.1 8.5 (Berkeley) 12/5/94
.\"
.Dd April 26, 2013
.Dd August 12, 2016
.Dt RM 1
.Os
.Sh NAME
@@ -190,6 +190,11 @@ magnetic disk.
.Em Because these requirements are not met, the
.Fl P
.Em option does not conform to the standard .
.Sh HISTORY
An
.Nm
utility appeared in
.At v1 .
.Sh BUGS
The
.Fl P

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: rmdir.1,v 1.15 2003/08/07 09:05:29 agc Exp $
.\" $NetBSD: rmdir.1,v 1.16 2016/08/12 02:30:37 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)rmdir.1 8.1 (Berkeley) 5/31/93
.\"
.Dd May 31, 1993
.Dd August 12, 2016
.Dt RMDIR 1
.Os
.Sh NAME
@@ -88,3 +88,8 @@ The
utility is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
An
.Nm
utility appeared in
.At v1 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: sleep.1,v 1.22 2011/08/15 14:45:36 wiz Exp $
.\" $NetBSD: sleep.1,v 1.23 2016/08/12 02:36:38 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)sleep.1 8.3 (Berkeley) 4/18/94
.\"
.Dd August 13, 2011
.Dd August 12, 2016
.Dt SLEEP 1
.Os
.Sh NAME
@@ -121,3 +121,8 @@ The
command is expected to be
.St -p1003.2
compatible.
.Sh HISTORY
A
.Nm
utility appeared in
.At v4 .

View File

@@ -1,4 +1,4 @@
.\" $NetBSD: stty.1,v 1.41 2012/06/20 14:19:39 wiz Exp $
.\" $NetBSD: stty.1,v 1.43 2016/08/14 23:29:43 sevan Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)stty.1 8.5 (Berkeley) 6/1/94
.\"
.Dd June 16, 2012
.Dd August 15, 2016
.Dt STTY 1
.Os
.Sh NAME
@@ -633,3 +633,8 @@ and
flags are
extensions to the standard, as are the operands mentioned in the control
operations section.
.Sh HISTORY
An
.Nm
utility appeared in
.At v2 .

View File

@@ -81,6 +81,9 @@
./usr/include/arm/vm.h minix-comp
./usr/include/arm/vmparam.h minix-comp
./usr/include/arm/wchar_limits.h minix-comp
./usr/include/clang-3.6/arm_acle.h minix-comp llvm,llvmcmds
./usr/include/clang-3.6/arm_neon.h minix-comp llvm,llvmcmds
./usr/include/clang-3.6/stdatomic.h minix-comp llvm,llvmcmds
./usr/include/evbarm minix-comp
./usr/include/evbarm/disklabel.h minix-comp
./usr/include/evbarm/intr.h minix-comp

View File

@@ -0,0 +1,9 @@
#
# Sorted using sort_set.pl in releasetools.
# to add an entry simply add it at the end of the
# file and run
# ../../../../releasetools/sort_set.pl < mi > out
# mv out mi
#
./usr/tests/minix-posix/test_arm_segfault minix-tests
./usr/tests/minix-posix/test_arm_unaligned minix-tests

View File

@@ -7,6 +7,10 @@ MAN= named.8 lwresd.8 named.conf.5
BINDIR= /usr/sbin
LINKS= ${BINDIR}/named ${BINDIR}/lwresd
.if defined(__MINIX)
CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
.endif # defined(__MINIX)
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/named

View File

@@ -606,15 +606,21 @@ lwres_conf_parse(lwres_context_t *ctx, const char *filename) {
FILE *fp = NULL;
char word[256];
lwres_result_t rval, ret;
#if !defined(NDEBUG) && defined(__minix)
lwres_conf_t *confdata;
#endif /* !defined(NDEBUG) && defined(__minix) */
int stopchar;
REQUIRE(ctx != NULL);
#if !defined(NDEBUG) && defined(__minix)
confdata = &ctx->confdata;
#endif /* !defined(NDEBUG) && defined(__minix) */
REQUIRE(filename != NULL);
REQUIRE(strlen(filename) > 0U);
#if !defined(NDEBUG) && defined(__minix)
REQUIRE(confdata != NULL);
#endif /* !defined(NDEBUG) && defined(__minix) */
errno = 0;
if ((fp = fopen(filename, "r")) == NULL)

View File

@@ -7,6 +7,11 @@ LIB=dns
.include "${.CURDIR}/../Makefile.inc"
.if defined(__MINIX)
#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Os
CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
.endif # defined(__MINIX)
DIST= ${IDIST}/lib/dns
.include "${DIST}/api"
.include "${DIST}/mapapi"

View File

@@ -5,6 +5,11 @@ LIB=isc
.include <bsd.own.mk>
.if defined(__MINIX)
#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Os
CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
.endif # defined(__MINIX)
.include "${.CURDIR}/../Makefile.inc"
DIST= ${IDIST}/lib/isc

View File

@@ -12,3 +12,11 @@ MAN = dhcp-options.5 dhcp-eval.5
DHCPSRCDIR= common
.include <bsd.lib.mk>
.if defined(__MINIX)
.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
!empty(DBG:M-g) || !empty(CFLAGS:M-g)
#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
.endif
.endif # defined(__MINIX)

View File

@@ -14,6 +14,10 @@ CPPFLAGS+= -DHAVE_CONFIG_H
.include <bsd.own.mk>
.if defined(__MINIX)
CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
.endif # defined(__MINIX)
SRCS+= auth.c hmac_md5.c
USE_INET?= yes

View File

@@ -3816,6 +3816,7 @@ class ARMTargetInfo : public TargetInfo {
SizeType = UnsignedInt;
switch (T.getOS()) {
case llvm::Triple::Minix:
case llvm::Triple::NetBSD:
WCharType = SignedInt;
break;

View File

@@ -275,7 +275,7 @@ std::string ToolChain::ComputeLLVMTriple(const ArgList &Args,
// FIXME: Thumb should just be another -target-feaure, not in the triple.
#if defined(__minix) || 1
// Minix/ARM-specific force to ARMv7 and EABI.
StringRef Suffix = "v7";
StringRef Suffix = "v7a";
Triple.setEnvironment(llvm::Triple::EABI);
#else
StringRef Suffix = Triple.isOSBinFormatMachO()

View File

@@ -665,6 +665,10 @@ StringRef tools::arm::getARMFloatABI(const Driver &D, const ArgList &Args,
}
break;
case llvm::Triple::Minix:
FloatABI = "softfp";
break;
default:
switch(Triple.getEnvironment()) {
case llvm::Triple::GNUEABIHF:
@@ -796,6 +800,9 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
ABIName = "aapcs";
break;
default:
if (Triple.getOS() == llvm::Triple::Minix)
ABIName = "apcs-gnu";
if (Triple.getOS() == llvm::Triple::NetBSD)
ABIName = "apcs-gnu";
else
@@ -7733,6 +7740,11 @@ void minix::Link::ConstructJob(Compilation &C, const JobAction &JA,
// Many NetBSD architectures support more than one ABI.
// Determine the correct emulation for ld.
switch (getToolChain().getArch()) {
case llvm::Triple::arm:
case llvm::Triple::thumb:
CmdArgs.push_back("-m");
CmdArgs.push_back("armelf_minix");
break;
case llvm::Triple::x86:
CmdArgs.push_back("-m");
CmdArgs.push_back("elf_i386_minix");

View File

@@ -638,6 +638,8 @@ llvm::Optional<ProgramStateRef> MallocChecker::performKernelMalloc(
if (!KernelZeroFlagVal.hasValue()) {
if (OS == llvm::Triple::FreeBSD)
KernelZeroFlagVal = 0x0100;
else if (OS == llvm::Triple::Minix)
KernelZeroFlagVal = 0x0002;
else if (OS == llvm::Triple::NetBSD)
KernelZeroFlagVal = 0x0002;
else if (OS == llvm::Triple::OpenBSD)

View File

@@ -1074,6 +1074,8 @@ const char *Triple::getARMCPUForArch(StringRef MArch) const {
// supported by LLVM.
// FIXME: Should warn once that we're falling back.
switch (getOS()) {
case llvm::Triple::Minix:
return "cortex-a8";
case llvm::Triple::NetBSD:
switch (getEnvironment()) {
case llvm::Triple::GNUEABIHF:

View File

@@ -59,6 +59,7 @@ ARMELFMCAsmInfo::ARMELFMCAsmInfo(StringRef TT) {
// Exceptions handling
switch (TheTriple.getOS()) {
case Triple::Minix:
case Triple::NetBSD:
ExceptionsType = ExceptionHandling::DwarfCFI;
break;

View File

@@ -6,6 +6,14 @@ USE_WIDECHAR?=yes
CWARNFLAGS.clang+= -Wno-uninitialized -Wno-format-security
.if defined(__MINIX)
.if !empty(DBG:M-Og) || !empty(CFLAGS:M-Og) || \
!empty(DBG:M-g) || !empty(CFLAGS:M-g)
#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
.endif
.endif # defined(__MINIX)
CPPFLAGS+=-I${DIST}/include -I${.CURDIR} -I. -DGTAGS
#DBG=-g
#CPPFLAGS+=-DLOGDEBUG -DTRACE

View File

@@ -6,6 +6,12 @@ CWARNFLAGS.clang+= -Wno-constant-logical-operand -Wno-error=unused-function
.include <bsd.own.mk>
.if defined(__MINIX)
#LSC: -Wno-unused-but-set-variable while compiling with -DNDEBUG -O2
#LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -O3
CWARNFLAGS.gcc+= -Wno-unused-but-set-variable -Wno-maybe-uninitialized
.endif # defined(__MINIX)
USE_FORT?= yes # network client
BINDIR=/usr/sbin

View File

@@ -1,27 +0,0 @@
# $NetBSD: Makefile,v 1.5 2009/04/08 17:24:55 christos Exp $
.include <bsd.own.mk>
.if defined(__MINIX) && 0
# LSC FIXME: Hackish way to trigger the fetch phase from here
# in the same way as from tools.
MODULE= gmake
.include "${.CURDIR}/../../tools/Makefile.gnuhost"
# Force the mapping to standard targets even when not building tools
# We considere work to be done as soon as the fetch step is done,
# as everything else has to be triggered from /tools or ../usr.bin
.if ${USETOOLS} != "yes"
realall realinstall: ${GNUHOSTDIST:H}/.gitignore
.endif # defined(__MINIX)
.if (${MKCVS} != "no")
SUBDIR+= xcvs
.endif
.if (${MKLVM} != "no")
SUBDIR+= lvm2
.endif
.include <bsd.subdir.mk>

View File

@@ -1,31 +0,0 @@
#!/bin/sh
# Make sure we're in our directory (i.e., where this shell script is)
echo $0
cd `dirname $0`
FETCH=ftp
which curl >/dev/null
if [ $? -eq 0 ]; then
FETCH="curl -O -f"
fi
# Configure fetch method - GMAKE
URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/make-3.81.tar.bz2"
BACKUP_URL="ftp://ftp.gnu.org/gnu/make/make-3.81.tar.bz2"
# Fetch sources if not available
if [ ! -d dist ];
then
if [ ! -f make-3.81.tar.bz2 ]; then
$FETCH $URL
if [ $? -ne 0 ]; then
$FETCH $BACKUP_URL
fi
fi
tar -xjf make-3.81.tar.bz2 && \
mv make-3.81 dist && \
cd dist && \
cat ../patches/* | patch -p 1 || true
fi

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +0,0 @@
# $NetBSD: Makefile,v 1.2 2015/01/05 01:52:23 mrg Exp $
SUBDIR+= lib
.include <bsd.own.mk>
.if ${MKGCCCMDS} != "no"
SUBDIR+= .WAIT usr.bin
.endif
.include <bsd.subdir.mk>

View File

@@ -1,16 +0,0 @@
# $NetBSD: Makefile.gcc_path,v 1.2 2014/06/14 20:49:36 mrg Exp $
# Define some commom paths
.ifndef _EXTERNAL_GPL3_GCC_MAKEFILE_INC_
_EXTERNAL_GPL3_GCC_MAKEFILE_INC_=1
.include <bsd.own.mk>
GCC_SUBDIR= ${NETBSDSRCDIR}/external/gpl3/${EXTERNAL_GCC_SUBDIR}
#.if exists(${GCC_SUBDIR}/dist)
GCCDIST= ${GCC_SUBDIR}/dist
#.endif
.endif # _GPL3_GCC_MAKEFILE_INC_

View File

@@ -1,27 +0,0 @@
# $NetBSD: Makefile.hooks,v 1.1 2014/03/01 10:00:31 mrg Exp $
#
# Makefile fragment to build genhooks and *target-hooks*.h
#
.for f in hooks
gen${f}.lo: ${HH} gen${f}.c
gen${f}: gen${f}.lo ${GENPROG_ERROR_DEPENDS}
${_MKTARGET_LINK}
${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
CLEANFILES+= genhooks
.endfor
# and now the outputs of genhooks
target-hooks-def.h: genhooks
./genhooks "Target Hook" >${.TARGET}
c-family/c-target-hooks-def.h: genhooks
mkdir -p c-family
./genhooks "C Target Hook" >${.TARGET}
common/common-target-hooks-def.h: genhooks
mkdir -p common
./genhooks "Common Target Hook" >${.TARGET}
CLEANFILES+= target-hooks-def.h \
c-family/c-target-hooks-def.h \
common/common-target-hooks-def.h

View File

@@ -1,34 +0,0 @@
$Id: README.gcc48,v 1.6 2015/01/10 22:58:38 mrg Exp $
usr.bin:
note:
-static-libstdc++ -static-libgcc
-rdynamic -lz
lib:
G_NOEXCEPTION_FLAGS -- need to use this
new stuff:
cc1objcplus
collect2 -- need to re-introduce?
gcc-ar, -nm and -ranlib, for lto plugin stuff
- what is libitm?
x86_64 port:
- copied manually i386-builtin-types.inc instead of generating it.
arch/feature list. anything not here has been switched already:
architecture tools kernels libgcc native-gcc make release runs atf
------------ ----- ------- ------ ---------- ------------ ---- ---
coldfire yes N/A[9] yes yes yes ? ?
m68000 yes ? yes no[3]
m68k yes yes yes yes yes
powerpc64 yes[4]
[3] relocations fail in libgcc
[4] cc1 gets segv compiling libgcc.
[9] no kernels in evbcf port yet

View File

@@ -1,73 +0,0 @@
#!/bin/sh
# Make sure we're in our directory (i.e., where this shell script is)
echo $0
cd `dirname $0`
# Default sed: whatever's in $PATH; set by the buildsystem to be the
# host-built sed tool we know supports the syntax we use
: ${SED=sed}
# Configure fetch method
URL="http://www.minix3.org/pkgsrc/distfiles/minix/3.4.0/gcc-4.8.5.tar.bz2"
BACKUP_URL="ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.8.5/gcc-4.8.5.tar.bz2"
FETCH=ftp
if which curl >/dev/null
then
FETCH="curl -O -f"
fi
# Remove a few directories from the start, so we do not end up with a 165MB patch...
DELETEDIRS="
boehm-gc
gcc/ada
gcc/fortran
gcc/go
gcc/java
gcc/po
gcc/testsuite
libada
libatomic
libcpp/po
libffi
libgfortran
libgo
libgomp/testsuite
libiberty/testsuite
libitm/testsuite
libjava
libmudflap/testsuite
libquadmath
libstdc++-v3/po
libstdc++-v3/testsuite
zlib
"
# Fetch sources if not available
if [ ! -d dist ];
then
if [ ! -f gcc-4.8.5.tar.bz2 ];
then
$FETCH $URL
if [ $? -ne 0 ]; then
$FETCH $BACKUP_URL
fi
fi
tar -oxjf gcc-4.8.5.tar.bz2
mv gcc-4.8.5 dist
cd dist
rm -rf $DELETEDIRS
#for f in gcc/doc/gccinstall.info gcc/doc/gccint.info
#do # This is a hack to remove NUL characters in these .info
# files. They make some patch(1)es fail.
# $SED 's/^..\[index..\]$/[index]/' <$f >k && mv k $f
# done
cat ../patches/* | patch -p1
cp ../files/minix.h gcc/config/
cp ../files/t-minix gcc/config/
cp ../files/minix-spec.h gcc/config/
cp ../files/arm-minix.h gcc/config/arm/minix.h
cp ../files/i386-minix.h gcc/config/i386/minix.h
cp ../files/gcov-minix-fs-wrapper.h gcc/
fi

View File

@@ -1,150 +0,0 @@
/* Definitions for ARM running MINIX using the ELF format
Copyright (C) 2001, 2004, 2007 Free Software Foundation, Inc.
Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
Adapted for MINIX by Lionel Sambuc <lionel@minix3.org>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 3, or (at your
option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
#undef MINIX_TARGET_CPU_CPP_BUILTINS
#define MINIX_TARGET_CPU_CPP_BUILTINS() \
do \
{ \
TARGET_BPABI_CPP_BUILTINS(); \
if (ARM_EABI_UNWIND_TABLES) \
builtin_define ("__UNWIND_TABLES__"); \
} \
while (0)
/* Define the actual types of some ANSI-mandated types.
Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
c-common.c, and config/<arch>/<arch>.h. */
#undef SIZE_TYPE
#define SIZE_TYPE "unsigned int"
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE "int"
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
#undef WINT_TYPE
#define WINT_TYPE "int"
/* We don't have any limit on the length as out debugger is GDB. */
#undef DBX_CONTIN_LENGTH
/* NetBSD does its profiling differently to the Acorn compiler. We
don't need a word following the mcount call; and to skip it
requires either an assembly stub or use of fomit-frame-pointer when
compiling the profiling functions. Since we break Acorn CC
compatibility below a little more won't hurt. */
#undef ARM_FUNCTION_PROFILER
#define ARM_FUNCTION_PROFILER(STREAM,LABELNO) \
{ \
asm_fprintf (STREAM, "\tmov\t%Rip, %Rlr\n"); \
asm_fprintf (STREAM, "\tbl\t__mcount%s\n", \
(TARGET_ARM && NEED_PLT_RELOC) \
? "(PLT)" : ""); \
}
/* VERY BIG NOTE: Change of structure alignment for NetBSD/arm.
There are consequences you should be aware of...
Normally GCC/arm uses a structure alignment of 32 for compatibility
with armcc. This means that structures are padded to a word
boundary. However this causes problems with bugged NetBSD kernel
code (possibly userland code as well - I have not checked every
binary). The nature of this bugged code is to rely on sizeof()
returning the correct size of various structures rounded to the
nearest byte (SCSI and ether code are two examples, the vm system
is another). This code breaks when the structure alignment is 32
as sizeof() will report a word=rounded size. By changing the
structure alignment to 8. GCC will conform to what is expected by
NetBSD.
This has several side effects that should be considered.
1. Structures will only be aligned to the size of the largest member.
i.e. structures containing only bytes will be byte aligned.
structures containing shorts will be half word aligned.
structures containing ints will be word aligned.
This means structures should be padded to a word boundary if
alignment of 32 is required for byte structures etc.
2. A potential performance penalty may exist if strings are no longer
word aligned. GCC will not be able to use word load/stores to copy
short strings.
This modification is not encouraged but with the present state of the
NetBSD source tree it is currently the only solution that meets the
requirements. */
#undef DEFAULT_STRUCTURE_SIZE_BOUNDARY
#define DEFAULT_STRUCTURE_SIZE_BOUNDARY 8
/* Fixed-sized enum by default (-fno-short-enums) */
#undef MINIX_CC1_SPEC
#define MINIX_CC1_SPEC "%{!fshort-enums:%{!fno-short-enums:-fno-short-enums}} "
/* Use by default the new abi and calling standard */
#undef ARM_DEFAULT_ABI
#define ARM_DEFAULT_ABI ARM_ABI_AAPCS
#undef ARM_EABI_UNWIND_TABLES
#define ARM_EABI_UNWIND_TABLES 0
#undef ARM_UNWIND_INFO
#define ARM_UNWIND_INFO 0
#undef ARM_DWARF_UNWIND_TABLES
#define ARM_DWARF_UNWIND_TABLES 1
/* LSC: FIXME: When activated, some programs crash on qemu with an illegal
* instruction.
* The cause is unknown (Missing support on MINIX, missing support
* on the emulator, library error...).
*/
#if 0
/* Make sure we use hard-floating point ABI by default */
#undef TARGET_DEFAULT_FLOAT_ABI
#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
#endif
#if defined(NETBSD_NATIVE)
/* LSC: On arm, when compiling statically, we need gcc_eh. */
#undef MINIX_LINK_GCC_C_SEQUENCE_SPEC
#define MINIX_LINK_GCC_C_SEQUENCE_SPEC \
"%{static:--start-group} %G %L -lgcc_eh %{static:--end-group}%{!static:%G}"
#endif /* defined(NETBSD_NATIVE) */
/* Default to full VFP if -mhard-float is specified. */
#undef MINIX_SUBTARGET_ASM_FLOAT_SPEC
#define MINIX_SUBTARGET_ASM_FLOAT_SPEC \
"%{mhard-float:%{!mfpu=*:-mfpu=vfpv3-d16}} \
%{mfloat-abi=hard:%{!mfpu=*:-mfpu=vfpv3-d16}}"
#undef MINIX_SUBTARGET_EXTRA_ASM_SPEC
#define MINIX_SUBTARGET_EXTRA_ASM_SPEC \
"%{mabi=apcs-gnu|mabi=atpcs:-meabi=gnu;:-meabi=5}" \
TARGET_FIX_V4BX_SPEC \
"%{fpic|fpie:-k} %{fPIC|fPIE:-k}"
/* Little endian by default */
#undef TARGET_ENDIAN_DEFAULT
#define TARGET_ENDIAN_DEFAULT 0
#undef SUBTARGET_CPU_DEFAULT
#define SUBTARGET_CPU_DEFAULT TARGET_CPU_cortexa8

View File

@@ -1,39 +0,0 @@
/* This header makes it possible to redefine system calls to the
* file system. This way, minix servers can re-route the data
* that libgcov tries to send to the file system. This is
* necessary, because the servers can't access the file system
* directly. Instead, they will copy the data to a helping user
* space process, which will call the file system for them.
* For more information, see the <minix/gcov.h> header file.
*/
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
/* These function pointers initially point to the standard system library
* functions (fopen, etc). All calls to these system library functions are
* then redefined to calls to these function pointers. Because the pointers
* still point to the original functions, all functionality is unchanged.
* Therefore, libgcov won't act differently when linked to applications.
* But, when these pointers are redefined by code within the minix servers,
* the file system calls get replaced by other functionality.
*/
#define fopen(...) _gcov_fopen(__VA_ARGS__)
#define fread(...) _gcov_fread(__VA_ARGS__)
#define fwrite(...) _gcov_fwrite(__VA_ARGS__)
#define fclose(...) _gcov_fclose(__VA_ARGS__)
#define fseek(...) _gcov_fseek(__VA_ARGS__)
#define getenv(...) _gcov_getenv(__VA_ARGS__)
/* wrapper to make it possible to disable gcov_exit on a process exit (for mfs) */
int do_gcov_exit = 1;
void gcov_exit_wrapper(void){
if(do_gcov_exit)
gcov_exit();
}

View File

@@ -1,75 +0,0 @@
/* Definitions for Intel 386 running MINIX with ELF format
Copyright (C) 1996, 2000, 2002, 2004 Free Software Foundation, Inc.
Contributed by Eric Youngdale.
Modified for stabs-in-ELF by H.J. Lu.
Adapted from GNU/Linux version by John Polstra.
Continued development by David O'Brien <obrien@freebsd.org>
Adapted for MINIX by Lionel Sambuc <lionel@minix3.org>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2, or (at your
option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to the
Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
/* Define the actual types of some ANSI-mandated types.
Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
c-common.c, and config/<arch>/<arch>.h. */
#undef SIZE_TYPE
#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "unsigned int")
#undef PTRDIFF_TYPE
#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")
/* Override the default comment-starter of "/". */
#undef ASM_COMMENT_START
#define ASM_COMMENT_START "#"
#undef ASM_APP_ON
#define ASM_APP_ON "#APP\n"
#undef ASM_APP_OFF
#define ASM_APP_OFF "#NO_APP\n"
#undef DBX_REGISTER_NUMBER
#define DBX_REGISTER_NUMBER(n) \
(TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
#undef NO_PROFILE_COUNTERS
#define NO_PROFILE_COUNTERS 1
/* Tell final.c that we don't need a label passed to mcount. */
#undef MCOUNT_NAME
#define MCOUNT_NAME ".mcount"
/* A C statement to output to the stdio stream FILE an assembler
command to advance the location counter to a multiple of 1<<LOG
bytes if it is within MAX_SKIP bytes.
This is used to align code labels according to Intel recommendations. */
#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
#undef ASM_OUTPUT_MAX_SKIP_ALIGN
#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE, LOG, MAX_SKIP) \
if ((LOG) != 0) { \
if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
}
#endif
#undef SUBTARGET32_DEFAULT_CPU
#define SUBTARGET32_DEFAULT_CPU "i586"
#undef X87_ENABLE_ARITH
#define X87_ENABLE_ARITH(MODE) \
(flag_excess_precision == EXCESS_PRECISION_FAST || (MODE) == DFmode)

View File

@@ -1,171 +0,0 @@
/* Base configuration file for all MINIX targets.
Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc.
Adapted for MINIX by Lionel Sambuc <lionel@minix3.org>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2, or (at your
option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to the
Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
/* MINIX defines
* Default, architecture independent values for MINIX
*
* For this to work properly, the order in the tm_file variable has
* to be the following:
* minix-spec.h $arch/minix.h minix.h
*
* minix-spec.h : specifies default arch-independent values
* $arch/minix.h: redefines as needed default minix values
* minix.h : maps GCC defines to the minix defines.
*
* WARNING:
* When changing any default, also check in the arch headers
* if the default is redefined and update them as required.
*/
/* In case we need to know. */
#define USING_CONFIG_MINIX_SPEC 1
#define MINIX_TARGET_OS_CPP_BUILTINS() \
do \
{ \
builtin_define ("__minix"); \
builtin_define ("__minix__"); \
builtin_define ("__unix__"); \
builtin_assert ("system=bsd"); \
builtin_assert ("system=unix"); \
builtin_assert ("system=minix"); \
MINIX_TARGET_CPU_CPP_BUILTINS(); \
} \
while (0)
/* Define the default MINIX-specific per-CPU hook code. */
#define MINIX_TARGET_CPU_CPP_BUILTINS() do {} while (0)
/* Look for the include files in the system-defined places. */
#define MINIX_GPLUSPLUS_INCLUDE_DIR "/usr/include/g++"
#define MINIX_GPLUSPLUS_BACKWARD_INCLUDE_DIR "/usr/include/g++/backward"
#define MINIX_GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT 1
#define MINIX_GCC_INCLUDE_DIR_ADD_SYSROOT 1
/*
* XXX figure out a better way to do this
*/
#define MINIX_GCC_INCLUDE_DIR "/usr/include/gcc-4.8"
/* Provide a CPP_SPEC appropriate for MINIX. We just deal with the GCC
option `-posix'. */
#define MINIX_CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
/* Pass -cxx-isystem to cc1/cc1plus. */
#define MINIX_CC1PLUS_SPEC "%{cxx-isystem}"
#define MINIX_CC1_SPEC "%{cxx-isystem}"
#define MINIX_SUBTARGET_CPP_SPEC ""
#define MINIX_SUBTARGET_EXTRA_ASM_SPEC ""
#define MINIX_SUBTARGET_ASM_FLOAT_SPEC ""
#define MINIX_DYNAMIC_LINKER "/usr/libexec/ld.elf_so"
/* Under MINIX, just like on NetBSD, the normal location of the various
* *crt*.o files is the /usr/lib directory. */
#define MINIX_STANDARD_STARTFILE_PREFIX "/usr/lib/"
/* Under NetBSD, the normal location of the compiler back ends is the
/usr/libexec directory. */
#define MINIX_STANDARD_EXEC_PREFIX "/usr/libexec/"
#define MINIX_TOOLDIR_BASE_PREFIX "../"
#define MINIX_STANDARD_BINDIR_PREFIX "/usr/bin"
#define MINIX_STANDARD_LIBEXEC_PREFIX MINIX_STANDARD_EXEC_PREFIX
#define MINIX_LINK_GCC_C_SEQUENCE_SPEC \
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
/* Provide a STARTFILE_SPEC appropriate for MINIX. Here we add
the magical crtbegin.o file (see crtstuff.c) which provides part
of the support for getting C++ file-scope static object constructed
before entering `main'. */
#define MINIX_STARTFILE_SPEC \
"%{!shared: \
%{pg:gcrt0%O%s} \
%{!pg: \
%{p:gcrt0%O%s} \
%{!p:%{profile:gcrt0%O%s} \
%{!profile:crt0%O%s}}}} \
%:if-exists(crti%O%s) \
%{static:%:if-exists-else(crtbeginT%O%s crtbegin%O%s)} \
%{!static: \
%{!shared: \
%{!pie:crtbegin%O%s} \
%{pie:crtbeginS%O%s}} \
%{shared:crtbeginS%O%s}}"
/* Provide an ENDFILE_SPEC appropriate for NetBSD ELF. Here we
add crtend.o, which provides part of the support for getting
C++ file-scope static objects deconstructed after exiting "main". */
#define MINIX_ENDFILE_SPEC \
"%{!shared: \
%{!pie:crtend%O%s} \
%{pie:crtendS%O%s}} \
%{shared:crtendS%O%s} \
%:if-exists(crtn%O%s)"
/* Provide a LIB_SPEC appropriate for MINIX. Just select the appropriate
libc, depending on whether we're doing profiling or need threads support.
(similar to the default, except no -lg, and no -p). */
#define MINIX_LIB_SPEC " \
%{pthread: %eThe -pthread option is only supported on MINIX when gcc \
is built with the --enable-threads configure-time option.} \
%{shared:-lc} \
%{!shared: \
%{!symbolic: \
%{!p: \
%{!pg:-lc}} \
%{p:-lc_p} \
%{pg:-lc_p}}}"
/* Provide a LINK_SPEC appropriate for MINIX. Here we provide support
for the special GCC options -static and -shared, which allow us to
link things in one of these three modes by applying the appropriate
combinations of options at link-time. We like to support here for
as many of the other GNU linker options as possible. But I don't
have the time to search for those flags. I am sure how to add
support for -soname shared_object_name. H.J.
I took out %{v:%{!V:-V}}. It is too much :-(. They can use
-Wl,-V.
When the -shared link option is used a final link is not being
done. */
#define MINIX_LINK_SPEC " \
-X \
%{p:%nconsider using `-pg' instead of `-p' with gprof(1) } \
%{assert*} %{R*} %{rpath*} \
%{shared:-Bshareable %{h*} %{soname*}} \
%{symbolic:-Bsymbolic} \
%{!shared: \
-dc -dp \
%{!static: \
%{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker %(minix_dynamic_linker) }} \
%{static:-Bstatic}}"
#define MINIX_TARGET_UNWIND_TABLES_DEFAULT true

View File

@@ -1,177 +0,0 @@
/* Base configuration file for all MINIX targets.
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
/* Common MINIX configuration.
* This file maps GCC defines to MINIX defines
*
* For this to work properly, the order in the tm_file variable has
* to be the following:
* minix-spec.h $arch/minix.h minix.h
*
* minix-spec.h : specifies default arch-independent values
* $arch/minix.h: redefines as needed default minix values
* minix.h : maps GCC defines to the minix defines.
*/
/* In case we need to know. */
#define USING_CONFIG_MINIX 1
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() MINIX_TARGET_OS_CPP_BUILTINS()
#if defined(NETBSD_NATIVE) || defined(NETBSD_TOOLS)
#undef GPLUSPLUS_INCLUDE_DIR
#define GPLUSPLUS_INCLUDE_DIR MINIX_GPLUSPLUS_INCLUDE_DIR
#undef GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT
#define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT MINIX_GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT
#undef GPLUSPLUS_BACKWARD_INCLUDE_DIR
#define GPLUSPLUS_BACKWARD_INCLUDE_DIR MINIX_GPLUSPLUS_BACKWARD_INCLUDE_DIR
#undef GCC_INCLUDE_DIR
#define GCC_INCLUDE_DIR MINIX_GCC_INCLUDE_DIR
#undef GCC_INCLUDE_DIR_ADD_SYSROOT
#define GCC_INCLUDE_DIR_ADD_SYSROOT MINIX_GCC_INCLUDE_DIR_ADD_SYSROOT
#undef STANDARD_STARTFILE_PREFIX
#define STANDARD_STARTFILE_PREFIX MINIX_STANDARD_STARTFILE_PREFIX
#undef STANDARD_STARTFILE_PREFIX_1
#define STANDARD_STARTFILE_PREFIX_1 MINIX_STANDARD_STARTFILE_PREFIX
#endif /* defined(NETBSD_NATIVE) || defined(NETBSD_TOOLS) */
#if defined(NETBSD_NATIVE)
/* Under NetBSD, the normal location of the compiler back ends is the
/usr/libexec directory. */
#undef STANDARD_EXEC_PREFIX
#define STANDARD_EXEC_PREFIX MINIX_STANDARD_EXEC_PREFIX
#undef TOOLDIR_BASE_PREFIX
#define TOOLDIR_BASE_PREFIX MINIX_TOOLDIR_BASE_PREFIX
#undef STANDARD_BINDIR_PREFIX
#define STANDARD_BINDIR_PREFIX MINIX_STANDARD_BINDIR_PREFIX
#undef STANDARD_LIBEXEC_PREFIX
#define STANDARD_LIBEXEC_PREFIX MINIX_STANDARD_EXEC_PREFIX
#endif /* NETBSD_NATIVE */
#undef CPP_SPEC
#define CPP_SPEC MINIX_CPP_SPEC
#undef CC1_SPEC
#define CC1_SPEC MINIX_CC1_SPEC
#undef CC1PLUS_SPEC
#define CC1PLUS_SPEC MINIX_CC1PLUS_SPEC
#undef STARTFILE_SPEC
#define STARTFILE_SPEC MINIX_STARTFILE_SPEC
#undef ENDFILE_SPEC
#define ENDFILE_SPEC MINIX_ENDFILE_SPEC
#undef LIB_SPEC
#define LIB_SPEC MINIX_LIB_SPEC
#undef LINK_SPEC
#define LINK_SPEC MINIX_LINK_SPEC
#undef LINK_GCC_C_SEQUENCE_SPEC
#define LINK_GCC_C_SEQUENCE_SPEC MINIX_LINK_GCC_C_SEQUENCE_SPEC
/* This has to be here in order to allow architecture to define the default
* content of the additional specs. */
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
{ "subtarget_extra_asm_spec", MINIX_SUBTARGET_EXTRA_ASM_SPEC }, \
{ "subtarget_asm_float_spec", MINIX_SUBTARGET_ASM_FLOAT_SPEC }, \
{ "minix_dynamic_linker", MINIX_DYNAMIC_LINKER }
#undef SUBTARGET_CPP_SPEC
#define SUBTARGET_CPP_SPEC MINIX_SUBTARGET_CPP_SPEC
/* All MINIX Architectures support the ELF object file format. */
#undef OBJECT_FORMAT_ELF
#define OBJECT_FORMAT_ELF
#undef TARGET_UNWIND_TABLES_DEFAULT
#define TARGET_UNWIND_TABLES_DEFAULT MINIX_TARGET_UNWIND_TABLES_DEFAULT
/* Use periods rather than dollar signs in special g++ assembler names.
This ensures the configuration knows our system correctly so we can link
with libraries compiled with the native cc. */
#undef NO_DOLLAR_IN_LABEL
/* We always use gas here, so we don't worry about ECOFF assembler
problems. */
#undef TARGET_GAS
#define TARGET_GAS 1
/* Default to pcc-struct-return, because this is the ELF abi and
we don't care about compatibility with older gcc versions. */
#undef DEFAULT_PCC_STRUCT_RETURN
#define DEFAULT_PCC_STRUCT_RETURN 1
/* When building shared libraries, the initialization and finalization
functions for the library are .init and .fini respectively. */
#define COLLECT_SHARED_INIT_FUNC(STREAM,FUNC) \
do { \
fprintf ((STREAM), "void __init() __asm__ (\".init\");"); \
fprintf ((STREAM), "void __init() {\n\t%s();\n}\n", (FUNC)); \
} while (0)
#define COLLECT_SHARED_FINI_FUNC(STREAM,FUNC) \
do { \
fprintf ((STREAM), "void __fini() __asm__ (\".fini\");"); \
fprintf ((STREAM), "void __fini() {\n\t%s();\n}\n", (FUNC)); \
} while (0)
#undef TARGET_POSIX_IO
#define TARGET_POSIX_IO
/* Don't assume anything about the header files. */
#undef NO_IMPLICIT_EXTERN_C
#define NO_IMPLICIT_EXTERN_C 1
/* Define some types that are the same on all NetBSD platforms,
making them agree with <machine/ansi.h>. */
#undef WCHAR_TYPE
#define WCHAR_TYPE "int"
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
#undef WINT_TYPE
#define WINT_TYPE "int"
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
/* Use --as-needed -lgcc_s for eh support. */
#ifdef HAVE_LD_AS_NEEDED
#define USE_LD_AS_NEEDED 1
#endif

View File

@@ -1,5 +0,0 @@
# Compile crtbeginS.o and crtendS.o with pic.
CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
# Compile libgcc.a with pic.
TARGET_LIBGCC2_CFLAGS += -fPIC

View File

@@ -1,82 +0,0 @@
#! /bin/sh
#
# $NetBSD: gcc2netbsd,v 1.5 2014/02/23 05:46:28 mrg Exp $
#
# Copyright (c) 2011 The NetBSD Foundation, Inc.
# 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.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
#
# gcc2netbsd: convert a file source tree into a
# format suitable for import. Works on first arg dir.
# You can run this only once if you want it to work.
#
# based on file 2netbsd
#
PROG="$(basename "$0")"
if [ -z "$1" ]
then
echo "Usage: $PROG <directory>" 1>&2
exit 1
fi
DIR="$1"
### Remove the $'s around RCS tags
cleantags "$DIR"
RM="
boehm-gc
gcc/ada
gcc/fortran
gcc/go
gcc/java
gcc/po
gcc/testsuite
libada
libatomic
libcpp/po
libffi
libgfortran
libgo
libgomp/testsuite
libiberty/testsuite
libitm/testsuite
libjava
libmudflap/testsuite
libquadmath
libstdc++-v3/po
libstdc++-v3/testsuite
zlib
"
find "$DIR" -name .cvsignore -exec rm -f {} +
find "$DIR" -name .gitignore -exec rm -f {} +
find "$DIR" -name .svn -type d -exec rm -fr {} +
for i in $RM; do
rm -fr "$DIR/$i"
done
echo You can import now. Use the following command:
echo cvs import src/external/gpl3/gcc/dist FSF gcc-X-Y-Z
exit 0

View File

@@ -1,19 +0,0 @@
# $NetBSD: Makefile,v 1.8 2014/10/22 21:21:02 christos Exp $
.include <bsd.own.mk>
# crtstuff is built out of elsewhere, or not at all
SUBDIR+= libgcc libiberty libobjc libgomp
#MINIX:
SUBDIR+= libbacktrace
SUBDIR+= liblto_plugin
.if (${MKLIBSTDCXX} != "no")
SUBDIR+= libsupc++ libstdc++-v3
.endif
.if !defined(__MINIX)
SUBDIR+= libasan
.endif # !defined(__MINIX)
.include <bsd.subdir.mk>

View File

@@ -1,36 +0,0 @@
# $NetBSD: Makefile.hacks,v 1.4 2014/03/01 10:00:31 mrg Exp $
# some random crap we need in a few places
# arm.h wants MACHMODE aka "enum machine_mode" so we provide a hackful
# one here to help build libs before gcc itself is built.
# XXX arm hack
.if ${MACHINE_CPU} == "arm"
${OBJS}: insn-modes.h
# XXX XXX
${__DPSRCS.d}: insn-modes.h
insn-modes.h:
${_MKTARGET_CREATE}
echo "enum machine_mode { X };" > ${.TARGET}
DPSRCS+= insn-modes.h
CLEANFILES+= insn-modes.h
.endif
.if ${MACHINE_CPU} == "mips"
insn-constants.h:
${_MKTARGET_CREATE}
echo "enum processor { on, off };" > ${.TARGET}
DPSRCS+= insn-constants.h
CLEANFILES+= insn-constants.h
.else
FAKEHEADERS+= insn-constants.h
.endif
# these aren't necessary but are #include'd
FAKEHEADERS+= ${EXTRA_FAKEHEADERS} insn-flags.h sysroot-suffix.h
${FAKEHEADERS}:
${_MKTARGET_CREATE}
touch ${.TARGET}
DPSRCS+= ${FAKEHEADERS}
CLEANFILES+= ${FAKEHEADERS}

View File

@@ -1,12 +0,0 @@
# $NetBSD: Makefile.inc,v 1.3 2014/06/01 19:51:01 mrg Exp $
GCC_MACHINE_ARCH=${MACHINE_ARCH:S/earmv5/earm/}
.ifndef _EXTERNAL_GPL3_GCC_LIB_MAKEFILE_INC_
_EXTERNAL_GPL3_GCC_LIB_MAKEFILE_INC_=1
.sinclude "../../Makefile.gcc_path"
.sinclude "../../../Makefile.gcc_path"
.sinclude "../../../../Makefile.gcc_path"
.endif

View File

@@ -1,10 +0,0 @@
# $NetBSD: Makefile.tconfigh,v 1.1 2011/06/29 01:56:58 mrg Exp $
tconfig.h:
${_MKTARGET_CREATE}
TM_DEFINES="$(G_tm_defines)" \
HEADERS="$(G_xm_include_list)" DEFINES="USED_FOR_TARGET $(G_xm_defines)" \
TARGET_CPU_DEFAULT="" \
${HOST_SH} $(GNUHOSTDIST)/gcc/mkconfig.sh tconfig.h
CLEANFILES+= cs-tconfig.h tconfig.h

View File

@@ -1,82 +0,0 @@
# $NetBSD: Makefile,v 1.13 2014/06/01 19:51:01 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
UNSUPPORTED_COMPILER.clang= # defined
.include <bsd.init.mk>
# If using an external toolchain, we expect crtbegin/crtend to be
# supplied by that toolchain's run-time support.
.if !defined(EXTERNAL_TOOLCHAIN) && ${MKGCC} != "no"
DIST= ${GCCDIST}
GNUHOSTDIST= ${DIST}
GCCARCH= ${EXTERNAL_GCC_SUBDIR}/usr.bin/gcc/arch/${MACHINE_ARCH}
GALLCFLAGS= ${G_CRTSTUFF_CFLAGS} ${G_CRTSTUFF_T_CFLAGS}
CPPFLAGS+= -I${GCCARCH} ${GALLCFLAGS:M-D*} ${GALLCFLAGS:M-I*:N-I.*}
CPPFLAGS+= -I. -I${DIST}/libgcc -I${DIST}/gcc -I${DIST}/include
CPPFLAGS+= -DIN_GCC
COPTS+= -finhibit-size-directive \
-fno-inline \
-fno-exceptions \
-fno-zero-initialized-in-bss \
-fno-toplevel-reorder \
-fno-tree-vectorize \
-fno-omit-frame-pointer \
-fno-asynchronous-unwind-tables
GCFLAGS= ${GALLCFLAGS:N-D*:N-I*:N-i*:N./*}
DPSRCS+= ${.CURDIR}/arch/${MACHINE_ARCH}.mk tconfig.h
.include "${.CURDIR}/arch/${MACHINE_ARCH}.mk"
SRCS+= crtbegin.c crtend.c
OBJS+= crtbegin.o crtend.o
.if ${MKPIC} != "no"
SRCS+= crtbeginS.c crtendS.c
OBJS+= crtbeginS.o crtendS.o # for shared libraries
CPPFLAGS.crtbeginS.o+= -fPIC -DPIC
CPPFLAGS.crtendS.o+= -fPIC -DPIC
SRCS+= crtbeginT.c
OBJS+= crtbeginT.o # for -static links
.endif
realall: ${OBJS}
FILES=${OBJS}
FILESDIR=${LIBDIR}
.PATH: ${DIST}/libgcc ${DIST}/libgcc/config
.include "../Makefile.tconfigh"
EXTRA_FAKEHEADERS= options.h libgcc_tm.h
.include "../Makefile.hacks"
${OBJS}: ${DPSRCS}
.include <bsd.prog.mk>
# Override the default .c -> .o rule.
.c.o:
${_MKTARGET_COMPILE}
${CC} ${CPPFLAGS} ${CPPFLAGS.${.TARGET}} ${GCFLAGS} ${COPTS} ${COPTS.${.TARGET}} ${CPUFLAGS} -c ${.IMPSRC} -o ${.TARGET}.o
mv ${.TARGET}.o ${.TARGET}
.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
# and GCC configury passes -finhibit-size-directive which causes mips-gas
# to barf. Don't know what the real fix for this is...
#
# XXX should be COPTS, but that's too early
CPUFLAGS+=-Wa,--no-warn
.endif
.else
.include <bsd.prog.mk> # do nothing
.endif # ! EXTERNAL_TOOLCHAIN && MKGCC != no

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_BIG_ENDIAN_DEFAULT=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS MOTOROLA=1 USE_GAS=1 CHAR_FAST8=1 SHORT_FAST16=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_BIG_ENDIAN_DEFAULT=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_BIG_ENDIAN_DEFAULT=1 TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_BIG_ENDIAN_DEFAULT=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_BIG_ENDIAN_DEFAULT=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_BIG_ENDIAN_DEFAULT=1 TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_BIG_ENDIAN_DEFAULT=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_BIG_ENDIAN_DEFAULT=1 TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS CHAR_FAST8=1 SHORT_FAST16=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.81 2015/01/31 08:50:01 mrg Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS MOTOROLA=1 USE_GAS=1 CHAR_FAST8=1 SHORT_FAST16=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS MOTOROLA=1 USE_GAS=1 CHAR_FAST8=1 SHORT_FAST16=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS MIPS_ABI_DEFAULT=ABI_N32
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=TARGET_ENDIAN_DEFAULT=0 LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS MIPS_ABI_DEFAULT=ABI_N32
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=TARGET_ENDIAN_DEFAULT=0 LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS OR1K_DELAY_DEFAULT=OR1K_DELAY_ON
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=-msdata=none
G_CRTSTUFF_T_CFLAGS_S=-msdata=none
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS TARGET_64BIT_DEFAULT=0
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS SH_MULTILIB_CPU_DEFAULT="m3" SUPPORT_SH3=1 SUPPORT_SH3=1 SUPPORT_SH3E=1 SUPPORT_SH4=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS SH_MULTILIB_CPU_DEFAULT="m3" SUPPORT_SH3=1 SUPPORT_SH3=1 SUPPORT_SH3E=1 SUPPORT_SH4=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS CHAR_FAST8=1 SHORT_FAST16=1
G_xm_file=
G_xm_defines=

View File

@@ -1,11 +0,0 @@
# This file is automatically generated. DO NOT EDIT!
# Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp
# Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp
#
G_INCLUDES=-I. -I. -I${GNUHOSTDIST}/gcc -I${GNUHOSTDIST}/gcc/. -I${GNUHOSTDIST}/gcc/../include -I./../intl -I${GNUHOSTDIST}/gcc/../libcpp/include -I${GNUHOSTDIST}/gcc/../libdecnumber -I${GNUHOSTDIST}/gcc/../libdecnumber/dpd -I../libdecnumber -I${GNUHOSTDIST}/gcc/../libbacktrace
G_CRTSTUFF_CFLAGS=
G_CRTSTUFF_T_CFLAGS=-fno-omit-frame-pointer -fno-asynchronous-unwind-tables
G_CRTSTUFF_T_CFLAGS_S=
G_tm_defines=LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 NETBSD_ENABLE_PTHREADS
G_xm_file=
G_xm_defines=

View File

@@ -1,9 +0,0 @@
/* $NetBSD: crtbegin.c,v 1.1 2011/06/21 06:02:25 mrg Exp $ */
/*
* Written by Jason R. Thorpe, August 24, 2004.
* Public domain.
*/
#define CRT_BEGIN
#include "crtstuff.c"

View File

@@ -1,10 +0,0 @@
/* $NetBSD: crtbeginS.c,v 1.1 2011/06/21 06:02:25 mrg Exp $ */
/*
* Written by Jason R. Thorpe, August 24, 2004.
* Public domain.
*/
#define CRT_BEGIN
#define CRTSTUFFS_O
#include "crtstuff.c"

View File

@@ -1,10 +0,0 @@
/* $NetBSD: crtbeginT.c,v 1.1 2011/06/21 06:02:25 mrg Exp $ */
/*
* Written by Jason R. Thorpe, August 24, 2004.
* Public domain.
*/
#define CRT_BEGIN
#define CRTSTUFFT_O
#include "crtstuff.c"

View File

@@ -1,9 +0,0 @@
/* $NetBSD: crtend.c,v 1.1 2011/06/21 06:02:25 mrg Exp $ */
/*
* Written by Jason R. Thorpe, August 24, 2004.
* Public domain.
*/
#define CRT_END
#include "crtstuff.c"

View File

@@ -1,10 +0,0 @@
/* $NetBSD: crtendS.c,v 1.1 2011/06/21 06:02:25 mrg Exp $ */
/*
* Written by Jason R. Thorpe, August 24, 2004.
* Public domain.
*/
#define CRT_END
#define CRTSTUFFS_O
#include "crtstuff.c"

View File

@@ -1,67 +0,0 @@
.include <bsd.own.mk>
.include "../Makefile.inc"
ASAN=${GCCDIST}/libsanitizer
.PATH: ${ASAN}/asan ${ASAN}/interception ${ASAN}/sanitizer_common
ASAN_SRCS= \
asan_allocator.cc \
asan_allocator2.cc \
asan_interceptors.cc \
asan_posix.cc \
asan_new_delete.cc \
asan_rtl.cc \
asan_stats.cc \
asan_globals.cc \
asan_thread_registry.cc \
asan_fake_stack.cc \
asan_linux.cc \
asan_report.cc \
asan_malloc_linux.cc \
asan_poisoning.cc \
asan_stack.cc \
asan_thread.cc \
asan_preinit.cc
INTERCEPTION_SRCS= \
interception_linux.cc \
interception_type_test.cc
SANITIZER_SRCS= \
sanitizer_allocator.cc \
sanitizer_common.cc \
sanitizer_flags.cc \
sanitizer_libc.cc \
sanitizer_netbsd.cc \
sanitizer_mac.cc \
sanitizer_posix.cc \
sanitizer_platform_limits_posix.cc \
sanitizer_printf.cc \
sanitizer_stackdepot.cc \
sanitizer_stacktrace.cc \
sanitizer_symbolizer.cc \
sanitizer_symbolizer_linux.cc \
sanitizer_win.cc
# The linux build does this to avoid preinit sections on shared libraries
CSHLIBFLAGS+= -DPIC
LIB= asan
SRCS= ${ASAN_SRCS} ${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
CPPFLAGS+=-I${ASAN}/include -I${ASAN}
CPPFLAGS.sanitizer_netbsd.cc+=-I${GCCDIST}/gcc/ginclude
LIBDPLIBS+= stdc++ ${.CURDIR}/../libstdc++-v3
LIBDPLIBS+= pthread ${.CURDIR}/../../../../../lib/libpthread
.if ${MACHINE_ARCH} == "vax"
COPTS.asan_allocator2.cc += -O1
COPTS.sanitizer_mac.cc += -O1
COPTS.sanitizer_netbsd.cc += -O1
COPTS.sanitizer_printf.cc += -O1
COPTS.sanitizer_stackdepot.cc += -O1
.endif
.include <bsd.lib.mk>

Some files were not shown because too many files have changed in this diff Show More