mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-04 22:55:53 +00:00
Compare commits
2 Commits
cgen-snaps
...
binutils-a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0ee8d3c039 | ||
|
|
e7c73f57df |
@@ -204,27 +204,3 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
(12) Jon Beniston (only lm32-* targets)
|
||||
|
||||
Contributed by Jon Beniston <jon@beniston.com>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
160
COPYING.NEWLIB
160
COPYING.NEWLIB
@@ -637,164 +637,4 @@ SUCH DAMAGE.
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
(30) - Alex Tatmanjants (targets using libc/posix)
|
||||
|
||||
Copyright (c) 1995 Alex Tatmanjants <alex@elvisti.kiev.ua>
|
||||
at Electronni Visti IA, Kiev, Ukraine.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
(31) - M. Warner Losh (targets using libc/posix)
|
||||
|
||||
Copyright (c) 1998, M. Warner Losh <imp@freebsd.org>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
(32) - Andrey A. Chernov (targets using libc/posix)
|
||||
|
||||
Copyright (C) 1996 by Andrey A. Chernov, Moscow, Russia.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
(33) - Daniel Eischen (targets using libc/posix)
|
||||
|
||||
Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
|
||||
(34) - Jon Beniston (only lm32-* targets)
|
||||
|
||||
Contributed by Jon Beniston <jon@beniston.com>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
|
||||
(35) - ARM Ltd (arm and thumb variant targets only)
|
||||
|
||||
Copyright (c) 2009 ARM Ltd
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. The name of the company may not be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
|
||||
612
ChangeLog
612
ChangeLog
@@ -1,208 +1,3 @@
|
||||
2009-01-21 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* COPYING.NEWLIB: Add ARM license.
|
||||
|
||||
2009-01-16 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* Makefile.def (configure-opcodes): Depend on configure-libiberty.
|
||||
(all-opcodes): Depend on all-libiberty.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2009-01-15 Douglas B Rupp <rupp@gnat.com>
|
||||
|
||||
* configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
Backport link test fix from upstream Libtool:
|
||||
|
||||
* libltdl.m4 (_LT_SYS_DYNAMIC_LINKER, _LT_LINKER_SHLIBS):
|
||||
Add cache variables to tests that require the linker to work.
|
||||
For shlibpath_overrides_runpath, this also changes the semantics
|
||||
to let the result from the C compiler take precedence.
|
||||
compiler take precedence.
|
||||
|
||||
2008-12-02 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
* config.sub, config.guess: Update from upstream sources.
|
||||
|
||||
2008-12-17 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* COPYING.NEWLIB: Updated.
|
||||
* COPYING.LIBGLOSS: Ditto.
|
||||
|
||||
2008-12-16 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
Sync with GCC:
|
||||
|
||||
2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* configure.ac (ppllibs): Add by default the lib flags.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-12-04 Jack Howarth <howarth@bromo.med.uc.edu>
|
||||
|
||||
* configure.ac: Add double brackets on darwin[912].
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-12-02 Jack Howarth <howarth@bromo.med.uc.edu>
|
||||
|
||||
* configure.ac: Expand to darwin10 and later.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-12-02 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* Makefile.def: configure-target-boehm-gc depends on
|
||||
all-target-libstdc++-v3.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2008-12-02 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
* config.sub, config.guess: Update from upstream sources.
|
||||
|
||||
2008-11-27 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
Merge from GCC:
|
||||
|
||||
2007-12-02 Matthias Klose <doko@ubuntu.com>
|
||||
|
||||
* config-ml.in: Remove 64bit configure tests.
|
||||
|
||||
2008-05-14 Rafael Espindola <espindola@google.com>
|
||||
|
||||
* config-ml.in: don't handle --enable-shared and --enable-static.
|
||||
|
||||
2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
|
||||
Tobias Grosser <grosser@fim.uni-passau.de>
|
||||
Jan Sjodin <jan.sjodin@amd.com>
|
||||
Harsha Jagasia <harsha.jagasia@amd.com>
|
||||
Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
|
||||
Konrad Trifunovic <konrad.trifunovic@inria.fr>
|
||||
Adrien Eliche <aeliche@isty.uvsq.fr>
|
||||
|
||||
Merge from graphite branch.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure.ac (host_libs): Add ppl and cloog.
|
||||
Add checks for PPL and CLooG.
|
||||
* Makefile.def (ppl, cloog): Added modules and dependences.
|
||||
* Makefile.tpl (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): New.
|
||||
(HOST_PPLLIBS, HOST_PPLINC, HOST_CLOOGLIBS, HOST_CLOOGINC): New.
|
||||
|
||||
2008-09-03 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* configure.ac: Always pass -DCLOOG_PPL_BACKEND to the
|
||||
cloog test.
|
||||
* configure: Re-generate.
|
||||
|
||||
2008-09-03 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* configure.ac (--with-cloog-polylib): New.
|
||||
(--disable-cloog-version-check): New.
|
||||
(--disable-ppl-version-check): New.
|
||||
* configure: Re-generate.
|
||||
|
||||
2008-09-05 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* configure.ac: Initialize clooglibs to -lcloog.
|
||||
* configure: Re-generate.
|
||||
|
||||
2008-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* configure.ac (MPFR check): Bump minimum version to 2.3.0 and
|
||||
recommended version to 2.3.2.
|
||||
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-10-31 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
* configure.ac (spu-*-*): Remove special case.
|
||||
* configure: Regenerate.
|
||||
|
||||
Complete comment text from GCC version of:
|
||||
|
||||
2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
|
||||
|
||||
* configure.ac (RPATH_ENVVAR): Use PATH on Windows.
|
||||
(GCC_SHLIB_SUBDIR): New.
|
||||
* Makefile.tpl (HOST_LIB_PATH_gcc): Use GCC_SHLIB_SUBDIR.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2008-11-27 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* configure.ac: Build gdb for i?86-*-darwin*
|
||||
* configure: Regenerated.
|
||||
|
||||
2008-11-14 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
PR bootstrap/38014
|
||||
PR bootstrap/37923
|
||||
|
||||
Revert:
|
||||
|
||||
2008-10-24 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.
|
||||
* Makefile.in: Regenerated.
|
||||
|
||||
2008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
PR gdb/921
|
||||
PR gdb/1646
|
||||
PR gdb/2175
|
||||
PR gdb/2176
|
||||
|
||||
* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
|
||||
* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
|
||||
(EXTRA_BUILD_FLAGS): Correct typo. Pass CPPFLAGS.
|
||||
(HOST_EXPORTS): Pass CPPFLAGS.
|
||||
(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
|
||||
(LDFLAGS_FOR_TARGET): Initialize from configure script.
|
||||
(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
|
||||
* Makefile.in, configure: Regenerated.
|
||||
* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
|
||||
and CPPFLAGS_FOR_BUILD.
|
||||
|
||||
2008-10-29 Stefan Schulze Frielinghaus <xxschulz@de.ibm.com>
|
||||
|
||||
* configure.ac [spu-*-*]: Do not set skipdirs.
|
||||
* configure: Re-generate.
|
||||
|
||||
2008-10-24 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.
|
||||
* Makefile.in: Regenerated.
|
||||
|
||||
2008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
PR gdb/921
|
||||
PR gdb/1646
|
||||
PR gdb/2175
|
||||
PR gdb/2176
|
||||
|
||||
* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
|
||||
* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
|
||||
(EXTRA_BUILD_FLAGS): Correct typo. Pass CPPFLAGS.
|
||||
(HOST_EXPORTS): Pass CPPFLAGS.
|
||||
(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
|
||||
(LDFLAGS_FOR_TARGET): Initialize from configure script.
|
||||
(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
|
||||
* Makefile.in, configure: Regenerated.
|
||||
* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
|
||||
and CPPFLAGS_FOR_BUILD.
|
||||
|
||||
2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
|
||||
|
||||
* libtool.m4: Update to libtool 2.2.6.
|
||||
* lt~obsolete.m4: Update to libtool 2.2.6.
|
||||
* ltmain.sh: Update to libtool 2.2.6.
|
||||
* ltsugar.m4: Update to libtool 2.2.6.
|
||||
* ltversion.m4: Update to libtool 2.2.6.
|
||||
* ltoptions.m4: Update to libtool 2.2.6.
|
||||
* ltgcc.m4: Update to match changes from libtool 2.2.6.
|
||||
|
||||
2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
|
||||
|
||||
* configure.ac (RPATH_ENVVAR): Use PATH on Windows.
|
||||
@@ -232,17 +27,17 @@
|
||||
Sync with gcc:
|
||||
2008-07-30 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* configure.ac: Add makefile fragments for hpux.
|
||||
* Makefile.def (flags_to_pass): Add ADA_CFLAGS.
|
||||
* Makefile.tpl (HOST_EXPORTS): Pass ADA_CFLAGS.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure.ac: Add makefile fragments for hpux.
|
||||
* Makefile.def (flags_to_pass): Add ADA_CFLAGS.
|
||||
* Makefile.tpl (HOST_EXPORTS): Pass ADA_CFLAGS.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* Makefile.tpl ($(srcdir)/configure): Update dependencies.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure: Regenerate.
|
||||
* Makefile.tpl ($(srcdir)/configure): Update dependencies.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-06-18 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
@@ -307,13 +102,13 @@
|
||||
|
||||
2008-04-18 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* Makefile.tpl (restrap): Call `make all' using double-colon rules.
|
||||
* Makefile.in: Regenerate.
|
||||
* Makefile.tpl (restrap): Call `make all' using double-colon rules.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2008-04-11 Eric B. Weddington <eweddington@cso.atmel.com>
|
||||
|
||||
* configure.ac: Do not build libssp for the AVR.
|
||||
* configure: Regenerate.
|
||||
* configure.ac: Do not build libssp for the AVR.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-04-18 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
@@ -322,9 +117,9 @@
|
||||
|
||||
2008-04-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
|
||||
|
||||
* configure.ac (cr16-*-*): Add case for cr16 target and include gdb
|
||||
* configure.ac (cr16-*-*): Add case for cr16 target and include gdb
|
||||
as nonconfigurable directories list.
|
||||
* configure: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-04-14 David S. Miller <davem@davemloft.net>
|
||||
|
||||
@@ -355,8 +150,8 @@
|
||||
2008-04-04 NightStrike <NightStrike@gmail.com>
|
||||
|
||||
PR other/35151
|
||||
* configure.ac: Combine rules for mingw32 and mingw64.
|
||||
* configure: Regenerate.
|
||||
* configure.ac: Combine rules for mingw32 and mingw64.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-03-27 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
@@ -406,9 +201,9 @@
|
||||
2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
Backport from upstream Libtool:
|
||||
|
||||
|
||||
2007-10-12 Eric Blake <ebb9@byu.net>
|
||||
|
||||
|
||||
Deal with Autoconf 2.62's semantic change in m4_append.
|
||||
* ltsugar.m4 (lt_append): Replace broken versions of
|
||||
m4_append.
|
||||
@@ -441,27 +236,27 @@
|
||||
|
||||
2008-02-20 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
PR bootstrap/32009
|
||||
PR bootstrap/32161
|
||||
PR bootstrap/32009
|
||||
PR bootstrap/32161
|
||||
|
||||
* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Compute here.
|
||||
* configure: Regenerate.
|
||||
* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Compute here.
|
||||
* configure: Regenerate.
|
||||
|
||||
* Makefile.def: Define stage_libcflags for all bootstrap stages.
|
||||
* Makefile.tpl (BOOT_LIBCFLAGS, STAGE2_LIBCFLAGS, STAGE3_LIBCFLAGS,
|
||||
STAGE4_LIBCFLAGS): New.
|
||||
(CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Subst from autoconf, without
|
||||
$(SYSROOT_CFLAGS_FOR_TARGET) and $(DEBUG_PREFIX_CFLAGS_FOR_TARGET).
|
||||
(BASE_TARGET_EXPORTS): Append them here to C{,XX}FLAGS.
|
||||
(EXTRA_TARGET_FLAGS): Append them here to {LIB,}C{,XX}FLAGS.
|
||||
(configure-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags
|
||||
for target modules. Don't export LIBCFLAGS.
|
||||
(all-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags; pass
|
||||
$(BASE_FLAGS_TO_PASS) where [+args+] was passed, and [+args+] after
|
||||
the overridden CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
|
||||
(invocations of `all'): Replace $(TARGET_FLAGS_TO_PASS) with
|
||||
$(EXTRA_TARGET_FLAGS), $(FLAGS_TO_PASS) with $(EXTRA_HOST_FLAGS).
|
||||
* Makefile.in: Regenerate.
|
||||
* Makefile.def: Define stage_libcflags for all bootstrap stages.
|
||||
* Makefile.tpl (BOOT_LIBCFLAGS, STAGE2_LIBCFLAGS, STAGE3_LIBCFLAGS,
|
||||
STAGE4_LIBCFLAGS): New.
|
||||
(CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Subst from autoconf, without
|
||||
$(SYSROOT_CFLAGS_FOR_TARGET) and $(DEBUG_PREFIX_CFLAGS_FOR_TARGET).
|
||||
(BASE_TARGET_EXPORTS): Append them here to C{,XX}FLAGS.
|
||||
(EXTRA_TARGET_FLAGS): Append them here to {LIB,}C{,XX}FLAGS.
|
||||
(configure-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags
|
||||
for target modules. Don't export LIBCFLAGS.
|
||||
(all-stage[+id+]-[+prefix+][+module+]): Pass stage_libcflags; pass
|
||||
$(BASE_FLAGS_TO_PASS) where [+args+] was passed, and [+args+] after
|
||||
the overridden CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
|
||||
(invocations of `all'): Replace $(TARGET_FLAGS_TO_PASS) with
|
||||
$(EXTRA_TARGET_FLAGS), $(FLAGS_TO_PASS) with $(EXTRA_HOST_FLAGS).
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
@@ -488,11 +283,11 @@
|
||||
|
||||
2008-01-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
PR bootstrap/34922
|
||||
* configure.ac (PARSE_ARGS): Push suitable setting of
|
||||
ac_subdirs_all, for `./configure --help=recursive'.
|
||||
Handle `+' in generic toplevel directory disabling.
|
||||
* configure: Regenerate.
|
||||
PR bootstrap/34922
|
||||
* configure.ac (PARSE_ARGS): Push suitable setting of
|
||||
ac_subdirs_all, for `./configure --help=recursive'.
|
||||
Handle `+' in generic toplevel directory disabling.
|
||||
* configure: Regenerate.
|
||||
|
||||
2008-01-23 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
@@ -533,11 +328,11 @@
|
||||
|
||||
2007-11-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* config-ml.in: Robustify against white space in absolute file
|
||||
names.
|
||||
* config-ml.in: Robustify against white space in absolute file
|
||||
names.
|
||||
|
||||
* config-ml.in (multi-clean): Substitute ${Makefile}.
|
||||
Remove superfluous ${Makefile} in list.
|
||||
* config-ml.in (multi-clean): Substitute ${Makefile}.
|
||||
Remove superfluous ${Makefile} in list.
|
||||
|
||||
2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
@@ -594,7 +389,7 @@
|
||||
* Makefile.def: Add libgomp config as a maybe dependency for libstdc++.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
|
||||
2007-09-17 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* configure.ac: Raise minimum makeinfo version to 4.6.
|
||||
@@ -653,7 +448,7 @@
|
||||
* configure: Regenerate.
|
||||
|
||||
2007-08-18 Paul Brook <paul@codesourcery.com>
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* Makefile.tpl (DEBUG_PREFIX_CFLAGS_FOR_TARGET): New.
|
||||
(CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Include it.
|
||||
@@ -721,11 +516,11 @@
|
||||
|
||||
2007-07-09 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* Makefile.def: Add windmc tool to build.
|
||||
* Makefile.tpl: Likewise.
|
||||
* configure.ac: Likewise.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure: Regenerate.
|
||||
* Makefile.def: Add windmc tool to build.
|
||||
* Makefile.tpl: Likewise.
|
||||
* configure.ac: Likewise.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
@@ -742,7 +537,7 @@
|
||||
* configure.ac (arm*-*-linux-gnueabi): Don't build libgloss if we're
|
||||
not building newlib.
|
||||
* configure: Regenerated.
|
||||
|
||||
|
||||
2007-06-22 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* src-release (DEVO_SUPPORT): Correct typos.
|
||||
@@ -754,9 +549,9 @@
|
||||
|
||||
2007-06-14 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* Makefile.tpl (cleanstrap): Don't delete the toplevel Makefile.
|
||||
(distclean-stage[+id+]): Possibly delete stage_last.
|
||||
* Makefile.in: Regenerate.
|
||||
* Makefile.tpl (cleanstrap): Don't delete the toplevel Makefile.
|
||||
(distclean-stage[+id+]): Possibly delete stage_last.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2007-06-07 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
@@ -772,9 +567,9 @@
|
||||
Sync with gcc:
|
||||
2007-05-30 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR bootstrap/29382
|
||||
* configure.ac: Don't use -fkeep-inline-functions for GCC < 3.3.1.
|
||||
* configure: Rebuilt.
|
||||
PR bootstrap/29382
|
||||
* configure.ac: Don't use -fkeep-inline-functions for GCC < 3.3.1.
|
||||
* configure: Rebuilt.
|
||||
|
||||
2007-06-01 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
@@ -880,9 +675,9 @@
|
||||
* configure: Rebuilt.
|
||||
|
||||
2007-02-17 Mark Mitchell <mark@codesourcery.com>
|
||||
Nathan Sidwell <nathan@codesourcery.com>
|
||||
Vladimir Prus <vladimir@codesourcery.com
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
Nathan Sidwell <nathan@codesourcery.com>
|
||||
Vladimir Prus <vladimir@codesourcery.com
|
||||
Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Fix quoting.
|
||||
* configure: Regenerate.
|
||||
@@ -988,28 +783,28 @@
|
||||
2007-01-11 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* configure.in: Change == to = in test command.
|
||||
* configure: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2007-01-11 Paolo Bonzini <bonzini@gnu.org>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
Kaveh R. Ghazi <ghazi@caip.rutgets.edu>
|
||||
Nick Clifton <nickc@redhat.com>
|
||||
Kaveh R. Ghazi <ghazi@caip.rutgets.edu>
|
||||
|
||||
* configure.in (build_configargs, host_configargs, target_configargs):
|
||||
Remove build/host/target parameters.
|
||||
(host_libs): Add gmp and mpfr.
|
||||
(GMP tests): Reorganize to allow in-tree GMP/MPFR.
|
||||
* Makefile.def (gmp, mpfr): New.
|
||||
(gcc): Remove target.
|
||||
* Makefile.tpl (build_os, build_vendor, host_os, host_vendor,
|
||||
target_os, target_vendor): New.
|
||||
(configure): Add host_alias/target_alias arguments. Adjust invocations.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure.in (build_configargs, host_configargs, target_configargs):
|
||||
Remove build/host/target parameters.
|
||||
(host_libs): Add gmp and mpfr.
|
||||
(GMP tests): Reorganize to allow in-tree GMP/MPFR.
|
||||
* Makefile.def (gmp, mpfr): New.
|
||||
(gcc): Remove target.
|
||||
* Makefile.tpl (build_os, build_vendor, host_os, host_vendor,
|
||||
target_os, target_vendor): New.
|
||||
(configure): Add host_alias/target_alias arguments. Adjust invocations.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2007-01-11 Matt Fago <fago@earthlink.net>
|
||||
|
||||
* configure.in: Try to link to functions only in mpfr 2.2.x
|
||||
to improve robustness of configure tests.
|
||||
to improve robustness of configure tests.
|
||||
* configure: Regenerate.
|
||||
|
||||
2007-01-08 Kai Tietz <kai.tietz@onevision.com>
|
||||
@@ -1045,20 +840,20 @@
|
||||
Sync with gcc:
|
||||
2006-12-29 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* configure.in: Reorganize recognition of languages. Add
|
||||
--enable-stage1-languages. Show supported languages for the chosen
|
||||
target rather than all recognized languages.
|
||||
* configure: Regenerate.
|
||||
* configure.in: Reorganize recognition of languages. Add
|
||||
--enable-stage1-languages. Show supported languages for the chosen
|
||||
target rather than all recognized languages.
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-12-29 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* Makefile.tpl (GCC_STRAP_TARGETS, all-prebootstrap): Remove.
|
||||
* Makefile.in: Regenerate.
|
||||
* Makefile.tpl (GCC_STRAP_TARGETS, all-prebootstrap): Remove.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2006-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* configure.in: Warn that MPFR 2.2.0 is buggy.
|
||||
* configure: Regenerate.
|
||||
* configure.in: Warn that MPFR 2.2.0 is buggy.
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-12-27 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
@@ -1209,8 +1004,8 @@
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-08-15 Thiemo Seufer <ths@mips.com>
|
||||
Nigel Stephens <nigel@mips.com>
|
||||
David Ung <davidu@mips.com>
|
||||
Nigel Stephens <nigel@mips.com>
|
||||
David Ung <davidu@mips.com>
|
||||
|
||||
* config.sub: Add support for sde as alias of mipsisa32-sde-elf.
|
||||
|
||||
@@ -1219,10 +1014,10 @@
|
||||
Sync from GCC:
|
||||
2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
|
||||
|
||||
PR bootstrap/18058
|
||||
* configure.in: Add -fkeep-inline-functions to CFLAGS for stage 1
|
||||
if the bootstrap compiler is a GCC version that supports it.
|
||||
* configure: Regenerate.
|
||||
PR bootstrap/18058
|
||||
* configure.in: Add -fkeep-inline-functions to CFLAGS for stage 1
|
||||
if the bootstrap compiler is a GCC version that supports it.
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
@@ -1231,8 +1026,8 @@
|
||||
|
||||
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir
|
||||
for stages after the first.
|
||||
* Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir
|
||||
for stages after the first.
|
||||
|
||||
2006-07-17 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
@@ -1310,7 +1105,7 @@
|
||||
Sync from gcc:
|
||||
|
||||
2005-01-12 David Edelsohn <edelsohn@gnu.org>
|
||||
Andreas Schwab <schwab@suse.de>
|
||||
Andreas Schwab <schwab@suse.de>
|
||||
|
||||
PR bootstrap/18033
|
||||
* config-ml.in: Eval option if surrounded by single quotes.
|
||||
@@ -1447,15 +1242,15 @@
|
||||
Sync with gcc:
|
||||
2006-03-10 Aldy Hernandez <aldyh@redhat.com>
|
||||
|
||||
* configure.in: Handle --disable-<component> generically.
|
||||
* configure: Regenerate.
|
||||
* configure.in: Handle --disable-<component> generically.
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-02-21 Rafael Avila de Espindola <rafael.espindola@gmail.com>
|
||||
|
||||
* Makefile.tpl (BUILD_CONFIGDIRS): Remove.
|
||||
(TARGET_CONFIGDIRS): Remove.
|
||||
* configure.in: Remove AC_SUBST(target_configdirs).
|
||||
* Makefile.in, configure: Regenerated.
|
||||
* Makefile.tpl (BUILD_CONFIGDIRS): Remove.
|
||||
(TARGET_CONFIGDIRS): Remove.
|
||||
* configure.in: Remove AC_SUBST(target_configdirs).
|
||||
* Makefile.in, configure: Regenerated.
|
||||
|
||||
|
||||
2006-03-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
@@ -1502,22 +1297,22 @@
|
||||
2006-01-31 Richard Guenther <rguenther@suse.de>
|
||||
Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* Makefile.def (target_modules): Add libgcc-math target module.
|
||||
* configure.in (target_libraries): Add libgcc-math target library.
|
||||
(--enable-libgcc-math): New configure switch.
|
||||
* Makefile.in: Re-generate.
|
||||
* configure: Re-generate.
|
||||
* libgcc-math: New toplevel directory.
|
||||
* Makefile.def (target_modules): Add libgcc-math target module.
|
||||
* configure.in (target_libraries): Add libgcc-math target library.
|
||||
(--enable-libgcc-math): New configure switch.
|
||||
* Makefile.in: Re-generate.
|
||||
* configure: Re-generate.
|
||||
* libgcc-math: New toplevel directory.
|
||||
|
||||
2006-01-18 Richard Henderson <rth@redhat.com>
|
||||
Jakub Jelinek <jakub@redhat.com>
|
||||
Diego Novillo <dnovillo@redhat.com>
|
||||
Jakub Jelinek <jakub@redhat.com>
|
||||
Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
* libgomp: New directory.
|
||||
* Makefile.def: Add target_module libgomp.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure.in (target_libraries): Add target-libgomp.
|
||||
* configure: Regenerate.
|
||||
* libgomp: New directory.
|
||||
* Makefile.def: Add target_module libgomp.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure.in (target_libraries): Add target-libgomp.
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-02-14 Paolo Bonzini <bonzini@gnu.org>
|
||||
Andreas Schwab <schwab@suse.de>
|
||||
@@ -1547,37 +1342,37 @@
|
||||
|
||||
2006-01-04 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
PR bootstrap/24252
|
||||
PR bootstrap/24252
|
||||
|
||||
* Makefile.def (flags_to_pass): Add STAGE1_CFLAGS and STAGE1_LANGUAGES.
|
||||
* Makefile.tpl (OBJDUMP): New.
|
||||
(EXTRA_HOST_FLAGS): Add it.
|
||||
(EXTRA_GCC_FLAGS): Remove flags already specified in flags_to_pass.
|
||||
* Makefile.def (flags_to_pass): Add STAGE1_CFLAGS and STAGE1_LANGUAGES.
|
||||
* Makefile.tpl (OBJDUMP): New.
|
||||
(EXTRA_HOST_FLAGS): Add it.
|
||||
(EXTRA_GCC_FLAGS): Remove flags already specified in flags_to_pass.
|
||||
|
||||
* Makefile.tpl (stage[+id+]-start, stage[+id+]-end): Do not try
|
||||
to use symbolic links between directories. Avoid race conditions
|
||||
or make them harmless.
|
||||
* configure.in: Do not try to use symbolic links between directories.
|
||||
* Makefile.tpl (stage[+id+]-start, stage[+id+]-end): Do not try
|
||||
to use symbolic links between directories. Avoid race conditions
|
||||
or make them harmless.
|
||||
* configure.in: Do not try to use symbolic links between directories.
|
||||
|
||||
* Makefile.def (LEAN): Pass.
|
||||
* Makefile.tpl (LEAN): Define.
|
||||
(stage[+id+]-start): Accept that the previous directory does not
|
||||
exist, if the bootstrap is lean.
|
||||
(stage[+id+]-bubble): Invoke lean bootstrap commands after
|
||||
stage[+id+]-start. Use a makefile variable and an `if' instead of a
|
||||
configure substitution.
|
||||
([+compare-target+]): Likewise.
|
||||
([+bootstrap-target+]-lean): New.
|
||||
* configure.in: Remove lean bootstrap support from here.
|
||||
* Makefile.def (LEAN): Pass.
|
||||
* Makefile.tpl (LEAN): Define.
|
||||
(stage[+id+]-start): Accept that the previous directory does not
|
||||
exist, if the bootstrap is lean.
|
||||
(stage[+id+]-bubble): Invoke lean bootstrap commands after
|
||||
stage[+id+]-start. Use a makefile variable and an `if' instead of a
|
||||
configure substitution.
|
||||
([+compare-target+]): Likewise.
|
||||
([+bootstrap-target+]-lean): New.
|
||||
* configure.in: Remove lean bootstrap support from here.
|
||||
|
||||
* Makefile.in: Regenerate.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2006-01-02 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* configure.in: When reconfiguring remove Makefile in
|
||||
all stage directories.
|
||||
* configure: Regenerate.
|
||||
* configure.in: When reconfiguring remove Makefile in
|
||||
all stage directories.
|
||||
* configure: Regenerate.
|
||||
|
||||
2005-12-27 Leif Ekblad <leif@rdos.net>
|
||||
|
||||
@@ -1591,14 +1386,14 @@
|
||||
|
||||
2005-12-20 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
Revert Ada-related part of the previous change.
|
||||
Revert Ada-related part of the previous change.
|
||||
|
||||
* Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, ADAFLAGS_FOR_TARGET):
|
||||
Do not pass.
|
||||
* Makefile.tpl (BOOT_ADAFLAGS): Do not define.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure.in: Do not include mt-ppc-aix target fragment.
|
||||
* configure: Regenerate.
|
||||
* Makefile.def (ADAFLAGS, BOOT_ADAFLAGS, ADAFLAGS_FOR_TARGET):
|
||||
Do not pass.
|
||||
* Makefile.tpl (BOOT_ADAFLAGS): Do not define.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure.in: Do not include mt-ppc-aix target fragment.
|
||||
* configure: Regenerate.
|
||||
|
||||
2005-12-19 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
@@ -1634,21 +1429,21 @@
|
||||
|
||||
2005-12-14 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* Makefile.tpl: Throughout the file, use : $(MAKE) along with
|
||||
$(stage) and $(unstage).
|
||||
(EXTRA_TARGET_FLAGS): Correct double-quoting.
|
||||
(all): Remove stray semicolon.
|
||||
(local-distclean): Don't handle multilib.tmp and multilib.out.
|
||||
(install.all): Set $s for consistency.
|
||||
(configure-[+prefix+][+module+]): Instead of [+deps+], handle
|
||||
check_multilibs setting. Always make the install directory.
|
||||
(configure-stage[+id+]-[+prefix+][+module+]): Likewise.
|
||||
Correct @if/@endif.
|
||||
(all-stage[+id+]-[+prefix+][+module+]): Correct @if/@endif.
|
||||
($(TARGET_SUBDIR)/[+module+]/multilib.out): Remove.
|
||||
(stage[+id+]-start, stage[+id+]-end): Stage $(TARGET_SUBDIR).
|
||||
(multilib.out): Remove.
|
||||
* Makefile.in: Regenerated.
|
||||
* Makefile.tpl: Throughout the file, use : $(MAKE) along with
|
||||
$(stage) and $(unstage).
|
||||
(EXTRA_TARGET_FLAGS): Correct double-quoting.
|
||||
(all): Remove stray semicolon.
|
||||
(local-distclean): Don't handle multilib.tmp and multilib.out.
|
||||
(install.all): Set $s for consistency.
|
||||
(configure-[+prefix+][+module+]): Instead of [+deps+], handle
|
||||
check_multilibs setting. Always make the install directory.
|
||||
(configure-stage[+id+]-[+prefix+][+module+]): Likewise.
|
||||
Correct @if/@endif.
|
||||
(all-stage[+id+]-[+prefix+][+module+]): Correct @if/@endif.
|
||||
($(TARGET_SUBDIR)/[+module+]/multilib.out): Remove.
|
||||
(stage[+id+]-start, stage[+id+]-end): Stage $(TARGET_SUBDIR).
|
||||
(multilib.out): Remove.
|
||||
* Makefile.in: Regenerated.
|
||||
|
||||
2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
@@ -1672,46 +1467,46 @@
|
||||
|
||||
2005-12-05 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* configure.in (CONFIGURED_BISON, CONFIGURED_YACC, CONFIGURED_M4,
|
||||
CONFIGURED_FLEX, CONFIGURED_LEX, CONFIGURED_MAKEINFO): Remove
|
||||
"CONFIGURED_" from the AC_CHECK_PROGS invocation. Move below.
|
||||
Find in-tree tools if available.
|
||||
(EXPECT, RUNTEST, LIPO, STRIP): Find them and substitute them.
|
||||
(CONFIGURED_*_FOR_TARGET): Don't set nor substitute.
|
||||
(*_FOR_TARGET): Set them with GCC_TARGET_TOOL.
|
||||
(COMPILER_*_FOR_TARGET): New.
|
||||
* Makefile.tpl (HOST_EXPORTS): Add *_FOR_TARGET symbols that gcc needs.
|
||||
(BASE_TARGET_EXPORTS): Use COMPILER_*_FOR_TARGET symbols.
|
||||
(CONFIGURED_*, USUAL_*): Remove.
|
||||
(BISON, YACC, FLEX, LEX, M4, MAKEINFO, EXPECT, RUNTEST, LIPO,
|
||||
STRIP): Use autoconf substitutions.
|
||||
(COMPILER_AS_FOR_TARGET, COMPILER_LD_FOR_TARGET,
|
||||
COMPILER_NM_FOR_TARGET): New.
|
||||
(EXTRA_HOST_FLAGS): Pass LIPO and STRIP.
|
||||
* configure.in (CONFIGURED_BISON, CONFIGURED_YACC, CONFIGURED_M4,
|
||||
CONFIGURED_FLEX, CONFIGURED_LEX, CONFIGURED_MAKEINFO): Remove
|
||||
"CONFIGURED_" from the AC_CHECK_PROGS invocation. Move below.
|
||||
Find in-tree tools if available.
|
||||
(EXPECT, RUNTEST, LIPO, STRIP): Find them and substitute them.
|
||||
(CONFIGURED_*_FOR_TARGET): Don't set nor substitute.
|
||||
(*_FOR_TARGET): Set them with GCC_TARGET_TOOL.
|
||||
(COMPILER_*_FOR_TARGET): New.
|
||||
* Makefile.tpl (HOST_EXPORTS): Add *_FOR_TARGET symbols that gcc needs.
|
||||
(BASE_TARGET_EXPORTS): Use COMPILER_*_FOR_TARGET symbols.
|
||||
(CONFIGURED_*, USUAL_*): Remove.
|
||||
(BISON, YACC, FLEX, LEX, M4, MAKEINFO, EXPECT, RUNTEST, LIPO,
|
||||
STRIP): Use autoconf substitutions.
|
||||
(COMPILER_AS_FOR_TARGET, COMPILER_LD_FOR_TARGET,
|
||||
COMPILER_NM_FOR_TARGET): New.
|
||||
(EXTRA_HOST_FLAGS): Pass LIPO and STRIP.
|
||||
|
||||
(all): Make all-host and all-target in parallel.
|
||||
(do-[+make_target+], do-check, install, [+compare-target+]): Ensure
|
||||
that $$r and $$s are set before invoking a recursive make.
|
||||
(stage[+id+]-bubble): Likewise, and invoke the comparison at the end.
|
||||
([+bootstrap-target+]): Inline most of the `all' target.
|
||||
(all): Make all-host and all-target in parallel.
|
||||
(do-[+make_target+], do-check, install, [+compare-target+]): Ensure
|
||||
that $$r and $$s are set before invoking a recursive make.
|
||||
(stage[+id+]-bubble): Likewise, and invoke the comparison at the end.
|
||||
([+bootstrap-target+]): Inline most of the `all' target.
|
||||
|
||||
2005-11-29 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
* Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc
|
||||
from the gcc build directory.
|
||||
* Makefile.in: Regenerate.
|
||||
* Makefile.tpl (clean-target-libgcc): Invoke clean-target-libgcc
|
||||
from the gcc build directory.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2005-11-29 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
* Makefile.def: Add new libdecnumber host_module. Make all-gcc
|
||||
depend on all-libdecnumber.
|
||||
* configure.in (host_libs): Include libdecnumber.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure: Likewise.
|
||||
* Makefile.def: Add new libdecnumber host_module. Make all-gcc
|
||||
depend on all-libdecnumber.
|
||||
* configure.in (host_libs): Include libdecnumber.
|
||||
* Makefile.in: Regenerate.
|
||||
* configure: Likewise.
|
||||
|
||||
2005-11-21 Kean Johnston <jkj@sco.com>
|
||||
|
||||
* config.sub, config.guess: Sync from upstream sources.
|
||||
* config.sub, config.guess: Sync from upstream sources.
|
||||
|
||||
2005-11-11 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
@@ -1841,8 +1636,8 @@
|
||||
|
||||
2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
|
||||
|
||||
* Makefile.def (libssp): Add to lang_env_dependencies.
|
||||
* Makefile.in: Regenerate.
|
||||
* Makefile.def (libssp): Add to lang_env_dependencies.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
2005-08-17 Christian Groessler <chris@groessler.org>
|
||||
|
||||
@@ -1998,12 +1793,12 @@
|
||||
accepted into the master sources.)
|
||||
|
||||
2005-06-02 Aldy Hernandez <aldyh@redhat.com>
|
||||
Michael Snyder <msnyder@redhat.com>
|
||||
Stan Cox <scox@redhat.com>
|
||||
Michael Snyder <msnyder@redhat.com>
|
||||
Stan Cox <scox@redhat.com>
|
||||
|
||||
* configure.in: Set noconfigdirs for ms1.
|
||||
* configure.in: Set noconfigdirs for ms1.
|
||||
|
||||
* configure: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2005-05-25 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
@@ -2049,19 +1844,19 @@
|
||||
|
||||
2005-04-22 Bernd Schmidt <bernd.schmidt@analog.com>
|
||||
|
||||
* config.sub: Update from master copy.
|
||||
* config.sub: Update from master copy.
|
||||
|
||||
2005-04-19 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* configure.in <crisv32-*-*, cris-*-*>: New local variable
|
||||
libgcj_ex_libffi. Have specific match for *-*-linux*. Separate
|
||||
matches for "*-*-aout" and "*-*-elf". Don't disable libffi for
|
||||
"*-*-elf" and "*-*-linux*".
|
||||
* configure: Regenerate.
|
||||
* configure.in <crisv32-*-*, cris-*-*>: New local variable
|
||||
libgcj_ex_libffi. Have specific match for *-*-linux*. Separate
|
||||
matches for "*-*-aout" and "*-*-elf". Don't disable libffi for
|
||||
"*-*-elf" and "*-*-linux*".
|
||||
* configure: Regenerate.
|
||||
|
||||
2005-04-06 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
* Makefile.tpl (BUILD_CONFIGARGS): Include --with-build-subdir.
|
||||
* Makefile.tpl (BUILD_CONFIGARGS): Include --with-build-subdir.
|
||||
(TARGET_CONFIGARGS): Include --with-target-subdir.
|
||||
(configure, all): New macros. Use them throughout.
|
||||
|
||||
@@ -12773,3 +12568,4 @@ left-margin: 8
|
||||
fill-column: 76
|
||||
version-control: never
|
||||
End:
|
||||
|
||||
|
||||
21
Makefile.def
21
Makefile.def
@@ -4,8 +4,7 @@ AutoGen definitions Makefile.tpl;
|
||||
// Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
|
||||
// This file was originally written by Nathanael Nerode.
|
||||
//
|
||||
// Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
|
||||
// Free Software Foundation
|
||||
// Copyright 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
|
||||
//
|
||||
// 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
|
||||
@@ -69,16 +68,6 @@ host_modules= { module= mpfr; lib_path=.libs; bootstrap=true;
|
||||
no_install= true;
|
||||
host="none-${host_vendor}-${host_os}";
|
||||
target="none-${host_vendor}-${host_os}"; };
|
||||
host_modules= { module= ppl; lib_path=.libs; bootstrap=true;
|
||||
extra_configure_flags='--disable-shared --with-libgmp-prefix=$$r/$(HOST_SUBDIR)/gmp/ --with-libgmpxx-prefix=$$r/$(HOST_SUBDIR)/gmp/';
|
||||
no_install= true;
|
||||
host="none-${host_vendor}-${host_os}";
|
||||
target="none-${host_vendor}-${host_os}"; };
|
||||
host_modules= { module= cloog; lib_path=.libs; bootstrap=true;
|
||||
extra_configure_flags='--disable-shared --with-gmp-library=$$r/$(HOST_SUBDIR)/gmp/.libs --with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-ppl=$$r/$(HOST_SUBDIR)/ppl/ --with-bits=gmp';
|
||||
no_install= true;
|
||||
host="none-${host_vendor}-${host_os}";
|
||||
target="none-${host_vendor}-${host_os}"; };
|
||||
host_modules= { module= gnuserv; };
|
||||
host_modules= { module= gold; bootstrap=true; };
|
||||
host_modules= { module= gprof; };
|
||||
@@ -306,8 +295,6 @@ dependencies = { module=all-gcc; on=all-libiberty; hard=true; };
|
||||
dependencies = { module=all-gcc; on=all-gmp; };
|
||||
dependencies = { module=all-gcc; on=all-intl; };
|
||||
dependencies = { module=all-gcc; on=all-mpfr; };
|
||||
dependencies = { module=all-gcc; on=all-ppl; };
|
||||
dependencies = { module=all-gcc; on=all-cloog; };
|
||||
dependencies = { module=all-gcc; on=all-build-texinfo; };
|
||||
dependencies = { module=all-gcc; on=all-build-bison; };
|
||||
dependencies = { module=all-gcc; on=all-build-byacc; };
|
||||
@@ -331,9 +318,6 @@ dependencies = { module=all-fixincludes; on=all-libiberty; };
|
||||
dependencies = { module=all-gnattools; on=all-target-libada; };
|
||||
|
||||
dependencies = { module=configure-mpfr; on=all-gmp; };
|
||||
dependencies = { module=configure-ppl; on=all-gmp; };
|
||||
dependencies = { module=configure-ppl; on=all-mpfr; };
|
||||
dependencies = { module=configure-cloog; on=all-ppl; };
|
||||
|
||||
// Host modules specific to gdb.
|
||||
dependencies = { module=configure-gdb; on=all-intl; };
|
||||
@@ -358,8 +342,6 @@ dependencies = { module=configure-bfd; on=configure-libiberty; hard=true; };
|
||||
dependencies = { module=configure-bfd; on=configure-intl; };
|
||||
dependencies = { module=all-bfd; on=all-libiberty; };
|
||||
dependencies = { module=all-bfd; on=all-intl; };
|
||||
dependencies = { module=configure-opcodes; on=configure-libiberty; hard=true; };
|
||||
dependencies = { module=all-opcodes; on=all-libiberty; };
|
||||
|
||||
dependencies = { module=configure-binutils; on=configure-intl; };
|
||||
dependencies = { module=all-binutils; on=all-libiberty; };
|
||||
@@ -499,7 +481,6 @@ lang_env_dependencies = { module=libgcc; no_gcc=true; no_c=true; };
|
||||
lang_env_dependencies = { module=libiberty; no_c=true; };
|
||||
|
||||
dependencies = { module=configure-target-boehm-gc; on=configure-target-qthreads; };
|
||||
dependencies = { module=configure-target-boehm-gc; on=all-target-libstdc++-v3; };
|
||||
dependencies = { module=configure-target-fastjar; on=configure-target-zlib; };
|
||||
dependencies = { module=all-target-fastjar; on=all-target-zlib; };
|
||||
dependencies = { module=all-target-fastjar; on=all-target-libiberty; };
|
||||
|
||||
2237
Makefile.in
2237
Makefile.in
File diff suppressed because it is too large
Load Diff
12
Makefile.tpl
12
Makefile.tpl
@@ -199,10 +199,6 @@ HOST_EXPORTS = \
|
||||
TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
|
||||
GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
|
||||
GMPINC="$(HOST_GMPINC)"; export GMPINC; \
|
||||
PPLLIBS="$(HOST_PPLLIBS)"; export PPLLIBS; \
|
||||
PPLINC="$(HOST_PPLINC)"; export PPLINC; \
|
||||
CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \
|
||||
CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \
|
||||
@if gcc-bootstrap
|
||||
$(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
|
||||
@endif gcc-bootstrap
|
||||
@@ -262,14 +258,6 @@ NORMAL_TARGET_EXPORTS = \
|
||||
HOST_GMPLIBS = @gmplibs@
|
||||
HOST_GMPINC = @gmpinc@
|
||||
|
||||
# Where to find PPL
|
||||
HOST_PPLLIBS = @ppllibs@
|
||||
HOST_PPLINC = @pplinc@
|
||||
|
||||
# Where to find CLOOG
|
||||
HOST_CLOOGLIBS = @clooglibs@
|
||||
HOST_CLOOGINC = @clooginc@
|
||||
|
||||
# ----------------------------------------------
|
||||
# Programs producing files for the BUILD machine
|
||||
# ----------------------------------------------
|
||||
|
||||
53
config-ml.in
53
config-ml.in
@@ -135,12 +135,7 @@ do
|
||||
*) optarg=yes ;;
|
||||
esac
|
||||
enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
|
||||
# enable_shared and enable_static are handled by configure.
|
||||
# Don't undo its work.
|
||||
case $enableopt in
|
||||
enable_shared | enable_static) ;;
|
||||
*) eval $enableopt="$optarg" ;;
|
||||
esac
|
||||
eval $enableopt="$optarg"
|
||||
;;
|
||||
--norecursion | --no-recursion)
|
||||
ml_norecursion=yes
|
||||
@@ -387,6 +382,28 @@ mips*-*-*)
|
||||
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 ]
|
||||
@@ -478,6 +495,30 @@ powerpc*-*-* | rs6000*-*-*)
|
||||
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.
|
||||
|
||||
22
config.guess
vendored
22
config.guess
vendored
@@ -4,7 +4,7 @@
|
||||
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
||||
# Free Software Foundation, Inc.
|
||||
|
||||
timestamp='2008-12-18'
|
||||
timestamp='2008-04-14'
|
||||
|
||||
# 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
|
||||
@@ -331,20 +331,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit ;;
|
||||
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
||||
eval $set_cc_for_build
|
||||
SUN_ARCH="i386"
|
||||
# If there is a compiler, see if it is configured for 64-bit objects.
|
||||
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
||||
# This test works for both compilers.
|
||||
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
||||
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
||||
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
||||
grep IS_64BIT_ARCH >/dev/null
|
||||
then
|
||||
SUN_ARCH="x86_64"
|
||||
fi
|
||||
fi
|
||||
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit ;;
|
||||
sun4*:SunOS:6*:*)
|
||||
# According to config.sub, this is the proper way to canonicalize
|
||||
@@ -809,7 +796,7 @@ EOF
|
||||
x86)
|
||||
echo i586-pc-interix${UNAME_RELEASE}
|
||||
exit ;;
|
||||
EM64T | authenticamd | genuineintel)
|
||||
EM64T | authenticamd)
|
||||
echo x86_64-unknown-interix${UNAME_RELEASE}
|
||||
exit ;;
|
||||
IA64)
|
||||
@@ -948,9 +935,6 @@ EOF
|
||||
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
||||
exit ;;
|
||||
padre:Linux:*:*)
|
||||
echo sparc-unknown-linux-gnu
|
||||
exit ;;
|
||||
parisc:Linux:*:* | hppa:Linux:*:*)
|
||||
# Look for CPU level
|
||||
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
|
||||
|
||||
24
config.sub
vendored
24
config.sub
vendored
@@ -4,7 +4,7 @@
|
||||
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
|
||||
# Free Software Foundation, Inc.
|
||||
|
||||
timestamp='2008-12-11'
|
||||
timestamp='2008-04-14'
|
||||
|
||||
# This file is (in principle) common to ALL GNU software.
|
||||
# The presence of a machine in this file suggests that SOME GNU software
|
||||
@@ -249,7 +249,6 @@ case $basic_machine in
|
||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||
| i370 | i860 | i960 | ia64 \
|
||||
| ip2k | iq2000 \
|
||||
| lm32 \
|
||||
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
||||
| maxq | mb | microblaze | mcore | mep | metag \
|
||||
| mips | mipsbe | mipseb | mipsel | mipsle \
|
||||
@@ -280,7 +279,7 @@ case $basic_machine in
|
||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
||||
| pyramid \
|
||||
| score \
|
||||
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
||||
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
||||
| sh64 | sh64le \
|
||||
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
||||
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
||||
@@ -289,7 +288,7 @@ case $basic_machine in
|
||||
| v850 | v850e \
|
||||
| we32k \
|
||||
| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
|
||||
| z8k | z80)
|
||||
| z8k)
|
||||
basic_machine=$basic_machine-unknown
|
||||
;;
|
||||
m6811 | m68hc11 | m6812 | m68hc12)
|
||||
@@ -332,7 +331,6 @@ case $basic_machine in
|
||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||
| i*86-* | i860-* | i960-* | ia64-* \
|
||||
| ip2k-* | iq2000-* \
|
||||
| lm32-* \
|
||||
| m32c-* | m32r-* | m32rle-* \
|
||||
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
||||
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
|
||||
@@ -364,7 +362,7 @@ case $basic_machine in
|
||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
||||
| pyramid-* \
|
||||
| romp-* | rs6000-* \
|
||||
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
||||
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
||||
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
||||
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
||||
| sparclite-* \
|
||||
@@ -377,7 +375,7 @@ case $basic_machine in
|
||||
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
|
||||
| xstormy16-* | xtensa*-* \
|
||||
| ymp-* \
|
||||
| z8k-* | z80-*)
|
||||
| z8k-*)
|
||||
;;
|
||||
# Recognize the basic CPU types without company name, with glob match.
|
||||
xtensa*)
|
||||
@@ -465,10 +463,6 @@ case $basic_machine in
|
||||
basic_machine=c90-cray
|
||||
os=-unicos
|
||||
;;
|
||||
cegcc)
|
||||
basic_machine=arm-unknown
|
||||
os=-cegcc
|
||||
;;
|
||||
convex-c1)
|
||||
basic_machine=c1-convex
|
||||
os=-bsd
|
||||
@@ -1142,10 +1136,6 @@ case $basic_machine in
|
||||
basic_machine=z8k-unknown
|
||||
os=-sim
|
||||
;;
|
||||
z80-*-coff)
|
||||
basic_machine=z80-unknown
|
||||
os=-sim
|
||||
;;
|
||||
none)
|
||||
basic_machine=none-none
|
||||
os=-none
|
||||
@@ -1184,7 +1174,7 @@ case $basic_machine in
|
||||
we32k)
|
||||
basic_machine=we32k-att
|
||||
;;
|
||||
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
|
||||
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
|
||||
basic_machine=sh-unknown
|
||||
;;
|
||||
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
|
||||
@@ -1266,7 +1256,7 @@ case $os in
|
||||
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||
| -chorusos* | -chorusrdb* | -cegcc* \
|
||||
| -chorusos* | -chorusrdb* \
|
||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
|
||||
| -uxpv* | -beos* | -mpeix* | -udk* \
|
||||
|
||||
@@ -1,14 +1,3 @@
|
||||
2008-11-21 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
Fix PR/25502
|
||||
* mh-mingw (BOOT_CFLAGS): Add -Wno-pedantic-ms-format switch.
|
||||
|
||||
2008-11-12 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
PR target/27880
|
||||
* unwind_ipinfo.m4 (GCC_CHECK_UNWIND_GETIPINFO): Change from
|
||||
link test to target based test.
|
||||
|
||||
2008-08-09 Richard Sandiford <rdsandiford@googlemail.com>
|
||||
|
||||
* mt-mips16-compat: New file, taken from mt-mips-elfoabi.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Add -D__USE_MINGW_ACCESS to enable the built compiler to work on Windows
|
||||
# Vista (see PR33281 for details).
|
||||
BOOT_CFLAGS += -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format
|
||||
BOOT_CFLAGS += -D__USE_MINGW_ACCESS
|
||||
CFLAGS += -D__USE_MINGW_ACCESS
|
||||
# Increase stack limit to same as Linux default.
|
||||
LDFLAGS += -Wl,--stack,8388608
|
||||
|
||||
@@ -1,31 +1,22 @@
|
||||
dnl
|
||||
dnl Check whether _Unwind_GetIPInfo is available without doing a link
|
||||
dnl test so we can use this with libstdc++-v3 and libjava. Need to
|
||||
dnl use $target to set defaults because automatic checking is not possible
|
||||
dnl without a link test (and maybe even with a link test).
|
||||
dnl Check whether _Unwind_GetIPInfo is available.
|
||||
dnl
|
||||
|
||||
AC_DEFUN([GCC_CHECK_UNWIND_GETIPINFO], [
|
||||
AC_ARG_WITH(system-libunwind,
|
||||
[ --with-system-libunwind use installed libunwind])
|
||||
# If system-libunwind was not specifically set, pick a default setting.
|
||||
if test x$with_system_libunwind = x; then
|
||||
case ${target} in
|
||||
ia64-*-hpux*) with_system_libunwind=yes ;;
|
||||
*) with_system_libunwind=no ;;
|
||||
esac
|
||||
fi
|
||||
# Based on system-libunwind and target, do we have ipinfo?
|
||||
if test x$with_system_libunwind = xyes; then
|
||||
case ${target} in
|
||||
ia64-*-*) have_unwind_getipinfo=no ;;
|
||||
*) have_unwind_getipinfo=yes ;;
|
||||
esac
|
||||
else
|
||||
have_unwind_getipinfo=yes
|
||||
fi
|
||||
|
||||
if test x$have_unwind_getipinfo = xyes; then
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
ac_save_CXXFLAGS="$CXXFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS -fno-exceptions"
|
||||
AC_MSG_CHECKING([for _Unwind_GetIPInfo])
|
||||
AC_CACHE_VAL(gcc_cv_getipinfo, [
|
||||
AC_TRY_LINK([extern "C" { extern void _Unwind_GetIPInfo(); }],
|
||||
[_Unwind_GetIPInfo();],
|
||||
[gcc_cv_getipinfo=yes],
|
||||
[gcc_cv_getipinfo=no])
|
||||
])
|
||||
if test $gcc_cv_getipinfo = yes; then
|
||||
AC_DEFINE(HAVE_GETIPINFO, 1, [Define if _Unwind_GetIPInfo is available.])
|
||||
fi
|
||||
AC_MSG_RESULT($gcc_cv_getipinfo)
|
||||
CXXFLAGS="$ac_save_CXXFLAGS"
|
||||
AC_LANG_RESTORE
|
||||
])
|
||||
|
||||
284
configure
vendored
284
configure
vendored
@@ -272,7 +272,7 @@ PACKAGE_STRING=
|
||||
PACKAGE_BUGREPORT=
|
||||
|
||||
ac_unique_file="move-if-change"
|
||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOPLEVEL_CONFIGURE_ARGUMENTS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc ppllibs pplinc clooglibs clooginc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
|
||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS TOPLEVEL_CONFIGURE_ARGUMENTS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET DEBUG_PREFIX_CFLAGS_FOR_TARGET CFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET RPATH_ENVVAR GCC_SHLIB_SUBDIR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs AR_FOR_BUILD AS_FOR_BUILD CC_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXX_FOR_BUILD DLLTOOL_FOR_BUILD GCJ_FOR_BUILD GFORTRAN_FOR_BUILD LDFLAGS_FOR_BUILD LD_FOR_BUILD NM_FOR_BUILD RANLIB_FOR_BUILD WINDMC_FOR_BUILD WINDRES_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
|
||||
ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
|
||||
ac_pwd=`pwd`
|
||||
|
||||
@@ -935,8 +935,6 @@ Optional Features:
|
||||
--enable-gold use gold instead of ld
|
||||
--enable-libada build libada directory
|
||||
--enable-libssp build libssp directory
|
||||
--disable-ppl-version-check disable check for PPL version
|
||||
--disable-cloog-version-check disable check for CLooG version
|
||||
--enable-stage1-languages[=all] choose additional languages to build during
|
||||
stage1. Mostly useful for compiler development.
|
||||
--enable-objc-gc enable use of Boehm's garbage collector with the
|
||||
@@ -969,17 +967,6 @@ Optional Packages:
|
||||
plus --with-gmp-lib=PATH/lib
|
||||
--with-gmp-include=PATH specify directory for installed GMP include files
|
||||
--with-gmp-lib=PATH specify directory for the installed GMP library
|
||||
--with-ppl=PATH Specify prefix directory for the installed PPL package
|
||||
Equivalent to --with-ppl-include=PATH/include
|
||||
plus --with-ppl-lib=PATH/lib
|
||||
--with-ppl-include=PATH Specify directory for installed PPL include files
|
||||
--with-ppl-lib=PATH Specify the directory for the installed PPL library
|
||||
--with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
|
||||
Equivalent to --with-cloog-include=PATH/include
|
||||
plus --with-cloog-lib=PATH/lib
|
||||
--with-cloog-include=PATH Specify directory for installed CLooG include files
|
||||
--with-cloog-lib=PATH Specify the directory for the installed CLooG library
|
||||
--with-cloog-polylib=PATH Specify prefix directory for the installed CLooG-PolyLib package
|
||||
--with-build-sysroot=SYSROOT
|
||||
use sysroot as the system root during the build
|
||||
--with-debug-prefix-map='A=B C=D ...'
|
||||
@@ -1886,7 +1873,7 @@ build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fix
|
||||
|
||||
# these libraries are used by various programs built for the host environment
|
||||
#
|
||||
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog"
|
||||
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
|
||||
|
||||
# these tools are built for the host environment
|
||||
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
|
||||
@@ -2210,14 +2197,10 @@ case "${target}" in
|
||||
*-*-chorusos)
|
||||
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
||||
;;
|
||||
powerpc-*-darwin* | x86_64-*-darwin[912]*)
|
||||
powerpc-*-darwin* | i[3456789]86-*-darwin* | x86_64-*-darwin9*)
|
||||
noconfigdirs="$noconfigdirs ld gas gdb gprof"
|
||||
noconfigdirs="$noconfigdirs sim target-rda"
|
||||
;;
|
||||
i[3456789]86-*-darwin*)
|
||||
noconfigdirs="$noconfigdirs ld gas gprof"
|
||||
noconfigdirs="$noconfigdirs sim target-rda"
|
||||
;;
|
||||
*-*-darwin*)
|
||||
noconfigdirs="$noconfigdirs ld gas gdb gprof"
|
||||
noconfigdirs="$noconfigdirs sim target-rda"
|
||||
@@ -2452,10 +2435,6 @@ case "${target}" in
|
||||
# No gdb or ld support yet.
|
||||
noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
|
||||
;;
|
||||
ia64*-*-*vms*)
|
||||
# No gdb or ld support yet.
|
||||
noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
|
||||
;;
|
||||
i370-*-opened*)
|
||||
;;
|
||||
i[3456789]86-*-coff | i[3456789]86-*-elf)
|
||||
@@ -2663,6 +2642,9 @@ case "${target}" in
|
||||
;;
|
||||
sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
|
||||
;;
|
||||
spu-*-*)
|
||||
skipdirs="target-libssp"
|
||||
;;
|
||||
v810-*-*)
|
||||
noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
|
||||
;;
|
||||
@@ -4679,7 +4661,7 @@ int
|
||||
main ()
|
||||
{
|
||||
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
|
||||
choke me
|
||||
#endif
|
||||
mpfr_t n;
|
||||
@@ -4729,7 +4711,7 @@ int
|
||||
main ()
|
||||
{
|
||||
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
|
||||
choke me
|
||||
#endif
|
||||
mpfr_t n; mpfr_init(n);
|
||||
@@ -4785,7 +4767,7 @@ rm -f conftest.err conftest.$ac_objext \
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
|
||||
if test x$have_gmp != xyes; then
|
||||
{ { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
|
||||
{ { echo "$as_me:$LINENO: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
|
||||
Try the --with-gmp and/or --with-mpfr options to specify their locations.
|
||||
Copies of these libraries' source code can be found at their respective
|
||||
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
|
||||
@@ -4793,7 +4775,7 @@ See also http://gcc.gnu.org/install/prerequisites.html for additional info.
|
||||
If you obtained GMP and/or MPFR from a vendor distribution package, make
|
||||
sure that you have installed both the libraries and the header files.
|
||||
They may be located in separate packages." >&5
|
||||
echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
|
||||
echo "$as_me: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
|
||||
Try the --with-gmp and/or --with-mpfr options to specify their locations.
|
||||
Copies of these libraries' source code can be found at their respective
|
||||
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
|
||||
@@ -4809,246 +4791,6 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
# Check for PPL
|
||||
ppl_major_version=0
|
||||
ppl_minor_version=10
|
||||
ppllibs=" -lppl_c -lppl -lgmpxx "
|
||||
pplinc=
|
||||
|
||||
|
||||
# Check whether --with-ppl or --without-ppl was given.
|
||||
if test "${with_ppl+set}" = set; then
|
||||
withval="$with_ppl"
|
||||
|
||||
fi;
|
||||
|
||||
# Check whether --with-ppl_include or --without-ppl_include was given.
|
||||
if test "${with_ppl_include+set}" = set; then
|
||||
withval="$with_ppl_include"
|
||||
|
||||
fi;
|
||||
|
||||
# Check whether --with-ppl_lib or --without-ppl_lib was given.
|
||||
if test "${with_ppl_lib+set}" = set; then
|
||||
withval="$with_ppl_lib"
|
||||
|
||||
fi;
|
||||
|
||||
if test "x$with_ppl" != x; then
|
||||
ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
|
||||
pplinc="-I$with_ppl/include $pplinc"
|
||||
LIBS="$ppllibs $LIBS"
|
||||
fi
|
||||
if test "x$with_ppl_include" != x; then
|
||||
pplinc="-I$with_ppl_include $pplinc"
|
||||
fi
|
||||
if test "x$with_ppl_lib" != x; then
|
||||
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
|
||||
LIBS="$ppllibs $LIBS"
|
||||
fi
|
||||
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
|
||||
ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
|
||||
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
|
||||
LIBS="$ppllibs $LIBS"
|
||||
fi
|
||||
|
||||
# Check whether --enable-ppl-version-check or --disable-ppl-version-check was given.
|
||||
if test "${enable_ppl_version_check+set}" = set; then
|
||||
enableval="$enable_ppl_version_check"
|
||||
ENABLE_PPL_CHECK=$enableval
|
||||
else
|
||||
ENABLE_PPL_CHECK=yes
|
||||
fi;
|
||||
|
||||
if test "${ENABLE_PPL_CHECK}" = "yes"; then
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $pplinc $gmpinc"
|
||||
echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
|
||||
echo $ECHO_N "checking for version $ppl_major_version.$ppl_minor_version of PPL... $ECHO_C" >&6
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
#include "ppl_c.h"
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
#if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
|
||||
choke me
|
||||
#endif
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
echo "$as_me:$LINENO: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6; ppllibs= ; pplinc=
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
fi
|
||||
|
||||
# Flags needed for PPL
|
||||
|
||||
|
||||
|
||||
|
||||
# Check for CLOOG
|
||||
clooglibs=" -lcloog "
|
||||
clooginc=" -DCLOOG_PPL_BACKEND "
|
||||
|
||||
|
||||
# Check whether --with-cloog or --without-cloog was given.
|
||||
if test "${with_cloog+set}" = set; then
|
||||
withval="$with_cloog"
|
||||
|
||||
fi;
|
||||
|
||||
# Check whether --with-cloog_include or --without-cloog_include was given.
|
||||
if test "${with_cloog_include+set}" = set; then
|
||||
withval="$with_cloog_include"
|
||||
|
||||
fi;
|
||||
|
||||
# Check whether --with-cloog_lib or --without-cloog_lib was given.
|
||||
if test "${with_cloog_lib+set}" = set; then
|
||||
withval="$with_cloog_lib"
|
||||
|
||||
fi;
|
||||
|
||||
# Check whether --with-cloog-polylib or --without-cloog-polylib was given.
|
||||
if test "${with_cloog_polylib+set}" = set; then
|
||||
withval="$with_cloog_polylib"
|
||||
|
||||
fi;
|
||||
|
||||
if test "x$with_cloog" != x; then
|
||||
clooglibs="-L$with_cloog/lib -lcloog"
|
||||
clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
|
||||
LIBS="$clooglibs $LIBS"
|
||||
fi
|
||||
if test "x$with_cloog_polylib" != x; then
|
||||
clooglibs="-L$with_cloog/lib -lcloog"
|
||||
clooginc="-I$with_cloog/include "
|
||||
LIBS="$clooglibs $LIBS"
|
||||
fi
|
||||
if test "x$with_cloog_include" != x; then
|
||||
clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
|
||||
fi
|
||||
if test "x$with_cloog_lib" != x; then
|
||||
clooglibs="-L$with_cloog_lib -lcloog"
|
||||
LIBS="$clooglibs $LIBS"
|
||||
fi
|
||||
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
|
||||
clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
|
||||
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
|
||||
LIBS="$clooglibs $LIBS"
|
||||
fi
|
||||
|
||||
# Check whether --enable-cloog-version-check or --disable-cloog-version-check was given.
|
||||
if test "${enable_cloog_version_check+set}" = set; then
|
||||
enableval="$enable_cloog_version_check"
|
||||
ENABLE_CLOOG_CHECK=$enableval
|
||||
else
|
||||
ENABLE_CLOOG_CHECK=yes
|
||||
fi;
|
||||
|
||||
if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
|
||||
echo "$as_me:$LINENO: checking for correct version of CLooG" >&5
|
||||
echo $ECHO_N "checking for correct version of CLooG... $ECHO_C" >&6
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
#include "cloog/cloog.h"
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
#if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
|
||||
choke me
|
||||
#endif
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>conftest.er1
|
||||
ac_status=$?
|
||||
grep -v '^ *+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -z "$ac_c_werror_flag"
|
||||
|| test ! -s conftest.err'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
echo "$as_me:$LINENO: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
echo "$as_me:$LINENO: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6; clooglibs= ; clooginc=
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
fi
|
||||
|
||||
# Flags needed for CLOOG
|
||||
|
||||
|
||||
|
||||
|
||||
# By default, C is the only stage 1 language.
|
||||
stage1_languages=,c,
|
||||
|
||||
@@ -5861,8 +5603,6 @@ case "${host}" in
|
||||
esac
|
||||
|
||||
# On systems where the dynamic library environment variable is PATH,
|
||||
# gcc/ will put dynamic libraries into a subdirectory to avoid adding
|
||||
# built executables to PATH.
|
||||
if test "$RPATH_ENVVAR" = PATH; then
|
||||
GCC_SHLIB_SUBDIR=/shlib
|
||||
else
|
||||
@@ -13235,10 +12975,6 @@ s,@ac_ct_GNATMAKE@,$ac_ct_GNATMAKE,;t t
|
||||
s,@do_compare@,$do_compare,;t t
|
||||
s,@gmplibs@,$gmplibs,;t t
|
||||
s,@gmpinc@,$gmpinc,;t t
|
||||
s,@ppllibs@,$ppllibs,;t t
|
||||
s,@pplinc@,$pplinc,;t t
|
||||
s,@clooglibs@,$clooglibs,;t t
|
||||
s,@clooginc@,$clooginc,;t t
|
||||
s,@stage1_languages@,$stage1_languages,;t t
|
||||
s,@SYSROOT_CFLAGS_FOR_TARGET@,$SYSROOT_CFLAGS_FOR_TARGET,;t t
|
||||
s,@DEBUG_PREFIX_CFLAGS_FOR_TARGET@,$DEBUG_PREFIX_CFLAGS_FOR_TARGET,;t t
|
||||
|
||||
134
configure.ac
134
configure.ac
@@ -158,7 +158,7 @@ build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fix
|
||||
|
||||
# these libraries are used by various programs built for the host environment
|
||||
#
|
||||
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog"
|
||||
host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr"
|
||||
|
||||
# these tools are built for the host environment
|
||||
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
|
||||
@@ -446,14 +446,10 @@ case "${target}" in
|
||||
*-*-chorusos)
|
||||
noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
|
||||
;;
|
||||
powerpc-*-darwin* | x86_64-*-darwin[[912]]*)
|
||||
powerpc-*-darwin* | i[[3456789]]86-*-darwin* | x86_64-*-darwin9*)
|
||||
noconfigdirs="$noconfigdirs ld gas gdb gprof"
|
||||
noconfigdirs="$noconfigdirs sim target-rda"
|
||||
;;
|
||||
i[[3456789]]86-*-darwin*)
|
||||
noconfigdirs="$noconfigdirs ld gas gprof"
|
||||
noconfigdirs="$noconfigdirs sim target-rda"
|
||||
;;
|
||||
*-*-darwin*)
|
||||
noconfigdirs="$noconfigdirs ld gas gdb gprof"
|
||||
noconfigdirs="$noconfigdirs sim target-rda"
|
||||
@@ -688,10 +684,6 @@ case "${target}" in
|
||||
# No gdb or ld support yet.
|
||||
noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
|
||||
;;
|
||||
ia64*-*-*vms*)
|
||||
# No gdb or ld support yet.
|
||||
noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
|
||||
;;
|
||||
i370-*-opened*)
|
||||
;;
|
||||
i[[3456789]]86-*-coff | i[[3456789]]86-*-elf)
|
||||
@@ -899,6 +891,9 @@ case "${target}" in
|
||||
;;
|
||||
sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
|
||||
;;
|
||||
spu-*-*)
|
||||
skipdirs="target-libssp"
|
||||
;;
|
||||
v810-*-*)
|
||||
noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
|
||||
;;
|
||||
@@ -1272,11 +1267,11 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
|
||||
if test x"$have_gmp" = xyes; then
|
||||
saved_LIBS="$LIBS"
|
||||
LIBS="$LIBS $gmplibs"
|
||||
dnl MPFR 2.3.0 is acceptable, but MPFR 2.3.2 is better.
|
||||
dnl MPFR 2.2.1 is acceptable, but MPFR 2.3.0 is better.
|
||||
AC_MSG_CHECKING([for correct version of mpfr.h])
|
||||
AC_TRY_LINK([#include <gmp.h>
|
||||
#include <mpfr.h>],[
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
|
||||
choke me
|
||||
#endif
|
||||
mpfr_t n;
|
||||
@@ -1289,7 +1284,7 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
|
||||
mpfr_subnormalize (x, t, GMP_RNDN);
|
||||
], [AC_TRY_LINK([#include <gmp.h>
|
||||
#include <mpfr.h>],[
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
|
||||
#if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0)
|
||||
choke me
|
||||
#endif
|
||||
mpfr_t n; mpfr_init(n);
|
||||
@@ -1300,7 +1295,7 @@ if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
|
||||
if test x$have_gmp != xyes; then
|
||||
AC_MSG_ERROR([Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
|
||||
AC_MSG_ERROR([Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
|
||||
Try the --with-gmp and/or --with-mpfr options to specify their locations.
|
||||
Copies of these libraries' source code can be found at their respective
|
||||
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
|
||||
@@ -1315,115 +1310,6 @@ fi
|
||||
AC_SUBST(gmplibs)
|
||||
AC_SUBST(gmpinc)
|
||||
|
||||
|
||||
# Check for PPL
|
||||
ppl_major_version=0
|
||||
ppl_minor_version=10
|
||||
ppllibs=" -lppl_c -lppl -lgmpxx "
|
||||
pplinc=
|
||||
|
||||
AC_ARG_WITH(ppl, [ --with-ppl=PATH Specify prefix directory for the installed PPL package
|
||||
Equivalent to --with-ppl-include=PATH/include
|
||||
plus --with-ppl-lib=PATH/lib])
|
||||
AC_ARG_WITH(ppl_include, [ --with-ppl-include=PATH Specify directory for installed PPL include files])
|
||||
AC_ARG_WITH(ppl_lib, [ --with-ppl-lib=PATH Specify the directory for the installed PPL library])
|
||||
|
||||
if test "x$with_ppl" != x; then
|
||||
ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
|
||||
pplinc="-I$with_ppl/include $pplinc"
|
||||
LIBS="$ppllibs $LIBS"
|
||||
fi
|
||||
if test "x$with_ppl_include" != x; then
|
||||
pplinc="-I$with_ppl_include $pplinc"
|
||||
fi
|
||||
if test "x$with_ppl_lib" != x; then
|
||||
ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
|
||||
LIBS="$ppllibs $LIBS"
|
||||
fi
|
||||
if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
|
||||
ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
|
||||
pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
|
||||
LIBS="$ppllibs $LIBS"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(ppl-version-check,
|
||||
[ --disable-ppl-version-check disable check for PPL version],
|
||||
ENABLE_PPL_CHECK=$enableval,
|
||||
ENABLE_PPL_CHECK=yes)
|
||||
|
||||
if test "${ENABLE_PPL_CHECK}" = "yes"; then
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $pplinc $gmpinc"
|
||||
AC_MSG_CHECKING([for version $ppl_major_version.$ppl_minor_version of PPL])
|
||||
AC_TRY_COMPILE([#include "ppl_c.h"],[
|
||||
#if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
|
||||
choke me
|
||||
#endif
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); ppllibs= ; pplinc= ])
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
fi
|
||||
|
||||
# Flags needed for PPL
|
||||
AC_SUBST(ppllibs)
|
||||
AC_SUBST(pplinc)
|
||||
|
||||
|
||||
# Check for CLOOG
|
||||
clooglibs=" -lcloog "
|
||||
clooginc=" -DCLOOG_PPL_BACKEND "
|
||||
|
||||
AC_ARG_WITH(cloog, [ --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
|
||||
Equivalent to --with-cloog-include=PATH/include
|
||||
plus --with-cloog-lib=PATH/lib])
|
||||
AC_ARG_WITH(cloog_include, [ --with-cloog-include=PATH Specify directory for installed CLooG include files])
|
||||
AC_ARG_WITH(cloog_lib, [ --with-cloog-lib=PATH Specify the directory for the installed CLooG library])
|
||||
AC_ARG_WITH(cloog-polylib, [ --with-cloog-polylib=PATH Specify prefix directory for the installed CLooG-PolyLib package])
|
||||
|
||||
if test "x$with_cloog" != x; then
|
||||
clooglibs="-L$with_cloog/lib -lcloog"
|
||||
clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
|
||||
LIBS="$clooglibs $LIBS"
|
||||
fi
|
||||
if test "x$with_cloog_polylib" != x; then
|
||||
clooglibs="-L$with_cloog/lib -lcloog"
|
||||
clooginc="-I$with_cloog/include "
|
||||
LIBS="$clooglibs $LIBS"
|
||||
fi
|
||||
if test "x$with_cloog_include" != x; then
|
||||
clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
|
||||
fi
|
||||
if test "x$with_cloog_lib" != x; then
|
||||
clooglibs="-L$with_cloog_lib -lcloog"
|
||||
LIBS="$clooglibs $LIBS"
|
||||
fi
|
||||
if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
|
||||
clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
|
||||
clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
|
||||
LIBS="$clooglibs $LIBS"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(cloog-version-check,
|
||||
[ --disable-cloog-version-check disable check for CLooG version],
|
||||
ENABLE_CLOOG_CHECK=$enableval,
|
||||
ENABLE_CLOOG_CHECK=yes)
|
||||
|
||||
if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
|
||||
AC_MSG_CHECKING([for correct version of CLooG])
|
||||
AC_TRY_COMPILE([#include "cloog/cloog.h"],[
|
||||
#if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
|
||||
choke me
|
||||
#endif
|
||||
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); clooglibs= ; clooginc= ])
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
fi
|
||||
|
||||
# Flags needed for CLOOG
|
||||
AC_SUBST(clooglibs)
|
||||
AC_SUBST(clooginc)
|
||||
|
||||
|
||||
# By default, C is the only stage 1 language.
|
||||
stage1_languages=,c,
|
||||
|
||||
@@ -2173,8 +2059,6 @@ case "${host}" in
|
||||
esac
|
||||
|
||||
# On systems where the dynamic library environment variable is PATH,
|
||||
# gcc/ will put dynamic libraries into a subdirectory to avoid adding
|
||||
# built executables to PATH.
|
||||
if test "$RPATH_ENVVAR" = PATH; then
|
||||
GCC_SHLIB_SUBDIR=/shlib
|
||||
else
|
||||
|
||||
673
cpu/ChangeLog
673
cpu/ChangeLog
@@ -1,673 +0,0 @@
|
||||
2009-01-07 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* frv.cpu (mabshs): Explicitly sign-extend arguments of abs to DI.
|
||||
(DI-ext-HI, DI-ext-UHI, DI-ext-DI): New pmacros.
|
||||
(media-arith-sat-semantics): Explicitly sign- or zero-extend
|
||||
arguments of "operation" to DI using "mode" and the new pmacros.
|
||||
|
||||
2009-01-03 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* cris.cpu (cris-implemented-writable-specregs-v32): Correct size
|
||||
of number 2, PID.
|
||||
|
||||
2008-12-23 Jon Beniston <jon@beniston.com>
|
||||
|
||||
* lm32.cpu: New file.
|
||||
* lm32.opc: New file.
|
||||
|
||||
2008-01-29 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* mt.opc (parse_imm16): Apply 2007-09-26 opcodes/mt-asm.c change
|
||||
to source.
|
||||
|
||||
2007-10-22 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* cris.cpu (movs, movu): Use result of extension operation when
|
||||
updating flags.
|
||||
|
||||
2007-07-04 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* cris.cpu: Update copyright notice to refer to GPLv3.
|
||||
* frv.cpu, frv.opc, iq10.cpu, iq2000m.cpu, iq2000.opc, m32c.cpu,
|
||||
m32c.opc, m32r.cpu, m32r.opc, mt.cpu, mt.opc, sh64-compact.cpu,
|
||||
sh64-media.cpu, sh.cpu, sh.opc, simplify.inc, xc16x.cpu,
|
||||
xc16x.opc: Likewise.
|
||||
* iq2000.cpu: Fix copyright notice to refer to FSF.
|
||||
|
||||
2007-04-30 Mark Salter <msalter@sadr.localdomain>
|
||||
|
||||
* frv.cpu (spr-names): Support new coprocessor SPR registers.
|
||||
|
||||
2007-04-20 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* xc16x.cpu: Restore after accidentally overwriting this file with
|
||||
xc16x.opc.
|
||||
|
||||
2007-03-29 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (Imm-8-s4n): Fix print hook.
|
||||
(Lab-24-8, Lab-32-8, Lab-40-8): Fix.
|
||||
(arith-jnz-imm4-dst-defn): Make relaxable.
|
||||
(arith-jnz16-imm4-dst-defn): Fix encodings.
|
||||
|
||||
2007-03-20 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (f-dsp-40-u20, f-dsp-48-u20, Dsp-40-u20, Dsp-40-u20,
|
||||
mem20): New.
|
||||
(src16-16-20-An-relative-*): New.
|
||||
(dst16-*-20-An-relative-*): New.
|
||||
(dst16-16-16sa-*): New
|
||||
(dst16-16-16ar-*): New
|
||||
(dst32-16-16sa-Unprefixed-*): New
|
||||
(jsri): Fix operands.
|
||||
(setzx): Fix encoding.
|
||||
|
||||
2007-03-08 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* m32r.opc: Formatting.
|
||||
|
||||
2006-05-22 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* iq2000.cpu: Fix include paths for iq2000m.cpu and iq10.cpu.
|
||||
|
||||
2006-04-10 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.opc (parse_unsigned_bitbase): Take a new parameter which
|
||||
decides if this function accepts symbolic constants or not.
|
||||
(parse_signed_bitbase): Likewise.
|
||||
(parse_unsigned_bitbase8): Pass the new parameter.
|
||||
(parse_unsigned_bitbase11): Likewise.
|
||||
(parse_unsigned_bitbase16): Likewise.
|
||||
(parse_unsigned_bitbase19): Likewise.
|
||||
(parse_unsigned_bitbase27): Likewise.
|
||||
(parse_signed_bitbase8): Likewise.
|
||||
(parse_signed_bitbase11): Likewise.
|
||||
(parse_signed_bitbase19): Likewise.
|
||||
|
||||
2006-03-13 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (Bit3-S): New.
|
||||
(btst:s): New.
|
||||
* m32c.opc (parse_bit3_S): New.
|
||||
|
||||
* m32c.cpu (decimal-subtraction16-insn): Add second operand.
|
||||
(btst): Add optional :G suffix for MACH32.
|
||||
(or.b:S): New.
|
||||
(pop.w:G): Add optional :G suffix for MACH16.
|
||||
(push.b.imm): Fix syntax.
|
||||
|
||||
2006-03-10 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (mul.l): New.
|
||||
(mulu.l): New.
|
||||
|
||||
2006-03-03 Shrirang Khisti <shrirangk@kpitcummins.com)
|
||||
|
||||
* xc16x.opc (parse_hash): Return NULL if the input was parsed or
|
||||
an error message otherwise.
|
||||
(parse_dot, parse_pof, parse_pag, parse_sof, parse_seg): Likewise.
|
||||
Fix up comments to correctly describe the functions.
|
||||
|
||||
2006-02-24 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (RL_TYPE): New attribute, with macros.
|
||||
(Lab-8-24): Add RELAX.
|
||||
(unary-insn-defn-g, binary-arith-imm-dst-defn,
|
||||
binary-arith-imm4-dst-defn): Add 1ADDR attribute.
|
||||
(binary-arith-src-dst-defn): Add 2ADDR attribute.
|
||||
(jcnd16-5, jcnd16, jcnd32, jmp16.s, jmp16.b, jmp16.w, jmp16.a,
|
||||
jmp32.s, jmp32.b, jmp32.w, jmp32.a, jsr16.w, jsr16.a): Add JUMP
|
||||
attribute.
|
||||
(jsri16, jsri32): Add 1ADDR attribute.
|
||||
(jsr32.w, jsr32.a): Add JUMP attribute.
|
||||
|
||||
2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
|
||||
Anil Paranjape <anilp1@kpitcummins.com>
|
||||
Shilin Shakti <shilins@kpitcummins.com>
|
||||
|
||||
* xc16x.cpu: New file containing complete CGEN specific XC16X CPU
|
||||
description.
|
||||
* xc16x.opc: New file containing supporting XC16C routines.
|
||||
|
||||
2006-02-10 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* iq2000.opc (parse_hi16): Truncate shifted values to 16 bits.
|
||||
|
||||
2006-01-06 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (mov.w:q): Fix mode.
|
||||
(push32.b.imm): Likewise, for the comment.
|
||||
|
||||
2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
Second part of ms1 to mt renaming.
|
||||
* mt.cpu (define-arch, define-isa): Set name to mt.
|
||||
(define-mach): Adjust.
|
||||
* mt.opc (CGEN_ASM_HASH): Update.
|
||||
(mt_asm_hash, mt_cgen_insn_supported): Renamed.
|
||||
(parse_loopsize, parse_imm16): Adjust.
|
||||
|
||||
2005-12-13 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (jsri): Fix order so register names aren't treated as
|
||||
symbols.
|
||||
(indexb, indexbd, indexbs, indexl, indexld, indexls, indexw,
|
||||
indexwd, indexws): Fix encodings.
|
||||
|
||||
2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* mt.cpu: Rename from ms1.cpu.
|
||||
* mt.opc: Rename from ms1.opc.
|
||||
|
||||
2005-12-06 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* cris.cpu (simplecris-common-writable-specregs)
|
||||
(simplecris-common-readable-specregs): Split from
|
||||
simplecris-common-specregs. All users changed.
|
||||
(cris-implemented-writable-specregs-v0)
|
||||
(cris-implemented-readable-specregs-v0): Similar from
|
||||
cris-implemented-specregs-v0.
|
||||
(cris-implemented-writable-specregs-v3)
|
||||
(cris-implemented-readable-specregs-v3)
|
||||
(cris-implemented-writable-specregs-v8)
|
||||
(cris-implemented-readable-specregs-v8)
|
||||
(cris-implemented-writable-specregs-v10)
|
||||
(cris-implemented-readable-specregs-v10)
|
||||
(cris-implemented-writable-specregs-v32)
|
||||
(cris-implemented-readable-specregs-v32): Similar.
|
||||
(bdap-32-pc, move-m-pcplus-p0, move-m-spplus-p8): New
|
||||
insns and specializations.
|
||||
|
||||
2005-11-08 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
Add ms2
|
||||
* ms1.cpu (ms2, ms2bf): New architecture variant, cpu, machine and
|
||||
model.
|
||||
(f-uu8, f-uu1, f-imm16l, f-loopo, f-cb1sel, f-cb2sel, f-cb1incr,
|
||||
f-cb2incr, f-rc3): New fields.
|
||||
(LOOP): New instruction.
|
||||
(JAL-HAZARD): New hazard.
|
||||
(imm16o, loopsize, imm16l, rc3, cb1sel, cb2sel, cb1incr, cb2incr):
|
||||
New operands.
|
||||
(mul, muli, dbnz, iflush): Enable for ms2
|
||||
(jal, reti): Has JAL-HAZARD.
|
||||
(ldctxt, ldfb, stfb): Only ms1.
|
||||
(fbcb): Only ms1,ms1-003.
|
||||
(wfbinc, mefbinc, wfbincr, mwfbincr, fbcbincs, mfbcbincs,
|
||||
fbcbincrs, mfbcbincrs): Enable for ms2.
|
||||
(loop, loopu, dfbc, dwfb, fbwfb, dfbr): New ms2 insns.
|
||||
* ms1.opc (parse_loopsize): New.
|
||||
(parse_imm16): hi16/lo16 relocs are applicable to IMM16L.
|
||||
(print_pcrel): New.
|
||||
|
||||
2005-10-28 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
Contribute the following change:
|
||||
2003-09-24 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
* frv.opc: Use CGEN_ATTR_VALUE_ENUM_TYPE in place of
|
||||
CGEN_ATTR_VALUE_TYPE.
|
||||
* m32c.opc (m32c_cgen_insn_supported): Use CGEN_INSN_BITSET_ATTR_VALUE.
|
||||
Use cgen_bitset_intersect_p.
|
||||
|
||||
2005-10-27 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (Imm-8-s4n, Imm-12-s4n): New.
|
||||
(arith-jnz16-imm4-dst-defn, arith-jnz32-imm4-dst-defn,
|
||||
arith-jnz-imm4-dst-mach, arith-jnz-imm4-dst): Keep track of which
|
||||
imm operand is needed.
|
||||
(adjnz, sbjnz): Pass the right operands.
|
||||
(unary-insn-defn, unary16-defn, unary32-defn, unary-insn-mach,
|
||||
unary-insn): Add -g variants for opcodes that need to support :G.
|
||||
(not.BW:G, push.BW:G): Call it.
|
||||
(stzx16-imm8-imm8-dsp8sb, stzx16-imm8-imm8-dsp8fb,
|
||||
stzx16-imm8-imm8-abs16): Fix operand typos.
|
||||
* m32c.opc (m32c_asm_hash): Support bnCND.
|
||||
(parse_signed4n, print_signed4n): New.
|
||||
|
||||
2005-10-26 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (f-dsp-8-s24, Dsp-8-s24): New.
|
||||
(mov-dspsp-dst-defn, mov-src-dspsp-defn, mov16-dspsp-dst-defn,
|
||||
mov16-src-dspsp-defn, mov32-dspsp-dst-defn, mov32-src-dspsp-defn):
|
||||
dsp8[sp] is signed.
|
||||
(mov.WL:S #imm,A0/A1): dsp24 is signed (i.e. -0x800000..0xffffff).
|
||||
(mov.BW:S r0,r1): Fix typo r1l->r1.
|
||||
(tst): Allow :G suffix.
|
||||
* m32c.opc (parse_signed24): New, for -0x800000..0xffffff.
|
||||
|
||||
2005-10-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
||||
|
||||
* m32r.opc (parse_hi16): Do not assume a 32-bit host word size.
|
||||
|
||||
2005-10-25 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (add16-bQ-sp,add16-wQ-sp): Fix to allow either width by
|
||||
making one a macro of the other.
|
||||
|
||||
2005-10-21 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.cpu (lde, ste): Add dsp[a0] and [a1a] addressing.
|
||||
(indexb, indexbd, indexbs, indexw, indexwd, indexws, indexl,
|
||||
indexld, indexls): .w variants have `1' bit.
|
||||
(rot32.b): QI, not SI.
|
||||
(rot32.w): HI, not SI.
|
||||
(xchg16): HI for .w variant.
|
||||
|
||||
2005-10-19 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* m32r.opc (parse_slo16): Fix bad application of previous patch.
|
||||
|
||||
2005-10-18 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* m32r.opc (parse_slo16): Better version of previous patch.
|
||||
|
||||
2005-10-14 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
||||
|
||||
* cpu/m32r.opc (parse_slo16): Do not assume a 32-bit host word
|
||||
size.
|
||||
|
||||
2005-07-25 DJ Delorie <dj@redhat.com>
|
||||
|
||||
* m32c.opc (parse_unsigned8): Add %dsp8().
|
||||
(parse_signed8): Add %hi8().
|
||||
(parse_unsigned16): Add %dsp16().
|
||||
(parse_signed16): Add %lo16() and %hi16().
|
||||
(parse_lab_5_3): Make valuep a bfd_vma *.
|
||||
|
||||
2005-07-18 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* m32c.cpu (f-16-8, f-24-8, f-32-16, f-dsp-8-u24): New opcode
|
||||
components.
|
||||
(f-lab32-jmp-s): Fix insertion sequence.
|
||||
(Dsp-8-u24, Lab-5-3, Lab32-jmp-s): New operands.
|
||||
(Dsp-40-s8): Make parameter be signed.
|
||||
(Dsp-40-s16): Likewise.
|
||||
(Dsp-48-s8): Likewise.
|
||||
(Dsp-48-s16): Likewise.
|
||||
(Imm-13-u3): Likewise. (Despite its name!)
|
||||
(BitBase16-16-s8): Make the parameter be unsigned.
|
||||
(BitBase16-8-u11-S): Likewise.
|
||||
(Lab-8-8, Lab-8-16, Lab-16-8, jcnd16-5, jcnd16, jcnd32, jmp16.s,
|
||||
jmp16.b, jmp16.w, jmp32.s, jmp32.b, jmp32.w, jsp16.w, jsr32.w): Allow
|
||||
relaxation.
|
||||
|
||||
* m32c.opc: Fix formatting.
|
||||
Use safe-ctype.h instead of ctype.h
|
||||
Move duplicated code sequences into a macro.
|
||||
Fix compile time warnings about signedness mismatches.
|
||||
Remove dead code.
|
||||
(parse_lab_5_3): New parser function.
|
||||
|
||||
2005-07-16 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* m32c.opc (m32c_cgen_insn_supported): Use int, not CGEN_BITSET,
|
||||
to represent isa sets.
|
||||
|
||||
2005-07-15 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* m32c.cpu, m32c.opc: Fix copyright.
|
||||
|
||||
2005-07-14 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* m32c.cpu, m32c.opc: Machine description for the Renesas M32C.
|
||||
|
||||
2005-07-14 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* ms1.opc (print_dollarhex): Correct format string.
|
||||
|
||||
2005-07-06 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* iq2000.cpu: Include from binutils cpu dir.
|
||||
|
||||
2005-07-05 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* iq2000.opc (parse_lo16, parse_mlo16): Make value parameter
|
||||
unsigned in order to avoid compile time warnings about sign
|
||||
conflicts.
|
||||
|
||||
* ms1.opc (parse_*): Likewise.
|
||||
(parse_imm16): Use a "void *" as it is passed both signed and
|
||||
unsigned arguments.
|
||||
|
||||
2005-07-01 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* frv.opc: Update to ISO C90 function declaration style.
|
||||
* iq2000.opc: Likewise.
|
||||
* m32r.opc: Likewise.
|
||||
* sh.opc: Likewise.
|
||||
|
||||
2005-06-15 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
Contributed by Red Hat.
|
||||
* ms1.cpu: New file. Written by Nick Clifton, Stan Cox.
|
||||
* ms1.opc: New file. Written by Stan Cox.
|
||||
|
||||
2005-05-10 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* Update the address and phone number of the FSF organization in
|
||||
the GPL notices in the following files:
|
||||
cris.cpu, frv.cpu, frv.opc, iq10.cpu, iq2000.opc, iq2000m.cpu,
|
||||
m32r.cpu, m32r.opc, sh.cpu, sh.opc, sh64-compact.cpu,
|
||||
sh64-media.cpu, simplify.inc
|
||||
|
||||
2005-02-24 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* frv.opc (parse_A): Warning fix.
|
||||
|
||||
2005-02-23 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* frv.opc: Fixed compile time warnings about differing signed'ness
|
||||
of pointers passed to functions.
|
||||
* m32r.opc: Likewise.
|
||||
|
||||
2005-02-11 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* iq2000.opc (parse_jtargq10): Change type of valuep argument to
|
||||
'bfd_vma *' in order avoid compile time warning message.
|
||||
|
||||
2005-01-28 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* cris.cpu (mstep): Add missing insn.
|
||||
|
||||
2005-01-25 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
2004-11-10 Alexandre Oliva <aoliva@redhat.com>
|
||||
* frv.cpu: Add support for TLS annotations in loads and calll.
|
||||
* frv.opc (parse_symbolic_address): New.
|
||||
(parse_ldd_annotation): New.
|
||||
(parse_call_annotation): New.
|
||||
(parse_ld_annotation): New.
|
||||
(parse_ulo16, parse_uslo16): Use parse_symbolic_address.
|
||||
Introduce TLS relocations.
|
||||
(parse_d12, parse_s12, parse_u12): Likewise.
|
||||
(parse_uhi16): Likewise. Fix constant checking on 64-bit host.
|
||||
(parse_call_label, print_at): New.
|
||||
|
||||
2004-12-21 Mikael Starvik <starvik@axis.com>
|
||||
|
||||
* cris.cpu (cris-set-mem): Correct integral write semantics.
|
||||
|
||||
2004-11-29 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* cris.cpu: New file.
|
||||
|
||||
2004-11-15 Michael K. Lechner <mike.lechner@gmail.com>
|
||||
|
||||
* iq2000.cpu: Added quotes around macro arguments so that they
|
||||
will work with newer versions of guile.
|
||||
|
||||
2004-10-27 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* iq2000m.cpu (pkrlr1, pkrlr30, rbr1, rbr30, rxr1, rxr30, wbr1,
|
||||
wbr1u, wbr30, wbr30u, wxr1, wxr1u, wxr30, wxr30u): Add an index
|
||||
operand.
|
||||
* iq2000.cpu (dnop index): Rename to _index to avoid complications
|
||||
with guile.
|
||||
|
||||
2004-08-27 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* frv.cpu (cfmovs): Change UNIT attribute to FMALL.
|
||||
|
||||
2004-05-15 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* iq2000.opc (iq2000_cgen_insn_supported): Make 'insn' argument const.
|
||||
|
||||
2004-03-30 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
||||
|
||||
* m32r.opc (parse_hi16): Fixed shigh(0xffff8000) bug.
|
||||
|
||||
2004-03-01 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* frv.cpu (define-arch frv): Add fr450 mach.
|
||||
(define-mach fr450): New.
|
||||
(define-model fr450): New. Add profile units to every fr450 insn.
|
||||
(define-attr UNIT): Add MDCUTSSI.
|
||||
(define-attr FR450-MAJOR): New enum. Add to every fr450 insn.
|
||||
(define-attr AUDIO): New boolean.
|
||||
(f-LRAE, f-LRAD, f-LRAS, f-TLBPRopx, f-TLBPRL)
|
||||
(f-LRA-null, f-TLBPR-null): New fields.
|
||||
(scr0, scr1, scr2, scr3, imavr1, damvr1, cxnr, ttbr)
|
||||
(tplr, tppr, tpxr, timerh, timerl, timerd, btbr): New SPRs.
|
||||
(LRAE, LRAD, LRAS, TLBPRopx, TLBPRL): New operands.
|
||||
(LRA-null, TLBPR-null): New macros.
|
||||
(iacc-multiply-r-r, slass, scutss, int-arith-ss-r-r): Add AUDIO attr.
|
||||
(load-real-address): New macro.
|
||||
(lrai, lrad, tlbpr): New instructions.
|
||||
(media-cut-acc, media-cut-acc-ss): Add fr450-major argument.
|
||||
(mcut, mcuti, mcutss, mcutssi): Adjust accordingly.
|
||||
(mdcutssi): Change UNIT attribute to MDCUTSSI.
|
||||
(media-low-clear-semantics, media-scope-limit-semantics)
|
||||
(media-quad-limit, media-quad-shift): New macros.
|
||||
(mqlclrhs, mqlmths, mqsllhi, mqsrahi): New instructions.
|
||||
* frv.opc (frv_is_branch_major, frv_is_float_major, frv_is_media_major)
|
||||
(frv_is_branch_insn, frv_is_float_insn, frv_is_media_insn)
|
||||
(frv_vliw_reset, frv_vliw_add_insn): Handle bfd_mach_fr450.
|
||||
(fr450_unit_mapping): New array.
|
||||
(fr400_unit_mapping, fr500_unit_mapping, fr550_unit_mapping): Add entry
|
||||
for new MDCUTSSI unit.
|
||||
(fr450_check_insn_major_constraints): New function.
|
||||
(check_insn_major_constraints): Use it.
|
||||
|
||||
2004-03-01 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* frv.cpu (nsdiv, nudiv, nsdivi, nudivi): Remove fr400 profiling unit.
|
||||
(scutss): Change unit to I0.
|
||||
(calll, callil, ccalll): Add missing FR550-MAJOR and profile unit.
|
||||
(mqsaths): Fix FR400-MAJOR categorization.
|
||||
(media-quad-multiply-cross-acc, media-quad-cross-multiply-cross-acc)
|
||||
(media-quad-cross-multiply-acc): Change unit from MDUALACC to FMALL.
|
||||
* frv.opc (fr400_check_insn_major_constraints): Check for (M-2,M-1)
|
||||
combinations.
|
||||
|
||||
2004-03-01 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* frv.cpu (r-store, r-store-dual, r-store-quad): Delete.
|
||||
(rstb, rsth, rst, rstd, rstq): Delete.
|
||||
(rstbf, rsthf, rstf, rstdf, rstqf): Delete.
|
||||
|
||||
2004-02-23 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* Apply these patches from Renesas:
|
||||
|
||||
2004-02-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
||||
|
||||
* cpu/m32r.opc (my_print_insn): Fixed incorrect output when
|
||||
disassembling codes for 0x*2 addresses.
|
||||
|
||||
2003-12-15 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
||||
|
||||
* cpu/m32r.cpu: Add PIPE_O attribute to "pop" instruction.
|
||||
|
||||
2003-12-03 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
|
||||
|
||||
* cpu/m32r.cpu : Add new model m32r2.
|
||||
Add new instructions.
|
||||
Replace occurrances of 'Mitsubishi' with 'Renesas'.
|
||||
Changed PIPE attr of push from O to OS.
|
||||
Care for Little-endian of M32R.
|
||||
* cpu/m32r.opc (CGEN_DIS_HASH, my_print_insn):
|
||||
Care for Little-endian of M32R.
|
||||
(parse_slo16): signed extension for value.
|
||||
|
||||
2004-02-20 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* m32r.opc, m32r.cpu: New files. Written by , Doug Evans, Nick
|
||||
Clifton, Ben Elliston, Matthew Green, and Andrew Haley.
|
||||
|
||||
* sh.cpu, sh.opc, sh64-compact.cpu, sh64-media.cpu: New files, all
|
||||
written by Ben Elliston.
|
||||
|
||||
2004-01-14 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* frv.cpu (UNIT): Add IACC.
|
||||
(iacc-multiply-r-r): Use it.
|
||||
* frv.opc (fr400_unit_mapping): Add entry for IACC.
|
||||
(fr500_unit_mapping, fr550_unit_mapping): Likewise.
|
||||
|
||||
2004-01-06 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
2003-12-19 Alexandre Oliva <aoliva@redhat.com>
|
||||
* frv.opc (parse_ulo16, parse_uhi16, parse_d12): Fix some
|
||||
cut&paste errors in shifting/truncating numerical operands.
|
||||
2003-08-08 Alexandre Oliva <aoliva@redhat.com>
|
||||
* frv.opc (parse_ulo16): Parse gotofflo and gotofffuncdesclo.
|
||||
(parse_uslo16): Likewise.
|
||||
(parse_uhi16): Parse gotoffhi and gotofffuncdeschi.
|
||||
(parse_d12): Parse gotoff12 and gotofffuncdesc12.
|
||||
(parse_s12): Likewise.
|
||||
2003-08-04 Alexandre Oliva <aoliva@redhat.com>
|
||||
* frv.opc (parse_ulo16): Parse gotlo and gotfuncdesclo.
|
||||
(parse_uslo16): Likewise.
|
||||
(parse_uhi16): Parse gothi and gotfuncdeschi.
|
||||
(parse_d12): Parse got12 and gotfuncdesc12.
|
||||
(parse_s12): Likewise.
|
||||
|
||||
2003-10-10 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
* frv.cpu (dnpmop): New p-macro.
|
||||
(GRdoublek): Use dnpmop.
|
||||
(CPRdoublek, FRdoublei, FRdoublej, FRdoublek): Ditto.
|
||||
(store-double-r-r): Use (.sym regtype doublek).
|
||||
(r-store-double): Ditto.
|
||||
(store-double-r-r-u): Ditto.
|
||||
(conditional-store-double): Ditto.
|
||||
(conditional-store-double-u): Ditto.
|
||||
(store-double-r-simm): Ditto.
|
||||
(fmovs): Assign to UNIT FMALL.
|
||||
|
||||
2003-10-06 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
* frv.cpu, frv.opc: Add support for fr550.
|
||||
|
||||
2003-09-24 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
* frv.cpu (u-commit): New modelling unit for fr500.
|
||||
(mwtaccg): Use frv_ref_SI to reference ACC40Sk as an input operand.
|
||||
(commit-r): Use u-commit model for fr500.
|
||||
(commit): Ditto.
|
||||
(conditional-float-binary-op): Take profiling data as an argument.
|
||||
Update callers.
|
||||
(ne-float-binary-op): Ditto.
|
||||
|
||||
2003-09-19 Michael Snyder <msnyder@redhat.com>
|
||||
|
||||
* frv.cpu (nldqi): Delete unimplemented instruction.
|
||||
|
||||
2003-09-12 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
* frv.cpu (u-clrgr, u-clrfr): New units of model fr500.
|
||||
(clear-ne-flag-r): Pass insn profiling in as an argument. Call
|
||||
frv_ref_SI to get input register referenced for profiling.
|
||||
(clear-ne-flag-all): Pass insn profiling in as an argument.
|
||||
(clrgr,clrfr,clrga,clrfa): Add profiling information.
|
||||
|
||||
2003-09-11 Michael Snyder <msnyder@redhat.com>
|
||||
|
||||
* frv.cpu: Typographical corrections.
|
||||
|
||||
2003-09-09 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
* frv.cpu (media-dual-complex): Change UNIT to FMALL.
|
||||
(conditional-media-dual-complex, media-quad-complex): Likewise.
|
||||
|
||||
2003-09-04 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
* frv.cpu (register-transfer): Pass in all attributes in on argument.
|
||||
Update all callers.
|
||||
(conditional-register-transfer): Ditto.
|
||||
(cache-preload): Ditto.
|
||||
(floating-point-conversion): Ditto.
|
||||
(floating-point-neg): Ditto.
|
||||
(float-abs): Ditto.
|
||||
(float-binary-op-s): Ditto.
|
||||
(conditional-float-binary-op): Ditto.
|
||||
(ne-float-binary-op): Ditto.
|
||||
(float-dual-arith): Ditto.
|
||||
(ne-float-dual-arith): Ditto.
|
||||
|
||||
2003-09-03 Dave Brolley <brolley@redhat.com>
|
||||
|
||||
* frv.opc (parse_A, parse_A0, parse_A1): New parse handlers.
|
||||
* frv.cpu (UNIT): Add IALL, FMALL, FMLOW, STORE, SCAN, DCPL, MDUALACC,
|
||||
MCLRACC-1.
|
||||
(A): Removed operand.
|
||||
(A0,A1): New operands replace operand A.
|
||||
(mnop): Now a real insn
|
||||
(mclracc): Removed insn.
|
||||
(mclracc-0, mclracc-1): New insns replace mclracc.
|
||||
(all insns): Use new UNIT attributes.
|
||||
|
||||
2003-08-21 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* frv.cpu (mbtoh): Replace input parameter to u-media-dual-expand
|
||||
and u-media-dual-btoh with output parameter.
|
||||
(cmbtoh): Add profiling hack.
|
||||
|
||||
2003-08-19 Michael Snyder <msnyder@redhat.com>
|
||||
|
||||
* frv.cpu: Fix typo, Frintkeven -> FRintkeven
|
||||
|
||||
2003-06-10 Doug Evans <dje@sebabeach.org>
|
||||
|
||||
* frv.cpu: Add IDOC attribute.
|
||||
|
||||
2003-06-06 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
Contributed by Red Hat.
|
||||
* iq2000.cpu: New file. Written by Ben Elliston, Jeff Johnston,
|
||||
Stan Cox, and Frank Ch. Eigler.
|
||||
* iq2000.opc: New file. Written by Ben Elliston, Frank
|
||||
Ch. Eigler, Chris Moller, Jeff Johnston, and Stan Cox.
|
||||
* iq2000m.cpu: New file. Written by Jeff Johnston.
|
||||
* iq10.cpu: New file. Written by Jeff Johnston.
|
||||
|
||||
2003-06-05 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* frv.cpu (FRintieven): New operand. An even-numbered only
|
||||
version of the FRinti operand.
|
||||
(FRintjeven): Likewise for FRintj.
|
||||
(FRintkeven): Likewise for FRintk.
|
||||
(mdcutssi, media-dual-word-rotate-r-r, mqsaths,
|
||||
media-quad-arith-sat-semantics, media-quad-arith-sat,
|
||||
conditional-media-quad-arith-sat, mdunpackh,
|
||||
media-quad-multiply-semantics, media-quad-multiply,
|
||||
conditional-media-quad-multiply, media-quad-complex-i,
|
||||
media-quad-multiply-acc-semantics, media-quad-multiply-acc,
|
||||
conditional-media-quad-multiply-acc, munpackh,
|
||||
media-quad-multiply-cross-acc-semantics, mdpackh,
|
||||
media-quad-multiply-cross-acc, mbtoh-semantics,
|
||||
media-quad-cross-multiply-cross-acc-semantics,
|
||||
media-quad-cross-multiply-cross-acc, mbtoh, mhtob-semantics,
|
||||
media-quad-cross-multiply-acc-semantics, cmbtoh,
|
||||
media-quad-cross-multiply-acc, media-quad-complex, mhtob,
|
||||
media-expand-halfword-to-double-semantics, mexpdhd, cmexpdhd,
|
||||
cmhtob): Use new operands.
|
||||
* frv.opc (CGEN_VERBOSE_ASSEMBLER_ERRORS): Define.
|
||||
(parse_even_register): New function.
|
||||
|
||||
2003-06-03 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* frv.cpu (media-dual-word-rotate-r-r): Use a signed 6-bit
|
||||
immediate value not unsigned.
|
||||
|
||||
2003-06-03 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
Contributed by Red Hat.
|
||||
* frv.cpu: New file. Written by Dave Brolley, Catherine Moore,
|
||||
and Eric Christopher.
|
||||
* frv.opc: New file. Written by Catherine Moore, and Dave
|
||||
Brolley.
|
||||
* simplify.inc: New file. Written by Doug Evans.
|
||||
|
||||
2003-05-02 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* New file.
|
||||
|
||||
|
||||
Local Variables:
|
||||
mode: change-log
|
||||
left-margin: 8
|
||||
fill-column: 74
|
||||
version-control: never
|
||||
End:
|
||||
4553
cpu/cris.cpu
4553
cpu/cris.cpu
File diff suppressed because it is too large
Load Diff
9799
cpu/frv.cpu
9799
cpu/frv.cpu
File diff suppressed because it is too large
Load Diff
1917
cpu/frv.opc
1917
cpu/frv.opc
File diff suppressed because it is too large
Load Diff
1112
cpu/iq10.cpu
1112
cpu/iq10.cpu
File diff suppressed because it is too large
Load Diff
1196
cpu/iq2000.cpu
1196
cpu/iq2000.cpu
File diff suppressed because it is too large
Load Diff
320
cpu/iq2000.opc
320
cpu/iq2000.opc
@@ -1,320 +0,0 @@
|
||||
/* IQ2000 opcode support. -*- C -*-
|
||||
|
||||
Copyright 2000, 2001, 2002, 2005, 2007 Free Software Foundation, Inc.
|
||||
|
||||
Contributed by Red Hat Inc; developed under contract from Fujitsu.
|
||||
|
||||
This file is part of the GNU Binutils.
|
||||
|
||||
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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
/* This file is an addendum to iq2000.cpu. Heavy use of C code isn't
|
||||
appropriate in .cpu files, so it resides here. This especially applies
|
||||
to assembly/disassembly where parsing/printing can be quite involved.
|
||||
Such things aren't really part of the specification of the cpu, per se,
|
||||
so .cpu files provide the general framework and .opc files handle the
|
||||
nitty-gritty details as necessary.
|
||||
|
||||
Each section is delimited with start and end markers.
|
||||
|
||||
<arch>-opc.h additions use: "-- opc.h"
|
||||
<arch>-opc.c additions use: "-- opc.c"
|
||||
<arch>-asm.c additions use: "-- asm.c"
|
||||
<arch>-dis.c additions use: "-- dis.c"
|
||||
<arch>-ibd.h additions use: "-- ibd.h". */
|
||||
|
||||
/* -- opc.h */
|
||||
|
||||
/* Allows reason codes to be output when assembler errors occur. */
|
||||
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
|
||||
|
||||
/* Override disassembly hashing - there are variable bits in the top
|
||||
byte of these instructions. */
|
||||
#define CGEN_DIS_HASH_SIZE 8
|
||||
#define CGEN_DIS_HASH(buf,value) (((* (unsigned char*) (buf)) >> 6) % CGEN_DIS_HASH_SIZE)
|
||||
|
||||
/* following activates check beyond hashing since some iq2000 and iq10
|
||||
instructions have same mnemonics but different functionality. */
|
||||
#define CGEN_VALIDATE_INSN_SUPPORTED
|
||||
|
||||
extern int iq2000_cgen_insn_supported (CGEN_CPU_DESC, const CGEN_INSN *);
|
||||
|
||||
/* -- asm.c */
|
||||
|
||||
#include "safe-ctype.h"
|
||||
|
||||
static const char * MISSING_CLOSING_PARENTHESIS = N_("missing `)'");
|
||||
|
||||
/* Special check to ensure that instruction exists for given machine. */
|
||||
|
||||
int
|
||||
iq2000_cgen_insn_supported (CGEN_CPU_DESC cd, const CGEN_INSN *insn)
|
||||
{
|
||||
int machs = cd->machs;
|
||||
|
||||
return (CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_MACH) & machs) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
iq2000_cgen_isa_register (const char **strp)
|
||||
{
|
||||
int len;
|
||||
int ch1, ch2;
|
||||
|
||||
if (**strp == 'r' || **strp == 'R')
|
||||
{
|
||||
len = strlen (*strp);
|
||||
if (len == 2)
|
||||
{
|
||||
ch1 = (*strp)[1];
|
||||
if ('0' <= ch1 && ch1 <= '9')
|
||||
return 1;
|
||||
}
|
||||
else if (len == 3)
|
||||
{
|
||||
ch1 = (*strp)[1];
|
||||
ch2 = (*strp)[2];
|
||||
if (('1' <= ch1 && ch1 <= '2') && ('0' <= ch2 && ch2 <= '9'))
|
||||
return 1;
|
||||
if ('3' == ch1 && (ch2 == '0' || ch2 == '1'))
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (**strp == '%'
|
||||
&& TOLOWER ((*strp)[1]) != 'l'
|
||||
&& TOLOWER ((*strp)[1]) != 'h')
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Handle negated literal. */
|
||||
|
||||
static const char *
|
||||
parse_mimm (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg;
|
||||
|
||||
/* Verify this isn't a register. */
|
||||
if (iq2000_cgen_isa_register (strp))
|
||||
errmsg = _("immediate value cannot be register");
|
||||
else
|
||||
{
|
||||
long value;
|
||||
|
||||
errmsg = cgen_parse_signed_integer (cd, strp, opindex, & value);
|
||||
if (errmsg == NULL)
|
||||
{
|
||||
long x = (-value) & 0xFFFF0000;
|
||||
|
||||
if (x != 0 && x != (long) 0xFFFF0000)
|
||||
errmsg = _("immediate value out of range");
|
||||
else
|
||||
*valuep = (-value & 0xFFFF);
|
||||
}
|
||||
}
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
/* Handle signed/unsigned literal. */
|
||||
|
||||
static const char *
|
||||
parse_imm (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg;
|
||||
|
||||
if (iq2000_cgen_isa_register (strp))
|
||||
errmsg = _("immediate value cannot be register");
|
||||
else
|
||||
{
|
||||
long value;
|
||||
|
||||
errmsg = cgen_parse_signed_integer (cd, strp, opindex, & value);
|
||||
if (errmsg == NULL)
|
||||
{
|
||||
long x = value & 0xFFFF0000;
|
||||
|
||||
if (x != 0 && x != (long) 0xFFFF0000)
|
||||
errmsg = _("immediate value out of range");
|
||||
else
|
||||
*valuep = (value & 0xFFFF);
|
||||
}
|
||||
}
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
/* Handle iq10 21-bit jmp offset. */
|
||||
|
||||
static const char *
|
||||
parse_jtargq10 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
int reloc ATTRIBUTE_UNUSED,
|
||||
enum cgen_parse_operand_result *type_addr ATTRIBUTE_UNUSED,
|
||||
bfd_vma *valuep)
|
||||
{
|
||||
const char *errmsg;
|
||||
bfd_vma value;
|
||||
enum cgen_parse_operand_result result_type = CGEN_PARSE_OPERAND_RESULT_NUMBER;
|
||||
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_IQ2000_OFFSET_21,
|
||||
& result_type, & value);
|
||||
if (errmsg == NULL && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
{
|
||||
/* Check value is within 23-bits
|
||||
(remembering that 2-bit shift right will occur). */
|
||||
if (value > 0x7fffff)
|
||||
return _("21-bit offset out of range");
|
||||
}
|
||||
*valuep = (value & 0x7FFFFF);
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
/* Handle high(). */
|
||||
|
||||
static const char *
|
||||
parse_hi16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "%hi(", 4) == 0)
|
||||
{
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
const char *errmsg;
|
||||
|
||||
*strp += 4;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_HI16,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
{
|
||||
/* If value has top-bit of %lo on, then it will
|
||||
sign-propagate and so we compensate by adding
|
||||
1 to the resultant %hi value. */
|
||||
if (value & 0x8000)
|
||||
value += 0x10000;
|
||||
value >>= 16;
|
||||
value &= 0xffff;
|
||||
}
|
||||
*valuep = value;
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
/* We add %uhi in case a user just wants the high 16-bits or is using
|
||||
an insn like ori for %lo which does not sign-propagate. */
|
||||
if (strncasecmp (*strp, "%uhi(", 5) == 0)
|
||||
{
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
const char *errmsg;
|
||||
|
||||
*strp += 5;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_IQ2000_UHI16,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value >>= 16;
|
||||
|
||||
value &= 0xffff;
|
||||
*valuep = value;
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return parse_imm (cd, strp, opindex, valuep);
|
||||
}
|
||||
|
||||
/* Handle %lo in a signed context.
|
||||
The signedness of the value doesn't matter to %lo(), but this also
|
||||
handles the case where %lo() isn't present. */
|
||||
|
||||
static const char *
|
||||
parse_lo16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "%lo(", 4) == 0)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
*strp += 4;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LO16,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value &= 0xffff;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return parse_imm (cd, strp, opindex, valuep);
|
||||
}
|
||||
|
||||
/* Handle %lo in a negated signed context.
|
||||
The signedness of the value doesn't matter to %lo(), but this also
|
||||
handles the case where %lo() isn't present. */
|
||||
|
||||
static const char *
|
||||
parse_mlo16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "%lo(", 4) == 0)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
*strp += 4;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LO16,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value = (-value) & 0xffff;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return parse_mimm (cd, strp, opindex, valuep);
|
||||
}
|
||||
|
||||
/* -- */
|
||||
631
cpu/iq2000m.cpu
631
cpu/iq2000m.cpu
@@ -1,631 +0,0 @@
|
||||
; IQ2000-only CPU description. -*- Scheme -*-
|
||||
;
|
||||
; Copyright 2000, 2001, 2002, 2004, 2007 Free Software Foundation, Inc.
|
||||
;
|
||||
; Contributed by Red Hat Inc; developed under contract from Vitesse.
|
||||
;
|
||||
; This file is part of the GNU Binutils.
|
||||
;
|
||||
; 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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
; MA 02110-1301, USA.
|
||||
|
||||
(dni andoui "and upper ones immediate" (MACH2000 USES-RS USES-RT)
|
||||
"andoui $rt,$rs,$hi16"
|
||||
(+ OP_ANDOUI rs rt hi16)
|
||||
(set rt (and rs (or (sll hi16 16) #xFFFF)))
|
||||
())
|
||||
|
||||
(dni andoui2 "and upper ones immediate" (ALIAS NO-DIS MACH2000 USES-RS USES-RT)
|
||||
"andoui ${rt-rs},$hi16"
|
||||
(+ OP_ANDOUI rt-rs hi16)
|
||||
(set rt-rs (and rt-rs (or (sll hi16 16) #xFFFF)))
|
||||
())
|
||||
|
||||
(dni orui2 "or upper immediate" (ALIAS NO-DIS MACH2000 USES-RS USES-RT)
|
||||
"orui ${rt-rs},$hi16"
|
||||
(+ OP_ORUI rt-rs hi16)
|
||||
(set rt-rs (or rt-rs (sll hi16 16)))
|
||||
())
|
||||
|
||||
(dni orui "or upper immediate" (MACH2000 USES-RS USES-RT)
|
||||
"orui $rt,$rs,$hi16"
|
||||
(+ OP_ORUI rs rt hi16)
|
||||
(set rt (or rs (sll hi16 16)))
|
||||
())
|
||||
|
||||
(dni bgtz "branch if greater than zero" (MACH2000 USES-RS)
|
||||
"bgtz $rs,$offset"
|
||||
(+ OP_BGTZ rs (f-rt 0) offset)
|
||||
(if (gt rs 0)
|
||||
(delay 1 (set pc offset)))
|
||||
())
|
||||
|
||||
|
||||
(dni bgtzl "branch if greater than zero likely" (MACH2000 USES-RS)
|
||||
"bgtzl $rs,$offset"
|
||||
(+ OP_BGTZL rs (f-rt 0) offset)
|
||||
(if (gt rs 0)
|
||||
(delay 1 (set pc offset))
|
||||
(skip 1))
|
||||
())
|
||||
|
||||
(dni blez "branch if less than or equal to zero" (MACH2000 USES-RS)
|
||||
"blez $rs,$offset"
|
||||
(+ OP_BLEZ rs (f-rt 0) offset)
|
||||
(if (le rs 0)
|
||||
(delay 1 (set pc offset)))
|
||||
())
|
||||
|
||||
(dni blezl "branch if less than or equal to zero likely" (MACH2000 USES-RS)
|
||||
"blezl $rs,$offset"
|
||||
(+ OP_BLEZL rs (f-rt 0) offset)
|
||||
(if (le rs 0)
|
||||
(delay 1 (set pc offset))
|
||||
(skip 1))
|
||||
())
|
||||
|
||||
|
||||
(dni mrgb "merge bytes" (MACH2000 USES-RD USES-RS USES-RT)
|
||||
"mrgb $rd,$rs,$rt,$mask"
|
||||
(+ OP_SPECIAL rs rt rd (f-10 0) mask FUNC_MRGB)
|
||||
(sequence ((SI temp))
|
||||
(if (bitclear? mask 0)
|
||||
(set temp (and rs #xFF))
|
||||
(set temp (and rt #xFF)))
|
||||
(if (bitclear? mask 1)
|
||||
(set temp (or temp (and rs #xFF00)))
|
||||
(set temp (or temp (and rt #xFF00))))
|
||||
(if (bitclear? mask 2)
|
||||
(set temp (or temp (and rs #xFF0000)))
|
||||
(set temp (or temp (and rt #xFF0000))))
|
||||
(if (bitclear? mask 3)
|
||||
(set temp (or temp (and rs #xFF000000)))
|
||||
(set temp (or temp (and rt #xFF000000))))
|
||||
(set rd temp))
|
||||
())
|
||||
|
||||
(dni mrgb2 "merge bytes" (ALIAS NO-DIS MACH2000 USES-RD USES-RS USES-RT)
|
||||
"mrgb ${rd-rs},$rt,$mask"
|
||||
(+ OP_SPECIAL rt rd-rs (f-10 0) mask FUNC_MRGB)
|
||||
(sequence ((SI temp))
|
||||
(if (bitclear? mask 0)
|
||||
(set temp (and rd-rs #xFF))
|
||||
(set temp (and rt #xFF)))
|
||||
(if (bitclear? mask 1)
|
||||
(set temp (or temp (and rd-rs #xFF00)))
|
||||
(set temp (or temp (and rt #xFF00))))
|
||||
(if (bitclear? mask 2)
|
||||
(set temp (or temp (and rd-rs #xFF0000)))
|
||||
(set temp (or temp (and rt #xFF0000))))
|
||||
(if (bitclear? mask 3)
|
||||
(set temp (or temp (and rd-rs #xFF000000)))
|
||||
(set temp (or temp (and rt #xFF000000))))
|
||||
(set rd-rs temp))
|
||||
())
|
||||
|
||||
; NOTE: None of these instructions' semantics are specified, so they
|
||||
; will not work in a simulator.
|
||||
;
|
||||
; Architectural and coprocessor instructions.
|
||||
; BREAK and SYSCALL are implemented with escape hatches to the C
|
||||
; code. These are used by the test suite to indicate pass/failures.
|
||||
|
||||
(dni bctxt "branch and switch context" (MACH2000 DELAY-SLOT COND-CTI USES-RS)
|
||||
"bctxt $rs,$offset"
|
||||
(+ OP_REGIMM rs (f-rt 6) offset)
|
||||
(unimp bctxt)
|
||||
())
|
||||
|
||||
(dni bc0f "branch if copro 0 condition false" (MACH2000 DELAY-SLOT COND-CTI)
|
||||
"bc0f $offset"
|
||||
(+ OP_COP0 (f-rs 8) (f-rt 0) offset)
|
||||
(unimp bc0f)
|
||||
())
|
||||
|
||||
(dni bc0fl "branch if copro 0 condition false likely" (MACH2000 DELAY-SLOT COND-CTI SKIP-CTI)
|
||||
"bc0fl $offset"
|
||||
(+ OP_COP0 (f-rs 8) (f-rt 2) offset)
|
||||
(unimp bc0fl)
|
||||
())
|
||||
|
||||
(dni bc3f "branch if copro 3 condition false" (MACH2000 DELAY-SLOT COND-CTI)
|
||||
"bc3f $offset"
|
||||
(+ OP_COP3 (f-rs 8) (f-rt 0) offset)
|
||||
(unimp bc3f)
|
||||
())
|
||||
|
||||
(dni bc3fl "branch if copro 3 condition false likely" (MACH2000 DELAY-SLOT COND-CTI SKIP-CTI)
|
||||
"bc3fl $offset"
|
||||
(+ OP_COP3 (f-rs 8) (f-rt 2) offset)
|
||||
(unimp bc3fl)
|
||||
())
|
||||
|
||||
(dni bc0t "branch if copro 0 condition true" (MACH2000 DELAY-SLOT COND-CTI)
|
||||
"bc0t $offset"
|
||||
(+ OP_COP0 (f-rs 8) (f-rt 1) offset)
|
||||
(unimp bc0t)
|
||||
())
|
||||
|
||||
(dni bc0tl "branch if copro 0 condition true likely" (MACH2000 DELAY-SLOT COND-CTI SKIP-CTI)
|
||||
"bc0tl $offset"
|
||||
(+ OP_COP0 (f-rs 8) (f-rt 3) offset)
|
||||
(unimp bc0tl)
|
||||
())
|
||||
|
||||
(dni bc3t "branch if copro 3 condition true" (MACH2000 DELAY-SLOT COND-CTI)
|
||||
"bc3t $offset"
|
||||
(+ OP_COP3 (f-rs 8) (f-rt 1) offset)
|
||||
(unimp bc3t)
|
||||
())
|
||||
|
||||
(dni bc3tl "branch if copro 3 condition true likely" (MACH2000 DELAY-SLOT COND-CTI SKIP-CTI)
|
||||
"bc3tl $offset"
|
||||
(+ OP_COP3 (f-rs 8) (f-rt 3) offset)
|
||||
(unimp bc3tl)
|
||||
())
|
||||
|
||||
; Note that we don't set the USES-RD or USES-RT attributes for many of the following
|
||||
; instructions, as it's the COP register that's being specified.
|
||||
|
||||
(dni cfc0 "control from coprocessor 0" (MACH2000 LOAD-DELAY USES-RT)
|
||||
"cfc0 $rt,$rd"
|
||||
(+ OP_COP0 (f-rs 2) rt rd (f-10-11 0))
|
||||
(unimp cfc0)
|
||||
())
|
||||
|
||||
(dni cfc1 "control from coprocessor 1" (MACH2000 LOAD-DELAY USES-RT)
|
||||
"cfc1 $rt,$rd"
|
||||
(+ OP_COP1 (f-rs 2) rt rd (f-10-11 0))
|
||||
(unimp cfc1)
|
||||
())
|
||||
|
||||
(dni cfc2 "control from coprocessor 2" (MACH2000 LOAD-DELAY USES-RT YIELD-INSN)
|
||||
"cfc2 $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 2) rt rd (f-10-11 0))
|
||||
(unimp cfc2)
|
||||
())
|
||||
|
||||
(dni cfc3 "control from coprocessor 3" (MACH2000 LOAD-DELAY USES-RT YIELD-INSN)
|
||||
"cfc3 $rt,$rd"
|
||||
(+ OP_COP3 (f-rs 2) rt rd (f-10-11 0))
|
||||
(unimp cfc3)
|
||||
())
|
||||
|
||||
; COPz instructions are an instruction form, not real instructions
|
||||
; with associated assembly mnemonics. Therefore, they are omitted
|
||||
; from the ISA description.
|
||||
|
||||
(dni chkhdr "check header" (MACH2000 LOAD-DELAY USES-RD YIELD-INSN)
|
||||
"chkhdr $rd,$rt"
|
||||
(+ OP_COP3 (f-rs 9) rt rd (f-shamt 0) (f-func 0))
|
||||
(unimp chkhdr)
|
||||
())
|
||||
|
||||
(dni ctc0 "control to coprocessor 0" (MACH2000 USES-RT)
|
||||
"ctc0 $rt,$rd"
|
||||
(+ OP_COP0 (f-rs 6) rt rd (f-10-11 0))
|
||||
(unimp ctc0)
|
||||
())
|
||||
|
||||
(dni ctc1 "control to coprocessor 1" (MACH2000 USES-RT)
|
||||
"ctc1 $rt,$rd"
|
||||
(+ OP_COP1 (f-rs 6) rt rd (f-10-11 0))
|
||||
(unimp ctc1)
|
||||
())
|
||||
|
||||
(dni ctc2 "control to coprocessor 2" (MACH2000 USES-RT)
|
||||
"ctc2 $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 6) rt rd (f-10-11 0))
|
||||
(unimp ctc2)
|
||||
())
|
||||
|
||||
(dni ctc3 "control to coprocessor 3" (MACH2000 USES-RT)
|
||||
"ctc3 $rt,$rd"
|
||||
(+ OP_COP3 (f-rs 6) rt rd (f-10-11 0))
|
||||
(unimp ctc3)
|
||||
())
|
||||
|
||||
(dni jcr "jump context register" (MACH2000 DELAY-SLOT UNCOND-CTI USES-RS)
|
||||
"jcr $rs"
|
||||
(+ OP_SPECIAL rs (f-rt 0) (f-rd 0) (f-shamt 0) FUNC_JCR)
|
||||
(unimp jcr)
|
||||
())
|
||||
|
||||
(dni luc32 "lookup chain 32 bits" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"luc32 $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 3))
|
||||
(unimp luc32)
|
||||
())
|
||||
|
||||
(dni luc32l "lookup chain 32 bits and lock" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"luc32l $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 7))
|
||||
(unimp luc32l)
|
||||
())
|
||||
|
||||
(dni luc64 "lookup chain 64 bits" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"luc64 $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 11))
|
||||
(unimp luc64)
|
||||
())
|
||||
|
||||
(dni luc64l "lookup chain 64 bits and lock" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"luc64l $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 15))
|
||||
(unimp luc64l)
|
||||
())
|
||||
|
||||
(dni luk "lookup key" (MACH2000 USES-RD USES-RT)
|
||||
"luk $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 8))
|
||||
(unimp luk)
|
||||
())
|
||||
|
||||
(dni lulck "lookup lock" (MACH2000 USES-RT YIELD-INSN)
|
||||
"lulck $rt"
|
||||
(+ OP_COP2 (f-rs 1) rt (f-rd 0) (f-shamt 0) (f-func 4))
|
||||
(unimp lulck)
|
||||
())
|
||||
|
||||
(dni lum32 "lookup match 32 bits" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"lum32 $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 2))
|
||||
(unimp lum32)
|
||||
())
|
||||
|
||||
(dni lum32l "lookup match 32 bits and lock" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"lum32l $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 6))
|
||||
(unimp lum32l)
|
||||
())
|
||||
|
||||
(dni lum64 "lookup match 64 bits" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"lum64 $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 10))
|
||||
(unimp lum64)
|
||||
())
|
||||
|
||||
(dni lum64l "lookup match 64 bits and lock" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"lum64l $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 14))
|
||||
(unimp lum64l)
|
||||
())
|
||||
|
||||
(dni lur "lookup read" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"lur $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 1))
|
||||
(unimp lur)
|
||||
())
|
||||
|
||||
(dni lurl "lookup read and lock" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"lurl $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 5))
|
||||
(unimp lurl)
|
||||
())
|
||||
|
||||
(dni luulck "lookup unlock" (MACH2000 USES-RT YIELD-INSN)
|
||||
"luulck $rt"
|
||||
(+ OP_COP2 (f-rs 1) rt (f-rd 0) (f-shamt 0) (f-func 0))
|
||||
(unimp luulck)
|
||||
())
|
||||
|
||||
(dni mfc0 "move from coprocessor 0" (MACH2000 LOAD-DELAY USES-RT)
|
||||
"mfc0 $rt,$rd"
|
||||
(+ OP_COP0 (f-rs 0) rt rd (f-10-11 0))
|
||||
(unimp mfc0)
|
||||
())
|
||||
|
||||
(dni mfc1 "move from coprocessor 1" (MACH2000 LOAD-DELAY USES-RT)
|
||||
"mfc1 $rt,$rd"
|
||||
(+ OP_COP1 (f-rs 0) rt rd (f-10-11 0))
|
||||
(unimp mfc1)
|
||||
())
|
||||
|
||||
(dni mfc2 "move from coprocessor 2" (MACH2000 LOAD-DELAY USES-RT YIELD-INSN)
|
||||
"mfc2 $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 0) rt rd (f-10-11 0))
|
||||
(unimp mfc2)
|
||||
())
|
||||
|
||||
(dni mfc3 "move from coprocessor 3" (MACH2000 LOAD-DELAY USES-RT YIELD-INSN)
|
||||
"mfc3 $rt,$rd"
|
||||
(+ OP_COP3 (f-rs 0) rt rd (f-10-11 0))
|
||||
(unimp mfc3)
|
||||
())
|
||||
|
||||
(dni mtc0 "move to coprocessor 0" (MACH2000 USES-RT)
|
||||
"mtc0 $rt,$rd"
|
||||
(+ OP_COP0 (f-rs 4) rt rd (f-10-11 0))
|
||||
(unimp mtc0)
|
||||
())
|
||||
|
||||
(dni mtc1 "move to coprocessor 1" (MACH2000 USES-RT)
|
||||
"mtc1 $rt,$rd"
|
||||
(+ OP_COP1 (f-rs 4) rt rd (f-10-11 0))
|
||||
(unimp mtc1)
|
||||
())
|
||||
|
||||
(dni mtc2 "move to coprocessor 2" (MACH2000 USES-RT)
|
||||
"mtc2 $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 4) rt rd (f-10-11 0))
|
||||
(unimp mtc2)
|
||||
())
|
||||
|
||||
(dni mtc3 "move to coprocessor 3" (MACH2000 USES-RT)
|
||||
"mtc3 $rt,$rd"
|
||||
(+ OP_COP3 (f-rs 4) rt rd (f-10-11 0))
|
||||
(unimp mtc3)
|
||||
())
|
||||
|
||||
(dni pkrl "pkrl" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"pkrl $rd,$rt"
|
||||
(+ OP_COP3 (f-rs 1) rt rd (f-shamt 0) (f-func 7))
|
||||
(unimp pkrl)
|
||||
())
|
||||
|
||||
(dni pkrlr1 "pkrlr1" (MACH2000 USES-RT YIELD-INSN)
|
||||
"pkrlr1 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 29) rt count _index)
|
||||
(unimp pkrlr1)
|
||||
())
|
||||
|
||||
(dni pkrlr30 "pkrlr30" (MACH2000 USES-RT YIELD-INSN)
|
||||
"pkrlr30 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 31) rt count _index)
|
||||
(unimp pkrlr30)
|
||||
())
|
||||
|
||||
(dni rb "dma read bytes" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"rb $rd,$rt"
|
||||
(+ OP_COP3 (f-rs 1) rt rd (f-shamt 0) (f-func 4))
|
||||
(unimp rb)
|
||||
())
|
||||
|
||||
(dni rbr1 "dma read bytes using r1" (MACH2000 USES-RT YIELD-INSN)
|
||||
"rbr1 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 24) rt count _index)
|
||||
(unimp rbr1)
|
||||
())
|
||||
|
||||
(dni rbr30 "dma read bytes using r30" (MACH2000 USES-RT YIELD-INSN)
|
||||
"rbr30 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 26) rt count _index)
|
||||
(unimp rbr30)
|
||||
())
|
||||
|
||||
(dni rfe "restore from exception" (MACH2000)
|
||||
"rfe"
|
||||
(+ OP_COP0 (f-25 1) (f-24-19 0) (f-func 16))
|
||||
(unimp rfe)
|
||||
())
|
||||
|
||||
(dni rx "dma read word64s" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"rx $rd,$rt"
|
||||
(+ OP_COP3 (f-rs 1) rt rd (f-shamt 0) (f-func 6))
|
||||
(unimp rx)
|
||||
())
|
||||
|
||||
(dni rxr1 "dma read word64s using r1" (MACH2000 USES-RT YIELD-INSN)
|
||||
"rxr1 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 28) rt count _index)
|
||||
(unimp rxr1)
|
||||
())
|
||||
|
||||
(dni rxr30 "dma read word 64s using r30" (MACH2000 USES-RT YIELD-INSN)
|
||||
"rxr30 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 30) rt count _index)
|
||||
(unimp rxr30)
|
||||
())
|
||||
|
||||
(dni sleep "sleep" (MACH2000 YIELD-INSN)
|
||||
"sleep"
|
||||
(+ OP_SPECIAL execode FUNC_SLEEP)
|
||||
(unimp sleep)
|
||||
())
|
||||
|
||||
(dni srrd "sram read" (MACH2000 USES-RT YIELD-INSN)
|
||||
"srrd $rt"
|
||||
(+ OP_COP2 (f-rs 1) rt (f-rd 0) (f-shamt 0) (f-func 16))
|
||||
(unimp srrd)
|
||||
())
|
||||
|
||||
(dni srrdl "sram read and lock" (MACH2000 USES-RT YIELD-INSN)
|
||||
"srrdl $rt"
|
||||
(+ OP_COP2 (f-rs 1) rt (f-rd 0) (f-shamt 0) (f-func 20))
|
||||
(unimp srrdl)
|
||||
())
|
||||
|
||||
(dni srulck "sram unlock" (MACH2000 USES-RT YIELD-INSN)
|
||||
"srulck $rt"
|
||||
(+ OP_COP2 (f-rs 1) rt (f-rd 0) (f-shamt 0) (f-func 22))
|
||||
(unimp srulck)
|
||||
())
|
||||
|
||||
(dni srwr "sram write" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"srwr $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 17))
|
||||
(unimp srwr)
|
||||
())
|
||||
|
||||
(dni srwru "sram write and unlock" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"srwru $rt,$rd"
|
||||
(+ OP_COP2 (f-rs 1) rt rd (f-shamt 0) (f-func 21))
|
||||
(unimp srwru)
|
||||
())
|
||||
|
||||
(dni trapqfl "yield if dma queue full" (MACH2000 YIELD-INSN)
|
||||
"trapqfl"
|
||||
(+ OP_COP3 (f-rs 1) (f-rt 0) (f-rd 0) (f-shamt 0) (f-func 8))
|
||||
(unimp trapqfl)
|
||||
())
|
||||
|
||||
(dni trapqne "yield if dma queue not empty" (MACH2000 YIELD-INSN)
|
||||
"trapqne"
|
||||
(+ OP_COP3 (f-rs 1) (f-rt 0) (f-rd 0) (f-shamt 0) (f-func 9))
|
||||
(unimp trapqne)
|
||||
())
|
||||
|
||||
(dni traprel "traprel" (MACH2000 USES-RT YIELD-INSN)
|
||||
"traprel $rt"
|
||||
(+ OP_COP3 (f-rs 1) rt (f-rd 0) (f-shamt 0) (f-func 10))
|
||||
(unimp traprel)
|
||||
())
|
||||
|
||||
(dni wb "dma write bytes" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"wb $rd,$rt"
|
||||
(+ OP_COP3 (f-rs 1) rt rd (f-shamt 0) (f-func 0))
|
||||
(unimp wb)
|
||||
())
|
||||
|
||||
(dni wbu "dma write bytes and unlock" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"wbu $rd,$rt"
|
||||
(+ OP_COP3 (f-rs 1) rt rd (f-shamt 0) (f-func 1))
|
||||
(unimp wbu)
|
||||
())
|
||||
|
||||
(dni wbr1 "dma write bytes using r1" (MACH2000 USES-RT YIELD-INSN)
|
||||
"wbr1 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 16) rt count _index)
|
||||
(unimp wbr1)
|
||||
())
|
||||
|
||||
(dni wbr1u "dma write bytes using r1 and unlock" (MACH2000 USES-RT YIELD-INSN)
|
||||
"wbr1u $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 17) rt count _index)
|
||||
(unimp wbr1u)
|
||||
())
|
||||
|
||||
(dni wbr30 "dma write bytes using r30" (MACH2000 USES-RT YIELD-INSN)
|
||||
"wbr30 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 18) rt count _index)
|
||||
(unimp wbr30)
|
||||
())
|
||||
|
||||
(dni wbr30u "dma write bytes using r30 and unlock" (MACH2000 USES-RT YIELD-INSN)
|
||||
"wbr30u $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 19) rt count _index)
|
||||
(unimp wbr30u)
|
||||
())
|
||||
|
||||
(dni wx "dma write word64s" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"wx $rd,$rt"
|
||||
(+ OP_COP3 (f-rs 1) rt rd (f-shamt 0) (f-func 2))
|
||||
(unimp wx)
|
||||
())
|
||||
|
||||
(dni wxu "dma write word64s and unlock" (MACH2000 USES-RD USES-RT YIELD-INSN)
|
||||
"wxu $rd,$rt"
|
||||
(+ OP_COP3 (f-rs 1) rt rd (f-shamt 0) (f-func 3))
|
||||
(unimp wxu)
|
||||
())
|
||||
|
||||
(dni wxr1 "dma write word64s using r1" (MACH2000 USES-RT YIELD-INSN)
|
||||
"wxr1 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 20) rt count _index)
|
||||
(unimp wxr1)
|
||||
())
|
||||
|
||||
(dni wxr1u "dma write word64s using r1 and unlock" (MACH2000 USES-RT YIELD-INSN)
|
||||
"wxr1u $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 21) rt count _index)
|
||||
(unimp wxr1u)
|
||||
())
|
||||
|
||||
(dni wxr30 "dma write word64s using r30" (MACH2000 USES-RT YIELD-INSN)
|
||||
"wxr30 $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 22) rt count _index)
|
||||
(unimp wxr30)
|
||||
())
|
||||
|
||||
(dni wxr30u "dma write word64s using r30 and unlock" (MACH2000 USES-RT YIELD-INSN)
|
||||
"wxr30u $rt,$_index,$count"
|
||||
(+ OP_COP3 (f-rs 23) rt count _index)
|
||||
(unimp wxr30u)
|
||||
())
|
||||
|
||||
|
||||
; Load/Store instructions.
|
||||
|
||||
(dni ldw "load double word" (MACH2000 EVEN-REG-NUM LOAD-DELAY USES-RT)
|
||||
"ldw $rt,$lo16($base)"
|
||||
(+ OP_LDW base rt lo16)
|
||||
(sequence ((SI addr))
|
||||
(set addr (and (add base lo16) (inv 3)))
|
||||
(set (reg h-gr (add (ifield f-rt) 1)) (mem SI addr))
|
||||
(set rt (mem SI (add addr 4))))
|
||||
())
|
||||
|
||||
(dni sdw "store double word" (MACH2000 EVEN-REG-NUM USES-RT)
|
||||
"sdw $rt,$lo16($base)"
|
||||
(+ OP_SDW base rt lo16)
|
||||
(sequence ((SI addr))
|
||||
(set addr (and (add base lo16) (inv 3)))
|
||||
(set (mem SI (add addr 4)) rt)
|
||||
(set (mem SI addr) (reg h-gr (add (ifield f-rt) 1))))
|
||||
())
|
||||
|
||||
|
||||
; Jump instructions
|
||||
|
||||
(dni j "jump" (MACH2000)
|
||||
"j $jmptarg"
|
||||
(+ OP_J (f-rsrvd 0) jmptarg)
|
||||
(delay 1 (set pc jmptarg))
|
||||
())
|
||||
|
||||
(dni jal "jump and link" (MACH2000 USES-R31)
|
||||
"jal $jmptarg"
|
||||
(+ OP_JAL (f-rsrvd 0) jmptarg)
|
||||
(delay 1
|
||||
(sequence ()
|
||||
(set (reg h-gr 31) (add pc 8))
|
||||
(set pc jmptarg)))
|
||||
())
|
||||
|
||||
(dni bmb "branch if matching byte-lane" (MACH2000 USES-RS USES-RT)
|
||||
"bmb $rs,$rt,$offset"
|
||||
(+ OP_BMB rs rt offset)
|
||||
(sequence ((BI branch?))
|
||||
(set branch? 0)
|
||||
(if (eq (and rs #xFF) (and rt #xFF))
|
||||
(set branch? 1))
|
||||
(if (eq (and rs #xFF00) (and rt #xFF00))
|
||||
(set branch? 1))
|
||||
(if (eq (and rs #xFF0000) (and rt #xFF0000))
|
||||
(set branch? 1))
|
||||
(if (eq (and rs #xFF000000) (and rt #xFF000000))
|
||||
(set branch? 1))
|
||||
(if branch?
|
||||
(delay 1 (set pc offset))))
|
||||
())
|
||||
|
||||
|
||||
; Macros
|
||||
|
||||
(dnmi ldw-base-0 "load double word - implied base 0" (MACH2000 EVEN-REG-NUM LOAD-DELAY USES-RT USES-RS NO-DIS)
|
||||
"ldw $rt,$lo16"
|
||||
(emit ldw rt lo16 (base 0))
|
||||
)
|
||||
|
||||
(dnmi sdw-base-0 "store double word - implied base 0" (MACH2000 EVEN-REG-NUM USES-RT NO-DIS)
|
||||
"sdw $rt,$lo16"
|
||||
(emit sdw rt lo16 (base 0))
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
932
cpu/lm32.cpu
932
cpu/lm32.cpu
@@ -1,932 +0,0 @@
|
||||
; Lattice Mico32 CPU description. -*- Scheme -*-
|
||||
; Copyright 2008 Free Software Foundation, Inc.
|
||||
; Contributed by Jon Beniston <jon@beniston.com>
|
||||
;
|
||||
; This file is part of the GNU Binutils.
|
||||
;
|
||||
; 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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
; MA 02110-1301, USA.
|
||||
|
||||
(include "simplify.inc")
|
||||
|
||||
(define-arch
|
||||
(name lm32) ; name of cpu family
|
||||
(comment "Lattice Mico32")
|
||||
(default-alignment aligned)
|
||||
(insn-lsb0? #t)
|
||||
(machs lm32)
|
||||
(isas lm32)
|
||||
)
|
||||
|
||||
|
||||
; Instruction sets.
|
||||
|
||||
(define-isa
|
||||
(name lm32)
|
||||
(comment "Lattice Mico32 ISA")
|
||||
(default-insn-word-bitsize 32)
|
||||
(default-insn-bitsize 32)
|
||||
(base-insn-bitsize 32)
|
||||
(decode-assist (31 30 29 28 27 26))
|
||||
)
|
||||
|
||||
|
||||
; Cpu family definitions.
|
||||
|
||||
(define-cpu
|
||||
; cpu names must be distinct from the architecture name and machine name
|
||||
(name lm32bf)
|
||||
(comment "Lattice Mico32 CPU")
|
||||
(endian big)
|
||||
(word-bitsize 32)
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name lm32)
|
||||
(comment "Lattice Mico32 MACH")
|
||||
(cpu lm32bf)
|
||||
)
|
||||
|
||||
(define-model
|
||||
(name lm32)
|
||||
(comment "Lattice Mico32 reference implementation")
|
||||
(mach lm32)
|
||||
(unit u-exec "Execution unit" ()
|
||||
1 1 () () () ())
|
||||
)
|
||||
|
||||
|
||||
; Hardware elements.
|
||||
|
||||
(dnh h-pc "Program counter" (PC) (pc) () () ())
|
||||
|
||||
(dnh h-gr "General purpose registers"
|
||||
()
|
||||
(register SI (32))
|
||||
(keyword "" (
|
||||
(gp 26) (fp 27) (sp 28) (ra 29) (ea 30) (ba 31)
|
||||
(r0 0) (r1 1) (r2 2) (r3 3)
|
||||
(r4 4) (r5 5) (r6 6) (r7 7)
|
||||
(r8 8) (r9 9) (r10 10) (r11 11)
|
||||
(r12 12) (r13 13) (r14 14) (r15 15)
|
||||
(r16 16) (r17 17) (r18 18) (r19 19)
|
||||
(r20 20) (r21 21) (r22 22) (r23 23)
|
||||
(r24 24) (r25 25) (r26 26) (r27 27)
|
||||
(r28 28) (r29 29) (r30 30) (r31 31)
|
||||
)
|
||||
)
|
||||
() ()
|
||||
)
|
||||
|
||||
(dnh h-csr "Control and status registers"
|
||||
()
|
||||
(register SI (32))
|
||||
(keyword "" (
|
||||
(IE 0) (IM 1) (IP 2)
|
||||
(ICC 3) (DCC 4)
|
||||
(CC 5)
|
||||
(CFG 6)
|
||||
(EBA 7)
|
||||
(DC 8)
|
||||
(DEBA 9)
|
||||
(JTX 14) (JRX 15)
|
||||
(BP0 16) (BP1 17) (BP2 18) (BP3 19)
|
||||
(WP0 24) (WP1 25) (WP2 26) (WP3 27)
|
||||
)
|
||||
)
|
||||
() ()
|
||||
)
|
||||
|
||||
|
||||
; Instruction fields.
|
||||
|
||||
(dnf f-opcode "opcode field" () 31 6)
|
||||
(dnf f-r0 "register index 0 field" () 25 5)
|
||||
(dnf f-r1 "register index 1 field" () 20 5)
|
||||
(dnf f-r2 "register index 2 field" () 15 5)
|
||||
(dnf f-resv0 "reserved" (RESERVED) 10 11)
|
||||
(dnf f-shift "shift amount field" () 4 5)
|
||||
(df f-imm "signed immediate field" () 15 16 INT #f #f)
|
||||
(dnf f-uimm "unsigned immediate field" () 15 16)
|
||||
(dnf f-csr "csr field" () 25 5)
|
||||
(dnf f-user "user defined field" () 10 11)
|
||||
(dnf f-exception "exception field" () 25 26)
|
||||
|
||||
(df f-branch "branch offset field" (PCREL-ADDR) 15 16 INT
|
||||
((value pc) (sra SI (sub SI value pc) 2))
|
||||
((value pc) (add SI pc (sra SI (sll SI value 16) 14)))
|
||||
)
|
||||
(df f-call "call offset field" (PCREL-ADDR) 25 26 INT
|
||||
((value pc) (sra SI (sub SI value pc) 2))
|
||||
((value pc) (add SI pc (sra SI (sll SI value 6) 4)))
|
||||
)
|
||||
|
||||
|
||||
; Operands.
|
||||
|
||||
(dnop r0 "register 0" () h-gr f-r0)
|
||||
(dnop r1 "register 1" () h-gr f-r1)
|
||||
(dnop r2 "register 2" () h-gr f-r2)
|
||||
(dnop shift "shift amout" () h-uint f-shift)
|
||||
(dnop imm "signed immediate" () h-sint f-imm)
|
||||
(dnop uimm "unsigned immediate" () h-uint f-uimm)
|
||||
(dnop branch "branch offset" () h-iaddr f-branch)
|
||||
(dnop call "call offset" () h-iaddr f-call)
|
||||
(dnop csr "csr" () h-csr f-csr)
|
||||
(dnop user "user" () h-uint f-user)
|
||||
(dnop exception "exception" () h-uint f-exception)
|
||||
|
||||
(define-operand
|
||||
(name hi16)
|
||||
(comment "high 16-bit immediate")
|
||||
(attrs)
|
||||
(type h-uint)
|
||||
(index f-uimm)
|
||||
(handlers (parse "hi16"))
|
||||
)
|
||||
|
||||
(define-operand
|
||||
(name lo16)
|
||||
(comment "low 16-bit immediate")
|
||||
(attrs)
|
||||
(type h-uint)
|
||||
(index f-uimm)
|
||||
(handlers (parse "lo16"))
|
||||
)
|
||||
|
||||
(define-operand
|
||||
(name gp16)
|
||||
(comment "gp relative 16-bit immediate")
|
||||
(attrs)
|
||||
(type h-sint)
|
||||
(index f-imm)
|
||||
(handlers (parse "gp16"))
|
||||
)
|
||||
|
||||
(define-operand
|
||||
(name got16)
|
||||
(comment "got 16-bit immediate")
|
||||
(attrs)
|
||||
(type h-sint)
|
||||
(index f-imm)
|
||||
(handlers (parse "got16"))
|
||||
)
|
||||
|
||||
(define-operand
|
||||
(name gotoffhi16)
|
||||
(comment "got offset high 16-bit immediate")
|
||||
(attrs)
|
||||
(type h-sint)
|
||||
(index f-imm)
|
||||
(handlers (parse "gotoff_hi16"))
|
||||
)
|
||||
|
||||
(define-operand
|
||||
(name gotofflo16)
|
||||
(comment "got offset low 16-bit immediate")
|
||||
(attrs)
|
||||
(type h-sint)
|
||||
(index f-imm)
|
||||
(handlers (parse "gotoff_lo16"))
|
||||
)
|
||||
|
||||
|
||||
; Enumerations.
|
||||
|
||||
(define-normal-insn-enum
|
||||
opcodes "opcodes" () OP_ f-opcode
|
||||
(("ADD" 45)
|
||||
("ADDI" 13)
|
||||
("AND" 40)
|
||||
("ANDI" 8)
|
||||
("ANDHI" 24)
|
||||
("B" 48)
|
||||
("BI" 56)
|
||||
("BE" 17)
|
||||
("BG" 18)
|
||||
("BGE" 19)
|
||||
("BGEU" 20)
|
||||
("BGU" 21)
|
||||
("BNE" 23)
|
||||
("CALL" 54)
|
||||
("CALLI" 62)
|
||||
("CMPE" 57)
|
||||
("CMPEI" 25)
|
||||
("CMPG" 58)
|
||||
("CMPGI" 26)
|
||||
("CMPGE" 59)
|
||||
("CMPGEI" 27)
|
||||
("CMPGEU" 60)
|
||||
("CMPGEUI" 28)
|
||||
("CMPGU" 61)
|
||||
("CMPGUI" 29)
|
||||
("CMPNE" 63)
|
||||
("CMPNEI" 31)
|
||||
("DIVU" 35)
|
||||
("LB" 4)
|
||||
("LBU" 16)
|
||||
("LH" 7)
|
||||
("LHU" 11)
|
||||
("LW" 10)
|
||||
("MODU" 49)
|
||||
("MUL" 34)
|
||||
("MULI" 2)
|
||||
("NOR" 33)
|
||||
("NORI" 1)
|
||||
("OR" 46)
|
||||
("ORI" 14)
|
||||
("ORHI" 30)
|
||||
("RAISE" 43)
|
||||
("RCSR" 36)
|
||||
("SB" 12)
|
||||
("SEXTB" 44)
|
||||
("SEXTH" 55)
|
||||
("SH" 3)
|
||||
("SL" 47)
|
||||
("SLI" 15)
|
||||
("SR" 37)
|
||||
("SRI" 5)
|
||||
("SRU" 32)
|
||||
("SRUI" 0)
|
||||
("SUB" 50)
|
||||
("SW" 22)
|
||||
("USER" 51)
|
||||
("WCSR" 52)
|
||||
("XNOR" 41)
|
||||
("XNORI" 9)
|
||||
("XOR" 38)
|
||||
("XORI" 6)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
; Instructions. Note: Reg-reg must come before reg-imm.
|
||||
|
||||
(dni add "add" ()
|
||||
"add $r2,$r0,$r1"
|
||||
(+ OP_ADD r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (add r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni addi "add immediate" ()
|
||||
"addi $r1,$r0,$imm"
|
||||
(+ OP_ADDI r0 r1 imm)
|
||||
(set r1 (add r0 (ext SI (trunc HI imm))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni and "and" ()
|
||||
"and $r2,$r0,$r1"
|
||||
(+ OP_AND r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (and r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni andi "and immediate" ()
|
||||
"andi $r1,$r0,$uimm"
|
||||
(+ OP_ANDI r0 r1 uimm)
|
||||
(set r1 (and r0 (zext SI uimm)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni andhii "and high immediate" ()
|
||||
"andhi $r1,$r0,$hi16"
|
||||
(+ OP_ANDHI r0 r1 hi16)
|
||||
(set r1 (and r0 (sll SI hi16 16)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni b "branch" ()
|
||||
"b $r0"
|
||||
(+ OP_B r0 (f-r1 0) (f-r2 0) (f-resv0 0))
|
||||
(set pc (c-call USI "@cpu@_b_insn" r0 f-r0))
|
||||
()
|
||||
)
|
||||
|
||||
(dni bi "branch immediate" ()
|
||||
"bi $call"
|
||||
(+ OP_BI call)
|
||||
(set pc (ext SI call))
|
||||
()
|
||||
)
|
||||
|
||||
(dni be "branch equal" ()
|
||||
"be $r0,$r1,$branch"
|
||||
(+ OP_BE r0 r1 branch)
|
||||
(if (eq r0 r1)
|
||||
(set pc branch)
|
||||
)
|
||||
()
|
||||
)
|
||||
|
||||
(dni bg "branch greater" ()
|
||||
"bg $r0,$r1,$branch"
|
||||
(+ OP_BG r0 r1 branch)
|
||||
(if (gt r0 r1)
|
||||
(set pc branch)
|
||||
)
|
||||
()
|
||||
)
|
||||
|
||||
(dni bge "branch greater or equal" ()
|
||||
"bge $r0,$r1,$branch"
|
||||
(+ OP_BGE r0 r1 branch)
|
||||
(if (ge r0 r1)
|
||||
(set pc branch)
|
||||
)
|
||||
()
|
||||
)
|
||||
|
||||
(dni bgeu "branch greater or equal unsigned" ()
|
||||
"bgeu $r0,$r1,$branch"
|
||||
(+ OP_BGEU r0 r1 branch)
|
||||
(if (geu r0 r1)
|
||||
(set pc branch)
|
||||
)
|
||||
()
|
||||
)
|
||||
|
||||
(dni bgu "branch greater unsigned" ()
|
||||
"bgu $r0,$r1,$branch"
|
||||
(+ OP_BGU r0 r1 branch)
|
||||
(if (gtu r0 r1)
|
||||
(set pc branch)
|
||||
)
|
||||
()
|
||||
)
|
||||
|
||||
(dni bne "branch not equal" ()
|
||||
"bne $r0,$r1,$branch"
|
||||
(+ OP_BNE r0 r1 branch)
|
||||
(if (ne r0 r1)
|
||||
(set pc branch)
|
||||
)
|
||||
()
|
||||
)
|
||||
|
||||
(dni call "call" ()
|
||||
"call $r0"
|
||||
(+ OP_CALL r0 (f-r1 0) (f-r2 0) (f-resv0 0))
|
||||
(sequence ()
|
||||
(set (reg h-gr 29) (add pc 4))
|
||||
(set pc r0)
|
||||
)
|
||||
()
|
||||
)
|
||||
|
||||
(dni calli "call immediate" ()
|
||||
"calli $call"
|
||||
(+ OP_CALLI call)
|
||||
(sequence ()
|
||||
(set (reg h-gr 29) (add pc 4))
|
||||
(set pc (ext SI call))
|
||||
)
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpe "compare equal" ()
|
||||
"cmpe $r2,$r0,$r1"
|
||||
(+ OP_CMPE r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (eq SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpei "compare equal immediate" ()
|
||||
"cmpei $r1,$r0,$imm"
|
||||
(+ OP_CMPEI r0 r1 imm)
|
||||
(set r1 (eq SI r0 (ext SI (trunc HI imm))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpg "compare greater than" ()
|
||||
"cmpg $r2,$r0,$r1"
|
||||
(+ OP_CMPG r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (gt SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpgi "compare greater than immediate" ()
|
||||
"cmpgi $r1,$r0,$imm"
|
||||
(+ OP_CMPGI r0 r1 imm)
|
||||
(set r1 (gt SI r0 (ext SI (trunc HI imm))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpge "compare greater or equal" ()
|
||||
"cmpge $r2,$r0,$r1"
|
||||
(+ OP_CMPGE r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (ge SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpgei "compare greater or equal immediate" ()
|
||||
"cmpgei $r1,$r0,$imm"
|
||||
(+ OP_CMPGEI r0 r1 imm)
|
||||
(set r1 (ge SI r0 (ext SI (trunc HI imm))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpgeu "compare greater or equal unsigned" ()
|
||||
"cmpgeu $r2,$r0,$r1"
|
||||
(+ OP_CMPGEU r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (geu SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpgeui "compare greater or equal unsigned immediate" ()
|
||||
"cmpgeui $r1,$r0,$uimm"
|
||||
(+ OP_CMPGEUI r0 r1 uimm)
|
||||
(set r1 (geu SI r0 (zext SI uimm)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpgu "compare greater than unsigned" ()
|
||||
"cmpgu $r2,$r0,$r1"
|
||||
(+ OP_CMPGU r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (gtu SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpgui "compare greater than unsigned immediate" ()
|
||||
"cmpgui $r1,$r0,$uimm"
|
||||
(+ OP_CMPGUI r0 r1 uimm)
|
||||
(set r1 (gtu SI r0 (zext SI uimm)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpne "compare not equal" ()
|
||||
"cmpne $r2,$r0,$r1"
|
||||
(+ OP_CMPNE r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (ne SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni cmpnei "compare not equal immediate" ()
|
||||
"cmpnei $r1,$r0,$imm"
|
||||
(+ OP_CMPNEI r0 r1 imm)
|
||||
(set r1 (ne SI r0 (ext SI (trunc HI imm))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni divu "unsigned divide" ()
|
||||
"divu $r2,$r0,$r1"
|
||||
(+ OP_DIVU r0 r1 r2 (f-resv0 0))
|
||||
(set pc (c-call USI "@cpu@_divu_insn" pc f-r0 f-r1 f-r2))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lb "load byte" ()
|
||||
"lb $r1,($r0+$imm)"
|
||||
(+ OP_LB r0 r1 imm)
|
||||
(set r1 (ext SI (mem QI (add r0 (ext SI (trunc HI imm))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lbu "load byte unsigned" ()
|
||||
"lbu $r1,($r0+$imm)"
|
||||
(+ OP_LBU r0 r1 imm)
|
||||
(set r1 (zext SI (mem QI (add r0 (ext SI (trunc HI imm))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lh "load halfword" ()
|
||||
"lh $r1,($r0+$imm)"
|
||||
(+ OP_LH r0 r1 imm)
|
||||
(set r1 (ext SI (mem HI (add r0 (ext SI (trunc HI imm))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lhu "load halfword unsigned" ()
|
||||
"lhu $r1,($r0+$imm)"
|
||||
(+ OP_LHU r0 r1 imm)
|
||||
(set r1 (zext SI (mem HI (add r0 (ext SI (trunc HI imm))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lw "load word" ()
|
||||
"lw $r1,($r0+$imm)"
|
||||
(+ OP_LW r0 r1 imm)
|
||||
(set r1 (mem SI (add r0 (ext SI (trunc HI imm)))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni modu "unsigned modulus" ()
|
||||
"modu $r2,$r0,$r1"
|
||||
(+ OP_MODU r0 r1 r2 (f-resv0 0))
|
||||
(set pc (c-call USI "@cpu@_modu_insn" pc f-r0 f-r1 f-r2))
|
||||
()
|
||||
)
|
||||
|
||||
(dni mul "mulitply" ()
|
||||
"mul $r2,$r0,$r1"
|
||||
(+ OP_MUL r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (mul r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni muli "multiply immediate" ()
|
||||
"muli $r1,$r0,$imm"
|
||||
(+ OP_MULI r0 r1 imm)
|
||||
(set r1 (mul r0 (ext SI (trunc HI imm))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni nor "nor" ()
|
||||
"nor $r2,$r0,$r1"
|
||||
(+ OP_NOR r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (inv (or r0 r1)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni nori "nor immediate" ()
|
||||
"nori $r1,$r0,$uimm"
|
||||
(+ OP_NORI r0 r1 uimm)
|
||||
(set r1 (inv (or r0 (zext SI uimm))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni or "or" ()
|
||||
"or $r2,$r0,$r1"
|
||||
(+ OP_OR r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (or r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni ori "or immediate" ()
|
||||
"ori $r1,$r0,$lo16"
|
||||
(+ OP_ORI r0 r1 lo16)
|
||||
(set r1 (or r0 (zext SI lo16)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni orhii "or high immediate" ()
|
||||
"orhi $r1,$r0,$hi16"
|
||||
(+ OP_ORHI r0 r1 hi16)
|
||||
(set r1 (or r0 (sll SI hi16 16)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni rcsr "read control or status register" ()
|
||||
"rcsr $r2,$csr"
|
||||
(+ OP_RCSR csr (f-r1 0) r2 (f-resv0 0))
|
||||
(set r2 csr)
|
||||
()
|
||||
)
|
||||
|
||||
(dni sb "store byte" ()
|
||||
"sb ($r0+$imm),$r1"
|
||||
(+ OP_SB r0 r1 imm)
|
||||
(set (mem QI (add r0 (ext SI (trunc HI imm)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni sextb "sign extend byte" ()
|
||||
"sextb $r2,$r0"
|
||||
(+ OP_SEXTB r0 (f-r1 0) r2 (f-resv0 0))
|
||||
(set r2 (ext SI (trunc QI r0)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sexth "sign extend half-word" ()
|
||||
"sexth $r2,$r0"
|
||||
(+ OP_SEXTH r0 (f-r1 0) r2 (f-resv0 0))
|
||||
(set r2 (ext SI (trunc HI r0)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sh "store halfword" ()
|
||||
"sh ($r0+$imm),$r1"
|
||||
(+ OP_SH r0 r1 imm)
|
||||
(set (mem HI (add r0 (ext SI (trunc HI imm)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni sl "shift left" ()
|
||||
"sl $r2,$r0,$r1"
|
||||
(+ OP_SL r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (sll SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sli "shift left immediate" ()
|
||||
"sli $r1,$r0,$imm"
|
||||
(+ OP_SLI r0 r1 imm)
|
||||
(set r1 (sll SI r0 imm))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sr "shift right" ()
|
||||
"sr $r2,$r0,$r1"
|
||||
(+ OP_SR r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (sra SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sri "shift right immediate" ()
|
||||
"sri $r1,$r0,$imm"
|
||||
(+ OP_SRI r0 r1 imm)
|
||||
(set r1 (sra SI r0 imm))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sru "shift right unsigned" ()
|
||||
"sru $r2,$r0,$r1"
|
||||
(+ OP_SRU r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (srl SI r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni srui "shift right unsigned immediate" ()
|
||||
"srui $r1,$r0,$imm"
|
||||
(+ OP_SRUI r0 r1 imm)
|
||||
(set r1 (srl SI r0 imm))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sub "subtract" ()
|
||||
"sub $r2,$r0,$r1"
|
||||
(+ OP_SUB r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (sub r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sw "store word" ()
|
||||
"sw ($r0+$imm),$r1"
|
||||
(+ OP_SW r0 r1 imm)
|
||||
(set (mem SI (add r0 (ext SI (trunc HI imm)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni user "user defined instruction" ()
|
||||
"user $r2,$r0,$r1,$user"
|
||||
(+ OP_USER r0 r1 r2 user)
|
||||
(set r2 (c-call SI "@cpu@_user_insn" r0 r1 user))
|
||||
()
|
||||
)
|
||||
|
||||
(dni wcsr "write control or status register" ()
|
||||
"wcsr $csr,$r1"
|
||||
(+ OP_WCSR csr r1 (f-r2 0) (f-resv0 0))
|
||||
(c-call VOID "@cpu@_wcsr_insn" f-csr r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni xor "xor" ()
|
||||
"xor $r2,$r0,$r1"
|
||||
(+ OP_XOR r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (xor r0 r1))
|
||||
()
|
||||
)
|
||||
|
||||
(dni xori "xor immediate" ()
|
||||
"xori $r1,$r0,$uimm"
|
||||
(+ OP_XORI r0 r1 uimm)
|
||||
(set r1 (xor r0 (zext SI uimm)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni xnor "xnor" ()
|
||||
"xnor $r2,$r0,$r1"
|
||||
(+ OP_XNOR r0 r1 r2 (f-resv0 0))
|
||||
(set r2 (inv (xor r0 r1)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni xnori "xnor immediate" ()
|
||||
"xnori $r1,$r0,$uimm"
|
||||
(+ OP_XNORI r0 r1 uimm)
|
||||
(set r1 (inv (xor r0 (zext SI uimm))))
|
||||
()
|
||||
)
|
||||
|
||||
; Pseudo instructions
|
||||
|
||||
(dni break "breakpoint" ()
|
||||
"break"
|
||||
(+ OP_RAISE (f-exception 2))
|
||||
(set pc (c-call USI "@cpu@_break_insn" pc))
|
||||
()
|
||||
)
|
||||
|
||||
(dni scall "system call" ()
|
||||
"scall"
|
||||
(+ OP_RAISE (f-exception 7))
|
||||
(set pc (c-call USI "@cpu@_scall_insn" pc))
|
||||
()
|
||||
)
|
||||
|
||||
(dni bret "return from breakpoint" (ALIAS)
|
||||
"bret"
|
||||
(+ OP_B (f-r0 31) (f-r1 0) (f-r2 0) (f-resv0 0))
|
||||
(set pc (c-call USI "@cpu@_bret_insn" r0))
|
||||
()
|
||||
)
|
||||
|
||||
(dni eret "return from exception" (ALIAS)
|
||||
"eret"
|
||||
(+ OP_B (f-r0 30) (f-r1 0) (f-r2 0) (f-resv0 0))
|
||||
(set pc (c-call USI "@cpu@_eret_insn" r0))
|
||||
()
|
||||
)
|
||||
|
||||
(dni ret "return" (ALIAS)
|
||||
"ret"
|
||||
(+ OP_B (f-r0 29) (f-r1 0) (f-r2 0) (f-resv0 0))
|
||||
(set pc r0)
|
||||
()
|
||||
)
|
||||
|
||||
(dni mv "move" (ALIAS)
|
||||
"mv $r2,$r0"
|
||||
(+ OP_OR r0 (f-r1 0) r2 (f-resv0 0))
|
||||
(set r2 r0)
|
||||
()
|
||||
)
|
||||
|
||||
(dni mvi "move immediate" (ALIAS)
|
||||
"mvi $r1,$imm"
|
||||
(+ OP_ADDI (f-r0 0) r1 imm)
|
||||
(set r1 (add r0 (ext SI (trunc HI imm))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni mvui "move unsigned immediate" (ALIAS)
|
||||
"mvu $r1,$lo16"
|
||||
(+ OP_ORI (f-r0 0) r1 lo16)
|
||||
(set r1 (zext SI lo16))
|
||||
()
|
||||
)
|
||||
|
||||
(dni mvhi "move high immediate" (ALIAS)
|
||||
"mvhi $r1,$hi16"
|
||||
(+ OP_ORHI (f-r0 0) r1 hi16)
|
||||
(set r1 (or r0 (sll SI hi16 16)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni mva "move address" (ALIAS)
|
||||
"mva $r1,$gp16"
|
||||
(+ OP_ADDI (f-r0 26) r1 gp16)
|
||||
(set r1 (add r0 (ext SI (trunc HI gp16))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni not "not" (ALIAS)
|
||||
"not $r2,$r0"
|
||||
(+ OP_XNOR r0 (f-r1 0) r2 (f-resv0 0))
|
||||
(set r2 (inv r0))
|
||||
()
|
||||
)
|
||||
|
||||
(dni nop "nop" (ALIAS)
|
||||
"nop"
|
||||
(+ OP_ADDI (f-r0 0) (f-r1 0) (f-imm 0))
|
||||
(set r0 r0)
|
||||
()
|
||||
)
|
||||
|
||||
(dni lbgprel "load byte gp relative" (ALIAS)
|
||||
"lb $r1,$gp16"
|
||||
(+ OP_LB (f-r0 26) r1 gp16)
|
||||
(set r1 (ext SI (mem QI (add r0 (ext SI (trunc HI gp16))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lbugprel "load byte unsigned gp relative" (ALIAS)
|
||||
"lbu $r1,$gp16"
|
||||
(+ OP_LBU (f-r0 26) r1 gp16)
|
||||
(set r1 (zext SI (mem QI (add r0 (ext SI (trunc HI gp16))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lhgprel "load halfword gp relative" (ALIAS)
|
||||
"lh $r1,$gp16"
|
||||
(+ OP_LH (f-r0 26) r1 gp16)
|
||||
(set r1 (ext SI (mem HI (add r0 (ext SI (trunc HI gp16))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lhugprel "load halfword unsigned gp relative" (ALIAS)
|
||||
"lhu $r1,$gp16"
|
||||
(+ OP_LHU (f-r0 26) r1 gp16)
|
||||
(set r1 (zext SI (mem HI (add r0 (ext SI (trunc HI gp16))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lwgprel "load word gp relative" (ALIAS)
|
||||
"lw $r1,$gp16"
|
||||
(+ OP_LW (f-r0 26) r1 gp16)
|
||||
(set r1 (mem SI (add r0 (ext SI (trunc HI gp16)))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sbgprel "store byte gp relative" (ALIAS)
|
||||
"sb $gp16,$r1"
|
||||
(+ OP_SB (f-r0 26) r1 gp16)
|
||||
(set (mem QI (add r0 (ext SI (trunc HI gp16)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni shgprel "store halfword gp relative" (ALIAS)
|
||||
"sh $gp16,$r1"
|
||||
(+ OP_SH (f-r0 26) r1 gp16)
|
||||
(set (mem HI (add r0 (ext SI (trunc HI gp16)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni swgprel "store word gp relative" (ALIAS)
|
||||
"sw $gp16,$r1"
|
||||
(+ OP_SW (f-r0 26) r1 gp16)
|
||||
(set (mem SI (add r0 (ext SI (trunc HI gp16)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni lwgotrel "load word got relative" (ALIAS)
|
||||
"lw $r1,(gp+$got16)"
|
||||
(+ OP_LW (f-r0 26) r1 got16)
|
||||
(set r1 (mem SI (add r0 (ext SI (trunc HI got16)))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni orhigotoffi "or high got offset immediate" (ALIAS)
|
||||
"orhi $r1,$r0,$gotoffhi16"
|
||||
(+ OP_ORHI r0 r1 gotoffhi16)
|
||||
(set r1 (or r0 (sll SI gotoffhi16 16)))
|
||||
()
|
||||
)
|
||||
|
||||
(dni addgotoff "add got offset" (ALIAS)
|
||||
"addi $r1,$r0,$gotofflo16"
|
||||
(+ OP_ADDI r0 r1 gotofflo16)
|
||||
(set r1 (add r0 (ext SI (trunc HI gotofflo16))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni swgotoff "store word got offset" (ALIAS)
|
||||
"sw ($r0+$gotofflo16),$r1"
|
||||
(+ OP_SW r0 r1 gotofflo16)
|
||||
(set (mem SI (add r0 (ext SI (trunc HI gotofflo16)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni lwgotoff "load word got offset" (ALIAS)
|
||||
"lw $r1,($r0+$gotofflo16)"
|
||||
(+ OP_LW r0 r1 gotofflo16)
|
||||
(set r1 (mem SI (add r0 (ext SI (trunc HI gotofflo16)))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni shgotoff "store half word got offset" (ALIAS)
|
||||
"sh ($r0+$gotofflo16),$r1"
|
||||
(+ OP_SH r0 r1 gotofflo16)
|
||||
(set (mem HI (add r0 (ext SI (trunc HI gotofflo16)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni lhgotoff "load half word got offset" (ALIAS)
|
||||
"lh $r1,($r0+$gotofflo16)"
|
||||
(+ OP_LH r0 r1 gotofflo16)
|
||||
(set r1 (ext SI (mem HI (add r0 (ext SI (trunc HI gotofflo16))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lhugotoff "load half word got offset unsigned" (ALIAS)
|
||||
"lhu $r1,($r0+$gotofflo16)"
|
||||
(+ OP_LHU r0 r1 gotofflo16)
|
||||
(set r1 (zext SI (mem HI (add r0 (ext SI (trunc HI gotofflo16))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni sbgotoff "store byte got offset" (ALIAS)
|
||||
"sb ($r0+$gotofflo16),$r1"
|
||||
(+ OP_SB r0 r1 gotofflo16)
|
||||
(set (mem QI (add r0 (ext SI (trunc HI gotofflo16)))) r1)
|
||||
()
|
||||
)
|
||||
|
||||
(dni lbgotoff "load byte got offset" (ALIAS)
|
||||
"lb $r1,($r0+$gotofflo16)"
|
||||
(+ OP_LB r0 r1 gotofflo16)
|
||||
(set r1 (ext SI (mem QI (add r0 (ext SI (trunc HI gotofflo16))))))
|
||||
()
|
||||
)
|
||||
|
||||
(dni lbugotoff "load byte got offset unsigned" (ALIAS)
|
||||
"lbu $r1,($r0+$gotofflo16)"
|
||||
(+ OP_LBU r0 r1 gotofflo16)
|
||||
(set r1 (zext SI (mem QI (add r0 (ext SI (trunc HI gotofflo16))))))
|
||||
()
|
||||
)
|
||||
235
cpu/lm32.opc
235
cpu/lm32.opc
@@ -1,235 +0,0 @@
|
||||
/* Lattice Mico32 opcode support. -*- C -*-
|
||||
Copyright 2008 Free Software Foundation, Inc.
|
||||
Contributed by Jon Beniston <jon@beniston.com>
|
||||
|
||||
This file is part of the GNU Binutils.
|
||||
|
||||
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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
/* -- opc.h */
|
||||
|
||||
/* Allows reason codes to be output when assembler errors occur. */
|
||||
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
|
||||
|
||||
#define CGEN_DIS_HASH_SIZE 64
|
||||
#define CGEN_DIS_HASH(buf,value) ((value >> 26) & 0x3f)
|
||||
|
||||
/* -- asm.c */
|
||||
|
||||
/* Handle signed/unsigned literal. */
|
||||
|
||||
static const char *
|
||||
parse_imm (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg;
|
||||
signed long value;
|
||||
|
||||
errmsg = cgen_parse_signed_integer (cd, strp, opindex, & value);
|
||||
if (errmsg == NULL)
|
||||
{
|
||||
unsigned long x = value & 0xFFFF0000;
|
||||
if (x != 0 && x != 0xFFFF0000)
|
||||
errmsg = _("immediate value out of range");
|
||||
else
|
||||
*valuep = (value & 0xFFFF);
|
||||
}
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
/* Handle hi() */
|
||||
|
||||
static const char *
|
||||
parse_hi16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "hi(", 3) == 0)
|
||||
{
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
const char *errmsg;
|
||||
|
||||
*strp += 3;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_HI16,
|
||||
&result_type, &value);
|
||||
if (**strp != ')')
|
||||
return _("missing `)'");
|
||||
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value = (value >> 16) & 0xffff;
|
||||
*valuep = value;
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return parse_imm (cd, strp, opindex, valuep);
|
||||
}
|
||||
|
||||
/* Handle lo() */
|
||||
|
||||
static const char *
|
||||
parse_lo16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "lo(", 3) == 0)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
*strp += 3;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LO16,
|
||||
&result_type, &value);
|
||||
if (**strp != ')')
|
||||
return _("missing `)'");
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value &= 0xffff;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return parse_imm (cd, strp, opindex, valuep);
|
||||
}
|
||||
|
||||
/* Handle gp() */
|
||||
|
||||
static const char *
|
||||
parse_gp16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "gp(", 3) == 0)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
*strp += 3;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_GPREL16,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return _("missing `)'");
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value &= 0xffff;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return _("expecting gp relative address: gp(symbol)");
|
||||
}
|
||||
|
||||
/* Handle got() */
|
||||
|
||||
static const char *
|
||||
parse_got16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "got(", 4) == 0)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
*strp += 4;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LM32_16_GOT,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return _("missing `)'");
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value &= 0xffff;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return _("expecting got relative address: got(symbol)");
|
||||
}
|
||||
|
||||
/* Handle gotoffhi16() */
|
||||
|
||||
static const char *
|
||||
parse_gotoff_hi16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "gotoffhi16(", 11) == 0)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
*strp += 11;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LM32_GOTOFF_HI16,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return _("missing `)'");
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value &= 0xffff;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return _("expecting got relative address: gotoffhi16(symbol)");
|
||||
}
|
||||
|
||||
/* Handle gotofflo16() */
|
||||
|
||||
static const char *
|
||||
parse_gotoff_lo16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
long *valuep)
|
||||
{
|
||||
if (strncasecmp (*strp, "gotofflo16(", 11) == 0)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
*strp += 11;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_LM32_GOTOFF_LO16,
|
||||
&result_type, &value);
|
||||
if (**strp != ')')
|
||||
return _("missing `)'");
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value &= 0xffff;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return _("expecting got relative address: gotofflo16(symbol)");
|
||||
}
|
||||
10520
cpu/m32c.cpu
10520
cpu/m32c.cpu
File diff suppressed because it is too large
Load Diff
1187
cpu/m32c.opc
1187
cpu/m32c.opc
File diff suppressed because it is too large
Load Diff
2427
cpu/m32r.cpu
2427
cpu/m32r.cpu
File diff suppressed because it is too large
Load Diff
324
cpu/m32r.opc
324
cpu/m32r.opc
@@ -1,324 +0,0 @@
|
||||
/* M32R opcode support. -*- C -*-
|
||||
|
||||
Copyright 1998, 1999, 2000, 2001, 2004, 2005, 2007
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
Contributed by Red Hat Inc; developed under contract from
|
||||
Mitsubishi Electric Corporation.
|
||||
|
||||
This file is part of the GNU Binutils.
|
||||
|
||||
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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
/* This file is an addendum to m32r.cpu. Heavy use of C code isn't
|
||||
appropriate in .cpu files, so it resides here. This especially applies
|
||||
to assembly/disassembly where parsing/printing can be quite involved.
|
||||
Such things aren't really part of the specification of the cpu, per se,
|
||||
so .cpu files provide the general framework and .opc files handle the
|
||||
nitty-gritty details as necessary.
|
||||
|
||||
Each section is delimited with start and end markers.
|
||||
|
||||
<arch>-opc.h additions use: "-- opc.h"
|
||||
<arch>-opc.c additions use: "-- opc.c"
|
||||
<arch>-asm.c additions use: "-- asm.c"
|
||||
<arch>-dis.c additions use: "-- dis.c"
|
||||
<arch>-ibd.h additions use: "-- ibd.h" */
|
||||
|
||||
/* -- opc.h */
|
||||
|
||||
#undef CGEN_DIS_HASH_SIZE
|
||||
#define CGEN_DIS_HASH_SIZE 256
|
||||
#undef CGEN_DIS_HASH
|
||||
#if 0
|
||||
#define X(b) (((unsigned char *) (b))[0] & 0xf0)
|
||||
#define CGEN_DIS_HASH(buffer, value) \
|
||||
(X (buffer) | \
|
||||
(X (buffer) == 0x40 || X (buffer) == 0xe0 || X (buffer) == 0x60 || X (buffer) == 0x50 ? 0 \
|
||||
: X (buffer) == 0x70 || X (buffer) == 0xf0 ? (((unsigned char *) (buffer))[0] & 0xf) \
|
||||
: X (buffer) == 0x30 ? ((((unsigned char *) (buffer))[1] & 0x70) >> 4) \
|
||||
: ((((unsigned char *) (buffer))[1] & 0xf0) >> 4)))
|
||||
#else
|
||||
#define CGEN_DIS_HASH(buffer, value) m32r_cgen_dis_hash (buffer, value)
|
||||
extern unsigned int m32r_cgen_dis_hash (const char *, CGEN_INSN_INT);
|
||||
#endif
|
||||
|
||||
/* -- */
|
||||
|
||||
/* -- opc.c */
|
||||
unsigned int
|
||||
m32r_cgen_dis_hash (const char * buf ATTRIBUTE_UNUSED, CGEN_INSN_INT value)
|
||||
{
|
||||
unsigned int x;
|
||||
|
||||
if (value & 0xffff0000) /* 32bit instructions. */
|
||||
value = (value >> 16) & 0xffff;
|
||||
|
||||
x = (value >> 8) & 0xf0;
|
||||
if (x == 0x40 || x == 0xe0 || x == 0x60 || x == 0x50)
|
||||
return x;
|
||||
|
||||
if (x == 0x70 || x == 0xf0)
|
||||
return x | ((value >> 8) & 0x0f);
|
||||
|
||||
if (x == 0x30)
|
||||
return x | ((value & 0x70) >> 4);
|
||||
else
|
||||
return x | ((value & 0xf0) >> 4);
|
||||
}
|
||||
|
||||
/* -- */
|
||||
|
||||
/* -- asm.c */
|
||||
static const char * MISSING_CLOSING_PARENTHESIS = N_("missing `)'");
|
||||
|
||||
/* Handle '#' prefixes (i.e. skip over them). */
|
||||
|
||||
static const char *
|
||||
parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
const char **strp,
|
||||
int opindex ATTRIBUTE_UNUSED,
|
||||
long *valuep ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (**strp == '#')
|
||||
++*strp;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Handle shigh(), high(). */
|
||||
|
||||
static const char *
|
||||
parse_hi16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
if (**strp == '#')
|
||||
++*strp;
|
||||
|
||||
if (strncasecmp (*strp, "high(", 5) == 0)
|
||||
{
|
||||
*strp += 5;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_M32R_HI16_ULO,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
{
|
||||
value >>= 16;
|
||||
value &= 0xffff;
|
||||
}
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
else if (strncasecmp (*strp, "shigh(", 6) == 0)
|
||||
{
|
||||
*strp += 6;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_M32R_HI16_SLO,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
{
|
||||
value += 0x8000;
|
||||
value >>= 16;
|
||||
value &= 0xffff;
|
||||
}
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
}
|
||||
|
||||
/* Handle low() in a signed context. Also handle sda().
|
||||
The signedness of the value doesn't matter to low(), but this also
|
||||
handles the case where low() isn't present. */
|
||||
|
||||
static const char *
|
||||
parse_slo16 (CGEN_CPU_DESC cd,
|
||||
const char ** strp,
|
||||
int opindex,
|
||||
long * valuep)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
if (**strp == '#')
|
||||
++*strp;
|
||||
|
||||
if (strncasecmp (*strp, "low(", 4) == 0)
|
||||
{
|
||||
*strp += 4;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_M32R_LO16,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value = ((value & 0xffff) ^ 0x8000) - 0x8000;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
if (strncasecmp (*strp, "sda(", 4) == 0)
|
||||
{
|
||||
*strp += 4;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_M32R_SDA16,
|
||||
NULL, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
++*strp;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return cgen_parse_signed_integer (cd, strp, opindex, valuep);
|
||||
}
|
||||
|
||||
/* Handle low() in an unsigned context.
|
||||
The signedness of the value doesn't matter to low(), but this also
|
||||
handles the case where low() isn't present. */
|
||||
|
||||
static const char *
|
||||
parse_ulo16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
if (**strp == '#')
|
||||
++*strp;
|
||||
|
||||
if (strncasecmp (*strp, "low(", 4) == 0)
|
||||
{
|
||||
*strp += 4;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, BFD_RELOC_M32R_LO16,
|
||||
& result_type, & value);
|
||||
if (**strp != ')')
|
||||
return MISSING_CLOSING_PARENTHESIS;
|
||||
++*strp;
|
||||
if (errmsg == NULL
|
||||
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
|
||||
value &= 0xffff;
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
return cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
}
|
||||
|
||||
/* -- */
|
||||
|
||||
/* -- dis.c */
|
||||
/* Immediate values are prefixed with '#'. */
|
||||
|
||||
#define CGEN_PRINT_NORMAL(cd, info, value, attrs, pc, length) \
|
||||
do \
|
||||
{ \
|
||||
if (CGEN_BOOL_ATTR ((attrs), CGEN_OPERAND_HASH_PREFIX)) \
|
||||
(*info->fprintf_func) (info->stream, "#"); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
/* Handle '#' prefixes as operands. */
|
||||
|
||||
static void
|
||||
print_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info,
|
||||
long value ATTRIBUTE_UNUSED,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
disassemble_info *info = (disassemble_info *) dis_info;
|
||||
|
||||
(*info->fprintf_func) (info->stream, "#");
|
||||
}
|
||||
|
||||
#undef CGEN_PRINT_INSN
|
||||
#define CGEN_PRINT_INSN my_print_insn
|
||||
|
||||
static int
|
||||
my_print_insn (CGEN_CPU_DESC cd,
|
||||
bfd_vma pc,
|
||||
disassemble_info *info)
|
||||
{
|
||||
bfd_byte buffer[CGEN_MAX_INSN_SIZE];
|
||||
bfd_byte *buf = buffer;
|
||||
int status;
|
||||
int buflen = (pc & 3) == 0 ? 4 : 2;
|
||||
int big_p = CGEN_CPU_INSN_ENDIAN (cd) == CGEN_ENDIAN_BIG;
|
||||
bfd_byte *x;
|
||||
|
||||
/* Read the base part of the insn. */
|
||||
|
||||
status = (*info->read_memory_func) (pc - ((!big_p && (pc & 3) != 0) ? 2 : 0),
|
||||
buf, buflen, info);
|
||||
if (status != 0)
|
||||
{
|
||||
(*info->memory_error_func) (status, pc, info);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* 32 bit insn? */
|
||||
x = (big_p ? &buf[0] : &buf[3]);
|
||||
if ((pc & 3) == 0 && (*x & 0x80) != 0)
|
||||
return print_insn (cd, pc, info, buf, buflen);
|
||||
|
||||
/* Print the first insn. */
|
||||
if ((pc & 3) == 0)
|
||||
{
|
||||
buf += (big_p ? 0 : 2);
|
||||
if (print_insn (cd, pc, info, buf, 2) == 0)
|
||||
(*info->fprintf_func) (info->stream, UNKNOWN_INSN_MSG);
|
||||
buf += (big_p ? 2 : -2);
|
||||
}
|
||||
|
||||
x = (big_p ? &buf[0] : &buf[1]);
|
||||
if (*x & 0x80)
|
||||
{
|
||||
/* Parallel. */
|
||||
(*info->fprintf_func) (info->stream, " || ");
|
||||
*x &= 0x7f;
|
||||
}
|
||||
else
|
||||
(*info->fprintf_func) (info->stream, " -> ");
|
||||
|
||||
/* The "& 3" is to pass a consistent address.
|
||||
Parallel insns arguably both begin on the word boundary.
|
||||
Also, branch insns are calculated relative to the word boundary. */
|
||||
if (print_insn (cd, pc & ~ (bfd_vma) 3, info, buf, 2) == 0)
|
||||
(*info->fprintf_func) (info->stream, UNKNOWN_INSN_MSG);
|
||||
|
||||
return (pc & 3) ? 2 : 4;
|
||||
}
|
||||
|
||||
/* -- */
|
||||
1352
cpu/mt.cpu
1352
cpu/mt.cpu
File diff suppressed because it is too large
Load Diff
472
cpu/mt.opc
472
cpu/mt.opc
@@ -1,472 +0,0 @@
|
||||
/* Morpho Technologies mRISC opcode support, for GNU Binutils. -*- C -*-
|
||||
Copyright 2001, 2007, 2008 Free Software Foundation, Inc.
|
||||
|
||||
Contributed by Red Hat Inc; developed under contract from
|
||||
Morpho Technologies.
|
||||
|
||||
This file is part of the GNU Binutils.
|
||||
|
||||
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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
/* Each section is delimited with start and end markers.
|
||||
|
||||
<arch>-opc.h additions use: "-- opc.h"
|
||||
<arch>-opc.c additions use: "-- opc.c"
|
||||
<arch>-asm.c additions use: "-- asm.c"
|
||||
<arch>-dis.c additions use: "-- dis.c"
|
||||
<arch>-ibd.h additions use: "-- ibd.h" */
|
||||
|
||||
/* -- opc.h */
|
||||
|
||||
/* Check applicability of instructions against machines. */
|
||||
#define CGEN_VALIDATE_INSN_SUPPORTED
|
||||
|
||||
/* Allows reason codes to be output when assembler errors occur. */
|
||||
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
|
||||
|
||||
/* Override disassembly hashing - there are variable bits in the top
|
||||
byte of these instructions. */
|
||||
#define CGEN_DIS_HASH_SIZE 8
|
||||
#define CGEN_DIS_HASH(buf, value) (((* (unsigned char *) (buf)) >> 5) % CGEN_DIS_HASH_SIZE)
|
||||
|
||||
#define CGEN_ASM_HASH_SIZE 127
|
||||
#define CGEN_ASM_HASH(insn) mt_asm_hash (insn)
|
||||
|
||||
extern unsigned int mt_asm_hash (const char *);
|
||||
|
||||
extern int mt_cgen_insn_supported (CGEN_CPU_DESC, const CGEN_INSN *);
|
||||
|
||||
|
||||
/* -- opc.c */
|
||||
#include "safe-ctype.h"
|
||||
|
||||
/* Special check to ensure that instruction exists for given machine. */
|
||||
|
||||
int
|
||||
mt_cgen_insn_supported (CGEN_CPU_DESC cd, const CGEN_INSN *insn)
|
||||
{
|
||||
int machs = CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_MACH);
|
||||
|
||||
/* No mach attribute? Assume it's supported for all machs. */
|
||||
if (machs == 0)
|
||||
return 1;
|
||||
|
||||
return ((machs & cd->machs) != 0);
|
||||
}
|
||||
|
||||
/* A better hash function for instruction mnemonics. */
|
||||
|
||||
unsigned int
|
||||
mt_asm_hash (const char* insn)
|
||||
{
|
||||
unsigned int hash;
|
||||
const char* m = insn;
|
||||
|
||||
for (hash = 0; *m && ! ISSPACE (*m); m++)
|
||||
hash = (hash * 23) ^ (0x1F & TOLOWER (*m));
|
||||
|
||||
/* printf ("%s %d\n", insn, (hash % CGEN_ASM_HASH_SIZE)); */
|
||||
|
||||
return hash % CGEN_ASM_HASH_SIZE;
|
||||
}
|
||||
|
||||
|
||||
/* -- asm.c */
|
||||
/* Range checking for signed numbers. Returns 0 if acceptable
|
||||
and 1 if the value is out of bounds for a signed quantity. */
|
||||
|
||||
static int
|
||||
signed_out_of_bounds (long val)
|
||||
{
|
||||
if ((val < -32768) || (val > 32767))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const char *
|
||||
parse_loopsize (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
void *arg)
|
||||
{
|
||||
signed long * valuep = (signed long *) arg;
|
||||
const char *errmsg;
|
||||
bfd_reloc_code_real_type code = BFD_RELOC_NONE;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_vma value;
|
||||
|
||||
/* Is it a control transfer instructions? */
|
||||
if (opindex == (CGEN_OPERAND_TYPE) MT_OPERAND_LOOPSIZE)
|
||||
{
|
||||
code = BFD_RELOC_MT_PCINSN8;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, code,
|
||||
& result_type, & value);
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
abort ();
|
||||
}
|
||||
|
||||
static const char *
|
||||
parse_imm16 (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
void *arg)
|
||||
{
|
||||
signed long * valuep = (signed long *) arg;
|
||||
const char *errmsg;
|
||||
enum cgen_parse_operand_result result_type;
|
||||
bfd_reloc_code_real_type code = BFD_RELOC_NONE;
|
||||
bfd_vma value;
|
||||
|
||||
/* Is it a control transfer instructions? */
|
||||
if (opindex == (CGEN_OPERAND_TYPE) MT_OPERAND_IMM16O)
|
||||
{
|
||||
code = BFD_RELOC_16_PCREL;
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, code,
|
||||
& result_type, & value);
|
||||
if (errmsg == NULL)
|
||||
{
|
||||
if (signed_out_of_bounds (value))
|
||||
errmsg = _("Operand out of range. Must be between -32768 and 32767.");
|
||||
}
|
||||
*valuep = value;
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
/* If it's not a control transfer instruction, then
|
||||
we have to check for %OP relocating operators. */
|
||||
if (opindex == (CGEN_OPERAND_TYPE) MT_OPERAND_IMM16L)
|
||||
;
|
||||
else if (strncmp (*strp, "%hi16", 5) == 0)
|
||||
{
|
||||
*strp += 5;
|
||||
code = BFD_RELOC_HI16;
|
||||
}
|
||||
else if (strncmp (*strp, "%lo16", 5) == 0)
|
||||
{
|
||||
*strp += 5;
|
||||
code = BFD_RELOC_LO16;
|
||||
}
|
||||
|
||||
/* If we found a %OP relocating operator, then parse it as an address.
|
||||
If not, we need to parse it as an integer, either signed or unsigned
|
||||
depending on which operand type we have. */
|
||||
if (code != BFD_RELOC_NONE)
|
||||
{
|
||||
/* %OP relocating operator found. */
|
||||
errmsg = cgen_parse_address (cd, strp, opindex, code,
|
||||
& result_type, & value);
|
||||
if (errmsg == NULL)
|
||||
{
|
||||
switch (result_type)
|
||||
{
|
||||
case (CGEN_PARSE_OPERAND_RESULT_NUMBER):
|
||||
if (code == BFD_RELOC_HI16)
|
||||
value = (value >> 16) & 0xFFFF;
|
||||
else if (code == BFD_RELOC_LO16)
|
||||
value = value & 0xFFFF;
|
||||
else
|
||||
errmsg = _("Biiiig Trouble in parse_imm16!");
|
||||
break;
|
||||
|
||||
case (CGEN_PARSE_OPERAND_RESULT_QUEUED):
|
||||
/* No special processing for this case. */
|
||||
break;
|
||||
|
||||
default:
|
||||
errmsg = _("The percent-operator's operand is not a symbol");
|
||||
break;
|
||||
}
|
||||
}
|
||||
*valuep = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Parse hex values like 0xffff as unsigned, and sign extend
|
||||
them manually. */
|
||||
int parse_signed = (opindex == (CGEN_OPERAND_TYPE)MT_OPERAND_IMM16);
|
||||
|
||||
if ((*strp)[0] == '0'
|
||||
&& ((*strp)[1] == 'x' || (*strp)[1] == 'X'))
|
||||
parse_signed = 0;
|
||||
|
||||
/* No relocating operator. Parse as an number. */
|
||||
if (parse_signed)
|
||||
{
|
||||
/* Parse as as signed integer. */
|
||||
|
||||
errmsg = cgen_parse_signed_integer (cd, strp, opindex, valuep);
|
||||
|
||||
if (errmsg == NULL)
|
||||
{
|
||||
#if 0
|
||||
/* Manual range checking is needed for the signed case. */
|
||||
if (*valuep & 0x8000)
|
||||
value = 0xffff0000 | *valuep;
|
||||
else
|
||||
value = *valuep;
|
||||
|
||||
if (signed_out_of_bounds (value))
|
||||
errmsg = _("Operand out of range. Must be between -32768 and 32767.");
|
||||
/* Truncate to 16 bits. This is necessary
|
||||
because cgen will have sign extended *valuep. */
|
||||
*valuep &= 0xFFFF;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* MT_OPERAND_IMM16Z. Parse as an unsigned integer. */
|
||||
errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, (unsigned long *) valuep);
|
||||
|
||||
if (opindex == (CGEN_OPERAND_TYPE) MT_OPERAND_IMM16
|
||||
&& *valuep >= 0x8000
|
||||
&& *valuep <= 0xffff)
|
||||
*valuep -= 0x10000;
|
||||
}
|
||||
}
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
|
||||
static const char *
|
||||
parse_dup (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg = NULL;
|
||||
|
||||
if (strncmp (*strp, "dup", 3) == 0 || strncmp (*strp, "DUP", 3) == 0)
|
||||
{
|
||||
*strp += 3;
|
||||
*valuep = 1;
|
||||
}
|
||||
else if (strncmp (*strp, "xx", 2) == 0 || strncmp (*strp, "XX", 2) == 0)
|
||||
{
|
||||
*strp += 2;
|
||||
*valuep = 0;
|
||||
}
|
||||
else
|
||||
errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
|
||||
static const char *
|
||||
parse_ball (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg = NULL;
|
||||
|
||||
if (strncmp (*strp, "all", 3) == 0 || strncmp (*strp, "ALL", 3) == 0)
|
||||
{
|
||||
*strp += 3;
|
||||
*valuep = 1;
|
||||
}
|
||||
else if (strncmp (*strp, "one", 3) == 0 || strncmp (*strp, "ONE", 3) == 0)
|
||||
{
|
||||
*strp += 3;
|
||||
*valuep = 0;
|
||||
}
|
||||
else
|
||||
errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
static const char *
|
||||
parse_xmode (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg = NULL;
|
||||
|
||||
if (strncmp (*strp, "pm", 2) == 0 || strncmp (*strp, "PM", 2) == 0)
|
||||
{
|
||||
*strp += 2;
|
||||
*valuep = 1;
|
||||
}
|
||||
else if (strncmp (*strp, "xm", 2) == 0 || strncmp (*strp, "XM", 2) == 0)
|
||||
{
|
||||
*strp += 2;
|
||||
*valuep = 0;
|
||||
}
|
||||
else
|
||||
errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
static const char *
|
||||
parse_rc (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg = NULL;
|
||||
|
||||
if (strncmp (*strp, "r", 1) == 0 || strncmp (*strp, "R", 1) == 0)
|
||||
{
|
||||
*strp += 1;
|
||||
*valuep = 1;
|
||||
}
|
||||
else if (strncmp (*strp, "c", 1) == 0 || strncmp (*strp, "C", 1) == 0)
|
||||
{
|
||||
*strp += 1;
|
||||
*valuep = 0;
|
||||
}
|
||||
else
|
||||
errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
static const char *
|
||||
parse_cbrb (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg = NULL;
|
||||
|
||||
if (strncmp (*strp, "rb", 2) == 0 || strncmp (*strp, "RB", 2) == 0)
|
||||
{
|
||||
*strp += 2;
|
||||
*valuep = 1;
|
||||
}
|
||||
else if (strncmp (*strp, "cb", 2) == 0 || strncmp (*strp, "CB", 2) == 0)
|
||||
{
|
||||
*strp += 2;
|
||||
*valuep = 0;
|
||||
}
|
||||
else
|
||||
errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
static const char *
|
||||
parse_rbbc (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg = NULL;
|
||||
|
||||
if (strncmp (*strp, "rt", 2) == 0 || strncmp (*strp, "RT", 2) == 0)
|
||||
{
|
||||
*strp += 2;
|
||||
*valuep = 0;
|
||||
}
|
||||
else if (strncmp (*strp, "br1", 3) == 0 || strncmp (*strp, "BR1", 3) == 0)
|
||||
{
|
||||
*strp += 3;
|
||||
*valuep = 1;
|
||||
}
|
||||
else if (strncmp (*strp, "br2", 3) == 0 || strncmp (*strp, "BR2", 3) == 0)
|
||||
{
|
||||
*strp += 3;
|
||||
*valuep = 2;
|
||||
}
|
||||
else if (strncmp (*strp, "cs", 2) == 0 || strncmp (*strp, "CS", 2) == 0)
|
||||
{
|
||||
*strp += 2;
|
||||
*valuep = 3;
|
||||
}
|
||||
else
|
||||
errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
static const char *
|
||||
parse_type (CGEN_CPU_DESC cd,
|
||||
const char **strp,
|
||||
int opindex,
|
||||
unsigned long *valuep)
|
||||
{
|
||||
const char *errmsg = NULL;
|
||||
|
||||
if (strncmp (*strp, "odd", 3) == 0 || strncmp (*strp, "ODD", 3) == 0)
|
||||
{
|
||||
*strp += 3;
|
||||
*valuep = 0;
|
||||
}
|
||||
else if (strncmp (*strp, "even", 4) == 0 || strncmp (*strp, "EVEN", 4) == 0)
|
||||
{
|
||||
*strp += 4;
|
||||
*valuep = 1;
|
||||
}
|
||||
else if (strncmp (*strp, "oe", 2) == 0 || strncmp (*strp, "OE", 2) == 0)
|
||||
{
|
||||
*strp += 2;
|
||||
*valuep = 2;
|
||||
}
|
||||
else
|
||||
errmsg = cgen_parse_unsigned_integer (cd, strp, opindex, valuep);
|
||||
|
||||
if ((errmsg == NULL) && (*valuep == 3))
|
||||
errmsg = _("invalid operand. type may have values 0,1,2 only.");
|
||||
|
||||
return errmsg;
|
||||
}
|
||||
|
||||
/* -- dis.c */
|
||||
static void print_dollarhex (CGEN_CPU_DESC, PTR, long, unsigned, bfd_vma, int);
|
||||
static void print_pcrel (CGEN_CPU_DESC, PTR, long, unsigned, bfd_vma, int);
|
||||
|
||||
static void
|
||||
print_dollarhex (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info,
|
||||
long value,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
disassemble_info *info = (disassemble_info *) dis_info;
|
||||
|
||||
info->fprintf_func (info->stream, "$%lx", value);
|
||||
|
||||
if (0)
|
||||
print_normal (cd, dis_info, value, attrs, pc, length);
|
||||
}
|
||||
|
||||
static void
|
||||
print_pcrel (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info,
|
||||
long value,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
print_address (cd, dis_info, value + pc, attrs, pc, length);
|
||||
}
|
||||
|
||||
/* -- */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
369
cpu/sh.cpu
369
cpu/sh.cpu
@@ -1,369 +0,0 @@
|
||||
; Hitachi SH architecture description. -*- Scheme -*-
|
||||
;
|
||||
; Copyright 2000, 2001, 2007 Free Software Foundation, Inc.
|
||||
;
|
||||
; Contributed by Red Hat Inc; developed under contract from Hitachi
|
||||
; Semiconductor (America) Inc.
|
||||
;
|
||||
; This file is part of the GNU Binutils.
|
||||
;
|
||||
; 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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
; MA 02110-1301, USA.
|
||||
|
||||
|
||||
(include "simplify.inc")
|
||||
|
||||
(define-arch
|
||||
(name sh)
|
||||
(comment "Hitachi SuperH (SH)")
|
||||
(insn-lsb0? #t)
|
||||
(machs sh2 sh3 sh3e sh4 sh5)
|
||||
(isas compact media)
|
||||
)
|
||||
|
||||
|
||||
; Instruction sets.
|
||||
|
||||
(define-isa
|
||||
(name media)
|
||||
(comment "SHmedia 32-bit instruction set")
|
||||
(base-insn-bitsize 32)
|
||||
)
|
||||
|
||||
(define-isa
|
||||
(name compact)
|
||||
(comment "SHcompact 16-bit instruction set")
|
||||
(base-insn-bitsize 16)
|
||||
)
|
||||
|
||||
|
||||
; CPU family.
|
||||
|
||||
(define-cpu
|
||||
(name sh64)
|
||||
(comment "SH 64-bit family")
|
||||
(endian either)
|
||||
(word-bitsize 32)
|
||||
)
|
||||
|
||||
|
||||
(define-mach
|
||||
(name sh2)
|
||||
(comment "SH-2 CPU core")
|
||||
(cpu sh64)
|
||||
(isas compact)
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name sh3)
|
||||
(comment "SH-3 CPU core")
|
||||
(cpu sh64)
|
||||
(isas compact)
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name sh3e)
|
||||
(comment "SH-3e CPU core")
|
||||
(cpu sh64)
|
||||
(isas compact)
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name sh4)
|
||||
(comment "SH-4 CPU core")
|
||||
(cpu sh64)
|
||||
(isas compact)
|
||||
)
|
||||
|
||||
(define-mach
|
||||
(name sh5)
|
||||
(comment "SH-5 CPU core")
|
||||
(cpu sh64)
|
||||
(isas compact media)
|
||||
)
|
||||
|
||||
(define-model
|
||||
(name sh5)
|
||||
(comment "SH-5 reference implementation")
|
||||
(mach sh5)
|
||||
(unit u-exec "Execution unit" ()
|
||||
1 1 ; issue done
|
||||
() () () ())
|
||||
)
|
||||
|
||||
; Hardware elements.
|
||||
|
||||
(define-hardware
|
||||
(name h-pc)
|
||||
(comment "Program counter")
|
||||
(attrs PC (ISA compact,media))
|
||||
(type pc UDI)
|
||||
(get () (raw-reg h-pc))
|
||||
(set (newval) (sequence ()
|
||||
(set (raw-reg h-ism) (and newval 1))
|
||||
(set (raw-reg h-pc) (and newval (inv UDI 1)))))
|
||||
)
|
||||
|
||||
(define-pmacro (-build-greg-name n) ((.sym r n) n))
|
||||
|
||||
(define-hardware
|
||||
(name h-gr)
|
||||
(comment "General purpose integer registers")
|
||||
(attrs (ISA media,compact))
|
||||
(type register DI (64))
|
||||
(indices keyword "" (.map -build-greg-name (.iota 64)))
|
||||
(get (index)
|
||||
(if DI (eq index 63)
|
||||
(const 0)
|
||||
(raw-reg h-gr index)))
|
||||
(set (index newval)
|
||||
(if (ne index 63)
|
||||
(set (raw-reg h-gr index) newval)
|
||||
(nop)))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-grc)
|
||||
(comment "General purpose integer registers (SHcompact view)")
|
||||
(attrs VIRTUAL (ISA compact))
|
||||
(type register SI (16))
|
||||
(indices keyword "" (.map -build-greg-name (.iota 16)))
|
||||
(get (index)
|
||||
(and (raw-reg h-gr index) (zext DI #xFFFFFFFF)))
|
||||
(set (index newval)
|
||||
(set (raw-reg h-gr index) (ext DI newval)))
|
||||
)
|
||||
|
||||
(define-pmacro (-build-creg-name n) ((.sym cr n) n))
|
||||
|
||||
(define-hardware
|
||||
(name h-cr)
|
||||
(comment "Control registers")
|
||||
(attrs (ISA media))
|
||||
(type register DI (64))
|
||||
(indices keyword "" (.map -build-creg-name (.iota 64)))
|
||||
(get (index)
|
||||
(if DI (eq index 0)
|
||||
(zext DI (reg h-sr))
|
||||
(raw-reg h-cr index)))
|
||||
(set (index newval)
|
||||
(if (eq index 0)
|
||||
(set (reg h-sr) newval)
|
||||
(set (raw-reg h-cr index) newval)))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-sr)
|
||||
(comment "Status register")
|
||||
(attrs (ISA compact,media))
|
||||
(type register SI)
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-fpscr)
|
||||
(comment "Floating point status and control register")
|
||||
(attrs (ISA compact,media))
|
||||
(type register SI)
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-frbit)
|
||||
(comment "Floating point register file bit")
|
||||
(attrs (ISA media,compact) VIRTUAL)
|
||||
(type register BI)
|
||||
(get () (and (srl (reg h-sr) 14) 1))
|
||||
(set (newvalue) (set (reg h-sr) (or (and (reg h-sr) (inv (sll 1 14))) (sll SI newvalue 14))))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-szbit)
|
||||
(comment "Floating point transfer size bit")
|
||||
(attrs (ISA media,compact) VIRTUAL)
|
||||
(type register BI)
|
||||
(get () (and (srl (reg h-sr) 13) 1))
|
||||
(set (newvalue) (set (reg h-sr) (or (and (reg h-sr) (inv (sll 1 13))) (sll SI newvalue 13))))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-prbit)
|
||||
(comment "Floating point precision bit")
|
||||
(attrs (ISA media,compact) VIRTUAL)
|
||||
(type register BI)
|
||||
(get () (and (srl (reg h-sr) 12) 1))
|
||||
(set (newvalue) (set (reg h-sr) (or (and (reg h-sr) (inv (sll 1 12))) (sll SI newvalue 12))))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-sbit)
|
||||
(comment "Multiply-accumulate saturation flag")
|
||||
(attrs (ISA compact) VIRTUAL)
|
||||
(type register BI)
|
||||
(get () (and (srl (reg h-sr) 1) 1))
|
||||
(set (newvalue) (set (reg h-sr) (or (and (reg h-sr) (inv 2)) (sll SI newvalue 1))))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-mbit)
|
||||
(comment "Divide-step M flag")
|
||||
(attrs (ISA compact) VIRTUAL)
|
||||
(type register BI)
|
||||
(get () (and (srl (reg h-sr) 9) 1))
|
||||
(set (newvalue) (set (reg h-sr) (or (and (reg h-sr) (inv (sll 1 9))) (sll SI newvalue 9))))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-qbit)
|
||||
(comment "Divide-step Q flag")
|
||||
(attrs (ISA compact) VIRTUAL)
|
||||
(type register BI)
|
||||
(get () (and (srl (reg h-sr) 8) 1))
|
||||
(set (newvalue) (set (reg h-sr) (or (and (reg h-sr) (inv (sll 1 8))) (sll SI newvalue 8))))
|
||||
)
|
||||
|
||||
(define-pmacro (-build-freg-name n) ((.sym fr n) n))
|
||||
|
||||
(define-hardware
|
||||
(name h-fr)
|
||||
(comment "Single precision floating point registers")
|
||||
(attrs (ISA media,compact))
|
||||
(type register SF (64))
|
||||
(indices keyword "" (.map -build-freg-name (.iota 64)))
|
||||
)
|
||||
|
||||
|
||||
(define-pmacro (-build-fpair-name n) ((.sym fp n) n))
|
||||
|
||||
(define-hardware
|
||||
(name h-fp)
|
||||
(comment "Single precision floating point register pairs")
|
||||
(attrs (ISA media,compact))
|
||||
(type register DF (32))
|
||||
(indices keyword "" (.map -build-fpair-name (.iota 32)))
|
||||
)
|
||||
|
||||
(define-pmacro (-build-fvec-name n) ((.sym fv n) n))
|
||||
|
||||
(define-hardware
|
||||
(name h-fv)
|
||||
(comment "Single precision floating point vectors")
|
||||
(attrs VIRTUAL (ISA media,compact))
|
||||
(type register SF (16))
|
||||
(indices keyword "" (.map -build-fvec-name (.iota 16)))
|
||||
; Mask with $F to ensure 0 <= index < 15.
|
||||
(get (index) (reg h-fr (mul (and UQI index 15) 4)))
|
||||
(set (index newval) (set (reg h-fr (mul (and UQI index 15) 4)) newval))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-fmtx)
|
||||
(comment "Single precision floating point matrices")
|
||||
(attrs VIRTUAL (ISA media))
|
||||
(type register SF (4))
|
||||
(indices keyword "" ((mtrx0 0) (mtrx1 1) (mtrx2 2) (mtrx3 3)))
|
||||
; Mask with $3 to ensure 0 <= index < 4.
|
||||
(get (index) (reg h-fr (mul (and UQI index 3) 16)))
|
||||
(set (index newval) (set (reg h-fr (mul (and UQI index 3) 16)) newval))
|
||||
)
|
||||
|
||||
(define-pmacro (-build-dreg-name n) ((.sym dr n) n))
|
||||
|
||||
(define-hardware
|
||||
(name h-dr)
|
||||
(comment "Double precision floating point registers")
|
||||
(attrs (ISA media,compact) VIRTUAL)
|
||||
(type register DF (32))
|
||||
(indices keyword "" (.map -build-dreg-name (.iota 64)))
|
||||
(get (index)
|
||||
(subword DF
|
||||
(or
|
||||
(sll DI (zext DI (subword SI (reg h-fr index) 0)) 32)
|
||||
(zext DI (subword SI (reg h-fr (add index 1)) 0))) 0))
|
||||
(set (index newval)
|
||||
(sequence ()
|
||||
(set (reg h-fr index)
|
||||
(subword SF (subword SI newval 0) 0))
|
||||
(set (reg h-fr (add index 1))
|
||||
(subword SF (subword SI newval 1) 0))))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-tr)
|
||||
(comment "Branch target registers")
|
||||
(attrs (ISA media))
|
||||
(type register DI (8))
|
||||
(indices keyword "" ((tr0 0) (tr1 1) (tr2 2) (tr3 3) (tr4 4) (tr5 5) (tr6 6) (tr7 7)))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-endian)
|
||||
(comment "Current endian mode")
|
||||
(attrs (ISA compact,media) VIRTUAL)
|
||||
(type register BI)
|
||||
(get () (c-call BI "sh64_endian"))
|
||||
(set (newval) (error "cannot alter target byte order mid-program"))
|
||||
)
|
||||
|
||||
(define-hardware
|
||||
(name h-ism)
|
||||
(comment "Current instruction set mode")
|
||||
(attrs (ISA compact,media))
|
||||
(type register BI)
|
||||
(get () (raw-reg h-ism))
|
||||
(set (newval) (error "cannot set ism directly"))
|
||||
)
|
||||
|
||||
|
||||
; Operands.
|
||||
|
||||
(dnop endian "Endian mode" ((ISA compact,media)) h-endian f-nil)
|
||||
(dnop ism "Instruction set mode" ((ISA compact,media)) h-ism f-nil)
|
||||
|
||||
; Universally useful macros.
|
||||
|
||||
; A pmacro for use in semantic bodies of unimplemented insns.
|
||||
(define-pmacro (unimp mnemonic) (nop))
|
||||
|
||||
; Join 2 ints together in natural bit order.
|
||||
(define-pmacro (-join-si s1 s0)
|
||||
(or (sll (zext DI s1) 32)
|
||||
(zext DI s0)))
|
||||
|
||||
; Join 4 half-ints together in natural bit order.
|
||||
(define-pmacro (-join-hi h3 h2 h1 h0)
|
||||
(or (sll (zext DI h3) 48)
|
||||
(or (sll (zext DI h2) 32)
|
||||
(or (sll (zext DI h1) 16)
|
||||
(zext DI h0)))))
|
||||
|
||||
; Join 8 quarter-ints together in natural bit order.
|
||||
(define-pmacro (-join-qi b7 b6 b5 b4 b3 b2 b1 b0)
|
||||
(or (sll (zext DI b7) 56)
|
||||
(or (sll (zext DI b6) 48)
|
||||
(or (sll (zext DI b5) 40)
|
||||
(or (sll (zext DI b4) 32)
|
||||
(or (sll (zext DI b3) 24)
|
||||
(or (sll (zext DI b2) 16)
|
||||
(or (sll (zext DI b1) 8)
|
||||
(zext DI b0)))))))))
|
||||
|
||||
|
||||
; Include the two instruction set descriptions from their respective
|
||||
; source files.
|
||||
|
||||
(if (keep-isa? (compact))
|
||||
(include "sh64-compact.cpu"))
|
||||
|
||||
(if (keep-isa? (media))
|
||||
(include "sh64-media.cpu"))
|
||||
77
cpu/sh.opc
77
cpu/sh.opc
@@ -1,77 +0,0 @@
|
||||
/* SHmedia opcode support. -*- C -*-
|
||||
|
||||
Copyright 2000, 2005, 2007 Free Software Foundation, Inc.
|
||||
|
||||
Contributed by Red Hat Inc; developed under contract from Hitachi
|
||||
Semiconductor (America) Inc.
|
||||
|
||||
This file is part of the GNU Binutils.
|
||||
|
||||
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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
MA 02110-1301, USA. */
|
||||
|
||||
|
||||
/* This file is an addendum to sh-media.cpu. Heavy use of C code isn't
|
||||
appropriate in .cpu files, so it resides here. This especially applies
|
||||
to assembly/disassembly where parsing/printing can be quite involved.
|
||||
Such things aren't really part of the specification of the cpu, per se,
|
||||
so .cpu files provide the general framework and .opc files handle the
|
||||
nitty-gritty details as necessary.
|
||||
|
||||
Each section is delimited with start and end markers.
|
||||
|
||||
<arch>-opc.h additions use: "-- opc.h"
|
||||
<arch>-opc.c additions use: "-- opc.c"
|
||||
<arch>-asm.c additions use: "-- asm.c"
|
||||
<arch>-dis.c additions use: "-- dis.c"
|
||||
<arch>-ibd.h additions use: "-- ibd.h" */
|
||||
|
||||
/* -- opc.h */
|
||||
|
||||
/* Allows reason codes to be output when assembler errors occur. */
|
||||
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
|
||||
|
||||
/* Override disassembly hashing - there are variable bits in the top
|
||||
byte of these instructions. */
|
||||
#define CGEN_DIS_HASH_SIZE 8
|
||||
#define CGEN_DIS_HASH(buf,value) (((* (unsigned char*) (buf)) >> 6) % CGEN_DIS_HASH_SIZE)
|
||||
|
||||
/* -- asm.c */
|
||||
|
||||
static const char *
|
||||
parse_fsd (CGEN_CPU_DESC cd,
|
||||
const char ** strp,
|
||||
int opindex,
|
||||
long * valuep)
|
||||
{
|
||||
abort ();
|
||||
}
|
||||
|
||||
/* -- dis.c */
|
||||
|
||||
static void
|
||||
print_likely (CGEN_CPU_DESC cd,
|
||||
void * dis_info,
|
||||
long value,
|
||||
unsigned int attrs,
|
||||
bfd_vma pc,
|
||||
int length)
|
||||
{
|
||||
disassemble_info *info = (disassemble_info *) dis_info;
|
||||
|
||||
(*info->fprintf_func) (info->stream, (value) ? "/l" : "/u");
|
||||
}
|
||||
|
||||
/* -- */
|
||||
1748
cpu/sh64-compact.cpu
1748
cpu/sh64-compact.cpu
File diff suppressed because it is too large
Load Diff
1733
cpu/sh64-media.cpu
1733
cpu/sh64-media.cpu
File diff suppressed because it is too large
Load Diff
216
cpu/simplify.inc
216
cpu/simplify.inc
@@ -1,216 +0,0 @@
|
||||
; Collection of macros, for GNU Binutils .cpu files. -*- Scheme -*-
|
||||
;
|
||||
; Copyright 2000, 2007 Free Software Foundation, Inc.
|
||||
;
|
||||
; Contributed by Red Hat Inc.
|
||||
;
|
||||
; This file is part of the GNU Binutils.
|
||||
;
|
||||
; 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 3 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., 51 Franklin Street - Fifth Floor, Boston,
|
||||
; MA 02110-1301, USA.
|
||||
|
||||
; Enums.
|
||||
|
||||
; Define a normal enum without using name/value pairs.
|
||||
; This is currently the same as define-full-enum but it needn't remain
|
||||
; that way (it's define-full-enum that would change).
|
||||
|
||||
(define-pmacro (define-normal-enum name comment attrs prefix vals)
|
||||
"\
|
||||
Define a normal enum, fixed number of arguments.
|
||||
"
|
||||
(define-full-enum name comment attrs prefix vals)
|
||||
)
|
||||
|
||||
; Define a normal insn enum.
|
||||
|
||||
(define-pmacro (define-normal-insn-enum name comment attrs prefix fld vals)
|
||||
"\
|
||||
Define a normal instruction opcode enum.
|
||||
"
|
||||
(define-full-insn-enum name comment attrs prefix fld vals)
|
||||
)
|
||||
|
||||
; Instruction fields.
|
||||
|
||||
; Normally, fields are unsigned have no encode/decode needs.
|
||||
|
||||
(define-pmacro (define-normal-ifield name comment attrs start length)
|
||||
"Define a normal instruction field.\n"
|
||||
(define-full-ifield name comment attrs start length UINT #f #f)
|
||||
)
|
||||
|
||||
; For those who don't like typing.
|
||||
|
||||
(define-pmacro df
|
||||
"Shorthand form of define-full-ifield.\n"
|
||||
define-full-ifield
|
||||
)
|
||||
(define-pmacro dnf
|
||||
"Shorthand form of define-normal-ifield.\n"
|
||||
define-normal-ifield
|
||||
)
|
||||
|
||||
; Define a normal multi-ifield.
|
||||
; FIXME: The define-normal version for ifields doesn't include the mode.
|
||||
|
||||
(define-pmacro (define-normal-multi-ifield name comment attrs
|
||||
mode subflds insert extract)
|
||||
"Define a normal multi-part instruction field.\n"
|
||||
(define-full-multi-ifield name comment attrs mode subflds insert extract)
|
||||
)
|
||||
|
||||
; For those who don't like typing.
|
||||
|
||||
(define-pmacro dnmf
|
||||
"Shorthand form of define-normal-multi-ifield.\n"
|
||||
define-normal-multi-ifield
|
||||
)
|
||||
|
||||
; Simple multi-ifields: mode is UINT, default insert/extract support.
|
||||
|
||||
(define-pmacro (dsmf name comment attrs subflds)
|
||||
"Define a simple multi-part instruction field.\n"
|
||||
(define-full-multi-ifield name comment attrs UINT subflds #f #f)
|
||||
)
|
||||
|
||||
; Hardware.
|
||||
|
||||
; Simpler version for most hardware elements.
|
||||
; Allow special assembler support specification but no semantic-name or
|
||||
; get/set specs.
|
||||
|
||||
(define-pmacro (define-normal-hardware name comment attrs type
|
||||
indices values handlers)
|
||||
"\
|
||||
Define a normal hardware element.
|
||||
"
|
||||
(define-full-hardware name comment attrs name type
|
||||
indices values handlers () () ())
|
||||
)
|
||||
|
||||
; For those who don't like typing.
|
||||
|
||||
(define-pmacro dnh
|
||||
"Shorthand form of define-normal-hardware.\n"
|
||||
define-normal-hardware
|
||||
)
|
||||
|
||||
; Simpler version of dnh that leaves out the indices, values, handlers,
|
||||
; get, set, and layout specs.
|
||||
; This is useful for 1 bit registers.
|
||||
; ??? While dsh and dnh aren't that distinguishable when perusing a .cpu file,
|
||||
; they both take a fixed number of positional arguments, and dsh is a proper
|
||||
; subset of dnh with all arguments in the same positions, so methinks things
|
||||
; are ok.
|
||||
|
||||
(define-pmacro (define-simple-hardware name comment attrs type)
|
||||
"\
|
||||
Define a simple hardware element (usually a scalar register).
|
||||
"
|
||||
(define-full-hardware name comment attrs name type () () () () () ())
|
||||
)
|
||||
|
||||
(define-pmacro dsh
|
||||
"Shorthand form of define-simple-hardware.\n"
|
||||
define-simple-hardware
|
||||
)
|
||||
|
||||
; Operands.
|
||||
|
||||
(define-pmacro (define-normal-operand name comment attrs type index)
|
||||
"Define a normal operand.\n"
|
||||
(define-full-operand name comment attrs type DFLT index () () ())
|
||||
)
|
||||
|
||||
; For those who don't like typing.
|
||||
; FIXME: dno?
|
||||
|
||||
(define-pmacro dnop
|
||||
"Shorthand form of define-normal-operand.\n"
|
||||
define-normal-operand
|
||||
)
|
||||
|
||||
(define-pmacro (dndo x-name x-mode x-args
|
||||
x-syntax x-base-ifield x-encoding x-ifield-assertion
|
||||
x-getter x-setter)
|
||||
"Define a normal derived operand."
|
||||
(define-derived-operand
|
||||
(name x-name)
|
||||
(mode x-mode)
|
||||
(args x-args)
|
||||
(syntax x-syntax)
|
||||
(base-ifield x-base-ifield)
|
||||
(encoding x-encoding)
|
||||
(ifield-assertion x-ifield-assertion)
|
||||
(getter x-getter)
|
||||
(setter x-setter)
|
||||
)
|
||||
)
|
||||
|
||||
; Instructions.
|
||||
|
||||
; Define an instruction object, normal version.
|
||||
; At present all fields must be specified.
|
||||
; Fields ifield-assertion is absent.
|
||||
|
||||
(define-pmacro (define-normal-insn name comment attrs syntax fmt semantics timing)
|
||||
"Define a normal instruction.\n"
|
||||
(define-full-insn name comment attrs syntax fmt () semantics timing)
|
||||
)
|
||||
|
||||
; To reduce the amount of typing.
|
||||
; Note that this is the same name as the D'ni in MYST. Oooohhhh.....
|
||||
; this must be the right way to go. :-)
|
||||
|
||||
(define-pmacro dni
|
||||
"Shorthand form of define-normal-insn.\n"
|
||||
define-normal-insn
|
||||
)
|
||||
|
||||
; Macro instructions.
|
||||
|
||||
; Define a macro-insn object, normal version.
|
||||
; This only supports expanding to one real insn.
|
||||
|
||||
(define-pmacro (define-normal-macro-insn name comment attrs syntax expansion)
|
||||
"Define a normal macro instruction.\n"
|
||||
(define-full-minsn name comment attrs syntax expansion)
|
||||
)
|
||||
|
||||
; To reduce the amount of typing.
|
||||
|
||||
(define-pmacro dnmi
|
||||
"Shorthand form of define-normal-macro-insn.\n"
|
||||
define-normal-macro-insn
|
||||
)
|
||||
|
||||
; Modes.
|
||||
; ??? Not currently available for use.
|
||||
;
|
||||
; Define Normal Mode
|
||||
;
|
||||
;(define-pmacro (define-normal-mode name comment attrs bits bytes
|
||||
; non-mode-c-type printf-type sem-mode ptr-to host?)
|
||||
; "Define a normal mode.\n"
|
||||
; (define-full-mode name comment attrs bits bytes
|
||||
; non-mode-c-type printf-type sem-mode ptr-to host?)
|
||||
;)
|
||||
;
|
||||
; For those who don't like typing.
|
||||
;(define-pmacro dnm
|
||||
; "Shorthand form of define-normal-mode.\n"
|
||||
; define-normal-mode
|
||||
;)
|
||||
3129
cpu/xc16x.cpu
3129
cpu/xc16x.cpu
File diff suppressed because it is too large
Load Diff
245
cpu/xc16x.opc
245
cpu/xc16x.opc
@@ -1,245 +0,0 @@
|
||||
/* XC16X opcode support. -*- C -*-
|
||||
|
||||
Copyright 2006, 2007 Free Software Foundation, Inc.
|
||||
|
||||
Contributed by KPIT Cummins Infosystems Ltd.; developed under contract
|
||||
from Infineon Systems, GMBH , Germany.
|
||||
|
||||
This file is part of the GNU Binutils.
|
||||
|
||||
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 3 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, 51 Franklin Street - Fifth Floor, Boston, MA
|
||||
02110-1301, USA. */
|
||||
|
||||
|
||||
/* This file is an addendum to xc16x.cpu. Heavy use of C code isn't
|
||||
appropriate in .cpu files, so it resides here. This especially applies
|
||||
to assembly/disassembly where parsing/printing can be quite involved.
|
||||
Such things aren't really part of the specification of the cpu, per se,
|
||||
so .cpu files provide the general framework and .opc files handle the
|
||||
nitty-gritty details as necessary.
|
||||
|
||||
Each section is delimited with start and end markers.
|
||||
|
||||
<arch>-opc.h additions use: "-- opc.h"
|
||||
<arch>-opc.c additions use: "-- opc.c"
|
||||
<arch>-asm.c additions use: "-- asm.c"
|
||||
<arch>-dis.c additions use: "-- dis.c"
|
||||
<arch>-ibd.h additions use: "-- ibd.h" */
|
||||
|
||||
/* -- opc.h */
|
||||
|
||||
#define CGEN_DIS_HASH_SIZE 8
|
||||
#define CGEN_DIS_HASH(buf,value) (((* (unsigned char*) (buf)) >> 3) % CGEN_DIS_HASH_SIZE)
|
||||
|
||||
/* -- */
|
||||
|
||||
/* -- opc.c */
|
||||
|
||||
/* -- */
|
||||
|
||||
/* -- asm.c */
|
||||
/* Handle '#' prefixes (i.e. skip over them). */
|
||||
|
||||
static const char *
|
||||
parse_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
const char **strp,
|
||||
int opindex ATTRIBUTE_UNUSED,
|
||||
long *valuep ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (**strp == '#')
|
||||
{
|
||||
++*strp;
|
||||
return NULL;
|
||||
}
|
||||
return _("Missing '#' prefix");
|
||||
}
|
||||
|
||||
/* Handle '.' prefixes (i.e. skip over them). */
|
||||
|
||||
static const char *
|
||||
parse_dot (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
const char **strp,
|
||||
int opindex ATTRIBUTE_UNUSED,
|
||||
long *valuep ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (**strp == '.')
|
||||
{
|
||||
++*strp;
|
||||
return NULL;
|
||||
}
|
||||
return _("Missing '.' prefix");
|
||||
}
|
||||
|
||||
/* Handle 'pof:' prefixes (i.e. skip over them). */
|
||||
|
||||
static const char *
|
||||
parse_pof (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
const char **strp,
|
||||
int opindex ATTRIBUTE_UNUSED,
|
||||
long *valuep ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (strncasecmp (*strp, "pof:", 4) == 0)
|
||||
{
|
||||
*strp += 4;
|
||||
return NULL;
|
||||
}
|
||||
return _("Missing 'pof:' prefix");
|
||||
}
|
||||
|
||||
/* Handle 'pag:' prefixes (i.e. skip over them). */
|
||||
|
||||
static const char *
|
||||
parse_pag (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
const char **strp,
|
||||
int opindex ATTRIBUTE_UNUSED,
|
||||
long *valuep ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (strncasecmp (*strp, "pag:", 4) == 0)
|
||||
{
|
||||
*strp += 4;
|
||||
return NULL;
|
||||
}
|
||||
return _("Missing 'pag:' prefix");
|
||||
}
|
||||
|
||||
/* Handle 'sof' prefixes (i.e. skip over them). */
|
||||
|
||||
static const char *
|
||||
parse_sof (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
const char **strp,
|
||||
int opindex ATTRIBUTE_UNUSED,
|
||||
long *valuep ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (strncasecmp (*strp, "sof:", 4) == 0)
|
||||
{
|
||||
*strp += 4;
|
||||
return NULL;
|
||||
}
|
||||
return _("Missing 'sof:' prefix");
|
||||
}
|
||||
|
||||
/* Handle 'seg' prefixes (i.e. skip over them). */
|
||||
|
||||
static const char *
|
||||
parse_seg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
const char **strp,
|
||||
int opindex ATTRIBUTE_UNUSED,
|
||||
long *valuep ATTRIBUTE_UNUSED)
|
||||
{
|
||||
if (strncasecmp (*strp, "seg:", 4) == 0)
|
||||
{
|
||||
*strp += 4;
|
||||
return NULL;
|
||||
}
|
||||
return _("Missing 'seg:' prefix");
|
||||
}
|
||||
/* -- */
|
||||
|
||||
/* -- dis.c */
|
||||
|
||||
#define CGEN_PRINT_NORMAL(cd, info, value, attrs, pc, length) \
|
||||
do \
|
||||
{ \
|
||||
if (CGEN_BOOL_ATTR ((attrs), CGEN_OPERAND_DOT_PREFIX)) \
|
||||
info->fprintf_func (info->stream, "."); \
|
||||
if (CGEN_BOOL_ATTR ((attrs), CGEN_OPERAND_POF_PREFIX)) \
|
||||
info->fprintf_func (info->stream, "#pof:"); \
|
||||
if (CGEN_BOOL_ATTR ((attrs), CGEN_OPERAND_PAG_PREFIX)) \
|
||||
info->fprintf_func (info->stream, "#pag:"); \
|
||||
} \
|
||||
while (0)
|
||||
|
||||
/* Print a 'pof:' prefix to an operand. */
|
||||
|
||||
static void
|
||||
print_pof (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info ATTRIBUTE_UNUSED,
|
||||
long value ATTRIBUTE_UNUSED,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
/* Print a 'pag:' prefix to an operand. */
|
||||
|
||||
static void
|
||||
print_pag (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info ATTRIBUTE_UNUSED,
|
||||
long value ATTRIBUTE_UNUSED,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
/* Print a 'sof:' prefix to an operand. */
|
||||
|
||||
static void
|
||||
print_sof (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info,
|
||||
long value ATTRIBUTE_UNUSED,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
disassemble_info *info = (disassemble_info *) dis_info;
|
||||
|
||||
info->fprintf_func (info->stream, "sof:");
|
||||
}
|
||||
|
||||
/* Print a 'seg:' prefix to an operand. */
|
||||
|
||||
static void
|
||||
print_seg (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info,
|
||||
long value ATTRIBUTE_UNUSED,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
disassemble_info *info = (disassemble_info *) dis_info;
|
||||
|
||||
info->fprintf_func (info->stream, "seg:");
|
||||
}
|
||||
|
||||
/* Print a '#' prefix to an operand. */
|
||||
|
||||
static void
|
||||
print_hash (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info,
|
||||
long value ATTRIBUTE_UNUSED,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
disassemble_info *info = (disassemble_info *) dis_info;
|
||||
|
||||
info->fprintf_func (info->stream, "#");
|
||||
}
|
||||
|
||||
/* Print a '.' prefix to an operand. */
|
||||
|
||||
static void
|
||||
print_dot (CGEN_CPU_DESC cd ATTRIBUTE_UNUSED,
|
||||
void * dis_info ATTRIBUTE_UNUSED,
|
||||
long value ATTRIBUTE_UNUSED,
|
||||
unsigned int attrs ATTRIBUTE_UNUSED,
|
||||
bfd_vma pc ATTRIBUTE_UNUSED,
|
||||
int length ATTRIBUTE_UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
/* -- */
|
||||
943
libtool.m4
vendored
943
libtool.m4
vendored
File diff suppressed because it is too large
Load Diff
2
ltgcc.m4
2
ltgcc.m4
@@ -30,7 +30,6 @@ _LT_COMPILER_BOILERPLATE
|
||||
_LT_LINKER_BOILERPLATE
|
||||
|
||||
# Allow CC to be a program name with arguments.
|
||||
GCC=yes
|
||||
compiler=$CC
|
||||
_LT_TAGVAR(compiler, $1)=$CC
|
||||
_LT_CC_BASENAME([$compiler])
|
||||
@@ -50,6 +49,7 @@ if test -n "$compiler"; then
|
||||
_LT_COMPILER_C_O($1)
|
||||
_LT_COMPILER_FILE_LOCKS($1)
|
||||
_LT_LINKER_SHLIBS($1)
|
||||
_LT_SYS_DYNAMIC_LINKER($1)
|
||||
_LT_LINKER_HARDCODE_LIBPATH($1)
|
||||
|
||||
_LT_CONFIG($1)
|
||||
|
||||
172
ltoptions.m4
vendored
172
ltoptions.m4
vendored
@@ -1,87 +1,82 @@
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
||||
# Written by Gary V. Vaughan, 2004
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
# Written by Gary V. Vaughan <gary@gnu.org>
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 6 ltoptions.m4
|
||||
# serial 3 ltoptions.m4
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
|
||||
|
||||
|
||||
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
|
||||
# ------------------------------------------
|
||||
# _LT_MANGLE_OPTION(NAME)
|
||||
# -----------------------
|
||||
m4_define([_LT_MANGLE_OPTION],
|
||||
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
|
||||
[[_LT_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||
|
||||
|
||||
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
|
||||
# ---------------------------------------
|
||||
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
|
||||
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
|
||||
# saved as a flag.
|
||||
# _LT_SET_OPTION(NAME)
|
||||
# --------------------
|
||||
# Set option NAME, and if there is a matching handler defined,
|
||||
# dispatch to it. Other NAMEs are saved as a flag.
|
||||
m4_define([_LT_SET_OPTION],
|
||||
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
|
||||
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
|
||||
_LT_MANGLE_DEFUN([$1], [$2]),
|
||||
[m4_warning([Unknown $1 option `$2'])])[]dnl
|
||||
[m4_define(_LT_MANGLE_OPTION([$1]))dnl
|
||||
m4_ifdef(_LT_MANGLE_DEFUN([$1]),
|
||||
_LT_MANGLE_DEFUN([$1]),
|
||||
[m4_warning([Unknown Libtool option `$1'])])[]dnl
|
||||
])
|
||||
|
||||
|
||||
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
|
||||
# ------------------------------------------------------------
|
||||
# _LT_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
||||
# -------------------------------------------
|
||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||
m4_define([_LT_IF_OPTION],
|
||||
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
|
||||
[m4_ifdef(_LT_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||
|
||||
|
||||
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
|
||||
# -------------------------------------------------------
|
||||
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
|
||||
# are set.
|
||||
# _LT_UNLESS_OPTIONS(OPTIONS, IF-NOT-SET)
|
||||
# ---------------------------------------
|
||||
# Execute IF-NOT-SET if all OPTIONS are not set.
|
||||
m4_define([_LT_UNLESS_OPTIONS],
|
||||
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
|
||||
[m4_foreach([_LT_Option], m4_split(m4_normalize([$1])),
|
||||
[m4_ifdef(_LT_MANGLE_OPTION(_LT_Option),
|
||||
[m4_define([$0_found])])])[]dnl
|
||||
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
|
||||
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$2
|
||||
])[]dnl
|
||||
])
|
||||
|
||||
|
||||
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
|
||||
# ----------------------------------------
|
||||
# OPTION-LIST is a space-separated list of Libtool options associated
|
||||
# with MACRO-NAME. If any OPTION has a matching handler declared with
|
||||
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
|
||||
# the unknown option and exit.
|
||||
# _LT_SET_OPTIONS(OPTIONS)
|
||||
# ------------------------
|
||||
# OPTIONS is a space-separated list of Libtool options.
|
||||
# If any OPTION has a handler macro declared with LT_OPTION_DEFINE,
|
||||
# dispatch to that macro; otherwise complain about the unknown option
|
||||
# and exit.
|
||||
m4_defun([_LT_SET_OPTIONS],
|
||||
[# Set options
|
||||
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
|
||||
[_LT_SET_OPTION([$1], _LT_Option)])
|
||||
|
||||
m4_if([$1],[LT_INIT],[
|
||||
dnl
|
||||
dnl Simply set some default values (i.e off) if boolean options were not
|
||||
dnl specified:
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
|
||||
])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
|
||||
])
|
||||
dnl
|
||||
dnl If no reference was made to various pairs of opposing options, then
|
||||
dnl we run the default mode handler for the pair. For example, if neither
|
||||
dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
||||
dnl archives by default:
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
|
||||
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
|
||||
[_LT_ENABLE_FAST_INSTALL])
|
||||
])
|
||||
m4_foreach([_LT_Option], m4_split(m4_normalize([$1])),
|
||||
[_LT_SET_OPTION(_LT_Option)])
|
||||
dnl
|
||||
dnl Simply set some default values (i.e off) if boolean options were not
|
||||
dnl specified:
|
||||
_LT_UNLESS_OPTIONS([dlopen], [enable_dlopen=no
|
||||
])
|
||||
_LT_UNLESS_OPTIONS([win32-dll], [enable_win32_dll=no
|
||||
])
|
||||
dnl
|
||||
dnl If no reference was made to various pairs of opposing options, then
|
||||
dnl we run the default mode handler for the pair. For example, if neither
|
||||
dnl `shared' nor `disable-shared' was passed, we enable building of shared
|
||||
dnl archives by default:
|
||||
_LT_UNLESS_OPTIONS([shared disable-shared], [_LT_ENABLE_SHARED])
|
||||
_LT_UNLESS_OPTIONS([static disable-static], [_LT_ENABLE_STATIC])
|
||||
_LT_UNLESS_OPTIONS([pic-only no-pic], [_LT_WITH_PIC])
|
||||
_LT_UNLESS_OPTIONS([fast-install disable-fast-install],
|
||||
[_LT_ENABLE_FAST_INSTALL])
|
||||
])# _LT_SET_OPTIONS
|
||||
|
||||
|
||||
@@ -89,26 +84,24 @@ m4_if([$1],[LT_INIT],[
|
||||
## Macros to handle LT_INIT options. ##
|
||||
## --------------------------------- ##
|
||||
|
||||
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
|
||||
# -----------------------------------------
|
||||
m4_define([_LT_MANGLE_DEFUN],
|
||||
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
|
||||
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1]), [[^A-Z0-9_]], [_])])
|
||||
|
||||
|
||||
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
|
||||
# -----------------------------------------------
|
||||
# LT_OPTION_DEFINE(NAME, CODE)
|
||||
# ----------------------------
|
||||
m4_define([LT_OPTION_DEFINE],
|
||||
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
|
||||
[m4_define(_LT_MANGLE_DEFUN([$1]), [$2])[]dnl
|
||||
])# LT_OPTION_DEFINE
|
||||
|
||||
|
||||
# dlopen
|
||||
# ------
|
||||
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
|
||||
LT_OPTION_DEFINE([dlopen], [enable_dlopen=yes
|
||||
])
|
||||
|
||||
AU_DEFUN([AC_LIBTOOL_DLOPEN],
|
||||
[_LT_SET_OPTION([LT_INIT], [dlopen])
|
||||
[_LT_SET_OPTION([dlopen])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the `dlopen' option into LT_INIT's first parameter.])
|
||||
@@ -121,11 +114,11 @@ dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
|
||||
# win32-dll
|
||||
# ---------
|
||||
# Declare package support for building win32 dll's.
|
||||
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
|
||||
LT_OPTION_DEFINE([win32-dll],
|
||||
[enable_win32_dll=yes
|
||||
|
||||
case $host in
|
||||
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
|
||||
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
|
||||
AC_CHECK_TOOL(AS, as, false)
|
||||
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
|
||||
AC_CHECK_TOOL(OBJDUMP, objdump, false)
|
||||
@@ -143,8 +136,7 @@ _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
|
||||
])# win32-dll
|
||||
|
||||
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
|
||||
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
||||
_LT_SET_OPTION([LT_INIT], [win32-dll])
|
||||
[_LT_SET_OPTION([win32-dll])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the `win32-dll' option into LT_INIT's first parameter.])
|
||||
@@ -187,16 +179,16 @@ AC_ARG_ENABLE([shared],
|
||||
[Whether or not to build shared libraries])
|
||||
])# _LT_ENABLE_SHARED
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
|
||||
LT_OPTION_DEFINE([shared], [_LT_ENABLE_SHARED([yes])])
|
||||
LT_OPTION_DEFINE([disable-shared], [_LT_ENABLE_SHARED([no])])
|
||||
|
||||
# Old names:
|
||||
AC_DEFUN([AC_ENABLE_SHARED],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
|
||||
[_LT_SET_OPTION([shared])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_DISABLE_SHARED],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-shared])
|
||||
[_LT_SET_OPTION([disable-shared])
|
||||
])
|
||||
|
||||
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
|
||||
@@ -241,16 +233,16 @@ AC_ARG_ENABLE([static],
|
||||
[Whether or not to build static libraries])
|
||||
])# _LT_ENABLE_STATIC
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
|
||||
LT_OPTION_DEFINE([static], [_LT_ENABLE_STATIC([yes])])
|
||||
LT_OPTION_DEFINE([disable-static], [_LT_ENABLE_STATIC([no])])
|
||||
|
||||
# Old names:
|
||||
AC_DEFUN([AC_ENABLE_STATIC],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
|
||||
[_LT_SET_OPTION([static])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_DISABLE_STATIC],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-static])
|
||||
[_LT_SET_OPTION([disable-static])
|
||||
])
|
||||
|
||||
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
|
||||
@@ -295,19 +287,19 @@ _LT_DECL([fast_install], [enable_fast_install], [0],
|
||||
[Whether or not to optimize for fast installation])dnl
|
||||
])# _LT_ENABLE_FAST_INSTALL
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
||||
LT_OPTION_DEFINE([fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
|
||||
LT_OPTION_DEFINE([disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
|
||||
|
||||
# Old names:
|
||||
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
|
||||
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
|
||||
[_LT_SET_OPTION([fast-install])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||
the `fast-install' option into LT_INIT's first parameter.])
|
||||
])
|
||||
|
||||
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
|
||||
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
|
||||
[_LT_SET_OPTION([disable-fast-install])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
|
||||
the `disable-fast-install' option into LT_INIT's first parameter.])
|
||||
@@ -335,12 +327,12 @@ test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
|
||||
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
|
||||
])# _LT_WITH_PIC
|
||||
|
||||
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
|
||||
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
|
||||
LT_OPTION_DEFINE([pic-only], [_LT_WITH_PIC([yes])])
|
||||
LT_OPTION_DEFINE([no-pic], [_LT_WITH_PIC([no])])
|
||||
|
||||
# Old name:
|
||||
AU_DEFUN([AC_LIBTOOL_PICMODE],
|
||||
[_LT_SET_OPTION([LT_INIT], [pic-only])
|
||||
[_LT_SET_OPTION([pic-only])
|
||||
AC_DIAGNOSE([obsolete],
|
||||
[$0: Remove this warning and the call to _LT_SET_OPTION when you
|
||||
put the `pic-only' option into LT_INIT's first parameter.])
|
||||
@@ -348,21 +340,3 @@ put the `pic-only' option into LT_INIT's first parameter.])
|
||||
|
||||
dnl aclocal-1.4 backwards compatibility:
|
||||
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
|
||||
|
||||
## ----------------- ##
|
||||
## LTDL_INIT Options ##
|
||||
## ----------------- ##
|
||||
|
||||
m4_define([_LTDL_MODE], [])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
|
||||
[m4_define([_LTDL_MODE], [nonrecursive])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
|
||||
[m4_define([_LTDL_MODE], [recursive])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
|
||||
[m4_define([_LTDL_MODE], [subproject])])
|
||||
|
||||
m4_define([_LTDL_TYPE], [])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [installable],
|
||||
[m4_define([_LTDL_TYPE], [installable])])
|
||||
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
|
||||
[m4_define([_LTDL_TYPE], [convenience])])
|
||||
|
||||
52
ltsugar.m4
vendored
52
ltsugar.m4
vendored
@@ -1,13 +1,13 @@
|
||||
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
|
||||
# Written by Gary V. Vaughan, 2004
|
||||
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
|
||||
# Written by Gary V. Vaughan.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 6 ltsugar.m4
|
||||
# serial 4 ltsugar.m4
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
||||
@@ -17,15 +17,19 @@ AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
|
||||
# -----------------------------
|
||||
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
|
||||
# associated separator.
|
||||
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
|
||||
# versions in m4sugar had bugs.
|
||||
m4_define([lt_join],
|
||||
[m4_if([$#], [1], [],
|
||||
[$#], [2], [[$2]],
|
||||
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
|
||||
[m4_case([$#],
|
||||
[0], [m4_fatal([$0: too few arguments: $#])],
|
||||
[1], [],
|
||||
[2], [[$2]],
|
||||
[m4_ifval([$2],
|
||||
[[$2][]m4_foreach(_lt_Arg, lt_car([m4_shiftn(2, $@)]),
|
||||
[_$0([$1], _lt_Arg)])],
|
||||
[$0([$1], m4_shiftn(2, $@))])])[]dnl
|
||||
])
|
||||
m4_define([_lt_join],
|
||||
[m4_if([$#$2], [2], [],
|
||||
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
|
||||
[m4_ifval([$2],[$1][$2])[]dnl
|
||||
])
|
||||
|
||||
|
||||
# lt_car(LIST)
|
||||
@@ -45,13 +49,11 @@ m4_define([lt_unquote], $1)
|
||||
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
|
||||
# ------------------------------------------
|
||||
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
|
||||
# Note that neither SEPARATOR nor STRING are expanded; they are appended
|
||||
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
|
||||
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
|
||||
# than defined and empty).
|
||||
#
|
||||
# Note that neither SEPARATOR nor STRING are expanded. No SEPARATOR is
|
||||
# output if MACRO-NAME was previously undefined (different than defined
|
||||
# and empty).
|
||||
# This macro is needed until we can rely on Autoconf 2.62, since earlier
|
||||
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
|
||||
# versions of m4 mistakenly expanded SEPARATOR.
|
||||
m4_define([lt_append],
|
||||
[m4_define([$1],
|
||||
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
||||
@@ -63,14 +65,14 @@ m4_define([lt_append],
|
||||
# Produce a SEP delimited list of all paired combinations of elements of
|
||||
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
||||
# has the form PREFIXmINFIXSUFFIXn.
|
||||
# Needed until we can rely on m4_combine added in Autoconf 2.62.
|
||||
m4_define([lt_combine],
|
||||
[m4_if(m4_eval([$# > 3]), [1],
|
||||
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
|
||||
[[m4_foreach([_Lt_prefix], [$2],
|
||||
[m4_foreach([_Lt_suffix],
|
||||
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
|
||||
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
|
||||
[m4_if([$2], [], [],
|
||||
[m4_if([$4], [], [],
|
||||
[lt_join(m4_quote(m4_default([$1], [[, ]])),
|
||||
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
|
||||
[m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
|
||||
[_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
|
||||
])
|
||||
|
||||
|
||||
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
|
||||
@@ -82,13 +84,13 @@ m4_define([lt_if_append_uniq],
|
||||
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
|
||||
[lt_append([$1], [$2], [$3])$4],
|
||||
[$5])],
|
||||
[lt_append([$1], [$2], [$3])$4])])
|
||||
[lt_append([$1], [$2], [$3])$4])])
|
||||
|
||||
|
||||
# lt_dict_add(DICT, KEY, VALUE)
|
||||
# -----------------------------
|
||||
m4_define([lt_dict_add],
|
||||
[m4_define([$1($2)], [$3])])
|
||||
[m4_define([$1($2)], [$4])])
|
||||
|
||||
|
||||
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
|
||||
|
||||
18
ltversion.m4
vendored
18
ltversion.m4
vendored
@@ -1,23 +1,23 @@
|
||||
# ltversion.m4 -- version numbers -*- Autoconf -*-
|
||||
#
|
||||
# Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
# Written by Scott James Remnant, 2004
|
||||
# Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
# Written by Scott James Remnant.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
## This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# Generated from ltversion.in.
|
||||
# Generated from ltversion.in; do not edit by hand
|
||||
|
||||
# serial 3012 ltversion.m4
|
||||
# serial 2435 ltversion.m4
|
||||
# This file is part of GNU Libtool
|
||||
|
||||
m4_define([LT_PACKAGE_VERSION], [2.2.6])
|
||||
m4_define([LT_PACKAGE_REVISION], [1.3012])
|
||||
m4_define([LT_PACKAGE_VERSION], [2.1a])
|
||||
m4_define([LT_PACKAGE_REVISION], [1.2435])
|
||||
|
||||
AC_DEFUN([LTVERSION_VERSION],
|
||||
[macro_version='2.2.6'
|
||||
macro_revision='1.3012'
|
||||
[macro_version='2.1a'
|
||||
macro_revision='1.2435'
|
||||
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
|
||||
_LT_DECL(, macro_revision, 0)
|
||||
])
|
||||
|
||||
9
lt~obsolete.m4
vendored
9
lt~obsolete.m4
vendored
@@ -1,13 +1,13 @@
|
||||
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
||||
#
|
||||
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
|
||||
# Written by Scott James Remnant, 2004.
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
# Written by Scott James Remnant.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation gives
|
||||
# unlimited permission to copy and/or distribute it, with or without
|
||||
# modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4 lt~obsolete.m4
|
||||
# serial 2
|
||||
|
||||
# These exist entirely to fool aclocal when bootstrapping libtool.
|
||||
#
|
||||
@@ -32,9 +32,6 @@
|
||||
# we give up compatibility with versions before 1.7, at which point
|
||||
# we need to keep only those names which we still refer to.
|
||||
|
||||
# This is to help aclocal find these macros, as it can't see m4_define.
|
||||
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
||||
|
||||
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
||||
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
||||
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
||||
|
||||
6931
texinfo/texinfo.tex
Normal file
6931
texinfo/texinfo.tex
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user