]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/sparc/linux64.h
Daily bump.
[thirdparty/gcc.git] / gcc / config / sparc / linux64.h
CommitLineData
956d6950 1/* Definitions for 64-bit SPARC running Linux-based GNU systems with ELF.
047142d3 2 Copyright 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
bfe87013
DE
3 Contributed by David S. Miller (davem@caip.rutgers.edu)
4
5This file is part of GNU CC.
6
7GNU CC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GNU CC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU CC; see the file COPYING. If not, write to
19the Free Software Foundation, 59 Temple Place - Suite 330,
20Boston, MA 02111-1307, USA. */
21
a0a301fc 22#define LINUX_DEFAULT_ELF
bfe87013 23
80ffc95e 24/* Don't assume anything about the header files. */
bfe87013
DE
25#define NO_IMPLICIT_EXTERN_C
26
bfe87013
DE
27#undef MD_EXEC_PREFIX
28#undef MD_STARTFILE_PREFIX
29
345a6161
DM
30#if TARGET_CPU_DEFAULT == TARGET_CPU_v9 || TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc
31/* A 64 bit v9 compiler with stack-bias,
32 in a Medium/Low code model environment. */
33
34#undef TARGET_DEFAULT
35#define TARGET_DEFAULT \
36 (MASK_V9 + MASK_PTR64 + MASK_64BIT /* + MASK_HARD_QUAD */ \
33074e5f 37 + MASK_STACK_BIAS + MASK_APP_REGS + MASK_FPU + MASK_LONG_DOUBLE_128)
345a6161
DM
38#endif
39
a0a301fc
DE
40#undef ASM_CPU_DEFAULT_SPEC
41#define ASM_CPU_DEFAULT_SPEC "-Av9a"
bfe87013 42
4710d3eb
JJ
43#ifdef SPARC_BI_ARCH
44
45#undef CPP_ARCH32_SPEC
46#define CPP_ARCH32_SPEC "%{mlong-double-128:-D__LONG_DOUBLE_128__} \
2b57e919 47-D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc"
4710d3eb
JJ
48
49#endif
50
956d6950
JL
51/* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
52 the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
bfe87013 53 provides part of the support for getting C++ file-scope static
80ffc95e 54 object constructed before entering `main'. */
bfe87013
DE
55
56#undef STARTFILE_SPEC
345a6161
DM
57
58#define STARTFILE_SPEC32 \
bfe87013 59 "%{!shared: \
13c0bc20 60 %{pg:/usr/lib/gcrt1.o%s} %{!pg:%{p:/usr/lib/gcrt1.o%s} %{!p:/usr/lib/crt1.o%s}}}\
7a31a340 61 /usr/lib/crti.o%s %{static:crtbeginT.o%s}\
275b60d6 62 %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
bfe87013 63
345a6161
DM
64#define STARTFILE_SPEC64 \
65 "%{!shared: \
66 %{pg:/usr/lib64/gcrt1.o%s} %{!pg:%{p:/usr/lib64/gcrt1.o%s} %{!p:/usr/lib64/crt1.o%s}}}\
275b60d6
JJ
67 /usr/lib64/crti.o%s %{static:crtbeginT.o%s}\
68 %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
69
345a6161
DM
70#ifdef SPARC_BI_ARCH
71
72#if DEFAULT_ARCH32_P
73#define STARTFILE_SPEC "\
74%{m32:" STARTFILE_SPEC32 "} \
75%{m64:" STARTFILE_SPEC64 "} \
76%{!m32:%{!m64:" STARTFILE_SPEC32 "}}"
77#else
78#define STARTFILE_SPEC "\
79%{m32:" STARTFILE_SPEC32 "} \
80%{m64:" STARTFILE_SPEC64 "} \
81%{!m32:%{!m64:" STARTFILE_SPEC64 "}}"
82#endif
83
84#else
85
86#define STARTFILE_SPEC STARTFILE_SPEC64
87
88#endif
89
956d6950
JL
90/* Provide a ENDFILE_SPEC appropriate for GNU/Linux. Here we tack on
91 the GNU/Linux magical crtend.o file (see crtstuff.c) which
bfe87013
DE
92 provides part of the support for getting C++ file-scope static
93 object constructed before entering `main', followed by a normal
956d6950 94 GNU/Linux "finalizer" file, `crtn.o'. */
bfe87013
DE
95
96#undef ENDFILE_SPEC
345a6161
DM
97
98#define ENDFILE_SPEC32 \
7a31a340 99 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} /usr/lib/crtn.o%s"
bfe87013 100
345a6161
DM
101#define ENDFILE_SPEC64 \
102 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} /usr/lib64/crtn.o%s"
103
a261e0cc
DM
104#define ENDFILE_SPEC_COMMON \
105 "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}"
106
345a6161 107#ifdef SPARC_BI_ARCH
bfe87013 108
345a6161
DM
109#if DEFAULT_ARCH32_P
110#define ENDFILE_SPEC "\
111%{m32:" ENDFILE_SPEC32 "} \
112%{m64:" ENDFILE_SPEC64 "} \
a261e0cc
DM
113%{!m32:%{!m64:" ENDFILE_SPEC32 "}} " \
114ENDFILE_SPEC_COMMON
345a6161
DM
115#else
116#define ENDFILE_SPEC "\
117%{m32:" ENDFILE_SPEC32 "} \
118%{m64:" ENDFILE_SPEC64 "} \
a261e0cc
DM
119%{!m32:%{!m64:" ENDFILE_SPEC64 "}} " \
120ENDFILE_SPEC_COMMON
345a6161 121#endif
bfe87013 122
345a6161
DM
123#else
124
a261e0cc 125#define ENDFILE_SPEC ENDFILE_SPEC64 " " ENDFILE_SPEC_COMMON
345a6161
DM
126
127#endif
128
2be1602e
DM
129/* The GNU C++ standard library requires that these macros be defined. */
130#undef CPLUSPLUS_CPP_SPEC
131#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
132
345a6161
DM
133#undef TARGET_VERSION
134#define TARGET_VERSION fprintf (stderr, " (sparc64 GNU/Linux with ELF)");
a0a301fc
DE
135
136/* The default code model. */
137#undef SPARC_DEFAULT_CMODEL
be3f1ff5 138#define SPARC_DEFAULT_CMODEL CM_MEDLOW
bfe87013 139
4710d3eb 140#undef SUBTARGET_SWITCHES
047142d3
PT
141#define SUBTARGET_SWITCHES \
142{"long-double-64", -MASK_LONG_DOUBLE_128, N_("Use 64 bit long doubles") }, \
143{"long-double-128", MASK_LONG_DOUBLE_128, N_("Use 128 bit long doubles") },
4710d3eb 144
bfe87013 145#undef WCHAR_TYPE
247cfc5c
JJ
146#define WCHAR_TYPE "int"
147
bfe87013 148#undef WCHAR_TYPE_SIZE
247cfc5c
JJ
149#define WCHAR_TYPE_SIZE 32
150
ba31d94e 151/* Define for support of TFmode long double.
4710d3eb 152 Sparc ABI says that long double is 4 words. */
a0a301fc 153#undef LONG_DOUBLE_TYPE_SIZE
4710d3eb
JJ
154#define LONG_DOUBLE_TYPE_SIZE (TARGET_LONG_DOUBLE_128 ? 128 : 64)
155
156/* Constant which presents upper bound of the above value. */
157#undef MAX_LONG_DOUBLE_TYPE_SIZE
158#define MAX_LONG_DOUBLE_TYPE_SIZE 128
159
160/* Define this to set long double type size to use in libgcc2.c, which can
161 not depend on target_flags. */
162#if defined(__arch64__) || defined(__LONG_DOUBLE_128__)
163#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 128
164#else
165#define LIBGCC2_LONG_DOUBLE_TYPE_SIZE 64
166#endif
345a6161 167
bfe87013 168#undef CPP_PREDEFINES
8fe2d853 169#define CPP_PREDEFINES "-D__ELF__ -Dunix -D_LONGLONG -D__sparc__ -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix"
bfe87013 170
a0a301fc
DE
171#undef CPP_SUBTARGET_SPEC
172#define CPP_SUBTARGET_SPEC "\
bfe87013
DE
173%{fPIC:-D__PIC__ -D__pic__} \
174%{fpic:-D__PIC__ -D__pic__} \
bfe87013 175%{posix:-D_POSIX_SOURCE} \
afc96791 176%{pthread:-D_REENTRANT} \
bfe87013 177"
afc96791 178
bfe87013
DE
179#undef LIB_SPEC
180#define LIB_SPEC \
1398405b
L
181 "%{shared: -lc} \
182 %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
afc96791 183 %{profile:-lc_p} %{!profile: -lc}}"
bfe87013 184
956d6950 185/* Provide a LINK_SPEC appropriate for GNU/Linux. Here we provide support
bfe87013
DE
186 for the special GCC options -static and -shared, which allow us to
187 link things in one of these three modes by applying the appropriate
188 combinations of options at link-time. We like to support here for
189 as many of the other GNU linker options as possible. But I don't
190 have the time to search for those flags. I am sure how to add
191 support for -soname shared_object_name. H.J.
192
193 I took out %{v:%{!V:-V}}. It is too much :-(. They can use
194 -Wl,-V.
195
196 When the -shared link option is used a final link is not being
197 done. */
198
80ffc95e 199/* If ELF is the default format, we should not use /lib/elf. */
bfe87013 200
345a6161
DM
201#ifdef SPARC_BI_ARCH
202
203#undef SUBTARGET_EXTRA_SPECS
204#define SUBTARGET_EXTRA_SPECS \
205 { "link_arch32", LINK_ARCH32_SPEC }, \
206 { "link_arch64", LINK_ARCH64_SPEC }, \
207 { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
208 { "link_arch", LINK_ARCH_SPEC },
209
210#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
211 %{!shared: \
212 %{!ibcs: \
213 %{!static: \
214 %{rdynamic:-export-dynamic} \
215 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
216 %{static:-static}}} \
217"
218
219#define LINK_ARCH64_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
220 %{!shared: \
221 %{!ibcs: \
222 %{!static: \
223 %{rdynamic:-export-dynamic} \
224 %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
225 %{static:-static}}} \
226"
227
228#define LINK_ARCH_SPEC "\
229%{m32:%(link_arch32)} \
230%{m64:%(link_arch64)} \
231%{!m32:%{!m64:%(link_arch_default)}} \
232"
233
234#define LINK_ARCH_DEFAULT_SPEC \
235(DEFAULT_ARCH32_P ? LINK_ARCH32_SPEC : LINK_ARCH64_SPEC)
236
bfe87013 237#undef LINK_SPEC
345a6161
DM
238#define LINK_SPEC "\
239%(link_arch) \
240%{mlittle-endian:-EL} \
e95b1e6a 241%{!mno-relax:%{!r:-relax}} \
345a6161
DM
242"
243
244#undef CC1_SPEC
245#if DEFAULT_ARCH32_P
246#define CC1_SPEC "\
247%{sun4:} %{target:} \
248%{mcypress:-mcpu=cypress} \
249%{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
250%{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
d6964c30 251%{m32:%{m64:%emay not use both -m32 and -m64}} \
4710d3eb 252%{m64:-mptr64 -mstack-bias -mlong-double-128 \
247cfc5c
JJ
253 %{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=ultrasparc}}}}}}} \
254 %{!mno-vis:%{!mcpu=v9:-mvis}}} \
345a6161
DM
255"
256#else
257#define CC1_SPEC "\
258%{sun4:} %{target:} \
259%{mcypress:-mcpu=cypress} \
260%{msparclite:-mcpu=sparclite} %{mf930:-mcpu=f930} %{mf934:-mcpu=f934} \
261%{mv8:-mcpu=v8} %{msupersparc:-mcpu=supersparc} \
d6964c30 262%{m32:%{m64:%emay not use both -m32 and -m64}} \
4710d3eb 263%{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \
b25c3a22 264 %{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:-mcpu=cypress}}}}}}}} \
9ce13279 265%{!m32:%{!mcpu*:-mcpu=ultrasparc}} \
247cfc5c 266%{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}} \
345a6161
DM
267"
268#endif
269
270#if DEFAULT_ARCH32_P
271#define MULTILIB_DEFAULTS { "m32" }
272#else
273#define MULTILIB_DEFAULTS { "m64" }
274#endif
275
276#else /* !SPARC_BI_ARCH */
277
278#undef LINK_SPEC
e95b1e6a 279#define LINK_SPEC "-m elf64_sparc -Y P,/usr/lib64 %{shared:-shared} \
bfe87013
DE
280 %{!shared: \
281 %{!ibcs: \
282 %{!static: \
283 %{rdynamic:-export-dynamic} \
345a6161 284 %{!dynamic-linker:-dynamic-linker /lib64/ld-linux.so.2}} \
bfe87013
DE
285 %{static:-static}}} \
286%{mlittle-endian:-EL} \
e95b1e6a 287%{!mno-relax:%{!r:-relax}} \
bfe87013
DE
288"
289
345a6161
DM
290#endif /* !SPARC_BI_ARCH */
291
bfe87013 292/* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
80ffc95e 293 It's safe to pass -s always, even if -g is not used. */
bfe87013
DE
294#undef ASM_SPEC
295#define ASM_SPEC "\
296%{V} \
297%{v:%{!V:-V}} \
298%{!Qn:-Qy} \
299%{n} \
300%{T} \
301%{Ym,*} \
302%{Wa,*:%*} \
303-s %{fpic:-K PIC} %{fPIC:-K PIC} \
304%{mlittle-endian:-EL} \
e95b1e6a 305%(asm_cpu) %(asm_arch) %(asm_relax)"
bfe87013
DE
306
307/* Same as sparc.h */
308#undef DBX_REGISTER_NUMBER
309#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
310
311/* System V Release 4 uses DWARF debugging info. Buf DWARF1 doesn't do
312 64-bit anything, so we use DWARF2. */
313
bfe87013 314#undef DWARF_DEBUGGING_INFO
23532de9
JT
315#define DWARF2_DEBUGGING_INFO 1
316#define DBX_DEBUGGING_INFO 1
bfe87013 317
bfe87013
DE
318#undef ASM_OUTPUT_ALIGNED_LOCAL
319#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \
320do { \
321 fputs ("\t.local\t", (FILE)); \
322 assemble_name ((FILE), (NAME)); \
323 putc ('\n', (FILE)); \
324 ASM_OUTPUT_ALIGNED_COMMON (FILE, NAME, SIZE, ALIGN); \
325} while (0)
326
327#undef COMMON_ASM_OP
471b6f1b 328#define COMMON_ASM_OP "\t.common\t"
bfe87013 329
59f96879
RH
330#undef LOCAL_LABEL_PREFIX
331#define LOCAL_LABEL_PREFIX "."
332
bfe87013
DE
333/* This is how to output a definition of an internal numbered label where
334 PREFIX is the class of label and NUM is the number within the class. */
335
336#undef ASM_OUTPUT_INTERNAL_LABEL
337#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
338 fprintf (FILE, ".L%s%d:\n", PREFIX, NUM)
339
340/* This is how to output a reference to an internal numbered label where
341 PREFIX is the class of label and NUM is the number within the class. */
342
343#undef ASM_OUTPUT_INTERNAL_LABELREF
344#define ASM_OUTPUT_INTERNAL_LABELREF(FILE,PREFIX,NUM) \
345 fprintf (FILE, ".L%s%d", PREFIX, NUM)
346
347/* This is how to store into the string LABEL
348 the symbol_ref name of an internal numbered label where
349 PREFIX is the class of label and NUM is the number within the class.
350 This is suitable for output with `assemble_name'. */
351
352#undef ASM_GENERATE_INTERNAL_LABEL
353#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
e59f7d3d 354 sprintf (LABEL, "*.L%s%ld", PREFIX, (long)(NUM))
bfe87013 355
bfe87013
DE
356/* DWARF bits. */
357
358/* Follow Irix 6 and not the Dwarf2 draft in using 64-bit offsets.
d6a7951f 359 Obviously the Dwarf2 folks haven't tried to actually build systems
bfe87013
DE
360 with their spec. On a 64-bit system, only 64-bit relocs become
361 RELATIVE relocations. */
362
363/* #define DWARF_OFFSET_SIZE PTR_SIZE */
275b60d6
JJ
364
365#if defined(HAVE_LD_EH_FRAME_HDR)
366#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
367#endif
f7e0e539 368\f
b5de1a27
DM
369/* Don't be different from other Linux platforms in this regard. */
370#define HANDLE_PRAGMA_PACK_PUSH_POP
7a31a340
DM
371
372/* We use GNU ld so undefine this so that attribute((init_priority)) works. */
373#undef CTORS_SECTION_ASM_OP
374#undef DTORS_SECTION_ASM_OP
db430d26
DM
375
376/* Do code reading to identify a signal frame, and set the frame
377 state data appropriately. See unwind-dw2.c for the structs. */
378
db430d26
DM
379/* Handle multilib correctly. */
380#if defined(__arch64__)
381/* 64-bit Sparc version */
382#define MD_FALLBACK_FRAME_STATE_FOR(CONTEXT, FS, SUCCESS) \
383 do { \
384 unsigned int *pc_ = (CONTEXT)->ra; \
385 long new_cfa_, i_; \
386 long regs_off_, fpu_save_off_; \
387 long this_cfa_, fpu_save_; \
388 \
389 if (pc_[0] != 0x82102065 /* mov NR_rt_sigreturn, %g1 */ \
390 || pc_[1] != 0x91d0206d) /* ta 0x6d */ \
391 break; \
392 regs_off_ = 192 + 128; \
393 fpu_save_off_ = regs_off_ + (16 * 8) + (3 * 8) + (2 * 4); \
394 this_cfa_ = (long) (CONTEXT)->cfa; \
395 new_cfa_ = *(long *)(((CONTEXT)->cfa) + (regs_off_ + (14 * 8))); \
3ef3f384 396 new_cfa_ += 2047; /* Stack bias */ \
db430d26
DM
397 fpu_save_ = *(long *)((this_cfa_) + (fpu_save_off_)); \
398 (FS)->cfa_how = CFA_REG_OFFSET; \
399 (FS)->cfa_reg = 14; \
400 (FS)->cfa_offset = new_cfa_ - (long) (CONTEXT)->cfa; \
401 for (i_ = 1; i_ < 16; ++i_) \
402 { \
db430d26
DM
403 (FS)->regs.reg[i_].how = REG_SAVED_OFFSET; \
404 (FS)->regs.reg[i_].loc.offset = \
405 this_cfa_ + (regs_off_ + (i_ * 8)) - new_cfa_; \
406 } \
407 for (i_ = 0; i_ < 16; ++i_) \
408 { \
409 (FS)->regs.reg[i_ + 16].how = REG_SAVED_OFFSET; \
410 (FS)->regs.reg[i_ + 16].loc.offset = \
411 this_cfa_ + (i_ * 8) - new_cfa_; \
412 } \
413 if (fpu_save_) \
414 { \
415 for (i_ = 0; i_ < 64; ++i_) \
416 { \
417 if (i_ > 32 && (i_ & 0x1)) \
418 continue; \
419 (FS)->regs.reg[i_ + 32].how = REG_SAVED_OFFSET; \
420 (FS)->regs.reg[i_ + 32].loc.offset = \
421 (fpu_save_ + (i_ * 4)) - new_cfa_; \
422 } \
423 } \
424 /* Stick return address into %g0, same trick Alpha uses. */ \
425 (FS)->regs.reg[0].how = REG_SAVED_OFFSET; \
426 (FS)->regs.reg[0].loc.offset = \
427 this_cfa_ + (regs_off_ + (16 * 8) + 8) - new_cfa_; \
428 (FS)->retaddr_column = 0; \
429 goto SUCCESS; \
430 } while (0)
431#else
432/* 32-bit Sparc version */
433#define MD_FALLBACK_FRAME_STATE_FOR(CONTEXT, FS, SUCCESS) \
434 do { \
435 unsigned int *pc_ = (CONTEXT)->ra; \
436 int new_cfa_, i_, oldstyle_; \
437 int regs_off_, fpu_save_off_; \
438 int fpu_save_, this_cfa_; \
439 \
440 if (pc_[1] != 0x91d02010) /* ta 0x10 */ \
441 break; \
442 if (pc_[0] == 0x821020d8) /* mov NR_sigreturn, %g1 */ \
443 oldstyle_ = 1; \
444 else if (pc_[0] == 0x82102065) /* mov NR_rt_sigreturn, %g1 */ \
445 oldstyle_ = 0; \
446 else \
447 break; \
448 if (oldstyle_) \
449 { \
450 regs_off_ = 96; \
451 fpu_save_off_ = regs_off_ + (4 * 4) + (16 * 4); \
452 } \
453 else \
454 { \
455 regs_off_ = 96 + 128; \
456 fpu_save_off_ = regs_off_ + (4 * 4) + (16 * 4) + (2 * 4); \
457 } \
458 this_cfa_ = (int) (CONTEXT)->cfa; \
459 new_cfa_ = *(int *)(((CONTEXT)->cfa) + (regs_off_+(4*4)+(14 * 4))); \
460 fpu_save_ = *(int *)((this_cfa_) + (fpu_save_off_)); \
461 (FS)->cfa_how = CFA_REG_OFFSET; \
462 (FS)->cfa_reg = 14; \
463 (FS)->cfa_offset = new_cfa_ - (int) (CONTEXT)->cfa; \
464 for (i_ = 1; i_ < 16; ++i_) \
465 { \
466 if (i_ == 14) \
467 continue; \
468 (FS)->regs.reg[i_].how = REG_SAVED_OFFSET; \
469 (FS)->regs.reg[i_].loc.offset = \
470 this_cfa_ + (regs_off_+(4 * 4)+(i_ * 4)) - new_cfa_; \
471 } \
472 for (i_ = 0; i_ < 16; ++i_) \
473 { \
474 (FS)->regs.reg[i_ + 16].how = REG_SAVED_OFFSET; \
475 (FS)->regs.reg[i_ + 16].loc.offset = \
476 this_cfa_ + (i_ * 4) - new_cfa_; \
477 } \
478 if (fpu_save_) \
479 { \
480 for (i_ = 0; i_ < 32; ++i_) \
481 { \
482 (FS)->regs.reg[i_ + 32].how = REG_SAVED_OFFSET; \
483 (FS)->regs.reg[i_ + 32].loc.offset = \
484 (fpu_save_ + (i_ * 4)) - new_cfa_; \
485 } \
486 } \
487 /* Stick return address into %g0, same trick Alpha uses. */ \
488 (FS)->regs.reg[0].how = REG_SAVED_OFFSET; \
489 (FS)->regs.reg[0].loc.offset = this_cfa_+(regs_off_+4)-new_cfa_; \
490 (FS)->retaddr_column = 0; \
491 goto SUCCESS; \
492 } while (0)
493#endif