Changeset 281 for trunk/src/gcc


Ignore:
Timestamp:
Jun 3, 2003, 2:10:56 AM (22 years ago)
Author:
bird
Message:

#383: specs for new libc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/config/i386/emx.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r280 r281  
    247247 *                             - S - P - E - C - S -
    248248 ******************************************************************************/
     249#define __EMX__LIBCSPECS
    249250/* Predefine symbols `__32BIT__', `__EMX__', `i386' and __MT__ (not -Zmt). */
    250251#undef CPP_PREDEFINES
     
    270271
    271272/* Pass -s (as -Zstrip) to the assembler. */
     273#ifdef __EMX__LIBCSPECS
     274#define ASM_SPEC "--traditional-format %{Zomf} %{s:-Zstrip}"
     275#else
    272276#define ASM_SPEC "%{Zomf} %{s:-Zstrip}"
    273 
     277#endif
     278
     279#ifdef __EMX__LIBCSPECS
     280#define LINK_SPEC                                                              \
     281  "%{Zexe} %{Zstack*} %{Zmap*} %{Zomf:%{Zdll}} "                               \
     282  "%{!o*:-o %b%{Zdll:.dll}%{!Zdll:%{!Zexe:.exe}}} "                            \
     283  "%{static:%{Zcrtdll*:%e-static and -Zcrtdll are incompatible}}"              \
     284  "%{Zdll:%{Zexe:%e-Zdll and -Zexe are incompatible}}"                         \
     285  "%{Zsmall-conv:%{Zcrtdll*:%e-Zsmall-conv and -Zcrtdll are incompatible}}"
     286#else
    274287#define LINK_SPEC                                                              \
    275288  "%{Zexe} %{Zstack*} %{Zmap*} %{Zomf:%{Zdll}} "                               \
     
    291304  "%{Zbsd-signals:%{Zsysv-signals:%e-Zbsd-signals and -Zsysv-signals are incompatible}}" \
    292305  "%{Zsmall-conv:%{Zcrtdll*:%e-Zsmall-conv and -Zcrtdll are incompatible}}"
     306#endif
    293307
    294308/* Actually we're using shared libgcc, but we use it a lot differently ... */
     
    300314  "%{!shared-libgcc:%{static-libgcc|!Zcrtdll*:-lgcc_eh -lgcc}}"
    301315
     316#ifdef __EMX__LIBCSPECS
     317#define LIB_SPEC                                                               \
     318  "-lc%{p|pg:_p} "                                                             \
     319  "%G "                                                                        \
     320  "%{!Zdll:-lc_app%{pg:_p}} "                                                  \
     321  "-lc%{p|pg:_p}"
     322#else
    302323#define LIB_SPEC                                                               \
    303324  "%{p|pg:-lc_p} -lc "                                                         \
     
    307328  "%G %{p|pg:-lc_p} -lc "                                                      \
    308329  "%{Zdll:%{!Zso:%{!Zno-rte:-lc_dllrt}}}"
    309 
     330#endif
     331
     332#ifdef __EMX__LIBCSPECS
     333#define STARTFILE_SPEC                                                         \
     334  "%{Zdll:dll0%O%{Zomf:bj}%s}"                                                 \
     335  "%{!Zdll:%{pg:gcrt0%O%{Zomf:bj}%s}"                                          \
     336          "%{!pg:%{pn:gcrt0%O%{Zomf:bj}%s}%{!pn:%{p:mcrt0%O%{Zomf:bj}%s}%{!p:crt0%O%{Zomf:bj}%s}}}"\
     337         " %{Zbin-files:binmode%O%{Zomf:bj}%s} %{Zsmall-conv:smallcnv%O%{Zomf:bj}%s}}"
     338#else
    310339#define STARTFILE_SPEC                                                         \
    311340  "%{Zdll:dll0%O%{Zomf:bj}%s}"                                                 \
     
    314343         " %{Zsysv-signals:sigsysv%O%{Zomf:bj}%s} %{Zbsd-signals:sigbsd%O%{Zomf:bj}%s}"\
    315344         " %{Zbin-files:binmode%O%{Zomf:bj}%s}%{Zsmall-conv:smallcnv%O%{Zomf:bj}%s}}"
    316 
     345#endif
     346
     347#ifdef __EMX__LIBCSPECS
     348#define LINK_COMMAND_SPEC                                                      \
     349"%{!fsyntax-only: "                                                            \
     350 "%{!c:%{!M:%{!MM:%{!E:%{!S:%{Zomf:emxomf}ld "                                 \
     351                        "%l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} "          \
     352                        "%{r} %{s} %{t} %{u*} %{x} %{z} %{Z} "                 \
     353                        "%{!A:%{!nostdlib:%{!nostartfiles:%S}}} "              \
     354                        "%{static:} %{L*} %D %{T*} %o "                        \
     355                        "%{!nostdlib:%{!nodefaultlibs:"                        \
     356                           "%G -lc_alias "                                     \
     357                           "%{!Zcrtdll*:%L} %{Zcrtdll*:-lc_dll} -los2%{pg:_p} "\
     358                           "-lc_alias "                                        \
     359                           "%{!Zcrtdll*:%L} %{Zcrtdll*:-lc_dll} -los2%{pg:_p} "\
     360                           "%{Zomf:-lend}"                                     \
     361                                     "}"                                       \
     362                         "}"                                                   \
     363                        "%{!A:%{!nostdlib:%{!nostartfiles:%E}}}"               \
     364                       "}"                                                     \
     365                  "}"                                                          \
     366            "}"                                                                \
     367       "}"                                                                     \
     368  "}"                                                                          \
     369 "}"
     370#else
    317371#define LINK_COMMAND_SPEC                                                      \
    318372"%{!fsyntax-only: "                                                            \
     
    335389                        "%{!A:%{!nostdlib:%{!nostartfiles:%E}}} "              \
    336390                        "}}}}}}"
     391#endif
    337392
    338393
Note: See TracChangeset for help on using the changeset viewer.