Line 33... |
Line 33... |
builtin_assert ("cpu=or32"); \
|
builtin_assert ("cpu=or32"); \
|
builtin_assert ("machine=or32"); \
|
builtin_assert ("machine=or32"); \
|
} \
|
} \
|
while (0)
|
while (0)
|
|
|
/* If we are using newlib, then use this version of the library */
|
|
#define LINK_SPEC "%{mor32-newlib:-T ldscripts/or32.ld%s}"
|
|
|
|
/* Finally specify the newlib lirary */
|
/* Make sure we pick up the crtinit.o and crtfini.o files. */
|
#define ENDFILE_SPEC "%{mor32-newlib:libor32.a%s -lc -lgcc}"
|
#define STARTFILE_SPEC "%{!shared:crt0.o%s} crtinit.o%s"
|
|
|
#if 0
|
#define ENDFILE_SPEC "crtfini.o%s"
|
|
|
|
/* Override previous definitions (linux.h). We don't use libg.a */
|
|
|
|
#undef LIB_SPEC
|
|
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
|
|
%{mor32-newlib:-lor32 \
|
|
%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} \
|
|
%{mor32-newlib-uart:-lor32uart \
|
|
%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
|
|
|
/* Which library to get. The only difference from the default is to get
|
/* Old definition of LIB_SPEC, not longer used. */
|
|
/* Which library to get. The only difference from the default is to get
|
libsc.a if -sim is given to the driver. Repeat -lc -lsysX
|
libsc.a if -sim is given to the driver. Repeat -lc -lsysX
|
{X=sim,linux}, because libsysX needs (at least) errno from libc, and
|
{X=sim,linux}, because libsysX needs (at least) errno from libc, and
|
then we want to resolve new unknowns in libc against libsysX, not
|
then we want to resolve new unknowns in libc against libsysX, not
|
libnosys. */
|
libnosys. */
|
/* Override previous definitions (linux.h). */
|
/* #define LIB_SPEC \ */
|
#undef LIB_SPEC
|
/* "%{sim*:-lc -lsyssim -lc -lsyssim}\ */
|
#define LIB_SPEC \
|
/* %{!sim*:%{g*:-lg}\ */
|
"%{sim*:-lc -lsyssim -lc -lsyssim}\
|
/* %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} -lbsp}\ */
|
%{!sim*:%{g*:-lg}\
|
/* -lnosys" */
|
%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} -lbsp}\
|
|
-lnosys"
|
|
#endif
|
|
|
|
#define TARGET_VERSION fprintf (stderr, " (OpenRISC 1000)");
|
#define TARGET_VERSION fprintf (stderr, " (OpenRISC 1000)");
|
|
|
/* Run-time compilation parameters selecting different hardware subsets. */
|
/* Run-time compilation parameters selecting different hardware subsets. */
|
|
|
Line 1177... |
Line 1182... |
#define INITIALIZE_TRAMPOLINE(TRAMP,FNADDR,CXT)
|
#define INITIALIZE_TRAMPOLINE(TRAMP,FNADDR,CXT)
|
|
|
extern GTY(()) rtx or32_compare_op0;
|
extern GTY(()) rtx or32_compare_op0;
|
extern GTY(()) rtx or32_compare_op1;
|
extern GTY(()) rtx or32_compare_op1;
|
|
|
/* We don't use libg.a */
|
|
#undef LIB_SPEC
|
|
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
|
|
|
|
#endif /* _OR32_H_ */
|
#endif /* _OR32_H_ */
|
|
|
No newline at end of file
|
No newline at end of file
|