OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [config/] [or32/] [or32.h] - Diff between revs 177 and 199

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 177 Rev 199
Line 34... Line 34...
      builtin_assert ("machine=or32");          \
      builtin_assert ("machine=or32");          \
    }                                           \
    }                                           \
  while (0)
  while (0)
 
 
 
 
/* Make sure we pick up the crtinit.o and crtfini.o files. */
/* A string corresponding to the installation directory for target libraries
#define STARTFILE_SPEC "%{!shared:crt0.o%s} crtinit.o%s"
   and includes. Make it available to SPEC definitions via EXTRA_SPECS */
 
#define CONC_DIR(dir1, dir2) dir1 "/../../" dir2
 
#define TARGET_PREFIX CONC_DIR (STANDARD_EXEC_PREFIX, DEFAULT_TARGET_MACHINE)
 
 
#define ENDFILE_SPEC "crtfini.o%s"
#define EXTRA_SPECS                                   \
 
  { "target_prefix", TARGET_PREFIX }
 
 
/* Override previous definitions (linux.h). We don't use libg.a */
#undef CPP_SPEC
 
#define CPP_SPEC "%{mor32-newlib*:-I%(target_prefix)/newlib-include}"
 
 
#undef LIB_SPEC 
/* Make sure we pick up the crtinit.o and crtfini.o files. */
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}         \
#undef STARTFILE_SPEC
 
#define STARTFILE_SPEC "%{!shared:%{mor32-newlib*:%(target_prefix)/newlib/crt0.o} \
 
                        %{!mor32-newlib*:crt0%s}} crtinit.o%s"
 
 
 
#undef ENDFILE_SPEC
 
#define ENDFILE_SPEC "crtfini.o%s"
 
 
 
/* Specify the newlib library path if necessary */
 
#undef LINK_SPEC
 
#define LINK_SPEC "%{mor32-newlib*:-L%(target_prefix)/newlib}"
 
 
 
/* 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                         \
                  %{mor32-newlib:-lor32                         \
                      %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}    \
                      %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}    \
                  %{mor32-newlib-uart:-lor32uart                \
                  %{mor32-newlib-uart:-lor32uart                \
                      %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
                      %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}"
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.