entered into RCS
From-SVN: r3664
This commit is contained in:
parent
86d38d25ba
commit
37fe0bc56b
80
gcc/config/i386/sco4dbx.h
Normal file
80
gcc/config/i386/sco4dbx.h
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
/* Definitions for Intel 386 running SCO Unix System V 3.2 Version 4.s,
|
||||||
|
using dbx-in-coff encapsulation.
|
||||||
|
Copyright (C) 1992 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of GNU CC.
|
||||||
|
|
||||||
|
GNU CC is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU CC is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU CC; see the file COPYING. If not, write to
|
||||||
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
|
|
||||||
|
/* Mostly it's like earlier SCO UNIX. */
|
||||||
|
|
||||||
|
#include "i386/scodbx.h"
|
||||||
|
|
||||||
|
/* Use crt1.o as a startup file and crtn.o as a closing file. */
|
||||||
|
|
||||||
|
#undef STARTFILE_SPEC
|
||||||
|
#define STARTFILE_SPEC \
|
||||||
|
"%{!r:%{!z:gcc.ifile%s}%{z:gccz.ifile%s}}\
|
||||||
|
%{scoxpg3:%{p:mcrt1X.o%s}%{!p:crt1X.o%s}} \
|
||||||
|
%{!scoxpg3:\
|
||||||
|
%{posix:%{p:mcrt1P.o%s}%{!p:crt1P.o%s}} \
|
||||||
|
%{!posix:\
|
||||||
|
%{ansi:%{p:mcrt1A.o%s}%{!p:crt1A.o%s}} \
|
||||||
|
%{!ansi:%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}}}}"
|
||||||
|
|
||||||
|
#undef ENDFILE_SPEC
|
||||||
|
#define ENDFILE_SPEC \
|
||||||
|
"%{scoxpg3:crtnX.o%s} \
|
||||||
|
%{!scoxpg3:\
|
||||||
|
%{posix:crtnP.o%s} \
|
||||||
|
%{!posix:\
|
||||||
|
%{ansi:crtnA.o%s} \
|
||||||
|
%{!ansi:crtn.o%s}}}"
|
||||||
|
|
||||||
|
/* Library spec. */
|
||||||
|
|
||||||
|
#undef LIB_SPEC
|
||||||
|
#define LIB_SPEC \
|
||||||
|
"%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} \
|
||||||
|
%{scoxpg3:-lcX -lcP -lcA} \
|
||||||
|
%{!scoxpg3:\
|
||||||
|
%{posix:-lcP -lcA} \
|
||||||
|
%{!posix:\
|
||||||
|
%{ansi:-lcA} \
|
||||||
|
%{!ansi:%{scointl:-lintl} -lc}}}"
|
||||||
|
|
||||||
|
/* Macros, macros everywhere:
|
||||||
|
Specify predefined symbols in preprocessor. */
|
||||||
|
|
||||||
|
#undef CPP_PREDEFINES
|
||||||
|
#define CPP_PREDEFINES "-Di386 -Dunix"
|
||||||
|
|
||||||
|
#undef CPP_SPEC
|
||||||
|
#define CPP_SPEC \
|
||||||
|
"-D_M_I386 -D_M_I86 -D_M_I86SM -D_M_SDATA -D_M_STEXT \
|
||||||
|
-D_M_UNIX -D_M_XENIX \
|
||||||
|
-D_M_SYS5 -D_M_SYSV -D_M_SYS3 -D_M_SYSIII \
|
||||||
|
-D_M_COFF -D_M_BITFIELDS -D_M_WORDSWAP \
|
||||||
|
%{scoxpg3:-D_XOPEN_SOURCE -D_STRICT_NAMES} \
|
||||||
|
%{!scoxpg3:%{posix:-D_POSIX_SOURCE -D_STRICT_NAMES}} \
|
||||||
|
%{!scoxpg3:%{!posix:\
|
||||||
|
%{ansi:-D_STRICT_NAMES}%{!ansi:\
|
||||||
|
-DM_I386 -DM_I86 -DM_I86SM -DM_SDATA -DM_STEXT \
|
||||||
|
-DM_UNIX -DM_XENIX \
|
||||||
|
-DM_SYS5 -DM_SYSV -DM_SYS3 -DM_SYSIII \
|
||||||
|
-DM_COFF -DM_BITFIELDS -DM_WORDSWAP \
|
||||||
|
%{scointl:-D_M_INTERNAT -DM_INTERNAT} \
|
||||||
|
%{traditional:-D_KR -D_SVID -D_NO_PROTOTYPE}}}}"
|
45
gcc/config/i386/svr3.ifile
Normal file
45
gcc/config/i386/svr3.ifile
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* svr3.ifile - for collectless G++ on i386 System V.
|
||||||
|
* Leaves memory configured at address 0.
|
||||||
|
*
|
||||||
|
* Install this file as $prefix/gcc-lib/TARGET/VERSION/gcc.ifile
|
||||||
|
*
|
||||||
|
* BLOCK to an offset that leaves room for many headers ( the value
|
||||||
|
* here allows for a file header, an outheader, and up to 11 section
|
||||||
|
* headers on most systems.
|
||||||
|
* BIND to an address that includes page 0 in mapped memory. The value
|
||||||
|
* used for BLOCK should be or'd into this value. Here I'm setting BLOCK
|
||||||
|
* to 0x200 and BIND to ( value_used_for(BLOCK) )
|
||||||
|
* If you are using shared libraries, watch that you don't overlap the
|
||||||
|
* address ranges assigned for shared libs.
|
||||||
|
*
|
||||||
|
* GROUP BIND to a location in the next segment. Here, the only value
|
||||||
|
* that you should change (I think) is that within NEXT, which I've set
|
||||||
|
* to my hardware segment size. You can always use a larger size, but not
|
||||||
|
* a smaller one.
|
||||||
|
*/
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.text BIND(0x000200) BLOCK (0x200) :
|
||||||
|
{
|
||||||
|
/* plenty for room for headers */
|
||||||
|
*(.init)
|
||||||
|
*(.text)
|
||||||
|
vfork = fork; /* I got tired of editing peoples sloppy code */
|
||||||
|
*(.fini)
|
||||||
|
}
|
||||||
|
GROUP BIND( NEXT(0x400000) + (ADDR(.text) + (SIZEOF(.text)) % 0x1000)):
|
||||||
|
{
|
||||||
|
.data : {
|
||||||
|
__CTOR_LIST__ = . ;
|
||||||
|
. += 4 ; /* leading NULL */
|
||||||
|
*(.ctor)
|
||||||
|
. += 4 ; /* trailing NULL */
|
||||||
|
__DTOR_LIST__ = . ;
|
||||||
|
. += 4 ; /* leading NULL */
|
||||||
|
*(.dtor)
|
||||||
|
. += 4 ; /* trailing NULL */
|
||||||
|
}
|
||||||
|
.bss : { }
|
||||||
|
}
|
||||||
|
}
|
45
gcc/config/i386/svr3z.ifile
Normal file
45
gcc/config/i386/svr3z.ifile
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* svr3z.ifile - for collectless G++ on i386 System V.
|
||||||
|
* Leaves memory unconfigured at address 0.
|
||||||
|
*
|
||||||
|
* Install this file as $prefix/gcc-lib/TARGET/VERSION/gccz.ifile
|
||||||
|
*
|
||||||
|
* BLOCK to an offset that leaves room for many headers ( the value
|
||||||
|
* here allows for a file header, an outheader, and up to 11 section
|
||||||
|
* headers on most systems.
|
||||||
|
* BIND to an address that excludes page 0 from being mapped. The value
|
||||||
|
* used for BLOCK should be or'd into this value. Here I'm setting BLOCK
|
||||||
|
* to 0x200 and BIND to ( 0x400000 | value_used_for(BLOCK) )
|
||||||
|
* If you are using shared libraries, watch that you don't overlap the
|
||||||
|
* address ranges assigned for shared libs.
|
||||||
|
*
|
||||||
|
* GROUP BIND to a location in the next segment. Here, the only value
|
||||||
|
* that you should change (I think) is that within NEXT, which I've set
|
||||||
|
* to my hardware segment size. You can always use a larger size, but not
|
||||||
|
* a smaller one.
|
||||||
|
*/
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.text BIND(0x400200) BLOCK (0x200) :
|
||||||
|
{
|
||||||
|
/* plenty for room for headers */
|
||||||
|
*(.init)
|
||||||
|
*(.text)
|
||||||
|
vfork = fork; /* I got tired of editing peoples sloppy code */
|
||||||
|
*(.fini)
|
||||||
|
}
|
||||||
|
GROUP BIND( NEXT(0x400000) + (ADDR(.text) + (SIZEOF(.text)) % 0x1000)):
|
||||||
|
{
|
||||||
|
.data : {
|
||||||
|
__CTOR_LIST__ = . ;
|
||||||
|
. += 4 ; /* leading NULL */
|
||||||
|
*(.ctor)
|
||||||
|
. += 4 ; /* trailing NULL */
|
||||||
|
__DTOR_LIST__ = . ;
|
||||||
|
. += 4 ; /* leading NULL */
|
||||||
|
*(.dtor)
|
||||||
|
. += 4 ; /* trailing NULL */
|
||||||
|
}
|
||||||
|
.bss : { }
|
||||||
|
}
|
||||||
|
}
|
79
gcc/config/i386/v3gas.h
Normal file
79
gcc/config/i386/v3gas.h
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
/* Definitions for Intel 386 running system V, using gas.
|
||||||
|
Copyright (C) 1992 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
This file is part of GNU CC.
|
||||||
|
|
||||||
|
GNU CC is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2, or (at your option)
|
||||||
|
any later version.
|
||||||
|
|
||||||
|
GNU CC is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with GNU CC; see the file COPYING. If not, write to
|
||||||
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
|
#include "gas.h"
|
||||||
|
|
||||||
|
/* Add stuff that normally comes from i386v.h */
|
||||||
|
|
||||||
|
/* longjmp may fail to restore the registers if called from the same
|
||||||
|
function that called setjmp. To compensate, the compiler avoids
|
||||||
|
putting variables in registers in functions that use both setjmp
|
||||||
|
and longjmp. */
|
||||||
|
|
||||||
|
#define NON_SAVING_SETJMP \
|
||||||
|
(current_function_calls_setjmp && current_function_calls_longjmp)
|
||||||
|
|
||||||
|
/* longjmp may fail to restore the stack pointer if the saved frame
|
||||||
|
pointer is the same as the caller's frame pointer. Requiring a frame
|
||||||
|
pointer in any function that calls setjmp or longjmp avoids this
|
||||||
|
problem, unless setjmp and longjmp are called from the same function.
|
||||||
|
Since a frame pointer will be required in such a function, it is OK
|
||||||
|
that the stack pointer is not restored. */
|
||||||
|
|
||||||
|
#undef FRAME_POINTER_REQUIRED
|
||||||
|
#define FRAME_POINTER_REQUIRED \
|
||||||
|
(current_function_calls_setjmp || current_function_calls_longjmp)
|
||||||
|
|
||||||
|
/* Modify ASM_OUTPUT_LOCAL slightly to test -msvr3-shlib, adapted to gas */
|
||||||
|
#undef ASM_OUTPUT_LOCAL
|
||||||
|
#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
|
||||||
|
do { \
|
||||||
|
int align = exact_log2 (ROUNDED); \
|
||||||
|
if (align > 2) align = 2; \
|
||||||
|
if (TARGET_SVR3_SHLIB) \
|
||||||
|
{ \
|
||||||
|
data_section (); \
|
||||||
|
ASM_OUTPUT_ALIGN ((FILE), align == -1 ? 2 : align); \
|
||||||
|
ASM_OUTPUT_LABEL ((FILE), (NAME)); \
|
||||||
|
fprintf ((FILE), "\t.set .,.+%u\n", (ROUNDED)); \
|
||||||
|
} \
|
||||||
|
else \
|
||||||
|
{ \
|
||||||
|
fputs (".lcomm ", (FILE)); \
|
||||||
|
assemble_name ((FILE), (NAME)); \
|
||||||
|
fprintf ((FILE), ",%u\n", (ROUNDED)); \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
/* Add stuff that normally comes from i386v.h via svr3.h */
|
||||||
|
|
||||||
|
/* Define the actual types of some ANSI-mandated types. These
|
||||||
|
definitions should work for most SVR3 systems. */
|
||||||
|
|
||||||
|
#undef SIZE_TYPE
|
||||||
|
#define SIZE_TYPE "unsigned int"
|
||||||
|
|
||||||
|
#undef PTRDIFF_TYPE
|
||||||
|
#define PTRDIFF_TYPE "int"
|
||||||
|
|
||||||
|
#undef WCHAR_TYPE
|
||||||
|
#define WCHAR_TYPE "long int"
|
||||||
|
|
||||||
|
#undef WCHAR_TYPE_SIZE
|
||||||
|
#define WCHAR_TYPE_SIZE BITS_PER_WORD
|
Loading…
x
Reference in New Issue
Block a user