Skip to content

Commit 4e0df49

Browse files
committed
Adding CodeSourcery just in case of, to be removed later
1 parent a98816a commit 4e0df49

File tree

3,044 files changed

+750097
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,044 files changed

+750097
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<html>
2+
<title>Sourcery G++</title>
3+
<body>
4+
<b>Sourcery G++</b>
5+
<p>
6+
Sourcery G++ contains the complete GNU Toolchain,
7+
including all of the following components:
8+
<ul>
9+
<li> CodeSourcery Common Startup Code Sequence</li>
10+
<li> CodeSourcery Debug Sprite for ARM</li>
11+
<li> GNU Binary Utilities (Binutils)</li>
12+
<li> GNU C Compiler (GCC)</li>
13+
<li> GNU C++ Compiler (G++)</li>
14+
<li> GNU C++ Runtime Library (Libstdc++)</li>
15+
<li> GNU Debugger (GDB)</li>
16+
<li> Newlib C Library</li>
17+
</ul>
18+
Visit: <a href="http://www.codesourcery.com">http://www.codesourcery.com</a>
19+
to access the Sourcery G++ support website.
20+
</p>
21+
<body>
22+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Sourcery G++
2+
============
3+
4+
Sourcery G++ contains the complete GNU Toolchain,
5+
including all of the following components:
6+
7+
* CodeSourcery Common Startup Code Sequence
8+
9+
* CodeSourcery Debug Sprite for ARM
10+
11+
* GNU Binary Utilities (Binutils)
12+
13+
* GNU C Compiler (GCC)
14+
15+
* GNU C++ Compiler (G++)
16+
17+
* GNU C++ Runtime Library (Libstdc++)
18+
19+
* GNU Debugger (GDB)
20+
21+
* Newlib C Library
22+
23+
24+
Visit:
25+
26+
http://www.codesourcery.com
27+
28+
to access the Sourcery G++ support website.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The executables in this directory are for internal use by the compiler
2+
and may not operate correctly when used directly. This directory
3+
should not be placed on your PATH. Instead, you should use the
4+
executables in ../../bin/ and place that directory on your PATH.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
/* Provide support for both ANSI and non-ANSI environments. */
2+
3+
/* Some ANSI environments are "broken" in the sense that __STDC__ cannot be
4+
relied upon to have it's intended meaning. Therefore we must use our own
5+
concoction: _HAVE_STDC. Always use _HAVE_STDC instead of __STDC__ in newlib
6+
sources!
7+
8+
To get a strict ANSI C environment, define macro __STRICT_ANSI__. This will
9+
"comment out" the non-ANSI parts of the ANSI header files (non-ANSI header
10+
files aren't affected). */
11+
12+
#ifndef _ANSIDECL_H_
13+
#define _ANSIDECL_H_
14+
15+
#include <newlib.h>
16+
#include <sys/config.h>
17+
18+
/* First try to figure out whether we really are in an ANSI C environment. */
19+
/* FIXME: This probably needs some work. Perhaps sys/config.h can be
20+
prevailed upon to give us a clue. */
21+
22+
#ifdef __STDC__
23+
#define _HAVE_STDC
24+
#endif
25+
26+
/* ISO C++. */
27+
28+
#ifdef __cplusplus
29+
#if !(defined(_BEGIN_STD_C) && defined(_END_STD_C))
30+
#ifdef _HAVE_STD_CXX
31+
#define _BEGIN_STD_C namespace std { extern "C" {
32+
#define _END_STD_C } }
33+
#else
34+
#define _BEGIN_STD_C extern "C" {
35+
#define _END_STD_C }
36+
#endif
37+
#if defined(__GNUC__) && \
38+
( (__GNUC__ >= 4) || \
39+
( (__GNUC__ >= 3) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ >= 3) ) )
40+
#define _NOTHROW __attribute__ ((nothrow))
41+
#else
42+
#define _NOTHROW throw()
43+
#endif
44+
#endif
45+
#else
46+
#define _BEGIN_STD_C
47+
#define _END_STD_C
48+
#define _NOTHROW
49+
#endif
50+
51+
#ifdef _HAVE_STDC
52+
#define _PTR void *
53+
#define _AND ,
54+
#define _NOARGS void
55+
#define _CONST const
56+
#define _VOLATILE volatile
57+
#define _SIGNED signed
58+
#define _DOTS , ...
59+
#define _VOID void
60+
#ifdef __CYGWIN__
61+
#define _EXFUN_NOTHROW(name, proto) __cdecl name proto _NOTHROW
62+
#define _EXFUN(name, proto) __cdecl name proto
63+
#define _EXPARM(name, proto) (* __cdecl name) proto
64+
#define _EXFNPTR(name, proto) (__cdecl * name) proto
65+
#else
66+
#define _EXFUN_NOTHROW(name, proto) name proto _NOTHROW
67+
#define _EXFUN(name, proto) name proto
68+
#define _EXPARM(name, proto) (* name) proto
69+
#define _EXFNPTR(name, proto) (* name) proto
70+
#endif
71+
#define _DEFUN(name, arglist, args) name(args)
72+
#define _DEFUN_VOID(name) name(_NOARGS)
73+
#define _CAST_VOID (void)
74+
#ifndef _LONG_DOUBLE
75+
#define _LONG_DOUBLE long double
76+
#endif
77+
#ifndef _LONG_LONG_TYPE
78+
#define _LONG_LONG_TYPE long long
79+
#endif
80+
#ifndef _PARAMS
81+
#define _PARAMS(paramlist) paramlist
82+
#endif
83+
#else
84+
#define _PTR char *
85+
#define _AND ;
86+
#define _NOARGS
87+
#define _CONST
88+
#define _VOLATILE
89+
#define _SIGNED
90+
#define _DOTS
91+
#define _VOID void
92+
#define _EXFUN(name, proto) name()
93+
#define _EXFUN_NOTHROW(name, proto) name()
94+
#define _DEFUN(name, arglist, args) name arglist args;
95+
#define _DEFUN_VOID(name) name()
96+
#define _CAST_VOID
97+
#define _LONG_DOUBLE double
98+
#define _LONG_LONG_TYPE long
99+
#ifndef _PARAMS
100+
#define _PARAMS(paramlist) ()
101+
#endif
102+
#endif
103+
104+
/* Support gcc's __attribute__ facility. */
105+
106+
#ifdef __GNUC__
107+
#define _ATTRIBUTE(attrs) __attribute__ (attrs)
108+
#else
109+
#define _ATTRIBUTE(attrs)
110+
#endif
111+
112+
/* The traditional meaning of 'extern inline' for GCC is not
113+
to emit the function body unless the address is explicitly
114+
taken. However this behaviour is changing to match the C99
115+
standard, which uses 'extern inline' to indicate that the
116+
function body *must* be emitted. If we are using GCC, but do
117+
not have the new behaviour, we need to use extern inline; if
118+
we are using a new GCC with the C99-compatible behaviour, or
119+
a non-GCC compiler (which we will have to hope is C99, since
120+
there is no other way to achieve the effect of omitting the
121+
function if it isn't referenced) we just use plain 'inline',
122+
which c99 defines to mean more-or-less the same as the Gnu C
123+
'extern inline'. */
124+
#if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
125+
/* We're using GCC, but without the new C99-compatible behaviour. */
126+
#define _ELIDABLE_INLINE extern __inline__ _ATTRIBUTE ((__always_inline__))
127+
#else
128+
/* We're using GCC in C99 mode, or an unknown compiler which
129+
we just have to hope obeys the C99 semantics of inline. */
130+
#define _ELIDABLE_INLINE __inline__
131+
#endif
132+
133+
#endif /* _ANSIDECL_H_ */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/* internal use only -- mapping of "system calls" for libraries that lose
2+
and only provide C names, so that we end up in violation of ANSI */
3+
#ifndef __SYSLIST_H
4+
#define __SYSLIST_H
5+
6+
#ifdef MISSING_SYSCALL_NAMES
7+
#define _close close
8+
#define _execve execve
9+
#define _fcntl fcntl
10+
#define _fork fork
11+
#define _fstat fstat
12+
#define _getpid getpid
13+
#define _gettimeofday gettimeofday
14+
#define _isatty isatty
15+
#define _kill kill
16+
#define _link link
17+
#define _lseek lseek
18+
#define _mkdir mkdir
19+
#define _open open
20+
#define _read read
21+
#define _sbrk sbrk
22+
#define _stat stat
23+
#define _times times
24+
#define _unlink unlink
25+
#define _wait wait
26+
#define _write write
27+
#endif /* MISSING_SYSCALL_NAMES */
28+
29+
#if defined MISSING_SYSCALL_NAMES || !defined HAVE_OPENDIR
30+
/* If the system call interface is missing opendir, readdir, and
31+
closedir, there is an implementation of these functions in
32+
libc/posix that is implemented using open, getdents, and close.
33+
Note, these functions are currently not in the libc/syscalls
34+
directory. */
35+
#define _opendir opendir
36+
#define _readdir readdir
37+
#define _closedir closedir
38+
#endif /* MISSING_SYSCALL_NAMES || !HAVE_OPENDIR */
39+
40+
#endif /* !__SYSLIST_H_ */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* libc/include/alloca.h - Allocate memory on stack */
2+
3+
/* Written 2000 by Werner Almesberger */
4+
/* Rearranged for general inclusion by stdlib.h.
5+
2001, Corinna Vinschen <vinschen@redhat.com> */
6+
7+
#ifndef _NEWLIB_ALLOCA_H
8+
#define _NEWLIB_ALLOCA_H
9+
10+
#include "_ansi.h"
11+
#include <sys/reent.h>
12+
13+
#undef alloca
14+
15+
#ifdef __GNUC__
16+
#define alloca(size) __builtin_alloca(size)
17+
#else
18+
void * _EXFUN(alloca,(size_t));
19+
#endif
20+
21+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/* $NetBSD: ar.h,v 1.4 1994/10/26 00:55:43 cgd Exp $ */
2+
3+
/*-
4+
* Copyright (c) 1991, 1993
5+
* The Regents of the University of California. All rights reserved.
6+
* (c) UNIX System Laboratories, Inc.
7+
* All or some portions of this file are derived from material licensed
8+
* to the University of California by American Telephone and Telegraph
9+
* Co. or Unix System Laboratories, Inc. and are reproduced herein with
10+
* the permission of UNIX System Laboratories, Inc.
11+
*
12+
* This code is derived from software contributed to Berkeley by
13+
* Hugh Smith at The University of Guelph.
14+
*
15+
* Redistribution and use in source and binary forms, with or without
16+
* modification, are permitted provided that the following conditions
17+
* are met:
18+
* 1. Redistributions of source code must retain the above copyright
19+
* notice, this list of conditions and the following disclaimer.
20+
* 2. Redistributions in binary form must reproduce the above copyright
21+
* notice, this list of conditions and the following disclaimer in the
22+
* documentation and/or other materials provided with the distribution.
23+
* 3. All advertising materials mentioning features or use of this software
24+
* must display the following acknowledgement:
25+
* This product includes software developed by the University of
26+
* California, Berkeley and its contributors.
27+
* 4. Neither the name of the University nor the names of its contributors
28+
* may be used to endorse or promote products derived from this software
29+
* without specific prior written permission.
30+
*
31+
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
32+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34+
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
35+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
39+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
40+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
41+
* SUCH DAMAGE.
42+
*
43+
* @(#)ar.h 8.2 (Berkeley) 1/21/94
44+
*/
45+
46+
#ifndef _AR_H_
47+
#define _AR_H_
48+
49+
/* Pre-4BSD archives had these magic numbers in them. */
50+
#define OARMAG1 0177555
51+
#define OARMAG2 0177545
52+
53+
#define ARMAG "!<arch>\n" /* ar "magic number" */
54+
#define SARMAG 8 /* strlen(ARMAG); */
55+
56+
#define AR_EFMT1 "#1/" /* extended format #1 */
57+
58+
struct ar_hdr {
59+
char ar_name[16]; /* name */
60+
char ar_date[12]; /* modification time */
61+
char ar_uid[6]; /* user id */
62+
char ar_gid[6]; /* group id */
63+
char ar_mode[8]; /* octal file permissions */
64+
char ar_size[10]; /* size in bytes */
65+
#define ARFMAG "`\n"
66+
char ar_fmag[2]; /* consistency check */
67+
};
68+
69+
#endif /* !_AR_H_ */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
2+
*
3+
* Permission to use, copy, modify, and distribute this software
4+
* is freely granted, provided that this notice is preserved.
5+
*/
6+
7+
#ifndef _ARGZ_H_
8+
#define _ARGZ_H_
9+
10+
#include <errno.h>
11+
#include <sys/types.h>
12+
13+
#include "_ansi.h"
14+
15+
_BEGIN_STD_C
16+
17+
/* The newlib implementation of these functions assumes that sizeof(char) == 1. */
18+
error_t argz_create (char *const argv[], char **argz, size_t *argz_len);
19+
error_t argz_create_sep (const char *string, int sep, char **argz, size_t *argz_len);
20+
size_t argz_count (const char *argz, size_t argz_len);
21+
void argz_extract (char *argz, size_t argz_len, char **argv);
22+
void argz_stringify (char *argz, size_t argz_len, int sep);
23+
error_t argz_add (char **argz, size_t *argz_len, const char *str);
24+
error_t argz_add_sep (char **argz, size_t *argz_len, const char *str, int sep);
25+
error_t argz_append (char **argz, size_t *argz_len, const char *buf, size_t buf_len);
26+
error_t argz_delete (char **argz, size_t *argz_len, char *entry);
27+
error_t argz_insert (char **argz, size_t *argz_len, char *before, const char *entry);
28+
char * argz_next (char *argz, size_t argz_len, const char *entry);
29+
error_t argz_replace (char **argz, size_t *argz_len, const char *str, const char *with, unsigned *replace_count);
30+
31+
_END_STD_C
32+
33+
#endif /* _ARGZ_H_ */

0 commit comments

Comments
 (0)