mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
Compare commits
2 Commits
devel/rang
...
misc/start
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d67cee022 | ||
|
|
2f08086dbb |
31
.cvsignore
Normal file
31
.cvsignore
Normal file
@@ -0,0 +1,31 @@
|
||||
*-all
|
||||
*-co
|
||||
*-dirs
|
||||
*-done
|
||||
*-info
|
||||
*-install
|
||||
*-install-info
|
||||
*-src
|
||||
*-stamp-*
|
||||
*-tagged
|
||||
blockit
|
||||
cfg-paper.info
|
||||
config.status
|
||||
configure.aux
|
||||
configure.cp
|
||||
configure.cps
|
||||
configure.dvi
|
||||
configure.fn
|
||||
configure.fns
|
||||
configure.ky
|
||||
configure.kys
|
||||
configure.log
|
||||
configure.pg
|
||||
configure.pgs
|
||||
configure.toc
|
||||
configure.tp
|
||||
configure.tps
|
||||
configure.vr
|
||||
configure.vrs
|
||||
dir.info
|
||||
Makefile
|
||||
340
COPYING
Normal file
340
COPYING
Normal file
@@ -0,0 +1,340 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) 19yy <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) 19yy name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
481
COPYING.LIB
Normal file
481
COPYING.LIB
Normal file
@@ -0,0 +1,481 @@
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Library General Public License, applies to some
|
||||
specially designated Free Software Foundation software, and to any
|
||||
other libraries whose authors decide to use it. You can use it for
|
||||
your libraries, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if
|
||||
you distribute copies of the library, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link a program with the library, you must provide
|
||||
complete object files to the recipients so that they can relink them
|
||||
with the library, after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
Our method of protecting your rights has two steps: (1) copyright
|
||||
the library, and (2) offer you this license which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
Also, for each distributor's protection, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
library. If the library is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original
|
||||
version, so that any problems introduced by others will not reflect on
|
||||
the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that companies distributing free
|
||||
software will individually obtain patent licenses, thus in effect
|
||||
transforming the program into proprietary software. To prevent this,
|
||||
we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary
|
||||
GNU General Public License, which was designed for utility programs. This
|
||||
license, the GNU Library General Public License, applies to certain
|
||||
designated libraries. This license is quite different from the ordinary
|
||||
one; be sure to read it in full, and don't assume that anything in it is
|
||||
the same as in the ordinary license.
|
||||
|
||||
The reason we have a separate public license for some libraries is that
|
||||
they blur the distinction we usually make between modifying or adding to a
|
||||
program and simply using it. Linking a program with a library, without
|
||||
changing the library, is in some sense simply using the library, and is
|
||||
analogous to running a utility program or application program. However, in
|
||||
a textual and legal sense, the linked executable is a combined work, a
|
||||
derivative of the original library, and the ordinary General Public License
|
||||
treats it as such.
|
||||
|
||||
Because of this blurred distinction, using the ordinary General
|
||||
Public License for libraries did not effectively promote software
|
||||
sharing, because most developers did not use the libraries. We
|
||||
concluded that weaker conditions might promote sharing better.
|
||||
|
||||
However, unrestricted linking of non-free programs would deprive the
|
||||
users of those programs of all benefit from the free status of the
|
||||
libraries themselves. This Library General Public License is intended to
|
||||
permit developers of non-free programs to use free libraries, while
|
||||
preserving your freedom as a user of such programs to change the free
|
||||
libraries that are incorporated in them. (We have not seen how to achieve
|
||||
this as regards changes in header files, but we have achieved it as regards
|
||||
changes in the actual functions of the Library.) The hope is that this
|
||||
will lead to faster development of free libraries.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, while the latter only
|
||||
works together with the library.
|
||||
|
||||
Note that it is possible for a library to be covered by the ordinary
|
||||
General Public License rather than by this special one.
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library which
|
||||
contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Library
|
||||
General Public License (also called "this License"). Each licensee is
|
||||
addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also compile or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
c) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
d) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the source code distributed need not include anything that is normally
|
||||
distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Library General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Appendix: How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
1608
Makefile.in
Normal file
1608
Makefile.in
Normal file
File diff suppressed because it is too large
Load Diff
47
README
Normal file
47
README
Normal file
@@ -0,0 +1,47 @@
|
||||
README for GNU development tools
|
||||
|
||||
This directory contains various GNU compilers, assemblers, linkers,
|
||||
debuggers, etc., plus their support routines, definitions, and documentation.
|
||||
|
||||
If you are receiving this as part of a GDB release, see the file gdb/README.
|
||||
If with a binutils release, see binutils/README; if with a libg++ release,
|
||||
see libg++/README, etc. That'll give you info about this
|
||||
package -- supported targets, how to use it, how to report bugs, etc.
|
||||
|
||||
It is now possible to automatically configure and build a variety of
|
||||
tools with one command. To build all of the tools contained herein,
|
||||
run the ``configure'' script here, e.g.:
|
||||
|
||||
./configure
|
||||
make
|
||||
|
||||
To install them (by default in /usr/local/bin, /usr/local/lib, etc),
|
||||
then do:
|
||||
make install
|
||||
|
||||
(If the configure script can't determine your type of computer, give it
|
||||
the name as an argument, for instance ``./configure sun4''. You can
|
||||
use the script ``config.sub'' to test whether a name is recognized; if
|
||||
it is, config.sub translates it to a triplet specifying CPU, vendor,
|
||||
and OS.)
|
||||
|
||||
If you have more than one compiler on your system, it is often best to
|
||||
explicitly set CC in the environment before running configure, and to
|
||||
also set CC when running make. For example (assuming sh/bash/ksh):
|
||||
|
||||
CC=gcc ./configure
|
||||
make
|
||||
|
||||
A similar example using csh:
|
||||
|
||||
setenv CC gcc
|
||||
./configure
|
||||
make
|
||||
|
||||
Much of the code and documentation enclosed is copyright by
|
||||
the Free Software Foundation, Inc. See the file COPYING or
|
||||
COPYING.LIB in the various directories, for a description of the
|
||||
GNU General Public License terms under which you can copy the files.
|
||||
|
||||
REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
|
||||
on where and how to report problems.
|
||||
612
config-ml.in
Normal file
612
config-ml.in
Normal file
@@ -0,0 +1,612 @@
|
||||
# Configure fragment invoked in the post-target section for subdirs
|
||||
# wanting multilib support.
|
||||
#
|
||||
# It is advisable to support a few --enable/--disable options to let the
|
||||
# user select which libraries s/he really wants.
|
||||
#
|
||||
# Subdirectories wishing to use multilib should put the following lines
|
||||
# in the "post-target" section of configure.in.
|
||||
#
|
||||
# if [ "${srcdir}" = "." ] ; then
|
||||
# if [ "${with_target_subdir}" != "." ] ; then
|
||||
# . ${with_multisrctop}../../config-ml.in
|
||||
# else
|
||||
# . ${with_multisrctop}../config-ml.in
|
||||
# fi
|
||||
# else
|
||||
# . ${srcdir}/../config-ml.in
|
||||
# fi
|
||||
#
|
||||
# See librx/configure.in in the libg++ distribution for an example of how
|
||||
# to handle autoconf'd libraries.
|
||||
#
|
||||
# Things are complicated because 6 separate cases must be handled:
|
||||
# 2 (native, cross) x 3 (absolute-path, relative-not-dot, dot) = 6.
|
||||
#
|
||||
# srcdir=. is special. It must handle make programs that don't handle VPATH.
|
||||
# To implement this, a symlink tree is built for each library and for each
|
||||
# multilib subdir.
|
||||
#
|
||||
# The build tree is layed out as
|
||||
#
|
||||
# ./
|
||||
# libg++
|
||||
# newlib
|
||||
# m68020/
|
||||
# libg++
|
||||
# newlib
|
||||
# m68881/
|
||||
# libg++
|
||||
# newlib
|
||||
#
|
||||
# The nice feature about this arrangement is that inter-library references
|
||||
# in the build tree work without having to care where you are. Note that
|
||||
# inter-library references also work in the source tree because symlink trees
|
||||
# are built when srcdir=.
|
||||
#
|
||||
# Unfortunately, trying to access the libraries in the build tree requires
|
||||
# the user to manually choose which library to use as GCC won't be able to
|
||||
# find the right one. This is viewed as the lesser of two evils.
|
||||
#
|
||||
# Configure variables:
|
||||
# ${with_target_subdir} = "." for native, or ${target_alias} for cross.
|
||||
# Set by top level Makefile.
|
||||
# ${with_multisrctop} = how many levels of multilibs there are in the source
|
||||
# tree. It exists to handle the case of configuring in the source tree:
|
||||
# ${srcdir} is not constant.
|
||||
# ${with_multisubdir} = name of multilib subdirectory (eg: m68020/m68881).
|
||||
#
|
||||
# Makefile variables:
|
||||
# MULTISRCTOP = number of multilib levels in source tree (+1 if cross)
|
||||
# (FIXME: note that this is different than ${with_multisrctop}. Check out.).
|
||||
# MULTIBUILDTOP = number of multilib levels in build tree
|
||||
# MULTIDIRS = list of multilib subdirs (eg: m68000 m68020 ...)
|
||||
# (only defined in each library's main Makefile).
|
||||
# MULTISUBDIR = installed subdirectory name with leading '/' (eg: /m68000)
|
||||
# (only defined in each multilib subdir).
|
||||
|
||||
# FIXME: Multilib is currently disabled by default for everything other than
|
||||
# newlib. It is up to each target to turn on multilib support for the other
|
||||
# libraries as desired.
|
||||
|
||||
# We have to handle being invoked by both Cygnus configure and Autoconf.
|
||||
#
|
||||
# Cygnus configure incoming variables:
|
||||
# srcdir, subdir, target, arguments
|
||||
#
|
||||
# Autoconf incoming variables:
|
||||
# srcdir, target, ac_configure_args
|
||||
#
|
||||
# We *could* figure srcdir and target out, but we'd have to do work that
|
||||
# our caller has already done to figure them out and requiring these two
|
||||
# seems reasonable.
|
||||
|
||||
if [ -n "${ac_configure_args}" ]; then
|
||||
Makefile=${ac_file-Makefile}
|
||||
ml_config_shell=${CONFIG_SHELL-/bin/sh}
|
||||
ml_arguments="${ac_configure_args}"
|
||||
ml_realsrcdir=${srcdir}
|
||||
else
|
||||
Makefile=${Makefile-Makefile}
|
||||
ml_config_shell=${config_shell-/bin/sh}
|
||||
ml_arguments="${arguments}"
|
||||
if [ -n "${subdir}" -a "${subdir}" != "." ] ; then
|
||||
ml_realsrcdir=${srcdir}/${subdir}
|
||||
else
|
||||
ml_realsrcdir=${srcdir}
|
||||
fi
|
||||
fi
|
||||
|
||||
# Scan all the arguments and set all the ones we need.
|
||||
|
||||
for option in ${ml_arguments}
|
||||
do
|
||||
case $option in
|
||||
--*) ;;
|
||||
-*) option=-$option ;;
|
||||
esac
|
||||
|
||||
case $option in
|
||||
--*=*)
|
||||
optarg=`echo $option | sed -e 's/^[^=]*=//'`
|
||||
;;
|
||||
esac
|
||||
|
||||
case $option in
|
||||
--disable-*)
|
||||
enableopt=`echo ${option} | sed 's:^--disable-:enable_:;s:-:_:g'`
|
||||
eval $enableopt=no
|
||||
;;
|
||||
--enable-*)
|
||||
case "$option" in
|
||||
*=*) ;;
|
||||
*) optarg=yes ;;
|
||||
esac
|
||||
enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
|
||||
eval $enableopt="$optarg"
|
||||
;;
|
||||
--norecursion | --no*)
|
||||
ml_norecursion=yes
|
||||
;;
|
||||
--verbose | --v | --verb*)
|
||||
ml_verbose=--verbose
|
||||
;;
|
||||
--with-*)
|
||||
case "$option" in
|
||||
*=*) ;;
|
||||
*) optarg=yes ;;
|
||||
esac
|
||||
withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
|
||||
eval $withopt="$optarg"
|
||||
;;
|
||||
--without-*)
|
||||
withopt=`echo ${option} | sed 's:^--::;s:out::;s:-:_:g'`
|
||||
eval $withopt=no
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Only do this if --enable-multilib.
|
||||
if [ "${enable_multilib}" = yes ]; then
|
||||
|
||||
# Compute whether this is the library's top level directory
|
||||
# (ie: not a multilib subdirectory, and not a subdirectory like libg++/src).
|
||||
# ${with_multisubdir} tells us we're in the right branch, but we could be
|
||||
# in a subdir of that.
|
||||
# ??? The previous version could void this test by separating the process into
|
||||
# two files: one that only the library's toplevel configure.in ran (to
|
||||
# configure the multilib subdirs), and another that all configure.in's ran to
|
||||
# update the Makefile. It seemed reasonable to collapse all multilib support
|
||||
# into one file, but it does leave us with having to perform this test.
|
||||
ml_toplevel_p=no
|
||||
if [ -z "${with_multisubdir}" ]; then
|
||||
if [ "${srcdir}" = "." ]; then
|
||||
# Use ${ml_realsrcdir} instead of ${srcdir} here to account for ${subdir}.
|
||||
# ${with_target_subdir} = "." for native, otherwise target alias.
|
||||
if [ "${with_target_subdir}" = "." ]; then
|
||||
if [ -f ${ml_realsrcdir}/../config-ml.in ]; then
|
||||
ml_toplevel_p=yes
|
||||
fi
|
||||
else
|
||||
if [ -f ${ml_realsrcdir}/../../config-ml.in ]; then
|
||||
ml_toplevel_p=yes
|
||||
fi
|
||||
fi
|
||||
else
|
||||
# Use ${ml_realsrcdir} instead of ${srcdir} here to account for ${subdir}.
|
||||
if [ -f ${ml_realsrcdir}/../config-ml.in ]; then
|
||||
ml_toplevel_p=yes
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# If this is the library's top level directory, set multidirs to the
|
||||
# multilib subdirs to support. This lives at the top because we need
|
||||
# `multidirs' set right away.
|
||||
|
||||
if [ "${ml_toplevel_p}" = yes ]; then
|
||||
|
||||
multidirs=
|
||||
for i in `${CC-gcc} --print-multi-lib 2>/dev/null`; do
|
||||
dir=`echo $i | sed -e 's/;.*$//'`
|
||||
if [ "${dir}" = "." ]; then
|
||||
true
|
||||
else
|
||||
if [ -z "${multidirs}" ]; then
|
||||
multidirs="${dir}"
|
||||
else
|
||||
multidirs="${multidirs} ${dir}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
case "${target}" in
|
||||
arc-*-elf*)
|
||||
if [ x$enable_biendian != xyes ]
|
||||
then
|
||||
old_multidirs=${multidirs}
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "${x}" in
|
||||
*be*) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
;;
|
||||
m68*-*-*)
|
||||
if [ x$enable_softfloat = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*soft-float* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_m68881 = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*m68881* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_m68000 = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*m68000* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_m68020 = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*m68020* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
;;
|
||||
mips*-*-*)
|
||||
if [ x$enable_single_float = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*single* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_biendian = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*el* ) : ;;
|
||||
*eb* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_softfloat = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*soft-float* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
;;
|
||||
powerpc*-*-* | rs6000*-*-*)
|
||||
if [ x$enable_softfloat = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*soft-float* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_powercpu = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
power | */power | */power/* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_powerpccpu = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*powerpc* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_powerpcos = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*mcall-linux* | *mcall-solaris* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_biendian = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*mlittle* | *mbig* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_sysv = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*mcall-sysv* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ x$enable_aix = xno ]
|
||||
then
|
||||
old_multidirs="${multidirs}"
|
||||
multidirs=""
|
||||
for x in ${old_multidirs}; do
|
||||
case "$x" in
|
||||
*mcall-aix* ) : ;;
|
||||
*) multidirs="${multidirs} ${x}" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# Remove extraneous blanks from multidirs.
|
||||
# Tests like `if [ -n "$multidirs" ]' require it.
|
||||
multidirs=`echo "$multidirs" | sed -e 's/^[ ][ ]*//' -e 's/[ ][ ]*$//' -e 's/[ ][ ]*/ /g'`
|
||||
|
||||
# Add code to library's top level makefile to handle building the multilib
|
||||
# subdirs.
|
||||
|
||||
cat > Multi.tem <<\EOF
|
||||
|
||||
# FIXME: There should be an @-sign in front of the `if'.
|
||||
# Leave out until this is tested a bit more.
|
||||
multi-do:
|
||||
if [ -z "$(MULTIDIRS)" ]; then \
|
||||
true; \
|
||||
else \
|
||||
rootpre=`pwd`/; export rootpre; \
|
||||
srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
|
||||
lib=`echo $${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$$,\1,'`; \
|
||||
compiler="$(CC)"; \
|
||||
for i in `$${compiler} --print-multi-lib 2>/dev/null`; do \
|
||||
dir=`echo $$i | sed -e 's/;.*$$//'`; \
|
||||
if [ "$${dir}" = "." ]; then \
|
||||
true; \
|
||||
else \
|
||||
if [ -d ../$${dir}/$${lib} ]; then \
|
||||
flags=`echo $$i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
|
||||
if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) \
|
||||
CFLAGS="$(CFLAGS) $${flags}" \
|
||||
CXXFLAGS="$(CXXFLAGS) $${flags}" \
|
||||
LIBCFLAGS="$(LIBCFLAGS) $${flags}" \
|
||||
LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \
|
||||
$(DO)); then \
|
||||
true; \
|
||||
else \
|
||||
exit 1; \
|
||||
fi; \
|
||||
else true; \
|
||||
fi; \
|
||||
fi; \
|
||||
done; \
|
||||
fi
|
||||
|
||||
# FIXME: There should be an @-sign in front of the `if'.
|
||||
# Leave out until this is tested a bit more.
|
||||
multi-clean:
|
||||
if [ -z "$(MULTIDIRS)" ]; then \
|
||||
true; \
|
||||
else \
|
||||
lib=`pwd | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
|
||||
for dir in Makefile $(MULTIDIRS); do \
|
||||
if [ -f ../$${dir}/$${lib}/Makefile ]; then \
|
||||
if (cd ../$${dir}/$${lib}; $(MAKE) $(FLAGS_TO_PASS) $(DO)); \
|
||||
then true; \
|
||||
else exit 1; \
|
||||
fi; \
|
||||
else true; \
|
||||
fi; \
|
||||
done; \
|
||||
fi
|
||||
EOF
|
||||
|
||||
cat ${Makefile} Multi.tem > Makefile.tem
|
||||
rm -f ${Makefile} Multi.tem
|
||||
mv Makefile.tem ${Makefile}
|
||||
|
||||
fi # ${ml_toplevel_p} = yes
|
||||
|
||||
if [ "${ml_verbose}" = --verbose ]; then
|
||||
echo "Adding multilib support to Makefile in ${ml_realsrcdir}"
|
||||
if [ "${ml_toplevel_p}" = yes ]; then
|
||||
echo "multidirs=${multidirs}"
|
||||
fi
|
||||
echo "with_multisubdir=${with_multisubdir}"
|
||||
fi
|
||||
|
||||
if [ "${srcdir}" = "." ]; then
|
||||
if [ "${with_target_subdir}" != "." ]; then
|
||||
ml_srcdotdot="../"
|
||||
else
|
||||
ml_srcdotdot=""
|
||||
fi
|
||||
else
|
||||
ml_srcdotdot=""
|
||||
fi
|
||||
|
||||
if [ -z "${with_multisubdir}" ]; then
|
||||
ml_subdir=
|
||||
ml_builddotdot=
|
||||
: # ml_srcdotdot= # already set
|
||||
else
|
||||
ml_subdir="/${with_multisubdir}"
|
||||
# The '[^/][^/]*' appears that way to work around a SunOS sed bug.
|
||||
ml_builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`/
|
||||
if [ "$srcdir" = "." ]; then
|
||||
ml_srcdotdot=${ml_srcdotdot}${ml_builddotdot}
|
||||
else
|
||||
: # ml_srcdotdot= # already set
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${ml_toplevel_p}" = yes ]; then
|
||||
ml_do='$(MAKE)'
|
||||
ml_clean='$(MAKE)'
|
||||
else
|
||||
ml_do=true
|
||||
ml_clean=true
|
||||
fi
|
||||
|
||||
# TOP is used by newlib and should not be used elsewhere for this purpose.
|
||||
# MULTI{SRC,BUILD}TOP are the proper ones to use. MULTISRCTOP is empty
|
||||
# when srcdir != builddir. MULTIBUILDTOP is always some number of ../'s.
|
||||
# FIXME: newlib needs to be updated to use MULTI{SRC,BUILD}TOP so we can
|
||||
# delete TOP. Newlib may wish to continue to use TOP for its own purposes
|
||||
# of course.
|
||||
# MULTIDIRS is non-empty for the cpu top level Makefile (eg: newlib/Makefile)
|
||||
# and lists the subdirectories to recurse into.
|
||||
# MULTISUBDIR is non-empty in each cpu subdirectory's Makefile
|
||||
# (eg: newlib/h8300h/Makefile) and is the installed subdirectory name with
|
||||
# a leading '/'.
|
||||
# MULTIDO is used for targets like all, install, and check where
|
||||
# $(FLAGS_TO_PASS) augmented with the subdir's compiler option is needed.
|
||||
# MULTICLEAN is used for the *clean targets.
|
||||
#
|
||||
# ??? It is possible to merge MULTIDO and MULTICLEAN into one. They are
|
||||
# currently kept separate because we don't want the *clean targets to require
|
||||
# the existence of the compiler (which MULTIDO currently requires) and
|
||||
# therefore we'd have to record the directory options as well as names
|
||||
# (currently we just record the names and use --print-multi-lib to get the
|
||||
# options).
|
||||
|
||||
sed -e "s:^TOP[ ]*=[ ]*\([./]*\)[ ]*$:TOP = ${ml_builddotdot}\1:" \
|
||||
-e "s:^MULTISRCTOP[ ]*=.*$:MULTISRCTOP = ${ml_srcdotdot}:" \
|
||||
-e "s:^MULTIBUILDTOP[ ]*=.*$:MULTIBUILDTOP = ${ml_builddotdot}:" \
|
||||
-e "s:^MULTIDIRS[ ]*=.*$:MULTIDIRS = ${multidirs}:" \
|
||||
-e "s:^MULTISUBDIR[ ]*=.*$:MULTISUBDIR = ${ml_subdir}:" \
|
||||
-e "s:^MULTIDO[ ]*=.*$:MULTIDO = $ml_do:" \
|
||||
-e "s:^MULTICLEAN[ ]*=.*$:MULTICLEAN = $ml_clean:" \
|
||||
${Makefile} > Makefile.tem
|
||||
rm -f ${Makefile}
|
||||
mv Makefile.tem ${Makefile}
|
||||
|
||||
# If this is the library's top level, configure each multilib subdir.
|
||||
# This is done at the end because this is the loop that runs configure
|
||||
# in each multilib subdir and it seemed reasonable to finish updating the
|
||||
# Makefile before going on to configure the subdirs.
|
||||
|
||||
if [ "${ml_toplevel_p}" = yes ]; then
|
||||
|
||||
# We must freshly configure each subdirectory. This bit of code is
|
||||
# actually partially stolen from the main configure script. FIXME.
|
||||
|
||||
if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
|
||||
|
||||
if [ "${ml_verbose}" = --verbose ]; then
|
||||
echo "Running configure in multilib subdirs ${multidirs}"
|
||||
echo "pwd: `pwd`"
|
||||
fi
|
||||
|
||||
ml_origdir=`pwd`
|
||||
ml_libdir=`echo $ml_origdir | sed -e 's,^.*/,,'`
|
||||
# cd to top-level-build-dir/${with_target_subdir}
|
||||
cd ..
|
||||
|
||||
for ml_dir in ${multidirs}; do
|
||||
|
||||
if [ "${ml_verbose}" = --verbose ]; then
|
||||
echo "Running configure in multilib subdir ${ml_dir}"
|
||||
echo "pwd: `pwd`"
|
||||
fi
|
||||
|
||||
if [ -d ${ml_dir} ]; then true; else mkdir ${ml_dir}; fi
|
||||
if [ -d ${ml_dir}/${ml_libdir} ]; then true; else mkdir ${ml_dir}/${ml_libdir}; fi
|
||||
|
||||
# Eg: if ${ml_dir} = m68000/m68881, dotdot = ../../
|
||||
dotdot=../`echo ${ml_dir} | sed -e 's|[^/]||g' -e 's|/|../|g'`
|
||||
|
||||
case ${srcdir} in
|
||||
".")
|
||||
echo Building symlink tree in `pwd`/${ml_dir}/${ml_libdir}
|
||||
if [ "${with_target_subdir}" != "." ]; then
|
||||
ml_unsubdir="../"
|
||||
else
|
||||
ml_unsubdir=""
|
||||
fi
|
||||
(cd ${ml_dir}/${ml_libdir};
|
||||
../${dotdot}${ml_unsubdir}symlink-tree ../${dotdot}${ml_unsubdir}${ml_libdir} "")
|
||||
ml_newsrcdir="."
|
||||
ml_srcdiroption=
|
||||
multisrctop=${dotdot}
|
||||
;;
|
||||
*)
|
||||
case "${srcdir}" in
|
||||
/*) # absolute path
|
||||
ml_newsrcdir=${srcdir}
|
||||
;;
|
||||
*) # otherwise relative
|
||||
ml_newsrcdir=${dotdot}${srcdir}
|
||||
;;
|
||||
esac
|
||||
ml_srcdiroption="-srcdir=${ml_newsrcdir}"
|
||||
multisrctop=
|
||||
;;
|
||||
esac
|
||||
|
||||
case "${progname}" in
|
||||
/*) ml_recprog=${progname} ;;
|
||||
*) ml_recprog=${dotdot}${progname} ;;
|
||||
esac
|
||||
|
||||
# FIXME: POPDIR=${PWD=`pwd`} doesn't work here.
|
||||
ML_POPDIR=`pwd`
|
||||
cd ${ml_dir}/${ml_libdir}
|
||||
|
||||
if [ -f ${ml_newsrcdir}/configure ]; then
|
||||
ml_recprog=${ml_newsrcdir}/configure
|
||||
fi
|
||||
if eval ${ml_config_shell} ${ml_recprog} \
|
||||
--with-multisubdir=${ml_dir} --with-multisrctop=${multisrctop} \
|
||||
${ml_arguments} ${ml_srcdiroption} ; then
|
||||
true
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ${ML_POPDIR}
|
||||
|
||||
done
|
||||
|
||||
cd ${ml_origdir}
|
||||
fi
|
||||
|
||||
fi # ${ml_toplevel_p} = yes
|
||||
fi # ${enable_multilib} = yes
|
||||
833
config.guess
vendored
Executable file
833
config.guess
vendored
Executable file
@@ -0,0 +1,833 @@
|
||||
#! /bin/sh
|
||||
# Attempt to guess a canonical system name.
|
||||
# Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Written by Per Bothner <bothner@cygnus.com>.
|
||||
# The master version of this file is at the FSF in /home/gd/gnu/lib.
|
||||
#
|
||||
# This script attempts to guess a canonical system name similar to
|
||||
# config.sub. If it succeeds, it prints the system name on stdout, and
|
||||
# exits with 0. Otherwise, it exits with 1.
|
||||
#
|
||||
# The plan is that this can be called by configure scripts if you
|
||||
# don't specify an explicit system type (host/target name).
|
||||
#
|
||||
# Only a few systems have been added to this list; please add others
|
||||
# (but try to keep the structure clean).
|
||||
#
|
||||
|
||||
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
|
||||
# (ghazi@noc.rutgers.edu 8/24/94.)
|
||||
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
|
||||
PATH=$PATH:/.attbin ; export PATH
|
||||
fi
|
||||
|
||||
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
|
||||
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
|
||||
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
|
||||
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
|
||||
|
||||
trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
|
||||
|
||||
# Note: order is significant - the case branches are not exclusive.
|
||||
|
||||
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
alpha:OSF1:*:*)
|
||||
# A Vn.n version is a released version.
|
||||
# A Tn.n version is a released field test version.
|
||||
# A Xn.n version is an unreleased experimental baselevel.
|
||||
# 1.2 uses "1.2" for uname -r.
|
||||
cat <<EOF >dummy.s
|
||||
.globl main
|
||||
.ent main
|
||||
main:
|
||||
.frame \$30,0,\$26,0
|
||||
.prologue 0
|
||||
.long 0x47e03d84
|
||||
cmoveq \$4,0,\$3
|
||||
addl \$3,\$31,\$0
|
||||
ret \$31,(\$26),1
|
||||
.end main
|
||||
EOF
|
||||
${CC-cc} dummy.s -o dummy 2>/dev/null
|
||||
if test "$?" = 0 ; then
|
||||
./dummy
|
||||
case "$?" in
|
||||
1)
|
||||
UNAME_MACHINE="alphaev5"
|
||||
;;
|
||||
2)
|
||||
UNAME_MACHINE="alphaev56"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
rm -f dummy.s dummy
|
||||
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'`
|
||||
exit 0 ;;
|
||||
21064:Windows_NT:50:3)
|
||||
echo alpha-dec-winnt3.5
|
||||
exit 0 ;;
|
||||
Amiga*:UNIX_System_V:4.0:*)
|
||||
echo m68k-cbm-sysv4
|
||||
exit 0;;
|
||||
amiga:NetBSD:*:*)
|
||||
echo m68k-cbm-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
amiga:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
arc64:OpenBSD:*:*)
|
||||
echo mips64el-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
arc:OpenBSD:*:*)
|
||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
hkmips:OpenBSD:*:*)
|
||||
echo mips-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
pmax:OpenBSD:*:*)
|
||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
sgi:OpenBSD:*:*)
|
||||
echo mips-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
wgrisc:OpenBSD:*:*)
|
||||
echo mipsel-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
||||
echo arm-acorn-riscix${UNAME_RELEASE}
|
||||
exit 0;;
|
||||
arm32:NetBSD:*:*)
|
||||
echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||
exit 0 ;;
|
||||
SR2?01:HI-UX/MPP:*:*)
|
||||
echo hppa1.1-hitachi-hiuxmpp
|
||||
exit 0;;
|
||||
Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
|
||||
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
|
||||
if test "`(/bin/universe) 2>/dev/null`" = att ; then
|
||||
echo pyramid-pyramid-sysv3
|
||||
else
|
||||
echo pyramid-pyramid-bsd
|
||||
fi
|
||||
exit 0 ;;
|
||||
NILE:*:*:dcosx)
|
||||
echo pyramid-pyramid-svr4
|
||||
exit 0 ;;
|
||||
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
||||
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit 0 ;;
|
||||
i86pc:SunOS:5.*:*)
|
||||
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit 0 ;;
|
||||
sun4*:SunOS:6*:*)
|
||||
# According to config.sub, this is the proper way to canonicalize
|
||||
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
|
||||
# it's likely to be more like Solaris than SunOS4.
|
||||
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit 0 ;;
|
||||
sun4*:SunOS:*:*)
|
||||
case "`/usr/bin/arch -k`" in
|
||||
Series*|S4*)
|
||||
UNAME_RELEASE=`uname -v`
|
||||
;;
|
||||
esac
|
||||
# Japanese Language versions have a version number like `4.1.3-JL'.
|
||||
echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
|
||||
exit 0 ;;
|
||||
sun3*:SunOS:*:*)
|
||||
echo m68k-sun-sunos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
aushp:SunOS:*:*)
|
||||
echo sparc-auspex-sunos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
atari*:NetBSD:*:*)
|
||||
echo m68k-atari-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
atari*:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
sun3*:NetBSD:*:*)
|
||||
echo m68k-sun-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
sun3*:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mac68k:NetBSD:*:*)
|
||||
echo m68k-apple-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mac68k:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mvme68k:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mvme88k:OpenBSD:*:*)
|
||||
echo m88k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
powerpc:machten:*:*)
|
||||
echo powerpc-apple-machten${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
RISC*:Mach:*:*)
|
||||
echo mips-dec-mach_bsd4.3
|
||||
exit 0 ;;
|
||||
RISC*:ULTRIX:*:*)
|
||||
echo mips-dec-ultrix${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
VAX*:ULTRIX*:*:*)
|
||||
echo vax-dec-ultrix${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
2020:CLIX:*:*)
|
||||
echo clipper-intergraph-clix${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mips:*:*:UMIPS | mips:*:*:RISCos)
|
||||
sed 's/^ //' << EOF >dummy.c
|
||||
int main (argc, argv) int argc; char **argv; {
|
||||
#if defined (host_mips) && defined (MIPSEB)
|
||||
#if defined (SYSTYPE_SYSV)
|
||||
printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
|
||||
#endif
|
||||
#if defined (SYSTYPE_SVR4)
|
||||
printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
|
||||
#endif
|
||||
#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
|
||||
printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
exit (-1);
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy \
|
||||
&& ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
|
||||
&& rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
echo mips-mips-riscos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
Night_Hawk:Power_UNIX:*:*)
|
||||
echo powerpc-harris-powerunix
|
||||
exit 0 ;;
|
||||
m88k:CX/UX:7*:*)
|
||||
echo m88k-harris-cxux7
|
||||
exit 0 ;;
|
||||
m88k:*:4*:R4*)
|
||||
echo m88k-motorola-sysv4
|
||||
exit 0 ;;
|
||||
m88k:*:3*:R3*)
|
||||
echo m88k-motorola-sysv3
|
||||
exit 0 ;;
|
||||
AViiON:dgux:*:*)
|
||||
# DG/UX returns AViiON for all architectures
|
||||
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
||||
if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
|
||||
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
|
||||
-o ${TARGET_BINARY_INTERFACE}x = x ] ; then
|
||||
echo m88k-dg-dgux${UNAME_RELEASE}
|
||||
else
|
||||
echo m88k-dg-dguxbcs${UNAME_RELEASE}
|
||||
fi
|
||||
else echo i586-dg-dgux${UNAME_RELEASE}
|
||||
fi
|
||||
exit 0 ;;
|
||||
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
||||
echo m88k-dolphin-sysv3
|
||||
exit 0 ;;
|
||||
M88*:*:R3*:*)
|
||||
# Delta 88k system running SVR3
|
||||
echo m88k-motorola-sysv3
|
||||
exit 0 ;;
|
||||
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
|
||||
echo m88k-tektronix-sysv3
|
||||
exit 0 ;;
|
||||
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
|
||||
echo m68k-tektronix-bsd
|
||||
exit 0 ;;
|
||||
*:IRIX*:*:*)
|
||||
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
|
||||
exit 0 ;;
|
||||
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
|
||||
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
|
||||
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
|
||||
i?86:AIX:*:*)
|
||||
echo i386-ibm-aix
|
||||
exit 0 ;;
|
||||
*:AIX:2:3)
|
||||
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||
sed 's/^ //' << EOF >dummy.c
|
||||
#include <sys/systemcfg.h>
|
||||
|
||||
main()
|
||||
{
|
||||
if (!__power_pc())
|
||||
exit(1);
|
||||
puts("powerpc-ibm-aix3.2.5");
|
||||
exit(0);
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
echo rs6000-ibm-aix3.2.5
|
||||
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
|
||||
echo rs6000-ibm-aix3.2.4
|
||||
else
|
||||
echo rs6000-ibm-aix3.2
|
||||
fi
|
||||
exit 0 ;;
|
||||
*:AIX:*:4)
|
||||
if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
|
||||
IBM_ARCH=rs6000
|
||||
else
|
||||
IBM_ARCH=powerpc
|
||||
fi
|
||||
if [ -x /usr/bin/oslevel ] ; then
|
||||
IBM_REV=`/usr/bin/oslevel`
|
||||
else
|
||||
IBM_REV=4.${UNAME_RELEASE}
|
||||
fi
|
||||
echo ${IBM_ARCH}-ibm-aix${IBM_REV}
|
||||
exit 0 ;;
|
||||
*:AIX:*:*)
|
||||
echo rs6000-ibm-aix
|
||||
exit 0 ;;
|
||||
ibmrt:4.4BSD:*|romp-ibm:BSD:*)
|
||||
echo romp-ibm-bsd4.4
|
||||
exit 0 ;;
|
||||
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
|
||||
echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
|
||||
exit 0 ;; # report: romp-ibm BSD 4.3
|
||||
*:BOSX:*:*)
|
||||
echo rs6000-bull-bosx
|
||||
exit 0 ;;
|
||||
DPX/2?00:B.O.S.:*:*)
|
||||
echo m68k-bull-sysv3
|
||||
exit 0 ;;
|
||||
9000/[34]??:4.3bsd:1.*:*)
|
||||
echo m68k-hp-bsd
|
||||
exit 0 ;;
|
||||
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
|
||||
echo m68k-hp-bsd4.4
|
||||
exit 0 ;;
|
||||
9000/[3478]??:HP-UX:*:*)
|
||||
case "${UNAME_MACHINE}" in
|
||||
9000/31? ) HP_ARCH=m68000 ;;
|
||||
9000/[34]?? ) HP_ARCH=m68k ;;
|
||||
9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
|
||||
9000/8?? ) HP_ARCH=hppa1.0 ;;
|
||||
esac
|
||||
HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
|
||||
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
|
||||
exit 0 ;;
|
||||
3050*:HI-UX:*:*)
|
||||
sed 's/^ //' << EOF >dummy.c
|
||||
#include <unistd.h>
|
||||
int
|
||||
main ()
|
||||
{
|
||||
long cpu = sysconf (_SC_CPU_VERSION);
|
||||
/* The order matters, because CPU_IS_HP_MC68K erroneously returns
|
||||
true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
|
||||
results, however. */
|
||||
if (CPU_IS_PA_RISC (cpu))
|
||||
{
|
||||
switch (cpu)
|
||||
{
|
||||
case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
|
||||
case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
|
||||
case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
|
||||
default: puts ("hppa-hitachi-hiuxwe2"); break;
|
||||
}
|
||||
}
|
||||
else if (CPU_IS_HP_MC68K (cpu))
|
||||
puts ("m68k-hitachi-hiuxwe2");
|
||||
else puts ("unknown-hitachi-hiuxwe2");
|
||||
exit (0);
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
echo unknown-hitachi-hiuxwe2
|
||||
exit 0 ;;
|
||||
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
|
||||
echo hppa1.1-hp-bsd
|
||||
exit 0 ;;
|
||||
9000/8??:4.3bsd:*:*)
|
||||
echo hppa1.0-hp-bsd
|
||||
exit 0 ;;
|
||||
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
|
||||
echo hppa1.1-hp-osf
|
||||
exit 0 ;;
|
||||
hp8??:OSF1:*:*)
|
||||
echo hppa1.0-hp-osf
|
||||
exit 0 ;;
|
||||
i?86:OSF1:*:*)
|
||||
if [ -x /usr/sbin/sysversion ] ; then
|
||||
echo ${UNAME_MACHINE}-unknown-osf1mk
|
||||
else
|
||||
echo ${UNAME_MACHINE}-unknown-osf1
|
||||
fi
|
||||
exit 0 ;;
|
||||
parisc*:Lites*:*:*)
|
||||
echo hppa1.1-hp-lites
|
||||
exit 0 ;;
|
||||
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||
echo c1-convex-bsd
|
||||
exit 0 ;;
|
||||
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
||||
if getsysinfo -f scalar_acc
|
||||
then echo c32-convex-bsd
|
||||
else echo c2-convex-bsd
|
||||
fi
|
||||
exit 0 ;;
|
||||
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
||||
echo c34-convex-bsd
|
||||
exit 0 ;;
|
||||
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
||||
echo c38-convex-bsd
|
||||
exit 0 ;;
|
||||
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
||||
echo c4-convex-bsd
|
||||
exit 0 ;;
|
||||
CRAY*X-MP:*:*:*)
|
||||
echo xmp-cray-unicos
|
||||
exit 0 ;;
|
||||
CRAY*Y-MP:*:*:*)
|
||||
echo ymp-cray-unicos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
CRAY*[A-Z]90:*:*:*)
|
||||
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
|
||||
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
|
||||
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
|
||||
exit 0 ;;
|
||||
CRAY*TS:*:*:*)
|
||||
echo t90-cray-unicos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
CRAY-2:*:*:*)
|
||||
echo cray2-cray-unicos
|
||||
exit 0 ;;
|
||||
F300:UNIX_System_V:*:*)
|
||||
FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
|
||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
||||
echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||
exit 0 ;;
|
||||
F301:UNIX_System_V:*:*)
|
||||
echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
|
||||
exit 0 ;;
|
||||
hp3[0-9][05]:NetBSD:*:*)
|
||||
echo m68k-hp-netbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
hp300:OpenBSD:*:*)
|
||||
echo m68k-unknown-openbsd${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
i?86:BSD/386:*:* | *:BSD/OS:*:*)
|
||||
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
*:FreeBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
||||
exit 0 ;;
|
||||
*:NetBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||
exit 0 ;;
|
||||
*:OpenBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
|
||||
exit 0 ;;
|
||||
i*:CYGWIN*:*)
|
||||
echo i386-pc-cygwin32
|
||||
exit 0 ;;
|
||||
i*:MINGW*:*)
|
||||
echo i386-pc-mingw32
|
||||
exit 0 ;;
|
||||
p*:CYGWIN*:*)
|
||||
echo powerpcle-unknown-cygwin32
|
||||
exit 0 ;;
|
||||
prep*:SunOS:5.*:*)
|
||||
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit 0 ;;
|
||||
*:GNU:*:*)
|
||||
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
|
||||
exit 0 ;;
|
||||
*:Linux:*:*)
|
||||
# The BFD linker knows what the default object file format is, so
|
||||
# first see if it will tell us.
|
||||
ld_help_string=`ld --help 2>&1`
|
||||
ld_supported_emulations=`echo $ld_help_string \
|
||||
| sed -ne '/supported emulations:/!d
|
||||
s/[ ][ ]*/ /g
|
||||
s/.*supported emulations: *//
|
||||
s/ .*//
|
||||
p'`
|
||||
case "$ld_supported_emulations" in
|
||||
i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
|
||||
i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
|
||||
sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
||||
m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
|
||||
elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
|
||||
esac
|
||||
|
||||
if test "${UNAME_MACHINE}" = "alpha" ; then
|
||||
sed 's/^ //' <<EOF >dummy.s
|
||||
.globl main
|
||||
.ent main
|
||||
main:
|
||||
.frame \$30,0,\$26,0
|
||||
.prologue 0
|
||||
.long 0x47e03d84
|
||||
cmoveq \$4,0,\$3
|
||||
addl \$3,\$31,\$0
|
||||
ret \$31,(\$26),1
|
||||
.end main
|
||||
EOF
|
||||
${CC-cc} dummy.s -o dummy 2>/dev/null
|
||||
if test "$?" = 0 ; then
|
||||
./dummy
|
||||
case "$?" in
|
||||
1)
|
||||
UNAME_MACHINE="alphaev5"
|
||||
;;
|
||||
2)
|
||||
UNAME_MACHINE="alphaev56"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
rm -f dummy.s dummy
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu ; exit 0
|
||||
elif test "${UNAME_MACHINE}" = "mips" ; then
|
||||
cat >dummy.c <<EOF
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
#ifdef __MIPSEB__
|
||||
printf ("%s-unknown-linux-gnu\n", argv[1]);
|
||||
#endif
|
||||
#ifdef __MIPSEL__
|
||||
printf ("%sel-unknown-linux-gnu\n", argv[1]);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
else
|
||||
# Either a pre-BFD a.out linker (linux-gnuoldld)
|
||||
# or one that does not give us useful --help.
|
||||
# GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
|
||||
# If ld does not provide *any* "supported emulations:"
|
||||
# that means it is gnuoldld.
|
||||
echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
|
||||
test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
|
||||
|
||||
case "${UNAME_MACHINE}" in
|
||||
i?86)
|
||||
VENDOR=pc;
|
||||
;;
|
||||
*)
|
||||
VENDOR=unknown;
|
||||
;;
|
||||
esac
|
||||
# Determine whether the default compiler is a.out or elf
|
||||
cat >dummy.c <<EOF
|
||||
#include <features.h>
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
{
|
||||
#ifdef __ELF__
|
||||
# ifdef __GLIBC__
|
||||
# if __GLIBC__ >= 2
|
||||
printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
|
||||
# else
|
||||
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
|
||||
# endif
|
||||
# else
|
||||
printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
|
||||
# endif
|
||||
#else
|
||||
printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
fi ;;
|
||||
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
|
||||
# are messed up and put the nodename in both sysname and nodename.
|
||||
i?86:DYNIX/ptx:4*:*)
|
||||
echo i386-sequent-sysv4
|
||||
exit 0 ;;
|
||||
i?86:UNIX_SV:4.2MP:2.*)
|
||||
# Unixware is an offshoot of SVR4, but it has its own version
|
||||
# number series starting with 2...
|
||||
# I am not positive that other SVR4 systems won't match this,
|
||||
# I just have to hope. -- rms.
|
||||
# Use sysv4.2uw... so that sysv4* matches it.
|
||||
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
||||
exit 0 ;;
|
||||
i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
|
||||
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
|
||||
echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
|
||||
else
|
||||
echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
|
||||
fi
|
||||
exit 0 ;;
|
||||
i?86:*:3.2:*)
|
||||
if test -f /usr/options/cb.name; then
|
||||
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
|
||||
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
|
||||
elif /bin/uname -X 2>/dev/null >/dev/null ; then
|
||||
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
|
||||
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
|
||||
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
|
||||
&& UNAME_MACHINE=i586
|
||||
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
|
||||
else
|
||||
echo ${UNAME_MACHINE}-pc-sysv32
|
||||
fi
|
||||
exit 0 ;;
|
||||
pc:*:*:*)
|
||||
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
||||
# the processor, so we play safe by assuming i386.
|
||||
echo i386-pc-msdosdjgpp
|
||||
exit 0 ;;
|
||||
Intel:Mach:3*:*)
|
||||
echo i386-pc-mach3
|
||||
exit 0 ;;
|
||||
paragon:*:*:*)
|
||||
echo i860-intel-osf1
|
||||
exit 0 ;;
|
||||
i860:*:4.*:*) # i860-SVR4
|
||||
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
|
||||
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
|
||||
else # Add other i860-SVR4 vendors below as they are discovered.
|
||||
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
|
||||
fi
|
||||
exit 0 ;;
|
||||
mini*:CTIX:SYS*5:*)
|
||||
# "miniframe"
|
||||
echo m68010-convergent-sysv
|
||||
exit 0 ;;
|
||||
M68*:*:R3V[567]*:*)
|
||||
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
|
||||
3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
|
||||
OS_REL=''
|
||||
test -r /etc/.relid \
|
||||
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
|
||||
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
||||
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
|
||||
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||
&& echo i486-ncr-sysv4 && exit 0 ;;
|
||||
m68*:LynxOS:2.*:*)
|
||||
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
mc68030:UNIX_System_V:4.*:*)
|
||||
echo m68k-atari-sysv4
|
||||
exit 0 ;;
|
||||
i?86:LynxOS:2.*:*)
|
||||
echo i386-unknown-lynxos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
TSUNAMI:LynxOS:2.*:*)
|
||||
echo sparc-unknown-lynxos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
|
||||
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
SM[BE]S:UNIX_SV:*:*)
|
||||
echo mips-dde-sysv${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
RM*:SINIX-*:*:*)
|
||||
echo mips-sni-sysv4
|
||||
exit 0 ;;
|
||||
*:SINIX-*:*:*)
|
||||
if uname -p 2>/dev/null >/dev/null ; then
|
||||
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
||||
echo ${UNAME_MACHINE}-sni-sysv4
|
||||
else
|
||||
echo ns32k-sni-sysv
|
||||
fi
|
||||
exit 0 ;;
|
||||
PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
||||
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
||||
echo i586-unisys-sysv4
|
||||
exit 0 ;;
|
||||
*:UNIX_System_V:4*:FTX*)
|
||||
# From Gerald Hewes <hewes@openmarket.com>.
|
||||
# How about differentiating between stratus architectures? -djm
|
||||
echo hppa1.1-stratus-sysv4
|
||||
exit 0 ;;
|
||||
*:*:*:FTX*)
|
||||
# From seanf@swdc.stratus.com.
|
||||
echo i860-stratus-sysv4
|
||||
exit 0 ;;
|
||||
mc68*:A/UX:*:*)
|
||||
echo m68k-apple-aux${UNAME_RELEASE}
|
||||
exit 0 ;;
|
||||
news*:NEWS-OS:*:6*)
|
||||
echo mips-sony-newsos6
|
||||
exit 0 ;;
|
||||
R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
|
||||
if [ -d /usr/nec ]; then
|
||||
echo mips-nec-sysv${UNAME_RELEASE}
|
||||
else
|
||||
echo mips-unknown-sysv${UNAME_RELEASE}
|
||||
fi
|
||||
exit 0 ;;
|
||||
esac
|
||||
|
||||
#echo '(No uname command or uname output not recognized.)' 1>&2
|
||||
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
||||
|
||||
cat >dummy.c <<EOF
|
||||
#ifdef _SEQUENT_
|
||||
# include <sys/types.h>
|
||||
# include <sys/utsname.h>
|
||||
#endif
|
||||
main ()
|
||||
{
|
||||
#if defined (sony)
|
||||
#if defined (MIPSEB)
|
||||
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
|
||||
I don't know.... */
|
||||
printf ("mips-sony-bsd\n"); exit (0);
|
||||
#else
|
||||
#include <sys/param.h>
|
||||
printf ("m68k-sony-newsos%s\n",
|
||||
#ifdef NEWSOS4
|
||||
"4"
|
||||
#else
|
||||
""
|
||||
#endif
|
||||
); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (__arm) && defined (__acorn) && defined (__unix)
|
||||
printf ("arm-acorn-riscix"); exit (0);
|
||||
#endif
|
||||
|
||||
#if defined (hp300) && !defined (hpux)
|
||||
printf ("m68k-hp-bsd\n"); exit (0);
|
||||
#endif
|
||||
|
||||
#if defined (NeXT)
|
||||
#if !defined (__ARCHITECTURE__)
|
||||
#define __ARCHITECTURE__ "m68k"
|
||||
#endif
|
||||
int version;
|
||||
version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
|
||||
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
|
||||
exit (0);
|
||||
#endif
|
||||
|
||||
#if defined (MULTIMAX) || defined (n16)
|
||||
#if defined (UMAXV)
|
||||
printf ("ns32k-encore-sysv\n"); exit (0);
|
||||
#else
|
||||
#if defined (CMU)
|
||||
printf ("ns32k-encore-mach\n"); exit (0);
|
||||
#else
|
||||
printf ("ns32k-encore-bsd\n"); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (__386BSD__)
|
||||
printf ("i386-pc-bsd\n"); exit (0);
|
||||
#endif
|
||||
|
||||
#if defined (sequent)
|
||||
#if defined (i386)
|
||||
printf ("i386-sequent-dynix\n"); exit (0);
|
||||
#endif
|
||||
#if defined (ns32000)
|
||||
printf ("ns32k-sequent-dynix\n"); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (_SEQUENT_)
|
||||
struct utsname un;
|
||||
|
||||
uname(&un);
|
||||
|
||||
if (strncmp(un.version, "V2", 2) == 0) {
|
||||
printf ("i386-sequent-ptx2\n"); exit (0);
|
||||
}
|
||||
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
|
||||
printf ("i386-sequent-ptx1\n"); exit (0);
|
||||
}
|
||||
printf ("i386-sequent-ptx\n"); exit (0);
|
||||
|
||||
#endif
|
||||
|
||||
#if defined (vax)
|
||||
#if !defined (ultrix)
|
||||
printf ("vax-dec-bsd\n"); exit (0);
|
||||
#else
|
||||
printf ("vax-dec-ultrix\n"); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined (alliant) && defined (i860)
|
||||
printf ("i860-alliant-bsd\n"); exit (0);
|
||||
#endif
|
||||
|
||||
exit (1);
|
||||
}
|
||||
EOF
|
||||
|
||||
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
|
||||
rm -f dummy.c dummy
|
||||
|
||||
# Apollos put the system type in the environment.
|
||||
|
||||
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
|
||||
|
||||
# Convex versions that predate uname can use getsysinfo(1)
|
||||
|
||||
if [ -x /usr/convex/getsysinfo ]
|
||||
then
|
||||
case `getsysinfo -f cpu_type` in
|
||||
c1*)
|
||||
echo c1-convex-bsd
|
||||
exit 0 ;;
|
||||
c2*)
|
||||
if getsysinfo -f scalar_acc
|
||||
then echo c32-convex-bsd
|
||||
else echo c2-convex-bsd
|
||||
fi
|
||||
exit 0 ;;
|
||||
c34*)
|
||||
echo c34-convex-bsd
|
||||
exit 0 ;;
|
||||
c38*)
|
||||
echo c38-convex-bsd
|
||||
exit 0 ;;
|
||||
c4*)
|
||||
echo c4-convex-bsd
|
||||
exit 0 ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
#echo '(Unable to guess system type)' 1>&2
|
||||
|
||||
exit 1
|
||||
1177
config.sub
vendored
Executable file
1177
config.sub
vendored
Executable file
File diff suppressed because it is too large
Load Diff
312
config/ChangeLog
Normal file
312
config/ChangeLog
Normal file
@@ -0,0 +1,312 @@
|
||||
Wed Jul 23 12:32:18 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
|
||||
|
||||
* mh-go32 (CFLAGS): Don't set -fno-omit-frame-pointer.
|
||||
|
||||
Mon Jun 16 19:06:41 1997 Geoff Keating <geoffk@ozemail.com.au>
|
||||
|
||||
* mh-ppcpic: New file.
|
||||
* mt-ppcpic: New file.
|
||||
|
||||
Thu Mar 27 15:52:40 1997 Geoffrey Noer <noer@cygnus.com>
|
||||
|
||||
* mh-cygwin32: override CXXFLAGS, setting to -O2 only
|
||||
(no debug)
|
||||
|
||||
Tue Mar 25 18:16:43 1997 Geoffrey Noer <noer@cygnus.com>
|
||||
|
||||
* mh-cygwin32: override LIBGCC2_DEBUG_CFLAGS so debug info
|
||||
isn't included in cygwin32-hosted libgcc2.a by default
|
||||
|
||||
Wed Jan 8 19:56:43 1997 Geoffrey Noer <noer@cygnus.com>
|
||||
|
||||
* mh-cygwin32: override CFLAGS so debug info isn't included
|
||||
in cygwin32-hosted tools by default
|
||||
|
||||
Tue Dec 31 16:04:26 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* mh-linux: Remove.
|
||||
|
||||
Mon Nov 11 10:29:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||
|
||||
* mt-ppc: Delete file, options moved to newlib configure.
|
||||
|
||||
Fri Oct 4 12:21:03 1996 Angela Marie Thomas (angela@cygnus.com)
|
||||
|
||||
* mh-dgux386: New file. x86 dgux specific flags
|
||||
|
||||
Mon Sep 30 15:10:07 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw-mh-mpw (EXTRALIBS_PPC_XCOFF): New, was EXTRALIBS_PPC.
|
||||
(EXTRALIBS_PPC): Use shared libraries instead of xcoff.
|
||||
|
||||
Sat Aug 17 04:56:25 1996 Geoffrey Noer <noer@skaro.cygnus.com>
|
||||
|
||||
* mh-cygwin32: don't -D_WIN32 here anymore
|
||||
|
||||
Thu Aug 15 19:46:44 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw-mh-mpw (SEGFLAG_68K, SEGFLAG_PPC): Remove.
|
||||
(EXTRALIBS_PPC): Add libgcc.xcoff.
|
||||
|
||||
Thu Aug 8 14:51:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||
|
||||
* mt-ppc: New file, add -mrelocatable-lib and -mno-eabi to all
|
||||
target builds for PowerPC eabi targets.
|
||||
|
||||
Fri Jul 12 12:06:01 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw: New subdir, Mac MPW configuration support bits.
|
||||
|
||||
Mon Jul 8 17:30:52 1996 Jim Wilson <wilson@cygnus.com>
|
||||
|
||||
* mh-irix6: New file.
|
||||
|
||||
Mon Jul 8 15:15:37 1996 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* mt-sparcpic (PICFLAG_FOR_TARGET): Use -fPIC.
|
||||
|
||||
Fri Jul 5 11:49:02 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* mh-irix4 (RANLIB): Don't define; Irix 4 does have ranlib.
|
||||
|
||||
Sun Jun 23 22:59:25 1996 Geoffrey Noer <noer@cygnus.com>
|
||||
|
||||
* mh-cygwin32: new file. Like mh-go32 without the CFLAGS entry.
|
||||
|
||||
Tue Mar 26 14:10:41 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* mh-go32 (CFLAGS): Define.
|
||||
|
||||
Thu Mar 14 19:20:54 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* mh-necv4: New file.
|
||||
|
||||
Thu Feb 15 13:07:43 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* mh-cxux (CC): New variable.
|
||||
(CFLAGS, LDFLAGS): Remove.
|
||||
* mh-ncrsvr43 (CC): New variable.
|
||||
(CFLAGS): Remove.
|
||||
* mh-solaris (CFLAGS): Remove.
|
||||
|
||||
* mh-go32: Remove most variable settings, since they presumed a
|
||||
Canadian Cross, which is now handled correctly by the configure
|
||||
script.
|
||||
|
||||
* mh-sparcpic (PICFLAG): Set to -fPIC, not -fpic.
|
||||
|
||||
Mon Feb 12 14:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||
|
||||
* mh-m68kpic, mt-m68kpic: New files.
|
||||
|
||||
Thu Feb 1 14:15:42 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw-mh-mpw (CC_MWC68K): Add options similar to those used
|
||||
in CC_MWCPPC, and -mc68020 -model far.
|
||||
(AR_MWLINK68K): Add -xm library.
|
||||
(AR_AR): Define.
|
||||
(CC_LD_MWLINK68K): Remove -d.
|
||||
(EXTRALIBS_MWC68K): Define.
|
||||
|
||||
Thu Jan 25 16:05:33 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* mh-ncrsvr43 (CFLAGS): Remove -Hnocopyr.
|
||||
|
||||
Tue Nov 7 15:41:30 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw-mh-mpw (CC_MWC68K, CC_MWCPPC): Remove unused include path.
|
||||
(CC_MWCPPC): Add -mpw_chars, disable warnings, add comments
|
||||
explaining reasons for various flags.
|
||||
(EXTRALIBS_PPC, EXTRALIBS_MWCPPC ): Put runtime library first.
|
||||
|
||||
Fri Oct 13 14:44:25 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* mh-aix, mh-sun: Removed.
|
||||
|
||||
* mh-decstation (X11_EXTRA_CFLAGS): Define.
|
||||
|
||||
* mh-sco, mh-solaris, mh-sysv4 (X11_EXTRA_LIBS): Define.
|
||||
|
||||
* mh-hp300, mh-hpux, mh-hpux8, mh-solaris, mh-sun3, mh-sysv4: Don't
|
||||
hardcode location of X stuff here.
|
||||
|
||||
Thu Sep 28 13:14:56 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw-mh-mpw: Add definitions for various 68K and PowerMac
|
||||
compilers, add definitions for library and link steps for
|
||||
PowerMacs.
|
||||
|
||||
Thu Sep 14 08:20:04 1995 Fred Fish <fnf@cygnus.com>
|
||||
|
||||
* mh-hp300 (CC): Add "CC = cc -Wp,-H256000" to avoid
|
||||
"too much defining" errors from the HPUX compiler.
|
||||
|
||||
Thu Aug 17 17:28:56 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
|
||||
|
||||
* mh-hp300 (RANLIB): Use "ar ts", in case GNU ar was used and
|
||||
didn't build a symbol table.
|
||||
|
||||
Thu Jun 22 17:47:24 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw-mh-mpw (CC): Define ANSI_PROTOTYPES.
|
||||
|
||||
Mon Apr 10 12:29:48 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw-mh-mpw (EXTRALIBS): Always link in Math.o, CSANELIB.o,
|
||||
and ToolLibs.o.
|
||||
|
||||
* mpw-mh-mpw (CC): Define ALMOST_STDC.
|
||||
(CFLAGS): Remove ALMOST_STDC, -mc68881.
|
||||
(LDFLAGS): add -w.
|
||||
|
||||
* mpw-mh-mpw (CFLAGS): Add -b option to put strings at the ends of
|
||||
functions.
|
||||
|
||||
* mpw-mh-mpw: New file, host makefile definitions for MPW.
|
||||
|
||||
Fri Mar 31 11:35:17 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* mt-netware: New file.
|
||||
|
||||
Mon Mar 13 12:31:29 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* mh-hpux8: New file.
|
||||
* mh-hpux: Use X11R5 rather than X11R4.
|
||||
|
||||
Thu Feb 9 11:04:13 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* mh-linux (SYSV): Don't define.
|
||||
(RANLIB): Don't define.
|
||||
|
||||
Wed Jan 11 16:29:34 1995 Jason Merrill <jason@phydeaux.cygnus.com>
|
||||
|
||||
* m?-*pic (LIBCXXFLAGS): Add -fno-implicit-templates.
|
||||
|
||||
Thu Nov 3 17:27:19 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
|
||||
|
||||
* mh-irix4 (CC): Increase maximum string length.
|
||||
|
||||
* mh-sco (CC): Define away const, it doesn't work right; elements
|
||||
of arrays of ptr-to-const are considered const themselves.
|
||||
|
||||
Sat Jul 16 12:17:49 1994 Stan Shebs (shebs@andros.cygnus.com)
|
||||
|
||||
* mh-cxux: New file, from Bob Rusk (rrusk@mail.csd.harris.com).
|
||||
|
||||
Sat Jun 4 17:22:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
|
||||
|
||||
* mh-ncrsvr43: New file from Tom McConnell
|
||||
<tmcconne@sedona.intel.com>.
|
||||
|
||||
Thu May 19 00:32:11 1994 Jeff Law (law@snake.cs.utah.edu)
|
||||
|
||||
* mh-hpux (CC): Add -Wp,-H256000 to avoid "too much defining"
|
||||
errors from the HPUX 8 compilers.
|
||||
|
||||
Wed May 4 20:14:47 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
|
||||
|
||||
* mh-lynxrs6k: set SHELL to /bin/bash
|
||||
|
||||
Tue Apr 12 12:38:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||
|
||||
* mh-irix4 (CC): Change -XNh1500 to -XNh2000.
|
||||
|
||||
Sat Dec 25 20:03:45 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
|
||||
|
||||
* mt-hppa: Delete.
|
||||
|
||||
Tue Nov 16 22:54:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||
|
||||
* mh-a68bsd: Define CC to gcc.
|
||||
|
||||
Mon Nov 15 16:56:51 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||
|
||||
* mh-linux: Don't put -static in LDFLAGS. Add comments.
|
||||
|
||||
Mon Nov 15 13:37:58 1993 david d `zoo' zuhn (zoo@cirdan.cygnus.com)
|
||||
|
||||
* mh-sysv4 (AR_FLAGS): change from cq to cr
|
||||
|
||||
Fri Nov 5 08:12:32 1993 D. V. Henkel-Wallace (gumby@blues.cygnus.com)
|
||||
|
||||
* mh-unixware: remove. It's the same as sysv4, and config.guess
|
||||
can't tell the difference. So don't allow skew.
|
||||
|
||||
Wed Oct 20 20:35:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||
|
||||
* mh-hp300: Revert yesterday's change, but add comment explaining.
|
||||
|
||||
Tue Oct 19 18:58:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||
|
||||
* mh-hp300: Don't define CFLAGS to empty. Why should hp300 be
|
||||
different from anything else? ("gdb doesn't understand the native
|
||||
debug format" isn't a good enough answer because we might be using
|
||||
gcc).
|
||||
|
||||
Tue Oct 5 12:17:40 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
|
||||
|
||||
* mh-alphaosf: Remove, no longer necessary now that gdb knows
|
||||
how to handle OSF/1 shared libraries.
|
||||
|
||||
Tue Jul 6 11:27:33 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
|
||||
|
||||
* mh-alphaosf: New file.
|
||||
|
||||
Thu Jul 1 15:49:33 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||
|
||||
* mh-riscos: New file.
|
||||
|
||||
Mon Jun 14 12:03:18 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
|
||||
|
||||
* mh-aix, mh-aix386, mh-decstation, mh-delta88, mh-hpux, mh-irix4,
|
||||
mh-ncr3000, mh-solaris, mh-sysv, mh-sysv4: remove INSTALL=cp line,
|
||||
now that we're using install.sh globally
|
||||
|
||||
Fri Jun 4 16:09:34 1993 Ian Lance Taylor (ian@cygnus.com)
|
||||
|
||||
* mh-sysv4 (INSTALL): Use cp, not /usr/ucb/install.
|
||||
|
||||
Thu Apr 8 11:21:52 1993 Ian Lance Taylor (ian@cygnus.com)
|
||||
|
||||
* mt-a29k, mt-ebmon29k, mt-os68k, mt-ose68000, mt-ose68k,
|
||||
mt-vxworks68, mt-vxworks960: Removed obsolete, unused target
|
||||
Makefile fragment files.
|
||||
|
||||
Mon Mar 8 15:05:25 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
|
||||
|
||||
* mh-aix386: New file; old mh-aix, plus no-op RANLIB.
|
||||
|
||||
Thu Oct 1 13:50:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* mh-solaris: INSTALL is NOT /usr/ucb/install
|
||||
|
||||
Mon Aug 24 14:25:35 1992 Ian Lance Taylor (ian@cygnus.com)
|
||||
|
||||
* mt-ose68000, mt-ose68k: renamed from mt-OSE*.
|
||||
|
||||
Tue Jul 21 02:11:01 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
|
||||
|
||||
* mt-OSE68k, mt-680000: new configs.
|
||||
|
||||
Thu Jul 16 17:12:09 1992 K. Richard Pixley (rich@rtl.cygnus.com)
|
||||
|
||||
* mh-irix4: merged changes from progressive.
|
||||
|
||||
Tue Jun 9 23:29:38 1992 Per Bothner (bothner@rtl.cygnus.com)
|
||||
|
||||
* Everywhere: Change RANLIB=echo>/dev/null (which confuses
|
||||
some shells - and I don't blame them) to RANLIB=true.
|
||||
* mh-solaris: Use /usr/ucb/install for INSTALL.
|
||||
|
||||
Sun May 31 14:45:23 1992 Mark Eichin (eichin at cygnus.com)
|
||||
|
||||
* mh-solaris2: Add new configuration for Solaris 2 (sysv, no ranlib)
|
||||
|
||||
Fri Apr 10 23:10:08 1992 Fred Fish (fnf@cygnus.com)
|
||||
|
||||
* mh-ncr3000: Add new configuration for NCR 3000.
|
||||
|
||||
Tue Dec 10 00:10:55 1991 K. Richard Pixley (rich at rtl.cygnus.com)
|
||||
|
||||
* ChangeLog: fresh changelog.
|
||||
|
||||
12
config/mh-a68bsd
Normal file
12
config/mh-a68bsd
Normal file
@@ -0,0 +1,12 @@
|
||||
RANLIB=true
|
||||
|
||||
#None of the Apollo compilers can compile gas or binutils. The preprocessor
|
||||
# chokes on bfd, the compiler won't let you assign integers to enums, and
|
||||
# other problems. Defining CC to gcc is a questionable way to say "don't use
|
||||
# the apollo compiler" (the preferred version of GCC could be called cc,
|
||||
# or whatever), but I'm not sure leaving CC as cc is any better...
|
||||
|
||||
#CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
|
||||
CC=gcc
|
||||
|
||||
BISON=yacc
|
||||
1
config/mh-aix386
Normal file
1
config/mh-aix386
Normal file
@@ -0,0 +1 @@
|
||||
RANLIB = @:
|
||||
3
config/mh-apollo68
Normal file
3
config/mh-apollo68
Normal file
@@ -0,0 +1,3 @@
|
||||
HDEFINES = -DUSG
|
||||
RANLIB=true
|
||||
CC= cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG
|
||||
14
config/mh-cxux
Normal file
14
config/mh-cxux
Normal file
@@ -0,0 +1,14 @@
|
||||
# Configuration for Harris CX/UX 7 (and maybe 6), based on sysv4 configuration.
|
||||
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV -DSVR4
|
||||
RANLIB = true
|
||||
|
||||
# C++ debugging is not yet supported under SVR4 (DWARF)
|
||||
CXXFLAGS=-O
|
||||
|
||||
# The l flag generates a warning from the SVR4 archiver, remove it.
|
||||
AR_FLAGS = cq
|
||||
|
||||
# Under CX/UX, we want to tell the compiler to use ANSI mode.
|
||||
CC=cc -Xa
|
||||
16
config/mh-cygwin32
Normal file
16
config/mh-cygwin32
Normal file
@@ -0,0 +1,16 @@
|
||||
# We don't want debugging info in Win32-hosted toolchains.
|
||||
# Accomplish this by overriding CFLAGS.
|
||||
CFLAGS=-O2
|
||||
CXXFLAGS=-O2
|
||||
|
||||
# We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be
|
||||
# build without debugging information
|
||||
|
||||
LIBGCC2_DEBUG_CFLAGS=
|
||||
|
||||
# We set MAKEINFOFLAGS to not split .info files, because the resulting
|
||||
# file names don't work on DOS.
|
||||
MAKEINFOFLAGS=--no-split
|
||||
|
||||
# custom installation rules for cygwin32 (append .exe to binaries, etc.)
|
||||
INSTALL_DOSREL=install-dosrel
|
||||
5
config/mh-decstation
Normal file
5
config/mh-decstation
Normal file
@@ -0,0 +1,5 @@
|
||||
CC = cc -Wf,-XNg1000
|
||||
|
||||
# for X11, since the native DECwindows include files are really broken when
|
||||
# it comes to function prototypes.
|
||||
X11_EXTRA_CFLAGS = "-DNeedFunctionPrototypes=0"
|
||||
4
config/mh-delta88
Normal file
4
config/mh-delta88
Normal file
@@ -0,0 +1,4 @@
|
||||
RANLIB = true
|
||||
|
||||
|
||||
|
||||
4
config/mh-dgux
Normal file
4
config/mh-dgux
Normal file
@@ -0,0 +1,4 @@
|
||||
HDEFINES=-DHOST_SYS=DGUX_SYS
|
||||
CC=gcc -Wall -ansi -D__using_DGUX
|
||||
RANLIB=true
|
||||
|
||||
22
config/mh-dgux386
Normal file
22
config/mh-dgux386
Normal file
@@ -0,0 +1,22 @@
|
||||
# from mh-dgux
|
||||
HDEFINES=-DHOST_SYS=DGUX_SYS
|
||||
CC=gcc -Wall -ansi -D__using_DGUX
|
||||
RANLIB = true
|
||||
|
||||
# from mh-sysv4
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV -DSVR4
|
||||
RANLIB = true
|
||||
|
||||
# C++ debugging is not yet supported under SVR4 (DWARF)
|
||||
CXXFLAGS=-O
|
||||
|
||||
# The l flag generates a warning from the SVR4 archiver, remove it.
|
||||
AR_FLAGS = cr
|
||||
|
||||
X11_EXTRA_LIBS = -lnsl
|
||||
|
||||
# from angela
|
||||
# no debugging due to broken compiler, use BSD style timeofday
|
||||
CFLAGS=-O -D_BSD_TIMEOFDAY_FLAVOR
|
||||
|
||||
4
config/mh-go32
Normal file
4
config/mh-go32
Normal file
@@ -0,0 +1,4 @@
|
||||
# We don't want to use debugging information on DOS. Unfortunately,
|
||||
# this requires that we set CFLAGS.
|
||||
# This used to set -fno-omit-frame-pointer.
|
||||
CFLAGS=-O2
|
||||
13
config/mh-hp300
Normal file
13
config/mh-hp300
Normal file
@@ -0,0 +1,13 @@
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV
|
||||
# Avoid "too much defining" errors from HPUX compiler.
|
||||
CC = cc -Wp,-H256000
|
||||
# If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
|
||||
# If it's HP/UX ar, this should be harmless.
|
||||
RANLIB = ar ts
|
||||
|
||||
# Native cc can't bootstrap gcc with -g. Defining CFLAGS here loses (a)
|
||||
# for non-gcc directories, (b) if we are compiling with gcc, not
|
||||
# native cc. Neither (a) nor (b) has a trivial fix though.
|
||||
|
||||
CFLAGS =
|
||||
4
config/mh-hpux
Normal file
4
config/mh-hpux
Normal file
@@ -0,0 +1,4 @@
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
CC = cc -Wp,-H256000
|
||||
SYSV = -DSYSV
|
||||
RANLIB = true
|
||||
4
config/mh-hpux8
Normal file
4
config/mh-hpux8
Normal file
@@ -0,0 +1,4 @@
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
CC = cc -Wp,-H256000
|
||||
SYSV = -DSYSV
|
||||
RANLIB = true
|
||||
7
config/mh-irix4
Normal file
7
config/mh-irix4
Normal file
@@ -0,0 +1,7 @@
|
||||
# Makefile changes for SGI's running IRIX-4.x.
|
||||
# Tell compiler to use K&R C. We can't compile under the SGI Ansi
|
||||
# environment. Also bump switch table size so that cp-parse will
|
||||
# compile. Bump string length limit so linker builds.
|
||||
|
||||
CC = cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192
|
||||
SYSV = -DSYSV
|
||||
3
config/mh-irix5
Normal file
3
config/mh-irix5
Normal file
@@ -0,0 +1,3 @@
|
||||
# Makefile changes for SGI's running IRIX-5.x.
|
||||
SYSV = -DSYSV
|
||||
RANLIB = true
|
||||
7
config/mh-irix6
Normal file
7
config/mh-irix6
Normal file
@@ -0,0 +1,7 @@
|
||||
# Makefile changes for SGI's running IRIX-6.x.
|
||||
SYSV = -DSYSV
|
||||
RANLIB = true
|
||||
# Specify the ABI, to ensure that all Irix 6 systems will behave the same.
|
||||
# Also, using -32 avoids bugs that exist in the n32/n64 support in some
|
||||
# versions of the SGI compiler.
|
||||
CC = cc -32
|
||||
2
config/mh-lynxos
Normal file
2
config/mh-lynxos
Normal file
@@ -0,0 +1,2 @@
|
||||
# /bin/cc is less than useful for our purposes. Always use GCC
|
||||
CC = /bin/gcc
|
||||
8
config/mh-lynxrs6k
Normal file
8
config/mh-lynxrs6k
Normal file
@@ -0,0 +1,8 @@
|
||||
# LynxOS running on the rs6000 doesn't have ranlib
|
||||
RANLIB = true
|
||||
|
||||
# /bin/cc is less than useful for our purposes. Always use GCC
|
||||
CC = /usr/cygnus/progressive/bin/gcc
|
||||
|
||||
# /bin/sh is too buggy, so use /bin/bash instead.
|
||||
SHELL = /bin/bash
|
||||
1
config/mh-m68kpic
Normal file
1
config/mh-m68kpic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG=-fpic
|
||||
17
config/mh-ncr3000
Normal file
17
config/mh-ncr3000
Normal file
@@ -0,0 +1,17 @@
|
||||
# Host configuration file for an NCR 3000 (i486/SVR4) system.
|
||||
|
||||
# The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
|
||||
# This compiler not only emits obnoxious copyright messages every time
|
||||
# you run it, but it chokes and dies on a whole bunch of GNU source
|
||||
# files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
|
||||
# Unfortunately though, the AT&T compiler sometimes generates code that
|
||||
# the assembler barfs on if -g is used, so disable it by default as well.
|
||||
CC = /usr/ccs/ATT/cc
|
||||
CFLAGS =
|
||||
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV -DSVR4
|
||||
RANLIB = true
|
||||
|
||||
# The l flag generates a warning from the SVR4 archiver, remove it.
|
||||
AR_FLAGS = cq
|
||||
9
config/mh-ncrsvr43
Normal file
9
config/mh-ncrsvr43
Normal file
@@ -0,0 +1,9 @@
|
||||
# Host configuration file for an NCR 3000 (i486/SVR43) system.
|
||||
|
||||
# The MetaWare compiler will generate a copyright message unless you
|
||||
# turn it off by adding the -Hnocopyr flag.
|
||||
CC = cc -Hnocopyr
|
||||
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV -DSVR4
|
||||
RANLIB = true
|
||||
11
config/mh-necv4
Normal file
11
config/mh-necv4
Normal file
@@ -0,0 +1,11 @@
|
||||
# Host Makefile fragment for NEC MIPS SVR4.
|
||||
|
||||
# The C compiler on NEC MIPS SVR4 needs bigger tables.
|
||||
CC = cc -ZXNd=5000 -ZXNg=1000
|
||||
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV -DSVR4
|
||||
RANLIB = true
|
||||
|
||||
# NEC -lX11 needs some other libraries.
|
||||
X11_EXTRA_LIBS = -lsocket -lnsl
|
||||
1
config/mh-papic
Normal file
1
config/mh-papic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG=-fPIC
|
||||
1
config/mh-ppcpic
Normal file
1
config/mh-ppcpic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG=-fPIC
|
||||
15
config/mh-riscos
Normal file
15
config/mh-riscos
Normal file
@@ -0,0 +1,15 @@
|
||||
# This is for a MIPS running RISC/os 4.52C.
|
||||
|
||||
# This is needed for GDB, but needs to be in the top-level make because
|
||||
# if a library is compiled with the bsd headers and gets linked with the
|
||||
# sysv system libraries all hell can break loose (e.g. a jmp_buf might be
|
||||
# a different size).
|
||||
# ptrace(2) apparently has problems in the BSD environment. No workaround is
|
||||
# known except to select the sysv environment. Could we use /proc instead?
|
||||
# These "sysv environments" and "bsd environments" often end up being a pain.
|
||||
#
|
||||
# This is not part of CFLAGS because perhaps not all C compilers have this
|
||||
# option.
|
||||
CC= cc -systype sysv
|
||||
|
||||
RANLIB = true
|
||||
10
config/mh-sco
Normal file
10
config/mh-sco
Normal file
@@ -0,0 +1,10 @@
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV
|
||||
RANLIB = true
|
||||
# You may need this if you don't have bison.
|
||||
# BISON = yacc -Sm10400
|
||||
# The native C compiler botches some simple uses of const. Unfortunately,
|
||||
# it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
|
||||
CC = cc -Dconst=
|
||||
|
||||
X11_EXTRA_LIBS = -lsocket -lm -lintl -lmalloc
|
||||
6
config/mh-solaris
Normal file
6
config/mh-solaris
Normal file
@@ -0,0 +1,6 @@
|
||||
# Makefile changes for Suns running Solaris 2
|
||||
|
||||
SYSV = -DSYSV
|
||||
RANLIB = true
|
||||
|
||||
X11_EXTRA_LIBS = -lnsl -lsocket
|
||||
1
config/mh-sparcpic
Normal file
1
config/mh-sparcpic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG=-fPIC
|
||||
3
config/mh-sun3
Normal file
3
config/mh-sun3
Normal file
@@ -0,0 +1,3 @@
|
||||
# Sun's C compiler needs the -J flag to be able to compile cp-parse.c
|
||||
# without overflowing the jump tables (-J says to use a 32 bit table)
|
||||
CC = cc -J
|
||||
3
config/mh-sysv
Normal file
3
config/mh-sysv
Normal file
@@ -0,0 +1,3 @@
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV
|
||||
RANLIB = true
|
||||
11
config/mh-sysv4
Normal file
11
config/mh-sysv4
Normal file
@@ -0,0 +1,11 @@
|
||||
# Define SYSV as -DSYSV if you are using a System V operating system.
|
||||
SYSV = -DSYSV -DSVR4
|
||||
RANLIB = true
|
||||
|
||||
# C++ debugging is not yet supported under SVR4 (DWARF)
|
||||
CXXFLAGS=-O
|
||||
|
||||
# The l flag generates a warning from the SVR4 archiver, remove it.
|
||||
AR_FLAGS = cr
|
||||
|
||||
X11_EXTRA_LIBS = -lnsl
|
||||
2
config/mh-vaxult2
Normal file
2
config/mh-vaxult2
Normal file
@@ -0,0 +1,2 @@
|
||||
# The old BSD pcc isn't up to compiling parts of gdb so use gcc
|
||||
CC = gcc
|
||||
16
config/mh-windows
Normal file
16
config/mh-windows
Normal file
@@ -0,0 +1,16 @@
|
||||
CC=cc
|
||||
CFLAGS=
|
||||
RANLIB=true
|
||||
AR_FLAGS=
|
||||
|
||||
.PHONY: windows
|
||||
windows: nmake.mak
|
||||
@echo "Don't forget to setup setvars.mak!"
|
||||
|
||||
nmake.mak: to-be-built
|
||||
@echo Building nmake files
|
||||
@$(srcdir)/gdb/mswin/genmakes
|
||||
|
||||
to-be-built:
|
||||
@echo Recording commands
|
||||
@$(srcdir)/gdb/mswin/recordit
|
||||
1
config/mh-x86pic
Normal file
1
config/mh-x86pic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG=-fpic
|
||||
157
config/mpw-mh-mpw
Normal file
157
config/mpw-mh-mpw
Normal file
@@ -0,0 +1,157 @@
|
||||
# This is an MPW makefile fragment.
|
||||
|
||||
# Since there are a multiplicity of Mac compilers and two different
|
||||
# processors, this file is primarily a library of options for each
|
||||
# compiler. Somebody else (such as a configure or build script) will
|
||||
# make the actual choice.
|
||||
|
||||
# Compiler to use for compiling.
|
||||
|
||||
CC_MPW_C = C -d MPW_C -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -w
|
||||
|
||||
CC_SC = SC -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -i '' -i :
|
||||
|
||||
CC_MWC68K = MWC68K -d MPW -enum int -mpw_chars -sym on -w off -mc68020 -model far
|
||||
|
||||
CC_PPCC = PPCC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -w
|
||||
|
||||
CC_MRC = MrC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -i '' -i : -jm
|
||||
|
||||
CC_SMrC = SMrC -d MPW
|
||||
|
||||
# "-mpw_chars" is necessary because GNU sources often mix signed and
|
||||
# unsigned casually.
|
||||
# "-w off" is not a great idea, but CW7 is complaining about enum
|
||||
# assignments.
|
||||
# "-opt global,peep,l4,speed" is sometimes good, and sometimes bad.
|
||||
# We must use {CIncludes} so that MPW tools will work; {MWCIncludes}
|
||||
# defines stdout, islower, etc, in ways that are incompatible with MPW's
|
||||
# runtime. However, this cannot be done via -i "{CIncludes}", since
|
||||
# that does not affect how <>-type includes happen; instead, the variable
|
||||
# MWCIncludes must be set to point at {CIncludes}.
|
||||
|
||||
CC_MWCPPC = MWCPPC -d MPW -enum int -mpw_chars -sym on -w off
|
||||
|
||||
# Note that GCC does *not* wire in a definition of "pascal", so that
|
||||
# it can be handled in another way if desired.
|
||||
|
||||
CC_68K_GCC = gC -Dpascal= -DANSI_PROTOTYPES -DMPW
|
||||
|
||||
CC_PPC_GCC = gC -Dpowerc=1 -Dpascal= -DANSI_PROTOTYPES -DMPW
|
||||
|
||||
# Nothing for the default CFLAGS.
|
||||
|
||||
CFLAGS =
|
||||
|
||||
# Tool to use for making libraries/archives.
|
||||
|
||||
AR_LIB = Lib
|
||||
|
||||
AR_MWLINK68K = MWLink68K -xm library
|
||||
|
||||
AR_PPCLINK = PPCLink -xm library
|
||||
|
||||
AR_MWLINKPPC = MWLinkPPC -xm library
|
||||
|
||||
AR_AR = ar
|
||||
|
||||
AR_FLAGS = -o
|
||||
|
||||
RANLIB_NULL = null-command
|
||||
|
||||
RANLIB_RANLIB = ranlib
|
||||
|
||||
# Compiler and/or linker to use for linking.
|
||||
|
||||
CC_LD_LINK = Link -w -d -model far {CC_LD_TOOL_FLAGS}
|
||||
|
||||
CC_LD_MWLINK68K = MWLink68K -w {CC_LD_TOOL_FLAGS} -sym on -model far
|
||||
|
||||
CC_LD_PPCLINK = PPCLink -main __start -outputformat xcoff
|
||||
|
||||
CC_LD_MWLINKPPC = MWLinkPPC -w {CC_LD_TOOL_FLAGS} -sym on
|
||||
|
||||
CC_LD_GLD = gC
|
||||
|
||||
# Extension for linker output.
|
||||
|
||||
PROG_EXT_68K =
|
||||
|
||||
PROG_EXT_XCOFF = .xcoff
|
||||
|
||||
# Nothing for the default LDFLAGS.
|
||||
|
||||
LDFLAGS = -w
|
||||
|
||||
CC_LD_TOOL_FLAGS = -c 'MPS ' -t MPST
|
||||
|
||||
# Libraries to link against.
|
||||
|
||||
# It would appear that the math libraries are not
|
||||
# needed except to provide a definition for scalb,
|
||||
# which is called from ldexp, which is referenced
|
||||
# in the m68k opcodes library.
|
||||
|
||||
EXTRALIBS_C = \Option-d
|
||||
"{CLibraries}"StdClib.o \Option-d
|
||||
"{CLibraries}"Math.o \Option-d
|
||||
"{CLibraries}"CSANELib.o \Option-d
|
||||
"{Libraries}"Stubs.o \Option-d
|
||||
"{Libraries}"Runtime.o \Option-d
|
||||
"{Libraries}"Interface.o \Option-d
|
||||
"{Libraries}"ToolLibs.o
|
||||
|
||||
EXTRALIBS_MWC68K = \Option-d
|
||||
"{CLibraries}"StdClib.o \Option-d
|
||||
"{CLibraries}"Math.o \Option-d
|
||||
"{CLibraries}"CSANELib.o \Option-d
|
||||
"{Libraries}"Stubs.o \Option-d
|
||||
"{Libraries}"Runtime.o \Option-d
|
||||
"{Libraries}"Interface.o \Option-d
|
||||
"{Libraries}"ToolLibs.o \Option-d
|
||||
"{MW68KLibraries}MPW ANSI (4i) C.68K.Lib"
|
||||
|
||||
EXTRALIBS_PPC_XCOFF = \Option-d
|
||||
"{PPCLibraries}"StdCRuntime.o \Option-d
|
||||
"{PPCLibraries}"InterfaceLib.xcoff \Option-d
|
||||
"{PPCLibraries}"MathLib.xcoff \Option-d
|
||||
"{PPCLibraries}"StdCLib.xcoff \Option-d
|
||||
"{PPCLibraries}"PPCToolLibs.o \Option-d
|
||||
"{PPCLibraries}"PPCCRuntime.o \Option-d
|
||||
"{GCCPPCLibraries}"libgcc.xcoff
|
||||
|
||||
EXTRALIBS_PPC = \Option-d
|
||||
"{PPCLibraries}"StdCRuntime.o \Option-d
|
||||
"{SharedLibraries}"InterfaceLib \Option-d
|
||||
"{SharedLibraries}"MathLib \Option-d
|
||||
"{SharedLibraries}"StdCLib \Option-d
|
||||
"{PPCLibraries}"PPCToolLibs.o \Option-d
|
||||
"{PPCLibraries}"PPCCRuntime.o \Option-d
|
||||
"{GCCPPCLibraries}"libgcc.xcoff
|
||||
|
||||
EXTRALIBS_MWCPPC = \Option-d
|
||||
"{MWPPCLibraries}"MWStdCRuntime.Lib \Option-d
|
||||
"{MWPPCLibraries}"InterfaceLib \Option-d
|
||||
"{MWPPCLibraries}"StdCLib \Option-d
|
||||
"{MWPPCLibraries}"MathLib \Option-d
|
||||
"{MWPPCLibraries}"PPCToolLibs.o
|
||||
|
||||
# Tool to make PEF with, if needed.
|
||||
|
||||
MAKEPEF_NULL = null-command
|
||||
|
||||
MAKEPEF_PPC = MakePEF
|
||||
|
||||
MAKEPEF_FLAGS = \Option-d
|
||||
-l InterfaceLib.xcoff=InterfaceLib \Option-d
|
||||
-l MathLib.xcoff=MathLib \Option-d
|
||||
-l StdCLib.xcoff=StdCLib
|
||||
|
||||
MAKEPEF_TOOL_FLAGS = -ft MPST -fc 'MPS '
|
||||
|
||||
# Resource compiler to use.
|
||||
|
||||
REZ_68K = Rez
|
||||
|
||||
REZ_PPC = Rez -d WANT_CFRG
|
||||
|
||||
53
config/mpw/ChangeLog
Normal file
53
config/mpw/ChangeLog
Normal file
@@ -0,0 +1,53 @@
|
||||
Tue Nov 26 12:34:12 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* g-mpw-make.sed: Fix some comments.
|
||||
|
||||
Mon Sep 16 14:42:52 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* g-mpw-make.sed (HLDENV): Edit out all references.
|
||||
|
||||
Thu Aug 15 19:49:23 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* true: New script, identical to mpw-true.
|
||||
* g-mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG()@
|
||||
to the editors for compile commands.
|
||||
|
||||
Thu Aug 1 15:01:42 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* mpw-true, mpw-touch, null-command: New scripts.
|
||||
* README: Describe usage in more detail.
|
||||
|
||||
Tue Dec 12 14:51:51 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* g-mpw-make.sed: Don't edit out "version=" occurrences.
|
||||
|
||||
Fri Dec 1 11:46:18 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* g-mpw-make.sed (bindir, libdir): Edit the positions of
|
||||
pathname separators to work with other pathnames better.
|
||||
|
||||
Tue Nov 7 15:08:07 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* g-mpw-make.sed: Add comment about Duplicate vs Catenate,
|
||||
add additional pattern for editing link-compile commands.
|
||||
|
||||
Tue Oct 24 14:28:51 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* g-mpw-make.sed: Add handling for *.tab.[hc] files.
|
||||
(CHILL_FOR_TARGET, CHILL_LIB): Edit out tricky definitions
|
||||
of these.
|
||||
|
||||
Thu Sep 28 21:05:10 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* g-mpw-make.sed: New file, generic sed commands to translate
|
||||
Unix makefiles into MPW makefile syntax.
|
||||
|
||||
Fri Mar 17 11:51:20 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* README: Clarify instructions.
|
||||
* fi: Remove.
|
||||
|
||||
Wed Dec 21 15:45:53 1994 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* MoveIfChange, README, fi, forward-include, open-brace,
|
||||
tr-7to8-src: New files.
|
||||
19
config/mpw/MoveIfChange
Normal file
19
config/mpw/MoveIfChange
Normal file
@@ -0,0 +1,19 @@
|
||||
# Rename a file only if it is different from a previously existing
|
||||
# file of the same name. This is useful for keeping make from doing
|
||||
# too much work if the contents of a file haven't changed.
|
||||
|
||||
# This is an MPW translation of the standard GNU sh script move-if-change.
|
||||
|
||||
Set exit 0
|
||||
|
||||
If "`exists -f "{2}"`"
|
||||
Compare "{1}" "{2}" >dev:null
|
||||
If {status} != 0
|
||||
Rename -y "{1}" "{2}"
|
||||
Else
|
||||
Echo "{2}" is unchanged
|
||||
Delete -i -y "{1}"
|
||||
End
|
||||
Else
|
||||
Rename -y "{1}" "{2}"
|
||||
End
|
||||
23
config/mpw/README
Normal file
23
config/mpw/README
Normal file
@@ -0,0 +1,23 @@
|
||||
This directory contains MPW scripts and related files that are needed to
|
||||
build Cygnus GNU tools for MPW. The scripts should be somewhere on the
|
||||
command path; our usual practice has been to have a separate directory
|
||||
for the scripts, and put the tools (byacc, flex, and sed at least) there
|
||||
also; then it's easier to drag the support bits around as a group, or to
|
||||
upgrade MPW versions. The complete package of scripts and tool binaries
|
||||
is usually available as pub/mac/buildtools.cpt.hqx on ftp.cygnus.com.
|
||||
|
||||
"tr-7to8-src" is actually the source to an MPW script that transforms
|
||||
sequences like "\Option-d" into the actual 8-bit chars that MPW needs.
|
||||
It's only the source because it can't itself include any 8-bit chars.
|
||||
It *can* be processed into a genuine "tr-7to8" by using itself:
|
||||
|
||||
tr-7to8 tr-7to8-src | sed -e 's/Src//' >new-tr-7to8
|
||||
|
||||
Use this to verify:
|
||||
|
||||
compare tr-7to8 new-tr-7to8
|
||||
|
||||
If you don't have a working tr-7to8, then you will have to manually
|
||||
replace all occurrences of "\Option-d" with real Option-d (which looks
|
||||
like a delta), then do similarly with all the other "\Option-..."
|
||||
strings, and then change "\SrcOption-d" into the string "\Option-d".
|
||||
3
config/mpw/forward-include
Normal file
3
config/mpw/forward-include
Normal file
@@ -0,0 +1,3 @@
|
||||
Echo '#include' ¶""{1}"¶" >"{2}".tem
|
||||
MoveIfChange "{2}".tem "{2}"
|
||||
|
||||
293
config/mpw/g-mpw-make.sed
Normal file
293
config/mpw/g-mpw-make.sed
Normal file
@@ -0,0 +1,293 @@
|
||||
# Sed commands to translate Unix makefiles into MPW makefiles.
|
||||
# These are nominally generic, but work best on the makefiles used
|
||||
# for GNU programs.
|
||||
|
||||
# Whack out any commented-out lines that are probably commands;
|
||||
# they can only cause trouble later on.
|
||||
/^# /d
|
||||
|
||||
# Change dependency char.
|
||||
/:$/s/:/ \\Option-f/g
|
||||
/^[^ :#][^:]*:/s/\([ ]*\):\([ ]*\)/ \\Option-f /g
|
||||
|
||||
# Change syntax of Makefile vars.
|
||||
/\$/s/\${\([a-zA-Z0-9_-]*\)}/{\1}/g
|
||||
/\$/s/\$(\([a-zA-Z0-9_-]*\))/{\1}/g
|
||||
/ $@/s/ $@/ {Targ}/
|
||||
|
||||
# Double-$ are literals to Unix but not to MPW make.
|
||||
/\$\$/s/\$\$/$/g
|
||||
|
||||
# Change pathname syntax.
|
||||
/\//s,\.\./\/\.\./,:::,g
|
||||
/\//s,\.\./,::,g
|
||||
/\.\//s,\./,:,g
|
||||
/\//s,/,:,g
|
||||
# Undo excess changes.
|
||||
/and/s,and:or$,and/or,
|
||||
/and/s,and:or ,and/or ,
|
||||
/want/s,want:need,want/need,
|
||||
# Fixing up sed commands.
|
||||
/-e/s_":\([^:]*\):d"_"/\1/d"_g
|
||||
/-e/s_":\([^:]*\):,:\([^:]*\):d"_"/\1/,/\2/d"_g
|
||||
|
||||
/=/s/ = \.$/ = :/
|
||||
|
||||
# Make these go away so that later edits not confused.
|
||||
/HLDENV/s/{HLDENV}//
|
||||
|
||||
# Comment out any explicit srcdir setting.
|
||||
/srcdir/s/^srcdir/# srcdir/
|
||||
|
||||
/BASEDIR/s/^BASEDIR =.*$/BASEDIR = "{srcroot}"/
|
||||
/{BASEDIR}:/s/{BASEDIR}:/{BASEDIR}/g
|
||||
/{srcdir}:/s/{srcdir}:/"{srcdir}"/g
|
||||
/"{srcdir}":/s/"{srcdir}":/"{srcdir}"/g
|
||||
|
||||
# Tweak some conventions that are backwards for the Mac.
|
||||
/bindir/s/{exec_prefix}:bin/{exec_prefix}bin:/
|
||||
/libdir/s/{exec_prefix}:lib/{exec_prefix}lib:/
|
||||
|
||||
# Comment out settings of anything set by mpw host config.
|
||||
/CC/s/^CC *=/#CC =/
|
||||
/CFLAGS/s/^CFLAGS *=/#CFLAGS =/
|
||||
/AR/s/^AR *=/#AR =/
|
||||
/AR_FLAGS/s/^AR_FLAGS *=/#AR_FLAGS =/
|
||||
/RANLIB/s/^RANLIB *=/#RANLIB =/
|
||||
/CC_LD/s/^CC_LD *=/#CC_LD =/
|
||||
/LDFLAGS/s/^LDFLAGS *=/#LDFLAGS =/
|
||||
|
||||
# Change -I usages.
|
||||
/-I/s/-I\./-i :/g
|
||||
/-I/s/-I::bfd/-i ::bfd:/g
|
||||
/-I/s/-I::include/-i ::include:/g
|
||||
/-I/s/-I/-i /g
|
||||
|
||||
# Change -D usage.
|
||||
/-D/s/\([ =]\)-D\([^ ]*\)/\1-d \2/g
|
||||
|
||||
# Change continuation char.
|
||||
/\\$/s/\\$/\\Option-d/
|
||||
|
||||
# Change wildcard char.
|
||||
/\*/s/\*/\\Option-x/g
|
||||
|
||||
# Change path of various types of source files. This rule does not allow
|
||||
# for file names with multiple dots in the name.
|
||||
/\.[chly]/s/\([ ><=]\)\([-a-zA-Z0-9_${}:"]*\)\.\([chly]\)/\1"{s}"\2.\3/g
|
||||
/\.[chly]/s/^\([-a-zA-Z0-9_${}:"]*\)\.\([chly]\)/"{s}"\1.\2/
|
||||
# Allow files named *.tab.[ch] as a special case.
|
||||
/\.tab\.[ch]/s/\([ ><=]\)\([-a-zA-Z0-9_${}:"]*\.tab\)\.\([ch]\)/\1"{s}"\2.\3/g
|
||||
/\.tab\.[ch]/s/^\([-a-zA-Z0-9_${}:"]*\.tab\)\.\([ch]\)/"{s}"\1.\2/
|
||||
# Fix some overenthusiasms.
|
||||
/{s}/s/"{s}""{srcdir}"/"{srcdir}"/g
|
||||
/{s}/s/"{s}"{\([a-zA-Z0-9_]*\)dir}/"{\1dir}"/g
|
||||
/{s}/s/"{s}"{\([a-zA-Z0-9_]*\)DIR}/"{\1DIR}"/g
|
||||
/{s}/s/"{s}""{\([a-zA-Z0-9_]*\)dir}"/"{\1dir}"/g
|
||||
/{s}/s/"{s}""{\([a-zA-Z0-9_]*\)DIR}"/"{\1DIR}"/g
|
||||
/{s}/s/"{s}":/:/g
|
||||
/{s}/s/^"{s}"//g
|
||||
/{s}/s/"{s}""{s}"/"{s}"/g
|
||||
/{s}/s/"{s}""{srcdir}"/"{s}"/g
|
||||
/{s}/s/"{srcdir}""{s}"/"{s}"/g
|
||||
|
||||
# The .def files are also typically source files.
|
||||
/\.def/s/\([ ><]\)\([-a-zA-Z0-9_${}:"]*\)\.def/\1"{s}"\2.def/g
|
||||
/\.def/s/^\([-a-zA-Z0-9_${}:"]*\)\.def/"{s}"\1.def/g
|
||||
|
||||
# Change extension and path of objects.
|
||||
/\.o/s/\([ =]\)\([-a-zA-Z0-9_${}:"]*\)\.o/\1"{o}"\2.c.o/g
|
||||
/\.o/s/^\([-a-zA-Z0-9_${}:"]*\)\.o/"{o}"\1.c.o/
|
||||
# Allow *.tab.o files as a special case of a 2-dot-name file.
|
||||
/\.o/s/\([ =]\)\([-a-zA-Z0-9_${}:"]*\)\.tab\.o/\1"{o}"\2.tab.c.o/g
|
||||
/\.o/s/^\([-a-zA-Z0-9_${}:"]*\)\.tab\.o/"{o}"\1.tab.c.o/
|
||||
# Clean up.
|
||||
/"{o}"/s/"{o}""{o}"/"{o}"/g
|
||||
/"{o}"/s/^"{o}"\([a-zA-Z0-9_]*\)=/\1=/
|
||||
|
||||
# Change extension of libs.
|
||||
/\.a/s/lib\([a-z]*\)\.a/lib\1.o/g
|
||||
|
||||
# Remove non-fail option.
|
||||
/-/s/^\([ ]*\)-/\1/
|
||||
# Fix overeagernesses - assumes no one-letter commands.
|
||||
/^[ ]*[a-z] /s/^\([ ]*\)\([a-z]\) /\1-\2 /
|
||||
|
||||
# Remove non-echo option. (watch out for autoconf things)
|
||||
/@/s/^\([ ]*\)@/\1/
|
||||
|
||||
# Change cp to Duplicate.
|
||||
# Catenate is perhaps more accurate, but the pattern would have to
|
||||
# identify the output file and add a '>' redirection into it.
|
||||
/cp/s/^\([ ]*\)cp /\1Duplicate -d -y /
|
||||
# Change mv to Rename.
|
||||
/mv/s/^\([ ]*\)mv /\1Rename -y /
|
||||
/Rename/s/^\([ ]*\)Rename -y -f/\1Rename -y/
|
||||
# Change rm to Delete.
|
||||
/rm -rf/s/^\([ ]*\)rm -rf /\1Delete -i -y /
|
||||
/rm -f/s/^\([ ]*\)rm -f /\1Delete -i -y /
|
||||
/rm/s/^\([ ]*\)rm /\1Delete -i -y /
|
||||
# Note that we don't mess with ln - directory-specific scripts
|
||||
# must decide what to do with symlinks.
|
||||
# Change cat to Catenate.
|
||||
/cat/s/^\([ ]*\)cat /\1Catenate /
|
||||
# Change touch to mpw-touch.
|
||||
/touch/s/^\([ ]*\)touch /\1mpw-touch /
|
||||
# Change mkdir to NewFolder.
|
||||
/mkdir/s/^\([ ]*\)mkdir /\1NewFolder /
|
||||
# Change var setting to Set.
|
||||
/=/s/^\([ ]*\)\([-a-zA-Z0-9_]*\)=\([^;]*\); \\Option-d/\1Set \2 \3/
|
||||
|
||||
# Change tests.
|
||||
/if /s/if \[ *-f \([^ ]*\) ] *; *\\Option-d/If "`Exists "\1"`" != ""/
|
||||
/if /s/if \[ *-f \([^ ]*\) ] *; *then *\\Option-d/If "`Exists "\1"`" != ""/
|
||||
/if /s/if \[ ! *-f \([^ ]*\) ] *; *\\Option-d/If "`Exists "\1"`" == ""/
|
||||
/if /s/if \[ ! *-f \([^ ]*\) ] *; *then \\Option-d/If "`Exists "\1"`" == ""/
|
||||
|
||||
/if /s/if \[ *-d \([^ ]*\) ] *; *\\Option-d/If "`Exists "\1"`" != ""/
|
||||
/if /s/if \[ *-d \([^ ]*\) ] *; *then *\\Option-d/If "`Exists "\1"`" != ""/
|
||||
/if /s/if \[ ! *-d \([^ ]*\) ] *; *\\Option-d/If "`Exists "\1"`" == ""/
|
||||
/if /s/if \[ ! *-d \([^ ]*\) ] *; *then *\\Option-d/If "`Exists "\1"`" == ""/
|
||||
|
||||
/if /s/if \[ -d \([^ ]*\) ] *; then true *; else mkdir \([^ ;]*\) *; fi/If "`Exists "\1"`" != "" NewFolder \2 End If/
|
||||
|
||||
/if /s/if \[ \([^ ]*\) = \([^ ]*\) ] *; *\\Option-d/If "\1" == "\2"/
|
||||
/if /s/if \[ \([^ ]*\) = \([^ ]*\) ] *; *then *\\Option-d/If "\1" == "\2"/
|
||||
|
||||
/if /s/if \[ \([^ ]*\) != \([^ ]*\) ] *; *\\Option-d/If "\1" != "\2"/
|
||||
/if /s/if \[ \([^ ]*\) != \([^ ]*\) ] *; *then *\\Option-d/If "\1" != "\2"/
|
||||
|
||||
/if /s/if \[ \([^ ]*\) -eq \([^ ]*\) ] *; *\\Option-d/If "\1" != "\2"/
|
||||
/if /s/if \[ \([^ ]*\) -eq \([^ ]*\) ] *; *then *\\Option-d/If "\1" != "\2"/
|
||||
|
||||
/^[ ]*else true$/c\
|
||||
Else\
|
||||
mpw-true\
|
||||
|
||||
|
||||
/else/s/^\([ ]*\)else[ ]*$/\1Else/
|
||||
/else/s/^\([ ]*\)else[; ]*\\Option-d$/\1Else/
|
||||
|
||||
/^[ ]*else[ ]*true[ ]*$/c\
|
||||
Else\
|
||||
mpw-true
|
||||
|
||||
/^[ ]*else[ ]*true[; ]*fi$/c\
|
||||
Else\
|
||||
mpw-true\
|
||||
End If
|
||||
|
||||
/fi/s/^\([ ]*\)fi *$/\1End/
|
||||
/fi/s/^\([ ]*\)fi *; *\\Option-d/\1End/
|
||||
|
||||
# Change looping.
|
||||
/for/s/^\([ ]*\)for \([-a-zA-Z0-9_]*\) in \([^;]*\); *do *\\Option-d/\1For \2 In \3/
|
||||
/^\([ ]*\)do *\\Option-d/d
|
||||
/done/s/^\([ ]*\)done *; *\\Option-d/\1End/
|
||||
/done/s/^\([ ]*\)done$/\1End/
|
||||
|
||||
# Trailing semicolons and continued lines are unneeded sh syntax.
|
||||
/; \\Option-d/s/; \\Option-d//
|
||||
|
||||
# Change move-if-change to MoveIfChange.
|
||||
/move-if-change/s/\([^ ]*\)move-if-change/MoveIfChange/g
|
||||
|
||||
# Change $(SHELL) to the script name by itself.
|
||||
/SHELL/s/^\([ ]*\){SHELL} /\1/
|
||||
|
||||
# Change syntax of default rule dependency.
|
||||
/^\.c\.o/s/^\.c\.o \\Option-f$/.c.o \\Option-f .c/
|
||||
|
||||
# Change default rule's action.
|
||||
/{CC} -c/s/{CC} -c \(.*\) \$<$/{CC} @DASH_C_FLAG@ {DepDir}{Default}.c \1 @SEGMENT_FLAG({Default})@ -o {TargDir}{Default}.c.o/
|
||||
|
||||
# This is pretty disgusting, but I can't seem to detect empty rules.
|
||||
/Option-f$/s/Option-f$/Option-f _oldest/g
|
||||
|
||||
# Remove -c from explicit compiler calls. (but should not if GCC)
|
||||
# Handle the case of a source file that is "{xxx}"file.c.
|
||||
/ -c /s/{\([A-Z_]*\)CC}\(.*\) -c \(.*\)"\([^"]*\)"\([-a-z_]*\)\.c/{\1CC}\2 @DASH_C_FLAG@ \3"\4"\5.c -o "{o}"\5.c.o/
|
||||
# Handle the case of a source file that is "{xxx}"dir:file.c.
|
||||
/ -c /s/{\([A-Z_]*\)CC}\(.*\) -c \(.*\)"\([^"]*\)"\([-a-z_]*\):\([-a-z_]*\)\.c/{\1CC}\2 @DASH_C_FLAG@ \3"\4"\5:\6.c -o "{o}"\6.c.o/
|
||||
|
||||
# Change linking cc to linking sequence.
|
||||
/-o/s/^\([ ]*\){CC} \(.*\){\([A-Z_]*\)CFLAGS} \(.*\){LDFLAGS} \(.*\)-o \([^ ]*\) \(.*\)$/\1{CC_LD} \2 {\3CFLAGS} \4 {LDFLAGS} \5 -o \6{PROG_EXT} \7\
|
||||
\1{MAKEPEF} \6{PROG_EXT} -o \6 {MAKEPEF_TOOL_FLAGS} {MAKEPEF_FLAGS}\
|
||||
\1{REZ} "{s}"\6.r -o \6 -append -d PROG_NAME='"'\6'"' -d VERSION_STRING='"'{version}'"'/
|
||||
/-o/s/^\([ ]*\){CC} \(.*\){\([A-Z_]*\)CFLAGS} \(.*\)-o \([^ ]*\) \(.*\){LDFLAGS} \(.*\)$/\1{CC_LD} \2 {\3CFLAGS} \4 {LDFLAGS} \6 -o \5{PROG_EXT} \7\
|
||||
\1{MAKEPEF} \5{PROG_EXT} -o \5 {MAKEPEF_TOOL_FLAGS} {MAKEPEF_FLAGS}\
|
||||
\1{REZ} "{s}"\5.r -o \5 -append -d PROG_NAME='"'\5'"' -d VERSION_STRING='"'{version}'"'/
|
||||
/-o/s/^\([ ]*\){HOST_CC} \(.*\)-o \([^ ]*\) \(.*\)$/\1{HOST_CC_LD} \2 -o \3{PROG_EXT} \4\
|
||||
\1{MAKEPEF} \3{PROG_EXT} -o \3 {MAKEPEF_TOOL_FLAGS} {MAKEPEF_FLAGS}\
|
||||
\1{REZ} "{s}"\3.r -o \3 -append -d PROG_NAME='"'\3'"' -d VERSION_STRING='"'{version}'"'/
|
||||
|
||||
# Comment out .NOEXPORT rules.
|
||||
/\.NOEXPORT/s/^\.NOEXPORT/#\.NOEXPORT/
|
||||
# Comment out .PHONY rules.
|
||||
/\.PHONY/s/^\.PHONY/#\.PHONY/
|
||||
# Comment out .PRECIOUS rules.
|
||||
/\.PRECIOUS/s/^\.PRECIOUS/#\.PRECIOUS/
|
||||
# Comment out .SUFFIXES rules.
|
||||
/\.SUFFIXES/s/^\.SUFFIXES/#\.SUFFIXES/
|
||||
|
||||
# Set the install program appropriately.
|
||||
/INSTALL/s/^INSTALL *= *`.*`:install.sh -c/INSTALL = Duplicate -y/
|
||||
|
||||
# Don't try to decide whether to use the tree's own tools.
|
||||
/bison/s/`.*bison:bison.*`/bison -y/
|
||||
/byacc/s/`.*byacc:byacc.*`/byacc/
|
||||
/flex/s/`.*flex:flex.*`/flex/
|
||||
|
||||
# Turn transformed C comments in echo commands back into comments.
|
||||
/echo/s,echo '\(.*\):\\Option-x\(.*\)\\Option-x:\(.*\)',echo '\1/*\2*/\3',
|
||||
|
||||
# Whack out various clever expressions that search for tools, since
|
||||
# the clever code is too /bin/sh specific.
|
||||
|
||||
/^AR_FOR_TARGET = `/,/`$/c\
|
||||
AR_FOR_TARGET = ::binutils:ar\
|
||||
|
||||
|
||||
/^RANLIB_FOR_TARGET = `/,/`$/c\
|
||||
RANLIB_FOR_TARGET = ::binutils:ranlib\
|
||||
|
||||
|
||||
/^RANLIB_TEST_FOR_TARGET = /,/ranlib ] )$/c\
|
||||
RANLIB_TEST_FOR_TARGET = \
|
||||
|
||||
|
||||
/^EXPECT = `/,/`$/c\
|
||||
EXPECT = \
|
||||
|
||||
|
||||
/^RUNTEST = `/,/`$/c\
|
||||
RUNTEST = \
|
||||
|
||||
|
||||
/^CC_FOR_TARGET = `/,/`$/c\
|
||||
CC_FOR_TARGET = \
|
||||
|
||||
|
||||
/^CXX_FOR_TARGET = `/,/`$/c\
|
||||
CXX_FOR_TARGET = \
|
||||
|
||||
|
||||
/^CHILL_FOR_TARGET = `/,/`$/c\
|
||||
CHILL_FOR_TARGET = \
|
||||
|
||||
|
||||
/^CHILL_LIB = `/,/`$/c\
|
||||
CHILL_LIB = \
|
||||
|
||||
/sanit/s/{start-sanit...-[a-z0-9]*}//
|
||||
/sanit/s/{end-sanit...-[a-z0-9]*}//
|
||||
|
||||
# Add standard defines and default rules.
|
||||
/^# srcdir/a\
|
||||
\
|
||||
s = "{srcdir}"\
|
||||
\
|
||||
o = :\
|
||||
\
|
||||
"{o}" \\Option-f : "{s}"
|
||||
|
||||
7
config/mpw/mpw-touch
Normal file
7
config/mpw/mpw-touch
Normal file
@@ -0,0 +1,7 @@
|
||||
# "Touch" command.
|
||||
|
||||
If "`Exists "{1}"`" != ""
|
||||
SetFile -m . "{1}"
|
||||
Else
|
||||
Echo ' ' > "{1}"
|
||||
End If
|
||||
1
config/mpw/mpw-true
Normal file
1
config/mpw/mpw-true
Normal file
@@ -0,0 +1 @@
|
||||
Exit 0
|
||||
1
config/mpw/null-command
Normal file
1
config/mpw/null-command
Normal file
@@ -0,0 +1 @@
|
||||
# This command does nothing.
|
||||
4
config/mpw/open-brace
Normal file
4
config/mpw/open-brace
Normal file
@@ -0,0 +1,4 @@
|
||||
# MPW makefiles seem not to have any way to get a literal open
|
||||
# brace into a rule anywhere, so this does the job.
|
||||
|
||||
Echo '{'
|
||||
9
config/mpw/tr-7to8-src
Normal file
9
config/mpw/tr-7to8-src
Normal file
@@ -0,0 +1,9 @@
|
||||
StreamEdit -e \Option-d
|
||||
'/\Option-x/ \Option-d
|
||||
Replace /\Option-d\SrcOption-d/ "\Option-d\Option-d" -c \Option-5 ; \Option-d
|
||||
Replace /\Option-d\SrcOption-f/ "\Option-d\Option-f" -c \Option-5 ; \Option-d
|
||||
Replace /\Option-d\SrcOption-8/ "\Option-d\Option-8" -c \Option-5 ; \Option-d
|
||||
Replace /\Option-d\SrcOption-5/ "\Option-d\Option-5" -c \Option-5 ; \Option-d
|
||||
Replace /\Option-d\SrcOption-x/ "\Option-d\Option-x" -c \Option-5 ; \Option-d
|
||||
Replace /\Option-d\SrcOption-r/ "\Option-d\Option-r" -c \Option-5' \Option-d
|
||||
"{1}"
|
||||
1
config/mpw/true
Normal file
1
config/mpw/true
Normal file
@@ -0,0 +1 @@
|
||||
Exit 0
|
||||
1
config/mt-m68kpic
Normal file
1
config/mt-m68kpic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG_FOR_TARGET=-fpic
|
||||
1
config/mt-netware
Normal file
1
config/mt-netware
Normal file
@@ -0,0 +1 @@
|
||||
GDB_NLM_DEPS = all-gcc all-ld
|
||||
1
config/mt-papic
Normal file
1
config/mt-papic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG_FOR_TARGET=-fPIC
|
||||
1
config/mt-ppcpic
Normal file
1
config/mt-ppcpic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG_FOR_TARGET=-fPIC
|
||||
1
config/mt-sparcpic
Normal file
1
config/mt-sparcpic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG_FOR_TARGET=-fPIC
|
||||
4
config/mt-v810
Normal file
4
config/mt-v810
Normal file
@@ -0,0 +1,4 @@
|
||||
CC_FOR_TARGET = ca732 -ansi
|
||||
AS_FOR_TARGET = as732
|
||||
AR_FOR_TARGET = ar732
|
||||
RANLIB_FOR_TARGET = true
|
||||
1
config/mt-x86pic
Normal file
1
config/mt-x86pic
Normal file
@@ -0,0 +1 @@
|
||||
PICFLAG_FOR_TARGET=-fpic
|
||||
874
configure.in
Normal file
874
configure.in
Normal file
@@ -0,0 +1,874 @@
|
||||
#! /bin/bash
|
||||
##############################################################################
|
||||
|
||||
## This file is a shell script fragment that supplies the information
|
||||
## necessary to tailor a template configure script into the configure
|
||||
## script appropriate for this directory. For more information, check
|
||||
## any existing configure script.
|
||||
|
||||
## Be warned, there are two types of configure.in files. There are those
|
||||
## used by Autoconf, which are macros which are expanded into a configure
|
||||
## script by autoconf. The other sort, of which this is one, is executed
|
||||
## by Cygnus configure.
|
||||
|
||||
## For more information on these two systems, check out the documentation
|
||||
## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi).
|
||||
|
||||
# Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
##############################################################################
|
||||
|
||||
### To add a new directory to the tree, first choose whether it is a target
|
||||
### or a host dependent tool. Then put it into the appropriate list
|
||||
### (library or tools, host or target), doing a dependency sort. For
|
||||
### example, gdb requires that byacc (or bison) be built first, so it is in
|
||||
### the ${host_tools} list after byacc and bison.
|
||||
|
||||
|
||||
# these libraries are used by various programs built for the host environment
|
||||
#
|
||||
host_libs="mmalloc libiberty opcodes bfd readline gash db tcl tk tclX itcl tix"
|
||||
|
||||
if [ "${enable_gdbgui}" = "yes" ] ; then
|
||||
host_libs="${host_libs} libgui"
|
||||
fi
|
||||
|
||||
# these tools are built for the host environment
|
||||
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
|
||||
# know that we are building the simulator.
|
||||
host_tools="texinfo byacc flex bison binutils ld gas gcc sim gdb make patch prms send-pr gprof gdbtest tgas etc expect dejagnu bash m4 autoconf automake ispell grep diff rcs cvs fileutils shellutils time textutils wdiff find emacs emacs19 uudecode hello tar gzip indent recode release sed utils guile perl apache inet gawk findutils sn"
|
||||
|
||||
# these libraries are built for the target environment, and are built after
|
||||
# the host libraries and the host tools (which may be a cross compiler)
|
||||
#
|
||||
target_libs="target-libiberty target-libgloss target-newlib target-libio target-librx target-libstdc++ target-libg++"
|
||||
|
||||
|
||||
# these tools are built using the target libs, and are intended to run only
|
||||
# in the target environment
|
||||
#
|
||||
# note: any program that *uses* libraries that are in the "target_libs"
|
||||
# list belongs in this list. those programs are also very likely
|
||||
# candidates for the "native_only" list which follows
|
||||
#
|
||||
target_tools="target-examples target-groff target-gperf"
|
||||
|
||||
################################################################################
|
||||
|
||||
## These two lists are of directories that are to be removed from the
|
||||
## ${configdirs} list for either cross-compilations or for native-
|
||||
## compilations. For example, it doesn't make that much sense to
|
||||
## cross-compile Emacs, nor is it terribly useful to compile target-libiberty in
|
||||
## a native environment.
|
||||
|
||||
# directories to be built in the native environment only
|
||||
#
|
||||
# This must be a single line because of the way it is searched by grep in
|
||||
# the code below.
|
||||
native_only="autoconf automake cvs emacs emacs19 fileutils find gawk grep gzip hello indent ispell m4 rcs recode sed shellutils tar textutils gash uudecode wdiff gprof target-groff guile perl apache inet time bash prms sn gnuserv target-gperf"
|
||||
|
||||
# directories to be built in a cross environment only
|
||||
#
|
||||
cross_only="target-libgloss target-newlib"
|
||||
|
||||
## All tools belong in one of the four categories, and are assigned above
|
||||
## We assign ${configdirs} this way to remove all embedded newlines. This
|
||||
## is important because configure will choke if they ever get through.
|
||||
## ${configdirs} is directories we build using the host tools.
|
||||
## ${target_configdirs} is directories we build using the target tools.
|
||||
#
|
||||
configdirs=`echo ${host_libs} ${host_tools}`
|
||||
target_configdirs=`echo ${target_libs} ${target_tools}`
|
||||
|
||||
################################################################################
|
||||
|
||||
srctrigger=move-if-change
|
||||
srcname="gnu development package"
|
||||
|
||||
# This gets set non-empty for some net releases of packages.
|
||||
appdirs=""
|
||||
|
||||
# per-host:
|
||||
|
||||
# Work in distributions that contain no compiler tools, like Autoconf.
|
||||
if [ -d ${srcdir}/config ]; then
|
||||
case "${host}" in
|
||||
m68k-hp-hpux*) host_makefile_frag=config/mh-hp300 ;;
|
||||
m68k-apollo-sysv*) host_makefile_frag=config/mh-apollo68 ;;
|
||||
m68k-apollo-bsd*) host_makefile_frag=config/mh-a68bsd ;;
|
||||
m88k-dg-dgux*) host_makefile_frag=config/mh-dgux ;;
|
||||
m88k-harris-cxux*) host_makefile_frag=config/mh-cxux ;;
|
||||
m88k-motorola-sysv*) host_makefile_frag=config/mh-delta88;;
|
||||
mips*-dec-ultrix*) host_makefile_frag=config/mh-decstation ;;
|
||||
mips*-nec-sysv4*) host_makefile_frag=config/mh-necv4 ;;
|
||||
mips*-sgi-irix6*) host_makefile_frag=config/mh-irix6 ;;
|
||||
mips*-sgi-irix5*) host_makefile_frag=config/mh-irix5 ;;
|
||||
mips*-sgi-irix4*) host_makefile_frag=config/mh-irix4 ;;
|
||||
mips*-sgi-irix3*) host_makefile_frag=config/mh-sysv ;;
|
||||
mips*-*-sysv4*) host_makefile_frag=config/mh-sysv4 ;;
|
||||
mips*-*-sysv*) host_makefile_frag=config/mh-riscos ;;
|
||||
i[3456]86-*-dgux*) host_makefile_frag=config/mh-dgux386 ;;
|
||||
i[3456]86-ncr-sysv4.3) host_makefile_frag=config/mh-ncrsvr43 ;;
|
||||
i[3456]86-ncr-sysv4*) host_makefile_frag=config/mh-ncr3000 ;;
|
||||
i[3456]86-*-sco3.2v5*) host_makefile_frag=config/mh-sysv ;;
|
||||
i[3456]86-*-sco*) host_makefile_frag=config/mh-sco ;;
|
||||
i[3456]86-*-isc*) host_makefile_frag=config/mh-sysv ;;
|
||||
i[3456]86-*-solaris2*) host_makefile_frag=config/mh-sysv4 ;;
|
||||
i[3456]86-*-aix*) host_makefile_frag=config/mh-aix386 ;;
|
||||
i[3456]86-*-go32*) host_makefile_frag=config/mh-go32 ;;
|
||||
i[3456]86-*-msdosdjgpp*) host_makefile_frag=config/mh-go32 ;;
|
||||
*-cygwin32*) host_makefile_frag=config/mh-cygwin32 ;;
|
||||
*-windows*) host_makefile_frag=config/mh-windows ;;
|
||||
vax-*-ultrix2*) host_makefile_frag=config/mh-vaxult2 ;;
|
||||
*-*-solaris2*) host_makefile_frag=config/mh-solaris ;;
|
||||
m68k-sun-sunos*) host_makefile_frag=config/mh-sun3 ;;
|
||||
*-hp-hpux[78]*) host_makefile_frag=config/mh-hpux8 ;;
|
||||
*-hp-hpux*) host_makefile_frag=config/mh-hpux ;;
|
||||
*-*-hiux*) host_makefile_frag=config/mh-hpux ;;
|
||||
rs6000-*-lynxos*) host_makefile_frag=config/mh-lynxrs6k ;;
|
||||
*-*-lynxos*) host_makefile_frag=config/mh-lynxos ;;
|
||||
*-*-sysv4*) host_makefile_frag=config/mh-sysv4 ;;
|
||||
*-*-sysv*) host_makefile_frag=config/mh-sysv ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# If we aren't going to be using gcc, see if we can extract a definition
|
||||
# of CC from the fragment.
|
||||
if [ -z "${CC}" -a "${build}" = "${host}" ]; then
|
||||
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
|
||||
found=
|
||||
for dir in $PATH; do
|
||||
test -z "$dir" && dir=.
|
||||
if test -f $dir/gcc; then
|
||||
found=yes
|
||||
break
|
||||
fi
|
||||
done
|
||||
IFS="$save_ifs"
|
||||
if [ -z "${found}" -a -n "${host_makefile_frag}" -a -f "${srcdir}/${host_makefile_frag}" ]; then
|
||||
xx=`sed -n -e 's/^[ ]*CC[ ]*=[ ]*\(.*\)$/\1/p' < ${srcdir}/${host_makefile_frag}`
|
||||
if [ -n "${xx}" ] ; then
|
||||
CC=$xx
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# We default to --with-shared on platforms where -fpic is meaningless.
|
||||
# Well, we don't yet, but we will.
|
||||
if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then
|
||||
case "${target}" in
|
||||
alpha-dec-osf*) enable_shared=yes ;;
|
||||
alpha-*-linux*) enable_shared=yes ;;
|
||||
mips-sgi-irix5*) enable_shared=yes ;;
|
||||
*) enable_shared=no ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
case "${enable_shared}" in
|
||||
yes) shared=yes ;;
|
||||
no) shared=no ;;
|
||||
"") shared=no ;;
|
||||
*) shared=yes ;;
|
||||
esac
|
||||
|
||||
if [ x${shared} = xyes ]; then
|
||||
waugh=
|
||||
case "${host}" in
|
||||
hppa*) waugh=config/mh-papic ;;
|
||||
i[3456]86-*) waugh=config/mh-x86pic ;;
|
||||
sparc64-*) waugh=config/mh-sparcpic ;;
|
||||
powerpc*-*) waugh=config/mh-ppcpic ;;
|
||||
*) waugh=config/mh-${host_cpu}pic ;;
|
||||
esac
|
||||
if [ -f ${srcdir}/${waugh} ]; then
|
||||
if [ -n "${host_makefile_frag}" ] ; then
|
||||
cat ${srcdir}/${host_makefile_frag} > mh-frag
|
||||
cat ${srcdir}/${waugh} >> mh-frag
|
||||
host_makefile_frag=mh-frag
|
||||
else
|
||||
host_makefile_frag=${waugh}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# per-target:
|
||||
|
||||
case "${target}" in
|
||||
v810*) target_makefile_frag=config/mt-v810 ;;
|
||||
i[3456]86-*-netware*) target_makefile_frag=config/mt-netware ;;
|
||||
powerpc-*-netware*) target_makefile_frag=config/mt-netware ;;
|
||||
esac
|
||||
|
||||
skipdirs=
|
||||
gasdir=gas
|
||||
use_gnu_ld=
|
||||
use_gnu_as=
|
||||
|
||||
# some tools are so dependent upon X11 that if we're not building with X,
|
||||
# it's not even worth trying to configure, much less build, that tool.
|
||||
|
||||
case ${with_x} in
|
||||
yes | "") # the default value for this tree is that X11 is available
|
||||
;;
|
||||
no)
|
||||
skipdirs="${skipdirs} tk gash"
|
||||
;;
|
||||
*)
|
||||
echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2
|
||||
;;
|
||||
esac
|
||||
|
||||
# Some tools are only suitable for building in a "native" situation.
|
||||
# Those are added when we have a host==target configuration. For cross
|
||||
# toolchains, we add some directories that should only be useful in a
|
||||
# cross-compiler.
|
||||
|
||||
is_cross_compiler=
|
||||
|
||||
if [ x"${host}" = x"${target}" ] ; then
|
||||
# when doing a native toolchain, don't build the targets
|
||||
# that are in the 'cross only' list
|
||||
skipdirs="${skipdirs} ${cross_only}"
|
||||
is_cross_compiler=no
|
||||
target_subdir=.
|
||||
case "${host}" in
|
||||
# We need multilib support for irix6, to get libiberty built
|
||||
# properly for o32 and n32.
|
||||
mips-sgi-irix6*) target_subdir=${host} ;;
|
||||
esac
|
||||
else
|
||||
# similarly, don't build the targets in the 'native only'
|
||||
# list when building a cross compiler
|
||||
skipdirs="${skipdirs} ${native_only}"
|
||||
is_cross_compiler=yes
|
||||
target_subdir=${target_alias}
|
||||
fi
|
||||
|
||||
if [ ! -d ${target_subdir} ] ; then
|
||||
if mkdir ${target_subdir} ; then true
|
||||
else
|
||||
echo "'*** could not make ${PWD=`pwd`}/${target_subdir}" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
copy_dirs=
|
||||
|
||||
# Handle --with-headers=XXX. The contents of the named directory are
|
||||
# copied to $(tooldir)/sys-include.
|
||||
if [ x"${with_headers}" != x ]; then
|
||||
if [ x${is_cross_compiler} = xno ]; then
|
||||
echo 1>&2 '***' --with-headers is only supported when cross compiling
|
||||
exit 1
|
||||
fi
|
||||
case "${exec_prefixoption}" in
|
||||
"") x=${prefix} ;;
|
||||
*) x=${exec_prefix} ;;
|
||||
esac
|
||||
copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
|
||||
fi
|
||||
|
||||
# Handle --with-libs=XXX. Multiple directories are permitted. The
|
||||
# contents are copied to $(tooldir)/lib.
|
||||
if [ x"${with_libs}" != x ]; then
|
||||
if [ x${is_cross_compiler} = xno ]; then
|
||||
echo 1>&2 '***' --with-libs is only supported when cross compiling
|
||||
exit 1
|
||||
fi
|
||||
# Copy the libraries in reverse order, so that files in the first named
|
||||
# library override files in subsequent libraries.
|
||||
case "${exec_prefixoption}" in
|
||||
"") x=${prefix} ;;
|
||||
*) x=${exec_prefix} ;;
|
||||
esac
|
||||
for l in ${with_libs}; do
|
||||
copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
|
||||
done
|
||||
fi
|
||||
|
||||
# If both --with-headers and --with-libs are specified, default to
|
||||
# --without-newlib.
|
||||
if [ x"${with_headers}" != x ] && [ x"${with_libs}" != x ]; then
|
||||
if [ x"${with_newlib}" = x ]; then
|
||||
with_newlib=no
|
||||
fi
|
||||
fi
|
||||
|
||||
# Recognize --with-newlib/--without-newlib.
|
||||
if [ x${with_newlib} = xno ]; then
|
||||
skipdirs="${skipdirs} target-newlib"
|
||||
elif [ x${with_newlib} = xyes ]; then
|
||||
skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
|
||||
fi
|
||||
|
||||
# Default to using --with-stabs for certain targets.
|
||||
if [ x${with_stabs} = x ]; then
|
||||
case "${target}" in
|
||||
mips*-*-irix6*)
|
||||
;;
|
||||
mips*-*-* | alpha*-*-osf* | i[3456]86*-*-sysv4* | i[3456]86*-*-unixware*)
|
||||
with_stabs=yes;
|
||||
withoptions="${withoptions} --with-stabs"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Handle ${copy_dirs}
|
||||
set fnord ${copy_dirs}
|
||||
shift
|
||||
while [ $# != 0 ]; do
|
||||
if [ -f $2/COPIED ] && [ x"`cat $2/COPIED`" = x"$1" ]; then
|
||||
:
|
||||
else
|
||||
echo Copying $1 to $2
|
||||
|
||||
# Use the install script to create the directory and all required
|
||||
# parent directories.
|
||||
if [ -d $2 ]; then
|
||||
:
|
||||
else
|
||||
echo >config.temp
|
||||
${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
|
||||
fi
|
||||
|
||||
# Copy the directory, assuming we have tar.
|
||||
# FIXME: Should we use B in the second tar? Not all systems support it.
|
||||
(cd $1; tar -cf - .) | (cd $2; tar -xpf -)
|
||||
|
||||
# It is the responsibility of the user to correctly adjust all
|
||||
# symlinks. If somebody can figure out how to handle them correctly
|
||||
# here, feel free to add the code.
|
||||
|
||||
echo $1 > $2/COPIED
|
||||
fi
|
||||
shift; shift
|
||||
done
|
||||
|
||||
# Configure extra directories which are host specific
|
||||
|
||||
case "${host}" in
|
||||
i[3456]86-*-go32*)
|
||||
configdirs="$configdirs dosrel" ;;
|
||||
*-cygwin32*)
|
||||
configdirs="$configdirs dosrel" ;;
|
||||
esac
|
||||
|
||||
# Remove more programs from consideration, based on the host or
|
||||
# target this usually means that a port of the program doesn't
|
||||
# exist yet.
|
||||
|
||||
noconfigdirs=""
|
||||
|
||||
case "${host}" in
|
||||
i[3456]86-*-vsta)
|
||||
noconfigdirs="tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl apache inet itcl tix db sn gnuserv"
|
||||
;;
|
||||
i[3456]86-*-go32* | i[3456]86-*-msdosdjgpp*)
|
||||
noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl apache inet itcl tix db sn gnuserv"
|
||||
;;
|
||||
*-*-cygwin32)
|
||||
noconfigdirs="expect dejagnu cvs autoconf automake bison send-pr gprof rcs guile perl texinfo apache inet"
|
||||
;;
|
||||
*-*-windows*)
|
||||
# This is only used to build WinGDB...
|
||||
# note that powerpc-eabi depends on sim configured before gdb.
|
||||
configdirs="bfd libiberty opcodes readline sim gdb"
|
||||
target_configdirs=
|
||||
;;
|
||||
ppc*-*-pe)
|
||||
noconfigdirs="patch diff make tk tcl expect dejagnu cvs autoconf automake texinfo bison send-pr gprof rcs guile perl apache inet itcl tix db sn gnuserv"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
case "${target}" in
|
||||
*-*-netware)
|
||||
noconfigdirs="$noconfigdirs target-libg++ target-libstdc++ target-librx target-newlib target-libiberty target-libgloss"
|
||||
;;
|
||||
*-*-vxworks*)
|
||||
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
||||
;;
|
||||
alpha-dec-osf*)
|
||||
# ld works, but does not support shared libraries. emacs doesn't
|
||||
# work. newlib is not 64 bit ready. I'm not sure about fileutils.
|
||||
# gas doesn't generate exception information.
|
||||
noconfigdirs="$noconfigdirs gas ld emacs fileutils target-newlib target-libgloss"
|
||||
;;
|
||||
alpha*-*-*vms*)
|
||||
noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss"
|
||||
;;
|
||||
alpha*-*-*)
|
||||
# newlib is not 64 bit ready
|
||||
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
||||
;;
|
||||
arc-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libgloss"
|
||||
;;
|
||||
arm-*-pe*)
|
||||
noconfigdirs="$noconfigdirs target-libgloss"
|
||||
;;
|
||||
arm-*-coff*)
|
||||
noconfigdirs="$noconfigdirs target-libgloss"
|
||||
;;
|
||||
arm-*-riscix*)
|
||||
noconfigdirs="$noconfigdirs ld target-libgloss"
|
||||
;;
|
||||
d10v-*-*)
|
||||
noconfigdirs="$noconfigdirs target-librx target-libg++ target-libstdc++ target-libio target-libgloss"
|
||||
;;
|
||||
h8300*-*-* | \
|
||||
h8500-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libg++ target-libstdc++ target-libio target-librx target-libgloss"
|
||||
;;
|
||||
hppa*-*-*elf* | \
|
||||
hppa*-*-lites* | \
|
||||
hppa*-*-rtems* )
|
||||
# Do configure ld/binutils/gas for this case.
|
||||
;;
|
||||
hppa*-*-*)
|
||||
# HP's C compiler doesn't handle Emacs correctly (but on BSD and Mach
|
||||
# cc is gcc, and on any system a user should be able to link cc to
|
||||
# whatever they want. FIXME, emacs emacs19).
|
||||
case "${CC}" in
|
||||
"" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;;
|
||||
*) ;;
|
||||
esac
|
||||
noconfigdirs="$noconfigdirs ld shellutils"
|
||||
;;
|
||||
i[3456]86-*-go32* | i[3456]-*-msdosdjgpp*)
|
||||
# but don't build gdb
|
||||
noconfigdirs="$noconfigdirs gdb target-libg++ target-libstdc++ target-libio target-librx"
|
||||
;;
|
||||
*-*-cygwin32)
|
||||
target_configdirs="$target_configdirs target-winsup"
|
||||
noconfigdirs="$noconfigdirs expect target-libgloss"
|
||||
# always build newlib.
|
||||
skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
|
||||
|
||||
# Can't build gdb for cygwin32 if not native.
|
||||
case "${host}" in
|
||||
*-*-cygwin32) ;; # keep gdb tcl tk expect etc.
|
||||
*) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix db sn gnuserv"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
i[3456]86-*-pe)
|
||||
noconfigdirs="$noconfigdirs target-libg++ target-libstdc++ target-libio target-librx target-libgloss"
|
||||
;;
|
||||
i[3456]86-*-sco3.2v5*)
|
||||
# The linker does not yet know about weak symbols in COFF,
|
||||
# and is not configured to handle mixed ELF and COFF.
|
||||
noconfigdirs="$noconfigdirs gprof ld target-libgloss"
|
||||
;;
|
||||
i[3456]86-*-sco*)
|
||||
noconfigdirs="$noconfigdirs gprof target-libgloss"
|
||||
;;
|
||||
i[3456]86-*-solaris2*)
|
||||
# The linker does static linking correctly, but the Solaris C library
|
||||
# has bugs such that some important functions won't work when statically
|
||||
# linked. (See man pages for getpwuid, for example.)
|
||||
noconfigdirs="$noconfigdirs ld target-libgloss"
|
||||
;;
|
||||
i[3456]86-*-sysv4*)
|
||||
# The SYSV4 C compiler doesn't handle Emacs correctly
|
||||
case "${CC}" in
|
||||
"" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;;
|
||||
*) ;;
|
||||
esac
|
||||
# but that's okay since emacs doesn't work anyway
|
||||
noconfigdirs="$noconfigdirs emacs emacs19 target-libgloss"
|
||||
;;
|
||||
mn10200-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libgloss"
|
||||
;;
|
||||
mn10300-*-*)
|
||||
noconfigdirs="$noconfigdirs target-libgloss"
|
||||
;;
|
||||
powerpc-*-aix*)
|
||||
# copied from rs6000-*-* entry
|
||||
noconfigdirs="$noconfigdirs gprof cvs target-libgloss"
|
||||
# This is needed until gcc and ld are fixed to work together.
|
||||
use_gnu_ld=no
|
||||
;;
|
||||
powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
|
||||
target_configdirs="$target_configdirs target-winsup"
|
||||
noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix db sn gnuserv"
|
||||
# always build newlib.
|
||||
skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
|
||||
;;
|
||||
# This is temporary until we can link against shared libraries
|
||||
powerpcle-*-solaris*)
|
||||
noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix db sn gnuserv"
|
||||
;;
|
||||
rs6000-*-lynxos*)
|
||||
# The CVS server code doesn't work on the RS/6000
|
||||
# Newlib makes problems for libg++ in crosses.
|
||||
noconfigdirs="$noconfigdirs target-newlib gprof cvs"
|
||||
;;
|
||||
rs6000-*-aix*)
|
||||
noconfigdirs="$noconfigdirs gprof"
|
||||
# This is needed until gcc and ld are fixed to work together.
|
||||
use_gnu_ld=no
|
||||
;;
|
||||
rs6000-*-*)
|
||||
noconfigdirs="$noconfigdirs gprof"
|
||||
;;
|
||||
m68k-apollo-*)
|
||||
noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
|
||||
;;
|
||||
mips*-*-irix5*)
|
||||
# The GNU linker does not support shared libraries.
|
||||
# emacs is emacs 18, which does not work on Irix 5 (emacs19 does work)
|
||||
noconfigdirs="$noconfigdirs ld gprof emacs target-libgloss"
|
||||
;;
|
||||
mips*-*-irix6*)
|
||||
# The GNU assembler and linker do not support IRIX 6.
|
||||
# emacs is emacs 18, which does not work on Irix 5 (emacs19 does work)
|
||||
noconfigdirs="$noconfigdirs ld gas gprof emacs target-libgloss"
|
||||
;;
|
||||
mips*-dec-bsd*)
|
||||
noconfigdirs="$noconfigdirs gprof target-libgloss"
|
||||
;;
|
||||
mips*-*-bsd*)
|
||||
noconfigdirs="$noconfigdirs gprof target-libgloss"
|
||||
;;
|
||||
mips*-*-*)
|
||||
noconfigdirs="$noconfigdirs gprof"
|
||||
;;
|
||||
romp-*-*)
|
||||
noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss"
|
||||
;;
|
||||
sh-*-*)
|
||||
case "${host}" in
|
||||
i[3456]86-*-vsta) ;; # don't add gprof back in
|
||||
i[3456]86-*-go32*) ;; # don't add gprof back in
|
||||
i[3456]86-*-msdosdjgpp*) ;; # don't add gprof back in
|
||||
*) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
|
||||
esac
|
||||
noconfigdirs="$noconfigdirs target-libgloss"
|
||||
;;
|
||||
sparc-*-sunos4*)
|
||||
if [ x${is_cross_compiler} != xno ] ; then
|
||||
noconfigdirs="$noconfigdirs gdb gdbtest target-newlib target-libgloss"
|
||||
else
|
||||
use_gnu_ld=no
|
||||
fi
|
||||
;;
|
||||
v810-*-*)
|
||||
noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libio target-libg++ target-libstdc++ opcodes target-libgloss"
|
||||
;;
|
||||
vax-*-vms)
|
||||
noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss"
|
||||
;;
|
||||
vax-*-*)
|
||||
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
||||
;;
|
||||
*-*-lynxos*)
|
||||
# Newlib makes problems for libg++ in crosses.
|
||||
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
|
||||
;;
|
||||
*-*-macos* | \
|
||||
*-*-mpw*)
|
||||
# Macs want a resource compiler.
|
||||
configdirs="$configdirs grez"
|
||||
;;
|
||||
esac
|
||||
|
||||
# targets that need a second pass
|
||||
case "${target}" in
|
||||
*-gm-magic*)
|
||||
noconfigdirs="$noconfigdirs target-libgloss"
|
||||
;;
|
||||
esac
|
||||
|
||||
# If we aren't building newlib, then don't build libgloss, since libgloss
|
||||
# depends upon some newlib header files.
|
||||
case "${noconfigdirs}" in
|
||||
*target-libgloss*) ;;
|
||||
*target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
|
||||
esac
|
||||
|
||||
# If we are building a Canadian Cross, discard tools that can not be built
|
||||
# using a cross compiler. FIXME: These tools should be fixed.
|
||||
if [ "${build}" != "${host}" ]; then
|
||||
noconfigdirs="$noconfigdirs expect dejagnu"
|
||||
fi
|
||||
|
||||
# Make sure we don't let GNU ld be added if we didn't want it.
|
||||
if [ x$with_gnu_ld = xno ]; then
|
||||
use_gnu_ld=no
|
||||
noconfigdirs="$noconfigdirs ld"
|
||||
fi
|
||||
|
||||
# Make sure we don't let GNU as be added if we didn't want it.
|
||||
if [ x$with_gnu_as = xno ]; then
|
||||
use_gnu_as=no
|
||||
noconfigdirs="$noconfigdirs gas"
|
||||
fi
|
||||
|
||||
# Remove the entries in $skipdirs and $noconfigdirs from $configdirs and
|
||||
# $target_configdirs.
|
||||
# If we have the source for $noconfigdirs entries, add them to $notsupp.
|
||||
|
||||
notsupp=""
|
||||
for dir in . $skipdirs $noconfigdirs ; do
|
||||
dirname=`echo $dir | sed -e s/target-//g`
|
||||
if [ $dir != . ] && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
|
||||
configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
|
||||
if [ -r $srcdir/$dirname/configure ] \
|
||||
|| [ -r $srcdir/$dirname/configure.in ]; then
|
||||
if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
|
||||
true
|
||||
else
|
||||
notsupp="$notsupp $dir"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [ $dir != . ] && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
|
||||
target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
|
||||
if [ -r $srcdir/$dirname/configure ] \
|
||||
|| [ -r $srcdir/$dirname/configure.in ]; then
|
||||
if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
|
||||
true
|
||||
else
|
||||
notsupp="$notsupp $dir"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Sometimes the tools are distributed with libiberty but with no other
|
||||
# libraries. In that case, we don't want to build target-libiberty.
|
||||
if [ -n "${target_configdirs}" ]; then
|
||||
others=
|
||||
for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
|
||||
if [ "$i" != "libiberty" ]; then
|
||||
if [ -r $srcdir/$i/configure ] || [ -r $srcdir/$i/configure.in ]; then
|
||||
others=yes;
|
||||
break;
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ -z "${others}" ]; then
|
||||
target_configdirs=
|
||||
fi
|
||||
fi
|
||||
|
||||
# Deconfigure all subdirectories, in case we are changing the
|
||||
# configuration from one where a subdirectory is supported to one where it
|
||||
# is not.
|
||||
if [ -z "${norecursion}" -a -n "${configdirs}" ]; then
|
||||
for i in `echo ${configdirs} | sed -e s/target-//g` ; do
|
||||
rm -f $i/Makefile
|
||||
done
|
||||
fi
|
||||
if [ -z "${norecursion}" -a -n "${target_configdirs}" ]; then
|
||||
for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
|
||||
rm -f ${target_subdir}/$i/Makefile
|
||||
done
|
||||
fi
|
||||
|
||||
# Produce a warning message for the subdirs we can't configure.
|
||||
# This isn't especially interesting in the Cygnus tree, but in the individual
|
||||
# FSF releases, it's important to let people know when their machine isn't
|
||||
# supported by the one or two programs in a package.
|
||||
|
||||
if [ -n "${notsupp}" ] && [ -z "${norecursion}" ]; then
|
||||
# If $appdirs is non-empty, at least one of those directories must still
|
||||
# be configured, or we error out. (E.g., if the gas release supports a
|
||||
# specified target in some subdirs but not the gas subdir, we shouldn't
|
||||
# pretend that all is well.)
|
||||
if [ -n "$appdirs" ]; then
|
||||
for dir in $appdirs ; do
|
||||
if [ -r $dir/Makefile.in ]; then
|
||||
if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
|
||||
appdirs=""
|
||||
break
|
||||
fi
|
||||
if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
|
||||
appdirs=""
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ -n "$appdirs" ]; then
|
||||
echo "*** This configuration is not supported by this package." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
# Okay, some application will build, or we don't care to check. Still
|
||||
# notify of subdirs not getting built.
|
||||
echo "*** This configuration is not supported in the following subdirectories:" 1>&2
|
||||
echo " ${notsupp}" 1>&2
|
||||
echo " (Any other directories should still work fine.)" 1>&2
|
||||
fi
|
||||
|
||||
# Set with_gnu_as and with_gnu_ld as appropriate.
|
||||
#
|
||||
# This is done by determining whether or not the appropriate directory
|
||||
# is available, and by checking whether or not specific configurations
|
||||
# have requested that this magic not happen.
|
||||
#
|
||||
# The command line options always override the explicit settings in
|
||||
# configure.in, and the settings in configure.in override this magic.
|
||||
#
|
||||
# If the default for a toolchain is to use GNU as and ld, and you don't
|
||||
# want to do that, then you should use the --without-gnu-as and
|
||||
# --without-gnu-ld options for the configure script.
|
||||
|
||||
if [ x${use_gnu_as} = x ] ; then
|
||||
if [ x${with_gnu_as} != xno ] && echo " ${configdirs} " | grep " ${gasdir} " > /dev/null 2>&1 && [ -d ${srcdir}/${gasdir} ] ; then
|
||||
with_gnu_as=yes
|
||||
withoptions="$withoptions --with-gnu-as"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ x${use_gnu_ld} = x ] ; then
|
||||
if [ x${with_gnu_ld} != xno ] && echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 && [ -d ${srcdir}/ld ] ; then
|
||||
with_gnu_ld=yes
|
||||
withoptions="$withoptions --with-gnu-ld"
|
||||
fi
|
||||
fi
|
||||
|
||||
# If using newlib, add --with-newlib to the withoptions so that gcc/configure
|
||||
# can detect this case.
|
||||
|
||||
if [ x${with_newlib} != xno ] && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 && [ -d ${srcdir}/newlib ] ; then
|
||||
with_newlib=yes
|
||||
withoptions="$withoptions --with-newlib"
|
||||
fi
|
||||
|
||||
if [ x${shared} = xyes ]; then
|
||||
case "${target}" in
|
||||
hppa*) target_makefile_frag=config/mt-papic ;;
|
||||
i[3456]86-*) target_makefile_frag=config/mt-x86pic ;;
|
||||
powerpc*-*) target_makefile_frag=config/mt-ppcpic ;;
|
||||
*) target_makefile_frag=config/mt-${target_cpu}pic ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# post-target:
|
||||
|
||||
# Make sure that the compiler is able to generate an executable. If it
|
||||
# can't, we are probably in trouble. We don't care whether we can run the
|
||||
# executable--we might be using a cross compiler--we only care whether it
|
||||
# can be created. At this point the main configure script has set CC.
|
||||
echo "int main () { return 0; }" > conftest.c
|
||||
${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
|
||||
if [ $? = 0 ] && [ -s conftest ]; then
|
||||
:
|
||||
else
|
||||
echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
|
||||
echo 1>&2 "*** You must set the environment variable CC to a working compiler."
|
||||
rm -f conftest*
|
||||
exit 1
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
# The Solaris /usr/ucb/cc compiler does not appear to work.
|
||||
case "${host}" in
|
||||
sparc-sun-solaris2*)
|
||||
CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
|
||||
if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then
|
||||
could_use=
|
||||
[ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
|
||||
if [ -d /opt/cygnus/bin ] ; then
|
||||
if [ "$could_use" = "" ] ; then
|
||||
could_use="/opt/cygnus/bin"
|
||||
else
|
||||
could_use="$could_use or /opt/cygnus/bin"
|
||||
fi
|
||||
fi
|
||||
if [ "$could_use" = "" ] ; then
|
||||
echo "Warning: compilation may fail because you're using"
|
||||
echo "/usr/ucb/cc. You should change your PATH or CC "
|
||||
echo "variable and rerun configure."
|
||||
else
|
||||
echo "Warning: compilation may fail because you're using"
|
||||
echo "/usr/ucb/cc, when you should use the C compiler from"
|
||||
echo "$could_use. You should change your"
|
||||
echo "PATH or CC variable and rerun configure."
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
|
||||
# binutils tools will find libbfd.so.
|
||||
if [ "${shared}" = "yes" ]; then
|
||||
sed -e 's/^SET_LIB_PATH[ ]*=.*$/SET_LIB_PATH = $(REALLY_SET_LIB_PATH)/' \
|
||||
Makefile > Makefile.tem
|
||||
rm -f Makefile
|
||||
mv -f Makefile.tem Makefile
|
||||
|
||||
case "${host}" in
|
||||
*-*-hpux*)
|
||||
sed -e 's/RPATH_ENVVAR[ ]*=.*$/RPATH_ENVVAR = SHLIB_PATH/' \
|
||||
Makefile > Makefile.tem
|
||||
rm -f Makefile
|
||||
mv -f Makefile.tem Makefile
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# If we are building for a cygwin32 host, then set INSTALL_PROGRAM_ARGS to
|
||||
# -x. This will cause programs to be installed with .exe extensions.
|
||||
case "${host}" in
|
||||
*-*-cygwin32*)
|
||||
sed -e 's/^INSTALL_PROGRAM_ARGS[ ]*=.*$/INSTALL_PROGRAM_ARGS = -x/' \
|
||||
Makefile > Makefile.tem
|
||||
rm -f Makefile
|
||||
mv -f Makefile.tem Makefile
|
||||
;;
|
||||
esac
|
||||
|
||||
# Record target_configdirs and the configure arguments in Makefile.
|
||||
target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
|
||||
targargs=`echo "${arguments}" | \
|
||||
sed -e 's/--norecursion//' \
|
||||
-e 's/--cache[a-z-]*=[^ ]*//' \
|
||||
-e 's/--ho[a-z-]*=[^ ]*//' \
|
||||
-e 's/--bu[a-z-]*=[^ ]*//' \
|
||||
-e 's/--ta[a-z-]*=[^ ]*//'`
|
||||
|
||||
# Passing a --with-cross-host argument lets the target libraries know
|
||||
# whether they are being built with a cross-compiler or being built
|
||||
# native. However, it would be better to use other mechanisms to make the
|
||||
# sorts of decisions they want to make on this basis. Please consider
|
||||
# this option to be deprecated. FIXME.
|
||||
if [ x${is_cross_compiler} = xyes ]; then
|
||||
targargs="--with-cross-host=${host_alias} ${targargs}"
|
||||
fi
|
||||
|
||||
# Default to --enable-multilib.
|
||||
if [ x${enable_multilib} = x ]; then
|
||||
targargs="--enable-multilib ${targargs}"
|
||||
fi
|
||||
|
||||
targargs="--host=${target_alias} --build=${build_alias} ${targargs}"
|
||||
sed -e "s:^TARGET_CONFIGDIRS[ ]*=.*$:TARGET_CONFIGDIRS = ${target_configdirs}:" \
|
||||
-e "s%^CONFIG_ARGUMENTS[ ]*=.*$%CONFIG_ARGUMENTS = ${targargs}%" \
|
||||
-e "s%^TARGET_SUBDIR[ ]*=.*$%TARGET_SUBDIR = ${target_subdir}%" \
|
||||
Makefile > Makefile.tem
|
||||
rm -f Makefile
|
||||
mv -f Makefile.tem Makefile
|
||||
|
||||
#
|
||||
# Local Variables:
|
||||
# fill-column: 131
|
||||
# End:
|
||||
#
|
||||
392
etc/ChangeLog
Normal file
392
etc/ChangeLog
Normal file
@@ -0,0 +1,392 @@
|
||||
Tue Jun 17 15:50:23 1997 Angela Marie Thomas (angela@cygnus.com)
|
||||
|
||||
* Install.in: Add /usr/bsd to PATH for Irix (home of compress)
|
||||
|
||||
Thu Jun 12 13:47:00 1997 Angela Marie Thomas (angela@cygnus.com)
|
||||
|
||||
* Install.in (show_exec_prefix_msg): fix quoting
|
||||
|
||||
Wed Jun 4 15:31:43 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||
|
||||
* rebuilding.texi: Removed.
|
||||
|
||||
Sat May 24 18:02:20 1997 Angela Marie Thomas (angela@cygnus.com)
|
||||
|
||||
* cross-tools-fix: Remove host check since it doesn't matter
|
||||
for this case.
|
||||
* Install.in (guess_system): clean up more unused hosts.
|
||||
* Install.in, cross-tools-fix, comp-tools-fix, comp-tools-verify:
|
||||
Hack for host check to not warn the user for certain cases.
|
||||
|
||||
Fri May 23 23:46:10 1997 Angela Marie Thomas (angela@cygnus.com)
|
||||
|
||||
* subst-strings: Remove a lot of unused code
|
||||
* Install.in: Remove reference to TAPEdflt, use variables instead of
|
||||
string substitution when able.
|
||||
|
||||
Fri Apr 11 17:25:52 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* configure.in: Change file named in AC_INIT to Makefile.in.
|
||||
* configure: Rebuild.
|
||||
|
||||
Fri Apr 11 18:12:42 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||
|
||||
* Install.in (guess_system): Back out change to INSTALLHOST to
|
||||
call all IRIX systems "mips-sgi-irix4"
|
||||
|
||||
* Makefile.in: Remove references to configure.texi and cfg-paper.texi.
|
||||
|
||||
Thu Apr 10 23:26:45 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||
|
||||
* srctree.texi, emacs-relnotes.texi, cfg-paper.texi: Remove.
|
||||
* Install.in: Remove Ultrix-specific hacks.
|
||||
Update Cygnus phone numbers.
|
||||
(guess_system): Remove some old systems (Ultrix, OSF1 v1 & 2,
|
||||
m68k-HPUX, m68k SunOS, etc.)
|
||||
(show_gnu_root_msg): Remove.
|
||||
Removed all the remove option code.
|
||||
|
||||
Thu Apr 10 23:23:33 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||
|
||||
* configure.man, configure.texi: Remote.
|
||||
|
||||
Mon Apr 7 18:15:00 1997 Brendan Kehoe <brendan@cygnus.com>
|
||||
|
||||
* Fix the version string for OSF1 4.0 to recognize either
|
||||
V4.* or X4.*
|
||||
|
||||
Mon Apr 7 15:34:47 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* standards.texi, make-stds.texi: Update to current FSF versions.
|
||||
|
||||
Tue Apr 1 16:19:31 1997 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||
|
||||
* Install.in (show_exec_prefix_msg): GDBTK_FILENAME to
|
||||
GDBTK_LIBRARY, also update TCL_LIBRARY and TK_LIBRARY.
|
||||
|
||||
Tue Nov 19 15:36:14 1996 Doug Evans <dje@canuck.cygnus.com>
|
||||
|
||||
* make-rel-sym-tree: New file.
|
||||
|
||||
Wed Oct 23 00:34:07 1996 Angela Marie Thomas (angela@cygnus.com)
|
||||
|
||||
* Lots of patches from progressive...
|
||||
* Install.in: restore DDOPTS for AIX 4.x
|
||||
* Install.in, subst-strings: add case for DG Aviion
|
||||
* subst-strings: fix typo in INSTALLdir var setting
|
||||
* comp-tools-verify: set SHLIB_PATH for shared libs
|
||||
* Install.in, subst-strings: add case for solaris2.5
|
||||
* Install.in: fix regression for hppa1.1 check
|
||||
* comp-tools-fix: set LD_LIBRARY_PATH
|
||||
* comp-tools-fix: If fixincludes fixes /usr/include/limits.h,
|
||||
install it as syslimits.h.
|
||||
|
||||
Wed Oct 16 19:20:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||
|
||||
* Install.in (guess_system): Treat powerpc-ibm-aix4.1 the same as
|
||||
rs6000-ibm-aix4.1, since the compiler now uses common mode by
|
||||
default.
|
||||
|
||||
Wed Oct 2 15:39:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||
|
||||
* configure.in (AC_PROG_INSTALL): Added.
|
||||
* Makefile.in (distclean): Remove config.cache.
|
||||
|
||||
Wed Oct 2 14:33:58 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||
|
||||
* configure.in: Switch to autoconf configure.in.
|
||||
* configure: New.
|
||||
* Makefile.in: Use autoconf-substituted values.
|
||||
|
||||
Tue Jun 25 18:56:08 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
|
||||
|
||||
* Makefile.in (datadir): Changed to $(prefix)/share.
|
||||
|
||||
Fri Mar 29 11:38:01 1996 J.T. Conklin (jtc@lisa.cygnus.com)
|
||||
|
||||
* configure.man: Changed to be recognized by catman -w on Solaris.
|
||||
|
||||
Wed Dec 6 15:40:28 1995 Doug Evans <dje@canuck.cygnus.com>
|
||||
|
||||
* comp-tools-fix (fixincludes): Define FIXPROTO_DEFINES from
|
||||
.../install-tools/fixproto-defines.
|
||||
|
||||
Sun Nov 12 19:31:27 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* comp-tools-verify (verify_cxx_initializers): delete argv,
|
||||
argc declarations, add -static to compile line.
|
||||
(verify_cxx_hello_world): delete argv, argc declarations, add
|
||||
-static to compile line.
|
||||
|
||||
Wed Sep 20 13:21:52 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||
|
||||
* Makefile.in (maintainer-clean): New target, synonym for
|
||||
realclean.
|
||||
|
||||
Thu Sep 14 17:19:58 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* Install.in (show_exec_prefix_msg): print out paths for
|
||||
TCL_LIBRARY, TK_LIBRARY and GDBTK_FILENAME.
|
||||
|
||||
Mon Aug 28 17:25:49 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* Install.in (PATH): add /usr/ucb to $PATH (for SunOS 4.1.x).
|
||||
|
||||
Tue Aug 15 21:51:58 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* Install.in (guess_system): Match OSF/1 v3.x as the same as
|
||||
v2.x--v2.x binaries are upward compatible.
|
||||
|
||||
Tue Aug 15 21:46:54 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* Install.in (guess_system): recognize HP 9000/800 systems as the
|
||||
same as HP 9000/700 systems.
|
||||
|
||||
Tue Aug 8 13:11:56 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
|
||||
|
||||
* Install.in: For emacs, run show_emacs_alternate_msg and exit.
|
||||
(show_emacs_alternate_msg): New message saying how emacs can't be
|
||||
installed in an alternate prefix.
|
||||
|
||||
Thu Jun 8 00:42:56 1995 Angela Marie Thomas <angela@cirdan.cygnus.com>
|
||||
|
||||
* subst-strings: change du commands to $BINDIR/. & $SRCDIR/. just
|
||||
in case they are symlinks.
|
||||
|
||||
Tue Apr 18 14:23:10 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
||||
|
||||
* cdk-fix: Extracted table of targets that don't need their
|
||||
headers fixed from gcc's configure script.
|
||||
|
||||
* cdk-fix, cdk-verify: Use ${HOST} instead of ||HOSTstr||
|
||||
|
||||
* cdk-fix, cdk-verify: New files, install script fragments used
|
||||
for Cygnus Developer's Kit.
|
||||
|
||||
* Install.in (do_mkdir): New function.
|
||||
|
||||
* Install.in: Added support for --with and --without options.
|
||||
Changed so that tape commands are not run when extracting
|
||||
from a file.
|
||||
(do_mt): Changed to take only one argument.
|
||||
|
||||
Wed Mar 29 11:16:38 1995 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* Install.in: catch UNAME==alpha-dec-osf2.x and correct entry for
|
||||
alpha-dec-osf1.x
|
||||
|
||||
Fri Jan 27 12:04:29 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
||||
|
||||
* subst-strings (mips-sgi-irix5): New entry in table.
|
||||
|
||||
Thu Jan 19 12:15:44 1995 J.T. Conklin <jtc@rtl.cygnus.com>
|
||||
|
||||
* Install.in: Major rewrite, bundle dependent code (for example,
|
||||
fixincludes for comp-tools) will be inserted into the Install
|
||||
script when it is generated.
|
||||
|
||||
Tue Jan 17 16:51:32 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
|
||||
|
||||
* Makefile.in (Makefile): Rebuild using $(SHELL).
|
||||
|
||||
Thu Nov 3 19:30:33 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
|
||||
|
||||
* Makefile.in (install-info): Depend on info.
|
||||
|
||||
Fri Aug 19 16:16:38 1994 Jason Molenda (crash@phydeaux.cygnus.com)
|
||||
|
||||
* Install.in: set $FIX_HEADER so fixproto can find fix-header.
|
||||
|
||||
Fri May 6 16:18:58 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Makefile.in (install-info): add a semicolon in the if statement.
|
||||
|
||||
Fri Apr 29 16:56:07 1994 David J. Mackenzie (djm@rtl.cygnus.com)
|
||||
|
||||
* cfg-paper.texi: Update some outdated information.
|
||||
|
||||
* Makefile.in (install-info): Pass file, not directory, as last
|
||||
arg to INSTALL_DATA.
|
||||
(uninstall): New target.
|
||||
|
||||
Thu Apr 28 14:42:22 1994 David J. Mackenzie (djm@rtl.cygnus.com)
|
||||
|
||||
* configure.texi: Comment out @smallbook.
|
||||
|
||||
* Makefile.in: Define TEXI2DVI and TEXIDIR, and use the latter.
|
||||
Remove info files in realclean, not clean, per coding standards.
|
||||
Remove TeX output in clean.
|
||||
|
||||
Tue Apr 26 17:18:03 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in: fixincludes output is actually put in fixincludes.log,
|
||||
but echo'ed messages claim it is fixinc.log. This is the same
|
||||
messages as I logged in March 4 1994, but for some reason we found
|
||||
the change hadn't been done. I'll have to dig through the logs
|
||||
and find out what I really did do that day. :)
|
||||
|
||||
Mon Apr 25 20:28:19 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in: use eval to call do_mt() for Ultrix brokenness.
|
||||
|
||||
Mon Apr 25 20:00:00 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in(do_mt): exit with error status 1 if # of parameters
|
||||
!= 3.
|
||||
|
||||
Mon Apr 25 19:42:36 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in: lose TAPE_FORWARD and TAPE_REWIND, add do_mt()
|
||||
to do all tape movement operations. Currently untested. Addresses
|
||||
PR # 4886 from bull.
|
||||
|
||||
* Install.in: add 1994 to the copyright thing.
|
||||
|
||||
Fri Apr 22 19:05:13 1994 David J. Mackenzie (djm@rtl.cygnus.com)
|
||||
|
||||
* standards.texi: Update from FSF.
|
||||
|
||||
Fri Apr 22 15:46:10 1994 Jason Molenda (crash@cygnus.com)
|
||||
|
||||
* Install.in: Add $DDOPTS, has ``bs=124b'' for all systems except
|
||||
AIX (some versions of AIX don't understand bs=124b. Silly OS).
|
||||
|
||||
Mon Apr 4 22:55:05 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in: null out $TOOLS before adding stuff to it
|
||||
non-destructively.
|
||||
|
||||
Wed Mar 30 21:45:35 1994 David J. Mackenzie (djm@rtl.cygnus.com)
|
||||
|
||||
* standards.texi: Fix typo.
|
||||
|
||||
* configure.texi, configure.man: Document --disable-.
|
||||
|
||||
Mon Mar 28 13:22:15 1994 David J. Mackenzie (djm@rtl.cygnus.com)
|
||||
|
||||
* standards.texi: Update from FSF.
|
||||
|
||||
Sat Mar 26 09:21:44 1994 David J. Mackenzie (djm@rtl.cygnus.com)
|
||||
|
||||
* standards.texi, make-stds.texi: Update from FSF.
|
||||
|
||||
Fri Mar 25 22:59:45 1994 David J. Mackenzie (djm@rtl.cygnus.com)
|
||||
|
||||
* configure.texi, configure.man: Document --enable-* options.
|
||||
|
||||
Wed Mar 23 23:38:24 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in: set CPP to be gcc -E for fixincludes.
|
||||
|
||||
Wed Mar 23 13:42:48 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in: set PATH to $PATH:/bin:/usr/bin so we can pick
|
||||
up native tools even if the user doesn't have them in his
|
||||
path.
|
||||
|
||||
* Install.in: ``hppa-1.1-hp-hpux'' -> ``hppa1.1-hp-hpux''.
|
||||
|
||||
Tue Mar 15 22:09:20 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in: TAPE_REWIND and TAPE_FORWARD variables for Unixunaware,
|
||||
added switch statement to detect if system is Unixunaware.
|
||||
|
||||
Fri Mar 4 12:10:30 1994 Jason Molenda (crash@sendai.cygnus.com)
|
||||
|
||||
* Install.in: fixincludes output is actually put in fixincludes.log,
|
||||
but echo'ed messages claim it is fixinc.log.
|
||||
|
||||
Wed Nov 3 02:58:02 1993 Jeffrey Osier (jeffrey@thepub.cygnus.com)
|
||||
|
||||
* subst-strings: output TEXBUNDLE for more install notes matching
|
||||
* install-texi.in: PRMS info now exists
|
||||
|
||||
Tue Oct 26 16:57:12 1993 K. Richard Pixley (rich@sendai.cygnus.com)
|
||||
|
||||
* subst-strings: match solaris*. Also, add default case to catch
|
||||
and error out for unrecognized systems.
|
||||
|
||||
Thu Aug 19 18:21:31 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
|
||||
|
||||
* Install.in: handle the new fixproto work
|
||||
|
||||
Mon Jul 19 12:05:41 1993 david d `zoo' zuhn (zoo@cirdan.cygnus.com)
|
||||
|
||||
* Install.in: remove "MT=tctl" for AIX (not needed, and barely
|
||||
worked anyway)
|
||||
|
||||
Mon Jun 14 19:09:22 1993 Jeffrey Osier (jeffrey@cygnus.com)
|
||||
|
||||
* subst-strings: changed HOST to recognize Solaris for install notes
|
||||
|
||||
Thu Jun 10 16:01:25 1993 Jeffrey Osier (jeffrey@cygnus.com)
|
||||
|
||||
* dos-inst.texi: new file.
|
||||
|
||||
Wed Jun 9 19:23:59 1993 Jeffrey Osier (jeffrey@rtl.cygnus.com)
|
||||
|
||||
* install-texi.in: added conditionals (nearly complete)
|
||||
cleaned up
|
||||
added support for other releases (not done)
|
||||
|
||||
Wed Jun 9 15:53:58 1993 Jim Kingdon (kingdon@cygnus.com)
|
||||
|
||||
* Makefile.in (install-info): Use INSTALL_DATA.
|
||||
({dist,real}clean): Also delete Makefile and config.status.
|
||||
|
||||
Fri Jun 4 17:09:56 1993 Jeffrey Osier (jeffrey@cygnus.com)
|
||||
|
||||
* subst-strings: added data for OS_STRING
|
||||
|
||||
* subst-strings: added support for OS_STRING
|
||||
|
||||
Thu Jun 3 00:37:01 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* Install.in: pull COPYING and COPYING.LIB off of the tape
|
||||
|
||||
Tue Jun 1 16:52:08 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* subst-strings: replace RELEASE_DIR too
|
||||
|
||||
Mon Mar 22 23:55:27 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* Makefile.in: add installcheck target
|
||||
|
||||
Wed Mar 17 02:21:15 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* Install.in: fix 'source only' extraction bug where it looked for
|
||||
the src dir under H-<host>/src instead of src; also remove stray
|
||||
reference to EMACSHIBIN
|
||||
|
||||
Mon Mar 15 01:25:45 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* make-stds.texi: added 'installcheck' to the standard targets
|
||||
|
||||
Tue Mar 9 19:48:28 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* standards.texi: added INFO-DIR-ENTRY, updated version from the FSF
|
||||
|
||||
Tue Feb 9 12:40:23 1993 Ian Lance Taylor (ian@cygnus.com)
|
||||
|
||||
* Makefile.in (standards.info): Added -I$(srcdir) to find
|
||||
make-stds.texi.
|
||||
|
||||
Mon Feb 1 16:32:56 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* standards.texi: updated to latest FSF version, which includes:
|
||||
|
||||
* make-stds.texi: new file
|
||||
|
||||
Mon Nov 30 01:31:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* install-texi.in, relnotes.texi, intro.texi: changed Cygnus phone
|
||||
numbers from the old Palo Alto ones to the new Mtn. View numbers
|
||||
|
||||
Mon Nov 16 16:50:43 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* Makefile.in: define $(RM) to "rm -f"
|
||||
|
||||
Sun Oct 11 16:05:48 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
|
||||
|
||||
* intro.texi: added INFO-DIR-ENTRY
|
||||
|
||||
88
etc/Makefile.in
Normal file
88
etc/Makefile.in
Normal file
@@ -0,0 +1,88 @@
|
||||
#
|
||||
# Makefile.in for etc
|
||||
#
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
bindir = @bindir@
|
||||
libdir = @libdir@
|
||||
tooldir = $(libdir)
|
||||
datadir = @datadir@
|
||||
|
||||
mandir = @mandir@
|
||||
man1dir = $(mandir)/man1
|
||||
man2dir = $(mandir)/man2
|
||||
man3dir = $(mandir)/man3
|
||||
man4dir = $(mandir)/man4
|
||||
man5dir = $(mandir)/man5
|
||||
man6dir = $(mandir)/man6
|
||||
man7dir = $(mandir)/man7
|
||||
man8dir = $(mandir)/man8
|
||||
man9dir = $(mandir)/man9
|
||||
infodir = @infodir@
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
|
||||
MAKEINFO = makeinfo
|
||||
TEXI2DVI = texi2dvi
|
||||
|
||||
# Where to find texinfo.tex to format documentation with TeX.
|
||||
TEXIDIR = $(srcdir)/../texinfo
|
||||
|
||||
#### Host, target, and site specific Makefile fragments come in here.
|
||||
###
|
||||
|
||||
INFOFILES = standards.info
|
||||
DVIFILES = standards.dvi
|
||||
|
||||
all:
|
||||
|
||||
install:
|
||||
|
||||
uninstall:
|
||||
|
||||
info: $(INFOFILES)
|
||||
|
||||
install-info: info
|
||||
if test ! -f standards.info ; then cd $(srcdir); fi; \
|
||||
for i in standards.info*; do \
|
||||
$(INSTALL_DATA) $$i $(infodir)/$$i; \
|
||||
done
|
||||
|
||||
dvi: $(DVIFILES)
|
||||
|
||||
standards.info: $(srcdir)/standards.texi
|
||||
$(MAKEINFO) -I$(srcdir) -o standards.info $(srcdir)/standards.texi
|
||||
|
||||
standards.dvi: $(srcdir)/standards.texi
|
||||
TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/standards.texi
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
|
||||
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
|
||||
|
||||
mostlyclean: clean
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile config.status config.cache
|
||||
|
||||
maintainer-clean realclean: distclean
|
||||
rm -f *.info*
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
|
||||
$(SHELL) ./config.status
|
||||
|
||||
## these last targets are for standards.texi conformance
|
||||
dist:
|
||||
check:
|
||||
installcheck:
|
||||
TAGS:
|
||||
858
etc/configure
vendored
Executable file
858
etc/configure
vendored
Executable file
@@ -0,0 +1,858 @@
|
||||
#! /bin/sh
|
||||
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated automatically using autoconf version 2.12
|
||||
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
|
||||
#
|
||||
# This configure script is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy, distribute and modify it.
|
||||
|
||||
# Defaults:
|
||||
ac_help=
|
||||
ac_default_prefix=/usr/local
|
||||
# Any additions from configure.in:
|
||||
|
||||
# Initialize some variables set by options.
|
||||
# The variables have the same names as the options, with
|
||||
# dashes changed to underlines.
|
||||
build=NONE
|
||||
cache_file=./config.cache
|
||||
exec_prefix=NONE
|
||||
host=NONE
|
||||
no_create=
|
||||
nonopt=NONE
|
||||
no_recursion=
|
||||
prefix=NONE
|
||||
program_prefix=NONE
|
||||
program_suffix=NONE
|
||||
program_transform_name=s,x,x,
|
||||
silent=
|
||||
site=
|
||||
srcdir=
|
||||
target=NONE
|
||||
verbose=
|
||||
x_includes=NONE
|
||||
x_libraries=NONE
|
||||
bindir='${exec_prefix}/bin'
|
||||
sbindir='${exec_prefix}/sbin'
|
||||
libexecdir='${exec_prefix}/libexec'
|
||||
datadir='${prefix}/share'
|
||||
sysconfdir='${prefix}/etc'
|
||||
sharedstatedir='${prefix}/com'
|
||||
localstatedir='${prefix}/var'
|
||||
libdir='${exec_prefix}/lib'
|
||||
includedir='${prefix}/include'
|
||||
oldincludedir='/usr/include'
|
||||
infodir='${prefix}/info'
|
||||
mandir='${prefix}/man'
|
||||
|
||||
# Initialize some other variables.
|
||||
subdirs=
|
||||
MFLAGS= MAKEFLAGS=
|
||||
# Maximum number of lines to put in a shell here document.
|
||||
ac_max_here_lines=12
|
||||
|
||||
ac_prev=
|
||||
for ac_option
|
||||
do
|
||||
|
||||
# If the previous option needs an argument, assign it.
|
||||
if test -n "$ac_prev"; then
|
||||
eval "$ac_prev=\$ac_option"
|
||||
ac_prev=
|
||||
continue
|
||||
fi
|
||||
|
||||
case "$ac_option" in
|
||||
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
||||
*) ac_optarg= ;;
|
||||
esac
|
||||
|
||||
# Accept the important Cygnus configure options, so we can diagnose typos.
|
||||
|
||||
case "$ac_option" in
|
||||
|
||||
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
||||
ac_prev=bindir ;;
|
||||
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
||||
bindir="$ac_optarg" ;;
|
||||
|
||||
-build | --build | --buil | --bui | --bu)
|
||||
ac_prev=build ;;
|
||||
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
||||
build="$ac_optarg" ;;
|
||||
|
||||
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
||||
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
||||
ac_prev=cache_file ;;
|
||||
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
||||
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
||||
cache_file="$ac_optarg" ;;
|
||||
|
||||
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
||||
ac_prev=datadir ;;
|
||||
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
||||
| --da=*)
|
||||
datadir="$ac_optarg" ;;
|
||||
|
||||
-disable-* | --disable-*)
|
||||
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
||||
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
||||
eval "enable_${ac_feature}=no" ;;
|
||||
|
||||
-enable-* | --enable-*)
|
||||
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
||||
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
|
||||
case "$ac_option" in
|
||||
*=*) ;;
|
||||
*) ac_optarg=yes ;;
|
||||
esac
|
||||
eval "enable_${ac_feature}='$ac_optarg'" ;;
|
||||
|
||||
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
||||
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
||||
| --exec | --exe | --ex)
|
||||
ac_prev=exec_prefix ;;
|
||||
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
||||
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
||||
| --exec=* | --exe=* | --ex=*)
|
||||
exec_prefix="$ac_optarg" ;;
|
||||
|
||||
-gas | --gas | --ga | --g)
|
||||
# Obsolete; use --with-gas.
|
||||
with_gas=yes ;;
|
||||
|
||||
-help | --help | --hel | --he)
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat << EOF
|
||||
Usage: configure [options] [host]
|
||||
Options: [defaults in brackets after descriptions]
|
||||
Configuration:
|
||||
--cache-file=FILE cache test results in FILE
|
||||
--help print this message
|
||||
--no-create do not create output files
|
||||
--quiet, --silent do not print \`checking...' messages
|
||||
--version print the version of autoconf that created configure
|
||||
Directory and file names:
|
||||
--prefix=PREFIX install architecture-independent files in PREFIX
|
||||
[$ac_default_prefix]
|
||||
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
||||
[same as prefix]
|
||||
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
||||
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
||||
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
||||
--datadir=DIR read-only architecture-independent data in DIR
|
||||
[PREFIX/share]
|
||||
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
||||
--sharedstatedir=DIR modifiable architecture-independent data in DIR
|
||||
[PREFIX/com]
|
||||
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
||||
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
||||
--includedir=DIR C header files in DIR [PREFIX/include]
|
||||
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
||||
--infodir=DIR info documentation in DIR [PREFIX/info]
|
||||
--mandir=DIR man documentation in DIR [PREFIX/man]
|
||||
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
||||
--program-prefix=PREFIX prepend PREFIX to installed program names
|
||||
--program-suffix=SUFFIX append SUFFIX to installed program names
|
||||
--program-transform-name=PROGRAM
|
||||
run sed PROGRAM on installed program names
|
||||
EOF
|
||||
cat << EOF
|
||||
Host type:
|
||||
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
||||
--host=HOST configure for HOST [guessed]
|
||||
--target=TARGET configure for TARGET [TARGET=HOST]
|
||||
Features and packages:
|
||||
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
--x-includes=DIR X include files are in DIR
|
||||
--x-libraries=DIR X library files are in DIR
|
||||
EOF
|
||||
if test -n "$ac_help"; then
|
||||
echo "--enable and --with options recognized:$ac_help"
|
||||
fi
|
||||
exit 0 ;;
|
||||
|
||||
-host | --host | --hos | --ho)
|
||||
ac_prev=host ;;
|
||||
-host=* | --host=* | --hos=* | --ho=*)
|
||||
host="$ac_optarg" ;;
|
||||
|
||||
-includedir | --includedir | --includedi | --included | --include \
|
||||
| --includ | --inclu | --incl | --inc)
|
||||
ac_prev=includedir ;;
|
||||
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
||||
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
||||
includedir="$ac_optarg" ;;
|
||||
|
||||
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
||||
ac_prev=infodir ;;
|
||||
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
||||
infodir="$ac_optarg" ;;
|
||||
|
||||
-libdir | --libdir | --libdi | --libd)
|
||||
ac_prev=libdir ;;
|
||||
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
||||
libdir="$ac_optarg" ;;
|
||||
|
||||
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
||||
| --libexe | --libex | --libe)
|
||||
ac_prev=libexecdir ;;
|
||||
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
||||
| --libexe=* | --libex=* | --libe=*)
|
||||
libexecdir="$ac_optarg" ;;
|
||||
|
||||
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
||||
| --localstate | --localstat | --localsta | --localst \
|
||||
| --locals | --local | --loca | --loc | --lo)
|
||||
ac_prev=localstatedir ;;
|
||||
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
||||
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
||||
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
||||
localstatedir="$ac_optarg" ;;
|
||||
|
||||
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
||||
ac_prev=mandir ;;
|
||||
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
||||
mandir="$ac_optarg" ;;
|
||||
|
||||
-nfp | --nfp | --nf)
|
||||
# Obsolete; use --without-fp.
|
||||
with_fp=no ;;
|
||||
|
||||
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
||||
| --no-cr | --no-c)
|
||||
no_create=yes ;;
|
||||
|
||||
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
||||
no_recursion=yes ;;
|
||||
|
||||
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
||||
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
||||
| --oldin | --oldi | --old | --ol | --o)
|
||||
ac_prev=oldincludedir ;;
|
||||
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
||||
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
||||
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
||||
oldincludedir="$ac_optarg" ;;
|
||||
|
||||
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
||||
ac_prev=prefix ;;
|
||||
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
||||
prefix="$ac_optarg" ;;
|
||||
|
||||
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
||||
| --program-pre | --program-pr | --program-p)
|
||||
ac_prev=program_prefix ;;
|
||||
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
||||
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
||||
program_prefix="$ac_optarg" ;;
|
||||
|
||||
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
||||
| --program-suf | --program-su | --program-s)
|
||||
ac_prev=program_suffix ;;
|
||||
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
||||
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
||||
program_suffix="$ac_optarg" ;;
|
||||
|
||||
-program-transform-name | --program-transform-name \
|
||||
| --program-transform-nam | --program-transform-na \
|
||||
| --program-transform-n | --program-transform- \
|
||||
| --program-transform | --program-transfor \
|
||||
| --program-transfo | --program-transf \
|
||||
| --program-trans | --program-tran \
|
||||
| --progr-tra | --program-tr | --program-t)
|
||||
ac_prev=program_transform_name ;;
|
||||
-program-transform-name=* | --program-transform-name=* \
|
||||
| --program-transform-nam=* | --program-transform-na=* \
|
||||
| --program-transform-n=* | --program-transform-=* \
|
||||
| --program-transform=* | --program-transfor=* \
|
||||
| --program-transfo=* | --program-transf=* \
|
||||
| --program-trans=* | --program-tran=* \
|
||||
| --progr-tra=* | --program-tr=* | --program-t=*)
|
||||
program_transform_name="$ac_optarg" ;;
|
||||
|
||||
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
||||
| -silent | --silent | --silen | --sile | --sil)
|
||||
silent=yes ;;
|
||||
|
||||
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
||||
ac_prev=sbindir ;;
|
||||
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
||||
| --sbi=* | --sb=*)
|
||||
sbindir="$ac_optarg" ;;
|
||||
|
||||
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
||||
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
||||
| --sharedst | --shareds | --shared | --share | --shar \
|
||||
| --sha | --sh)
|
||||
ac_prev=sharedstatedir ;;
|
||||
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
||||
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
||||
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
||||
| --sha=* | --sh=*)
|
||||
sharedstatedir="$ac_optarg" ;;
|
||||
|
||||
-site | --site | --sit)
|
||||
ac_prev=site ;;
|
||||
-site=* | --site=* | --sit=*)
|
||||
site="$ac_optarg" ;;
|
||||
|
||||
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
||||
ac_prev=srcdir ;;
|
||||
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
||||
srcdir="$ac_optarg" ;;
|
||||
|
||||
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
||||
| --syscon | --sysco | --sysc | --sys | --sy)
|
||||
ac_prev=sysconfdir ;;
|
||||
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
||||
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
||||
sysconfdir="$ac_optarg" ;;
|
||||
|
||||
-target | --target | --targe | --targ | --tar | --ta | --t)
|
||||
ac_prev=target ;;
|
||||
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
||||
target="$ac_optarg" ;;
|
||||
|
||||
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
||||
verbose=yes ;;
|
||||
|
||||
-version | --version | --versio | --versi | --vers)
|
||||
echo "configure generated by autoconf version 2.12"
|
||||
exit 0 ;;
|
||||
|
||||
-with-* | --with-*)
|
||||
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
|
||||
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
||||
case "$ac_option" in
|
||||
*=*) ;;
|
||||
*) ac_optarg=yes ;;
|
||||
esac
|
||||
eval "with_${ac_package}='$ac_optarg'" ;;
|
||||
|
||||
-without-* | --without-*)
|
||||
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
|
||||
# Reject names that are not valid shell variable names.
|
||||
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
|
||||
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
|
||||
fi
|
||||
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
||||
eval "with_${ac_package}=no" ;;
|
||||
|
||||
--x)
|
||||
# Obsolete; use --with-x.
|
||||
with_x=yes ;;
|
||||
|
||||
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
||||
| --x-incl | --x-inc | --x-in | --x-i)
|
||||
ac_prev=x_includes ;;
|
||||
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
||||
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
||||
x_includes="$ac_optarg" ;;
|
||||
|
||||
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
||||
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
||||
ac_prev=x_libraries ;;
|
||||
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
||||
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
||||
x_libraries="$ac_optarg" ;;
|
||||
|
||||
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
|
||||
;;
|
||||
|
||||
*)
|
||||
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
|
||||
echo "configure: warning: $ac_option: invalid host type" 1>&2
|
||||
fi
|
||||
if test "x$nonopt" != xNONE; then
|
||||
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
|
||||
fi
|
||||
nonopt="$ac_option"
|
||||
;;
|
||||
|
||||
esac
|
||||
done
|
||||
|
||||
if test -n "$ac_prev"; then
|
||||
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
|
||||
fi
|
||||
|
||||
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
||||
|
||||
# File descriptor usage:
|
||||
# 0 standard input
|
||||
# 1 file creation
|
||||
# 2 errors and warnings
|
||||
# 3 some systems may open it to /dev/tty
|
||||
# 4 used on the Kubota Titan
|
||||
# 6 checking for... messages and results
|
||||
# 5 compiler messages saved in config.log
|
||||
if test "$silent" = yes; then
|
||||
exec 6>/dev/null
|
||||
else
|
||||
exec 6>&1
|
||||
fi
|
||||
exec 5>./config.log
|
||||
|
||||
echo "\
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
" 1>&5
|
||||
|
||||
# Strip out --no-create and --no-recursion so they do not pile up.
|
||||
# Also quote any args containing shell metacharacters.
|
||||
ac_configure_args=
|
||||
for ac_arg
|
||||
do
|
||||
case "$ac_arg" in
|
||||
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
||||
| --no-cr | --no-c) ;;
|
||||
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
||||
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
|
||||
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
|
||||
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
||||
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# NLS nuisances.
|
||||
# Only set these to C if already set. These must not be set unconditionally
|
||||
# because not all systems understand e.g. LANG=C (notably SCO).
|
||||
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
|
||||
# Non-C LC_CTYPE values break the ctype check.
|
||||
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
|
||||
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
|
||||
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
|
||||
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
|
||||
|
||||
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
||||
rm -rf conftest* confdefs.h
|
||||
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
||||
echo > confdefs.h
|
||||
|
||||
# A filename unique to this package, relative to the directory that
|
||||
# configure is in, which we can look for to find out if srcdir is correct.
|
||||
ac_unique_file=Makefile.in
|
||||
|
||||
# Find the source files, if location was not specified.
|
||||
if test -z "$srcdir"; then
|
||||
ac_srcdir_defaulted=yes
|
||||
# Try the directory containing this script, then its parent.
|
||||
ac_prog=$0
|
||||
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
|
||||
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
|
||||
srcdir=$ac_confdir
|
||||
if test ! -r $srcdir/$ac_unique_file; then
|
||||
srcdir=..
|
||||
fi
|
||||
else
|
||||
ac_srcdir_defaulted=no
|
||||
fi
|
||||
if test ! -r $srcdir/$ac_unique_file; then
|
||||
if test "$ac_srcdir_defaulted" = yes; then
|
||||
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
|
||||
else
|
||||
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
|
||||
fi
|
||||
fi
|
||||
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
|
||||
|
||||
# Prefer explicitly selected file to automatically selected ones.
|
||||
if test -z "$CONFIG_SITE"; then
|
||||
if test "x$prefix" != xNONE; then
|
||||
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
||||
else
|
||||
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
||||
fi
|
||||
fi
|
||||
for ac_site_file in $CONFIG_SITE; do
|
||||
if test -r "$ac_site_file"; then
|
||||
echo "loading site script $ac_site_file"
|
||||
. "$ac_site_file"
|
||||
fi
|
||||
done
|
||||
|
||||
if test -r "$cache_file"; then
|
||||
echo "loading cache $cache_file"
|
||||
. $cache_file
|
||||
else
|
||||
echo "creating cache $cache_file"
|
||||
> $cache_file
|
||||
fi
|
||||
|
||||
ac_ext=c
|
||||
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
|
||||
ac_cpp='$CPP $CPPFLAGS'
|
||||
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
|
||||
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
||||
cross_compiling=$ac_cv_prog_cc_cross
|
||||
|
||||
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
|
||||
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
|
||||
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
|
||||
ac_n= ac_c='
|
||||
' ac_t=' '
|
||||
else
|
||||
ac_n=-n ac_c= ac_t=
|
||||
fi
|
||||
else
|
||||
ac_n= ac_c='\c' ac_t=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
ac_aux_dir=
|
||||
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
||||
if test -f $ac_dir/install-sh; then
|
||||
ac_aux_dir=$ac_dir
|
||||
ac_install_sh="$ac_aux_dir/install-sh -c"
|
||||
break
|
||||
elif test -f $ac_dir/install.sh; then
|
||||
ac_aux_dir=$ac_dir
|
||||
ac_install_sh="$ac_aux_dir/install.sh -c"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if test -z "$ac_aux_dir"; then
|
||||
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
|
||||
fi
|
||||
ac_config_guess=$ac_aux_dir/config.guess
|
||||
ac_config_sub=$ac_aux_dir/config.sub
|
||||
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
|
||||
|
||||
# Find a good install program. We prefer a C program (faster),
|
||||
# so one script is as good as another. But avoid the broken or
|
||||
# incompatible versions:
|
||||
# SysV /etc/install, /usr/sbin/install
|
||||
# SunOS /usr/etc/install
|
||||
# IRIX /sbin/install
|
||||
# AIX /bin/install
|
||||
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
||||
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
||||
# ./install, which can be erroneously created by make from ./install.sh.
|
||||
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
|
||||
echo "configure:553: checking for a BSD compatible install" >&5
|
||||
if test -z "$INSTALL"; then
|
||||
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
|
||||
for ac_dir in $PATH; do
|
||||
# Account for people who put trailing slashes in PATH elements.
|
||||
case "$ac_dir/" in
|
||||
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
|
||||
*)
|
||||
# OSF1 and SCO ODT 3.0 have their own names for install.
|
||||
for ac_prog in ginstall installbsd scoinst install; do
|
||||
if test -f $ac_dir/$ac_prog; then
|
||||
if test $ac_prog = install &&
|
||||
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
|
||||
# AIX install. It has an incompatible calling convention.
|
||||
# OSF/1 installbsd also uses dspmsg, but is usable.
|
||||
:
|
||||
else
|
||||
ac_cv_path_install="$ac_dir/$ac_prog -c"
|
||||
break 2
|
||||
fi
|
||||
fi
|
||||
done
|
||||
;;
|
||||
esac
|
||||
done
|
||||
IFS="$ac_save_IFS"
|
||||
|
||||
fi
|
||||
if test "${ac_cv_path_install+set}" = set; then
|
||||
INSTALL="$ac_cv_path_install"
|
||||
else
|
||||
# As a last resort, use the slow shell script. We don't cache a
|
||||
# path for INSTALL within a source directory, because that will
|
||||
# break other packages using the cache if that directory is
|
||||
# removed, or if the path is relative.
|
||||
INSTALL="$ac_install_sh"
|
||||
fi
|
||||
fi
|
||||
echo "$ac_t""$INSTALL" 1>&6
|
||||
|
||||
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
||||
# It thinks the first close brace ends the variable substitution.
|
||||
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
||||
|
||||
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
||||
|
||||
|
||||
trap '' 1 2 15
|
||||
cat > confcache <<\EOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
# tests run on this system so they can be shared between configure
|
||||
# scripts and configure runs. It is not useful on other systems.
|
||||
# If it contains results you don't want to keep, you may remove or edit it.
|
||||
#
|
||||
# By default, configure uses ./config.cache as the cache file,
|
||||
# creating it if it does not exist already. You can give configure
|
||||
# the --cache-file=FILE option to use a different cache file; that is
|
||||
# what configure does when it calls configure scripts in
|
||||
# subdirectories, so they share the cache.
|
||||
# Giving --cache-file=/dev/null disables caching, for debugging configure.
|
||||
# config.status only pays attention to the cache file if you give it the
|
||||
# --recheck option to rerun configure.
|
||||
#
|
||||
EOF
|
||||
# The following way of writing the cache mishandles newlines in values,
|
||||
# but we know of no workaround that is simple, portable, and efficient.
|
||||
# So, don't put newlines in cache variables' values.
|
||||
# Ultrix sh set writes to stderr and can't be redirected directly,
|
||||
# and sets the high bit in the cache file unless we assign to the vars.
|
||||
(set) 2>&1 |
|
||||
case `(ac_space=' '; set) 2>&1` in
|
||||
*ac_space=\ *)
|
||||
# `set' does not quote correctly, so add quotes (double-quote substitution
|
||||
# turns \\\\ into \\, and sed turns \\ into \).
|
||||
sed -n \
|
||||
-e "s/'/'\\\\''/g" \
|
||||
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
|
||||
;;
|
||||
*)
|
||||
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
||||
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
|
||||
;;
|
||||
esac >> confcache
|
||||
if cmp -s $cache_file confcache; then
|
||||
:
|
||||
else
|
||||
if test -w $cache_file; then
|
||||
echo "updating cache $cache_file"
|
||||
cat confcache > $cache_file
|
||||
else
|
||||
echo "not updating unwritable cache $cache_file"
|
||||
fi
|
||||
fi
|
||||
rm -f confcache
|
||||
|
||||
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
|
||||
|
||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
||||
# Let make expand exec_prefix.
|
||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||
|
||||
# Any assignment to VPATH causes Sun make to only execute
|
||||
# the first set of double-colon rules, so remove it if not needed.
|
||||
# If there is a colon in the path, we need to keep it.
|
||||
if test "x$srcdir" = x.; then
|
||||
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
|
||||
fi
|
||||
|
||||
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
|
||||
|
||||
# Transform confdefs.h into DEFS.
|
||||
# Protect against shell expansion while executing Makefile rules.
|
||||
# Protect against Makefile macro expansion.
|
||||
cat > conftest.defs <<\EOF
|
||||
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
|
||||
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
|
||||
s%\[%\\&%g
|
||||
s%\]%\\&%g
|
||||
s%\$%$$%g
|
||||
EOF
|
||||
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
|
||||
rm -f conftest.defs
|
||||
|
||||
|
||||
# Without the "./", some shells look in PATH for config.status.
|
||||
: ${CONFIG_STATUS=./config.status}
|
||||
|
||||
echo creating $CONFIG_STATUS
|
||||
rm -f $CONFIG_STATUS
|
||||
cat > $CONFIG_STATUS <<EOF
|
||||
#! /bin/sh
|
||||
# Generated automatically by configure.
|
||||
# Run this file to recreate the current configuration.
|
||||
# This directory was configured as follows,
|
||||
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
||||
#
|
||||
# $0 $ac_configure_args
|
||||
#
|
||||
# Compiler output produced by configure, useful for debugging
|
||||
# configure, is in ./config.log if it exists.
|
||||
|
||||
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
|
||||
for ac_option
|
||||
do
|
||||
case "\$ac_option" in
|
||||
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
||||
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
|
||||
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
|
||||
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
|
||||
echo "$CONFIG_STATUS generated by autoconf version 2.12"
|
||||
exit 0 ;;
|
||||
-help | --help | --hel | --he | --h)
|
||||
echo "\$ac_cs_usage"; exit 0 ;;
|
||||
*) echo "\$ac_cs_usage"; exit 1 ;;
|
||||
esac
|
||||
done
|
||||
|
||||
ac_given_srcdir=$srcdir
|
||||
ac_given_INSTALL="$INSTALL"
|
||||
|
||||
trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
# Protect against being on the right side of a sed subst in config.status.
|
||||
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
|
||||
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
|
||||
$ac_vpsub
|
||||
$extrasub
|
||||
s%@CFLAGS@%$CFLAGS%g
|
||||
s%@CPPFLAGS@%$CPPFLAGS%g
|
||||
s%@CXXFLAGS@%$CXXFLAGS%g
|
||||
s%@DEFS@%$DEFS%g
|
||||
s%@LDFLAGS@%$LDFLAGS%g
|
||||
s%@LIBS@%$LIBS%g
|
||||
s%@exec_prefix@%$exec_prefix%g
|
||||
s%@prefix@%$prefix%g
|
||||
s%@program_transform_name@%$program_transform_name%g
|
||||
s%@bindir@%$bindir%g
|
||||
s%@sbindir@%$sbindir%g
|
||||
s%@libexecdir@%$libexecdir%g
|
||||
s%@datadir@%$datadir%g
|
||||
s%@sysconfdir@%$sysconfdir%g
|
||||
s%@sharedstatedir@%$sharedstatedir%g
|
||||
s%@localstatedir@%$localstatedir%g
|
||||
s%@libdir@%$libdir%g
|
||||
s%@includedir@%$includedir%g
|
||||
s%@oldincludedir@%$oldincludedir%g
|
||||
s%@infodir@%$infodir%g
|
||||
s%@mandir@%$mandir%g
|
||||
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
|
||||
s%@INSTALL_DATA@%$INSTALL_DATA%g
|
||||
|
||||
CEOF
|
||||
EOF
|
||||
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
||||
|
||||
# Split the substitutions into bite-sized pieces for seds with
|
||||
# small command number limits, like on Digital OSF/1 and HP-UX.
|
||||
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
|
||||
ac_file=1 # Number of current file.
|
||||
ac_beg=1 # First line for current file.
|
||||
ac_end=$ac_max_sed_cmds # Line after last line for current file.
|
||||
ac_more_lines=:
|
||||
ac_sed_cmds=""
|
||||
while $ac_more_lines; do
|
||||
if test $ac_beg -gt 1; then
|
||||
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
|
||||
else
|
||||
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
|
||||
fi
|
||||
if test ! -s conftest.s$ac_file; then
|
||||
ac_more_lines=false
|
||||
rm -f conftest.s$ac_file
|
||||
else
|
||||
if test -z "$ac_sed_cmds"; then
|
||||
ac_sed_cmds="sed -f conftest.s$ac_file"
|
||||
else
|
||||
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
|
||||
fi
|
||||
ac_file=`expr $ac_file + 1`
|
||||
ac_beg=$ac_end
|
||||
ac_end=`expr $ac_end + $ac_max_sed_cmds`
|
||||
fi
|
||||
done
|
||||
if test -z "$ac_sed_cmds"; then
|
||||
ac_sed_cmds=cat
|
||||
fi
|
||||
EOF
|
||||
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
||||
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
|
||||
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
||||
case "$ac_file" in
|
||||
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
|
||||
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
||||
*) ac_file_in="${ac_file}.in" ;;
|
||||
esac
|
||||
|
||||
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
|
||||
|
||||
# Remove last slash and all that follows it. Not all systems have dirname.
|
||||
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
|
||||
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
|
||||
# The file is in a subdirectory.
|
||||
test ! -d "$ac_dir" && mkdir "$ac_dir"
|
||||
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
|
||||
# A "../" for each directory in $ac_dir_suffix.
|
||||
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
|
||||
else
|
||||
ac_dir_suffix= ac_dots=
|
||||
fi
|
||||
|
||||
case "$ac_given_srcdir" in
|
||||
.) srcdir=.
|
||||
if test -z "$ac_dots"; then top_srcdir=.
|
||||
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
|
||||
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
|
||||
*) # Relative path.
|
||||
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
|
||||
top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
||||
esac
|
||||
|
||||
case "$ac_given_INSTALL" in
|
||||
[/$]*) INSTALL="$ac_given_INSTALL" ;;
|
||||
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
|
||||
esac
|
||||
|
||||
echo creating "$ac_file"
|
||||
rm -f "$ac_file"
|
||||
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
|
||||
case "$ac_file" in
|
||||
*Makefile*) ac_comsub="1i\\
|
||||
# $configure_input" ;;
|
||||
*) ac_comsub= ;;
|
||||
esac
|
||||
|
||||
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
|
||||
sed -e "$ac_comsub
|
||||
s%@configure_input@%$configure_input%g
|
||||
s%@srcdir@%$srcdir%g
|
||||
s%@top_srcdir@%$top_srcdir%g
|
||||
s%@INSTALL@%$INSTALL%g
|
||||
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
|
||||
fi; done
|
||||
rm -f conftest.s*
|
||||
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<EOF
|
||||
|
||||
EOF
|
||||
cat >> $CONFIG_STATUS <<\EOF
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
chmod +x $CONFIG_STATUS
|
||||
rm -fr confdefs* $ac_clean_files
|
||||
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
||||
|
||||
7
etc/configure.in
Normal file
7
etc/configure.in
Normal file
@@ -0,0 +1,7 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
AC_PREREQ(2.5)
|
||||
AC_INIT(Makefile.in)
|
||||
|
||||
AC_PROG_INSTALL
|
||||
|
||||
AC_OUTPUT(Makefile)
|
||||
893
etc/make-stds.texi
Normal file
893
etc/make-stds.texi
Normal file
@@ -0,0 +1,893 @@
|
||||
@comment This file is included by both standards.texi and make.texinfo.
|
||||
@comment It was broken out of standards.texi on 1/6/93 by roland.
|
||||
|
||||
@node Makefile Conventions
|
||||
@chapter Makefile Conventions
|
||||
@comment standards.texi does not print an index, but make.texinfo does.
|
||||
@cindex makefile, conventions for
|
||||
@cindex conventions for makefiles
|
||||
@cindex standards for makefiles
|
||||
|
||||
This
|
||||
@ifinfo
|
||||
node
|
||||
@end ifinfo
|
||||
@iftex
|
||||
@ifset CODESTD
|
||||
section
|
||||
@end ifset
|
||||
@ifclear CODESTD
|
||||
chapter
|
||||
@end ifclear
|
||||
@end iftex
|
||||
describes conventions for writing the Makefiles for GNU programs.
|
||||
|
||||
@menu
|
||||
* Makefile Basics:: General Conventions for Makefiles
|
||||
* Utilities in Makefiles:: Utilities in Makefiles
|
||||
* Command Variables:: Variables for Specifying Commands
|
||||
* Directory Variables:: Variables for Installation Directories
|
||||
* Standard Targets:: Standard Targets for Users
|
||||
* Install Command Categories:: Three categories of commands in the `install'
|
||||
rule: normal, pre-install and post-install.
|
||||
@end menu
|
||||
|
||||
@node Makefile Basics
|
||||
@section General Conventions for Makefiles
|
||||
|
||||
Every Makefile should contain this line:
|
||||
|
||||
@example
|
||||
SHELL = /bin/sh
|
||||
@end example
|
||||
|
||||
@noindent
|
||||
to avoid trouble on systems where the @code{SHELL} variable might be
|
||||
inherited from the environment. (This is never a problem with GNU
|
||||
@code{make}.)
|
||||
|
||||
Different @code{make} programs have incompatible suffix lists and
|
||||
implicit rules, and this sometimes creates confusion or misbehavior. So
|
||||
it is a good idea to set the suffix list explicitly using only the
|
||||
suffixes you need in the particular Makefile, like this:
|
||||
|
||||
@example
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o
|
||||
@end example
|
||||
|
||||
@noindent
|
||||
The first line clears out the suffix list, the second introduces all
|
||||
suffixes which may be subject to implicit rules in this Makefile.
|
||||
|
||||
Don't assume that @file{.} is in the path for command execution. When
|
||||
you need to run programs that are a part of your package during the
|
||||
make, please make sure that it uses @file{./} if the program is built as
|
||||
part of the make or @file{$(srcdir)/} if the file is an unchanging part
|
||||
of the source code. Without one of these prefixes, the current search
|
||||
path is used.
|
||||
|
||||
The distinction between @file{./} (the @dfn{build directory}) and
|
||||
@file{$(srcdir)/} (the @dfn{source directory}) is important because
|
||||
users can build in a separate directory using the @samp{--srcdir} option
|
||||
to @file{configure}. A rule of the form:
|
||||
|
||||
@smallexample
|
||||
foo.1 : foo.man sedscript
|
||||
sed -e sedscript foo.man > foo.1
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
will fail when the build directory is not the source directory, because
|
||||
@file{foo.man} and @file{sedscript} are in the the source directory.
|
||||
|
||||
When using GNU @code{make}, relying on @samp{VPATH} to find the source
|
||||
file will work in the case where there is a single dependency file,
|
||||
since the @code{make} automatic variable @samp{$<} will represent the
|
||||
source file wherever it is. (Many versions of @code{make} set @samp{$<}
|
||||
only in implicit rules.) A Makefile target like
|
||||
|
||||
@smallexample
|
||||
foo.o : bar.c
|
||||
$(CC) -I. -I$(srcdir) $(CFLAGS) -c bar.c -o foo.o
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
should instead be written as
|
||||
|
||||
@smallexample
|
||||
foo.o : bar.c
|
||||
$(CC) -I. -I$(srcdir) $(CFLAGS) -c $< -o $@@
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
in order to allow @samp{VPATH} to work correctly. When the target has
|
||||
multiple dependencies, using an explicit @samp{$(srcdir)} is the easiest
|
||||
way to make the rule work well. For example, the target above for
|
||||
@file{foo.1} is best written as:
|
||||
|
||||
@smallexample
|
||||
foo.1 : foo.man sedscript
|
||||
sed -e $(srcdir)/sedscript $(srcdir)/foo.man > $@@
|
||||
@end smallexample
|
||||
|
||||
GNU distributions usually contain some files which are not source
|
||||
files---for example, Info files, and the output from Autoconf, Automake,
|
||||
Bison or Flex. Since these files normally appear in the source
|
||||
directory, they should always appear in the source directory, not in the
|
||||
build directory. So Makefile rules to update them should put the
|
||||
updated files in the source directory.
|
||||
|
||||
However, if a file does not appear in the distribution, then the
|
||||
Makefile should not put it in the source directory, because building a
|
||||
program in ordinary circumstances should not modify the source directory
|
||||
in any way.
|
||||
|
||||
Try to make the build and installation targets, at least (and all their
|
||||
subtargets) work correctly with a parallel @code{make}.
|
||||
|
||||
@node Utilities in Makefiles
|
||||
@section Utilities in Makefiles
|
||||
|
||||
Write the Makefile commands (and any shell scripts, such as
|
||||
@code{configure}) to run in @code{sh}, not in @code{csh}. Don't use any
|
||||
special features of @code{ksh} or @code{bash}.
|
||||
|
||||
The @code{configure} script and the Makefile rules for building and
|
||||
installation should not use any utilities directly except these:
|
||||
|
||||
@c dd find
|
||||
@c gunzip gzip md5sum
|
||||
@c mkfifo mknod tee uname
|
||||
|
||||
@example
|
||||
cat cmp cp diff echo egrep expr false grep install-info
|
||||
ln ls mkdir mv pwd rm rmdir sed sleep sort tar test touch true
|
||||
@end example
|
||||
|
||||
The compression program @code{gzip} can be used in the @code{dist} rule.
|
||||
|
||||
Stick to the generally supported options for these programs. For
|
||||
example, don't use @samp{mkdir -p}, convenient as it may be, because
|
||||
most systems don't support it.
|
||||
|
||||
It is a good idea to avoid creating symbolic links in makefiles, since a
|
||||
few systems don't support them.
|
||||
|
||||
The Makefile rules for building and installation can also use compilers
|
||||
and related programs, but should do so via @code{make} variables so that the
|
||||
user can substitute alternatives. Here are some of the programs we
|
||||
mean:
|
||||
|
||||
@example
|
||||
ar bison cc flex install ld ldconfig lex
|
||||
make makeinfo ranlib texi2dvi yacc
|
||||
@end example
|
||||
|
||||
Use the following @code{make} variables to run those programs:
|
||||
|
||||
@example
|
||||
$(AR) $(BISON) $(CC) $(FLEX) $(INSTALL) $(LD) $(LDCONFIG) $(LEX)
|
||||
$(MAKE) $(MAKEINFO) $(RANLIB) $(TEXI2DVI) $(YACC)
|
||||
@end example
|
||||
|
||||
When you use @code{ranlib} or @code{ldconfig}, you should make sure
|
||||
nothing bad happens if the system does not have the program in question.
|
||||
Arrange to ignore an error from that command, and print a message before
|
||||
the command to tell the user that failure of this command does not mean
|
||||
a problem. (The Autoconf @samp{AC_PROG_RANLIB} macro can help with
|
||||
this.)
|
||||
|
||||
If you use symbolic links, you should implement a fallback for systems
|
||||
that don't have symbolic links.
|
||||
|
||||
Additional utilities that can be used via Make variables are:
|
||||
|
||||
@example
|
||||
chgrp chmod chown mknod
|
||||
@end example
|
||||
|
||||
It is ok to use other utilities in Makefile portions (or scripts)
|
||||
intended only for particular systems where you know those utilities
|
||||
exist.
|
||||
|
||||
@node Command Variables
|
||||
@section Variables for Specifying Commands
|
||||
|
||||
Makefiles should provide variables for overriding certain commands, options,
|
||||
and so on.
|
||||
|
||||
In particular, you should run most utility programs via variables.
|
||||
Thus, if you use Bison, have a variable named @code{BISON} whose default
|
||||
value is set with @samp{BISON = bison}, and refer to it with
|
||||
@code{$(BISON)} whenever you need to use Bison.
|
||||
|
||||
File management utilities such as @code{ln}, @code{rm}, @code{mv}, and
|
||||
so on, need not be referred to through variables in this way, since users
|
||||
don't need to replace them with other programs.
|
||||
|
||||
Each program-name variable should come with an options variable that is
|
||||
used to supply options to the program. Append @samp{FLAGS} to the
|
||||
program-name variable name to get the options variable name---for
|
||||
example, @code{BISONFLAGS}. (The name @code{CFLAGS} is an exception to
|
||||
this rule, but we keep it because it is standard.) Use @code{CPPFLAGS}
|
||||
in any compilation command that runs the preprocessor, and use
|
||||
@code{LDFLAGS} in any compilation command that does linking as well as
|
||||
in any direct use of @code{ld}.
|
||||
|
||||
If there are C compiler options that @emph{must} be used for proper
|
||||
compilation of certain files, do not include them in @code{CFLAGS}.
|
||||
Users expect to be able to specify @code{CFLAGS} freely themselves.
|
||||
Instead, arrange to pass the necessary options to the C compiler
|
||||
independently of @code{CFLAGS}, by writing them explicitly in the
|
||||
compilation commands or by defining an implicit rule, like this:
|
||||
|
||||
@smallexample
|
||||
CFLAGS = -g
|
||||
ALL_CFLAGS = -I. $(CFLAGS)
|
||||
.c.o:
|
||||
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
|
||||
@end smallexample
|
||||
|
||||
Do include the @samp{-g} option in @code{CFLAGS}, because that is not
|
||||
@emph{required} for proper compilation. You can consider it a default
|
||||
that is only recommended. If the package is set up so that it is
|
||||
compiled with GCC by default, then you might as well include @samp{-O}
|
||||
in the default value of @code{CFLAGS} as well.
|
||||
|
||||
Put @code{CFLAGS} last in the compilation command, after other variables
|
||||
containing compiler options, so the user can use @code{CFLAGS} to
|
||||
override the others.
|
||||
|
||||
Every Makefile should define the variable @code{INSTALL}, which is the
|
||||
basic command for installing a file into the system.
|
||||
|
||||
Every Makefile should also define the variables @code{INSTALL_PROGRAM}
|
||||
and @code{INSTALL_DATA}. (The default for each of these should be
|
||||
@code{$(INSTALL)}.) Then it should use those variables as the commands
|
||||
for actual installation, for executables and nonexecutables
|
||||
respectively. Use these variables as follows:
|
||||
|
||||
@example
|
||||
$(INSTALL_PROGRAM) foo $(bindir)/foo
|
||||
$(INSTALL_DATA) libfoo.a $(libdir)/libfoo.a
|
||||
@end example
|
||||
|
||||
@noindent
|
||||
Always use a file name, not a directory name, as the second argument of
|
||||
the installation commands. Use a separate command for each file to be
|
||||
installed.
|
||||
|
||||
@node Directory Variables
|
||||
@section Variables for Installation Directories
|
||||
|
||||
Installation directories should always be named by variables, so it is
|
||||
easy to install in a nonstandard place. The standard names for these
|
||||
variables are described below. They are based on a standard filesystem
|
||||
layout; variants of it are used in SVR4, 4.4BSD, Linux, Ultrix v4, and
|
||||
other modern operating systems.
|
||||
|
||||
These two variables set the root for the installation. All the other
|
||||
installation directories should be subdirectories of one of these two,
|
||||
and nothing should be directly installed into these two directories.
|
||||
|
||||
@table @samp
|
||||
@item prefix
|
||||
A prefix used in constructing the default values of the variables listed
|
||||
below. The default value of @code{prefix} should be @file{/usr/local}.
|
||||
When building the complete GNU system, the prefix will be empty and
|
||||
@file{/usr} will be a symbolic link to @file{/}.
|
||||
(If you are using Autoconf, write it as @samp{@@prefix@@}.)
|
||||
|
||||
@item exec_prefix
|
||||
A prefix used in constructing the default values of some of the
|
||||
variables listed below. The default value of @code{exec_prefix} should
|
||||
be @code{$(prefix)}.
|
||||
(If you are using Autoconf, write it as @samp{@@exec_prefix@@}.)
|
||||
|
||||
Generally, @code{$(exec_prefix)} is used for directories that contain
|
||||
machine-specific files (such as executables and subroutine libraries),
|
||||
while @code{$(prefix)} is used directly for other directories.
|
||||
@end table
|
||||
|
||||
Executable programs are installed in one of the following directories.
|
||||
|
||||
@table @samp
|
||||
@item bindir
|
||||
The directory for installing executable programs that users can run.
|
||||
This should normally be @file{/usr/local/bin}, but write it as
|
||||
@file{$(exec_prefix)/bin}.
|
||||
(If you are using Autoconf, write it as @samp{@@bindir@@}.)
|
||||
|
||||
@item sbindir
|
||||
The directory for installing executable programs that can be run from
|
||||
the shell, but are only generally useful to system administrators. This
|
||||
should normally be @file{/usr/local/sbin}, but write it as
|
||||
@file{$(exec_prefix)/sbin}.
|
||||
(If you are using Autoconf, write it as @samp{@@sbindir@@}.)
|
||||
|
||||
@item libexecdir
|
||||
@comment This paragraph adjusted to avoid overfull hbox --roland 5jul94
|
||||
The directory for installing executable programs to be run by other
|
||||
programs rather than by users. This directory should normally be
|
||||
@file{/usr/local/libexec}, but write it as @file{$(exec_prefix)/libexec}.
|
||||
(If you are using Autoconf, write it as @samp{@@libexecdir@@}.)
|
||||
@end table
|
||||
|
||||
Data files used by the program during its execution are divided into
|
||||
categories in two ways.
|
||||
|
||||
@itemize @bullet
|
||||
@item
|
||||
Some files are normally modified by programs; others are never normally
|
||||
modified (though users may edit some of these).
|
||||
|
||||
@item
|
||||
Some files are architecture-independent and can be shared by all
|
||||
machines at a site; some are architecture-dependent and can be shared
|
||||
only by machines of the same kind and operating system; others may never
|
||||
be shared between two machines.
|
||||
@end itemize
|
||||
|
||||
This makes for six different possibilities. However, we want to
|
||||
discourage the use of architecture-dependent files, aside from object
|
||||
files and libraries. It is much cleaner to make other data files
|
||||
architecture-independent, and it is generally not hard.
|
||||
|
||||
Therefore, here are the variables Makefiles should use to specify
|
||||
directories:
|
||||
|
||||
@table @samp
|
||||
@item datadir
|
||||
The directory for installing read-only architecture independent data
|
||||
files. This should normally be @file{/usr/local/share}, but write it as
|
||||
@file{$(prefix)/share}.
|
||||
(If you are using Autoconf, write it as @samp{@@datadir@@}.)
|
||||
As a special exception, see @file{$(infodir)}
|
||||
and @file{$(includedir)} below.
|
||||
|
||||
@item sysconfdir
|
||||
The directory for installing read-only data files that pertain to a
|
||||
single machine--that is to say, files for configuring a host. Mailer
|
||||
and network configuration files, @file{/etc/passwd}, and so forth belong
|
||||
here. All the files in this directory should be ordinary ASCII text
|
||||
files. This directory should normally be @file{/usr/local/etc}, but
|
||||
write it as @file{$(prefix)/etc}.
|
||||
(If you are using Autoconf, write it as @samp{@@sysconfdir@@}.)
|
||||
|
||||
@c rewritten to avoid overfull hbox --tower
|
||||
Do not install executables
|
||||
@c here
|
||||
in this directory (they probably
|
||||
belong in @file{$(libexecdir)} or @file{$(sbindir)}). Also do not
|
||||
install files that are modified in the normal course of their use
|
||||
(programs whose purpose is to change the configuration of the system
|
||||
excluded). Those probably belong in @file{$(localstatedir)}.
|
||||
|
||||
@item sharedstatedir
|
||||
The directory for installing architecture-independent data files which
|
||||
the programs modify while they run. This should normally be
|
||||
@file{/usr/local/com}, but write it as @file{$(prefix)/com}.
|
||||
(If you are using Autoconf, write it as @samp{@@sharedstatedir@@}.)
|
||||
|
||||
@item localstatedir
|
||||
The directory for installing data files which the programs modify while
|
||||
they run, and that pertain to one specific machine. Users should never
|
||||
need to modify files in this directory to configure the package's
|
||||
operation; put such configuration information in separate files that go
|
||||
in @file{$(datadir)} or @file{$(sysconfdir)}. @file{$(localstatedir)}
|
||||
should normally be @file{/usr/local/var}, but write it as
|
||||
@file{$(prefix)/var}.
|
||||
(If you are using Autoconf, write it as @samp{@@localstatedir@@}.)
|
||||
|
||||
@item libdir
|
||||
The directory for object files and libraries of object code. Do not
|
||||
install executables here, they probably ought to go in @file{$(libexecdir)}
|
||||
instead. The value of @code{libdir} should normally be
|
||||
@file{/usr/local/lib}, but write it as @file{$(exec_prefix)/lib}.
|
||||
(If you are using Autoconf, write it as @samp{@@libdir@@}.)
|
||||
|
||||
@item infodir
|
||||
The directory for installing the Info files for this package. By
|
||||
default, it should be @file{/usr/local/info}, but it should be written
|
||||
as @file{$(prefix)/info}.
|
||||
(If you are using Autoconf, write it as @samp{@@infodir@@}.)
|
||||
|
||||
@item lispdir
|
||||
The directory for installing any Emacs Lisp files in this package. By
|
||||
default, it should be @file{/usr/local/share/emacs/site-lisp}, but it
|
||||
should be written as @file{$(prefix)/share/emacs/site-lisp}.
|
||||
|
||||
If you are using Autoconf, write the default as @samp{@@lispdir@@}.
|
||||
In order to make @samp{@@lispdir@@} work, you need the following lines
|
||||
in your @file{configure.in} file:
|
||||
|
||||
@example
|
||||
lispdir='$@{datadir@}/emacs/site-lisp'
|
||||
AC_SUBST(lispdir)
|
||||
@end example
|
||||
|
||||
@item includedir
|
||||
@c rewritten to avoid overfull hbox --roland
|
||||
The directory for installing header files to be included by user
|
||||
programs with the C @samp{#include} preprocessor directive. This
|
||||
should normally be @file{/usr/local/include}, but write it as
|
||||
@file{$(prefix)/include}.
|
||||
(If you are using Autoconf, write it as @samp{@@includedir@@}.)
|
||||
|
||||
Most compilers other than GCC do not look for header files in
|
||||
@file{/usr/local/include}. So installing the header files this way is
|
||||
only useful with GCC. Sometimes this is not a problem because some
|
||||
libraries are only really intended to work with GCC. But some libraries
|
||||
are intended to work with other compilers. They should install their
|
||||
header files in two places, one specified by @code{includedir} and one
|
||||
specified by @code{oldincludedir}.
|
||||
|
||||
@item oldincludedir
|
||||
The directory for installing @samp{#include} header files for use with
|
||||
compilers other than GCC. This should normally be @file{/usr/include}.
|
||||
(If you are using Autoconf, you can write it as @samp{@@oldincludedir@@}.)
|
||||
|
||||
The Makefile commands should check whether the value of
|
||||
@code{oldincludedir} is empty. If it is, they should not try to use
|
||||
it; they should cancel the second installation of the header files.
|
||||
|
||||
A package should not replace an existing header in this directory unless
|
||||
the header came from the same package. Thus, if your Foo package
|
||||
provides a header file @file{foo.h}, then it should install the header
|
||||
file in the @code{oldincludedir} directory if either (1) there is no
|
||||
@file{foo.h} there or (2) the @file{foo.h} that exists came from the Foo
|
||||
package.
|
||||
|
||||
To tell whether @file{foo.h} came from the Foo package, put a magic
|
||||
string in the file---part of a comment---and @code{grep} for that string.
|
||||
@end table
|
||||
|
||||
Unix-style man pages are installed in one of the following:
|
||||
|
||||
@table @samp
|
||||
@item mandir
|
||||
The top-level directory for installing the man pages (if any) for this
|
||||
package. It will normally be @file{/usr/local/man}, but you should
|
||||
write it as @file{$(prefix)/man}.
|
||||
(If you are using Autoconf, write it as @samp{@@mandir@@}.)
|
||||
|
||||
@item man1dir
|
||||
The directory for installing section 1 man pages. Write it as
|
||||
@file{$(mandir)/man1}.
|
||||
@item man2dir
|
||||
The directory for installing section 2 man pages. Write it as
|
||||
@file{$(mandir)/man2}
|
||||
@item @dots{}
|
||||
|
||||
@strong{Don't make the primary documentation for any GNU software be a
|
||||
man page. Write a manual in Texinfo instead. Man pages are just for
|
||||
the sake of people running GNU software on Unix, which is a secondary
|
||||
application only.}
|
||||
|
||||
@item manext
|
||||
The file name extension for the installed man page. This should contain
|
||||
a period followed by the appropriate digit; it should normally be @samp{.1}.
|
||||
|
||||
@item man1ext
|
||||
The file name extension for installed section 1 man pages.
|
||||
@item man2ext
|
||||
The file name extension for installed section 2 man pages.
|
||||
@item @dots{}
|
||||
Use these names instead of @samp{manext} if the package needs to install man
|
||||
pages in more than one section of the manual.
|
||||
@end table
|
||||
|
||||
And finally, you should set the following variable:
|
||||
|
||||
@table @samp
|
||||
@item srcdir
|
||||
The directory for the sources being compiled. The value of this
|
||||
variable is normally inserted by the @code{configure} shell script.
|
||||
(If you are using Autconf, use @samp{srcdir = @@srcdir@@}.)
|
||||
@end table
|
||||
|
||||
For example:
|
||||
|
||||
@smallexample
|
||||
@c I have changed some of the comments here slightly to fix an overfull
|
||||
@c hbox, so the make manual can format correctly. --roland
|
||||
# Common prefix for installation directories.
|
||||
# NOTE: This directory must exist when you start the install.
|
||||
prefix = /usr/local
|
||||
exec_prefix = $(prefix)
|
||||
# Where to put the executable for the command `gcc'.
|
||||
bindir = $(exec_prefix)/bin
|
||||
# Where to put the directories used by the compiler.
|
||||
libexecdir = $(exec_prefix)/libexec
|
||||
# Where to put the Info files.
|
||||
infodir = $(prefix)/info
|
||||
@end smallexample
|
||||
|
||||
If your program installs a large number of files into one of the
|
||||
standard user-specified directories, it might be useful to group them
|
||||
into a subdirectory particular to that program. If you do this, you
|
||||
should write the @code{install} rule to create these subdirectories.
|
||||
|
||||
Do not expect the user to include the subdirectory name in the value of
|
||||
any of the variables listed above. The idea of having a uniform set of
|
||||
variable names for installation directories is to enable the user to
|
||||
specify the exact same values for several different GNU packages. In
|
||||
order for this to be useful, all the packages must be designed so that
|
||||
they will work sensibly when the user does so.
|
||||
|
||||
@node Standard Targets
|
||||
@section Standard Targets for Users
|
||||
|
||||
All GNU programs should have the following targets in their Makefiles:
|
||||
|
||||
@table @samp
|
||||
@item all
|
||||
Compile the entire program. This should be the default target. This
|
||||
target need not rebuild any documentation files; Info files should
|
||||
normally be included in the distribution, and DVI files should be made
|
||||
only when explicitly asked for.
|
||||
|
||||
By default, the Make rules should compile and link with @samp{-g}, so
|
||||
that executable programs have debugging symbols. Users who don't mind
|
||||
being helpless can strip the executables later if they wish.
|
||||
|
||||
@item install
|
||||
Compile the program and copy the executables, libraries, and so on to
|
||||
the file names where they should reside for actual use. If there is a
|
||||
simple test to verify that a program is properly installed, this target
|
||||
should run that test.
|
||||
|
||||
Do not strip executables when installing them. Devil-may-care users can
|
||||
use the @code{install-strip} target to do that.
|
||||
|
||||
If possible, write the @code{install} target rule so that it does not
|
||||
modify anything in the directory where the program was built, provided
|
||||
@samp{make all} has just been done. This is convenient for building the
|
||||
program under one user name and installing it under another.
|
||||
|
||||
The commands should create all the directories in which files are to be
|
||||
installed, if they don't already exist. This includes the directories
|
||||
specified as the values of the variables @code{prefix} and
|
||||
@code{exec_prefix}, as well as all subdirectories that are needed.
|
||||
One way to do this is by means of an @code{installdirs} target
|
||||
as described below.
|
||||
|
||||
Use @samp{-} before any command for installing a man page, so that
|
||||
@code{make} will ignore any errors. This is in case there are systems
|
||||
that don't have the Unix man page documentation system installed.
|
||||
|
||||
The way to install Info files is to copy them into @file{$(infodir)}
|
||||
with @code{$(INSTALL_DATA)} (@pxref{Command Variables}), and then run
|
||||
the @code{install-info} program if it is present. @code{install-info}
|
||||
is a program that edits the Info @file{dir} file to add or update the
|
||||
menu entry for the given Info file; it is part of the Texinfo package.
|
||||
Here is a sample rule to install an Info file:
|
||||
|
||||
@comment This example has been carefully formatted for the Make manual.
|
||||
@comment Please do not reformat it without talking to roland@gnu.ai.mit.edu.
|
||||
@smallexample
|
||||
$(infodir)/foo.info: foo.info
|
||||
$(POST_INSTALL)
|
||||
# There may be a newer info file in . than in srcdir.
|
||||
-if test -f foo.info; then d=.; \
|
||||
else d=$(srcdir); fi; \
|
||||
$(INSTALL_DATA) $$d/foo.info $@@; \
|
||||
# Run install-info only if it exists.
|
||||
# Use `if' instead of just prepending `-' to the
|
||||
# line so we notice real errors from install-info.
|
||||
# We use `$(SHELL) -c' because some shells do not
|
||||
# fail gracefully when there is an unknown command.
|
||||
if $(SHELL) -c 'install-info --version' \
|
||||
>/dev/null 2>&1; then \
|
||||
install-info --dir-file=$(infodir)/dir \
|
||||
$(infodir)/foo.info; \
|
||||
else true; fi
|
||||
@end smallexample
|
||||
|
||||
When writing the @code{install} target, you must classify all the
|
||||
commands into three categories: normal ones, @dfn{pre-installation}
|
||||
commands and @dfn{post-installation} commands. @xref{Install Command
|
||||
Categories}.
|
||||
|
||||
@item uninstall
|
||||
Delete all the installed files---the copies that the @samp{install}
|
||||
target creates.
|
||||
|
||||
This rule should not modify the directories where compilation is done,
|
||||
only the directories where files are installed.
|
||||
|
||||
The uninstallation commands are divided into three categories, just like
|
||||
the installation commands. @xref{Install Command Categories}.
|
||||
|
||||
@item install-strip
|
||||
Like @code{install}, but strip the executable files while installing
|
||||
them. In many cases, the definition of this target can be very simple:
|
||||
|
||||
@smallexample
|
||||
install-strip:
|
||||
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \
|
||||
install
|
||||
@end smallexample
|
||||
|
||||
Normally we do not recommend stripping an executable unless you are sure
|
||||
the program has no bugs. However, it can be reasonable to install a
|
||||
stripped executable for actual execution while saving the unstripped
|
||||
executable elsewhere in case there is a bug.
|
||||
|
||||
@comment The gratuitous blank line here is to make the table look better
|
||||
@comment in the printed Make manual. Please leave it in.
|
||||
@item clean
|
||||
|
||||
Delete all files from the current directory that are normally created by
|
||||
building the program. Don't delete the files that record the
|
||||
configuration. Also preserve files that could be made by building, but
|
||||
normally aren't because the distribution comes with them.
|
||||
|
||||
Delete @file{.dvi} files here if they are not part of the distribution.
|
||||
|
||||
@item distclean
|
||||
Delete all files from the current directory that are created by
|
||||
configuring or building the program. If you have unpacked the source
|
||||
and built the program without creating any other files, @samp{make
|
||||
distclean} should leave only the files that were in the distribution.
|
||||
|
||||
@item mostlyclean
|
||||
Like @samp{clean}, but may refrain from deleting a few files that people
|
||||
normally don't want to recompile. For example, the @samp{mostlyclean}
|
||||
target for GCC does not delete @file{libgcc.a}, because recompiling it
|
||||
is rarely necessary and takes a lot of time.
|
||||
|
||||
@item maintainer-clean
|
||||
Delete almost everything from the current directory that can be
|
||||
reconstructed with this Makefile. This typically includes everything
|
||||
deleted by @code{distclean}, plus more: C source files produced by
|
||||
Bison, tags tables, Info files, and so on.
|
||||
|
||||
The reason we say ``almost everything'' is that running the command
|
||||
@samp{make maintainer-clean} should not delete @file{configure} even if
|
||||
@file{configure} can be remade using a rule in the Makefile. More generally,
|
||||
@samp{make maintainer-clean} should not delete anything that needs to
|
||||
exist in order to run @file{configure} and then begin to build the
|
||||
program. This is the only exception; @code{maintainer-clean} should
|
||||
delete everything else that can be rebuilt.
|
||||
|
||||
The @samp{maintainer-clean} target is intended to be used by a maintainer of
|
||||
the package, not by ordinary users. You may need special tools to
|
||||
reconstruct some of the files that @samp{make maintainer-clean} deletes.
|
||||
Since these files are normally included in the distribution, we don't
|
||||
take care to make them easy to reconstruct. If you find you need to
|
||||
unpack the full distribution again, don't blame us.
|
||||
|
||||
To help make users aware of this, the commands for the special
|
||||
@code{maintainer-clean} target should start with these two:
|
||||
|
||||
@smallexample
|
||||
@@echo 'This command is intended for maintainers to use; it'
|
||||
@@echo 'deletes files that may need special tools to rebuild.'
|
||||
@end smallexample
|
||||
|
||||
@item TAGS
|
||||
Update a tags table for this program.
|
||||
@c ADR: how?
|
||||
|
||||
@item info
|
||||
Generate any Info files needed. The best way to write the rules is as
|
||||
follows:
|
||||
|
||||
@smallexample
|
||||
info: foo.info
|
||||
|
||||
foo.info: foo.texi chap1.texi chap2.texi
|
||||
$(MAKEINFO) $(srcdir)/foo.texi
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
You must define the variable @code{MAKEINFO} in the Makefile. It should
|
||||
run the @code{makeinfo} program, which is part of the Texinfo
|
||||
distribution.
|
||||
|
||||
Normally a GNU distribution comes with Info files, and that means the
|
||||
Info files are present in the source directory. Therefore, the Make
|
||||
rule for an info file should update it in the source directory. When
|
||||
users build the package, ordinarily Make will not update the Info files
|
||||
because they will already be up to date.
|
||||
|
||||
@item dvi
|
||||
Generate DVI files for all Texinfo documentation.
|
||||
For example:
|
||||
|
||||
@smallexample
|
||||
dvi: foo.dvi
|
||||
|
||||
foo.dvi: foo.texi chap1.texi chap2.texi
|
||||
$(TEXI2DVI) $(srcdir)/foo.texi
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
You must define the variable @code{TEXI2DVI} in the Makefile. It should
|
||||
run the program @code{texi2dvi}, which is part of the Texinfo
|
||||
distribution.@footnote{@code{texi2dvi} uses @TeX{} to do the real work
|
||||
of formatting. @TeX{} is not distributed with Texinfo.} Alternatively,
|
||||
write just the dependencies, and allow GNU @code{make} to provide the command.
|
||||
|
||||
@item dist
|
||||
Create a distribution tar file for this program. The tar file should be
|
||||
set up so that the file names in the tar file start with a subdirectory
|
||||
name which is the name of the package it is a distribution for. This
|
||||
name can include the version number.
|
||||
|
||||
For example, the distribution tar file of GCC version 1.40 unpacks into
|
||||
a subdirectory named @file{gcc-1.40}.
|
||||
|
||||
The easiest way to do this is to create a subdirectory appropriately
|
||||
named, use @code{ln} or @code{cp} to install the proper files in it, and
|
||||
then @code{tar} that subdirectory.
|
||||
|
||||
Compress the tar file file with @code{gzip}. For example, the actual
|
||||
distribution file for GCC version 1.40 is called @file{gcc-1.40.tar.gz}.
|
||||
|
||||
The @code{dist} target should explicitly depend on all non-source files
|
||||
that are in the distribution, to make sure they are up to date in the
|
||||
distribution.
|
||||
@ifset CODESTD
|
||||
@xref{Releases, , Making Releases}.
|
||||
@end ifset
|
||||
@ifclear CODESTD
|
||||
@xref{Releases, , Making Releases, standards, GNU Coding Standards}.
|
||||
@end ifclear
|
||||
|
||||
@item check
|
||||
Perform self-tests (if any). The user must build the program before
|
||||
running the tests, but need not install the program; you should write
|
||||
the self-tests so that they work when the program is built but not
|
||||
installed.
|
||||
@end table
|
||||
|
||||
The following targets are suggested as conventional names, for programs
|
||||
in which they are useful.
|
||||
|
||||
@table @code
|
||||
@item installcheck
|
||||
Perform installation tests (if any). The user must build and install
|
||||
the program before running the tests. You should not assume that
|
||||
@file{$(bindir)} is in the search path.
|
||||
|
||||
@item installdirs
|
||||
It's useful to add a target named @samp{installdirs} to create the
|
||||
directories where files are installed, and their parent directories.
|
||||
There is a script called @file{mkinstalldirs} which is convenient for
|
||||
this; you can find it in the Texinfo package.
|
||||
@c It's in /gd/gnu/lib/mkinstalldirs.
|
||||
You can use a rule like this:
|
||||
|
||||
@comment This has been carefully formatted to look decent in the Make manual.
|
||||
@comment Please be sure not to make it extend any further to the right.--roland
|
||||
@smallexample
|
||||
# Make sure all installation directories (e.g. $(bindir))
|
||||
# actually exist by making them if necessary.
|
||||
installdirs: mkinstalldirs
|
||||
$(srcdir)/mkinstalldirs $(bindir) $(datadir) \
|
||||
$(libdir) $(infodir) \
|
||||
$(mandir)
|
||||
@end smallexample
|
||||
|
||||
This rule should not modify the directories where compilation is done.
|
||||
It should do nothing but create installation directories.
|
||||
@end table
|
||||
|
||||
@node Install Command Categories
|
||||
@section Install Command Categories
|
||||
|
||||
@cindex pre-installation commands
|
||||
@cindex post-installation commands
|
||||
When writing the @code{install} target, you must classify all the
|
||||
commands into three categories: normal ones, @dfn{pre-installation}
|
||||
commands and @dfn{post-installation} commands.
|
||||
|
||||
Normal commands move files into their proper places, and set their
|
||||
modes. They may not alter any files except the ones that come entirely
|
||||
from the package they belong to.
|
||||
|
||||
Pre-installation and post-installation commands may alter other files;
|
||||
in particular, they can edit global configuration files or data bases.
|
||||
|
||||
Pre-installation commands are typically executed before the normal
|
||||
commands, and post-installation commands are typically run after the
|
||||
normal commands.
|
||||
|
||||
The most common use for a post-installation command is to run
|
||||
@code{install-info}. This cannot be done with a normal command, since
|
||||
it alters a file (the Info directory) which does not come entirely and
|
||||
solely from the package being installed. It is a post-installation
|
||||
command because it needs to be done after the normal command which
|
||||
installs the package's Info files.
|
||||
|
||||
Most programs don't need any pre-installation commands, but we have the
|
||||
feature just in case it is needed.
|
||||
|
||||
To classify the commands in the @code{install} rule into these three
|
||||
categories, insert @dfn{category lines} among them. A category line
|
||||
specifies the category for the commands that follow.
|
||||
|
||||
A category line consists of a tab and a reference to a special Make
|
||||
variable, plus an optional comment at the end. There are three
|
||||
variables you can use, one for each category; the variable name
|
||||
specifies the category. Category lines are no-ops in ordinary execution
|
||||
because these three Make variables are normally undefined (and you
|
||||
@emph{should not} define them in the makefile).
|
||||
|
||||
Here are the three possible category lines, each with a comment that
|
||||
explains what it means:
|
||||
|
||||
@smallexample
|
||||
$(PRE_INSTALL) # @r{Pre-install commands follow.}
|
||||
$(POST_INSTALL) # @r{Post-install commands follow.}
|
||||
$(NORMAL_INSTALL) # @r{Normal commands follow.}
|
||||
@end smallexample
|
||||
|
||||
If you don't use a category line at the beginning of the @code{install}
|
||||
rule, all the commands are classified as normal until the first category
|
||||
line. If you don't use any category lines, all the commands are
|
||||
classified as normal.
|
||||
|
||||
These are the category lines for @code{uninstall}:
|
||||
|
||||
@smallexample
|
||||
$(PRE_UNINSTALL) # @r{Pre-uninstall commands follow.}
|
||||
$(POST_UNINSTALL) # @r{Post-uninstall commands follow.}
|
||||
$(NORMAL_UNINSTALL) # @r{Normal commands follow.}
|
||||
@end smallexample
|
||||
|
||||
Typically, a pre-uninstall command would be used for deleting entries
|
||||
from the Info directory.
|
||||
|
||||
If the @code{install} or @code{uninstall} target has any dependencies
|
||||
which act as subroutines of installation, then you should start
|
||||
@emph{each} dependency's commands with a category line, and start the
|
||||
main target's commands with a category line also. This way, you can
|
||||
ensure that each command is placed in the right category regardless of
|
||||
which of the dependencies actually run.
|
||||
|
||||
Pre-installation and post-installation commands should not run any
|
||||
programs except for these:
|
||||
|
||||
@example
|
||||
[ basename bash cat chgrp chmod chown cmp cp dd diff echo
|
||||
egrep expand expr false fgrep find getopt grep gunzip gzip
|
||||
hostname install install-info kill ldconfig ln ls md5sum
|
||||
mkdir mkfifo mknod mv printenv pwd rm rmdir sed sort tee
|
||||
test touch true uname xargs yes
|
||||
@end example
|
||||
|
||||
@cindex binary packages
|
||||
The reason for distinguishing the commands in this way is for the sake
|
||||
of making binary packages. Typically a binary package contains all the
|
||||
executables and other files that need to be installed, and has its own
|
||||
method of installing them---so it does not need to run the normal
|
||||
installation commands. But installing the binary package does need to
|
||||
execute the pre-installation and post-installation commands.
|
||||
|
||||
Programs to build binary packages work by extracting the
|
||||
pre-installation and post-installation commands. Here is one way of
|
||||
extracting the pre-installation commands:
|
||||
|
||||
@smallexample
|
||||
make -n install -o all \
|
||||
PRE_INSTALL=pre-install \
|
||||
POST_INSTALL=post-install \
|
||||
NORMAL_INSTALL=normal-install \
|
||||
| gawk -f pre-install.awk
|
||||
@end smallexample
|
||||
|
||||
@noindent
|
||||
where the file @file{pre-install.awk} could contain this:
|
||||
|
||||
@smallexample
|
||||
$0 ~ /^\t[ \t]*(normal_install|post_install)[ \t]*$/ @{on = 0@}
|
||||
on @{print $0@}
|
||||
$0 ~ /^\t[ \t]*pre_install[ \t]*$/ @{on = 1@}
|
||||
@end smallexample
|
||||
|
||||
The resulting file of pre-installation commands is executed as a shell
|
||||
script as part of installing the binary package.
|
||||
3061
etc/standards.texi
Normal file
3061
etc/standards.texi
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,22 +0,0 @@
|
||||
;# New Alpha OpenVMS trampoline
|
||||
;#
|
||||
.set noreorder
|
||||
.set volatile
|
||||
.set noat
|
||||
.file 1 "tramp.s"
|
||||
.text
|
||||
.align 3
|
||||
.globl __tramp
|
||||
.ent __tramp
|
||||
__tramp..en:
|
||||
|
||||
.link
|
||||
.align 3
|
||||
__tramp:
|
||||
.pdesc __tramp..en,null
|
||||
.text
|
||||
ldq $1,24($27)
|
||||
ldq $27,16($27)
|
||||
ldq $28,8($27)
|
||||
jmp $31,($28),0
|
||||
.end __tramp
|
||||
@@ -1,96 +0,0 @@
|
||||
/* float.h for target with IEEE 32, 64 and 128 bit floating point formats */
|
||||
#ifndef _FLOAT_H_
|
||||
#define _FLOAT_H_
|
||||
/* Produced by enquire version 4.3, CWI, Amsterdam */
|
||||
|
||||
/* Radix of exponent representation */
|
||||
#undef FLT_RADIX
|
||||
#define FLT_RADIX 2
|
||||
/* Number of base-FLT_RADIX digits in the significand of a float */
|
||||
#undef FLT_MANT_DIG
|
||||
#define FLT_MANT_DIG 24
|
||||
/* Number of decimal digits of precision in a float */
|
||||
#undef FLT_DIG
|
||||
#define FLT_DIG 6
|
||||
/* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown */
|
||||
#undef FLT_ROUNDS
|
||||
#define FLT_ROUNDS 1
|
||||
/* Difference between 1.0 and the minimum float greater than 1.0 */
|
||||
#undef FLT_EPSILON
|
||||
#define FLT_EPSILON 1.19209290e-07F
|
||||
/* Minimum int x such that FLT_RADIX**(x-1) is a normalised float */
|
||||
#undef FLT_MIN_EXP
|
||||
#define FLT_MIN_EXP (-125)
|
||||
/* Minimum normalised float */
|
||||
#undef FLT_MIN
|
||||
#define FLT_MIN 1.17549435e-38F
|
||||
/* Minimum int x such that 10**x is a normalised float */
|
||||
#undef FLT_MIN_10_EXP
|
||||
#define FLT_MIN_10_EXP (-37)
|
||||
/* Maximum int x such that FLT_RADIX**(x-1) is a representable float */
|
||||
#undef FLT_MAX_EXP
|
||||
#define FLT_MAX_EXP 128
|
||||
/* Maximum float */
|
||||
#undef FLT_MAX
|
||||
#define FLT_MAX 3.40282347e+38F
|
||||
/* Maximum int x such that 10**x is a representable float */
|
||||
#undef FLT_MAX_10_EXP
|
||||
#define FLT_MAX_10_EXP 38
|
||||
|
||||
/* Number of base-FLT_RADIX digits in the significand of a double */
|
||||
#undef DBL_MANT_DIG
|
||||
#define DBL_MANT_DIG 53
|
||||
/* Number of decimal digits of precision in a double */
|
||||
#undef DBL_DIG
|
||||
#define DBL_DIG 15
|
||||
/* Difference between 1.0 and the minimum double greater than 1.0 */
|
||||
#undef DBL_EPSILON
|
||||
#define DBL_EPSILON 2.2204460492503131e-16
|
||||
/* Minimum int x such that FLT_RADIX**(x-1) is a normalised double */
|
||||
#undef DBL_MIN_EXP
|
||||
#define DBL_MIN_EXP (-1021)
|
||||
/* Minimum normalised double */
|
||||
#undef DBL_MIN
|
||||
#define DBL_MIN 2.2250738585072014e-308
|
||||
/* Minimum int x such that 10**x is a normalised double */
|
||||
#undef DBL_MIN_10_EXP
|
||||
#define DBL_MIN_10_EXP (-307)
|
||||
/* Maximum int x such that FLT_RADIX**(x-1) is a representable double */
|
||||
#undef DBL_MAX_EXP
|
||||
#define DBL_MAX_EXP 1024
|
||||
/* Maximum double */
|
||||
#undef DBL_MAX
|
||||
#define DBL_MAX 1.7976931348623157e+308
|
||||
/* Maximum int x such that 10**x is a representable double */
|
||||
#undef DBL_MAX_10_EXP
|
||||
#define DBL_MAX_10_EXP 308
|
||||
|
||||
/* Number of base-FLT_RADIX digits in the significand of a long double */
|
||||
#undef LDBL_MANT_DIG
|
||||
#define LDBL_MANT_DIG 113
|
||||
/* Number of decimal digits of precision in a long double */
|
||||
#undef LDBL_DIG
|
||||
#define LDBL_DIG 33
|
||||
/* Difference between 1.0 and the minimum long double greater than 1.0 */
|
||||
#undef LDBL_EPSILON
|
||||
#define LDBL_EPSILON 1.925929944387235853055977942584927319E-34L
|
||||
/* Minimum int x such that FLT_RADIX**(x-1) is a normalised long double */
|
||||
#undef LDBL_MIN_EXP
|
||||
#define LDBL_MIN_EXP (-16381)
|
||||
/* Minimum normalised long double */
|
||||
#undef LDBL_MIN
|
||||
#define LDBL_MIN 3.362103143112093506262677817321752603E-4932L
|
||||
/* Minimum int x such that 10**x is a normalised long double */
|
||||
#undef LDBL_MIN_10_EXP
|
||||
#define LDBL_MIN_10_EXP (-4931)
|
||||
/* Maximum int x such that FLT_RADIX**(x-1) is a representable long double */
|
||||
#undef LDBL_MAX_EXP
|
||||
#define LDBL_MAX_EXP 16384
|
||||
/* Maximum long double */
|
||||
#undef LDBL_MAX
|
||||
#define LDBL_MAX 1.189731495357231765085759326628007016E+4932L
|
||||
/* Maximum int x such that 10**x is a representable long double */
|
||||
#undef LDBL_MAX_10_EXP
|
||||
#define LDBL_MAX_10_EXP 4932
|
||||
|
||||
#endif /* _FLOAT_H_ */
|
||||
198
gcc/f/BUGS
Normal file
198
gcc/f/BUGS
Normal file
@@ -0,0 +1,198 @@
|
||||
This file lists known bugs in the GNU Fortran compiler. Copyright (C)
|
||||
1995, 1996 Free Software Foundation, Inc. You may copy, distribute,
|
||||
and modify it freely as long as you preserve this copyright notice and
|
||||
permission notice.
|
||||
|
||||
Bugs in GNU Fortran
|
||||
*******************
|
||||
|
||||
This section identifies bugs that `g77' *users* might run into.
|
||||
This includes bugs that are actually in the `gcc' back end (GBE) or in
|
||||
`libf2c', because those sets of code are at least somewhat under the
|
||||
control of (and necessarily intertwined with) `g77', so it isn't worth
|
||||
separating them out.
|
||||
|
||||
For information on bugs that might afflict people who configure,
|
||||
port, build, and install `g77', *Note Problems Installing::.
|
||||
|
||||
* Work is needed on the `SIGNAL()' intrinsic to ensure that pointers
|
||||
and integers are properly handled on all targets, including 64-bit
|
||||
machines.
|
||||
|
||||
* When using `-fugly-comma', `g77' assumes an extra `%VAL(0)'
|
||||
argument is to be passed to intrinsics taking no arguments, such
|
||||
as `IARGC()', which in turn reject such a call. Although this has
|
||||
been worked around for 0.5.18 due to changes in the handling of
|
||||
intrinsics, `g77' needs to do the ugly-argument-appending trick
|
||||
only for external-function invocation, as this would probably be
|
||||
more consistent with compilers that default to using that trick.
|
||||
|
||||
* Something about `g77''s straightforward handling of label
|
||||
references and definitions sometimes prevents the GBE from
|
||||
unrolling loops. Until this is solved, try inserting or removing
|
||||
`CONTINUE' statements as the terminal statement, using the `END DO'
|
||||
form instead, and so on. (Probably improved, but not wholly
|
||||
fixed, in 0.5.21.)
|
||||
|
||||
* The `g77' command itself should more faithfully process options
|
||||
the way the `gcc' command does. For example, `gcc' accepts
|
||||
abbreviated forms of long options, `g77' generally doesn't.
|
||||
|
||||
* Some confusion in diagnostics concerning failing `INCLUDE'
|
||||
statements from within `INCLUDE''d or `#include''d files.
|
||||
|
||||
* `g77' assumes that `INTEGER(KIND=1)' constants range from `-2**31'
|
||||
to `2**31-1' (the range for two's-complement 32-bit values),
|
||||
instead of determining their range from the actual range of the
|
||||
type for the configuration (and, someday, for the constant).
|
||||
|
||||
Further, it generally doesn't implement the handling of constants
|
||||
very well in that it makes assumptions about the configuration
|
||||
that it no longer makes regarding variables (types).
|
||||
|
||||
Included with this item is the fact that `g77' doesn't recognize
|
||||
that, on IEEE-754/854-compliant systems, `0./0.' should produce a
|
||||
NaN and no warning instead of the value `0.' and a warning. This
|
||||
is to be fixed in version 0.6, when `g77' will use the `gcc' back
|
||||
end's constant-handling mechanisms to replace its own.
|
||||
|
||||
* `g77' uses way too much memory and CPU time to process large
|
||||
aggregate areas having any initialized elements.
|
||||
|
||||
For example, `REAL A(1000000)' followed by `DATA A(1)/1/' takes up
|
||||
way too much time and space, including the size of the generated
|
||||
assembler file. This is to be mitigated somewhat in version 0.6.
|
||||
|
||||
Version 0.5.18 improves cases like this--specifically, cases of
|
||||
*sparse* initialization that leave large, contiguous areas
|
||||
uninitialized--significantly. However, even with the
|
||||
improvements, these cases still require too much memory and CPU
|
||||
time.
|
||||
|
||||
(Version 0.5.18 also improves cases where the initial values are
|
||||
zero to a much greater degree, so if the above example ends with
|
||||
`DATA A(1)/0/', the compile-time performance will be about as good
|
||||
as it will ever get, aside from unrelated improvements to the
|
||||
compiler.)
|
||||
|
||||
Note that `g77' does display a warning message to notify the user
|
||||
before the compiler appears to hang. *Note Initialization of
|
||||
Large Aggregate Areas: Large Initialization, for information on
|
||||
how to change the point at which `g77' decides to issue this
|
||||
warning.
|
||||
|
||||
* `g77' doesn't emit variable and array members of common blocks for
|
||||
use with a debugger (the `-g' command-line option). The code is
|
||||
present to do this, but doesn't work with at least one debug
|
||||
format--perhaps it works with others. And it turns out there's a
|
||||
similar bug for local equivalence areas, so that has been disabled
|
||||
as well.
|
||||
|
||||
As of Version 0.5.19, a temporary kludge solution is provided
|
||||
whereby some rudimentary information on a member is written as a
|
||||
string that is the member's value as a character string.
|
||||
|
||||
*Note Options for Code Generation Conventions: Code Gen Options,
|
||||
for information on the `-fdebug-kludge' option.
|
||||
|
||||
* When debugging, after starting up the debugger but before being
|
||||
able to see the source code for the main program unit, the user
|
||||
must currently set a breakpoint at `MAIN__' (or `MAIN___' or
|
||||
`MAIN_' if `MAIN__' doesn't exist) and run the program until it
|
||||
hits the breakpoint. At that point, the main program unit is
|
||||
activated and about to execute its first executable statement, but
|
||||
that's the state in which the debugger should start up, as is the
|
||||
case for languages like C.
|
||||
|
||||
* Debugging `g77'-compiled code using debuggers other than `gdb' is
|
||||
likely not to work.
|
||||
|
||||
Getting `g77' and `gdb' to work together is a known
|
||||
problem--getting `g77' to work properly with other debuggers, for
|
||||
which source code often is unavailable to `g77' developers, seems
|
||||
like a much larger, unknown problem, and is a lower priority than
|
||||
making `g77' and `gdb' work together properly.
|
||||
|
||||
On the other hand, information about problems other debuggers have
|
||||
with `g77' output might make it easier to properly fix `g77', and
|
||||
perhaps even improve `gdb', so it is definitely welcome. Such
|
||||
information might even lead to all relevant products working
|
||||
together properly sooner.
|
||||
|
||||
* `g77' currently inserts needless padding for things like `COMMON
|
||||
A,IPAD' where `A' is `CHARACTER*1' and `IPAD' is `INTEGER(KIND=1)'
|
||||
on machines like x86, because the back end insists that `IPAD' be
|
||||
aligned to a 4-byte boundary, but the processor has no such
|
||||
requirement (though it's good for performance).
|
||||
|
||||
It is possible that this is not a real bug, and could be considered
|
||||
a performance feature, but it might be important to provide the
|
||||
ability to Fortran code to specify minimum padding for aggregate
|
||||
areas such as common blocks--and, certainly, there is the
|
||||
potential, with the current setup, for interface differences in
|
||||
the way such areas are laid out between `g77' and other compilers.
|
||||
|
||||
* Some crashes occur when compiling under Solaris on x86 machines.
|
||||
|
||||
Nothing has been heard about any such problems for some time, so
|
||||
this is considering a closed item as of 0.5.20. Please submit any
|
||||
bug reports pertinent to `g77''s support for Solaris/x86 systems.
|
||||
|
||||
* RS/6000 support is not complete as of the gcc 2.6.3 back end. The
|
||||
2.7.0 back end appears to fix this problem, or at least mitigate
|
||||
it significantly, but there is at least one known problem that is
|
||||
likely to be a code-generation bug in `gcc-2.7.0' plus
|
||||
`g77-0.5.16'. This problem shows up only when compiling the
|
||||
Fortran program with `-O'.
|
||||
|
||||
Nothing has been heard about any RS/6000 problems for some time,
|
||||
so this is considering a closed item as of 0.5.20. Please submit
|
||||
any bug reports pertinent to `g77''s support for RS/6000 systems.
|
||||
|
||||
* SGI support is known to be a bit buggy. The known problem shows
|
||||
up only when compiling the Fortran program with `-O'.
|
||||
|
||||
It is possible these problems have all been fixed in 0.5.20 by
|
||||
emulating complex arithmetic in the front end. Please submit any
|
||||
bug reports pertinent to `g77''s support for SGI systems.
|
||||
|
||||
* `g77' doesn't work perfectly on 64-bit configurations such as the
|
||||
Alpha. This problem is expected to be largely resolved as of
|
||||
version 0.5.20, and further addressed by 0.5.21. Version 0.6
|
||||
should solve most or all related problems (such as 64-bit machines
|
||||
other than Digital Semiconductor ("DEC") Alphas).
|
||||
|
||||
One known bug that causes a compile-time crash occurs when
|
||||
compiling code such as the following with optimization:
|
||||
|
||||
SUBROUTINE CRASH (TEMP)
|
||||
INTEGER*2 HALF(2)
|
||||
REAL TEMP
|
||||
HALF(1) = NINT (TEMP)
|
||||
END
|
||||
|
||||
It is expected that a future version of `g77' will have a fix for
|
||||
this problem, almost certainly by the time `g77' supports the
|
||||
forthcoming version 2.8.0 of `gcc'.
|
||||
|
||||
* Maintainers of gcc report that the back end definitely has "broken"
|
||||
support for `COMPLEX' types. Based on their input, it seems many
|
||||
of the problems affect only the more-general facilities for gcc's
|
||||
`__complex__' type, such as `__complex__ int' (where the real and
|
||||
imaginary parts are integers) that GNU Fortran does not use.
|
||||
|
||||
Version 0.5.20 of `g77' works around this problem by not using the
|
||||
back end's support for `COMPLEX'. The new option
|
||||
`-fno-emulate-complex' avoids the work-around, reverting to using
|
||||
the same "broken" mechanism as that used by versions of `g77'
|
||||
prior to 0.5.20.
|
||||
|
||||
* There seem to be some problems with passing constants, and perhaps
|
||||
general expressions (other than simple variables/arrays), to
|
||||
procedures when compiling on some systems (such as i386) with
|
||||
`-fPIC', as in when compiling for ELF targets. The symptom is
|
||||
that the assembler complains about invalid opcodes. More
|
||||
investigation is needed, but the problem is almost certainly in
|
||||
the gcc back end, and it apparently occurs only when compiling
|
||||
sufficiently complicated functions *without* the `-O' option.
|
||||
|
||||
3721
gcc/f/ChangeLog
Normal file
3721
gcc/f/ChangeLog
Normal file
File diff suppressed because it is too large
Load Diff
1517
gcc/f/INSTALL
Normal file
1517
gcc/f/INSTALL
Normal file
File diff suppressed because it is too large
Load Diff
567
gcc/f/Make-lang.in
Normal file
567
gcc/f/Make-lang.in
Normal file
@@ -0,0 +1,567 @@
|
||||
# Top level makefile fragment for GNU Fortran. -*-makefile-*-
|
||||
# Copyright (C) 1995-1997 Free Software Foundation, Inc.
|
||||
|
||||
#This file is part of GNU Fortran.
|
||||
|
||||
#GNU Fortran is free software; you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation; either version 2, or (at your option)
|
||||
#any later version.
|
||||
|
||||
#GNU Fortran is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with GNU Fortran; see the file COPYING. If not, write to
|
||||
#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
#02111-1307, USA.
|
||||
|
||||
# This file provides the language dependent support in the main Makefile.
|
||||
# Each language makefile fragment must provide the following targets:
|
||||
#
|
||||
# foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
|
||||
# foo.info, foo.dvi,
|
||||
# foo.install-normal, foo.install-common, foo.install-info, foo.install-man,
|
||||
# foo.uninstall, foo.distdir,
|
||||
# foo.mostlyclean, foo.clean, foo.distclean, foo.extraclean,
|
||||
# foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
|
||||
#
|
||||
# where `foo' is the name of the language.
|
||||
#
|
||||
# It should also provide rules for:
|
||||
#
|
||||
# - making any compiler driver (eg: g77)
|
||||
# - the compiler proper (eg: f771)
|
||||
# - define the names for selecting the language in LANGUAGES.
|
||||
#
|
||||
# $(srcdir) must be set to the gcc/ source directory (not gcc/f/).
|
||||
|
||||
# Extra flags to pass to recursive makes (and to sub-configure).
|
||||
# Use different quoting rules compared with FLAGS_TO_PASS so we can use
|
||||
# this to set environment variables as well
|
||||
# Note that GCC_FOR_TARGET, GCC_FLAGS aren't in here -- treated separately.
|
||||
F77_FLAGS_TO_PASS = \
|
||||
CROSS="$(CROSS)" \
|
||||
AR_FLAGS="$(AR_FLAGS)" \
|
||||
AR_FOR_TARGET="$(AR_FOR_TARGET)" \
|
||||
BISON="$(BISON)" \
|
||||
BISONFLAGS="$(BISONFLAGS)" \
|
||||
CC="$(CC)" \
|
||||
CFLAGS="$(CFLAGS)" \
|
||||
X_CFLAGS="$(X_CFLAGS)" \
|
||||
LDFLAGS="$(LDFLAGS)" \
|
||||
LEX="$(LEX)" \
|
||||
LEXFLAGS="$(LEXFLAGS)" \
|
||||
MAKEINFO="$(MAKEINFO)" \
|
||||
MAKEINFOFLAGS="$(MAKEINFOFLAGS)" \
|
||||
RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)" \
|
||||
RANLIB_TEST_FOR_TARGET="$(RANLIB_TEST_FOR_TARGET)" \
|
||||
SHELL="$(SHELL)" \
|
||||
exec_prefix="$(exec_prefix)" \
|
||||
prefix="$(prefix)" \
|
||||
tooldir="$(tooldir)" \
|
||||
bindir="$(bindir)" \
|
||||
libsubdir="$(libsubdir)"
|
||||
# "F77_FOR_BUILD=$(F77_FOR_BUILD)" \
|
||||
# "F77FLAGS=$(F77FLAGS)" \
|
||||
# "F77_FOR_TARGET=$(F77_FOR_TARGET)"
|
||||
|
||||
# This flag controls whether to install (overwrite) f77 on this system,
|
||||
# and also whether to uninstall it when using the uninstall target.
|
||||
# As shipped, the flag is a test of whether the `f77_install_ok'
|
||||
# file exists in the build or source directories (top level), but
|
||||
# you can just change it here if you like.
|
||||
F77_INSTALL_FLAG = [ -f f77-install-ok -o -f $(srcdir)/f77-install-ok ]
|
||||
|
||||
# This flag is similar to F77_INSTALL_FLAG, but controls whether
|
||||
# to install (ovewrite) f2c-related items on this system. Currently
|
||||
# these are `include/f2c.h' and `lib/libf2c.a', though at some point
|
||||
# `bin/f2c' itself might be added to the g77 distribution.
|
||||
F2C_INSTALL_FLAG = [ -f f2c-install-ok -o -f $(srcdir)/f2c-install-ok ]
|
||||
|
||||
# This flag controls whether it is safe to install gcc's libf2c.a
|
||||
# even when there's already a lib/libf2c.a installed (which, unless
|
||||
# F2C_INSTALL_FLAG is set, will be left alone).
|
||||
F2CLIBOK = [ -f f2c-exists-ok -o -f $(srcdir)/f2c-exists-ok ]
|
||||
|
||||
# Actual names to use when installing a native compiler.
|
||||
F77_INSTALL_NAME = `t='$(program_transform_name)'; echo f77 | sed $$t`
|
||||
G77_INSTALL_NAME = `t='$(program_transform_name)'; echo g77 | sed $$t`
|
||||
|
||||
# Actual names to use when installing a cross-compiler.
|
||||
F77_CROSS_NAME = `t='$(program_transform_cross_name)'; echo f77 | sed $$t`
|
||||
G77_CROSS_NAME = `t='$(program_transform_cross_name)'; echo g77 | sed $$t`
|
||||
|
||||
# Define the names for selecting f77 in LANGUAGES.
|
||||
# Note that it would be nice to move the dependency on g77
|
||||
# into the F77 rule, but that needs a little bit of work
|
||||
# to do the right thing within all.cross.
|
||||
F77 f77: f771 f77-runtime
|
||||
|
||||
# Tell GNU make to ignore these if they exist.
|
||||
.PHONY: F77 f77 f77-runtime f77-runtime-unsafe f77.all.build f77.all.cross \
|
||||
f77.start.encap f77.rest.encap f77.info f77.dvi maybe-f2c \
|
||||
f77.install-normal install-libf77 install-f2c-all install-f2c-header \
|
||||
install-f2c-lib f77.install-common f77.install-info f77.install-man \
|
||||
f77.uninstall f77.mostlyclean f77.clean f77.distclean f77.extraclean \
|
||||
f77.maintainer-clean f77.realclean f77.stage1 f77.stage2 f77.stage3 \
|
||||
f77.stage4 f77.distdir f77.rebuilt
|
||||
|
||||
# Create the compiler driver for g77 (only if `f77' is in LANGUAGES).
|
||||
g77: $(srcdir)/f/g77.c $(srcdir)/f/zzz.c $(CONFIG_H) $(LIBDEPS)
|
||||
case '$(LANGUAGES)' in \
|
||||
*f77*) \
|
||||
$(CC) $(ALL_CFLAGS) $(INCLUDES) $(LDFLAGS) \
|
||||
-o $@ $(srcdir)/f/g77.c $(srcdir)/f/zzz.c $(LIBS) ;; \
|
||||
esac
|
||||
|
||||
# Create a version of the g77 driver which calls the cross-compiler
|
||||
# (only if `f77' is in LANGUAGES).
|
||||
g77-cross: $(srcdir)/f/g77.c $(srcdir)/f/zzz.c version.o $(LIBDEPS)
|
||||
case '$(LANGUAGES)' in \
|
||||
*f77*) \
|
||||
$(CC) $(ALL_CFLAGS) $(INCLUDES) $(LDFLAGS) \
|
||||
-DGCC_NAME=\"$(GCC_CROSS_NAME)\" \
|
||||
-o $@ $(srcdir)/f/g77.c $(srcdir)/f/zzz.c $(LIBS) ;; \
|
||||
esac
|
||||
|
||||
F77_SRCS = \
|
||||
$(srcdir)/f/assert.j \
|
||||
$(srcdir)/f/bad.c \
|
||||
$(srcdir)/f/bad.def \
|
||||
$(srcdir)/f/bad.h \
|
||||
$(srcdir)/f/bit.c \
|
||||
$(srcdir)/f/bit.h \
|
||||
$(srcdir)/f/bld-op.def \
|
||||
$(srcdir)/f/bld.c \
|
||||
$(srcdir)/f/bld.h \
|
||||
$(srcdir)/f/com-rt.def \
|
||||
$(srcdir)/f/com.c \
|
||||
$(srcdir)/f/com.h \
|
||||
$(srcdir)/f/config.j \
|
||||
$(srcdir)/f/convert.j \
|
||||
$(srcdir)/f/data.c \
|
||||
$(srcdir)/f/data.h \
|
||||
$(srcdir)/f/equiv.c \
|
||||
$(srcdir)/f/equiv.h \
|
||||
$(srcdir)/f/expr.c \
|
||||
$(srcdir)/f/expr.h \
|
||||
$(srcdir)/f/fini.c \
|
||||
$(srcdir)/f/flags.j \
|
||||
$(srcdir)/f/glimits.j \
|
||||
$(srcdir)/f/global.c \
|
||||
$(srcdir)/f/global.h \
|
||||
$(srcdir)/f/hconfig.j \
|
||||
$(srcdir)/f/implic.c \
|
||||
$(srcdir)/f/implic.h \
|
||||
$(srcdir)/f/input.j \
|
||||
$(srcdir)/f/info-b.def \
|
||||
$(srcdir)/f/info-k.def \
|
||||
$(srcdir)/f/info-w.def \
|
||||
$(srcdir)/f/info.c \
|
||||
$(srcdir)/f/info.h \
|
||||
$(srcdir)/f/intrin.c \
|
||||
$(srcdir)/f/intrin.def \
|
||||
$(srcdir)/f/intrin.h \
|
||||
$(srcdir)/f/lab.c \
|
||||
$(srcdir)/f/lab.h \
|
||||
$(srcdir)/f/lex.c \
|
||||
$(srcdir)/f/lex.h \
|
||||
$(srcdir)/f/malloc.c \
|
||||
$(srcdir)/f/malloc.h \
|
||||
$(srcdir)/f/name.c \
|
||||
$(srcdir)/f/name.h \
|
||||
$(srcdir)/f/parse.c \
|
||||
$(srcdir)/f/proj.c \
|
||||
$(srcdir)/f/proj.h \
|
||||
$(srcdir)/f/rtl.j \
|
||||
$(srcdir)/f/src.c \
|
||||
$(srcdir)/f/src.h \
|
||||
$(srcdir)/f/st.c \
|
||||
$(srcdir)/f/st.h \
|
||||
$(srcdir)/f/sta.c \
|
||||
$(srcdir)/f/sta.h \
|
||||
$(srcdir)/f/stb.c \
|
||||
$(srcdir)/f/stb.h \
|
||||
$(srcdir)/f/stc.c \
|
||||
$(srcdir)/f/stc.h \
|
||||
$(srcdir)/f/std.c \
|
||||
$(srcdir)/f/std.h \
|
||||
$(srcdir)/f/ste.c \
|
||||
$(srcdir)/f/ste.h \
|
||||
$(srcdir)/f/storag.c \
|
||||
$(srcdir)/f/storag.h \
|
||||
$(srcdir)/f/stp.c \
|
||||
$(srcdir)/f/stp.h \
|
||||
$(srcdir)/f/str-1t.fin \
|
||||
$(srcdir)/f/str-2t.fin \
|
||||
$(srcdir)/f/str-fo.fin \
|
||||
$(srcdir)/f/str-io.fin \
|
||||
$(srcdir)/f/str-nq.fin \
|
||||
$(srcdir)/f/str-op.fin \
|
||||
$(srcdir)/f/str-ot.fin \
|
||||
$(srcdir)/f/str.c \
|
||||
$(srcdir)/f/str.h \
|
||||
$(srcdir)/f/sts.c \
|
||||
$(srcdir)/f/sts.h \
|
||||
$(srcdir)/f/stt.c \
|
||||
$(srcdir)/f/stt.h \
|
||||
$(srcdir)/f/stu.c \
|
||||
$(srcdir)/f/stu.h \
|
||||
$(srcdir)/f/stv.c \
|
||||
$(srcdir)/f/stv.h \
|
||||
$(srcdir)/f/stw.c \
|
||||
$(srcdir)/f/stw.h \
|
||||
$(srcdir)/f/symbol.c \
|
||||
$(srcdir)/f/symbol.def \
|
||||
$(srcdir)/f/symbol.h \
|
||||
$(srcdir)/f/target.c \
|
||||
$(srcdir)/f/target.h \
|
||||
$(srcdir)/f/tconfig.j \
|
||||
$(srcdir)/f/tm.j \
|
||||
$(srcdir)/f/top.c \
|
||||
$(srcdir)/f/top.h \
|
||||
$(srcdir)/f/tree.j \
|
||||
$(srcdir)/f/type.c \
|
||||
$(srcdir)/f/type.h \
|
||||
$(srcdir)/f/where.c \
|
||||
$(srcdir)/f/where.h \
|
||||
$(srcdir)/f/zzz.c \
|
||||
$(srcdir)/f/zzz.h
|
||||
|
||||
f771: $(P) $(F77_SRCS) $(LIBDEPS) stamp-objlist f/Makefile
|
||||
$(MAKE) -f f/Makefile $(FLAGS_TO_PASS) VPATH=$(srcdir) srcdir=$(srcdir) f771
|
||||
|
||||
f/Makefile: $(srcdir)/f/Makefile.in $(srcdir)/configure
|
||||
$(SHELL) config.status
|
||||
|
||||
# Note that the runtime is built in the top-level directory rather
|
||||
# than in f/runtime a la the Cygnus CHILL example; then xgcc -B./ will
|
||||
# find it. Use an absolute name for GCC_FOR_TARGET (so we don't have
|
||||
# to keep stage? links around everywhere) unless this value has been
|
||||
# overridden from the default "./xgcc -B./", hence the case statement.
|
||||
# We depend on GCC_PASSES through f/runtime/Makefile.
|
||||
stmp-headers = stmp-headers # to be overrideable in unsafe version
|
||||
# Depend on stmp-headers, not stmp-int-hdrs, since libF77 needs float.h.
|
||||
f77-runtime: f/runtime/Makefile include/f2c.h $(stmp-headers) \
|
||||
f/runtime/libF77/Makefile f/runtime/libI77/Makefile f/runtime/libU77/Makefile
|
||||
case "$(LANGUAGES)" in \
|
||||
*f77*) top=`pwd`; \
|
||||
cd f/runtime && $(MAKE) \
|
||||
GCC_FOR_TARGET="`case '$(GCC_FOR_TARGET)' in \
|
||||
'./xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
|
||||
*) echo '$(GCC_FOR_TARGET)';; esac`" \
|
||||
GCC_FLAGS="$(GCC_FLAGS)" $(F77_FLAGS_TO_PASS) \
|
||||
all ;; \
|
||||
esac
|
||||
|
||||
# This one doesn't depend on cc1 etc. but f2c.h may not be found,
|
||||
# in particular, at present...
|
||||
f77-runtime-unsafe:
|
||||
$(MAKE) stmp-headers= GCC_PARTS= f77-runtime
|
||||
|
||||
# The configuration of the runtime system relies on an autoconf-type
|
||||
# configure, not a Cygnus-type one. It needs to be run *after* the
|
||||
# appropriate (cross-)compiler has been built, thus depend on GCC_PARTS.
|
||||
# NB, sh uses the *first* value of $a from `a=fred a=joe prog'.
|
||||
include/f2c.h \
|
||||
f/runtime/Makefile \
|
||||
f/runtime/libF77/Makefile \
|
||||
f/runtime/libI77/Makefile \
|
||||
f/runtime/libU77/Makefile: \
|
||||
$(srcdir)/f/runtime/f2c.h.in \
|
||||
$(srcdir)/f/com.h $(srcdir)/f/proj.h \
|
||||
$(srcdir)/f/runtime/Makefile.in \
|
||||
$(srcdir)/f/runtime/libF77/Makefile.in \
|
||||
$(srcdir)/f/runtime/libI77/Makefile.in \
|
||||
$(srcdir)/f/runtime/libU77/Makefile.in \
|
||||
$(srcdir)/f/runtime/configure \
|
||||
$(srcdir)/f/runtime/libU77/configure \
|
||||
$(GCC_PARTS)
|
||||
# The make "stage?" in compiler spec. is fully qualified as above
|
||||
top=`pwd`; \
|
||||
src=`cd $(srcdir); pwd`; \
|
||||
cd f/runtime; \
|
||||
CC="`case '$(GCC_FOR_TARGET)' in \
|
||||
'./xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
|
||||
*) echo '$(GCC_FOR_TARGET)';; esac`" \
|
||||
$(F77_FLAGS_TO_PASS) CONFIG_SITE=/dev/null $(SHELL) \
|
||||
$${src}/f/runtime/configure --srcdir=$${src}/f/runtime
|
||||
top=`pwd`; \
|
||||
src=`cd $(srcdir); pwd`; \
|
||||
cd f/runtime/libU77; \
|
||||
CC="`case '$(GCC_FOR_TARGET)' in \
|
||||
'./xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
|
||||
*) echo '$(GCC_FOR_TARGET)';; esac`" \
|
||||
$(F77_FLAGS_TO_PASS) CONFIG_SITE=/dev/null $(SHELL) \
|
||||
$${src}/f/runtime/libU77/configure --srcdir=$${src}/f/runtime/libU77
|
||||
|
||||
#For now, omit f2c stuff. -- burley
|
||||
#f2c: stmp-headers f/f2c/Makefile
|
||||
# cd f/f2c; $(MAKE) all
|
||||
#
|
||||
#f/f2c/Makefile: $(srcdir)/f/f2c/Makefile.in $(GCC_PARTS) \
|
||||
# $(srcdir)/config/$(xmake_file) $(srcdir)/config/$(tmake_file)
|
||||
# top=`pwd`; cd f/f2c; \
|
||||
# $${top}/f/f2c/configure --srcdir=$${top}/f/f2c
|
||||
|
||||
# Build hooks:
|
||||
|
||||
# I'm not sure there's a way of getting f2c into here conditionally on
|
||||
# the --enable-f2c flag detected by config-lang.in so kluge it with the
|
||||
# maybe-f2c target by looking at STAGESTUFF.
|
||||
f77.all.build: g77 maybe-f2c
|
||||
f77.all.cross: g77-cross maybe-f2c
|
||||
f77.start.encap: g77 maybe-f2c
|
||||
f77.rest.encap:
|
||||
|
||||
f77.info: $(srcdir)/f/g77.info
|
||||
f77.dvi: $(srcdir)/f/g77.dvi
|
||||
|
||||
# g77 documentation.
|
||||
$(srcdir)/f/g77.info: f/g77.texi f/bugs.texi f/install.texi f/news.texi f/intdoc.texi
|
||||
cd $(srcdir)/f; $(MAKEINFO) g77.texi
|
||||
|
||||
$(srcdir)/f/g77.dvi: f/g77.texi f/bugs.texi f/install.texi f/news.texi f/intdoc.texi
|
||||
cd $(srcdir)/f; $(TEXI2DVI) g77.texi
|
||||
|
||||
$(srcdir)/f/intdoc.texi: f/intdoc.c f/intdoc.h f/intrin.def f/intrin.h
|
||||
$(HOST_CC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \
|
||||
`echo $(srcdir)/f/intdoc.c | sed 's,^\./,,'` -o f/intdoc
|
||||
f/intdoc > $(srcdir)/f/intdoc.texi
|
||||
rm f/intdoc
|
||||
|
||||
$(srcdir)/f/BUGS: f/bugs0.texi f/bugs.texi
|
||||
cd $(srcdir)/f; $(MAKEINFO) -D BUGSONLY --no-header --no-split \
|
||||
--no-validate bugs0.texi -o BUGS
|
||||
|
||||
$(srcdir)/f/INSTALL: f/install0.texi f/install.texi
|
||||
cd $(srcdir)/f; $(MAKEINFO) -D INSTALLONLY --no-header --no-split \
|
||||
--no-validate install0.texi -o INSTALL
|
||||
|
||||
$(srcdir)/f/NEWS: f/news0.texi f/news.texi
|
||||
cd $(srcdir)/f; $(MAKEINFO) -D NEWSONLY --no-header --no-split \
|
||||
--no-validate news0.texi -o NEWS
|
||||
|
||||
$(srcdir)/f/runtime/configure: $(srcdir)/f/runtime/configure.in
|
||||
cd f/runtime && $(MAKE) srcdir=../../$(srcdir)/f/runtime -f ../../$(srcdir)/f/runtime/Makefile.in rebuilt
|
||||
$(srcdir)/f/runtime/libU77/configure: $(srcdir)/f/runtime/libU77/configure.in
|
||||
cd f/runtime && $(MAKE) srcdir=../../$(srcdir)/f/runtime -f ../../$(srcdir)/f/runtime/Makefile.in rebuilt
|
||||
|
||||
f77.rebuilt: $(srcdir)/f/g77.info $(srcdir)/f/BUGS $(srcdir)/f/INSTALL \
|
||||
$(srcdir)/f/NEWS $(srcdir)/f/runtime/configure \
|
||||
$(srcdir)/f/runtime/libU77/configure
|
||||
|
||||
maybe-f2c:
|
||||
#For now, omit f2c stuff. -- burley
|
||||
# case "$(STAGESTUFF)" in *f2c*) $(MAKE) f2c;; esac
|
||||
|
||||
# Install hooks:
|
||||
# f771 is installed elsewhere as part of $(COMPILERS).
|
||||
|
||||
f77.install-normal: install-libf77 install-f2c-all
|
||||
|
||||
# Install the F77 run time library.
|
||||
install-libf77: f77-runtime
|
||||
# Check for the presence of other versions of the library and includes.
|
||||
# Test libf2c.* in case of a shared version, for instance.
|
||||
@if test -z "$(F2CLIBOK)" && \
|
||||
test -z "$(F2C_INSTALL_FLAG)" && \
|
||||
test "`echo $(libdir)/libf2c.*`" != "$(libdir)/libf2c.*"; then \
|
||||
echo ; \
|
||||
echo 'You already have a version of libf2c installed as' $(libdir)/libf2c.*; \
|
||||
echo 'To use g77 this must be consistent with the one that will be built.'; \
|
||||
echo 'You should probably delete it and/or install ./libf2c.a in its place.'; \
|
||||
echo 'Resume the "make install" after removing the existing library or'; \
|
||||
echo 'define the make variable F2CLIBOK to avoid this test.'; \
|
||||
echo 'Check also for' $(includedir)/f2c.h 'per INSTALL instructions.'; \
|
||||
echo '(Note that a quick and easy way to resume "make -k install" is to'; \
|
||||
echo 'use "make install-libf77".)'; \
|
||||
exit 1; else true; fi
|
||||
if [ -f libf2c.a ] ; then \
|
||||
$(INSTALL_DATA) libf2c.a $(libsubdir)/libf2c.a; \
|
||||
if $(RANLIB_TEST) ; then \
|
||||
(cd $(libsubdir); $(RANLIB) libf2c.a); else true; fi; \
|
||||
chmod a-x $(libsubdir)/libf2c.a; \
|
||||
else true; fi
|
||||
if [ -f include/f2c.h ] ; then \
|
||||
$(INSTALL_DATA) include/f2c.h $(libsubdir)/include/f2c.h; \
|
||||
else true; fi
|
||||
|
||||
# Install the f2c-related stuff in the directories
|
||||
# where f2c and vanilla ld might look for them.
|
||||
|
||||
install-f2c-all: install-f2c-header install-f2c-lib
|
||||
|
||||
install-f2c-header:
|
||||
-if test -n "$(F2C_INSTALL_FLAG)" && test -f include/f2c.h; then \
|
||||
$(INSTALL_DATA) include/f2c.h $(includedir)/f2c.h; \
|
||||
chmod a+r $(includedir)/f2c.h; \
|
||||
else true; fi
|
||||
|
||||
install-f2c-lib:
|
||||
-if test -n "$(F2C_INSTALL_FLAG)" && test -f libf2c.a; then \
|
||||
$(INSTALL_DATA) libf2c.a $(libdir)/libf2c.a; \
|
||||
if $(RANLIB_TEST) ; then \
|
||||
(cd $(libdir); $(RANLIB) libf2c.a); else true; fi; \
|
||||
chmod a-x $(libdir)/libf2c.a; \
|
||||
else true; fi
|
||||
|
||||
# Install the driver program as $(target)-g77
|
||||
# and also as either g77 (if native) or $(tooldir)/bin/g77.
|
||||
f77.install-common:
|
||||
-if [ -f f771$(exeext) ] ; then \
|
||||
if [ -f g77-cross$(exeext) ] ; then \
|
||||
rm -f $(bindir)/$(G77_CROSS_NAME)$(exeext); \
|
||||
$(INSTALL_PROGRAM) g77-cross$(exeext) $(bindir)/$(G77_CROSS_NAME)$(exeext); \
|
||||
chmod a+x $(bindir)/$(G77_CROSS_NAME)$(exeext); \
|
||||
if $(F77_INSTALL_FLAG) ; then \
|
||||
rm -f $(bindir)/$(F77_CROSS_NAME)$(exeext); \
|
||||
ln $(bindir)/$(G77_CROSS_NAME)$(exeext) $(bindir)/$(F77_CROSS_NAME)$(exeext) \
|
||||
> /dev/null 2>&1 \
|
||||
|| cp $(bindir)/$(G77_CROSS_NAME)$(exeext) $(bindir)/$(F77_CROSS_NAME)$(exeext) ; \
|
||||
fi ; \
|
||||
else \
|
||||
rm -f $(bindir)/$(G77_INSTALL_NAME)$(exeext); \
|
||||
$(INSTALL_PROGRAM) g77$(exeext) $(bindir)/$(G77_INSTALL_NAME)$(exeext); \
|
||||
chmod a+x $(bindir)/$(G77_INSTALL_NAME)$(exeext); \
|
||||
if $(F77_INSTALL_FLAG) ; then \
|
||||
rm -f $(bindir)/$(F77_INSTALL_NAME)$(exeext); \
|
||||
ln $(bindir)/$(G77_INSTALL_NAME)$(exeext) $(bindir)/$(F77_INSTALL_NAME)$(exeext) \
|
||||
> /dev/null 2>&1 \
|
||||
|| cp $(bindir)/$(G77_INSTALL_NAME)$(exeext) $(bindir)/$(F77_INSTALL_NAME)$(exeext) ; \
|
||||
fi ; \
|
||||
fi ; \
|
||||
else true; fi
|
||||
|
||||
f77.install-info:
|
||||
-rm -f $(infodir)/g77.info*
|
||||
cd $(srcdir)/f; for f in g77.info*; \
|
||||
do $(INSTALL_DATA) $$f $(infodir)/$$f; done
|
||||
-chmod a-x $(infodir)/g77.info*
|
||||
|
||||
f77.install-man: $(srcdir)/f/g77.1
|
||||
-if [ -f f771$(exeext) ] ; then \
|
||||
if [ -f g77-cross$(exeext) ] ; then \
|
||||
rm -f $(mandir)/$(G77_CROSS_NAME)$(manext); \
|
||||
$(INSTALL_DATA) $(srcdir)/f/g77.1 $(mandir)/$(G77_CROSS_NAME)$(manext); \
|
||||
chmod a-x $(mandir)/$(G77_CROSS_NAME)$(manext); \
|
||||
if $(F77_INSTALL_FLAG) ; then \
|
||||
rm -f $(mandir)/$(F77_CROSS_NAME)$(manext); \
|
||||
ln $(mandir)/$(G77_CROSS_NAME)$(manext) $(mandir)/$(F77_CROSS_NAME)$(manext) \
|
||||
> /dev/null 2>&1 \
|
||||
|| cp $(mandir)/$(F77_CROSS_NAME)$(manext) $(mandir)/$(F77_CROSS_NAME)$(manext) ; \
|
||||
fi ;\
|
||||
else \
|
||||
rm -f $(mandir)/$(G77_INSTALL_NAME)$(manext); \
|
||||
$(INSTALL_DATA) $(srcdir)/f/g77.1 $(mandir)/$(G77_INSTALL_NAME)$(manext); \
|
||||
chmod a-x $(mandir)/$(G77_INSTALL_NAME)$(manext); \
|
||||
if $(F77_INSTALL_FLAG) ; then \
|
||||
rm -f $(mandir)/$(F77_INSTALL_NAME)$(manext); \
|
||||
ln $(mandir)/$(G77_INSTALL_NAME)$(manext) $(mandir)/$(F77_INSTALL_NAME)$(manext) \
|
||||
> /dev/null 2>&1 \
|
||||
|| cp $(mandir)/$(F77_INSTALL_NAME)$(manext) $(mandir)/$(F77_INSTALL_NAME)$(manext) ; \
|
||||
fi ;\
|
||||
fi; \
|
||||
else true; fi
|
||||
|
||||
f77.uninstall:
|
||||
-if $(F77_INSTALL_FLAG) ; then \
|
||||
rm -rf $(bindir)/$(F77_INSTALL_NAME)$(exeext) ; \
|
||||
rm -rf $(bindir)/$(F77_CROSS_NAME)$(exeext) ; \
|
||||
rm -rf $(mandir)/$(F77_INSTALL_NAME)$(manext) ; \
|
||||
rm -rf $(mandir)/$(F77_CROSS_NAME)$(manext) ; \
|
||||
fi
|
||||
-rm -rf $(bindir)/$(G77_INSTALL_NAME)$(exeext)
|
||||
-rm -rf $(bindir)/$(G77_CROSS_NAME)$(exeext)
|
||||
-rm -rf $(mandir)/$(G77_INSTALL_NAME)$(manext)
|
||||
-rm -rf $(mandir)/$(G77_CROSS_NAME)$(manext)
|
||||
-rm -rf $(infodir)/g77.info*
|
||||
-rm -rf $(libsubdir)/libf2c.a
|
||||
-if $(F2C_INSTALL_FLAG) ; then \
|
||||
rm -rf include/f2c.h ; \
|
||||
rm -rf $(libdir)/libf2c.a ; \
|
||||
fi
|
||||
|
||||
# Clean hooks:
|
||||
# A lot of the ancillary files are deleted by the main makefile.
|
||||
# We just have to delete files specific to us.
|
||||
|
||||
f77.mostlyclean:
|
||||
-rm -f f/*$(objext)
|
||||
-rm -f f/fini f/f771 f/stamp-str f/str-*.h f/str-*.j f/intdoc
|
||||
-cd f/runtime; $(MAKE) -f ../../$(srcdir)/f/runtime/Makefile.in mostlyclean
|
||||
f77.clean:
|
||||
-cd f/runtime; $(MAKE) -f ../../$(srcdir)/f/runtime/Makefile.in clean
|
||||
f77.distclean:
|
||||
-cd f/runtime; $(MAKE) -f ../../$(srcdir)/f/runtime/Makefile.in distclean
|
||||
-rm -f f/Makefile
|
||||
# like gcc's extraclean, which does clean f/ for us, but not f/gbe,
|
||||
# f/runtime, f/runtime/libF77, f/runtime/libI77, and f/runtime/libU77,
|
||||
# so do those.
|
||||
f77.extraclean: f77.distclean
|
||||
-rm -f f/*/=* f/*/"#"* f/*/*~*
|
||||
-rm -f f/*/patch* f/*/*.orig f/*/*.rej
|
||||
-rm -f f/*/*.dvi f/*/*.oaux f/*/*.d f/*/*.[zZ] f/*/*.gz
|
||||
-rm -f f/*/*.tar f/*/*.xtar f/*/*diff f/*/*.diff.* f/*/*.tar.* f/*/*.xtar.* f/*/*diffs
|
||||
-rm -f f/*/*lose f/*/*.s f/*/*.s[0-9] f/*/*.i
|
||||
-rm -f f/*/*/=* f/*/*/"#"* f/*/*/*~*
|
||||
-rm -f f/*/*/patch* f/*/*/*.orig f/*/*/*.rej
|
||||
-rm -f f/*/*/*.dvi f/*/*/*.oaux f/*/*/*.d f/*/*/*.[zZ] f/*/*/*.gz
|
||||
-rm -f f/*/*/*.tar f/*/*/*.xtar f/*/*/*diff f/*/*/*.diff.* f/*/*/*.tar.* f/*/*/*.xtar.* f/*/*/*diffs
|
||||
-rm -f f/*/*/*lose f/*/*/*.s f/*/*/*.s[0-9] f/*/*/*.i
|
||||
# realclean is the pre-2.7.0 name for maintainer-clean
|
||||
f77.maintainer-clean f77.realclean: f77.distclean
|
||||
-cd f/runtime; $(MAKE) -f ../../$(srcdir)/f/runtime/Makefile.in maintainer-clean
|
||||
-$(MAKE) f77.maintainer-clean
|
||||
-rm -f f/g77.info* f/g77.*aux f/TAGS f/BUGS f/INSTALL f/NEWS f/intdoc.texi
|
||||
|
||||
# Stage hooks:
|
||||
# The main makefile has already created stage?/f.
|
||||
|
||||
G77STAGESTUFF = f/*$(objext) f/fini f/stamp-str f/str-*.h f/str-*.j
|
||||
RUNTIMESTAGESTUFF = f/runtime/config.cache f/runtime/config.log \
|
||||
f/runtime/config.status f/runtime/Makefile f/runtime/stamp-lib
|
||||
LIBF77STAGESTUFF = f/runtime/libF77/*$(objext) f/runtime/libF77/Makefile
|
||||
LIBI77STAGESTUFF = f/runtime/libI77/*$(objext) f/runtime/libI77/Makefile
|
||||
LIBU77STAGESTUFF = f/runtime/libU77/*$(objext) f/runtime/libU77/Makefile \
|
||||
f/runtime/libU77/config.cache f/runtime/libU77/config.log \
|
||||
f/runtime/libU77/config.status
|
||||
|
||||
f77.stage1:
|
||||
-mv $(G77STAGESTUFF) stage1/f
|
||||
-mv $(RUNTIMESTAGESTUFF) stage1/f/runtime
|
||||
-mv $(LIBF77STAGESTUFF) stage1/f/runtime/libF77
|
||||
-mv $(LIBI77STAGESTUFF) stage1/f/runtime/libI77
|
||||
-mv $(LIBU77STAGESTUFF) stage1/f/runtime/libU77
|
||||
f77.stage2:
|
||||
-mv $(G77STAGESTUFF) stage2/f
|
||||
-mv $(RUNTIMESTAGESTUFF) stage2/f/runtime
|
||||
-mv $(LIBF77STAGESTUFF) stage2/f/runtime/libF77
|
||||
-mv $(LIBI77STAGESTUFF) stage2/f/runtime/libI77
|
||||
-mv $(LIBU77STAGESTUFF) stage2/f/runtime/libU77
|
||||
f77.stage3:
|
||||
-mv $(G77STAGESTUFF) stage3/f
|
||||
-mv $(RUNTIMESTAGESTUFF) stage3/f/runtime
|
||||
-mv $(LIBF77STAGESTUFF) stage3/f/runtime/libF77
|
||||
-mv $(LIBI77STAGESTUFF) stage3/f/runtime/libI77
|
||||
-mv $(LIBU77STAGESTUFF) stage3/f/runtime/libU77
|
||||
f77.stage4:
|
||||
-mv $(G77STAGESTUFF) stage4/f
|
||||
-mv $(RUNTIMESTAGESTUFF) stage4/f/runtime
|
||||
-mv $(LIBF77STAGESTUFF) stage4/f/runtime/libF77
|
||||
-mv $(LIBI77STAGESTUFF) stage4/f/runtime/libI77
|
||||
-mv $(LIBU77STAGESTUFF) stage4/f/runtime/libU77
|
||||
|
||||
# Maintenance hooks:
|
||||
|
||||
# This target creates the files that can be rebuilt, but go in the
|
||||
# distribution anyway. It then copies the files to the distdir directory.
|
||||
f77.distdir: f77.rebuilt
|
||||
mkdir tmp/f
|
||||
cd f; \
|
||||
for file in *[0-9a-zA-Z+]; do \
|
||||
ln $$file ../tmp/f >/dev/null 2>&1 || cp $$file ../tmp/f; \
|
||||
done
|
||||
562
gcc/f/Makefile.in
Normal file
562
gcc/f/Makefile.in
Normal file
@@ -0,0 +1,562 @@
|
||||
# Makefile for GNU F77 compiler.
|
||||
# Copyright (C) 1995-1997 Free Software Foundation, Inc.
|
||||
|
||||
#This file is part of GNU Fortran.
|
||||
|
||||
#GNU Fortran is free software; you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation; either version 2, or (at your option)
|
||||
#any later version.
|
||||
|
||||
#GNU Fortran is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with GNU Fortran; see the file COPYING. If not, write to
|
||||
#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
#02111-1307, USA.
|
||||
|
||||
# The makefile built from this file lives in the language subdirectory.
|
||||
# Its purpose is to provide support for:
|
||||
#
|
||||
# 1) recursion where necessary, and only then (building .o's), and
|
||||
# 2) building and debugging f771 from the language subdirectory, and
|
||||
# 3) nothing else.
|
||||
#
|
||||
# The parent makefile handles all other chores, with help from the
|
||||
# language makefile fragment, of course.
|
||||
#
|
||||
# The targets for external use are:
|
||||
# all, TAGS, ???mostlyclean, ???clean.
|
||||
|
||||
# Suppress smart makes who think they know how to automake Yacc files
|
||||
.y.c:
|
||||
|
||||
# Variables that exist for you to override.
|
||||
# See below for how to change them for certain systems.
|
||||
|
||||
ALLOCA =
|
||||
|
||||
# Various ways of specifying flags for compilations:
|
||||
# CFLAGS is for the user to override to, e.g., do a bootstrap with -O2.
|
||||
# BOOT_CFLAGS is the value of CFLAGS to pass
|
||||
# to the stage2 and stage3 compilations
|
||||
# XCFLAGS is used for most compilations but not when using the GCC just built.
|
||||
XCFLAGS =
|
||||
CFLAGS = -g
|
||||
BOOT_CFLAGS = -O $(CFLAGS)
|
||||
# These exists to be overridden by the x-* and t-* files, respectively.
|
||||
X_CFLAGS =
|
||||
T_CFLAGS =
|
||||
|
||||
X_CPPFLAGS =
|
||||
T_CPPFLAGS =
|
||||
|
||||
CC = cc
|
||||
HOST_CC = $(CC)
|
||||
BISON = bison
|
||||
BISONFLAGS =
|
||||
LEX = flex
|
||||
LEXFLAGS =
|
||||
AR = ar
|
||||
AR_FLAGS = rc
|
||||
SHELL = /bin/sh
|
||||
MAKEINFO = makeinfo
|
||||
TEXI2DVI = texi2dvi
|
||||
|
||||
# Define this as & to perform parallel make on a Sequent.
|
||||
# Note that this has some bugs, and it seems currently necessary
|
||||
# to compile all the gen* files first by hand to avoid erroneous results.
|
||||
P =
|
||||
|
||||
# This is used in the definition of SUBDIR_USE_ALLOCA.
|
||||
# ??? Perhaps it would be better if it just looked for *gcc*.
|
||||
OLDCC = cc
|
||||
|
||||
# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
|
||||
# It omits XCFLAGS, and specifies -B./.
|
||||
# It also specifies -B$(tooldir)/ to find as and ld for a cross compiler.
|
||||
GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
|
||||
|
||||
# Tools to use when building a cross-compiler.
|
||||
# These are used because `configure' appends `cross-make'
|
||||
# to the makefile when making a cross-compiler.
|
||||
|
||||
target= ... `configure' substitutes actual target name here.
|
||||
xmake_file= ... `configure' substitutes actual x- file name here.
|
||||
tmake_file= ... `configure' substitutes actual t- file name here.
|
||||
|
||||
# Directory where gcc sources are (gcc/), from where we are.
|
||||
# Note that this should be overridden when building f771, which happens
|
||||
# at the top level, not in f. Likewise for VPATH (if added).
|
||||
srcdir = .
|
||||
VPATH = .
|
||||
|
||||
# Additional system libraries to link with.
|
||||
CLIB=
|
||||
|
||||
# Change this to a null string if obstacks are installed in the
|
||||
# system library.
|
||||
OBSTACK=obstack.o
|
||||
|
||||
# Choose the real default target.
|
||||
ALL=all
|
||||
|
||||
# End of variables for you to override.
|
||||
|
||||
# Definition of `none' is here so that new rules inserted by sed
|
||||
# do not specify the default target.
|
||||
none:
|
||||
@echo ''
|
||||
@echo 'Do not use this makefile to build anything other than the'
|
||||
@echo 'g77 derived files via the "make g77-only" target.'
|
||||
@echo 'Instead, use the documented procedures to build gcc itself,'
|
||||
@echo 'which will build g77 as well when done properly.'
|
||||
@echo ''
|
||||
@exit 1
|
||||
|
||||
# This rule is just a handy way to build the g77 derived files without
|
||||
# having the gcc source tree around.
|
||||
g77-only: force
|
||||
if [ -f g77.texi ] ; then \
|
||||
(cd ..; $(MAKE) srcdir=. HOST_CC=cc HOST_CFLAGS=-g -f f/Make-lang.in f77.rebuilt); \
|
||||
else \
|
||||
$(MAKE) srcdir=. HOST_CC=cc HOST_CFLAGS=-g -f f/Make-lang.in f77.rebuilt; \
|
||||
fi
|
||||
|
||||
all: all.indirect
|
||||
|
||||
# This tells GNU Make version 3 not to put all variables in the environment.
|
||||
.NOEXPORT:
|
||||
|
||||
# sed inserts variable overrides after the following line.
|
||||
####target overrides
|
||||
####host overrides
|
||||
####cross overrides
|
||||
####build overrides
|
||||
|
||||
# Now figure out from those variables how to compile and link.
|
||||
|
||||
all.indirect: f/Makefile f771
|
||||
|
||||
# IN_GCC tells obstack.h that we are using gcc's <stddef.h> file.
|
||||
INTERNAL_CFLAGS = $(CROSS) -DIN_GCC
|
||||
|
||||
# This is the variable actually used when we compile.
|
||||
ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS) $(XCFLAGS) -W -Wall
|
||||
|
||||
# Likewise.
|
||||
ALL_CPPFLAGS = $(CPPFLAGS) $(X_CPPFLAGS) $(T_CPPFLAGS)
|
||||
|
||||
# f771 is so big, need to tell linker on m68k-next-nextstep* to make enough
|
||||
# room for it. On AIX, linking f771 overflows the linker TOC. -bbigtoc is
|
||||
# appropriate for the linker on AIX 4.1 and above.
|
||||
F771_LDFLAGS = `case "${target}" in\
|
||||
m68k-next-nextstep*) echo -segaddr __DATA 6000000;;\
|
||||
*-*-aix[4-9]*) \`$(CC) --print-prog-name=ld\` -v 2>&1 | grep BFD >/dev/null || echo -Wl,-bbigtoc;; esac`
|
||||
|
||||
# Even if ALLOCA is set, don't use it if compiling with GCC.
|
||||
|
||||
SUBDIR_OBSTACK = `if [ x$(OBSTACK) != x ]; then echo $(OBSTACK); else true; fi`
|
||||
SUBDIR_USE_ALLOCA = `case "${CC}" in "${OLDCC}") if [ x$(ALLOCA) != x ]; then echo $(ALLOCA); else true; fi ;; esac`
|
||||
SUBDIR_MALLOC = `if [ x$(MALLOC) != x ]; then echo $(MALLOC); else true; fi`
|
||||
|
||||
# How to link with both our special library facilities
|
||||
# and the system's installed libraries.
|
||||
LIBS = $(SUBDIR_OBSTACK) $(SUBDIR_USE_ALLOCA) $(SUBDIR_MALLOC) $(CLIB)
|
||||
|
||||
# Specify the directories to be searched for header files.
|
||||
# Both . and srcdir are used, in that order,
|
||||
# so that tm.h and config.h will be found in the compilation
|
||||
# directory rather than in the source directory.
|
||||
INCLUDES = -If -I$(srcdir)/f -I. -I$(srcdir) -I$(srcdir)/config
|
||||
|
||||
# Flags_to_pass to recursive makes.
|
||||
# Note that we don't need to distinguish the `_FOR_TARGET' cross tools
|
||||
# as AR and RANLIB are set appropriately by configure iff cross compiling.
|
||||
FLAGS_TO_PASS = \
|
||||
"CROSS=$(CROSS)" \
|
||||
"AR_FLAGS=$(AR_FLAGS)" \
|
||||
"AR=$(AR)" \
|
||||
"BISON=$(BISON)" \
|
||||
"BISONFLAGS=$(BISONFLAGS)" \
|
||||
"CC=$(CC)" \
|
||||
"CFLAGS=$(CFLAGS)" \
|
||||
"GCCFLAGS=$(GCCFLAGS)" \
|
||||
"GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
|
||||
"LDFLAGS=$(LDFLAGS)" \
|
||||
"LEX=$(LEX)" \
|
||||
"LEXFLAGS=$(LEXFLAGS)" \
|
||||
"MAKEINFO=$(MAKEINFO)" \
|
||||
"MAKEINFOFLAGS=$(MAKEINFOFLAGS)" \
|
||||
"RANLIB=$(RANLIB)" \
|
||||
"RANLIB_TEST=$(RANLIB_TEST)" \
|
||||
"SHELL=$(SHELL)" \
|
||||
"exec_prefix=$(exec_prefix)" \
|
||||
"prefix=$(prefix)" \
|
||||
"tooldir=$(tooldir)" \
|
||||
"bindir=$(bindir)" \
|
||||
"libsubdir=$(libsubdir)"
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< -o $@
|
||||
|
||||
# Lists of files for various purposes.
|
||||
|
||||
# Language-specific object files for g77
|
||||
|
||||
F77_OBJS = \
|
||||
f/bad.o \
|
||||
f/bit.o \
|
||||
f/bld.o \
|
||||
f/com.o \
|
||||
f/data.o \
|
||||
f/equiv.o \
|
||||
f/expr.o \
|
||||
f/global.o \
|
||||
f/implic.o \
|
||||
f/info.o \
|
||||
f/intrin.o \
|
||||
f/lab.o \
|
||||
f/lex.o \
|
||||
f/malloc.o \
|
||||
f/name.o \
|
||||
f/parse.o \
|
||||
f/proj.o \
|
||||
f/src.o \
|
||||
f/st.o \
|
||||
f/sta.o \
|
||||
f/stb.o \
|
||||
f/stc.o \
|
||||
f/std.o \
|
||||
f/ste.o \
|
||||
f/storag.o \
|
||||
f/stp.o \
|
||||
f/str.o \
|
||||
f/sts.o \
|
||||
f/stt.o \
|
||||
f/stu.o \
|
||||
f/stv.o \
|
||||
f/stw.o \
|
||||
f/symbol.o \
|
||||
f/target.o \
|
||||
f/top.o \
|
||||
f/type.o \
|
||||
f/where.o \
|
||||
f/zzz.o
|
||||
|
||||
# Language-independent object files.
|
||||
OBJS = `cat stamp-objlist | sed -e "s: : :g" -e "s: : f/:g"`
|
||||
OBJDEPS = stamp-objlist
|
||||
|
||||
compiler: f771
|
||||
# This is now meant to be built in the top level directory, not `f':
|
||||
f771: $(P) f/Makefile $(F77_OBJS) $(OBJDEPS) $(LIBDEPS)
|
||||
rm -f f771$(exeext)
|
||||
$(CC) $(ALL_CFLAGS) $(LDFLAGS) $(F771_LDFLAGS) -o $@ \
|
||||
$(F77_OBJS) $(OBJS) $(LIBS)
|
||||
|
||||
# Check in case anyone expects to build in this directory:
|
||||
f/Makefile:
|
||||
@if test ! -f f/Makefile ; \
|
||||
then echo "Build f771 only at the top level." 2>&1; exit 1; \
|
||||
else true; fi
|
||||
|
||||
Makefile: $(srcdir)/f/Makefile.in $(srcdir)/configure
|
||||
|
||||
native: f771
|
||||
|
||||
# Compiling object files from source files.
|
||||
|
||||
# Note that dependencies on obstack.h are not written
|
||||
# because that file is not part of GCC.
|
||||
|
||||
# F77 language-specific files.
|
||||
|
||||
# These macros expand to the corresponding g77-source .j files plus
|
||||
# the gcc-source files involved (each file itself, plus whatever
|
||||
# files on which it depends, but without including stuff resulting
|
||||
# from configuration, since we can't guess at that). The files
|
||||
# that live in a distclean'd gcc source directory have "$(srcdir)/"
|
||||
# prefixes, while the others don't because they'll be created
|
||||
# only in the build directory.
|
||||
ASSERT_H = $(srcdir)/f/assert.j $(srcdir)/assert.h
|
||||
CONFIG_H = $(srcdir)/f/config.j config.h
|
||||
CONVERT_H = $(srcdir)/f/convert.j $(srcdir)/convert.h
|
||||
FLAGS_H = $(srcdir)/f/flags.j $(srcdir)/flags.h
|
||||
GLIMITS_H = $(srcdir)/f/glimits.j $(srcdir)/glimits.h
|
||||
HCONFIG_H = $(srcdir)/f/hconfig.j hconfig.h
|
||||
INPUT_H = $(srcdir)/f/input.j $(srcdir)/input.h
|
||||
RTL_H = $(srcdir)/f/rtl.j $(srcdir)/rtl.h $(srcdir)/rtl.def \
|
||||
$(srcdir)/machmode.h $(srcdir)/machmode.def
|
||||
TCONFIG_H = $(srcdir)/f/tconfig.j tconfig.h
|
||||
TM_H = $(srcdir)/f/tm.j tm.h
|
||||
TREE_H = $(srcdir)/f/tree.j $(srcdir)/tree.h $(srcdir)/real.h \
|
||||
$(srcdir)/tree.def $(srcdir)/machmode.h $(srcdir)/machmode.def
|
||||
|
||||
#Build the first part of this list with the command line:
|
||||
# cd gcc/; make deps-kinda -f f/Makefile.in
|
||||
#Note that this command uses the host C compiler;
|
||||
# use HOST_CC="./xgcc -B./" to use GCC in the build directory, for example.
|
||||
#Also note that this particular build file seems to want to use
|
||||
# substitions: $(CONFIG_H) for config.h; $(TREE_H) for tree.h; and
|
||||
# $(RTL_H) for rtl.h. deps-kinda uses a sed script to do those
|
||||
# substitutions, plus others for elegance.
|
||||
|
||||
f/bad.o: f/bad.c f/proj.h $(ASSERT_H) f/bad.h f/bad.def f/where.h $(GLIMITS_H) \
|
||||
f/top.h f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/bld.h f/bld-op.def f/bit.h \
|
||||
f/info.h f/info-b.def f/info-k.def f/info-w.def f/target.h f/lex.h f/type.h \
|
||||
f/intrin.h f/intrin.def f/lab.h f/symbol.h f/symbol.def f/equiv.h f/storag.h \
|
||||
f/global.h f/name.h
|
||||
f/bit.o: f/bit.c f/proj.h $(ASSERT_H) $(GLIMITS_H) f/bit.h f/malloc.h
|
||||
f/bld.o: f/bld.c f/proj.h $(ASSERT_H) f/bld.h f/bld-op.def f/bit.h f/malloc.h \
|
||||
f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def f/info-w.def \
|
||||
f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h f/type.h \
|
||||
f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h f/name.h \
|
||||
f/intrin.h f/intrin.def
|
||||
f/com.o: f/com.c $(CONFIG_H) $(FLAGS_H) $(RTL_H) $(TREE_H) $(CONVERT_H) f/proj.h \
|
||||
$(ASSERT_H) f/com.h f/com-rt.def f/bld.h f/bld-op.def f/bit.h f/malloc.h \
|
||||
f/info.h f/info-b.def f/info-k.def f/info-w.def f/target.h f/bad.h f/bad.def \
|
||||
f/where.h $(GLIMITS_H) f/top.h f/lex.h f/type.h f/intrin.h f/intrin.def f/lab.h \
|
||||
f/symbol.h f/symbol.def f/equiv.h f/storag.h f/global.h f/name.h f/expr.h \
|
||||
f/implic.h f/src.h f/st.h
|
||||
f/data.o: f/data.c f/proj.h $(ASSERT_H) f/data.h f/bld.h f/bld-op.def f/bit.h \
|
||||
f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h \
|
||||
f/name.h f/intrin.h f/intrin.def f/expr.h f/st.h
|
||||
f/equiv.o: f/equiv.c f/proj.h $(ASSERT_H) f/equiv.h f/bld.h f/bld-op.def f/bit.h \
|
||||
f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def f/global.h f/name.h \
|
||||
f/intrin.h f/intrin.def f/data.h
|
||||
f/expr.o: f/expr.c f/proj.h $(ASSERT_H) f/expr.h f/bld.h f/bld-op.def f/bit.h \
|
||||
f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h \
|
||||
f/name.h f/intrin.h f/intrin.def f/implic.h f/src.h f/st.h
|
||||
f/fini.o: f/fini.c f/proj.h $(ASSERT_H) f/malloc.h
|
||||
f/g77.o: f/g77.c $(CONFIG_H)
|
||||
f/global.o: f/global.c f/proj.h $(ASSERT_H) f/global.h f/lex.h f/top.h f/malloc.h \
|
||||
f/where.h $(GLIMITS_H) f/name.h f/symbol.h f/symbol.def f/bad.h f/bad.def \
|
||||
f/bld.h f/bld-op.def f/bit.h f/com.h f/com-rt.def $(TREE_H) f/info.h \
|
||||
f/info-b.def f/info-k.def f/info-w.def f/target.h f/type.h f/lab.h f/storag.h \
|
||||
f/intrin.h f/intrin.def f/equiv.h
|
||||
f/implic.o: f/implic.c f/proj.h $(ASSERT_H) f/implic.h f/info.h f/info-b.def \
|
||||
f/info-k.def f/info-w.def f/target.h $(TREE_H) f/bad.h f/bad.def f/where.h \
|
||||
$(GLIMITS_H) f/top.h f/malloc.h f/lex.h f/type.h f/symbol.h f/symbol.def f/bld.h \
|
||||
f/bld-op.def f/bit.h f/com.h f/com-rt.def f/lab.h f/storag.h f/intrin.h \
|
||||
f/intrin.def f/equiv.h f/global.h f/name.h f/src.h
|
||||
f/info.o: f/info.c f/proj.h $(ASSERT_H) f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h $(TREE_H) f/bad.h f/bad.def f/where.h $(GLIMITS_H) \
|
||||
f/top.h f/malloc.h f/lex.h f/type.h
|
||||
f/intrin.o: f/intrin.c f/proj.h $(ASSERT_H) f/intrin.h f/intrin.def f/bld.h \
|
||||
f/bld-op.def f/bit.h f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h \
|
||||
f/info-b.def f/info-k.def f/info-w.def f/target.h f/bad.h f/bad.def f/where.h \
|
||||
$(GLIMITS_H) f/top.h f/lex.h f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def \
|
||||
f/equiv.h f/global.h f/name.h f/src.h
|
||||
f/lab.o: f/lab.c f/proj.h $(ASSERT_H) f/lab.h f/com.h f/com-rt.def $(TREE_H) f/bld.h \
|
||||
f/bld-op.def f/bit.h f/malloc.h f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/intrin.h f/intrin.def f/symbol.h f/symbol.def f/equiv.h f/storag.h \
|
||||
f/global.h f/name.h
|
||||
f/lex.o: f/lex.c f/proj.h $(ASSERT_H) f/top.h f/malloc.h f/where.h $(GLIMITS_H) \
|
||||
f/bad.h f/bad.def f/com.h f/com-rt.def $(TREE_H) f/bld.h f/bld-op.def f/bit.h \
|
||||
f/info.h f/info-b.def f/info-k.def f/info-w.def f/target.h f/lex.h f/type.h \
|
||||
f/intrin.h f/intrin.def f/lab.h f/symbol.h f/symbol.def f/equiv.h f/storag.h \
|
||||
f/global.h f/name.h f/src.h $(CONFIG_H) $(FLAGS_H) $(INPUT_H)
|
||||
f/malloc.o: f/malloc.c f/proj.h $(ASSERT_H) f/malloc.h
|
||||
f/name.o: f/name.c f/proj.h $(ASSERT_H) f/bad.h f/bad.def f/where.h $(GLIMITS_H) \
|
||||
f/top.h f/malloc.h f/name.h f/global.h f/lex.h f/symbol.h f/symbol.def f/bld.h \
|
||||
f/bld-op.def f/bit.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def \
|
||||
f/info-k.def f/info-w.def f/target.h f/type.h f/lab.h f/storag.h f/intrin.h \
|
||||
f/intrin.def f/equiv.h f/src.h
|
||||
f/parse.o: f/parse.c f/proj.h $(ASSERT_H) f/top.h f/malloc.h f/where.h $(GLIMITS_H) \
|
||||
f/com.h f/com-rt.def $(TREE_H) f/bld.h f/bld-op.def f/bit.h f/info.h \
|
||||
f/info-b.def f/info-k.def f/info-w.def f/target.h f/bad.h f/bad.def f/lex.h \
|
||||
f/type.h f/intrin.h f/intrin.def f/lab.h f/symbol.h f/symbol.def f/equiv.h \
|
||||
f/storag.h f/global.h f/name.h f/zzz.h $(FLAGS_H)
|
||||
f/proj.o: f/proj.c f/proj.h $(ASSERT_H) $(GLIMITS_H)
|
||||
f/src.o: f/src.c f/proj.h $(ASSERT_H) f/src.h f/bad.h f/bad.def f/where.h \
|
||||
$(GLIMITS_H) f/top.h f/malloc.h
|
||||
f/st.o: f/st.c f/proj.h $(ASSERT_H) f/st.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) \
|
||||
f/top.h f/malloc.h f/lex.h f/symbol.h f/symbol.def f/bld.h f/bld-op.def f/bit.h \
|
||||
f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def f/info-w.def \
|
||||
f/target.h f/type.h f/lab.h f/storag.h f/intrin.h f/intrin.def f/equiv.h \
|
||||
f/global.h f/name.h f/sta.h f/stamp-str f/stb.h f/expr.h f/stp.h f/stt.h f/stc.h \
|
||||
f/std.h f/stv.h f/stw.h f/ste.h f/sts.h f/stu.h
|
||||
f/sta.o: f/sta.c f/proj.h $(ASSERT_H) f/sta.h f/bad.h f/bad.def f/where.h \
|
||||
$(GLIMITS_H) f/top.h f/malloc.h f/lex.h f/stamp-str f/symbol.h f/symbol.def f/bld.h \
|
||||
f/bld-op.def f/bit.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def \
|
||||
f/info-k.def f/info-w.def f/target.h f/type.h f/lab.h f/storag.h f/intrin.h \
|
||||
f/intrin.def f/equiv.h f/global.h f/name.h f/implic.h f/stb.h f/expr.h f/stp.h \
|
||||
f/stt.h f/stc.h f/std.h f/stv.h f/stw.h
|
||||
f/stb.o: f/stb.c f/proj.h $(ASSERT_H) f/stb.h f/bad.h f/bad.def f/where.h \
|
||||
$(GLIMITS_H) f/top.h f/malloc.h f/expr.h f/bld.h f/bld-op.def f/bit.h f/com.h \
|
||||
f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def f/info-w.def \
|
||||
f/target.h f/lex.h f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def \
|
||||
f/equiv.h f/global.h f/name.h f/intrin.h f/intrin.def f/stp.h f/stt.h f/stamp-str \
|
||||
f/src.h f/sta.h f/stc.h
|
||||
f/stc.o: f/stc.c f/proj.h $(ASSERT_H) f/stc.h f/bad.h f/bad.def f/where.h \
|
||||
$(GLIMITS_H) f/top.h f/malloc.h f/bld.h f/bld-op.def f/bit.h f/com.h \
|
||||
f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def f/info-w.def \
|
||||
f/target.h f/lex.h f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def \
|
||||
f/equiv.h f/global.h f/name.h f/intrin.h f/intrin.def f/expr.h f/stp.h f/stt.h \
|
||||
f/stamp-str f/data.h f/implic.h f/src.h f/sta.h f/std.h f/stv.h f/stw.h
|
||||
f/std.o: f/std.c f/proj.h $(ASSERT_H) f/std.h f/bld.h f/bld-op.def f/bit.h \
|
||||
f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h \
|
||||
f/name.h f/intrin.h f/intrin.def f/stp.h f/stt.h f/stamp-str f/stv.h f/stw.h f/sta.h \
|
||||
f/ste.h f/sts.h
|
||||
f/ste.o: f/ste.c $(CONFIG_H) $(RTL_H) f/proj.h $(ASSERT_H) f/ste.h f/bld.h \
|
||||
f/bld-op.def f/bit.h f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h \
|
||||
f/info-b.def f/info-k.def f/info-w.def f/target.h f/bad.h f/bad.def f/where.h \
|
||||
$(GLIMITS_H) f/top.h f/lex.h f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def \
|
||||
f/equiv.h f/global.h f/name.h f/intrin.h f/intrin.def f/stp.h f/stt.h f/stamp-str \
|
||||
f/sts.h f/stv.h f/stw.h f/sta.h
|
||||
f/storag.o: f/storag.c f/proj.h $(ASSERT_H) f/storag.h f/bld.h f/bld-op.def f/bit.h \
|
||||
f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/lab.h f/symbol.h f/symbol.def f/equiv.h f/global.h f/name.h \
|
||||
f/intrin.h f/intrin.def f/data.h
|
||||
f/stp.o: f/stp.c f/proj.h $(ASSERT_H) f/stp.h f/bld.h f/bld-op.def f/bit.h \
|
||||
f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h \
|
||||
f/name.h f/intrin.h f/intrin.def f/stt.h
|
||||
f/str.o: f/str.c f/proj.h $(ASSERT_H) f/src.h f/bad.h f/bad.def f/where.h \
|
||||
$(GLIMITS_H) f/top.h f/malloc.h f/stamp-str f/lex.h
|
||||
f/sts.o: f/sts.c f/proj.h $(ASSERT_H) f/sts.h f/malloc.h f/com.h f/com-rt.def \
|
||||
$(TREE_H) f/bld.h f/bld-op.def f/bit.h f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/intrin.h f/intrin.def f/lab.h f/symbol.h f/symbol.def f/equiv.h \
|
||||
f/storag.h f/global.h f/name.h
|
||||
f/stt.o: f/stt.c f/proj.h $(ASSERT_H) f/stt.h f/top.h f/malloc.h f/where.h \
|
||||
$(GLIMITS_H) f/bld.h f/bld-op.def f/bit.h f/com.h f/com-rt.def $(TREE_H) f/info.h \
|
||||
f/info-b.def f/info-k.def f/info-w.def f/target.h f/bad.h f/bad.def f/lex.h \
|
||||
f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h \
|
||||
f/name.h f/intrin.h f/intrin.def f/stp.h f/expr.h f/sta.h f/stamp-str
|
||||
f/stu.o: f/stu.c f/proj.h $(ASSERT_H) f/bld.h f/bld-op.def f/bit.h f/malloc.h \
|
||||
f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def f/info-w.def \
|
||||
f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h f/type.h \
|
||||
f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h f/name.h \
|
||||
f/intrin.h f/intrin.def f/implic.h f/stu.h f/sta.h f/stamp-str
|
||||
f/stv.o: f/stv.c f/proj.h $(ASSERT_H) f/stv.h f/lab.h f/com.h f/com-rt.def $(TREE_H) \
|
||||
f/bld.h f/bld-op.def f/bit.h f/malloc.h f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/intrin.h f/intrin.def f/symbol.h f/symbol.def f/equiv.h f/storag.h \
|
||||
f/global.h f/name.h
|
||||
f/stw.o: f/stw.c f/proj.h $(ASSERT_H) f/stw.h f/bld.h f/bld-op.def f/bit.h \
|
||||
f/malloc.h f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/target.h f/bad.h f/bad.def f/where.h $(GLIMITS_H) f/top.h f/lex.h \
|
||||
f/type.h f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h \
|
||||
f/name.h f/intrin.h f/intrin.def f/stv.h f/sta.h f/stamp-str
|
||||
f/symbol.o: f/symbol.c f/proj.h $(ASSERT_H) f/symbol.h f/symbol.def f/bad.h \
|
||||
f/bad.def f/where.h $(GLIMITS_H) f/top.h f/malloc.h f/bld.h f/bld-op.def f/bit.h \
|
||||
f/com.h f/com-rt.def $(TREE_H) f/info.h f/info-b.def f/info-k.def f/info-w.def \
|
||||
f/target.h f/lex.h f/type.h f/lab.h f/storag.h f/intrin.h f/intrin.def \
|
||||
f/equiv.h f/global.h f/name.h f/src.h f/st.h
|
||||
f/target.o: f/target.c f/proj.h $(ASSERT_H) $(GLIMITS_H) f/target.h $(TREE_H) f/bad.h \
|
||||
f/bad.def f/where.h f/top.h f/malloc.h f/info.h f/info-b.def f/info-k.def \
|
||||
f/info-w.def f/type.h f/lex.h
|
||||
f/top.o: f/top.c f/proj.h $(ASSERT_H) f/top.h f/malloc.h f/where.h $(GLIMITS_H) \
|
||||
f/bad.h f/bad.def f/bit.h f/bld.h f/bld-op.def f/com.h f/com-rt.def $(TREE_H) \
|
||||
f/info.h f/info-b.def f/info-k.def f/info-w.def f/target.h f/lex.h f/type.h \
|
||||
f/lab.h f/storag.h f/symbol.h f/symbol.def f/equiv.h f/global.h f/name.h \
|
||||
f/intrin.h f/intrin.def f/data.h f/expr.h f/implic.h f/src.h f/st.h $(FLAGS_H)
|
||||
f/type.o: f/type.c f/proj.h $(ASSERT_H) f/type.h f/malloc.h
|
||||
f/where.o: f/where.c f/proj.h $(ASSERT_H) f/where.h $(GLIMITS_H) f/top.h f/malloc.h \
|
||||
f/lex.h
|
||||
f/zzz.o: f/zzz.c f/proj.h $(ASSERT_H) f/zzz.h
|
||||
|
||||
# The rest of this list (Fortran 77 language-specific files) is hand-generated.
|
||||
|
||||
f/stamp-str: f/str-1t.h f/str-1t.j f/str-2t.h f/str-2t.j \
|
||||
f/str-fo.h f/str-fo.j f/str-io.h f/str-io.j f/str-nq.h f/str-nq.j \
|
||||
f/str-op.h f/str-op.j f/str-ot.h f/str-ot.j
|
||||
touch f/stamp-str
|
||||
|
||||
f/str-1t.h f/str-1t.j: f/fini f/str-1t.fin
|
||||
./f/fini `echo $(srcdir)/f/str-1t.fin | sed 's,^\./,,'` f/str-1t.j f/str-1t.h
|
||||
|
||||
f/str-2t.h f/str-2t.j: f/fini f/str-2t.fin
|
||||
./f/fini `echo $(srcdir)/f/str-2t.fin | sed 's,^\./,,'` f/str-2t.j f/str-2t.h
|
||||
|
||||
f/str-fo.h f/str-fo.j: f/fini f/str-fo.fin
|
||||
./f/fini `echo $(srcdir)/f/str-fo.fin | sed 's,^\./,,'` f/str-fo.j f/str-fo.h
|
||||
|
||||
f/str-io.h f/str-io.j: f/fini f/str-io.fin
|
||||
./f/fini `echo $(srcdir)/f/str-io.fin | sed 's,^\./,,'` f/str-io.j f/str-io.h
|
||||
|
||||
f/str-nq.h f/str-nq.j: f/fini f/str-nq.fin
|
||||
./f/fini `echo $(srcdir)/f/str-nq.fin | sed 's,^\./,,'` f/str-nq.j f/str-nq.h
|
||||
|
||||
f/str-op.h f/str-op.j: f/fini f/str-op.fin
|
||||
./f/fini `echo $(srcdir)/f/str-op.fin | sed 's,^\./,,'` f/str-op.j f/str-op.h
|
||||
|
||||
f/str-ot.h f/str-ot.j: f/fini f/str-ot.fin
|
||||
./f/fini `echo $(srcdir)/f/str-ot.fin | sed 's,^\./,,'` f/str-ot.j f/str-ot.h
|
||||
|
||||
f/fini: f/fini.o f/proj-h.o
|
||||
$(HOST_CC) $(HOST_CFLAGS) -W -Wall $(HOST_LDFLAGS) -o f/fini f/fini.o f/proj-h.o
|
||||
|
||||
f/fini.o:
|
||||
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
|
||||
`echo $(srcdir)/f/fini.c | sed 's,^\./,,'` -o $@
|
||||
|
||||
f/proj-h.o: f/proj.o
|
||||
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
|
||||
`echo $(srcdir)/f/proj.c | sed 's,^\./,,'` -o $@
|
||||
|
||||
# Other than str-*.j, the *.j files are dummy #include files
|
||||
# that normally just #include the corresponding back-end *.h
|
||||
# files, but not if MAKING_DEPENDENCIES is #defined. The str-*.j
|
||||
# files also are not actually included if MAKING_DEPENDENCIES
|
||||
# is #defined. The point of all this is to come up with a clean
|
||||
# dependencies list whether working in a clean directory, such
|
||||
# that str-*.j and such do not exist, or in a directory full
|
||||
# of already-built files. Any dependency on a str-*.j file
|
||||
# implies a dependency on str.h, so we key on that to replace
|
||||
# it with stamp-str, and dependencies on the other *.j files
|
||||
# are generally left alone (modulo special macros like RTL_H)
|
||||
# because we might not want to recompile all of g77 just
|
||||
# because a back-end file changes. MG is usually "-MG" but
|
||||
# should be defined with "make MG= deps-kinda..." if using
|
||||
# a compiler that doesn't support -MG (gcc does as of 2.6) --
|
||||
# it prevents diagnostics when an #include file is missing,
|
||||
# as will be the case with proj.h in a clean directory.
|
||||
MG=-MG
|
||||
deps-kinda:
|
||||
$(HOST_CC) -DMAKING_DEPENDENCIES -MM $(MG) -I -If f/*.c | \
|
||||
sed -e 's: \([.]/\)*f/assert[.]j: $$(ASSERT_H):g' \
|
||||
-e 's: \([.]/\)*f/config[.]j: $$(CONFIG_H):g' \
|
||||
-e 's: \([.]/\)*f/convert[.]j: $$(CONVERT_H):g' \
|
||||
-e 's: \([.]/\)*f/flags[.]j: $$(FLAGS_H):g' \
|
||||
-e 's: \([.]/\)*f/glimits[.]j: $$(GLIMITS_H):g' \
|
||||
-e 's: \([.]/\)*f/hconfig[.]j: $$(HCONFIG_H):g' \
|
||||
-e 's: \([.]/\)*f/input[.]j: $$(INPUT_H):g' \
|
||||
-e 's: \([.]/\)*f/rtl[.]j: $$(RTL_H):g' \
|
||||
-e 's: \([.]/\)*f/tconfig[.]j: $$(TCONFIG_H):g' \
|
||||
-e 's: \([.]/\)*f/tm[.]j: $$(TM_H):g' \
|
||||
-e 's: \([.]/\)*f/tree[.]j: $$(TREE_H):g' \
|
||||
-e 's: proj[.]h: f/proj.h:g' \
|
||||
-e 's: \([.]/\)*f/str[.]h: f/stamp-str:g' \
|
||||
-e 's%^\(.*\)[ ]*: %f/\1: %g'
|
||||
|
||||
|
||||
# These exist for maintenance purposes.
|
||||
|
||||
# Update the tags table.
|
||||
TAGS: force
|
||||
cd $(srcdir)/f ; \
|
||||
etags *.c *.h ; \
|
||||
echo 'l' | tr 'l' '\f' >> TAGS ; \
|
||||
echo 'parse.y,0' >> TAGS ; \
|
||||
etags -a ../*.h ../*.c;
|
||||
|
||||
.PHONY: none all all.indirect f77.rebuilt compiler native deps-kinda TAGS g77-only
|
||||
|
||||
force:
|
||||
1064
gcc/f/NEWS
Normal file
1064
gcc/f/NEWS
Normal file
File diff suppressed because it is too large
Load Diff
7
gcc/f/README
Normal file
7
gcc/f/README
Normal file
@@ -0,0 +1,7 @@
|
||||
1995-02-15
|
||||
|
||||
This directory is the f/ subdirectory, which is designed to
|
||||
be a subdirectory in a gcc development tree, i.e. named gcc/f/.
|
||||
|
||||
Please see gcc/README.g77 for information on the contents of this
|
||||
directory.
|
||||
27
gcc/f/assert.j
Normal file
27
gcc/f/assert.j
Normal file
@@ -0,0 +1,27 @@
|
||||
/* assert.j -- Wrapper for GCC's assert.h
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA. */
|
||||
|
||||
#ifndef MAKING_DEPENDENCIES
|
||||
#ifndef _J_f_assert
|
||||
#define _J_f_assert
|
||||
#include "assert.h"
|
||||
#endif
|
||||
#endif
|
||||
543
gcc/f/bad.c
Normal file
543
gcc/f/bad.c
Normal file
@@ -0,0 +1,543 @@
|
||||
/* bad.c -- Implementation File (module.c template V1.0)
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Related Modules:
|
||||
None
|
||||
|
||||
Description:
|
||||
Handles the displaying of diagnostic messages regarding the user's source
|
||||
files.
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
/* If there's a %E or %4 in the messages, set this to at least 5,
|
||||
for example. */
|
||||
|
||||
#define FFEBAD_MAX_ 6
|
||||
|
||||
/* Include files. */
|
||||
|
||||
#include "proj.h"
|
||||
#include <ctype.h>
|
||||
#include "bad.h"
|
||||
#include "com.h"
|
||||
#include "where.h"
|
||||
|
||||
/* Externals defined here. */
|
||||
|
||||
bool ffebad_is_inhibited_ = FALSE;
|
||||
|
||||
/* Simple definitions and enumerations. */
|
||||
|
||||
#define FFEBAD_LONG_MSGS_ 1 /* 0 to use short (or same) messages. */
|
||||
|
||||
/* Internal typedefs. */
|
||||
|
||||
|
||||
/* Private include files. */
|
||||
|
||||
|
||||
/* Internal structure definitions. */
|
||||
|
||||
struct _ffebad_message_
|
||||
{
|
||||
ffebadSeverity severity;
|
||||
char *message;
|
||||
};
|
||||
|
||||
/* Static objects accessed by functions in this module. */
|
||||
|
||||
static struct _ffebad_message_ ffebad_messages_[]
|
||||
=
|
||||
{
|
||||
#define FFEBAD_MSGS1(KWD,SEV,MSG) { SEV, MSG },
|
||||
#if FFEBAD_LONG_MSGS_ == 0
|
||||
#define FFEBAD_MSGS2(KWD,SEV,LMSG,SMSG) { SEV, SMSG },
|
||||
#else
|
||||
#define FFEBAD_MSGS2(KWD,SEV,LMSG,SMSG) { SEV, LMSG },
|
||||
#endif
|
||||
#include "bad.def"
|
||||
#undef FFEBAD_MSGS1
|
||||
#undef FFEBAD_MSGS2
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
ffewhereLine line;
|
||||
ffewhereColumn col;
|
||||
ffebadIndex tag;
|
||||
}
|
||||
|
||||
ffebad_here_[FFEBAD_MAX_];
|
||||
static char *ffebad_string_[FFEBAD_MAX_];
|
||||
static ffebadIndex ffebad_order_[FFEBAD_MAX_];
|
||||
static ffebad ffebad_errnum_;
|
||||
static ffebadSeverity ffebad_severity_;
|
||||
static char *ffebad_message_;
|
||||
static unsigned char ffebad_index_;
|
||||
static ffebadIndex ffebad_places_;
|
||||
static bool ffebad_is_temp_inhibited_; /* Effective setting of
|
||||
_is_inhibited_ for this
|
||||
_start/_finish invocation. */
|
||||
|
||||
/* Static functions (internal). */
|
||||
|
||||
static int ffebad_bufputs_ (char buf[], int bufi, char *s);
|
||||
|
||||
/* Internal macros. */
|
||||
|
||||
#define ffebad_bufflush_(buf, bufi) \
|
||||
(((buf)[bufi] = '\0'), fputs ((buf), stderr), 0)
|
||||
#define ffebad_bufputc_(buf, bufi, c) \
|
||||
(((bufi) == ARRAY_SIZE (buf)) \
|
||||
? (ffebad_bufflush_ ((buf), (bufi)), ((buf)[0] = (c)), 1) \
|
||||
: (((buf)[bufi] = (c)), (bufi) + 1))
|
||||
|
||||
|
||||
static int
|
||||
ffebad_bufputs_ (char buf[], int bufi, char *s)
|
||||
{
|
||||
for (; *s != '\0'; ++s)
|
||||
bufi = ffebad_bufputc_ (buf, bufi, *s);
|
||||
return bufi;
|
||||
}
|
||||
|
||||
/* ffebad_init_0 -- Initialize
|
||||
|
||||
ffebad_init_0(); */
|
||||
|
||||
void
|
||||
ffebad_init_0 ()
|
||||
{
|
||||
assert (FFEBAD == ARRAY_SIZE (ffebad_messages_));
|
||||
}
|
||||
|
||||
ffebadSeverity
|
||||
ffebad_severity (ffebad errnum)
|
||||
{
|
||||
return ffebad_messages_[errnum].severity;
|
||||
}
|
||||
|
||||
/* ffebad_start_ -- Start displaying an error message
|
||||
|
||||
ffebad_start(FFEBAD_SOME_ERROR_CODE);
|
||||
|
||||
Call ffebad_start to establish the message, ffebad_here and ffebad_string
|
||||
to send run-time data to it as necessary, then ffebad_finish when through
|
||||
to actually get it to print (to stderr).
|
||||
|
||||
Note: ffebad_start(errnum) turns into ffebad_start_(FALSE,errnum). No
|
||||
outside caller should call ffebad_start_ directly (as indicated by the
|
||||
trailing underscore).
|
||||
|
||||
Call ffebad_start to start a normal message, one that might be inhibited
|
||||
by the current state of statement guessing. Call ffebad_start_lex
|
||||
instead to start a message that is global to all statement guesses and
|
||||
happens only once for all guesses (i.e. the lexer).
|
||||
|
||||
sev and message are overrides for the severity and messages when errnum
|
||||
is FFEBAD, meaning the caller didn't want to have to put a message in
|
||||
bad.def to produce a diagnostic. */
|
||||
|
||||
bool
|
||||
ffebad_start_ (bool lex_override, ffebad errnum, ffebadSeverity sev,
|
||||
char *message)
|
||||
{
|
||||
unsigned char i;
|
||||
|
||||
if (ffebad_is_inhibited_ && !lex_override)
|
||||
{
|
||||
ffebad_is_temp_inhibited_ = TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (errnum != FFEBAD)
|
||||
{
|
||||
ffebad_severity_ = ffebad_messages_[errnum].severity;
|
||||
ffebad_message_ = ffebad_messages_[errnum].message;
|
||||
}
|
||||
else
|
||||
{
|
||||
ffebad_severity_ = sev;
|
||||
ffebad_message_ = message;
|
||||
}
|
||||
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
{
|
||||
extern int inhibit_warnings; /* From toplev.c. */
|
||||
|
||||
switch (ffebad_severity_)
|
||||
{ /* Tell toplev.c about this message. */
|
||||
case FFEBAD_severityINFORMATIONAL:
|
||||
case FFEBAD_severityTRIVIAL:
|
||||
if (inhibit_warnings)
|
||||
{ /* User wants no warnings. */
|
||||
ffebad_is_temp_inhibited_ = TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
/* Fall through. */
|
||||
case FFEBAD_severityWARNING:
|
||||
case FFEBAD_severityPECULIAR:
|
||||
case FFEBAD_severityPEDANTIC:
|
||||
if ((ffebad_severity_ != FFEBAD_severityPEDANTIC)
|
||||
|| !flag_pedantic_errors)
|
||||
{
|
||||
if (count_error (1) == 0)
|
||||
{ /* User wants no warnings. */
|
||||
ffebad_is_temp_inhibited_ = TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
/* Fall through (PEDANTIC && flag_pedantic_errors). */
|
||||
case FFEBAD_severityFATAL:
|
||||
case FFEBAD_severityWEIRD:
|
||||
case FFEBAD_severitySEVERE:
|
||||
case FFEBAD_severityDISASTER:
|
||||
count_error (0);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
|
||||
ffebad_is_temp_inhibited_ = FALSE;
|
||||
ffebad_errnum_ = errnum;
|
||||
ffebad_index_ = 0;
|
||||
ffebad_places_ = 0;
|
||||
for (i = 0; i < FFEBAD_MAX_; ++i)
|
||||
{
|
||||
ffebad_string_[i] = NULL;
|
||||
ffebad_here_[i].line = ffewhere_line_unknown ();
|
||||
ffebad_here_[i].col = ffewhere_column_unknown ();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* ffebad_here -- Establish source location of some diagnostic concern
|
||||
|
||||
ffebad_here(ffebadIndex i,ffewhereLine line,ffewhereColumn col);
|
||||
|
||||
Call ffebad_start to establish the message, ffebad_here and ffebad_string
|
||||
to send run-time data to it as necessary, then ffebad_finish when through
|
||||
to actually get it to print (to stderr). */
|
||||
|
||||
void
|
||||
ffebad_here (ffebadIndex index, ffewhereLine line, ffewhereColumn col)
|
||||
{
|
||||
ffewhereLineNumber line_num;
|
||||
ffewhereLineNumber ln;
|
||||
ffewhereColumnNumber col_num;
|
||||
ffewhereColumnNumber cn;
|
||||
ffebadIndex i;
|
||||
ffebadIndex j;
|
||||
|
||||
if (ffebad_is_temp_inhibited_)
|
||||
return;
|
||||
|
||||
assert (index < FFEBAD_MAX_);
|
||||
ffebad_here_[index].line = ffewhere_line_use (line);
|
||||
ffebad_here_[index].col = ffewhere_column_use (col);
|
||||
if (ffewhere_line_is_unknown (line)
|
||||
|| ffewhere_column_is_unknown (col))
|
||||
{
|
||||
ffebad_here_[index].tag = FFEBAD_MAX_;
|
||||
return;
|
||||
}
|
||||
ffebad_here_[index].tag = 0; /* For now, though it shouldn't matter. */
|
||||
|
||||
/* Sort the source line/col points into the order they occur in the source
|
||||
file. Deal with duplicates appropriately. */
|
||||
|
||||
line_num = ffewhere_line_number (line);
|
||||
col_num = ffewhere_column_number (col);
|
||||
|
||||
/* Determine where in the ffebad_order_ array this new place should go. */
|
||||
|
||||
for (i = 0; i < ffebad_places_; ++i)
|
||||
{
|
||||
ln = ffewhere_line_number (ffebad_here_[ffebad_order_[i]].line);
|
||||
cn = ffewhere_column_number (ffebad_here_[ffebad_order_[i]].col);
|
||||
if (line_num < ln)
|
||||
break;
|
||||
if (line_num == ln)
|
||||
{
|
||||
if (col_num == cn)
|
||||
{
|
||||
ffebad_here_[index].tag = i;
|
||||
return; /* Shouldn't go in, has equivalent. */
|
||||
}
|
||||
else if (col_num < cn)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Before putting new place in ffebad_order_[i], first increment all tags
|
||||
that are i or greater. */
|
||||
|
||||
if (i != ffebad_places_)
|
||||
{
|
||||
for (j = 0; j < FFEBAD_MAX_; ++j)
|
||||
{
|
||||
if (ffebad_here_[j].tag >= i)
|
||||
++ffebad_here_[j].tag;
|
||||
}
|
||||
}
|
||||
|
||||
/* Then slide all ffebad_order_[] entries at and above i up one entry. */
|
||||
|
||||
for (j = ffebad_places_; j > i; --j)
|
||||
ffebad_order_[j] = ffebad_order_[j - 1];
|
||||
|
||||
/* Finally can put new info in ffebad_order_[i]. */
|
||||
|
||||
ffebad_order_[i] = index;
|
||||
ffebad_here_[index].tag = i;
|
||||
++ffebad_places_;
|
||||
}
|
||||
|
||||
/* Establish string for next index (always in order) of message
|
||||
|
||||
ffebad_string(char *string);
|
||||
|
||||
Call ffebad_start to establish the message, ffebad_here and ffebad_string
|
||||
to send run-time data to it as necessary, then ffebad_finish when through
|
||||
to actually get it to print (to stderr). Note: don't trash the string
|
||||
until after calling ffebad_finish, since we just maintain a pointer to
|
||||
the argument passed in until then. */
|
||||
|
||||
void
|
||||
ffebad_string (char *string)
|
||||
{
|
||||
if (ffebad_is_temp_inhibited_)
|
||||
return;
|
||||
|
||||
assert (ffebad_index_ != FFEBAD_MAX_);
|
||||
ffebad_string_[ffebad_index_++] = string;
|
||||
}
|
||||
|
||||
/* ffebad_finish -- Display error message with where & run-time info
|
||||
|
||||
ffebad_finish();
|
||||
|
||||
Call ffebad_start to establish the message, ffebad_here and ffebad_string
|
||||
to send run-time data to it as necessary, then ffebad_finish when through
|
||||
to actually get it to print (to stderr). */
|
||||
|
||||
void
|
||||
ffebad_finish ()
|
||||
{
|
||||
#define MAX_SPACES 132
|
||||
static char *spaces
|
||||
= "...>\
|
||||
\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\
|
||||
\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\
|
||||
\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\
|
||||
\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\
|
||||
\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\
|
||||
\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\
|
||||
\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\
|
||||
\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\040\
|
||||
\040\040\040"; /* MAX_SPACES - 1 spaces. */
|
||||
ffewhereLineNumber last_line_num;
|
||||
ffewhereLineNumber ln;
|
||||
ffewhereLineNumber rn;
|
||||
ffewhereColumnNumber last_col_num;
|
||||
ffewhereColumnNumber cn;
|
||||
ffewhereColumnNumber cnt;
|
||||
ffewhereLine l;
|
||||
ffebadIndex bi;
|
||||
unsigned short i;
|
||||
char pointer;
|
||||
char c;
|
||||
char *s;
|
||||
char *fn;
|
||||
static char buf[1024];
|
||||
int bufi;
|
||||
int index;
|
||||
|
||||
if (ffebad_is_temp_inhibited_)
|
||||
return;
|
||||
|
||||
switch (ffebad_severity_)
|
||||
{
|
||||
case FFEBAD_severityINFORMATIONAL:
|
||||
s = "note:";
|
||||
break;
|
||||
|
||||
case FFEBAD_severityWARNING:
|
||||
s = "warning:";
|
||||
break;
|
||||
|
||||
case FFEBAD_severitySEVERE:
|
||||
s = "fatal:";
|
||||
break;
|
||||
|
||||
default:
|
||||
s = "";
|
||||
break;
|
||||
}
|
||||
|
||||
/* Display the annoying source references. */
|
||||
|
||||
last_line_num = 0;
|
||||
last_col_num = 0;
|
||||
|
||||
for (bi = 0; bi < ffebad_places_; ++bi)
|
||||
{
|
||||
if (ffebad_places_ == 1)
|
||||
pointer = '^';
|
||||
else
|
||||
pointer = '1' + bi;
|
||||
|
||||
l = ffebad_here_[ffebad_order_[bi]].line;
|
||||
ln = ffewhere_line_number (l);
|
||||
rn = ffewhere_line_filelinenum (l);
|
||||
cn = ffewhere_column_number (ffebad_here_[ffebad_order_[bi]].col);
|
||||
fn = ffewhere_line_filename (l);
|
||||
if (ln != last_line_num)
|
||||
{
|
||||
if (bi != 0)
|
||||
fputc ('\n', stderr);
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
report_error_function (fn);
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
fprintf (stderr,
|
||||
#if 0
|
||||
"Line %" ffewhereLineNumber_f "u of %s:\n %s\n %s%c",
|
||||
rn, fn,
|
||||
#else
|
||||
/* the trailing space on the <file>:<line>: line
|
||||
fools emacs19 compilation mode into finding the
|
||||
report */
|
||||
"%s:%" ffewhereLineNumber_f "u: %s\n %s\n %s%c",
|
||||
fn, rn,
|
||||
#endif
|
||||
s,
|
||||
ffewhere_line_content (l),
|
||||
&spaces[cn > MAX_SPACES ? 0 : MAX_SPACES - cn + 4],
|
||||
pointer);
|
||||
last_line_num = ln;
|
||||
last_col_num = cn;
|
||||
s = "(continued):";
|
||||
}
|
||||
else
|
||||
{
|
||||
cnt = cn - last_col_num;
|
||||
fprintf (stderr,
|
||||
"%s%c", &spaces[cnt > MAX_SPACES
|
||||
? 0 : MAX_SPACES - cnt + 4],
|
||||
pointer);
|
||||
last_col_num = cn;
|
||||
}
|
||||
}
|
||||
if (ffebad_places_ == 0)
|
||||
{
|
||||
/* Didn't output "warning:" string, capitalize it for message. */
|
||||
if ((s[0] != '\0') && isalpha (s[0]) && islower (s[0]))
|
||||
{
|
||||
char c;
|
||||
|
||||
c = toupper (s[0]);
|
||||
fprintf (stderr, "%c%s ", c, &s[1]);
|
||||
}
|
||||
else if (s[0] != '\0')
|
||||
fprintf (stderr, "%s ", s);
|
||||
}
|
||||
else
|
||||
fputc ('\n', stderr);
|
||||
|
||||
/* Release the ffewhere info. */
|
||||
|
||||
for (bi = 0; bi < FFEBAD_MAX_; ++bi)
|
||||
{
|
||||
ffewhere_line_kill (ffebad_here_[bi].line);
|
||||
ffewhere_column_kill (ffebad_here_[bi].col);
|
||||
}
|
||||
|
||||
/* Now display the message. */
|
||||
|
||||
bufi = 0;
|
||||
for (i = 0; (c = ffebad_message_[i]) != '\0'; ++i)
|
||||
{
|
||||
if (c == '%')
|
||||
{
|
||||
c = ffebad_message_[++i];
|
||||
if (isalpha (c) && isupper (c))
|
||||
{
|
||||
index = c - 'A';
|
||||
|
||||
if ((index < 0) || (index >= FFEBAD_MAX_))
|
||||
{
|
||||
bufi = ffebad_bufputs_ (buf, bufi, "[REPORT BUG!!] %");
|
||||
bufi = ffebad_bufputc_ (buf, bufi, c);
|
||||
}
|
||||
else
|
||||
{
|
||||
s = ffebad_string_[index];
|
||||
if (s == NULL)
|
||||
bufi = ffebad_bufputs_ (buf, bufi, "[REPORT BUG!!]");
|
||||
else
|
||||
bufi = ffebad_bufputs_ (buf, bufi, s);
|
||||
}
|
||||
}
|
||||
else if (isdigit (c))
|
||||
{
|
||||
index = c - '0';
|
||||
|
||||
if ((index < 0) || (index >= FFEBAD_MAX_))
|
||||
{
|
||||
bufi = ffebad_bufputs_ (buf, bufi, "[REPORT BUG!!] %");
|
||||
bufi = ffebad_bufputc_ (buf, bufi, c);
|
||||
}
|
||||
else
|
||||
{
|
||||
pointer = ffebad_here_[index].tag + '1';
|
||||
if (pointer == FFEBAD_MAX_ + '1')
|
||||
pointer = '?';
|
||||
else if (ffebad_places_ == 1)
|
||||
pointer = '^';
|
||||
bufi = ffebad_bufputc_ (buf, bufi, '(');
|
||||
bufi = ffebad_bufputc_ (buf, bufi, pointer);
|
||||
bufi = ffebad_bufputc_ (buf, bufi, ')');
|
||||
}
|
||||
}
|
||||
else if (c == '\0')
|
||||
break;
|
||||
else if (c == '%')
|
||||
bufi = ffebad_bufputc_ (buf, bufi, '%');
|
||||
else
|
||||
{
|
||||
bufi = ffebad_bufputs_ (buf, bufi, "[REPORT BUG!!]");
|
||||
bufi = ffebad_bufputc_ (buf, bufi, '%');
|
||||
bufi = ffebad_bufputc_ (buf, bufi, c);
|
||||
}
|
||||
}
|
||||
else
|
||||
bufi = ffebad_bufputc_ (buf, bufi, c);
|
||||
}
|
||||
bufi = ffebad_bufputc_ (buf, bufi, '\n');
|
||||
bufi = ffebad_bufflush_ (buf, bufi);
|
||||
}
|
||||
705
gcc/f/bad.def
Normal file
705
gcc/f/bad.def
Normal file
@@ -0,0 +1,705 @@
|
||||
/* bad.def -- Public #include File (module.h template V1.0)
|
||||
Copyright (C) 1995-1997 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Owning Modules:
|
||||
bad.c
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
#define INFORM FFEBAD_severityINFORMATIONAL
|
||||
#define TRIVIAL FFEBAD_severityTRIVIAL
|
||||
#define WARN FFEBAD_severityWARNING
|
||||
#define PECULIAR FFEBAD_severityPECULIAR
|
||||
#define FATAL FFEBAD_severityFATAL
|
||||
#define WEIRD FFEBAD_severityWEIRD
|
||||
#define SEVERE FFEBAD_severitySEVERE
|
||||
#define DISASTER FFEBAD_severityDISASTER
|
||||
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_FIRST_BINARY_OPERAND, FATAL,
|
||||
"Missing first operand for binary operator at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_NULL_CHAR_CONST, WARN,
|
||||
"Zero-length character constant at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_INVALID_TOKEN_IN_EXPRESSION, FATAL,
|
||||
"Invalid token at %0 in expression or subexpression at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_OPERAND_FOR_OPERATOR, FATAL,
|
||||
"Missing operand for operator at %1 at end of expression at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_ALREADY_DEFINED, FATAL,
|
||||
"Label %A already defined at %1 when redefined at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_UNRECOGNIZED_CHARACTER, FATAL,
|
||||
"Unrecognized character at %0 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_WITHOUT_STMT, WARN,
|
||||
"Label definition %A at %0 on empty statement (as of %1)")
|
||||
FFEBAD_MSGS2 (FFEBAD_EXTRA_LABEL_DEF, FATAL,
|
||||
"Extra label definition %A at %0 -- perhaps previous label definition %B at %1 should have CONTINUE statement?",
|
||||
"Extra label definition %A at %0 following label definition %B at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_FIRST_CHAR_INVALID, FATAL,
|
||||
"Invalid first character at %0 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS1 (FFEBAD_LINE_TOO_LONG, FATAL,
|
||||
"Line too long as of %0 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_FIELD_NOT_NUMERIC, FATAL,
|
||||
"Non-numeric character at %0 in label field [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_NUMBER_INVALID, FATAL,
|
||||
"Label number at %0 not in range 1-99999")
|
||||
FFEBAD_MSGS1 (FFEBAD_NON_ANSI_COMMENT, WARN,
|
||||
"At %0, '!' and '/*' are not valid comment delimiters")
|
||||
FFEBAD_MSGS1 (FFEBAD_NON_ANSI_CONTINUATION_COLUMN, WARN,
|
||||
"Continuation indicator at %0 must appear in column 6 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_ON_CONTINUATION, FATAL,
|
||||
"Label at %0 invalid with continuation line indicator at %1 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_CONTINUATION, FATAL,
|
||||
"Continuation indicator at %0 invalid on first non-comment line of file or following END or INCLUDE [info -f g77 M LEX]",
|
||||
"Continuation indicator at %0 invalid here [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS1 (FFEBAD_NO_CLOSING_APOSTROPHE, FATAL,
|
||||
"Character constant at %0 has no closing apostrophe at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_NOT_ENOUGH_HOLLERITH_CHARS, FATAL,
|
||||
"Hollerith constant at %0 specified %A more characters than are present as of %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_CLOSE_PAREN, FATAL,
|
||||
"Missing close parenthese at %0 needed to match open parenthese at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_INTEGER_TOO_LARGE, FATAL,
|
||||
"Integer at %0 too large")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_MAGICAL, WARN,
|
||||
"Integer at %0 too large except as negative number (preceded by unary minus sign)",
|
||||
"Non-negative integer at %0 too large")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_MAGICAL_PRECEDENCE, WARN,
|
||||
"Integer at %0 too large; even though preceded by unary minus sign at %1, subsequent operator at %2 has precedence over unary minus -- enclose unary minus sign and integer in parentheses to force precedence",
|
||||
"Integer at %0 too large (%2 has precedence over %1)")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_MAGICAL_BINARY, WARN,
|
||||
"Integer at %0 too large; even though preceded by minus sign at %1, because minus sign is a binary, not unary, operator -- insert plus sign before minus sign to change it to a unary minus sign",
|
||||
"Integer at %0 too large (needs unary, not binary, minus at %1)")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_MAGICAL_PRECEDENCE_BINARY, WARN,
|
||||
"Integer at %0 too large; even though preceded by minus sign at %1, subsequent operator at %2 has precedence over minus, and that minus sign should be a unary minus rather than a binary minus -- insert plus sign before minus sign to change it to a unary minus sign, and enclose unary minus sign and integer in parentheses to force precedence",
|
||||
"Integer at %0 too large (%2 has precedence over %1, which needs to be unary, not binary, minus)")
|
||||
FFEBAD_MSGS1 (FFEBAD_IGNORING_PERIOD, FATAL,
|
||||
"Period at %0 not followed by digits for floating-point number or by `NOT.', `TRUE.', or `FALSE.'")
|
||||
FFEBAD_MSGS1 (FFEBAD_INSERTING_PERIOD, FATAL,
|
||||
"Missing close-period between `.%A' at %0 and %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_INVALID_EXPONENT, FATAL,
|
||||
"Invalid exponent at %0 for real constant at %1; nondigit `%A' in exponent field")
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_EXPONENT_VALUE, FATAL,
|
||||
"Missing value at %1 for real-number exponent at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_BINARY_OPERATOR, FATAL,
|
||||
"Expected binary operator between expressions at %0 and at %1")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_DOTDOT, FATAL,
|
||||
"Period at %0 not followed by valid keyword forming a valid binary operator; `.%A.' is not a valid binary operator",
|
||||
"`.%A.' at %0 not a binary operator")
|
||||
FFEBAD_MSGS2 (FFEBAD_QUOTE_MISSES_DIGITS, FATAL,
|
||||
"Double-quote at %0 not followed by a string of valid octal digits at %1",
|
||||
"Invalid octal constant at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_BINARY_DIGIT, FATAL,
|
||||
"Invalid binary digit(s) found in string of digits at %0",
|
||||
"Invalid binary constant at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_HEX_DIGIT, FATAL,
|
||||
"Invalid hexadecimal digit(s) found in string of digits at %0",
|
||||
"Invalid hexadecimal constant at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_OCTAL_DIGIT, FATAL,
|
||||
"Invalid octal digit(s) found in string of digits at %0",
|
||||
"Invalid octal constant at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_RADIX_SPECIFIER, FATAL,
|
||||
"Invalid radix specifier `%A' at %0 for typeless constant at %1",
|
||||
"Invalid typeless constant at %1")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_TYPELESS_BINARY_DIGIT, FATAL,
|
||||
"Invalid binary digit(s) found in string of digits at %0",
|
||||
"Invalid binary constant at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_TYPELESS_OCTAL_DIGIT, FATAL,
|
||||
"Invalid octal digit(s) found in string of digits at %0",
|
||||
"Invalid octal constant at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_TYPELESS_HEX_DIGIT, FATAL,
|
||||
"Invalid hexadecimal digit(s) found in string of digits at %0",
|
||||
"Invalid hexadecimal constant at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_COMPLEX_PART, FATAL,
|
||||
"%A part of complex constant at %0 must be a real or integer constant -- otherwise use CMPLX() or COMPLEX() in place of ()",
|
||||
"%A part of complex constant at %0 not a real or integer constant")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_PERCENT, FATAL,
|
||||
"Invalid keyword `%%%A' at %0 in this context",
|
||||
"Invalid keyword `%%%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_NULL_EXPRESSION, FATAL,
|
||||
"Null expression between %0 and %1 invalid in this context",
|
||||
"Invalid null expression between %0 and %1")
|
||||
FFEBAD_MSGS2 (FFEBAD_CONCAT_ARGS_TYPE, FATAL,
|
||||
"Concatenation operator at %0 must operate on two subexpressions of character type, but neither subexpression at %1 or %2 is of character type",
|
||||
"Invalid operands at %1 and %2 for concatenation operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_CONCAT_ARG_TYPE, FATAL,
|
||||
"Concatenation operator at %0 must operate on two subexpressions of character type, but the subexpression at %1 is not of character type",
|
||||
"Invalid operand at %1 for concatenation operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_CONCAT_ARG_KIND, FATAL,
|
||||
"Concatenation operator at %0 must operate on two scalar (not array) subexpressions, two function invocations returning character scalars, or a combination of both -- but the subexpression at %1 is %A",
|
||||
"Invalid operand (is %A) at %1 for concatenation operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_MATH_ARGS_TYPE, FATAL,
|
||||
"Arithmetic operator at %0 must operate on two subexpressions of arithmetic type, but neither subexpression at %1 or %2 is of arithmetic type",
|
||||
"Invalid operands at %1 and %2 for arithmetic operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_MATH_ARG_TYPE, FATAL,
|
||||
"Arithmetic operator at %0 must operate on two subexpressions of arithmetic type, but the subexpression at %1 is not of arithmetic type",
|
||||
"Invalid operand at %1 for arithmetic operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_MATH_ARG_KIND, FATAL,
|
||||
"Arithmetic operator at %0 must operate on two scalar (not array) subexpressions, two function invocations returning arithmetic scalars, or a combination of both -- but the subexpression at %1 is %A",
|
||||
"Invalid operand (is %A) at %1 for arithmetic operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_NO_CLOSING_QUOTE, FATAL,
|
||||
"Character constant at %0 has no closing quote at %1 [info -f g77 M LEX]",
|
||||
"Unterminated character constant at %0 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_CHAR_CONTINUE, FATAL,
|
||||
"Continuation line at %0 must have initial `&' since it continues a character context [info -f g77 M LEX]",
|
||||
"Missing initial `&' on continuation line at %0 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_LEXTOK_CONTINUE, FATAL,
|
||||
"Continuation line at %0 must have initial `&' since it continues a split lexical token [info -f g77 M LEX]",
|
||||
"Missing initial `&' on continuation line at %0 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_FREE_CONTINUE, FATAL,
|
||||
"Continuation line at %0 invalid because it consists only of a single `&' as the only nonblank character",
|
||||
"Invalid continuation line at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_STMT_BEGINS_BAD, FATAL,
|
||||
"Statement at %0 begins with invalid token [info -f g77 M LEX]",
|
||||
"Invalid statement at %0 [info -f g77 M LEX]")
|
||||
FFEBAD_MSGS1 (FFEBAD_SEMICOLON, FATAL,
|
||||
"Semicolon at %0 is an invalid token")
|
||||
FFEBAD_MSGS2 (FFEBAD_UNREC_STMT, FATAL,
|
||||
"Unrecognized statement name at %0 and invalid form for assignment or statement-function definition at %1",
|
||||
"Invalid statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_STMT_FORM, FATAL,
|
||||
"Invalid form for %A statement at %0",
|
||||
"Invalid %A statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_HOLL_IN_STMT, FATAL,
|
||||
"Invalid use of hollerith constant in statement at %0 -- enclose the constant in parentheses (for example, change BACKSPACE 2HAB to BACKSPACE (2HAB))",
|
||||
"Enclose hollerith constant in statement at %0 in parentheses")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_EXTRA_COMMA, FATAL,
|
||||
"Extraneous comma in FORMAT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_MISSING_COMMA, WARN,
|
||||
"Missing comma in FORMAT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_SPURIOUS_SIGN, FATAL,
|
||||
"Spurious sign in FORMAT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_SPURIOUS_NUMBER, FATAL,
|
||||
"Spurious number in FORMAT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_TEXT_IN_NUMBER, FATAL,
|
||||
"Spurious text trailing number in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_P_NOCOMMA, FATAL,
|
||||
"nP control edit descriptor not followed by comma but followed by edit descriptor at %0 other than D, E, EN, F, or G",
|
||||
"Invalid edit descriptor at %0 following nP control edit descriptor")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_BAD_SPEC, FATAL,
|
||||
"Unrecognized FORMAT specifier at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_I_SPEC, FATAL,
|
||||
"Invalid I specifier in FORMAT statement at %0 -- correct form: [r]Iw.[m]",
|
||||
"Invalid I specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_B_SPEC, FATAL,
|
||||
"Invalid B specifier in FORMAT statement at %0 -- correct form: [r]Bw.[m]",
|
||||
"Invalid B specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_O_SPEC, FATAL,
|
||||
"Invalid O specifier in FORMAT statement at %0 -- correct form: [r]Ow.[m]",
|
||||
"Invalid O specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_Z_SPEC, FATAL,
|
||||
"Invalid Z specifier in FORMAT statement at %0 -- correct form: [r]Zw.[m]",
|
||||
"Invalid Z specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_F_SPEC, FATAL,
|
||||
"Invalid F specifier in FORMAT statement at %0 -- correct form: [r]Fw.d",
|
||||
"Invalid F specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_E_SPEC, FATAL,
|
||||
"Invalid E specifier in FORMAT statement at %0 -- correct form: [r]Ew.d[Ee]",
|
||||
"Invalid E specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_EN_SPEC, FATAL,
|
||||
"Invalid EN specifier in FORMAT statement at %0 -- correct form: [r]ENw.d[Ee]",
|
||||
"Invalid EN specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_G_SPEC, FATAL,
|
||||
"Invalid G specifier in FORMAT statement at %0 -- correct form: [r]Gw.d[Ee]",
|
||||
"Invalid G specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_L_SPEC, FATAL,
|
||||
"Invalid L specifier in FORMAT statement at %0 -- correct form: [r]Lw",
|
||||
"Invalid L specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_A_SPEC, FATAL,
|
||||
"Invalid A specifier in FORMAT statement at %0 -- correct form: [r]A[w]",
|
||||
"Invalid A specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_D_SPEC, FATAL,
|
||||
"Invalid D specifier in FORMAT statement at %0 -- correct form: [r]Dw.d",
|
||||
"Invalid D specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_Q_SPEC, FATAL,
|
||||
"Invalid Q specifier in FORMAT statement at %0 -- correct form: Q",
|
||||
"Invalid Q specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_DOLLAR_SPEC, FATAL,
|
||||
"Invalid $ specifier in FORMAT statement at %0 -- correct form: $",
|
||||
"Invalid $ specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_P_SPEC, FATAL,
|
||||
"Invalid P specifier in FORMAT statement at %0 -- correct form: kP",
|
||||
"Invalid P specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_T_SPEC, FATAL,
|
||||
"Invalid T specifier in FORMAT statement at %0 -- correct form: Tn",
|
||||
"Invalid T specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_TL_SPEC, FATAL,
|
||||
"Invalid TL specifier in FORMAT statement at %0 -- correct form: TLn",
|
||||
"Invalid TL specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_TR_SPEC, FATAL,
|
||||
"Invalid TR specifier in FORMAT statement at %0 -- correct form: TRn",
|
||||
"Invalid TR specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_X_SPEC, FATAL,
|
||||
"Invalid X specifier in FORMAT statement at %0 -- correct form: nX",
|
||||
"Invalid X specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_S_SPEC, FATAL,
|
||||
"Invalid S specifier in FORMAT statement at %0 -- correct form: S",
|
||||
"Invalid S specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_SP_SPEC, FATAL,
|
||||
"Invalid SP specifier in FORMAT statement at %0 -- correct form: SP",
|
||||
"Invalid SP specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_SS_SPEC, FATAL,
|
||||
"Invalid SS specifier in FORMAT statement at %0 -- correct form: SS",
|
||||
"Invalid SS specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_BN_SPEC, FATAL,
|
||||
"Invalid BN specifier in FORMAT statement at %0 -- correct form: BN",
|
||||
"Invalid BN specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_BZ_SPEC, FATAL,
|
||||
"Invalid BZ specifier in FORMAT statement at %0 -- correct form: BZ",
|
||||
"Invalid BZ specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_COLON_SPEC, FATAL,
|
||||
"Invalid : specifier in FORMAT statement at %0 -- correct form: :",
|
||||
"Invalid : specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_BAD_H_SPEC, FATAL,
|
||||
"Invalid H specifier in FORMAT statement at %0 -- correct form: nHcharacters !where n is an unsigned decimal constant, and characters !contains exactly n characters (including spaces)",
|
||||
"Invalid H specifier in FORMAT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_MISSING_PAREN, FATAL,
|
||||
"Missing close-parenthese(s) in FORMAT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_MISSING_DOT, FATAL,
|
||||
"Missing number following period in FORMAT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_MISSING_EXP, FATAL,
|
||||
"Missing number following `E' in FORMAT statement at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_EXPR_TOKEN, FATAL,
|
||||
"Invalid token with FORMAT run-time expression at %0 -- use the traditional operators .LT., .LE., .GT., .GE., .EQ., and .NE. in place of the newer tokens <, <=, >, >=, ==, and !=, because > ends an expression within a FORMAT statement",
|
||||
"Invalid token with FORMAT run-time expression at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_TRAILING_COMMA, WARN,
|
||||
"Spurious trailing comma preceding terminator at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_INTERFACE_ASSIGNMENT, WARN,
|
||||
"At %0, specify OPERATOR instead of ASSIGNMENT for INTERFACE statement not specifying the assignment operator (=)")
|
||||
FFEBAD_MSGS1 (FFEBAD_INTERFACE_OPERATOR, WARN,
|
||||
"At %0, specify ASSIGNMENT instead of OPERATOR for INTERFACE statement specifying the assignment operator (=)")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTERFACE_NONLETTER, FATAL,
|
||||
"Defined operator at %0 contains a nonletter -- must contain only letters A-Z (or a-z)",
|
||||
"Nonletter in defined operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INVALID_TYPEDECL_ATTR, FATAL,
|
||||
"Invalid type-declaration attribute at %0 -- must be one of: DIMENSION(array-spec), EXTERNAL, INTRINSIC, PARAMETER, or SAVE",
|
||||
"Invalid type-declaration attribute at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_INVALID_TYPEDECL_INIT, FATAL,
|
||||
"Cannot specify =initialization-expr at %0 unless `::' appears before list of objects")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_USE_DEF, FATAL,
|
||||
"Reference to label at %1 inconsistent with its definition at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_USE_USE, FATAL,
|
||||
"Reference to label at %1 inconsistent with earlier reference at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_DEF_DO, FATAL,
|
||||
"DO-statement reference to label at %1 follows its definition at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_BLOCK, WARN,
|
||||
"Reference to label at %1 is outside block containing definition at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_DO_BLOCK_DO, FATAL,
|
||||
"DO-statement references to label at %0 and %2 separated by unterminated block starting at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_LABEL_DO_BLOCK_END, FATAL,
|
||||
"DO-statement reference to label at %0 and label definition at %2 separated by unterminated block starting at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_INVALID_LABEL_DEF, FATAL,
|
||||
"Label definition at %0 invalid on this kind of statement")
|
||||
FFEBAD_MSGS1 (FFEBAD_ORDER_1, FATAL,
|
||||
"Statement at %0 invalid in this context")
|
||||
FFEBAD_MSGS1 (FFEBAD_ORDER_2, FATAL,
|
||||
"Statement at %0 invalid in context established by statement at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_CONSTRUCT_NAMED, FATAL,
|
||||
"Statement at %0 must specify construct name specified at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_CONSTRUCT_NOT_NAMED, FATAL,
|
||||
"Construct name at %0 superfluous, no construct name specified at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_CONSTRUCT_WRONG_NAME, FATAL,
|
||||
"Construct name at %0 not the same as construct name at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_CONSTRUCT_NO_DO_NAME, FATAL,
|
||||
"Construct name at %0 does not match construct name for any containing DO constructs")
|
||||
FFEBAD_MSGS1 (FFEBAD_DO_HAD_LABEL, FATAL,
|
||||
"Label definition missing at %0 for DO construct specifying label at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_AFTER_ELSE, FATAL,
|
||||
"Statement at %0 follows ELSE block for IF construct at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_NO_LABEL_DEF, FATAL,
|
||||
"No label definition for FORMAT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_SECOND_ELSE_WHERE, FATAL,
|
||||
"Second occurrence of ELSE WHERE at %0 within WHERE at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_END_WO, WARN,
|
||||
"END statement at %0 missing `%A' keyword required for internal or module procedure(s) bounded by %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_INVALID_MODULE_PROCEDURE, FATAL,
|
||||
"MODULE PROCEDURE statement at %0 disallowed because INTERFACE at %1 specifies no generic name, operator, or assignment")
|
||||
FFEBAD_MSGS1 (FFEBAD_BLOCKDATA_NOT_NAMED, FATAL,
|
||||
"BLOCK DATA name at %0 superfluous, no name specified at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_PROGRAM_NOT_NAMED, FATAL,
|
||||
"Program name at %0 superfluous, no PROGRAM statement specified at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_UNIT_WRONG_NAME, FATAL,
|
||||
"Program unit name at %0 not the same as name at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_TYPE_WRONG_NAME, FATAL,
|
||||
"Type name at %0 not the same as name at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_EOF_BEFORE_BLOCK_END, FATAL,
|
||||
"End of source file before end of block started at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_UNDEF_LABEL, FATAL,
|
||||
"Undefined label, first referenced at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_CONFLICTING_SAVES, WARN,
|
||||
"SAVE statement or attribute at %1 cannot be specified along with SAVE statement or attribute at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_CONFLICTING_ACCESSES, FATAL,
|
||||
"PUBLIC or PRIVATE statement at %1 cannot be specified along with PUBLIC or PRIVATE statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_RETURN_IN_MAIN, WARN,
|
||||
"RETURN statement at %0 invalid within a main program unit")
|
||||
FFEBAD_MSGS1 (FFEBAD_ALTRETURN_IN_PROGRAM, FATAL,
|
||||
"Alternate return specifier at %0 invalid within a main program unit")
|
||||
FFEBAD_MSGS1 (FFEBAD_ALTRETURN_IN_FUNCTION, FATAL,
|
||||
"Alternate return specifier at %0 invalid within a function")
|
||||
FFEBAD_MSGS1 (FFEBAD_DERIVTYP_ACCESS, FATAL,
|
||||
"Access specifier or PRIVATE statement at %0 invalid for derived-type definition within other than the specification part of a module")
|
||||
FFEBAD_MSGS1 (FFEBAD_DERIVTYP_ACCESS_FIRST, FATAL,
|
||||
"Access specifier at %0 must immediately follow derived-type statement at %1 with no intervening statements")
|
||||
FFEBAD_MSGS1 (FFEBAD_DERIVTYP_NO_COMPONENTS, FATAL,
|
||||
"No components specified as of %0 for derived-type definition beginning at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_STRUCT_NO_COMPONENTS, FATAL,
|
||||
"No components specified as of %0 for structure definition beginning at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_STRUCT_MISSING_NAME, FATAL,
|
||||
"Missing structure name for outer structure definition at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_STRUCT_IGNORING_FIELD, FATAL,
|
||||
"Field names at %0 for outer structure definition -- specify them in a subsequent RECORD statement instead")
|
||||
FFEBAD_MSGS1 (FFEBAD_STRUCT_MISSING_FIELD, FATAL,
|
||||
"Missing field name(s) for structure definition at %0 within structure definition at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_MAP_NO_COMPONENTS, FATAL,
|
||||
"No components specified as of %0 for map beginning at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_UNION_NO_TWO_MAPS, FATAL,
|
||||
"Zero or one maps specified as of %0 for union beginning at %1 -- at least two are required")
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_SPECIFIER, FATAL,
|
||||
"Missing %A specifier in statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_NAMELIST_ITEMS, FATAL,
|
||||
"Items in I/O list starting at %0 invalid for namelist-directed I/O")
|
||||
FFEBAD_MSGS1 (FFEBAD_CONFLICTING_SPECS, FATAL,
|
||||
"Conflicting I/O control specifications at %0 and %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_NO_UNIT_SPEC, FATAL,
|
||||
"No UNIT= specifier in I/O control list at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_ADVANCE_SPEC, FATAL,
|
||||
"Specification at %0 requires ADVANCE=`NO' specification in same I/O control list")
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_FORMAT_SPEC, FATAL,
|
||||
"Specification at %0 requires explicit FMT= specification in same I/O control list")
|
||||
FFEBAD_MSGS2 (FFEBAD_SPEC_VALUE, FATAL,
|
||||
"Unrecognized value for character constant at %0 -- expecting %A",
|
||||
"Unrecognized value for character constant at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_CASE_SECOND_DEFAULT, FATAL,
|
||||
"Second occurrence of CASE DEFAULT at %0 within SELECT CASE at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_CASE_DUPLICATE, FATAL,
|
||||
"Duplicate or overlapping case values/ranges at %0 and %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_CASE_TYPE_DISAGREE, FATAL,
|
||||
"Type and/or kind-type parameter disagreement between CASE value or value within range at %0 and SELECT CASE at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_CASE_LOGICAL_RANGE, FATAL,
|
||||
"Range specification at %0 invalid for CASE statement within logical-type SELECT CASE statement")
|
||||
FFEBAD_MSGS2 (FFEBAD_CASE_BAD_RANGE, FATAL,
|
||||
"Range specification at %0 invalid -- at least one expression must be specified, or use CASE DEFAULT",
|
||||
"Range specification at %0 invalid")
|
||||
FFEBAD_MSGS2 (FFEBAD_CASE_RANGE_USELESS, INFORM,
|
||||
"Range specification at %0 useless; first expression greater than second expression in range, so range can never be matched by any selection expression",
|
||||
"Useless range at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_F90, FATAL,
|
||||
"Fortran 90 feature at %0 unsupported")
|
||||
FFEBAD_MSGS2 (FFEBAD_KINDTYPE, FATAL,
|
||||
"Invalid kind at %0 for type at %1 -- unsupported or not permitted",
|
||||
"Invalid kind at %0 for type at %1")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_IMPLICIT, FATAL,
|
||||
"Cannot establish implicit type for initial letter `%A' at %0 -- already explicitly established or used to set implicit type of some name, or backwards order of letters in letter range",
|
||||
"Cannot establish implicit type for initial letter `%A' at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_SYMERR, FATAL,
|
||||
"Invalid declaration of or reference to symbol `%A' at %0 [initially seen at %1]")
|
||||
FFEBAD_MSGS2 (FFEBAD_LABEL_WRONG_PLACE, FATAL,
|
||||
"Label definition %A (at %0) invalid -- must be in columns 1-5",
|
||||
"Invalid label definition %A (at %0)")
|
||||
FFEBAD_MSGS1 (FFEBAD_NULL_ELEMENT, FATAL,
|
||||
"Null element at %0 for array reference at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_TOO_FEW_ELEMENTS, FATAL,
|
||||
"Too few elements (%A missing) as of %0 for array reference at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_TOO_MANY_ELEMENTS, FATAL,
|
||||
"Too many elements as of %0 for array reference at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_MISSING_COLON_IN_SUBSTR, FATAL,
|
||||
"Missing colon as of %0 in substring reference for %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_BAD_SUBSTR, FATAL,
|
||||
"Invalid use at %0 of substring operator on %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_RANGE_SUBSTR, WARN,
|
||||
"Substring begin/end point at %0 out of defined range")
|
||||
FFEBAD_MSGS1 (FFEBAD_RANGE_ARRAY, WARN,
|
||||
"Array element value at %0 out of defined range")
|
||||
FFEBAD_MSGS1 (FFEBAD_EXPR_WRONG, FATAL,
|
||||
"Expression at %0 has incorrect data type or rank for its context")
|
||||
FFEBAD_MSGS1 (FFEBAD_DIV_BY_ZERO, WARN,
|
||||
"Division by 0 (zero) at %0 (IEEE not yet supported)")
|
||||
FFEBAD_MSGS1 (FFEBAD_DO_STEP_ZERO, FATAL,
|
||||
"%A step count known to be 0 (zero) at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DO_END_OVERFLOW, WARN,
|
||||
"%A end value plus step count known to overflow at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DO_IMP_OVERFLOW, WARN,
|
||||
"%A begin, end, and step-count values known to result in implementation-dependent behavior due to overflow(s) in intermediate calculations at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DO_NULL, WARN,
|
||||
"%A begin, end, and step-count values known to result in no iterations at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_BAD_TYPES, FATAL,
|
||||
"Type disagreement between expressions at %0 and %1")
|
||||
FFEBAD_MSGS2 (FFEBAD_FORMAT_EXPR_SPEC, FATAL,
|
||||
"Run-time expression at %0 in FORMAT statement that does not follow the first executable statement in the program unit -- move the statement",
|
||||
"FORMAT at %0 with run-time expression must follow first executable statement")
|
||||
FFEBAD_MSGS2 (FFEBAD_BAD_IMPDO, FATAL,
|
||||
"Unexpected token at %0 in implied-DO construct at %1 -- form of implied-DO is `(item-list,do-var=start,end[,incr])'",
|
||||
"Unexpected token at %0 in implied-DO construct at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_BAD_IMPDCL, FATAL,
|
||||
"No specification for implied-DO iterator `%A' at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_IMPDO_PAREN, WARN,
|
||||
"Gratuitous parentheses surround implied-DO construct at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_ZERO_SIZE, FATAL,
|
||||
"Zero-size specification invalid at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_ZERO_ARRAY, FATAL,
|
||||
"Zero-size array at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_BAD_COMPLEX, FATAL,
|
||||
"Target machine does not support complex entity of kind specified at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_BAD_DBLCMPLX, FATAL,
|
||||
"Target machine does not support DOUBLE COMPLEX, specified at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_BAD_POWER, WARN,
|
||||
"Attempt to raise constant zero to a power at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_BOOL_ARGS_TYPE, FATAL,
|
||||
"Boolean/logical operator at %0 must operate on two subexpressions of logical type, but neither subexpression at %1 or %2 is of logical type",
|
||||
"Invalid operands at %1 and %2 for boolean operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_BOOL_ARG_TYPE, FATAL,
|
||||
"Boolean/logical operator at %0 must operate on two subexpressions of logical type, but the subexpression at %1 is not of logical type",
|
||||
"Invalid operand at %1 for boolean operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_BOOL_ARG_KIND, FATAL,
|
||||
"Boolean/logical operator at %0 must operate on two scalar (not array) subexpressions, two function invocations returning logical scalars, or a combination of both -- but the subexpression at %1 is %A",
|
||||
"Invalid operand (is %A) at %1 for boolean operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_NOT_ARG_TYPE, FATAL,
|
||||
".NOT. operator at %0 must operate on subexpression of logical type, but the subexpression at %1 is not of logical type",
|
||||
"Invalid operand at %1 for .NOT. operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_NOT_ARG_KIND, FATAL,
|
||||
".NOT. operator at %0 must operate on scalar subexpressions -- but the subexpression at %1 is %A",
|
||||
"Invalid operand (is %A) at %1 for .NOT. operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_EQOP_ARGS_TYPE, FATAL,
|
||||
"Equality operator at %0 must operate on two subexpressions of arithmetic or character type, but neither subexpression at %1 or %2 is of arithmetic or character type",
|
||||
"Invalid operands at %1 and %2 for equality operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_EQOP_ARG_TYPE, FATAL,
|
||||
"Equality operator at %0 must operate on two subexpressions of arithmetic or character type, but the subexpression at %1 is not of arithmetic or character type",
|
||||
"Invalid operand at %1 for equality operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_EQOP_ARG_KIND, FATAL,
|
||||
"Equality operator at %0 must operate on two scalar (not array) subexpressions, two function invocations returning arithmetic or character scalars, or a combination of both -- but the subexpression at %1 is %A",
|
||||
"Invalid operand (is %A) at %1 for equality operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_RELOP_ARGS_TYPE, FATAL,
|
||||
"Relational operator at %0 must operate on two subexpressions of integer, real, or character type, but neither subexpression at %1 or %2 is of integer, real, or character type",
|
||||
"Invalid operands at %1 and %2 for relational operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_RELOP_ARG_TYPE, FATAL,
|
||||
"Relational operator at %0 must operate on two subexpressions of integer, real, or character type, but the subexpression at %1 is not of integer, real, or character type",
|
||||
"Invalid operand at %1 for relational operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_RELOP_ARG_KIND, FATAL,
|
||||
"Relational operator at %0 must operate on two scalar (not array) subexpressions, two function invocations returning integer, real, or character scalars, or a combination of both -- but the subexpression at %1 is %A",
|
||||
"Invalid operand (is %A) at %1 for relational operator at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTRINSIC_REF, FATAL,
|
||||
"Reference to intrinsic `%A' at %0 invalid -- one or more arguments have incorrect type",
|
||||
"Invalid reference to intrinsic `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTRINSIC_TOOFEW, FATAL,
|
||||
"Too few arguments passed to intrinsic `%A' at %0",
|
||||
"Too few arguments for intrinsic `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTRINSIC_TOOMANY, FATAL,
|
||||
"Too many arguments passed to intrinsic `%A' at %0",
|
||||
"Too many arguments for intrinsic `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTRINSIC_DISABLED, FATAL,
|
||||
"Reference to disabled intrinsic `%A' at %0",
|
||||
"Disabled intrinsic `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTRINSIC_IS_SUBR, FATAL,
|
||||
"Reference to intrinsic subroutine `%A' as if it were a function at %0",
|
||||
"Function reference to intrinsic subroutine `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTRINSIC_IS_FUNC, FATAL,
|
||||
"Reference to intrinsic function `%A' as if it were a subroutine at %0",
|
||||
"Subroutine reference to intrinsic function `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTRINSIC_UNIMPL, FATAL,
|
||||
"Reference to unimplemented intrinsic `%A' at %0 -- use EXTERNAL to reference user-written procedure with this name",
|
||||
"Unimplemented intrinsic `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INTRINSIC_UNIMPLW, WARN,
|
||||
"Reference to unimplemented intrinsic `%A' at %0 (assumed EXTERNAL)",
|
||||
"Unimplemented intrinsic `%A' at %0 (assumed EXTERNAL)")
|
||||
FFEBAD_MSGS1 (FFEBAD_INTRINSIC_AMBIG, FATAL,
|
||||
"Reference to generic intrinsic `%A' at %0 could be to form %B or %C")
|
||||
FFEBAD_MSGS1 (FFEBAD_INTRINSIC_CMPAMBIG, FATAL,
|
||||
"Ambiguous use of intrinsic `%A' at %0 [info -f g77 M CMPAMBIG]")
|
||||
FFEBAD_MSGS1 (FFEBAD_INTRINSIC_EXPIMP, WARN,
|
||||
"Intrinsic `%A' referenced %Bly at %0, %Cly at %1 [info -f g77 M EXPIMP]")
|
||||
FFEBAD_MSGS1 (FFEBAD_INTRINSIC_GLOBAL, WARN,
|
||||
"Same name `%A' used for %B at %0 and %C at %1 [info -f g77 M INTGLOB]")
|
||||
FFEBAD_MSGS1 (FFEBAD_INTRINSIC_TYPE, WARN,
|
||||
"Explicit type declaration for intrinsic `%A' disagrees with invocation at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_OPEN_INCLUDE, FATAL,
|
||||
"Unable to open INCLUDE file `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_DOITER, FATAL,
|
||||
"Attempt to modify variable `%A' at %0 while it serves as DO-loop iterator at %1",
|
||||
"Modification of DO-loop iterator `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_DOITER_IMPDO, FATAL,
|
||||
"Attempt to modify variable `%A' via item #%B in list at %0 while it serves as implied-DO iterator at %1",
|
||||
"Modification of DO-loop iterator `%A' at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_TOO_MANY_DIMS, FATAL,
|
||||
"Array has too many dimensions, as of dimension specifier at %0",
|
||||
"Too many dimensions at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_NULL_ARGUMENT, FATAL,
|
||||
"Null argument at %0 for statement function reference at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_TOO_FEW_ARGUMENTS, FATAL,
|
||||
"%A too few arguments (starting with dummy argument `%B') as of %0 for statement function reference at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_TOO_MANY_ARGUMENTS, FATAL,
|
||||
"%A too many arguments as of %0 for statement function reference at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_ARRAY_AS_SFARG, FATAL,
|
||||
"Array supplied at %1 for dummy argument `%A' in statement function reference at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FORMAT_UNSUPPORTED, FATAL,
|
||||
"Unsupported FORMAT specifier at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_OPEN_UNSUPPORTED, WARN,
|
||||
"Unsupported OPEN control item at %0 -- ACTION=, ASSOCIATEVARIABLE=, BLOCKSIZE=, BUFFERCOUNT=, CARRIAGECONTROL=, DEFAULTFILE=, DELIM=, DISPOSE=, EXTENDSIZE=, INITIALSIZE=, KEY=, MAXREC=, NOSPANBLOCKS, ORGANIZATION=, PAD=, POSITION=, READONLY=, RECORDTYPE=, SHARED=, and USEROPEN= are not supported",
|
||||
"Unsupported OPEN control item at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_INQUIRE_UNSUPPORTED, WARN,
|
||||
"Unsupported INQUIRE control item at %0 -- ACTION=, CARRIAGECONTROL=, DEFAULTFILE=, DELIM=, KEYED=, ORGANIZATION=, PAD=, POSITION=, READ=, READWRITE=, RECORDTYPE=, and WRITE= are not supported",
|
||||
"Unsupported INQUIRE control item at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_READ_UNSUPPORTED, WARN,
|
||||
"Unsupported READ control item at %0 -- ADVANCE=, EOR=, KEYEQ=, KEYGE=, KEYGT=, KEYID=, NULLS=, and SIZE= are not supported",
|
||||
"Unsupported READ control item at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_WRITE_UNSUPPORTED, WARN,
|
||||
"Unsupported WRITE control item at %0 -- ADVANCE= and EOR= are not supported",
|
||||
"Unsupported WRITE control item at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_VXT_UNSUPPORTED, FATAL,
|
||||
"Unsupported VXT statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_REINIT, FATAL,
|
||||
"Attempt to specify second initial value for `%A' at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_TOOFEW, FATAL,
|
||||
"Too few initial values in list of initializers for `%A' at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_TOOMANY, FATAL,
|
||||
"Too many initial values in list of initializers starting at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_RANGE, FATAL,
|
||||
"Array or substring specification for `%A' out of range in statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_SUBSCRIPT, FATAL,
|
||||
"Array subscript #%B out of range for initialization of `%A' in statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_ZERO, FATAL,
|
||||
"Implied do-loop step count of 0 (zero) for iteration variable `%A' in statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_EMPTY, FATAL,
|
||||
"Implied do-loop iteration count of 0 (zero) for iteration variable `%A' in statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_EVAL, FATAL,
|
||||
"Not an integer constant expression in implied do-loop in statement at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_DATA_MULTIPLE, FATAL,
|
||||
"Attempt to specify second initial value for element of `%A' at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_COMMON, FATAL,
|
||||
"Attempt to EQUIVALENCE common areas `%A' and `%B' at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_ALIGN, FATAL,
|
||||
"Can't place `%A' as directed by EQUIVALENCE due to alignment restrictions")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_MISMATCH, FATAL,
|
||||
"Mismatched EQUIVALENCE requirements for placement of `%A' at both %C and %D bytes offset from `%B'")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_RANGE, FATAL,
|
||||
"Array or substring specification for `%A' out of range in EQUIVALENCE statement")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_SUBSTR, FATAL,
|
||||
"Substring of non-CHARACTER entity `%A' in EQUIVALENCE statement")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_ARRAY, FATAL,
|
||||
"Array reference to scalar variable `%A' in EQUIVALENCE statement")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_SUBSCRIPT, WARN,
|
||||
"Array subscript #%B out of range for EQUIVALENCE of `%A'")
|
||||
FFEBAD_MSGS2 (FFEBAD_COMMON_PAD, WARN,
|
||||
"Padding of %A %D required before `%B' in common block `%C' at %0 -- consider reordering members, largest-type-size first",
|
||||
"Padding of %A %D required before `%B' in common block `%C' at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_COMMON_NEG, FATAL,
|
||||
"Attempt to extend COMMON area beyond its starting point via EQUIVALENCE of `%A'")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_FEW, FATAL,
|
||||
"Too few elements in reference to array `%A' in EQUIVALENCE statement")
|
||||
FFEBAD_MSGS1 (FFEBAD_EQUIV_MANY, FATAL,
|
||||
"Too many elements in reference to array `%A' in EQUIVALENCE statement")
|
||||
FFEBAD_MSGS1 (FFEBAD_MIXED_TYPES, WARN,
|
||||
"Mixed CHARACTER and non-CHARACTER types via COMMON/EQUIVALENCE -- for example, `%A' and `%B'")
|
||||
FFEBAD_MSGS2 (FFEBAD_IMPLICIT_ADJLEN, FATAL,
|
||||
"Invalid length specification at %0 for IMPLICIT statement -- must be integer constant expression",
|
||||
"Invalid length specification at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_ENTRY_CONFLICTS, FATAL,
|
||||
"Type of ENTRY point at %0 to function conflicts with type(s) of previous entrypoint(s) -- must all be identical-length CHARACTER or none be CHARACTER type",
|
||||
"Type of ENTRY point at %0 to function conflicts with type(s) of previous entrypoint(s)")
|
||||
FFEBAD_MSGS1 (FFEBAD_RETURN_VALUE_UNSET, WARN,
|
||||
"Return value `%A' for FUNCTION at %0 not referenced in subprogram")
|
||||
FFEBAD_MSGS2 (FFEBAD_COMMON_ALREADY_INIT, FATAL,
|
||||
"Common block `%A' initialized at %0 already initialized at %1 -- only one program unit may specify initial values for a particular common block",
|
||||
"Common block `%A' initialized at %0 already initialized at %1")
|
||||
FFEBAD_MSGS2 (FFEBAD_COMMON_INIT_PAD, WARN,
|
||||
"Initial padding for common block `%A' is %B %C at %0 -- consider reordering members, largest-type-size first",
|
||||
"Initial padding for common block `%A' is %B %C at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_COMMON_DIFF_PAD, FATAL,
|
||||
"Initial padding for common block `%A' is %B %D at %0 but %C %E at %1 -- consider reordering members, largest-type-size first",
|
||||
"Initial padding for common block `%A' is %B %D at %0 but %C %E at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_COMMON_DIFF_SAVE, WARN,
|
||||
"Common block `%A' is SAVEd, explicitly or implicitly, at %0 but not SAVEd at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_COMMON_DIFF_SIZE, WARN,
|
||||
"Common block `%A' is %B %D in length at %0 but %C %E at %1")
|
||||
FFEBAD_MSGS2 (FFEBAD_COMMON_ENLARGED, FATAL,
|
||||
"Common block `%A' is initialized to %B %D long at %0 but enlarged to %C %E at %1 -- use consistent definitions or reorder program units in source file",
|
||||
"Common block `%A' is initialized to %B %D long at %0 but enlarged to %C %E at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_COMMON_BLANK_INIT, WARN,
|
||||
"Blank common initialized at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_NEED_INTRINSIC, WARN,
|
||||
"Intrinsic `%A' is passed as actual argument at %0 but not explicitly declared INTRINSIC")
|
||||
FFEBAD_MSGS1 (FFEBAD_NEED_EXTERNAL, WARN,
|
||||
"External procedure `%A' is passed as actual argument at %0 but not explicitly declared EXTERNAL")
|
||||
FFEBAD_MSGS1 (FFEBAD_SYMBOL_UPPER_CASE, WARN,
|
||||
"Character `%A' (for example) is upper-case in symbol name at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_SYMBOL_LOWER_CASE, WARN,
|
||||
"Character `%A' (for example) is lower-case in symbol name at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_SYMBOL_NOLOWER_INITCAP, WARN,
|
||||
"Character `%A' not followed at some point by lower-case character in symbol name at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_SYMBOL_LOWER_INITCAP, WARN,
|
||||
"Initial character `%A' is lower-case in symbol name at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_DO_REAL, WARN,
|
||||
"DO-variable `%A' is type REAL or DOUBLE PRECISION at %0 -- unexpected behavior likely",
|
||||
"DO-variable `%A' is type REAL or DOUBLE PRECISION at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_NAMELIST_CASE, WARN,
|
||||
"NAMELIST not adequately supported by run-time library for source files with case preserved")
|
||||
FFEBAD_MSGS1 (FFEBAD_NESTED_PERCENT, WARN,
|
||||
"Nested %% construct (%%VAL, %%REF, or %%DESCR) at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_ACTUALARG, WARN,
|
||||
"Invalid actual argument at %0 -- replace hollerith constants with %%REF('string') and typeless constants with INTEGER constant equivalents, or use -fugly-args or -fugly",
|
||||
"Invalid actual argument at %0")
|
||||
FFEBAD_MSGS2 (FFEBAD_QUAD_UNSUPPORTED, WARN,
|
||||
"Quadruple-precision floating-point unsupported -- treating constant at %0 as double-precision",
|
||||
"Quadruple-precision floating-point unsupported")
|
||||
FFEBAD_MSGS2 (FFEBAD_TOO_BIG_INIT, WARN,
|
||||
"Initialization of large (%B-unit) aggregate area `%A' at %0 currently very slow and takes lots of memory during g77 compile -- to be improved in 0.6",
|
||||
"This could take a while (initializing `%A' at %0)...")
|
||||
FFEBAD_MSGS1 (FFEBAD_BLOCKDATA_STMT, WARN,
|
||||
"Statement at %0 invalid in BLOCK DATA program unit at %1")
|
||||
FFEBAD_MSGS1 (FFEBAD_TRUNCATING_CHARACTER, WARN,
|
||||
"Truncating characters on right side of character constant at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_TRUNCATING_HOLLERITH, WARN,
|
||||
"Truncating characters on right side of hollerith constant at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_TRUNCATING_NUMERIC, WARN,
|
||||
"Truncating non-zero data on left side of numeric constant at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_TRUNCATING_TYPELESS, WARN,
|
||||
"Truncating non-zero data on left side of typeless constant at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_TYPELESS_OVERFLOW, WARN,
|
||||
"Typeless constant at %0 too large")
|
||||
FFEBAD_MSGS1 (FFEBAD_AMPERSAND, WARN,
|
||||
"First-column ampersand continuation at %0")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_ALREADY_SEEN, FATAL,
|
||||
"Global name `%A' defined at %0 already defined at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_ALREADY_SEEN_W, WARN,
|
||||
"Global name `%A' defined at %0 already defined at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_DISAGREEMENT, FATAL,
|
||||
"Global name `%A' is %B at %0 but is %C at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_DISAGREEMENT_W, WARN,
|
||||
"Global name `%A' is %B at %0 but is %C at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_TYPE_MISMATCH, FATAL,
|
||||
"Global name `%A' at %0 has different type at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_TYPE_MISMATCH_W, WARN,
|
||||
"Global name `%A' at %0 has different type at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_NARGS, FATAL,
|
||||
"Too %B arguments passed to `%A' at %0 versus definition at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_NARGS_W, WARN,
|
||||
"Too %B arguments for `%A' at %0 versus invocation at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_ARG, FATAL,
|
||||
"Argument #%B of `%A' is %C at %0 but is %D at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_FILEWIDE_ARG_W, WARN,
|
||||
"Argument #%B of `%A' is %C at %0 but is %D at %1 [info -f g77 M GLOBALS]")
|
||||
FFEBAD_MSGS1 (FFEBAD_ARRAY_LARGE, FATAL,
|
||||
"Array `%A' at %0 is too large to handle")
|
||||
|
||||
#undef INFORM
|
||||
#undef TRIVIAL
|
||||
#undef WARN
|
||||
#undef PECULIAR
|
||||
#undef FATAL
|
||||
#undef WEIRD
|
||||
#undef SEVERE
|
||||
#undef DISASTER
|
||||
108
gcc/f/bad.h
Normal file
108
gcc/f/bad.h
Normal file
@@ -0,0 +1,108 @@
|
||||
/* bad.h -- Public #include File (module.h template V1.0)
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Owning Modules:
|
||||
bad.c
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
/* Allow multiple inclusion to work. */
|
||||
|
||||
#ifndef _H_f_bad
|
||||
#define _H_f_bad
|
||||
|
||||
/* Simple definitions and enumerations. */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
#define FFEBAD_MSGS1(KWD,SEV,MSG) KWD,
|
||||
#define FFEBAD_MSGS2(KWD,SEV,LMSG,SMSG) KWD,
|
||||
#include "bad.def"
|
||||
#undef FFEBAD_MSGS1
|
||||
#undef FFEBAD_MSGS2
|
||||
FFEBAD
|
||||
} ffebad;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
||||
/* Order important; must be increasing severity. */
|
||||
|
||||
FFEBAD_severityINFORMATIONAL, /* User notice. */
|
||||
FFEBAD_severityTRIVIAL, /* Internal notice. */
|
||||
FFEBAD_severityWARNING, /* User warning. */
|
||||
FFEBAD_severityPECULIAR, /* Internal warning. */
|
||||
FFEBAD_severityPEDANTIC, /* Pedantic, could be warning or error. */
|
||||
FFEBAD_severityFATAL, /* User error. */
|
||||
FFEBAD_severityWEIRD, /* Internal error. */
|
||||
FFEBAD_severitySEVERE, /* User error, cannot continue. */
|
||||
FFEBAD_severityDISASTER, /* Internal error, cannot continue. */
|
||||
FFEBAD_severity
|
||||
} ffebadSeverity;
|
||||
|
||||
/* Typedefs. */
|
||||
|
||||
typedef unsigned char ffebadIndex;
|
||||
|
||||
/* Include files needed by this one. */
|
||||
|
||||
#include "where.h"
|
||||
|
||||
/* Structure definitions. */
|
||||
|
||||
|
||||
/* Global objects accessed by users of this module. */
|
||||
|
||||
extern bool ffebad_is_inhibited_;
|
||||
|
||||
/* Declare functions with prototypes. */
|
||||
|
||||
void ffebad_finish (void);
|
||||
void ffebad_here (ffebadIndex i, ffewhereLine wl, ffewhereColumn wc);
|
||||
void ffebad_init_0 (void);
|
||||
bool ffebad_is_fatal (ffebad errnum);
|
||||
ffebadSeverity ffebad_severity (ffebad errnum);
|
||||
bool ffebad_start_ (bool lex_override, ffebad errnum, ffebadSeverity sev,
|
||||
char *message);
|
||||
void ffebad_string (char *string);
|
||||
|
||||
/* Define macros. */
|
||||
|
||||
#define ffebad_inhibit() (ffebad_is_inhibited_)
|
||||
#define ffebad_init_1()
|
||||
#define ffebad_init_2()
|
||||
#define ffebad_init_3()
|
||||
#define ffebad_init_4()
|
||||
#define ffebad_set_inhibit(f) (ffebad_is_inhibited_ = (f))
|
||||
#define ffebad_start(e) ffebad_start_ (FALSE, (e), FFEBAD_severity, NULL)
|
||||
#define ffebad_start_lex(e) ffebad_start_ (TRUE, (e), FFEBAD_severity, NULL)
|
||||
#define ffebad_start_msg(m,s) ffebad_start_ (FALSE, FFEBAD, (s), (m))
|
||||
#define ffebad_start_msg_lex(m,s) ffebad_start_ (TRUE, FFEBAD, (s), (m))
|
||||
#define ffebad_terminate_0()
|
||||
#define ffebad_terminate_1()
|
||||
#define ffebad_terminate_2()
|
||||
#define ffebad_terminate_3()
|
||||
#define ffebad_terminate_4()
|
||||
|
||||
/* End of #include file. */
|
||||
|
||||
#endif
|
||||
201
gcc/f/bit.c
Normal file
201
gcc/f/bit.c
Normal file
@@ -0,0 +1,201 @@
|
||||
/* bit.c -- Implementation File (module.c template V1.0)
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Related Modules:
|
||||
None
|
||||
|
||||
Description:
|
||||
Tracks arrays of booleans in useful ways.
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
/* Include files. */
|
||||
|
||||
#include "proj.h"
|
||||
#include "glimits.j"
|
||||
#include "bit.h"
|
||||
#include "malloc.h"
|
||||
|
||||
/* Externals defined here. */
|
||||
|
||||
|
||||
/* Simple definitions and enumerations. */
|
||||
|
||||
|
||||
/* Internal typedefs. */
|
||||
|
||||
|
||||
/* Private include files. */
|
||||
|
||||
|
||||
/* Internal structure definitions. */
|
||||
|
||||
|
||||
/* Static objects accessed by functions in this module. */
|
||||
|
||||
|
||||
/* Static functions (internal). */
|
||||
|
||||
|
||||
/* Internal macros. */
|
||||
|
||||
|
||||
/* ffebit_count -- Count # of bits set a particular way
|
||||
|
||||
ffebit b; // the ffebit object
|
||||
ffebitCount offset; // 0..size-1
|
||||
bool value; // FALSE (0), TRUE (1)
|
||||
ffebitCount range; // # bits to test
|
||||
ffebitCount number; // # bits equal to value
|
||||
ffebit_count(b,offset,value,range,&number);
|
||||
|
||||
Sets <number> to # bits at <offset> through <offset + range - 1> set to
|
||||
<value>. If <range> is 0, <number> is set to 0. */
|
||||
|
||||
void
|
||||
ffebit_count (ffebit b, ffebitCount offset, bool value, ffebitCount range,
|
||||
ffebitCount *number)
|
||||
{
|
||||
ffebitCount element;
|
||||
ffebitCount bitno;
|
||||
|
||||
assert (offset + range <= b->size);
|
||||
|
||||
for (*number = 0; range != 0; --range, ++offset)
|
||||
{
|
||||
element = offset / CHAR_BIT;
|
||||
bitno = offset % CHAR_BIT;
|
||||
if (value
|
||||
== ((b->bits[element] & ((unsigned char) 1 << bitno)) == 0 ? FALSE : TRUE))
|
||||
++ * number;
|
||||
}
|
||||
}
|
||||
|
||||
/* ffebit_new -- Create a new ffebit object
|
||||
|
||||
ffebit b;
|
||||
ffebit_kill(b);
|
||||
|
||||
Destroys an ffebit object obtained via ffebit_new. */
|
||||
|
||||
void
|
||||
ffebit_kill (ffebit b)
|
||||
{
|
||||
malloc_kill_ks (b->pool, b,
|
||||
offsetof (struct _ffebit_, bits)
|
||||
+ (b->size + CHAR_BIT - 1) / CHAR_BIT);
|
||||
}
|
||||
|
||||
/* ffebit_new -- Create a new ffebit object
|
||||
|
||||
ffebit b;
|
||||
mallocPool pool;
|
||||
ffebitCount size;
|
||||
b = ffebit_new(pool,size);
|
||||
|
||||
Allocates an ffebit object that holds the values of <size> bits in pool
|
||||
<pool>. */
|
||||
|
||||
ffebit
|
||||
ffebit_new (mallocPool pool, ffebitCount size)
|
||||
{
|
||||
ffebit b;
|
||||
|
||||
b = malloc_new_zks (pool, "ffebit",
|
||||
offsetof (struct _ffebit_, bits)
|
||||
+ (size + CHAR_BIT - 1) / CHAR_BIT,
|
||||
0);
|
||||
b->pool = pool;
|
||||
b->size = size;
|
||||
|
||||
return b;
|
||||
}
|
||||
|
||||
/* ffebit_set -- Set value of # of bits
|
||||
|
||||
ffebit b; // the ffebit object
|
||||
ffebitCount offset; // 0..size-1
|
||||
bool value; // FALSE (0), TRUE (1)
|
||||
ffebitCount length; // # bits to set starting at offset (usually 1)
|
||||
ffebit_set(b,offset,value,length);
|
||||
|
||||
Sets bit #s <offset> through <offset + length - 1> to <value>. */
|
||||
|
||||
void
|
||||
ffebit_set (ffebit b, ffebitCount offset, bool value, ffebitCount length)
|
||||
{
|
||||
ffebitCount i;
|
||||
ffebitCount element;
|
||||
ffebitCount bitno;
|
||||
|
||||
assert (offset + length <= b->size);
|
||||
|
||||
for (i = 0; i < length; ++i, ++offset)
|
||||
{
|
||||
element = offset / CHAR_BIT;
|
||||
bitno = offset % CHAR_BIT;
|
||||
b->bits[element] = (((unsigned char) (value ? 1 : 0)) << bitno)
|
||||
| (b->bits[element] & ~((unsigned char) 1 << bitno));
|
||||
}
|
||||
}
|
||||
|
||||
/* ffebit_test -- Test value of # of bits
|
||||
|
||||
ffebit b; // the ffebit object
|
||||
ffebitCount offset; // 0..size-1
|
||||
bool value; // FALSE (0), TRUE (1)
|
||||
ffebitCount length; // # bits with same value
|
||||
ffebit_test(b,offset,&value,&length);
|
||||
|
||||
Returns value of bits at <offset> through <offset + length - 1> in
|
||||
<value>. If <offset> is already at the end of the bit array (if
|
||||
offset == ffebit_size(b)), <length> is set to 0 and <value> is
|
||||
undefined. */
|
||||
|
||||
void
|
||||
ffebit_test (ffebit b, ffebitCount offset, bool *value, ffebitCount *length)
|
||||
{
|
||||
ffebitCount i;
|
||||
ffebitCount element;
|
||||
ffebitCount bitno;
|
||||
|
||||
if (offset >= b->size)
|
||||
{
|
||||
assert (offset == b->size);
|
||||
*length = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
element = offset / CHAR_BIT;
|
||||
bitno = offset % CHAR_BIT;
|
||||
*value = (b->bits[element] & ((unsigned char) 1 << bitno)) == 0 ? FALSE : TRUE;
|
||||
*length = 1;
|
||||
|
||||
for (i = b->size - offset - 1, ++offset; i != 0; --i, ++offset, ++*length)
|
||||
{
|
||||
element = offset / CHAR_BIT;
|
||||
bitno = offset % CHAR_BIT;
|
||||
if (*value
|
||||
!= ((b->bits[element] & ((unsigned char) 1 << bitno)) == 0 ? FALSE : TRUE))
|
||||
break;
|
||||
}
|
||||
}
|
||||
84
gcc/f/bit.h
Normal file
84
gcc/f/bit.h
Normal file
@@ -0,0 +1,84 @@
|
||||
/* bit.h -- Public #include File (module.h template V1.0)
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Owning Modules:
|
||||
bit.c
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
/* Allow multiple inclusion to work. */
|
||||
|
||||
#ifndef _H_f_bit
|
||||
#define _H_f_bit
|
||||
|
||||
/* Simple definitions and enumerations. */
|
||||
|
||||
|
||||
/* Typedefs. */
|
||||
|
||||
typedef struct _ffebit_ *ffebit;
|
||||
typedef unsigned long ffebitCount;
|
||||
#define ffebitCount_f "l"
|
||||
|
||||
/* Include files needed by this one. */
|
||||
|
||||
#include "malloc.h"
|
||||
|
||||
/* Structure definitions. */
|
||||
|
||||
struct _ffebit_
|
||||
{
|
||||
mallocPool pool;
|
||||
ffebitCount size;
|
||||
unsigned char bits[1];
|
||||
};
|
||||
|
||||
/* Global objects accessed by users of this module. */
|
||||
|
||||
|
||||
/* Declare functions with prototypes. */
|
||||
|
||||
void ffebit_count (ffebit b, ffebitCount offset, bool value, ffebitCount range,
|
||||
ffebitCount *number);
|
||||
void ffebit_kill (ffebit b);
|
||||
ffebit ffebit_new (mallocPool pool, ffebitCount size);
|
||||
void ffebit_set (ffebit b, ffebitCount offset, bool value, ffebitCount length);
|
||||
void ffebit_test (ffebit b, ffebitCount offset, bool *value, ffebitCount *length);
|
||||
|
||||
/* Define macros. */
|
||||
|
||||
#define ffebit_init_0()
|
||||
#define ffebit_init_1()
|
||||
#define ffebit_init_2()
|
||||
#define ffebit_init_3()
|
||||
#define ffebit_init_4()
|
||||
#define ffebit_pool(b) ((b)->pool)
|
||||
#define ffebit_size(b) ((b)->size)
|
||||
#define ffebit_terminate_0()
|
||||
#define ffebit_terminate_1()
|
||||
#define ffebit_terminate_2()
|
||||
#define ffebit_terminate_3()
|
||||
#define ffebit_terminate_4()
|
||||
|
||||
/* End of #include file. */
|
||||
|
||||
#endif
|
||||
69
gcc/f/bld-op.def
Normal file
69
gcc/f/bld-op.def
Normal file
@@ -0,0 +1,69 @@
|
||||
/* bld-op.def -- Public #include File (module.h template V1.0)
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Owning Modules:
|
||||
bad.c
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
FFEBLD_OP (FFEBLD_opANY, "ANY", 0)
|
||||
FFEBLD_OP (FFEBLD_opSTAR, "STAR", 0) /* For adjustable arrays, alternate return dummies, etc. */
|
||||
FFEBLD_OP (FFEBLD_opCONTER, "CONTER", 0)
|
||||
FFEBLD_OP (FFEBLD_opARRTER, "ARRTER", 0) /* Array of constants (DATA...). */
|
||||
FFEBLD_OP (FFEBLD_opACCTER, "ACCTER", 0) /* Accreting ARRTER. */
|
||||
FFEBLD_OP (FFEBLD_opSYMTER, "SYMTER", 0)
|
||||
FFEBLD_OP (FFEBLD_opITEM, "ITEM", 0)
|
||||
FFEBLD_OP (FFEBLD_opUPLUS, "UPLUS", 1)
|
||||
FFEBLD_OP (FFEBLD_opUMINUS, "UMINUS", 1)
|
||||
FFEBLD_OP (FFEBLD_opADD, "ADD", 2)
|
||||
FFEBLD_OP (FFEBLD_opSUBTRACT, "SUBTRACT", 2)
|
||||
FFEBLD_OP (FFEBLD_opMULTIPLY, "MULTIPLY", 2)
|
||||
FFEBLD_OP (FFEBLD_opDIVIDE, "DIVIDE", 2)
|
||||
FFEBLD_OP (FFEBLD_opPOWER, "POWER", 2)
|
||||
FFEBLD_OP (FFEBLD_opCONCATENATE, "CONCATENATE", 2)
|
||||
FFEBLD_OP (FFEBLD_opNOT, "NOT", 1)
|
||||
FFEBLD_OP (FFEBLD_opLT, "LT", 2)
|
||||
FFEBLD_OP (FFEBLD_opLE, "LE", 2)
|
||||
FFEBLD_OP (FFEBLD_opEQ, "EQ", 2)
|
||||
FFEBLD_OP (FFEBLD_opNE, "NE", 2)
|
||||
FFEBLD_OP (FFEBLD_opGT, "GT", 2)
|
||||
FFEBLD_OP (FFEBLD_opGE, "GE", 2)
|
||||
FFEBLD_OP (FFEBLD_opAND, "AND", 2)
|
||||
FFEBLD_OP (FFEBLD_opOR, "OR", 2)
|
||||
FFEBLD_OP (FFEBLD_opXOR, "XOR", 2)
|
||||
FFEBLD_OP (FFEBLD_opEQV, "EQV", 2)
|
||||
FFEBLD_OP (FFEBLD_opNEQV, "NEQV", 2)
|
||||
FFEBLD_OP (FFEBLD_opPAREN, "PAREN", 1)
|
||||
FFEBLD_OP (FFEBLD_opPERCENT_LOC, "%LOC", 1)
|
||||
FFEBLD_OP (FFEBLD_opPERCENT_VAL, "%VAL", 1)
|
||||
FFEBLD_OP (FFEBLD_opPERCENT_REF, "%REF", 1)
|
||||
FFEBLD_OP (FFEBLD_opPERCENT_DESCR, "%DESCR", 1)
|
||||
FFEBLD_OP (FFEBLD_opCONVERT, "CONVERT", 1)
|
||||
FFEBLD_OP (FFEBLD_opREPEAT, "REPEAT", 2)
|
||||
FFEBLD_OP (FFEBLD_opBOUNDS, "BOUNDS", 2) /* For low:high in dimension lists. */
|
||||
FFEBLD_OP (FFEBLD_opFUNCREF, "FUNCREF", 2)
|
||||
FFEBLD_OP (FFEBLD_opSUBRREF, "SUBRREF", 2)
|
||||
FFEBLD_OP (FFEBLD_opARRAYREF, "ARRAYREF", 2)
|
||||
FFEBLD_OP (FFEBLD_opSUBSTR, "SUBSTR", 2)
|
||||
FFEBLD_OP (FFEBLD_opLABTER, "LABTER", 0)
|
||||
FFEBLD_OP (FFEBLD_opLABTOK, "LABTOK", 0) /* Like LABTER but contains ffelexToken instead. */
|
||||
FFEBLD_OP (FFEBLD_opIMPDO, "IMPDO", 2)
|
||||
5782
gcc/f/bld.c
Normal file
5782
gcc/f/bld.c
Normal file
File diff suppressed because it is too large
Load Diff
1009
gcc/f/bld.h
Normal file
1009
gcc/f/bld.h
Normal file
File diff suppressed because it is too large
Load Diff
287
gcc/f/bugs.texi
Normal file
287
gcc/f/bugs.texi
Normal file
@@ -0,0 +1,287 @@
|
||||
@c Copyright (C) 1995-1997 Free Software Foundation, Inc.
|
||||
@c This is part of the G77 manual.
|
||||
@c For copying conditions, see the file g77.texi.
|
||||
|
||||
@c The text of this file appears in the file BUGS
|
||||
@c in the G77 distribution, as well as in the G77 manual.
|
||||
|
||||
@c 1996-06-24
|
||||
|
||||
@ifclear BUGSONLY
|
||||
@node Actual Bugs
|
||||
@section Actual Bugs We Haven't Fixed Yet
|
||||
@end ifclear
|
||||
|
||||
This section identifies bugs that @code{g77} @emph{users}
|
||||
might run into.
|
||||
This includes bugs that are actually in the @code{gcc}
|
||||
back end (GBE) or in @code{libf2c}, because those
|
||||
sets of code are at least somewhat under the control
|
||||
of (and necessarily intertwined with) @code{g77}, so it
|
||||
isn't worth separating them out.
|
||||
|
||||
For information on bugs that might afflict people who
|
||||
configure, port, build, and install @code{g77},
|
||||
@ref{Problems Installing}.
|
||||
|
||||
@itemize @bullet
|
||||
@cindex SIGNAL() intrinsic
|
||||
@cindex intrinsics, SIGNAL()
|
||||
@item
|
||||
Work is needed on the @code{SIGNAL()} intrinsic to ensure
|
||||
that pointers and integers are properly handled on all
|
||||
targets, including 64-bit machines.
|
||||
|
||||
@cindex -fugly-comma option
|
||||
@cindex options, -fugly-comma
|
||||
@item
|
||||
When using @samp{-fugly-comma}, @code{g77} assumes an extra
|
||||
@samp{%VAL(0)} argument is to be passed to intrinsics
|
||||
taking no arguments, such as @code{IARGC()}, which in
|
||||
turn reject such a call.
|
||||
Although this has been worked around for 0.5.18 due
|
||||
to changes in the handling of intrinsics,
|
||||
@code{g77} needs to do the ugly-argument-appending trick
|
||||
only for external-function invocation, as this would
|
||||
probably be more consistent with compilers that default
|
||||
to using that trick.
|
||||
|
||||
@item
|
||||
Something about @code{g77}'s straightforward handling of
|
||||
label references and definitions sometimes prevents the GBE
|
||||
from unrolling loops.
|
||||
Until this is solved, try inserting or removing @code{CONTINUE}
|
||||
statements as the terminal statement, using the @code{END DO}
|
||||
form instead, and so on.
|
||||
(Probably improved, but not wholly fixed, in 0.5.21.)
|
||||
|
||||
@item
|
||||
The @code{g77} command itself should more faithfully process
|
||||
options the way the @code{gcc} command does.
|
||||
For example, @code{gcc} accepts abbreviated forms of long options,
|
||||
@code{g77} generally doesn't.
|
||||
|
||||
@item
|
||||
Some confusion in diagnostics concerning failing @code{INCLUDE}
|
||||
statements from within @code{INCLUDE}'d or @code{#include}'d files.
|
||||
|
||||
@cindex integer constants
|
||||
@cindex constants, integer
|
||||
@item
|
||||
@code{g77} assumes that @code{INTEGER(KIND=1)} constants range
|
||||
from @samp{-2**31} to @samp{2**31-1} (the range for
|
||||
two's-complement 32-bit values),
|
||||
instead of determining their range from the actual range of the
|
||||
type for the configuration (and, someday, for the constant).
|
||||
|
||||
Further, it generally doesn't implement the handling
|
||||
of constants very well in that it makes assumptions about the
|
||||
configuration that it no longer makes regarding variables (types).
|
||||
|
||||
Included with this item is the fact that @code{g77} doesn't recognize
|
||||
that, on IEEE-754/854-compliant systems, @samp{0./0.} should produce a NaN
|
||||
and no warning instead of the value @samp{0.} and a warning.
|
||||
This is to be fixed in version 0.6, when @code{g77} will use the
|
||||
@code{gcc} back end's constant-handling mechanisms to replace its own.
|
||||
|
||||
@cindex compiler speed
|
||||
@cindex speed, of compiler
|
||||
@cindex compiler memory usage
|
||||
@cindex memory usage, of compiler
|
||||
@cindex large aggregate areas
|
||||
@cindex initialization
|
||||
@cindex DATA statement
|
||||
@cindex statements, DATA
|
||||
@item
|
||||
@code{g77} uses way too much memory and CPU time to process large aggregate
|
||||
areas having any initialized elements.
|
||||
|
||||
For example, @samp{REAL A(1000000)} followed by @samp{DATA A(1)/1/}
|
||||
takes up way too much time and space, including
|
||||
the size of the generated assembler file.
|
||||
This is to be mitigated somewhat in version 0.6.
|
||||
|
||||
Version 0.5.18 improves cases like this---specifically,
|
||||
cases of @emph{sparse} initialization that leave large, contiguous
|
||||
areas uninitialized---significantly.
|
||||
However, even with the improvements, these cases still
|
||||
require too much memory and CPU time.
|
||||
|
||||
(Version 0.5.18 also improves cases where the initial values are
|
||||
zero to a much greater degree, so if the above example
|
||||
ends with @samp{DATA A(1)/0/}, the compile-time performance
|
||||
will be about as good as it will ever get, aside from unrelated
|
||||
improvements to the compiler.)
|
||||
|
||||
Note that @code{g77} does display a warning message to
|
||||
notify the user before the compiler appears to hang.
|
||||
@xref{Large Initialization,,Initialization of Large Aggregate Areas},
|
||||
for information on how to change the point at which
|
||||
@code{g77} decides to issue this warning.
|
||||
|
||||
@cindex debugging
|
||||
@cindex common blocks
|
||||
@cindex equivalence areas
|
||||
@cindex local equivalence areas
|
||||
@item
|
||||
@code{g77} doesn't emit variable and array members of common blocks for use
|
||||
with a debugger (the @samp{-g} command-line option).
|
||||
The code is present to do this, but doesn't work with at least
|
||||
one debug format---perhaps it works with others.
|
||||
And it turns out there's a similar bug for
|
||||
local equivalence areas, so that has been disabled as well.
|
||||
|
||||
As of Version 0.5.19, a temporary kludge solution is provided whereby
|
||||
some rudimentary information on a member is written as a string that
|
||||
is the member's value as a character string.
|
||||
|
||||
@xref{Code Gen Options,,Options for Code Generation Conventions},
|
||||
for information on the @samp{-fdebug-kludge} option.
|
||||
|
||||
@cindex code, displaying main source
|
||||
@cindex displaying main source code
|
||||
@cindex debugging main source code
|
||||
@cindex printing main source
|
||||
@item
|
||||
When debugging, after starting up the debugger but before being able
|
||||
to see the source code for the main program unit, the user must currently
|
||||
set a breakpoint at @samp{MAIN__} (or @samp{MAIN___} or @samp{MAIN_} if
|
||||
@samp{MAIN__} doesn't exist)
|
||||
and run the program until it hits the breakpoint.
|
||||
At that point, the
|
||||
main program unit is activated and about to execute its first
|
||||
executable statement, but that's the state in which the debugger should
|
||||
start up, as is the case for languages like C.
|
||||
|
||||
@cindex debugger
|
||||
@item
|
||||
Debugging @code{g77}-compiled code using debuggers other than
|
||||
@code{gdb} is likely not to work.
|
||||
|
||||
Getting @code{g77} and @code{gdb} to work together is a known
|
||||
problem---getting @code{g77} to work properly with other
|
||||
debuggers, for which source code often is unavailable to @code{g77}
|
||||
developers, seems like a much larger, unknown problem,
|
||||
and is a lower priority than making @code{g77} and @code{gdb}
|
||||
work together properly.
|
||||
|
||||
On the other hand, information about problems other debuggers
|
||||
have with @code{g77} output might make it easier to properly
|
||||
fix @code{g77}, and perhaps even improve @code{gdb}, so it
|
||||
is definitely welcome.
|
||||
Such information might even lead to all relevant products
|
||||
working together properly sooner.
|
||||
|
||||
@cindex padding
|
||||
@cindex structures
|
||||
@cindex common blocks
|
||||
@cindex equivalence areas
|
||||
@item
|
||||
@code{g77} currently inserts needless padding for things like
|
||||
@samp{COMMON A,IPAD} where @samp{A} is @code{CHARACTER*1} and @samp{IPAD}
|
||||
is @code{INTEGER(KIND=1)} on machines like x86, because
|
||||
the back end insists that @samp{IPAD} be aligned to a 4-byte boundary, but
|
||||
the processor has no such requirement (though it's good for
|
||||
performance).
|
||||
|
||||
It is possible that this is not a real bug, and could be considered
|
||||
a performance feature, but it might be important to provide
|
||||
the ability to Fortran code to specify minimum padding for
|
||||
aggregate areas such as common blocks---and, certainly, there
|
||||
is the potential, with the current setup, for interface differences
|
||||
in the way such areas are laid out between @code{g77} and other
|
||||
compilers.
|
||||
|
||||
@item
|
||||
Some crashes occur when compiling under Solaris on x86
|
||||
machines.
|
||||
|
||||
Nothing has been heard about any such problems for some time,
|
||||
so this is considering a closed item as of 0.5.20.
|
||||
Please submit any bug reports pertinent to @code{g77}'s support
|
||||
for Solaris/x86 systems.
|
||||
|
||||
@cindex RS/6000 support
|
||||
@cindex support, RS/6000
|
||||
@item
|
||||
RS/6000 support is not complete as of the gcc 2.6.3 back end.
|
||||
The 2.7.0 back end appears to fix this problem, or at least mitigate
|
||||
it significantly, but there is at least one known problem that is
|
||||
likely to be a code-generation bug in @file{gcc-2.7.0} plus
|
||||
@file{g77-0.5.16}.
|
||||
This problem shows up only when compiling the Fortran program with @samp{-O}.
|
||||
|
||||
Nothing has been heard about any RS/6000 problems for some time,
|
||||
so this is considering a closed item as of 0.5.20.
|
||||
Please submit any bug reports pertinent to @code{g77}'s support
|
||||
for RS/6000 systems.
|
||||
|
||||
@cindex SGI support
|
||||
@cindex support, SGI
|
||||
@item
|
||||
SGI support is known to be a bit buggy.
|
||||
The known problem shows up only when compiling the Fortran program with
|
||||
@samp{-O}.
|
||||
|
||||
It is possible these problems have all been fixed in 0.5.20 by
|
||||
emulating complex arithmetic in the front end.
|
||||
Please submit any bug reports pertinent to @code{g77}'s support
|
||||
for SGI systems.
|
||||
|
||||
@cindex Alpha, support
|
||||
@cindex support, Alpha
|
||||
@item
|
||||
@code{g77} doesn't work perfectly on 64-bit configurations such as the Alpha.
|
||||
This problem is expected to be largely resolved as of version 0.5.20,
|
||||
and further addressed by 0.5.21.
|
||||
Version 0.6 should solve most or all related problems (such as
|
||||
64-bit machines other than Digital Semiconductor (``DEC'') Alphas).
|
||||
|
||||
One known bug that causes a compile-time crash occurs when compiling
|
||||
code such as the following with optimization:
|
||||
|
||||
@example
|
||||
SUBROUTINE CRASH (TEMP)
|
||||
INTEGER*2 HALF(2)
|
||||
REAL TEMP
|
||||
HALF(1) = NINT (TEMP)
|
||||
END
|
||||
@end example
|
||||
|
||||
It is expected that a future version of @code{g77} will have a fix for this
|
||||
problem, almost certainly by the time @code{g77} supports the forthcoming
|
||||
version 2.8.0 of @code{gcc}.
|
||||
|
||||
@cindex COMPLEX support
|
||||
@cindex support, COMPLEX
|
||||
@item
|
||||
Maintainers of gcc report that the back end definitely has ``broken''
|
||||
support for @code{COMPLEX} types.
|
||||
Based on their input, it seems many of
|
||||
the problems affect only the more-general facilities for gcc's
|
||||
@code{__complex__} type, such as @code{__complex__ int}
|
||||
(where the real and imaginary parts are integers) that GNU
|
||||
Fortran does not use.
|
||||
|
||||
Version 0.5.20 of @code{g77} works around this
|
||||
problem by not using the back end's support for @code{COMPLEX}.
|
||||
The new option @samp{-fno-emulate-complex} avoids the work-around,
|
||||
reverting to using the same ``broken'' mechanism as that used
|
||||
by versions of @code{g77} prior to 0.5.20.
|
||||
|
||||
@cindex ELF support
|
||||
@cindex support, ELF
|
||||
@cindex -fPIC option
|
||||
@cindex options, -fPIC
|
||||
@item
|
||||
There seem to be some problems with passing constants, and perhaps
|
||||
general expressions (other than simple variables/arrays), to procedures
|
||||
when compiling on some systems (such as i386) with @samp{-fPIC}, as in
|
||||
when compiling for ELF targets.
|
||||
The symptom is that the assembler complains about invalid opcodes.
|
||||
More investigation is needed, but the problem is almost certainly
|
||||
in the gcc back end, and it apparently occurs only when
|
||||
compiling sufficiently complicated functions @emph{without} the
|
||||
@samp{-O} option.
|
||||
@end itemize
|
||||
|
||||
17
gcc/f/bugs0.texi
Normal file
17
gcc/f/bugs0.texi
Normal file
@@ -0,0 +1,17 @@
|
||||
\input texinfo @c -*-texinfo-*-
|
||||
@c %**start of header
|
||||
@setfilename BUGS
|
||||
@set BUGSONLY
|
||||
@c %**end of header
|
||||
|
||||
@c The immediately following lines apply to the BUGS file
|
||||
@c which is generated using this file.
|
||||
This file lists known bugs in the GNU Fortran compiler.
|
||||
Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
||||
You may copy, distribute, and modify it freely as long as you preserve
|
||||
this copyright notice and permission notice.
|
||||
|
||||
@node Top,,, (dir)
|
||||
@chapter Bugs in GNU Fortran
|
||||
@include bugs.texi
|
||||
@bye
|
||||
281
gcc/f/com-rt.def
Normal file
281
gcc/f/com-rt.def
Normal file
@@ -0,0 +1,281 @@
|
||||
/* com-rt.def -- Public #include File (module.h template V1.0)
|
||||
Copyright (C) 1995-1997 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Owning Modules:
|
||||
com.c
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
/* DEFGFRT(CODE,NAME,TYPE,VOLATILE,COMPLEX):
|
||||
|
||||
CODE -- the #define name to use to refer to the function in g77 code
|
||||
|
||||
NAME -- the name as seen by the back end and, with whatever massaging
|
||||
is normal, the linker
|
||||
|
||||
TYPE -- a code for the tree for the type, assigned when first encountered
|
||||
(NOTE: There's a distinction made between the semantic return
|
||||
value for the function, and the actual return mechanism; e.g.
|
||||
`r_abs()' computes a single-precision `float' return value
|
||||
but returns it as a `double'. This distinction is important
|
||||
and is flagged via the _F2C_ versus _GNU_ suffix.)
|
||||
|
||||
ARGS -- a string of codes representing the types of the arguments; the
|
||||
last type specifies the type for that and all following args,
|
||||
and the null pointer (0) means the same as "0":
|
||||
|
||||
0 Not applicable at and beyond this point
|
||||
& Pointer to type that follows
|
||||
a char
|
||||
c complex
|
||||
d doublereal
|
||||
e doublecomplex
|
||||
f real
|
||||
i integer
|
||||
j longint
|
||||
|
||||
VOLATILE -- TRUE if the function never returns (gen's emit_barrier in
|
||||
g77 back end)
|
||||
|
||||
COMPLEX -- TRUE if the return value is COMPLEX or DOUBLE COMPLEX and
|
||||
thus might need to be returned as ptr-to-1st-arg
|
||||
|
||||
*/
|
||||
|
||||
DEFGFRT (FFECOM_gfrtCAT, "s_cat", FFECOM_rttypeVOID_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCMP, "s_cmp", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCOPY, "s_copy", FFECOM_rttypeVOID_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtPAUSE, "s_paus", FFECOM_rttypeVOID_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSTOP, "s_stop", FFECOM_rttypeVOID_, 0, TRUE, FALSE)
|
||||
|
||||
DEFGFRT (FFECOM_gfrtSRDUE, "s_rdue", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERDUE, "e_rdue", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSRSUE, "s_rsue", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERSUE, "e_rsue", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSRDFE, "s_rdfe", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERDFE, "e_rdfe", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSRSFI, "s_rsfi", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERSFI, "e_rsfi", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSRSFE, "s_rsfe", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERSFE, "e_rsfe", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSRSLI, "s_rsli", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERSLI, "e_rsli", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSRSLE, "s_rsle", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERSLE, "e_rsle", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSRSNE, "s_rsne", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
|
||||
DEFGFRT (FFECOM_gfrtSWDUE, "s_wdue", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEWDUE, "e_wdue", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSWSUE, "s_wsue", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEWSUE, "e_wsue", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSWDFE, "s_wdfe", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEWDFE, "e_wdfe", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSWSFI, "s_wsfi", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEWSFI, "e_wsfi", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSWSFE, "s_wsfe", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEWSFE, "e_wsfe", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSWSLI, "s_wsli", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEWSLI, "e_wsli", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSWSLE, "s_wsle", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEWSLE, "e_wsle", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSWSNE, "s_wsne", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
|
||||
DEFGFRT (FFECOM_gfrtDOFIO, "do_fio", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDOLIO, "do_lio", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDOUIO, "do_uio", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
|
||||
DEFGFRT (FFECOM_gfrtFOPEN, "f_open", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFCLOS, "f_clos", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFINQU, "f_inqu", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
|
||||
DEFGFRT (FFECOM_gfrtFBACK, "f_back", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFEND, "f_end", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFREW, "f_rew", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
|
||||
DEFGFRT (FFECOM_gfrtABORT, "G77_abort_0", FFECOM_rttypeVOID_, 0, TRUE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtABS, "r_abs", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtACCESS, "G77_access_0", FFECOM_rttypeINTEGER_, "&a&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtACOS, "r_acos", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtAIMAG, "r_imag", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtAINT, "r_int", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtALARM, "G77_alarm_0", FFECOM_rttypeVOID_, "&i0", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtALOG, "r_log", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtALOG10, "r_lg10", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtAMOD, "r_mod", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtANINT, "r_nint", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtASIN, "r_asin", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtATAN, "r_atan", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtATAN2, "r_atn2", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCABS, "c_abs", FFECOM_rttypeREAL_F2C_, "&c", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCCOS, "c_cos", FFECOM_rttypeCOMPLEX_F2C_, "&c", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCEXP, "c_exp", FFECOM_rttypeCOMPLEX_F2C_, "&c", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCHDIR, "G77_chdir_0", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCLOG, "c_log", FFECOM_rttypeCOMPLEX_F2C_, "&c", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCHMOD, "G77_chmod_0", FFECOM_rttypeINTEGER_, "&a&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCONJG, "r_cnjg", FFECOM_rttypeCOMPLEX_F2C_, "&c", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCOS, "r_cos", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCOSH, "r_cosh", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCSIN, "c_sin", FFECOM_rttypeCOMPLEX_F2C_, "&c", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCSQRT, "c_sqrt", FFECOM_rttypeCOMPLEX_F2C_, "&c", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCTIME, "G77_ctime_0", FFECOM_rttypeCHARACTER_, "&j", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDABS, "d_abs", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDACOS, "d_acos", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDASIN, "d_asin", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDATAN, "d_atan", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDATAN2, "d_atn2", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDATE, "G77_date_0", FFECOM_rttypeVOID_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_BESJ0, "j0", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_BESJ1, "j1", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_BESJN, "jn", FFECOM_rttypeDOUBLE_, "id", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_BESY0, "y0", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_BESY1, "y1", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_BESYN, "yn", FFECOM_rttypeDOUBLE_, "id", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDCOS, "d_cos", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDCOSH, "d_cosh", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDDIM, "d_dim", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDERF, "G77_derf_0", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDERFC, "G77_derfc_0", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDEXP, "d_exp", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDIM, "r_dim", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDINT, "d_int", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDLOG, "d_log", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDLOG10, "d_lg10", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDMOD, "d_mod", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDNINT, "d_nint", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDPROD, "d_prod", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDSIGN, "d_sign", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDSIN, "d_sin", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDSINH, "d_sinh", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDSQRT, "d_sqrt", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDTAN, "d_tan", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDTANH, "d_tanh", FFECOM_rttypeDOUBLE_, "&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtDTIME, "G77_dtime_0", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERF, "G77_erf_0", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtERFC, "G77_erfc_0", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtETIME, "G77_etime_0", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEXIT, "G77_exit_0", FFECOM_rttypeVOID_, "&i", TRUE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtEXP, "r_exp", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFDATE, "G77_fdate_0", FFECOM_rttypeCHARACTER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFGET, "G77_fget_0", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFGETC, "G77_fgetc_0", FFECOM_rttypeINTEGER_, "&i&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFLUSH, "G77_flush_0", FFECOM_rttypeVOID_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFLUSH1, "G77_flush1_0", FFECOM_rttypeVOID_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFNUM, "G77_fnum_0", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFPUT, "G77_fput_0", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFPUTC, "G77_fputc_0", FFECOM_rttypeINTEGER_, "&i&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFSTAT, "G77_fstat_0", FFECOM_rttypeINTEGER_, "&i&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFTELL, "G77_ftell_0", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtFSEEK, "G77_fseek_0", FFECOM_rttypeINTEGER_, "&i&i&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGERROR, "G77_gerror_0", FFECOM_rttypeVOID_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGETARG, "G77_getarg_0", FFECOM_rttypeVOID_, "&i&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGETCWD, "G77_getcwd_0", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGETGID, "G77_getgid_0", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGETLOG, "G77_getlog_0", FFECOM_rttypeVOID_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGETPID, "G77_getpid_0", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGETUID, "G77_getuid_0", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGETENV, "G77_getenv_0", FFECOM_rttypeVOID_, "&a&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtGMTIME, "G77_gmtime_0", FFECOM_rttypeVOID_, "&i&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtHOSTNM, "G77_hostnm_0", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtIABS, "i_abs", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtIARGC, "G77_iargc_0", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtIDATE, "G77_idate_0", FFECOM_rttypeVOID_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtIDIM, "i_dim", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtIDNINT, "i_dnnt", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtIERRNO, "G77_ierrno_0", FFECOM_rttypeINTEGER_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtINDEX, "i_indx", FFECOM_rttypeINTEGER_, "&a&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtIRAND, "G77_irand_0", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtISIGN, "i_sign", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtISATTY, "G77_isatty_0", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtITIME, "G77_itime_0", FFECOM_rttypeVOID_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtKILL, "G77_kill_0", FFECOM_rttypeINTEGER_, "&i&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLEN, "i_len", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLGE, "l_ge", FFECOM_rttypeLOGICAL_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLGT, "l_gt", FFECOM_rttypeLOGICAL_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLINK, "G77_link_0", FFECOM_rttypeINTEGER_, "&a&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLLE, "l_le", FFECOM_rttypeLOGICAL_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLLT, "l_lt", FFECOM_rttypeLOGICAL_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLNBLNK, "G77_lnblnk_0", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLSTAT, "G77_lstat_0", FFECOM_rttypeINTEGER_, "&a&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtLTIME, "G77_ltime_0", FFECOM_rttypeVOID_, "&i&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtMCLOCK, "G77_mclock_0", FFECOM_rttypeLONGINT_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtMOD, "i_mod", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtNINT, "i_nint", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtPERROR, "G77_perror_0", FFECOM_rttypeVOID_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtRAND, "G77_rand_0", FFECOM_rttypeREAL_F2C_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtRENAME, "G77_rename_0", FFECOM_rttypeINTEGER_, "&a&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSECNDS, "G77_secnds_0", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSECOND, "G77_second_0", FFECOM_rttypeREAL_F2C_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSIGN, "r_sign", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_SIGNAL, "G77_signal_0", FFECOM_rttypeINTEGER_, "&i0", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSIN, "r_sin", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSINH, "r_sinh", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSLEEP, "G77_sleep_0", FFECOM_rttypeVOID_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSQRT, "r_sqrt", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSRAND, "G77_srand_0", FFECOM_rttypeVOID_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSTAT, "G77_stat_0", FFECOM_rttypeINTEGER_, "&a&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSYMLNK, "G77_symlnk_0", FFECOM_rttypeINTEGER_, "&a&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSYSTEM, "G77_system_0", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtSYSTEM_CLOCK, "system_clock_", FFECOM_rttypeVOID_, "&i&i&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtTAN, "r_tan", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtTANH, "r_tanh", FFECOM_rttypeREAL_F2C_, "&f", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtTIME, "G77_time_0", FFECOM_rttypeLONGINT_, 0, FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtTTYNAM, "G77_ttynam_0", FFECOM_rttypeCHARACTER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtUNLINK, "G77_unlink_0", FFECOM_rttypeINTEGER_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtUMASK, "G77_umask_0", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtVXTIDATE, "G77_vxtidate_0", FFECOM_rttypeVOID_, "&i&i&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtVXTTIME, "G77_vxttime_0", FFECOM_rttypeVOID_, "&a", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCDABS, "z_abs", FFECOM_rttypeDOUBLE_, "&e", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtCDCOS, "z_cos", FFECOM_rttypeDBLCMPLX_F2C_, "&e", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCDEXP, "z_exp", FFECOM_rttypeDBLCMPLX_F2C_, "&e", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCDLOG, "z_log", FFECOM_rttypeDBLCMPLX_F2C_, "&e", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtDCONJG, "d_cnjg", FFECOM_rttypeDBLCMPLX_F2C_, "&e", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCDSIN, "z_sin", FFECOM_rttypeDBLCMPLX_F2C_, "&e", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtCDSQRT, "z_sqrt", FFECOM_rttypeDBLCMPLX_F2C_, "&e", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtDIMAG, "d_imag", FFECOM_rttypeDOUBLE_, "&e", FALSE, FALSE)
|
||||
|
||||
DEFGFRT (FFECOM_gfrtL_ACOS, "acos", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_ASIN, "asin", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_ATAN, "atan", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_ATAN2, "atan2", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_COS, "__builtin_cos", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_COSH, "cosh", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_ERF, "erf", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_ERFC, "erfc", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_EXP, "exp", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_FLOOR, "floor", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_LOG, "log", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_SIN, "__builtin_sin", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_SINH, "sinh", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_SQRT, "__builtin_fsqrt", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_TAN, "tan", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtL_TANH, "tanh", FFECOM_rttypeDOUBLE_, "d", FALSE, FALSE)
|
||||
|
||||
DEFGFRT (FFECOM_gfrtPOW_CI, "pow_ci", FFECOM_rttypeCOMPLEX_F2C_, "&c&i", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtPOW_DD, "pow_dd", FFECOM_rttypeDOUBLE_, "&d&d", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtPOW_DI, "pow_di", FFECOM_rttypeDOUBLE_, "&d&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtPOW_II, "pow_ii", FFECOM_rttypeINTEGER_, "&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtPOW_QQ, "pow_qq", FFECOM_rttypeLONGINT_, "&j&j", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtPOW_RI, "pow_ri", FFECOM_rttypeREAL_F2C_, "&f&i", FALSE, FALSE)
|
||||
DEFGFRT (FFECOM_gfrtPOW_ZI, "pow_zi", FFECOM_rttypeDBLCMPLX_F2C_, "&e&i", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtPOW_ZZ, "pow_zz", FFECOM_rttypeDBLCMPLX_F2C_, "&e&e", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtDIV_CC, "c_div", FFECOM_rttypeCOMPLEX_F2C_, "&c", FALSE, TRUE)
|
||||
DEFGFRT (FFECOM_gfrtDIV_ZZ, "z_div", FFECOM_rttypeDBLCMPLX_F2C_, "&e", FALSE, TRUE)
|
||||
16225
gcc/f/com.c
Normal file
16225
gcc/f/com.c
Normal file
File diff suppressed because it is too large
Load Diff
419
gcc/f/com.h
Normal file
419
gcc/f/com.h
Normal file
@@ -0,0 +1,419 @@
|
||||
/* com.h -- Public #include File (module.h template V1.0)
|
||||
Copyright (C) 1995-1997 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Owning Modules:
|
||||
com.c
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
/* Allow multiple inclusion to work. */
|
||||
|
||||
#ifndef _H_f_com
|
||||
#define _H_f_com
|
||||
|
||||
/* Simple definitions and enumerations. */
|
||||
|
||||
#define FFECOM_dimensionsMAX 7 /* Max # dimensions (quick hack). */
|
||||
|
||||
#define FFECOM_targetFFE 1
|
||||
#define FFECOM_targetGCC 2
|
||||
|
||||
#ifndef FFE_STANDALONE
|
||||
#define FFECOM_targetCURRENT FFECOM_targetGCC /* Backend! */
|
||||
#define FFECOM_ONEPASS 0
|
||||
#else
|
||||
#define FFECOM_targetCURRENT FFECOM_targetFFE
|
||||
#define FFECOM_ONEPASS 0
|
||||
#endif
|
||||
|
||||
#if FFECOM_ONEPASS
|
||||
#define FFECOM_TWOPASS 0
|
||||
#else
|
||||
#define FFECOM_TWOPASS 1
|
||||
#endif
|
||||
|
||||
#define FFECOM_SIZE_UNIT "byte" /* Singular form. */
|
||||
#define FFECOM_SIZE_UNITS "bytes" /* Plural form. */
|
||||
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
#define FFECOM_constantNULL NULL_TREE
|
||||
#define FFECOM_globalNULL NULL_TREE
|
||||
#define FFECOM_labelNULL NULL_TREE
|
||||
#define FFECOM_storageNULL NULL_TREE
|
||||
#define FFECOM_symbolNULL ffecom_symbol_null_
|
||||
|
||||
/* Shorthand for types used in f2c.h and that g77 perhaps allows some
|
||||
flexibility regarding in the section below. I.e. the actual numbers
|
||||
below aren't important, as long as they're unique. */
|
||||
|
||||
#define FFECOM_f2ccodeCHAR 1
|
||||
#define FFECOM_f2ccodeSHORT 2
|
||||
#define FFECOM_f2ccodeINT 3
|
||||
#define FFECOM_f2ccodeLONG 4
|
||||
#define FFECOM_f2ccodeLONGLONG 5
|
||||
#define FFECOM_f2ccodeCHARPTR 6 /* char * */
|
||||
#define FFECOM_f2ccodeFLOAT 7
|
||||
#define FFECOM_f2ccodeDOUBLE 8
|
||||
#define FFECOM_f2ccodeLONGDOUBLE 9
|
||||
#define FFECOM_f2ccodeTWOREALS 10
|
||||
#define FFECOM_f2ccodeTWODOUBLEREALS 11
|
||||
|
||||
#if FFECOM_DETERMINE_TYPES /* only for com.c and configure */
|
||||
|
||||
/* Begin f2c.h information. This must match the info in the f2c.h used
|
||||
to build the libf2c with which g77-generated code is linked, or there
|
||||
will probably be bugs, some of them difficult to detect or even trigger. */
|
||||
|
||||
#include "config.j"
|
||||
|
||||
/* Do we need int (for 32-bit or 64-bit systems) or long (16-bit or
|
||||
normally 32-bit) for f2c-type integers? */
|
||||
|
||||
#ifndef BITS_PER_WORD
|
||||
#define BITS_PER_WORD 32
|
||||
#endif
|
||||
|
||||
#ifndef CHAR_TYPE_SIZE
|
||||
#define CHAR_TYPE_SIZE BITS_PER_UNIT
|
||||
#endif
|
||||
|
||||
#ifndef SHORT_TYPE_SIZE
|
||||
#define SHORT_TYPE_SIZE (BITS_PER_UNIT * MIN ((UNITS_PER_WORD + 1) / 2, 2))
|
||||
#endif
|
||||
|
||||
#ifndef INT_TYPE_SIZE
|
||||
#define INT_TYPE_SIZE BITS_PER_WORD
|
||||
#endif
|
||||
|
||||
#ifndef LONG_TYPE_SIZE
|
||||
#define LONG_TYPE_SIZE BITS_PER_WORD
|
||||
#endif
|
||||
|
||||
#ifndef LONG_LONG_TYPE_SIZE
|
||||
#define LONG_LONG_TYPE_SIZE (BITS_PER_WORD * 2)
|
||||
#endif
|
||||
|
||||
#ifndef WCHAR_UNSIGNED
|
||||
#define WCHAR_UNSIGNED 0
|
||||
#endif
|
||||
|
||||
#ifndef FLOAT_TYPE_SIZE
|
||||
#define FLOAT_TYPE_SIZE BITS_PER_WORD
|
||||
#endif
|
||||
|
||||
#ifndef DOUBLE_TYPE_SIZE
|
||||
#define DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
|
||||
#endif
|
||||
|
||||
#ifndef LONG_DOUBLE_TYPE_SIZE
|
||||
#define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
|
||||
#endif
|
||||
|
||||
#if LONG_TYPE_SIZE == FLOAT_TYPE_SIZE
|
||||
# define FFECOM_f2cINTEGER FFECOM_f2ccodeLONG
|
||||
# define FFECOM_f2cLOGICAL FFECOM_f2ccodeLONG
|
||||
#elif INT_TYPE_SIZE == FLOAT_TYPE_SIZE
|
||||
# define FFECOM_f2cINTEGER FFECOM_f2ccodeINT
|
||||
# define FFECOM_f2cLOGICAL FFECOM_f2ccodeINT
|
||||
#else
|
||||
# error Cannot find a suitable type for FFECOM_f2cINTEGER
|
||||
#endif
|
||||
|
||||
#if LONG_TYPE_SIZE == (FLOAT_TYPE_SIZE * 2)
|
||||
# define FFECOM_f2cLONGINT FFECOM_f2ccodeLONG
|
||||
#elif LONG_LONG_TYPE_SIZE == (FLOAT_TYPE_SIZE * 2)
|
||||
# define FFECOM_f2cLONGINT FFECOM_f2ccodeLONGLONG
|
||||
#else
|
||||
# error Cannot find a suitable type for FFECOM_f2cLONGINT
|
||||
#endif
|
||||
|
||||
#define FFECOM_f2cADDRESS FFECOM_f2ccodeCHARPTR
|
||||
#define FFECOM_f2cSHORTINT FFECOM_f2ccodeSHORT
|
||||
#define FFECOM_f2cREAL FFECOM_f2ccodeFLOAT
|
||||
#define FFECOM_f2cDOUBLEREAL FFECOM_f2ccodeDOUBLE
|
||||
#define FFECOM_f2cCOMPLEX FFECOM_f2ccodeTWOREALS
|
||||
#define FFECOM_f2cDOUBLECOMPLEX FFECOM_f2ccodeTWODOUBLEREALS
|
||||
#define FFECOM_f2cSHORTLOGICAL FFECOM_f2ccodeSHORT
|
||||
#define FFECOM_f2cLOGICAL1 FFECOM_f2ccodeCHAR
|
||||
#define FFECOM_f2cINTEGER1 FFECOM_f2ccodeCHAR
|
||||
|
||||
/* These must be f2c's INTEGER type, to match runtime/f2c.h.in. */
|
||||
|
||||
#define FFECOM_f2cFLAG FFECOM_f2cINTEGER
|
||||
#define FFECOM_f2cFTNINT FFECOM_f2cINTEGER
|
||||
#define FFECOM_f2cFTNLEN FFECOM_f2cINTEGER
|
||||
|
||||
#endif /* #if FFECOM_DETERMINE_TYPES */
|
||||
|
||||
/* Everything else in f2c.h, specifically the structures used in
|
||||
interfacing compiled code with the library, must remain exactly
|
||||
as delivered, or g77 internals (mostly com.c and ste.c) must
|
||||
be modified accordingly to compensate. Or there will be...trouble. */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
#define DEFGFRT(CODE,NAME,TYPE,ARGS,VOLATILE,COMPLEX) CODE,
|
||||
#include "com-rt.def"
|
||||
#undef DEFGFRT
|
||||
FFECOM_gfrt
|
||||
} ffecomGfrt;
|
||||
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
|
||||
/* Typedefs. */
|
||||
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
#ifndef TREE_CODE
|
||||
#include "tree.j"
|
||||
#endif
|
||||
|
||||
#ifndef BUILT_FOR_270
|
||||
#ifdef DECL_STATIC_CONSTRUCTOR /* In gcc/tree.h. */
|
||||
#define BUILT_FOR_270 1
|
||||
#else
|
||||
#define BUILT_FOR_270 0
|
||||
#endif
|
||||
#endif /* !defined (BUILT_FOR_270) */
|
||||
|
||||
#ifndef BUILT_FOR_280
|
||||
#ifdef DECL_ONE_ONLY /* In gcc/tree.h. */
|
||||
#define BUILT_FOR_280 1
|
||||
#else
|
||||
#define BUILT_FOR_280 0
|
||||
#endif
|
||||
#endif /* !defined (BUILT_FOR_280) */
|
||||
|
||||
typedef tree ffecomConstant;
|
||||
#define FFECOM_constantHOOK
|
||||
typedef tree ffecomLabel;
|
||||
#define FFECOM_globalHOOK
|
||||
typedef tree ffecomGlobal;
|
||||
#define FFECOM_labelHOOK
|
||||
typedef tree ffecomStorage;
|
||||
#define FFECOM_storageHOOK
|
||||
typedef struct _ffecom_symbol_ ffecomSymbol;
|
||||
#define FFECOM_symbolHOOK
|
||||
|
||||
struct _ffecom_symbol_
|
||||
{
|
||||
tree decl_tree;
|
||||
tree length_tree; /* For CHARACTER dummies. */
|
||||
tree vardesc_tree; /* For NAMELIST. */
|
||||
tree assign_tree; /* For ASSIGN'ed vars. */
|
||||
bool addr; /* Is address of item instead of item. */
|
||||
};
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
|
||||
/* Include files needed by this one. */
|
||||
|
||||
#include "bld.h"
|
||||
#include "info.h"
|
||||
#include "lab.h"
|
||||
#include "storag.h"
|
||||
#include "symbol.h"
|
||||
|
||||
/* Structure definitions. */
|
||||
|
||||
|
||||
/* Global objects accessed by users of this module. */
|
||||
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
extern tree long_integer_type_node;
|
||||
extern tree complex_double_type_node;
|
||||
extern tree string_type_node;
|
||||
extern tree ffecom_integer_type_node;
|
||||
extern tree ffecom_integer_zero_node;
|
||||
extern tree ffecom_integer_one_node;
|
||||
extern tree ffecom_tree_type[FFEINFO_basictype][FFEINFO_kindtype];
|
||||
extern ffecomSymbol ffecom_symbol_null_;
|
||||
extern ffeinfoKindtype ffecom_pointer_kind_;
|
||||
extern ffeinfoKindtype ffecom_label_kind_;
|
||||
|
||||
extern int ffecom_f2c_typecode_[FFEINFO_basictype][FFEINFO_kindtype];
|
||||
extern tree ffecom_f2c_integer_type_node;
|
||||
extern tree ffecom_f2c_address_type_node;
|
||||
extern tree ffecom_f2c_real_type_node;
|
||||
extern tree ffecom_f2c_doublereal_type_node;
|
||||
extern tree ffecom_f2c_complex_type_node;
|
||||
extern tree ffecom_f2c_doublecomplex_type_node;
|
||||
extern tree ffecom_f2c_longint_type_node;
|
||||
extern tree ffecom_f2c_logical_type_node;
|
||||
extern tree ffecom_f2c_flag_type_node;
|
||||
extern tree ffecom_f2c_ftnlen_type_node;
|
||||
extern tree ffecom_f2c_ftnlen_zero_node;
|
||||
extern tree ffecom_f2c_ftnlen_one_node;
|
||||
extern tree ffecom_f2c_ftnlen_two_node;
|
||||
extern tree ffecom_f2c_ptr_to_ftnlen_type_node;
|
||||
extern tree ffecom_f2c_ftnint_type_node;
|
||||
extern tree ffecom_f2c_ptr_to_ftnint_type_node;
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
|
||||
/* Declare functions with prototypes. */
|
||||
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
tree ffecom_1 (enum tree_code code, tree type, tree node);
|
||||
tree ffecom_1_fn (tree node);
|
||||
tree ffecom_2 (enum tree_code code, tree type, tree node1, tree node2);
|
||||
bool ffecom_2pass_advise_entrypoint (ffesymbol entry);
|
||||
void ffecom_2pass_do_entrypoint (ffesymbol entry);
|
||||
tree ffecom_2s (enum tree_code code, tree type, tree node1, tree node2);
|
||||
tree ffecom_3 (enum tree_code code, tree type, tree node1, tree node2,
|
||||
tree node3);
|
||||
tree ffecom_3s (enum tree_code code, tree type, tree node1, tree node2,
|
||||
tree node3);
|
||||
tree ffecom_arg_expr (ffebld expr, tree *length);
|
||||
tree ffecom_arg_ptr_to_expr (ffebld expr, tree *length);
|
||||
tree ffecom_call_gfrt (ffecomGfrt ix, tree args);
|
||||
tree ffecom_constantunion (ffebldConstantUnion *cu, ffeinfoBasictype bt,
|
||||
ffeinfoKindtype kt, tree tree_type);
|
||||
tree ffecom_decl_field (tree context, tree prevfield, char *name,
|
||||
tree type);
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
void ffecom_close_include (FILE *f);
|
||||
int ffecom_decode_include_option (char *spec);
|
||||
void ffecom_end_transition (void);
|
||||
void ffecom_exec_transition (void);
|
||||
void ffecom_expand_let_stmt (ffebld dest, ffebld source);
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
tree ffecom_expr (ffebld expr);
|
||||
tree ffecom_expr_assign (ffebld expr);
|
||||
tree ffecom_expr_assign_w (ffebld expr);
|
||||
tree ffecom_expr_rw (ffebld expr);
|
||||
void ffecom_finish_compile (void);
|
||||
void ffecom_finish_decl (tree decl, tree init, bool is_top_level);
|
||||
void ffecom_finish_progunit (void);
|
||||
tree ffecom_get_invented_identifier (char *pattern, char *text,
|
||||
int number);
|
||||
ffeinfoKindtype ffecom_gfrt_basictype (ffecomGfrt ix);
|
||||
ffeinfoKindtype ffecom_gfrt_kindtype (ffecomGfrt ix);
|
||||
void ffecom_init_0 (void);
|
||||
void ffecom_init_2 (void);
|
||||
tree ffecom_list_expr (ffebld list);
|
||||
tree ffecom_list_ptr_to_expr (ffebld list);
|
||||
tree ffecom_lookup_label (ffelab label);
|
||||
tree ffecom_modify (tree newtype, tree lhs, tree rhs);
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
void ffecom_file (char *name);
|
||||
void ffecom_notify_init_storage (ffestorag st);
|
||||
void ffecom_notify_init_symbol (ffesymbol s);
|
||||
void ffecom_notify_primary_entry (ffesymbol fn);
|
||||
FILE *ffecom_open_include (char *name, ffewhereLine l, ffewhereColumn c);
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
void ffecom_pop_calltemps (void);
|
||||
void ffecom_pop_tempvar (tree var);
|
||||
tree ffecom_ptr_to_expr (ffebld expr);
|
||||
void ffecom_push_calltemps (void);
|
||||
tree ffecom_push_tempvar (tree type, ffetargetCharacterSize size,
|
||||
int elements, bool auto_pop);
|
||||
tree ffecom_return_expr (ffebld expr);
|
||||
tree ffecom_save_tree (tree t);
|
||||
tree ffecom_start_decl (tree decl, bool is_init);
|
||||
void ffecom_sym_commit (ffesymbol s);
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
ffesymbol ffecom_sym_end_transition (ffesymbol s);
|
||||
ffesymbol ffecom_sym_exec_transition (ffesymbol s);
|
||||
ffesymbol ffecom_sym_learned (ffesymbol s);
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
void ffecom_sym_retract (ffesymbol s);
|
||||
tree ffecom_temp_label (void);
|
||||
tree ffecom_truth_value (tree expr);
|
||||
tree ffecom_truth_value_invert (tree expr);
|
||||
tree ffecom_which_entrypoint_decl (void);
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
|
||||
/* ~~~Eliminate these when possible, since the back end should be
|
||||
declaring them in some .h file. */
|
||||
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
extern int flag_pedantic_errors;
|
||||
void emit_nop (void);
|
||||
void announce_function (tree decl);
|
||||
extern FILE *asm_out_file;
|
||||
void assemble_variable (tree decl, int top_level, int at_end,
|
||||
int dont_output_data);
|
||||
void assemble_zeros (int size);
|
||||
int count_error (int warningp);
|
||||
void error (char *s, ...);
|
||||
void expand_decl (tree decl);
|
||||
void expand_computed_goto (tree exp);
|
||||
void expand_function_end (char *filename, int line, int end_bindings);
|
||||
void expand_function_start (tree subr, int parms_have_cleanups);
|
||||
void expand_main_function (void);
|
||||
void fatal (char *s, ...);
|
||||
void init_function_start (tree subr, char *filename, int line);
|
||||
void make_function_rtl (tree decl);
|
||||
void make_decl_rtl (tree decl, char *asmspec, int top_level);
|
||||
void make_var_volatile (tree var);
|
||||
int mark_addressable (tree expr);
|
||||
void output_inline_function (tree fndecl);
|
||||
void pedwarn (char *s, ...);
|
||||
void pop_function_context (void);
|
||||
void pop_momentary_nofree (void);
|
||||
void preserve_initializer (void);
|
||||
void print_node (FILE *file, char *prefix, tree node, int indent);
|
||||
void push_function_context (void);
|
||||
void push_obstacks (struct obstack *current, struct obstack *saveable);
|
||||
void put_var_into_stack (tree decl);
|
||||
void remember_end_note (tree block);
|
||||
void report_error_function (char *file);
|
||||
void rest_of_compilation (tree decl);
|
||||
void rest_of_decl_compilation (tree decl, char *asmspec, int top_level,
|
||||
int at_end);
|
||||
void resume_temporary_allocation (void);
|
||||
void set_identifier_size (int size);
|
||||
void temporary_allocation (void);
|
||||
tree truthvalue_conversion (tree expr);
|
||||
void warning_with_decl (tree decl, char *s, ...);
|
||||
void warning (char *s, ...);
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
|
||||
/* Define macros. */
|
||||
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetFFE
|
||||
#define ffecom_expr(e) (e)
|
||||
#define ffecom_init_0()
|
||||
#define ffecom_init_2()
|
||||
#define ffecom_label_kind() FFEINFO_kindtypeINTEGERDEFAULT
|
||||
#define ffecom_pointer_kind() FFEINFO_kindtypeINTEGERDEFAULT
|
||||
#define ffecom_ptr_to_expr(e) (e)
|
||||
#define ffecom_sym_commit(s)
|
||||
#define ffecom_sym_retract(s)
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetFFE */
|
||||
|
||||
#if FFECOM_targetCURRENT == FFECOM_targetGCC
|
||||
#define ffecom_f2c_typecode(bt,kt) ffecom_f2c_typecode_[(bt)][(kt)]
|
||||
#define ffecom_label_kind() ffecom_label_kind_
|
||||
#define ffecom_pointer_kind() ffecom_pointer_kind_
|
||||
#endif /* FFECOM_targetCURRENT == FFECOM_targetGCC */
|
||||
|
||||
#define ffecom_init_1()
|
||||
#define ffecom_init_3()
|
||||
#define ffecom_init_4()
|
||||
#define ffecom_terminate_0()
|
||||
#define ffecom_terminate_1()
|
||||
#define ffecom_terminate_2()
|
||||
#define ffecom_terminate_3()
|
||||
#define ffecom_terminate_4()
|
||||
|
||||
/* End of #include file. */
|
||||
|
||||
#endif
|
||||
100
gcc/f/config-lang.in
Normal file
100
gcc/f/config-lang.in
Normal file
@@ -0,0 +1,100 @@
|
||||
# Top level configure fragment for GNU FORTRAN.
|
||||
# Copyright (C) 1995-1997 Free Software Foundation, Inc.
|
||||
|
||||
#This file is part of GNU Fortran.
|
||||
|
||||
#GNU Fortran is free software; you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation; either version 2, or (at your option)
|
||||
#any later version.
|
||||
|
||||
#GNU Fortran is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with GNU Fortran; see the file COPYING. If not, write to
|
||||
#the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
#02111-1307, USA.
|
||||
|
||||
# Configure looks for the existence of this file to auto-config each language.
|
||||
# We define several parameters used by configure:
|
||||
#
|
||||
# language - name of language as it would appear in $(LANGUAGES)
|
||||
# compilers - value to add to $(COMPILERS)
|
||||
# stagestuff - files to add to $(STAGESTUFF)
|
||||
# diff_excludes - files to ignore when building diffs between two versions.
|
||||
|
||||
if grep DECL_STATIC_CONSTRUCTOR $srcdir/tree.h >/dev/null; then
|
||||
if grep flag_move_all_movables $srcdir/toplev.c >/dev/null; then true
|
||||
else
|
||||
echo "You haven't applied the patches to the GCC 2.7.x distribution in"
|
||||
echo "$srcdir as described in g77/README.g77 and gcc/f/gbe/README."
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
if grep put_pending_sizes $srcdir/stor-layout.c >/dev/null; then true
|
||||
else
|
||||
echo "You haven't applied the patches to the GCC 2.6.x distribution in"
|
||||
echo "$srcdir as described in g77/README.g77 and gcc/f/gbe/README."
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
language="f77"
|
||||
|
||||
compilers="f771\$(exeext)"
|
||||
|
||||
case "$arguments" in
|
||||
# *--enable-f2c* | *-enable-f2c*)
|
||||
# echo "f77: enabling f2c."
|
||||
# stagestuff="g77 g77-cross f771 libf2c.a f2c fc" ;;
|
||||
# stagestuff="g77 g77-cross f771 libf2c.a f2c" ;;
|
||||
*)
|
||||
stagestuff="g77\$(exeext) g77-cross\$(exeext) f771\$(exeext) libf2c.a" ;;
|
||||
esac
|
||||
|
||||
diff_excludes="-x \"f/g77.info*\""
|
||||
|
||||
# Create the runtime library directory tree if necessary.
|
||||
test -d f || mkdir f
|
||||
test -d f/runtime || mkdir f/runtime
|
||||
test -d f/runtime/libF77 || mkdir f/runtime/libF77
|
||||
test -d f/runtime/libI77 || mkdir f/runtime/libI77
|
||||
test -d f/runtime/libU77 || mkdir f/runtime/libU77
|
||||
|
||||
# Need to make top-level stageN directory trees, else if needed
|
||||
# later by gcc/Makefile, it'll make only the first levels and
|
||||
# the language subdirectory levels, not the runtime stuff.
|
||||
for stageN in stage1 stage2 stage3 stage4
|
||||
do
|
||||
test -d $stageN || mkdir $stageN
|
||||
test -d $stageN/f || mkdir $stageN/f
|
||||
test -d $stageN/f/runtime || mkdir $stageN/f/runtime
|
||||
test -d $stageN/f/runtime/libF77 || mkdir $stageN/f/runtime/libF77
|
||||
test -d $stageN/f/runtime/libI77 || mkdir $stageN/f/runtime/libI77
|
||||
test -d $stageN/f/runtime/libU77 || mkdir $stageN/f/runtime/libU77
|
||||
done
|
||||
|
||||
# Make links into top-level stageN from target trees.
|
||||
for stageN in stage1 stage2 stage3 stage4 include
|
||||
do
|
||||
$remove -f f/$stageN f/runtime/$stageN f/runtime/libF77/$stageN \
|
||||
f/runtime/libI77/$stageN f/runtime/libU77/$stageN
|
||||
(cd f; $symbolic_link ../$stageN . 2>/dev/null)
|
||||
(cd f/runtime; $symbolic_link ../$stageN . 2>/dev/null)
|
||||
(cd f/runtime/libF77; $symbolic_link ../$stageN . 2>/dev/null)
|
||||
(cd f/runtime/libI77; $symbolic_link ../$stageN . 2>/dev/null)
|
||||
(cd f/runtime/libU77; $symbolic_link ../$stageN . 2>/dev/null)
|
||||
done
|
||||
|
||||
case "$srcdir" in
|
||||
.) ;;
|
||||
*) echo
|
||||
echo "Building f77 outside the source directory is likely to not work"
|
||||
echo "unless you are using GNU make or a compatible VPATH mechanism."
|
||||
echo ;;
|
||||
esac
|
||||
27
gcc/f/config.j
Normal file
27
gcc/f/config.j
Normal file
@@ -0,0 +1,27 @@
|
||||
/* config.j -- Wrapper for GCC's config.h
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA. */
|
||||
|
||||
#ifndef MAKING_DEPENDENCIES
|
||||
#ifndef _J_f_config
|
||||
#define _J_f_config
|
||||
#include "config.h"
|
||||
#endif
|
||||
#endif
|
||||
28
gcc/f/convert.j
Normal file
28
gcc/f/convert.j
Normal file
@@ -0,0 +1,28 @@
|
||||
/* convert.j -- Wrapper for GCC's convert.h
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA. */
|
||||
|
||||
#ifndef MAKING_DEPENDENCIES
|
||||
#ifndef _J_f_convert
|
||||
#define _J_f_convert
|
||||
#include "tree.j"
|
||||
#include "convert.h"
|
||||
#endif
|
||||
#endif
|
||||
1810
gcc/f/data.c
Normal file
1810
gcc/f/data.c
Normal file
File diff suppressed because it is too large
Load Diff
74
gcc/f/data.h
Normal file
74
gcc/f/data.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/* data.h -- Public #include File (module.h template V1.0)
|
||||
Copyright (C) 1995 Free Software Foundation, Inc.
|
||||
Contributed by James Craig Burley (burley@gnu.ai.mit.edu).
|
||||
|
||||
This file is part of GNU Fortran.
|
||||
|
||||
GNU Fortran is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Fortran is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Fortran; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
02111-1307, USA.
|
||||
|
||||
Owning Modules:
|
||||
data.c
|
||||
|
||||
Modifications:
|
||||
*/
|
||||
|
||||
/* Allow multiple inclusion to work. */
|
||||
|
||||
#ifndef _H_f_data
|
||||
#define _H_f_data
|
||||
|
||||
/* Simple definitions and enumerations. */
|
||||
|
||||
|
||||
/* Typedefs. */
|
||||
|
||||
|
||||
/* Include files needed by this one. */
|
||||
|
||||
#include "bld.h"
|
||||
#include "lex.h"
|
||||
#include "storag.h"
|
||||
|
||||
/* Structure definitions. */
|
||||
|
||||
|
||||
/* Global objects accessed by users of this module. */
|
||||
|
||||
|
||||
/* Declare functions with prototypes. */
|
||||
|
||||
void ffedata_begin (ffebld list);
|
||||
bool ffedata_end (bool report_errors, ffelexToken t);
|
||||
void ffedata_gather (ffestorag st);
|
||||
bool ffedata_value (ffetargetIntegerDefault rpt, ffebld value,
|
||||
ffelexToken value_token);
|
||||
|
||||
/* Define macros. */
|
||||
|
||||
#define ffedata_init_0()
|
||||
#define ffedata_init_1()
|
||||
#define ffedata_init_2()
|
||||
#define ffedata_init_3()
|
||||
#define ffedata_init_4()
|
||||
#define ffedata_terminate_0()
|
||||
#define ffedata_terminate_1()
|
||||
#define ffedata_terminate_2()
|
||||
#define ffedata_terminate_3()
|
||||
#define ffedata_terminate_4()
|
||||
|
||||
/* End of #include file. */
|
||||
|
||||
#endif
|
||||
1444
gcc/f/equiv.c
Normal file
1444
gcc/f/equiv.c
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user