aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2003-03-26 18:12:01 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2003-03-26 18:12:01 +0000
commitfabd8bcd49e1046bc9abdcb4efaea04638630b6f (patch)
tree647149bd6b5e30e185fd92264f2af07003257f5f
parent2b4726c9458285d2483f703c669af090dec79dd4 (diff)
downloadsrc-fabd8bcd49e1046bc9abdcb4efaea04638630b6f.tar.gz
src-fabd8bcd49e1046bc9abdcb4efaea04638630b6f.zip
Remove files incidentally imported from the wrong place during
3.2.1 import. They are not used by any of our system GCC versions and will be physically removed from repository soon. Reviewed by: obrien
Notes
Notes: svn path=/vendor/gcc/dist/; revision=112680
-rw-r--r--contrib/gcc/FAQ653
-rw-r--r--contrib/gcc/GNATS187
-rw-r--r--contrib/gcc/MAINTAINERS254
-rw-r--r--contrib/gcc/bugs.html698
-rw-r--r--contrib/gcc/config-ml.in871
-rw-r--r--contrib/gcc/config.if79
-rwxr-xr-xcontrib/gcc/config.sub1450
-rw-r--r--contrib/gcc/config/ChangeLog477
-rw-r--r--contrib/gcc/config/acinclude.m41995
-rw-r--r--contrib/gcc/config/mh-a68bsd12
-rw-r--r--contrib/gcc/config/mh-aix3861
-rw-r--r--contrib/gcc/config/mh-apollo683
-rw-r--r--contrib/gcc/config/mh-armpic1
-rw-r--r--contrib/gcc/config/mh-cxux14
-rw-r--r--contrib/gcc/config/mh-cygwin6
-rw-r--r--contrib/gcc/config/mh-decstation5
-rw-r--r--contrib/gcc/config/mh-delta884
-rw-r--r--contrib/gcc/config/mh-dgux4
-rw-r--r--contrib/gcc/config/mh-dgux38622
-rw-r--r--contrib/gcc/config/mh-djgpp14
-rw-r--r--contrib/gcc/config/mh-elfalphapic1
-rw-r--r--contrib/gcc/config/mh-hp30013
-rw-r--r--contrib/gcc/config/mh-hpux4
-rw-r--r--contrib/gcc/config/mh-hpux84
-rw-r--r--contrib/gcc/config/mh-i370pic1
-rw-r--r--contrib/gcc/config/mh-ia64pic1
-rw-r--r--contrib/gcc/config/mh-interix14
-rw-r--r--contrib/gcc/config/mh-irix47
-rw-r--r--contrib/gcc/config/mh-irix53
-rw-r--r--contrib/gcc/config/mh-irix63
-rw-r--r--contrib/gcc/config/mh-lynxos2
-rw-r--r--contrib/gcc/config/mh-lynxrs6k8
-rw-r--r--contrib/gcc/config/mh-m68kpic1
-rw-r--r--contrib/gcc/config/mh-mingw3212
-rw-r--r--contrib/gcc/config/mh-ncr300017
-rw-r--r--contrib/gcc/config/mh-ncrsvr439
-rw-r--r--contrib/gcc/config/mh-necv411
-rw-r--r--contrib/gcc/config/mh-openedition2
-rw-r--r--contrib/gcc/config/mh-papic1
-rw-r--r--contrib/gcc/config/mh-ppcpic1
-rw-r--r--contrib/gcc/config/mh-riscos15
-rw-r--r--contrib/gcc/config/mh-sco10
-rw-r--r--contrib/gcc/config/mh-solaris6
-rw-r--r--contrib/gcc/config/mh-sparcpic1
-rw-r--r--contrib/gcc/config/mh-sun33
-rw-r--r--contrib/gcc/config/mh-sysv3
-rw-r--r--contrib/gcc/config/mh-sysv411
-rw-r--r--contrib/gcc/config/mh-sysv58
-rw-r--r--contrib/gcc/config/mh-vaxult22
-rw-r--r--contrib/gcc/config/mh-x86pic1
-rw-r--r--contrib/gcc/config/mpw-mh-mpw157
-rw-r--r--contrib/gcc/config/mpw/ChangeLog81
-rw-r--r--contrib/gcc/config/mpw/MoveIfChange19
-rw-r--r--contrib/gcc/config/mpw/README23
-rw-r--r--contrib/gcc/config/mpw/forward-include3
-rw-r--r--contrib/gcc/config/mpw/g-mpw-make.sed293
-rw-r--r--contrib/gcc/config/mpw/mpw-touch7
-rw-r--r--contrib/gcc/config/mpw/mpw-true1
-rw-r--r--contrib/gcc/config/mpw/null-command1
-rw-r--r--contrib/gcc/config/mpw/open-brace4
-rw-r--r--contrib/gcc/config/mpw/tr-7to8-src9
-rw-r--r--contrib/gcc/config/mpw/true1
-rw-r--r--contrib/gcc/config/mt-aix434
-rw-r--r--contrib/gcc/config/mt-alphaieee2
-rw-r--r--contrib/gcc/config/mt-armpic1
-rw-r--r--contrib/gcc/config/mt-d30v4
-rw-r--r--contrib/gcc/config/mt-elfalphapic1
-rw-r--r--contrib/gcc/config/mt-i370pic1
-rw-r--r--contrib/gcc/config/mt-ia64pic1
-rw-r--r--contrib/gcc/config/mt-linux1
-rw-r--r--contrib/gcc/config/mt-m68kpic1
-rw-r--r--contrib/gcc/config/mt-netware1
-rw-r--r--contrib/gcc/config/mt-ospace3
-rw-r--r--contrib/gcc/config/mt-papic1
-rw-r--r--contrib/gcc/config/mt-ppcpic1
-rw-r--r--contrib/gcc/config/mt-sparcpic1
-rw-r--r--contrib/gcc/config/mt-v8104
-rw-r--r--contrib/gcc/config/mt-wince10
-rw-r--r--contrib/gcc/config/mt-x86pic1
-rw-r--r--contrib/gcc/contrib/ChangeLog721
-rwxr-xr-xcontrib/gcc/contrib/analyze_brprob146
-rwxr-xr-xcontrib/gcc/contrib/compare_tests98
-rwxr-xr-xcontrib/gcc/contrib/convert_to_f2c48
-rwxr-xr-xcontrib/gcc/contrib/convert_to_g2c48
-rwxr-xr-xcontrib/gcc/contrib/download_f2c77
-rwxr-xr-xcontrib/gcc/contrib/gcc_build316
-rwxr-xr-xcontrib/gcc/contrib/gcc_update226
-rw-r--r--contrib/gcc/contrib/gccbug.el84
-rwxr-xr-xcontrib/gcc/contrib/gennews56
-rwxr-xr-xcontrib/gcc/contrib/index-prop26
-rwxr-xr-xcontrib/gcc/contrib/newcvsroot34
-rw-r--r--contrib/gcc/contrib/regression/ChangeLog37
-rw-r--r--contrib/gcc/contrib/regression/README18
-rwxr-xr-xcontrib/gcc/contrib/regression/btest-gcc.sh172
-rwxr-xr-xcontrib/gcc/contrib/regression/objs-gcc.sh121
-rw-r--r--contrib/gcc/contrib/regression/site.exp18
-rwxr-xr-xcontrib/gcc/contrib/test_installed114
-rwxr-xr-xcontrib/gcc/contrib/test_summary142
-rwxr-xr-xcontrib/gcc/contrib/texi2pod.pl427
-rwxr-xr-xcontrib/gcc/contrib/warn_summary210
-rw-r--r--contrib/gcc/faq.html698
-rw-r--r--contrib/gcc/gnats.html170
-rw-r--r--contrib/gcc/include/COPYING340
-rw-r--r--contrib/gcc/include/ChangeLog1960
-rw-r--r--contrib/gcc/include/ansidecl.h295
-rw-r--r--contrib/gcc/include/demangle.h163
-rw-r--r--contrib/gcc/include/dyn-string.h92
-rw-r--r--contrib/gcc/include/fibheap.h81
-rw-r--r--contrib/gcc/include/floatformat.h122
-rw-r--r--contrib/gcc/include/fnmatch.h70
-rw-r--r--contrib/gcc/include/getopt.h141
-rw-r--r--contrib/gcc/include/hashtab.h155
-rw-r--r--contrib/gcc/include/libiberty.h317
-rw-r--r--contrib/gcc/include/md5.h142
-rw-r--r--contrib/gcc/include/objalloc.h115
-rw-r--r--contrib/gcc/include/obstack.h599
-rw-r--r--contrib/gcc/include/partition.h81
-rw-r--r--contrib/gcc/include/safe-ctype.h103
-rw-r--r--contrib/gcc/include/sort.h48
-rw-r--r--contrib/gcc/include/splay-tree.h154
-rw-r--r--contrib/gcc/include/symcat.h49
-rw-r--r--contrib/gcc/include/ternary.h51
-rw-r--r--contrib/gcc/include/xregex.h28
-rw-r--r--contrib/gcc/include/xregex2.h571
-rwxr-xr-xcontrib/gcc/install-sh251
-rw-r--r--contrib/gcc/libtool.m4854
-rw-r--r--contrib/gcc/ltcf-c.sh815
-rw-r--r--contrib/gcc/ltcf-cxx.sh1005
-rw-r--r--contrib/gcc/ltcf-gcj.sh651
-rwxr-xr-xcontrib/gcc/ltconfig2795
-rw-r--r--contrib/gcc/ltmain.sh5483
-rwxr-xr-xcontrib/gcc/missing190
-rwxr-xr-xcontrib/gcc/mkdep87
-rwxr-xr-xcontrib/gcc/mkinstalldirs36
-rwxr-xr-xcontrib/gcc/symlink-tree53
-rwxr-xr-xcontrib/gcc/ylwrap123
136 files changed, 0 insertions, 29589 deletions
diff --git a/contrib/gcc/FAQ b/contrib/gcc/FAQ
deleted file mode 100644
index a40c0f966231..000000000000
--- a/contrib/gcc/FAQ
+++ /dev/null
@@ -1,653 +0,0 @@
-
- GCC Frequently Asked Questions
-
- The latest version of this document is always available at
- [1]http://www.gnu.org/software/gcc/faq.html.
-
- This FAQ tries to answer specific questions concerning GCC. For
- general information regarding C, C++, resp. Fortran please check the
- [2]comp.lang.c FAQ, [3]comp.std.c++ FAQ, and the [4]Fortran
- Information page.
-
- Other GCC-related FAQs: [5]libstdc++-v3, and [6]GCJ.
- _________________________________________________________________
-
- Questions
-
- 1. [7]General information
- 1. [8]What is the relationship between GCC and EGCS?
- 2. [9]What is the relationship between GCC and Cygnus / Red Hat?
- 3. [10]What is an open development model?
- 4. [11]How do I report a bug?
- 5. [12]How do I get a bug fixed or a feature added?
- 6. [13]Does GCC work on my platform?
- 2. [14]Installation
- 1. [15]How to install multiple versions of GCC
- 2. [16]Dynamic linker is unable to find GCC libraries
- 3. [17]libstdc++/libio tests fail badly with --enable-shared
- 4. [18]GCC can not find GNU as/GNU ld
- 5. [19]cpp: Usage:... Error
- 6. [20]Optimizing the compiler itself
- 3. [21]Testsuite problems
- 1. [22]Unable to run the testsuite
- 2. [23]How do I pass flags like -fnew-abi to the testsuite?
- 3. [24]How can I run the test suite with multiple options?
- 4. [25]Older versions of GCC
- 1. [26]Is there a stringstream / sstream for GCC 2.95.2?
- 5. [27]Miscellaneous
- 1. [28]Virtual memory exhausted
- 2. [29]Friend Templates
- 3. [30]dynamic_cast, throw, typeid don't work with shared
- libraries
- 4. [31]Why do I need autoconf, bison, xgettext, automake, etc?
- 5. [32]Why can't I build a shared library?
- 6. [33]How to work around too long C++ symbol names?
- (-fsquangle)
- 7. [34]When building C++, the linker says my constructors,
- destructors or virtual tables are undefined, but I defined
- them
- 8. [35]Will GCC someday include an incremental linker?
- _________________________________________________________________
-
- General information
-
-What is the relationship between GCC and EGCS?
-
- In 1990/1991 gcc version 1 had reached a point of stability. For the
- targets it could support, it worked well. It had limitations inherent
- in its design that would be difficult to resolve, so a major effort
- was made to resolve those limitiations and gcc version 2 was the
- result.
-
- When we had gcc2 in a useful state, development efforts on gcc1
- stopped and we all concentrated on making gcc2 better than gcc1 could
- ever be. This is the kind of step forward we wanted to make with the
- EGCS project when it was formed in 1997.
-
- In April 1999 the Free Software Foundation officially halted
- development on the gcc2 compiler and appointed the EGCS project as the
- official GCC maintainers. The net result was a single project which
- carries forward GCC development under the ultimate control of the
- [36]GCC Steering Committee.
- _________________________________________________________________
-
-What is the relationship between GCC and Cygnus / Red Hat?
-
- It is a common mis-conception that Red Hat controls GCC either
- directly or indirectly.
-
- While Red Hat does donate hardware, network connections, code and
- developer time to GCC development, Red Hat does not control GCC.
-
- Overall control of GCC is in the hands of the [37]GCC Steering
- Committee which includes people from a variety of different
- organizations and backgrounds. The purpose of the steering committee
- is to make decisions in the best interest of GCC and to help ensure
- that no individual or company has control over the project.
-
- To summarize, Red Hat contributes to the GCC project, but does not
- exert a controlling influence over GCC.
- _________________________________________________________________
-
-What is an open development model?
-
- We are using a bazaar style [38][1] approach to GCC development: we
- make snapshots publicly available to anyone who wants to try them; we
- welcome anyone to join the development mailing list. All of the
- discussions on the development mailing list are available via the web.
- We're going to be making releases with a much higher frequency than
- they have been made in the past.
-
- In addition to weekly snapshots of the GCC development sources, we
- have the sources readable from a CVS server by anyone. Furthermore we
- are using remote CVS to allow remote maintainers write access to the
- sources.
-
- There have been many potential GCC developers who were not able to
- participate in GCC development in the past. We want these people to
- help in any way they can; we ultimately want GCC to be the best
- compiler in the world.
-
- A compiler is a complicated piece of software, there will still be
- strong central maintainers who will reject patches, who will demand
- documentation of implementations, and who will keep the level of
- quality as high as it is today. Code that could use wider testing may
- be integrated--code that is simply ill-conceived won't be.
-
- GCC is not the first piece of software to use this open development
- process; FreeBSD, the Emacs lisp repository, and the Linux kernel are
- a few examples of the bazaar style of development.
-
- With GCC, we are adding new features and optimizations at a rate that
- has not been done since the creation of gcc2; these additions
- inevitably have a temporarily destabilizing effect. With the help of
- developers working together with this bazaar style development, the
- resulting stability and quality levels will be better than we've had
- before.
-
- [1] We've been discussing different development models a lot over
- the past few months. The paper which started all of this introduced
- two terms: A cathedral development model versus a bazaar
- development model. The paper is written by Eric S. Raymond, it is
- called ``[39]The Cathedral and the Bazaar''. The paper is a useful
- starting point for discussions.
- _________________________________________________________________
-
-How do I report a bug?
-
- There are complete instructions [40]here.
- _________________________________________________________________
-
-How do I get a bug fixed or a feature added?
-
- There are lots of ways to get something fixed. The list below may be
- incomplete, but it covers many of the common cases. These are listed
- roughly in order of increasing difficulty for the average GCC user,
- meaning someone who is not skilled in the internals of GCC, and where
- difficulty is measured in terms of the time required to fix the bug.
- No alternative is better than any other; each has its benefits and
- disadvantages.
- * Hire someone to fix it for you. There are various companies and
- individuals providing support for GCC. This alternative costs
- money, but is relatively likely to get results.
- * [41]Report the problem to the GCC GNATS bug tracking system and
- hope that someone will be kind enough to fix it for you. While
- this is certainly possible, and often happens, there is no
- guarantee that it will. You should not expect the same response
- from this method that you would see from a commercial support
- organization since the people who read GCC bug reports, if they
- choose to help you, will be volunteering their time. This
- alternative will work best if you follow the directions on
- [42]submitting bugreports.
- * Fix it yourself. This alternative will probably bring results, if
- you work hard enough, but will probably take a lot of time, and,
- depending on the quality of your work and the perceived benefits
- of your changes, your code may or may not ever make it into an
- official release of GCC.
- _________________________________________________________________
-
-Does GCC work on my platform?
-
- The host/target specific installation notes for GCC include
- information about known problems with installing or using GCC on
- particular platforms. These are included in the sources for a release
- in INSTALL/specific.html, and the [43]latest version is always
- available at the GCC web site. Reports of [44]successful builds for
- several versions of GCC are also available at the web site.
- _________________________________________________________________
-
- Installation
-
-How to install multiple versions of GCC
-
- It may be desirable to install multiple versions of the compiler on
- the same system. This can be done by using different prefix paths at
- configure time and a few symlinks.
-
- Basically, configure the two compilers with different --prefix
- options, then build and install each compiler. Assume you want "gcc"
- to be the latest compiler and available in /usr/local/bin; also assume
- that you want "gcc2" to be the older gcc2 compiler and also available
- in /usr/local/bin.
-
- The easiest way to do this is to configure the new GCC with
- --prefix=/usr/local/gcc and the older gcc2 with
- --prefix=/usr/local/gcc2. Build and install both compilers. Then make
- a symlink from /usr/local/bin/gcc to /usr/local/gcc/bin/gcc and from
- /usr/local/bin/gcc2 to /usr/local/gcc2/bin/gcc. Create similar links
- for the "g++", "c++" and "g77" compiler drivers.
-
- An alternative to using symlinks is to configure with a
- --program-transform-name option. This option specifies a sed command
- to process installed program names with. Using it you can, for
- instance, have all the new GCC programs installed as "new-gcc" and the
- like. You will still have to specify different --prefix options for
- new GCC and old GCC, because it is only the executable program names
- that are transformed. The difference is that you (as administrator) do
- not have to set up symlinks, but must specify additional directories
- in your (as a user) PATH. A complication with --program-transform-name
- is that the sed command invariably contains characters significant to
- the shell, and these have to be escaped correctly, also it is not
- possible to use "^" or "$" in the command. Here is the option to
- prefix "new-" to the new GCC installed programs:
-
- --program-transform-name='s,\\\\(.*\\\\),new-\\\\1,'
-
- With the above --prefix option, that will install the new GCC programs
- into /usr/local/gcc/bin with names prefixed by "new-". You can use
- --program-transform-name if you have multiple versions of GCC, and
- wish to be sure about which version you are invoking.
-
- If you use --prefix, GCC may have difficulty locating a GNU assembler
- or linker on your system, [45]GCC can not find GNU as/GNU ld explains
- how to deal with this.
-
- Another option that may be easier is to use the --program-prefix= or
- --program-suffix= options to configure. So if you're installing GCC
- 2.95.2 and don't want to disturb the current version of GCC in
- /usr/local/bin/, you could do
-
- configure --program-suffix=-2.95.2 <other configure options>
-
- This should result in GCC being installed as /usr/local/bin/gcc-2.95.2
- instead of /usr/local/bin/gcc.
- _________________________________________________________________
-
-Dynamic linker is unable to find GCC libraries
-
- This problem manifests itself by programs not finding shared libraries
- they depend on when the programs are started. Note this problem often
- manifests itself with failures in the libio/libstdc++ tests after
- configuring with --enable-shared and building GCC.
-
- GCC does not specify a runpath so that the dynamic linker can find
- dynamic libraries at runtime.
-
- The short explanation is that if you always pass a -R option to the
- linker, then your programs become dependent on directories which may
- be NFS mounted, and programs may hang unnecessarily when an NFS server
- goes down.
-
- The problem is not programs that do require the directories; those
- programs are going to hang no matter what you do. The problem is
- programs that do not require the directories.
-
- SunOS effectively always passed a -R option for every -L option; this
- was a bad idea, and so it was removed for Solaris. We should not
- recreate it.
-
- However, if you feel you really need such an option to be passed
- automatically to the linker, you may add it to the GCC specs file.
- This file can be found in the same directory that contains cc1 (run
- gcc -print-prog-name=cc1 to find it). You may add linker flags such as
- -R or -rpath, depending on platform and linker, to the *link or *lib
- specs.
-
- Another alternative is to install a wrapper script around gcc, g++ or
- ld that adds the appropriate directory to the environment variable
- LD_RUN_PATH or equivalent (again, it's platform-dependent).
-
- Yet another option, that works on a few platforms, is to hard-code the
- full pathname of the library into its soname. This can only be
- accomplished by modifying the appropriate .ml file within
- libstdc++/config (and also libg++/config, if you are building libg++),
- so that $(libdir)/ appears just before the library name in -soname or
- -h options.
- _________________________________________________________________
-
-GCC can not find GNU as/GNU ld
-
- GCC searches the PATH for an assembler and a loader, but it only does
- so after searching a directory list hard-coded in the GCC executables.
- Since, on most platforms, the hard-coded list includes directories in
- which the system asembler and loader can be found, you may have to
- take one of the following actions to arrange that GCC uses the GNU
- versions of those programs.
-
- To ensure that GCC finds the GNU assembler (the GNU loader), which are
- required by [46]some configurations, you should configure these with
- the same --prefix option as you used for GCC. Then build & install GNU
- as (GNU ld) and proceed with building GCC.
-
- Another alternative is to create links to GNU as and ld in any of the
- directories printed by the command `gcc -print-search-dirs | grep
- '^programs:''. The link to `ld' should be named `real-ld' if `ld'
- already exists. If such links do not exist while you're compiling GCC,
- you may have to create them in the build directories too, within the
- gcc directory and in all the gcc/stage* subdirectories.
-
- GCC 2.95 allows you to specify the full pathname of the assembler and
- the linker to use. The configure flags are `--with-as=/path/to/as' and
- `--with-ld=/path/to/ld'. GCC will try to use these pathnames before
- looking for `as' or `(real-)ld' in the standard search dirs. If, at
- configure-time, the specified programs are found to be GNU utilities,
- `--with-gnu-as' and `--with-gnu-ld' need not be used; these flags will
- be auto-detected. One drawback of this option is that it won't allow
- you to override the search path for assembler and linker with
- command-line options -B/path/ if the specified filenames exist.
- _________________________________________________________________
-
-cpp: Usage:... Error
-
- If you get an error like this when building GCC (particularly when
- building __mulsi3), then you likely have a problem with your
- environment variables.
- cpp: Usage: /usr/lib/gcc-lib/i586-unknown-linux-gnulibc1/2.7.2.3/cpp
- [switches] input output
-
- First look for an explicit '.' in either LIBRARY_PATH or
- GCC_EXEC_PREFIX from your environment. If you do not find an explicit
- '.', look for an empty pathname in those variables. Note that ':' at
- either the start or end of these variables is an implicit '.' and will
- cause problems.
-
- Also note '::' in these paths will also cause similar problems.
- _________________________________________________________________
-
-Optimizing the compiler itself
-
- If you want to test a particular optimization option, it's useful to
- try bootstrapping the compiler with that option turned on. For
- example, to test the -fssa option, you could bootstrap like this:
-make BOOT_CFLAGS="-O2 -fssa" bootstrap
- _________________________________________________________________
-
- Testsuite problems
-
-Unable to run the testsuite
-
- If you get a message about unable to find "standard.exp" when trying
- to run the GCC testsuites, then your dejagnu is too old to run the GCC
- tests. You will need to get a newer version of dejagnu from
- [47]http://www.gnu.org/software/dejagnu/dejagnu.html.
- _________________________________________________________________
-
-How do I pass flags like -fnew-abi to the testsuite?
-
- If you invoke runtest directly, you can use the --tool_opts option,
- e.g:
- runtest --tool_opts "-fnew-abi -fno-honor-std" <other options>
-
- Or, if you use make check you can use the make variable RUNTESTFLAGS,
- e.g:
- make RUNTESTFLAGS="--tool_opts '-fnew-abi -fno-honor-std'" check-g++
- _________________________________________________________________
-
-How can I run the test suite with multiple options?
-
- If you invoke runtest directly, you can use the --target_board option,
- e.g:
- runtest --target_board "unix{-fPIC,-fpic,}" <other options>
-
- Or, if you use make check you can use the make variable RUNTESTFLAGS,
- e.g:
- make RUNTESTFLAGS="--target_board 'unix{-fPIC,-fpic,}'" check-gcc
-
- Either of these examples will run the tests three times. Once with
- -fPIC, once with -fpic, and once with no additional flags.
-
- This technique is particularly useful on multilibbed targets.
- _________________________________________________________________
-
- Older versions of GCC and EGCS
-
-Is there a stringstream / sstream for GCC 2.95.2?
-
- Yes, it's at:
- [48]http://gcc.gnu.org/ml/libstdc++/2000-q2/msg00700/sstream.
- _________________________________________________________________
-
- Miscellaneous
-
-Virtual memory exhausted error
-
- This error means your system ran out of memory; this can happen for
- large files, particularly when optimizing. If you're getting this
- error you should consider trying to simplify your files or reducing
- the optimization level.
-
- Note that using -pedantic or -Wreturn-type can cause an explosion in
- the amount of memory needed for template-heavy C++ code, such as code
- that uses STL. Also note that -Wall includes -Wreturn-type, so if you
- use -Wall you will need to specify -Wno-return-type to turn it off.
- _________________________________________________________________
-
-Friend Templates
-
- In order to make a specialization of a template function a friend of a
- (possibly template) class, you must explicitly state that the friend
- function is a template, by appending angle brackets to its name, and
- this template function must have been declared already. Here's an
- example:
-template <typename T> class foo {
- friend void bar(foo<T>);
-}
-
- The above declaration declares a non-template function named bar, so
- it must be explicitly defined for each specialization of foo. A
- template definition of bar won't do, because it is unrelated with the
- non-template declaration above. So you'd have to end up writing:
-void bar(foo<int>) { /* ... */ }
-void bar(foo<void>) { /* ... */ }
-
- If you meant bar to be a template function, you should have
- forward-declared it as follows. Note that, since the template function
- declaration refers to the template class, the template class must be
- forward-declared too:
-template <typename T>
-class foo;
-
-template <typename T>
-void bar(foo<T>);
-
-template <typename T>
-class foo {
- friend void bar<>(foo<T>);
-};
-
-template <typename T>
-void bar(foo<T>) { /* ... */ }
-
- In this case, the template argument list could be left empty, because
- it can be implicitly deduced from the function arguments, but the
- angle brackets must be present, otherwise the declaration will be
- taken as a non-template function. Furthermore, in some cases, you may
- have to explicitly specify the template arguments, to remove
- ambiguity.
-
- An error in the last public comment draft of the ANSI/ISO C++ Standard
- and the fact that previous releases of GCC would accept such friend
- declarations as template declarations has led people to believe that
- the forward declaration was not necessary, but, according to the final
- version of the Standard, it is.
- _________________________________________________________________
-
-dynamic_cast, throw, typeid don't work with shared libraries
-
- The new C++ ABI in the GCC 3.0 series uses address comparisons, rather
- than string compares, to determine type equality. This leads to better
- performance. Like other objects that have to be present in the final
- executable, these std::typeinfo_t objects have what is called vague
- linkage because they are not tightly bound to any one particular
- translation unit (object file). The compiler has to emit them in any
- translation unit that requires their presence, and then rely on the
- linking and loading process to make sure that only one of them is
- active in the final executable. With static linking all of these
- symbols are resolved at link time, but with dynamic linking, further
- resolution occurs at load time. You have to ensure that objects within
- a shared library are resolved against objects in the executable and
- other shared libraries.
- * For a program which is linked against a shared library, no
- additional precautions need taking.
- * You cannot create a shared library with the "-Bsymbolic" option,
- as that prevents the resolution described above.
- * If you use dlopen to explicitly load code from a shared library,
- you must do several things. First, export global symbols from the
- executable by linking it with the "-E" flag (you will have to
- specify this as "-Wl,-E" if you are invoking the linker in the
- usual manner from the compiler driver, g++). You must also make
- the external symbols in the loaded library available for
- subsequent libraries by providing the RTLD_GLOBAL flag to dlopen.
- The symbol resolution can be immediate or lazy.
-
- Template instantiations are another, user visible, case of objects
- with vague linkage, which needs similar resolution. If you do not take
- the above precautions, you may discover that a template instantiation
- with the same argument list, but instantiated in multiple translation
- units, has several addresses, depending in which translation unit the
- address is taken. (This is not an exhaustive list of the kind of
- objects which have vague linkage and are expected to be resolved
- during linking & loading.)
-
- If you are worried about different objects with the same name
- colliding during the linking or loading process, then you should use
- namespaces to disambiguate them. Giving distinct objects with global
- linkage the same name is a violation of the One Definition Rule (ODR)
- [basic.def.odr].
-
- For more details about the way that GCC implements these and other C++
- features, please read the [49]ABI specification. Note the
- std::typeinfo_t objects which must be resolved all begin with "_ZTS".
- Refer to ld's documentation for a description of the "-E" &
- "-Bsymbolic" flags.
- _________________________________________________________________
-
-Why do I need autoconf, bison, xgettext, automake, etc?
-
- If you're using diffs up dated from one snapshot to the next, or if
- you're using the CVS repository, you may need several additional
- programs to build GCC.
-
- These include, but are not necessarily limited to autoconf, automake,
- bison, and xgettext.
-
- This is necessary because neither diff nor cvs keep timestamps
- correct. This causes problems for generated files as "make" may think
- those generated files are out of date and try to regenerate them.
-
- An easy way to work around this problem is to use the gcc_update
- script in the contrib subdirectory of GCC, which handles this
- transparently without requiring installation of any additional tools.
- (Note: Up to and including GCC 2.95 this script was called egcs_update
- .)
-
- When building from diffs or CVS or if you modified some sources, you
- may also need to obtain development versions of some GNU tools, as the
- production versions do not necessarily handle all features needed to
- rebuild GCC.
-
- In general, the current versions of these tools from
- [50]ftp://ftp.gnu.org/gnu/ will work. At present, Autoconf 2.50 is not
- supported, and you will need to use Autoconf 2.13; work is in progress
- to fix this problem. Also look at
- [51]ftp://gcc.gnu.org/pub/gcc/infrastructure/ for any special versions
- of packages.
- _________________________________________________________________
-
-Why can't I build a shared library?
-
- When building a shared library you may get an error message from the
- linker like `assert pure-text failed:' or `DP relative code in file'.
-
- This kind of error occurs when you've failed to provide proper flags
- to gcc when linking the shared library.
-
- You can get this error even if all the .o files for the shared library
- were compiled with the proper PIC option. When building a shared
- library, gcc will compile additional code to be included in the
- library. That additional code must also be compiled with the proper
- PIC option.
-
- Adding the proper PIC option (-fpic or -fPIC) to the link line which
- creates the shared library will fix this problem on targets that
- support PIC in this manner. For example:
- gcc -c -fPIC myfile.c
- gcc -shared -o libmyfile.so -fPIC myfile.o
- _________________________________________________________________
-
-How to work around too long C++ symbol names (-fsquangle)
-
- This question does not apply to GCC 3.0 or later versions, which have
- a new C++ ABI with much shorter mangled names.
-
- If the standard assembler of your platform can't cope with the large
- symbol names that the default g++ name mangling mechanism produces,
- your best bet is to use GNU as, from the GNU binutils package.
-
- Unfortunately, GNU as does not support all platforms supported by GCC,
- so you may have to use an experimental work-around: the -fsquangle
- option, that enables compression of symbol names.
-
- Note that this option is still under development, and subject to
- change. Since it modifies the name mangling mechanism, you'll need to
- build libstdc++ and any other C++ libraries with this option enabled.
- Furthermore, if this option changes its behavior in the future, you'll
- have to rebuild them all again. :-(
-
- This option can be enabled by default by initializing
- `flag_do_squangling' with `1' in `gcc/cp/decl2.c' (it is not
- initialized by default), then rebuilding GCC and any C++ libraries.
- _________________________________________________________________
-
-When building C++, the linker says my constructors, destructors or virtual
-tables are undefined, but I defined them
-
- The ISO C++ Standard specifies that all virtual methods of a class
- that are not pure-virtual must be defined, but does not require any
- diagnostic for violations of this rule [class.virtual]/8. Based on
- this assumption, GCC will only emit the implicitly defined
- constructors, the assignment operator, the destructor and the virtual
- table of a class in the translation unit that defines its first such
- non-inline method.
-
- Therefore, if you fail to define this particular method, the linker
- may complain about the lack of definitions for apparently unrelated
- symbols. Unfortunately, in order to improve this error message, it
- might be necessary to change the linker, and this can't always be
- done.
-
- The solution is to ensure that all virtual methods that are not pure
- are defined. Note that a destructor must be defined even if it is
- declared pure-virtual [class.dtor]/7.
- _________________________________________________________________
-
-Will GCC someday include an incremental linker?
-
- Incremental linking is part of the linker, not the compiler. As such,
- GCC doesn't have anything to do with incremental linking. Depending on
- what platform you use, it may be possible to tell GCC to use the
- platform's native linker (e.g., Solaris' ild(1)).
-
-References
-
- 1. http://www.gnu.org/software/gcc/faq.html
- 2. http://www.eskimo.com/~scs/C-faq/top.html
- 3. http://www.research.att.com/~austern/csc/faq.html
- 4. http://www.fortran.com/fortran/info.html
- 5. http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html
- 6. http://gcc.gnu.org/java/faq.html
- 7. http://gcc.gnu.org/faq.html#general
- 8. http://gcc.gnu.org/faq.html#gcc
- 9. http://gcc.gnu.org/faq.html#cygnus
- 10. http://gcc.gnu.org/faq.html#open-development
- 11. http://gcc.gnu.org/faq.html#bugreport
- 12. http://gcc.gnu.org/faq.html#support
- 13. http://gcc.gnu.org/faq.html#platforms
- 14. http://gcc.gnu.org/faq.html#installation
- 15. http://gcc.gnu.org/faq.html#multiple
- 16. http://gcc.gnu.org/faq.html#rpath
- 17. http://gcc.gnu.org/faq.html#rpath
- 18. http://gcc.gnu.org/faq.html#gas
- 19. http://gcc.gnu.org/faq.html#environ
- 20. http://gcc.gnu.org/faq.html#optimizing
- 21. http://gcc.gnu.org/faq.html#testsuite
- 22. http://gcc.gnu.org/faq.html#dejagnu
- 23. http://gcc.gnu.org/faq.html#testoptions
- 24. http://gcc.gnu.org/faq.html#multipletests
- 25. http://gcc.gnu.org/faq.html#old
- 26. http://gcc.gnu.org/faq.html#2.95sstream
- 27. http://gcc.gnu.org/faq.html#misc
- 28. http://gcc.gnu.org/faq.html#memexhausted
- 29. http://gcc.gnu.org/faq.html#friend
- 30. http://gcc.gnu.org/faq.html#dso
- 31. http://gcc.gnu.org/faq.html#generated_files
- 32. http://gcc.gnu.org/faq.html#picflag-needed
- 33. http://gcc.gnu.org/faq.html#squangle
- 34. http://gcc.gnu.org/faq.html#vtables
- 35. http://gcc.gnu.org/faq.html#incremental
- 36. http://gcc.gnu.org/steering.html
- 37. http://gcc.gnu.org/steering.html
- 38. http://gcc.gnu.org/faq.html#cathedral-vs-bazaar
- 39. http://www.tuxedo.org/~esr/writings/cathedral-bazaar/
- 40. http://gcc.gnu.org/bugs.html
- 41. http://gcc.gnu.org/bugs.html
- 42. http://gcc.gnu.org/bugs.html
- 43. http://gcc.gnu.org/install/specific.html
- 44. http://gcc.gnu.org/buildstat.html
- 45. http://gcc.gnu.org/faq.html#gas
- 46. http://gcc.gnu.org/install/specific.html
- 47. http://www.gnu.org/software/dejagnu/dejagnu.html
- 48. http://gcc.gnu.org/ml/libstdc++/2000-q2/msg00700/sstream
- 49. http://www.codesourcery.com/cxx-abi/
- 50. ftp://ftp.gnu.org/gnu/
- 51. ftp://gcc.gnu.org/pub/gcc/infrastructure/
diff --git a/contrib/gcc/GNATS b/contrib/gcc/GNATS
deleted file mode 100644
index aa67bc9a8c75..000000000000
--- a/contrib/gcc/GNATS
+++ /dev/null
@@ -1,187 +0,0 @@
-
- Submitting Bug Reports using GNATS
-
-gnatsweb and gccbug
-
- GNATS, the GNU bug tracking system, is used to track GCC bug reports.
- Before submitting a bug report, please read the [1]general
- instructions.
-
- The preferred way to submit a bug report is by means of the
- [2]gnatsweb interface. Make sure you include an e-mail address, so we
- can inform you when the status of your report changes.
-
- Another way is to use the gccbug program that is automatically
- installed with current versions of GCC, which submits the bug report
- by e-mail.
-
- Both techniques use the same GNATS bug database.
-
-Filling out a report
-
- The bug report form provides a number of fields; you'll need to
- fill-out most of those (as indicated below) to provide a complete
- report. The fields have the following purpose:
-
- Originator
- Your name.
-
- Organization
- Your organization. You can leave this field blank.
-
- Confidential
- This field is unused and set to 'no'. All bug reports,
- including sample code, are publicly accessible.
-
- Synopsis
- A one-line description of the problem; something like "GCC 2.95
- does not foo", "objc crashes when doing bar".
-
- Severity
- Can be one of
-
- critical
- GCC is completely not operational; no work-around known.
-
- serious
- GCC is not working properly; a work-around is possible.
-
- non-critical
- Report indicates minor problem.
-
- Priority
- Can be one of
-
- high
- A solution is necessary as soon as possible. This is
- reserved to GCC maintainers.
-
- medium
- The problem should be solved in the next release.
-
- low
- The problem should be solved in a future release.
-
- Category
- This indicates the GCC subproject which is affected by the
- problem. Currently, it can be one of
-
- ada
- A problem with the Ada compiler, libraries or tools.
-
- bootstrap
- GCC fails to bootstrap. This should be filed only if a
- bootstrap failure prevails for an extended period of time
- (at least one week) on any platform (and possibly
- not-so-common conditions like a read-only srcdir), or
- non-mainstream platforms.
-
- c++
- A problem with the C++ compiler.
-
- c
- A problem with the C compiler.
-
- debug
- A problem with generating debugging information.
-
- fortran
- A problem with the Fortran compiler.
-
- java
- A problem with the Java compiler.
-
- libf2c
- A problem in the Fortran runtime library.
-
- libgcj
- A problem in the Java runtime library.
-
- libobjc
- A problem in the Objective C runtime library.
-
- libstdc++
- A problem in the Standard C++ runtime library.
-
- middle-end
- A problem in the internal compiler passes.
-
- objc
- A problem with the Objective C compiler.
-
- optimization
- A problem only occurring under optimization.
-
- preprocessor
- A problem with the C preprocessor.
-
- target
- The problem depends on the specific target architecture.
-
- web
- There is an error or omission on the Web pages.
-
- other
- The problem is in none of these categories.
-
- Class
- A classification of the problem; one of
-
- doc-bug
- The documentation is incorrect.
-
- accepts-illegal
- GCC fails to reject erroneous code.
-
- rejects-legal
- GCC gives an error message for correct code.
-
- wrong-code
- The machine code generated by GCC is incorrect.
-
- ice-on-legal-code
- GCC gives an Internal Compiler Error (ICE) for correct
- code.
-
- ice-on-illegal-code
- GCC gives an ICE instead of reporting an error.
-
- pessimizes-code
- GCC misses an important optimization opportunity.
-
- sw-bug
- Software bug of some other class than above.
-
- change-request
- A feature in GCC is missing.
-
- support
- I need help with GCC.
-
- Release
- GCC version, as obtained from 'gcc -v' (one line).
-
- Environment
- Information about your operating system version, hardware
- architecture, and environment settings that affect GCC.
-
- Description
- Precise description of the problem. You should put the error
- messages printed by GCC here; source code should go into the
- next section.
-
- How-To-Repeat
- Please put the complete source code to reproduce the problem
- here. The gccbug script currently does not support file
- attachments. Instead, if you have multiple files, include them
- uuencoded (compressing them before if they are large). If you
- use gnatsweb, you can use the file attachments button instead.
-
- Fix
- How to correct or work around the problem, if known (multiple
- lines).
-
-References
-
- 1. http://gcc.gnu.org/bugs.html
- 2. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc&user=guest&password=guest&cmd=login
diff --git a/contrib/gcc/MAINTAINERS b/contrib/gcc/MAINTAINERS
deleted file mode 100644
index 805c439e1481..000000000000
--- a/contrib/gcc/MAINTAINERS
+++ /dev/null
@@ -1,254 +0,0 @@
-Note
-====
-
-This file contains information about people who are permitted to make
-changes to various parts of the compiler and associated libraries.
-
-Please do not contact the people in this file directly to report
-problems in GCC.
-
-For general information about GCC, please visit:
-
- http://gcc.gnu.org
-
-To report problems in GCC, please visit:
-
- http://gcc.gnu.org/bugs.html
-
-Maintainers
-===========
-
- Blanket Write Privs.
-
-John Carr jfc@mit.edu
-Richard Earnshaw rearnsha@arm.com
-Richard Henderson rth@redhat.com
-Geoffrey Keating geoffk@geoffk.org
-Richard Kenner kenner@nyu.edu
-Jeff Law law@redhat.com
-Jason Merrill jason@redhat.com
-Michael Meissner meissner@redhat.com
-David S. Miller davem@redhat.com
-Mark Mitchell mark@codesourcery.com
-Bernd Schmidt bernds@redhat.com
-Jim Wilson wilson@redhat.com
-
-
- CPU Port Maintainers (CPU alphabetical order)
-
-alpha port Richard Henderson rth@redhat.com
-arc port Richard Kenner kenner@nyu.edu
-arm port Nick Clifton nickc@redhat.com
-arm port Richard Earnshaw rearnsha@arm.com
-avr port Denis Chertykov denisc@overta.ru
-avr port Marek Michalkiewicz marekm@linux.org.pl
-c4x port Michael Hayes m.hayes@elec.canterbury.ac.nz
-cris port Hans-Peter Nilsson hp@axis.com
-fr30 port Nick Clifton nickc@redhat.com
-h8 port Jeff Law law@redhat.com
-h8 port Kazu Hirata kazu@cs.umass.edu
-hppa port Jeff Law law@redhat.com
-hppa port Dave Anglin dave.anglin@nrc.ca
-i386 port Richard Henderson rth@redhat.com
-i860 port Jason Eckhardt jle@redhat.com
-i960 port Jim Wilson wilson@redhat.com
-ia64 port Jim Wilson wilson@redhat.com
-m32r port Nick Clifton nickc@redhat.com
-m32r port Michael Meissner meissner@redhat.com
-m68hc11 port Stephane Carrez stcarrez@nerim.fr
-m68k port (?) Jeff Law law@redhat.com
-m68k-motorola-sysv port Philippe De Muyter phdm@macqel.be
-mcore port Nick Clifton nickc@redhat.com
-mips port Eric Christopher echristo@redhat.com
-mmix port Hans-Peter Nilsson hp@bitrange.com
-mn10200 port Jeff Law law@redhat.com
-mn10300 port Jeff Law law@redhat.com
-mn10300 port Alexandre Oliva aoliva@redhat.com
-rs6000 port Geoff Keating geoffk@geoffk.org
-rs6000 port David Edelsohn dje@watson.ibm.com
-s390 port Hartmut Penner hpenner@de.ibm.com
-s390 port Ulrich Weigand uweigand@de.ibm.com
-sh port Joern Rennecke joern.rennecke@superh.com
-sh port Alexandre Oliva aoliva@redhat.com
-sparc port Richard Henderson rth@redhat.com
-sparc port David S. Miller davem@redhat.com
-sparc port Jakub Jelinek jakub@redhat.com
-v850 port Nick Clifton nickc@redhat.com
-v850 port Michael Meissner meissner@redhat.com
-vax port Dave Anglin dave.anglin@nrc.ca
-x86-64 port Jan Hubicka jh@suse.cz
-xstormy16 port Geoffrey Keating geoffk@geoffk.org
-xtensa port Bob Wilson bob.wilson@acm.org
-
- OS Port Maintainers (OS alphabetical order)
-
-darwin port Stan Shebs shebs@apple.com
-netbsd Jason Thorpe thorpej@wasabisystems.com
-sco5, unixware, sco udk Robert Lipe robertlipe@usa.net
-
- Various Maintainers
-
-C front end/ISO C99 Joseph Myers jsm28@cam.ac.uk
-C front end/ISO C99 Richard Henderson rth@redhat.com
-Ada front end Geert Bosch bosch@gnat.com
-Ada front end Robert Dewar dewar@gnat.com
-fortran Richard Henderson rth@redhat.com
-fortran Toon Moene toon@moene.indiv.nluug.nl
-c++ Jason Merrill jason@redhat.com
-c++ Mark Mitchell mark@codesourcery.com
-cpplib Dave Brolley brolley@redhat.com
-cpplib Per Bothner per@bothner.com
-cpplib Zack Weinberg zack@codesourcery.com
-cpplib Neil Booth neil@daikokuya.co.uk
-java Per Bothner per@bothner.com
-java Alexandre Petit-Bianco apbianco@redhat.com
-mercury Fergus Henderson fjh@cs.mu.oz.au
-objective-c Stan Shebs shebs@apple.com
-objective-c Ovidiu Predescu ovidiu@cup.hp.com
-alias analysis John Carr jfc@mit.edu
-loop unrolling Jim Wilson wilson@redhat.com
-loop discovery Michael Hayes m.hayes@elec.canterbury.ac.nz
-scheduler (+ haifa) Jim Wilson wilson@redhat.com
-scheduler (+ haifa) Michael Meissner meissner@redhat.com
-scheduler (+ haifa) Jeff Law law@redhat.com
-reorg Jeff Law law@redhat.com
-caller-save.c Jeff Law law@redhat.com
-debugging code Jim Wilson wilson@redhat.com
-dwarf debugging code Jason Merrill jason@redhat.com
-c++ runtime libs Paolo Carlini pcarlini@unitus.it
-c++ runtime libs Gabriel Dos Reis gdr@integrable-solutions.net
-c++ runtime libs Ulrich Drepper drepper@redhat.com
-c++ runtime libs Phil Edwards pme@gcc.gnu.org
-c++ runtime libs Benjamin Kosnik bkoz@redhat.com
-*synthetic multiply Torbjorn Granlund tege@swox.com
-*c-torture Torbjorn Granlund tege@swox.com
-fixincludes Bruce Korb bkorb@gnu.org
-gcse.c Jeff Law law@redhat.com
-global opt framework Jeff Law law@redhat.com
-jump.c David S. Miller davem@redhat.com
-web pages Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
-config.sub/config.guess Ben Elliston config-patches@gnu.org
-basic block reordering Jason Eckhardt jle@redhat.com
-i18n Philipp Thomas pthomas@suse.de
-diagnostic messages Gabriel Dos Reis gdr@integrable-solutions.net
-windows, cygwin, mingw Christopher Faylor cgf@redhat.com
-windows, cygwin, mingw DJ Delorie dj@redhat.com
-DJGPP DJ Delorie dj@delorie.com
-libiberty DJ Delorie dj@redhat.com
-build machinery (*.in) DJ Delorie dj@redhat.com
-build machinery (*.in) Alexandre Oliva aoliva@redhat.com
-docs co-maintainer Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
-docs co-maintainer Joseph Myers jsm28@cam.ac.uk
-Pico-Java port Steve Chamberlain sac@transmeta.com
-RTEMS Ports Joel Sherrill
-predict.def Jan Hubicka jh@suse.cz
-contrib/regression Geoff Keating geoffk@geoffk.org
-
-Note individuals who maintain parts of the compiler need approval to check
-in changes outside of the parts of the compiler they maintain.
-
-
- Write After Approval (last name alphabetical order)
-
-Matt Austern austern@apple.com
-Scott Bambrough scottb@netwinder.org
-Daniel Berlin dan@dberlin.org
-David Billinghurst David.Billinghurst@riotinto.com
-Laurynas Biveinis lauras@softhome.net
-Jim Blandy jimb@redhat.com
-Phil Blundell pb@futuretv.com
-Hans Boehm hboehm@gcc.gnu.org
-Eric Botcazou ebotcazou@libertysurf.fr
-Andrew Cagney cagney@redhat.com
-Chandra Chavva cchavva@redhat.com
-William Cohen wcohen@redhat.com
-Chris Demetriou cgd@broadcom.com
-*Paul Eggert eggert@twinsun.com
-Ben Elliston bje@redhat.com
-Marc Espie espie@cvs.openbsd.org
-Doug Evans devans@transmeta.com
-Kaveh Ghazi ghazi@caip.rutgers.edu
-Matthew Gingell gingell@gnat.com
-Anthony Green green@redhat.com
-Stu Grossman grossman@redhat.com
-Laurent Guerby guerby@acm.org
-Andrew Haley aph@redhat.com
-Stuart Hastings stuart@apple.com
-Aldy Hernandez aldyh@redhat.com
-Matthew Hiller hiller@redhat.com
-Manfred Hollstein mhollstein@redhat.com
-Andreas Jaeger aj@suse.de
-Jakub Jelinek jakub@redhat.com
-Dale Johannesen dalej@apple.com
-Janis Johnson janis187@us.ibm.com
-Klaus Kaempf kkaempf@progis.de
-Brendan Kehoe brendan@zen.org
-Mumit Khan khan@xraylith.wisc.edu
-Matthias Klose doko@debian.org
-Jeff Knaggs jknaggs@redhat.com
-Matt Kraai kraai@alumni.carnegiemellon.edu
-Ziemowit Laski zlaski@apple.com
-Marc Lehmann pcg@goof.com
-Alan Lehotsky apl@alum.mit.edu
-Warren Levy warrenl@redhat.com
-Kriang Lerdsuwanakij lerdsuwa@users.sourceforge.net
-Don Lindsay dlindsay@redhat.com
-Dave Love d.love@dl.ac.uk
-Martin v. Lwis loewis@informatik.hu-berlin.de
-*HJ Lu hjl@lucon.org
-Andrew Macleod amacleod@redhat.com
-Vladimir Makarov vmakarov@redhat.com
-Michael Matz matz@suse.de
-Greg McGary gkm@gnu.org
-Bryce McKinlay bryce@gcc.gnu.org
-Adam Megacz adam@xwt.org
-Alan Modra amodra@bigpond.net.au
-Toon Moene toon@moene.indiv.nluug.nl
-Catherine Moore clm@redhat.com
-Adam Nemet anemet@lnxw.com
-Diego Novillo dnovillo@redhat.com
-David O'Brien obrien@FreeBSD.org
-Turly O'Connor turly@apple.com
-Jeffrey D. Oldham oldham@codesourcery.com
-Rainer Orth ro@TechFak.Uni-Bielefeld.DE
-Devang Patel dpatel@apple.com
-Nicola Pero n.pero@mi.flashnet.it
-Alexandre Petit-Bianco apbianco@redhat.com
-Clinton Popetz cpopetz@cpopetz.com
-Ken Raeburn raeburn@redhat.com
-Rolf Rasmussen rolfwr@gcc.gnu.org
-Loren J. Rittle ljrittle@acm.org
-Tom Rix trix@redhat.com
-Craig Rodrigues rodrigc@gcc.gnu.org
-Gavin Romig-Koch gavin@redhat.com
-Ira Ruben ira@apple.com
-Alex Samuel samuel@codesourcery.com
-Richard Sandiford rsandifo@redhat.com
-Roger Sayle roger@eyesopen.com
-Bernd Schmidt bernds@redhat.com
-Andreas Schwab schwab@suse.de
-Stan Shebs shebs@apple.com
-Nathan Sidwell nathan@acm.org
-Franz Sirl franz.sirl-kernel@lauterbach.com
-Danny Smith dannysmith@users.sourceforge.net
-Michael Sokolov msokolov@ivan.Harhan.ORG
-Richard Stallman rms@gnu.org
-Graham Stott grahams@redhat.com
-Mike Stump mrs@apple.com
-Ian Taylor ian@zembu.com
-Michael Tiemann tiemann@redhat.com
-Philipp Thomas pthomas@suse.de
-Kresten Krab Thorup krab@gcc.gnu.org
-Tom Tromey tromey@redhat.com
-John Wehle john@feith.com
-Florian Weimer fw@deneb.enyo.de
-Mark Wielaard mark@gcc.gnu.org
-
-GNATS only accounts
-
-James Dennett jdennett jdennett@acm.org
-
-Peter Bienstman(?)
-Benjamin Chelf(?)
-Mark Galassi(?)
-Jeff Strum(?)
diff --git a/contrib/gcc/bugs.html b/contrib/gcc/bugs.html
deleted file mode 100644
index a8dab54d14c3..000000000000
--- a/contrib/gcc/bugs.html
+++ /dev/null
@@ -1,698 +0,0 @@
-<html>
-
-<head>
-<title>GCC Bugs</title>
-</head>
-
-<body>
-<h1>GCC Bugs</h1>
-
-<p>The latest version of this document is always available at
-<a href="http://www.gnu.org/software/gcc/bugs.html">http://www.gnu.org/software/gcc/bugs.html</a>.</p>
-
-<hr />
-
-<h2>Table of Contents</h2>
-<ul>
-<li><a href="#report">Reporting Bugs</a>
- <ul>
- <li><a href="#need">What we need</a></li>
- <li><a href="#dontwant">What we DON'T want</a></li>
- <li><a href="#where">Where to post it</a></li>
- <li><a href="#detailed">Detailed bug reporting instructions</a></li>
- <li><a href="#gnat">Detailed bug reporting instructions for GNAT</a></li>
- </ul>
-</li>
-<li><a href="#manage">Managing Bugs (GNATS and the test-suite)</a></li>
-<li><a href="#known">Frequently Reported Bugs in GCC</a>
- <ul>
- <li><a href="#general">General</a></li>
- <li><a href="#fortran">Fortran</a></li>
- <li><a href="#c">C</a></li>
- <li><a href="#cplusplus">C++</a>
- <ul>
- <li><a href="#updating">Common problems updating from G++ 2.95 to
- G++ 3.0</a></li>
- <li><a href="#nonbugs">Non-bugs</a></li>
- <li><a href="#missing">Missing features</a></li>
- <li><a href="#parsing">Parse errors for "simple" code</a></li>
- <li><a href="#-O3">Optimization at <code>-O3</code> takes a
- very long time</a></li>
- </ul>
- </li>
- </ul>
- </li>
-</ul>
-
-<hr />
-
-<h1><a name="report">Reporting Bugs</a></h1>
-
-<p>Our preferred way of receiving bugs is via the
-<a href="gnats.html">GCC GNATS bug reporting system</a>.</p>
-
-<p>Before you report a bug, please check the
-<a href="#known">list of well-known bugs</a> and, <strong>if possible
-in any way, try a current development snapshot</strong>.
-If you want to report a bug with versions of GCC before 3.1 we strongly
-recommend upgrading to the current release first.</p>
-
-<p>Before reporting that GCC compiles your code incorrectly, please
-compile it with <code>gcc -Wall</code> and see whether this shows
-anything wrong with your code that could be the cause instead of a bug
-in GCC.</p>
-
-<h2>Summarized bug reporting instructions</h2>
-
-<p>After this summary, you'll find detailed bug reporting
-instructions, that explain how to obtain some of the information
-requested in this summary.</p>
-
-<h3><a name="need">What we need</a></h3>
-
-Please include in your bug report all of the following items, the first
-three of which can be obtained from the output of <code>gcc -v</code>:
-
-<ul>
- <li>the exact version of GCC;</li>
- <li>the system type;</li>
- <li>the options given when GCC was configured/built;</li>
- <li>the complete command line that triggers the bug;</li>
- <li>the compiler output (error messages, warnings, etc.); and</li>
- <li>the <em>preprocessed</em> file (<code>*.i*</code>) that triggers the
- bug, generated by adding <code>-save-temps</code> to the complete
- compilation command, or, in the case of a bug report for the GNAT front end,
- a complete set of source files (see below).</li>
-</ul>
-
-<h3><a name="dontwant">What we do <strong>not</strong> want</a></h3>
-
-<ul>
- <li>A source file that <code>#include</code>s header files that are left
- out of the bug report (see above)</li>
-
- <li>That source file and a collection of header files.</li>
-
- <li>An attached archive (tar, zip, shar, whatever) containing all
- (or some :-) of the above.</li>
-
- <li>A code snippet that won't cause the compiler to produce the
- exact output mentioned in the bug report (e.g., a snippet with just
- a few lines around the one that <b>apparently</b> triggers the bug,
- with some pieces replaced with ellipses or comments for extra
- obfuscation :-)</li>
-
- <li>The location (URL) of the package that failed to build (we won't
- download it, anyway, since you've already given us what we need to
- duplicate the bug, haven't you? :-)</li>
-
- <li>An error that occurs only some of the times a certain file is
- compiled, such that retrying a sufficient number of times results in
- a successful compilation; this is a symptom of a hardware problem,
- not of a compiler bug (sorry)</li>
-
- <li>E-mail messages that complement previous, incomplete bug
- reports. Post a new, self-contained, full bug report instead, if
- possible as a follow-up to the original bug report</li>
-
- <li>Assembly files (<code>*.s</code>) produced by the compiler, or any
- binary files, such as object files, executables or core files</li>
-
- <li>Duplicate bug reports, or reports of bugs already fixed in the
- development tree, especially those that have already been reported
- as fixed last week :-)</li>
-
- <li>Bugs in the assembler, the linker or the C library. These are
- separate projects, with separate mailing lists and different bug
- reporting procedures</li>
-
- <li>Bugs in releases or snapshots of GCC not issued by the GNU
- Project. Report them to whoever provided you with the release</li>
-
- <li>Questions about the correctness or the expected behavior of
- certain constructs that are not GCC extensions. Ask them in forums
- dedicated to the discussion of the programming language</li>
-</ul>
-
-<h3><a name="where">Where to post it</a></h3>
-
-<p>Please submit your bug report directly to the
-<a href="gnats.html">GCC GNATS bug database</a>.
-Only if this is not possible, mail all information to
-<a href="mailto:bug-gcc@gnu.org">bug-gcc@gnu.org</a> or
-<a href="mailto:gcc-bugs@gcc.gnu.org">gcc-bugs@gcc.gnu.org</a>.</p>
-
-<p>The GCC lists have message size limits (200 kbytes) and bug reports
-over those limits will currently be bounced. If your bug is larger
-than that, please post it using the <a href="gnats.html">GCC GNATS bug
-database</a>.</p>
-
-<h2><a name="detailed">Detailed bug reporting instructions</a></h2>
-
-<p>Please refer to the <a href="#gnat">next section</a> when reporting
-bugs in GNAT, the Ada compiler.</p>
-
-<p>In general, all the information we need can be obtained by
-collecting the command line below, as well as its output and the
-preprocessed file it generates.</p>
-
-<blockquote><code>gcc -v -save-temps <i>all-your-options
-source-file</i></code></blockquote>
-
-<p>Typically the preprocessed file (extension <code>.i</code> for C or
-<code>.ii</code> for C++) will be large, so please compress the
-resulting file with one of the popular compression programs such as
-bzip2, gzip, zip or compress (in
-decreasing order of preference). Use maximum compression
-(<code>-9</code>) if available. Please include the compressed
-preprocessor output in your bug report, even if the source code is
-freely available elsewhere; it makes the job of our volunteer testers
-much easier.</p>
-
-<p>The <b>only</b> excuses to not send us the preprocessed sources are
-(i) if you've found a bug in the preprocessor, or (ii) if you've
-reduced the testcase to a small file that doesn't include any
-other file. If you can't post the preprocessed sources because
-they're proprietary code, then try to create a small file that
-triggers the same problem.</p>
-
-<p>Since we're supposed to be able to re-create the assembly output
-(extension <code>.s</code>), you usually should not include
-it in the bug report, although you may want to post parts of it to
-point out assembly code you consider to be wrong.</p>
-
-<p>Whether to use MIME attachments or <code>uuencode</code> is up to
-you. In any case, make sure the compiler command line, version and
-error output are in plain text, so that we don't have to decode the
-bug report in order to tell who should take care of it. A meaningful
-subject indicating language and platform also helps.</p>
-
-<p>Please avoid posting an archive (.tar, .shar or .zip); we generally
-need just a single file to reproduce the bug (the .i/.ii preprocessed
-file), and, by storing it in an archive, you're just making our
-volunteers' jobs harder. Only when your bug report requires multiple
-source files to be reproduced should you use an archive. In any case,
-make sure the compiler version, error message, etc, are included in
-the body of your bug report as plain text, even if needlessly
-duplicated as part of an archive.</p>
-
-<p>If you fail to supply enough information for a bug report to be
-reproduced, someone will probably ask you to post additional
-information (or just ignore your bug report, if they're in a bad day,
-so try to get it right on the first posting :-). In this case, please
-post the additional information to the bug reporting mailing list, not
-just to the person who requested it, unless explicitly told so. If
-possible, please include in this follow-up all the information you had
-supplied in the incomplete bug report (including the preprocessor
-output), so that the new bug report is self-contained.</p>
-
-<h2><a name="gnat">Detailed bug reporting instructions for GNAT</a></h2>
-
-<p>See the <a href="#detailed">previous section</a> for bug reporting
-instructions for GCC language implementations other than Ada.</p>
-
-<p>Bug reports have to contain at least the following information in
-order to be useful:</p>
-
-<ul>
-<li>the exact version of GCC, as shown by "<code>gcc -v</code>";</li>
-<li>the system type;</li>
-<li>the options when GCC was configured/built;</li>
-<li>the exact command line passed to the <code>gcc</code> program
-triggering the bug
-(not just the flags passed to <code>gnatmake</code>, but
-<code>gnatmake</code> prints the parameters it passed to <code>gcc</code>)</li>
-<li>a collection of source files for reproducing the bug,
-preferably a minimal set (see below);</li>
-<li>a description of the expected behavior;</li>
-<li>a description of actual behavior.</li>
-</ul>
-
-<p>If your code depends on additional source files (usually package
-specifications), submit the source code for these compilation units in
-a single file that is acceptable input to <code>gnatchop</code>,
-i.e. contains no non-Ada text. If the compilation terminated
-normally, you can usually obtain a list of dependencies using the
-"<code>gnatls -d <i>main_unit</i></code>" command, where
-<code><i>main_unit</i></code> is the file name of the main compilation
-unit (which is also passed to <code>gcc</code>).</p>
-
-<p>If you report a bug which causes the compiler to print a bug box,
-include that bug box in your report, and do not forget to send all the
-source files listed after the bug box along with your report.</p>
-
-<p>If you use <code>gnatprep</code>, be sure to send in preprocessed
-sources (unless you have to report a bug in <code>gnatprep</code>).</p>
-
-<p>When you have checked that your report meets these criteria, please
-submit it accoding to our <a href="#where">generic instructions</a>.
-(If you use a mailing list for reporting, please include an
-"<code>[Ada]</code>" tag in the subject.)</p>
-
-<h1><a name="manage">Managing Bugs (GNATS and the test-suite)</a></h1>
-
-<p>This section contains information mostly intended for GCC
-contributors.</p>
-
-<p>If you find a bug, but you are not fixing it (yet):</p>
-<ol>
-<li>Create a (minimal) test-case.</li>
-<li>Add the test-case to our test-suite, marking it as XFAIL unless
-the bug is a regression.</li>
-<li>Add a bug report referencing the test-case to GNATS.</li>
-</ol>
-
-<p>If you fix a bug for which there is already a GNATS entry:</p>
-<ol>
-<li>Remove the XFAIL on the test-case.</li>
-<li>Close the bug report in GNATS.</li>
-</ol>
-
-<p>If you find a bug, and you are fixing it right then:</p>
-<ol>
-<li>Create a (minimal) test-case.</li>
-<li>Add the test-case to our test-suite, marking it as PASS.</li>
-<li>Check in your fixes.</li>
-</ol>
-
-<hr />
-
-<h1><a name="known">Frequently Reported Bugs in GCC</a></h1>
-
-<h2><a name="fortran">Fortran</a></h2>
-
-<p>Fortran bugs are documented in the G77 manual rather than
-explicitly listed here. Please see
-<a href="http://gcc.gnu.org/onlinedocs/g77/Trouble.html">Known Causes of
-Trouble with GNU Fortran</a> in the G77 manual.</p>
-
-<hr />
-
-<h2><a name="c">C</a></h2>
-
-<p>The following are not bugs in the C compiler, but are reported
-often enough to warrant a mention here.</p>
-
-<dl>
-<dt>Cannot initialize a static variable with <code>stdin</code>.</dt>
-<dd><p>This has nothing to do with GCC, but people ask us about it a
-lot. Code like this:</p>
-
-<blockquote><pre>
-#include &lt;stdio.h&gt;
-
-FILE *yyin = stdin;
-</pre></blockquote>
-
-<p>will not compile with GNU libc (GNU/Linux libc6), because
-<code>stdin</code> is not a constant. This was done deliberately, to make
-it easier to maintain binary compatibility when the type <code>FILE</code>
-needs to be changed. It is surprising for people used to traditional Unix
-C libraries, but it is permitted by the C standard.</p>
-
-<p>This construct commonly occurs in code generated by old versions of
-lex or yacc. We suggest you try regenerating the parser with a
-current version of flex or bison, respectively. In your own code, the
-appropriate fix is to move the initialization to the beginning of
-main.</p>
-
-<p>There is a common misconception that the GCC developers are
-responsible for GNU libc. These are in fact two entirely separate
-projects; please check the
-<a href="http://www.gnu.org/software/glibc/">GNU libc web pages</a>
-for details.
-</p></dd>
-
-<dt>Cannot use preprocessor directive in macro arguments.</dt>
-<dd><p>Let me guess... you wrote code that looks something like this:</p>
-<blockquote><pre>
- memcpy(dest, src,
-#ifdef PLATFORM1
- 12
-#else
- 24
-#endif
- );
-</pre></blockquote>
-<p>and you got a whole pile of error messages:</p>
-<blockquote><code>
-
-test.c:11: warning: preprocessing directive not recognized within
-macro arg<br />
-test.c:11: warning: preprocessing directive not recognized within
-macro arg<br />
-test.c:11: warning: preprocessing directive not recognized within
-macro arg<br />
-test.c: In function `foo':<br />
-test.c:6: undefined or invalid # directive<br />
-test.c:8: undefined or invalid # directive<br />
-test.c:9: parse error before `24'<br />
-test.c:10: undefined or invalid # directive<br />
-test.c:11: parse error before `#'<br />
-</code></blockquote>
-
-<p><strong>Update:</strong> As of GCC 3.2 this kind of construct is
-always accepted and CPP will probably do what you expect, but see the
-manual for detailed semantics.</p>
-
-<p>However, versions of GCC prior to 3.2 did not allow you to put
-<code>#ifdef</code> (or any other directive) inside the arguments of a
-macro. Your C library's <code>&lt;string.h&gt;</code> happens to
-define <code>memcpy</code> as a macro - this is perfectly legitimate.
-The code therefore would not compile.</p>
-
-<p>This kind of code is not portable. It is "undefined behavior"
-according to the C standard; that means different compilers will do
-different things with it. It is always possible to rewrite code which
-uses conditionals inside macros so that it doesn't. You could write
-the above example</p>
-<blockquote><pre>
-#ifdef PLATFORM1
- memcpy(dest, src, 12);
-#else
- memcpy(dest, src, 24);
-#endif
-</pre></blockquote>
-<p>This is a bit more typing, but I personally think it's better style
-in addition to being more portable.</p>
-
-<p>In recent versions of glibc, <code>printf</code> is among the
-functions which are implemented as macros.</p></dd>
-</dl>
-
-<hr />
-
-<h2><a name="cplusplus">C++</a></h2>
-
-<p>This is the list of bugs (and non-bugs) in g++ (aka GNU C++) that
-are reported very often, but not yet fixed. While it is certainly
-better to fix bugs instead of documenting them, this document might
-save people the effort of writing a bug report when the bug is already
-well-known. <a href="#report">How to report bugs</a> tells you how to
-report a bug.</p>
-
-<p>There are many reasons why reported bugs don't get fixed. It might
-be difficult to fix, or fixing it might break compatibility. Often,
-reports get a low priority when there is a simple work-around. In
-particular, bugs caused by invalid C++ code have a simple work-around,
-<em>fix the code</em>. Now that there is an agreed ISO/ANSI standard
-for C++, the compiler has a definitive document to adhere to. Earlier
-versions might have accepted source code that is <em>no longer</em>
-C++. This means that code which might have `worked' in a previous
-version, is now rejected. You should update your code to be C++.</p>
-
-<p>You should try to use the latest stable release of the GNU C++
-compiler.</p>
-
-<h3><a name="updating">Common problems updating from G++ 2.95 to G++
-3.0</a></h3>
-
-<p>G++ 3.0 conforms much closer to the ISO C++ standard (available at
-<a href="http://www.ncits.org/cplusplus.htm">http://www.ncits.org/cplusplus.htm</a>).</p>
-
-<p>We have also implemented some of the core and library defect reports
-(available at
-<a href="http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html">http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html</a>
-&amp;
-<a href="http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-defects.html">
-http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-defects.html</a>
-respectively).</p>
-
-<ul>
-
-<li>The ABI has changed. This means that both class layout and name
-mangling is different. You <em>must</em> recompile all c++ libraries (if
-you don't you will get link errors).</li>
-
-<li>The standard library is much more conformant, and uses the
-<code>std::</code> namespace.</li>
-
-<li><code>std::</code> is now a real namespace, not an alias for
-<code>::</code>.</li>
-
-<li>The standard header files for the c library don't end with
-<code>.h</code>, but begin with <code>c</code> (i.e.
-<code>&lt;cstdlib&gt;</code> rather than <code>&lt;stdlib.h&gt;</code>).
-The <code>.h</code> names are still available, but are deprecated.</li>
-
-<li><code>&lt;strstream&gt;</code> is deprecated, use
-<code>&lt;sstream&gt;</code> instead.</li>
-
-<li><code>streambuf::seekoff</code> &amp;
-<code>streambuf::seekpos</code> are private, instead use
-<code>streambuf::pubseekoff</code> &amp;
-<code>streambuf::pubseekpos</code> respectively.</li>
-
-<li>If <code>std::operator &lt;&lt; (std::ostream &amp;, long long)</code>
-doesn't exist, you need to recompile libstdc++ with
-<code>--enable-long-long</code>.</li>
-
-</ul>
-
-This means you may get lots of errors about things like
-<code>strcmp</code> not being found. You've most likely forgotton to
-tell the compiler to look in the <code>std::</code> namespace. There are
-several ways to do this,
-
-<ul>
-
-<li>Say, <code>std::strcmp</code> at the call. This is the most explicit
-way of saying what you mean.</li>
-
-<li>Say, <code>using std::strcmp;</code> somewhere before the call. You
-will need to do this for each function or type you wish to use from the
-standard library.</li>
-
-<li>Say, <code>using namespace std;</code> somewhere before the call.
-This is the quick-but-dirty fix. This brings the <em>whole</em> of the
-<code>std::</code> namespace into scope. <em>Never</em> do this in a
-header file, as you will be forcing users of your header file to do the
-same.</li>
-
-</ul>
-
-<h3><a name="abi">ABI bugs</a></h3>
-
-<p>3.0 had a new ABI, which affected class layout, function mangling and
-calling conventions. We had intended it to be complete, unfortunately
-some issues came to light, too late to fix in the 3.0 series.
-The ABI should not change in dot releases, so we addressed most issues
-in GCC 3.1.
-</p>
-
-<dl>
-
-<dt>Covariant return types</dt>
-
-<dd>We do not implement non-trivial covariant returns. We also generate
-incorrect virtual function tables for trivial covariance. Although
-trivial covariance will work, it is incompatible with the ABI. GNATS PR
-3706 tracks this problem.</dd>
-
-</dl>
-
-<h3><a name="nonbugs">Non-bugs</a></h3>
-
-<p>Here are some features that have been reported as bugs, but are
-not.</p>
-
-<dl>
-
-<dt>Nested classes can access private types of the containing
-class.</dt>
-<dd><p>G++ now implements type access control on member types. Defect
-report 45 clarifies that nested classes are members of the class they
-are nested in, and so are granted access to private members of that
-class.</p></dd>
-
-<dt>Classes in exception specifiers must be complete types.</dt>
-<dd><p>[15.4]/1 tells you that you cannot have an incomplete type, or
-pointer to incomplete (other than <code><i>cv</i> void *</code>) in
-an exception specification.</p></dd>
-
-<dt>G++ emits two copies of constructors and destructors.</dt>
-
-<dd><p>In general there are <em>three</em> types of constructors (and
-destructors).</p>
-<ol>
-<li>The complete object constructor/destructor.</li>
-<li>The base object constructor/destructor.</li>
-<li>The allocating destructor/deallocating destructor.</li>
-</ol>
-<p>The first two are different, when virtual base classes are involved.
-In some cases we can do better, and this is logged in GNATS.</p></dd>
-
-<dt>Exceptions don't work in multithreaded applications.</dt>
-
-<dd><p>You need to rebuild g++ and libstdc++ with
-<code>--enable-threads</code>. Remember, c++ exceptions are not like
-hardware interrupts. You cannot throw an exception in one thread and
-catch it in another. You cannot throw an exception from a signal
-handler, and catch it in the main thread.</p></dd>
-
-<dt>Global destructors are not run in the correct order.</dt>
-
-<dd><p>Global destructors should be run in the reverse order of their
-constructors <em>completing</em>. In most cases this is the same as
-the reverse order of constructors <em>starting</em>, but sometimes it
-is different, and that is important. You need to compile and link your
-programs with <code>--use-cxa-atexit</code>. We have not turned this
-switch on by default, as it requires a <code>cxa</code> aware runtime
-library (<code>libc</code>, <code>glibc</code>, or
-equivalent).</p></dd>
-
-<dt>Problems with floating point computations.</dt>
-<dd><p>In a number of cases, GCC appears to perform floating point
-computations incorrectly. For example, the program</p>
-<blockquote><code>
-#include &lt;iostream&gt;<br />
-<br />
-int main() {<br />
-<br />
- double min = 0.0;<br />
- double max = 0.5;<br />
- double width = 0.01;<br />
- std::cout &lt;&lt; (int)(((max - min) / width) - 1) &lt;&lt;
- std::endl;<br />
-<br />
-}<br />
-</code></blockquote>
-<p>might print 50 on some systems and optimization levels, and 51 on
-others.</p>
-
-<p>The is the result of <em>rounding</em>: The computer cannot
-represent all real numbers exactly, so it has to use
-approximations. When computing with approximation, the computer needs
-to round to the nearest representable number.</p>
-
-<p>This is not a bug in the compiler, but an inherent limitation of
-the float and double types. Please study
-<a href="http://www.validlab.com/goldberg/paper.ps">this paper</a>
-for more information.</p></dd>
-
-<dt>Templates, scoping, and digraphs.</dt>
-
-<dd><p>If you have a class in global namespace, say named
-<code>X</code>, and want to give it as a template argument to some
-other class, say <code>std::vector</code>, then this here fails with a
-parser error: <code>std::vector&lt;::X&gt;</code>.
-</p>
-
-<p>
-The reason is that the standard mandates that the sequence
-<code>&lt;:</code> is treated as if it were the token
-<code>[</code>, and the parser then reports a parse error before the
-character <code>:</code> (by which it means the second
-colon). There are several such combinations of characters, and
-they are called <em>digraphs</em>.
-</p>
-
-<p>
-The simplest way to avoid this is to write <code>std::vector&lt;
-::X&gt;</code>, i.e. place a space between the opening angle bracket
-and the scope operator.
-</p></dd>
-
-
-</dl>
-
-<h3><a name="missing">Missing features</a></h3>
-<p>We know some things are missing from G++.</p>
-
-<dl>
-
-<dt>The <code>export</code> keyword is not implemented.</dt>
-<dd><p>Most C++ compilers (G++ included) do not yet implement
-<code>export</code>, which is necessary for separate compilation of
-template declarations and definitions. Without <code>export</code>, a
-template definition must be in scope to be used. The obvious
-workaround is simply to place all definitions in the header
-itself. Alternatively, the compilation unit containing template
-definitions may be included from the header.</p></dd>
-
-<dt>Two stage lookup in templates is not implemented.</dt>
-<dd><p>[14.6] specifies how names are looked up inside a template. G++
-does not do this correctly, but for most templates this will not be
-noticeable.</p></dd>
-
-</dl>
-
-<h3><a name="parsing">Parse errors for "simple" code</a></h3>
-
-Up to and including GCC 3.0, the compiler will give "parse error" for
-seemingly simple code, such as
-
-<pre>
-struct A{
- A();
- A(int);
- void func();
-};
-
-struct B{
- B(A);
- B(A,A);
- void func();
-};
-
-void foo(){
- B b(A(),A(1)); //Variable b, initialized with two temporaries
- B(A(2)).func(); //B temporary, initialized with A temporary
-}
-</pre>
-The problem is that GCC starts to parse the declaration of
-<code>b</code> as a function <code>b</code> returning <code>B</code>,
-taking a function returning <code>A</code> as an argument. When it
-sees the 1, it is too late. The work-around in these cases is to add
-additional parentheses around the expressions that are mistaken as
-declarations:
-<pre>
- (B(A(2))).func();
-</pre>
-Sometimes, even that is not enough; to show the compiler that this
-should be really an expression, a comma operator with a dummy argument
-can be used:
-<pre>
- B b((0,A()),A(1));
-</pre>
-<p>
-Another example is the parse error for the <code>return</code>
-statement in</p>
-<pre>
-struct A{};
-
-struct B{
- A a;
- A f1(bool);
-};
-
-A B::f1(bool b)
-{
- if (b)
- return (A());
- return a;
-}
-</pre>
-<p>The problem is that the compiler interprets <code>A()</code> as a
-function (taking no arguments, returning <code>A</code>), and
-<code>(A()</code>) as a cast - with a missing expression, hence the
-parse error. The work-around is to omit the parentheses:</p>
-<pre>
- if (b)
- return A();
-</pre>
-<p>This problem occurs in a number of variants; in <code>throw</code>
-statements, people also frequently put the object in parentheses. The
-exact error also somewhat varies with the compiler version. The
-work-arounds proposed do not change the semantics of the program at
-all; they make them perhaps less readable.</p>
-
-<h3><a name="-O3">Optimization at <code>-O3</code> takes a
-very long time</a></h3>
-<p>At <code>-O3</code>, all functions are candidates for inlining. The
-heuristic used has some deficiencies which show up when allowed such
-freedom. This is g++ specific, as it has an earlier inliner than
-gcc.</p>
-
-</body>
-</html>
diff --git a/contrib/gcc/config-ml.in b/contrib/gcc/config-ml.in
deleted file mode 100644
index 16885f95f0e1..000000000000
--- a/contrib/gcc/config-ml.in
+++ /dev/null
@@ -1,871 +0,0 @@
-# Configure fragment invoked in the post-target section for subdirs
-# wanting multilib support.
-#
-# It is advisable to support a few --enable/--disable options to let the
-# user select which libraries s/he really wants.
-#
-# Subdirectories wishing to use multilib should put the following lines
-# in the "post-target" section of configure.in.
-#
-# if [ "${srcdir}" = "." ] ; then
-# if [ "${with_target_subdir}" != "." ] ; then
-# . ${with_multisrctop}../../config-ml.in
-# else
-# . ${with_multisrctop}../config-ml.in
-# fi
-# else
-# . ${srcdir}/../config-ml.in
-# fi
-#
-#
-# Things are complicated because 6 separate cases must be handled:
-# 2 (native, cross) x 3 (absolute-path, relative-not-dot, dot) = 6.
-#
-# srcdir=. is special. It must handle make programs that don't handle VPATH.
-# To implement this, a symlink tree is built for each library and for each
-# multilib subdir.
-#
-# The build tree is layed out as
-#
-# ./
-# newlib
-# m68020/
-# newlib
-# m68881/
-# newlib
-#
-# The nice feature about this arrangement is that inter-library references
-# in the build tree work without having to care where you are. Note that
-# inter-library references also work in the source tree because symlink trees
-# are built when srcdir=.
-#
-# Unfortunately, trying to access the libraries in the build tree requires
-# the user to manually choose which library to use as GCC won't be able to
-# find the right one. This is viewed as the lesser of two evils.
-#
-# Configure variables:
-# ${with_target_subdir} = "." for native, or ${target_alias} for cross.
-# Set by top level Makefile.
-# ${with_multisrctop} = how many levels of multilibs there are in the source
-# tree. It exists to handle the case of configuring in the source tree:
-# ${srcdir} is not constant.
-# ${with_multisubdir} = name of multilib subdirectory (eg: m68020/m68881).
-#
-# Makefile variables:
-# MULTISRCTOP = number of multilib levels in source tree (+1 if cross)
-# (FIXME: note that this is different than ${with_multisrctop}. Check out.).
-# MULTIBUILDTOP = number of multilib levels in build tree
-# MULTIDIRS = list of multilib subdirs (eg: m68000 m68020 ...)
-# (only defined in each library's main Makefile).
-# MULTISUBDIR = installed subdirectory name with leading '/' (eg: /m68000)
-# (only defined in each multilib subdir).
-
-# FIXME: Multilib is currently disabled by default for everything other than
-# newlib. It is up to each target to turn on multilib support for the other
-# libraries as desired.
-
-# We have to handle being invoked by both Cygnus configure and Autoconf.
-#
-# Cygnus configure incoming variables:
-# srcdir, subdir, host, arguments
-#
-# Autoconf incoming variables:
-# srcdir, host, ac_configure_args
-#
-# We *could* figure srcdir and host out, but we'd have to do work that
-# our caller has already done to figure them out and requiring these two
-# seems reasonable.
-# Note that `host' in this case is GCC's `target'. Target libraries are
-# configured for a particular host.
-
-if [ -n "${ac_configure_args}" ]; then
- Makefile=${ac_file-Makefile}
- ml_config_shell=${CONFIG_SHELL-/bin/sh}
- ml_arguments="${ac_configure_args}"
- ml_realsrcdir=${srcdir}
-else
- Makefile=${Makefile-Makefile}
- ml_config_shell=${config_shell-/bin/sh}
- ml_arguments="${arguments}"
- if [ -n "${subdir}" -a "${subdir}" != "." ] ; then
- ml_realsrcdir=${srcdir}/${subdir}
- else
- ml_realsrcdir=${srcdir}
- fi
-fi
-
-# Scan all the arguments and set all the ones we need.
-
-ml_verbose=--verbose
-for option in ${ml_arguments}
-do
- case $option in
- --*) ;;
- -*) option=-$option ;;
- esac
-
- case $option in
- --*=*)
- optarg=`echo $option | sed -e 's/^[^=]*=//'`
- ;;
- esac
-
- case $option in
- --disable-*)
- enableopt=`echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'`
- eval $enableopt=no
- ;;
- --enable-*)
- case "$option" in
- *=*) ;;
- *) optarg=yes ;;
- esac
- enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
- eval $enableopt="$optarg"
- ;;
- --norecursion | --no*)
- ml_norecursion=yes
- ;;
- --silent | --sil* | --quiet | --q*)
- ml_verbose=--silent
- ;;
- --verbose | --v | --verb*)
- ml_verbose=--verbose
- ;;
- --with-*)
- case "$option" in
- *=*) ;;
- *) optarg=yes ;;
- esac
- withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
- eval $withopt="$optarg"
- ;;
- --without-*)
- withopt=`echo ${option} | sed 's:^--::;s:out::;s:-:_:g'`
- eval $withopt=no
- ;;
- esac
-done
-
-# Only do this if --enable-multilib.
-if [ "${enable_multilib}" = yes ]; then
-
-# Compute whether this is the library's top level directory
-# (ie: not a multilib subdirectory, and not a subdirectory like newlib/src).
-# ${with_multisubdir} tells us we're in the right branch, but we could be
-# in a subdir of that.
-# ??? The previous version could void this test by separating the process into
-# two files: one that only the library's toplevel configure.in ran (to
-# configure the multilib subdirs), and another that all configure.in's ran to
-# update the Makefile. It seemed reasonable to collapse all multilib support
-# into one file, but it does leave us with having to perform this test.
-ml_toplevel_p=no
-if [ -z "${with_multisubdir}" ]; then
- if [ "${srcdir}" = "." ]; then
- # Use ${ml_realsrcdir} instead of ${srcdir} here to account for ${subdir}.
- # ${with_target_subdir} = "." for native, otherwise target alias.
- if [ "${with_target_subdir}" = "." ]; then
- if [ -f ${ml_realsrcdir}/../config-ml.in ]; then
- ml_toplevel_p=yes
- fi
- else
- if [ -f ${ml_realsrcdir}/../../config-ml.in ]; then
- ml_toplevel_p=yes
- fi
- fi
- else
- # Use ${ml_realsrcdir} instead of ${srcdir} here to account for ${subdir}.
- if [ -f ${ml_realsrcdir}/../config-ml.in ]; then
- ml_toplevel_p=yes
- fi
- fi
-fi
-
-# If this is the library's top level directory, set multidirs to the
-# multilib subdirs to support. This lives at the top because we need
-# `multidirs' set right away.
-
-if [ "${ml_toplevel_p}" = yes ]; then
-
-multidirs=
-for i in `${CC-gcc} --print-multi-lib 2>/dev/null`; do
- dir=`echo $i | sed -e 's/;.*$//'`
- if [ "${dir}" = "." ]; then
- true
- else
- if [ -z "${multidirs}" ]; then
- multidirs="${dir}"
- else
- multidirs="${multidirs} ${dir}"
- fi
- fi
-done
-
-# Target libraries are configured for the host they run on, so we check
-# $host here, not $target.
-
-case "${host}" in
-arc-*-elf*)
- if [ x$enable_biendian != xyes ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *be*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- ;;
-arm-*-*)
- if [ x"$enable_fpu" = xno ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *fpu*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x"$enable_26bit" = xno ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *26bit*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x"$enable_underscore" = xno ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *under*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x"$enable_interwork" = xno ]
- then
- old_multidirs=${multidirs}
- multidirs=""
- for x in ${old_multidirs}; do
- case "${x}" in
- *interwork*) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_biendian = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *le* ) : ;;
- *be* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x"$enable_nofmult" = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *nofmult* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- ;;
-m68*-*-*)
- if [ x$enable_softfloat = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *soft-float* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_m68881 = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *m68881* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_m68000 = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *m68000* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_m68020 = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *m68020* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- ;;
-mips*-*-*)
- if [ x$enable_single_float = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *single* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_biendian = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *el* ) : ;;
- *eb* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_softfloat = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *soft-float* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- case " $multidirs " in
- *" mabi=64 "*)
- # We will not be able to create libraries with -mabi=64 if
- # we cannot even link a trivial program. It usually
- # indicates the 64bit libraries are missing.
- if echo 'main() {}' > conftest.c &&
- ${CC-gcc} -mabi=64 conftest.c -o conftest; then
- :
- else
- echo Could not link program with -mabi=64, disabling it.
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mabi=64* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- rm -f conftest.c conftest
- ;;
- esac
- ;;
-powerpc*-*-* | rs6000*-*-*)
- if [ x$enable_aix64 = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *ppc64* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_pthread = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *pthread* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_softfloat = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *soft-float* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_powercpu = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- power | */power | */power/* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_powerpccpu = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *powerpc* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_powerpcos = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mcall-linux* | *mcall-solaris* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_biendian = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mlittle* | *mbig* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_sysv = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mcall-sysv* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- if [ x$enable_aix = xno ]
- then
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *mcall-aix* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- ;;
-sparc*-*-*)
- case " $multidirs " in
- *" m64 "*)
- # We will not be able to create libraries with -m64 if
- # we cannot even link a trivial program. It usually
- # indicates the 64bit libraries are missing.
- if echo 'main() {}' > conftest.c &&
- ${CC-gcc} -m64 conftest.c -o conftest; then
- :
- else
- echo Could not link program with -m64, disabling it.
- old_multidirs="${multidirs}"
- multidirs=""
- for x in ${old_multidirs}; do
- case "$x" in
- *m64* ) : ;;
- *) multidirs="${multidirs} ${x}" ;;
- esac
- done
- fi
- rm -f conftest.c conftest
- ;;
- esac
- ;;
-esac
-
-# Remove extraneous blanks from multidirs.
-# Tests like `if [ -n "$multidirs" ]' require it.
-multidirs=`echo "$multidirs" | sed -e 's/^[ ][ ]*//' -e 's/[ ][ ]*$//' -e 's/[ ][ ]*/ /g'`
-
-# Add code to library's top level makefile to handle building the multilib
-# subdirs.
-
-cat > Multi.tem <<\EOF
-
-# FIXME: There should be an @-sign in front of the `if'.
-# Leave out until this is tested a bit more.
-multi-do:
- if [ -z "$(MULTIDIRS)" ]; then \
- true; \
- else \
- rootpre=`pwd`/; export rootpre; \
- srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
- lib=`echo $${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$$,\1,'`; \
- compiler="$(CC)"; \
- for i in `$${compiler} --print-multi-lib 2>/dev/null`; do \
- dir=`echo $$i | sed -e 's/;.*$$//'`; \
- if [ "$${dir}" = "." ]; then \
- true; \
- else \
- if [ -d ../$${dir}/$${lib} ]; then \
- flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
- if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) \
- CFLAGS="$(CFLAGS) $${flags}" \
- prefix="$(prefix)" \
- exec_prefix="$(exec_prefix)" \
- GCJFLAGS="$(GCJFLAGS) $${flags}" \
- CXXFLAGS="$(CXXFLAGS) $${flags}" \
- LIBCFLAGS="$(LIBCFLAGS) $${flags}" \
- LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \
- LDFLAGS="$(LDFLAGS) $${flags}" \
- $(DO)); then \
- true; \
- else \
- exit 1; \
- fi; \
- else true; \
- fi; \
- fi; \
- done; \
- fi
-
-# FIXME: There should be an @-sign in front of the `if'.
-# Leave out until this is tested a bit more.
-multi-clean:
- if [ -z "$(MULTIDIRS)" ]; then \
- true; \
- else \
- lib=`pwd | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
- for dir in Makefile $(MULTIDIRS); do \
- if [ -f ../$${dir}/$${lib}/Makefile ]; then \
- if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) $(DO)); \
- then true; \
- else exit 1; \
- fi; \
- else true; \
- fi; \
- done; \
- fi
-EOF
-
-cat ${Makefile} Multi.tem > Makefile.tem
-rm -f ${Makefile} Multi.tem
-mv Makefile.tem ${Makefile}
-
-fi # ${ml_toplevel_p} = yes
-
-if [ "${ml_verbose}" = --verbose ]; then
- echo "Adding multilib support to Makefile in ${ml_realsrcdir}"
- if [ "${ml_toplevel_p}" = yes ]; then
- echo "multidirs=${multidirs}"
- fi
- echo "with_multisubdir=${with_multisubdir}"
-fi
-
-if [ "${srcdir}" = "." ]; then
- if [ "${with_target_subdir}" != "." ]; then
- ml_srcdotdot="../"
- else
- ml_srcdotdot=""
- fi
-else
- ml_srcdotdot=""
-fi
-
-if [ -z "${with_multisubdir}" ]; then
- ml_subdir=
- ml_builddotdot=
- : # ml_srcdotdot= # already set
-else
- ml_subdir="/${with_multisubdir}"
- # The '[^/][^/]*' appears that way to work around a SunOS sed bug.
- ml_builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`/
- if [ "$srcdir" = "." ]; then
- ml_srcdotdot=${ml_srcdotdot}${ml_builddotdot}
- else
- : # ml_srcdotdot= # already set
- fi
-fi
-
-if [ "${ml_toplevel_p}" = yes ]; then
- ml_do='$(MAKE)'
- ml_clean='$(MAKE)'
-else
- ml_do=true
- ml_clean=true
-fi
-
-# TOP is used by newlib and should not be used elsewhere for this purpose.
-# MULTI{SRC,BUILD}TOP are the proper ones to use. MULTISRCTOP is empty
-# when srcdir != builddir. MULTIBUILDTOP is always some number of ../'s.
-# FIXME: newlib needs to be updated to use MULTI{SRC,BUILD}TOP so we can
-# delete TOP. Newlib may wish to continue to use TOP for its own purposes
-# of course.
-# MULTIDIRS is non-empty for the cpu top level Makefile (eg: newlib/Makefile)
-# and lists the subdirectories to recurse into.
-# MULTISUBDIR is non-empty in each cpu subdirectory's Makefile
-# (eg: newlib/h8300h/Makefile) and is the installed subdirectory name with
-# a leading '/'.
-# MULTIDO is used for targets like all, install, and check where
-# $(FLAGS_TO_PASS) augmented with the subdir's compiler option is needed.
-# MULTICLEAN is used for the *clean targets.
-#
-# ??? It is possible to merge MULTIDO and MULTICLEAN into one. They are
-# currently kept separate because we don't want the *clean targets to require
-# the existence of the compiler (which MULTIDO currently requires) and
-# therefore we'd have to record the directory options as well as names
-# (currently we just record the names and use --print-multi-lib to get the
-# options).
-
-sed -e "s:^TOP[ ]*=[ ]*\([./]*\)[ ]*$:TOP = ${ml_builddotdot}\1:" \
- -e "s:^MULTISRCTOP[ ]*=.*$:MULTISRCTOP = ${ml_srcdotdot}:" \
- -e "s:^MULTIBUILDTOP[ ]*=.*$:MULTIBUILDTOP = ${ml_builddotdot}:" \
- -e "s:^MULTIDIRS[ ]*=.*$:MULTIDIRS = ${multidirs}:" \
- -e "s:^MULTISUBDIR[ ]*=.*$:MULTISUBDIR = ${ml_subdir}:" \
- -e "s:^MULTIDO[ ]*=.*$:MULTIDO = $ml_do:" \
- -e "s:^MULTICLEAN[ ]*=.*$:MULTICLEAN = $ml_clean:" \
- ${Makefile} > Makefile.tem
-rm -f ${Makefile}
-mv Makefile.tem ${Makefile}
-
-# If this is the library's top level, configure each multilib subdir.
-# This is done at the end because this is the loop that runs configure
-# in each multilib subdir and it seemed reasonable to finish updating the
-# Makefile before going on to configure the subdirs.
-
-if [ "${ml_toplevel_p}" = yes ]; then
-
-# We must freshly configure each subdirectory. This bit of code is
-# actually partially stolen from the main configure script. FIXME.
-
-if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
-
- if [ "${ml_verbose}" = --verbose ]; then
- echo "Running configure in multilib subdirs ${multidirs}"
- echo "pwd: `pwd`"
- fi
-
- ml_origdir=`pwd`
- ml_libdir=`echo $ml_origdir | sed -e 's,^.*/,,'`
- # cd to top-level-build-dir/${with_target_subdir}
- cd ..
-
- for ml_dir in ${multidirs}; do
-
- if [ "${ml_verbose}" = --verbose ]; then
- echo "Running configure in multilib subdir ${ml_dir}"
- echo "pwd: `pwd`"
- fi
-
- if [ -d ${ml_dir} ]; then true; else
- # ``mkdir -p ${ml_dir}'' See also mkinstalldirs.
- pathcomp=""
- for d in `echo ":${ml_dir}" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`; do
- pathcomp="$pathcomp$d"
- case "$pathcomp" in
- -* ) pathcomp=./$pathcomp ;;
- esac
- if test ! -d "$pathcomp"; then
- echo "mkdir $pathcomp" 1>&2
- mkdir "$pathcomp" > /dev/null 2>&1 || lasterr=$?
- fi
- if test ! -d "$pathcomp"; then
- exit $lasterr
- fi
- pathcomp="$pathcomp/"
- done
- fi
- if [ -d ${ml_dir}/${ml_libdir} ]; then true; else mkdir ${ml_dir}/${ml_libdir}; fi
-
- # Eg: if ${ml_dir} = m68000/m68881, dotdot = ../../
- dotdot=../`echo ${ml_dir} | sed -e 's|[^/]||g' -e 's|/|../|g'`
-
- case ${srcdir} in
- ".")
- echo Building symlink tree in `pwd`/${ml_dir}/${ml_libdir}
- if [ "${with_target_subdir}" != "." ]; then
- ml_unsubdir="../"
- else
- ml_unsubdir=""
- fi
- (cd ${ml_dir}/${ml_libdir};
- ../${dotdot}${ml_unsubdir}symlink-tree ../${dotdot}${ml_unsubdir}${ml_libdir} "")
- if [ -f ${ml_dir}/${ml_libdir}/Makefile ]; then
- if [ x"${MAKE}" = x ]; then
- (cd ${ml_dir}/${ml_libdir}; make distclean)
- else
- (cd ${ml_dir}/${ml_libdir}; ${MAKE} distclean)
- fi
- fi
- ml_newsrcdir="."
- ml_srcdiroption=
- multisrctop=${dotdot}
- ;;
- *)
- case "${srcdir}" in
- /* | [A-Za-z]:[\\/]* ) # absolute path
- ml_newsrcdir=${srcdir}
- ;;
- *) # otherwise relative
- ml_newsrcdir=${dotdot}${srcdir}
- ;;
- esac
- ml_srcdiroption="-srcdir=${ml_newsrcdir}"
- multisrctop=
- ;;
- esac
-
- case "${progname}" in
- /* | [A-Za-z]:[\\/]* ) ml_recprog=${progname} ;;
- *) ml_recprog=${dotdot}${progname} ;;
- esac
-
- # FIXME: POPDIR=${PWD=`pwd`} doesn't work here.
- ML_POPDIR=`pwd`
- cd ${ml_dir}/${ml_libdir}
-
- if [ -f ${ml_newsrcdir}/configure ]; then
- ml_recprog="${ml_newsrcdir}/configure --cache-file=../config.cache"
- fi
-
- # find compiler flag corresponding to ${ml_dir}
- for i in `${CC-gcc} --print-multi-lib 2>/dev/null`; do
- dir=`echo $i | sed -e 's/;.*$//'`
- if [ "${dir}" = "${ml_dir}" ]; then
- flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`
- break
- fi
- done
- ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags" GCJ="${GCJ_}$flags"'
-
- if [ "${with_target_subdir}" = "." ]; then
- CC_=$CC' '
- CXX_=$CXX' '
- GCJ_=$GCJ' '
- else
- # Create a regular expression that matches any string as long
- # as ML_POPDIR.
- popdir_rx=`echo ${ML_POPDIR} | sed 's,.,.,g'`
- CC_=
- for arg in ${CC}; do
- case $arg in
- -[BIL]"${ML_POPDIR}"/*)
- CC_="${CC_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\1/p"`' ' ;;
- "${ML_POPDIR}"/*)
- CC_="${CC_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- *)
- CC_="${CC_}${arg} " ;;
- esac
- done
-
- CXX_=
- for arg in ${CXX}; do
- case $arg in
- -[BIL]"${ML_POPDIR}"/*)
- CXX_="${CXX_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- "${ML_POPDIR}"/*)
- CXX_="${CXX_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- *)
- CXX_="${CXX_}${arg} " ;;
- esac
- done
-
- GCJ_=
- for arg in ${GCJ}; do
- case $arg in
- -[BIL]"${ML_POPDIR}"/*)
- GCJ_="${GCJ_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- "${ML_POPDIR}"/*)
- GCJ_="${GCJ_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
- *)
- GCJ_="${GCJ_}${arg} " ;;
- esac
- done
-
- if test "x${LD_LIBRARY_PATH+set}" = xset; then
- LD_LIBRARY_PATH_=
- for arg in `echo "$LD_LIBRARY_PATH" | tr ':' ' '`; do
- case "$arg" in
- "${ML_POPDIR}"/*)
- arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`
- ;;
- esac
- if test "x$LD_LIBRARY_PATH_" != x; then
- LD_LIBRARY_PATH_=$LD_LIBRARY_PATH_:$arg
- else
- LD_LIBRARY_PATH_=$arg
- fi
- done
- ml_config_env="$ml_config_env LD_LIBRARY_PATH=$LD_LIBRARY_PATH_"
- fi
-
- if test "x${SHLIB_PATH+set}" = xset; then
- SHLIB_PATH_=
- for arg in `echo "$SHLIB_PATH" | tr ':' ' '`; do
- case "$arg" in
- "${ML_POPDIR}"/*)
- arg=`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`
- ;;
- esac
- if test "x$SHLIB_PATH_" != x; then
- SHLIB_PATH_=$SHLIB_PATH_:$arg
- else
- SHLIB_PATH_=$arg
- fi
- done
- ml_config_env="$ml_config_env SHLIB_PATH=$SHLIB_PATH_"
- fi
- fi
-
- if eval ${ml_config_env} ${ml_config_shell} ${ml_recprog} \
- --with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \
- ${ml_arguments} ${ml_srcdiroption} ; then
- true
- else
- exit 1
- fi
-
- cd ${ML_POPDIR}
-
- done
-
- cd ${ml_origdir}
-fi
-
-fi # ${ml_toplevel_p} = yes
-fi # ${enable_multilib} = yes
diff --git a/contrib/gcc/config.if b/contrib/gcc/config.if
deleted file mode 100644
index aa35a3f8140c..000000000000
--- a/contrib/gcc/config.if
+++ /dev/null
@@ -1,79 +0,0 @@
-#! /dev/null
-# Don't call it directly. This shell script fragment is called to
-# determine:
-#
-# 1. libstcxx_incdir: the interface name for libstdc++.
-# 2. libc_interface: the interface name for libc.
-#
-
-# Get the top level src dir.
-if [ -z "${topsrcdir}" -a -z "${top_srcdir}" ]
-then
- echo "Undefined top level src dir: topsrcdir and top_srcdir are empty" >&2
- exit 1
-fi
-
-if [ -n "${topsrcdir}" ]
-then
- if_topsrcdir=${topsrcdir}
-else
- if_topsrcdir=${top_srcdir}
-fi
-
-# Set libstdcxx_incdir.
-# This is the same as gcc/configure.in and libstdc++-v3/acinclude.m4.
-gcc_version_trigger=${if_topsrcdir}/gcc/version.c
-gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
-gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
-libstdcxx_incdir=c++/${gcc_version}
-
-# The trickiest part is libc_interface.
-if [ -z "${libc_interface}" ]
-then
- case ${target_os} in
- *linux*libc1*|*linux*libc5*)
- case ${target_alias} in
- *alpha*|*powerpc*)
- libc_interface=-libc5.9-
- ;;
- *)
- libc_interface=-libc5-
- ;;
- esac
- ;;
- *linux*gnu*)
- # We have to work harder to figure it out.
- if [ ${target_alias} = ${build_alias} ]
- then
- dummy=if$$
- cat >$dummy.c <<EOF
-#include <features.h>
-main(argc, argv)
- int argc;
- char *argv[];
-{
- printf("%d\n", __GLIBC_MINOR__);
- return 0;
-}
-EOF
- ${CC-cc} $dummy.c -o $dummy 2>/dev/null
- if [ "$?" = 0 ]
- then
- libc_interface=-libc6.`./$dummy`-
- rm -f $dummy.c $dummy
- else
- # It should never happen.
- echo "Cannot find the GNU C library minor version number." >&2
- rm -f $dummy.c $dummy
- exit 1
- fi
- else
- # Cross compiling. Assume glibc 2.1.
- libc_interface=-libc6.1-
- fi
- ;;
- *)
- libc_interface=-
- ;;
- esac
-fi
diff --git a/contrib/gcc/config.sub b/contrib/gcc/config.sub
deleted file mode 100755
index c8403980b43e..000000000000
--- a/contrib/gcc/config.sub
+++ /dev/null
@@ -1,1450 +0,0 @@
-#! /bin/sh
-# Configuration validation subroutine script.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002 Free Software Foundation, Inc.
-
-timestamp='2002-02-01'
-
-# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software
-# can handle that machine. It does not imply ALL GNU software can.
-#
-# This file 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 of the License, or
-# (at your option) any later version.
-#
-# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# Please send patches to <config-patches@gnu.org>. Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# Configuration subroutine to validate and canonicalize a configuration type.
-# Supply the specified configuration type as an argument.
-# If it is invalid, we print an error message on stderr and exit with code 1.
-# Otherwise, we print the canonical config type on stdout and succeed.
-
-# This file is supposed to be the same for all GNU packages
-# and recognize all the CPU types, system types and aliases
-# that are meaningful with *any* GNU software.
-# Each package is responsible for reporting which valid configurations
-# it does not support. The user should be able to distinguish
-# a failure to support a valid configuration from a meaningless
-# configuration.
-
-# The goal of this file is to map all the various variations of a given
-# machine specification into a single specification in the form:
-# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
-# or in some cases, the newer four-part form:
-# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
-# It is wrong to echo any other type of specification.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION] CPU-MFR-OPSYS
- $0 [OPTION] ALIAS
-
-Canonicalize a configuration name.
-
-Operation modes:
- -h, --help print this help, then exit
- -t, --time-stamp print date of last modification, then exit
- -v, --version print version number, then exit
-
-Report bugs and patches to <config-patches@gnu.org>."
-
-version="\
-GNU config.sub ($timestamp)
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
- case $1 in
- --time-stamp | --time* | -t )
- echo "$timestamp" ; exit 0 ;;
- --version | -v )
- echo "$version" ; exit 0 ;;
- --help | --h* | -h )
- echo "$usage"; exit 0 ;;
- -- ) # Stop option processing
- shift; break ;;
- - ) # Use stdin as input.
- break ;;
- -* )
- echo "$me: invalid option $1$help"
- exit 1 ;;
-
- *local*)
- # First pass through any local machine types.
- echo $1
- exit 0;;
-
- * )
- break ;;
- esac
-done
-
-case $# in
- 0) echo "$me: missing argument$help" >&2
- exit 1;;
- 1) ;;
- *) echo "$me: too many arguments$help" >&2
- exit 1;;
-esac
-
-# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
-# Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
-case $maybe_os in
- nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
- os=-$maybe_os
- basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
- ;;
- *)
- basic_machine=`echo $1 | sed 's/-[^-]*$//'`
- if [ $basic_machine != $1 ]
- then os=`echo $1 | sed 's/.*-/-/'`
- else os=; fi
- ;;
-esac
-
-### Let's recognize common machines as not being operating systems so
-### that things like config.sub decstation-3100 work. We also
-### recognize some manufacturers as not being operating systems, so we
-### can provide default operating systems below.
-case $os in
- -sun*os*)
- # Prevent following clause from handling this invalid input.
- ;;
- -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
- -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
- -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
- -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
- -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
- -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
- -apple | -axis)
- os=
- basic_machine=$1
- ;;
- -sim | -cisco | -oki | -wec | -winbond)
- os=
- basic_machine=$1
- ;;
- -scout)
- ;;
- -wrs)
- os=-vxworks
- basic_machine=$1
- ;;
- -chorusos*)
- os=-chorusos
- basic_machine=$1
- ;;
- -chorusrdb)
- os=-chorusrdb
- basic_machine=$1
- ;;
- -hiux*)
- os=-hiuxwe2
- ;;
- -sco5)
- os=-sco3.2v5
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco4)
- os=-sco3.2v4
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2.[4-9]*)
- os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco3.2v[4-9]*)
- # Don't forget version if it is 3.2v4 or newer.
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -sco*)
- os=-sco3.2v2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -udk*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -isc)
- os=-isc2.2
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -clix*)
- basic_machine=clipper-intergraph
- ;;
- -isc*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
- ;;
- -lynx*)
- os=-lynxos
- ;;
- -ptx*)
- basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
- ;;
- -windowsnt*)
- os=`echo $os | sed -e 's/windowsnt/winnt/'`
- ;;
- -psos*)
- os=-psos
- ;;
- -mint | -mint[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
-esac
-
-# Decode aliases for certain CPU-COMPANY combinations.
-case $basic_machine in
- # Recognize the basic CPU types without company name.
- # Some are omitted here because they have special meanings below.
- 1750a | 580 \
- | a29k \
- | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
- | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
- | c4x | clipper \
- | d10v | d30v | dsp16xx \
- | fr30 \
- | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
- | i370 | i860 | i960 | ia64 \
- | m32r | m68000 | m68k | m88k | mcore \
- | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
- | mips64vr4100 | mips64vr4100el | mips64vr4300 \
- | mips64vr4300el | mips64vr5000 | mips64vr5000el \
- | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
- | mipsisa32 \
- | mn10200 | mn10300 \
- | ns16k | ns32k \
- | openrisc | or32 \
- | pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
- | pyramid \
- | sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
- | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
- | strongarm \
- | tahoe | thumb | tic80 | tron \
- | v850 | v850e \
- | we32k \
- | x86 | xscale | xstormy16 | xtensa \
- | z8k)
- basic_machine=$basic_machine-unknown
- ;;
- m6811 | m68hc11 | m6812 | m68hc12)
- # Motorola 68HC11/12.
- basic_machine=$basic_machine-unknown
- os=-none
- ;;
- m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
- ;;
-
- # We use `pc' rather than `unknown'
- # because (1) that's what they normally are, and
- # (2) the word "unknown" tends to confuse beginning users.
- i*86 | x86_64)
- basic_machine=$basic_machine-pc
- ;;
- # Object if more than one company name word.
- *-*-*)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
- # Recognize the basic CPU types with company name.
- 580-* \
- | a29k-* \
- | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
- | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
- | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
- | arm-* | armbe-* | armle-* | armv*-* \
- | avr-* \
- | bs2000-* \
- | c[123]* | c30-* | [cjt]90-* | c54x-* \
- | clipper-* | cray2-* | cydra-* \
- | d10v-* | d30v-* \
- | elxsi-* \
- | f30[01]-* | f700-* | fr30-* | fx80-* \
- | h8300-* | h8500-* \
- | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
- | i*86-* | i860-* | i960-* | ia64-* \
- | m32r-* \
- | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
- | m88110-* | m88k-* | mcore-* \
- | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
- | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
- | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
- | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
- | none-* | np1-* | ns16k-* | ns32k-* \
- | orion-* \
- | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
- | pyramid-* \
- | romp-* | rs6000-* \
- | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
- | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
- | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
- | v850-* | v850e-* | vax-* \
- | we32k-* \
- | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* | xstormy16-* \
- | xtensa-* \
- | ymp-* \
- | z8k-*)
- ;;
- # Recognize the various machine names and aliases which stand
- # for a CPU type and a company and sometimes even an OS.
- 386bsd)
- basic_machine=i386-unknown
- os=-bsd
- ;;
- 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
- basic_machine=m68000-att
- ;;
- 3b*)
- basic_machine=we32k-att
- ;;
- a29khif)
- basic_machine=a29k-amd
- os=-udi
- ;;
- adobe68k)
- basic_machine=m68010-adobe
- os=-scout
- ;;
- alliant | fx80)
- basic_machine=fx80-alliant
- ;;
- altos | altos3068)
- basic_machine=m68k-altos
- ;;
- am29k)
- basic_machine=a29k-none
- os=-bsd
- ;;
- amdahl)
- basic_machine=580-amdahl
- os=-sysv
- ;;
- amiga | amiga-*)
- basic_machine=m68k-unknown
- ;;
- amigaos | amigados)
- basic_machine=m68k-unknown
- os=-amigaos
- ;;
- amigaunix | amix)
- basic_machine=m68k-unknown
- os=-sysv4
- ;;
- apollo68)
- basic_machine=m68k-apollo
- os=-sysv
- ;;
- apollo68bsd)
- basic_machine=m68k-apollo
- os=-bsd
- ;;
- aux)
- basic_machine=m68k-apple
- os=-aux
- ;;
- balance)
- basic_machine=ns32k-sequent
- os=-dynix
- ;;
- convex-c1)
- basic_machine=c1-convex
- os=-bsd
- ;;
- convex-c2)
- basic_machine=c2-convex
- os=-bsd
- ;;
- convex-c32)
- basic_machine=c32-convex
- os=-bsd
- ;;
- convex-c34)
- basic_machine=c34-convex
- os=-bsd
- ;;
- convex-c38)
- basic_machine=c38-convex
- os=-bsd
- ;;
- cray | ymp)
- basic_machine=ymp-cray
- os=-unicos
- ;;
- cray2)
- basic_machine=cray2-cray
- os=-unicos
- ;;
- [cjt]90)
- basic_machine=${basic_machine}-cray
- os=-unicos
- ;;
- crds | unos)
- basic_machine=m68k-crds
- ;;
- cris | cris-* | etrax*)
- basic_machine=cris-axis
- ;;
- da30 | da30-*)
- basic_machine=m68k-da30
- ;;
- decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
- basic_machine=mips-dec
- ;;
- decsystem10* | dec10*)
- basic_machine=pdp10-dec
- os=-tops10
- ;;
- decsystem20* | dec20*)
- basic_machine=pdp10-dec
- os=-tops20
- ;;
- delta | 3300 | motorola-3300 | motorola-delta \
- | 3300-motorola | delta-motorola)
- basic_machine=m68k-motorola
- ;;
- delta88)
- basic_machine=m88k-motorola
- os=-sysv3
- ;;
- dpx20 | dpx20-*)
- basic_machine=rs6000-bull
- os=-bosx
- ;;
- dpx2* | dpx2*-bull)
- basic_machine=m68k-bull
- os=-sysv3
- ;;
- ebmon29k)
- basic_machine=a29k-amd
- os=-ebmon
- ;;
- elxsi)
- basic_machine=elxsi-elxsi
- os=-bsd
- ;;
- encore | umax | mmax)
- basic_machine=ns32k-encore
- ;;
- es1800 | OSE68k | ose68k | ose | OSE)
- basic_machine=m68k-ericsson
- os=-ose
- ;;
- fx2800)
- basic_machine=i860-alliant
- ;;
- genix)
- basic_machine=ns32k-ns
- ;;
- gmicro)
- basic_machine=tron-gmicro
- os=-sysv
- ;;
- go32)
- basic_machine=i386-pc
- os=-go32
- ;;
- h3050r* | hiux*)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- h8300hms)
- basic_machine=h8300-hitachi
- os=-hms
- ;;
- h8300xray)
- basic_machine=h8300-hitachi
- os=-xray
- ;;
- h8500hms)
- basic_machine=h8500-hitachi
- os=-hms
- ;;
- harris)
- basic_machine=m88k-harris
- os=-sysv3
- ;;
- hp300-*)
- basic_machine=m68k-hp
- ;;
- hp300bsd)
- basic_machine=m68k-hp
- os=-bsd
- ;;
- hp300hpux)
- basic_machine=m68k-hp
- os=-hpux
- ;;
- hp3k9[0-9][0-9] | hp9[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k2[0-9][0-9] | hp9k31[0-9])
- basic_machine=m68000-hp
- ;;
- hp9k3[2-9][0-9])
- basic_machine=m68k-hp
- ;;
- hp9k6[0-9][0-9] | hp6[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hp9k7[0-79][0-9] | hp7[0-79][0-9])
- basic_machine=hppa1.1-hp
- ;;
- hp9k78[0-9] | hp78[0-9])
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
- # FIXME: really hppa2.0-hp
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][13679] | hp8[0-9][13679])
- basic_machine=hppa1.1-hp
- ;;
- hp9k8[0-9][0-9] | hp8[0-9][0-9])
- basic_machine=hppa1.0-hp
- ;;
- hppa-next)
- os=-nextstep3
- ;;
- hppaosf)
- basic_machine=hppa1.1-hp
- os=-osf
- ;;
- hppro)
- basic_machine=hppa1.1-hp
- os=-proelf
- ;;
- i370-ibm* | ibm*)
- basic_machine=i370-ibm
- ;;
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
- i*86v32)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv32
- ;;
- i*86v4*)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv4
- ;;
- i*86v)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-sysv
- ;;
- i*86sol2)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
- os=-solaris2
- ;;
- i386mach)
- basic_machine=i386-mach
- os=-mach
- ;;
- i386-vsta | vsta)
- basic_machine=i386-unknown
- os=-vsta
- ;;
- iris | iris4d)
- basic_machine=mips-sgi
- case $os in
- -irix*)
- ;;
- *)
- os=-irix4
- ;;
- esac
- ;;
- isi68 | isi)
- basic_machine=m68k-isi
- os=-sysv
- ;;
- m88k-omron*)
- basic_machine=m88k-omron
- ;;
- magnum | m3230)
- basic_machine=mips-mips
- os=-sysv
- ;;
- merlin)
- basic_machine=ns32k-utek
- os=-sysv
- ;;
- mingw32)
- basic_machine=i386-pc
- os=-mingw32
- ;;
- miniframe)
- basic_machine=m68000-convergent
- ;;
- *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
- basic_machine=m68k-atari
- os=-mint
- ;;
- mipsel*-linux*)
- basic_machine=mipsel-unknown
- os=-linux-gnu
- ;;
- mips*-linux*)
- basic_machine=mips-unknown
- os=-linux-gnu
- ;;
- mips3*-*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
- ;;
- mips3*)
- basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
- ;;
- mmix*)
- basic_machine=mmix-knuth
- os=-mmixware
- ;;
- monitor)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- morphos)
- basic_machine=powerpc-unknown
- os=-morphos
- ;;
- msdos)
- basic_machine=i386-pc
- os=-msdos
- ;;
- mvs)
- basic_machine=i370-ibm
- os=-mvs
- ;;
- ncr3000)
- basic_machine=i486-ncr
- os=-sysv4
- ;;
- netbsd386)
- basic_machine=i386-unknown
- os=-netbsd
- ;;
- netwinder)
- basic_machine=armv4l-rebel
- os=-linux
- ;;
- news | news700 | news800 | news900)
- basic_machine=m68k-sony
- os=-newsos
- ;;
- news1000)
- basic_machine=m68030-sony
- os=-newsos
- ;;
- news-3600 | risc-news)
- basic_machine=mips-sony
- os=-newsos
- ;;
- necv70)
- basic_machine=v70-nec
- os=-sysv
- ;;
- next | m*-next )
- basic_machine=m68k-next
- case $os in
- -nextstep* )
- ;;
- -ns2*)
- os=-nextstep2
- ;;
- *)
- os=-nextstep3
- ;;
- esac
- ;;
- nh3000)
- basic_machine=m68k-harris
- os=-cxux
- ;;
- nh[45]000)
- basic_machine=m88k-harris
- os=-cxux
- ;;
- nindy960)
- basic_machine=i960-intel
- os=-nindy
- ;;
- mon960)
- basic_machine=i960-intel
- os=-mon960
- ;;
- nonstopux)
- basic_machine=mips-compaq
- os=-nonstopux
- ;;
- np1)
- basic_machine=np1-gould
- ;;
- nsr-tandem)
- basic_machine=nsr-tandem
- ;;
- op50n-* | op60c-*)
- basic_machine=hppa1.1-oki
- os=-proelf
- ;;
- or32 | or32-*)
- basic_machine=or32-unknown
- os=-coff
- ;;
- OSE68000 | ose68000)
- basic_machine=m68000-ericsson
- os=-ose
- ;;
- os68k)
- basic_machine=m68k-none
- os=-os68k
- ;;
- pa-hitachi)
- basic_machine=hppa1.1-hitachi
- os=-hiuxwe2
- ;;
- paragon)
- basic_machine=i860-intel
- os=-osf
- ;;
- pbd)
- basic_machine=sparc-tti
- ;;
- pbb)
- basic_machine=m68k-tti
- ;;
- pc532 | pc532-*)
- basic_machine=ns32k-pc532
- ;;
- pentium | p5 | k5 | k6 | nexgen | viac3)
- basic_machine=i586-pc
- ;;
- pentiumpro | p6 | 6x86 | athlon)
- basic_machine=i686-pc
- ;;
- pentiumii | pentium2)
- basic_machine=i686-pc
- ;;
- pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
- basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumpro-* | p6-* | 6x86-* | athlon-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pentiumii-* | pentium2-*)
- basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- pn)
- basic_machine=pn-gould
- ;;
- power) basic_machine=power-ibm
- ;;
- ppc) basic_machine=powerpc-unknown
- ;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppcle | powerpclittle | ppc-le | powerpc-little)
- basic_machine=powerpcle-unknown
- ;;
- ppcle-* | powerpclittle-*)
- basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64) basic_machine=powerpc64-unknown
- ;;
- ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ppc64le | powerpc64little | ppc64-le | powerpc64-little)
- basic_machine=powerpc64le-unknown
- ;;
- ppc64le-* | powerpc64little-*)
- basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
- ;;
- ps2)
- basic_machine=i386-ibm
- ;;
- pw32)
- basic_machine=i586-unknown
- os=-pw32
- ;;
- rom68k)
- basic_machine=m68k-rom68k
- os=-coff
- ;;
- rm[46]00)
- basic_machine=mips-siemens
- ;;
- rtpc | rtpc-*)
- basic_machine=romp-ibm
- ;;
- s390 | s390-*)
- basic_machine=s390-ibm
- ;;
- s390x | s390x-*)
- basic_machine=s390x-ibm
- ;;
- sa29200)
- basic_machine=a29k-amd
- os=-udi
- ;;
- sequent)
- basic_machine=i386-sequent
- ;;
- sh)
- basic_machine=sh-hitachi
- os=-hms
- ;;
- sparclite-wrs | simso-wrs)
- basic_machine=sparclite-wrs
- os=-vxworks
- ;;
- sps7)
- basic_machine=m68k-bull
- os=-sysv2
- ;;
- spur)
- basic_machine=spur-unknown
- ;;
- st2000)
- basic_machine=m68k-tandem
- ;;
- stratus)
- basic_machine=i860-stratus
- os=-sysv4
- ;;
- sun2)
- basic_machine=m68000-sun
- ;;
- sun2os3)
- basic_machine=m68000-sun
- os=-sunos3
- ;;
- sun2os4)
- basic_machine=m68000-sun
- os=-sunos4
- ;;
- sun3os3)
- basic_machine=m68k-sun
- os=-sunos3
- ;;
- sun3os4)
- basic_machine=m68k-sun
- os=-sunos4
- ;;
- sun4os3)
- basic_machine=sparc-sun
- os=-sunos3
- ;;
- sun4os4)
- basic_machine=sparc-sun
- os=-sunos4
- ;;
- sun4sol2)
- basic_machine=sparc-sun
- os=-solaris2
- ;;
- sun3 | sun3-*)
- basic_machine=m68k-sun
- ;;
- sun4)
- basic_machine=sparc-sun
- ;;
- sun386 | sun386i | roadrunner)
- basic_machine=i386-sun
- ;;
- sv1)
- basic_machine=sv1-cray
- os=-unicos
- ;;
- symmetry)
- basic_machine=i386-sequent
- os=-dynix
- ;;
- t3e)
- basic_machine=t3e-cray
- os=-unicos
- ;;
- tic54x | c54x*)
- basic_machine=tic54x-unknown
- os=-coff
- ;;
- tx39)
- basic_machine=mipstx39-unknown
- ;;
- tx39el)
- basic_machine=mipstx39el-unknown
- ;;
- toad1)
- basic_machine=pdp10-xkl
- os=-tops20
- ;;
- tower | tower-32)
- basic_machine=m68k-ncr
- ;;
- udi29k)
- basic_machine=a29k-amd
- os=-udi
- ;;
- ultra3)
- basic_machine=a29k-nyu
- os=-sym1
- ;;
- v810 | necv810)
- basic_machine=v810-nec
- os=-none
- ;;
- vaxv)
- basic_machine=vax-dec
- os=-sysv
- ;;
- vms)
- basic_machine=vax-dec
- os=-vms
- ;;
- vpp*|vx|vx-*)
- basic_machine=f301-fujitsu
- ;;
- vxworks960)
- basic_machine=i960-wrs
- os=-vxworks
- ;;
- vxworks68)
- basic_machine=m68k-wrs
- os=-vxworks
- ;;
- vxworks29k)
- basic_machine=a29k-wrs
- os=-vxworks
- ;;
- w65*)
- basic_machine=w65-wdc
- os=-none
- ;;
- w89k-*)
- basic_machine=hppa1.1-winbond
- os=-proelf
- ;;
- windows32)
- basic_machine=i386-pc
- os=-windows32-msvcrt
- ;;
- xmp)
- basic_machine=xmp-cray
- os=-unicos
- ;;
- xps | xps100)
- basic_machine=xps100-honeywell
- ;;
- z8k-*-coff)
- basic_machine=z8k-unknown
- os=-sim
- ;;
- none)
- basic_machine=none-none
- os=-none
- ;;
-
-# Here we handle the default manufacturer of certain CPU types. It is in
-# some cases the only manufacturer, in others, it is the most popular.
- w89k)
- basic_machine=hppa1.1-winbond
- ;;
- op50n)
- basic_machine=hppa1.1-oki
- ;;
- op60c)
- basic_machine=hppa1.1-oki
- ;;
- mips)
- if [ x$os = x-linux-gnu ]; then
- basic_machine=mips-unknown
- else
- basic_machine=mips-mips
- fi
- ;;
- romp)
- basic_machine=romp-ibm
- ;;
- rs6000)
- basic_machine=rs6000-ibm
- ;;
- vax)
- basic_machine=vax-dec
- ;;
- pdp10)
- # there are many clones, so DEC is not a safe bet
- basic_machine=pdp10-unknown
- ;;
- pdp11)
- basic_machine=pdp11-dec
- ;;
- we32k)
- basic_machine=we32k-att
- ;;
- sh3 | sh4 | sh3eb | sh4eb)
- basic_machine=sh-unknown
- ;;
- sh64)
- basic_machine=sh64-unknown
- ;;
- sparc | sparcv9 | sparcv9b)
- basic_machine=sparc-sun
- ;;
- cydra)
- basic_machine=cydra-cydrome
- ;;
- orion)
- basic_machine=orion-highlevel
- ;;
- orion105)
- basic_machine=clipper-highlevel
- ;;
- mac | mpw | mac-mpw)
- basic_machine=m68k-apple
- ;;
- pmac | pmac-mpw)
- basic_machine=powerpc-apple
- ;;
- c4x*)
- basic_machine=c4x-none
- os=-coff
- ;;
- *-unknown)
- # Make sure to match an already-canonicalized machine name.
- ;;
- *)
- echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
- exit 1
- ;;
-esac
-
-# Here we canonicalize certain aliases for manufacturers.
-case $basic_machine in
- *-digital*)
- basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
- ;;
- *-commodore*)
- basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
- ;;
- *)
- ;;
-esac
-
-# Decode manufacturer-specific aliases for certain operating systems.
-
-if [ x"$os" != x"" ]
-then
-case $os in
- # First match some system type aliases
- # that might get confused with valid system types.
- # -solaris* is a basic system type, with this one exception.
- -solaris1 | -solaris1.*)
- os=`echo $os | sed -e 's|solaris1|sunos4|'`
- ;;
- -solaris)
- os=-solaris2
- ;;
- -svr4*)
- os=-sysv4
- ;;
- -unixware*)
- os=-sysv4.2uw
- ;;
- -gnu/linux*)
- os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
- ;;
- # First accept the basic system types.
- # The portable systems comes first.
- # Each alternative MUST END IN A *, to match a version number.
- # -sysv* is not here because it comes later, after sysvr4.
- -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
- | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
- | -aos* \
- | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
- | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
- | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* \
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
- | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
- | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
- | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* | -morphos*)
- # Remember, each alternative MUST END IN *, to match a version number.
- ;;
- -qnx*)
- case $basic_machine in
- x86-* | i*86-*)
- ;;
- *)
- os=-nto$os
- ;;
- esac
- ;;
- -nto*)
- os=-nto-qnx
- ;;
- -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
- | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
- ;;
- -mac*)
- os=`echo $os | sed -e 's|mac|macos|'`
- ;;
- -linux*)
- os=`echo $os | sed -e 's|linux|linux-gnu|'`
- ;;
- -sunos5*)
- os=`echo $os | sed -e 's|sunos5|solaris2|'`
- ;;
- -sunos6*)
- os=`echo $os | sed -e 's|sunos6|solaris3|'`
- ;;
- -opened*)
- os=-openedition
- ;;
- -wince*)
- os=-wince
- ;;
- -osfrose*)
- os=-osfrose
- ;;
- -osf*)
- os=-osf
- ;;
- -utek*)
- os=-bsd
- ;;
- -dynix*)
- os=-bsd
- ;;
- -acis*)
- os=-aos
- ;;
- -atheos*)
- os=-atheos
- ;;
- -386bsd)
- os=-bsd
- ;;
- -ctix* | -uts*)
- os=-sysv
- ;;
- -ns2 )
- os=-nextstep2
- ;;
- -nsk*)
- os=-nsk
- ;;
- # Preserve the version number of sinix5.
- -sinix5.*)
- os=`echo $os | sed -e 's|sinix|sysv|'`
- ;;
- -sinix*)
- os=-sysv4
- ;;
- -triton*)
- os=-sysv3
- ;;
- -oss*)
- os=-sysv3
- ;;
- -svr4)
- os=-sysv4
- ;;
- -svr3)
- os=-sysv3
- ;;
- -sysvr4)
- os=-sysv4
- ;;
- # This must come after -sysvr4.
- -sysv*)
- ;;
- -ose*)
- os=-ose
- ;;
- -es1800*)
- os=-ose
- ;;
- -xenix)
- os=-xenix
- ;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- os=-mint
- ;;
- -none)
- ;;
- *)
- # Get rid of the `-' at the beginning of $os.
- os=`echo $os | sed 's/[^-]*-//'`
- echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
- exit 1
- ;;
-esac
-else
-
-# Here we handle the default operating systems that come with various machines.
-# The value should be what the vendor currently ships out the door with their
-# machine or put another way, the most popular os provided with the machine.
-
-# Note that if you're going to try to match "-MANUFACTURER" here (say,
-# "-sun"), then you have to tell the case statement up towards the top
-# that MANUFACTURER isn't an operating system. Otherwise, code above
-# will signal an error saying that MANUFACTURER isn't an operating
-# system, and we'll never get to this point.
-
-case $basic_machine in
- *-acorn)
- os=-riscix1.2
- ;;
- arm*-rebel)
- os=-linux
- ;;
- arm*-semi)
- os=-aout
- ;;
- # This must come before the *-dec entry.
- pdp10-*)
- os=-tops20
- ;;
- pdp11-*)
- os=-none
- ;;
- *-dec | vax-*)
- os=-ultrix4.2
- ;;
- m68*-apollo)
- os=-domain
- ;;
- i386-sun)
- os=-sunos4.0.2
- ;;
- m68000-sun)
- os=-sunos3
- # This also exists in the configure program, but was not the
- # default.
- # os=-sunos4
- ;;
- m68*-cisco)
- os=-aout
- ;;
- mips*-cisco)
- os=-elf
- ;;
- mips*-*)
- os=-elf
- ;;
- or32-*)
- os=-coff
- ;;
- *-tti) # must be before sparc entry or we get the wrong os.
- os=-sysv3
- ;;
- sparc-* | *-sun)
- os=-sunos4.1.1
- ;;
- *-be)
- os=-beos
- ;;
- *-ibm)
- os=-aix
- ;;
- *-wec)
- os=-proelf
- ;;
- *-winbond)
- os=-proelf
- ;;
- *-oki)
- os=-proelf
- ;;
- *-hp)
- os=-hpux
- ;;
- *-hitachi)
- os=-hiux
- ;;
- i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
- os=-sysv
- ;;
- *-cbm)
- os=-amigaos
- ;;
- *-dg)
- os=-dgux
- ;;
- *-dolphin)
- os=-sysv3
- ;;
- m68k-ccur)
- os=-rtu
- ;;
- m88k-omron*)
- os=-luna
- ;;
- *-next )
- os=-nextstep
- ;;
- *-sequent)
- os=-ptx
- ;;
- *-crds)
- os=-unos
- ;;
- *-ns)
- os=-genix
- ;;
- i370-*)
- os=-mvs
- ;;
- *-next)
- os=-nextstep3
- ;;
- *-gould)
- os=-sysv
- ;;
- *-highlevel)
- os=-bsd
- ;;
- *-encore)
- os=-bsd
- ;;
- *-sgi)
- os=-irix
- ;;
- *-siemens)
- os=-sysv4
- ;;
- *-masscomp)
- os=-rtu
- ;;
- f30[01]-fujitsu | f700-fujitsu)
- os=-uxpv
- ;;
- *-rom68k)
- os=-coff
- ;;
- *-*bug)
- os=-coff
- ;;
- *-apple)
- os=-macos
- ;;
- *-atari*)
- os=-mint
- ;;
- *)
- os=-none
- ;;
-esac
-fi
-
-# Here we handle the case where we know the os, and the CPU type, but not the
-# manufacturer. We pick the logical manufacturer.
-vendor=unknown
-case $basic_machine in
- *-unknown)
- case $os in
- -riscix*)
- vendor=acorn
- ;;
- -sunos*)
- vendor=sun
- ;;
- -aix*)
- vendor=ibm
- ;;
- -beos*)
- vendor=be
- ;;
- -hpux*)
- vendor=hp
- ;;
- -mpeix*)
- vendor=hp
- ;;
- -hiux*)
- vendor=hitachi
- ;;
- -unos*)
- vendor=crds
- ;;
- -dgux*)
- vendor=dg
- ;;
- -luna*)
- vendor=omron
- ;;
- -genix*)
- vendor=ns
- ;;
- -mvs* | -opened*)
- vendor=ibm
- ;;
- -ptx*)
- vendor=sequent
- ;;
- -vxsim* | -vxworks*)
- vendor=wrs
- ;;
- -aux*)
- vendor=apple
- ;;
- -hms*)
- vendor=hitachi
- ;;
- -mpw* | -macos*)
- vendor=apple
- ;;
- -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
- vendor=atari
- ;;
- -vos*)
- vendor=stratus
- ;;
- esac
- basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
- ;;
-esac
-
-echo $basic_machine$os
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "timestamp='"
-# time-stamp-format: "%:y-%02m-%02d"
-# time-stamp-end: "'"
-# End:
diff --git a/contrib/gcc/config/ChangeLog b/contrib/gcc/config/ChangeLog
deleted file mode 100644
index 78ea3bb40054..000000000000
--- a/contrib/gcc/config/ChangeLog
+++ /dev/null
@@ -1,477 +0,0 @@
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-18 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-08-14 Release Manager
-
- * GCC 3.2 Released.
-
-2002-07-25 Release Manager
-
- * GCC 3.1.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * acinclude.m4: Fix spelling error of "separate" as "seperate".
-
-2001-05-22 Jason Merrill <jason_merrill@redhat.com>
-
- * mt-linux (CXXFLAGS_FOR_TARGET): Lose -fvtable-thunks.
-
-2001-01-27 Richard Henderson <rth@redhat.com>
-
- * mt-alphaieee: New file.
-
-2001-01-02 Laurynas Biveinis <lauras@softhome.net>
-
- * mh-djgpp: do not set CFLAGS.
-
-2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
-
- * mh-djgpp: Conditionally set 'target_alias' to djgpp. Conditionally
- modify 'gcc_version'.
-
-2000-07-21 Andrew Haley <aph@cygnus.com>
-
- * mh-ia64pic: New file.
- * mt-ia64pic: New file.
-
-Fri Jul 14 18:13:23 2000 Mark P Mitchell <mark@codesourcery.com>
-
- * mh-irix6 (CC): Don't set it.
-
-2000-06-21 Branko Cibej <branko.cibej@hermes.si>
-
- * mh-sparcpic: Use single instead of double quotes.
- * mt-sparcpic: Likewise.
-
-2000-06-19 Syd Polk <spolk@redhat.com>
-
- * acinclude.m4: Updated for Incr Tcl 3.0.
-
-2000-02-23 Linas Vepstas <linas@linas.org>
-
- * mh-i370pic: New file.
- * mt-i370pic: New file.
-
-2000-02-22 Nick Clifton <nickc@cygnus.com>
-
- * config/mt-wince: new file: Makefile fragment for WinCE targets.
-
-2000-01-06 Geoff Keating <geoffk@cygnus.com>
-
- * mh-aix43: Delete, move to mt-aix43.
- * mt-aix43: New file.
-
-Tue Sep 7 23:31:01 1999 Linas Vepstas <linas@linas.org>
-
- * mh-openedition: New file.
-
-1999-04-07 Michael Meissner <meissner@cygnus.com>
-
- * mt-d30v: New file, pass -g -Os -Wa,-C as default options.
-
-1999-02-08 Syd Polk <spolk@cygnus.com>
-
- * acinclude.m4: Added macros to find itcl files.
- Export TCL_CFLAGS from tclConfig.sh.
- Export TCL_LIB_FULL_PATH, TK_LIB_FULL_PATH, ITCL_LIB_FULL_PATH,
- ITK_LIB_FULL_PATH, and TIX_LIB_FULL_PATH
- Replace TIX macros with better ones from snavigator.
-
-Tue Feb 2 22:51:21 1999 Philip Blundell <philb@gnu.org>
-
- * mh-armpic: New file. Patch from Jim Pick <jim@jimpick.com>.
- * mt-armpic: Likewise.
-
-Mon Jan 18 19:41:08 1999 Christopher Faylor <cgf@cygnus.com>
-
- * cygwin.mh: Activate commented out dependencies for
- gdb: libtermcap.
-
-Wed Nov 18 20:29:46 1998 Christopher Faylor <cgf@cygnus.com>
-
- * cygwin.mh: Add extra libtermcap target information.
- Add commented out dependency for gdb to libtermcap for
- future readline requirement.
-
-Mon Nov 2 15:15:33 1998 Geoffrey Noer <noer@cygnus.com>
-
- * mh-cygwin32: delete
- * mh-cygwin: was mh-cygwin32
-
-1998-10-26 Syd Polk <spolk@cygnus.com>
-
- * acinclude.m4: TCLHDIR and TKHDIR need to be run through
- cygpath for Microsoft builds.
-
-1998-10-20 Syd Polk <spolk@cygnus.com>
-
- * acinclude.m4: Re-exported TCL_LIBS and TCL_LD_SEARCH_FLAGS
- because itcl needs them.
-
-Mon Aug 31 17:50:53 1998 David Edelsohn <edelsohn@mhpcc.edu>
-
- * mh-aix43 (NM_FOR_TARGET): Add -X32_64 as well.
-
-Sat Aug 29 14:32:55 1998 David Edelsohn <edelsohn@mhpcc.edu>
-
- * mh-aix43: New file.
-
-Mon Aug 10 00:15:47 1998 HJ Lu (hjl@gnu.org)
-
- * mt-linux (CXXFLAGS_FOR_TARGET): Add -D_GNU_SOURCE.
-
-1998-05-29 Rob Savoye <rob@chinadoll.cygnus.com>
-
- * acinclude.m4: New collection of generic autoconf macros.
-
-Wed Apr 22 12:24:28 1998 Michael Meissner <meissner@cygnus.com>
-
- * mt-ospace: New file, support using -Os instead of -O2 to compile
- the libraries.
-
-Wed Apr 22 10:53:14 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
-
- * mt-linux (CXXFLAGS_FOR_TARGET): Set this instead of CXXFLAGS.
-
-Sat Apr 11 22:43:17 1998 J. Kean Johnston <jkj@sco.com>
-
- * mh-svsv5: New file - support for SCO UnixWare 7 / SVR5.
-
-Thu Mar 26 01:54:25 1998 Geoffrey Noer <noer@cygnus.com>
-
- * mh-cygwin32: stop configuring and building dosrel.
-
-Thu Sep 11 16:43:27 1997 Jim Wilson <wilson@cygnus.com>
-
- * mh-elfalphapic, mt-elfalphapic: New files.
-
-Wed Jul 23 12:32:18 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
-
- * mh-go32 (CFLAGS): Don't set -fno-omit-frame-pointer.
-
-Mon Jun 16 19:06:41 1997 Geoff Keating <geoffk@ozemail.com.au>
-
- * mh-ppcpic: New file.
- * mt-ppcpic: New file.
-
-Thu Mar 27 15:52:40 1997 Geoffrey Noer <noer@cygnus.com>
-
- * mh-cygwin32: override CXXFLAGS, setting to -O2 only
- (no debug)
-
-Tue Mar 25 18:16:43 1997 Geoffrey Noer <noer@cygnus.com>
-
- * mh-cygwin32: override LIBGCC2_DEBUG_CFLAGS so debug info
- isn't included in cygwin32-hosted libgcc2.a by default
-
-Wed Jan 8 19:56:43 1997 Geoffrey Noer <noer@cygnus.com>
-
- * mh-cygwin32: override CFLAGS so debug info isn't included
- in cygwin32-hosted tools by default
-
-Tue Dec 31 16:04:26 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * mh-linux: Remove.
-
-Mon Nov 11 10:29:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
-
- * mt-ppc: Delete file, options moved to newlib configure.
-
-Fri Oct 4 12:21:03 1996 Angela Marie Thomas (angela@cygnus.com)
-
- * mh-dgux386: New file. x86 dgux specific flags
-
-Mon Sep 30 15:10:07 1996 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw-mh-mpw (EXTRALIBS_PPC_XCOFF): New, was EXTRALIBS_PPC.
- (EXTRALIBS_PPC): Use shared libraries instead of xcoff.
-
-Sat Aug 17 04:56:25 1996 Geoffrey Noer <noer@skaro.cygnus.com>
-
- * mh-cygwin32: don't -D_WIN32 here anymore
-
-Thu Aug 15 19:46:44 1996 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw-mh-mpw (SEGFLAG_68K, SEGFLAG_PPC): Remove.
- (EXTRALIBS_PPC): Add libgcc.xcoff.
-
-Thu Aug 8 14:51:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
-
- * mt-ppc: New file, add -mrelocatable-lib and -mno-eabi to all
- target builds for PowerPC eabi targets.
-
-Fri Jul 12 12:06:01 1996 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw: New subdir, Mac MPW configuration support bits.
-
-Mon Jul 8 17:30:52 1996 Jim Wilson <wilson@cygnus.com>
-
- * mh-irix6: New file.
-
-Mon Jul 8 15:15:37 1996 Jason Merrill <jason@yorick.cygnus.com>
-
- * mt-sparcpic (PICFLAG_FOR_TARGET): Use -fPIC.
-
-Fri Jul 5 11:49:02 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * mh-irix4 (RANLIB): Don't define; Irix 4 does have ranlib.
-
-Sun Jun 23 22:59:25 1996 Geoffrey Noer <noer@cygnus.com>
-
- * mh-cygwin32: new file. Like mh-go32 without the CFLAGS entry.
-
-Tue Mar 26 14:10:41 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * mh-go32 (CFLAGS): Define.
-
-Thu Mar 14 19:20:54 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * mh-necv4: New file.
-
-Thu Feb 15 13:07:43 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * mh-cxux (CC): New variable.
- (CFLAGS, LDFLAGS): Remove.
- * mh-ncrsvr43 (CC): New variable.
- (CFLAGS): Remove.
- * mh-solaris (CFLAGS): Remove.
-
- * mh-go32: Remove most variable settings, since they presumed a
- Canadian Cross, which is now handled correctly by the configure
- script.
-
- * mh-sparcpic (PICFLAG): Set to -fPIC, not -fpic.
-
-Mon Feb 12 14:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
-
- * mh-m68kpic, mt-m68kpic: New files.
-
-Thu Feb 1 14:15:42 1996 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw-mh-mpw (CC_MWC68K): Add options similar to those used
- in CC_MWCPPC, and -mc68020 -model far.
- (AR_MWLINK68K): Add -xm library.
- (AR_AR): Define.
- (CC_LD_MWLINK68K): Remove -d.
- (EXTRALIBS_MWC68K): Define.
-
-Thu Jan 25 16:05:33 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * mh-ncrsvr43 (CFLAGS): Remove -Hnocopyr.
-
-Tue Nov 7 15:41:30 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw-mh-mpw (CC_MWC68K, CC_MWCPPC): Remove unused include path.
- (CC_MWCPPC): Add -mpw_chars, disable warnings, add comments
- explaining reasons for various flags.
- (EXTRALIBS_PPC, EXTRALIBS_MWCPPC ): Put runtime library first.
-
-Fri Oct 13 14:44:25 1995 Jason Molenda (crash@phydeaux.cygnus.com)
-
- * mh-aix, mh-sun: Removed.
-
- * mh-decstation (X11_EXTRA_CFLAGS): Define.
-
- * mh-sco, mh-solaris, mh-sysv4 (X11_EXTRA_LIBS): Define.
-
- * mh-hp300, mh-hpux, mh-hpux8, mh-solaris, mh-sun3, mh-sysv4: Don't
- hardcode location of X stuff here.
-
-Thu Sep 28 13:14:56 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw-mh-mpw: Add definitions for various 68K and PowerMac
- compilers, add definitions for library and link steps for
- PowerMacs.
-
-Thu Sep 14 08:20:04 1995 Fred Fish <fnf@cygnus.com>
-
- * mh-hp300 (CC): Add "CC = cc -Wp,-H256000" to avoid
- "too much defining" errors from the HPUX compiler.
-
-Thu Aug 17 17:28:56 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
-
- * mh-hp300 (RANLIB): Use "ar ts", in case GNU ar was used and
- didn't build a symbol table.
-
-Thu Jun 22 17:47:24 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw-mh-mpw (CC): Define ANSI_PROTOTYPES.
-
-Mon Apr 10 12:29:48 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw-mh-mpw (EXTRALIBS): Always link in Math.o, CSANELIB.o,
- and ToolLibs.o.
-
- * mpw-mh-mpw (CC): Define ALMOST_STDC.
- (CFLAGS): Remove ALMOST_STDC, -mc68881.
- (LDFLAGS): add -w.
-
- * mpw-mh-mpw (CFLAGS): Add -b option to put strings at the ends of
- functions.
-
- * mpw-mh-mpw: New file, host makefile definitions for MPW.
-
-Fri Mar 31 11:35:17 1995 Jason Molenda (crash@phydeaux.cygnus.com)
-
- * mt-netware: New file.
-
-Mon Mar 13 12:31:29 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * mh-hpux8: New file.
- * mh-hpux: Use X11R5 rather than X11R4.
-
-Thu Feb 9 11:04:13 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * mh-linux (SYSV): Don't define.
- (RANLIB): Don't define.
-
-Wed Jan 11 16:29:34 1995 Jason Merrill <jason@phydeaux.cygnus.com>
-
- * m?-*pic (LIBCXXFLAGS): Add -fno-implicit-templates.
-
-Thu Nov 3 17:27:19 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
-
- * mh-irix4 (CC): Increase maximum string length.
-
- * mh-sco (CC): Define away const, it doesn't work right; elements
- of arrays of ptr-to-const are considered const themselves.
-
-Sat Jul 16 12:17:49 1994 Stan Shebs (shebs@andros.cygnus.com)
-
- * mh-cxux: New file, from Bob Rusk (rrusk@mail.csd.harris.com).
-
-Sat Jun 4 17:22:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
-
- * mh-ncrsvr43: New file from Tom McConnell
- <tmcconne@sedona.intel.com>.
-
-Thu May 19 00:32:11 1994 Jeff Law (law@snake.cs.utah.edu)
-
- * mh-hpux (CC): Add -Wp,-H256000 to avoid "too much defining"
- errors from the HPUX 8 compilers.
-
-Wed May 4 20:14:47 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
-
- * mh-lynxrs6k: set SHELL to /bin/bash
-
-Tue Apr 12 12:38:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * mh-irix4 (CC): Change -XNh1500 to -XNh2000.
-
-Sat Dec 25 20:03:45 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
-
- * mt-hppa: Delete.
-
-Tue Nov 16 22:54:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * mh-a68bsd: Define CC to gcc.
-
-Mon Nov 15 16:56:51 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * mh-linux: Don't put -static in LDFLAGS. Add comments.
-
-Mon Nov 15 13:37:58 1993 david d `zoo' zuhn (zoo@cirdan.cygnus.com)
-
- * mh-sysv4 (AR_FLAGS): change from cq to cr
-
-Fri Nov 5 08:12:32 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
-
- * mh-unixware: remove. It's the same as sysv4, and config.guess
- can't tell the difference. So don't allow skew.
-
-Wed Oct 20 20:35:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * mh-hp300: Revert yesterday's change, but add comment explaining.
-
-Tue Oct 19 18:58:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * mh-hp300: Don't define CFLAGS to empty. Why should hp300 be
- different from anything else? ("gdb doesn't understand the native
- debug format" isn't a good enough answer because we might be using
- gcc).
-
-Tue Oct 5 12:17:40 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
-
- * mh-alphaosf: Remove, no longer necessary now that gdb knows
- how to handle OSF/1 shared libraries.
-
-Tue Jul 6 11:27:33 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
-
- * mh-alphaosf: New file.
-
-Thu Jul 1 15:49:33 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * mh-riscos: New file.
-
-Mon Jun 14 12:03:18 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
-
- * mh-aix, mh-aix386, mh-decstation, mh-delta88, mh-hpux, mh-irix4,
- mh-ncr3000, mh-solaris, mh-sysv, mh-sysv4: remove INSTALL=cp line,
- now that we're using install.sh globally
-
-Fri Jun 4 16:09:34 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * mh-sysv4 (INSTALL): Use cp, not /usr/ucb/install.
-
-Thu Apr 8 11:21:52 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * mt-a29k, mt-ebmon29k, mt-os68k, mt-ose68000, mt-ose68k,
- mt-vxworks68, mt-vxworks960: Removed obsolete, unused target
- Makefile fragment files.
-
-Mon Mar 8 15:05:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
-
- * mh-aix386: New file; old mh-aix, plus no-op RANLIB.
-
-Thu Oct 1 13:50:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
-
- * mh-solaris: INSTALL is NOT /usr/ucb/install
-
-Mon Aug 24 14:25:35 1992 Ian Lance Taylor (ian@cygnus.com)
-
- * mt-ose68000, mt-ose68k: renamed from mt-OSE*.
-
-Tue Jul 21 02:11:01 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
-
- * mt-OSE68k, mt-680000: new configs.
-
-Thu Jul 16 17:12:09 1992 K. Richard Pixley (rich@rtl.cygnus.com)
-
- * mh-irix4: merged changes from progressive.
-
-Tue Jun 9 23:29:38 1992 Per Bothner (bothner@rtl.cygnus.com)
-
- * Everywhere: Change RANLIB=echo>/dev/null (which confuses
- some shells - and I don't blame them) to RANLIB=true.
- * mh-solaris: Use /usr/ucb/install for INSTALL.
-
-Sun May 31 14:45:23 1992 Mark Eichin (eichin at cygnus.com)
-
- * mh-solaris2: Add new configuration for Solaris 2 (sysv, no ranlib)
-
-Fri Apr 10 23:10:08 1992 Fred Fish (fnf@cygnus.com)
-
- * mh-ncr3000: Add new configuration for NCR 3000.
-
-Tue Dec 10 00:10:55 1991 K. Richard Pixley (rich at rtl.cygnus.com)
-
- * ChangeLog: fresh changelog.
-
diff --git a/contrib/gcc/config/acinclude.m4 b/contrib/gcc/config/acinclude.m4
deleted file mode 100644
index 6669ac2c09a6..000000000000
--- a/contrib/gcc/config/acinclude.m4
+++ /dev/null
@@ -1,1995 +0,0 @@
-dnl This file is included into all any other acinclude file that needs
-dnl to use these macros.
-
-dnl This is copied from autoconf 2.12, but does calls our own AC_PROG_CC_WORKS,
-dnl and doesn't call AC_PROG_CXX_GNU, cause we test for that in AC_PROG_CC_WORKS.
-dnl We are probably using a cross compiler, which will not be able to fully
-dnl link an executable. This should really be fixed in autoconf itself.
-dnl Find a working G++ cross compiler. This only works for the GNU C++ compiler.
-AC_DEFUN(CYG_AC_PROG_CXX_CROSS,
-[AC_BEFORE([$0], [AC_PROG_CXXCPP])
-AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++, gcc)
-
-CYG_AC_PROG_GXX_WORKS
-
-if test $ac_cv_prog_gxx = yes; then
- GXX=yes
-dnl Check whether -g works, even if CXXFLAGS is set, in case the package
-dnl plays around with CXXFLAGS (such as to build both debugging and
-dnl normal versions of a library), tasteless as that idea is.
- ac_test_CXXFLAGS="${CXXFLAGS+set}"
- ac_save_CXXFLAGS="$CXXFLAGS"
- CXXFLAGS=
- AC_PROG_CXX_G
- if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS="$ac_save_CXXFLAGS"
- elif test $ac_cv_prog_cxx_g = yes; then
- CXXFLAGS="-g -O2"
- else
- CXXFLAGS="-O2"
- fi
-else
- GXX=
- test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
-fi
-])
-
-dnl See if the G++ compiler we found works.
-AC_DEFUN(CYG_AC_PROG_GXX_WORKS,
-[AC_MSG_CHECKING([whether the G++ compiler ($CXX $CXXFLAGS $LDFLAGS) actually works])
-AC_LANG_SAVE
-AC_LANG_CPLUSPLUS
-dnl Try a test case. We only compile, because it's close to impossible
-dnl to get a correct fully linked executable with a cross compiler. For
-dnl most cross compilers, this test is bogus. For G++, we can use various
-dnl other compile line options to get a decent idea that the cross compiler
-dnl actually does work, even though we can't produce an executable without
-dnl more info about the target it's being compiled for. This only works
-dnl for the GNU C++ compiler.
-
-dnl Transform the name of the compiler to it's cross variant, unless
-dnl CXX is set. This is also what CXX gets set to in the generated
-dnl Makefile.
-if test x"${CXX}" = xc++ ; then
- CXX=`echo gcc | sed -e "${program_transform_name}"`
-fi
-
-dnl Get G++'s full path to libgcc.a
-libgccpath=`${CXX} --print-libgcc`
-
-dnl If we don't have a path with libgcc.a on the end, this isn't G++.
-if test `echo $libgccpath | sed -e 's:/.*/::'` = libgcc.a ; then
- ac_cv_prog_gxx=yes
-else
- ac_cv_prog_gxx=no
-fi
-
-dnl If we are using G++, look for the files that need to exist if this
-dnl compiler works.
-if test x"${ac_cv_prog_gxx}" = xyes ; then
- gccfiles=`echo $libgccpath | sed -e 's:/libgcc.a::'`
- if test -f ${gccfiles}/specs -a -f ${gccfiles}/cpp -a -f ${gccfiles}/cc1plus; then
- gccfiles=yes
- else
- gccfiles=no
- fi
- gcclibs=`echo $libgccpath | sed -e 's:lib/gcc-lib/::' -e 's:/libgcc.a::' -e 's,\(.*\)/.*,\1,g'`/lib
- if test -d ${gcclibs}/ldscripts -a -f ${gcclibs}/libc.a -a -f ${gcclibs}/libstdc++.a ; then
- gcclibs=yes
- else
- gcclibs=no
- fi
-fi
-
-dnl If everything is OK, then we can safely assume the compiler works.
-if test x"${gccfiles}" = xno -o x"${gcclibs}" = xno; then
- ac_cv_prog_cxx_works=no
- AC_MSG_ERROR(${CXX} is a non-working cross compiler)
-else
- ac_cv_prog_cxx_works=yes
-fi
-
-AC_LANG_RESTORE
-AC_MSG_RESULT($ac_cv_prog_cxx_works)
-if test x"$ac_cv_prog_cxx_works" = xno; then
- AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.])
-fi
-AC_MSG_CHECKING([whether the G++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler])
-AC_MSG_RESULT($ac_cv_prog_cxx_cross)
-cross_compiling=$ac_cv_prog_cxx_cross
-AC_SUBST(CXX)
-])
-
-dnl ====================================================================
-dnl Find a working GCC cross compiler. This only works for the GNU gcc compiler.
-dnl This is based on the macros above for G++.
-AC_DEFUN(CYG_AC_PROG_CC_CROSS,
-[AC_BEFORE([$0], [AC_PROG_CCPP])
-AC_CHECK_PROGS(CC, cc, gcc)
-
-CYG_AC_PROG_GCC_WORKS
-
-if test $ac_cv_prog_gcc = yes; then
- GCC=yes
-dnl Check whether -g works, even if CFLAGS is set, in case the package
-dnl plays around with CFLAGS (such as to build both debugging and
-dnl normal versions of a library), tasteless as that idea is.
- ac_test_CFLAGS="${CFLAGS+set}"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
- AC_PROG_CC_G
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
- elif test $ac_cv_prog_cc_g = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-O2"
- fi
-else
- GXX=
- test "${CFLAGS+set}" = set || CFLAGS="-g"
-fi
-])
-
-dnl See if the GCC compiler we found works.
-AC_DEFUN(CYG_AC_PROG_GCC_WORKS,
-[AC_MSG_CHECKING([whether the Gcc compiler ($CC $CFLAGS $LDFLAGS) actually works])
-AC_LANG_SAVE
-AC_LANG_C
-dnl Try a test case. We only compile, because it's close to impossible
-dnl to get a correct fully linked executable with a cross
-dnl compiler. For most cross compilers, this test is bogus. For G++,
-dnl we can use various other compile line options to get a decent idea
-dnl that the cross compiler actually does work, even though we can't
-dnl produce an executable without more info about the target it's
-dnl being compiled for. This only works for the GNU C++ compiler.
-
-dnl Transform the name of the compiler to it's cross variant, unless
-dnl CXX is set. This is also what CC gets set to in the generated Makefile.
-if test x"${CC}" = xcc ; then
- CC=`echo gcc | sed -e "${program_transform_name}"`
-fi
-
-dnl Get Gcc's full path to libgcc.a
-libgccpath=`${CC} --print-libgcc`
-
-dnl If we don't have a path with libgcc.a on the end, this isn't G++.
-if test `echo $libgccpath | sed -e 's:/.*/::'` = libgcc.a ; then
- ac_cv_prog_gcc=yes
-else
- ac_cv_prog_gcc=no
-fi
-
-dnl If we are using Gcc, look for the files that need to exist if this
-dnl compiler works.
-if test x"${ac_cv_prog_gcc}" = xyes ; then
- gccfiles=`echo $libgccpath | sed -e 's:/libgcc.a::'`
- if test -f ${gccfiles}/specs -a -f ${gccfiles}/cpp -a -f ${gccfiles}/cc1plus; then
- gccfiles=yes
- else
- gccfiles=no
- fi
- gcclibs=`echo $libgccpath | sed -e 's:lib/gcc-lib/::' -e 's:/libgcc.a::' -e 's,\(.*\)/.*,\1,g'`/lib
- if test -d ${gcclibs}/ldscripts -a -f ${gcclibs}/libc.a -a -f ${gcclibs}/libstdc++.a ; then
- gcclibs=yes
- else
- gcclibs=no
- fi
-fi
-
-dnl If everything is OK, then we can safely assume the compiler works.
-if test x"${gccfiles}" = xno -o x"${gcclibs}" = xno; then
- ac_cv_prog_cc_works=no
- AC_MSG_ERROR(${CC} is a non-working cross compiler)
-else
- ac_cv_prog_cc_works=yes
-fi
-
-AC_LANG_RESTORE
-AC_MSG_RESULT($ac_cv_prog_cc_works)
-if test x"$ac_cv_prog_cc_works" = xno; then
- AC_MSG_ERROR([installation or configuration problem: C++ compiler cannot create executables.])
-fi
-AC_MSG_CHECKING([whether the Gcc compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler])
-AC_MSG_RESULT($ac_cv_prog_cc_cross)
-cross_compiling=$ac_cv_prog_cc_cross
-AC_SUBST(CC)
-])
-
-dnl ====================================================================
-dnl Find the BFD library in the build tree. This is used to access and
-dnl manipulate object or executable files.
-AC_DEFUN(CYG_AC_PATH_BFD, [
-AC_MSG_CHECKING(for the bfd header in the build tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-dnl Look for the header file
-AC_CACHE_VAL(ac_cv_c_bfdh,[
-for i in $dirlist; do
- if test -f "$i/bfd/bfd.h" ; then
- ac_cv_c_bfdh=`(cd $i/bfd; pwd)`
- break
- fi
-done
-])
-if test x"${ac_cv_c_bfdh}" != x; then
- BFDHDIR="-I${ac_cv_c_bfdh}"
- AC_MSG_RESULT(${ac_cv_c_bfdh})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(BFDHDIR)
-
-dnl Look for the library
-AC_MSG_CHECKING(for the bfd library in the build tree)
-AC_CACHE_VAL(ac_cv_c_bfdlib,[
-for i in $dirlist; do
- if test -f "$i/bfd/Makefile" ; then
- ac_cv_c_bfdlib=`(cd $i/bfd; pwd)`
- fi
-done
-])
-dnl We list two directories cause bfd now uses libtool
-if test x"${ac_cv_c_bfdlib}" != x; then
- BFDLIB="-L${ac_cv_c_bfdlib} -L${ac_cv_c_bfdlib}/.libs"
- AC_MSG_RESULT(${ac_cv_c_bfdlib})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(BFDLIB)
-])
-
-dnl ====================================================================
-dnl Find the libiberty library. This defines many commonly used C
-dnl functions that exists in various states based on the underlying OS.
-AC_DEFUN(CYG_AC_PATH_LIBERTY, [
-AC_MSG_CHECKING(for the liberty library in the build tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-AC_CACHE_VAL(ac_cv_c_liberty,[
-for i in $dirlist; do
- if test -f "$i/libiberty/Makefile" ; then
- ac_cv_c_liberty=`(cd $i/libiberty; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_liberty}" != x; then
- LIBERTY="-L${ac_cv_c_liberty}"
- AC_MSG_RESULT(${ac_cv_c_liberty})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(LIBERTY)
-])
-
-dnl ====================================================================
-dnl Find the opcodes library. This is used to do dissasemblies.
-AC_DEFUN(CYG_AC_PATH_OPCODES, [
-AC_MSG_CHECKING(for the opcodes library in the build tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-AC_CACHE_VAL(ac_cv_c_opc,[
-for i in $dirlist; do
- if test -f "$i/opcodes/Makefile" ; then
- ac_cv_c_opc=`(cd $i/opcodes; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_opc}" != x; then
- OPCODESLIB="-L${ac_cv_c_opc}"
- AC_MSG_RESULT(${ac_cv_c_opc})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(OPCODESLIB)
-])
-
-dnl ====================================================================
-dnl Look for the DejaGnu header file in the source tree. This file
-dnl defines the functions used to testing support.
-AC_DEFUN(CYG_AC_PATH_DEJAGNU, [
-AC_MSG_CHECKING(for the testing support files in the source tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-AC_CACHE_VAL(ac_cv_c_dejagnu,[
-for i in $dirlist; do
- if test -f "$srcdir/$i/ecc/ecc/infra/testlib/current/include/dejagnu.h" ; then
- ac_cv_c_dejagnu=`(cd $srcdir/$i/ecc/ecc/infra/testlib/current/include; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_dejagnu}" != x; then
- DEJAGNUHDIR="-I${ac_cv_c_dejagnu}"
- AC_MSG_RESULT(${ac_cv_c_dejagnu})
-else
- AC_MSG_RESULT(none)
-fi
-AC_CACHE_VAL(ac_cv_c_dejagnulib,[
-for i in $dirlist; do
- if test -f "$srcdir/$i/infra/testlib/current/lib/hostutil.exp" ; then
- ac_cv_c_dejagnulib=`(cd $srcdir/$i/infra/testlib/current/lib; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_dejagnulib}" != x; then
- DEJAGNULIB="${ac_cv_c_dejagnulib}"
-else
- DEJAGNULIB=""
-fi
-AC_MSG_CHECKING(for runtest in the source tree)
-AC_CACHE_VAL(ac_cv_c_runtest,[
-for i in $dirlist; do
- if test -f "$srcdir/$i/dejagnu/runtest" ; then
- ac_cv_c_runtest=`(cd $srcdir/$i/dejagnu; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_runtest}" != x; then
- RUNTESTDIR="${ac_cv_c_runtest}"
- AC_MSG_RESULT(${ac_cv_c_runtest})
-else
- RUNTESTDIR=""
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(RUNTESTDIR)
-AC_SUBST(DEJAGNULIB)
-AC_SUBST(DEJAGNUHDIR)
-])
-
-dnl ====================================================================
-dnl Find the libintl library in the build tree. This is for
-dnl internationalization support.
-AC_DEFUN(CYG_AC_PATH_INTL, [
-AC_MSG_CHECKING(for the intl header in the build tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-dnl Look for the header file
-AC_CACHE_VAL(ac_cv_c_intlh,[
-for i in $dirlist; do
- if test -f "$i/intl/libintl.h" ; then
- ac_cv_c_intlh=`(cd $i/intl; pwd)`
- break
- fi
-done
-])
-if test x"${ac_cv_c_intlh}" != x; then
- INTLHDIR="-I${ac_cv_c_intlh}"
- AC_MSG_RESULT(${ac_cv_c_intlh})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(INTLHDIR)
-
-dnl Look for the library
-AC_MSG_CHECKING(for the libintl library in the build tree)
-AC_CACHE_VAL(ac_cv_c_intllib,[
-for i in $dirlist; do
- if test -f "$i/intl/Makefile" ; then
- ac_cv_c_intllib=`(cd $i/intl; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_intllib}" != x; then
- INTLLIB="-L${ac_cv_c_intllib} -lintl"
- AC_MSG_RESULT(${ac_cv_c_intllib})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(INTLLIB)
-])
-
-dnl ====================================================================
-dnl Find the simulator library.
-AC_DEFUN(CYG_AC_PATH_SIM, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.. ../../../../../../../../../.."
-case "$target_cpu" in
- powerpc) target_dir=ppc ;;
- sparc*) target_dir=erc32 ;;
- mips*) target_dir=mips ;;
- *) target_dir=$target_cpu ;;
-esac
-dnl First look for the header file
-AC_MSG_CHECKING(for the simulator header file)
-AC_CACHE_VAL(ac_cv_c_simh,[
-for i in $dirlist; do
- if test -f "${srcdir}/$i/include/remote-sim.h" ; then
- ac_cv_c_simh=`(cd ${srcdir}/$i/include; pwd)`
- break
- fi
-done
-])
-if test x"${ac_cv_c_simh}" != x; then
- SIMHDIR="-I${ac_cv_c_simh}"
- AC_MSG_RESULT(${ac_cv_c_simh})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(SIMHDIR)
-
-dnl See whether it's a devo or Foundry branch simulator
-AC_MSG_CHECKING(Whether this is a devo simulator )
-AC_CACHE_VAL(ac_cv_c_simdevo,[
- CPPFLAGS="$CPPFLAGS $SIMHDIR"
- AC_EGREP_HEADER([SIM_DESC sim_open.*struct _bfd], remote-sim.h,
- ac_cv_c_simdevo=yes,
- ac_cv_c_simdevo=no)
-])
-if test x"$ac_cv_c_simdevo" = x"yes" ; then
- AC_DEFINE(HAVE_DEVO_SIM)
-fi
-AC_MSG_RESULT(${ac_cv_c_simdevo})
-AC_SUBST(HAVE_DEVO_SIM)
-
-dnl Next look for the library
-AC_MSG_CHECKING(for the simulator library)
-AC_CACHE_VAL(ac_cv_c_simlib,[
-for i in $dirlist; do
- if test -f "$i/sim/$target_dir/Makefile" ; then
- ac_cv_c_simlib=`(cd $i/sim/$target_dir; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_simlib}" != x; then
- SIMLIB="-L${ac_cv_c_simlib}"
-else
- AC_MSG_RESULT(none)
- dnl FIXME: this is kinda bogus, cause umtimately the TM will build
- dnl all the libraries for several architectures. But for now, this
- dnl will work till then.
-dnl AC_MSG_CHECKING(for the simulator installed with the compiler libraries)
- dnl Transform the name of the compiler to it's cross variant, unless
- dnl CXX is set. This is also what CXX gets set to in the generated
- dnl Makefile.
- CROSS_GCC=`echo gcc | sed -e "s/^/$target/"`
-
- dnl Get G++'s full path to libgcc.a
-changequote(,)
- gccpath=`${CROSS_GCC} --print-libgcc | sed -e 's:[a-z0-9A-Z\.\-]*/libgcc.a::' -e 's:lib/gcc-lib/::'`lib
-changequote([,])
- if test -f $gccpath/libsim.a -o -f $gccpath/libsim.so ; then
- ac_cv_c_simlib="$gccpath/"
- SIMLIB="-L${ac_cv_c_simlib}"
- AC_MSG_RESULT(${ac_cv_c_simlib})
- else
- AM_CONDITIONAL(PSIM, test x$psim = xno)
- SIMLIB=""
- AC_MSG_RESULT(none)
-dnl ac_cv_c_simlib=none
- fi
-fi
-AC_SUBST(SIMLIB)
-])
-
-dnl ====================================================================
-dnl Find the libiberty library.
-AC_DEFUN(CYG_AC_PATH_LIBIBERTY, [
-AC_MSG_CHECKING(for the libiberty library in the build tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-AC_CACHE_VAL(ac_cv_c_libib,[
-for i in $dirlist; do
- if test -f "$i/libiberty/Makefile" ; then
- ac_cv_c_libib=`(cd $i/libiberty/; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_libib}" != x; then
- LIBIBERTY="-L${ac_cv_c_libib}"
- AC_MSG_RESULT(${ac_cv_c_libib})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(LIBIBERTY)
-])
-
-dnl ====================================================================
-AC_DEFUN(CYG_AC_PATH_DEVO, [
-AC_MSG_CHECKING(for devo headers in the source tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-AC_CACHE_VAL(ac_cv_c_devoh,[
-for i in $dirlist; do
- if test -f "${srcdir}/$i/include/remote-sim.h" ; then
- ac_cv_c_devoh=`(cd ${srcdir}/$i/include; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_devoh}" != x; then
- DEVOHDIR="-I${ac_cv_c_devoh}"
- AC_MSG_RESULT(${ac_cv_c_devoh})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(DEVOHDIR)
-])
-
-dnl ====================================================================
-dnl find the IDE library and headers.
-AC_DEFUN(CYG_AC_PATH_IDE, [
-AC_MSG_CHECKING(for IDE headers in the source tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-IDEHDIR=
-IDELIB=
-AC_CACHE_VAL(ac_cv_c_ideh,[
-for i in $dirlist; do
- if test -f "${srcdir}/$i/libide/src/event.h" ; then
- ac_cv_c_ideh=`(cd ${srcdir}/$i/libide/src; pwd)`;
- fi
-done
-])
-if test x"${ac_cv_c_ideh}" != x; then
- IDEHDIR="-I${ac_cv_c_ideh}"
- AC_MSG_RESULT(${ac_cv_c_ideh})
-else
- AC_MSG_RESULT(none)
-fi
-
-AC_MSG_CHECKING(for LIBIDE TCL headers in the source tree)
-AC_CACHE_VAL(ac_cv_c_idetclh,[
-for i in $dirlist; do
- if test -f "${srcdir}/$i/libidetcl/src/idetcl.h" ; then
- ac_cv_c_idetclh=`(cd ${srcdir}/$i/libidetcl/src; pwd)`;
- fi
-done
-])
-if test x"${ac_cv_c_idetclh}" != x; then
- IDEHDIR="${IDEHDIR} -I${ac_cv_c_idetclh}"
- AC_MSG_RESULT(${ac_cv_c_idetclh})
-else
- AC_MSG_RESULT(none)
-fi
-
-AC_MSG_CHECKING(for IDE headers in the build tree)
-AC_CACHE_VAL(ac_cv_c_ideh2,[
-for i in $dirlist; do
- if test -f "$i/libide/src/Makefile" ; then
- ac_cv_c_ideh2=`(cd $i/libide/src; pwd)`;
- fi
-done
-])
-if test x"${ac_cv_c_ideh2}" != x; then
- IDEHDIR="${IDEHDIR} -I${ac_cv_c_ideh2}"
- AC_MSG_RESULT(${ac_cv_c_ideh2})
-else
- AC_MSG_RESULT(none)
-fi
-
-dnl look for the library
-AC_MSG_CHECKING(for IDE library)
-AC_CACHE_VAL(ac_cv_c_idelib,[
-if test x"${ac_cv_c_idelib}" = x ; then
- for i in $dirlist; do
- if test -f "$i/libide/src/Makefile" ; then
- ac_cv_c_idelib=`(cd $i/libide/src; pwd)`
- break
- fi
- done
-fi])
-if test x"${ac_cv_c_idelib}" != x ; then
- IDELIB="-L${ac_cv_c_idelib}"
- AC_MSG_RESULT(${ac_cv_c_idelib})
-else
- AC_MSG_RESULT(none)
-fi
-
-dnl find libiddetcl.a if it exists
-AC_MSG_CHECKING(for IDE TCL library)
-AC_CACHE_VAL(ac_cv_c_idetcllib,[
-if test x"${ac_cv_c_idetcllib}" = x ; then
- for i in $dirlist; do
- if test -f "$i/libidetcl/src/Makefile" ; then
- ac_cv_c_idetcllib=`(cd $i/libidetcl/src; pwd)`
- break
- fi
- done
-fi
-])
-if test x"${ac_cv_c_idetcllib}" != x ; then
- IDELIB="${IDELIB} -L${ac_cv_c_idetcllib}"
- IDETCLLIB="-lidetcl"
- AC_MSG_RESULT(${ac_cv_c_idetcllib})
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(IDEHDIR)
-AC_SUBST(IDELIB)
-AC_SUBST(IDETCLLIB)
-])
-
-dnl ====================================================================
-dnl Find all the ILU headers and libraries
-AC_DEFUN(CYG_AC_PATH_ILU, [
-AC_MSG_CHECKING(for ILU kernel headers in the source tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-AC_CACHE_VAL(ac_cv_c_iluh,[
-for i in $dirlist; do
- if test -f "${srcdir}/$i/ilu/runtime/kernel/method.h" ; then
- ac_cv_c_iluh=`(cd ${srcdir}/$i/ilu/runtime/kernel; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_iluh}" != x; then
- ILUHDIR="-I${ac_cv_c_iluh}"
- AC_MSG_RESULT(${ac_cv_c_iluh})
-else
- AC_MSG_RESULT(none)
-fi
-
-AC_MSG_CHECKING(for ILU kernel headers in the build tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-AC_CACHE_VAL(ac_cv_c_iluh5,[
-for i in $dirlist; do
- if test -f "$i/ilu/runtime/kernel/iluconf.h" ; then
- ac_cv_c_iluh5=`(cd $i/ilu/runtime/kernel; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_iluh5}" != x; then
- ILUHDIR="${ILUHDIR} -I${ac_cv_c_iluh5}"
- AC_MSG_RESULT(${ac_cv_c_iluh5})
-else
- AC_MSG_RESULT(none)
-fi
-
-AC_MSG_CHECKING(for ILU C++ headers in the source tree)
-AC_CACHE_VAL(ac_cv_c_iluh2,[
-for i in $dirlist; do
- if test -f "${srcdir}/$i/ilu/stubbers/cpp/resource.h" ; then
- ac_cv_c_iluh2=`(cd ${srcdir}/$i/ilu/stubbers/cpp; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_iluh2}" != x; then
- ILUHDIR="${ILUHDIR} -I${ac_cv_c_iluh2}"
- AC_MSG_RESULT(${ac_cv_c_iluh2})
-else
- AC_MSG_RESULT(none)
-fi
-
-AC_MSG_CHECKING(for ILU C headers)
-AC_CACHE_VAL(ac_cv_c_iluh3,[
-for i in $dirlist; do
- if test -f "${srcdir}/$i/ilu/stubbers/c/resource.h" ; then
- ac_cv_c_iluh3=`(cd ${srcdir}/$i/ilu/stubbers/c ; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_iluh3}" != x; then
- ILUHDIR="${ILUHDIR} -I${ac_cv_c_iluh3}"
- AC_MSG_RESULT(${ac_cv_c_iluh3})
-else
- AC_MSG_RESULT(none)
-fi
-
-AC_MSG_CHECKING(for ILU C runtime headers)
-AC_CACHE_VAL(ac_cv_c_iluh4,[
-for i in $dirlist; do
- if test -f "${srcdir}/$i/ilu/runtime/c/ilucstub.h" ; then
- ac_cv_c_iluh4=`(cd ${srcdir}/$i/ilu/runtime/c ; pwd)`
- fi
-done
-])
-if test x"${ac_cv_c_iluh4}" != x; then
- ILUHDIR="${ILUHDIR} -I${ac_cv_c_iluh4}"
- AC_MSG_RESULT(${ac_cv_c_iluh4})
-else
- AC_MSG_RESULT(none)
-fi
-
-AC_CACHE_VAL(ac_cv_c_ilupath,[
-for i in $dirlist; do
- if test -f "$i/ilu/Makefile" ; then
- ac_cv_c_ilupath=`(cd $i/ilu; pwd)`
- break
- fi
-done
-])
-ILUTOP=${ac_cv_c_ilupath}
-
-AC_MSG_CHECKING(for the ILU library in the build tree)
-AC_CACHE_VAL(ac_cv_c_ilulib,[
-if test -f "$ac_cv_c_ilupath/runtime/kernel/Makefile" ; then
- ac_cv_c_ilulib=`(cd $ac_cv_c_ilupath/runtime/kernel; pwd)`
- AC_MSG_RESULT(found ${ac_cv_c_ilulib}/libilu.a)
-else
- AC_MSG_RESULT(no)
-fi])
-
-AC_MSG_CHECKING(for the ILU C++ bindings library in the build tree)
-AC_CACHE_VAL(ac_cv_c_ilulib2,[
-if test -f "$ac_cv_c_ilupath/runtime/cpp/Makefile" ; then
- ac_cv_c_ilulib2=`(cd $ac_cv_c_ilupath/runtime/cpp; pwd)`
- AC_MSG_RESULT(found ${ac_cv_c_ilulib2}/libilu-c++.a)
-else
- AC_MSG_RESULT(no)
-fi])
-
-AC_MSG_CHECKING(for the ILU C bindings library in the build tree)
-AC_CACHE_VAL(ac_cv_c_ilulib3,[
-if test -f "$ac_cv_c_ilupath/runtime/c/Makefile" ; then
- ac_cv_c_ilulib3=`(cd $ac_cv_c_ilupath/runtime/c; pwd)`
- AC_MSG_RESULT(found ${ac_cv_c_ilulib3}/libilu-c.a)
-else
- AC_MSG_RESULT(no)
-fi])
-
-AC_MSG_CHECKING(for the ILU Tk bindings library in the build tree)
-AC_CACHE_VAL(ac_cv_c_ilulib4,[
-if test -f "$ac_cv_c_ilupath/runtime/mainloop/Makefile" ; then
- ac_cv_c_ilulib4=`(cd $ac_cv_c_ilupath/runtime/mainloop; pwd)`
- AC_MSG_RESULT(found ${ac_cv_c_ilulib4}/libilu-tk.a)
-else
- AC_MSG_RESULT(no)
-fi])
-
-if test x"${ac_cv_c_ilulib}" = x -a x"${ac_cv_c_ilulib2}" = x; then
- ILUHDIR=""
-fi
-
-if test x"${ac_cv_c_ilulib}" != x -a x"${ac_cv_c_ilulib2}" != x; then
- ILULIB="-L${ac_cv_c_ilulib} -L${ac_cv_c_ilulib2} -L${ac_cv_c_ilulib3} -L${ac_cv_c_ilulib4}"
-else
- ILULIB=""
-fi
-
-if test x"${ILULIB}" = x; then
- AC_MSG_CHECKING(for ILU libraries installed with the compiler)
- AC_CACHE_VAL(ac_cv_c_ilulib5,[
- NATIVE_GCC=`echo gcc | sed -e "${program_transform_name}"`
-
- dnl Get G++'s full path to it's libraries
- ac_cv_c_ilulib5=`${NATIVE_GCC} --print-libgcc | sed -e 's:lib/gcc-lib/.*::'`lib
- if test -f $ac_cv_c_ilulib5/libilu-c.a -o -f $ac_cv_c_ilulib5/libilu-c.so ; then
- if test x"${ILUHDIR}" = x; then
- ILUHDIR="-I${ac_cv_c_ilulib5}/../include"
- fi
- ILULIB="-L${ac_cv_c_ilulib5}"
- AC_MSG_RESULT(${ac_cv_c_ilulib5})
- else
- ac_cv_c_ilulib=none
- AC_MSG_RESULT(none)
- fi
-fi])
-AC_SUBST(ILUHDIR)
-AC_SUBST(ILULIB)
-AC_SUBST(ILUTOP)
-])
-
-dnl ====================================================================
-dnl This defines the byte order for the host. We can't use
-dnl AC_C_BIGENDIAN, cause we want to create a config file and
-dnl substitue the real value, so the header files work right
-AC_DEFUN(CYG_AC_C_ENDIAN, [
-AC_MSG_CHECKING(to see if this is a little endian host)
-AC_CACHE_VAL(ac_cv_c_little_endian, [
-ac_cv_c_little_endian=unknown
-# See if sys/param.h defines the BYTE_ORDER macro.
-AC_TRY_COMPILE([#include <sys/types.h>
-#include <sys/param.h>], [
-#if !BYTE_ORDER || !_BIG_ENDIAN || !_LITTLE_ENDIAN
- bogus endian macros
-#endif], [# It does; now see whether it defined to _LITTLE_ENDIAN or not.
-AC_TRY_COMPILE([#include <sys/types.h>
-#include <sys/param.h>], [
-#if BYTE_ORDER != _LITTLE_ENDIAN
- not big endian
-#endif], ac_cv_c_little_endian=yes, ac_cv_c_little_endian=no)
-])
-if test ${ac_cv_c_little_endian} = unknown; then
-old_cflags=$CFLAGS
-CFLAGS=-g
-AC_TRY_RUN([
-main () {
- /* Are we little or big endian? From Harbison&Steele. */
- union
- {
- long l;
- char c[sizeof (long)];
- } u;
- u.l = 1;
- exit (u.c[0] == 1);
-}],
-ac_cv_c_little_endian=no,
-ac_cv_c_little_endian=yes,[
-dnl Yes, this is ugly, and only used for a canadian cross anyway. This
-dnl is just to keep configure from stopping here.
-case "${host}" in
-changequote(,)
- i[3456]86-*-*) ac_cv_c_little_endian=yes ;;
- sparc*-*-*) ac_cv_c_little_endian=no ;;
-changequote([,])
- *) AC_MSG_WARN(Can't cross compile this test) ;;
-esac])
-CFLAGS=$old_cflags
-fi])
-
-if test x"${ac_cv_c_little_endian}" = xyes; then
- AC_DEFINE(LITTLE_ENDIAN_HOST)
- ENDIAN="CYG_LSBFIRST";
-else
- ENDIAN="CYG_MSBFIRST";
-fi
-AC_MSG_RESULT(${ac_cv_c_little_endian})
-AC_SUBST(ENDIAN)
-])
-
-dnl ====================================================================
-dnl Look for the path to libgcc, so we can use it to directly link
-dnl in libgcc.a with LD.
-AC_DEFUN(CYG_AC_PATH_LIBGCC,
-[AC_MSG_CHECKING([Looking for the path to libgcc.a])
-AC_LANG_SAVE
-AC_LANG_C
-
-dnl Get Gcc's full path to libgcc.a
-libgccpath=`${CC} --print-libgcc`
-
-dnl If we don't have a path with libgcc.a on the end, this isn't G++.
-if test `echo $libgccpath | sed -e 's:/.*/::'` = libgcc.a ; then
- ac_cv_prog_gcc=yes
-else
- ac_cv_prog_gcc=no
-fi
-
-dnl
-if test x"${ac_cv_prog_gcc}" = xyes ; then
- gccpath=`echo $libgccpath | sed -e 's:/libgcc.a::'`
- LIBGCC="-L${gccpath}"
- AC_MSG_RESULT(${gccpath})
-else
- LIBGCC=""
- AC_MSG_ERROR(Not using gcc)
-fi
-
-AC_LANG_RESTORE
-AC_SUBST(LIBGCC)
-])
-
-dnl ====================================================================
-dnl Ok, lets find the tcl source trees so we can use the headers
-dnl Warning: transition of version 9 to 10 will break this algorithm
-dnl because 10 sorts before 9. We also look for just tcl. We have to
-dnl be careful that we don't match stuff like tclX by accident.
-dnl the alternative search directory is involked by --with-tclinclude
-AC_DEFUN(CYG_AC_PATH_TCL, [
- CYG_AC_PATH_TCLH
- CYG_AC_PATH_TCLCONFIG
- CYG_AC_LOAD_TCLCONFIG
-])
-AC_DEFUN(CYG_AC_PATH_TCLH, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-no_tcl=true
-AC_MSG_CHECKING(for Tcl headers in the source tree)
-AC_ARG_WITH(tclinclude, [ --with-tclinclude directory where tcl headers are], with_tclinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_tclh,[
-dnl first check to see if --with-tclinclude was specified
-if test x"${with_tclinclude}" != x ; then
- if test -f ${with_tclinclude}/tcl.h ; then
- ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
- elif test -f ${with_tclinclude}/generic/tcl.h ; then
- ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
- else
- AC_MSG_ERROR([${with_tclinclude} directory doesn't contain headers])
- fi
-fi
-
-dnl next check if it came with Tcl configuration file
-if test x"${ac_cv_c_tclconfig}" != x ; then
- for i in $dirlist; do
- if test -f $ac_cv_c_tclconfig/$i/generic/tcl.h ; then
- ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/$i/generic; pwd)`
- break
- fi
- done
-fi
-
-dnl next check in private source directory
-dnl since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tclh}" = x ; then
- dnl find the top level Tcl source directory
- for i in $dirlist; do
- if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
- tclpath=$srcdir/$i
- break
- fi
- done
-
- dnl find the exact Tcl source dir. We do it this way, cause there
- dnl might be multiple version of Tcl, and we want the most recent one.
- for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
- if test -f $i/generic/tcl.h ; then
- ac_cv_c_tclh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-
-dnl check if its installed with the compiler
-if test x"${ac_cv_c_tclh}" = x ; then
- dnl Get the path to the compiler
- ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include
- if test -f $ccpath/tcl.h; then
- ac_cv_c_tclh=$ccpath
- fi
-fi
-
-dnl see if one is installed
-if test x"${ac_cv_c_tclh}" = x ; then
- AC_MSG_RESULT(none)
- AC_CHECK_HEADER(tcl.h, ac_cv_c_tclh=installed, ac_cv_c_tclh="")
-else
- AC_MSG_RESULT(${ac_cv_c_tclh})
-fi
-])
- TCLHDIR=""
-if test x"${ac_cv_c_tclh}" = x ; then
- AC_MSG_ERROR([Can't find any Tcl headers])
-fi
-if test x"${ac_cv_c_tclh}" != x ; then
- no_tcl=""
- if test x"${ac_cv_c_tclh}" != x"installed" ; then
- if test x"${CC}" = xcl ; then
- tmp="`cygpath --windows ${ac_cv_c_tclh}`"
- ac_cv_c_tclh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
- fi
- AC_MSG_RESULT(${ac_cv_c_tclh})
- TCLHDIR="-I${ac_cv_c_tclh}"
- fi
-fi
-
-AC_SUBST(TCLHDIR)
-])
-
-dnl ====================================================================
-dnl Ok, lets find the tcl configuration
-AC_DEFUN(CYG_AC_PATH_TCLCONFIG, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-dnl First, look for one uninstalled.
-dnl the alternative search directory is invoked by --with-tclconfig
-if test x"${no_tcl}" = x ; then
- dnl we reset no_tcl in case something fails here
- no_tcl=true
- AC_ARG_WITH(tclconfig, [ --with-tclconfig directory containing tcl configuration (tclConfig.sh)],
- with_tclconfig=${withval})
- AC_MSG_CHECKING([for Tcl configuration script])
- AC_CACHE_VAL(ac_cv_c_tclconfig,[
-
- dnl First check to see if --with-tclconfig was specified.
- if test x"${with_tclconfig}" != x ; then
- if test -f "${with_tclconfig}/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_tclconfig} directory doesn't contain tclConfig.sh])
- fi
- fi
-
- dnl next check if it came with Tcl configuration file in the source tree
- if test x"${ac_cv_c_tclconfig}" = x ; then
- for i in $dirlist; do
- if test -f $srcdir/$i/unix/tclConfig.sh ; then
- ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwd)`
- break
- fi
- done
- fi
- dnl check in a few other locations
- if test x"${ac_cv_c_tclconfig}" = x ; then
- dnl find the top level Tcl source directory
- for i in $dirlist; do
- if test -n "`ls -dr $i/tcl* 2>/dev/null`" ; then
- tclconfpath=$i
- break
- fi
- done
-
- dnl find the exact Tcl dir. We do it this way, cause there
- dnl might be multiple version of Tcl, and we want the most recent one.
- for i in `ls -dr $tclconfpath/tcl* 2>/dev/null ` ; do
- if test -f $i/unix/tclConfig.sh ; then
- ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
- break
- fi
- done
- fi
-
- dnl Check to see if it's installed. We have to look in the $CC path
- dnl to find it, cause our $prefix may not match the compilers.
- if test x"${ac_cv_c_tclconfig}" = x ; then
- dnl Get the path to the compiler
- ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib
- if test -f $ccpath/tclConfig.sh; then
- ac_cv_c_tclconfig=$ccpath
- fi
- fi
- ]) dnl end of cache_val
-
- if test x"${ac_cv_c_tclconfig}" = x ; then
- TCLCONFIG=""
- AC_MSG_WARN(Can't find Tcl configuration definitions)
- else
- no_tcl=""
- TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
- AC_MSG_RESULT(${TCLCONFIG})
- fi
-fi
-AC_SUBST(TCLCONFIG)
-])
-
-dnl Defined as a separate macro so we don't have to cache the values
-dnl from PATH_TCLCONFIG (because this can also be cached).
-AC_DEFUN(CYG_AC_LOAD_TCLCONFIG, [
- . $TCLCONFIG
-
-dnl AC_SUBST(TCL_VERSION)
-dnl AC_SUBST(TCL_MAJOR_VERSION)
-dnl AC_SUBST(TCL_MINOR_VERSION)
-dnl AC_SUBST(TCL_CC)
- AC_SUBST(TCL_DEFS)
-
-dnl not used, don't export to save symbols
- AC_SUBST(TCL_LIB_FILE)
- AC_SUBST(TCL_LIB_FULL_PATH)
- AC_SUBST(TCL_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_PREFIX)
-
- AC_SUBST(TCL_CFLAGS)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_EXEC_PREFIX)
-
- AC_SUBST(TCL_SHLIB_CFLAGS)
- AC_SUBST(TCL_SHLIB_LD)
-dnl don't export, not used outside of configure
-dnl AC_SUBST(TCL_SHLIB_LD_LIBS)
-dnl AC_SUBST(TCL_SHLIB_SUFFIX)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_DL_LIBS)
- AC_SUBST(TCL_LD_FLAGS)
- AC_SUBST(TCL_LD_SEARCH_FLAGS)
-dnl don't export, not used outside of configure
-dnl AC_SUBST(TCL_COMPAT_OBJS)
- AC_SUBST(TCL_RANLIB)
- AC_SUBST(TCL_BUILD_LIB_SPEC)
- AC_SUBST(TCL_LIB_SPEC)
- AC_SUBST(TCL_BIN_DIR)
-dnl AC_SUBST(TCL_LIB_VERSIONS_OK)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_SHARED_LIB_SUFFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TCL_UNSHARED_LIB_SUFFIX)
-])
-
-dnl ====================================================================
-AC_DEFUN(CYG_AC_PATH_TK, [
- CYG_AC_PATH_TKH
- CYG_AC_PATH_TKCONFIG
- CYG_AC_LOAD_TKCONFIG
-])
-AC_DEFUN(CYG_AC_PATH_TKH, [
-#
-# Ok, lets find the tk source trees so we can use the headers
-# If the directory (presumably symlink) named "tk" exists, use that one
-# in preference to any others. Same logic is used when choosing library
-# and again with Tcl. The search order is the best place to look first, then in
-# decreasing significance. The loop breaks if the trigger file is found.
-# Note the gross little conversion here of srcdir by cd'ing to the found
-# directory. This converts the path from a relative to an absolute, so
-# recursive cache variables for the path will work right. We check all
-# the possible paths in one loop rather than many separate loops to speed
-# things up.
-# the alternative search directory is involked by --with-tkinclude
-#
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-no_tk=true
-AC_MSG_CHECKING(for Tk headers in the source tree)
-AC_ARG_WITH(tkinclude, [ --with-tkinclude directory where tk headers are], with_tkinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_tkh,[
-dnl first check to see if --with-tkinclude was specified
-if test x"${with_tkinclude}" != x ; then
- if test -f ${with_tkinclude}/tk.h ; then
- ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
- elif test -f ${with_tkinclude}/generic/tk.h ; then
- ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
- else
- AC_MSG_ERROR([${with_tkinclude} directory doesn't contain headers])
- fi
-fi
-
-dnl next check if it came with Tk configuration file
-if test x"${ac_cv_c_tkconfig}" != x ; then
- for i in $dirlist; do
- if test -f $ac_cv_c_tkconfig/$i/generic/tk.h ; then
- ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/$i/generic; pwd)`
- break
- fi
- done
-fi
-
-dnl next check in private source directory
-dnl since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tkh}" = x ; then
- dnl find the top level Tk source directory
- for i in $dirlist; do
- if test -n "`ls -dr $srcdir/$i/tk* 2>/dev/null`" ; then
- tkpath=$srcdir/$i
- break
- fi
- done
-
- dnl find the exact Tk source dir. We do it this way, cause there
- dnl might be multiple version of Tk, and we want the most recent one.
- for i in `ls -dr $tkpath/tk* 2>/dev/null ` ; do
- if test -f $i/generic/tk.h ; then
- ac_cv_c_tkh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-
-dnl see if one is installed
-if test x"${ac_cv_c_tkh}" = x ; then
- AC_MSG_RESULT(none)
- dnl Get the path to the compiler. We do it this way instead of using
- dnl AC_CHECK_HEADER, cause this doesn't depend in having X configured.
- ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include
- if test -f $ccpath/tk.h; then
- ac_cv_c_tkh=$ccpath
- fi
-else
- AC_MSG_RESULT(${ac_cv_c_tkh})
-fi
-])
- TKHDIR=""
-if test x"${ac_cv_c_tkh}" = x ; then
- AC_MSG_ERROR([Can't find any Tk headers])
-fi
-if test x"${ac_cv_c_tkh}" != x ; then
- no_tk=""
- if test x"${ac_cv_c_tkh}" != x"installed" ; then
- if test x"${CC}" = xcl ; then
- tmp="`cygpath --windows ${ac_cv_c_tkh}`"
- ac_cv_c_tkh="`echo $tmp | sed -e s#\\\\\\\\#/#g`"
- fi
- AC_MSG_RESULT([found in ${ac_cv_c_tkh}])
- TKHDIR="-I${ac_cv_c_tkh}"
- fi
-fi
-
-AC_SUBST(TKHDIR)
-])
-
-AC_DEFUN(CYG_AC_PATH_TKCONFIG, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-dnl First, look for one uninstalled.
-dnl the alternative search directory is invoked by --with-tkconfig
-if test x"${no_tk}" = x ; then
- dnl we reset no_tk in case something fails here
- no_tk=true
- AC_ARG_WITH(tkconfig, [ --with-tkconfig directory containing tk configuration (tkConfig.sh)],
- with_tkconfig=${withval})
- AC_MSG_CHECKING([for Tk configuration script])
- AC_CACHE_VAL(ac_cv_c_tkconfig,[
-
- dnl First check to see if --with-tkconfig was specified.
- if test x"${with_tkconfig}" != x ; then
- if test -f "${with_tkconfig}/tkConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_tkconfig} directory doesn't contain tkConfig.sh])
- fi
- fi
-
- dnl next check if it came with Tk configuration file in the source tree
- if test x"${ac_cv_c_tkconfig}" = x ; then
- for i in $dirlist; do
- if test -f $srcdir/$i/unix/tkConfig.sh ; then
- ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)`
- break
- fi
- done
- fi
- dnl check in a few other locations
- if test x"${ac_cv_c_tkconfig}" = x ; then
- dnl find the top level Tk source directory
- for i in $dirlist; do
- if test -n "`ls -dr $i/tk* 2>/dev/null`" ; then
- tkconfpath=$i
- break
- fi
- done
-
- dnl find the exact Tk dir. We do it this way, cause there
- dnl might be multiple version of Tk, and we want the most recent one.
- for i in `ls -dr $tkconfpath/tk* 2>/dev/null ` ; do
- if test -f $i/unix/tkConfig.sh ; then
- ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
- break
- fi
- done
- fi
-
- dnl Check to see if it's installed. We have to look in the $CC path
- dnl to find it, cause our $prefix may not match the compilers.
- if test x"${ac_cv_c_tkconfig}" = x ; then
- dnl Get the path to the compiler
- ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib
- if test -f $ccpath/tkConfig.sh; then
- ac_cv_c_tkconfig=$ccpath
- fi
- fi
- ]) dnl end of cache_val
-
- if test x"${ac_cv_c_tkconfig}" = x ; then
- TKCONFIG=""
- AC_MSG_WARN(Can't find Tk configuration definitions)
- else
- no_tk=""
- TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
- AC_MSG_RESULT(${TKCONFIG})
- fi
-fi
-AC_SUBST(TKCONFIG)
-])
-
-dnl Defined as a separate macro so we don't have to cache the values
-dnl from PATH_TKCONFIG (because this can also be cached).
-AC_DEFUN(CYG_AC_LOAD_TKCONFIG, [
- if test -f "$TKCONFIG" ; then
- . $TKCONFIG
- fi
-
- AC_SUBST(TK_VERSION)
-dnl not actually used, don't export to save symbols
-dnl AC_SUBST(TK_MAJOR_VERSION)
-dnl AC_SUBST(TK_MINOR_VERSION)
- AC_SUBST(TK_DEFS)
-
-dnl not used, don't export to save symbols
- AC_SUBST(TK_LIB_FILE)
- AC_SUBST(TK_LIB_FULL_PATH)
- AC_SUBST(TK_LIBS)
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TK_PREFIX)
-
-dnl not used, don't export to save symbols
-dnl AC_SUBST(TK_EXEC_PREFIX)
- AC_SUBST(TK_BUILD_INCLUDES)
- AC_SUBST(TK_XINCLUDES)
- AC_SUBST(TK_XLIBSW)
- AC_SUBST(TK_BUILD_LIB_SPEC)
- AC_SUBST(TK_LIB_SPEC)
-])
-
-dnl ====================================================================
-dnl Ok, lets find the itcl source trees so we can use the headers
-dnl the alternative search directory is involked by --with-itclinclude
-AC_DEFUN(CYG_AC_PATH_ITCL, [
- CYG_AC_PATH_ITCLH
- CYG_AC_PATH_ITCLLIB
- CYG_AC_PATH_ITCLSH
- CYG_AC_PATH_ITCLMKIDX
-])
-AC_DEFUN(CYG_AC_PATH_ITCLH, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-no_itcl=true
-AC_MSG_CHECKING(for Itcl headers in the source tree)
-AC_ARG_WITH(itclinclude, [ --with-itclinclude directory where itcl headers are], with_itclinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_itclh,[
-dnl first check to see if --with-itclinclude was specified
-if test x"${with_itclinclude}" != x ; then
- if test -f ${with_itclinclude}/itcl.h ; then
- ac_cv_c_itclh=`(cd ${with_itclinclude}; pwd)`
- elif test -f ${with_itclinclude}/src/itcl.h ; then
- ac_cv_c_itclh=`(cd ${with_itclinclude}/src; pwd)`
- else
- AC_MSG_ERROR([${with_itclinclude} directory doesn't contain headers])
- fi
-fi
-
-dnl next check if it came with Itcl configuration file
-if test x"${ac_cv_c_itclconfig}" != x ; then
- for i in $dirlist; do
- if test -f $ac_cv_c_itclconfig/$i/src/itcl.h ; then
- ac_cv_c_itclh=`(cd $ac_cv_c_itclconfig/$i/src; pwd)`
- break
- fi
- done
-fi
-
-dnl next check in private source directory
-dnl since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_itclh}" = x ; then
- dnl find the top level Itcl source directory
- for i in $dirlist; do
- if test -n "`ls -dr $srcdir/$i/itcl* 2>/dev/null`" ; then
- itclpath=$srcdir/$i
- break
- fi
- done
-
- dnl find the exact Itcl source dir. We do it this way, cause there
- dnl might be multiple version of Itcl, and we want the most recent one.
- for i in `ls -dr $itclpath/itcl* 2>/dev/null ` ; do
- if test -f $i/src/itcl.h ; then
- ac_cv_c_itclh=`(cd $i/src; pwd)`
- break
- fi
- done
-fi
-
-dnl see if one is installed
-if test x"${ac_cv_c_itclh}" = x ; then
- AC_MSG_RESULT(none)
- AC_CHECK_HEADER(itcl.h, ac_cv_c_itclh=installed, ac_cv_c_itclh="")
-else
- AC_MSG_RESULT(${ac_cv_c_itclh})
-fi
-])
- ITCLHDIR=""
-if test x"${ac_cv_c_itclh}" = x ; then
- AC_MSG_ERROR([Can't find any Itcl headers])
-fi
-if test x"${ac_cv_c_itclh}" != x ; then
- no_itcl=""
- if test x"${ac_cv_c_itclh}" != x"installed" ; then
- AC_MSG_RESULT(${ac_cv_c_itclh})
- ITCLHDIR="-I${ac_cv_c_itclh}"
- fi
-fi
-
-AC_SUBST(ITCLHDIR)
-])
-
-dnl Ok, lets find the itcl library
-dnl First, look for one uninstalled.
-dnl the alternative search directory is invoked by --with-itcllib
-AC_DEFUN(CYG_AC_PATH_ITCLLIB, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-if test x"${no_itcl}" = x ; then
- dnl we reset no_itcl incase something fails here
- no_itcl=true
- AC_ARG_WITH(itcllib,
- [ --with-itcllib directory where the itcl library is],
- with_itcllib=${withval})
- AC_MSG_CHECKING([for Itcl library])
- AC_CACHE_VAL(ac_cv_c_itcllib,[
- dnl First check to see if --with-itcllib was specified.
- if test x"${with_itcllib}" != x ; then
- if test -f "${with_itcllib}/libitcl$TCL_SHARED_LIB_SUFFIX" ; then
- ac_cv_c_itcllib=`(cd ${with_itcllib}; pwd)`/libitcl$TCL_SHARED_LIB_SUFFIX
- else
- if test -f "${with_itcllib}/libitcl$TCL_UNSHARED_LIB_SUFFIX"; then
- ac_cv_c_itcllib=`(cd ${with_itcllib}; pwd)`/libitcl$TCL_UNSHARED_LIB_SUFFIX
- fi
- fi
- fi
- dnl then check for a Itcl library. Since these are uninstalled,
- dnl use the simple lib name root.
- if test x"${ac_cv_c_itcllib}" = x ; then
- dnl find the top level Itcl build directory
- for i in $dirlist; do
- if test -n "`ls -dr $i/itcl* 2>/dev/null`" ; then
- itclpath=$i/itcl
- break
- fi
- done
- dnl Itcl 7.5 and greater puts library in subdir. Look there first.
- if test -f "$itclpath/src/libitcl.$TCL_SHLIB_SUFFIX" ; then
- ac_cv_c_itcllib=`(cd $itclpath/src; pwd)`
- elif test -f "$itclpath/src/libitcl.a"; then
- ac_cv_c_itcllib=`(cd $itclpath/src; pwd)`
- fi
- fi
- dnl check in a few other private locations
- if test x"${ac_cv_c_itcllib}" = x ; then
- for i in ${dirlist}; do
- if test -n "`ls -dr ${srcdir}/$i/itcl* 2>/dev/null`" ; then
- itclpath=${srcdir}/$i
- break
- fi
- done
- for i in `ls -dr ${itclpath}/itcl* 2>/dev/null` ; do
- dnl Itcl 7.5 and greater puts library in subdir. Look there first.
- if test -f "$i/src/libitcl$TCL_SHLIB_SUFFIX" ; then
- ac_cv_c_itcllib=`(cd $i/src; pwd)`
- break
- elif test -f "$i/src/libitcl.a"; then
- ac_cv_c_itcllib=`(cd $i/src; pwd)`
- break
- fi
- done
- fi
-
- dnl see if one is conveniently installed with the compiler
- if test x"${ac_cv_c_itcllib}" = x ; then
- dnl Get the path to the compiler
- ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/lib
- dnl Itcl 7.5 and greater puts library in subdir. Look there first.
- if test -f "${ccpath}/libitcl$TCL_SHLIB_SUFFIX" ; then
- ac_cv_c_itcllib=`(cd ${ccpath}; pwd)`
- elif test -f "${ccpath}/libitcl.a"; then
- ac_cv_c_itcllib=`(cd ${ccpath}; pwd)`
- fi
- fi
- ])
- if test x"${ac_cv_c_itcllib}" = x ; then
- ITCLLIB=""
- AC_MSG_WARN(Can't find Itcl library)
- else
- ITCLLIB="-L${ac_cv_c_itcllib}"
- AC_MSG_RESULT(${ac_cv_c_itcllib})
- no_itcl=""
- fi
-fi
-
-AC_PROVIDE([$0])
-AC_SUBST(ITCLLIB)
-])
-
-
-dnl ====================================================================
-dnl Ok, lets find the itcl source trees so we can use the itcl_sh script
-dnl the alternative search directory is involked by --with-itclinclude
-AC_DEFUN(CYG_AC_PATH_ITCLSH, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-no_itcl=true
-AC_MSG_CHECKING(for the itcl_sh script)
-AC_ARG_WITH(itclinclude, [ --with-itclinclude directory where itcl headers are], with_itclinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_itclsh,[
-dnl first check to see if --with-itclinclude was specified
-if test x"${with_itclinclude}" != x ; then
- if test -f ${with_itclinclude}/itcl_sh ; then
- ac_cv_c_itclsh=`(cd ${with_itclinclude}; pwd)`
- elif test -f ${with_itclinclude}/src/itcl_sh ; then
- ac_cv_c_itclsh=`(cd ${with_itclinclude}/src; pwd)`
- else
- AC_MSG_ERROR([${with_itclinclude} directory doesn't contain itcl_sh])
- fi
-fi
-
-dnl next check in private source directory
-dnl since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_itclsh}" = x ; then
- dnl find the top level Itcl source directory
- for i in $dirlist; do
- if test -n "`ls -dr $srcdir/$i/itcl* 2>/dev/null`" ; then
- itclpath=$srcdir/$i
- break
- fi
- done
-
- dnl find the exact Itcl source dir. We do it this way, cause there
- dnl might be multiple version of Itcl, and we want the most recent one.
- for i in `ls -dr $itclpath/itcl* 2>/dev/null ` ; do
- if test -f $i/src/itcl_sh ; then
- ac_cv_c_itclsh=`(cd $i/src; pwd)`/itcl_sh
- break
- fi
- done
-fi
-
-dnl see if one is installed
-if test x"${ac_cv_c_itclsh}" = x ; then
- AC_MSG_RESULT(none)
- AC_PATH_PROG(ac_cv_c_itclsh, itcl_sh)
-else
- AC_MSG_RESULT(${ac_cv_c_itclsh})
-fi
-])
-
-if test x"${ac_cv_c_itclsh}" = x ; then
- AC_MSG_ERROR([Can't find the itcl_sh script])
-fi
-if test x"${ac_cv_c_itclsh}" != x ; then
- no_itcl=""
- AC_MSG_RESULT(${ac_cv_c_itclsh})
- ITCLSH="${ac_cv_c_itclsh}"
-fi
-AC_SUBST(ITCLSH)
-])
-
-
-dnl ====================================================================
-dnl Ok, lets find the itcl source trees so we can use the itcl_sh script
-dnl the alternative search directory is involked by --with-itclinclude
-AC_DEFUN(CYG_AC_PATH_ITCLMKIDX, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-no_itcl=true
-AC_MSG_CHECKING(for itcl_mkindex.tcl script)
-AC_ARG_WITH(itclinclude, [ --with-itclinclude directory where itcl headers are], with_itclinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_itclmkidx,[
-dnl first check to see if --with-itclinclude was specified
-if test x"${with_itclinclude}" != x ; then
- if test -f ${with_itclinclude}/itcl_sh ; then
- ac_cv_c_itclmkidx=`(cd ${with_itclinclude}; pwd)`
- elif test -f ${with_itclinclude}/src/itcl_sh ; then
- ac_cv_c_itclmkidx=`(cd ${with_itclinclude}/src; pwd)`
- else
- AC_MSG_ERROR([${with_itclinclude} directory doesn't contain itcl_sh])
- fi
-fi
-
-dnl next check in private source directory
-dnl since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_itclmkidx}" = x ; then
- dnl find the top level Itcl source directory
- for i in $dirlist; do
- if test -n "`ls -dr $srcdir/$i/itcl* 2>/dev/null`" ; then
- itclpath=$srcdir/$i
- break
- fi
- done
-
- dnl find the exact Itcl source dir. We do it this way, cause there
- dnl might be multiple version of Itcl, and we want the most recent one.
- for i in `ls -dr $itclpath/itcl* 2>/dev/null ` ; do
- if test -f $i/library/itcl_mkindex.tcl ; then
- ac_cv_c_itclmkidx=`(cd $i/library; pwd)`/itcl_mkindex.tcl
- break
- fi
- done
-fi
-if test x"${ac_cv_c_itclmkidx}" = x ; then
- dnl Get the path to the compiler
- ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/share
- dnl Itcl 7.5 and greater puts library in subdir. Look there first.
- for i in `ls -dr $ccpath/itcl* 2>/dev/null ` ; do
- if test -f $i/itcl_mkindex.tcl ; then
- ac_cv_c_itclmkidx=`(cd $i; pwd)`/itcl_mkindex.tcl
- break
- fi
- done
-fi
-])
-
-if test x"${ac_cv_c_itclmkidx}" = x ; then
- AC_MSG_ERROR([Can't find the itcl_mkindex.tcl script])
-fi
-if test x"${ac_cv_c_itclmkidx}" != x ; then
- no_itcl=""
- AC_MSG_RESULT(${ac_cv_c_itclmkidx})
- ITCLMKIDX="${ac_cv_c_itclmkidx}"
-else
- AC_MSG_RESULT(none)
-fi
-AC_SUBST(ITCLMKIDX)
-])
-
-dnl ====================================================================
-dnl Ok, lets find the tix source trees so we can use the headers
-dnl the alternative search directory is involked by --with-tixinclude
-AC_DEFUN(CYG_AC_PATH_TIX, [
- CYG_AC_PATH_TIXH
- CYG_AC_PATH_TIXLIB
-])
-AC_DEFUN(CYG_AC_PATH_TIXH, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-no_tix=true
-AC_MSG_CHECKING(for Tix headers in the source tree)
-AC_ARG_WITH(tixinclude, [ --with-tixinclude directory where tix headers are], with_tixinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_tixh,[
-dnl first check to see if --with-tixinclude was specified
-if test x"${with_tixinclude}" != x ; then
- if test -f ${with_tixinclude}/tix.h ; then
- ac_cv_c_tixh=`(cd ${with_tixinclude}; pwd)`
- elif test -f ${with_tixinclude}/generic/tix.h ; then
- ac_cv_c_tixh=`(cd ${with_tixinclude}/generic; pwd)`
- else
- AC_MSG_ERROR([${with_tixinclude} directory doesn't contain headers])
- fi
-fi
-
-dnl next check if it came with Tix configuration file
-if test x"${ac_cv_c_tixconfig}" != x ; then
- for i in $dirlist; do
- if test -f $ac_cv_c_tixconfig/$i/generic/tix.h ; then
- ac_cv_c_tixh=`(cd $ac_cv_c_tixconfig/$i/generic; pwd)`
- break
- fi
- done
-fi
-
-dnl next check in private source directory
-dnl since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_tixh}" = x ; then
- dnl find the top level Tix source directory
- for i in $dirlist; do
- if test -n "`ls -dr $srcdir/$i/tix* 2>/dev/null`" ; then
- tixpath=$srcdir/$i
- break
- fi
- done
-
- dnl find the exact Tix source dir. We do it this way, cause there
- dnl might be multiple version of Tix, and we want the most recent one.
- for i in `ls -dr $tixpath/tix* 2>/dev/null ` ; do
- if test -f $i/generic/tix.h ; then
- ac_cv_c_tixh=`(cd $i/generic; pwd)`
- break
- fi
- done
-fi
-
-dnl see if one is installed
-if test x"${ac_cv_c_tixh}" = x ; then
- AC_MSG_RESULT(none)
- dnl Get the path to the compiler
-
- dnl Get the path to the compiler. We do it this way instead of using
- dnl AC_CHECK_HEADER, cause this doesn't depend in having X configured.
- ccpath=`which ${CC} | sed -e 's:/bin/.*::'`/include
- if test -f $ccpath/tix.h; then
- ac_cv_c_tixh=installed
- fi
-else
- AC_MSG_RESULT(${ac_cv_c_tixh})
-fi
-])
-if test x"${ac_cv_c_tixh}" = x ; then
- AC_MSG_ERROR([Can't find any Tix headers])
-fi
-if test x"${ac_cv_c_tixh}" != x ; then
- no_tix=""
- AC_MSG_RESULT(${ac_cv_c_tixh})
- if test x"${ac_cv_c_tixh}" != x"installed" ; then
- TIXHDIR="-I${ac_cv_c_tixh}"
- fi
-fi
-
-AC_SUBST(TIXHDIR)
-])
-
-AC_DEFUN(CYG_AC_PATH_TIXCONFIG, [
-#
-# Ok, lets find the tix configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-tixconfig
-#
-
-if test x"${no_tix}" = x ; then
- # we reset no_tix in case something fails here
- no_tix=true
- AC_ARG_WITH(tixconfig, [ --with-tixconfig directory containing tix configuration (tixConfig.sh)],
- with_tixconfig=${withval})
- AC_MSG_CHECKING([for Tix configuration])
- AC_CACHE_VAL(ac_cv_c_tixconfig,[
-
- # First check to see if --with-tixconfig was specified.
- if test x"${with_tixconfig}" != x ; then
- if test -f "${with_tixconfig}/tixConfig.sh" ; then
- ac_cv_c_tixconfig=`(cd ${with_tixconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_tixconfig} directory doesn't contain tixConfig.sh])
- fi
- fi
-
- # then check for a private Tix library
- if test x"${ac_cv_c_tixconfig}" = x ; then
- for i in \
- ../tix \
- `ls -dr ../tix[[4]]* 2>/dev/null` \
- ../../tix \
- `ls -dr ../../tix[[4]]* 2>/dev/null` \
- ../../../tix \
- `ls -dr ../../../tix[[4]]* 2>/dev/null` ; do
- if test -f "$i/tixConfig.sh" ; then
- ac_cv_c_tixconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_tixconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/tixConfig.sh" ; then
- ac_cv_c_tkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_tixconfig}" = x ; then
- for i in \
- ${srcdir}/../tix \
- `ls -dr ${srcdir}/../tix[[4-9]]* 2>/dev/null` ; do
- if test -f "$i/tixConfig.sh" ; then
- ac_cv_c_tixconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_tixconfig}" = x ; then
- TIXCONFIG="# no Tix configs found"
- AC_MSG_WARN(Can't find Tix configuration definitions)
- else
- no_tix=
- TIXCONFIG=${ac_cv_c_tixconfig}/tixConfig.sh
- AC_MSG_RESULT(found $TIXCONFIG)
- fi
-fi
-
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_TIXCONFIG (because this can also be cached).
-AC_DEFUN(CYG_AC_LOAD_TIXCONFIG, [
- if test -f "$TIXCONFIG" ; then
- . $TIXCONFIG
- fi
-
- AC_SUBST(TIX_BUILD_LIB_SPEC)
- AC_SUBST(TIX_LIB_FULL_PATH)
-])
-
-AC_DEFUN(CYG_AC_PATH_ITCLCONFIG, [
-#
-# Ok, lets find the itcl configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-itclconfig
-#
-
-if test x"${no_itcl}" = x ; then
- # we reset no_itcl in case something fails here
- no_itcl=true
- AC_ARG_WITH(itclconfig, [ --with-itclconfig directory containing itcl configuration (itclConfig.sh)],
- with_itclconfig=${withval})
- AC_MSG_CHECKING([for Itcl configuration])
- AC_CACHE_VAL(ac_cv_c_itclconfig,[
-
- # First check to see if --with-itclconfig was specified.
- if test x"${with_itclconfig}" != x ; then
- if test -f "${with_itclconfig}/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_itclconfig} directory doesn't contain itclConfig.sh])
- fi
- fi
-
- # then check for a private itcl library
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in \
- ../itcl/itcl \
- `ls -dr ../itcl/itcl[[3]]* 2>/dev/null` \
- ../../itcl/itcl \
- `ls -dr ../../itcl/itcl[[3]]* 2>/dev/null` \
- ../../../itcl/itcl \
- `ls -dr ../../../itcl/itcl[[3]]* 2>/dev/null` ; do
- if test -f "$i/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_itclconfig}" = x ; then
- for i in \
- ${srcdir}/../itcl/itcl \
- `ls -dr ${srcdir}/../itcl/itcl[[3]]* 2>/dev/null` ; do
- if test -f "$i/itcl/itclConfig.sh" ; then
- ac_cv_c_itclconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_itclconfig}" = x ; then
- ITCLCONFIG="# no itcl configs found"
- AC_MSG_WARN(Can't find itcl configuration definitions)
- else
- no_itcl=
- ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
- AC_MSG_RESULT(found $ITCLCONFIG)
- fi
-fi
-
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_ITCLCONFIG (because this can also be cached).
-AC_DEFUN(CYG_AC_LOAD_ITCLCONFIG, [
- if test -f "$ITCLCONFIG" ; then
- . $ITCLCONFIG
- fi
-
- AC_SUBST(ITCL_BUILD_LIB_SPEC)
- AC_SUBST(ITCL_SH)
- AC_SUBST(ITCL_LIB_FILE)
- AC_SUBST(ITCL_LIB_FULL_PATH)
-
-])
-
-
-AC_DEFUN(CYG_AC_PATH_ITKCONFIG, [
-#
-# Ok, lets find the itk configuration
-# First, look for one uninstalled.
-# the alternative search directory is invoked by --with-itkconfig
-#
-
-if test x"${no_itk}" = x ; then
- # we reset no_itk in case something fails here
- no_itk=true
- AC_ARG_WITH(itkconfig, [ --with-itkconfig directory containing itk configuration (itkConfig.sh)],
- with_itkconfig=${withval})
- AC_MSG_CHECKING([for Itk configuration])
- AC_CACHE_VAL(ac_cv_c_itkconfig,[
-
- # First check to see if --with-itkconfig was specified.
- if test x"${with_itkconfig}" != x ; then
- if test -f "${with_itkconfig}/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
- else
- AC_MSG_ERROR([${with_itkconfig} directory doesn't contain itkConfig.sh])
- fi
- fi
-
- # then check for a private itk library
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in \
- ../itcl/itk \
- `ls -dr ../itcl/itk[[3]]* 2>/dev/null` \
- ../../itcl/itk \
- `ls -dr ../../itcl/itk[[3]]* 2>/dev/null` \
- ../../../itcl/itk \
- `ls -dr ../../../itcl/itk[[3]]* 2>/dev/null` ; do
- if test -f "$i/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few common install locations
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
- if test -f "$i/itcl/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- # check in a few other private locations
- if test x"${ac_cv_c_itkconfig}" = x ; then
- for i in \
- ${srcdir}/../itcl/itk \
- `ls -dr ${srcdir}/../itcl/itk[[3]]* 2>/dev/null` ; do
- if test -f "$i/itkConfig.sh" ; then
- ac_cv_c_itkconfig=`(cd $i; pwd)`
- break
- fi
- done
- fi
- ])
- if test x"${ac_cv_c_itkconfig}" = x ; then
- ITCLCONFIG="# no itk configs found"
- AC_MSG_WARN(Can't find itk configuration definitions)
- else
- no_itk=
- ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
- AC_MSG_RESULT(found $ITKCONFIG)
- fi
-fi
-
-])
-
-# Defined as a separate macro so we don't have to cache the values
-# from PATH_ITKCONFIG (because this can also be cached).
-AC_DEFUN(CYG_AC_LOAD_ITKCONFIG, [
- if test -f "$ITKCONFIG" ; then
- . $ITKCONFIG
- fi
-
- AC_SUBST(ITK_BUILD_LIB_SPEC)
- AC_SUBST(ITK_LIB_FILE)
- AC_SUBST(ITK_LIB_FULL_PATH)
-])
-
-
-dnl ====================================================================
-dnl Ok, lets find the libgui source trees so we can use the headers
-dnl the alternative search directory is involked by --with-libguiinclude
-AC_DEFUN(CYG_AC_PATH_LIBGUI, [
- CYG_AC_PATH_LIBGUIH
- CYG_AC_PATH_LIBGUILIB
-])
-AC_DEFUN(CYG_AC_PATH_LIBGUIH, [
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../..../../../../../../../../../../.."
-no_libgui=true
-AC_MSG_CHECKING(for Libgui headers in the source tree)
-AC_ARG_WITH(libguiinclude, [ --with-libguiinclude directory where libgui headers are], with_libguiinclude=${withval})
-AC_CACHE_VAL(ac_cv_c_libguih,[
-dnl first check to see if --with-libguiinclude was specified
-if test x"${with_libguiinclude}" != x ; then
- if test -f ${with_libguiinclude}/guitcl.h ; then
- ac_cv_c_libguih=`(cd ${with_libguiinclude}; pwd)`
- elif test -f ${with_libguiinclude}/src/guitcl.h ; then
- ac_cv_c_libguih=`(cd ${with_libguiinclude}/src; pwd)`
- else
- AC_MSG_ERROR([${with_libguiinclude} directory doesn't contain headers])
- fi
-fi
-
-dnl next check if it came with Libgui configuration file
-if test x"${ac_cv_c_libguiconfig}" != x ; then
- for i in $dirlist; do
- if test -f $ac_cv_c_libguiconfig/$i/src/guitcl.h ; then
- ac_cv_c_libguih=`(cd $ac_cv_c_libguiconfig/$i/src; pwd)`
- break
- fi
- done
-fi
-
-dnl next check in private source directory
-dnl since ls returns lowest version numbers first, reverse its output
-if test x"${ac_cv_c_libguih}" = x ; then
- dnl find the top level Libgui source directory
- for i in $dirlist; do
- if test -n "`ls -dr $srcdir/$i/libgui* 2>/dev/null`" ; then
- libguipath=$srcdir/$i
- break
- fi
- done
-
- dnl find the exact Libgui source dir. We do it this way, cause there
- dnl might be multiple version of Libgui, and we want the most recent one.
- for i in `ls -dr $libguipath/libgui* 2>/dev/null ` ; do
- if test -f $i/src/guitcl.h ; then
- ac_cv_c_libguih=`(cd $i/src; pwd)`
- break
- fi
- done
-fi
-
-dnl see if one is installed
-if test x"${ac_cv_c_libguih}" = x ; then
- AC_MSG_RESULT(none)
- AC_CHECK_HEADER(guitcl.h, ac_cv_c_libguih=installed, ac_cv_c_libguih="")
-fi
-])
-LIBGUIHDIR=""
-if test x"${ac_cv_c_libguih}" = x ; then
- AC_MSG_WARN([Can't find any Libgui headers])
-fi
-if test x"${ac_cv_c_libguih}" != x ; then
- no_libgui=""
- if test x"${ac_cv_c_libguih}" != x"installed" ; then
- LIBGUIHDIR="-I${ac_cv_c_libguih}"
- fi
-fi
-AC_MSG_RESULT(${ac_cv_c_libguih})
-AC_SUBST(LIBGUIHDIR)
-])
-
-dnl ====================================================================
-dnl find the GUI library
-AC_DEFUN(CYG_AC_PATH_LIBGUILIB, [
-AC_MSG_CHECKING(for GUI library in the build tree)
-dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
-dnl look for the library
-AC_MSG_CHECKING(for GUI library)
-AC_CACHE_VAL(ac_cv_c_libguilib,[
-if test x"${ac_cv_c_libguilib}" = x ; then
- for i in $dirlist; do
- if test -f "$i/libgui/src/Makefile" ; then
- ac_cv_c_libguilib=`(cd $i/libgui/src; pwd)`
- break
- fi
- done
-fi
-])
-if test x"${ac_cv_c_libguilib}" != x ; then
- GUILIB="${GUILIB} -L${ac_cv_c_libguilib}"
- LIBGUILIB="-lgui"
- AC_MSG_RESULT(${ac_cv_c_libguilib})
-else
- AC_MSG_RESULT(none)
-fi
-
-AC_SUBST(GUILIB)
-AC_SUBST(LIBGUILIB)
-])
diff --git a/contrib/gcc/config/mh-a68bsd b/contrib/gcc/config/mh-a68bsd
deleted file mode 100644
index c991289dd5f4..000000000000
--- a/contrib/gcc/config/mh-a68bsd
+++ /dev/null
@@ -1,12 +0,0 @@
-RANLIB=true
-
-#None of the Apollo compilers can compile gas or binutils. The preprocessor
-# chokes on bfd, the compiler won't let you assign integers to enums, and
-# other problems. Defining CC to gcc is a questionable way to say "don't use
-# the apollo compiler" (the preferred version of GCC could be called cc,
-# or whatever), but I'm not sure leaving CC as cc is any better...
-
-#CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
-CC=gcc
-
-BISON=yacc
diff --git a/contrib/gcc/config/mh-aix386 b/contrib/gcc/config/mh-aix386
deleted file mode 100644
index 4accd1cddfbe..000000000000
--- a/contrib/gcc/config/mh-aix386
+++ /dev/null
@@ -1 +0,0 @@
-RANLIB = @:
diff --git a/contrib/gcc/config/mh-apollo68 b/contrib/gcc/config/mh-apollo68
deleted file mode 100644
index 4497ed935853..000000000000
--- a/contrib/gcc/config/mh-apollo68
+++ /dev/null
@@ -1,3 +0,0 @@
-HDEFINES = -DUSG
-RANLIB=true
-CC= cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG
diff --git a/contrib/gcc/config/mh-armpic b/contrib/gcc/config/mh-armpic
deleted file mode 100644
index 35cf2c8ee4e3..000000000000
--- a/contrib/gcc/config/mh-armpic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=-fPIC
diff --git a/contrib/gcc/config/mh-cxux b/contrib/gcc/config/mh-cxux
deleted file mode 100644
index 54b2a16c8345..000000000000
--- a/contrib/gcc/config/mh-cxux
+++ /dev/null
@@ -1,14 +0,0 @@
-# Configuration for Harris CX/UX 7 (and maybe 6), based on sysv4 configuration.
-
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV -DSVR4
-RANLIB = true
-
-# C++ debugging is not yet supported under SVR4 (DWARF)
-CXXFLAGS=-O
-
-# The l flag generates a warning from the SVR4 archiver, remove it.
-AR_FLAGS = cq
-
-# Under CX/UX, we want to tell the compiler to use ANSI mode.
-CC=cc -Xa
diff --git a/contrib/gcc/config/mh-cygwin b/contrib/gcc/config/mh-cygwin
deleted file mode 100644
index 241027fb8deb..000000000000
--- a/contrib/gcc/config/mh-cygwin
+++ /dev/null
@@ -1,6 +0,0 @@
-EXTRA_TARGET_HOST_ALL_MODULES=all-libtermcap
-EXTRA_TARGET_HOST_INSTALL_MODULES=install-libtermcap
-
-all-gdb: all-libtermcap
-
-install-gdb: all-libtermcap
diff --git a/contrib/gcc/config/mh-decstation b/contrib/gcc/config/mh-decstation
deleted file mode 100644
index 37201926d5fb..000000000000
--- a/contrib/gcc/config/mh-decstation
+++ /dev/null
@@ -1,5 +0,0 @@
-CC = cc -Wf,-XNg1000
-
-# for X11, since the native DECwindows include files are really broken when
-# it comes to function prototypes.
-X11_EXTRA_CFLAGS = "-DNeedFunctionPrototypes=0"
diff --git a/contrib/gcc/config/mh-delta88 b/contrib/gcc/config/mh-delta88
deleted file mode 100644
index bc9c45302d55..000000000000
--- a/contrib/gcc/config/mh-delta88
+++ /dev/null
@@ -1,4 +0,0 @@
-RANLIB = true
-
-
-
diff --git a/contrib/gcc/config/mh-dgux b/contrib/gcc/config/mh-dgux
deleted file mode 100644
index e7d85d6126a1..000000000000
--- a/contrib/gcc/config/mh-dgux
+++ /dev/null
@@ -1,4 +0,0 @@
-HDEFINES=-DHOST_SYS=DGUX_SYS
-CC=gcc -Wall -ansi -D__using_DGUX
-RANLIB=true
-
diff --git a/contrib/gcc/config/mh-dgux386 b/contrib/gcc/config/mh-dgux386
deleted file mode 100644
index 15885c3e0426..000000000000
--- a/contrib/gcc/config/mh-dgux386
+++ /dev/null
@@ -1,22 +0,0 @@
-# from mh-dgux
-HDEFINES=-DHOST_SYS=DGUX_SYS
-CC=gcc -Wall -ansi -D__using_DGUX
-RANLIB = true
-
-# from mh-sysv4
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV -DSVR4
-RANLIB = true
-
-# C++ debugging is not yet supported under SVR4 (DWARF)
-CXXFLAGS=-O
-
-# The l flag generates a warning from the SVR4 archiver, remove it.
-AR_FLAGS = cr
-
-X11_EXTRA_LIBS = -lnsl
-
-# from angela
-# no debugging due to broken compiler, use BSD style timeofday
-CFLAGS=-O -D_BSD_TIMEOFDAY_FLAVOR
-
diff --git a/contrib/gcc/config/mh-djgpp b/contrib/gcc/config/mh-djgpp
deleted file mode 100644
index 88d250a73da2..000000000000
--- a/contrib/gcc/config/mh-djgpp
+++ /dev/null
@@ -1,14 +0,0 @@
-# Shorten the target alias so when it is used to set 'libsubdir'
-# the name will work in both short and long filename environments.
-ifeq ($(findstring -pc-msdosdjgpp,$(target_alias)),-pc-msdosdjgpp)
-target_alias=djgpp
-endif
-
-# The version string must be modified to contain just one dot
-# because DOS filenames can only have one dot when long filenames
-# are not available.
-__version:=$(gcc_version)
-__version:=$(subst ., ,$(__version))
-ifeq ($(words $(__version)),3)
-gcc_version=$(word 1,$(__version)).$(word 2,$(__version))$(word 3,$(__version))
-endif
diff --git a/contrib/gcc/config/mh-elfalphapic b/contrib/gcc/config/mh-elfalphapic
deleted file mode 100644
index 35cf2c8ee4e3..000000000000
--- a/contrib/gcc/config/mh-elfalphapic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=-fPIC
diff --git a/contrib/gcc/config/mh-hp300 b/contrib/gcc/config/mh-hp300
deleted file mode 100644
index 761724d92de0..000000000000
--- a/contrib/gcc/config/mh-hp300
+++ /dev/null
@@ -1,13 +0,0 @@
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV
-# Avoid "too much defining" errors from HPUX compiler.
-CC = cc -Wp,-H256000
-# If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
-# If it's HP/UX ar, this should be harmless.
-RANLIB = ar ts
-
-# Native cc can't bootstrap gcc with -g. Defining CFLAGS here loses (a)
-# for non-gcc directories, (b) if we are compiling with gcc, not
-# native cc. Neither (a) nor (b) has a trivial fix though.
-
-CFLAGS =
diff --git a/contrib/gcc/config/mh-hpux b/contrib/gcc/config/mh-hpux
deleted file mode 100644
index 4d71c9dc837b..000000000000
--- a/contrib/gcc/config/mh-hpux
+++ /dev/null
@@ -1,4 +0,0 @@
-# Define SYSV as -DSYSV if you are using a System V operating system.
-CC = cc -Wp,-H256000
-SYSV = -DSYSV
-RANLIB = true
diff --git a/contrib/gcc/config/mh-hpux8 b/contrib/gcc/config/mh-hpux8
deleted file mode 100644
index 4d71c9dc837b..000000000000
--- a/contrib/gcc/config/mh-hpux8
+++ /dev/null
@@ -1,4 +0,0 @@
-# Define SYSV as -DSYSV if you are using a System V operating system.
-CC = cc -Wp,-H256000
-SYSV = -DSYSV
-RANLIB = true
diff --git a/contrib/gcc/config/mh-i370pic b/contrib/gcc/config/mh-i370pic
deleted file mode 100644
index 35cf2c8ee4e3..000000000000
--- a/contrib/gcc/config/mh-i370pic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=-fPIC
diff --git a/contrib/gcc/config/mh-ia64pic b/contrib/gcc/config/mh-ia64pic
deleted file mode 100644
index 92e48d90fbdf..000000000000
--- a/contrib/gcc/config/mh-ia64pic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=-fpic
diff --git a/contrib/gcc/config/mh-interix b/contrib/gcc/config/mh-interix
deleted file mode 100644
index 19b8ecfd3398..000000000000
--- a/contrib/gcc/config/mh-interix
+++ /dev/null
@@ -1,14 +0,0 @@
-# The shell may not be in /bin.
-SHELL = sh
-RANLIB = true
-
-# We don't want debugging info in Interix-hosted toolchains.
-# Accomplish this by overriding CFLAGS. This is also a workaround
-# for LD crash when building shared libstdc++.
-CFLAGS=-O2
-CXXFLAGS=-O2
-
-# We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be
-# built without debugging information
-
-LIBGCC2_DEBUG_CFLAGS=
diff --git a/contrib/gcc/config/mh-irix4 b/contrib/gcc/config/mh-irix4
deleted file mode 100644
index 6872145e833a..000000000000
--- a/contrib/gcc/config/mh-irix4
+++ /dev/null
@@ -1,7 +0,0 @@
-# Makefile changes for SGI's running IRIX-4.x.
-# Tell compiler to use K&R C. We can't compile under the SGI Ansi
-# environment. Also bump switch table size so that cp-parse will
-# compile. Bump string length limit so linker builds.
-
-CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192
-SYSV = -DSYSV
diff --git a/contrib/gcc/config/mh-irix5 b/contrib/gcc/config/mh-irix5
deleted file mode 100644
index 8bd7c99f844b..000000000000
--- a/contrib/gcc/config/mh-irix5
+++ /dev/null
@@ -1,3 +0,0 @@
-# Makefile changes for SGI's running IRIX-5.x.
-SYSV = -DSYSV
-RANLIB = true
diff --git a/contrib/gcc/config/mh-irix6 b/contrib/gcc/config/mh-irix6
deleted file mode 100644
index e79267889630..000000000000
--- a/contrib/gcc/config/mh-irix6
+++ /dev/null
@@ -1,3 +0,0 @@
-# Makefile changes for SGI's running IRIX-6.x.
-SYSV = -DSYSV
-RANLIB = true
diff --git a/contrib/gcc/config/mh-lynxos b/contrib/gcc/config/mh-lynxos
deleted file mode 100644
index 9afcb79fca7c..000000000000
--- a/contrib/gcc/config/mh-lynxos
+++ /dev/null
@@ -1,2 +0,0 @@
-# /bin/cc is less than useful for our purposes. Always use GCC
-CC = /bin/gcc
diff --git a/contrib/gcc/config/mh-lynxrs6k b/contrib/gcc/config/mh-lynxrs6k
deleted file mode 100644
index b2793996eff3..000000000000
--- a/contrib/gcc/config/mh-lynxrs6k
+++ /dev/null
@@ -1,8 +0,0 @@
-# LynxOS running on the rs6000 doesn't have ranlib
-RANLIB = true
-
-# /bin/cc is less than useful for our purposes. Always use GCC
-CC = /usr/cygnus/progressive/bin/gcc
-
-# /bin/sh is too buggy, so use /bin/bash instead.
-SHELL = /bin/bash
diff --git a/contrib/gcc/config/mh-m68kpic b/contrib/gcc/config/mh-m68kpic
deleted file mode 100644
index 92e48d90fbdf..000000000000
--- a/contrib/gcc/config/mh-m68kpic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=-fpic
diff --git a/contrib/gcc/config/mh-mingw32 b/contrib/gcc/config/mh-mingw32
deleted file mode 100644
index 8c4839d89d62..000000000000
--- a/contrib/gcc/config/mh-mingw32
+++ /dev/null
@@ -1,12 +0,0 @@
-# We don't want debugging info in Win32-hosted toolchains.
-# Accomplish this by overriding CFLAGS.
-CFLAGS=-O2
-CXXFLAGS=-O2
-
-# We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be
-# built without debugging information
-
-LIBGCC2_DEBUG_CFLAGS=
-
-# custom installation rules for mingw32 (append .exe to binaries, etc.)
-# INSTALL_DOSREL=install-dosrel
diff --git a/contrib/gcc/config/mh-ncr3000 b/contrib/gcc/config/mh-ncr3000
deleted file mode 100644
index 5bbd8037009f..000000000000
--- a/contrib/gcc/config/mh-ncr3000
+++ /dev/null
@@ -1,17 +0,0 @@
-# Host configuration file for an NCR 3000 (i486/SVR4) system.
-
-# The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
-# This compiler not only emits obnoxious copyright messages every time
-# you run it, but it chokes and dies on a whole bunch of GNU source
-# files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
-# Unfortunately though, the AT&T compiler sometimes generates code that
-# the assembler barfs on if -g is used, so disable it by default as well.
-CC = /usr/ccs/ATT/cc
-CFLAGS =
-
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV -DSVR4
-RANLIB = true
-
-# The l flag generates a warning from the SVR4 archiver, remove it.
-AR_FLAGS = cq
diff --git a/contrib/gcc/config/mh-ncrsvr43 b/contrib/gcc/config/mh-ncrsvr43
deleted file mode 100644
index 43b09912ca91..000000000000
--- a/contrib/gcc/config/mh-ncrsvr43
+++ /dev/null
@@ -1,9 +0,0 @@
-# Host configuration file for an NCR 3000 (i486/SVR43) system.
-
-# The MetaWare compiler will generate a copyright message unless you
-# turn it off by adding the -Hnocopyr flag.
-CC = cc -Hnocopyr
-
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV -DSVR4
-RANLIB = true
diff --git a/contrib/gcc/config/mh-necv4 b/contrib/gcc/config/mh-necv4
deleted file mode 100644
index e887736f8bed..000000000000
--- a/contrib/gcc/config/mh-necv4
+++ /dev/null
@@ -1,11 +0,0 @@
-# Host Makefile fragment for NEC MIPS SVR4.
-
-# The C compiler on NEC MIPS SVR4 needs bigger tables.
-CC = cc -ZXNd=5000 -ZXNg=1000
-
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV -DSVR4
-RANLIB = true
-
-# NEC -lX11 needs some other libraries.
-X11_EXTRA_LIBS = -lsocket -lnsl
diff --git a/contrib/gcc/config/mh-openedition b/contrib/gcc/config/mh-openedition
deleted file mode 100644
index e99ef155fd2b..000000000000
--- a/contrib/gcc/config/mh-openedition
+++ /dev/null
@@ -1,2 +0,0 @@
-RANLIB = true
-CC = c89
diff --git a/contrib/gcc/config/mh-papic b/contrib/gcc/config/mh-papic
deleted file mode 100644
index 35cf2c8ee4e3..000000000000
--- a/contrib/gcc/config/mh-papic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=-fPIC
diff --git a/contrib/gcc/config/mh-ppcpic b/contrib/gcc/config/mh-ppcpic
deleted file mode 100644
index 35cf2c8ee4e3..000000000000
--- a/contrib/gcc/config/mh-ppcpic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=-fPIC
diff --git a/contrib/gcc/config/mh-riscos b/contrib/gcc/config/mh-riscos
deleted file mode 100644
index e586b30b1a90..000000000000
--- a/contrib/gcc/config/mh-riscos
+++ /dev/null
@@ -1,15 +0,0 @@
-# This is for a MIPS running RISC/os 4.52C.
-
-# This is needed for GDB, but needs to be in the top-level make because
-# if a library is compiled with the bsd headers and gets linked with the
-# sysv system libraries all hell can break loose (e.g. a jmp_buf might be
-# a different size).
-# ptrace(2) apparently has problems in the BSD environment. No workaround is
-# known except to select the sysv environment. Could we use /proc instead?
-# These "sysv environments" and "bsd environments" often end up being a pain.
-#
-# This is not part of CFLAGS because perhaps not all C compilers have this
-# option.
-CC= cc -systype sysv
-
-RANLIB = true
diff --git a/contrib/gcc/config/mh-sco b/contrib/gcc/config/mh-sco
deleted file mode 100644
index cc337c98f937..000000000000
--- a/contrib/gcc/config/mh-sco
+++ /dev/null
@@ -1,10 +0,0 @@
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV
-RANLIB = true
-# You may need this if you don't have bison.
-# BISON = yacc -Sm10400
-# The native C compiler botches some simple uses of const. Unfortunately,
-# it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
-CC = cc -Dconst=
-
-X11_EXTRA_LIBS = -lsocket -lm -lintl -lmalloc
diff --git a/contrib/gcc/config/mh-solaris b/contrib/gcc/config/mh-solaris
deleted file mode 100644
index ddbea549b937..000000000000
--- a/contrib/gcc/config/mh-solaris
+++ /dev/null
@@ -1,6 +0,0 @@
-# Makefile changes for Suns running Solaris 2
-
-SYSV = -DSYSV
-RANLIB = true
-
-X11_EXTRA_LIBS = -lnsl -lsocket
diff --git a/contrib/gcc/config/mh-sparcpic b/contrib/gcc/config/mh-sparcpic
deleted file mode 100644
index e218bb48aa43..000000000000
--- a/contrib/gcc/config/mh-sparcpic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=`case '${LIBCFLAGS} ${LIBCXXFLAGS}' in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`
diff --git a/contrib/gcc/config/mh-sun3 b/contrib/gcc/config/mh-sun3
deleted file mode 100644
index dcd5155b736c..000000000000
--- a/contrib/gcc/config/mh-sun3
+++ /dev/null
@@ -1,3 +0,0 @@
-# Sun's C compiler needs the -J flag to be able to compile cp-parse.c
-# without overflowing the jump tables (-J says to use a 32 bit table)
-CC = cc -J
diff --git a/contrib/gcc/config/mh-sysv b/contrib/gcc/config/mh-sysv
deleted file mode 100644
index 16b1187b4471..000000000000
--- a/contrib/gcc/config/mh-sysv
+++ /dev/null
@@ -1,3 +0,0 @@
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV
-RANLIB = true
diff --git a/contrib/gcc/config/mh-sysv4 b/contrib/gcc/config/mh-sysv4
deleted file mode 100644
index 810665106000..000000000000
--- a/contrib/gcc/config/mh-sysv4
+++ /dev/null
@@ -1,11 +0,0 @@
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV -DSVR4
-RANLIB = true
-
-# C++ debugging is not yet supported under SVR4 (DWARF)
-CXXFLAGS=-O
-
-# The l flag generates a warning from the SVR4 archiver, remove it.
-AR_FLAGS = cr
-
-X11_EXTRA_LIBS = -lnsl
diff --git a/contrib/gcc/config/mh-sysv5 b/contrib/gcc/config/mh-sysv5
deleted file mode 100644
index 1fa38e53cc8a..000000000000
--- a/contrib/gcc/config/mh-sysv5
+++ /dev/null
@@ -1,8 +0,0 @@
-# Define SYSV as -DSYSV if you are using a System V operating system.
-SYSV = -DSYSV -DSVR4 -DSVR5
-RANLIB = true
-
-# The l flag generates a warning from the SVR4 archiver, remove it.
-AR_FLAGS = cr
-
-X11_EXTRA_LIBS = -lnsl
diff --git a/contrib/gcc/config/mh-vaxult2 b/contrib/gcc/config/mh-vaxult2
deleted file mode 100644
index 3de2dc8ffe3e..000000000000
--- a/contrib/gcc/config/mh-vaxult2
+++ /dev/null
@@ -1,2 +0,0 @@
-# The old BSD pcc isn't up to compiling parts of gdb so use gcc
-CC = gcc
diff --git a/contrib/gcc/config/mh-x86pic b/contrib/gcc/config/mh-x86pic
deleted file mode 100644
index 92e48d90fbdf..000000000000
--- a/contrib/gcc/config/mh-x86pic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG=-fpic
diff --git a/contrib/gcc/config/mpw-mh-mpw b/contrib/gcc/config/mpw-mh-mpw
deleted file mode 100644
index 543ef4fb2a12..000000000000
--- a/contrib/gcc/config/mpw-mh-mpw
+++ /dev/null
@@ -1,157 +0,0 @@
-# This is an MPW makefile fragment.
-
-# Since there are a multiplicity of Mac compilers and two different
-# processors, this file is primarily a library of options for each
-# compiler. Somebody else (such as a configure or build script) will
-# make the actual choice.
-
-# Compiler to use for compiling.
-
-CC_MPW_C = C -d MPW_C -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -w
-
-CC_SC = SC -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -i '' -i :
-
-CC_MWC68K = MWC68K -d MPW -enum int -mpw_chars -sym on -w off -mc68020 -model far
-
-CC_PPCC = PPCC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -w
-
-CC_MRC = MrC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -i '' -i : -jm
-
-CC_SMrC = SMrC -d MPW
-
-# "-mpw_chars" is necessary because GNU sources often mix signed and
-# unsigned casually.
-# "-w off" is not a great idea, but CW7 is complaining about enum
-# assignments.
-# "-opt global,peep,l4,speed" is sometimes good, and sometimes bad.
-# We must use {CIncludes} so that MPW tools will work; {MWCIncludes}
-# defines stdout, islower, etc, in ways that are incompatible with MPW's
-# runtime. However, this cannot be done via -i "{CIncludes}", since
-# that does not affect how <>-type includes happen; instead, the variable
-# MWCIncludes must be set to point at {CIncludes}.
-
-CC_MWCPPC = MWCPPC -d MPW -enum int -mpw_chars -sym on -w off
-
-# Note that GCC does *not* wire in a definition of "pascal", so that
-# it can be handled in another way if desired.
-
-CC_68K_GCC = gC -Dpascal= -DANSI_PROTOTYPES -DMPW
-
-CC_PPC_GCC = gC -Dpowerc=1 -Dpascal= -DANSI_PROTOTYPES -DMPW
-
-# Nothing for the default CFLAGS.
-
-CFLAGS =
-
-# Tool to use for making libraries/archives.
-
-AR_LIB = Lib
-
-AR_MWLINK68K = MWLink68K -xm library
-
-AR_PPCLINK = PPCLink -xm library
-
-AR_MWLINKPPC = MWLinkPPC -xm library
-
-AR_AR = ar
-
-AR_FLAGS = -o
-
-RANLIB_NULL = null-command
-
-RANLIB_RANLIB = ranlib
-
-# Compiler and/or linker to use for linking.
-
-CC_LD_LINK = Link -w -d -model far {CC_LD_TOOL_FLAGS}
-
-CC_LD_MWLINK68K = MWLink68K -w {CC_LD_TOOL_FLAGS} -sym on -model far
-
-CC_LD_PPCLINK = PPCLink -main __start -outputformat xcoff
-
-CC_LD_MWLINKPPC = MWLinkPPC -w {CC_LD_TOOL_FLAGS} -sym on
-
-CC_LD_GLD = gC
-
-# Extension for linker output.
-
-PROG_EXT_68K =
-
-PROG_EXT_XCOFF = .xcoff
-
-# Nothing for the default LDFLAGS.
-
-LDFLAGS = -w
-
-CC_LD_TOOL_FLAGS = -c 'MPS ' -t MPST
-
-# Libraries to link against.
-
-# It would appear that the math libraries are not
-# needed except to provide a definition for scalb,
-# which is called from ldexp, which is referenced
-# in the m68k opcodes library.
-
-EXTRALIBS_C = \Option-d
- "{CLibraries}"StdClib.o \Option-d
- "{CLibraries}"Math.o \Option-d
- "{CLibraries}"CSANELib.o \Option-d
- "{Libraries}"Stubs.o \Option-d
- "{Libraries}"Runtime.o \Option-d
- "{Libraries}"Interface.o \Option-d
- "{Libraries}"ToolLibs.o
-
-EXTRALIBS_MWC68K = \Option-d
- "{CLibraries}"StdClib.o \Option-d
- "{CLibraries}"Math.o \Option-d
- "{CLibraries}"CSANELib.o \Option-d
- "{Libraries}"Stubs.o \Option-d
- "{Libraries}"Runtime.o \Option-d
- "{Libraries}"Interface.o \Option-d
- "{Libraries}"ToolLibs.o \Option-d
- "{MW68KLibraries}MPW ANSI (4i) C.68K.Lib"
-
-EXTRALIBS_PPC_XCOFF = \Option-d
- "{PPCLibraries}"StdCRuntime.o \Option-d
- "{PPCLibraries}"InterfaceLib.xcoff \Option-d
- "{PPCLibraries}"MathLib.xcoff \Option-d
- "{PPCLibraries}"StdCLib.xcoff \Option-d
- "{PPCLibraries}"PPCToolLibs.o \Option-d
- "{PPCLibraries}"PPCCRuntime.o \Option-d
- "{GCCPPCLibraries}"libgcc.xcoff
-
-EXTRALIBS_PPC = \Option-d
- "{PPCLibraries}"StdCRuntime.o \Option-d
- "{SharedLibraries}"InterfaceLib \Option-d
- "{SharedLibraries}"MathLib \Option-d
- "{SharedLibraries}"StdCLib \Option-d
- "{PPCLibraries}"PPCToolLibs.o \Option-d
- "{PPCLibraries}"PPCCRuntime.o \Option-d
- "{GCCPPCLibraries}"libgcc.xcoff
-
-EXTRALIBS_MWCPPC = \Option-d
- "{MWPPCLibraries}"MWStdCRuntime.Lib \Option-d
- "{MWPPCLibraries}"InterfaceLib \Option-d
- "{MWPPCLibraries}"StdCLib \Option-d
- "{MWPPCLibraries}"MathLib \Option-d
- "{MWPPCLibraries}"PPCToolLibs.o
-
-# Tool to make PEF with, if needed.
-
-MAKEPEF_NULL = null-command
-
-MAKEPEF_PPC = MakePEF
-
-MAKEPEF_FLAGS = \Option-d
- -l InterfaceLib.xcoff=InterfaceLib \Option-d
- -l MathLib.xcoff=MathLib \Option-d
- -l StdCLib.xcoff=StdCLib
-
-MAKEPEF_TOOL_FLAGS = -ft MPST -fc 'MPS '
-
-# Resource compiler to use.
-
-REZ_68K = Rez
-
-REZ_PPC = Rez -d WANT_CFRG
-
diff --git a/contrib/gcc/config/mpw/ChangeLog b/contrib/gcc/config/mpw/ChangeLog
deleted file mode 100644
index 722b5a378300..000000000000
--- a/contrib/gcc/config/mpw/ChangeLog
+++ /dev/null
@@ -1,81 +0,0 @@
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-18 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-08-14 Release Manager
-
- * GCC 3.2 Released.
-
-2002-07-25 Release Manager
-
- * GCC 3.1.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-Tue Nov 26 12:34:12 1996 Stan Shebs <shebs@andros.cygnus.com>
-
- * g-mpw-make.sed: Fix some comments.
-
-Mon Sep 16 14:42:52 1996 Stan Shebs <shebs@andros.cygnus.com>
-
- * g-mpw-make.sed (HLDENV): Edit out all references.
-
-Thu Aug 15 19:49:23 1996 Stan Shebs <shebs@andros.cygnus.com>
-
- * true: New script, identical to mpw-true.
- * g-mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG()@
- to the editors for compile commands.
-
-Thu Aug 1 15:01:42 1996 Stan Shebs <shebs@andros.cygnus.com>
-
- * mpw-true, mpw-touch, null-command: New scripts.
- * README: Describe usage in more detail.
-
-Tue Dec 12 14:51:51 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * g-mpw-make.sed: Don't edit out "version=" occurrences.
-
-Fri Dec 1 11:46:18 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * g-mpw-make.sed (bindir, libdir): Edit the positions of
- pathname separators to work with other pathnames better.
-
-Tue Nov 7 15:08:07 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * g-mpw-make.sed: Add comment about Duplicate vs Catenate,
- add additional pattern for editing link-compile commands.
-
-Tue Oct 24 14:28:51 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * g-mpw-make.sed: Add handling for *.tab.[hc] files.
- (CHILL_FOR_TARGET, CHILL_LIB): Edit out tricky definitions
- of these.
-
-Thu Sep 28 21:05:10 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * g-mpw-make.sed: New file, generic sed commands to translate
- Unix makefiles into MPW makefile syntax.
-
-Fri Mar 17 11:51:20 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * README: Clarify instructions.
- * fi: Remove.
-
-Wed Dec 21 15:45:53 1994 Stan Shebs <shebs@andros.cygnus.com>
-
- * MoveIfChange, README, fi, forward-include, open-brace,
- tr-7to8-src: New files.
diff --git a/contrib/gcc/config/mpw/MoveIfChange b/contrib/gcc/config/mpw/MoveIfChange
deleted file mode 100644
index 0dbc12582f5f..000000000000
--- a/contrib/gcc/config/mpw/MoveIfChange
+++ /dev/null
@@ -1,19 +0,0 @@
-# Rename a file only if it is different from a previously existing
-# file of the same name. This is useful for keeping make from doing
-# too much work if the contents of a file haven't changed.
-
-# This is an MPW translation of the standard GNU sh script move-if-change.
-
-Set exit 0
-
-If "`exists -f "{2}"`"
- Compare "{1}" "{2}" >dev:null
- If {status} != 0
- Rename -y "{1}" "{2}"
- Else
- Echo "{2}" is unchanged
- Delete -i -y "{1}"
- End
-Else
- Rename -y "{1}" "{2}"
-End
diff --git a/contrib/gcc/config/mpw/README b/contrib/gcc/config/mpw/README
deleted file mode 100644
index 554700adc810..000000000000
--- a/contrib/gcc/config/mpw/README
+++ /dev/null
@@ -1,23 +0,0 @@
-This directory contains MPW scripts and related files that are needed to
-build Cygnus GNU tools for MPW. The scripts should be somewhere on the
-command path; our usual practice has been to have a separate directory
-for the scripts, and put the tools (byacc, flex, and sed at least) there
-also; then it's easier to drag the support bits around as a group, or to
-upgrade MPW versions. The complete package of scripts and tool binaries
-is usually available as pub/mac/buildtools.cpt.hqx on ftp.cygnus.com.
-
-"tr-7to8-src" is actually the source to an MPW script that transforms
-sequences like "\Option-d" into the actual 8-bit chars that MPW needs.
-It's only the source because it can't itself include any 8-bit chars.
-It *can* be processed into a genuine "tr-7to8" by using itself:
-
- tr-7to8 tr-7to8-src | sed -e 's/Src//' >new-tr-7to8
-
-Use this to verify:
-
- compare tr-7to8 new-tr-7to8
-
-If you don't have a working tr-7to8, then you will have to manually
-replace all occurrences of "\Option-d" with real Option-d (which looks
-like a delta), then do similarly with all the other "\Option-..."
-strings, and then change "\SrcOption-d" into the string "\Option-d".
diff --git a/contrib/gcc/config/mpw/forward-include b/contrib/gcc/config/mpw/forward-include
deleted file mode 100644
index ddd6bd711058..000000000000
--- a/contrib/gcc/config/mpw/forward-include
+++ /dev/null
@@ -1,3 +0,0 @@
-Echo '#include' ""{1}"" >"{2}".tem
-MoveIfChange "{2}".tem "{2}"
-
diff --git a/contrib/gcc/config/mpw/g-mpw-make.sed b/contrib/gcc/config/mpw/g-mpw-make.sed
deleted file mode 100644
index e7d3c7707362..000000000000
--- a/contrib/gcc/config/mpw/g-mpw-make.sed
+++ /dev/null
@@ -1,293 +0,0 @@
-# Sed commands to translate Unix makefiles into MPW makefiles.
-# These are nominally generic, but work best on the makefiles used
-# for GNU programs.
-
-# Whack out any commented-out lines that are probably commands;
-# they can only cause trouble later on.
-/^# /d
-
-# Change dependency char.
-/:$/s/:/ \\Option-f/g
-/^[^ :#][^:]*:/s/\([ ]*\):\([ ]*\)/ \\Option-f /g
-
-# Change syntax of Makefile vars.
-/\$/s/\${\([a-zA-Z0-9_-]*\)}/{\1}/g
-/\$/s/\$(\([a-zA-Z0-9_-]*\))/{\1}/g
-/ $@/s/ $@/ {Targ}/
-
-# Double-$ are literals to Unix but not to MPW make.
-/\$\$/s/\$\$/$/g
-
-# Change pathname syntax.
-/\//s,\.\./\/\.\./,:::,g
-/\//s,\.\./,::,g
-/\.\//s,\./,:,g
-/\//s,/,:,g
-# Undo excess changes.
-/and/s,and:or$,and/or,
-/and/s,and:or ,and/or ,
-/want/s,want:need,want/need,
-# Fixing up sed commands.
-/-e/s_":\([^:]*\):d"_"/\1/d"_g
-/-e/s_":\([^:]*\):,:\([^:]*\):d"_"/\1/,/\2/d"_g
-
-/=/s/ = \.$/ = :/
-
-# Make these go away so that later edits not confused.
-/HLDENV/s/{HLDENV}//
-
-# Comment out any explicit srcdir setting.
-/srcdir/s/^srcdir/# srcdir/
-
-/BASEDIR/s/^BASEDIR =.*$/BASEDIR = "{srcroot}"/
-/{BASEDIR}:/s/{BASEDIR}:/{BASEDIR}/g
-/{srcdir}:/s/{srcdir}:/"{srcdir}"/g
-/"{srcdir}":/s/"{srcdir}":/"{srcdir}"/g
-
-# Tweak some conventions that are backwards for the Mac.
-/bindir/s/{exec_prefix}:bin/{exec_prefix}bin:/
-/libdir/s/{exec_prefix}:lib/{exec_prefix}lib:/
-
-# Comment out settings of anything set by mpw host config.
-/CC/s/^CC *=/#CC =/
-/CFLAGS/s/^CFLAGS *=/#CFLAGS =/
-/AR/s/^AR *=/#AR =/
-/AR_FLAGS/s/^AR_FLAGS *=/#AR_FLAGS =/
-/RANLIB/s/^RANLIB *=/#RANLIB =/
-/CC_LD/s/^CC_LD *=/#CC_LD =/
-/LDFLAGS/s/^LDFLAGS *=/#LDFLAGS =/
-
-# Change -I usages.
-/-I/s/-I\./-i :/g
-/-I/s/-I::bfd/-i ::bfd:/g
-/-I/s/-I::include/-i ::include:/g
-/-I/s/-I/-i /g
-
-# Change -D usage.
-/-D/s/\([ =]\)-D\([^ ]*\)/\1-d \2/g
-
-# Change continuation char.
-/\\$/s/\\$/\\Option-d/
-
-# Change wildcard char.
-/\*/s/\*/\\Option-x/g
-
-# Change path of various types of source files. This rule does not allow
-# for file names with multiple dots in the name.
-/\.[chly]/s/\([ ><=]\)\([-a-zA-Z0-9_${}:"]*\)\.\([chly]\)/\1"{s}"\2.\3/g
-/\.[chly]/s/^\([-a-zA-Z0-9_${}:"]*\)\.\([chly]\)/"{s}"\1.\2/
-# Allow files named *.tab.[ch] as a special case.
-/\.tab\.[ch]/s/\([ ><=]\)\([-a-zA-Z0-9_${}:"]*\.tab\)\.\([ch]\)/\1"{s}"\2.\3/g
-/\.tab\.[ch]/s/^\([-a-zA-Z0-9_${}:"]*\.tab\)\.\([ch]\)/"{s}"\1.\2/
-# Fix some overenthusiasms.
-/{s}/s/"{s}""{srcdir}"/"{srcdir}"/g
-/{s}/s/"{s}"{\([a-zA-Z0-9_]*\)dir}/"{\1dir}"/g
-/{s}/s/"{s}"{\([a-zA-Z0-9_]*\)DIR}/"{\1DIR}"/g
-/{s}/s/"{s}""{\([a-zA-Z0-9_]*\)dir}"/"{\1dir}"/g
-/{s}/s/"{s}""{\([a-zA-Z0-9_]*\)DIR}"/"{\1DIR}"/g
-/{s}/s/"{s}":/:/g
-/{s}/s/^"{s}"//g
-/{s}/s/"{s}""{s}"/"{s}"/g
-/{s}/s/"{s}""{srcdir}"/"{s}"/g
-/{s}/s/"{srcdir}""{s}"/"{s}"/g
-
-# The .def files are also typically source files.
-/\.def/s/\([ ><]\)\([-a-zA-Z0-9_${}:"]*\)\.def/\1"{s}"\2.def/g
-/\.def/s/^\([-a-zA-Z0-9_${}:"]*\)\.def/"{s}"\1.def/g
-
-# Change extension and path of objects.
-/\.o/s/\([ =]\)\([-a-zA-Z0-9_${}:"]*\)\.o/\1"{o}"\2.c.o/g
-/\.o/s/^\([-a-zA-Z0-9_${}:"]*\)\.o/"{o}"\1.c.o/
-# Allow *.tab.o files as a special case of a 2-dot-name file.
-/\.o/s/\([ =]\)\([-a-zA-Z0-9_${}:"]*\)\.tab\.o/\1"{o}"\2.tab.c.o/g
-/\.o/s/^\([-a-zA-Z0-9_${}:"]*\)\.tab\.o/"{o}"\1.tab.c.o/
-# Clean up.
-/"{o}"/s/"{o}""{o}"/"{o}"/g
-/"{o}"/s/^"{o}"\([a-zA-Z0-9_]*\)=/\1=/
-
-# Change extension of libs.
-/\.a/s/lib\([a-z]*\)\.a/lib\1.o/g
-
-# Remove non-fail option.
-/-/s/^\([ ]*\)-/\1/
-# Fix overeagernesses - assumes no one-letter commands.
-/^[ ]*[a-z] /s/^\([ ]*\)\([a-z]\) /\1-\2 /
-
-# Remove non-echo option. (watch out for autoconf things)
-/@/s/^\([ ]*\)@/\1/
-
-# Change cp to Duplicate.
-# Catenate is perhaps more accurate, but the pattern would have to
-# identify the output file and add a '>' redirection into it.
-/cp/s/^\([ ]*\)cp /\1Duplicate -d -y /
-# Change mv to Rename.
-/mv/s/^\([ ]*\)mv /\1Rename -y /
-/Rename/s/^\([ ]*\)Rename -y -f/\1Rename -y/
-# Change rm to Delete.
-/rm -rf/s/^\([ ]*\)rm -rf /\1Delete -i -y /
-/rm -f/s/^\([ ]*\)rm -f /\1Delete -i -y /
-/rm/s/^\([ ]*\)rm /\1Delete -i -y /
-# Note that we don't mess with ln - directory-specific scripts
-# must decide what to do with symlinks.
-# Change cat to Catenate.
-/cat/s/^\([ ]*\)cat /\1Catenate /
-# Change touch to mpw-touch.
-/touch/s/^\([ ]*\)touch /\1mpw-touch /
-# Change mkdir to NewFolder.
-/mkdir/s/^\([ ]*\)mkdir /\1NewFolder /
-# Change var setting to Set.
-/=/s/^\([ ]*\)\([-a-zA-Z0-9_]*\)=\([^;]*\); \\Option-d/\1Set \2 \3/
-
-# Change tests.
-/if /s/if \[ *-f \([^ ]*\) ] *; *\\Option-d/If "`Exists "\1"`" != ""/
-/if /s/if \[ *-f \([^ ]*\) ] *; *then *\\Option-d/If "`Exists "\1"`" != ""/
-/if /s/if \[ ! *-f \([^ ]*\) ] *; *\\Option-d/If "`Exists "\1"`" == ""/
-/if /s/if \[ ! *-f \([^ ]*\) ] *; *then \\Option-d/If "`Exists "\1"`" == ""/
-
-/if /s/if \[ *-d \([^ ]*\) ] *; *\\Option-d/If "`Exists "\1"`" != ""/
-/if /s/if \[ *-d \([^ ]*\) ] *; *then *\\Option-d/If "`Exists "\1"`" != ""/
-/if /s/if \[ ! *-d \([^ ]*\) ] *; *\\Option-d/If "`Exists "\1"`" == ""/
-/if /s/if \[ ! *-d \([^ ]*\) ] *; *then *\\Option-d/If "`Exists "\1"`" == ""/
-
-/if /s/if \[ -d \([^ ]*\) ] *; then true *; else mkdir \([^ ;]*\) *; fi/If "`Exists "\1"`" != "" NewFolder \2 End If/
-
-/if /s/if \[ \([^ ]*\) = \([^ ]*\) ] *; *\\Option-d/If "\1" == "\2"/
-/if /s/if \[ \([^ ]*\) = \([^ ]*\) ] *; *then *\\Option-d/If "\1" == "\2"/
-
-/if /s/if \[ \([^ ]*\) != \([^ ]*\) ] *; *\\Option-d/If "\1" != "\2"/
-/if /s/if \[ \([^ ]*\) != \([^ ]*\) ] *; *then *\\Option-d/If "\1" != "\2"/
-
-/if /s/if \[ \([^ ]*\) -eq \([^ ]*\) ] *; *\\Option-d/If "\1" != "\2"/
-/if /s/if \[ \([^ ]*\) -eq \([^ ]*\) ] *; *then *\\Option-d/If "\1" != "\2"/
-
-/^[ ]*else true$/c\
- Else\
- mpw-true\
-
-
-/else/s/^\([ ]*\)else[ ]*$/\1Else/
-/else/s/^\([ ]*\)else[; ]*\\Option-d$/\1Else/
-
-/^[ ]*else[ ]*true[ ]*$/c\
- Else\
- mpw-true
-
-/^[ ]*else[ ]*true[; ]*fi$/c\
- Else\
- mpw-true\
- End If
-
-/fi/s/^\([ ]*\)fi *$/\1End/
-/fi/s/^\([ ]*\)fi *; *\\Option-d/\1End/
-
-# Change looping.
-/for/s/^\([ ]*\)for \([-a-zA-Z0-9_]*\) in \([^;]*\); *do *\\Option-d/\1For \2 In \3/
-/^\([ ]*\)do *\\Option-d/d
-/done/s/^\([ ]*\)done *; *\\Option-d/\1End/
-/done/s/^\([ ]*\)done$/\1End/
-
-# Trailing semicolons and continued lines are unneeded sh syntax.
-/; \\Option-d/s/; \\Option-d//
-
-# Change move-if-change to MoveIfChange.
-/move-if-change/s/\([^ ]*\)move-if-change/MoveIfChange/g
-
-# Change $(SHELL) to the script name by itself.
-/SHELL/s/^\([ ]*\){SHELL} /\1/
-
-# Change syntax of default rule dependency.
-/^\.c\.o/s/^\.c\.o \\Option-f$/.c.o \\Option-f .c/
-
-# Change default rule's action.
-/{CC} -c/s/{CC} -c \(.*\) \$<$/{CC} @DASH_C_FLAG@ {DepDir}{Default}.c \1 @SEGMENT_FLAG({Default})@ -o {TargDir}{Default}.c.o/
-
-# This is pretty disgusting, but I can't seem to detect empty rules.
-/Option-f$/s/Option-f$/Option-f _oldest/g
-
-# Remove -c from explicit compiler calls. (but should not if GCC)
-# Handle the case of a source file that is "{xxx}"file.c.
-/ -c /s/{\([A-Z_]*\)CC}\(.*\) -c \(.*\)"\([^"]*\)"\([-a-z_]*\)\.c/{\1CC}\2 @DASH_C_FLAG@ \3"\4"\5.c -o "{o}"\5.c.o/
-# Handle the case of a source file that is "{xxx}"dir:file.c.
-/ -c /s/{\([A-Z_]*\)CC}\(.*\) -c \(.*\)"\([^"]*\)"\([-a-z_]*\):\([-a-z_]*\)\.c/{\1CC}\2 @DASH_C_FLAG@ \3"\4"\5:\6.c -o "{o}"\6.c.o/
-
-# Change linking cc to linking sequence.
-/-o/s/^\([ ]*\){CC} \(.*\){\([A-Z_]*\)CFLAGS} \(.*\){LDFLAGS} \(.*\)-o \([^ ]*\) \(.*\)$/\1{CC_LD} \2 {\3CFLAGS} \4 {LDFLAGS} \5 -o \6{PROG_EXT} \7\
-\1{MAKEPEF} \6{PROG_EXT} -o \6 {MAKEPEF_TOOL_FLAGS} {MAKEPEF_FLAGS}\
-\1{REZ} "{s}"\6.r -o \6 -append -d PROG_NAME='"'\6'"' -d VERSION_STRING='"'{version}'"'/
-/-o/s/^\([ ]*\){CC} \(.*\){\([A-Z_]*\)CFLAGS} \(.*\)-o \([^ ]*\) \(.*\){LDFLAGS} \(.*\)$/\1{CC_LD} \2 {\3CFLAGS} \4 {LDFLAGS} \6 -o \5{PROG_EXT} \7\
-\1{MAKEPEF} \5{PROG_EXT} -o \5 {MAKEPEF_TOOL_FLAGS} {MAKEPEF_FLAGS}\
-\1{REZ} "{s}"\5.r -o \5 -append -d PROG_NAME='"'\5'"' -d VERSION_STRING='"'{version}'"'/
-/-o/s/^\([ ]*\){HOST_CC} \(.*\)-o \([^ ]*\) \(.*\)$/\1{HOST_CC_LD} \2 -o \3{PROG_EXT} \4\
-\1{MAKEPEF} \3{PROG_EXT} -o \3 {MAKEPEF_TOOL_FLAGS} {MAKEPEF_FLAGS}\
-\1{REZ} "{s}"\3.r -o \3 -append -d PROG_NAME='"'\3'"' -d VERSION_STRING='"'{version}'"'/
-
-# Comment out .NOEXPORT rules.
-/\.NOEXPORT/s/^\.NOEXPORT/#\.NOEXPORT/
-# Comment out .PHONY rules.
-/\.PHONY/s/^\.PHONY/#\.PHONY/
-# Comment out .PRECIOUS rules.
-/\.PRECIOUS/s/^\.PRECIOUS/#\.PRECIOUS/
-# Comment out .SUFFIXES rules.
-/\.SUFFIXES/s/^\.SUFFIXES/#\.SUFFIXES/
-
-# Set the install program appropriately.
-/INSTALL/s/^INSTALL *= *`.*`:install.sh -c/INSTALL = Duplicate -y/
-
-# Don't try to decide whether to use the tree's own tools.
-/bison/s/`.*bison:bison.*`/bison -y/
-/byacc/s/`.*byacc:byacc.*`/byacc/
-/flex/s/`.*flex:flex.*`/flex/
-
-# Turn transformed C comments in echo commands back into comments.
-/echo/s,echo '\(.*\):\\Option-x\(.*\)\\Option-x:\(.*\)',echo '\1/*\2*/\3',
-
-# Whack out various clever expressions that search for tools, since
-# the clever code is too /bin/sh specific.
-
-/^AR_FOR_TARGET = `/,/`$/c\
-AR_FOR_TARGET = ::binutils:ar\
-
-
-/^RANLIB_FOR_TARGET = `/,/`$/c\
-RANLIB_FOR_TARGET = ::binutils:ranlib\
-
-
-/^RANLIB_TEST_FOR_TARGET = /,/ranlib ] )$/c\
-RANLIB_TEST_FOR_TARGET = \
-
-
-/^EXPECT = `/,/`$/c\
-EXPECT = \
-
-
-/^RUNTEST = `/,/`$/c\
-RUNTEST = \
-
-
-/^CC_FOR_TARGET = `/,/`$/c\
-CC_FOR_TARGET = \
-
-
-/^CXX_FOR_TARGET = `/,/`$/c\
-CXX_FOR_TARGET = \
-
-
-/^CHILL_FOR_TARGET = `/,/`$/c\
-CHILL_FOR_TARGET = \
-
-
-/^CHILL_LIB = `/,/`$/c\
-CHILL_LIB = \
-
-/sanit/s/{start-sanit...-[a-z0-9]*}//
-/sanit/s/{end-sanit...-[a-z0-9]*}//
-
-# Add standard defines and default rules.
-/^# srcdir/a\
-\
-s = "{srcdir}"\
-\
-o = :\
-\
-"{o}" \\Option-f : "{s}"
-
diff --git a/contrib/gcc/config/mpw/mpw-touch b/contrib/gcc/config/mpw/mpw-touch
deleted file mode 100644
index c743a5122b51..000000000000
--- a/contrib/gcc/config/mpw/mpw-touch
+++ /dev/null
@@ -1,7 +0,0 @@
-# "Touch" command.
-
-If "`Exists "{1}"`" != ""
- SetFile -m . "{1}"
-Else
- Echo ' ' > "{1}"
-End If
diff --git a/contrib/gcc/config/mpw/mpw-true b/contrib/gcc/config/mpw/mpw-true
deleted file mode 100644
index 0506530d3c6d..000000000000
--- a/contrib/gcc/config/mpw/mpw-true
+++ /dev/null
@@ -1 +0,0 @@
-Exit 0
diff --git a/contrib/gcc/config/mpw/null-command b/contrib/gcc/config/mpw/null-command
deleted file mode 100644
index 4844c8ec5532..000000000000
--- a/contrib/gcc/config/mpw/null-command
+++ /dev/null
@@ -1 +0,0 @@
-# This command does nothing.
diff --git a/contrib/gcc/config/mpw/open-brace b/contrib/gcc/config/mpw/open-brace
deleted file mode 100644
index 58465dcc18c4..000000000000
--- a/contrib/gcc/config/mpw/open-brace
+++ /dev/null
@@ -1,4 +0,0 @@
-# MPW makefiles seem not to have any way to get a literal open
-# brace into a rule anywhere, so this does the job.
-
-Echo '{'
diff --git a/contrib/gcc/config/mpw/tr-7to8-src b/contrib/gcc/config/mpw/tr-7to8-src
deleted file mode 100644
index b20b649c8953..000000000000
--- a/contrib/gcc/config/mpw/tr-7to8-src
+++ /dev/null
@@ -1,9 +0,0 @@
-StreamEdit -e \Option-d
- '/\Option-x/ \Option-d
- Replace /\Option-d\SrcOption-d/ "\Option-d\Option-d" -c \Option-5 ; \Option-d
- Replace /\Option-d\SrcOption-f/ "\Option-d\Option-f" -c \Option-5 ; \Option-d
- Replace /\Option-d\SrcOption-8/ "\Option-d\Option-8" -c \Option-5 ; \Option-d
- Replace /\Option-d\SrcOption-5/ "\Option-d\Option-5" -c \Option-5 ; \Option-d
- Replace /\Option-d\SrcOption-x/ "\Option-d\Option-x" -c \Option-5 ; \Option-d
- Replace /\Option-d\SrcOption-r/ "\Option-d\Option-r" -c \Option-5' \Option-d
- "{1}"
diff --git a/contrib/gcc/config/mpw/true b/contrib/gcc/config/mpw/true
deleted file mode 100644
index 0506530d3c6d..000000000000
--- a/contrib/gcc/config/mpw/true
+++ /dev/null
@@ -1 +0,0 @@
-Exit 0
diff --git a/contrib/gcc/config/mt-aix43 b/contrib/gcc/config/mt-aix43
deleted file mode 100644
index 0c6627fa7e26..000000000000
--- a/contrib/gcc/config/mt-aix43
+++ /dev/null
@@ -1,4 +0,0 @@
-# AIX 4.3 and above requires -X32_64 flag to all ar and nm commands
-# to handle both 32-bit and 64-bit objects.
-AR_FOR_TARGET=ar -X32_64
-NM_FOR_TARGET=nm -B -X32_64
diff --git a/contrib/gcc/config/mt-alphaieee b/contrib/gcc/config/mt-alphaieee
deleted file mode 100644
index 9c205314ad5b..000000000000
--- a/contrib/gcc/config/mt-alphaieee
+++ /dev/null
@@ -1,2 +0,0 @@
-CFLAGS_FOR_TARGET += -mieee
-CXXFLAGS_FOR_TARGET += -mieee
diff --git a/contrib/gcc/config/mt-armpic b/contrib/gcc/config/mt-armpic
deleted file mode 100644
index 35b8c9e4dc23..000000000000
--- a/contrib/gcc/config/mt-armpic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=-fPIC
diff --git a/contrib/gcc/config/mt-d30v b/contrib/gcc/config/mt-d30v
deleted file mode 100644
index d34b774b3f68..000000000000
--- a/contrib/gcc/config/mt-d30v
+++ /dev/null
@@ -1,4 +0,0 @@
-# Build libraries optimizing for space, not speed.
-# Turn off warnings about symbols named the same as registers
- CFLAGS_FOR_TARGET = -g -Os -Wa,-C
- CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C
diff --git a/contrib/gcc/config/mt-elfalphapic b/contrib/gcc/config/mt-elfalphapic
deleted file mode 100644
index 35b8c9e4dc23..000000000000
--- a/contrib/gcc/config/mt-elfalphapic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=-fPIC
diff --git a/contrib/gcc/config/mt-i370pic b/contrib/gcc/config/mt-i370pic
deleted file mode 100644
index 35b8c9e4dc23..000000000000
--- a/contrib/gcc/config/mt-i370pic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=-fPIC
diff --git a/contrib/gcc/config/mt-ia64pic b/contrib/gcc/config/mt-ia64pic
deleted file mode 100644
index ff9872755757..000000000000
--- a/contrib/gcc/config/mt-ia64pic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=-fpic
diff --git a/contrib/gcc/config/mt-linux b/contrib/gcc/config/mt-linux
deleted file mode 100644
index 15bf41716033..000000000000
--- a/contrib/gcc/config/mt-linux
+++ /dev/null
@@ -1 +0,0 @@
-CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE
diff --git a/contrib/gcc/config/mt-m68kpic b/contrib/gcc/config/mt-m68kpic
deleted file mode 100644
index ff9872755757..000000000000
--- a/contrib/gcc/config/mt-m68kpic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=-fpic
diff --git a/contrib/gcc/config/mt-netware b/contrib/gcc/config/mt-netware
deleted file mode 100644
index 9482f9b36d24..000000000000
--- a/contrib/gcc/config/mt-netware
+++ /dev/null
@@ -1 +0,0 @@
-GDB_NLM_DEPS = all-gcc all-ld
diff --git a/contrib/gcc/config/mt-ospace b/contrib/gcc/config/mt-ospace
deleted file mode 100644
index 7f091041d8a7..000000000000
--- a/contrib/gcc/config/mt-ospace
+++ /dev/null
@@ -1,3 +0,0 @@
-# Build libraries optimizing for space, not speed.
- CFLAGS_FOR_TARGET = -g -Os
- CXXFLAGS_FOR_TARGET = -g -Os
diff --git a/contrib/gcc/config/mt-papic b/contrib/gcc/config/mt-papic
deleted file mode 100644
index 35b8c9e4dc23..000000000000
--- a/contrib/gcc/config/mt-papic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=-fPIC
diff --git a/contrib/gcc/config/mt-ppcpic b/contrib/gcc/config/mt-ppcpic
deleted file mode 100644
index 35b8c9e4dc23..000000000000
--- a/contrib/gcc/config/mt-ppcpic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=-fPIC
diff --git a/contrib/gcc/config/mt-sparcpic b/contrib/gcc/config/mt-sparcpic
deleted file mode 100644
index a62b38bd9c1b..000000000000
--- a/contrib/gcc/config/mt-sparcpic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=`case '${LIBCFLAGS} ${LIBCXXFLAGS}' in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac`
diff --git a/contrib/gcc/config/mt-v810 b/contrib/gcc/config/mt-v810
deleted file mode 100644
index 97da6c265921..000000000000
--- a/contrib/gcc/config/mt-v810
+++ /dev/null
@@ -1,4 +0,0 @@
-CC_FOR_TARGET = ca732 -ansi
-AS_FOR_TARGET = as732
-AR_FOR_TARGET = ar732
-RANLIB_FOR_TARGET = true
diff --git a/contrib/gcc/config/mt-wince b/contrib/gcc/config/mt-wince
deleted file mode 100644
index cc7d67b58898..000000000000
--- a/contrib/gcc/config/mt-wince
+++ /dev/null
@@ -1,10 +0,0 @@
-# For Windows CE, we need to build the program that converts, copies,
-# and renames the platform SDK files into gcc directories.
-
-EXTRA_TARGET_HOST_ALL_MODULES:=$(EXTRA_TARGET_HOST_ALL_MODULES) all-utils
-EXTRA_TARGET_HOST_INSTALL_MODULES:=$(EXTRA_TARGET_HOST_INSTALL_MODULES) install-utils
-
-all-utils : all-libiberty
-
-install-utils : all-libiberty
-
diff --git a/contrib/gcc/config/mt-x86pic b/contrib/gcc/config/mt-x86pic
deleted file mode 100644
index ff9872755757..000000000000
--- a/contrib/gcc/config/mt-x86pic
+++ /dev/null
@@ -1 +0,0 @@
-PICFLAG_FOR_TARGET=-fpic
diff --git a/contrib/gcc/contrib/ChangeLog b/contrib/gcc/contrib/ChangeLog
deleted file mode 100644
index 37b4b563e82e..000000000000
--- a/contrib/gcc/contrib/ChangeLog
+++ /dev/null
@@ -1,721 +0,0 @@
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-18 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-08-14 Release Manager
-
- * GCC 3.2 Released.
-
-2002-08-14 Mark Mitchell <mark@codesourcery.com>
-
- * gennews (files): Add GCC 3.2 files.
-
-2002-07-25 Release Manager
-
- * GCC 3.1.1 Released.
-
-2002-07-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * gennews (files): Add proper files for the GCC 3.1 release series.
- Simplify and reformat introductory wording.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2002-04-03 Zack Weinberg <zack@codesourcery.com>
-
- * texi2pod.pl: Handle @end ftable and @end vtable.
-
-2002-03-12 Zack Weinberg <zack@codesourcery.com>
-
- * texi2pod.pl: Handle @include, @ftable, @vtable.
- Reformat some code for clarity.
-
-2002-02-24 Christian Jnsson <c.christian.joensson@telia.com>
-
- * test_summary: Additional to XPASS and FAIL, add UNRESOLVED,
- WARNING and ERROR output from the *.sum files.
-
-2002-01-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * gennews (files): Replace gcc-2.95/gcc-2.95.html,
- gcc-2.95/gcc-2.95.1.html, gcc-2.95/gcc-2.95.2.html,
- and gcc-2.95/gcc-2.95.3.html by gcc-2.95/index.html.
-
-2002-01-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * gennews (files): Replace egcs-1.1/egcs-1.1.2.html,
- egcs-1.1/egcs-1.1.1.html, and egcs-1.1/egcs-1.1.html by
- egcs-1.1/index.html.
-
-2002-01-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * warn_summary: Add -ada subdirectory flag.
-
-2001-12-12 Matthias Klose <doko@debian.org>
-
- * texi2pod.pl: Merge changes from binutils' texi2pod.pl. Allows
- generation of more than one man page from one source.
- Add '-' to set of valid chars for an identifier.
- Let -D option accept flags of the form <flag>=<value>.
- Use \s+ for whitespace detection in '@c man' lines.
- Handle @set and @clear independent of $output.
- Substitute all @value{}'s in a line.
-
-2001-11-14 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * texi2pod.pl: Handle @ifnottex, @iftex and @display. Handle @var
- in verbatim blocks specially. Handle @unnumbered, @unnumberedsec
- and @center. Allow [a-z] after @enumerate. Handle 0 and numbers
- greater than 9 in enumerations.
-
-2001-11-07 Laurent Guerby <guerby@acm.org>
-
- * gcc_update (files_and_dependencies): Add Ada dependencies.
-
-2001-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * snapshot: Remove.
-
-2001-09-07 Richard Sandiford <rsandifo@redhat.com>
-
- Revert:
- * gcc_update: (files_and_dependencies) Add gcc/java/parse.c
- gcc/java/parse-scan.c and gcc/java/keyword.h to list of files to
- touch.
-
-2001-09-04 David.Billinghurst <David.Billinghurst@riotinto.com>
-
- * gcc_update: (files_and_dependencies) Add gcc/java/parse.c
- gcc/java/parse-scan.c and gcc/java/keyword.h to list of files to
- touch.
-
-Mon Aug 13 02:29:08 CEST 2001 Jan Hubicka <jh@suse.cz>
-
- * analyze_brprob: Update for changes in gcc debug output.
-
-Sat Jul 28 22:37:49 CEST 2001 Jan Hubicka <jh@suse.cz>
-
- * analyze_brprob: Avoid more overflows.
-
-2001-07-27 Richard Henderson <rth@redhat.com>
-
- * test_summary: Copy LAST_UPDATED UTC time to head of summary.
-
-Fri Jul 27 18:01:21 CEST 2001 Jan Hubicka <jh@suse.cz>
-
- * analyze_brprob: Avoid overflows.
-
-2001-07-27 Richard Henderson <rth@redhat.com>
-
- * gcc_update: Dump timestamp in LAST_UPDATED.
-
-2001-07-26 Andreas Jaeger <aj@suse.de>,
- Hans-Peter Nilsson <hp@bitrange.com>
-
- * analyze_brprob: Fix documentation.
-
-Mon Jul 23 15:47:19 CEST 2001 Jan Hubicka <jh@suse.cz>
-
- * analyze_brprob: Fix awk compatibility problems; update comment.
-
-2001-07-23 Andreas Jaeger <aj@suse.de>
-
- * analyze_brprob: Fix more typos.
-
-2001-07-23 Andreas Jaeger <aj@suse.de>
-
- * analyze_brprob: Fix typos.
-
-2001-07-03 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * texi2pod.pl: Handle @r inside @item.
-
-2001-07-02 Zack Weinberg <zackw@stanford.edu>
-
- * gcc_update: Remove entries for gcc.1, cpp.1, gcov.1.
-
-2001-07-01 Zoltan Felleg <zfelleg@telnet.hu>
-
- * warn_summary: Fix typo in a comment.
-
-2001-06-14 Albert Chin-A-Young <china@thewrittenword.com>
-
- * contrib/gcc_update: Fix timestamp on gcc/f/intdoc.texi.
-
-2001-06-13 Mark Mitchell <mark@codesourcery.com>
-
- * gennews: Set TERM to vt100 for Lynx.
-
-2001-06-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * release: Remove.
-
-Tue Jun 12 12:21:40 CEST 2001 Jan Hubicka <jh@suse.cz>
-
- * analyze_brprob: New file.
-
-2001-06-11 Mark Mitchell <mark@codesourcery.com>
-
- * gcc_build: Output information about the commands used to
- configure the compiler.
-
-2001-06-07 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gennews: Update for GCC 3.0.
-
-2001-06-02 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gcc_update: Update for move of documentation to gcc/doc.
-
-2001-05-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
-
- * contrib/test_summary (files): Sort before evaluating.
-
-2001-05-23 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * gcc_update (UPDATE_OPTIONS): Add -d to the default settings.
-
-2001-05-21 Mark Mitchell <mark@codesourcery.com>
-
- * gcc_build: Use -d when invoking gcc_update.
-
-2001-05-18 Andreas Jaeger <aj@suse.de>
-
- * gcc_update: Add rules for libf2c/libI77.
-
-2001-05-17 Alexandre Oliva <aoliva@redhat.com>
-
- * gcc_update (touch_files): Use simpler, yet as portable, syntax.
-
-2001-05-14 Loren J. Rittle <ljrittle@acm.org>
-
- * gcc_update (touch_files): Enhance make portability.
-
-2001-05-14 Alexandre Oliva <aoliva@redhat.com>
-
- * gcc_update (touch_files): Use a Makefile to touch files.
-
-2001-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * texi2pod.pl: Add copyright and GPL notices.
-
-2001-01-24 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * texi2pod.pl: Handle "\,".
-
-2001-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * texi2pod.pl: Fix regular expression for @r to avoid exponential
- recursion. From Russ Allbery <rra@stanford.edu>. Remove perl
- version check.
-
-2001-01-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * warn_summary (stageNfilter): Update for recent changes in
- bootstrap logic.
-
-2001-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * texi2pod.pl: Require at least perl 5.6.0.
-
-2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gcc_update: Add gcc/gcc.1 to generated files.
- * texi2pod.pl: Handle @r and @gccoptlist. Handle @gol. Handle
- discarding to end of sentence with @xref where the sentence has an
- interior "." in markup, and handle discarding parentheses around
- such a sentence.
-
-2001-01-11 Bernd Schmidt <bernds@redhat.com>
-
- * gennews: Add gcc-2.95.3.
-
-2001-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * texi2pod.pl: Handle @gcctabopt and @env in tables. Handle
- @command. Format URLs and email addresses in bold.
-
-2001-01-03 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gcc_update: Add cpp.1 to the list of generated files.
-
- * texi2pod.pl: Handle @option and @env.
-
-2001-01-03 Mike Stump <mrs@wrs.com>
-
- * snapshot: Update to account for java libraries.
-
-2000-12-28 Jeffrey Oldham <oldham@codesourcery.com>
-
- * test_summary: Export filesuffix, not fileprefix.
-
-2000-12-22 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * release: Change some EGCS references to GCC.
-
-2000-12-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * warn_summary: Fix subdirectory filtering. Add -intl and -fixinc
- subdirectory flags. Add source directory prefix filtering.
- Redirect diagnostic output to stderr.
-
-2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
-
- * texi2pod.pl: If multiple @c man sections with the same tag
- appear, concatenate them in the final output. When skipping,
- ignore block commands that can't cause skipping, and honor
- those that can. Ensure that verbatim blocks are separate
- paragraphs.
-
-2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gcc_update: Don't touch tradcif.c or java/parse.h.
-
-2000-12-05 Zack Weinberg <zack@wolery.stanford.edu>
-
- * texi2pod.pl: Restructure for comprehensibility, add
- comments. Merge handling of @ignore and @ifxxx. Handle a
- whole bunch more Texinfo commands. Use consistent formatting
- style.
-
-2000-12-04 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gennews: New script.
-
-2000-11-22 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * gcc_update: Update a comment as we now require bison for CVS users.
-
-2000-11-22 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gcc_update: Add gcov.1 to the list of generated files.
-
-2000-11-21 Mark Mitchell <mark@codesourcery.com>
-
- * gcc_build: Remove code to put information in a log file.
-
-2000-11-19 Zack Weinberg <zackw@stanford.edu>
-
- * texi2pod.pl:
- - Add real command line parsing.
- - Support @ifset, @ifclear, @set, @value, -D switch.
- - Support @sc. Improve handling of @ref and friends.
- - Discard @subsection, @need, @node lines.
- - Un-nest font changes to match texinfo semantics.
- - Handle @{ and @}. Oops.
- - Don't emit E<> directives inside verbatim blocks.
-
-2000-11-12 Bruce Korb <bkorb@gnu.org>
-
- * release: generalize the release script a bit.
-
-Sat Nov 11 17:29:03 2000 Mark P Mitchell <mark@codesourcery.com>
-
- * gcc_build: Add -o option for setting the objdir to use.
-
-2000-11-11 Jeff Law <law@redhat.com>,
-
- * release: New file.
-
-2000-11-08 Jeff Law <law@redhat.com>,
- Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * snapshot: New file.
-
-2000-11-08 Jeffrey Oldham <oldham@oz.codesourcery.com>
-
- * gcc_build (bootstrap_gcc): New function.
- (configure_gcc): Likewise.
- (build_gcc): Rewritten to use configure and bootstrap.
- (MAKE_BOOTSTRAP_OPTIONS): Replaced MAKE_OPTIONS.
-
-2000-10-31 Mark Mitchell <mark@codesourcery.com>
-
- * gcc_build (MAKE): New variable.
- (build_gcc): Use it. Fix logging of errors.
- (install_gcc): Likewise.
-
-2000-10-29 Mark Mitchell <mark@codesourcery.com>
-
- * gcc_build: Save the output from CVS into the logfile as well.
-
-2000-10-25 Mark Mitchell <mark@codesourcery.com>
-
- * gcc_build: Fix typos.
-
-2000-10-14 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gperf-2.7-19981006.pat: Remove.
-
-2000-10-08 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * test_installed: Change EGCS references to refer to GCC.
-
-2000-09-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * gcc_update (touch_files): Add some informative output.
-
-2000-09-16 Andreas Jaeger <aj@suse.de>
-
- * gcc_update: Remove gcc/c-parse.gperf.
-
-2000-08-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>,
- Alexandre Oliva <aoliva@redhat.com>
-
- * gcc_update: Execute touch_files_reexec even if `cvs update`
- failed.
-
-2000-08-09 Alexandre Oliva <aoliva@redhat.com>
-
- * test_summary: AWK breaks with filenames containing `='.
-
-Sun Jul 16 12:04:33 2000 Mark P Mitchell <mark@codesourcery.com>
-
- * gcc_build: New script.
-
-2000-07-13 Mark Mitchell <mark@codesourcery.com>
-
- * gcc_update (files_and_dependencies): Remove generated YACC files.
-
-2000-07-12 Mark Mitchell <mark@codesourcery.com>
-
- * gcc_update (files_and_dependencies): Remove generated YACC files.
-
-2000-06-04 Mark Mitchell <mark@codesourcery.com>
-
- * newcvsroot: Handle filenames that contain spaces.
-
-2000-06-03 Zack Weinberg <zack@wolery.cumb.org>
-
- * test_summary: In generated script, use cat <<'EOF' not cat <<\EOF.
- Elide --with-gcc-version-trigger and --norecursion from
- configure flags. Remove code to report status of haifa scheduler.
-
-2000-05-18 Alexandre Oliva <aoliva@cygnus.com>
-
- * gcc_update (self): Set to `$0'.
- (touch_files_reexec): Use `$self' instead of `$0'.
-
-2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
-
- * gcc_update (touch_files_reexec): New function, run after the
- tree is modified.
-
-2000-05-08 Richard Hendeson <rth@cygnus.com>
-
- * gcc_update: Remove references to inclhack.tpl.
-
-2000-04-28 Jason Merrill <jason@casey.cygnus.com>
-
- * index-prop: Use a single pattern. Also support *** cdiffs.
-
-2000-04-28 Pavel Roskin <pavel_roskin@geocities.com>
-
- * index-prop: Don't change /dev/null.
-
-2000-04-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * gcc_update: Refer to GCC and gcc_update instead of egcs and
- egcs_update.
-
-2000-04-26 Jonathan Larmour <jlarmour@redhat.co.uk>
-
- * index-prop: Fix occasional problem when using cvs diff -p.
-
-2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
-
- * gcc_update: Remove references to cexp.c/cexp.y.
-
-1999-12-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * newcvsroot: Add check on the number of command-line arguments.
- Add usage.
-
-Sun Nov 28 00:41:44 1999 William Bader (william@nscs.fast.net)
-
- * gcc_update: Allow patches compressed by bzip2.
-
-1999-10-11 Martin v. Lwis <loewis@informatik.hu-berlin.de>
-
- * newcvsroot: New file.
-
-1999-09-11 Craig Burley <craig@jcb-sc.com>
-
- * convert_to_f2c, convert_to_g2c, download_f2c: New file.
-
-1999-08-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * gcc_update: New file.
- * egcs_update: Renamed to gcc_update.
-
-1999-08-09 Robert Lipe <robertlipe@usa.net>
-
- * test_summary: Quote curly braces in 1999-07-03 change.
-
-1999-07-28 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * egcs_update (files_and_dependencies): Fixed typo in
- gcc/cstamp-h.in. Added gcc/config.in.
-
-1999-07-27 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * egcs_update (files_and_dependencies): New function, with
- complete list of files to be updated, as well as their
- dependencies.
- (touch_files): Check the timestamp of each generated file against
- its dependencies'.
- (main): New flags --touch, --list and --help. Remove the
- pre-update step.
-
-1999-07-17 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary: Replace egcs with gcc. Update e-mail address.
-
-1999-07-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
- Jerry Quinn <jquinn@nortelnetworks.com>
-
- * egcs_update (touch_files, apply_patch): New functions.
- Use them. New command-line option --patch. Split test of local
- tree into two parts. Add comments.
-
-1999-07-03 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary: If Target is `unix{*}', append the Target variants
- to Host.
-
-1999-06-12 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary: Set default mail-address and version for egcs
- instead of relying on unpredictable pathnames.
- Reported by Andreas Jaeger <aj@arthur.rhein-neckar.de>
-
-Fri Apr 2 16:09:02 1999 Jeffrey A Law (law@cygnus.com)
-
- * fixinc/*: Delete obsolete files.
-
-1999-02-04 Robert Lipe <robertlipe@usa.net>
-
- * egcs_update: Test return values of 'cvs update'. Propogate
- to caller as exit values.
-
-1999-01-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * egcs_update: Use "if" instead of "&&". Touch generated files
- only after the corresponding *.y files.
-
-1999-01-19 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * egcs_update: Do not use xargs, but a backquote construct.
-
-1999-01-07 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary (version): Remove carriage return that gawk inserts
- in the version string for some reason.
-
-1998-11-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * egcs_update: Only touch files that already exist.
-
-1998-11-29 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary (EOF): Remove double backslash.
- Reported by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
-
-1998-11-28 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary (address): Set to egcs-testresults mailing list.
-
-1998-11-27 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary (address): Added Marc Lehmann's testsuite-results
- to the default e-mail address.
-
-1998-11-25 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary (-p, prepend_logs): Add these before the summary.
- (Compiler, Platform): Print these just before configflags.
-
-Sat Oct 31 10:53:40 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * warn_summary (longLineFilter): New shell function to encapsulate
- this functionality. It is off by default, only active if -llf
- flag is specified.
- (subdirectoryFilter): Fix bug in filtering which made some
- subdirectory warnings erroneously appear in the toplevel set.
- (stageNfilter): Renamed from `stageNwarns'. Updated to collect
- warnings from stage1 as well as stage0, which means warnings from
- outside the bootstrap directory. Eg, the libraries, etc.
- (warningFilter): New shell function to encapsulate this
- functionality.
- (keywordFilter): New shell function to encapsulate this
- functionality.
-
- Store data in a temp file rather than calculating it 3x. Arrange
- to remove it on exit and signals.
-
- Add -pass/-wpass flags to do "pass through" (i.e. manual
- inspection) of bootstrap output from a particular stageN as well
- as language subdirs.
-
- Add better comments/documentation.
-
-Sat Oct 31 16:39:31 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * egcs_update: Add comment about keeping the FAQ synchronized.
-
-Fri Oct 30 00:39:27 1998 Jeffrey A Law (law@cygnus.com)
-
- * egcs_update: Do touch java/parse.c and java/parse-scan.c. They're
- in the repo again.
-
-Fri Oct 16 07:35:00 1998 Bruce Korb <korb@datadesign.com>
-
- * egcs_update: Added gcc/fixinc/* generated files to touch list.
-
-Tue Oct 13 23:28:33 1998 Jeffrey A Law (law@cygnus.com)
-
- * egcs_update: Remove gcc/java/parse.c from list of files to
- touch.
-
-Wed Oct 7 13:00:40 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * gperf-2.7-19981006.pat: New file, patch for egcs-local gperf.
-
-Mon Oct 5 14:19:48 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * warn_summary (subdirectoryFilter): New shell function to
- optionally filter in/out gcc subdirectories when summarizing
- warnings. Add new flags to support subdirectory filtering.
-
- Also, ensure the bootstrap stage is a number. Add some more C
- keywords that are preserved in the "warning type" summary and
- tighten up the "arg ???" regexp.
-
-Tue Sep 22 07:30 Bruce Korb <korb@datadesign.com>
-
- * fixinc/inclhack.def: Not all C++ comments in C headers
- were treated alike. They are now. Also fixed syntax
- of sed expression in "systypes" fix.
-
- * fixinc/inclhack.def: Removed SVR4.2-ism from shell invocation
-
- * egcs_update: Added fixinc/* generated files to touch list.
-
-Wed Sep 16 16:06:51 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * egcs_update: Additionally touch gcc/java/parse.[ch].
-
-Thu Sep 9 16:48 Bruce Korb <korb@datadesign.com>
-
- * fixinc/inclhack.def: Added two files required by
- SCO's Open Server 5's avoid_bool fix.
- Regenerated fixinc.x and inclhack.sh to incorporate
- the update.
-
-Thu Sep 3 10:11:32 1998 Robert Lipe <robertl@dgii.com>
-
- * egcs_update: Do the pass 1 CVS update only for files that
- may reasonably be under CVS control.
-
-1998-08-14 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_installed: New script for testing already-installed
- gcc/g++/g77.
-
-Wed Aug 12 19:59:36 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * egcs_update: Assigned copyright to FSF.
-
-Tue Aug 11 17:55:53 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
- Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * egcs_update: New switch --nostdflags and documentation
- enhancements.
-
-Tue Aug 11 17:33:19 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * egcs_update: New script.
-
-1998-08-05 Bruce Korb <korbb@datadesign.com>
-
- * fixinc/Makefile
- Added define for target machine so machine-specific tests
- can be selected for or against.
-
- * fixinc/fixincl.c
- Added an array of string pointers to machines to select
- or avoid, depending on a FD_MACH_IFNOT bit flag.
- Used a shell script to match the defined TARGET_MACHINE
- with any of the given match patterns.
-
- * fixinc/fixincl.tpl
- Generate the array of strings and bit flag, as needed,
- depending on "mach" and "not_machine" attributes for a fix.
-
- * fixinc/mkfixinc.sh
- Invoke the make with TARGET assigned the value of the
- machine name argument.
-
-Mon Jul 27 22:08:12 1998 Mike Stump (mrs@wrs.com)
-
- * compare_tests: New script.
-
-1998-07-28 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary: Assigned copyright to FSF.
-
-Mon Jul 27 20:33:02 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * test_summary: Corrected script name in comments providing
- documentation. Added linebreaks for lines with > 80 characters.
-
-Fri Jun 19 02:36:59 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * test_summary: New switch, -i, and environment variable,
- append_logs, for including files in the report.
-
-1998-06-01 Manfred Hollstein <manfred@s-direktnet.de>
-
- * warn_summary: Update to Kaveh's latest version allowing to
- specify the last stage built.
-
-1998-05-29 Bruce Korb <korbb@datadesign.com>
-
- * fixinc/mkfixinc.sh
- Changes to make it easier to invoke on platforms that
- normally do not invoke fixincludes.
-
- * fixinc/inclhack.def
- Applied fixes from egcs/gcc/fixincludes from the past several
- months.
-
-1998-05-28 Bruce Korb <korbb@datadesign.com>
-
- * fixinc/*: Updated most everything for a first real
- try at getting "fast_fixincludes" working.
-
-1998-05-28 Jason Merrill <jason@yorick.cygnus.com>
-
- * index-prop: New file.
-
-Sat May 23 23:38:49 1998 Matthias Klose <doko@cs.tu-berlin.de>
-
- * test_summary: find good awk (copied from warn_summary).
-
-Sat May 23 23:38:33 1998 Jeffrey A Law (law@cygnus.com)
-
- * test_summary, warn_summary: New files
diff --git a/contrib/gcc/contrib/analyze_brprob b/contrib/gcc/contrib/analyze_brprob
deleted file mode 100755
index 3650e60c075f..000000000000
--- a/contrib/gcc/contrib/analyze_brprob
+++ /dev/null
@@ -1,146 +0,0 @@
-#!/usr/bin/awk -f
-# Script to analyze experimental results of our branch prediction heuristics
-# Contributed by Jan Hubicka, SuSE Inc.
-# Copyright (C) 2001 Free Software Foundation, Inc.
-#
-# This file is part of GNU CC.
-#
-# GNU CC 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.
-#
-# GNU CC 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 GNU CC; see the file COPYING. If not, write to
-# the Free Software Foundation, 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-#
-#
-# This script is used to calculate two basic properties of the branch prediction
-# heuristics - coverage and hitrate. Coverage is number of executions of a given
-# branch matched by the heuristics and hitrate is probability that once branch is
-# predicted as taken it is really taken.
-#
-# These values are useful to determine the quality of given heuristics. Hitrate
-# may be directly used in predict.c.
-#
-# Usage:
-# Step 1: Compile and profile your program. You need to use -fprofile-arcs
-# flag to get the profiles
-# Step 2: Generate log files. The information about given heuristics are
-# saved into *.life dumps. You need to pass the -df switch to the compiler as well
-# as -fbranch-probabilities to get the results of profiling noted in the dumps.
-# Ensure that there are no "Arc profiling: some edge counts were bad." warnings.
-# Step 3: Run this script to concatenate all *.life files:
-# analyze_brprob `find . -name *.life`
-# the information is collected and print once all files are parsed. This
-# may take a while.
-# Note that the script does use bc to perform long arithmetic.
-# Step 4: Read the results. Basically the following table is printed:
-# (this is just an example from a very early stage of branch prediction pass
-# development, so please don't take these numbers seriously)
-#
-#HEURISTICS BRANCHES (REL) HITRATE COVERAGE (REL)
-#opcode 2889 83.7% 94.96%/ 97.62% 7516383 75.3%
-#pointer 246 7.1% 99.69%/ 99.86% 118791 1.2%
-#loop header 449 13.0% 98.32%/ 99.07% 43553 0.4%
-#first match 3450 100.0% 89.92%/ 97.27% 9979782 100.0%
-#loop exit 924 26.8% 88.95%/ 95.58% 9026266 90.4%
-#error return 150 4.3% 64.48%/ 86.81% 453542 4.5%
-#call 803 23.3% 51.66%/ 98.61% 3614037 36.2%
-#loop branch 51 1.5% 99.26%/ 99.27% 26854 0.3%
-#noreturn call 951 27.6% 100.00%/100.00% 1759809 17.6%
-#
-# The heuristic called "first match" is a heuristic used by GCC branch
-# prediction pass and it predicts 89.92% branches correctly.
-#
-# The quality of heuristics can be rated using both, coverage and hitrate
-# parameters. For example "loop branch" heuristics (predicting loopback edge
-# as taken) have both very high hitrate and coverage, so it is very useful.
-# On the other hand, "exit block" heuristics (predicting exit edges as not
-# taken) have good hitrate, but poor coverage, so only 3 branches have been
-# predicted. The "loop header" heuristic has problems, since it tends to
-# misspredict.
-#
-# The implementation of this script is somewhat brute force. My awk skills
-# are limited.
-
-function longeval(e)
-{
- e = "echo \"scale = 2 ;"e"\" | bc"
- e | getline res
- close (e)
- return res
-}
-
-BEGIN {nnames = 0}
-
-/^ .* heuristics: .*.$/ {
- name=$0
- sub (/^ /,"",name)
- sub (/ heuristics: .*.$/,"",name)
- if (!(name in branches))
- {
- names[nnames] = name
- branches[name]=0
- counts[name]=0
- hits[name]=0
- phits[name]=0
- nnames++
- }
- branches[name]+=1
- }
-
-/^ .* heuristics: .*. exec [0-9]* hit [0-9]* (.*.)$/ {
- name=$0
- sub (/^ /,"",name)
- sub (/ heuristics: .*. exec [0-9]* hit [0-9]* (.*.)$/,"",name)
- pred=$0
- sub (/^ .* heuristics: /,"",pred)
- sub (/. exec [0-9]* hit [0-9]* (.*.)$/,"",pred)
- count=$0
- sub (/^ .* heuristics: .*. exec /,"",count)
- sub (/ hit [0-9]* (.*.)$/,"",count)
- hit=$0
- sub (/^ .* heuristics: .*. exec [0-9]* hit /,"",hit)
- sub (/ (.*.)$/,"",hit)
-
- if (int(pred) < 50.0)
- {
- hit = count"-"hit;
- }
- counts[name]=counts[name] "+" count
- hits[name]=hits[name] "+" hit
- phits[name]=phits[name] "+(("hit")<"count"/2)*("count"-("hit"))+(("hit")>="count"/2)*("hit")"
-
- #BC crashes on long strings. Irritating.
- if (length(counts[name]) > 2000)
- counts[name] = longeval(counts[name])
- if (length(hits[name]) > 2000)
- hits[name] = longeval(hits[name])
- if (length(phits[name]) > 2000)
- phits[name] = longeval(phits[name])
- }
-END {
- # Heuristics called combined predicts just everything.
- maxcounts = longeval(counts["combined"])
- maxbranches = branches["combined"]
- max = names["combined"]
- printf("HEURISTICS BRANCHES (REL) HITRATE COVERAGE (REL)\n")
- for (i = 0; i < nnames ; i++)
- {
- name = names[i]
- counts[name] = longeval(counts[name])
- printf ("%-27s %8i %5.1f%% %6s%%/%6s%% %12s %5.1f%%\n",
- name,
- branches[name], branches[name] * 100 / maxbranches,
- longeval("("hits[name]") * 100 /(" counts[name]"-0.00001)"),
- longeval("("phits[name]") * 100 /(" counts[name]"-0.00001)"),
- counts[name], longeval(counts[name]" * 100 / ("maxcounts"-0.00001)"))
- }
-}
diff --git a/contrib/gcc/contrib/compare_tests b/contrib/gcc/contrib/compare_tests
deleted file mode 100755
index 7a1d76cb8270..000000000000
--- a/contrib/gcc/contrib/compare_tests
+++ /dev/null
@@ -1,98 +0,0 @@
-#!/bin/sh
-# This script automatically test the given tool with the tool's test cases,
-# reporting anything of interest.
-
-# exits with 1 if there is nothing of interest
-# exits with 0 if there is something interesting
-# exits with 2 if an error occurred
-
-# Give two .sum files to compare them
-
-# Written by Mike Stump <mrs@cygnus.com>
-
-tmp1=/tmp/$tool-testing.$$a
-tmp2=/tmp/$tool-testing.$$b
-now_s=/tmp/$tool-testing.$$d
-before_s=/tmp/$tool-testing.$$e
-
-if [ "$2" = "" ]; then
- echo "Usage: $0 previous current" >&2
- exit 2
-fi
-
-sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$1" >$tmp1
-sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" >$tmp2
-
-before=$tmp1
-now=$tmp2
-
-trap "rm -f $tmp1 $tmp2 $now_s $before_s" 0 1 2 3 5 9 13 15
-
-sort +0.4 "$now" > "$now_s"
-sort +0.4 "$before" > "$before_s"
-
-grep '^FAIL' "$now_s" | sed 's/^....: //' >$tmp1
-grep '^PASS' "$before_s" | sed 's/^....: //' | comm -12 $tmp1 - >$tmp2
-
-grep -s . $tmp2 >/dev/null
-if [ $? = 0 ]; then
- echo "Tests that now fail, but worked before:"
- echo
- cat $tmp2
- echo
-fi
-
-grep '^PASS' "$now_s" | sed 's/^....: //' >$tmp1
-grep '^FAIL' "$before_s" | sed 's/^....: //' | comm -12 $tmp1 - >$tmp2
-
-grep -s . $tmp2 >/dev/null
-if [ $? = 0 ]; then
- echo "Tests that now work, but didn't before:"
- echo
- cat $tmp2
- echo
-fi
-
-grep '^FAIL' "$now_s" | sed 's/^....: //' >$tmp1
-grep '^[PF]A[SI][SL]' "$before_s" | sed 's/^....: //' | comm -23 $tmp1 - >$tmp2
-
-grep -s . $tmp2 >/dev/null
-if [ $? = 0 ]; then
- echo "New tests that FAIL:"
- echo
- cat $tmp2
- echo
-fi
-
-grep '^PASS' "$now_s" | sed 's/^....: //' >$tmp1
-grep '^[PF]A[SI][SL]' "$before_s" | sed 's/^....: //' | comm -23 $tmp1 - >$tmp2
-
-grep -s . $tmp2 >/dev/null
-if [ $? = 0 ]; then
- echo "New tests that PASS:"
- echo
- cat $tmp2
- echo
-fi
-
-grep '^[PF]A[SI][SL]' "$now_s" | sed 's/^....: //' >$tmp1
-grep '^PASS' "$before_s" | sed 's/^....: //' | comm -13 $tmp1 - >$tmp2
-
-grep -s . $tmp2 >/dev/null
-if [ $? = 0 ]; then
- echo "Old tests that passed, that have disappeared: (Eeek!)"
- echo
- cat $tmp2
- echo
-fi
-
-grep '^[PF]A[SI][SL]' "$now_s" | sed 's/^....: //' >$tmp1
-grep '^FAIL' "$before_s" | sed 's/^....: //' | comm -13 $tmp1 - >$tmp2
-
-grep -s . $tmp2 >/dev/null
-if [ $? = 0 ]; then
- echo "Old tests that failed, that have disappeared: (Eeek!)"
- echo
- cat $tmp2
- echo
-fi
diff --git a/contrib/gcc/contrib/convert_to_f2c b/contrib/gcc/contrib/convert_to_f2c
deleted file mode 100755
index 9a499fcf14c7..000000000000
--- a/contrib/gcc/contrib/convert_to_f2c
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-#
-# convert_to_f2c [g2c-dir]
-#
-# Renames certain files in a g2c (libg2c) directory so they no longer have the
-# `.netlib' suffix, a la netlib's f2c distribution. If `g2c-dir' is not
-# specified, `g2c-YYYYMMDD' is the default, where YYYYMMDD is the current
-# date. The directory is renamed such that the first `g' becomes an `f',
-# usually `g2c-YYYYMMDD' -> `f2c-YYYYMMDD'.
-#
-# (C) 1999 Free Software Foundation
-# Originally by James Craig Burley <craig@jcb-sc.com>, September 1999.
-#
-# This script is Free Software, and it can be copied, distributed and
-# modified as defined in the GNU General Public License. A copy of
-# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
-
-set -e
-
-if [ x$1 = x ]
-then
- dir=g2c-`date +%Y%m%d`
-else
- dir=$1
-fi
-
-newdir=`echo $dir | sed -e "s:g:f:"`
-
-cd $dir
-
-set +e
-
-mv -i changes.netlib changes
-mv -i disclaimer.netlib disclaimer
-mv -i g2c.hin f2c.h
-mv -i permission.netlib permission
-mv -i readme.netlib readme
-cd libF77
-mv -i README.netlib README
-mv -i makefile.netlib makefile
-cd ../libI77
-mv -i README.netlib README
-mv -i makefile.netlib makefile
-cd ..
-
-cd ..
-
-mv -iv $dir $newdir
diff --git a/contrib/gcc/contrib/convert_to_g2c b/contrib/gcc/contrib/convert_to_g2c
deleted file mode 100755
index 5d05f84e3932..000000000000
--- a/contrib/gcc/contrib/convert_to_g2c
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-#
-# convert_to_g2c [f2c-dir]
-#
-# Renames certain files in a netlib f2c directory so they have the `.netlib'
-# suffix, a la g77's version of f2c (libg2c). If `f2c-dir' is not specified,
-# `f2c-YYYYMMDD' is the default, where YYYYMMDD is the current date.
-# The directory is renamed such that the first `f' becomes a `g',
-# usually `f2c-YYYYMMDD' -> `g2c-YYYYMMDD'.
-#
-# (C) 1999 Free Software Foundation
-# Originally by James Craig Burley <craig@jcb-sc.com>, September 1999.
-#
-# This script is Free Software, and it can be copied, distributed and
-# modified as defined in the GNU General Public License. A copy of
-# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
-
-set -e
-
-if [ x$1 = x ]
-then
- dir=f2c-`date +%Y%m%d`
-else
- dir=$1
-fi
-
-newdir=`echo $dir | sed -e "s:f:g:"`
-
-cd $dir
-
-set +e
-
-mv -i changes changes.netlib
-mv -i disclaimer disclaimer.netlib
-mv -i f2c.h g2c.hin
-mv -i permission permission.netlib
-mv -i readme readme.netlib
-cd libF77
-mv -i README README.netlib
-mv -i makefile makefile.netlib
-cd ../libI77
-mv -i README README.netlib
-mv -i makefile makefile.netlib
-cd ..
-
-cd ..
-
-mv -iv $dir $newdir
diff --git a/contrib/gcc/contrib/download_f2c b/contrib/gcc/contrib/download_f2c
deleted file mode 100755
index 159c52e7d87a..000000000000
--- a/contrib/gcc/contrib/download_f2c
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-#
-# download_f2c
-#
-# Unpacks a directory full of f2c stuff obtained from netlib, naming
-# the directory f2c-YYYYMMDD (YYYYMMDD being the current date),
-# leaving it in current working directory.
-#
-# This shell script downloads the tarball from netlib, unpacks everything,
-# and strips off the redundant files, leaving a bare-bones (but fully
-# reproducible) f2c source directory. (You must have yacc/bison to rebuild
-# gram.c, by the way.)
-#
-# (C) 1999 Free Software Foundation
-# Originally by James Craig Burley <craig@jcb-sc.com>, September 1999.
-#
-# This script is Free Software, and it can be copied, distributed and
-# modified as defined in the GNU General Public License. A copy of
-# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
-#
-# FIXME: Replace WHOAMI with whatever is the canonical way to
-# obtain the user's email address these days.
-
-dir=f2c-`date +%Y%m%d`
-if [ ! -d $dir ]
-then
- mkdir $dir
-fi
-cd $dir
-
-echo Preparing $dir...
-
-if [ ! -d tmp ]
-then
- mkdir tmp
-fi
-
-if [ ! -f tmp/f2c.tar ]
-then
- cd tmp
- echo Downloading f2c.tar via ftp...
- ftp -n netlib.bell-labs.com <<EOF
- user ftp WHOAMI
- type binary
- cd netlib
- get f2c.tar
- quit
-EOF
- cd ..
-fi
-
-echo Unpacking f2c.tar...
-
-tar xf tmp/f2c.tar
-cd f2c
-find . -name "*.gz" -print | sed -e "s:^\(.*\).gz:rm -f \1.Z:g" | sh
-mv src libf77.gz libi77.gz f2c.1t.gz f2c.h.gz changes.gz disclaimer.gz readme.gz permission.gz ..
-cd ..
-rm -fr f2c
-gunzip *.gz
-(cd src; rm -f MD5 MD5.gz gram.c.gz .depend .depend.gz f2c.1.gz index.html index.html.gz; gunzip *.gz)
-sh libf77 > /dev/null && rm libf77
-rm -f libF77/xsum0.out libF77/libF77.xsum
-sh libi77 > /dev/null && rm libi77
-rm -f libI77/xsum0.out libI77/libI77.xsum
-rm -f src/xsum0.out
-touch src/xsum.out
-cmp f2c.h src/f2c.h && rm -fv src/f2c.h
-cmp src/readme src/README && rm -fv src/readme
-
-echo Deleting f2c.tar...
-rm tmp/f2c.tar
-rmdir tmp
-
-cd ..
-
-echo Latest f2c now in $dir.
diff --git a/contrib/gcc/contrib/gcc_build b/contrib/gcc/contrib/gcc_build
deleted file mode 100755
index 4d0eea30b6b1..000000000000
--- a/contrib/gcc/contrib/gcc_build
+++ /dev/null
@@ -1,316 +0,0 @@
-#! /bin/sh
-
-########################################################################
-#
-# File: gcc_build
-# Author: Mark Mitchell
-# Date: 07/10/2000
-#
-# Contents:
-# Script to automatically download and build GCC.
-#
-# Copyright (c) 2000, 2001 Free Software Foundation.
-#
-# This file is part of GNU CC.
-#
-# GNU CC 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.
-#
-# GNU CC 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 GNU CC; see the file COPYING. If not, write to
-# the Free Software Foundation, 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-#
-########################################################################
-
-########################################################################
-# Notes
-########################################################################
-
-# If you are using password-based CVS, you must manually log in, and
-# not log out from, the CVS server before running this script.
-
-# You can set the following variables in the environment. They
-# have no corresponding command-line options because they should
-# only be needed infrequently:
-#
-# MAKE The path to `make'.
-
-########################################################################
-# Functions
-########################################################################
-
-# Issue the error message given by $1 and exit with a non-zero
-# exit code.
-
-error() {
- echo "gcc_build: error: $1"
- exit 1
-}
-
-# Issue a usage message explaining how to use this script.
-
-usage() {
-cat <<EOF
-gcc_build [-c configure_options]
- [-d destination_directory]
- [-m make_boot_options]
- [-o objdir]
- [-u username]
- [-p protocol]
- [-t tarfile]
- [bootstrap]
- [build]
- [checkout]
- [configure]
- [export]
- [install]
- [test]
- [update]
-EOF
- exit 1
-}
-
-# Change to the directory given by $1.
-
-changedir() {
- cd $1 || \
- error "Could not change directory to $1"
-}
-
-# Set up CVS environment variables
-
-cvs_setup() {
- CVSROOT=":${CVS_PROTOCOL}:${CVS_USERNAME}@"
- CVSROOT="${CVSROOT}${CVS_SERVER}:${CVS_REPOSITORY}"
- export CVSROOT
-}
-
-# Checkout a fresh copy of the GCC build tree.
-
-checkout_gcc() {
- # Tell CVS where to find everything.
- cvs_setup
-
- # If the destination already exists, don't risk destroying it.
- test -e ${DESTINATION} && \
- error "${DESTINATION} already exists"
-
- # CVS doesn't allow an absolute path for the destination directory.
- DESTINATION_PARENT=`dirname ${DESTINATION}`
- test -d ${DESTINATION_PARENT} || \
- error "${DESTINATION_PARENT} is not a directory"
- changedir ${DESTINATION_PARENT}
-
- # Checkout the tree
- cvs -z 9 co -d `basename ${DESTINATION}` gcc || \
- error "Could not check out GCC"
-}
-
-# Update GCC.
-
-update_gcc() {
- # Tell CVS where to find everything
- cvs_setup
-
- # If the destination does not already exist, complain.
- test -d ${DESTINATION} || \
- error "{$DESTINATION} does not exist"
- # Enter the destination directory.
- changedir ${DESTINATION}
-
- # Update the tree
- ./contrib/gcc_update -d || \
- error "Could not update GCC"
-}
-
-# Configure for a build of GCC.
-
-configure_gcc() {
- # Go to the source directory.
- changedir ${DESTINATION}
-
- # Remove the object directory.
- rm -rf ${OBJDIR}
- # Create it again.
- mkdir ${OBJDIR} || \
- error "Could not create ${OBJDIR}"
- # Enter it.
- changedir ${OBJDIR}
-
- # Configure the tree.
- echo "Configuring: ${DESTINATION}/configure ${CONFIGURE_OPTIONS}"
- eval ${DESTINATION}/configure ${CONFIGURE_OPTIONS} || \
- error "Could not configure the compiler"
-}
-
-# Bootstrap GCC. Assume configuration has already occurred.
-
-bootstrap_gcc() {
- # Go to the source directory.
- changedir ${DESTINATION}
- # Go to the object directory.
- changedir ${OBJDIR}
-
- # Bootstrap the compiler
- echo "Building: ${MAKE} ${MAKE_BOOTSTRAP_OPTIONS} bootstrap"
- eval ${MAKE} ${MAKE_BOOTSTRAP_OPTIONS} bootstrap || \
- error "Could not bootstrap the compiler"
-}
-
-# Test GCC.
-
-test_gcc() {
- # Go to the source directory.
- changedir ${DESTINATION}
- # Go to the object directory.
- changedir ${OBJDIR}
-
- echo "Running tests... This will take a while."
- ${MAKE} -k check
- ${DESTINATION}/contrib/test_summary
-}
-
-# Export the GCC source tree.
-
-export_gcc() {
- # Go to the source directory.
- changedir ${DESTINATION}
- # Go up one level.
- changedir ..
- # Build a tarball of the source directory.
- tar czf ${TARFILE} \
- --exclude=${OBJDIR} \
- --exclude=CVS \
- --exclude='.#*' \
- --exclude='*~' \
- `basename ${DESTINATION}`
-}
-
-# Install GCC.
-
-install_gcc() {
- # Go to the source directory.
- changedir ${DESTINATION}
- # Go to the object directory.
- changedir ${OBJDIR}
-
- ${MAKE} install || error "Installation failed"
-}
-
-########################################################################
-# Initialization
-########################################################################
-
-# The CVS server containing the GCC repository.
-CVS_SERVER="gcc.gnu.org"
-# The path to the repository on that server.
-CVS_REPOSITORY="/cvs/gcc"
-# The CVS protocol to use.
-CVS_PROTOCOL="pserver"
-# The username to use when connecting to the server.
-CVS_USERNAME="anoncvs"
-
-# The directory where the checked out GCC will be placed.
-DESTINATION="${HOME}/dev/gcc"
-# The relative path from the top of the source tree to the
-# object directory.
-OBJDIR="objdir"
-
-# The file where the tarred up sources will be placed.
-TARFILE="${HOME}/dev/gcc.tgz"
-
-# Options to pass to configure.
-CONFIGURE_OPTIONS=
-# The `make' program.
-MAKE=${MAKE:-make}
-# Options to pass to make.
-MAKE_BOOTSTRAP_OPTIONS=
-
-# Modes of operation
-BOOTSTRAP=0
-CHECKOUT=0
-CONFIGURE=0
-EXPORT=0
-INSTALL=0
-TEST=0
-UPDATE=0
-
-########################################################################
-# Main Program
-########################################################################
-
-# Parse the options.
-while getopts "c:d:m:o:p:t:u:" ARG; do
- case $ARG in
- c) CONFIGURE_OPTIONS="${OPTARG}";;
- d) DESTINATION="${OPTARG}";;
- m) MAKE_BOOTSTRAP_OPTIONS="${OPTARG}";;
- o) OBJDIR="${OPTARG}";;
- p) CVS_PROTOCOL="${OPTARG}";;
- t) CVS_TARGFILE="${OPTARG}";;
- u) CVS_USERNAME="${OPTARG}";;
- \?) usage;;
- esac
-done
-shift `expr ${OPTIND} - 1`
-
-# Handle the major modes.
-while [ $# -ne 0 ]; do
- case $1 in
- bootstrap) BOOTSTRAP=1;;
- build) CONFIGURE=1; BOOTSTRAP=1;;
- checkout) CHECKOUT=1;;
- configure) CONFIGURE=1;;
- export) EXPORT=1;;
- install) INSTALL=1;;
- test) TEST=1;;
- update) UPDATE=1;;
- *) usage;;
- esac
- shift
-done
-
-# Check the arguments for sanity.
-if [ ${CHECKOUT} -ne 0 ] && [ ${UPDATE} -ne 0 ]; then
- error "Cannot checkout and update simultaneously"
-fi
-
-# Checkout the tree.
-if [ ${CHECKOUT} -ne 0 ]; then
- checkout_gcc
-elif [ ${UPDATE} -ne 0 ]; then
- update_gcc
-fi
-
-# Configure to build the tree.
-if [ ${CONFIGURE} -ne 0 ]; then
- configure_gcc
-fi
-
-# Bootstrap the compiler.
-if [ ${BOOTSTRAP} -ne 0 ]; then
- bootstrap_gcc
-fi
-
-# Test the compiler
-if [ ${TEST} -ne 0 ]; then
- test_gcc
-fi
-
-# Install the compiler.
-if [ ${INSTALL} -ne 0 ]; then
- install_gcc
-fi
-
-# Export the sources
-if [ ${EXPORT} -ne 0 ]; then
- export_gcc
-fi
diff --git a/contrib/gcc/contrib/gcc_update b/contrib/gcc/contrib/gcc_update
deleted file mode 100755
index c7cac7a82d1d..000000000000
--- a/contrib/gcc/contrib/gcc_update
+++ /dev/null
@@ -1,226 +0,0 @@
-#! /bin/sh
-#
-# Update a local CVS tree from the GCC repository, with an emphasis
-# on treating generated files correctly, so that autoconf, gperf et
-# al are not required for the ``end'' user.
-#
-# By default all command-line options are passed to `cvs update` in
-# addition to $UPDATE_OPTIONS (defined below). If the first parameter
-# reads --nostdflags, $UPDATE_OPTIONS as well as this parameter itself
-# are omitted.
-#
-# If the first parameter reads --patch, the second parameter is considered
-# a patch file.
-#
-# If the first parameter is --touch, no cvs operation will be performed,
-# only generated files that appear to be out of date in the local tree
-# will be touched.
-#
-# If the first parameter is --list, a list of the generated files and
-# their dependencies will be printed; --help prints this message.
-#
-# Examples:
-#
-# contrib/gcc_update -r gcc_latest_snapshot
-# contrib/gcc_update -A
-# contrib/gcc_update --nostdflags -P -r gcc-2_95-branch gcc/testsuite
-# contrib/gcc_update --patch some-patch
-# contrib/gcc_update --touch
-# contrib/gcc_update --list
-#
-#
-# (C) 1998, 1999, 2000, 2001 Free Software Foundation
-# Originally by Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>, August 1998.
-#
-# This script is Free Software, and it can be copied, distributed and
-# modified as defined in the GNU General Public License. A copy of
-# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
-
-
-# Default options used when updating via CVS.
-UPDATE_OPTIONS=-Pd
-# Use -P to prune empty directories.
-# Use -d to create any directories that exist in the repository but not
-# locally.
-# Use -A to reset any sticky tags, dates, or `-k' options.
-
-######## Anything below shouldn't be changed by regular users.
-
-# Arrange for the value of $0 to be available for functions
-self=$0
-
-# This function prints a list of all generated files, along with their
-# dependencies. Note that only one target is supported per line: the
-# colon is stripped from the output.
-files_and_dependencies () {
- sed -e 's/ *#.*//' -e '/^$/d' -e 's/://' <<\EOF
-# All automake dependencies within texinfo
-# In fact, not all, since we do not care about sub-directories that
-# we do not build. In particular, *.po and *.gmo are not touched.
-texinfo/aclocal.m4: texinfo/configure.in texinfo/acinclude.m4
-texinfo/Makefile.in: texinfo/Makefile.am texinfo/configure.in texinfo/aclocal.m4
-texinfo/configure: texinfo/configure.in texinfo/aclocal.m4
-texinfo/stamp-h.in: texinfo/configure.in texinfo/aclocal.m4 texinfo/acconfig.h
-texinfo/lib/Makefile.in: texinfo/lib/Makefile.am texinfo/configure.in texinfo/aclocal.m4
-texinfo/makeinfo/Makefile.in: texinfo/makeinfo/Makefile.am texinfo/configure.in texinfo/aclocal.m4
-texinfo/util/Makefile.in: texinfo/util/Makefile.am texinfo/configure.in texinfo/aclocal.m4
-# Now, proceed to gcc automatically generated files
-gcc/configure: gcc/configure.in
-gcc/cstamp-h.in: gcc/configure.in gcc/acconfig.h
-gcc/config.in: gcc/cstamp-h.in
-gcc/fixinc/fixincl.x: gcc/fixinc/fixincl.tpl gcc/fixinc/inclhack.def
-# And then, language-specific files
-gcc/f/intdoc.texi: gcc/f/intdoc.in gcc/f/intdoc.c gcc/f/intrin.h gcc/f/intrin.def
-gcc/ada/treeprs.ads: gcc/ada/treeprs.adt gcc/ada/sinfo.ads gcc/ada/xtreeprs.adb
-gcc/ada/einfo.h: gcc/ada/einfo.ads gcc/ada/einfo.adb gcc/ada/xeinfo.adb
-gcc/ada/sinfo.h: gcc/ada/sinfo.ads gcc/ada/xsinfo.adb
-gcc/ada/nmake.adb: gcc/ada/sinfo.ads gcc/ada/nmake.adt gcc/ada/xnmake.adb
-gcc/ada/nmake.ads: gcc/ada/sinfo.ads gcc/ada/nmake.adt gcc/ada/xnmake.adb
-# And libraries, at last
-libchill/configure: libchill/configure.in
-libf2c/configure: libf2c/configure.in
-libf2c/libF77/configure: libf2c/libF77/configure.in
-libf2c/libI77/configure: libf2c/libI77/configure.in
-libf2c/libI77/stamp-h.in: libf2c/libI77/configure.in
-libf2c/libI77/config.h.in: libf2c/libI77/configure.in libf2c/libI77/stamp-h.in
-libf2c/libU77/configure: libf2c/libU77/configure.in
-libf2c/libU77/stamp-h.in: libf2c/libU77/configure.in libf2c/libU77/acconfig.h
-libobjc/configure: libobjc/configure.in
-# fastjar
-fastjar/aclocal.m4: fastjar/configure.in
-fastjar/Makefile.in: fastjar/Makefile.am fastjar/configure.in fastjar/aclocal.m4
-fastjar/configure: fastjar/configure.in fastjar/aclocal.m4
-fastjar/stamp-h.in: fastjar/configure.in fastjar/aclocal.m4
-boehm-gc/aclocal.m4: boehm-gc/configure.in boehm-gc/acinclude.m4
-boehm-gc/Makefile.in: boehm-gc/Makefile.am boehm-gc/configure.in boehm-gc/aclocal.m4
-boehm-gc/configure: boehm-gc/configure.in boehm-gc/aclocal.m4
-libjava/aclocal.m4: libjava/configure.in libjava/acinclude.m4
-libjava/Makefile.in: libjava/Makefile.am libjava/configure.in libjava/aclocal.m4
-libjava/configure: libjava/configure.in libjava/aclocal.m4
-libjava/libltdl/aclocal.m4: libjava/libltdl/configure.in libjava/libltdl/acinclude.m4
-libjava/libltdl/Makefile.in: libjava/libltdl/Makefile.am libjava/libltdl/configure.in libjava/libltdl/aclocal.m4
-libjava/libltdl/configure: libjava/libltdl/configure.in libjava/libltdl/aclocal.m4
-libjava/libltdl/stamp-h.in: libjava/libltdl/configure.in libjava/libltdl/aclocal.m4 libjava/libltdl/acconfig.h
-EOF
-}
-
-
-# This function touches generated files such that the ``end'' user does
-# not have to rebuild them.
-touch_files () {
- rm -f Makefile.$$
- echo 'all: \' > Makefile.$$
- files_and_dependencies | sed 's, .*, \\,' >> Makefile.$$
- echo '; @true' >> Makefile.$$
- files_and_dependencies | sed 's, ,: ,' >> Makefile.$$
- files_and_dependencies | sed 's, .*, \\,' >> Makefile.$$
- echo ':' >> Makefile.$$
- echo ' @for f in $?; do test -f $$f || exit 0; done; \' >> Makefile.$$
- echo ' echo Touching $@...; \' >> Makefile.$$
- echo ' echo Touching $@... 1>&2; \' >> Makefile.$$
- echo ' touch $@' >> Makefile.$$
- files_and_dependencies | sed 's,[^ ]* ,,;s,$, :,' >> Makefile.$$
- while ${MAKE-make} -f Makefile.$$ all | grep . > /dev/null; do
- sleep 1
- done 2>&1
- rm -f Makefile.$$
-}
-
-
-# Whenever we update the tree or install a patch, we may be modifying
-# this script. By re-execing it, we ensure that the appropriate
-# dependencies and rules will be used.
-touch_files_reexec () {
- echo "Adjusting file timestamps"
- exec ${CONFIG_SHELL-/bin/sh} $self --touch
-}
-
-# This functions applies a patch to an existing tree.
-apply_patch () {
- if [ -f $1 ]; then
- echo "Applying patch file $1"
- case "$1" in
- *gz)
- gzip -d -c $1 | patch -p1 ;;
- *bz2)
- bzip2 -d -c $1 | patch -p1 ;;
- *)
- cat $1 | patch -p1 ;;
- esac
- fi
- touch_files_reexec
-}
-
-# Check whether this indeed looks like a local tree.
-if [ ! -f gcc/version.c ]; then
- echo "This does not seem to be a GCC tree!"
- exit
-fi
-
-case "$1" in
-# First of all, check whether we are going to process a patch.
---patch)
- if test "$#" != 2; then
- echo "$1" expects only one argument >&2
- exit 1
- fi
- apply_patch "${2}"
- exit $?
- ;;
-
---touch)
- if test "$#" != 1; then
- echo "$1" does not expect any argument >&2
- exit 1
- fi
- touch_files
- exit $?
- ;;
-
---list)
- if test "$#" != 1; then
- echo "$1" does not expect any argument >&2
- exit 1
- fi
- files_and_dependencies | sed 's/ /: /'
- exit $?
- ;;
-
---help)
- sed -e '1,2d' -e '/^UPDATE_OPTIONS=/{i\
-\
-
-p
-}' \
- -e '/^$/,$d' -e 's/#//' -e 's/^ //' < $0
- exit $?
- ;;
-
-esac
-
-# Check whether this indeed looks like a local CVS tree.
-if [ ! -d CVS ]; then
- echo "This does not seem to be a GCC CVS tree!"
- exit
-fi
-
-# Check command-line options
-if [ x"${1}"x = x"--nostdflags"x ]; then
- shift
-else
- set -- $UPDATE_OPTIONS ${1+"$@"}
-fi
-
-echo "Updating CVS tree"
-cvs -q update ${1+"$@"}
-if [ $? -ne 0 ]; then
- (touch_files_reexec)
- echo "CVS update of full tree failed." >&2
- exit 1
-fi
-
-{
- date
- TZ=UTC date
-} > LAST_UPDATED
-touch_files_reexec
diff --git a/contrib/gcc/contrib/gccbug.el b/contrib/gcc/contrib/gccbug.el
deleted file mode 100644
index 55821e5e6c5c..000000000000
--- a/contrib/gcc/contrib/gccbug.el
+++ /dev/null
@@ -1,84 +0,0 @@
-;;; gccbug.el --- forward bug reports to gnats
-;; (C) 2000 Free Software Foundation
-;; Written by Martin v. Lwis
-;; Usage:
-;; In rmail, bind a key to rmail-gccbug-reply, e.g.
-;; (require 'rmail)
-;; (require 'gccbug)
-;; (define-key rmail-mode-map "R" 'rmail-gccbug-reply)
-;; Then, when reviewing a report, type R to create a gnats-formatted
-;; message.
-
-(provide 'gccbug)
-
-(defun gccbug-reply ()
- (interactive)
- (let ((orig-yank-prefix mail-yank-prefix))
- (insert ">Submitter-Id: net\n")
- (insert ">Originator: \n")
- (insert ">Confidential: no\n")
- (insert ">Synopsis: ")
- (save-excursion
- (mail-subject)
- (let ((stop (point)))
- (re-search-backward "Re: ")
- (copy-region-as-kill (match-end 0) stop)))
- (yank)
- (insert "\n")
- (insert ">Severity: serious\n")
- (insert ">Priority: medium\n")
- (insert ">Category: \n")
- (insert ">Class: \n")
- ;(insert ">State: analyzed\n")
- (insert ">Release: 2.95.2\n")
- (insert ">Environment:\n")
- (insert ">Description:\n")
- (set 'mail-yank-prefix nil)
- (set 'mail-yank-ignored-headers
- "^via:\\|^mail-from:\\|^origin:\\|^status:\\|^remailed\\|^received:\\|^summary-line:\\|^to:\\|^subject:\\|^in-reply-to:\\|^return-path:\\|^X-.*:\\|^User-Agent:\\|^MIME-Version:\\|^Content-.*:\\|^List-.*:\\|C[Cc]:\\|^Precedence:\\|^Sender:\\|^Mailing-List:\\|^Delivered-To:\\|^>From")
- (mail-yank-original t)
- (set 'mail-yank-prefix orig-yank-prefix)
- ; Copy From: field to Originator:
- (re-search-backward "From: ")
- (let ((beg (match-end 0)))
- (end-of-line)
- (kill-region beg (point)))
- (re-search-backward ">Originator: ")
- (goto-char (match-end 0))
- (yank)
- ; Kill From: line
- (re-search-forward "From:")
- (beginning-of-line)
- (kill-line 1)
- ; Replace Message-ID: with Original-Message-ID
- (beginning-of-buffer)
- (re-search-forward "Message-ID: .*")
- (replace-match "Original-\\&")
- ; Replace To: line, adding recipient to Notify list
- (mail-to)
- (re-search-backward "To: ")
- (replace-match "To: gcc-gnats@gcc.gnu.org\nX-GNATS-Notify: ")
- ; add additional fields
- (end-of-buffer)
- (insert ">How-To-Repeat: \n>Fix: \n")
- ; See whether an Organization: is present
- (let ((org (re-search-backward "Organization:.*" nil t)))
- (if org
- (progn
- (kill-region (point) (match-end 0))
- (re-search-backward ">Confidential")
- (insert ">")
- (yank)
- (insert "\n"))))
-; This kills CC: lines, but rmail-reply below won't create any
-; (mail-cc)
-; (beginning-of-line)
-; (kill-line 1)
- ))
-
-(defun rmail-gccbug-reply ()
- (interactive)
- (rmail-toggle-header 0)
- (rmail-reply t)
- (gccbug-reply))
-
diff --git a/contrib/gcc/contrib/gennews b/contrib/gcc/contrib/gennews
deleted file mode 100755
index 3db519d3e57d..000000000000
--- a/contrib/gcc/contrib/gennews
+++ /dev/null
@@ -1,56 +0,0 @@
-#! /bin/sh
-#
-# Script to generate the NEWS file from online release notes.
-# Contributed by Joseph Myers <jsm28@cam.ac.uk>.
-#
-# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
-# This file is part of GNU CC.
-#
-# GNU CC 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.
-#
-# GNU CC 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 GNU CC; see the file COPYING. If not, write to
-# the Free Software Foundation, 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
-
-website=http://gcc.gnu.org/
-files="gcc-3.2/index.html gcc-3.2/changes.html
- gcc-3.1/index.html gcc-3.1/changes.html
- gcc-3.0/gcc-3.0.html gcc-3.0/features.html gcc-3.0/caveats.html
- gcc-2.95/index.html gcc-2.95/features.html gcc-2.95/caveats.html
- egcs-1.1/index.html egcs-1.1/features.html egcs-1.1/caveats.html
- egcs-1.0/egcs-1.0.3.html egcs-1.0/egcs-1.0.2.html egcs-1.0/egcs-1.0.1.html
- egcs-1.0/egcs-1.0.html egcs-1.0/features.html egcs-1.0/caveats.html"
-
-set -e
-
-cat <<EOF
-This file contains information about GCC releases which has been generated
-automatically from the online release notes. It covers releases of GCC
-(and the former EGCS project) since EGCS 1.0, on the line of development
-that led to GCC 3. For information on GCC 2.8.1 and older releases of GCC 2,
-see ONEWS.
-
-EOF
-
-header="======================================================================"
-
-echo $header
-
-for file in $files; do
- wfile=$website$file
- echo $wfile
- # We lie to Lynx about the kind of terminal in use because we
- # want to get consistent output everywhere, and we want this
- # script to work even when it is not run interactively.
- env TERM=vt100 lynx -dump $wfile
- echo $header
-done
diff --git a/contrib/gcc/contrib/index-prop b/contrib/gcc/contrib/index-prop
deleted file mode 100755
index 1ea648989f68..000000000000
--- a/contrib/gcc/contrib/index-prop
+++ /dev/null
@@ -1,26 +0,0 @@
-#! /usr/bin/perl -wi
-# Fix up the output of cvs diff -c so that it works with patch.
-# We do this by propagating the full pathname from the Index: line
-# into the diff itself.
-#
-# Thrown together by Jason Merrill <jason@cygnus.com>
-
-while (<>)
-{
- if (/^Index: (.*)/)
- {
- $full = $1;
- print;
- for (1..7)
- {
- $_ = <>;
- s/^([-+*]{3}) [^\t]+\t/$1 $full\t/
- unless m{ /dev/null\t};
- print;
- }
- }
- else
- {
- print;
- }
-}
diff --git a/contrib/gcc/contrib/newcvsroot b/contrib/gcc/contrib/newcvsroot
deleted file mode 100755
index 43e8e079c0b9..000000000000
--- a/contrib/gcc/contrib/newcvsroot
+++ /dev/null
@@ -1,34 +0,0 @@
-#! /usr/bin/env bash
-# Written by Roland McGrath <roland@gnu.org>
-
-# Replaces all CVS/Root and CVS/Repository files in a checked-out CVS
-# tree. Requires shell with # and % variable substitution (e.g. bash).
-
-# Usage: newcvsroot <newroot> <modulename> <toplevel directory>
-
-if [ $# != 3 ]; then
- echo "usage: `basename $0` <newroot> <modulename> <toplevel directory>"
- exit 1
-fi
-
-root=$1; shift
-module=$1; shift
-topdir=$1; shift
-
-rep=${root##*:}
-
-case "$topdir" in
-/*|./*|../*) echo >&2 "$0 wants relative path from top of checkout"; exit 1;;
-esac
-
-find $topdir \( -name Repository -o -name Root \) -print | while read f; do
-
-case "$f" in
-*/CVS/Root) echo $root > "$f" ;;
-*/CVS/Repository)
- r=${module}${f#${topdir}}
- echo > "$f" $rep/${r%/CVS/Repository}
- ;;
-esac
-
-done
diff --git a/contrib/gcc/contrib/regression/ChangeLog b/contrib/gcc/contrib/regression/ChangeLog
deleted file mode 100644
index 196a593fbff5..000000000000
--- a/contrib/gcc/contrib/regression/ChangeLog
+++ /dev/null
@@ -1,37 +0,0 @@
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-18 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-08-14 Release Manager
-
- * GCC 3.2 Released.
-
-2002-07-25 Release Manager
-
- * GCC 3.1.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2002-01-31 Geoffrey Keating <geoffk@redhat.com>
-
- * btest-gcc.sh: New file.
- * objs-gcc.sh: New file.
- * site.exp: New file.
- * ChangeLog: New file.
- * README: New file.
-
-
diff --git a/contrib/gcc/contrib/regression/README b/contrib/gcc/contrib/regression/README
deleted file mode 100644
index 7e0e657932e5..000000000000
--- a/contrib/gcc/contrib/regression/README
+++ /dev/null
@@ -1,18 +0,0 @@
-This directory contains scripts that are used by the regression
-tester, <http://people.redhat.com/geoffk/gcc-regression/>.
-
-The primary script is 'btest-gcc.sh'. This is the script that is run
-to actually test the compiler.
-
-'objs-gcc.sh' takes a combined tree and builds (but does not test) the
-tools required for 'btest-gcc.sh'. It is run periodically to update
-the tools. This script is followed by running 'btest-gcc.sh' using
-the newly-build tools to check that they will not cause regressions.
-
-'site.exp' is what $DEJAGNU points to when the regression tester runs
-these scripts.
-
-Note that any changes made here need to be approved by the regression
-tester's maintainer (see MAINTAINERS). The changes will be used on
-the tester's next run, so `experimental' changes are very strongly
-discouraged :-).
diff --git a/contrib/gcc/contrib/regression/btest-gcc.sh b/contrib/gcc/contrib/regression/btest-gcc.sh
deleted file mode 100755
index 1bd7e8ca61e1..000000000000
--- a/contrib/gcc/contrib/regression/btest-gcc.sh
+++ /dev/null
@@ -1,172 +0,0 @@
-#!/bin/sh
-
-# Test GCC.
-# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
-
-# This program 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 of the License, or
-# (at your option) any later version.
-
-# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-# INPUT:
-# btest <target> <source> <prefix> <state> <build>
-# TARGET is the target triplet. It should be the same one
-# as used in constructing PREFIX.
-TARGET=$1
-# SOURCE is the directory containing the toplevel configure.
-SOURCE=$2
-
-# PREFIX is the directory for the --prefix option to configure.
-# For cross compilers, it needs to contain header files,
-# libraries, and binutils. PATH should probably include
-# $PREFIX/bin.
-PREFIX=$3
-# This script also needs to include the GDB testsuite in
-# $PREFIX/share/gdb-testsuite.
-GDB_TESTSUITE=$PREFIX/share/gdb-testsuite
-
-# STATE is where the tester maintains its internal state,
-# described below.
-STATE=$4
-
-# BUILD is a temporary directory that this script will
-# delete and recreate, containing the build tree.
-BUILD=$5
-
-# you also probably need to set these variables:
-# PATH: should contain a native gcc, and a cross gdb.
-# DEJAGNU: should point to a site.exp suitable for testing
-# the compiler and debugger.
-
-
-# OUTPUT: in $RESULT, one of the following keywords:
-# error the script failed due to
-# a misconfiguration or resource limitation
-# build the build failed
-# regress-<n> the build succeeded, but there were <n>
-# testsuite regressions, listed in $REGRESS
-# pass build succeeded and there were no regressions
-RESULT=$STATE/RESULT
-# in BUILD_LOG, the output of the build
-BUILD_LOG=$STATE/build_log
-# in FAILED, a list of failing testcases
-FAILED=$STATE/failed
-# in PASSES, the list of testcases we expect to pass
-PASSES=$STATE/passes
-# in REGRESS, a list of testcases we expected to pass but that failed
-REGRESS=$STATE/regress
-
-# Make sure various files exist.
-[ -d $STATE ] || mkdir $STATE
-[ -f $PASSES ] || touch $PASSES
-
-# These lines should stay in this order, because
-# that way if something is badly wrong and $RESULT can't
-# be modified then cron will mail the error message.
-# The reverse order could lead to the testsuite claiming that
-# everything always passes, without running any tests.
-echo error > $RESULT || exit 1
-exec > $BUILD_LOG 2>&1 || exit 1
-
-set -x
-
-# Nuke $BUILD and recreate it.
-rm -rf $BUILD $REGRESS $FAILED
-mkdir $BUILD || exit 1
-cd $BUILD || exit 1
-
-H_BUILD=`$SOURCE/config.guess || exit 1`
-H_HOST=$H_BUILD
-if [ $TARGET = native ] ; then
- H_TARGET=$H_HOST
-else
- H_TARGET=$TARGET
-fi
-H_REAL_TARGET=`$SOURCE/config.sub $H_TARGET || exit 1`
-
-# TESTLOGS is the list of dejagnu .sum files that the tester should
-# look at.
-TESTLOGS="gcc/testsuite/gcc.sum
-gcc/testsuite/g++.sum
-gcc/testsuite/g77.sum
-gcc/testsuite/objc.sum
-test-gdb/gdb.sum"
-# $H_TARGET/libstdc++-v3/testsuite/libstdc++-v3.sum
-
-# Build.
-echo build > $RESULT
-$SOURCE/configure --prefix=$PREFIX --target=$H_TARGET || exit 1
-if [ $H_HOST = $H_TARGET ] ; then
- if ! make bootstrap ; then
- [ -s gcc/.bad_compare ] || exit 1
- cat gcc/.bad_compare >> $REGRESS || exit 1
- make all || exit 1
- fi
-else
- make || exit 1
-fi
-echo error > $RESULT || exit 1
-
-# Test GCC against its internal testsuite.
-make -k check-gcc
-
-# Test libstd++-v3
-make check-target-libstdc++-v3
-
-# Test the just-built GCC with the GDB testsuite.
-mkdir test-gdb || exit 1
-cd $GDB_TESTSUITE || exit 1
-for i in gdb.* ; do
- if [ -d $i ] ; then
- mkdir $BUILD/test-gdb/$i
- fi
-done
-cd $BUILD/test-gdb || exit 1
-echo "set host_alias $H_HOST" > site.exp
-echo "set host_triplet $H_HOST" >> site.exp
-echo "set target_alias $H_TARGET" >> site.exp
-echo "set target_triplet $H_REAL_TARGET" >> site.exp
-echo "set build_alias $H_BUILD" >> site.exp
-echo "set build_triplet $H_BUILD" >> site.exp
-echo "set srcdir $GDB_TESTSUITE" >> site.exp
-runtest --tool gdb
-
-# Sanity-check the testlogs. They should contain at least one PASS.
-cd $BUILD || exit 1
-for LOG in $TESTLOGS ; do
- if ! grep ^PASS: $LOG > /dev/null ; then
- echo build > $RESULT
- exit 1
- fi
-done
-
-# Work out what failed
-for LOG in $TESTLOGS ; do
- L=`basename $LOG`
- awk '/^FAIL: / { print "'$L'",$2; }' $LOG || exit 1
-done | sort | uniq > $FAILED || exit 1
-comm -12 $FAILED $PASSES >> $REGRESS || exit 1
-NUMREGRESS=`wc -l < $REGRESS | tr -d ' '`
-if [ $NUMREGRESS -ne 0 ] ; then
- echo regress-$NUMREGRESS > $RESULT
- exit 1
-fi
-
-# It passed. Update the state.
-for LOG in $TESTLOGS ; do
- L=`basename $LOG`
- awk '/^PASS: / { print "'$L'",$2; }' $LOG || exit 1
-done | sort | uniq | comm -23 - $FAILED > ${PASSES}~ || exit 1
-[ -s ${PASSES}~ ] || exit 1
-mv ${PASSES}~ ${PASSES} || exit 1
-echo pass > $RESULT
-exit 0
diff --git a/contrib/gcc/contrib/regression/objs-gcc.sh b/contrib/gcc/contrib/regression/objs-gcc.sh
deleted file mode 100755
index 839fcffb6124..000000000000
--- a/contrib/gcc/contrib/regression/objs-gcc.sh
+++ /dev/null
@@ -1,121 +0,0 @@
-#!/bin/sh
-
-# Build tools for testing GCC.
-# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
-
-# This program 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 of the License, or
-# (at your option) any later version.
-
-# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-# INPUT:
-# btest <target> <source> <prefix> <state> <build>
-# TARGET is the target triplet. It should be the same one
-# as used in constructing PREFIX.
-TARGET=$1
-# SOURCE is the directory containing the toplevel configure.
-SOURCE=$2
-
-# PREFIX is the directory for the --prefix option to configure.
-PREFIX=$3
-
-# STATE is where the tester maintains its internal state,
-# described below.
-STATE=$4
-
-# BUILD is a temporary directory that this script will
-# delete and recreate, containing the build tree.
-BUILD=$5
-
-# you also probably need to set these variables:
-# DEJAGNU: should point to a site.exp suitable for testing
-# the compiler and debugger.
-
-# OUTPUT: in $RESULT, one of the following keywords:
-# error the script failed due to
-# a misconfiguration or resource limitation
-# build the build failed
-# regress-<n> the build succeeded, but there were <n>
-# testsuite regressions, listed in $REGRESS
-# pass build succeeded and there were no regressions
-RESULT=$STATE/RESULT
-# in BUILD_LOG, the output of the build
-BUILD_LOG=$STATE/build_log
-# in FAILED, a list of failing testcases
-FAILED=$STATE/failed
-# in PASSES, the list of testcases we expect to pass
-PASSES=$STATE/passes
-# in REGRESS, a list of testcases we expected to pass but that failed
-REGRESS=$STATE/regress
-
-# Make sure various files exist.
-[ -d $STATE ] || mkdir $STATE
-[ -f $PASSES ] || touch $PASSES
-
-# These lines should stay in this order, because
-# that way if something is badly wrong and $RESULT can't
-# be modified then cron will mail the error message.
-# The reverse order could lead to the testsuite claiming that
-# everything always passes, without running any tests.
-echo error > $RESULT || exit 1
-exec > $BUILD_LOG 2>&1 || exit 1
-
-set -x
-
-# TESTLOGS is the list of dejagnu .sum files that the tester should
-# look at.
-TESTLOGS="test/gcc/gcc.sum
-test/g++/g++.sum"
-
-# Nuke $BUILD and recreate it.
-rm -rf $BUILD $REGRESS $FAILED
-mkdir $BUILD $BUILD/build $BUILD/objs || exit 1
-cd $BUILD || exit 1
-
-# This script used to use config.guess, but that is not how releng
-# determines hostnames.
-H_BUILD=`$SOURCE/config.guess || exit 1`
-H_HOST=$H_BUILD
-if [ $TARGET = native ] ; then
- H_TARGET=$H_HOST
-else
- H_TARGET=$TARGET
-fi
-H_REAL_TARGET=`$SOURCE/config.sub $H_TARGET || exit 1`
-H_REAL_BUILD=`$SOURCE/config.sub $H_BUILD || exit 1`
-H_REAL_HOST=`$SOURCE/config.sub $H_HOST || exit 1`
-
-# Build.
-echo build > $RESULT
-
-cd $BUILD/build || exit 1
-TMP_PREFIX=$BUILD/install
-$SOURCE/configure --prefix=$PREFIX --target=$H_TARGET || exit 1
-if [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-gnu ]
- then
- make all-gdb all-dejagnu all-ld || exit 1
- make install-gdb install-dejagnu install-ld || exit 1
-else
- make || exit 1
- make install || exit 1
-fi
-
-mkdir -p $PREFIX/share/gdb-testsuite || exit 1
-cd $SOURCE/gdb/testsuite || exit 1
-find . -print | cpio -pdmu $PREFIX/share/gdb-testsuite || exit 1
-# selftest.exp requires keeping old sources around, which is impractical
-rm $PREFIX/share/gdb-testsuite/gdb.base/selftest.exp
-# these tests seem to be broken and randomly failing
-rm -r $PREFIX/share/gdb-testsuite/gdb.mi
-
-echo pass > $RESULT
-exit 0
diff --git a/contrib/gcc/contrib/regression/site.exp b/contrib/gcc/contrib/regression/site.exp
deleted file mode 100644
index fa50920d2fa0..000000000000
--- a/contrib/gcc/contrib/regression/site.exp
+++ /dev/null
@@ -1,18 +0,0 @@
-global target_list
-
-case "$target_triplet" in {
- { "powerpc*-*eabi*" } {
-# if { [info exists tool] && $tool == "gcc" } {
-# set target_list { "powerpc-sim{,-fpic}" }
-# } else {
- set target_list { "powerpc-sim" }
-# }
- }
- { "mips-elf" } {
- set target_list { "mips-sim" }
- }
-
- default {
- set target_list { "unix" }
- }
-}
diff --git a/contrib/gcc/contrib/test_installed b/contrib/gcc/contrib/test_installed
deleted file mode 100755
index 1ef27bfaa147..000000000000
--- a/contrib/gcc/contrib/test_installed
+++ /dev/null
@@ -1,114 +0,0 @@
-#! /bin/sh
-
-# (C) 1998, 2000 Free Software Foundation
-# Originally by Alexandre Oliva <oliva@dcc.unicamp.br>
-
-# This script is Free Software, and it can be copied, distributed and
-# modified as defined in the GNU General Public License. A copy of
-# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
-
-# This scripts assumes it lives in the contrib directory of the GCC
-# source tree, so it will find the testsuite tree from its location.
-# If you move it elsewhere, or want to use another testsuite tree, you
-# can override the defaults with --srcdir=/some/dir/GCC or
-# --testsuite=/some/dir/GCC/gcc/testsuite. If you specify
-# --testsuite, --srcdir will be ignored; otherwise, `/gcc/testsuite'
-# will be appended to the srcdir.
-
-# You may specify where the binaries to be tested should be picked up
-# from. If you specify --prefix=/some/dir, gcc, g++ and g77 will be
-# looked for at /some/dir/bin. Each one may be overridden by
-# specifying --with-gcc=/pathname/to/gcc, --with-g++=/pathname/to/g++
-# and --with-g77=/pathname/to/g77. If you specify --without-gcc,
-# --without-g++ or --without-g77, the test for the specified program
-# will be skipped. By default, gcc, g++ and g77 will be searched in
-# the PATH.
-
-# An additional argument may specify --tmpdir=/some/dir; by default,
-# temporaries will be stored in the current directory, where the log
-# files will be stored.
-
-# The script will interpret arguments until it finds one it does not
-# understand. The remaining ones will be passed to `runtest'. A
-# double-dash can be used to explicitly separate the arguments to
-# `test_installed' from the ones to `runtest'.
-
-# This script should be run in an empty directory; it will refuse to
-# run if it finds a file named site.exp in the current directory.
-
-
-if test -f site.exp; then
- echo site.exp already exists >&2
- exit 1
-fi
-
-while true; do
- case "$1" in
- --with-testsuite=*) testsuite=`echo "$1" | sed 's/[^=]*=//'`; shift;;
- --srcdir=*) srcdir=`echo "$1" | sed 's/[^=]*=//'`; shift;;
-
- --prefix=*) prefix=`echo "$1" | sed 's/[^=]*=//'`; shift;;
- --with-gcc=*) GCC_UNDER_TEST=`echo "$1" | sed 's/[^=]*=//'`; shift;;
- --with-g++=*) GXX_UNDER_TEST=`echo "$1" | sed 's/[^=]*=//'`; shift;;
- --with-g77=*) G77_UNDER_TEST=`echo "$1" | sed 's/[^=]*=//'`; shift;;
- --without-gcc) GCC_UNDER_TEST=no; shift;;
- --without-g++) GXX_UNDER_TEST=no; shift;;
- --without-g77) G77_UNDER_TEST=no; shift;;
-
- --tmpdir=*) tmpdir=`echo "$1" | sed 's/[^=]*=//'`; shift;;
-
- --help) cat <<\EOF
-Runs the testsuite for an installed version of gcc/g++/g77
-Copyright (C) 1998 Free Software Foundation
-by Alexandre Oliva <oliva@dcc.unicamp.br>
-
-Supported arguments:
-
---help prints this page
-
---with-testsuite=/some/dir/gcc/testsuite specify the testsuite directory
---srcdir=/some/dir same as --with-testsuite=/some/dir/gcc/testsuite
- [deduced from shell-script pathname]
-
---prefix=/some/dir use gcc, g++ and g77 from /some/dir/bin [PATH]
---with-gcc=/some/dir/bin/gcc use specified gcc program [gcc]
---with-g++=/some/dir/bin/g++ use specified g++ program [g++]
---with-g77=/some/dir/bin/g77 use specified g77 program [g77]
---without-gcc do not run gcc testsuite
---without-g++ do not run g++ testsuite
---without-g77 do not run g77 testsuite
-
---tmpdir=/some/dir create temporaries and leave failed programs
- at specified directory [.]
-
--- end of argument list; following arguments are passed to runtest
-EOF
- exit
- ;;
-
- --) shift; break;;
- *) break;;
- esac
-done
-
-if test x"${testsuite+set}" != x"set" && test x"${srcdir+set}" != x"set"; then
- file=$0
- while [ -h $file ]; do
- file=`ls -l $file | sed s/'.* -> '//`
- done
- srcdir=`CDPATH=. && cd \`echo "$file" | sed 's,/*[^/]*$,,;s,^$,.,'\`/.. >/dev/null && pwd`
-fi
-
-cat >site.exp <<EOF
-set tmpdir "${tmpdir-`pwd`}"
-set srcdir "${testsuite-${srcdir}/gcc/testsuite}"
-set GCC_UNDER_TEST "${GCC_UNDER_TEST-${prefix}${prefix+/bin/}gcc}"
-set GXX_UNDER_TEST "${GXX_UNDER_TEST-${prefix}${prefix+/bin/}g++}"
-set G77_UNDER_TEST "${G77_UNDER_TEST-${prefix}${prefix+/bin/}g77}"
-EOF
-
-test x"${GCC_UNDER_TEST}" = x"no" || runtest --tool gcc ${1+"$@"}
-test x"${GXX_UNDER_TEST}" = x"no" || runtest --tool g++ ${1+"$@"}
-test x"${G77_UNDER_TEST}" = x"no" || runtest --tool g77 ${1+"$@"}
-
-exit 0
diff --git a/contrib/gcc/contrib/test_summary b/contrib/gcc/contrib/test_summary
deleted file mode 100755
index 506695499597..000000000000
--- a/contrib/gcc/contrib/test_summary
+++ /dev/null
@@ -1,142 +0,0 @@
-#! /bin/sh
-
-# (C) 1998, 1999, 2000 Free Software Foundation
-# Originally by Alexandre Oliva <oliva@dcc.unicamp.br>
-
-# This script is Free Software, and it can be copied, distributed and
-# modified as defined in the GNU General Public License. A copy of
-# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
-
-# This script processes *.{sum,log} files, producing a shell-script
-# that sends e-mail to the appropriate lists and renames files to
-# *.sent. It currently handles only gcc, but it should be quite easy
-# to modify it to handle other packages and its mailing lists.
-
-# The scripts assumes it is run in the root directory of the build
-# tree, and it will include all .sum files it finds in the mail
-# report.
-
-# configure flags are extracted from ./config.status
-
-# if the BOOT_CFLAGS environment variable is set, it will be included
-# in the mail report too.
-
-# The usage pattern of this script is as follows:
-
-# test_summary | more # so as to observe what should be done
-
-# test_summary | sh # so as to actually send e-mail and move log files
-
-# It accepts a few command line arguments. For example:
-# -o: re-reads logs that have been mailed already (.sum.sent)
-# -t: prevents logs from being renamed
-# -p: prepend specified file (or list of files: -p "a b") to the report
-# -i: append specified file (or list of files: -i "a b") to the report
-# -m: specify the e-mail address to send notes to. An appropriate default
-# should be selected from the log files.
-# -f: force reports to be mailed; if omitted, only reports that differ
-# from the sent.* version are sent.
-
-# Find a good awk.
-if test -z "$AWK" ; then
- for AWK in gawk nawk awk ; do
- if type $AWK 2>&1 | grep 'not found' > /dev/null 2>&1 ; then
- :
- else
- break
- fi
- done
-fi
-
-: ${filesuffix=}; export filesuffix
-: ${move=true}; export move
-: ${forcemail=false}; export forcemail
-while true; do
- case "$1" in
- -o) filesuffix=.sent; move=false; : ${mailto=nobody}; shift;;
- -t) move=false; shift;;
- -p) prepend_logs=${prepend_logs+"$prepend_logs "}"$2"; shift 2;;
- -i) append_logs=${append_logs+"$append_logs "}"$2"; shift 2;;
- -m) mailto=$2; forcemail=true; shift 2;;
- -f) unset mailto; forcemail=true; shift;;
- *) break;;
- esac
-done
-: ${mailto="\" address \""}; export mailto
-files=`find . -name \*.sum$filesuffix -print | sort`
-anyfile=false anychange=$forcemail &&
-for file in $files; do
- [ -f $file ] &&
- anyfile=true &&
- { $anychange ||
- anychange=`diff -u $file.sent $file 2>/dev/null |
- if test ! -f $file.sent ||
- egrep '^[-+](XPASS|FAIL)' >/dev/null; then
- echo true
- else
- echo false
- fi
- `
- }
- true
-done &&
-$anyfile &&
-if $forcemail || $anychange; then :; else mailto=nobody; fi &&
-# We use cat instead of listing the files as arguments to AWK because
-# GNU awk 3.0.0 would break if any of the filenames contained `=' and
-# was preceded by an invalid ``variable'' name.
-cat ./config.status $files |
-$AWK '
-BEGIN {
- lang="";
- address="gcc-testresults@gcc.gnu.org";
- version="gcc";
- print "cat <<'"'"'EOF'"'"' |";
-'${prepend_logs+" system(\"cat $prepend_logs\"); "}'
-}
-$1 ~ /\/configure$/ {
- srcdir = $1;
- gsub(/\/configure$/, "", srcdir);
- printf "LAST_UPDATED: ";
- system("tail -1 " srcdir "/LAST_UPDATED");
- print "";
-
- $1 = "configure flags:"; configflags = $0;
- gsub(/--with-gcc-version-trigger=[^ ]* /, "", configflags);
- gsub(/ --norecursion/, "", configflags)
-}
-/^Running target / { print ""; print; }
-/^Target / { if (host != "") next; else host = $3; }
-/^Host / && host ~ /^unix\{.*\}$/ { host = $3 " " substr(host, 5); }
-/^Native / { if (host != "") next; else host = $4; }
-/^[ ]*=== [^ ]+ tests ===/ {
- if (lang == "") lang = " "$2" "; else lang = " ";
-}
-$2 == "version" { save = $0; $1 = ""; $2 = ""; version = $0; gsub(/^ */, "", version); gsub(/\r$/, "", version); $0 = save; }
-/\===.*Summary/ { print ""; print; blanks=1; }
-/tests ===/ || /^(Target|Host|Native)/ || $2 == "version" { print; blanks=1; }
-/^(XPASS|FAIL|UNRESOLVED|WARNING|ERROR|# of )/ { print; }
-# dumpall != 0 && /^X?(PASS|FAIL|UNTESTED)|^testcase/ { dumpall=0; }
-# dumpall != 0 { print; }
-# /^FAIL/ { dumpall=1; }
-/^$/ && blanks>0 { print; --blanks; }
-END { if (lang != "") {
- print "";
- print "Compiler version: " prefix version lang;
- print "Platform: " host;
- print configflags;
- '${BOOT_CFLAGS+'print "BOOT_CFLAGS='"${BOOT_CFLAGS}"'";'}'
- if (boot_cflags != 0) print boot_cflags;
-'${append_logs+" system(\"cat $append_logs\"); "}'
- print "EOF";
- print "Mail -s \"Results for " prefix version lang "testsuite on " host "\" '"${mailto}"' &&";
-}}
-{ next; }
-' | sed "s/\([\`\$\\\\]\)/\\\\\\1/g" &&
-if $move; then
- for file in $files `ls -1 $files | sed s/sum$/log/`; do
- [ -f $file ] && echo "mv `pwd`/$file `pwd`/$file.sent &&"
- done
-fi &&
-echo true
-exit 0
diff --git a/contrib/gcc/contrib/texi2pod.pl b/contrib/gcc/contrib/texi2pod.pl
deleted file mode 100755
index 4fb8892ccb8f..000000000000
--- a/contrib/gcc/contrib/texi2pod.pl
+++ /dev/null
@@ -1,427 +0,0 @@
-#! /usr/bin/perl -w
-
-# Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
-
-# This file is part of GNU CC.
-
-# GNU CC 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.
-
-# GNU CC 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 GNU CC; see the file COPYING. If not, write to
-# the Free Software Foundation, 59 Temple Place - Suite 330,
-# Boston MA 02111-1307, USA.
-
-# This does trivial (and I mean _trivial_) conversion of Texinfo
-# markup to Perl POD format. It's intended to be used to extract
-# something suitable for a manpage from a Texinfo document.
-
-$output = 0;
-$skipping = 0;
-%sects = ();
-$section = "";
-@icstack = ();
-@endwstack = ();
-@skstack = ();
-@instack = ();
-$shift = "";
-%defs = ();
-$fnno = 1;
-$inf = "";
-$ibase = "";
-
-while ($_ = shift) {
- if (/^-D(.*)$/) {
- if ($1 ne "") {
- $flag = $1;
- } else {
- $flag = shift;
- }
- $value = "";
- ($flag, $value) = ($flag =~ /^([^=]+)(?:=(.+))?/);
- die "no flag specified for -D\n"
- unless $flag ne "";
- die "flags may only contain letters, digits, hyphens, dashes and underscores\n"
- unless $flag =~ /^[a-zA-Z0-9_-]+$/;
- $defs{$flag} = $value;
- } elsif (/^-/) {
- usage();
- } else {
- $in = $_, next unless defined $in;
- $out = $_, next unless defined $out;
- usage();
- }
-}
-
-if (defined $in) {
- $inf = gensym();
- open($inf, "<$in") or die "opening \"$in\": $!\n";
- $ibase = $1 if $in =~ m|^(.+)/[^/]+$|;
-} else {
- $inf = \*STDIN;
-}
-
-if (defined $out) {
- open(STDOUT, ">$out") or die "opening \"$out\": $!\n";
-}
-
-while(defined $inf) {
-while(<$inf>) {
- # Certain commands are discarded without further processing.
- /^\@(?:
- [a-z]+index # @*index: useful only in complete manual
- |need # @need: useful only in printed manual
- |(?:end\s+)?group # @group .. @end group: ditto
- |page # @page: ditto
- |node # @node: useful only in .info file
- |(?:end\s+)?ifnottex # @ifnottex .. @end ifnottex: use contents
- )\b/x and next;
-
- chomp;
-
- # Look for filename and title markers.
- /^\@setfilename\s+([^.]+)/ and $fn = $1, next;
- /^\@settitle\s+([^.]+)/ and $tl = postprocess($1), next;
-
- # Identify a man title but keep only the one we are interested in.
- /^\@c\s+man\s+title\s+([A-Za-z0-9-]+)\s+(.+)/ and do {
- if (exists $defs{$1}) {
- $fn = $1;
- $tl = postprocess($2);
- }
- next;
- };
-
- # Look for blocks surrounded by @c man begin SECTION ... @c man end.
- # This really oughta be @ifman ... @end ifman and the like, but such
- # would require rev'ing all other Texinfo translators.
- /^\@c\s+man\s+begin\s+([A-Z]+)\s+([A-Za-z0-9-]+)/ and do {
- $output = 1 if exists $defs{$2};
- $sect = $1;
- next;
- };
- /^\@c\s+man\s+begin\s+([A-Z]+)/ and $sect = $1, $output = 1, next;
- /^\@c\s+man\s+end/ and do {
- $sects{$sect} = "" unless exists $sects{$sect};
- $sects{$sect} .= postprocess($section);
- $section = "";
- $output = 0;
- next;
- };
-
- # handle variables
- /^\@set\s+([a-zA-Z0-9_-]+)\s*(.*)$/ and do {
- $defs{$1} = $2;
- next;
- };
- /^\@clear\s+([a-zA-Z0-9_-]+)/ and do {
- delete $defs{$1};
- next;
- };
-
- next unless $output;
-
- # Discard comments. (Can't do it above, because then we'd never see
- # @c man lines.)
- /^\@c\b/ and next;
-
- # End-block handler goes up here because it needs to operate even
- # if we are skipping.
- /^\@end\s+([a-z]+)/ and do {
- # Ignore @end foo, where foo is not an operation which may
- # cause us to skip, if we are presently skipping.
- my $ended = $1;
- next if $skipping && $ended !~ /^(?:ifset|ifclear|ignore|menu|iftex)$/;
-
- die "\@end $ended without \@$ended at line $.\n" unless defined $endw;
- die "\@$endw ended by \@end $ended at line $.\n" unless $ended eq $endw;
-
- $endw = pop @endwstack;
-
- if ($ended =~ /^(?:ifset|ifclear|ignore|menu|iftex)$/) {
- $skipping = pop @skstack;
- next;
- } elsif ($ended =~ /^(?:example|smallexample|display)$/) {
- $shift = "";
- $_ = ""; # need a paragraph break
- } elsif ($ended =~ /^(?:itemize|enumerate|[fv]?table)$/) {
- $_ = "\n=back\n";
- $ic = pop @icstack;
- } else {
- die "unknown command \@end $ended at line $.\n";
- }
- };
-
- # We must handle commands which can cause skipping even while we
- # are skipping, otherwise we will not process nested conditionals
- # correctly.
- /^\@ifset\s+([a-zA-Z0-9_-]+)/ and do {
- push @endwstack, $endw;
- push @skstack, $skipping;
- $endw = "ifset";
- $skipping = 1 unless exists $defs{$1};
- next;
- };
-
- /^\@ifclear\s+([a-zA-Z0-9_-]+)/ and do {
- push @endwstack, $endw;
- push @skstack, $skipping;
- $endw = "ifclear";
- $skipping = 1 if exists $defs{$1};
- next;
- };
-
- /^\@(ignore|menu|iftex)\b/ and do {
- push @endwstack, $endw;
- push @skstack, $skipping;
- $endw = $1;
- $skipping = 1;
- next;
- };
-
- next if $skipping;
-
- # Character entities. First the ones that can be replaced by raw text
- # or discarded outright:
- s/\@copyright\{\}/(c)/g;
- s/\@dots\{\}/.../g;
- s/\@enddots\{\}/..../g;
- s/\@([.!? ])/$1/g;
- s/\@[:-]//g;
- s/\@bullet(?:\{\})?/*/g;
- s/\@TeX\{\}/TeX/g;
- s/\@pounds\{\}/\#/g;
- s/\@minus(?:\{\})?/-/g;
- s/\\,/,/g;
-
- # Now the ones that have to be replaced by special escapes
- # (which will be turned back into text by unmunge())
- s/&/&amp;/g;
- s/\@\{/&lbrace;/g;
- s/\@\}/&rbrace;/g;
- s/\@\@/&at;/g;
-
- # Inside a verbatim block, handle @var specially.
- if ($shift ne "") {
- s/\@var\{([^\}]*)\}/<$1>/g;
- }
-
- # POD doesn't interpret E<> inside a verbatim block.
- if ($shift eq "") {
- s/</&lt;/g;
- s/>/&gt;/g;
- } else {
- s/</&LT;/g;
- s/>/&GT;/g;
- }
-
- # Single line command handlers.
-
- /^\@include\s+(.+)$/ and do {
- push @instack, $inf;
- $inf = gensym();
-
- # Try cwd and $ibase.
- open($inf, "<" . $1)
- or open($inf, "<" . $ibase . "/" . $1)
- or die "cannot open $1 or $ibase/$1: $!\n";
- next;
- };
-
- /^\@(?:section|unnumbered|unnumberedsec|center)\s+(.+)$/
- and $_ = "\n=head2 $1\n";
- /^\@subsection\s+(.+)$/
- and $_ = "\n=head3 $1\n";
-
- # Block command handlers:
- /^\@itemize\s+(\@[a-z]+|\*|-)/ and do {
- push @endwstack, $endw;
- push @icstack, $ic;
- $ic = $1;
- $_ = "\n=over 4\n";
- $endw = "itemize";
- };
-
- /^\@enumerate(?:\s+([a-zA-Z0-9]+))?/ and do {
- push @endwstack, $endw;
- push @icstack, $ic;
- if (defined $1) {
- $ic = $1 . ".";
- } else {
- $ic = "1.";
- }
- $_ = "\n=over 4\n";
- $endw = "enumerate";
- };
-
- /^\@([fv]?table)\s+(\@[a-z]+)/ and do {
- push @endwstack, $endw;
- push @icstack, $ic;
- $endw = $1;
- $ic = $2;
- $ic =~ s/\@(?:samp|strong|key|gcctabopt|env)/B/;
- $ic =~ s/\@(?:code|kbd)/C/;
- $ic =~ s/\@(?:dfn|var|emph|cite|i)/I/;
- $ic =~ s/\@(?:file)/F/;
- $_ = "\n=over 4\n";
- };
-
- /^\@((?:small)?example|display)/ and do {
- push @endwstack, $endw;
- $endw = $1;
- $shift = "\t";
- $_ = ""; # need a paragraph break
- };
-
- /^\@itemx?\s*(.+)?$/ and do {
- if (defined $1) {
- # Entity escapes prevent munging by the <> processing below.
- $_ = "\n=item $ic\&LT;$1\&GT;\n";
- } else {
- $_ = "\n=item $ic\n";
- $ic =~ y/A-Ya-y/B-Zb-z/;
- $ic =~ s/(\d+)/$1 + 1/eg;
- }
- };
-
- $section .= $shift.$_."\n";
-}
-# End of current file.
-close($inf);
-$inf = pop @instack;
-}
-
-die "No filename or title\n" unless defined $fn && defined $tl;
-
-$sects{NAME} = "$fn \- $tl\n";
-$sects{FOOTNOTES} .= "=back\n" if exists $sects{FOOTNOTES};
-
-for $sect (qw(NAME SYNOPSIS DESCRIPTION OPTIONS ENVIRONMENT FILES
- BUGS NOTES FOOTNOTES SEEALSO AUTHOR COPYRIGHT)) {
- if(exists $sects{$sect}) {
- $head = $sect;
- $head =~ s/SEEALSO/SEE ALSO/;
- print "=head1 $head\n\n";
- print scalar unmunge ($sects{$sect});
- print "\n";
- }
-}
-
-sub usage
-{
- die "usage: $0 [-D toggle...] [infile [outfile]]\n";
-}
-
-sub postprocess
-{
- local $_ = $_[0];
-
- # @value{foo} is replaced by whatever 'foo' is defined as.
- while (m/(\@value\{([a-zA-Z0-9_-]+)\})/g) {
- if (! exists $defs{$2}) {
- print STDERR "Option $2 not defined\n";
- s/\Q$1\E//;
- } else {
- $value = $defs{$2};
- s/\Q$1\E/$value/;
- }
- }
-
- # Formatting commands.
- # Temporary escape for @r.
- s/\@r\{([^\}]*)\}/R<$1>/g;
- s/\@(?:dfn|var|emph|cite|i)\{([^\}]*)\}/I<$1>/g;
- s/\@(?:code|kbd)\{([^\}]*)\}/C<$1>/g;
- s/\@(?:gccoptlist|samp|strong|key|option|env|command|b)\{([^\}]*)\}/B<$1>/g;
- s/\@sc\{([^\}]*)\}/\U$1/g;
- s/\@file\{([^\}]*)\}/F<$1>/g;
- s/\@w\{([^\}]*)\}/S<$1>/g;
- s/\@(?:dmn|math)\{([^\}]*)\}/$1/g;
-
- # Cross references are thrown away, as are @noindent and @refill.
- # (@noindent is impossible in .pod, and @refill is unnecessary.)
- # @* is also impossible in .pod; we discard it and any newline that
- # follows it. Similarly, our macro @gol must be discarded.
-
- s/\(?\@xref\{(?:[^\}]*)\}(?:[^.<]|(?:<[^<>]*>))*\.\)?//g;
- s/\s+\(\@pxref\{(?:[^\}]*)\}\)//g;
- s/;\s+\@pxref\{(?:[^\}]*)\}//g;
- s/\@noindent\s*//g;
- s/\@refill//g;
- s/\@gol//g;
- s/\@\*\s*\n?//g;
-
- # @uref can take one, two, or three arguments, with different
- # semantics each time. @url and @email are just like @uref with
- # one argument, for our purposes.
- s/\@(?:uref|url|email)\{([^\},]*)\}/&lt;B<$1>&gt;/g;
- s/\@uref\{([^\},]*),([^\},]*)\}/$2 (C<$1>)/g;
- s/\@uref\{([^\},]*),([^\},]*),([^\},]*)\}/$3/g;
-
- # Turn B<blah I<blah> blah> into B<blah> I<blah> B<blah> to
- # match Texinfo semantics of @emph inside @samp. Also handle @r
- # inside bold.
- s/&LT;/</g;
- s/&GT;/>/g;
- 1 while s/B<((?:[^<>]|I<[^<>]*>)*)R<([^>]*)>/B<$1>${2}B</g;
- 1 while (s/B<([^<>]*)I<([^>]+)>/B<$1>I<$2>B</g);
- 1 while (s/I<([^<>]*)B<([^>]+)>/I<$1>B<$2>I</g);
- s/[BI]<>//g;
- s/([BI])<(\s+)([^>]+)>/$2$1<$3>/g;
- s/([BI])<([^>]+?)(\s+)>/$1<$2>$3/g;
-
- # Extract footnotes. This has to be done after all other
- # processing because otherwise the regexp will choke on formatting
- # inside @footnote.
- while (/\@footnote/g) {
- s/\@footnote\{([^\}]+)\}/[$fnno]/;
- add_footnote($1, $fnno);
- $fnno++;
- }
-
- return $_;
-}
-
-sub unmunge
-{
- # Replace escaped symbols with their equivalents.
- local $_ = $_[0];
-
- s/&lt;/E<lt>/g;
- s/&gt;/E<gt>/g;
- s/&lbrace;/\{/g;
- s/&rbrace;/\}/g;
- s/&at;/\@/g;
- s/&amp;/&/g;
- return $_;
-}
-
-sub add_footnote
-{
- unless (exists $sects{FOOTNOTES}) {
- $sects{FOOTNOTES} = "\n=over 4\n\n";
- }
-
- $sects{FOOTNOTES} .= "=item $fnno.\n\n"; $fnno++;
- $sects{FOOTNOTES} .= $_[0];
- $sects{FOOTNOTES} .= "\n\n";
-}
-
-# stolen from Symbol.pm
-{
- my $genseq = 0;
- sub gensym
- {
- my $name = "GEN" . $genseq++;
- my $ref = \*{$name};
- delete $::{$name};
- return $ref;
- }
-}
diff --git a/contrib/gcc/contrib/warn_summary b/contrib/gcc/contrib/warn_summary
deleted file mode 100755
index 10b4c0d78318..000000000000
--- a/contrib/gcc/contrib/warn_summary
+++ /dev/null
@@ -1,210 +0,0 @@
-#!/bin/sh
-#
-# This script parses the output of a gcc bootstrap when using warning
-# flags and determines various statistics.
-#
-# usage: warn_summary [-llf] [-s stage] [-nosub|-ch|-cp|-f|-java|-ada|-intl|-fixinc]
-# [-pass|-wpass] [file(s)]
-#
-# -llf
-# Filter out long lines from the bootstrap output before any other
-# action. This is useful for systems with broken awks/greps which choke
-# on long lines. It is not done by default as it sometimes slows things
-# down.
-#
-# -s number
-# Take warnings from stage "Number". Stage 0 means show warnings from
-# before and after the gcc bootstrap directory. E.g. libraries, etc.
-# This presupposes using "gcc -W*" for the stage1 compiler.
-#
-# -nosub
-# Only show warnings from the gcc top level directory.
-# -ch|-cp|-f|-java|-ada|-intl|-fixinc
-# Only show warnings from the specified language subdirectory.
-# These override each other so only the last one passed takes effect.
-#
-# -pass
-# Pass through the bootstrap output after filtering stage and subdir
-# (useful for manual inspection.) This is all lines, not just warnings.
-# -wpass
-# Pass through only warnings from the bootstrap output after filtering
-# stage and subdir.
-#
-# By Kaveh Ghazi (ghazi@caip.rutgers.edu) 12/13/97.
-
-
-# Some awks choke on long lines, sed seems to do a better job.
-# Truncate lines > 255 characters. RE '.\{255,\}' doesn't seem to work. :-(
-# Only do this if -llf was specified, because it can really slow things down.
-longLineFilter()
-{
- if test -z "$llf" ; then
- cat
- else
- sed 's/^\(...............................................................................................................................................................................................................................................................\).*/\1/'
- fi
-}
-
-# This function does one of three things. It either passes through
-# all warning data, or passes through gcc toplevel warnings, or passes
-# through a particular subdirectory set of warnings.
-subdirectoryFilter()
-{
- longLineFilter | (
- if test -z "$filter" ; then
- # Pass through all lines.
- cat
- else
- if test "$filter" = nosub ; then
- # Omit all subdirectories.
- egrep -v '/gcc/(ch|cp|f|java|intl|fixinc)/'
- else
- # Pass through only subdir $filter.
- grep "/gcc/$filter/"
- fi
- fi )
-}
-
-# This function displays all lines from stageN of the bootstrap. If
-# stage==0, then show lines prior to stage1 and lines from after the last
-# stage. I.e. utilities, libraries, etc.
-stageNfilter()
-{
- if test "$stageN" -lt 1 ; then
- # stage "0" means check everything *but* gcc.
- $AWK "BEGIN{t=1} ; /^Bootstrapping the compiler/{t=0} ; /^Building runtime libraries/{t=1} ; {if(t==1)print}"
- else
- if test "$stageN" -eq 1 ; then
- $AWK "/^Bootstrapping the compiler|^Building the C and C\+\+ compiler/{t=1} ; /stage$stageN/{t=0} ; {if(t==1)print}"
- else
- stageNminus1=`expr $stageN - 1`
- $AWK "/stage${stageNminus1}\//{t=1} ; /stage$stageN/{t=0} ; {if(t==1)print}"
- fi
- fi
-}
-
-# This function displays lines containing warnings.
-warningFilter()
-{
- grep ' warning: '
-}
-
-# This function replaces `xxx' with `???', where xxx is usually some
-# variable or function name. This allows similar warnings to be
-# counted together when summarizing. However it avoids replacing
-# certain C keywords which are known appear in various messages.
-
-keywordFilter() {
- sed 's/.*warning: //;
- s/`\(int\)'"'"'/"\1"/g;
- s/`\(long\)'"'"'/"\1"/g;
- s/`\(char\)'"'"'/"\1"/g;
- s/`\(inline\)'"'"'/"\1"/g;
- s/`\(else\)'"'"'/"\1"/g;
- s/`\(return\)'"'"'/"\1"/g;
- s/`\(static\)'"'"'/"\1"/g;
- s/`\(extern\)'"'"'/"\1"/g;
- s/`\(const\)'"'"'/"\1"/g;
- s/`\(noreturn\)'"'"'/"\1"/g;
- s/`\(longjmp\)'"'"' or `\(vfork\)'"'"'/"\1" or "\2"/g;
- s/`'"[^']*'/"'`???'"'/g;"'
- s/.*format, .* arg (arg [0-9][0-9]*)/??? format, ??? arg (arg ???)/;
- s/\([( ]\)arg [0-9][0-9]*\([) ]\)/\1arg ???\2/;
- s/"\([^"]*\)"/`\1'"'"'/g'
-}
-
-# This function strips out relative pathnames for source files printed
-# by the warningFilter function. This is done so that as the snapshot
-# directory name changes every week, the output of this program can be
-# compared to previous runs without spurious diffs caused by source
-# directory name changes.
-
-srcdirFilter()
-{
- sed '
-s%^[^ ]*/\(gcc/\)%\1%;
-s%^[^ ]*/\(include/\)%\1%;
-s%^[^ ]*/\(texinfo/\)%\1%;
-s%^[^ ]*/\(fastjar/\)%\1%;
-s%^[^ ]*/\(zlib/\)%\1%;
-s%^[^ ]*/\(lib[a-z23+-]*/\)%\1%;'
-}
-
-# Start the main section.
-
-usage="usage: `basename $0` [-llf] [-s stage] [-nosub|-ch|-cp|-f|-java|-ada|-intl|-fixinc] [-pass|-wpass] [file(s)]"
-stageN=3
-tmpfile=/tmp/tmp-warn.$$
-
-# Remove $tmpfile on exit and various signals.
-trap "rm -f $tmpfile" 0
-trap "rm -f $tmpfile ; exit 1" 1 2 3 5 9 13 15
-
-# Find a good awk.
-if test -z "$AWK" ; then
- for AWK in gawk nawk awk ; do
- if type $AWK 2>&1 | grep 'not found' > /dev/null 2>&1 ; then
- :
- else
- break
- fi
- done
-fi
-
-# Parse command line arguments.
-while test -n "$1" ; do
- case "$1" in
- -llf) llf=1 ; shift ;;
- -s) if test -z "$2"; then echo $usage 1>&2; exit 1; fi
- stageN="$2"; shift 2 ;;
- -s*) stageN="`expr $1 : '-s\(.*\)'`" ; shift ;;
- -nosub|-ch|-cp|-f|-java|-ada|-intl|-fixinc) filter="`expr $1 : '-\(.*\)'`" ; shift ;;
- -pass) pass=1 ; shift ;;
- -wpass) pass=w ; shift ;;
- -*) echo $usage 1>&2 ; exit 1 ;;
- *) break ;;
- esac
-done
-
-# Check for a valid value of $stageN.
-case "$stageN" in
- [0-9]) ;;
- *) echo "Stage <$stageN> must be in the range [0..9]." 1>&2 ; exit 1 ;;
-esac
-
-for file in "$@" ; do
-
- stageNfilter < $file | subdirectoryFilter > $tmpfile
-
- # (Just) show me the warnings.
- if test "$pass" != '' ; then
- if test "$pass" = w ; then
- warningFilter < $tmpfile
- else
- cat $tmpfile
- fi
- continue
- fi
-
- if test -z "$filter" ; then
- echo "Counting all warnings,"
- else
- if test "$filter" = nosub ; then
- echo "Counting non-subdirectory warnings,"
- else
- echo "Counting warnings in the gcc/$filter subdirectory,"
- fi
- fi
- count=`warningFilter < $tmpfile | wc -l`
- echo there are $count warnings in stage$stageN of this bootstrap.
-
- echo
- echo Number of warnings per file:
- warningFilter < $tmpfile | srcdirFilter | $AWK -F: '{print$1}' | sort | \
- uniq -c | sort -nr
-
- echo
- echo Number of warning types:
- warningFilter < $tmpfile | keywordFilter | sort | uniq -c | sort -nr
-
-done
diff --git a/contrib/gcc/faq.html b/contrib/gcc/faq.html
deleted file mode 100644
index 9170647e31fb..000000000000
--- a/contrib/gcc/faq.html
+++ /dev/null
@@ -1,698 +0,0 @@
-<html>
-
-<head>
-<title>GCC Frequently Asked Questions</title>
-</head>
-
-<body>
-
-<h1>GCC Frequently Asked Questions</h1>
-
-<p>The latest version of this document is always available at
-<a href="http://www.gnu.org/software/gcc/faq.html">http://www.gnu.org/software/gcc/faq.html</a>.</p>
-
-<p>This FAQ tries to answer specific questions concerning GCC. For
-general information regarding C, C++, resp. Fortran please check the
-<a href="http://www.eskimo.com/~scs/C-faq/top.html">comp.lang.c FAQ</a>,
-<a href="http://www.research.att.com/~austern/csc/faq.html">comp.std.c++
-FAQ</a>,
-and the <a href="http://www.fortran.com/fortran/info.html">Fortran
-Information page</a>.</p>
-
-<p>Other GCC-related FAQs:
- <a href="http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html">
- libstdc++-v3</a>, and
- <a href="http://gcc.gnu.org/java/faq.html">GCJ</a>.</p>
-
-<hr />
-<h1>Questions</h1>
-<ol>
- <li><a href="#general">General information</a>
- <ol>
- <li><a href="#gcc">What is the relationship between GCC and EGCS?</a></li>
- <li><a href="#cygnus">What is the relationship between GCC and Cygnus / Red Hat?</a></li>
- <li><a href="#open-development">What is an open development model?</a></li>
- <li><a href="#bugreport">How do I report a bug?</a></li>
- <li><a href="#support">How do I get a bug fixed or a feature added?</a></li>
- <li><a href="#platforms">Does GCC work on my platform?</a></li>
- </ol></li>
-
- <li><a href="#installation">Installation</a>
- <ol>
- <li><a href="#multiple">How to install multiple versions of GCC</a></li>
- <li><a href="#rpath">Dynamic linker is unable to find GCC libraries</a></li>
- <li><a href="#rpath">libstdc++/libio tests fail badly with --enable-shared</a></li>
- <li><a href="#gas">GCC can not find GNU as/GNU ld</a></li>
- <li><a href="#environ">cpp: Usage:... Error</a></li>
- <li><a href="#optimizing">Optimizing the compiler itself</a></li>
- </ol></li>
-
- <li><a href="#testsuite">Testsuite problems</a>
- <ol>
- <li><a href="#dejagnu">Unable to run the testsuite</a></li>
- <li><a href="#testoptions">How do I pass flags like
- <code>-fnew-abi</code> to the testsuite?</a></li>
- <li><a href="#multipletests">How can I run the test suite with multiple options?</a></li>
- </ol></li>
-
- <li><a href="#old">Older versions of GCC</a>
- <ol>
- <li><a href="#2.95sstream">Is there a stringstream / sstream for GCC 2.95.2?</a></li>
- </ol></li>
-
- <li><a href="#misc">Miscellaneous</a>
- <ol>
- <li><a href="#memexhausted">Virtual memory exhausted</a></li>
- <li><a href="#friend">Friend Templates</a></li>
- <li><a href="#dso"><code>dynamic_cast</code>, <code>throw</code>, <code>typeid</code> don't work with shared libraries</a></li>
- <li><a href="#generated_files">Why do I need autoconf, bison, xgettext, automake, etc?</a></li>
- <li><a href="#picflag-needed">Why can't I build a shared library?</a></li>
- <li><a href="#squangle">How to work around too long C++ symbol names?
- (<tt>-fsquangle</tt>)</a></li>
- <li><a href="#vtables">When building C++, the linker says my constructors, destructors or virtual tables are undefined, but I defined them</a></li>
- <li><a href="#incremental">Will GCC someday include an incremental linker?</a></li>
- </ol></li>
-</ol>
-
-
-<hr />
-<a name="general"></a>
-<h1>General information</h1>
-
-<h2><a name="gcc">What is the relationship between GCC and EGCS?</a></h2>
-
-<p>In 1990/1991 gcc version 1 had reached a point of stability. For the
-targets it could support, it worked well. It had limitations inherent in
-its design that would be difficult to resolve, so a major effort was made
-to resolve those limitiations and gcc version 2 was the result.</p>
-
-<p>When we had gcc2 in a useful state, development efforts on gcc1 stopped
-and we all concentrated on making gcc2 better than gcc1 could ever be. This
-is the kind of step forward we wanted to make with the EGCS project when it
-was formed in 1997.</p>
-
-<p>In April 1999 the Free Software Foundation officially halted
-development on the gcc2 compiler and appointed the EGCS project as the
-official GCC maintainers. The net result was a single project which
-carries forward GCC development under the ultimate control of the
-<a href="steering.html">GCC Steering Committee</a>.</p>
-
-
-<hr />
-<h2><a name="cygnus">What is the relationship between GCC and Cygnus / Red Hat?</a></h2>
-
-<p>It is a common mis-conception that Red Hat controls GCC either
-directly or indirectly.</p>
-
-<p>While Red Hat does donate hardware, network connections, code and
-developer time to GCC development, Red Hat does not control GCC.</p>
-
-<p>Overall control of GCC is in the hands of the
-<a href="steering.html">GCC Steering Committee</a>
-which includes people from a variety of different organizations and
-backgrounds. The purpose of the steering committee is to make
-decisions in the best interest of GCC and to help ensure that no
-individual or company has control over the project.</p>
-
-<p>To summarize, Red Hat contributes to the GCC project, but does not exert
-a controlling influence over GCC.</p>
-
-<hr />
-<h2><a name="open-development">What is an open development model?</a></h2>
-
-<p>We are using a bazaar style
-<a href="#cathedral-vs-bazaar"><b>[1]</b></a>
-approach to GCC development: we make snapshots publicly available to
-anyone who wants to try them; we welcome anyone to join
-the development mailing list. All of the discussions on the
-development mailing list are available via the web. We're going to be
-making releases with a much higher frequency than they have been made
-in the past.</p>
-
-<p>In addition to weekly snapshots of the GCC development sources, we
-have the sources readable from a CVS server by anyone. Furthermore we
-are using remote CVS to allow remote maintainers write access to the
-sources.</p>
-
-<p>There have been many potential GCC developers who were not able to
-participate in GCC development in the past. We want these people to
-help in any way they can; we ultimately want GCC to be the best compiler
-in the world.</p>
-
-<p>A compiler is a complicated piece of software, there will still be
-strong central maintainers who will reject patches, who will demand
-documentation of implementations, and who will keep the level of
-quality as high as it is today. Code that could use wider testing may
-be integrated--code that is simply ill-conceived won't be.</p>
-
-<p>GCC is not the first piece of software to use this open development
-process; FreeBSD, the Emacs lisp repository, and the Linux kernel are
-a few examples of the bazaar style of development.</p>
-
-<p>With GCC, we are adding new features and optimizations at a
-rate that has not been done since the creation of gcc2; these
-additions inevitably have a temporarily destabilizing effect.
-With the help of developers working together with this bazaar style
-development, the resulting stability and quality levels will be better
-than we've had before.</p>
-
-<blockquote>
-<a name="cathedral-vs-bazaar"><b>[1]</b></a>
- We've been discussing different development models a lot over the
- past few months. The paper which started all of this introduced two
- terms: A <b>cathedral</b> development model versus a <b>bazaar</b>
- development model. The paper is written by Eric S. Raymond, it is
- called ``<a
- href="http://www.tuxedo.org/~esr/writings/cathedral-bazaar/">The
- Cathedral and the Bazaar</a>''. The paper is a useful starting point
- for discussions.
-</blockquote>
-
-
-<hr />
-<h2><a name="bugreport">How do I report a bug?</a></h2>
-
-<p>There are complete instructions <a href="bugs.html">here</a>.</p>
-
-
-<hr />
-<h2><a name="support">How do I get a bug fixed or a feature added?</a></h2>
-
-<p>There are lots of ways to get something fixed. The list below may be
-incomplete, but it covers many of the common cases. These are listed
-roughly in order of increasing difficulty for the average GCC user,
-meaning someone who is not skilled in the internals of GCC, and where
-difficulty is measured in terms of the time required to fix the bug.
-No alternative is better than any other; each has its benefits and
-disadvantages.</p>
-
-<ul>
-<li>Hire someone to fix it for you. There are various companies and
- individuals providing support for GCC. This alternative costs
- money, but is relatively likely to get results.</li>
-
-<li><a href="bugs.html">Report the problem to the GCC GNATS bug tracking system</a>
- and hope that someone will be kind
- enough to fix it for you. While this is certainly possible, and
- often happens, there is no guarantee that it will. You should
- not expect the same response from this method that you would see
- from a commercial support organization since the people who read
- GCC bug reports, if they choose to help you, will be volunteering their
- time. This alternative will work best if you follow the directions
- on <a href="bugs.html">submitting bugreports</a>.</li>
-
-<li>Fix it yourself. This alternative will probably bring results,
- if you work hard enough, but will probably take a lot of time,
- and, depending on the quality of your work and the perceived
- benefits of your changes, your code may or may not ever make it
- into an official release of GCC.</li>
-</ul>
-
-<hr />
-
-<h2><a name="platforms">Does GCC work on my platform?</a></h2>
-
-<p>The host/target specific installation notes for GCC include information
-about known problems with installing or using GCC on particular platforms.
-These are included in the sources for a release in INSTALL/specific.html,
-and the <a href="http://gcc.gnu.org/install/specific.html">latest version</a>
-is always available at the GCC web site.
-Reports of <a href="http://gcc.gnu.org/buildstat.html">successful builds</a>
-for several versions of GCC are also available at the web site.</p>
-
-<hr />
-<a name="installation"></a>
-<h1>Installation</h1>
-
-<h2><a name="multiple">How to install multiple versions of GCC</a></h2>
-
-<p>It may be desirable to install multiple versions of the compiler on
-the same system. This can be done by using different prefix paths at
-configure time and a few symlinks.</p>
-
-<p>Basically, configure the two compilers with different --prefix options,
-then build and install each compiler. Assume you want "gcc" to be the latest
-compiler and available in /usr/local/bin; also assume that you want "gcc2"
-to be the older gcc2 compiler and also available in /usr/local/bin.</p>
-
-<p>The easiest way to do this is to configure the new GCC with
-<code>--prefix=/usr/local/gcc</code> and the older gcc2 with
-<code>--prefix=/usr/local/gcc2</code>. Build and install both
-compilers. Then make a symlink from <code>/usr/local/bin/gcc</code>
-to <code>/usr/local/gcc/bin/gcc</code> and from
-<code>/usr/local/bin/gcc2</code> to
-<code>/usr/local/gcc2/bin/gcc</code>. Create similar links for the
-"g++", "c++" and "g77" compiler drivers.</p>
-
-<p>An alternative to using symlinks is to configure with a
-<code>--program-transform-name</code> option. This option specifies a
-sed command to process installed program names with. Using it you can,
-for instance, have all the new GCC programs installed as "new-gcc" and
-the like. You will still have to specify different
-<code>--prefix</code> options for new GCC and old GCC, because it is
-only the executable program names that are transformed. The difference
-is that you (as administrator) do not have to set up symlinks, but
-must specify additional directories in your (as a user) PATH. A
-complication with <code>--program-transform-name</code> is that the
-sed command invariably contains characters significant to the shell,
-and these have to be escaped correctly, also it is not possible to use
-"^" or "$" in the command. Here is the option to prefix "new-" to the
-new GCC installed programs:</p>
-<blockquote><code>
---program-transform-name='s,\\\\(.*\\\\),new-\\\\1,'
-</code></blockquote>
-<p>With the above <code>--prefix</code> option, that will install the new
-GCC programs into <code>/usr/local/gcc/bin</code> with names prefixed
-by "new-". You can use <code>--program-transform-name</code> if you
-have multiple versions of GCC, and wish to be sure about which version
-you are invoking.</p>
-
-<p>If you use <code>--prefix</code>, GCC may have difficulty locating a GNU
-assembler or linker on your system, <a href="#gas">GCC can not find GNU
-as/GNU ld</a> explains how to deal with this.</p>
-
-<p>Another option that may be easier is to use the
-<code>--program-prefix=</code> or <code>--program-suffix=</code>
-options to configure. So if you're installing GCC 2.95.2 and don't
-want to disturb the current version of GCC in
-<code>/usr/local/bin/</code>, you could do</p>
-<blockquote><code>
-configure --program-suffix=-2.95.2 &lt;other configure options&gt;
-</code></blockquote>
-<p>This should result in GCC being installed as
-<code>/usr/local/bin/gcc-2.95.2</code> instead of
-<code>/usr/local/bin/gcc</code>.</p>
-
-<hr />
-<h2><a name="rpath">Dynamic linker is unable to find GCC libraries</a></h2>
-
-<p>This problem manifests itself by programs not finding shared
-libraries they depend on when the programs are started. Note this
-problem often manifests itself with failures in the libio/libstdc++
-tests after configuring with <code>--enable-shared</code> and building GCC.</p>
-
-<p>GCC does not specify a runpath so that the dynamic linker can find
-dynamic libraries at runtime.</p>
-
-<p>The short explanation is that if you always pass a -R option to the
-linker, then your programs become dependent on directories which
-may be NFS mounted, and programs may hang unnecessarily when an
-NFS server goes down.</p>
-
-<p>The problem is not programs that do require the directories; those
-programs are going to hang no matter what you do. The problem is
-programs that do not require the directories.</p>
-
-<p>SunOS effectively always passed a <code>-R</code> option for every
-<code>-L</code> option; this was a bad idea, and so it was removed for
-Solaris. We should not recreate it.</p>
-
-<p>However, if you feel you really need such an option to be passed
-automatically to the linker, you may add it to the GCC specs file.
-This file can be found in the same directory that contains cc1 (run
-<code>gcc -print-prog-name=cc1</code> to find it). You may add linker
-flags such as <code>-R</code> or <code>-rpath</code>, depending on
-platform and linker, to the <code>*link</code> or <code>*lib</code>
-specs.</p>
-
-<p>Another alternative is to install a wrapper script around gcc, g++
-or ld that adds the appropriate directory to the environment variable
-<code>LD_RUN_PATH</code> or equivalent (again, it's
-platform-dependent).</p>
-
-<p>Yet another option, that works on a few platforms, is to hard-code
-the full pathname of the library into its soname. This can only be
-accomplished by modifying the appropriate <tt>.ml</tt> file within
-<tt>libstdc++/config</tt> (and also <tt>libg++/config</tt>, if you are
-building libg++), so that <code>$(libdir)/</code> appears just before
-the library name in <code>-soname</code> or <code>-h</code> options.</p>
-
-<hr />
-<h2><a name="gas">GCC can not find GNU as/GNU ld</a></h2>
-<p>GCC searches the PATH for an assembler and a loader, but it only
-does so after searching a directory list hard-coded in the GCC
-executables. Since, on most platforms, the hard-coded list includes
-directories in which the system asembler and loader can be found, you
-may have to take one of the following actions to arrange that GCC uses
-the GNU versions of those programs.</p>
-
-<p>To ensure that GCC finds the GNU assembler (the GNU loader), which
-are required by <a href="http://gcc.gnu.org/install/specific.html">some
-configurations</a>,
-you should configure these with the same --prefix option as you used
-for GCC. Then build &amp; install GNU as (GNU ld) and proceed with
-building GCC.</p>
-
-<p>Another alternative is to create links to GNU as and ld in any of
-the directories printed by the command `<tt>gcc -print-search-dirs |
-grep '^programs:'</tt>'. The link to `<tt>ld</tt>' should be named
-`<tt>real-ld</tt>' if `<tt>ld</tt>' already exists. If such links do
-not exist while you're compiling GCC, you may have to create them in
-the build directories too, within the <tt>gcc</tt> directory
-<em>and</em> in all the <tt>gcc/stage*</tt> subdirectories.</p>
-
-<p>GCC 2.95 allows you to specify the full pathname of the assembler
-and the linker to use. The configure flags are
-`<tt>--with-as=/path/to/as</tt>' and `<tt>--with-ld=/path/to/ld</tt>'.
-GCC will try to use these pathnames before looking for `<tt>as</tt>'
-or `<tt>(real-)ld</tt>' in the standard search dirs. If, at
-configure-time, the specified programs are found to be GNU utilities,
-`<tt>--with-gnu-as</tt>' and `<tt>--with-gnu-ld</tt>' need not be
-used; these flags will be auto-detected. One drawback of this option
-is that it won't allow you to override the search path for assembler
-and linker with command-line options <tt>-B/path/</tt> if the
-specified filenames exist.</p>
-
-<hr />
-<h2><a name="environ">cpp: Usage:... Error</a></h2>
-
-<p>If you get an error like this when building GCC (particularly when building
-__mulsi3), then you likely have a problem with your environment variables.</p>
-<pre>
- cpp: Usage: /usr/lib/gcc-lib/i586-unknown-linux-gnulibc1/2.7.2.3/cpp
- [switches] input output
-</pre>
-<p>First look for an explicit '.' in either LIBRARY_PATH or GCC_EXEC_PREFIX
-from your environment. If you do not find an explicit '.', look for
-an empty pathname in those variables. Note that ':' at either the start
-or end of these variables is an implicit '.' and will cause problems.</p>
-
-<p>Also note '::' in these paths will also cause similar problems.</p>
-
-
-<hr />
-<h2><a name="optimizing">Optimizing the compiler itself</a></h2>
-
-<p>If you want to test a particular optimization option, it's useful to try
-bootstrapping the compiler with that option turned on. For example, to
-test the <code>-fssa</code> option, you could bootstrap like this:</p>
-
-<pre>make BOOT_CFLAGS="-O2 -fssa" bootstrap</pre>
-
-
-<hr />
-<a name="testsuite"></a>
-<h1>Testsuite problems</h1>
-
-<h2><a name="dejagnu">Unable to run the testsuite</a></h2>
-
-<p>If you get a message about unable to find "standard.exp" when trying to
-run the GCC testsuites, then your dejagnu is too old to run the GCC tests.
-You will need to get a newer version of dejagnu from
-<a href="http://www.gnu.org/software/dejagnu/dejagnu.html">
- http://www.gnu.org/software/dejagnu/dejagnu.html</a>.</p>
-
-<hr />
-<h2><a name="testoptions">How do I pass flags like
- <code>-fnew-abi</code> to the testsuite?</a></h2>
-
-<p>If you invoke <code>runtest</code> directly, you can use the
-<code>--tool_opts</code> option, e.g:</p>
-<pre>
- runtest --tool_opts "-fnew-abi -fno-honor-std" &lt;other options&gt;
-</pre>
-<p>Or, if you use <code>make check</code> you can use the
-<code>make</code> variable <code>RUNTESTFLAGS</code>, e.g:</p>
-<pre>
- make RUNTESTFLAGS="--tool_opts '-fnew-abi -fno-honor-std'" check-g++
-</pre>
-
-<hr />
-<h2><a name="multipletests"> How can I run the test suite with multiple options? </a></h2>
-
-<p>If you invoke <code>runtest</code> directly, you can use the
-<code>--target_board</code> option, e.g:</p>
-<pre>
- runtest --target_board "unix{-fPIC,-fpic,}" &lt;other options&gt;
-</pre>
-<p>Or, if you use <code>make check</code> you can use the
-<code>make</code> variable <code>RUNTESTFLAGS</code>, e.g:</p>
-<pre>
- make RUNTESTFLAGS="--target_board 'unix{-fPIC,-fpic,}'" check-gcc
-</pre>
-<p>Either of these examples will run the tests three times. Once
-with <code>-fPIC</code>, once with <code>-fpic</code>, and once with
-no additional flags.</p>
-
-<p>This technique is particularly useful on multilibbed targets.</p>
-
-<hr />
-<a name="old"></a>
-<h1>Older versions of GCC and EGCS</h1>
-
-<h2><a name="2.95sstream">Is there a stringstream / sstream for GCC 2.95.2?</a></h2>
-
-<p>Yes, it's at:
-<a href="http://gcc.gnu.org/ml/libstdc++/2000-q2/msg00700/sstream">
- http://gcc.gnu.org/ml/libstdc++/2000-q2/msg00700/sstream</a>.</p>
-
-<hr />
-<a name="misc"></a>
-<h1>Miscellaneous</h1>
-
-
-
-<h2><a name="memexhausted">Virtual memory exhausted error</a></h2>
-
-<p> This error means your system ran out of memory; this can happen for large
-files, particularly when optimizing. If you're getting this error you should
-consider trying to simplify your files or reducing the optimization level.</p>
-
-<p>Note that using -pedantic or -Wreturn-type can cause an explosion in the
-amount of memory needed for template-heavy C++ code, such as code that uses
-STL. Also note that -Wall includes -Wreturn-type, so if you use -Wall you
-will need to specify -Wno-return-type to turn it off.</p>
-
-
-<hr />
-<h2><a name="friend">Friend Templates</a></h2>
-
-<p>In order to make a specialization of a template function a friend
-of a (possibly template) class, you must explicitly state that the
-friend function is a template, by appending angle brackets to its
-name, and this template function must have been declared already.
-Here's an example:</p>
-<pre>
-template &lt;typename T&gt; class foo {
- friend void bar(foo&lt;T&gt;);
-}
-</pre>
-<p>The above declaration declares a non-template function named
-<code>bar</code>, so it must be explicitly defined for <b>each</b>
-specialization of <code>foo</code>. A template definition of <code>bar</code>
-won't do, because it is unrelated with the non-template declaration
-above. So you'd have to end up writing:</p>
-<pre>
-void bar(foo&lt;int&gt;) { /* ... */ }
-void bar(foo&lt;void&gt;) { /* ... */ }
-</pre>
-<p>If you meant <code>bar</code> to be a template function, you should
-have forward-declared it as follows. Note that, since the template
-function declaration refers to the template class, the template class
-must be forward-declared too:</p>
-<pre>
-template &lt;typename T&gt;
-class foo;
-
-template &lt;typename T&gt;
-void bar(foo&lt;T&gt;);
-
-template &lt;typename T&gt;
-class foo {
- friend void bar&lt;&gt;(foo&lt;T&gt;);
-};
-
-template &lt;typename T&gt;
-void bar(foo&lt;T&gt;) { /* ... */ }
-</pre>
-<p>In this case, the template argument list could be left empty,
-because it can be implicitly deduced from the function arguments, but
-the angle brackets must be present, otherwise the declaration will be
-taken as a non-template function. Furthermore, in some cases, you may
-have to explicitly specify the template arguments, to remove
-ambiguity.</p>
-
-<p>An error in the last public comment draft of the ANSI/ISO C++
-Standard and the fact that previous releases of GCC would accept such
-friend declarations as template declarations has led people to believe
-that the forward declaration was not necessary, but, according to the
-final version of the Standard, it is.</p>
-
-
-<hr />
-<h2><a name="dso"><code>dynamic_cast</code>, <code>throw</code>, <code>typeid</code> don't work with shared libraries</a></h2>
-
-<p>The new C++ ABI in the GCC 3.0 series uses address comparisons,
-rather than string compares, to determine type equality. This leads
-to better performance. Like other objects that have to be present in the
-final executable, these <code>std::typeinfo_t</code> objects have what
-is called vague linkage because they are not tightly bound to any one
-particular translation unit (object file). The compiler has to emit
-them in any translation unit that requires their presence, and then
-rely on the linking and loading process to make sure that only one of
-them is active in the final executable. With static linking all of
-these symbols are resolved at link time, but with dynamic linking,
-further resolution occurs at load time. You have to ensure that
-objects within a shared library are resolved against objects in the
-executable and other shared libraries.</p>
-
-<ul>
-<li>For a program which is linked against a shared library, no additional
-precautions need taking.</li>
-
-<li>You cannot create a shared library with the "<code>-Bsymbolic</code>"
-option, as that prevents the resolution described above.</li>
-
-<li>If you use <code>dlopen</code> to explicitly load code from a shared
-library, you must do several things. First, export global symbols from
-the executable by linking it with the "<code>-E</code>" flag (you will
-have to specify this as "<code>-Wl,-E</code>" if you are invoking
-the linker in the usual manner from the compiler driver, <code>g++</code>).
-You must also make the external symbols in the loaded library
-available for subsequent libraries by providing the <code>RTLD_GLOBAL</code>
-flag to <code>dlopen</code>. The symbol resolution can be immediate or
-lazy.</li>
-
-</ul>
-
-<p>Template instantiations are another, user visible, case of objects
-with vague linkage, which needs similar resolution. If you do not take
-the above precautions, you may discover that a template instantiation
-with the same argument list, but instantiated in multiple translation
-units, has several addresses, depending in which translation unit the
-address is taken. (This is <em>not</em> an exhaustive list of the kind
-of objects which have vague linkage and are expected to be resolved
-during linking &amp; loading.)</p>
-
-<p>If you are worried about different objects with the same name
-colliding during the linking or loading process, then you should use
-namespaces to disambiguate them. Giving distinct objects with global
-linkage the same name is a violation of the One Definition Rule (ODR)
-[basic.def.odr].</p>
-
-<p>For more details about the way that GCC implements these and other
-C++ features, please read the <a
-href="http://www.codesourcery.com/cxx-abi/">ABI specification</a>.
-Note the <code>std::typeinfo_t</code> objects which <i>must</i> be
-resolved all begin with "_ZTS". Refer to <code>ld</code>'s
-documentation for a description of the "<code>-E</code>" &amp;
-"<code>-Bsymbolic</code>" flags.</p>
-
-<hr />
-<h2><a name="generated_files">Why do I need autoconf, bison, xgettext, automake, etc?</a></h2>
-
-<p>If you're using diffs up dated from one snapshot to the next, or
-if you're using the CVS repository, you may need several additional programs
-to build GCC.</p>
-
-<p>These include, but are not necessarily limited to autoconf, automake,
-bison, and xgettext.</p>
-
-<p>This is necessary because neither diff nor cvs keep timestamps
-correct. This causes problems for generated files as "make" may think
-those generated files are out of date and try to regenerate them.</p>
-
-<p>An easy way to work around this problem is to use the <code>gcc_update
-</code> script in the contrib subdirectory of GCC, which handles this
-transparently without requiring installation of any additional tools.
-(Note: Up to and including GCC 2.95 this script was called <code>egcs_update
-</code>.)</p>
-
-
-<p>When building from diffs or CVS or if you modified some sources,
-you may also need to obtain development versions of some GNU tools, as
-the production versions do not necessarily handle all features needed
-to rebuild GCC.</p>
-
-<p>In general, the current versions of these tools from <a
-href="ftp://ftp.gnu.org/gnu/">ftp://ftp.gnu.org/gnu/</a> will work.
-At present, Autoconf 2.50 is not supported, and you will need to use
-Autoconf 2.13; work is in progress to fix this problem. Also look at
-<a href="ftp://gcc.gnu.org/pub/gcc/infrastructure/">
-ftp://gcc.gnu.org/pub/gcc/infrastructure/</a> for any special versions
-of packages.</p>
-
-
-<hr />
-<h2><a name="picflag-needed">Why can't I build a shared library?</a></h2>
-
-<p>When building a shared library you may get an error message from the
-linker like `assert pure-text failed:' or `DP relative code in file'.</p>
-
-<p>This kind of error occurs when you've failed to provide proper flags
-to gcc when linking the shared library. </p>
-
-<p>You can get this error even if all the .o files for the shared library were
-compiled with the proper PIC option. When building a shared library, gcc will
-compile additional code to be included in the library. That additional code
-must also be compiled with the proper PIC option.</p>
-
-<p>Adding the proper PIC option (<tt>-fpic</tt> or <tt>-fPIC</tt>) to the link
-line which creates the shared library will fix this problem on targets that
-support PIC in this manner. For example:</p>
-<pre>
- gcc -c -fPIC myfile.c
- gcc -shared -o libmyfile.so -fPIC myfile.o
-</pre>
-
-
-<hr />
-<h2><a name="squangle">How to work around too long C++ symbol names
-(<tt>-fsquangle</tt>)</a></h2>
-
-<p>This question does not apply to GCC 3.0 or later versions, which
-have a new C++ ABI with much shorter mangled names.</p>
-
-<p>If the standard assembler of your platform can't cope with the
-large symbol names that the default g++ name mangling mechanism
-produces, your best bet is to use GNU as, from the GNU binutils
-package.</p>
-
-<p>Unfortunately, GNU as does not support all platforms supported by
-GCC, so you may have to use an experimental work-around: the
-<tt>-fsquangle</tt> option, that enables compression of symbol names.</p>
-
-<p>Note that this option is still under development, and subject to
-change. Since it modifies the name mangling mechanism, you'll need to
-build libstdc++ and any other C++ libraries with this option enabled.
-Furthermore, if this option changes its behavior in the future, you'll
-have to rebuild them all again. :-(</p>
-
-<p>This option can be enabled by default by initializing
-`flag_do_squangling' with `1' in `gcc/cp/decl2.c' (it is not
-initialized by default), then rebuilding GCC and any C++ libraries.</p>
-
-
-<hr />
-<h2><a name="vtables">When building C++, the linker says my constructors, destructors or virtual tables are undefined, but I defined them</a></h2>
-
-<p>The ISO C++ Standard specifies that all virtual methods of a class
-that are not pure-virtual must be defined, but does not require any
-diagnostic for violations of this rule [class.virtual]/8. Based on
-this assumption, GCC will only emit the implicitly defined
-constructors, the assignment operator, the destructor and the virtual
-table of a class in the translation unit that defines its first such
-non-inline method.</p>
-
-<p>Therefore, if you fail to define this particular method, the linker
-may complain about the lack of definitions for apparently unrelated
-symbols. Unfortunately, in order to improve this error message, it
-might be necessary to change the linker, and this can't always be
-done.</p>
-
-<p>The solution is to ensure that all virtual methods that are not
-pure are defined. Note that a destructor must be defined even if it
-is declared pure-virtual [class.dtor]/7.</p>
-
-
-<hr />
-<h2><a name="incremental">Will GCC someday include an incremental linker?</a></h2>
-
-<p>Incremental linking is part of the linker, not the compiler. As
-such, GCC doesn't have anything to do with incremental linking.
-Depending on what platform you use, it may be possible to tell GCC to
-use the platform's native linker (e.g., Solaris' ild(1)).</p>
-
-
-</body>
-</html>
diff --git a/contrib/gcc/gnats.html b/contrib/gcc/gnats.html
deleted file mode 100644
index 2a420246d726..000000000000
--- a/contrib/gcc/gnats.html
+++ /dev/null
@@ -1,170 +0,0 @@
-<html>
-
-<head>
-<title>Submitting Bug Reports using GNATS</title>
-</head>
-
-<h1>Submitting Bug Reports using GNATS</h1>
-
-<body>
-<h2>gnatsweb and gccbug</h2>
-
-<p>GNATS, the GNU bug tracking system, is used to track GCC bug reports.
-Before submitting a bug report, please read the <a
-href="bugs.html">general instructions</a>.</p>
-
-<p>The preferred way to submit a bug report is by means of the
-<a href="http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc&amp;user=guest&amp;password=guest&amp;cmd=login">gnatsweb</a>
-interface. Make sure you include an e-mail address, so we can inform
-you when the status of your report changes.</p>
-
-<p>Another way is to use the <code>gccbug</code> program that is
-automatically installed with current versions of GCC, which submits the bug
-report by e-mail.</p>
-
-<p>Both techniques use the same GNATS bug database.</p>
-
-<h2>Filling out a report</h2>
-
-<p>The bug report form provides a number of fields; you'll need to
-fill-out most of those (as indicated below) to provide a complete
-report. The fields have the following purpose:</p>
-
-<dl>
-<dt><strong>Originator</strong></dt>
-<dd>Your name.</dd>
-
-<dt><strong>Organization</strong></dt>
-<dd>Your organization. You can leave this field blank.</dd>
-
-<dt><strong>Confidential</strong></dt>
-<dd>This field is unused and set to 'no'. All bug reports, including
-sample code, are publicly accessible.</dd>
-
-<dt><strong>Synopsis</strong></dt>
-<dd>A one-line description of the problem; something like "GCC 2.95
-does not foo", "objc crashes when doing bar".</dd>
-
-<dt><strong>Severity</strong></dt>
-<dd>Can be one of
- <dl>
- <dt>critical</dt>
- <dd>GCC is completely not operational; no work-around known.</dd>
- <dt>serious</dt>
- <dd>GCC is not working properly; a work-around is possible.</dd>
- <dt>non-critical</dt>
- <dd>Report indicates minor problem.</dd>
- </dl>
-</dd>
-
-<dt><strong>Priority</strong></dt>
-<dd>Can be one of
- <dl>
- <dt>high</dt>
- <dd>A solution is necessary as soon as possible. <em>This is reserved to
- GCC maintainers.</em></dd>
- <dt>medium</dt>
- <dd>The problem should be solved in the next release.</dd>
- <dt>low</dt>
- <dd>The problem should be solved in a future release.</dd>
- </dl>
-</dd>
-
-<dt><strong>Category</strong></dt>
-<dd>This indicates the GCC subproject which is affected by the problem.
- Currently, it can be one of
- <dl>
- <dt>ada</dt>
- <dd>A problem with the Ada compiler, libraries or tools.</dd>
- <dt>bootstrap</dt>
- <dd>GCC fails to bootstrap. This should be filed <em>only</em> if a
- bootstrap failure prevails for an extended period of time (at least
- one week) on any platform (and possibly not-so-common conditions like
- a read-only srcdir), or non-mainstream platforms.</dd>
- <dt>c++</dt>
- <dd>A problem with the C++ compiler.</dd>
- <dt>c</dt>
- <dd>A problem with the C compiler.</dd>
- <dt>debug</dt>
- <dd>A problem with generating debugging information.</dd>
- <dt>fortran</dt>
- <dd>A problem with the Fortran compiler.</dd>
- <dt>java</dt>
- <dd>A problem with the Java compiler.</dd>
- <dt>libf2c</dt>
- <dd>A problem in the Fortran runtime library.</dd>
- <dt>libgcj</dt>
- <dd>A problem in the Java runtime library.</dd>
- <dt>libobjc</dt>
- <dd>A problem in the Objective C runtime library.</dd>
- <dt>libstdc++</dt>
- <dd>A problem in the Standard C++ runtime library.</dd>
- <dt>middle-end</dt>
- <dd>A problem in the internal compiler passes.</dd>
- <dt>objc</dt>
- <dd>A problem with the Objective C compiler.</dd>
- <dt>optimization</dt>
- <dd>A problem only occurring under optimization.</dd>
- <dt>preprocessor</dt>
- <dd>A problem with the C preprocessor.</dd>
- <dt>target</dt>
- <dd>The problem depends on the specific target architecture.</dd>
- <dt>web</dt>
- <dd>There is an error or omission on the Web pages.</dd>
- <dt>other</dt>
- <dd>The problem is in none of these categories.</dd>
- </dl>
-</dd>
-
-<dt><strong>Class</strong></dt>
-<dd>A classification of the problem; one of
- <dl>
- <dt>doc-bug</dt>
- <dd>The documentation is incorrect.</dd>
- <dt>accepts-illegal</dt>
- <dd>GCC fails to reject erroneous code.</dd>
- <dt>rejects-legal</dt>
- <dd>GCC gives an error message for correct code.</dd>
- <dt>wrong-code</dt>
- <dd>The machine code generated by GCC is incorrect.</dd>
- <dt>ice-on-legal-code</dt>
- <dd>GCC gives an Internal Compiler Error (ICE) for correct code.</dd>
- <dt>ice-on-illegal-code</dt>
- <dd>GCC gives an ICE instead of reporting an error.</dd>
- <dt>pessimizes-code</dt>
- <dd>GCC misses an important optimization opportunity.</dd>
- <dt>sw-bug</dt>
- <dd>Software bug of some other class than above.</dd>
- <dt>change-request</dt>
- <dd>A feature in GCC is missing.</dd>
- <dt>support</dt>
- <dd>I need help with GCC.</dd>
- </dl>
-</dd>
-
-<dt><strong>Release</strong></dt>
- <dd>GCC version, as obtained from 'gcc -v' (one line).</dd>
-
-<dt><strong>Environment</strong></dt>
-<dd>Information about your operating system version, hardware architecture,
- and environment settings that affect GCC.</dd>
-
-<dt><strong>Description</strong></dt>
-<dd>Precise description of the problem. You should put the error messages
- printed by GCC here; source code should go into the next section.</dd>
-
-<dt><strong>How-To-Repeat</strong></dt>
-
-<dd>Please put the complete source code to reproduce the problem here.
- The gccbug script currently does not support file
- attachments. Instead, if you have multiple files, include them
- uuencoded (compressing them before if they are large). If you use
- gnatsweb, you can use the file attachments button instead.</dd>
-
-<dt><strong>Fix</strong></dt>
-<dd>How to correct or work around the problem, if known (multiple lines).</dd>
-
-</dl>
-
-</body>
-</html>
diff --git a/contrib/gcc/include/COPYING b/contrib/gcc/include/COPYING
deleted file mode 100644
index d60c31a97a54..000000000000
--- a/contrib/gcc/include/COPYING
+++ /dev/null
@@ -1,340 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program 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 of the License, or
- (at your option) any later version.
-
- This program 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 this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/contrib/gcc/include/ChangeLog b/contrib/gcc/include/ChangeLog
deleted file mode 100644
index 03e12beb98cf..000000000000
--- a/contrib/gcc/include/ChangeLog
+++ /dev/null
@@ -1,1960 +0,0 @@
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-19 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-18 Release Manager
-
- * GCC 3.2.1 Released.
-
-2002-11-03 Roger Sayle <roger@eyesopen.com>
- DJ Delorie <dj@redhat.com>
-
- * getopt.h: Avoid prototyping getopt with no arguments in C++.
-
-2002-08-14 Release Manager
-
- * GCC 3.2 Released.
-
-2002-07-25 Release Manager
-
- * GCC 3.1.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2002-05-14 Release Manager
-
- * GCC 3.1 Released.
-
-2002-04-16 David S. Miller <davem@redhat.com>
-
- * xregex2.h (__restrict_arr): Define to __restrict on GCC
- 3.1 and later. Do not redefine.
-
-2002-04-01 Phil Edwards <pme@gcc.gnu.org>
-
- * dyn-string.h: Also allow IN_GLIBCPP_V3 to redefine names.
-
-2002-02-22 Jim Blandy <jimb@redhat.com>
-
- Allow the user to specify functions for allocating memory for
- splay tree roots and nodes.
- * splay-tree.h (splay_tree_allocate_fn, splay_tree_deallocate_fn):
- New types.
- (splay_tree): New fields: `allocate', `deallocate', and
- `allocate_data'.
- (splay_tree_new_with_allocator): New function declaration.
-
-2002-02-05 Jason Merrill <jason@redhat.com>
-
- * demangle.h (cplus_demangle_v3): Add "options" parm.
- (cplus_demangle_v3_type): Remove prototype.
- (DMGL_VERBOSE): New macro.
- (DMGL_TYPES): New macro.
-
-2002-02-02 H.J. Lu (hjl@gnu.org)
-
- * demangle.h (cplus_demangle_v3_type): New prototype.
-
-2002-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h (C_alloca): Add ATTRIBUTE_MALLOC.
-
-2001-12-06 Richard Henderson <rth@redhat.com>
-
- * demangle.h (no_demangling): New.
- (NO_DEMANGLING_STYLE_STRING): New.
-
-2001-10-24 Neil Booth <neil@daikokuya.demon.co.uk>
-
- * safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New.
-
-2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h (hex_init): Revert delete.
-
- * libiberty.h (_hex_value): Const-ify.
- (hex_init): Delete.
-
-2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * demangle.h (demangler_engine): Const-ify.
- * libiberty.h (buildargv): Likewise.
-
-2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h (reconcat): New function.
-
-2001-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h (concat, concat_length, concat_copy, concat_copy2,
- ACONCAT): Improve comments.
-
-2001-09-18 Alan Modra <amodra@bigpond.net.au>
-
- * objalloc.h (OBJALLOC_ALIGN): Define using offsetof.
-
-2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h (concat_length, concat_copy, concat_copy2,
- libiberty_concat_ptr, ACONCAT): New.
-
- * libiberty.h (ASTRDUP): New macro.
- libiberty_optr, libiberty_nptr, libiberty_len): Declare.
-
-2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * ansidecl.h: Update comments reflecting previous change.
-
-2001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses.
-
-2001-08-23 Lars Brinkhoff <lars@nocrew.org>
-
- * dyn-string.h, fibheap.h, partition.h, sort.h, splay-tree.h:
- replace "GNU CC" with "GCC".
-
-2001-08-21 Richard Henderson <rth@redhat.com>
-
- * fibheap.h: Tidy formatting.
- (fibnode_t): Limit degree to 31 bits to avoid warning.
-
-2001-08-20 Andrew Cagney <ac131313@redhat.com>
-
- * floatformat.h (floatformat_arm_ext): Document as deprecated.
- (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
- (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
- (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
- (floatformat_m88110_harris_ext): Declare.
-
-2001-08-20 Daniel Berlin <dan@cgsoftware.com>
-
- * fibheap.h: New file. Fibonacci heap.
-
-2001-08-18 Zack Weinberg <zackw@panix.com>
-
- * ansidecl.h: Reorganize for readability, remove documentation
- of obsolete macros, document PARAMS and VPARAMS. Add new
- macros VA_OPEN, VA_CLOSE, and VA_FIXEDARG for nicer variadic
- function implementation.
-
-2001-08-16 Richard Henderson <rth@redhat.com>
-
- * hashtab.h (htab_hash_string): Declare.
-
-2001-08-10 Andrew Cagney <ac131313@redhat.com>
-
- * libiberty.h (lbasename): Change function declaration to return a
- const char pointer.
-
-2001-08-02 Mark Kettenis <kettenis@gnu.org>
-
- * xregex.h (_REGEX_RE_COMP): Define.
- (re_comp): Define to xre_comp.
- (re_exec): Define to xre_exec.
-
-2001-07-18 Andreas Jaeger <aj@suse.de>
-
- * xregex2.h: Place under LGPL version 2.1.
-
-2001-07-10 Jeff Johnston <jjohnstn@redhat.com>
-
- * xregex.h: New file to support libiberty regex.
- * xregex2.h: Ditto.
-
-2001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
-
- * partition.h: Fix misspelling of `implementation'.
-
-2001-05-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * ansidecl.h (NULL_PTR): Delete.
-
-2001-05-07 Zack Weinberg <zackw@stanford.edu>
-
- * demangle.h: Use PARAMS for all prototypes.
- * ternary.h: Use PARAMS for all prototypes. Use PTR, not void *.
- Make arguments constant where possible.
-
-2001-05-07 Mark Mitchell <mark@codesourcery.com>
-
- * splay-tree.h (splay_tree_max): New function.
- (splay_tree_min): Likewise.
-
-2001-04-15 Daniel Berlin <dan@cgsoftware.com>
-
- * ternary.h: New file - Ternary search tree header.
-
-2001-04-03 Zack Weinberg <zackw@stanford.edu>
-
- * ansidecl.h: All logic from gcc/gansidecl.h moved here.
-
-2001-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h (alloca): Handle setting C_ALLOCA.
-
-2001-03-20 Jim Blandy <jimb@redhat.com>
-
- * demangle.h (enum gnu_v3_constructor_kinds,
- is_gnu_v3_mangled_ctor, enum gnu_v3_destructor_kinds,
- is_gnu_v3_mangled_dtor): New declarations.
-
-2001-03-14 Nick Clifton <nickc@redhat.com>
-
- * ansidecl.h: Fix copyright dates.
- * demangle.h: Fix copyright dates.
- * floatformat.h: Fix copyright dates.
- * fnmatch.h: Fix copyright dates.
- * getopt.h: Fix copyright dates.
- * libiberty.h: Add FSF copyright notice.
- * md5.h: Fix copyright dates.
- * obstack.h: Fix copyright dates.
- * splay-tree.h: Fix copyright dates.
-
-2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
- John David Anglin <dave@hiauly1.hia.nrc.ca>
-
- * libiberty.h: Add lbasename.
-
-2001-03-06 Zack Weinberg <zackw@stanford.edu>
-
- * libiberty.h: Prototype C_alloca; define alloca to either
- __builtin_alloca or C_alloca as appropriate.
-
-2001-03-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
-
- * safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pcc
- compatibility.
-
-2000-12-18 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * COPYING: Update to current
- ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes references
- to 19yy as example year in copyright notice).
-
-2000-12-16 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
-
- * safe-ctype.h: Make code work on all targets and not just on
- targets where a char is 8 bits.
-
-2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
-
- * safe-ctype.h: New file.
-
-2000-12-06 Rodney Brown <RodneyBrown@mynd.com>
-
- * getopt.h obstack.h: Standarize copyright statement.
-
-2000-12-04 Richard Henderson <rth@redhat.com>
-
- * demangle.h: Change "new_abi" to "v3" everywhere.
-
-2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
-
- * libiberty.h: Move #includes to top. Prototype xmalloc_failed.
-
-2000-11-15 Kenneth Block <kenneth.block@compaq.com>
-
- * demangle.h: Add gnat and java demangle styles.
-
-2000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
-
- * hashtab.h (struct htab): Add member return_allocation_failure.
- (htab_try_create): New prototype. Mention which functions may
- return NULL when this is used.
-
-2000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
-
- * hashtab.h: Change void * to PTR where necessary.
-
-2000-09-10 Mark Mitchell <mark@codesourcery.com>
-
- * splay-tree.h (splay_tree_predecessor): Declare.
-
-2000-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
-
- * md5.h (md5_uint32): Choose via INT_MAX instead of UINT_MAX.
-
-2000-09-04 Alex Samuel <samuel@codesourcery.com>
-
- * dyn-string.h: Adjust formatting.
- (dyn_string_insert_char): New macro. New declaration.
-
-2000-08-28 Jason Merrill <jason@redhat.com>
-
- * md5.h: New file.
-
-2000-08-24 Greg McGary <greg@mcgary.org>
-
- * libiberty.h (ARRAY_SIZE): New macro.
-
-2000-06-21 Alex Samuel <samuel@codesourcery.com>
-
- * dyn-string.h (dyn_string_init, dyn_string_new,
- dyn_string_delete, dyn_string_release, dyn_string_resize,
- dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
- dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
- dyn_string_insert_cstr, dyn_string_append, dyn_string_append_cstr,
- dyn_string_append_char, dyn_string_substring_dyn_string_eq):
- Define as same name with __cxa_ prepended, if IN_LIBGCC2.
- (dyn_string_init, dyn_string_copy, dyn_string_copy_cstr,
- dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
- dyn_string_insert_cstr, dyn_string_append, dyn_string_append_cstr,
- dyn_string_append_char, dyn_string_substring): Change return type
- to int.
-
-2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * demangle.h (demangling_styles): Remove trailing comma in enum.
-
- * dyn-string.h (dyn_string_append_char): Change parameter from
- char to int.
-
-2000-06-04 Alex Samuel <samuel@codesourcery.com>
-
- * dyn-string.h: Move here from gcc/dyn-string.h. Add new functions.
-
- * demangle.h (DMGL_GNU_NEW_ABI): New macro.
- (DMGL_STYLE_MASK): Or in DMGL_GNU_NEW_ABI.
- (current_demangling_style): Add gnu_new_abi_demangling.
- (GNU_NEW_ABI_DEMANGLING_STYLE_STRING): New macro.
- (GNU_NEW_ABI_DEMANGLING): Likewise.
- (cplus_demangle_new_abi): New declaration.
-
-Tue May 30 16:53:34 2000 Andrew Cagney <cagney@b1.cygnus.com>
-
- * floatformat.h (struct floatformat): Add field name.
-
-2000-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * getopt.h (getopt): Also check HAVE_DECL_* when prototyping.
-
- * libiberty.h (basename): Likewise.
-
-2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
-
- * ansidecl.h: #define __extension__ to nothing if
- GCC_VERSION < 2008.
-
-2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * demangle.h (demangler_engine): Constify.
-
-Thu May 4 17:15:26 2000 Philippe De Muyter <phdm@macqel.be>
-
- * sort.h (sys/types.h): File included unconditionnaly.
- (stddef.h): File include only #ifdef __STDC__.
-
-2000-05-03 Zack Weinberg <zack@wolery.cumb.org>
-
- * symcat.h: Remove #endif label.
-
-2000-04-28 Kenneth Block <block@zk3.dec.com>
- Jason Merrill <jason@casey.cygnus.com>
-
- * demangle.h (libiberty_demanglers): new table for different styles.
- (cplus_demangle_set_style): New function for setting style.
- (cplus_demangle_name_to_style): New function to translate name.
-
-2000-04-24 Mark Mitchell <mark@codesourcery.com>
-
- * hashtab.h (hash_pointer): Declare.
- (eq_pointer): Likewise.
-
-2000-04-23 Mark Mitchell <mark@codesourcery.com>
-
- * sort.h: New file.
-
-Tue Apr 18 16:22:30 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
-
- * hashtab.h (enum insert_option): New type.
- (htab_find_slot, htab_find_slot_with_hash): Use it.
-
-2000-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * symcat.h: Honor autoconf macro HAVE_STRINGIZE. Add
- comments/caveats with regard to traditional C behavior.
-
-2000-04-05 Richard Henderson <rth@cygnus.com>
-
- * splay-tree.h (splay_tree_remove): Declare.
-
-2000-03-30 Mark Mitchell <mark@codesourcery.com>
-
- * hashtab.h (hashval_t): New type.
- (htab_find_with_hash): Use it as an argument.
- (htab_find_slot_with_hash): Likewise.
-
-2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
-
- * hashtab.h (htab_trav): Modify type so that first arg is of type
- void **.
- (htab_find_with_hash, htab_find_slot_with_hash): Declare new
- functions.
-
-2000-03-09 Alex Samuel <samuel@codesourcery.com>
-
- * partition.h: New file.
-
-2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
-
- * hashtab.h (struct htab): Add del_f.
- (htab_del): New type.
- (htab_create): Add fourth argument.
-
-2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
-
- * hashtab.h (hash_table_t): Rename to htab_t.
- (struct hash_table): Rename to struct htab. Shorten element
- names. Reorder elements by size.
- (htab_hash, htab_eq, htab_trav): New typedefs for the callback
- function pointers.
- (hash_table_entry_t): Discard; just use void * for element
- type.
-
-Sat Jan 1 19:06:52 2000 Hans-Peter Nilsson <hp@bitrange.com>
-
- * symcat.h (STRINGX) [!__STDC__ || ALMOST_STDC]: Change "?" to "s"
- to stringify argument s.
-
-1999-12-05 Mark Mitchell <mark@codesourcery.com>
-
- * splay-tree.h (struct splay_tree_node): Rename to ...
- (struct splay_tree_node_s): ... this.
- (struct splay_tree): Rename to ...
- (struct splay_tree_s): ... this.
-
-1999-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * ansidecl.h (ATTRIBUTE_MALLOC): New macro.
-
- * libiberty.h (buildargv, dupargv, concat, choose_temp_base,
- make_temp_file, xmalloc, xcalloc, xstrdup, xmemdup): Add
- ATTRIBUTE_MALLOC.
- (xatexit): Remove __GNUC__ check, add ATTRIBUTE_NORETURN.
-
-1999-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h: Include stdarg.h when ANSI_PROTOTYPES is defined.
- (asprintf, vasprintf): Provide declarations.
-
-Wed Nov 10 12:43:21 1999 Philippe De Muyter <phdm@macqel.be>
- Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * ansidecl.h: Define and test `GCC_VERSION', not `HAVE_GCC_VERSION'.
-
-1999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
-
- * hashtab.h: Give hash_table_t a struct tag. Add prototypes
- for clear_hash_table_slot and traverse_hash_table. Correct
- prototype of all_hash_table_collisions.
-
-Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
-
- * hashtab.h: New file.
-
-1999-10-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * ansidecl.h (HAVE_GCC_VERSION): New macro. Use it instead of
- explicitly testing __GNUC__ and __GNUC_MINOR__.
-
- (ATTRIBUTE_PRINTF): Use `__format__', not `format'.
-
-1999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h (make_temp_file): Add a prototype.
-
-Tue Sep 14 00:35:02 1999 Marc Espie <espie@cvs.openbsd.org>
-
- * libiberty.h (basename): OpenBSD has a correct prototype.
- (xrealloc): Remove outdated comment.
-
-1999-09-07 Jeff Garzik <jgarzik@pobox.com>
-
- * libiberty.h (xmemdup): Add prototype for new function.
-
-1999-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * obstack.h (obstack_grow, obstack_grow0): Move (char*) casts
- in calls to `_obstack_memcpy' from here ...
-
- (_obstack_memcpy): ... to here, except in the __STDC__ case which
- doesn't need it.
-
-1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h (getpwd): Prototype.
-
-1999-08-01 Mark Mitchell <mark@codesourcery.com>
-
- * splay-tree.h (splay_tree_insert): Return the new node.
-
-1999-07-11 Ian Lance Taylor <ian@zembu.com>
-
- * ansidecl.h: Copy attribute support macros from egcs.
-
-1999-04-02 Mark Mitchell <mark@codesourcery.com>
-
- * splay-tree.h (splay_tree_compare_pointers): Declare.
-
-1999-03-30 Mark Mitchell <mark@codesourcery.com>
-
- * splay-tree.h (splay_tree_compare_ints): Declare.
-
-Wed Mar 24 12:46:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
-
- * libiberty.h (basename): Cygwin{,32} should have the prototype.
-
-Mon Dec 14 09:53:31 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * demangle.h: Don't check IN_GCC anymore.
- * splay-tree.h: Likewise.
-
-Tue Dec 8 00:30:31 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
-
- * demangle.h: (DMGL_EDG): new macro for Kuck and Associates
- (DMGL_STYLE_MASK): modify to include Kuck and Assoc style
- (demangling_styles): add new edg_demangling style
- (EDG_DEMANGLING_STYLE_STRING): new macro
- (EDG_DEMANGLING): new macro
- (DMGL_HP): new macro, for HP/aCC compiler.
- (DMGL_STYLE_MASK): modify to include new HP's style.
- (demangling_styles): add new hp_demangling value.
- (HP_DEMANGLING_STYLE_STRING): new macro.
- (ARM_DEMANGLING): coerce to int.
- (HP_DEMANGLING): new macro.
-
-Fri Nov 20 13:14:00 1998 Andrew Cagney <cagney@b1.cygnus.com>
-
- * libiberty.h (basename): Add prototype for FreeBSD.
-
-Fri Nov 13 19:19:11 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * libiberty.h: Prototype xcalloc.
-
-Sun Nov 8 17:42:25 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * ansidecl.h: Wrap problematic macros with !IN_GCC.
-
- * demangle.h: Never define PARAMS().
- * splay-tree.h: Likewise.
-
-Sat Nov 7 16:04:03 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * demangle.h: Don't include gansidecl.h.
- * splay-tree.h: Likewise.
-
-Thu Oct 22 19:58:00 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * splay-tree.h: Wrap function pointer parameter declarations in
- PARAMS() macro.
-
-1998-10-21 Mark Mitchell <mark@markmitchell.com>
-
- * splay-tree.h: New file.
-
-Fri Oct 9 00:02:03 1998 Jeffrey A Law (law@cygnus.com)
-
- * Merge devo and egcs include directories.
-
-Sat Sep 5 12:16:33 1998 Jeffrey A Law (law@cygnus.com)
-
- * getopt.h, obstack.h: Updated from gcc.
-
-1998-08-03 Jason Molenda (jsm@bugshack.cygnus.com)
-
- * libiberty.h (xexit): Change decl to use modern GCC attribute
- to indicate exit does not return.
-
-Mon Jun 1 13:48:32 1998 Jason Molenda (crash@bugshack.cygnus.com)
-
- * obstack.h: Update to latest FSF version.
-
-Tue Feb 24 13:05:02 1998 Doug Evans <devans@canuck.cygnus.com>
-
- * dis-asm.h (disassemble_info): Member `symbol' renamed to `symbols'
- and made an "asymbol **". New member num_symbols.
- (INIT_DISASSEMBLE_INFO_NO_ARCH): Update.
-
-Tue Feb 17 12:32:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h (sim_fetch_register, sim_store_register): Add
- register length parameter. Functions return actual length of
- register.
-
-Thu Feb 12 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
-
- * getopt.h: Update to latest FSF version.
-
-Wed Feb 11 16:56:06 1998 Doug Evans <devans@canuck.cygnus.com>
-
- * symcat.h: New file.
-
-Mon Feb 2 17:13:31 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
-
- * dis-asm.h (print_insn_tic30): Declare.
-
-Thu Jan 22 16:23:59 1998 Fred Fish <fnf@cygnus.com>
-
- * dis-asm.h: Add flag INSN_HAS_RELOC to tell disassembly
- function there is a reloc on this line.
-
-Mon Dec 8 11:22:23 1997 Nick Clifton <nickc@cygnus.com>
-
- * dis-asm.h: Remove prototype of disasm_symaddr() as this function
- no longer exists.
-
-Tue Dec 2 10:20:53 1997 Nick Clifton <nickc@cygnus.com>
-
- * dis-asm.h (disasm_symaddr): New prototype.
-
-Mon Dec 1 20:24:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
-
- * coff/sh.h (R_SH_SWITCH8): New.
-
-Mon Dec 1 11:29:35 1997 Doug Evans <devans@canuck.cygnus.com>
-
- * callback.h (CB_SYSCALL): Comment out arg names in prototypes.
-
-Wed Nov 26 16:47:58 1997 Michael Meissner <meissner@cygnus.com>
-
- * callback.h (CB_SYSCALL): Consistantly use names for prototype
- arguments.
-
-Wed Nov 26 11:39:30 1997 Doug Evans <devans@canuck.cygnus.com>
-
- * callback.h (CB_SYSCALL): Change byte count arguments to
- {read,write}_mem to `int'. New member `magic'.
- (CB_SYSCALL_MAGIC,CB_SYSCALL_INIT): New macros.
-
-Tue Nov 25 01:35:52 1997 Doug Evans <devans@seba.cygnus.com>
-
- * callback.h (struct stat): Move forward decl up.
- (host_callback): Pass stat struct pointer to stat,fstat.
- (CB_SYS_nnn): Reorganize.
- (CB_SYSCALL): New members p1,p2.
- (cb_host_to_target_stat): Delete fourth arg.
-
-Sat Nov 22 23:34:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h (sim_stop_reason): Clarify sim_signalled SIGRC
- argument.
-
-Mon Nov 17 14:00:51 1997 Doug Evans <devans@seba.cygnus.com>
-
- * callback.h (CB_TARGET_DEFS_MAP): Renamed from target_defs_map.
- (host_callback): Add stat, fstat, syscall_map, errno_map, open_map,
- signal_map, stat_map.
- (errn_map,open_map): Renamed to cb_init_foo_map.
- (cb_host_to_target_errno,cb_target_to_host_open): Renamed from
- host_to_target_errno,target_to_host_open.
- (cb_read_target_syscall_maps): Add prototype.
- (cb_target_to_host_syscall): Likewise.
- (cb_host_to_target_stat): Likewise.
- (cb_syscall): Likewise.
- (CB_SYS_{exit,open,close,read,write,lseek,unlink,getpid,kill,fstat,
- argvlen,argv,chdir,stat,chmod,utime,time}): Define.
- (CB_SYSCALL): New type.
- (CB_RC): New enum.
-
-Fri Nov 7 10:34:09 1997 Rob Savoye <rob@darkstar.cygnus.com>
-
- * libiberty.h: Add extern "C" { so it can be used with C++
- programs.
- * remote-sim.h: Add extern "C" { so it can be used with C++
- programs.
-
-Tue Oct 14 16:07:51 1997 Nick Clifton <nickc@cygnus.com>
-
- * dis-asm.h (struct disassemble_info): New field
- 'symbol_at_address_func'.
- (INIT_DISASSEMBLE_INFO_NO_ARCH): Initialise new field with
- generic_symbol_at_address.
-
-Mon Oct 13 10:17:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h: Clarify sim_read, sim_write MEM argument.
-
-Wed Sep 24 18:03:10 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
-
- * remote-sim.h (SIM_RC): Add a bunch of new return codes for
- breakpoint stuff.
- * Add functions to tell the simulator to set/clear/enable/disable
- intrinsic breakpoints.
-
-Thu Aug 28 19:41:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * libiberty.h (dupargv): Add prototype.
-
-Tue Aug 26 12:25:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h (sim_create_inferior): Add ABFD arg. Document.
-
-Mon Aug 25 10:50:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h (sim_open): Add ABFD arg. Document.
-
-Fri Aug 8 16:43:56 1997 Doug Evans <dje@canuck.cygnus.com>
-
- * dis-asm.h (arc_get_disassembler): Declare.
-
-Wed Jul 30 11:39:50 1997 Per Bothner <bothner@deneb.cygnus.com>
-
- * demangle.h (DMGL_JAVA): New option to request Java demangling.
-
-Tue Jul 22 17:59:54 1997 Ian Lance Taylor <ian@cygnus.com>
-
- * libiberty.h (PEXECUTE_*): Define.
- (pexecute, pwait): Declare.
-
-Fri Jun 6 13:02:33 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h (sim_kill): Mark as depreciated.
-
-Fri May 23 13:43:41 1997 Fred Fish <fnf@cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Add task_link member.
-
-Thu May 22 11:32:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h: Review documentation. Clarify restrictions on
- when functions can be called.
-
-Wed May 21 16:47:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h (sim_set_profile_size): Add prototype, document as
- depreciated.
-
-Tue May 20 09:32:22 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h (sim_open): Add callback struct.
- (sim_set_callbacks): Drop SIM_DESC argument. Document.
- (sim_size): Remove recently added SIM_DESC argument. Document.
-
-Mon May 19 19:14:44 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h: Pass SD into sim_size.
-
-Thu May 15 01:24:16 1997 Mark Alexander <marka@cygnus.com>
-
- * obstack.h (obstack_specify_allocation_with_arg, obstack_chunkfun,
- obstack_freefun): Eliminate compile warnings in gdb.
-
-Tue May 13 10:21:14 1997 Nick Clifton <nickc@cygnus.com>
-
- * coff/arm.h (constants): Added new flag bits F_APCS_26 and
- F_APCS_SET for the f_flags field of the filehdr structure. Added new
- flags: F_APCS26, F_ARM_2, F_ARM_3, F_ARM_7, F_ARM_7T to store
- information in the flags field of the internal_f structure used by BFD
- routines.
-
-Tue Apr 22 10:24:34 1997 Fred Fish <fnf@cygnus.com>
-
- * floatformat.h (floatformat_byteorders): Add comments for previous
- formats and add floatformat_littlebyte_bigword, primarily for ARM.
- Add declaration for floatformat_ieee_double_littlebyte_bigword.
-
-Fri Apr 18 13:04:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
-
- * remote-sim.h (sim_stop): New interface - asynchronous
- notification of a request to stop / suspend the running
- simulation.
-
- * remote-sim.h (enum sim_stop): Add sim_running and sim_polling as
- states for use internal to simulators.
-
- * callback.h (struct host_callback_strut): Put a magic number at
- the end of the struct to allow basic checking.
- (struct host_callback_struct ): Add poll_quit - so
- that the console etc can be polled at regular intervals.
-
-Thu Apr 17 02:17:12 1997 Doug Evans <dje@canuck.cygnus.com>
-
- * remote-sim.h (struct _bfd): Declare.
- (sim_load): Return SIM_RC. New arg `abfd'.
- (sim_create_inferior): Return SIM_RC. Delete arg `start_address'.
-
-Wed Apr 2 17:09:12 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
-
- * remote-sim.h (sim_trace, sim_size): Make these global. They
- will go away shortly.
-
-Wed Apr 2 15:23:49 1997 Doug Evans <dje@canuck.cygnus.com>
-
- * remote-sim.h (SIM_OPEN_KIND, SIM_RC): New enums.
- (sim_open): New argument `kind'.
-
-Wed Apr 2 14:45:51 1997 Ian Lance Taylor <ian@cygnus.com>
-
- * COPYING: Update FSF address.
-
-Fri Mar 28 15:29:54 1997 Mike Meissner <meissner@cygnus.com>
-
- * callback.h (top level): Include stdarg.h or varargs.h if
- va_start is not defined.
- (host_callback_struct): Make {,e}vprintf_filtered take a va_list
- instead of void *, since va_list might be an array or structure
- type.
-
-Fri Mar 28 15:44:41 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
-
- * libiberty.h (basename): Add prototype for glibc and linux.
-
-Mon Mar 17 19:22:12 1997 Ian Lance Taylor <ian@cygnus.com>
-
- * objalloc.h: New file.
-
-Mon Mar 17 14:57:55 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
-
- * remote-sim.h: New file, copied in from gdb/remote-sim.h. One
- day this will be placed in a directory of its own.
-
-Sat Mar 15 19:00:14 1997 Ian Lance Taylor <ian@cygnus.com>
-
- * obstack.h: Update to current FSF version.
-
-Thu Mar 6 15:46:59 1997 Andrew Cagney <cagney@kremvax.cygnus.com>
-
- * callback.h (struct host_callback_struct): Add callbacks -
- flush_stdout, write_stderr, flush_stderr, vprintf_filtered,
- evprintf_filtered. Delete redundant callbacks - printf_filtered.
-
-Thu Feb 27 23:18:27 1997 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Remove lprefix and lprefix_len
- fields.
-
-Tue Feb 25 00:10:49 1997 Ian Lance Taylor <ian@cygnus.com>
-
- * dis-asm.h (INIT_DISASSEMBLE_INFO_NO_ARCH): Initialize
- bytes_per_chunk and display_endian.
-
-Mon Feb 24 17:47:02 1997 Ian Lance Taylor <ian@cygnus.com>
-
- From Eric Youngdale <eric@andante.jic.com>:
- * bfdlink.h (struct bfd_elf_version_expr): Define.
- (struct bfd_elf_version_deps): Define.
- (struct bfd_elf_version_tree): Define.
-
-Thu Feb 6 14:20:01 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
-
- * dis-asm.h: (disassemble_info): Add new fields
- bytes_per_chunk and display_endian to control the
- display of raw instructions.
-
-Sun Dec 8 17:11:12 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * callback.h (host_callback): New member `error'.
-
-Wed Nov 20 00:40:23 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * callback.h: New file, moved here from gdb.
-
-Mon Nov 18 16:34:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
-
- * libiberty.h: Checkin again; last checkin failed due to sticky tag.
-
-Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
-
- * libiberty.h: Revert last commit due to conflicts with hpux
- system headers.
-
-Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
-
- * libiberty.h: Move prototypes from argv.c here.
-
-Thu Oct 31 14:56:18 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * ansidecl.h (VPARAMS,VA_START): Define.
-
-Fri Oct 25 12:08:04 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * dis-asm.h (disassemble_info): Add bytes_per_line field.
- (INIT_DISASSEMBLE_INFO_NO_ARCH): Initialize bytes_per_line field.
-
-Thu Oct 24 17:10:01 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * dis-asm.h (disassemble_info): Add symbol field.
- (INIT_DISASSEMBLE_INFO_NO_ARCH): Initialize symbol field.
-
-Thu Oct 17 11:17:40 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * dis-asm.h (print_insn_m32r): Declare.
-
-Mon Oct 14 23:56:52 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * libiberty.h: Declare parameter types for xmalloc and xrealloc.
-
-Thu Oct 3 13:45:27 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * fnmatch.h: New file.
-
-Thu Oct 3 10:33:14 1996 Jeffrey A Law (law@cygnus.com)
-
- * dis-asm.h (print_insn_mn10x00): Delete declaration.
- (print_insn_mn10200, print_insn_mn10300): Declare.
-
-Wed Oct 2 21:24:43 1996 Jeffrey A Law (law@cygnus.com)
-
- * dis-asm.h (print_insn_mn10x00): Declare.
-
-Mon Sep 30 13:56:11 1996 Fred Fish <fnf@cygnus.com>
-
- * libiberty.h: Remove #ifndef PRIVATE_XMALLOC.
-
-Sat Aug 31 13:27:06 1996 Jeffrey A Law (law@cygnus.com)
-
- * dis-asm.h (print_insn_v850): Declare.
-
-Tue Aug 13 16:10:30 1996 Stu Grossman (grossman@critters.cygnus.com)
-
- * obstack.h: Change bcopy to memcpy. Works better on Posix
- systems, which generally lack bcopy.
-
-Mon Aug 12 17:03:18 1996 Stu Grossman (grossman@critters.cygnus.com)
-
- * ansidecl.h: Change WIN32 to _WIN32.
-
-Fri Jul 26 13:58:18 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * dis-asm.h: Add flavour field.
- (print_insn_alpha): Declare.
- (print_insn_alpha_osf, print_insn_alpha_vms): Don't declare.
- (INIT_DISASSEMBLE_INFO): Initialize flavour field.
-
-Tue Jul 23 17:37:58 1996 Fred Fish <fnf@cygnus.com>
-
- * libiberty.h (PRIVATE_XMALLOC): Enclose xmalloc/xrealloc
- definitions inside #ifndef so that programs that want to
- can define PRIVATE_XMALLOC and then define xmalloc and
- xrealloc anyway they want.
- (basename): Document in source that we can't declare the
- parameter type because it is declared inconsistently across
- different systems.
-
-Mon Jul 22 13:16:13 1996 Richard Henderson <rth@tamu.edu>
-
- * dis-asm.h (print_insn_alpha): Don't declare.
- (print_insn_alpha_osf, print_insn_alpha_vms): Declare.
-
-Wed Jul 17 14:45:12 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
-
- * dis-asm.h: (print_insn_d10v): Declare.
-
-Mon Jul 15 16:55:38 1996 Stu Grossman (grossman@critters.cygnus.com)
-
- * dis-asm.h: Get rid of decls for print_insn_i8086,
- print_insn_sparc64 and print_insn_sparclite.
- * (INIT_DISASSEMBLE_INFO): Split into two pieces. One,
- INIT_DISASSEMBLE_INFO_NO_ARCH inits everything except for endian,
- mach, and arch.
-
-Fri Jul 12 10:19:27 1996 Stu Grossman (grossman@critters.cygnus.com)
-
- * dis-asm.h (print_insn_i8086): Declare.
-
-Wed Jul 3 16:02:39 1996 Stu Grossman (grossman@critters.cygnus.com)
-
- * dis-asm.h (print_insn_sparclite): Declare.
-
-Tue Jun 18 16:02:46 1996 Jeffrey A. Law <law@rtl.cygnus.com>
-
- * dis-asm.h (print_insn_h8300s): Declare.
-
-Tue Jun 18 15:11:33 1996 Klaus Kaempf <kkaempf@progis.de>
-
- * fopen-vms.h: New file.
-
-Tue Jun 4 18:58:16 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Add notice_all field.
-
-Fri Apr 26 10:33:12 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * demangle.h (#ifdef IN_GCC): #include "gansidecl.h".
- (PROTO,PTR,const): Delete.
-
-Mon Apr 22 17:27:42 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Add traditional_format field.
-
-Mon Apr 15 15:16:56 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * libiberty.h (choose_temp_base): Add prototype.
-
-Tue Mar 12 17:29:46 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (bfd_wrapped_link_hash_lookup): Declare.
- (struct bfd_link_info): Add wrap_hash field.
-
-Wed Feb 14 16:49:17 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
-
- * ieee.h (ieee_record_enum_type): Define
- ieee_external_reference_info_enum.
-
-Fri Feb 2 17:09:25 1996 Doug Evans <dje@charmed.cygnus.com>
-
- * dis-asm.h (DISASM_RAW_INSN): Delete.
-
-Tue Jan 23 09:21:47 1996 Doug Evans <dje@charmed.cygnus.com>
-
- * dis-asm.h (INIT_DISASSEMBLE_INFO): Set endian to BFD_ENDIAN_UNKNOWN.
- New argument FPRINTF_FUNC.
-
-Mon Jan 22 16:37:59 1996 Doug Evans <dje@charmed.cygnus.com>
-
- * dis-asm.h (disassemble_info): New members arch, mach, endian.
- (INIT_DISASSEMBLE_INFO): Initialize them.
- (DISASM_RAW_INSN{,FLAG}): Define.
-
-Thu Jan 18 11:32:38 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * demangle.h (cplus_demangle_opname): Change opname parameter to
- const char *.
- (cplus_mangle_opname): Change return type and opname parameter to
- const char *.
-
-Fri Jan 5 00:01:22 1996 Ian Lance Taylor <ian@cygnus.com>
-
- * ieee.h (enum ieee_record): Add ieee_asn_record_enum,
- ieee_at_record_enum, ieee_ty_record_enum, ieee_atn_record_enum,
- ieee_bb_record_enum, and ieee_be_record_enum.
-
-Wed Jan 3 13:12:09 1996 Fred Fish <fnf@cygnus.com>
-
- * obstack.h: Update copyright to 1996.
- (_obstack_memory_used): Declare.
- (obstack_memory_used): Define macro.
-
-Thu Dec 28 11:42:12 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * libiberty.h (xstrdup): Declare.
-
-Thu Dec 21 14:47:17 1995 Michael Meissner <meissner@tiktok.cygnus.com>
-
- * wait.h: Protect all macros with #ifndef.
-
-Tue Oct 24 21:45:40 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Add static_link field.
-
-Tue Sep 12 16:28:04 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (struct bfd_link_callbacks): Add symbol parameter to
- warning callback.
-
-Fri Sep 1 13:11:51 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (struct bfd_link_callbacks): Change warning callback
- to take BFD, section, and address arguments.
-
-Thu Aug 31 16:45:12 1995 steve chamberlain <sac@slash.cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Remove PE stuff.
-
-Tue Aug 22 03:18:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
-
- * libiberty.h: Declare xstrerror. From Pat Rankin.
-
-Mon Aug 21 18:11:36 1995 steve chamberlain <sac@slash.cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Remove PE stuff.
-
-Wed Aug 2 08:14:12 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * dis-asm.h (print_insn_sparc64): Declare.
-
-Mon Jul 10 13:26:49 1995 Eric Youngdale <eric@aib.com>
-
- * bfdlink.h (struct bfd_link_info): Add new field symbolic.
-
-Sun Jul 2 17:48:40 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Change type of base_file to
- PTR.
-
-Thu Jun 29 00:02:45 1995 Steve Chamberlain <sac@slash.cygnus.com>
-
- * bfdlink.h (struct bfd_link_info): Added base_file member.
-
-Tue Jun 20 16:40:04 1995 Steve Chamberlain <sac@slash.cygnus.com>
-
- * ansidecl.h: win32s is ANSI enough.
-
-Thu May 18 04:25:50 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
-
- Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
-
- * dis-asm.h (print_insn_arm): Delete declaration.
- (print_insn_{little,big}_arm): New declarations.
-
- * floatformat.h (floatformat_arm_ext): Declare.
-
-Sat May 13 10:14:08 1995 Steve Chamberlain <sac@slash.cygnus.com>
-
- * coff/pe.h: New file.
- * bfdlink.h (subsytem, stack_heap_parameters): New.
- * coff/i386.h (NT_SECTION_ALIGNMENT, NT_FILE_ALIGNMENT,
- NT_DEF_RESERVE, NT_DEF_COMMIT): New.
- * coff/internal.h (internal_filehdr): New fields for PE.
- (IMAGE_DATA_DIRECTORY): New.
- (internal_aouthdr): New fields for PE.
-
-Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
-
- * demangle.h: Don't include ansidecl.h if IN_GCC.
-
-Tue Feb 21 00:37:28 1995 Jeff Law (law@snake.cs.utah.edu)
-
- * hp-symtab.h: Don't use bitfield enumerations, the HP C compiler
- does not handle them correctly.
-
-Thu Feb 9 14:20:27 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * libiberty.h (basename): Don't declare parameter type; some
- systems have this in their header files.
-
-Wed Feb 8 17:35:38 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (struct bfd_link_hash_entry): Change format of common
- symbol information, to remove restrictions on maximum size and
- alignment power, by using a pointer to a structure instead.
-
-Mon Feb 6 14:55:32 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * bfdlink.h (enum bfd_link_hash_type): Rename bfd_link_hash_weak
- to bfd_link_hash_undefweak. Add bfd_link_hash_defweak.
-
-Mon Jan 16 21:00:23 1995 Stan Shebs <shebs@andros.cygnus.com>
-
- * dis-asm.h (GDB_INIT_DISASSEMBLE_INFO, etc): Remove all
- GDB-specific definitions.
-
-Sun Jan 15 18:39:35 1995 Steve Chamberlain <sac@splat>
-
- * dis-asm.h (print_insn_w65): Declare.
-
-Thu Jan 12 17:51:17 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
-
- * libiberty.h (hex_p): Fix sense of test.
-
-Wed Jan 11 22:36:40 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
-
- * libiberty.h (_hex_array_size, _hex_bad, _hex_value, hex_init,
- hex_p, hex_value): New macros and declarations, for hex.c.
-
-Fri Jan 6 17:44:14 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
-
- * dis-asm.h: Make idempotent.
-
-Wed Dec 14 13:08:43 1994 Stan Shebs <shebs@andros.cygnus.com>
-
- * progress.h: New file, empty definitions for progress macros.
-
-Fri Nov 25 00:14:05 1994 Jeff Law (law@snake.cs.utah.edu)
-
- * hp-symtab.h: New file describing the debug symbols emitted
- by the HP C compilers.
-
-Fri Nov 11 15:48:37 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
-
- * bfdlink.h (struct bfd_link_hash_entry): Change u.c.size from 24
- to 26 bits, and change u.c.alignment_power from 8 to 6 bits. 6
- bit in the alignment power is enough for a 64 bit address space.
-
-Mon Oct 31 13:02:51 1994 Stan Shebs (shebs@andros.cygnus.com)
-
- * demangle.h (cplus_mangle_opname): Declare.
-
-Tue Oct 25 11:38:02 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
-
- * bfdlink.h (struct bfd_link_callbacks): Fix comments for
- multiple_common field.
-
-Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
-
- * aout/aout64.h: Only define QMAGIC if it isn't already defined.
-
- * dis-asm.h: Add support for the ARM.
-
-Wed Aug 10 12:51:41 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * libiberty.h (strsignal): Document its existence even if we
- can't declare it.
-
-Tue Aug 2 14:40:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * os9k.h: Remove u_int16, u_int32, and owner_id typedefs and
- expand their uses. Those names conflict with Mach headers.
-
-Fri Jul 22 14:17:12 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
-
- * bfdlink.h (struct bfd_link_hash_entry): Change u.c.size into a
- bitfield. Add field u.c.alignment_power.
-
-Sun Jul 10 00:26:39 1994 Ian Dall (dall@hfrd.dsto.gov.au)
-
- * dis-asm.h: Add print_insn_ns32k declaration.
-
-Mon Jun 20 17:13:29 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
-
- * bfdlink.h (bfd_link_hash_table): Make creator a const pointer.
-
-Sat Jun 18 16:09:32 1994 Stan Shebs (shebs@andros.cygnus.com)
-
- * demangle.h (cplus_demangle_opname): Declare.
-
-Thu Jun 16 15:19:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * bfdlink.h (struct bfd_link_info): Add new field shared.
-
-Mon Jun 6 14:39:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * bfdlink.h (struct bfd_link_hash_entry): Remove written field:
- not needed for all backends.
-
-Thu Apr 28 19:06:50 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
-
- * dis-asm.h (disassembler): Declare.
-
-Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
-
- * obstack.h: Delete use of IN_GCC to control whether
- stddef.h or gstddef.h is included.
-
-Tue Mar 22 13:06:02 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * bfdlink.h (enum bfd_link_order_type): Add bfd_data_link_order.
- (struct bfd_link_order): Add data field to union.
-
-Mon Mar 21 18:45:26 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * bfdlink.h (struct bfd_link_callbacks): Change bitsize argument
- to add_to_set to reloc. Remove bitsize argument from constructor.
- Comment that reloc_overflow, reloc_dangerous and unattached_reloc
- must handle NULL pointers for reloc location.
- (enum bfd_link_order_type): Add bfd_section_reloc_link_order and
- bfd_symbol_reloc_link_order.
- (struct bfd_link_order): Add reloc field to union.
- (struct bfd_link_order_reloc): Define.
-
-Mon Mar 14 12:27:50 1994 Ian Lance Taylor (ian@cygnus.com)
-
- * ieee-float.h: Removed; no longer used.
-
-Tue Mar 1 18:10:49 1994 Kung Hsu (kung@mexican.cygnus.com)
-
- * os9k.h: os9000 target specific header file, the header of the
- object file is used now.
-
-Sun Feb 27 21:52:26 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
-
- * floatformat.h: New file, intended to replace ieee-float.h.
-
-Sun Feb 20 17:15:42 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
-
- * ansidecl.h (ANSI_PROTOTYPES): Define if using ANSI prototypes.
-
-Wed Feb 16 01:07:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * libiberty.h: Don't declare strsignal, to avoid conflicts with
- Solaris system header files.
-
-Sat Feb 12 22:11:32 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
-
- * libiberty.h (xexit): Use __volatile__ to avoid losing if
- compiling with gcc -traditional.
-
-Thu Feb 10 14:05:41 1994 Ian Lance Taylor (ian@cygnus.com)
-
- * libiberty.h: New file. Declares functions provided by
- libiberty.
-
-Tue Feb 8 05:19:52 1994 David J. Mackenzie (djm@thepub.cygnus.com)
-
- Handle obstack_chunk_alloc returning NULL. This allows
- obstacks to be used by libraries, without forcing them
- to call exit or longjmp.
- * obstack.h (struct obstack): Add alloc_failed flag.
- _obstack_begin, _obstack_begin_1): Declare to return int, not void.
- (obstack_finish): If alloc_failed, return NULL.
- (obstack_base, obstack_next_free, objstack_object_size):
- If alloc_failed, return 0.
- (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
- obstack_int_grow, obstack_blank): If alloc_failed, do nothing that
- could corrupt the obstack.
-
-Mon Jan 24 15:06:05 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * bfdlink.h (struct bfd_link_callbacks): Add name, reloc_name and
- addend argments to reloc_overflow callback.
-
-Fri Jan 21 19:13:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * dis-asm.h (print_insn_big_powerpc, print_insn_little_powerpc,
- print_insn_rs6000): Declare.
-
-Thu Jan 6 14:15:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * bfdlink.h (struct bfd_link_callbacks): Add bitsize argument to
- add_to_set field. Add new callback named constructor.
-
-Thu Dec 30 10:44:06 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
-
- * bfdlink.h: New file for new BFD linker backend routines.
-
-Mon Nov 29 10:43:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * dis-asm.h (enum dis_insn_tyupe): Remove non-ANSI trailing comma.
-
-Sat Oct 2 20:42:26 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * dis-asm.h: Move comment to right place.
-
-Mon Aug 9 19:03:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
-
- * obstack.h (obstack_chunkfun, obstack_freefun): Add defns from
- previous version. Are these Cygnus local changes?
-
-Fri Aug 6 17:05:47 1993 David J. Mackenzie (djm@thepub.cygnus.com)
-
- * getopt.h, obstack.h: Update to latest FSF version.
-
-Mon Aug 2 16:37:14 1993 Stu Grossman (grossman at cygnus.com)
-
- * coff/i386.h: Add Lynx magic number.
-
-Mon Aug 2 14:45:29 1993 John Gilmore (gnu@cygnus.com)
-
- * dis-asm.h: Move enum outside of struct defn to avoid warnings.
-
-Mon Aug 2 08:49:30 1993 Stu Grossman (grossman at cygnus.com)
-
- * wait.h (WEXITSTATUS, WSTOPSIG): Mask down to 8 bits. This is
- for systems that store stuff into the high 16 bits of a wait
- status.
-
-Fri Jul 30 18:38:02 1993 John Gilmore (gnu@cygnus.com)
-
- * dis-asm.h: Add new fields insn_info_valid, branch_delay_insns,
- data_size, insn_type, target, target2. These are used to return
- information from the instruction decoders back to the calling
- program. Add comments, make more readable.
-
-Mon Jul 19 22:14:14 1993 Fred Fish (fnf@deneb.cygnus.com)
-
- * nlm: New directory containing NLM/NetWare includes.
-
-Thu Jul 15 12:10:04 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
-
- * dis-asm.h (struct disassemble_info): New field application_data.
-
-Thu Jul 15 12:41:15 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * dis-asm.h: Added declaration of print_insn_m88k.
-
-Thu Jul 8 09:05:26 1993 Doug Evans (dje@canuck.cygnus.com)
-
- * opcode/h8300.h: Lots of little fixes for the h8/300h.
-
-Fri Jul 2 10:31:59 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * ansidecl.h: Use ANSI macros if __mips and _SYSTYPE_SVR4 are
- defined, since RISC/OS cc handles ANSI declarations in SVR4 mode
- but does not define __STDC__.
-
-Sun Jun 20 18:27:52 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
-
- * dis-asm.h: Don't need to include ansidecl.h any more.
-
-Fri Jun 18 03:22:10 1993 John Gilmore (gnu@cygnus.com)
-
- * oasys.h: Eliminate "int8_type", "int16_type", "int32_type", and
- their variants. These changes are coordinated with corresponding
- changes in ../bfd/oasys.c.
-
-Wed Jun 16 10:43:08 1993 Fred Fish (fnf@cygnus.com)
-
- * bfd.h: Note that it has been removed.
-
-Tue Jun 8 12:16:03 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
-
- Support for H8/300-H
- * dis-asm.h (print_insn_h8300, print_insn_h8300h): Declare it.
- * coff/h8300.h: New magic number.
- * coff/internal.h: New relocations.
- * opcode/h8300.h: Lots of new opcodes.
-
-Tue Jun 1 07:35:03 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
-
- * ansidecl.h (const): Don't define it if it's already defined.
-
-Thu May 27 18:19:51 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
-
- * dis-asm.h (print_insn_hppa): Declare it.
-
- * bfd.h: Moved to bfd directory. Small stub here includes it
- without requiring "-I../bfd".
-
-Thu Apr 29 12:06:13 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
-
- * bfd.h: Updated with BSF_FUNCTION.
-
-Mon Apr 26 18:15:50 1993 Steve Chamberlain (sac@thepub.cygnus.com)
-
- * bfd.h, dis-asm.h: Updated with Hitachi SH.
-
-Fri Apr 23 18:41:38 1993 Steve Chamberlain (sac@thepub.cygnus.com)
-
- * bfd.h: Updated with alpha changes.
- * dis-asm.h: Added alpha.
-
-Fri Apr 16 17:35:30 1993 Jim Kingdon (kingdon@cygnus.com)
-
- * bfd.h: Update for signed bfd_*get_*.
-
-Thu Apr 15 09:24:21 1993 Jim Kingdon (kingdon@cygnus.com)
-
- * bfd.h: Updated for file_truncated error.
-
-Thu Apr 8 10:53:47 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * ansidecl.h: If no ANSI, define const to be empty.
-
-Thu Apr 1 09:00:10 1993 Jim Kingdon (kingdon@cygnus.com)
-
- * dis-asm.h: Declare a29k and i960 print_insn_*.
-
- * dis-asm.h: Add print_address_func and related stuff.
-
- * dis-asm.h (dis_asm_read_memory): Fix prototype.
-
-Wed Mar 31 17:40:16 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * dis-asm.h: Add print_insn_sparc.
-
-Wed Mar 31 17:51:42 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * bfd.h: Updated for BFD_RELOC_MIPS_GPREL and bfd_[gs]et_gp_size
- prototypes.
-
-Wed Mar 31 16:35:12 1993 Stu Grossman (grossman@cygnus.com)
-
- * dis-asm.h: (disassemble_info): Fix typo in prototype of
- dis_asm_memory_error().
-
-Tue Mar 30 19:09:23 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * dis-asm.h (disassembler_info): Add read_memory_func,
- memory_error_func, buffer, and length.
- ({GDB_,}INIT_DISASSEMBLE_INFO): Set them.
- print_insn_*: Remove second argument.
-
-Tue Mar 30 14:48:55 1993 Steve Chamberlain (sac@thepub.cygnus.com)
-
- * bfd.h: Update for lma field of section.
-
-Tue Mar 30 12:22:55 1993 Jim Kingdon (kingdon@cygnus.com)
-
- * ansidecl.h: Use ANSI versions on AIX regardless of __STDC__.
-
-Fri Mar 19 14:49:49 1993 Steve Chamberlain (sac@thepub.cygnus.com)
-
- * dis-asm.h: Add h8500.
-
-Thu Mar 18 13:49:09 1993 Per Bothner (bothner@rtl.cygnus.com)
-
- * ieee-float.h: Moved from ../gdb.
- * dis-asm.h: New file. Interface to dis-assembler.
-
-Thu Mar 11 10:52:57 1993 Fred Fish (fnf@cygnus.com)
-
- * demangle.h (DMGL_NO_OPTS): Add define (set to 0) to use
- in place of bare 0, for readability reasons.
-
-Tue Mar 2 17:50:11 1993 Fred Fish (fnf@cygnus.com)
-
- * demangle.h: Replace all references to cfront with ARM.
-
-Tue Feb 23 12:21:14 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * bfd.h: Update for new elements in JUMP_TABLE.
-
-Tue Feb 16 00:51:30 1993 John Gilmore (gnu@cygnus.com)
-
- * bfd.h: Update for BFD_VERSION 2.1.
-
-Tue Jan 26 11:49:20 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * bfd.h: Update for SEC_IS_COMMON flag.
-
-Tue Jan 19 12:25:12 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * bfd.h: Update for bfd_asymbol_value bug fix.
-
-Fri Jan 8 16:37:18 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
-
- * bfd.h: Update to include ECOFF tdata and target_flavour.
-
-Sun Dec 27 17:52:30 1992 Fred Fish (fnf@cygnus.com)
-
- * bfd.h: Add declaration for bfd_get_size().
-
-Tue Dec 22 22:42:46 1992 Fred Fish (fnf@cygnus.com)
-
- * demangle.h: Protect file from multiple inclusions with
- #if !defined(DEMANGLE_H)...#define DEMANGLE_H...#endif.
-
-Mon Dec 21 21:25:50 1992 Stu Grossman (grossman at cygnus.com)
-
- * bfd.h: Update to get hppa_core_struct from bfd.c.
-
-Thu Dec 17 00:42:35 1992 John Gilmore (gnu@cygnus.com)
-
- * bfd.h: Update to get tekhex tdata name change from bfd.
-
-Mon Nov 9 23:55:42 1992 John Gilmore (gnu@cygnus.com)
-
- * ansidecl.h: Update comments to discourage use of EXFUN.
-
-Thu Nov 5 16:35:44 1992 Ian Lance Taylor (ian@cygnus.com)
-
- * bfd.h: Update to bring in SEC_SHARED_LIBRARY.
-
-Thu Nov 5 03:21:32 1992 John Gilmore (gnu@cygnus.com)
-
- * bfd.h: Update to match EXFUN, bfd_seclet_struct, and SDEF
- cleanups in bfd.
-
-Wed Nov 4 07:28:05 1992 Ken Raeburn (raeburn@cygnus.com)
-
- * bout.h (N_CALLNAME, N_BALNAME): Define as char-type values, so
- widening works consistently.
-
-Fri Oct 16 03:17:08 1992 John Gilmore (gnu@cygnus.com)
-
- * getopt.h: Update to Revised Standard FSF Version.
-
-Thu Oct 15 21:43:22 1992 K. Richard Pixley (rich@sendai.cygnus.com)
-
- * getopt.h (struct option): use the provided enum for has_arg.
-
- * demangle.h (AUTO_DEMANGLING, GNU_DEMANGLING,
- LUCID_DEMANGLING): ultrix compilers require enums to be
- enums and ints to be ints and casts where they meet. cast some
- enums into ints.
-
-Thu Oct 15 04:35:51 1992 John Gilmore (gnu@cygnus.com)
-
- * bfd.h: Update after comment changes.
-
-Thu Oct 8 09:03:02 1992 Steve Chamberlain (sac@thepub.cygnus.com)
-
- * bfd.h (bfd_get_symbol_leading_char): new macro for getting in xvec
-
-Thu Sep 3 09:10:50 1992 Stu Grossman (grossman at cygnus.com)
-
- * bfd.h (struct reloc_howto_struct): size needs to be signed if
- it's going to hold negative values.
-
-Sun Aug 30 17:50:27 1992 Per Bothner (bothner@rtl.cygnus.com)
-
- * demangle.h: New file, moved from ../gdb. Made independent
- of gdb. Allow demangling style option to be passed as a
- parameter to cplus_demangle(), but using the
- current_demangling_style global as the default.
-
-Sat Aug 29 10:07:55 1992 Fred Fish (fnf@cygnus.com)
-
- * obstack.h: Merge comment change from current FSF version.
-
-Thu Aug 27 12:59:29 1992 Brendan Kehoe (brendan@cygnus.com)
-
- * bfd.h: add we32k
-
-Tue Aug 25 15:07:47 1992 Steve Chamberlain (sac@thepub.cygnus.com)
-
- * bfd.h: new after Z8000 stuff
-
-Mon Aug 17 09:01:23 1992 Ken Raeburn (raeburn@cygnus.com)
-
- * bfd.h: Regenerated after page/segment size changes.
-
-Sat Aug 1 13:46:31 1992 Fred Fish (fnf@cygnus.com)
-
- * obstack.h: Merge changes from current FSF version.
-
-Mon Jul 20 21:06:23 1992 Fred Fish (fnf@cygnus.com)
-
- * obstack.h (area_id, flags): Remove, replace with extra_arg,
- use_extra_arg, and maybe_empty_object.
- * obstack.h (OBSTACK_MAYBE_EMPTY_OBJECT, OBSTACK_MMALLOC_LIKE):
- Remove, replaced by maybe_empty_object and use_extra_arg bitfields.
- * obstack.h (obstack_full_begin, _obstack_begin): Remove area_id
- and flags arguments.
- * obstack.h (obstack_alloc_arg): New macro to set extra_arg.
-
-Thu Jul 16 08:12:44 1992 Steve Chamberlain (sac@thepub.cygnus.com)
-
- * bfd.h: new after adding BFD_IS_RELAXABLE
-
-Sat Jul 4 03:22:23 1992 John Gilmore (gnu at cygnus.com)
-
- * bfd.h: Regen after adding BSF_FILE.
-
-Mon Jun 29 14:18:36 1992 Fred Fish (fnf at sunfish)
-
- * obstack.h: Convert bcopy() use to memcpy(), which is more
- portable, more standard, and can take advantage of gcc's builtin
- functions for increased performance.
-
-Thu Jun 25 04:46:08 1992 John Gilmore (gnu at cygnus.com)
-
- * ansidecl.h (PARAMS): Incorporate this macro from gdb's defs.h.
- It's a cleaner way to forward-declare function prototypes.
-
-Fri Jun 19 15:46:32 1992 Stu Grossman (grossman at cygnus.com)
-
- * bfd.h: HPPA merge.
-
-Tue Jun 16 21:30:56 1992 K. Richard Pixley (rich@cygnus.com)
-
- * getopt.h: gratuitous white space changes merged from other prep
- releases.
-
-Thu Jun 11 01:10:55 1992 John Gilmore (gnu at cygnus.com)
-
- * bfd.h: Regen'd from bfd.c after removing elf_core_tdata_struct.
-
-Mon May 18 17:29:03 1992 K. Richard Pixley (rich@cygnus.com)
-
- * getopt.h: merged changes from make-3.62.11.
-
- * getopt.h: merged changes from grep-1.6 (alpha).
-
-Fri May 8 14:53:32 1992 K. Richard Pixley (rich@cygnus.com)
-
- * getopt.h: merged changes from bison-1.18.
-
-Sat Mar 14 17:25:20 1992 Fred Fish (fnf@cygnus.com)
-
- * obstack.h: Add "area_id" and "flags" members to obstack
- structure. Add obstack_chunkfun() and obstack_freefun() to
- set functions explicitly. Convert maybe_empty_object to
- a bit in "flags".
-
-Thu Feb 27 22:01:02 1992 Per Bothner (bothner@cygnus.com)
-
- * wait.h (WIFSTOPPED): Add IBM rs6000-specific version.
-
-Fri Feb 21 20:49:20 1992 John Gilmore (gnu at cygnus.com)
-
- * obstack.h: Add obstack_full_begin.
- * bfd.h, obstack.h: Protolint.
-
-Thu Jan 30 01:18:42 1992 John Gilmore (gnu at cygnus.com)
-
- * bfd.h: Remove comma from enum declaration.
-
-Mon Jan 27 22:01:13 1992 Steve Chamberlain (sac at cygnus.com)
-
- * bfd.h : new target entr, bfd_relax_section
-
-Wed Dec 18 17:19:44 1991 Stu Grossman (grossman at cygnus.com)
-
- * bfd.h, ieee.h, opcode/m68k.h, opcode/sparc.h: ANSIfy enums.
-
-Thu Dec 12 20:59:56 1991 John Gilmore (gnu at cygnus.com)
-
- * fopen-same.h, fopen-bin.h: New files for configuring
- whether fopen distinguishes binary files or not. For use
- by host-dependent config files.
-
-Sat Nov 30 20:46:43 1991 Steve Chamberlain (sac at rtl.cygnus.com)
-
- * bfd.h: change the documentation format.
-
- * created coff, elf and opcode and aout directories. Moved:
-
- aout64.h ==> aout/aout64.h
- ar.h ==> aout/ar.h
- a.out.encap.h ==> aout/encap.h
- a.out.host.h ==> aout/host.h
- a.out.hp.h ==> aout/hp.h
- a.out.sun4.h ==> aout/sun4.h
- ranlib.h ==> aout/ranlib.h
- reloc.h ==> aout/reloc.h
- stab.def ==> aout/stab.def
- stab.gnu.h ==> aout/stab_gnu.h
-
- coff-a29k.h ==> coff/a29k.h
- coff-h8300.h ==> coff/h8300.h
- coff-i386.h ==> coff/i386.h
- coff-i960.h ==> coff/i960.h
- internalcoff.h ==> coff/internal.h
- coff-m68k.h ==> coff/m68k.h
- coff-m88k.h ==> coff/m88k.h
- coff-mips.h ==> coff/mips.h
- coff-rs6000.h ==> coff/rs6000.h
-
- elf-common.h ==> elf/common.h
- dwarf.h ==> elf/dwarf.h
- elf-external.h ==> elf/external.h
- elf-internal.h ==> elf/internal.h
-
- a29k-opcode.h ==> opcode/a29k.h
- arm-opcode.h ==> opcode/arm.h
- h8300-opcode.h ==> opcode/h8300.h
- i386-opcode.h ==> opcode/i386.h
- i860-opcode.h ==> opcode/i860.h
- i960-opcode.h ==> opcode/i960.h
- m68k-opcode.h ==> opcode/m68k.h
- m88k-opcode.h ==> opcode/m88k.h
- mips-opcode.h ==> opcode/mips.h
- np1-opcode.h ==> opcode/np1.h
- ns32k-opcode.h ==> opcode/ns32k.h
- pn-opcode.h ==> opcode/pn.h
- pyr-opcode.h ==> opcode/pyr.h
- sparc-opcode.h ==> opcode/sparc.h
- tahoe-opcode.h ==> opcode/tahoe.h
- vax-opcode.h ==> opcode/vax.h
-
-
-
-Wed Nov 27 10:38:31 1991 Steve Chamberlain (sac at rtl.cygnus.com)
-
- * internalcoff.h: (internal_scnhdr) took out #def dependency, now
- s_nreloc and s_nlnno are always long. (internal_reloc): allways
- has an offset field now.
-
-Fri Nov 22 08:12:58 1991 John Gilmore (gnu at cygnus.com)
-
- * coff-rs6000.h: Lint; use unsigned chars for external fields.
- * internalcoff.h: Lint; cast storage classes to signed char.
-
-Thu Nov 21 21:01:05 1991 Per Bothner (bothner at cygnus.com)
-
- * stab.def: Remove the GNU extended type codes (e.g. N_SETT).
- * aout64.h: The heuristic for distinguishing between
- sunos-style and bsd-style ZMAGIC files (wrt. where the
- text segment starts) is moved into (the default definition of)
- the macro N_HEADER_IN_TEXT. This definition is only used
- if no other definition is used - e.g. bfd/newsos3.c defines
- N_HEADER_IN_TEXT(x) to be always 0 (as before).
-
-Thu Nov 21 11:53:03 1991 John Gilmore (gnu at cygnus.com)
-
- * aout64.h (N_TXTADDR, N_TXTOFF, N_TXTSIZE): New definitions
- that should handle all uses. LOGICAL_ versions deleted.
- Eliminate N_HEADER_IN_TEXT, using a_entry to determine which
- kind of zmagic a.out file we are looking at.
- * coff-rs6000.h: Typo.
-
-Tue Nov 19 18:43:37 1991 Per Bothner (bothner at cygnus.com)
-
- (Note: This is a revised entry, as was aout64.h.)
- * aout64.h: Some cleanups of N_TXTADDR and N_TXTOFF:
- Will now work for both old- and new-style ZMAGIC files,
- depending on N_HEADER_IN_TEXT macro.
- Add LOGICAL_TXTADDR, LOICAL_TXTOFF and LOGICAL_TXTSIZE
- that don't count the exec header as part
- of the text segment, to be consistent with bfd.
- * a.out.sun4.h: Simplified/fixed for previous change.
-
-Mon Nov 18 00:02:06 1991 Fred Fish (fnf at cygnus.com)
-
- * dwarf.h: Update to DWARF draft 5 version from gcc2.
-
-Thu Nov 14 19:44:59 1991 Per Bothner (bothner at cygnus.com)
-
- * stab.def: Added defs for extended GNU symbol types,
- such as N_SETT. These are normally ifdef'd out (because
- of conflicts with a.out.gnu.h), but are used by bfb_stab_name().
-
-Thu Nov 14 19:17:03 1991 Fred Fish (fnf at cygnus.com)
-
- * elf-common.h: Add defines to support ELF symbol table code.
-
-Mon Nov 11 19:01:06 1991 Fred Fish (fnf at cygnus.com)
-
- * elf-internal.h, elf-external.h, elf-common.h: Add support for
- note sections, which are used in ELF core files to hold copies
- of various /proc structures.
-
-Thu Nov 7 08:58:26 1991 Steve Chamberlain (sac at cygnus.com)
-
- * internalcoff.h: took out the M88 dependency in the lineno
- struct.
- * coff-m88k.h: defines GET_LINENO_LNNO and PUT_LINENO_LNNO to use
- 32bit linno entries.
- * a29k-opcode.h: fixed encoding of mtacc
-
-Sun Nov 3 11:54:22 1991 Per Bothner (bothner at cygnus.com)
-
- * bfd.h: Updated from ../bfd/bfd-in.h (q.v).
-
-Fri Nov 1 11:13:53 1991 John Gilmore (gnu at cygnus.com)
-
- * internalcoff.h: Add x_csect defines.
-
-Fri Oct 25 03:18:20 1991 John Gilmore (gnu at cygnus.com)
-
- * Rename COFF-related files in `coff-ARCH.h' form.
- coff-a29k.h, coff-i386.h, coff-i960.h, coff-m68k.h, coff-m88k.h,
- coff-mips.h, coff-rs6000.h to be exact.
-
-Thu Oct 24 22:11:11 1991 John Gilmore (gnu at cygnus.com)
-
- RS/6000 support, by Metin G. Ozisik, Mimi Phng-Tho V, and
- John Gilmore.
-
- * a.out.gnu.h: Update slightly.
- * bfd.h: Add new error code, fix doc, add bfd_arch_rs6000.
- * internalcoff.h: Add more F_ codes for filehdr. Add
- rs/6000-dependent fields to aouthdr. Add storage classes
- to syments. Add 6000-specific auxent. Add r_size in reloc.
- * rs6000coff.c: New file.
-
-Thu Oct 24 04:13:20 1991 Fred Fish (fnf at cygnus.com)
-
- * dwarf.h: New file for dwarf support. Copied from gcc2
- distribution.
-
-Wed Oct 16 13:31:45 1991 John Gilmore (gnu at cygnus.com)
-
- * aout64.h: Remove PAGE_SIZE defines; they are target-dependent.
- Add N_FN_SEQ for N_FN symbol type used on Sequent machines.
- * stab.def: Include N_FN_SEQ in table.
- * bout.h: External formats of structures use unsigned chars.
-
-Fri Oct 11 12:40:43 1991 Steve Chamberlain (steve at cygnus.com)
-
- * bfd.h:upgrade from bfd.c
- * internalcoff.h: add n_name, n_zeroes and n_offset macros
- * amdcoff.h: Define OMAGIC and AOUTHDRSZ.
-
-Fri Oct 11 10:58:06 1991 Per Bothner (bothner at cygnus.com)
-
- * a.out.host.h: Change SEGMENT_SIZE to 0x1000 for Sony.
- * bfd.h (align_power): Add (actually move) comment.
-
-Tue Oct 8 15:29:32 1991 Per Bothner (bothner at cygnus.com)
-
- * sys/h-rtbsd.h: Define MISSING_VFPRINT (for binutils/bucomm.c).
-
-Sun Oct 6 19:24:39 1991 John Gilmore (gnu at cygnus.com)
-
- * aout64.h: Move struct internal_exec to ../bfd/libaout.h so
- it can be shared by all `a.out-family' code. Rename
- EXTERNAL_LIST_SIZE to EXTERNAL_NLIST_SIZE. Use basic types
- for nlist members, and make strx integral rather than pointer.
- More commentary on n_type values.
- * bout.h: Provide a struct external_exec rather than an
- internal_exec.
- * m68kcoff.h: Remove `tagentries' which snuck in from the i960
- COFF port.
-
-Fri Oct 4 01:25:59 1991 John Gilmore (gnu at cygnus.com)
-
- * h8300-opcode.h: Remove `_enum' from the typedef for an enum.
- * bfd.h: Update to match bfd changes.
-
- * sys/h-i386mach.h, sysdep.h: Add 386 Mach host support.
-
-Tue Oct 1 04:58:42 1991 John Gilmore (gnu at cygnus.com)
-
- * bfd.h, elf-common.h, elf-external.h, elf-internal.h:
- Add preliminary ELF support, sufficient for GDB, from Fred Fish.
- * sysdep.h, sys/h-amix.h: Support Amiga SVR4.
-
- * sys/h-vaxult.h: Make it work. (David Taylor <taylor@think.com>)
- * a.out.vax.h: Remove unused and confusing file.
-
-Mon Sep 30 12:52:35 1991 Per Bothner (bothner at cygnus.com)
-
- * sysdep.h: Define NEWSOS3_SYS, and use it.
-
-Fri Sep 20 13:38:21 1991 John Gilmore (gnu at cygnus.com)
-
- * a.out.gnu.h (N_FN): Its value *really is* 0x1F.
- Fix it, and add comments warning about or-ing N_EXT with it
- and/or N_WARNING.
- * aout64.h (N_FN): Fix value, add comments about N_EXT.
- * stab.def (table at end): Update to show all the type
- values <0x20, including low order bits. Move N_FN to
- its rightful place.
-
-Tue Sep 17 17:41:37 1991 Stu Grossman (grossman at cygnus.com)
-
- * sys/h-irix3.h: sgi/irix support.
-
-Tue Sep 17 07:52:59 1991 John Gilmore (gnu at cygint.cygnus.com)
-
- * stab.def (N_DEFD): Add GNU Modula-2 debug stab, from Andrew
- Beers.
-
-Thu Sep 12 14:12:59 1991 John Gilmore (gnu at cygint.cygnus.com)
-
- * internalcoff.h (SYMNMLEN, FILNMLEN, DIMNUM): Define these
- for internalcoff, separately from the various external coff's.
- * amdcoff.h, bcs88kcoff.h, i386coff.h, intel-coff.h, m68kcoff.h,
- m88k-bcs.h: Prefix SYMNMLEN, FILNMLEN, and DIMNUM with E_'s for
- the external struct definitions.
- * ecoff.h: Remove these #define's, kludge no longer needed.
-
- * sys/h-ultra3.h: Add new Ultracomputer host.
- * sysdep.h: Add ULTRA3_SYM1_SYS and use it.
-
-Tue Sep 10 10:11:46 1991 John Gilmore (gnu at cygint.cygnus.com)
-
- * i386coff.h (LINESZ): Always 6, not based on sizeof().
- (Fix from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>.)
-
-Wed Sep 4 08:58:37 1991 John Gilmore (gnu at cygint.cygnus.com)
-
- * a.out.gnu.h, aout64.h: Add N_WARNING. Change N_FN to 0x0E,
- to match SunOS and BSD. Add N_COMM as 0x12 for SunOS shared lib
- support.
- * stab.def: Add N_COMM to table, fix overlap comment.
-
-Tue Sep 3 06:29:20 1991 John Gilmore (gnu at cygint.cygnus.com)
-
- Merge with latest FSF versions of these files.
-
- * stab.gnu.h: Add LAST_UNUSED_STAB_CODE.
- * stab.def: Update to GPL2. Move N_WARNING out, since not a
- debug symbol. Change comments, and reorder table to numeric
- order. Update final table comment.
- (N_DSLINE, N_BSLINE): Renumber from 0x66 and 0x68, to 0x46 and 0x48.
-
- * obstack.h: GPL2. Merge.
-
-Fri Aug 23 01:54:23 1991 John Gilmore (gnu at cygint.cygnus.com)
-
- * a.out.gnu.h, a.out.sun4.h: Make SEGMENT_SIZE able to depend
- on the particular a.out being examined.
- * a.out.sun4.h: Define segment sizes for Sun-3's and Sun-4's.
- * FIXME: a.out.gnu.h is almost obsolete.
- * FIXME: a.out.sun4.h should be renamed a.out.sun.h now.
-
-Wed Aug 21 20:32:13 1991 John Gilmore (gnu at cygint.cygnus.com)
-
- * Start a ChangeLog for the includes directory.
-
- * a.out.gnu.h (N_FN): Fix value -- was 15, should be 0x1E.
- * stab.def: Update allocation table in comments at end,
- to reflect reality as I know it.
-
-
-Local Variables:
-mode: change-log
-left-margin: 8
-fill-column: 74
-version-control: never
-End:
diff --git a/contrib/gcc/include/ansidecl.h b/contrib/gcc/include/ansidecl.h
deleted file mode 100644
index 9a7c5777ff2e..000000000000
--- a/contrib/gcc/include/ansidecl.h
+++ /dev/null
@@ -1,295 +0,0 @@
-/* ANSI and traditional C compatability macros
- Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
- Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
-This program 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 of the License, or
-(at your option) any later version.
-
-This program 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 this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-/* ANSI and traditional C compatibility macros
-
- ANSI C is assumed if __STDC__ is #defined.
-
- Macro ANSI C definition Traditional C definition
- ----- ---- - ---------- ----------- - ----------
- ANSI_PROTOTYPES 1 not defined
- PTR `void *' `char *'
- PTRCONST `void *const' `char *'
- LONG_DOUBLE `long double' `double'
- const not defined `'
- volatile not defined `'
- signed not defined `'
- VA_START(ap, var) va_start(ap, var) va_start(ap)
-
- Note that it is safe to write "void foo();" indicating a function
- with no return value, in all K+R compilers we have been able to test.
-
- For declaring functions with prototypes, we also provide these:
-
- PARAMS ((prototype))
- -- for functions which take a fixed number of arguments. Use this
- when declaring the function. When defining the function, write a
- K+R style argument list. For example:
-
- char *strcpy PARAMS ((char *dest, char *source));
- ...
- char *
- strcpy (dest, source)
- char *dest;
- char *source;
- { ... }
-
-
- VPARAMS ((prototype, ...))
- -- for functions which take a variable number of arguments. Use
- PARAMS to declare the function, VPARAMS to define it. For example:
-
- int printf PARAMS ((const char *format, ...));
- ...
- int
- printf VPARAMS ((const char *format, ...))
- {
- ...
- }
-
- For writing functions which take variable numbers of arguments, we
- also provide the VA_OPEN, VA_CLOSE, and VA_FIXEDARG macros. These
- hide the differences between K+R <varargs.h> and C89 <stdarg.h> more
- thoroughly than the simple VA_START() macro mentioned above.
-
- VA_OPEN and VA_CLOSE are used *instead of* va_start and va_end.
- Immediately after VA_OPEN, put a sequence of VA_FIXEDARG calls
- corresponding to the list of fixed arguments. Then use va_arg
- normally to get the variable arguments, or pass your va_list object
- around. You do not declare the va_list yourself; VA_OPEN does it
- for you.
-
- Here is a complete example:
-
- int
- printf VPARAMS ((const char *format, ...))
- {
- int result;
-
- VA_OPEN (ap, format);
- VA_FIXEDARG (ap, const char *, format);
-
- result = vfprintf (stdout, format, ap);
- VA_CLOSE (ap);
-
- return result;
- }
-
-
- You can declare variables either before or after the VA_OPEN,
- VA_FIXEDARG sequence. Also, VA_OPEN and VA_CLOSE are the beginning
- and end of a block. They must appear at the same nesting level,
- and any variables declared after VA_OPEN go out of scope at
- VA_CLOSE. Unfortunately, with a K+R compiler, that includes the
- argument list. You can have multiple instances of VA_OPEN/VA_CLOSE
- pairs in a single function in case you need to traverse the
- argument list more than once.
-
- For ease of writing code which uses GCC extensions but needs to be
- portable to other compilers, we provide the GCC_VERSION macro that
- simplifies testing __GNUC__ and __GNUC_MINOR__ together, and various
- wrappers around __attribute__. Also, __extension__ will be #defined
- to nothing if it doesn't work. See below.
-
- This header also defines a lot of obsolete macros:
- CONST, VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID,
- AND, DOTS, NOARGS. Don't use them. */
-
-#ifndef _ANSIDECL_H
-#define _ANSIDECL_H 1
-
-/* Every source file includes this file,
- so they will all get the switch for lint. */
-/* LINTLIBRARY */
-
-/* Using MACRO(x,y) in cpp #if conditionals does not work with some
- older preprocessors. Thus we can't define something like this:
-
-#define HAVE_GCC_VERSION(MAJOR, MINOR) \
- (__GNUC__ > (MAJOR) || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ >= (MINOR)))
-
-and then test "#if HAVE_GCC_VERSION(2,7)".
-
-So instead we use the macro below and test it against specific values. */
-
-/* This macro simplifies testing whether we are using gcc, and if it
- is of a particular minimum version. (Both major & minor numbers are
- significant.) This macro will evaluate to 0 if we are not using
- gcc at all. */
-#ifndef GCC_VERSION
-#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
-#endif /* GCC_VERSION */
-
-#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32)
-/* All known AIX compilers implement these things (but don't always
- define __STDC__). The RISC/OS MIPS compiler defines these things
- in SVR4 mode, but does not define __STDC__. */
-
-#define ANSI_PROTOTYPES 1
-#define PTR void *
-#define PTRCONST void *const
-#define LONG_DOUBLE long double
-
-#define PARAMS(ARGS) ARGS
-#define VPARAMS(ARGS) ARGS
-#define VA_START(VA_LIST, VAR) va_start(VA_LIST, VAR)
-
-/* variadic function helper macros */
-/* "struct Qdmy" swallows the semicolon after VA_OPEN/VA_FIXEDARG's
- use without inhibiting further decls and without declaring an
- actual variable. */
-#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP, VAR); { struct Qdmy
-#define VA_CLOSE(AP) } va_end(AP); }
-#define VA_FIXEDARG(AP, T, N) struct Qdmy
-
-#undef const
-#undef volatile
-#undef signed
-
-/* inline requires special treatment; it's in C99, and GCC >=2.7 supports
- it too, but it's not in C89. */
-#undef inline
-#if __STDC_VERSION__ > 199901L
-/* it's a keyword */
-#else
-# if GCC_VERSION >= 2007
-# define inline __inline__ /* __inline__ prevents -pedantic warnings */
-# else
-# define inline /* nothing */
-# endif
-#endif
-
-/* These are obsolete. Do not use. */
-#ifndef IN_GCC
-#define CONST const
-#define VOLATILE volatile
-#define SIGNED signed
-
-#define PROTO(type, name, arglist) type name arglist
-#define EXFUN(name, proto) name proto
-#define DEFUN(name, arglist, args) name(args)
-#define DEFUN_VOID(name) name(void)
-#define AND ,
-#define DOTS , ...
-#define NOARGS void
-#endif /* ! IN_GCC */
-
-#else /* Not ANSI C. */
-
-#undef ANSI_PROTOTYPES
-#define PTR char *
-#define PTRCONST PTR
-#define LONG_DOUBLE double
-
-#define PARAMS(args) ()
-#define VPARAMS(args) (va_alist) va_dcl
-#define VA_START(va_list, var) va_start(va_list)
-
-#define VA_OPEN(AP, VAR) { va_list AP; va_start(AP); { struct Qdmy
-#define VA_CLOSE(AP) } va_end(AP); }
-#define VA_FIXEDARG(AP, TYPE, NAME) TYPE NAME = va_arg(AP, TYPE)
-
-/* some systems define these in header files for non-ansi mode */
-#undef const
-#undef volatile
-#undef signed
-#undef inline
-#define const
-#define volatile
-#define signed
-#define inline
-
-#ifndef IN_GCC
-#define CONST
-#define VOLATILE
-#define SIGNED
-
-#define PROTO(type, name, arglist) type name ()
-#define EXFUN(name, proto) name()
-#define DEFUN(name, arglist, args) name arglist args;
-#define DEFUN_VOID(name) name()
-#define AND ;
-#define DOTS
-#define NOARGS
-#endif /* ! IN_GCC */
-
-#endif /* ANSI C. */
-
-/* Define macros for some gcc attributes. This permits us to use the
- macros freely, and know that they will come into play for the
- version of gcc in which they are supported. */
-
-#if (GCC_VERSION < 2007)
-# define __attribute__(x)
-#endif
-
-/* Attribute __malloc__ on functions was valid as of gcc 2.96. */
-#ifndef ATTRIBUTE_MALLOC
-# if (GCC_VERSION >= 2096)
-# define ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
-# else
-# define ATTRIBUTE_MALLOC
-# endif /* GNUC >= 2.96 */
-#endif /* ATTRIBUTE_MALLOC */
-
-/* Attributes on labels were valid as of gcc 2.93. */
-#ifndef ATTRIBUTE_UNUSED_LABEL
-# if (GCC_VERSION >= 2093)
-# define ATTRIBUTE_UNUSED_LABEL ATTRIBUTE_UNUSED
-# else
-# define ATTRIBUTE_UNUSED_LABEL
-# endif /* GNUC >= 2.93 */
-#endif /* ATTRIBUTE_UNUSED_LABEL */
-
-#ifndef ATTRIBUTE_UNUSED
-#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
-#endif /* ATTRIBUTE_UNUSED */
-
-#ifndef ATTRIBUTE_NORETURN
-#define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
-#endif /* ATTRIBUTE_NORETURN */
-
-#ifndef ATTRIBUTE_PRINTF
-#define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n)))
-#define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2)
-#define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3)
-#define ATTRIBUTE_PRINTF_3 ATTRIBUTE_PRINTF(3, 4)
-#define ATTRIBUTE_PRINTF_4 ATTRIBUTE_PRINTF(4, 5)
-#define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6)
-#endif /* ATTRIBUTE_PRINTF */
-
-/* We use __extension__ in some places to suppress -pedantic warnings
- about GCC extensions. This feature didn't work properly before
- gcc 2.8. */
-#if GCC_VERSION < 2008
-#define __extension__
-#endif
-
-/* Bootstrap support: Adjust certain macros defined by Autoconf,
- which are only valid for the stage1 compiler. If we detect
- a modern version of GCC, we are probably in stage2 or beyond,
- so unconditionally reset the values. Note that const, inline,
- etc. have been dealt with above. */
-#if (GCC_VERSION >= 2007)
-# ifndef HAVE_LONG_DOUBLE
-# define HAVE_LONG_DOUBLE 1
-# endif
-#endif /* GCC >= 2.7 */
-
-#endif /* ansidecl.h */
diff --git a/contrib/gcc/include/demangle.h b/contrib/gcc/include/demangle.h
deleted file mode 100644
index ad0569a0d572..000000000000
--- a/contrib/gcc/include/demangle.h
+++ /dev/null
@@ -1,163 +0,0 @@
-/* Defs for interface to demanglers.
- Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001
- Free Software Foundation, Inc.
-
- This program 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.
-
- This program 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 this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-
-#if !defined (DEMANGLE_H)
-#define DEMANGLE_H
-
-#include <ansidecl.h>
-
-/* Options passed to cplus_demangle (in 2nd parameter). */
-
-#define DMGL_NO_OPTS 0 /* For readability... */
-#define DMGL_PARAMS (1 << 0) /* Include function args */
-#define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */
-#define DMGL_JAVA (1 << 2) /* Demangle as Java rather than C++. */
-#define DMGL_VERBOSE (1 << 3) /* Include implementation details. */
-#define DMGL_TYPES (1 << 4) /* Also try to demangle type encodings. */
-
-#define DMGL_AUTO (1 << 8)
-#define DMGL_GNU (1 << 9)
-#define DMGL_LUCID (1 << 10)
-#define DMGL_ARM (1 << 11)
-#define DMGL_HP (1 << 12) /* For the HP aCC compiler;
- same as ARM except for
- template arguments, etc. */
-#define DMGL_EDG (1 << 13)
-#define DMGL_GNU_V3 (1 << 14)
-#define DMGL_GNAT (1 << 15)
-
-/* If none of these are set, use 'current_demangling_style' as the default. */
-#define DMGL_STYLE_MASK (DMGL_AUTO|DMGL_GNU|DMGL_LUCID|DMGL_ARM|DMGL_HP|DMGL_EDG|DMGL_GNU_V3|DMGL_JAVA|DMGL_GNAT)
-
-/* Enumeration of possible demangling styles.
-
- Lucid and ARM styles are still kept logically distinct, even though
- they now both behave identically. The resulting style is actual the
- union of both. I.E. either style recognizes both "__pt__" and "__rf__"
- for operator "->", even though the first is lucid style and the second
- is ARM style. (FIXME?) */
-
-extern enum demangling_styles
-{
- no_demangling = -1,
- unknown_demangling = 0,
- auto_demangling = DMGL_AUTO,
- gnu_demangling = DMGL_GNU,
- lucid_demangling = DMGL_LUCID,
- arm_demangling = DMGL_ARM,
- hp_demangling = DMGL_HP,
- edg_demangling = DMGL_EDG,
- gnu_v3_demangling = DMGL_GNU_V3,
- java_demangling = DMGL_JAVA,
- gnat_demangling = DMGL_GNAT
-} current_demangling_style;
-
-/* Define string names for the various demangling styles. */
-
-#define NO_DEMANGLING_STYLE_STRING "none"
-#define AUTO_DEMANGLING_STYLE_STRING "auto"
-#define GNU_DEMANGLING_STYLE_STRING "gnu"
-#define LUCID_DEMANGLING_STYLE_STRING "lucid"
-#define ARM_DEMANGLING_STYLE_STRING "arm"
-#define HP_DEMANGLING_STYLE_STRING "hp"
-#define EDG_DEMANGLING_STYLE_STRING "edg"
-#define GNU_V3_DEMANGLING_STYLE_STRING "gnu-v3"
-#define JAVA_DEMANGLING_STYLE_STRING "java"
-#define GNAT_DEMANGLING_STYLE_STRING "gnat"
-
-/* Some macros to test what demangling style is active. */
-
-#define CURRENT_DEMANGLING_STYLE current_demangling_style
-#define AUTO_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_AUTO)
-#define GNU_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_GNU)
-#define LUCID_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_LUCID)
-#define ARM_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_ARM)
-#define HP_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_HP)
-#define EDG_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_EDG)
-#define GNU_V3_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_GNU_V3)
-#define JAVA_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_JAVA)
-#define GNAT_DEMANGLING (((int) CURRENT_DEMANGLING_STYLE) & DMGL_GNAT)
-
-/* Provide information about the available demangle styles. This code is
- pulled from gdb into libiberty because it is useful to binutils also. */
-
-extern const struct demangler_engine
-{
- const char *const demangling_style_name;
- const enum demangling_styles demangling_style;
- const char *const demangling_style_doc;
-} libiberty_demanglers[];
-
-extern char *
-cplus_demangle PARAMS ((const char *mangled, int options));
-
-extern int
-cplus_demangle_opname PARAMS ((const char *opname, char *result, int options));
-
-extern const char *
-cplus_mangle_opname PARAMS ((const char *opname, int options));
-
-/* Note: This sets global state. FIXME if you care about multi-threading. */
-
-extern void
-set_cplus_marker_for_demangling PARAMS ((int ch));
-
-extern enum demangling_styles
-cplus_demangle_set_style PARAMS ((enum demangling_styles style));
-
-extern enum demangling_styles
-cplus_demangle_name_to_style PARAMS ((const char *name));
-
-/* V3 ABI demangling entry points, defined in cp-demangle.c. */
-extern char*
-cplus_demangle_v3 PARAMS ((const char* mangled, int options));
-
-extern char*
-java_demangle_v3 PARAMS ((const char* mangled));
-
-
-enum gnu_v3_ctor_kinds {
- gnu_v3_complete_object_ctor = 1,
- gnu_v3_base_object_ctor,
- gnu_v3_complete_object_allocating_ctor
-};
-
-/* Return non-zero iff NAME is the mangled form of a constructor name
- in the G++ V3 ABI demangling style. Specifically, return an `enum
- gnu_v3_ctor_kinds' value indicating what kind of constructor
- it is. */
-extern enum gnu_v3_ctor_kinds
- is_gnu_v3_mangled_ctor PARAMS ((const char *name));
-
-
-enum gnu_v3_dtor_kinds {
- gnu_v3_deleting_dtor = 1,
- gnu_v3_complete_object_dtor,
- gnu_v3_base_object_dtor
-};
-
-/* Return non-zero iff NAME is the mangled form of a destructor name
- in the G++ V3 ABI demangling style. Specifically, return an `enum
- gnu_v3_dtor_kinds' value, indicating what kind of destructor
- it is. */
-extern enum gnu_v3_dtor_kinds
- is_gnu_v3_mangled_dtor PARAMS ((const char *name));
-
-#endif /* DEMANGLE_H */
diff --git a/contrib/gcc/include/dyn-string.h b/contrib/gcc/include/dyn-string.h
deleted file mode 100644
index 2a771c7a5d11..000000000000
--- a/contrib/gcc/include/dyn-string.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/* An abstract string datatype.
- Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
- Contributed by Mark Mitchell (mark@markmitchell.com).
-
-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, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
-
-
-typedef struct dyn_string
-{
- int allocated; /* The amount of space allocated for the string. */
- int length; /* The actual length of the string. */
- char *s; /* The string itself, NUL-terminated. */
-}* dyn_string_t;
-
-/* The length STR, in bytes, not including the terminating NUL. */
-#define dyn_string_length(STR) \
- ((STR)->length)
-
-/* The NTBS in which the contents of STR are stored. */
-#define dyn_string_buf(STR) \
- ((STR)->s)
-
-/* Compare DS1 to DS2 with strcmp. */
-#define dyn_string_compare(DS1, DS2) \
- (strcmp ((DS1)->s, (DS2)->s))
-
-
-/* dyn_string functions are used in the demangling implementation
- included in the G++ runtime library. To prevent collisions with
- names in user programs, the functions that are used in the
- demangler are given implementation-reserved names. */
-
-#if defined(IN_LIBGCC2) || defined(IN_GLIBCPP_V3)
-
-#define dyn_string_init __cxa_dyn_string_init
-#define dyn_string_new __cxa_dyn_string_new
-#define dyn_string_delete __cxa_dyn_string_delete
-#define dyn_string_release __cxa_dyn_string_release
-#define dyn_string_resize __cxa_dyn_string_resize
-#define dyn_string_clear __cxa_dyn_string_clear
-#define dyn_string_copy __cxa_dyn_string_copy
-#define dyn_string_copy_cstr __cxa_dyn_string_copy_cstr
-#define dyn_string_prepend __cxa_dyn_string_prepend
-#define dyn_string_prepend_cstr __cxa_dyn_string_prepend_cstr
-#define dyn_string_insert __cxa_dyn_string_insert
-#define dyn_string_insert_cstr __cxa_dyn_string_insert_cstr
-#define dyn_string_insert_char __cxa_dyn_string_insert_char
-#define dyn_string_append __cxa_dyn_string_append
-#define dyn_string_append_cstr __cxa_dyn_string_append_cstr
-#define dyn_string_append_char __cxa_dyn_string_append_char
-#define dyn_string_substring __cxa_dyn_string_substring
-#define dyn_string_eq __cxa_dyn_string_eq
-
-#endif /* IN_LIBGCC2 || IN_GLIBCPP_V3 */
-
-
-extern int dyn_string_init PARAMS ((struct dyn_string *, int));
-extern dyn_string_t dyn_string_new PARAMS ((int));
-extern void dyn_string_delete PARAMS ((dyn_string_t));
-extern char *dyn_string_release PARAMS ((dyn_string_t));
-extern dyn_string_t dyn_string_resize PARAMS ((dyn_string_t, int));
-extern void dyn_string_clear PARAMS ((dyn_string_t));
-extern int dyn_string_copy PARAMS ((dyn_string_t, dyn_string_t));
-extern int dyn_string_copy_cstr PARAMS ((dyn_string_t, const char *));
-extern int dyn_string_prepend PARAMS ((dyn_string_t, dyn_string_t));
-extern int dyn_string_prepend_cstr PARAMS ((dyn_string_t, const char *));
-extern int dyn_string_insert PARAMS ((dyn_string_t, int,
- dyn_string_t));
-extern int dyn_string_insert_cstr PARAMS ((dyn_string_t, int,
- const char *));
-extern int dyn_string_insert_char PARAMS ((dyn_string_t, int, int));
-extern int dyn_string_append PARAMS ((dyn_string_t, dyn_string_t));
-extern int dyn_string_append_cstr PARAMS ((dyn_string_t, const char *));
-extern int dyn_string_append_char PARAMS ((dyn_string_t, int));
-extern int dyn_string_substring PARAMS ((dyn_string_t,
- dyn_string_t, int, int));
-extern int dyn_string_eq PARAMS ((dyn_string_t, dyn_string_t));
diff --git a/contrib/gcc/include/fibheap.h b/contrib/gcc/include/fibheap.h
deleted file mode 100644
index d109e4ad1635..000000000000
--- a/contrib/gcc/include/fibheap.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* A Fibonacci heap datatype.
- Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
- Contributed by Daniel Berlin (dan@cgsoftware.com).
-
-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, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
-
-/* Fibonacci heaps are somewhat complex, but, there's an article in
- DDJ that explains them pretty well:
-
- http://www.ddj.com/articles/1997/9701/9701o/9701o.htm?topic=algoritms
-
- Introduction to algorithms by Corman and Rivest also goes over them.
-
- The original paper that introduced them is "Fibonacci heaps and their
- uses in improved network optimization algorithms" by Tarjan and
- Fredman (JACM 34(3), July 1987).
-
- Amortized and real worst case time for operations:
-
- ExtractMin: O(lg n) amortized. O(n) worst case.
- DecreaseKey: O(1) amortized. O(lg n) worst case.
- Insert: O(2) amortized. O(1) actual.
- Union: O(1) amortized. O(1) actual. */
-
-#ifndef _FIBHEAP_H_
-#define _FIBHEAP_H_
-
-#include <ansidecl.h>
-
-typedef long fibheapkey_t;
-
-typedef struct fibheap
-{
- size_t nodes;
- struct fibnode *min;
- struct fibnode *root;
-} *fibheap_t;
-
-typedef struct fibnode
-{
- struct fibnode *parent;
- struct fibnode *child;
- struct fibnode *left;
- struct fibnode *right;
- fibheapkey_t key;
- void *data;
- unsigned int degree : 31;
- unsigned int mark : 1;
-} *fibnode_t;
-
-extern fibheap_t fibheap_new PARAMS ((void));
-extern fibnode_t fibheap_insert PARAMS ((fibheap_t, fibheapkey_t, void *));
-extern int fibheap_empty PARAMS ((fibheap_t));
-extern fibheapkey_t fibheap_min_key PARAMS ((fibheap_t));
-extern fibheapkey_t fibheap_replace_key PARAMS ((fibheap_t, fibnode_t,
- fibheapkey_t));
-extern void *fibheap_replace_key_data PARAMS ((fibheap_t, fibnode_t,
- fibheapkey_t, void *));
-extern void *fibheap_extract_min PARAMS ((fibheap_t));
-extern void *fibheap_min PARAMS ((fibheap_t));
-extern void *fibheap_replace_data PARAMS ((fibheap_t, fibnode_t, void *));
-extern void *fibheap_delete_node PARAMS ((fibheap_t, fibnode_t));
-extern void fibheap_delete PARAMS ((fibheap_t));
-extern fibheap_t fibheap_union PARAMS ((fibheap_t, fibheap_t));
-
-#endif /* _FIBHEAP_H_ */
diff --git a/contrib/gcc/include/floatformat.h b/contrib/gcc/include/floatformat.h
deleted file mode 100644
index 0cd09befb475..000000000000
--- a/contrib/gcc/include/floatformat.h
+++ /dev/null
@@ -1,122 +0,0 @@
-/* IEEE floating point support declarations, for GDB, the GNU Debugger.
- Copyright 1991, 1994, 1995, 1997, 2000 Free Software Foundation, Inc.
-
-This file is part of GDB.
-
-This program 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 of the License, or
-(at your option) any later version.
-
-This program 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 this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-#if !defined (FLOATFORMAT_H)
-#define FLOATFORMAT_H 1
-
-#include "ansidecl.h"
-
-/* A floatformat consists of a sign bit, an exponent and a mantissa. Once the
- bytes are concatenated according to the byteorder flag, then each of those
- fields is contiguous. We number the bits with 0 being the most significant
- (i.e. BITS_BIG_ENDIAN type numbering), and specify which bits each field
- contains with the *_start and *_len fields. */
-
-/* What is the order of the bytes. */
-
-enum floatformat_byteorders {
-
- /* Standard little endian byte order.
- EX: 1.2345678e10 => 00 00 80 c5 e0 fe 06 42 */
-
- floatformat_little,
-
- /* Standard big endian byte order.
- EX: 1.2345678e10 => 42 06 fe e0 c5 80 00 00 */
-
- floatformat_big,
-
- /* Little endian byte order but big endian word order.
- EX: 1.2345678e10 => e0 fe 06 42 00 00 80 c5 */
-
- floatformat_littlebyte_bigword
-
-};
-
-enum floatformat_intbit { floatformat_intbit_yes, floatformat_intbit_no };
-
-struct floatformat
-{
- enum floatformat_byteorders byteorder;
- unsigned int totalsize; /* Total size of number in bits */
-
- /* Sign bit is always one bit long. 1 means negative, 0 means positive. */
- unsigned int sign_start;
-
- unsigned int exp_start;
- unsigned int exp_len;
- /* Amount added to "true" exponent. 0x3fff for many IEEE extendeds. */
- unsigned int exp_bias;
- /* Exponent value which indicates NaN. This is the actual value stored in
- the float, not adjusted by the exp_bias. This usually consists of all
- one bits. */
- unsigned int exp_nan;
-
- unsigned int man_start;
- unsigned int man_len;
-
- /* Is the integer bit explicit or implicit? */
- enum floatformat_intbit intbit;
-
- /* Internal name for debugging. */
- const char *name;
-};
-
-/* floatformats for IEEE single and double, big and little endian. */
-
-extern const struct floatformat floatformat_ieee_single_big;
-extern const struct floatformat floatformat_ieee_single_little;
-extern const struct floatformat floatformat_ieee_double_big;
-extern const struct floatformat floatformat_ieee_double_little;
-
-/* floatformat for ARM IEEE double, little endian bytes and big endian words */
-
-extern const struct floatformat floatformat_ieee_double_littlebyte_bigword;
-
-/* floatformats for various extendeds. */
-
-extern const struct floatformat floatformat_i387_ext;
-extern const struct floatformat floatformat_m68881_ext;
-extern const struct floatformat floatformat_i960_ext;
-extern const struct floatformat floatformat_m88110_ext;
-extern const struct floatformat floatformat_m88110_harris_ext;
-extern const struct floatformat floatformat_arm_ext; /* deprecated. */
-extern const struct floatformat floatformat_arm_ext_big;
-extern const struct floatformat floatformat_arm_ext_littlebyte_bigword;
-/* IA-64 Floating Point register spilt into memory. */
-extern const struct floatformat floatformat_ia64_spill_big;
-extern const struct floatformat floatformat_ia64_spill_little;
-extern const struct floatformat floatformat_ia64_quad_big;
-extern const struct floatformat floatformat_ia64_quad_little;
-
-/* Convert from FMT to a double.
- FROM is the address of the extended float.
- Store the double in *TO. */
-
-extern void
-floatformat_to_double PARAMS ((const struct floatformat *, char *, double *));
-
-/* The converse: convert the double *FROM to FMT
- and store where TO points. */
-
-extern void
-floatformat_from_double PARAMS ((const struct floatformat *,
- double *, char *));
-
-#endif /* defined (FLOATFORMAT_H) */
diff --git a/contrib/gcc/include/fnmatch.h b/contrib/gcc/include/fnmatch.h
deleted file mode 100644
index 37d23ee1b35d..000000000000
--- a/contrib/gcc/include/fnmatch.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/* Copyright 1991, 1992, 1993, 1996 Free Software Foundation, Inc.
-
-NOTE: The canonical source of this file is maintained with the GNU C Library.
-Bugs can be reported to bug-glibc@prep.ai.mit.edu.
-
-This program 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.
-
-This program 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 this program; if not, write to the Free Software
-Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
-
-#ifndef _FNMATCH_H
-
-#define _FNMATCH_H 1
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
-#undef __P
-#define __P(args) args
-#else /* Not C++ or ANSI C. */
-#undef __P
-#define __P(args) ()
-/* We can get away without defining `const' here only because in this file
- it is used only inside the prototype for `fnmatch', which is elided in
- non-ANSI C where `const' is problematical. */
-#endif /* C++ or ANSI C. */
-
-
-/* We #undef these before defining them because some losing systems
- (HP-UX A.08.07 for example) define these in <unistd.h>. */
-#undef FNM_PATHNAME
-#undef FNM_NOESCAPE
-#undef FNM_PERIOD
-
-/* Bits set in the FLAGS argument to `fnmatch'. */
-#define FNM_PATHNAME (1 << 0) /* No wildcard can ever match `/'. */
-#define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */
-#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */
-
-#if !defined (_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 2 || defined (_GNU_SOURCE)
-#define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */
-#define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */
-#define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */
-#endif
-
-/* Value returned by `fnmatch' if STRING does not match PATTERN. */
-#define FNM_NOMATCH 1
-
-/* Match STRING against the filename pattern PATTERN,
- returning zero if it matches, FNM_NOMATCH if not. */
-extern int fnmatch __P ((const char *__pattern, const char *__string,
- int __flags));
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* fnmatch.h */
diff --git a/contrib/gcc/include/getopt.h b/contrib/gcc/include/getopt.h
deleted file mode 100644
index 04346dd54f51..000000000000
--- a/contrib/gcc/include/getopt.h
+++ /dev/null
@@ -1,141 +0,0 @@
-/* Declarations for getopt.
- Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, 2000
- Free Software Foundation, Inc.
-
- NOTE: The canonical source of this file is maintained with the GNU C Library.
- Bugs can be reported to bug-glibc@gnu.org.
-
- This program 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.
-
- This program 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 this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- USA. */
-
-#ifndef _GETOPT_H
-#define _GETOPT_H 1
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* For communication from `getopt' to the caller.
- When `getopt' finds an option that takes an argument,
- the argument value is returned here.
- Also, when `ordering' is RETURN_IN_ORDER,
- each non-option ARGV-element is returned here. */
-
-extern char *optarg;
-
-/* Index in ARGV of the next element to be scanned.
- This is used for communication to and from the caller
- and for communication between successive calls to `getopt'.
-
- On entry to `getopt', zero means this is the first call; initialize.
-
- When `getopt' returns -1, this is the index of the first of the
- non-option elements that the caller should itself scan.
-
- Otherwise, `optind' communicates from one call to the next
- how much of ARGV has been scanned so far. */
-
-extern int optind;
-
-/* Callers store zero here to inhibit the error message `getopt' prints
- for unrecognized options. */
-
-extern int opterr;
-
-/* Set to an option character which was unrecognized. */
-
-extern int optopt;
-
-/* Describe the long-named options requested by the application.
- The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector
- of `struct option' terminated by an element containing a name which is
- zero.
-
- The field `has_arg' is:
- no_argument (or 0) if the option does not take an argument,
- required_argument (or 1) if the option requires an argument,
- optional_argument (or 2) if the option takes an optional argument.
-
- If the field `flag' is not NULL, it points to a variable that is set
- to the value given in the field `val' when the option is found, but
- left unchanged if the option is not found.
-
- To have a long-named option do something other than set an `int' to
- a compiled-in constant, such as set a value from `optarg', set the
- option's `flag' field to zero and its `val' field to a nonzero
- value (the equivalent single-letter option character, if there is
- one). For long options that have a zero `flag' field, `getopt'
- returns the contents of the `val' field. */
-
-struct option
-{
-#if defined (__STDC__) && __STDC__
- const char *name;
-#else
- char *name;
-#endif
- /* has_arg can't be an enum because some compilers complain about
- type mismatches in all the code that assumes it is an int. */
- int has_arg;
- int *flag;
- int val;
-};
-
-/* Names for the values of the `has_arg' field of `struct option'. */
-
-#define no_argument 0
-#define required_argument 1
-#define optional_argument 2
-
-#if defined (__STDC__) && __STDC__
-/* HAVE_DECL_* is a three-state macro: undefined, 0 or 1. If it is
- undefined, we haven't run the autoconf check so provide the
- declaration without arguments. If it is 0, we checked and failed
- to find the declaration so provide a fully prototyped one. If it
- is 1, we found it so don't provide any declaration at all. */
-#if defined (__GNU_LIBRARY__) || (defined (HAVE_DECL_GETOPT) && !HAVE_DECL_GETOPT)
-/* Many other libraries have conflicting prototypes for getopt, with
- differences in the consts, in stdlib.h. To avoid compilation
- errors, only prototype getopt for the GNU C library. */
-extern int getopt (int argc, char *const *argv, const char *shortopts);
-#else /* not __GNU_LIBRARY__ */
-# if !defined (HAVE_DECL_GETOPT) && !defined (__cplusplus)
-extern int getopt ();
-# endif
-#endif /* __GNU_LIBRARY__ */
-extern int getopt_long (int argc, char *const *argv, const char *shortopts,
- const struct option *longopts, int *longind);
-extern int getopt_long_only (int argc, char *const *argv,
- const char *shortopts,
- const struct option *longopts, int *longind);
-
-/* Internal only. Users should not call this directly. */
-extern int _getopt_internal (int argc, char *const *argv,
- const char *shortopts,
- const struct option *longopts, int *longind,
- int long_only);
-#else /* not __STDC__ */
-extern int getopt ();
-extern int getopt_long ();
-extern int getopt_long_only ();
-
-extern int _getopt_internal ();
-#endif /* __STDC__ */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* getopt.h */
diff --git a/contrib/gcc/include/hashtab.h b/contrib/gcc/include/hashtab.h
deleted file mode 100644
index 8871710e5d8b..000000000000
--- a/contrib/gcc/include/hashtab.h
+++ /dev/null
@@ -1,155 +0,0 @@
-/* An expandable hash tables datatype.
- Copyright (C) 1999, 2000 Free Software Foundation, Inc.
- Contributed by Vladimir Makarov (vmakarov@cygnus.com).
-
-This program 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 of the License, or
-(at your option) any later version.
-
-This program 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 this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-/* This package implements basic hash table functionality. It is possible
- to search for an entry, create an entry and destroy an entry.
-
- Elements in the table are generic pointers.
-
- The size of the table is not fixed; if the occupancy of the table
- grows too high the hash table will be expanded.
-
- The abstract data implementation is based on generalized Algorithm D
- from Knuth's book "The art of computer programming". Hash table is
- expanded by creation of new hash table and transferring elements from
- the old table to the new table. */
-
-#ifndef __HASHTAB_H__
-#define __HASHTAB_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-#include <ansidecl.h>
-
-/* The type for a hash code. */
-typedef unsigned int hashval_t;
-
-/* Callback function pointer types. */
-
-/* Calculate hash of a table entry. */
-typedef hashval_t (*htab_hash) PARAMS ((const void *));
-
-/* Compare a table entry with a possible entry. The entry already in
- the table always comes first, so the second element can be of a
- different type (but in this case htab_find and htab_find_slot
- cannot be used; instead the variants that accept a hash value
- must be used). */
-typedef int (*htab_eq) PARAMS ((const void *, const void *));
-
-/* Cleanup function called whenever a live element is removed from
- the hash table. */
-typedef void (*htab_del) PARAMS ((void *));
-
-/* Function called by htab_traverse for each live element. The first
- arg is the slot of the element (which can be passed to htab_clear_slot
- if desired), the second arg is the auxiliary pointer handed to
- htab_traverse. Return 1 to continue scan, 0 to stop. */
-typedef int (*htab_trav) PARAMS ((void **, void *));
-
-/* Hash tables are of the following type. The structure
- (implementation) of this type is not needed for using the hash
- tables. All work with hash table should be executed only through
- functions mentioned below. */
-
-struct htab
-{
- /* Pointer to hash function. */
- htab_hash hash_f;
-
- /* Pointer to comparison function. */
- htab_eq eq_f;
-
- /* Pointer to cleanup function. */
- htab_del del_f;
-
- /* Table itself. */
- PTR *entries;
-
- /* Current size (in entries) of the hash table */
- size_t size;
-
- /* Current number of elements including also deleted elements */
- size_t n_elements;
-
- /* Current number of deleted elements in the table */
- size_t n_deleted;
-
- /* The following member is used for debugging. Its value is number
- of all calls of `htab_find_slot' for the hash table. */
- unsigned int searches;
-
- /* The following member is used for debugging. Its value is number
- of collisions fixed for time of work with the hash table. */
- unsigned int collisions;
-
- /* This is non-zero if we are allowed to return NULL for function calls
- that allocate memory. */
- int return_allocation_failure;
-};
-
-typedef struct htab *htab_t;
-
-/* An enum saying whether we insert into the hash table or not. */
-enum insert_option {NO_INSERT, INSERT};
-
-/* The prototypes of the package functions. */
-
-extern htab_t htab_create PARAMS ((size_t, htab_hash,
- htab_eq, htab_del));
-
-/* This function is like htab_create, but may return NULL if memory
- allocation fails, and also signals that htab_find_slot_with_hash and
- htab_find_slot are allowed to return NULL when inserting. */
-extern htab_t htab_try_create PARAMS ((size_t, htab_hash,
- htab_eq, htab_del));
-extern void htab_delete PARAMS ((htab_t));
-extern void htab_empty PARAMS ((htab_t));
-
-extern PTR htab_find PARAMS ((htab_t, const void *));
-extern PTR *htab_find_slot PARAMS ((htab_t, const void *,
- enum insert_option));
-extern PTR htab_find_with_hash PARAMS ((htab_t, const void *,
- hashval_t));
-extern PTR *htab_find_slot_with_hash PARAMS ((htab_t, const void *,
- hashval_t,
- enum insert_option));
-extern void htab_clear_slot PARAMS ((htab_t, void **));
-extern void htab_remove_elt PARAMS ((htab_t, void *));
-
-extern void htab_traverse PARAMS ((htab_t, htab_trav, void *));
-
-extern size_t htab_size PARAMS ((htab_t));
-extern size_t htab_elements PARAMS ((htab_t));
-extern double htab_collisions PARAMS ((htab_t));
-
-/* A hash function for pointers. */
-extern htab_hash htab_hash_pointer;
-
-/* An equality function for pointers. */
-extern htab_eq htab_eq_pointer;
-
-/* A hash function for null-terminated strings. */
-extern hashval_t htab_hash_string PARAMS ((const PTR));
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-#endif /* __HASHTAB_H */
diff --git a/contrib/gcc/include/libiberty.h b/contrib/gcc/include/libiberty.h
deleted file mode 100644
index 3e0ca096c028..000000000000
--- a/contrib/gcc/include/libiberty.h
+++ /dev/null
@@ -1,317 +0,0 @@
-/* Function declarations for libiberty.
-
- Copyright 2001, 2002 Free Software Foundation, Inc.
-
- Note - certain prototypes declared in this header file are for
- functions whoes implementation copyright does not belong to the
- FSF. Those prototypes are present in this file for reference
- purposes only and their presence in this file should not construed
- as an indication of ownership by the FSF of the implementation of
- those functions in any way or form whatsoever.
-
- This program 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.
-
- This program 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 this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
-
- Written by Cygnus Support, 1994.
-
- The libiberty library provides a number of functions which are
- missing on some operating systems. We do not declare those here,
- to avoid conflicts with the system header files on operating
- systems that do support those functions. In this file we only
- declare those functions which are specific to libiberty. */
-
-#ifndef LIBIBERTY_H
-#define LIBIBERTY_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "ansidecl.h"
-
-#ifdef ANSI_PROTOTYPES
-/* Get a definition for size_t. */
-#include <stddef.h>
-/* Get a definition for va_list. */
-#include <stdarg.h>
-#endif
-
-/* Build an argument vector from a string. Allocates memory using
- malloc. Use freeargv to free the vector. */
-
-extern char **buildargv PARAMS ((const char *)) ATTRIBUTE_MALLOC;
-
-/* Free a vector returned by buildargv. */
-
-extern void freeargv PARAMS ((char **));
-
-/* Duplicate an argument vector. Allocates memory using malloc. Use
- freeargv to free the vector. */
-
-extern char **dupargv PARAMS ((char **)) ATTRIBUTE_MALLOC;
-
-
-/* Return the last component of a path name. Note that we can't use a
- prototype here because the parameter is declared inconsistently
- across different systems, sometimes as "char *" and sometimes as
- "const char *" */
-
-/* HAVE_DECL_* is a three-state macro: undefined, 0 or 1. If it is
- undefined, we haven't run the autoconf check so provide the
- declaration without arguments. If it is 0, we checked and failed
- to find the declaration so provide a fully prototyped one. If it
- is 1, we found it so don't provide any declaration at all. */
-#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || (defined (HAVE_DECL_BASENAME) && !HAVE_DECL_BASENAME)
-extern char *basename PARAMS ((const char *));
-#else
-# if !defined (HAVE_DECL_BASENAME)
-extern char *basename ();
-# endif
-#endif
-
-/* A well-defined basename () that is always compiled in. */
-
-extern const char *lbasename PARAMS ((const char *));
-
-/* Concatenate an arbitrary number of strings. You must pass NULL as
- the last argument of this function, to terminate the list of
- strings. Allocates memory using xmalloc. */
-
-extern char *concat PARAMS ((const char *, ...)) ATTRIBUTE_MALLOC;
-
-/* Concatenate an arbitrary number of strings. You must pass NULL as
- the last argument of this function, to terminate the list of
- strings. Allocates memory using xmalloc. The first argument is
- not one of the strings to be concatenated, but if not NULL is a
- pointer to be freed after the new string is created, similar to the
- way xrealloc works. */
-
-extern char *reconcat PARAMS ((char *, const char *, ...)) ATTRIBUTE_MALLOC;
-
-/* Determine the length of concatenating an arbitrary number of
- strings. You must pass NULL as the last argument of this function,
- to terminate the list of strings. */
-
-extern unsigned long concat_length PARAMS ((const char *, ...));
-
-/* Concatenate an arbitrary number of strings into a SUPPLIED area of
- memory. You must pass NULL as the last argument of this function,
- to terminate the list of strings. The supplied memory is assumed
- to be large enough. */
-
-extern char *concat_copy PARAMS ((char *, const char *, ...));
-
-/* Concatenate an arbitrary number of strings into a GLOBAL area of
- memory. You must pass NULL as the last argument of this function,
- to terminate the list of strings. The supplied memory is assumed
- to be large enough. */
-
-extern char *concat_copy2 PARAMS ((const char *, ...));
-
-/* This is the global area used by concat_copy2. */
-
-extern char *libiberty_concat_ptr;
-
-/* Concatenate an arbitrary number of strings. You must pass NULL as
- the last argument of this function, to terminate the list of
- strings. Allocates memory using alloca. The arguments are
- evaluated twice! */
-#define ACONCAT(ACONCAT_PARAMS) \
- (libiberty_concat_ptr = alloca (concat_length ACONCAT_PARAMS + 1), \
- concat_copy2 ACONCAT_PARAMS)
-
-/* Check whether two file descriptors refer to the same file. */
-
-extern int fdmatch PARAMS ((int fd1, int fd2));
-
-/* Get the working directory. The result is cached, so don't call
- chdir() between calls to getpwd(). */
-
-extern char * getpwd PARAMS ((void));
-
-/* Get the amount of time the process has run, in microseconds. */
-
-extern long get_run_time PARAMS ((void));
-
-/* Choose a temporary directory to use for scratch files. */
-
-extern char *choose_temp_base PARAMS ((void)) ATTRIBUTE_MALLOC;
-
-/* Return a temporary file name or NULL if unable to create one. */
-
-extern char *make_temp_file PARAMS ((const char *)) ATTRIBUTE_MALLOC;
-
-/* Allocate memory filled with spaces. Allocates using malloc. */
-
-extern const char *spaces PARAMS ((int count));
-
-/* Return the maximum error number for which strerror will return a
- string. */
-
-extern int errno_max PARAMS ((void));
-
-/* Return the name of an errno value (e.g., strerrno (EINVAL) returns
- "EINVAL"). */
-
-extern const char *strerrno PARAMS ((int));
-
-/* Given the name of an errno value, return the value. */
-
-extern int strtoerrno PARAMS ((const char *));
-
-/* ANSI's strerror(), but more robust. */
-
-extern char *xstrerror PARAMS ((int));
-
-/* Return the maximum signal number for which strsignal will return a
- string. */
-
-extern int signo_max PARAMS ((void));
-
-/* Return a signal message string for a signal number
- (e.g., strsignal (SIGHUP) returns something like "Hangup"). */
-/* This is commented out as it can conflict with one in system headers.
- We still document its existence though. */
-
-/*extern const char *strsignal PARAMS ((int));*/
-
-/* Return the name of a signal number (e.g., strsigno (SIGHUP) returns
- "SIGHUP"). */
-
-extern const char *strsigno PARAMS ((int));
-
-/* Given the name of a signal, return its number. */
-
-extern int strtosigno PARAMS ((const char *));
-
-/* Register a function to be run by xexit. Returns 0 on success. */
-
-extern int xatexit PARAMS ((void (*fn) (void)));
-
-/* Exit, calling all the functions registered with xatexit. */
-
-extern void xexit PARAMS ((int status)) ATTRIBUTE_NORETURN;
-
-/* Set the program name used by xmalloc. */
-
-extern void xmalloc_set_program_name PARAMS ((const char *));
-
-/* Report an allocation failure. */
-extern void xmalloc_failed PARAMS ((size_t)) ATTRIBUTE_NORETURN;
-
-/* Allocate memory without fail. If malloc fails, this will print a
- message to stderr (using the name set by xmalloc_set_program_name,
- if any) and then call xexit. */
-
-extern PTR xmalloc PARAMS ((size_t)) ATTRIBUTE_MALLOC;
-
-/* Reallocate memory without fail. This works like xmalloc. Note,
- realloc type functions are not suitable for attribute malloc since
- they may return the same address across multiple calls. */
-
-extern PTR xrealloc PARAMS ((PTR, size_t));
-
-/* Allocate memory without fail and set it to zero. This works like
- xmalloc. */
-
-extern PTR xcalloc PARAMS ((size_t, size_t)) ATTRIBUTE_MALLOC;
-
-/* Copy a string into a memory buffer without fail. */
-
-extern char *xstrdup PARAMS ((const char *)) ATTRIBUTE_MALLOC;
-
-/* Copy an existing memory buffer to a new memory buffer without fail. */
-
-extern PTR xmemdup PARAMS ((const PTR, size_t, size_t)) ATTRIBUTE_MALLOC;
-
-/* hex character manipulation routines */
-
-#define _hex_array_size 256
-#define _hex_bad 99
-extern const char _hex_value[_hex_array_size];
-extern void hex_init PARAMS ((void));
-#define hex_p(c) (hex_value (c) != _hex_bad)
-/* If you change this, note well: Some code relies on side effects in
- the argument being performed exactly once. */
-#define hex_value(c) (_hex_value[(unsigned char) (c)])
-
-/* Definitions used by the pexecute routine. */
-
-#define PEXECUTE_FIRST 1
-#define PEXECUTE_LAST 2
-#define PEXECUTE_ONE (PEXECUTE_FIRST + PEXECUTE_LAST)
-#define PEXECUTE_SEARCH 4
-#define PEXECUTE_VERBOSE 8
-
-/* Execute a program. */
-
-extern int pexecute PARAMS ((const char *, char * const *, const char *,
- const char *, char **, char **, int));
-
-/* Wait for pexecute to finish. */
-
-extern int pwait PARAMS ((int, int *, int));
-
-/* Like sprintf but provides a pointer to malloc'd storage, which must
- be freed by the caller. */
-
-extern int asprintf PARAMS ((char **, const char *, ...)) ATTRIBUTE_PRINTF_2;
-
-/* Like vsprintf but provides a pointer to malloc'd storage, which
- must be freed by the caller. */
-
-extern int vasprintf PARAMS ((char **, const char *, va_list))
- ATTRIBUTE_PRINTF(2,0);
-
-#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
-
-/* Drastically simplified alloca configurator. If we're using GCC,
- we use __builtin_alloca; otherwise we use the C alloca. The C
- alloca is always available. You can override GCC by defining
- USE_C_ALLOCA yourself. The canonical autoconf macro C_ALLOCA is
- also set/unset as it is often used to indicate whether code needs
- to call alloca(0). */
-extern PTR C_alloca PARAMS ((size_t)) ATTRIBUTE_MALLOC;
-#undef alloca
-#if GCC_VERSION >= 2000 && !defined USE_C_ALLOCA
-# define alloca(x) __builtin_alloca(x)
-# undef C_ALLOCA
-# define ASTRDUP(X) \
- (__extension__ ({ const char *const libiberty_optr = (X); \
- const unsigned long libiberty_len = strlen (libiberty_optr) + 1; \
- char *const libiberty_nptr = alloca (libiberty_len); \
- (char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len); }))
-#else
-# define alloca(x) C_alloca(x)
-# undef USE_C_ALLOCA
-# define USE_C_ALLOCA 1
-# undef C_ALLOCA
-# define C_ALLOCA 1
-extern const char *libiberty_optr;
-extern char *libiberty_nptr;
-extern unsigned long libiberty_len;
-# define ASTRDUP(X) \
- (libiberty_optr = (X), \
- libiberty_len = strlen (libiberty_optr) + 1, \
- libiberty_nptr = alloca (libiberty_len), \
- (char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len))
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif /* ! defined (LIBIBERTY_H) */
diff --git a/contrib/gcc/include/md5.h b/contrib/gcc/include/md5.h
deleted file mode 100644
index ad51f19877a2..000000000000
--- a/contrib/gcc/include/md5.h
+++ /dev/null
@@ -1,142 +0,0 @@
-/* md5.h - Declaration of functions and data types used for MD5 sum
- computing library functions.
- Copyright 1995, 1996, 2000 Free Software Foundation, Inc.
- NOTE: The canonical source of this file is maintained with the GNU C
- Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu.
-
- This program 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.
-
- This program 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 this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-#ifndef _MD5_H
-#define _MD5_H 1
-
-#include <stdio.h>
-
-#if defined HAVE_LIMITS_H || _LIBC
-# include <limits.h>
-#endif
-
-/* The following contortions are an attempt to use the C preprocessor
- to determine an unsigned integral type that is 32 bits wide. An
- alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but
- doing that would require that the configure script compile and *run*
- the resulting executable. Locally running cross-compiled executables
- is usually not possible. */
-
-#ifdef _LIBC
-# include <sys/types.h>
-typedef u_int32_t md5_uint32;
-#else
-# define INT_MAX_32_BITS 2147483647
-
-/* If UINT_MAX isn't defined, assume it's a 32-bit type.
- This should be valid for all systems GNU cares about because
- that doesn't include 16-bit systems, and only modern systems
- (that certainly have <limits.h>) have 64+-bit integral types. */
-
-# ifndef INT_MAX
-# define INT_MAX INT_MAX_32_BITS
-# endif
-
-# if INT_MAX == INT_MAX_32_BITS
- typedef unsigned int md5_uint32;
-# else
-# if SHRT_MAX == INT_MAX_32_BITS
- typedef unsigned short md5_uint32;
-# else
-# if LONG_MAX == INT_MAX_32_BITS
- typedef unsigned long md5_uint32;
-# else
- /* The following line is intended to evoke an error.
- Using #error is not portable enough. */
- "Cannot determine unsigned 32-bit data type."
-# endif
-# endif
-# endif
-#endif
-
-#undef __P
-#if defined (__STDC__) && __STDC__
-#define __P(x) x
-#else
-#define __P(x) ()
-#endif
-
-/* Structure to save state of computation between the single steps. */
-struct md5_ctx
-{
- md5_uint32 A;
- md5_uint32 B;
- md5_uint32 C;
- md5_uint32 D;
-
- md5_uint32 total[2];
- md5_uint32 buflen;
- char buffer[128];
-};
-
-/*
- * The following three functions are build up the low level used in
- * the functions `md5_stream' and `md5_buffer'.
- */
-
-/* Initialize structure containing state of computation.
- (RFC 1321, 3.3: Step 3) */
-extern void md5_init_ctx __P ((struct md5_ctx *ctx));
-
-/* Starting with the result of former calls of this function (or the
- initialization function update the context for the next LEN bytes
- starting at BUFFER.
- It is necessary that LEN is a multiple of 64!!! */
-extern void md5_process_block __P ((const void *buffer, size_t len,
- struct md5_ctx *ctx));
-
-/* Starting with the result of former calls of this function (or the
- initialization function update the context for the next LEN bytes
- starting at BUFFER.
- It is NOT required that LEN is a multiple of 64. */
-extern void md5_process_bytes __P ((const void *buffer, size_t len,
- struct md5_ctx *ctx));
-
-/* Process the remaining bytes in the buffer and put result from CTX
- in first 16 bytes following RESBUF. The result is always in little
- endian byte order, so that a byte-wise output yields to the wanted
- ASCII representation of the message digest.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-extern void *md5_finish_ctx __P ((struct md5_ctx *ctx, void *resbuf));
-
-
-/* Put result from CTX in first 16 bytes following RESBUF. The result is
- always in little endian byte order, so that a byte-wise output yields
- to the wanted ASCII representation of the message digest.
-
- IMPORTANT: On some systems it is required that RESBUF is correctly
- aligned for a 32 bits value. */
-extern void *md5_read_ctx __P ((const struct md5_ctx *ctx, void *resbuf));
-
-
-/* Compute MD5 message digest for bytes read from STREAM. The
- resulting message digest number will be written into the 16 bytes
- beginning at RESBLOCK. */
-extern int md5_stream __P ((FILE *stream, void *resblock));
-
-/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
- result is always in little endian byte order, so that a byte-wise
- output yields to the wanted ASCII representation of the message
- digest. */
-extern void *md5_buffer __P ((const char *buffer, size_t len, void *resblock));
-
-#endif
diff --git a/contrib/gcc/include/objalloc.h b/contrib/gcc/include/objalloc.h
deleted file mode 100644
index c7106478dca4..000000000000
--- a/contrib/gcc/include/objalloc.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/* objalloc.h -- routines to allocate memory for objects
- Copyright 1997, 2001 Free Software Foundation, Inc.
- Written by Ian Lance Taylor, Cygnus Solutions.
-
-This program 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.
-
-This program 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 this program; if not, write to the Free Software
-Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
-
-#ifndef OBJALLOC_H
-#define OBJALLOC_H
-
-#include "ansidecl.h"
-
-/* These routines allocate space for an object. The assumption is
- that the object will want to allocate space as it goes along, but
- will never want to free any particular block. There is a function
- to free a block, which also frees all more recently allocated
- blocks. There is also a function to free all the allocated space.
-
- This is essentially a specialization of obstacks. The main
- difference is that a block may not be allocated a bit at a time.
- Another difference is that these routines are always built on top
- of malloc, and always pass an malloc failure back to the caller,
- unlike more recent versions of obstacks. */
-
-/* This is what an objalloc structure looks like. Callers should not
- refer to these fields, nor should they allocate these structure
- themselves. Instead, they should only create them via
- objalloc_init, and only access them via the functions and macros
- listed below. The structure is only defined here so that we can
- access it via macros. */
-
-struct objalloc
-{
- char *current_ptr;
- unsigned int current_space;
- PTR chunks;
-};
-
-/* Work out the required alignment. */
-
-struct objalloc_align { char x; double d; };
-
-#if defined (__STDC__) && __STDC__
-#ifndef offsetof
-#include <stddef.h>
-#endif
-#endif
-#ifndef offsetof
-#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
-#endif
-#define OBJALLOC_ALIGN offsetof (struct objalloc_align, d)
-
-/* Create an objalloc structure. Returns NULL if malloc fails. */
-
-extern struct objalloc *objalloc_create PARAMS ((void));
-
-/* Allocate space from an objalloc structure. Returns NULL if malloc
- fails. */
-
-extern PTR _objalloc_alloc PARAMS ((struct objalloc *, unsigned long));
-
-/* The macro version of objalloc_alloc. We only define this if using
- gcc, because otherwise we would have to evaluate the arguments
- multiple times, or use a temporary field as obstack.h does. */
-
-#if defined (__GNUC__) && defined (__STDC__) && __STDC__
-
-/* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
- does not implement __extension__. But that compiler doesn't define
- __GNUC_MINOR__. */
-#if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
-#define __extension__
-#endif
-
-#define objalloc_alloc(o, l) \
- __extension__ \
- ({ struct objalloc *__o = (o); \
- unsigned long __len = (l); \
- if (__len == 0) \
- __len = 1; \
- __len = (__len + OBJALLOC_ALIGN - 1) &~ (OBJALLOC_ALIGN - 1); \
- (__len <= __o->current_space \
- ? (__o->current_ptr += __len, \
- __o->current_space -= __len, \
- (PTR) (__o->current_ptr - __len)) \
- : _objalloc_alloc (__o, __len)); })
-
-#else /* ! __GNUC__ */
-
-#define objalloc_alloc(o, l) _objalloc_alloc ((o), (l))
-
-#endif /* ! __GNUC__ */
-
-/* Free an entire objalloc structure. */
-
-extern void objalloc_free PARAMS ((struct objalloc *));
-
-/* Free a block allocated by objalloc_alloc. This also frees all more
- recently allocated blocks. */
-
-extern void objalloc_free_block PARAMS ((struct objalloc *, PTR));
-
-#endif /* OBJALLOC_H */
diff --git a/contrib/gcc/include/obstack.h b/contrib/gcc/include/obstack.h
deleted file mode 100644
index d86d9f2c4263..000000000000
--- a/contrib/gcc/include/obstack.h
+++ /dev/null
@@ -1,599 +0,0 @@
-/* obstack.h - object stack macros
- Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998,
- 1999, 2000
- Free Software Foundation, Inc.
-
-
- NOTE: The canonical source of this file is maintained with the GNU C Library.
- Bugs can be reported to bug-glibc@gnu.org.
-
- This program 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.
-
- This program 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 this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- USA. */
-
-/* Summary:
-
-All the apparent functions defined here are macros. The idea
-is that you would use these pre-tested macros to solve a
-very specific set of problems, and they would run fast.
-Caution: no side-effects in arguments please!! They may be
-evaluated MANY times!!
-
-These macros operate a stack of objects. Each object starts life
-small, and may grow to maturity. (Consider building a word syllable
-by syllable.) An object can move while it is growing. Once it has
-been "finished" it never changes address again. So the "top of the
-stack" is typically an immature growing object, while the rest of the
-stack is of mature, fixed size and fixed address objects.
-
-These routines grab large chunks of memory, using a function you
-supply, called `obstack_chunk_alloc'. On occasion, they free chunks,
-by calling `obstack_chunk_free'. You must define them and declare
-them before using any obstack macros.
-
-Each independent stack is represented by a `struct obstack'.
-Each of the obstack macros expects a pointer to such a structure
-as the first argument.
-
-One motivation for this package is the problem of growing char strings
-in symbol tables. Unless you are "fascist pig with a read-only mind"
---Gosper's immortal quote from HAKMEM item 154, out of context--you
-would not like to put any arbitrary upper limit on the length of your
-symbols.
-
-In practice this often means you will build many short symbols and a
-few long symbols. At the time you are reading a symbol you don't know
-how long it is. One traditional method is to read a symbol into a
-buffer, realloc()ating the buffer every time you try to read a symbol
-that is longer than the buffer. This is beaut, but you still will
-want to copy the symbol from the buffer to a more permanent
-symbol-table entry say about half the time.
-
-With obstacks, you can work differently. Use one obstack for all symbol
-names. As you read a symbol, grow the name in the obstack gradually.
-When the name is complete, finalize it. Then, if the symbol exists already,
-free the newly read name.
-
-The way we do this is to take a large chunk, allocating memory from
-low addresses. When you want to build a symbol in the chunk you just
-add chars above the current "high water mark" in the chunk. When you
-have finished adding chars, because you got to the end of the symbol,
-you know how long the chars are, and you can create a new object.
-Mostly the chars will not burst over the highest address of the chunk,
-because you would typically expect a chunk to be (say) 100 times as
-long as an average object.
-
-In case that isn't clear, when we have enough chars to make up
-the object, THEY ARE ALREADY CONTIGUOUS IN THE CHUNK (guaranteed)
-so we just point to it where it lies. No moving of chars is
-needed and this is the second win: potentially long strings need
-never be explicitly shuffled. Once an object is formed, it does not
-change its address during its lifetime.
-
-When the chars burst over a chunk boundary, we allocate a larger
-chunk, and then copy the partly formed object from the end of the old
-chunk to the beginning of the new larger chunk. We then carry on
-accreting characters to the end of the object as we normally would.
-
-A special macro is provided to add a single char at a time to a
-growing object. This allows the use of register variables, which
-break the ordinary 'growth' macro.
-
-Summary:
- We allocate large chunks.
- We carve out one object at a time from the current chunk.
- Once carved, an object never moves.
- We are free to append data of any size to the currently
- growing object.
- Exactly one object is growing in an obstack at any one time.
- You can run one obstack per control block.
- You may have as many control blocks as you dare.
- Because of the way we do it, you can `unwind' an obstack
- back to a previous state. (You may remove objects much
- as you would with a stack.)
-*/
-
-
-/* Don't do the contents of this file more than once. */
-
-#ifndef _OBSTACK_H
-#define _OBSTACK_H 1
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* We use subtraction of (char *) 0 instead of casting to int
- because on word-addressable machines a simple cast to int
- may ignore the byte-within-word field of the pointer. */
-
-#ifndef __PTR_TO_INT
-# define __PTR_TO_INT(P) ((P) - (char *) 0)
-#endif
-
-#ifndef __INT_TO_PTR
-# define __INT_TO_PTR(P) ((P) + (char *) 0)
-#endif
-
-/* We need the type of the resulting object. If __PTRDIFF_TYPE__ is
- defined, as with GNU C, use that; that way we don't pollute the
- namespace with <stddef.h>'s symbols. Otherwise, if <stddef.h> is
- available, include it and use ptrdiff_t. In traditional C, long is
- the best that we can do. */
-
-#ifdef __PTRDIFF_TYPE__
-# define PTR_INT_TYPE __PTRDIFF_TYPE__
-#else
-# ifdef HAVE_STDDEF_H
-# include <stddef.h>
-# define PTR_INT_TYPE ptrdiff_t
-# else
-# define PTR_INT_TYPE long
-# endif
-#endif
-
-#if defined _LIBC || defined HAVE_STRING_H
-# include <string.h>
-# if defined __STDC__ && __STDC__
-# define _obstack_memcpy(To, From, N) memcpy ((To), (From), (N))
-# else
-# define _obstack_memcpy(To, From, N) memcpy ((To), (char *)(From), (N))
-# endif
-#else
-# ifdef memcpy
-# define _obstack_memcpy(To, From, N) memcpy ((To), (char *)(From), (N))
-# else
-# define _obstack_memcpy(To, From, N) bcopy ((char *)(From), (To), (N))
-# endif
-#endif
-
-struct _obstack_chunk /* Lives at front of each chunk. */
-{
- char *limit; /* 1 past end of this chunk */
- struct _obstack_chunk *prev; /* address of prior chunk or NULL */
- char contents[4]; /* objects begin here */
-};
-
-struct obstack /* control current object in current chunk */
-{
- long chunk_size; /* preferred size to allocate chunks in */
- struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */
- char *object_base; /* address of object we are building */
- char *next_free; /* where to add next char to current object */
- char *chunk_limit; /* address of char after current chunk */
- PTR_INT_TYPE temp; /* Temporary for some macros. */
- int alignment_mask; /* Mask of alignment for each object. */
-#if defined __STDC__ && __STDC__
- /* These prototypes vary based on `use_extra_arg', and we use
- casts to the prototypeless function type in all assignments,
- but having prototypes here quiets -Wstrict-prototypes. */
- struct _obstack_chunk *(*chunkfun) (void *, long);
- void (*freefun) (void *, struct _obstack_chunk *);
- void *extra_arg; /* first arg for chunk alloc/dealloc funcs */
-#else
- struct _obstack_chunk *(*chunkfun) (); /* User's fcn to allocate a chunk. */
- void (*freefun) (); /* User's function to free a chunk. */
- char *extra_arg; /* first arg for chunk alloc/dealloc funcs */
-#endif
- unsigned use_extra_arg:1; /* chunk alloc/dealloc funcs take extra arg */
- unsigned maybe_empty_object:1;/* There is a possibility that the current
- chunk contains a zero-length object. This
- prevents freeing the chunk if we allocate
- a bigger chunk to replace it. */
- unsigned alloc_failed:1; /* No longer used, as we now call the failed
- handler on error, but retained for binary
- compatibility. */
-};
-
-/* Declare the external functions we use; they are in obstack.c. */
-
-#if defined __STDC__ && __STDC__
-extern void _obstack_newchunk (struct obstack *, int);
-extern void _obstack_free (struct obstack *, void *);
-extern int _obstack_begin (struct obstack *, int, int,
- void *(*) (long), void (*) (void *));
-extern int _obstack_begin_1 (struct obstack *, int, int,
- void *(*) (void *, long),
- void (*) (void *, void *), void *);
-extern int _obstack_memory_used (struct obstack *);
-#else
-extern void _obstack_newchunk ();
-extern void _obstack_free ();
-extern int _obstack_begin ();
-extern int _obstack_begin_1 ();
-extern int _obstack_memory_used ();
-#endif
-
-#if defined __STDC__ && __STDC__
-
-/* Do the function-declarations after the structs
- but before defining the macros. */
-
-void obstack_init (struct obstack *obstack);
-
-void * obstack_alloc (struct obstack *obstack, int size);
-
-void * obstack_copy (struct obstack *obstack, void *address, int size);
-void * obstack_copy0 (struct obstack *obstack, void *address, int size);
-
-void obstack_free (struct obstack *obstack, void *block);
-
-void obstack_blank (struct obstack *obstack, int size);
-
-void obstack_grow (struct obstack *obstack, void *data, int size);
-void obstack_grow0 (struct obstack *obstack, void *data, int size);
-
-void obstack_1grow (struct obstack *obstack, int data_char);
-void obstack_ptr_grow (struct obstack *obstack, void *data);
-void obstack_int_grow (struct obstack *obstack, int data);
-
-void * obstack_finish (struct obstack *obstack);
-
-int obstack_object_size (struct obstack *obstack);
-
-int obstack_room (struct obstack *obstack);
-void obstack_make_room (struct obstack *obstack, int size);
-void obstack_1grow_fast (struct obstack *obstack, int data_char);
-void obstack_ptr_grow_fast (struct obstack *obstack, void *data);
-void obstack_int_grow_fast (struct obstack *obstack, int data);
-void obstack_blank_fast (struct obstack *obstack, int size);
-
-void * obstack_base (struct obstack *obstack);
-void * obstack_next_free (struct obstack *obstack);
-int obstack_alignment_mask (struct obstack *obstack);
-int obstack_chunk_size (struct obstack *obstack);
-int obstack_memory_used (struct obstack *obstack);
-
-#endif /* __STDC__ */
-
-/* Non-ANSI C cannot really support alternative functions for these macros,
- so we do not declare them. */
-
-/* Error handler called when `obstack_chunk_alloc' failed to allocate
- more memory. This can be set to a user defined function. The
- default action is to print a message and abort. */
-#if defined __STDC__ && __STDC__
-extern void (*obstack_alloc_failed_handler) (void);
-#else
-extern void (*obstack_alloc_failed_handler) ();
-#endif
-
-/* Exit value used when `print_and_abort' is used. */
-extern int obstack_exit_failure;
-
-/* Pointer to beginning of object being allocated or to be allocated next.
- Note that this might not be the final address of the object
- because a new chunk might be needed to hold the final size. */
-
-#define obstack_base(h) ((h)->object_base)
-
-/* Size for allocating ordinary chunks. */
-
-#define obstack_chunk_size(h) ((h)->chunk_size)
-
-/* Pointer to next byte not yet allocated in current chunk. */
-
-#define obstack_next_free(h) ((h)->next_free)
-
-/* Mask specifying low bits that should be clear in address of an object. */
-
-#define obstack_alignment_mask(h) ((h)->alignment_mask)
-
-/* To prevent prototype warnings provide complete argument list in
- standard C version. */
-#if defined __STDC__ && __STDC__
-
-# define obstack_init(h) \
- _obstack_begin ((h), 0, 0, \
- (void *(*) (long)) obstack_chunk_alloc, (void (*) (void *)) obstack_chunk_free)
-
-# define obstack_begin(h, size) \
- _obstack_begin ((h), (size), 0, \
- (void *(*) (long)) obstack_chunk_alloc, (void (*) (void *)) obstack_chunk_free)
-
-# define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \
- _obstack_begin ((h), (size), (alignment), \
- (void *(*) (long)) (chunkfun), (void (*) (void *)) (freefun))
-
-# define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \
- _obstack_begin_1 ((h), (size), (alignment), \
- (void *(*) (void *, long)) (chunkfun), \
- (void (*) (void *, void *)) (freefun), (arg))
-
-# define obstack_chunkfun(h, newchunkfun) \
- ((h) -> chunkfun = (struct _obstack_chunk *(*)(void *, long)) (newchunkfun))
-
-# define obstack_freefun(h, newfreefun) \
- ((h) -> freefun = (void (*)(void *, struct _obstack_chunk *)) (newfreefun))
-
-#else
-
-# define obstack_init(h) \
- _obstack_begin ((h), 0, 0, \
- (void *(*) ()) obstack_chunk_alloc, (void (*) ()) obstack_chunk_free)
-
-# define obstack_begin(h, size) \
- _obstack_begin ((h), (size), 0, \
- (void *(*) ()) obstack_chunk_alloc, (void (*) ()) obstack_chunk_free)
-
-# define obstack_specify_allocation(h, size, alignment, chunkfun, freefun) \
- _obstack_begin ((h), (size), (alignment), \
- (void *(*) ()) (chunkfun), (void (*) ()) (freefun))
-
-# define obstack_specify_allocation_with_arg(h, size, alignment, chunkfun, freefun, arg) \
- _obstack_begin_1 ((h), (size), (alignment), \
- (void *(*) ()) (chunkfun), (void (*) ()) (freefun), (arg))
-
-# define obstack_chunkfun(h, newchunkfun) \
- ((h) -> chunkfun = (struct _obstack_chunk *(*)()) (newchunkfun))
-
-# define obstack_freefun(h, newfreefun) \
- ((h) -> freefun = (void (*)()) (newfreefun))
-
-#endif
-
-#define obstack_1grow_fast(h,achar) (*((h)->next_free)++ = achar)
-
-#define obstack_blank_fast(h,n) ((h)->next_free += (n))
-
-#define obstack_memory_used(h) _obstack_memory_used (h)
-
-#if defined __GNUC__ && defined __STDC__ && __STDC__
-/* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
- does not implement __extension__. But that compiler doesn't define
- __GNUC_MINOR__. */
-# if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
-# define __extension__
-# endif
-
-/* For GNU C, if not -traditional,
- we can define these macros to compute all args only once
- without using a global variable.
- Also, we can avoid using the `temp' slot, to make faster code. */
-
-# define obstack_object_size(OBSTACK) \
- __extension__ \
- ({ struct obstack *__o = (OBSTACK); \
- (unsigned) (__o->next_free - __o->object_base); })
-
-# define obstack_room(OBSTACK) \
- __extension__ \
- ({ struct obstack *__o = (OBSTACK); \
- (unsigned) (__o->chunk_limit - __o->next_free); })
-
-# define obstack_make_room(OBSTACK,length) \
-__extension__ \
-({ struct obstack *__o = (OBSTACK); \
- int __len = (length); \
- if (__o->chunk_limit - __o->next_free < __len) \
- _obstack_newchunk (__o, __len); \
- (void) 0; })
-
-# define obstack_empty_p(OBSTACK) \
- __extension__ \
- ({ struct obstack *__o = (OBSTACK); \
- (__o->chunk->prev == 0 && __o->next_free - __o->chunk->contents == 0); })
-
-# define obstack_grow(OBSTACK,where,length) \
-__extension__ \
-({ struct obstack *__o = (OBSTACK); \
- int __len = (length); \
- if (__o->next_free + __len > __o->chunk_limit) \
- _obstack_newchunk (__o, __len); \
- _obstack_memcpy (__o->next_free, (where), __len); \
- __o->next_free += __len; \
- (void) 0; })
-
-# define obstack_grow0(OBSTACK,where,length) \
-__extension__ \
-({ struct obstack *__o = (OBSTACK); \
- int __len = (length); \
- if (__o->next_free + __len + 1 > __o->chunk_limit) \
- _obstack_newchunk (__o, __len + 1); \
- _obstack_memcpy (__o->next_free, (where), __len); \
- __o->next_free += __len; \
- *(__o->next_free)++ = 0; \
- (void) 0; })
-
-# define obstack_1grow(OBSTACK,datum) \
-__extension__ \
-({ struct obstack *__o = (OBSTACK); \
- if (__o->next_free + 1 > __o->chunk_limit) \
- _obstack_newchunk (__o, 1); \
- *(__o->next_free)++ = (datum); \
- (void) 0; })
-
-/* These assume that the obstack alignment is good enough for pointers or ints,
- and that the data added so far to the current object
- shares that much alignment. */
-
-# define obstack_ptr_grow(OBSTACK,datum) \
-__extension__ \
-({ struct obstack *__o = (OBSTACK); \
- if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
- _obstack_newchunk (__o, sizeof (void *)); \
- *((void **)__o->next_free)++ = ((void *)datum); \
- (void) 0; })
-
-# define obstack_int_grow(OBSTACK,datum) \
-__extension__ \
-({ struct obstack *__o = (OBSTACK); \
- if (__o->next_free + sizeof (int) > __o->chunk_limit) \
- _obstack_newchunk (__o, sizeof (int)); \
- *((int *)__o->next_free)++ = ((int)datum); \
- (void) 0; })
-
-# define obstack_ptr_grow_fast(h,aptr) (*((void **) (h)->next_free)++ = (void *)aptr)
-# define obstack_int_grow_fast(h,aint) (*((int *) (h)->next_free)++ = (int) aint)
-
-# define obstack_blank(OBSTACK,length) \
-__extension__ \
-({ struct obstack *__o = (OBSTACK); \
- int __len = (length); \
- if (__o->chunk_limit - __o->next_free < __len) \
- _obstack_newchunk (__o, __len); \
- __o->next_free += __len; \
- (void) 0; })
-
-# define obstack_alloc(OBSTACK,length) \
-__extension__ \
-({ struct obstack *__h = (OBSTACK); \
- obstack_blank (__h, (length)); \
- obstack_finish (__h); })
-
-# define obstack_copy(OBSTACK,where,length) \
-__extension__ \
-({ struct obstack *__h = (OBSTACK); \
- obstack_grow (__h, (where), (length)); \
- obstack_finish (__h); })
-
-# define obstack_copy0(OBSTACK,where,length) \
-__extension__ \
-({ struct obstack *__h = (OBSTACK); \
- obstack_grow0 (__h, (where), (length)); \
- obstack_finish (__h); })
-
-/* The local variable is named __o1 to avoid a name conflict
- when obstack_blank is called. */
-# define obstack_finish(OBSTACK) \
-__extension__ \
-({ struct obstack *__o1 = (OBSTACK); \
- void *value; \
- value = (void *) __o1->object_base; \
- if (__o1->next_free == value) \
- __o1->maybe_empty_object = 1; \
- __o1->next_free \
- = __INT_TO_PTR ((__PTR_TO_INT (__o1->next_free)+__o1->alignment_mask)\
- & ~ (__o1->alignment_mask)); \
- if (__o1->next_free - (char *)__o1->chunk \
- > __o1->chunk_limit - (char *)__o1->chunk) \
- __o1->next_free = __o1->chunk_limit; \
- __o1->object_base = __o1->next_free; \
- value; })
-
-# define obstack_free(OBSTACK, OBJ) \
-__extension__ \
-({ struct obstack *__o = (OBSTACK); \
- void *__obj = (OBJ); \
- if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit) \
- __o->next_free = __o->object_base = __obj; \
- else (obstack_free) (__o, __obj); })
-
-#else /* not __GNUC__ or not __STDC__ */
-
-# define obstack_object_size(h) \
- (unsigned) ((h)->next_free - (h)->object_base)
-
-# define obstack_room(h) \
- (unsigned) ((h)->chunk_limit - (h)->next_free)
-
-# define obstack_empty_p(h) \
- ((h)->chunk->prev == 0 && (h)->next_free - (h)->chunk->contents == 0)
-
-/* Note that the call to _obstack_newchunk is enclosed in (..., 0)
- so that we can avoid having void expressions
- in the arms of the conditional expression.
- Casting the third operand to void was tried before,
- but some compilers won't accept it. */
-
-# define obstack_make_room(h,length) \
-( (h)->temp = (length), \
- (((h)->next_free + (h)->temp > (h)->chunk_limit) \
- ? (_obstack_newchunk ((h), (h)->temp), 0) : 0))
-
-# define obstack_grow(h,where,length) \
-( (h)->temp = (length), \
- (((h)->next_free + (h)->temp > (h)->chunk_limit) \
- ? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \
- _obstack_memcpy ((h)->next_free, (where), (h)->temp), \
- (h)->next_free += (h)->temp)
-
-# define obstack_grow0(h,where,length) \
-( (h)->temp = (length), \
- (((h)->next_free + (h)->temp + 1 > (h)->chunk_limit) \
- ? (_obstack_newchunk ((h), (h)->temp + 1), 0) : 0), \
- _obstack_memcpy ((h)->next_free, (where), (h)->temp), \
- (h)->next_free += (h)->temp, \
- *((h)->next_free)++ = 0)
-
-# define obstack_1grow(h,datum) \
-( (((h)->next_free + 1 > (h)->chunk_limit) \
- ? (_obstack_newchunk ((h), 1), 0) : 0), \
- (*((h)->next_free)++ = (datum)))
-
-# define obstack_ptr_grow(h,datum) \
-( (((h)->next_free + sizeof (char *) > (h)->chunk_limit) \
- ? (_obstack_newchunk ((h), sizeof (char *)), 0) : 0), \
- (*((char **) (((h)->next_free+=sizeof(char *))-sizeof(char *))) = ((char *) datum)))
-
-# define obstack_int_grow(h,datum) \
-( (((h)->next_free + sizeof (int) > (h)->chunk_limit) \
- ? (_obstack_newchunk ((h), sizeof (int)), 0) : 0), \
- (*((int *) (((h)->next_free+=sizeof(int))-sizeof(int))) = ((int) datum)))
-
-# define obstack_ptr_grow_fast(h,aptr) (*((char **) (h)->next_free)++ = (char *) aptr)
-# define obstack_int_grow_fast(h,aint) (*((int *) (h)->next_free)++ = (int) aint)
-
-# define obstack_blank(h,length) \
-( (h)->temp = (length), \
- (((h)->chunk_limit - (h)->next_free < (h)->temp) \
- ? (_obstack_newchunk ((h), (h)->temp), 0) : 0), \
- ((h)->next_free += (h)->temp))
-
-# define obstack_alloc(h,length) \
- (obstack_blank ((h), (length)), obstack_finish ((h)))
-
-# define obstack_copy(h,where,length) \
- (obstack_grow ((h), (where), (length)), obstack_finish ((h)))
-
-# define obstack_copy0(h,where,length) \
- (obstack_grow0 ((h), (where), (length)), obstack_finish ((h)))
-
-# define obstack_finish(h) \
-( ((h)->next_free == (h)->object_base \
- ? (((h)->maybe_empty_object = 1), 0) \
- : 0), \
- (h)->temp = __PTR_TO_INT ((h)->object_base), \
- (h)->next_free \
- = __INT_TO_PTR ((__PTR_TO_INT ((h)->next_free)+(h)->alignment_mask) \
- & ~ ((h)->alignment_mask)), \
- (((h)->next_free - (char *) (h)->chunk \
- > (h)->chunk_limit - (char *) (h)->chunk) \
- ? ((h)->next_free = (h)->chunk_limit) : 0), \
- (h)->object_base = (h)->next_free, \
- __INT_TO_PTR ((h)->temp))
-
-# if defined __STDC__ && __STDC__
-# define obstack_free(h,obj) \
-( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \
- (((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\
- ? (int) ((h)->next_free = (h)->object_base \
- = (h)->temp + (char *) (h)->chunk) \
- : (((obstack_free) ((h), (h)->temp + (char *) (h)->chunk), 0), 0)))
-# else
-# define obstack_free(h,obj) \
-( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \
- (((h)->temp > 0 && (h)->temp < (h)->chunk_limit - (char *) (h)->chunk)\
- ? (int) ((h)->next_free = (h)->object_base \
- = (h)->temp + (char *) (h)->chunk) \
- : (_obstack_free ((h), (h)->temp + (char *) (h)->chunk), 0)))
-# endif
-
-#endif /* not __GNUC__ or not __STDC__ */
-
-#ifdef __cplusplus
-} /* C++ */
-#endif
-
-#endif /* obstack.h */
diff --git a/contrib/gcc/include/partition.h b/contrib/gcc/include/partition.h
deleted file mode 100644
index 851422a957a2..000000000000
--- a/contrib/gcc/include/partition.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* List implementation of a partition of consecutive integers.
- Copyright (C) 2000, 2001 Free Software Foundation, Inc.
- Contributed by CodeSourcery, LLC.
-
- 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, 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-/* This package implements a partition of consecutive integers. The
- elements are partitioned into classes. Each class is represented
- by one of its elements, the canonical element, which is chosen
- arbitrarily from elements in the class. The principal operations
- on a partition are FIND, which takes an element, determines its
- class, and returns the canonical element for that class, and UNION,
- which unites the two classes that contain two given elements into a
- single class.
-
- The list implementation used here provides constant-time finds. By
- storing the size of each class with the class's canonical element,
- it is able to perform unions over all the classes in the partition
- in O (N log N) time. */
-
-#ifndef _PARTITION_H
-#define _PARTITION_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-#include <ansidecl.h>
-#include <stdio.h>
-
-struct partition_elem
-{
- /* The canonical element that represents the class containing this
- element. */
- int class_element;
- /* The next element in this class. Elements in each class form a
- circular list. */
- struct partition_elem* next;
- /* The number of elements in this class. Valid only if this is the
- canonical element for its class. */
- unsigned class_count;
-};
-
-typedef struct partition_def
-{
- /* The number of elements in this partition. */
- int num_elements;
- /* The elements in the partition. */
- struct partition_elem elements[1];
-} *partition;
-
-extern partition partition_new PARAMS((int));
-extern void partition_delete PARAMS((partition));
-extern int partition_union PARAMS((partition,
- int,
- int));
-extern void partition_print PARAMS((partition,
- FILE*));
-
-/* Returns the canonical element corresponding to the class containing
- ELEMENT__ in PARTITION__. */
-
-#define partition_find(partition__, element__) \
- ((partition__)->elements[(element__)].class_element)
-
-#endif /* _PARTITION_H */
diff --git a/contrib/gcc/include/safe-ctype.h b/contrib/gcc/include/safe-ctype.h
deleted file mode 100644
index b2ad8490bd04..000000000000
--- a/contrib/gcc/include/safe-ctype.h
+++ /dev/null
@@ -1,103 +0,0 @@
-/* <ctype.h> replacement macros.
-
- Copyright (C) 2000, 2001 Free Software Foundation, Inc.
- Contributed by Zack Weinberg <zackw@stanford.edu>.
-
-This file is part of the libiberty library.
-Libiberty is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public
-License as published by the Free Software Foundation; either
-version 2 of the License, or (at your option) any later version.
-
-Libiberty 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
-Library General Public License for more details.
-
-You should have received a copy of the GNU Library General Public
-License along with libiberty; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
-
-/* This is a compatible replacement of the standard C library's <ctype.h>
- with the following properties:
-
- - Implements all isxxx() macros required by C99.
- - Also implements some character classes useful when
- parsing C-like languages.
- - Does not change behavior depending on the current locale.
- - Behaves properly for all values in the range of a signed or
- unsigned char.
-
- To avoid conflicts, this header defines the isxxx functions in upper
- case, e.g. ISALPHA not isalpha. */
-
-#ifndef SAFE_CTYPE_H
-#define SAFE_CTYPE_H
-
-#ifdef isalpha
- #error "safe-ctype.h and ctype.h may not be used simultaneously"
-#else
-
-/* Categories. */
-
-enum {
- /* In C99 */
- _sch_isblank = 0x0001, /* space \t */
- _sch_iscntrl = 0x0002, /* nonprinting characters */
- _sch_isdigit = 0x0004, /* 0-9 */
- _sch_islower = 0x0008, /* a-z */
- _sch_isprint = 0x0010, /* any printing character including ' ' */
- _sch_ispunct = 0x0020, /* all punctuation */
- _sch_isspace = 0x0040, /* space \t \n \r \f \v */
- _sch_isupper = 0x0080, /* A-Z */
- _sch_isxdigit = 0x0100, /* 0-9A-Fa-f */
-
- /* Extra categories useful to cpplib. */
- _sch_isidst = 0x0200, /* A-Za-z_ */
- _sch_isvsp = 0x0400, /* \n \r */
- _sch_isnvsp = 0x0800, /* space \t \f \v \0 */
-
- /* Combinations of the above. */
- _sch_isalpha = _sch_isupper|_sch_islower, /* A-Za-z */
- _sch_isalnum = _sch_isalpha|_sch_isdigit, /* A-Za-z0-9 */
- _sch_isidnum = _sch_isidst|_sch_isdigit, /* A-Za-z0-9_ */
- _sch_isgraph = _sch_isalnum|_sch_ispunct, /* isprint and not space */
- _sch_iscppsp = _sch_isvsp|_sch_isnvsp, /* isspace + \0 */
- _sch_isbasic = _sch_isprint|_sch_iscppsp /* basic charset of ISO C
- (plus ` and @) */
-};
-
-/* Character classification. */
-extern const unsigned short _sch_istable[256];
-
-#define _sch_test(c, bit) (_sch_istable[(c) & 0xff] & (unsigned short)(bit))
-
-#define ISALPHA(c) _sch_test(c, _sch_isalpha)
-#define ISALNUM(c) _sch_test(c, _sch_isalnum)
-#define ISBLANK(c) _sch_test(c, _sch_isblank)
-#define ISCNTRL(c) _sch_test(c, _sch_iscntrl)
-#define ISDIGIT(c) _sch_test(c, _sch_isdigit)
-#define ISGRAPH(c) _sch_test(c, _sch_isgraph)
-#define ISLOWER(c) _sch_test(c, _sch_islower)
-#define ISPRINT(c) _sch_test(c, _sch_isprint)
-#define ISPUNCT(c) _sch_test(c, _sch_ispunct)
-#define ISSPACE(c) _sch_test(c, _sch_isspace)
-#define ISUPPER(c) _sch_test(c, _sch_isupper)
-#define ISXDIGIT(c) _sch_test(c, _sch_isxdigit)
-
-#define ISIDNUM(c) _sch_te