Deleted Added
sdiff udiff text old ( 217396 ) new ( 218824 )
full compact
1/* Definitions for PowerPC running FreeBSD using the ELF format
2 Copyright (C) 2001, 2003 Free Software Foundation, Inc.
3 Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published

--- 23 unchanged lines hidden (view full) ---

32
33/* On 64-bit systems, use the AIX ABI like Linux and NetBSD */
34
35#undef DEFAULT_ABI
36#define DEFAULT_ABI (TARGET_64BIT ? ABI_AIX : ABI_V4)
37#undef TARGET_AIX
38#define TARGET_AIX TARGET_64BIT
39
40#undef FBSD_TARGET_CPU_CPP_BUILTINS
41#define FBSD_TARGET_CPU_CPP_BUILTINS() \
42 do \
43 { \
44 builtin_define ("__PPC__"); \
45 builtin_define ("__ppc__"); \
46 builtin_define ("__PowerPC__"); \
47 builtin_define ("__powerpc__"); \

--- 143 unchanged lines hidden (view full) ---

191
192/* _init and _fini functions are built from bits spread across many
193 object files, each potentially with a different TOC pointer. For
194 that reason, place a nop after the call so that the linker can
195 restore the TOC pointer if a TOC adjusting call stub is needed. */
196#ifdef __powerpc64__
197#define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \
198 asm (SECTION_OP "\n" \
199" bl ." #FUNC "\n" \
200" nop\n" \
201" .previous");
202#endif
203
204/* __throw will restore its own return address to be the same as the
205 return address of the function that the throw is being made to.
206 This is unfortunate, because we want to check the original
207 return address to see if we need to restore the TOC.

--- 41 unchanged lines hidden ---