1 This is doc/gccint.info, produced by makeinfo version 4.8 from
2 ../../gcc-4.4.0/gcc/doc/gccint.texi.
4 Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
5 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free
6 Software Foundation, Inc.
8 Permission is granted to copy, distribute and/or modify this document
9 under the terms of the GNU Free Documentation License, Version 1.2 or
10 any later version published by the Free Software Foundation; with the
11 Invariant Sections being "Funding Free Software", the Front-Cover Texts
12 being (a) (see below), and with the Back-Cover Texts being (b) (see
13 below). A copy of the license is included in the section entitled "GNU
14 Free Documentation License".
16 (a) The FSF's Front-Cover Text is:
20 (b) The FSF's Back-Cover Text is:
22 You have freedom to copy and modify this GNU Manual, like GNU
23 software. Copies published by the Free Software Foundation raise
24 funds for GNU development.
26 INFO-DIR-SECTION Software development
28 * gccint: (gccint). Internals of the GNU Compiler Collection.
30 This file documents the internals of the GNU compilers.
32 Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
33 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free
34 Software Foundation, Inc.
36 Permission is granted to copy, distribute and/or modify this document
37 under the terms of the GNU Free Documentation License, Version 1.2 or
38 any later version published by the Free Software Foundation; with the
39 Invariant Sections being "Funding Free Software", the Front-Cover Texts
40 being (a) (see below), and with the Back-Cover Texts being (b) (see
41 below). A copy of the license is included in the section entitled "GNU
42 Free Documentation License".
44 (a) The FSF's Front-Cover Text is:
48 (b) The FSF's Back-Cover Text is:
50 You have freedom to copy and modify this GNU Manual, like GNU
51 software. Copies published by the Free Software Foundation raise
52 funds for GNU development.
56 File: gccint.info, Node: Top, Next: Contributing, Up: (DIR)
61 This manual documents the internals of the GNU compilers, including how
62 to port them to new targets and some information about how to write
63 front ends for new languages. It corresponds to the compilers
64 (TDM-1 mingw32) version 4.4.0. The use of the GNU compilers is
65 documented in a separate manual. *Note Introduction: (gcc)Top.
67 This manual is mainly a reference manual rather than a tutorial. It
68 discusses how to contribute to GCC (*note Contributing::), the
69 characteristics of the machines supported by GCC as hosts and targets
70 (*note Portability::), how GCC relates to the ABIs on such systems
71 (*note Interface::), and the characteristics of the languages for which
72 GCC front ends are written (*note Languages::). It then describes the
73 GCC source tree structure and build system, some of the interfaces to
74 GCC front ends, and how support for a target system is implemented in
77 Additional tutorial information is linked to from
78 `http://gcc.gnu.org/readings.html'.
82 * Contributing:: How to contribute to testing and developing GCC.
83 * Portability:: Goals of GCC's portability features.
84 * Interface:: Function-call interface of GCC output.
85 * Libgcc:: Low-level runtime library used by GCC.
86 * Languages:: Languages for which GCC front ends are written.
87 * Source Tree:: GCC source tree structure and build system.
88 * Options:: Option specification files.
89 * Passes:: Order of passes, what they do, and what each file is for.
90 * Trees:: The source representation used by the C and C++ front ends.
91 * RTL:: The intermediate representation that most passes work on.
92 * GENERIC:: Language-independent representation generated by Front Ends
93 * GIMPLE:: Tuple representation used by Tree SSA optimizers
94 * Tree SSA:: Analysis and optimization of GIMPLE
95 * Control Flow:: Maintaining and manipulating the control flow graph.
96 * Loop Analysis and Representation:: Analysis and representation of loops
97 * Machine Desc:: How to write machine description instruction patterns.
98 * Target Macros:: How to write the machine description C macros and functions.
99 * Host Config:: Writing the `xm-MACHINE.h' file.
100 * Fragments:: Writing the `t-TARGET' and `x-HOST' files.
101 * Collect2:: How `collect2' works; how it finds `ld'.
102 * Header Dirs:: Understanding the standard header file directories.
103 * Type Information:: GCC's memory management; generating type information.
105 * Funding:: How to help assure funding for free software.
106 * GNU Project:: The GNU Project and GNU/Linux.
108 * Copying:: GNU General Public License says
109 how you can copy and share GCC.
110 * GNU Free Documentation License:: How you can copy and share this manual.
111 * Contributors:: People who have contributed to GCC.
113 * Option Index:: Index to command line options.
114 * Concept Index:: Index of concepts and symbol names.
117 File: gccint.info, Node: Contributing, Next: Portability, Prev: Top, Up: Top
119 1 Contributing to GCC Development
120 *********************************
122 If you would like to help pretest GCC releases to assure they work well,
123 current development sources are available by SVN (see
124 `http://gcc.gnu.org/svn.html'). Source and binary snapshots are also
125 available for FTP; see `http://gcc.gnu.org/snapshots.html'.
127 If you would like to work on improvements to GCC, please read the
128 advice at these URLs:
130 `http://gcc.gnu.org/contribute.html'
131 `http://gcc.gnu.org/contributewhy.html'
133 for information on how to make useful contributions and avoid
134 duplication of effort. Suggested projects are listed at
135 `http://gcc.gnu.org/projects/'.
138 File: gccint.info, Node: Portability, Next: Interface, Prev: Contributing, Up: Top
140 2 GCC and Portability
141 *********************
143 GCC itself aims to be portable to any machine where `int' is at least a
144 32-bit type. It aims to target machines with a flat (non-segmented)
145 byte addressed data address space (the code address space can be
146 separate). Target ABIs may have 8, 16, 32 or 64-bit `int' type. `char'
147 can be wider than 8 bits.
149 GCC gets most of the information about the target machine from a
150 machine description which gives an algebraic formula for each of the
151 machine's instructions. This is a very clean way to describe the
152 target. But when the compiler needs information that is difficult to
153 express in this fashion, ad-hoc parameters have been defined for
154 machine descriptions. The purpose of portability is to reduce the
155 total work needed on the compiler; it was not of interest for its own
158 GCC does not contain machine dependent code, but it does contain code
159 that depends on machine parameters such as endianness (whether the most
160 significant byte has the highest or lowest address of the bytes in a
161 word) and the availability of autoincrement addressing. In the
162 RTL-generation pass, it is often necessary to have multiple strategies
163 for generating code for a particular kind of syntax tree, strategies
164 that are usable for different combinations of parameters. Often, not
165 all possible cases have been addressed, but only the common ones or
166 only the ones that have been encountered. As a result, a new target
167 may require additional strategies. You will know if this happens
168 because the compiler will call `abort'. Fortunately, the new
169 strategies can be added in a machine-independent fashion, and will
170 affect only the target machines that need them.
173 File: gccint.info, Node: Interface, Next: Libgcc, Prev: Portability, Up: Top
175 3 Interfacing to GCC Output
176 ***************************
178 GCC is normally configured to use the same function calling convention
179 normally in use on the target system. This is done with the
180 machine-description macros described (*note Target Macros::).
182 However, returning of structure and union values is done differently on
183 some target machines. As a result, functions compiled with PCC
184 returning such types cannot be called from code compiled with GCC, and
185 vice versa. This does not cause trouble often because few Unix library
186 routines return structures or unions.
188 GCC code returns structures and unions that are 1, 2, 4 or 8 bytes
189 long in the same registers used for `int' or `double' return values.
190 (GCC typically allocates variables of such types in registers also.)
191 Structures and unions of other sizes are returned by storing them into
192 an address passed by the caller (usually in a register). The target
193 hook `TARGET_STRUCT_VALUE_RTX' tells GCC where to pass this address.
195 By contrast, PCC on most target machines returns structures and unions
196 of any size by copying the data into an area of static storage, and then
197 returning the address of that storage as if it were a pointer value.
198 The caller must copy the data from that memory area to the place where
199 the value is wanted. This is slower than the method used by GCC, and
200 fails to be reentrant.
202 On some target machines, such as RISC machines and the 80386, the
203 standard system convention is to pass to the subroutine the address of
204 where to return the value. On these machines, GCC has been configured
205 to be compatible with the standard compiler, when this method is used.
206 It may not be compatible for structures of 1, 2, 4 or 8 bytes.
208 GCC uses the system's standard convention for passing arguments. On
209 some machines, the first few arguments are passed in registers; in
210 others, all are passed on the stack. It would be possible to use
211 registers for argument passing on any machine, and this would probably
212 result in a significant speedup. But the result would be complete
213 incompatibility with code that follows the standard convention. So this
214 change is practical only if you are switching to GCC as the sole C
215 compiler for the system. We may implement register argument passing on
216 certain machines once we have a complete GNU system so that we can
217 compile the libraries with GCC.
219 On some machines (particularly the SPARC), certain types of arguments
220 are passed "by invisible reference". This means that the value is
221 stored in memory, and the address of the memory location is passed to
224 If you use `longjmp', beware of automatic variables. ISO C says that
225 automatic variables that are not declared `volatile' have undefined
226 values after a `longjmp'. And this is all GCC promises to do, because
227 it is very difficult to restore register variables correctly, and one
228 of GCC's features is that it can put variables in registers without
232 File: gccint.info, Node: Libgcc, Next: Languages, Prev: Interface, Up: Top
234 4 The GCC low-level runtime library
235 ***********************************
237 GCC provides a low-level runtime library, `libgcc.a' or `libgcc_s.so.1'
238 on some platforms. GCC generates calls to routines in this library
239 automatically, whenever it needs to perform some operation that is too
240 complicated to emit inline code for.
242 Most of the routines in `libgcc' handle arithmetic operations that the
243 target processor cannot perform directly. This includes integer
244 multiply and divide on some machines, and all floating-point and
245 fixed-point operations on other machines. `libgcc' also includes
246 routines for exception handling, and a handful of miscellaneous
249 Some of these routines can be defined in mostly machine-independent C.
250 Others must be hand-written in assembly language for each processor
253 GCC will also generate calls to C library routines, such as `memcpy'
254 and `memset', in some cases. The set of routines that GCC may possibly
255 use is documented in *Note Other Builtins: (gcc)Other Builtins.
257 These routines take arguments and return values of a specific machine
258 mode, not a specific C type. *Note Machine Modes::, for an explanation
259 of this concept. For illustrative purposes, in this chapter the
260 floating point type `float' is assumed to correspond to `SFmode';
261 `double' to `DFmode'; and `long double' to both `TFmode' and `XFmode'.
262 Similarly, the integer types `int' and `unsigned int' correspond to
263 `SImode'; `long' and `unsigned long' to `DImode'; and `long long' and
264 `unsigned long long' to `TImode'.
268 * Integer library routines::
269 * Soft float library routines::
270 * Decimal float library routines::
271 * Fixed-point fractional library routines::
272 * Exception handling routines::
273 * Miscellaneous routines::
276 File: gccint.info, Node: Integer library routines, Next: Soft float library routines, Up: Libgcc
278 4.1 Routines for integer arithmetic
279 ===================================
281 The integer arithmetic routines are used on platforms that don't provide
282 hardware support for arithmetic operations on some modes.
284 4.1.1 Arithmetic functions
285 --------------------------
287 -- Runtime Function: int __ashlsi3 (int A, int B)
288 -- Runtime Function: long __ashldi3 (long A, int B)
289 -- Runtime Function: long long __ashlti3 (long long A, int B)
290 These functions return the result of shifting A left by B bits.
292 -- Runtime Function: int __ashrsi3 (int A, int B)
293 -- Runtime Function: long __ashrdi3 (long A, int B)
294 -- Runtime Function: long long __ashrti3 (long long A, int B)
295 These functions return the result of arithmetically shifting A
298 -- Runtime Function: int __divsi3 (int A, int B)
299 -- Runtime Function: long __divdi3 (long A, long B)
300 -- Runtime Function: long long __divti3 (long long A, long long B)
301 These functions return the quotient of the signed division of A and
304 -- Runtime Function: int __lshrsi3 (int A, int B)
305 -- Runtime Function: long __lshrdi3 (long A, int B)
306 -- Runtime Function: long long __lshrti3 (long long A, int B)
307 These functions return the result of logically shifting A right by
310 -- Runtime Function: int __modsi3 (int A, int B)
311 -- Runtime Function: long __moddi3 (long A, long B)
312 -- Runtime Function: long long __modti3 (long long A, long long B)
313 These functions return the remainder of the signed division of A
316 -- Runtime Function: int __mulsi3 (int A, int B)
317 -- Runtime Function: long __muldi3 (long A, long B)
318 -- Runtime Function: long long __multi3 (long long A, long long B)
319 These functions return the product of A and B.
321 -- Runtime Function: long __negdi2 (long A)
322 -- Runtime Function: long long __negti2 (long long A)
323 These functions return the negation of A.
325 -- Runtime Function: unsigned int __udivsi3 (unsigned int A, unsigned
327 -- Runtime Function: unsigned long __udivdi3 (unsigned long A,
329 -- Runtime Function: unsigned long long __udivti3 (unsigned long long
330 A, unsigned long long B)
331 These functions return the quotient of the unsigned division of A
334 -- Runtime Function: unsigned long __udivmoddi3 (unsigned long A,
335 unsigned long B, unsigned long *C)
336 -- Runtime Function: unsigned long long __udivti3 (unsigned long long
337 A, unsigned long long B, unsigned long long *C)
338 These functions calculate both the quotient and remainder of the
339 unsigned division of A and B. The return value is the quotient,
340 and the remainder is placed in variable pointed to by C.
342 -- Runtime Function: unsigned int __umodsi3 (unsigned int A, unsigned
344 -- Runtime Function: unsigned long __umoddi3 (unsigned long A,
346 -- Runtime Function: unsigned long long __umodti3 (unsigned long long
347 A, unsigned long long B)
348 These functions return the remainder of the unsigned division of A
351 4.1.2 Comparison functions
352 --------------------------
354 The following functions implement integral comparisons. These functions
355 implement a low-level compare, upon which the higher level comparison
356 operators (such as less than and greater than or equal to) can be
357 constructed. The returned values lie in the range zero to two, to allow
358 the high-level operators to be implemented by testing the returned
359 result using either signed or unsigned comparison.
361 -- Runtime Function: int __cmpdi2 (long A, long B)
362 -- Runtime Function: int __cmpti2 (long long A, long long B)
363 These functions perform a signed comparison of A and B. If A is
364 less than B, they return 0; if A is greater than B, they return 2;
365 and if A and B are equal they return 1.
367 -- Runtime Function: int __ucmpdi2 (unsigned long A, unsigned long B)
368 -- Runtime Function: int __ucmpti2 (unsigned long long A, unsigned
370 These functions perform an unsigned comparison of A and B. If A
371 is less than B, they return 0; if A is greater than B, they return
372 2; and if A and B are equal they return 1.
374 4.1.3 Trapping arithmetic functions
375 -----------------------------------
377 The following functions implement trapping arithmetic. These functions
378 call the libc function `abort' upon signed arithmetic overflow.
380 -- Runtime Function: int __absvsi2 (int A)
381 -- Runtime Function: long __absvdi2 (long A)
382 These functions return the absolute value of A.
384 -- Runtime Function: int __addvsi3 (int A, int B)
385 -- Runtime Function: long __addvdi3 (long A, long B)
386 These functions return the sum of A and B; that is `A + B'.
388 -- Runtime Function: int __mulvsi3 (int A, int B)
389 -- Runtime Function: long __mulvdi3 (long A, long B)
390 The functions return the product of A and B; that is `A * B'.
392 -- Runtime Function: int __negvsi2 (int A)
393 -- Runtime Function: long __negvdi2 (long A)
394 These functions return the negation of A; that is `-A'.
396 -- Runtime Function: int __subvsi3 (int A, int B)
397 -- Runtime Function: long __subvdi3 (long A, long B)
398 These functions return the difference between B and A; that is `A
404 -- Runtime Function: int __clzsi2 (int A)
405 -- Runtime Function: int __clzdi2 (long A)
406 -- Runtime Function: int __clzti2 (long long A)
407 These functions return the number of leading 0-bits in A, starting
408 at the most significant bit position. If A is zero, the result is
411 -- Runtime Function: int __ctzsi2 (int A)
412 -- Runtime Function: int __ctzdi2 (long A)
413 -- Runtime Function: int __ctzti2 (long long A)
414 These functions return the number of trailing 0-bits in A, starting
415 at the least significant bit position. If A is zero, the result is
418 -- Runtime Function: int __ffsdi2 (long A)
419 -- Runtime Function: int __ffsti2 (long long A)
420 These functions return the index of the least significant 1-bit in
421 A, or the value zero if A is zero. The least significant bit is
424 -- Runtime Function: int __paritysi2 (int A)
425 -- Runtime Function: int __paritydi2 (long A)
426 -- Runtime Function: int __parityti2 (long long A)
427 These functions return the value zero if the number of bits set in
428 A is even, and the value one otherwise.
430 -- Runtime Function: int __popcountsi2 (int A)
431 -- Runtime Function: int __popcountdi2 (long A)
432 -- Runtime Function: int __popcountti2 (long long A)
433 These functions return the number of bits set in A.
435 -- Runtime Function: int32_t __bswapsi2 (int32_t A)
436 -- Runtime Function: int64_t __bswapdi2 (int64_t A)
437 These functions return the A byteswapped.
440 File: gccint.info, Node: Soft float library routines, Next: Decimal float library routines, Prev: Integer library routines, Up: Libgcc
442 4.2 Routines for floating point emulation
443 =========================================
445 The software floating point library is used on machines which do not
446 have hardware support for floating point. It is also used whenever
447 `-msoft-float' is used to disable generation of floating point
448 instructions. (Not all targets support this switch.)
450 For compatibility with other compilers, the floating point emulation
451 routines can be renamed with the `DECLARE_LIBRARY_RENAMES' macro (*note
452 Library Calls::). In this section, the default names are used.
454 Presently the library does not support `XFmode', which is used for
455 `long double' on some architectures.
457 4.2.1 Arithmetic functions
458 --------------------------
460 -- Runtime Function: float __addsf3 (float A, float B)
461 -- Runtime Function: double __adddf3 (double A, double B)
462 -- Runtime Function: long double __addtf3 (long double A, long double
464 -- Runtime Function: long double __addxf3 (long double A, long double
466 These functions return the sum of A and B.
468 -- Runtime Function: float __subsf3 (float A, float B)
469 -- Runtime Function: double __subdf3 (double A, double B)
470 -- Runtime Function: long double __subtf3 (long double A, long double
472 -- Runtime Function: long double __subxf3 (long double A, long double
474 These functions return the difference between B and A; that is,
477 -- Runtime Function: float __mulsf3 (float A, float B)
478 -- Runtime Function: double __muldf3 (double A, double B)
479 -- Runtime Function: long double __multf3 (long double A, long double
481 -- Runtime Function: long double __mulxf3 (long double A, long double
483 These functions return the product of A and B.
485 -- Runtime Function: float __divsf3 (float A, float B)
486 -- Runtime Function: double __divdf3 (double A, double B)
487 -- Runtime Function: long double __divtf3 (long double A, long double
489 -- Runtime Function: long double __divxf3 (long double A, long double
491 These functions return the quotient of A and B; that is, A / B.
493 -- Runtime Function: float __negsf2 (float A)
494 -- Runtime Function: double __negdf2 (double A)
495 -- Runtime Function: long double __negtf2 (long double A)
496 -- Runtime Function: long double __negxf2 (long double A)
497 These functions return the negation of A. They simply flip the
498 sign bit, so they can produce negative zero and negative NaN.
500 4.2.2 Conversion functions
501 --------------------------
503 -- Runtime Function: double __extendsfdf2 (float A)
504 -- Runtime Function: long double __extendsftf2 (float A)
505 -- Runtime Function: long double __extendsfxf2 (float A)
506 -- Runtime Function: long double __extenddftf2 (double A)
507 -- Runtime Function: long double __extenddfxf2 (double A)
508 These functions extend A to the wider mode of their return type.
510 -- Runtime Function: double __truncxfdf2 (long double A)
511 -- Runtime Function: double __trunctfdf2 (long double A)
512 -- Runtime Function: float __truncxfsf2 (long double A)
513 -- Runtime Function: float __trunctfsf2 (long double A)
514 -- Runtime Function: float __truncdfsf2 (double A)
515 These functions truncate A to the narrower mode of their return
516 type, rounding toward zero.
518 -- Runtime Function: int __fixsfsi (float A)
519 -- Runtime Function: int __fixdfsi (double A)
520 -- Runtime Function: int __fixtfsi (long double A)
521 -- Runtime Function: int __fixxfsi (long double A)
522 These functions convert A to a signed integer, rounding toward
525 -- Runtime Function: long __fixsfdi (float A)
526 -- Runtime Function: long __fixdfdi (double A)
527 -- Runtime Function: long __fixtfdi (long double A)
528 -- Runtime Function: long __fixxfdi (long double A)
529 These functions convert A to a signed long, rounding toward zero.
531 -- Runtime Function: long long __fixsfti (float A)
532 -- Runtime Function: long long __fixdfti (double A)
533 -- Runtime Function: long long __fixtfti (long double A)
534 -- Runtime Function: long long __fixxfti (long double A)
535 These functions convert A to a signed long long, rounding toward
538 -- Runtime Function: unsigned int __fixunssfsi (float A)
539 -- Runtime Function: unsigned int __fixunsdfsi (double A)
540 -- Runtime Function: unsigned int __fixunstfsi (long double A)
541 -- Runtime Function: unsigned int __fixunsxfsi (long double A)
542 These functions convert A to an unsigned integer, rounding toward
543 zero. Negative values all become zero.
545 -- Runtime Function: unsigned long __fixunssfdi (float A)
546 -- Runtime Function: unsigned long __fixunsdfdi (double A)
547 -- Runtime Function: unsigned long __fixunstfdi (long double A)
548 -- Runtime Function: unsigned long __fixunsxfdi (long double A)
549 These functions convert A to an unsigned long, rounding toward
550 zero. Negative values all become zero.
552 -- Runtime Function: unsigned long long __fixunssfti (float A)
553 -- Runtime Function: unsigned long long __fixunsdfti (double A)
554 -- Runtime Function: unsigned long long __fixunstfti (long double A)
555 -- Runtime Function: unsigned long long __fixunsxfti (long double A)
556 These functions convert A to an unsigned long long, rounding
557 toward zero. Negative values all become zero.
559 -- Runtime Function: float __floatsisf (int I)
560 -- Runtime Function: double __floatsidf (int I)
561 -- Runtime Function: long double __floatsitf (int I)
562 -- Runtime Function: long double __floatsixf (int I)
563 These functions convert I, a signed integer, to floating point.
565 -- Runtime Function: float __floatdisf (long I)
566 -- Runtime Function: double __floatdidf (long I)
567 -- Runtime Function: long double __floatditf (long I)
568 -- Runtime Function: long double __floatdixf (long I)
569 These functions convert I, a signed long, to floating point.
571 -- Runtime Function: float __floattisf (long long I)
572 -- Runtime Function: double __floattidf (long long I)
573 -- Runtime Function: long double __floattitf (long long I)
574 -- Runtime Function: long double __floattixf (long long I)
575 These functions convert I, a signed long long, to floating point.
577 -- Runtime Function: float __floatunsisf (unsigned int I)
578 -- Runtime Function: double __floatunsidf (unsigned int I)
579 -- Runtime Function: long double __floatunsitf (unsigned int I)
580 -- Runtime Function: long double __floatunsixf (unsigned int I)
581 These functions convert I, an unsigned integer, to floating point.
583 -- Runtime Function: float __floatundisf (unsigned long I)
584 -- Runtime Function: double __floatundidf (unsigned long I)
585 -- Runtime Function: long double __floatunditf (unsigned long I)
586 -- Runtime Function: long double __floatundixf (unsigned long I)
587 These functions convert I, an unsigned long, to floating point.
589 -- Runtime Function: float __floatuntisf (unsigned long long I)
590 -- Runtime Function: double __floatuntidf (unsigned long long I)
591 -- Runtime Function: long double __floatuntitf (unsigned long long I)
592 -- Runtime Function: long double __floatuntixf (unsigned long long I)
593 These functions convert I, an unsigned long long, to floating
596 4.2.3 Comparison functions
597 --------------------------
599 There are two sets of basic comparison functions.
601 -- Runtime Function: int __cmpsf2 (float A, float B)
602 -- Runtime Function: int __cmpdf2 (double A, double B)
603 -- Runtime Function: int __cmptf2 (long double A, long double B)
604 These functions calculate a <=> b. That is, if A is less than B,
605 they return -1; if A is greater than B, they return 1; and if A
606 and B are equal they return 0. If either argument is NaN they
607 return 1, but you should not rely on this; if NaN is a
608 possibility, use one of the higher-level comparison functions.
610 -- Runtime Function: int __unordsf2 (float A, float B)
611 -- Runtime Function: int __unorddf2 (double A, double B)
612 -- Runtime Function: int __unordtf2 (long double A, long double B)
613 These functions return a nonzero value if either argument is NaN,
616 There is also a complete group of higher level functions which
617 correspond directly to comparison operators. They implement the ISO C
618 semantics for floating-point comparisons, taking NaN into account. Pay
619 careful attention to the return values defined for each set. Under the
620 hood, all of these routines are implemented as
622 if (__unordXf2 (a, b))
624 return __cmpXf2 (a, b);
626 where E is a constant chosen to give the proper behavior for NaN.
627 Thus, the meaning of the return value is different for each set. Do
628 not rely on this implementation; only the semantics documented below
631 -- Runtime Function: int __eqsf2 (float A, float B)
632 -- Runtime Function: int __eqdf2 (double A, double B)
633 -- Runtime Function: int __eqtf2 (long double A, long double B)
634 These functions return zero if neither argument is NaN, and A and
637 -- Runtime Function: int __nesf2 (float A, float B)
638 -- Runtime Function: int __nedf2 (double A, double B)
639 -- Runtime Function: int __netf2 (long double A, long double B)
640 These functions return a nonzero value if either argument is NaN,
641 or if A and B are unequal.
643 -- Runtime Function: int __gesf2 (float A, float B)
644 -- Runtime Function: int __gedf2 (double A, double B)
645 -- Runtime Function: int __getf2 (long double A, long double B)
646 These functions return a value greater than or equal to zero if
647 neither argument is NaN, and A is greater than or equal to B.
649 -- Runtime Function: int __ltsf2 (float A, float B)
650 -- Runtime Function: int __ltdf2 (double A, double B)
651 -- Runtime Function: int __lttf2 (long double A, long double B)
652 These functions return a value less than zero if neither argument
653 is NaN, and A is strictly less than B.
655 -- Runtime Function: int __lesf2 (float A, float B)
656 -- Runtime Function: int __ledf2 (double A, double B)
657 -- Runtime Function: int __letf2 (long double A, long double B)
658 These functions return a value less than or equal to zero if
659 neither argument is NaN, and A is less than or equal to B.
661 -- Runtime Function: int __gtsf2 (float A, float B)
662 -- Runtime Function: int __gtdf2 (double A, double B)
663 -- Runtime Function: int __gttf2 (long double A, long double B)
664 These functions return a value greater than zero if neither
665 argument is NaN, and A is strictly greater than B.
667 4.2.4 Other floating-point functions
668 ------------------------------------
670 -- Runtime Function: float __powisf2 (float A, int B)
671 -- Runtime Function: double __powidf2 (double A, int B)
672 -- Runtime Function: long double __powitf2 (long double A, int B)
673 -- Runtime Function: long double __powixf2 (long double A, int B)
674 These functions convert raise A to the power B.
676 -- Runtime Function: complex float __mulsc3 (float A, float B, float
678 -- Runtime Function: complex double __muldc3 (double A, double B,
680 -- Runtime Function: complex long double __multc3 (long double A, long
681 double B, long double C, long double D)
682 -- Runtime Function: complex long double __mulxc3 (long double A, long
683 double B, long double C, long double D)
684 These functions return the product of A + iB and C + iD, following
685 the rules of C99 Annex G.
687 -- Runtime Function: complex float __divsc3 (float A, float B, float
689 -- Runtime Function: complex double __divdc3 (double A, double B,
691 -- Runtime Function: complex long double __divtc3 (long double A, long
692 double B, long double C, long double D)
693 -- Runtime Function: complex long double __divxc3 (long double A, long
694 double B, long double C, long double D)
695 These functions return the quotient of A + iB and C + iD (i.e., (A
696 + iB) / (C + iD)), following the rules of C99 Annex G.
699 File: gccint.info, Node: Decimal float library routines, Next: Fixed-point fractional library routines, Prev: Soft float library routines, Up: Libgcc
701 4.3 Routines for decimal floating point emulation
702 =================================================
704 The software decimal floating point library implements IEEE 754-2008
705 decimal floating point arithmetic and is only activated on selected
708 The software decimal floating point library supports either DPD
709 (Densely Packed Decimal) or BID (Binary Integer Decimal) encoding as
710 selected at configure time.
712 4.3.1 Arithmetic functions
713 --------------------------
715 -- Runtime Function: _Decimal32 __dpd_addsd3 (_Decimal32 A, _Decimal32
717 -- Runtime Function: _Decimal32 __bid_addsd3 (_Decimal32 A, _Decimal32
719 -- Runtime Function: _Decimal64 __dpd_adddd3 (_Decimal64 A, _Decimal64
721 -- Runtime Function: _Decimal64 __bid_adddd3 (_Decimal64 A, _Decimal64
723 -- Runtime Function: _Decimal128 __dpd_addtd3 (_Decimal128 A,
725 -- Runtime Function: _Decimal128 __bid_addtd3 (_Decimal128 A,
727 These functions return the sum of A and B.
729 -- Runtime Function: _Decimal32 __dpd_subsd3 (_Decimal32 A, _Decimal32
731 -- Runtime Function: _Decimal32 __bid_subsd3 (_Decimal32 A, _Decimal32
733 -- Runtime Function: _Decimal64 __dpd_subdd3 (_Decimal64 A, _Decimal64
735 -- Runtime Function: _Decimal64 __bid_subdd3 (_Decimal64 A, _Decimal64
737 -- Runtime Function: _Decimal128 __dpd_subtd3 (_Decimal128 A,
739 -- Runtime Function: _Decimal128 __bid_subtd3 (_Decimal128 A,
741 These functions return the difference between B and A; that is,
744 -- Runtime Function: _Decimal32 __dpd_mulsd3 (_Decimal32 A, _Decimal32
746 -- Runtime Function: _Decimal32 __bid_mulsd3 (_Decimal32 A, _Decimal32
748 -- Runtime Function: _Decimal64 __dpd_muldd3 (_Decimal64 A, _Decimal64
750 -- Runtime Function: _Decimal64 __bid_muldd3 (_Decimal64 A, _Decimal64
752 -- Runtime Function: _Decimal128 __dpd_multd3 (_Decimal128 A,
754 -- Runtime Function: _Decimal128 __bid_multd3 (_Decimal128 A,
756 These functions return the product of A and B.
758 -- Runtime Function: _Decimal32 __dpd_divsd3 (_Decimal32 A, _Decimal32
760 -- Runtime Function: _Decimal32 __bid_divsd3 (_Decimal32 A, _Decimal32
762 -- Runtime Function: _Decimal64 __dpd_divdd3 (_Decimal64 A, _Decimal64
764 -- Runtime Function: _Decimal64 __bid_divdd3 (_Decimal64 A, _Decimal64
766 -- Runtime Function: _Decimal128 __dpd_divtd3 (_Decimal128 A,
768 -- Runtime Function: _Decimal128 __bid_divtd3 (_Decimal128 A,
770 These functions return the quotient of A and B; that is, A / B.
772 -- Runtime Function: _Decimal32 __dpd_negsd2 (_Decimal32 A)
773 -- Runtime Function: _Decimal32 __bid_negsd2 (_Decimal32 A)
774 -- Runtime Function: _Decimal64 __dpd_negdd2 (_Decimal64 A)
775 -- Runtime Function: _Decimal64 __bid_negdd2 (_Decimal64 A)
776 -- Runtime Function: _Decimal128 __dpd_negtd2 (_Decimal128 A)
777 -- Runtime Function: _Decimal128 __bid_negtd2 (_Decimal128 A)
778 These functions return the negation of A. They simply flip the
779 sign bit, so they can produce negative zero and negative NaN.
781 4.3.2 Conversion functions
782 --------------------------
784 -- Runtime Function: _Decimal64 __dpd_extendsddd2 (_Decimal32 A)
785 -- Runtime Function: _Decimal64 __bid_extendsddd2 (_Decimal32 A)
786 -- Runtime Function: _Decimal128 __dpd_extendsdtd2 (_Decimal32 A)
787 -- Runtime Function: _Decimal128 __bid_extendsdtd2 (_Decimal32 A)
788 -- Runtime Function: _Decimal128 __dpd_extendddtd2 (_Decimal64 A)
789 -- Runtime Function: _Decimal128 __bid_extendddtd2 (_Decimal64 A)
790 -- Runtime Function: _Decimal32 __dpd_truncddsd2 (_Decimal64 A)
791 -- Runtime Function: _Decimal32 __bid_truncddsd2 (_Decimal64 A)
792 -- Runtime Function: _Decimal32 __dpd_trunctdsd2 (_Decimal128 A)
793 -- Runtime Function: _Decimal32 __bid_trunctdsd2 (_Decimal128 A)
794 -- Runtime Function: _Decimal64 __dpd_trunctddd2 (_Decimal128 A)
795 -- Runtime Function: _Decimal64 __bid_trunctddd2 (_Decimal128 A)
796 These functions convert the value A from one decimal floating type
799 -- Runtime Function: _Decimal64 __dpd_extendsfdd (float A)
800 -- Runtime Function: _Decimal64 __bid_extendsfdd (float A)
801 -- Runtime Function: _Decimal128 __dpd_extendsftd (float A)
802 -- Runtime Function: _Decimal128 __bid_extendsftd (float A)
803 -- Runtime Function: _Decimal128 __dpd_extenddftd (double A)
804 -- Runtime Function: _Decimal128 __bid_extenddftd (double A)
805 -- Runtime Function: _Decimal128 __dpd_extendxftd (long double A)
806 -- Runtime Function: _Decimal128 __bid_extendxftd (long double A)
807 -- Runtime Function: _Decimal32 __dpd_truncdfsd (double A)
808 -- Runtime Function: _Decimal32 __bid_truncdfsd (double A)
809 -- Runtime Function: _Decimal32 __dpd_truncxfsd (long double A)
810 -- Runtime Function: _Decimal32 __bid_truncxfsd (long double A)
811 -- Runtime Function: _Decimal32 __dpd_trunctfsd (long double A)
812 -- Runtime Function: _Decimal32 __bid_trunctfsd (long double A)
813 -- Runtime Function: _Decimal64 __dpd_truncxfdd (long double A)
814 -- Runtime Function: _Decimal64 __bid_truncxfdd (long double A)
815 -- Runtime Function: _Decimal64 __dpd_trunctfdd (long double A)
816 -- Runtime Function: _Decimal64 __bid_trunctfdd (long double A)
817 These functions convert the value of A from a binary floating type
818 to a decimal floating type of a different size.
820 -- Runtime Function: float __dpd_truncddsf (_Decimal64 A)
821 -- Runtime Function: float __bid_truncddsf (_Decimal64 A)
822 -- Runtime Function: float __dpd_trunctdsf (_Decimal128 A)
823 -- Runtime Function: float __bid_trunctdsf (_Decimal128 A)
824 -- Runtime Function: double __dpd_extendsddf (_Decimal32 A)
825 -- Runtime Function: double __bid_extendsddf (_Decimal32 A)
826 -- Runtime Function: double __dpd_trunctddf (_Decimal128 A)
827 -- Runtime Function: double __bid_trunctddf (_Decimal128 A)
828 -- Runtime Function: long double __dpd_extendsdxf (_Decimal32 A)
829 -- Runtime Function: long double __bid_extendsdxf (_Decimal32 A)
830 -- Runtime Function: long double __dpd_extendddxf (_Decimal64 A)
831 -- Runtime Function: long double __bid_extendddxf (_Decimal64 A)
832 -- Runtime Function: long double __dpd_trunctdxf (_Decimal128 A)
833 -- Runtime Function: long double __bid_trunctdxf (_Decimal128 A)
834 -- Runtime Function: long double __dpd_extendsdtf (_Decimal32 A)
835 -- Runtime Function: long double __bid_extendsdtf (_Decimal32 A)
836 -- Runtime Function: long double __dpd_extendddtf (_Decimal64 A)
837 -- Runtime Function: long double __bid_extendddtf (_Decimal64 A)
838 These functions convert the value of A from a decimal floating type
839 to a binary floating type of a different size.
841 -- Runtime Function: _Decimal32 __dpd_extendsfsd (float A)
842 -- Runtime Function: _Decimal32 __bid_extendsfsd (float A)
843 -- Runtime Function: _Decimal64 __dpd_extenddfdd (double A)
844 -- Runtime Function: _Decimal64 __bid_extenddfdd (double A)
845 -- Runtime Function: _Decimal128 __dpd_extendtftd (long double A)
846 -- Runtime Function: _Decimal128 __bid_extendtftd (long double A)
847 -- Runtime Function: float __dpd_truncsdsf (_Decimal32 A)
848 -- Runtime Function: float __bid_truncsdsf (_Decimal32 A)
849 -- Runtime Function: double __dpd_truncdddf (_Decimal64 A)
850 -- Runtime Function: double __bid_truncdddf (_Decimal64 A)
851 -- Runtime Function: long double __dpd_trunctdtf (_Decimal128 A)
852 -- Runtime Function: long double __bid_trunctdtf (_Decimal128 A)
853 These functions convert the value of A between decimal and binary
854 floating types of the same size.
856 -- Runtime Function: int __dpd_fixsdsi (_Decimal32 A)
857 -- Runtime Function: int __bid_fixsdsi (_Decimal32 A)
858 -- Runtime Function: int __dpd_fixddsi (_Decimal64 A)
859 -- Runtime Function: int __bid_fixddsi (_Decimal64 A)
860 -- Runtime Function: int __dpd_fixtdsi (_Decimal128 A)
861 -- Runtime Function: int __bid_fixtdsi (_Decimal128 A)
862 These functions convert A to a signed integer.
864 -- Runtime Function: long __dpd_fixsddi (_Decimal32 A)
865 -- Runtime Function: long __bid_fixsddi (_Decimal32 A)
866 -- Runtime Function: long __dpd_fixdddi (_Decimal64 A)
867 -- Runtime Function: long __bid_fixdddi (_Decimal64 A)
868 -- Runtime Function: long __dpd_fixtddi (_Decimal128 A)
869 -- Runtime Function: long __bid_fixtddi (_Decimal128 A)
870 These functions convert A to a signed long.
872 -- Runtime Function: unsigned int __dpd_fixunssdsi (_Decimal32 A)
873 -- Runtime Function: unsigned int __bid_fixunssdsi (_Decimal32 A)
874 -- Runtime Function: unsigned int __dpd_fixunsddsi (_Decimal64 A)
875 -- Runtime Function: unsigned int __bid_fixunsddsi (_Decimal64 A)
876 -- Runtime Function: unsigned int __dpd_fixunstdsi (_Decimal128 A)
877 -- Runtime Function: unsigned int __bid_fixunstdsi (_Decimal128 A)
878 These functions convert A to an unsigned integer. Negative values
881 -- Runtime Function: unsigned long __dpd_fixunssddi (_Decimal32 A)
882 -- Runtime Function: unsigned long __bid_fixunssddi (_Decimal32 A)
883 -- Runtime Function: unsigned long __dpd_fixunsdddi (_Decimal64 A)
884 -- Runtime Function: unsigned long __bid_fixunsdddi (_Decimal64 A)
885 -- Runtime Function: unsigned long __dpd_fixunstddi (_Decimal128 A)
886 -- Runtime Function: unsigned long __bid_fixunstddi (_Decimal128 A)
887 These functions convert A to an unsigned long. Negative values
890 -- Runtime Function: _Decimal32 __dpd_floatsisd (int I)
891 -- Runtime Function: _Decimal32 __bid_floatsisd (int I)
892 -- Runtime Function: _Decimal64 __dpd_floatsidd (int I)
893 -- Runtime Function: _Decimal64 __bid_floatsidd (int I)
894 -- Runtime Function: _Decimal128 __dpd_floatsitd (int I)
895 -- Runtime Function: _Decimal128 __bid_floatsitd (int I)
896 These functions convert I, a signed integer, to decimal floating
899 -- Runtime Function: _Decimal32 __dpd_floatdisd (long I)
900 -- Runtime Function: _Decimal32 __bid_floatdisd (long I)
901 -- Runtime Function: _Decimal64 __dpd_floatdidd (long I)
902 -- Runtime Function: _Decimal64 __bid_floatdidd (long I)
903 -- Runtime Function: _Decimal128 __dpd_floatditd (long I)
904 -- Runtime Function: _Decimal128 __bid_floatditd (long I)
905 These functions convert I, a signed long, to decimal floating
908 -- Runtime Function: _Decimal32 __dpd_floatunssisd (unsigned int I)
909 -- Runtime Function: _Decimal32 __bid_floatunssisd (unsigned int I)
910 -- Runtime Function: _Decimal64 __dpd_floatunssidd (unsigned int I)
911 -- Runtime Function: _Decimal64 __bid_floatunssidd (unsigned int I)
912 -- Runtime Function: _Decimal128 __dpd_floatunssitd (unsigned int I)
913 -- Runtime Function: _Decimal128 __bid_floatunssitd (unsigned int I)
914 These functions convert I, an unsigned integer, to decimal
917 -- Runtime Function: _Decimal32 __dpd_floatunsdisd (unsigned long I)
918 -- Runtime Function: _Decimal32 __bid_floatunsdisd (unsigned long I)
919 -- Runtime Function: _Decimal64 __dpd_floatunsdidd (unsigned long I)
920 -- Runtime Function: _Decimal64 __bid_floatunsdidd (unsigned long I)
921 -- Runtime Function: _Decimal128 __dpd_floatunsditd (unsigned long I)
922 -- Runtime Function: _Decimal128 __bid_floatunsditd (unsigned long I)
923 These functions convert I, an unsigned long, to decimal floating
926 4.3.3 Comparison functions
927 --------------------------
929 -- Runtime Function: int __dpd_unordsd2 (_Decimal32 A, _Decimal32 B)
930 -- Runtime Function: int __bid_unordsd2 (_Decimal32 A, _Decimal32 B)
931 -- Runtime Function: int __dpd_unorddd2 (_Decimal64 A, _Decimal64 B)
932 -- Runtime Function: int __bid_unorddd2 (_Decimal64 A, _Decimal64 B)
933 -- Runtime Function: int __dpd_unordtd2 (_Decimal128 A, _Decimal128 B)
934 -- Runtime Function: int __bid_unordtd2 (_Decimal128 A, _Decimal128 B)
935 These functions return a nonzero value if either argument is NaN,
938 There is also a complete group of higher level functions which
939 correspond directly to comparison operators. They implement the ISO C
940 semantics for floating-point comparisons, taking NaN into account. Pay
941 careful attention to the return values defined for each set. Under the
942 hood, all of these routines are implemented as
944 if (__bid_unordXd2 (a, b))
946 return __bid_cmpXd2 (a, b);
948 where E is a constant chosen to give the proper behavior for NaN.
949 Thus, the meaning of the return value is different for each set. Do
950 not rely on this implementation; only the semantics documented below
953 -- Runtime Function: int __dpd_eqsd2 (_Decimal32 A, _Decimal32 B)
954 -- Runtime Function: int __bid_eqsd2 (_Decimal32 A, _Decimal32 B)
955 -- Runtime Function: int __dpd_eqdd2 (_Decimal64 A, _Decimal64 B)
956 -- Runtime Function: int __bid_eqdd2 (_Decimal64 A, _Decimal64 B)
957 -- Runtime Function: int __dpd_eqtd2 (_Decimal128 A, _Decimal128 B)
958 -- Runtime Function: int __bid_eqtd2 (_Decimal128 A, _Decimal128 B)
959 These functions return zero if neither argument is NaN, and A and
962 -- Runtime Function: int __dpd_nesd2 (_Decimal32 A, _Decimal32 B)
963 -- Runtime Function: int __bid_nesd2 (_Decimal32 A, _Decimal32 B)
964 -- Runtime Function: int __dpd_nedd2 (_Decimal64 A, _Decimal64 B)
965 -- Runtime Function: int __bid_nedd2 (_Decimal64 A, _Decimal64 B)
966 -- Runtime Function: int __dpd_netd2 (_Decimal128 A, _Decimal128 B)
967 -- Runtime Function: int __bid_netd2 (_Decimal128 A, _Decimal128 B)
968 These functions return a nonzero value if either argument is NaN,
969 or if A and B are unequal.
971 -- Runtime Function: int __dpd_gesd2 (_Decimal32 A, _Decimal32 B)
972 -- Runtime Function: int __bid_gesd2 (_Decimal32 A, _Decimal32 B)
973 -- Runtime Function: int __dpd_gedd2 (_Decimal64 A, _Decimal64 B)
974 -- Runtime Function: int __bid_gedd2 (_Decimal64 A, _Decimal64 B)
975 -- Runtime Function: int __dpd_getd2 (_Decimal128 A, _Decimal128 B)
976 -- Runtime Function: int __bid_getd2 (_Decimal128 A, _Decimal128 B)
977 These functions return a value greater than or equal to zero if
978 neither argument is NaN, and A is greater than or equal to B.
980 -- Runtime Function: int __dpd_ltsd2 (_Decimal32 A, _Decimal32 B)
981 -- Runtime Function: int __bid_ltsd2 (_Decimal32 A, _Decimal32 B)
982 -- Runtime Function: int __dpd_ltdd2 (_Decimal64 A, _Decimal64 B)
983 -- Runtime Function: int __bid_ltdd2 (_Decimal64 A, _Decimal64 B)
984 -- Runtime Function: int __dpd_lttd2 (_Decimal128 A, _Decimal128 B)
985 -- Runtime Function: int __bid_lttd2 (_Decimal128 A, _Decimal128 B)
986 These functions return a value less than zero if neither argument
987 is NaN, and A is strictly less than B.
989 -- Runtime Function: int __dpd_lesd2 (_Decimal32 A, _Decimal32 B)
990 -- Runtime Function: int __bid_lesd2 (_Decimal32 A, _Decimal32 B)
991 -- Runtime Function: int __dpd_ledd2 (_Decimal64 A, _Decimal64 B)
992 -- Runtime Function: int __bid_ledd2 (_Decimal64 A, _Decimal64 B)
993 -- Runtime Function: int __dpd_letd2 (_Decimal128 A, _Decimal128 B)
994 -- Runtime Function: int __bid_letd2 (_Decimal128 A, _Decimal128 B)
995 These functions return a value less than or equal to zero if
996 neither argument is NaN, and A is less than or equal to B.
998 -- Runtime Function: int __dpd_gtsd2 (_Decimal32 A, _Decimal32 B)
999 -- Runtime Function: int __bid_gtsd2 (_Decimal32 A, _Decimal32 B)
1000 -- Runtime Function: int __dpd_gtdd2 (_Decimal64 A, _Decimal64 B)
1001 -- Runtime Function: int __bid_gtdd2 (_Decimal64 A, _Decimal64 B)
1002 -- Runtime Function: int __dpd_gttd2 (_Decimal128 A, _Decimal128 B)
1003 -- Runtime Function: int __bid_gttd2 (_Decimal128 A, _Decimal128 B)
1004 These functions return a value greater than zero if neither
1005 argument is NaN, and A is strictly greater than B.
1008 File: gccint.info, Node: Fixed-point fractional library routines, Next: Exception handling routines, Prev: Decimal float library routines, Up: Libgcc
1010 4.4 Routines for fixed-point fractional emulation
1011 =================================================
1013 The software fixed-point library implements fixed-point fractional
1014 arithmetic, and is only activated on selected targets.
1016 For ease of comprehension `fract' is an alias for the `_Fract' type,
1017 `accum' an alias for `_Accum', and `sat' an alias for `_Sat'.
1019 For illustrative purposes, in this section the fixed-point fractional
1020 type `short fract' is assumed to correspond to machine mode `QQmode';
1021 `unsigned short fract' to `UQQmode'; `fract' to `HQmode';
1022 `unsigned fract' to `UHQmode'; `long fract' to `SQmode';
1023 `unsigned long fract' to `USQmode'; `long long fract' to `DQmode'; and
1024 `unsigned long long fract' to `UDQmode'. Similarly the fixed-point
1025 accumulator type `short accum' corresponds to `HAmode';
1026 `unsigned short accum' to `UHAmode'; `accum' to `SAmode';
1027 `unsigned accum' to `USAmode'; `long accum' to `DAmode';
1028 `unsigned long accum' to `UDAmode'; `long long accum' to `TAmode'; and
1029 `unsigned long long accum' to `UTAmode'.
1031 4.4.1 Arithmetic functions
1032 --------------------------
1034 -- Runtime Function: short fract __addqq3 (short fract A, short fract
1036 -- Runtime Function: fract __addhq3 (fract A, fract B)
1037 -- Runtime Function: long fract __addsq3 (long fract A, long fract B)
1038 -- Runtime Function: long long fract __adddq3 (long long fract A, long
1040 -- Runtime Function: unsigned short fract __adduqq3 (unsigned short
1041 fract A, unsigned short fract B)
1042 -- Runtime Function: unsigned fract __adduhq3 (unsigned fract A,
1044 -- Runtime Function: unsigned long fract __addusq3 (unsigned long
1045 fract A, unsigned long fract B)
1046 -- Runtime Function: unsigned long long fract __addudq3 (unsigned long
1047 long fract A, unsigned long long fract B)
1048 -- Runtime Function: short accum __addha3 (short accum A, short accum
1050 -- Runtime Function: accum __addsa3 (accum A, accum B)
1051 -- Runtime Function: long accum __addda3 (long accum A, long accum B)
1052 -- Runtime Function: long long accum __addta3 (long long accum A, long
1054 -- Runtime Function: unsigned short accum __adduha3 (unsigned short
1055 accum A, unsigned short accum B)
1056 -- Runtime Function: unsigned accum __addusa3 (unsigned accum A,
1058 -- Runtime Function: unsigned long accum __adduda3 (unsigned long
1059 accum A, unsigned long accum B)
1060 -- Runtime Function: unsigned long long accum __adduta3 (unsigned long
1061 long accum A, unsigned long long accum B)
1062 These functions return the sum of A and B.
1064 -- Runtime Function: short fract __ssaddqq3 (short fract A, short
1066 -- Runtime Function: fract __ssaddhq3 (fract A, fract B)
1067 -- Runtime Function: long fract __ssaddsq3 (long fract A, long fract B)
1068 -- Runtime Function: long long fract __ssadddq3 (long long fract A,
1070 -- Runtime Function: short accum __ssaddha3 (short accum A, short
1072 -- Runtime Function: accum __ssaddsa3 (accum A, accum B)
1073 -- Runtime Function: long accum __ssaddda3 (long accum A, long accum B)
1074 -- Runtime Function: long long accum __ssaddta3 (long long accum A,
1076 These functions return the sum of A and B with signed saturation.
1078 -- Runtime Function: unsigned short fract __usadduqq3 (unsigned short
1079 fract A, unsigned short fract B)
1080 -- Runtime Function: unsigned fract __usadduhq3 (unsigned fract A,
1082 -- Runtime Function: unsigned long fract __usaddusq3 (unsigned long
1083 fract A, unsigned long fract B)
1084 -- Runtime Function: unsigned long long fract __usaddudq3 (unsigned
1085 long long fract A, unsigned long long fract B)
1086 -- Runtime Function: unsigned short accum __usadduha3 (unsigned short
1087 accum A, unsigned short accum B)
1088 -- Runtime Function: unsigned accum __usaddusa3 (unsigned accum A,
1090 -- Runtime Function: unsigned long accum __usadduda3 (unsigned long
1091 accum A, unsigned long accum B)
1092 -- Runtime Function: unsigned long long accum __usadduta3 (unsigned
1093 long long accum A, unsigned long long accum B)
1094 These functions return the sum of A and B with unsigned saturation.
1096 -- Runtime Function: short fract __subqq3 (short fract A, short fract
1098 -- Runtime Function: fract __subhq3 (fract A, fract B)
1099 -- Runtime Function: long fract __subsq3 (long fract A, long fract B)
1100 -- Runtime Function: long long fract __subdq3 (long long fract A, long
1102 -- Runtime Function: unsigned short fract __subuqq3 (unsigned short
1103 fract A, unsigned short fract B)
1104 -- Runtime Function: unsigned fract __subuhq3 (unsigned fract A,
1106 -- Runtime Function: unsigned long fract __subusq3 (unsigned long
1107 fract A, unsigned long fract B)
1108 -- Runtime Function: unsigned long long fract __subudq3 (unsigned long
1109 long fract A, unsigned long long fract B)
1110 -- Runtime Function: short accum __subha3 (short accum A, short accum
1112 -- Runtime Function: accum __subsa3 (accum A, accum B)
1113 -- Runtime Function: long accum __subda3 (long accum A, long accum B)
1114 -- Runtime Function: long long accum __subta3 (long long accum A, long
1116 -- Runtime Function: unsigned short accum __subuha3 (unsigned short
1117 accum A, unsigned short accum B)
1118 -- Runtime Function: unsigned accum __subusa3 (unsigned accum A,
1120 -- Runtime Function: unsigned long accum __subuda3 (unsigned long
1121 accum A, unsigned long accum B)
1122 -- Runtime Function: unsigned long long accum __subuta3 (unsigned long
1123 long accum A, unsigned long long accum B)
1124 These functions return the difference of A and B; that is, `A - B'.
1126 -- Runtime Function: short fract __sssubqq3 (short fract A, short
1128 -- Runtime Function: fract __sssubhq3 (fract A, fract B)
1129 -- Runtime Function: long fract __sssubsq3 (long fract A, long fract B)
1130 -- Runtime Function: long long fract __sssubdq3 (long long fract A,
1132 -- Runtime Function: short accum __sssubha3 (short accum A, short
1134 -- Runtime Function: accum __sssubsa3 (accum A, accum B)
1135 -- Runtime Function: long accum __sssubda3 (long accum A, long accum B)
1136 -- Runtime Function: long long accum __sssubta3 (long long accum A,
1138 These functions return the difference of A and B with signed
1139 saturation; that is, `A - B'.
1141 -- Runtime Function: unsigned short fract __ussubuqq3 (unsigned short
1142 fract A, unsigned short fract B)
1143 -- Runtime Function: unsigned fract __ussubuhq3 (unsigned fract A,
1145 -- Runtime Function: unsigned long fract __ussubusq3 (unsigned long
1146 fract A, unsigned long fract B)
1147 -- Runtime Function: unsigned long long fract __ussubudq3 (unsigned
1148 long long fract A, unsigned long long fract B)
1149 -- Runtime Function: unsigned short accum __ussubuha3 (unsigned short
1150 accum A, unsigned short accum B)
1151 -- Runtime Function: unsigned accum __ussubusa3 (unsigned accum A,
1153 -- Runtime Function: unsigned long accum __ussubuda3 (unsigned long
1154 accum A, unsigned long accum B)
1155 -- Runtime Function: unsigned long long accum __ussubuta3 (unsigned
1156 long long accum A, unsigned long long accum B)
1157 These functions return the difference of A and B with unsigned
1158 saturation; that is, `A - B'.
1160 -- Runtime Function: short fract __mulqq3 (short fract A, short fract
1162 -- Runtime Function: fract __mulhq3 (fract A, fract B)
1163 -- Runtime Function: long fract __mulsq3 (long fract A, long fract B)
1164 -- Runtime Function: long long fract __muldq3 (long long fract A, long
1166 -- Runtime Function: unsigned short fract __muluqq3 (unsigned short
1167 fract A, unsigned short fract B)
1168 -- Runtime Function: unsigned fract __muluhq3 (unsigned fract A,
1170 -- Runtime Function: unsigned long fract __mulusq3 (unsigned long
1171 fract A, unsigned long fract B)
1172 -- Runtime Function: unsigned long long fract __muludq3 (unsigned long
1173 long fract A, unsigned long long fract B)
1174 -- Runtime Function: short accum __mulha3 (short accum A, short accum
1176 -- Runtime Function: accum __mulsa3 (accum A, accum B)
1177 -- Runtime Function: long accum __mulda3 (long accum A, long accum B)
1178 -- Runtime Function: long long accum __multa3 (long long accum A, long
1180 -- Runtime Function: unsigned short accum __muluha3 (unsigned short
1181 accum A, unsigned short accum B)
1182 -- Runtime Function: unsigned accum __mulusa3 (unsigned accum A,
1184 -- Runtime Function: unsigned long accum __muluda3 (unsigned long
1185 accum A, unsigned long accum B)
1186 -- Runtime Function: unsigned long long accum __muluta3 (unsigned long
1187 long accum A, unsigned long long accum B)
1188 These functions return the product of A and B.
1190 -- Runtime Function: short fract __ssmulqq3 (short fract A, short
1192 -- Runtime Function: fract __ssmulhq3 (fract A, fract B)
1193 -- Runtime Function: long fract __ssmulsq3 (long fract A, long fract B)
1194 -- Runtime Function: long long fract __ssmuldq3 (long long fract A,
1196 -- Runtime Function: short accum __ssmulha3 (short accum A, short
1198 -- Runtime Function: accum __ssmulsa3 (accum A, accum B)
1199 -- Runtime Function: long accum __ssmulda3 (long accum A, long accum B)
1200 -- Runtime Function: long long accum __ssmulta3 (long long accum A,
1202 These functions return the product of A and B with signed
1205 -- Runtime Function: unsigned short fract __usmuluqq3 (unsigned short
1206 fract A, unsigned short fract B)
1207 -- Runtime Function: unsigned fract __usmuluhq3 (unsigned fract A,
1209 -- Runtime Function: unsigned long fract __usmulusq3 (unsigned long
1210 fract A, unsigned long fract B)
1211 -- Runtime Function: unsigned long long fract __usmuludq3 (unsigned
1212 long long fract A, unsigned long long fract B)
1213 -- Runtime Function: unsigned short accum __usmuluha3 (unsigned short
1214 accum A, unsigned short accum B)
1215 -- Runtime Function: unsigned accum __usmulusa3 (unsigned accum A,
1217 -- Runtime Function: unsigned long accum __usmuluda3 (unsigned long
1218 accum A, unsigned long accum B)
1219 -- Runtime Function: unsigned long long accum __usmuluta3 (unsigned
1220 long long accum A, unsigned long long accum B)
1221 These functions return the product of A and B with unsigned
1224 -- Runtime Function: short fract __divqq3 (short fract A, short fract
1226 -- Runtime Function: fract __divhq3 (fract A, fract B)
1227 -- Runtime Function: long fract __divsq3 (long fract A, long fract B)
1228 -- Runtime Function: long long fract __divdq3 (long long fract A, long
1230 -- Runtime Function: short accum __divha3 (short accum A, short accum
1232 -- Runtime Function: accum __divsa3 (accum A, accum B)
1233 -- Runtime Function: long accum __divda3 (long accum A, long accum B)
1234 -- Runtime Function: long long accum __divta3 (long long accum A, long
1236 These functions return the quotient of the signed division of A
1239 -- Runtime Function: unsigned short fract __udivuqq3 (unsigned short
1240 fract A, unsigned short fract B)
1241 -- Runtime Function: unsigned fract __udivuhq3 (unsigned fract A,
1243 -- Runtime Function: unsigned long fract __udivusq3 (unsigned long
1244 fract A, unsigned long fract B)
1245 -- Runtime Function: unsigned long long fract __udivudq3 (unsigned
1246 long long fract A, unsigned long long fract B)
1247 -- Runtime Function: unsigned short accum __udivuha3 (unsigned short
1248 accum A, unsigned short accum B)
1249 -- Runtime Function: unsigned accum __udivusa3 (unsigned accum A,
1251 -- Runtime Function: unsigned long accum __udivuda3 (unsigned long
1252 accum A, unsigned long accum B)
1253 -- Runtime Function: unsigned long long accum __udivuta3 (unsigned
1254 long long accum A, unsigned long long accum B)
1255 These functions return the quotient of the unsigned division of A
1258 -- Runtime Function: short fract __ssdivqq3 (short fract A, short
1260 -- Runtime Function: fract __ssdivhq3 (fract A, fract B)
1261 -- Runtime Function: long fract __ssdivsq3 (long fract A, long fract B)
1262 -- Runtime Function: long long fract __ssdivdq3 (long long fract A,
1264 -- Runtime Function: short accum __ssdivha3 (short accum A, short
1266 -- Runtime Function: accum __ssdivsa3 (accum A, accum B)
1267 -- Runtime Function: long accum __ssdivda3 (long accum A, long accum B)
1268 -- Runtime Function: long long accum __ssdivta3 (long long accum A,
1270 These functions return the quotient of the signed division of A
1271 and B with signed saturation.
1273 -- Runtime Function: unsigned short fract __usdivuqq3 (unsigned short
1274 fract A, unsigned short fract B)
1275 -- Runtime Function: unsigned fract __usdivuhq3 (unsigned fract A,
1277 -- Runtime Function: unsigned long fract __usdivusq3 (unsigned long
1278 fract A, unsigned long fract B)
1279 -- Runtime Function: unsigned long long fract __usdivudq3 (unsigned
1280 long long fract A, unsigned long long fract B)
1281 -- Runtime Function: unsigned short accum __usdivuha3 (unsigned short
1282 accum A, unsigned short accum B)
1283 -- Runtime Function: unsigned accum __usdivusa3 (unsigned accum A,
1285 -- Runtime Function: unsigned long accum __usdivuda3 (unsigned long
1286 accum A, unsigned long accum B)
1287 -- Runtime Function: unsigned long long accum __usdivuta3 (unsigned
1288 long long accum A, unsigned long long accum B)
1289 These functions return the quotient of the unsigned division of A
1290 and B with unsigned saturation.
1292 -- Runtime Function: short fract __negqq2 (short fract A)
1293 -- Runtime Function: fract __neghq2 (fract A)
1294 -- Runtime Function: long fract __negsq2 (long fract A)
1295 -- Runtime Function: long long fract __negdq2 (long long fract A)
1296 -- Runtime Function: unsigned short fract __neguqq2 (unsigned short
1298 -- Runtime Function: unsigned fract __neguhq2 (unsigned fract A)
1299 -- Runtime Function: unsigned long fract __negusq2 (unsigned long
1301 -- Runtime Function: unsigned long long fract __negudq2 (unsigned long
1303 -- Runtime Function: short accum __negha2 (short accum A)
1304 -- Runtime Function: accum __negsa2 (accum A)
1305 -- Runtime Function: long accum __negda2 (long accum A)
1306 -- Runtime Function: long long accum __negta2 (long long accum A)
1307 -- Runtime Function: unsigned short accum __neguha2 (unsigned short
1309 -- Runtime Function: unsigned accum __negusa2 (unsigned accum A)
1310 -- Runtime Function: unsigned long accum __neguda2 (unsigned long
1312 -- Runtime Function: unsigned long long accum __neguta2 (unsigned long
1314 These functions return the negation of A.
1316 -- Runtime Function: short fract __ssnegqq2 (short fract A)
1317 -- Runtime Function: fract __ssneghq2 (fract A)
1318 -- Runtime Function: long fract __ssnegsq2 (long fract A)
1319 -- Runtime Function: long long fract __ssnegdq2 (long long fract A)
1320 -- Runtime Function: short accum __ssnegha2 (short accum A)
1321 -- Runtime Function: accum __ssnegsa2 (accum A)
1322 -- Runtime Function: long accum __ssnegda2 (long accum A)
1323 -- Runtime Function: long long accum __ssnegta2 (long long accum A)
1324 These functions return the negation of A with signed saturation.
1326 -- Runtime Function: unsigned short fract __usneguqq2 (unsigned short
1328 -- Runtime Function: unsigned fract __usneguhq2 (unsigned fract A)
1329 -- Runtime Function: unsigned long fract __usnegusq2 (unsigned long
1331 -- Runtime Function: unsigned long long fract __usnegudq2 (unsigned
1333 -- Runtime Function: unsigned short accum __usneguha2 (unsigned short
1335 -- Runtime Function: unsigned accum __usnegusa2 (unsigned accum A)
1336 -- Runtime Function: unsigned long accum __usneguda2 (unsigned long
1338 -- Runtime Function: unsigned long long accum __usneguta2 (unsigned
1340 These functions return the negation of A with unsigned saturation.
1342 -- Runtime Function: short fract __ashlqq3 (short fract A, int B)
1343 -- Runtime Function: fract __ashlhq3 (fract A, int B)
1344 -- Runtime Function: long fract __ashlsq3 (long fract A, int B)
1345 -- Runtime Function: long long fract __ashldq3 (long long fract A, int
1347 -- Runtime Function: unsigned short fract __ashluqq3 (unsigned short
1349 -- Runtime Function: unsigned fract __ashluhq3 (unsigned fract A, int
1351 -- Runtime Function: unsigned long fract __ashlusq3 (unsigned long
1353 -- Runtime Function: unsigned long long fract __ashludq3 (unsigned
1354 long long fract A, int B)
1355 -- Runtime Function: short accum __ashlha3 (short accum A, int B)
1356 -- Runtime Function: accum __ashlsa3 (accum A, int B)
1357 -- Runtime Function: long accum __ashlda3 (long accum A, int B)
1358 -- Runtime Function: long long accum __ashlta3 (long long accum A, int
1360 -- Runtime Function: unsigned short accum __ashluha3 (unsigned short
1362 -- Runtime Function: unsigned accum __ashlusa3 (unsigned accum A, int
1364 -- Runtime Function: unsigned long accum __ashluda3 (unsigned long
1366 -- Runtime Function: unsigned long long accum __ashluta3 (unsigned
1367 long long accum A, int B)
1368 These functions return the result of shifting A left by B bits.
1370 -- Runtime Function: short fract __ashrqq3 (short fract A, int B)
1371 -- Runtime Function: fract __ashrhq3 (fract A, int B)
1372 -- Runtime Function: long fract __ashrsq3 (long fract A, int B)
1373 -- Runtime Function: long long fract __ashrdq3 (long long fract A, int
1375 -- Runtime Function: short accum __ashrha3 (short accum A, int B)
1376 -- Runtime Function: accum __ashrsa3 (accum A, int B)
1377 -- Runtime Function: long accum __ashrda3 (long accum A, int B)
1378 -- Runtime Function: long long accum __ashrta3 (long long accum A, int
1380 These functions return the result of arithmetically shifting A
1383 -- Runtime Function: unsigned short fract __lshruqq3 (unsigned short
1385 -- Runtime Function: unsigned fract __lshruhq3 (unsigned fract A, int
1387 -- Runtime Function: unsigned long fract __lshrusq3 (unsigned long
1389 -- Runtime Function: unsigned long long fract __lshrudq3 (unsigned
1390 long long fract A, int B)
1391 -- Runtime Function: unsigned short accum __lshruha3 (unsigned short
1393 -- Runtime Function: unsigned accum __lshrusa3 (unsigned accum A, int
1395 -- Runtime Function: unsigned long accum __lshruda3 (unsigned long
1397 -- Runtime Function: unsigned long long accum __lshruta3 (unsigned
1398 long long accum A, int B)
1399 These functions return the result of logically shifting A right by
1402 -- Runtime Function: fract __ssashlhq3 (fract A, int B)
1403 -- Runtime Function: long fract __ssashlsq3 (long fract A, int B)
1404 -- Runtime Function: long long fract __ssashldq3 (long long fract A,
1406 -- Runtime Function: short accum __ssashlha3 (short accum A, int B)
1407 -- Runtime Function: accum __ssashlsa3 (accum A, int B)
1408 -- Runtime Function: long accum __ssashlda3 (long accum A, int B)
1409 -- Runtime Function: long long accum __ssashlta3 (long long accum A,
1411 These functions return the result of shifting A left by B bits
1412 with signed saturation.
1414 -- Runtime Function: unsigned short fract __usashluqq3 (unsigned short
1416 -- Runtime Function: unsigned fract __usashluhq3 (unsigned fract A,
1418 -- Runtime Function: unsigned long fract __usashlusq3 (unsigned long
1420 -- Runtime Function: unsigned long long fract __usashludq3 (unsigned
1421 long long fract A, int B)
1422 -- Runtime Function: unsigned short accum __usashluha3 (unsigned short
1424 -- Runtime Function: unsigned accum __usashlusa3 (unsigned accum A,
1426 -- Runtime Function: unsigned long accum __usashluda3 (unsigned long
1428 -- Runtime Function: unsigned long long accum __usashluta3 (unsigned
1429 long long accum A, int B)
1430 These functions return the result of shifting A left by B bits
1431 with unsigned saturation.
1433 4.4.2 Comparison functions
1434 --------------------------
1436 The following functions implement fixed-point comparisons. These
1437 functions implement a low-level compare, upon which the higher level
1438 comparison operators (such as less than and greater than or equal to)
1439 can be constructed. The returned values lie in the range zero to two,
1440 to allow the high-level operators to be implemented by testing the
1441 returned result using either signed or unsigned comparison.
1443 -- Runtime Function: int __cmpqq2 (short fract A, short fract B)
1444 -- Runtime Function: int __cmphq2 (fract A, fract B)
1445 -- Runtime Function: int __cmpsq2 (long fract A, long fract B)
1446 -- Runtime Function: int __cmpdq2 (long long fract A, long long fract
1448 -- Runtime Function: int __cmpuqq2 (unsigned short fract A, unsigned
1450 -- Runtime Function: int __cmpuhq2 (unsigned fract A, unsigned fract B)
1451 -- Runtime Function: int __cmpusq2 (unsigned long fract A, unsigned
1453 -- Runtime Function: int __cmpudq2 (unsigned long long fract A,
1454 unsigned long long fract B)
1455 -- Runtime Function: int __cmpha2 (short accum A, short accum B)
1456 -- Runtime Function: int __cmpsa2 (accum A, accum B)
1457 -- Runtime Function: int __cmpda2 (long accum A, long accum B)
1458 -- Runtime Function: int __cmpta2 (long long accum A, long long accum
1460 -- Runtime Function: int __cmpuha2 (unsigned short accum A, unsigned
1462 -- Runtime Function: int __cmpusa2 (unsigned accum A, unsigned accum B)
1463 -- Runtime Function: int __cmpuda2 (unsigned long accum A, unsigned
1465 -- Runtime Function: int __cmputa2 (unsigned long long accum A,
1466 unsigned long long accum B)
1467 These functions perform a signed or unsigned comparison of A and B
1468 (depending on the selected machine mode). If A is less than B,
1469 they return 0; if A is greater than B, they return 2; and if A and
1470 B are equal they return 1.
1472 4.4.3 Conversion functions
1473 --------------------------
1475 -- Runtime Function: fract __fractqqhq2 (short fract A)
1476 -- Runtime Function: long fract __fractqqsq2 (short fract A)
1477 -- Runtime Function: long long fract __fractqqdq2 (short fract A)
1478 -- Runtime Function: short accum __fractqqha (short fract A)
1479 -- Runtime Function: accum __fractqqsa (short fract A)
1480 -- Runtime Function: long accum __fractqqda (short fract A)
1481 -- Runtime Function: long long accum __fractqqta (short fract A)
1482 -- Runtime Function: unsigned short fract __fractqquqq (short fract A)
1483 -- Runtime Function: unsigned fract __fractqquhq (short fract A)
1484 -- Runtime Function: unsigned long fract __fractqqusq (short fract A)
1485 -- Runtime Function: unsigned long long fract __fractqqudq (short
1487 -- Runtime Function: unsigned short accum __fractqquha (short fract A)
1488 -- Runtime Function: unsigned accum __fractqqusa (short fract A)
1489 -- Runtime Function: unsigned long accum __fractqquda (short fract A)
1490 -- Runtime Function: unsigned long long accum __fractqquta (short
1492 -- Runtime Function: signed char __fractqqqi (short fract A)
1493 -- Runtime Function: short __fractqqhi (short fract A)
1494 -- Runtime Function: int __fractqqsi (short fract A)
1495 -- Runtime Function: long __fractqqdi (short fract A)
1496 -- Runtime Function: long long __fractqqti (short fract A)
1497 -- Runtime Function: float __fractqqsf (short fract A)
1498 -- Runtime Function: double __fractqqdf (short fract A)
1499 -- Runtime Function: short fract __fracthqqq2 (fract A)
1500 -- Runtime Function: long fract __fracthqsq2 (fract A)
1501 -- Runtime Function: long long fract __fracthqdq2 (fract A)
1502 -- Runtime Function: short accum __fracthqha (fract A)
1503 -- Runtime Function: accum __fracthqsa (fract A)
1504 -- Runtime Function: long accum __fracthqda (fract A)
1505 -- Runtime Function: long long accum __fracthqta (fract A)
1506 -- Runtime Function: unsigned short fract __fracthquqq (fract A)
1507 -- Runtime Function: unsigned fract __fracthquhq (fract A)
1508 -- Runtime Function: unsigned long fract __fracthqusq (fract A)
1509 -- Runtime Function: unsigned long long fract __fracthqudq (fract A)
1510 -- Runtime Function: unsigned short accum __fracthquha (fract A)
1511 -- Runtime Function: unsigned accum __fracthqusa (fract A)
1512 -- Runtime Function: unsigned long accum __fracthquda (fract A)
1513 -- Runtime Function: unsigned long long accum __fracthquta (fract A)
1514 -- Runtime Function: signed char __fracthqqi (fract A)
1515 -- Runtime Function: short __fracthqhi (fract A)
1516 -- Runtime Function: int __fracthqsi (fract A)
1517 -- Runtime Function: long __fracthqdi (fract A)
1518 -- Runtime Function: long long __fracthqti (fract A)
1519 -- Runtime Function: float __fracthqsf (fract A)
1520 -- Runtime Function: double __fracthqdf (fract A)
1521 -- Runtime Function: short fract __fractsqqq2 (long fract A)
1522 -- Runtime Function: fract __fractsqhq2 (long fract A)
1523 -- Runtime Function: long long fract __fractsqdq2 (long fract A)
1524 -- Runtime Function: short accum __fractsqha (long fract A)
1525 -- Runtime Function: accum __fractsqsa (long fract A)
1526 -- Runtime Function: long accum __fractsqda (long fract A)
1527 -- Runtime Function: long long accum __fractsqta (long fract A)
1528 -- Runtime Function: unsigned short fract __fractsquqq (long fract A)
1529 -- Runtime Function: unsigned fract __fractsquhq (long fract A)
1530 -- Runtime Function: unsigned long fract __fractsqusq (long fract A)
1531 -- Runtime Function: unsigned long long fract __fractsqudq (long fract
1533 -- Runtime Function: unsigned short accum __fractsquha (long fract A)
1534 -- Runtime Function: unsigned accum __fractsqusa (long fract A)
1535 -- Runtime Function: unsigned long accum __fractsquda (long fract A)
1536 -- Runtime Function: unsigned long long accum __fractsquta (long fract
1538 -- Runtime Function: signed char __fractsqqi (long fract A)
1539 -- Runtime Function: short __fractsqhi (long fract A)
1540 -- Runtime Function: int __fractsqsi (long fract A)
1541 -- Runtime Function: long __fractsqdi (long fract A)
1542 -- Runtime Function: long long __fractsqti (long fract A)
1543 -- Runtime Function: float __fractsqsf (long fract A)
1544 -- Runtime Function: double __fractsqdf (long fract A)
1545 -- Runtime Function: short fract __fractdqqq2 (long long fract A)
1546 -- Runtime Function: fract __fractdqhq2 (long long fract A)
1547 -- Runtime Function: long fract __fractdqsq2 (long long fract A)
1548 -- Runtime Function: short accum __fractdqha (long long fract A)
1549 -- Runtime Function: accum __fractdqsa (long long fract A)
1550 -- Runtime Function: long accum __fractdqda (long long fract A)
1551 -- Runtime Function: long long accum __fractdqta (long long fract A)
1552 -- Runtime Function: unsigned short fract __fractdquqq (long long
1554 -- Runtime Function: unsigned fract __fractdquhq (long long fract A)
1555 -- Runtime Function: unsigned long fract __fractdqusq (long long fract
1557 -- Runtime Function: unsigned long long fract __fractdqudq (long long
1559 -- Runtime Function: unsigned short accum __fractdquha (long long
1561 -- Runtime Function: unsigned accum __fractdqusa (long long fract A)
1562 -- Runtime Function: unsigned long accum __fractdquda (long long fract
1564 -- Runtime Function: unsigned long long accum __fractdquta (long long
1566 -- Runtime Function: signed char __fractdqqi (long long fract A)
1567 -- Runtime Function: short __fractdqhi (long long fract A)
1568 -- Runtime Function: int __fractdqsi (long long fract A)
1569 -- Runtime Function: long __fractdqdi (long long fract A)
1570 -- Runtime Function: long long __fractdqti (long long fract A)
1571 -- Runtime Function: float __fractdqsf (long long fract A)
1572 -- Runtime Function: double __fractdqdf (long long fract A)
1573 -- Runtime Function: short fract __fracthaqq (short accum A)
1574 -- Runtime Function: fract __fracthahq (short accum A)
1575 -- Runtime Function: long fract __fracthasq (short accum A)
1576 -- Runtime Function: long long fract __fracthadq (short accum A)
1577 -- Runtime Function: accum __fracthasa2 (short accum A)
1578 -- Runtime Function: long accum __fracthada2 (short accum A)
1579 -- Runtime Function: long long accum __fracthata2 (short accum A)
1580 -- Runtime Function: unsigned short fract __fracthauqq (short accum A)
1581 -- Runtime Function: unsigned fract __fracthauhq (short accum A)
1582 -- Runtime Function: unsigned long fract __fracthausq (short accum A)
1583 -- Runtime Function: unsigned long long fract __fracthaudq (short
1585 -- Runtime Function: unsigned short accum __fracthauha (short accum A)
1586 -- Runtime Function: unsigned accum __fracthausa (short accum A)
1587 -- Runtime Function: unsigned long accum __fracthauda (short accum A)
1588 -- Runtime Function: unsigned long long accum __fracthauta (short
1590 -- Runtime Function: signed char __fracthaqi (short accum A)
1591 -- Runtime Function: short __fracthahi (short accum A)
1592 -- Runtime Function: int __fracthasi (short accum A)
1593 -- Runtime Function: long __fracthadi (short accum A)
1594 -- Runtime Function: long long __fracthati (short accum A)
1595 -- Runtime Function: float __fracthasf (short accum A)
1596 -- Runtime Function: double __fracthadf (short accum A)
1597 -- Runtime Function: short fract __fractsaqq (accum A)
1598 -- Runtime Function: fract __fractsahq (accum A)
1599 -- Runtime Function: long fract __fractsasq (accum A)
1600 -- Runtime Function: long long fract __fractsadq (accum A)
1601 -- Runtime Function: short accum __fractsaha2 (accum A)
1602 -- Runtime Function: long accum __fractsada2 (accum A)
1603 -- Runtime Function: long long accum __fractsata2 (accum A)
1604 -- Runtime Function: unsigned short fract __fractsauqq (accum A)
1605 -- Runtime Function: unsigned fract __fractsauhq (accum A)
1606 -- Runtime Function: unsigned long fract __fractsausq (accum A)
1607 -- Runtime Function: unsigned long long fract __fractsaudq (accum A)
1608 -- Runtime Function: unsigned short accum __fractsauha (accum A)
1609 -- Runtime Function: unsigned accum __fractsausa (accum A)
1610 -- Runtime Function: unsigned long accum __fractsauda (accum A)
1611 -- Runtime Function: unsigned long long accum __fractsauta (accum A)
1612 -- Runtime Function: signed char __fractsaqi (accum A)
1613 -- Runtime Function: short __fractsahi (accum A)
1614 -- Runtime Function: int __fractsasi (accum A)
1615 -- Runtime Function: long __fractsadi (accum A)
1616 -- Runtime Function: long long __fractsati (accum A)
1617 -- Runtime Function: float __fractsasf (accum A)
1618 -- Runtime Function: double __fractsadf (accum A)
1619 -- Runtime Function: short fract __fractdaqq (long accum A)
1620 -- Runtime Function: fract __fractdahq (long accum A)
1621 -- Runtime Function: long fract __fractdasq (long accum A)
1622 -- Runtime Function: long long fract __fractdadq (long accum A)
1623 -- Runtime Function: short accum __fractdaha2 (long accum A)
1624 -- Runtime Function: accum __fractdasa2 (long accum A)
1625 -- Runtime Function: long long accum __fractdata2 (long accum A)
1626 -- Runtime Function: unsigned short fract __fractdauqq (long accum A)
1627 -- Runtime Function: unsigned fract __fractdauhq (long accum A)
1628 -- Runtime Function: unsigned long fract __fractdausq (long accum A)
1629 -- Runtime Function: unsigned long long fract __fractdaudq (long accum
1631 -- Runtime Function: unsigned short accum __fractdauha (long accum A)
1632 -- Runtime Function: unsigned accum __fractdausa (long accum A)
1633 -- Runtime Function: unsigned long accum __fractdauda (long accum A)
1634 -- Runtime Function: unsigned long long accum __fractdauta (long accum
1636 -- Runtime Function: signed char __fractdaqi (long accum A)
1637 -- Runtime Function: short __fractdahi (long accum A)
1638 -- Runtime Function: int __fractdasi (long accum A)
1639 -- Runtime Function: long __fractdadi (long accum A)
1640 -- Runtime Function: long long __fractdati (long accum A)
1641 -- Runtime Function: float __fractdasf (long accum A)
1642 -- Runtime Function: double __fractdadf (long accum A)
1643 -- Runtime Function: short fract __fracttaqq (long long accum A)
1644 -- Runtime Function: fract __fracttahq (long long accum A)
1645 -- Runtime Function: long fract __fracttasq (long long accum A)
1646 -- Runtime Function: long long fract __fracttadq (long long accum A)
1647 -- Runtime Function: short accum __fracttaha2 (long long accum A)
1648 -- Runtime Function: accum __fracttasa2 (long long accum A)
1649 -- Runtime Function: long accum __fracttada2 (long long accum A)
1650 -- Runtime Function: unsigned short fract __fracttauqq (long long
1652 -- Runtime Function: unsigned fract __fracttauhq (long long accum A)
1653 -- Runtime Function: unsigned long fract __fracttausq (long long accum
1655 -- Runtime Function: unsigned long long fract __fracttaudq (long long
1657 -- Runtime Function: unsigned short accum __fracttauha (long long
1659 -- Runtime Function: unsigned accum __fracttausa (long long accum A)
1660 -- Runtime Function: unsigned long accum __fracttauda (long long accum
1662 -- Runtime Function: unsigned long long accum __fracttauta (long long
1664 -- Runtime Function: signed char __fracttaqi (long long accum A)
1665 -- Runtime Function: short __fracttahi (long long accum A)
1666 -- Runtime Function: int __fracttasi (long long accum A)
1667 -- Runtime Function: long __fracttadi (long long accum A)
1668 -- Runtime Function: long long __fracttati (long long accum A)
1669 -- Runtime Function: float __fracttasf (long long accum A)
1670 -- Runtime Function: double __fracttadf (long long accum A)
1671 -- Runtime Function: short fract __fractuqqqq (unsigned short fract A)
1672 -- Runtime Function: fract __fractuqqhq (unsigned short fract A)
1673 -- Runtime Function: long fract __fractuqqsq (unsigned short fract A)
1674 -- Runtime Function: long long fract __fractuqqdq (unsigned short
1676 -- Runtime Function: short accum __fractuqqha (unsigned short fract A)
1677 -- Runtime Function: accum __fractuqqsa (unsigned short fract A)
1678 -- Runtime Function: long accum __fractuqqda (unsigned short fract A)
1679 -- Runtime Function: long long accum __fractuqqta (unsigned short
1681 -- Runtime Function: unsigned fract __fractuqquhq2 (unsigned short
1683 -- Runtime Function: unsigned long fract __fractuqqusq2 (unsigned
1685 -- Runtime Function: unsigned long long fract __fractuqqudq2 (unsigned
1687 -- Runtime Function: unsigned short accum __fractuqquha (unsigned
1689 -- Runtime Function: unsigned accum __fractuqqusa (unsigned short
1691 -- Runtime Function: unsigned long accum __fractuqquda (unsigned short
1693 -- Runtime Function: unsigned long long accum __fractuqquta (unsigned
1695 -- Runtime Function: signed char __fractuqqqi (unsigned short fract A)
1696 -- Runtime Function: short __fractuqqhi (unsigned short fract A)
1697 -- Runtime Function: int __fractuqqsi (unsigned short fract A)
1698 -- Runtime Function: long __fractuqqdi (unsigned short fract A)
1699 -- Runtime Function: long long __fractuqqti (unsigned short fract A)
1700 -- Runtime Function: float __fractuqqsf (unsigned short fract A)
1701 -- Runtime Function: double __fractuqqdf (unsigned short fract A)
1702 -- Runtime Function: short fract __fractuhqqq (unsigned fract A)
1703 -- Runtime Function: fract __fractuhqhq (unsigned fract A)
1704 -- Runtime Function: long fract __fractuhqsq (unsigned fract A)
1705 -- Runtime Function: long long fract __fractuhqdq (unsigned fract A)
1706 -- Runtime Function: short accum __fractuhqha (unsigned fract A)
1707 -- Runtime Function: accum __fractuhqsa (unsigned fract A)
1708 -- Runtime Function: long accum __fractuhqda (unsigned fract A)
1709 -- Runtime Function: long long accum __fractuhqta (unsigned fract A)
1710 -- Runtime Function: unsigned short fract __fractuhquqq2 (unsigned
1712 -- Runtime Function: unsigned long fract __fractuhqusq2 (unsigned
1714 -- Runtime Function: unsigned long long fract __fractuhqudq2 (unsigned
1716 -- Runtime Function: unsigned short accum __fractuhquha (unsigned
1718 -- Runtime Function: unsigned accum __fractuhqusa (unsigned fract A)
1719 -- Runtime Function: unsigned long accum __fractuhquda (unsigned fract
1721 -- Runtime Function: unsigned long long accum __fractuhquta (unsigned
1723 -- Runtime Function: signed char __fractuhqqi (unsigned fract A)
1724 -- Runtime Function: short __fractuhqhi (unsigned fract A)
1725 -- Runtime Function: int __fractuhqsi (unsigned fract A)
1726 -- Runtime Function: long __fractuhqdi (unsigned fract A)
1727 -- Runtime Function: long long __fractuhqti (unsigned fract A)
1728 -- Runtime Function: float __fractuhqsf (unsigned fract A)
1729 -- Runtime Function: double __fractuhqdf (unsigned fract A)
1730 -- Runtime Function: short fract __fractusqqq (unsigned long fract A)
1731 -- Runtime Function: fract __fractusqhq (unsigned long fract A)
1732 -- Runtime Function: long fract __fractusqsq (unsigned long fract A)
1733 -- Runtime Function: long long fract __fractusqdq (unsigned long fract
1735 -- Runtime Function: short accum __fractusqha (unsigned long fract A)
1736 -- Runtime Function: accum __fractusqsa (unsigned long fract A)
1737 -- Runtime Function: long accum __fractusqda (unsigned long fract A)
1738 -- Runtime Function: long long accum __fractusqta (unsigned long fract
1740 -- Runtime Function: unsigned short fract __fractusquqq2 (unsigned
1742 -- Runtime Function: unsigned fract __fractusquhq2 (unsigned long
1744 -- Runtime Function: unsigned long long fract __fractusqudq2 (unsigned
1746 -- Runtime Function: unsigned short accum __fractusquha (unsigned long
1748 -- Runtime Function: unsigned accum __fractusqusa (unsigned long fract
1750 -- Runtime Function: unsigned long accum __fractusquda (unsigned long
1752 -- Runtime Function: unsigned long long accum __fractusquta (unsigned
1754 -- Runtime Function: signed char __fractusqqi (unsigned long fract A)
1755 -- Runtime Function: short __fractusqhi (unsigned long fract A)
1756 -- Runtime Function: int __fractusqsi (unsigned long fract A)
1757 -- Runtime Function: long __fractusqdi (unsigned long fract A)
1758 -- Runtime Function: long long __fractusqti (unsigned long fract A)
1759 -- Runtime Function: float __fractusqsf (unsigned long fract A)
1760 -- Runtime Function: double __fractusqdf (unsigned long fract A)
1761 -- Runtime Function: short fract __fractudqqq (unsigned long long
1763 -- Runtime Function: fract __fractudqhq (unsigned long long fract A)
1764 -- Runtime Function: long fract __fractudqsq (unsigned long long fract
1766 -- Runtime Function: long long fract __fractudqdq (unsigned long long
1768 -- Runtime Function: short accum __fractudqha (unsigned long long
1770 -- Runtime Function: accum __fractudqsa (unsigned long long fract A)
1771 -- Runtime Function: long accum __fractudqda (unsigned long long fract
1773 -- Runtime Function: long long accum __fractudqta (unsigned long long
1775 -- Runtime Function: unsigned short fract __fractudquqq2 (unsigned
1777 -- Runtime Function: unsigned fract __fractudquhq2 (unsigned long long
1779 -- Runtime Function: unsigned long fract __fractudqusq2 (unsigned long
1781 -- Runtime Function: unsigned short accum __fractudquha (unsigned long
1783 -- Runtime Function: unsigned accum __fractudqusa (unsigned long long
1785 -- Runtime Function: unsigned long accum __fractudquda (unsigned long
1787 -- Runtime Function: unsigned long long accum __fractudquta (unsigned
1789 -- Runtime Function: signed char __fractudqqi (unsigned long long
1791 -- Runtime Function: short __fractudqhi (unsigned long long fract A)
1792 -- Runtime Function: int __fractudqsi (unsigned long long fract A)
1793 -- Runtime Function: long __fractudqdi (unsigned long long fract A)
1794 -- Runtime Function: long long __fractudqti (unsigned long long fract
1796 -- Runtime Function: float __fractudqsf (unsigned long long fract A)
1797 -- Runtime Function: double __fractudqdf (unsigned long long fract A)
1798 -- Runtime Function: short fract __fractuhaqq (unsigned short accum A)
1799 -- Runtime Function: fract __fractuhahq (unsigned short accum A)
1800 -- Runtime Function: long fract __fractuhasq (unsigned short accum A)
1801 -- Runtime Function: long long fract __fractuhadq (unsigned short
1803 -- Runtime Function: short accum __fractuhaha (unsigned short accum A)
1804 -- Runtime Function: accum __fractuhasa (unsigned short accum A)
1805 -- Runtime Function: long accum __fractuhada (unsigned short accum A)
1806 -- Runtime Function: long long accum __fractuhata (unsigned short
1808 -- Runtime Function: unsigned short fract __fractuhauqq (unsigned
1810 -- Runtime Function: unsigned fract __fractuhauhq (unsigned short
1812 -- Runtime Function: unsigned long fract __fractuhausq (unsigned short
1814 -- Runtime Function: unsigned long long fract __fractuhaudq (unsigned
1816 -- Runtime Function: unsigned accum __fractuhausa2 (unsigned short
1818 -- Runtime Function: unsigned long accum __fractuhauda2 (unsigned
1820 -- Runtime Function: unsigned long long accum __fractuhauta2 (unsigned
1822 -- Runtime Function: signed char __fractuhaqi (unsigned short accum A)
1823 -- Runtime Function: short __fractuhahi (unsigned short accum A)
1824 -- Runtime Function: int __fractuhasi (unsigned short accum A)
1825 -- Runtime Function: long __fractuhadi (unsigned short accum A)
1826 -- Runtime Function: long long __fractuhati (unsigned short accum A)
1827 -- Runtime Function: float __fractuhasf (unsigned short accum A)
1828 -- Runtime Function: double __fractuhadf (unsigned short accum A)
1829 -- Runtime Function: short fract __fractusaqq (unsigned accum A)
1830 -- Runtime Function: fract __fractusahq (unsigned accum A)
1831 -- Runtime Function: long fract __fractusasq (unsigned accum A)
1832 -- Runtime Function: long long fract __fractusadq (unsigned accum A)
1833 -- Runtime Function: short accum __fractusaha (unsigned accum A)
1834 -- Runtime Function: accum __fractusasa (unsigned accum A)
1835 -- Runtime Function: long accum __fractusada (unsigned accum A)
1836 -- Runtime Function: long long accum __fractusata (unsigned accum A)
1837 -- Runtime Function: unsigned short fract __fractusauqq (unsigned
1839 -- Runtime Function: unsigned fract __fractusauhq (unsigned accum A)
1840 -- Runtime Function: unsigned long fract __fractusausq (unsigned accum
1842 -- Runtime Function: unsigned long long fract __fractusaudq (unsigned
1844 -- Runtime Function: unsigned short accum __fractusauha2 (unsigned
1846 -- Runtime Function: unsigned long accum __fractusauda2 (unsigned
1848 -- Runtime Function: unsigned long long accum __fractusauta2 (unsigned
1850 -- Runtime Function: signed char __fractusaqi (unsigned accum A)
1851 -- Runtime Function: short __fractusahi (unsigned accum A)
1852 -- Runtime Function: int __fractusasi (unsigned accum A)
1853 -- Runtime Function: long __fractusadi (unsigned accum A)
1854 -- Runtime Function: long long __fractusati (unsigned accum A)
1855 -- Runtime Function: float __fractusasf (unsigned accum A)
1856 -- Runtime Function: double __fractusadf (unsigned accum A)
1857 -- Runtime Function: short fract __fractudaqq (unsigned long accum A)
1858 -- Runtime Function: fract __fractudahq (unsigned long accum A)
1859 -- Runtime Function: long fract __fractudasq (unsigned long accum A)
1860 -- Runtime Function: long long fract __fractudadq (unsigned long accum
1862 -- Runtime Function: short accum __fractudaha (unsigned long accum A)
1863 -- Runtime Function: accum __fractudasa (unsigned long accum A)
1864 -- Runtime Function: long accum __fractudada (unsigned long accum A)
1865 -- Runtime Function: long long accum __fractudata (unsigned long accum
1867 -- Runtime Function: unsigned short fract __fractudauqq (unsigned long
1869 -- Runtime Function: unsigned fract __fractudauhq (unsigned long accum
1871 -- Runtime Function: unsigned long fract __fractudausq (unsigned long
1873 -- Runtime Function: unsigned long long fract __fractudaudq (unsigned
1875 -- Runtime Function: unsigned short accum __fractudauha2 (unsigned
1877 -- Runtime Function: unsigned accum __fractudausa2 (unsigned long
1879 -- Runtime Function: unsigned long long accum __fractudauta2 (unsigned
1881 -- Runtime Function: signed char __fractudaqi (unsigned long accum A)
1882 -- Runtime Function: short __fractudahi (unsigned long accum A)
1883 -- Runtime Function: int __fractudasi (unsigned long accum A)
1884 -- Runtime Function: long __fractudadi (unsigned long accum A)
1885 -- Runtime Function: long long __fractudati (unsigned long accum A)
1886 -- Runtime Function: float __fractudasf (unsigned long accum A)
1887 -- Runtime Function: double __fractudadf (unsigned long accum A)
1888 -- Runtime Function: short fract __fractutaqq (unsigned long long
1890 -- Runtime Function: fract __fractutahq (unsigned long long accum A)
1891 -- Runtime Function: long fract __fractutasq (unsigned long long accum
1893 -- Runtime Function: long long fract __fractutadq (unsigned long long
1895 -- Runtime Function: short accum __fractutaha (unsigned long long
1897 -- Runtime Function: accum __fractutasa (unsigned long long accum A)
1898 -- Runtime Function: long accum __fractutada (unsigned long long accum
1900 -- Runtime Function: long long accum __fractutata (unsigned long long
1902 -- Runtime Function: unsigned short fract __fractutauqq (unsigned long
1904 -- Runtime Function: unsigned fract __fractutauhq (unsigned long long
1906 -- Runtime Function: unsigned long fract __fractutausq (unsigned long
1908 -- Runtime Function: unsigned long long fract __fractutaudq (unsigned
1910 -- Runtime Function: unsigned short accum __fractutauha2 (unsigned
1912 -- Runtime Function: unsigned accum __fractutausa2 (unsigned long long
1914 -- Runtime Function: unsigned long accum __fractutauda2 (unsigned long
1916 -- Runtime Function: signed char __fractutaqi (unsigned long long
1918 -- Runtime Function: short __fractutahi (unsigned long long accum A)
1919 -- Runtime Function: int __fractutasi (unsigned long long accum A)
1920 -- Runtime Function: long __fractutadi (unsigned long long accum A)
1921 -- Runtime Function: long long __fractutati (unsigned long long accum
1923 -- Runtime Function: float __fractutasf (unsigned long long accum A)
1924 -- Runtime Function: double __fractutadf (unsigned long long accum A)
1925 -- Runtime Function: short fract __fractqiqq (signed char A)
1926 -- Runtime Function: fract __fractqihq (signed char A)
1927 -- Runtime Function: long fract __fractqisq (signed char A)
1928 -- Runtime Function: long long fract __fractqidq (signed char A)
1929 -- Runtime Function: short accum __fractqiha (signed char A)
1930 -- Runtime Function: accum __fractqisa (signed char A)
1931 -- Runtime Function: long accum __fractqida (signed char A)
1932 -- Runtime Function: long long accum __fractqita (signed char A)
1933 -- Runtime Function: unsigned short fract __fractqiuqq (signed char A)
1934 -- Runtime Function: unsigned fract __fractqiuhq (signed char A)
1935 -- Runtime Function: unsigned long fract __fractqiusq (signed char A)
1936 -- Runtime Function: unsigned long long fract __fractqiudq (signed
1938 -- Runtime Function: unsigned short accum __fractqiuha (signed char A)
1939 -- Runtime Function: unsigned accum __fractqiusa (signed char A)
1940 -- Runtime Function: unsigned long accum __fractqiuda (signed char A)
1941 -- Runtime Function: unsigned long long accum __fractqiuta (signed
1943 -- Runtime Function: short fract __fracthiqq (short A)
1944 -- Runtime Function: fract __fracthihq (short A)
1945 -- Runtime Function: long fract __fracthisq (short A)
1946 -- Runtime Function: long long fract __fracthidq (short A)
1947 -- Runtime Function: short accum __fracthiha (short A)
1948 -- Runtime Function: accum __fracthisa (short A)
1949 -- Runtime Function: long accum __fracthida (short A)
1950 -- Runtime Function: long long accum __fracthita (short A)
1951 -- Runtime Function: unsigned short fract __fracthiuqq (short A)
1952 -- Runtime Function: unsigned fract __fracthiuhq (short A)
1953 -- Runtime Function: unsigned long fract __fracthiusq (short A)
1954 -- Runtime Function: unsigned long long fract __fracthiudq (short A)
1955 -- Runtime Function: unsigned short accum __fracthiuha (short A)
1956 -- Runtime Function: unsigned accum __fracthiusa (short A)
1957 -- Runtime Function: unsigned long accum __fracthiuda (short A)
1958 -- Runtime Function: unsigned long long accum __fracthiuta (short A)
1959 -- Runtime Function: short fract __fractsiqq (int A)
1960 -- Runtime Function: fract __fractsihq (int A)
1961 -- Runtime Function: long fract __fractsisq (int A)
1962 -- Runtime Function: long long fract __fractsidq (int A)
1963 -- Runtime Function: short accum __fractsiha (int A)
1964 -- Runtime Function: accum __fractsisa (int A)
1965 -- Runtime Function: long accum __fractsida (int A)
1966 -- Runtime Function: long long accum __fractsita (int A)
1967 -- Runtime Function: unsigned short fract __fractsiuqq (int A)
1968 -- Runtime Function: unsigned fract __fractsiuhq (int A)
1969 -- Runtime Function: unsigned long fract __fractsiusq (int A)
1970 -- Runtime Function: unsigned long long fract __fractsiudq (int A)
1971 -- Runtime Function: unsigned short accum __fractsiuha (int A)
1972 -- Runtime Function: unsigned accum __fractsiusa (int A)
1973 -- Runtime Function: unsigned long accum __fractsiuda (int A)
1974 -- Runtime Function: unsigned long long accum __fractsiuta (int A)
1975 -- Runtime Function: short fract __fractdiqq (long A)
1976 -- Runtime Function: fract __fractdihq (long A)
1977 -- Runtime Function: long fract __fractdisq (long A)
1978 -- Runtime Function: long long fract __fractdidq (long A)
1979 -- Runtime Function: short accum __fractdiha (long A)
1980 -- Runtime Function: accum __fractdisa (long A)
1981 -- Runtime Function: long accum __fractdida (long A)
1982 -- Runtime Function: long long accum __fractdita (long A)
1983 -- Runtime Function: unsigned short fract __fractdiuqq (long A)
1984 -- Runtime Function: unsigned fract __fractdiuhq (long A)
1985 -- Runtime Function: unsigned long fract __fractdiusq (long A)
1986 -- Runtime Function: unsigned long long fract __fractdiudq (long A)
1987 -- Runtime Function: unsigned short accum __fractdiuha (long A)
1988 -- Runtime Function: unsigned accum __fractdiusa (long A)
1989 -- Runtime Function: unsigned long accum __fractdiuda (long A)
1990 -- Runtime Function: unsigned long long accum __fractdiuta (long A)
1991 -- Runtime Function: short fract __fracttiqq (long long A)
1992 -- Runtime Function: fract __fracttihq (long long A)
1993 -- Runtime Function: long fract __fracttisq (long long A)
1994 -- Runtime Function: long long fract __fracttidq (long long A)
1995 -- Runtime Function: short accum __fracttiha (long long A)
1996 -- Runtime Function: accum __fracttisa (long long A)
1997 -- Runtime Function: long accum __fracttida (long long A)
1998 -- Runtime Function: long long accum __fracttita (long long A)
1999 -- Runtime Function: unsigned short fract __fracttiuqq (long long A)
2000 -- Runtime Function: unsigned fract __fracttiuhq (long long A)
2001 -- Runtime Function: unsigned long fract __fracttiusq (long long A)
2002 -- Runtime Function: unsigned long long fract __fracttiudq (long long
2004 -- Runtime Function: unsigned short accum __fracttiuha (long long A)
2005 -- Runtime Function: unsigned accum __fracttiusa (long long A)
2006 -- Runtime Function: unsigned long accum __fracttiuda (long long A)
2007 -- Runtime Function: unsigned long long accum __fracttiuta (long long
2009 -- Runtime Function: short fract __fractsfqq (float A)
2010 -- Runtime Function: fract __fractsfhq (float A)
2011 -- Runtime Function: long fract __fractsfsq (float A)
2012 -- Runtime Function: long long fract __fractsfdq (float A)
2013 -- Runtime Function: short accum __fractsfha (float A)
2014 -- Runtime Function: accum __fractsfsa (float A)
2015 -- Runtime Function: long accum __fractsfda (float A)
2016 -- Runtime Function: long long accum __fractsfta (float A)
2017 -- Runtime Function: unsigned short fract __fractsfuqq (float A)
2018 -- Runtime Function: unsigned fract __fractsfuhq (float A)
2019 -- Runtime Function: unsigned long fract __fractsfusq (float A)
2020 -- Runtime Function: unsigned long long fract __fractsfudq (float A)
2021 -- Runtime Function: unsigned short accum __fractsfuha (float A)
2022 -- Runtime Function: unsigned accum __fractsfusa (float A)
2023 -- Runtime Function: unsigned long accum __fractsfuda (float A)
2024 -- Runtime Function: unsigned long long accum __fractsfuta (float A)
2025 -- Runtime Function: short fract __fractdfqq (double A)
2026 -- Runtime Function: fract __fractdfhq (double A)
2027 -- Runtime Function: long fract __fractdfsq (double A)
2028 -- Runtime Function: long long fract __fractdfdq (double A)
2029 -- Runtime Function: short accum __fractdfha (double A)
2030 -- Runtime Function: accum __fractdfsa (double A)
2031 -- Runtime Function: long accum __fractdfda (double A)
2032 -- Runtime Function: long long accum __fractdfta (double A)
2033 -- Runtime Function: unsigned short fract __fractdfuqq (double A)
2034 -- Runtime Function: unsigned fract __fractdfuhq (double A)
2035 -- Runtime Function: unsigned long fract __fractdfusq (double A)
2036 -- Runtime Function: unsigned long long fract __fractdfudq (double A)
2037 -- Runtime Function: unsigned short accum __fractdfuha (double A)
2038 -- Runtime Function: unsigned accum __fractdfusa (double A)
2039 -- Runtime Function: unsigned long accum __fractdfuda (double A)
2040 -- Runtime Function: unsigned long long accum __fractdfuta (double A)
2041 These functions convert from fractional and signed non-fractionals
2042 to fractionals and signed non-fractionals, without saturation.
2044 -- Runtime Function: fract __satfractqqhq2 (short fract A)
2045 -- Runtime Function: long fract __satfractqqsq2 (short fract A)
2046 -- Runtime Function: long long fract __satfractqqdq2 (short fract A)
2047 -- Runtime Function: short accum __satfractqqha (short fract A)
2048 -- Runtime Function: accum __satfractqqsa (short fract A)
2049 -- Runtime Function: long accum __satfractqqda (short fract A)
2050 -- Runtime Function: long long accum __satfractqqta (short fract A)
2051 -- Runtime Function: unsigned short fract __satfractqquqq (short fract
2053 -- Runtime Function: unsigned fract __satfractqquhq (short fract A)
2054 -- Runtime Function: unsigned long fract __satfractqqusq (short fract
2056 -- Runtime Function: unsigned long long fract __satfractqqudq (short
2058 -- Runtime Function: unsigned short accum __satfractqquha (short fract
2060 -- Runtime Function: unsigned accum __satfractqqusa (short fract A)
2061 -- Runtime Function: unsigned long accum __satfractqquda (short fract
2063 -- Runtime Function: unsigned long long accum __satfractqquta (short
2065 -- Runtime Function: short fract __satfracthqqq2 (fract A)
2066 -- Runtime Function: long fract __satfracthqsq2 (fract A)
2067 -- Runtime Function: long long fract __satfracthqdq2 (fract A)
2068 -- Runtime Function: short accum __satfracthqha (fract A)
2069 -- Runtime Function: accum __satfracthqsa (fract A)
2070 -- Runtime Function: long accum __satfracthqda (fract A)
2071 -- Runtime Function: long long accum __satfracthqta (fract A)
2072 -- Runtime Function: unsigned short fract __satfracthquqq (fract A)
2073 -- Runtime Function: unsigned fract __satfracthquhq (fract A)
2074 -- Runtime Function: unsigned long fract __satfracthqusq (fract A)
2075 -- Runtime Function: unsigned long long fract __satfracthqudq (fract A)
2076 -- Runtime Function: unsigned short accum __satfracthquha (fract A)
2077 -- Runtime Function: unsigned accum __satfracthqusa (fract A)
2078 -- Runtime Function: unsigned long accum __satfracthquda (fract A)
2079 -- Runtime Function: unsigned long long accum __satfracthquta (fract A)
2080 -- Runtime Function: short fract __satfractsqqq2 (long fract A)
2081 -- Runtime Function: fract __satfractsqhq2 (long fract A)
2082 -- Runtime Function: long long fract __satfractsqdq2 (long fract A)
2083 -- Runtime Function: short accum __satfractsqha (long fract A)
2084 -- Runtime Function: accum __satfractsqsa (long fract A)
2085 -- Runtime Function: long accum __satfractsqda (long fract A)
2086 -- Runtime Function: long long accum __satfractsqta (long fract A)
2087 -- Runtime Function: unsigned short fract __satfractsquqq (long fract
2089 -- Runtime Function: unsigned fract __satfractsquhq (long fract A)
2090 -- Runtime Function: unsigned long fract __satfractsqusq (long fract A)
2091 -- Runtime Function: unsigned long long fract __satfractsqudq (long
2093 -- Runtime Function: unsigned short accum __satfractsquha (long fract
2095 -- Runtime Function: unsigned accum __satfractsqusa (long fract A)
2096 -- Runtime Function: unsigned long accum __satfractsquda (long fract A)
2097 -- Runtime Function: unsigned long long accum __satfractsquta (long
2099 -- Runtime Function: short fract __satfractdqqq2 (long long fract A)
2100 -- Runtime Function: fract __satfractdqhq2 (long long fract A)
2101 -- Runtime Function: long fract __satfractdqsq2 (long long fract A)
2102 -- Runtime Function: short accum __satfractdqha (long long fract A)
2103 -- Runtime Function: accum __satfractdqsa (long long fract A)
2104 -- Runtime Function: long accum __satfractdqda (long long fract A)
2105 -- Runtime Function: long long accum __satfractdqta (long long fract A)
2106 -- Runtime Function: unsigned short fract __satfractdquqq (long long
2108 -- Runtime Function: unsigned fract __satfractdquhq (long long fract A)
2109 -- Runtime Function: unsigned long fract __satfractdqusq (long long
2111 -- Runtime Function: unsigned long long fract __satfractdqudq (long
2113 -- Runtime Function: unsigned short accum __satfractdquha (long long
2115 -- Runtime Function: unsigned accum __satfractdqusa (long long fract A)
2116 -- Runtime Function: unsigned long accum __satfractdquda (long long
2118 -- Runtime Function: unsigned long long accum __satfractdquta (long
2120 -- Runtime Function: short fract __satfracthaqq (short accum A)
2121 -- Runtime Function: fract __satfracthahq (short accum A)
2122 -- Runtime Function: long fract __satfracthasq (short accum A)
2123 -- Runtime Function: long long fract __satfracthadq (short accum A)
2124 -- Runtime Function: accum __satfracthasa2 (short accum A)
2125 -- Runtime Function: long accum __satfracthada2 (short accum A)
2126 -- Runtime Function: long long accum __satfracthata2 (short accum A)
2127 -- Runtime Function: unsigned short fract __satfracthauqq (short accum
2129 -- Runtime Function: unsigned fract __satfracthauhq (short accum A)
2130 -- Runtime Function: unsigned long fract __satfracthausq (short accum
2132 -- Runtime Function: unsigned long long fract __satfracthaudq (short
2134 -- Runtime Function: unsigned short accum __satfracthauha (short accum
2136 -- Runtime Function: unsigned accum __satfracthausa (short accum A)
2137 -- Runtime Function: unsigned long accum __satfracthauda (short accum
2139 -- Runtime Function: unsigned long long accum __satfracthauta (short
2141 -- Runtime Function: short fract __satfractsaqq (accum A)
2142 -- Runtime Function: fract __satfractsahq (accum A)
2143 -- Runtime Function: long fract __satfractsasq (accum A)
2144 -- Runtime Function: long long fract __satfractsadq (accum A)
2145 -- Runtime Function: short accum __satfractsaha2 (accum A)
2146 -- Runtime Function: long accum __satfractsada2 (accum A)
2147 -- Runtime Function: long long accum __satfractsata2 (accum A)
2148 -- Runtime Function: unsigned short fract __satfractsauqq (accum A)
2149 -- Runtime Function: unsigned fract __satfractsauhq (accum A)
2150 -- Runtime Function: unsigned long fract __satfractsausq (accum A)
2151 -- Runtime Function: unsigned long long fract __satfractsaudq (accum A)
2152 -- Runtime Function: unsigned short accum __satfractsauha (accum A)
2153 -- Runtime Function: unsigned accum __satfractsausa (accum A)
2154 -- Runtime Function: unsigned long accum __satfractsauda (accum A)
2155 -- Runtime Function: unsigned long long accum __satfractsauta (accum A)
2156 -- Runtime Function: short fract __satfractdaqq (long accum A)
2157 -- Runtime Function: fract __satfractdahq (long accum A)
2158 -- Runtime Function: long fract __satfractdasq (long accum A)
2159 -- Runtime Function: long long fract __satfractdadq (long accum A)
2160 -- Runtime Function: short accum __satfractdaha2 (long accum A)
2161 -- Runtime Function: accum __satfractdasa2 (long accum A)
2162 -- Runtime Function: long long accum __satfractdata2 (long accum A)
2163 -- Runtime Function: unsigned short fract __satfractdauqq (long accum
2165 -- Runtime Function: unsigned fract __satfractdauhq (long accum A)
2166 -- Runtime Function: unsigned long fract __satfractdausq (long accum A)
2167 -- Runtime Function: unsigned long long fract __satfractdaudq (long
2169 -- Runtime Function: unsigned short accum __satfractdauha (long accum
2171 -- Runtime Function: unsigned accum __satfractdausa (long accum A)
2172 -- Runtime Function: unsigned long accum __satfractdauda (long accum A)
2173 -- Runtime Function: unsigned long long accum __satfractdauta (long
2175 -- Runtime Function: short fract __satfracttaqq (long long accum A)
2176 -- Runtime Function: fract __satfracttahq (long long accum A)
2177 -- Runtime Function: long fract __satfracttasq (long long accum A)
2178 -- Runtime Function: long long fract __satfracttadq (long long accum A)
2179 -- Runtime Function: short accum __satfracttaha2 (long long accum A)
2180 -- Runtime Function: accum __satfracttasa2 (long long accum A)
2181 -- Runtime Function: long accum __satfracttada2 (long long accum A)
2182 -- Runtime Function: unsigned short fract __satfracttauqq (long long
2184 -- Runtime Function: unsigned fract __satfracttauhq (long long accum A)
2185 -- Runtime Function: unsigned long fract __satfracttausq (long long
2187 -- Runtime Function: unsigned long long fract __satfracttaudq (long
2189 -- Runtime Function: unsigned short accum __satfracttauha (long long
2191 -- Runtime Function: unsigned accum __satfracttausa (long long accum A)
2192 -- Runtime Function: unsigned long accum __satfracttauda (long long
2194 -- Runtime Function: unsigned long long accum __satfracttauta (long
2196 -- Runtime Function: short fract __satfractuqqqq (unsigned short fract
2198 -- Runtime Function: fract __satfractuqqhq (unsigned short fract A)
2199 -- Runtime Function: long fract __satfractuqqsq (unsigned short fract
2201 -- Runtime Function: long long fract __satfractuqqdq (unsigned short
2203 -- Runtime Function: short accum __satfractuqqha (unsigned short fract
2205 -- Runtime Function: accum __satfractuqqsa (unsigned short fract A)
2206 -- Runtime Function: long accum __satfractuqqda (unsigned short fract
2208 -- Runtime Function: long long accum __satfractuqqta (unsigned short
2210 -- Runtime Function: unsigned fract __satfractuqquhq2 (unsigned short
2212 -- Runtime Function: unsigned long fract __satfractuqqusq2 (unsigned
2214 -- Runtime Function: unsigned long long fract __satfractuqqudq2
2215 (unsigned short fract A)
2216 -- Runtime Function: unsigned short accum __satfractuqquha (unsigned
2218 -- Runtime Function: unsigned accum __satfractuqqusa (unsigned short
2220 -- Runtime Function: unsigned long accum __satfractuqquda (unsigned
2222 -- Runtime Function: unsigned long long accum __satfractuqquta
2223 (unsigned short fract A)
2224 -- Runtime Function: short fract __satfractuhqqq (unsigned fract A)
2225 -- Runtime Function: fract __satfractuhqhq (unsigned fract A)
2226 -- Runtime Function: long fract __satfractuhqsq (unsigned fract A)
2227 -- Runtime Function: long long fract __satfractuhqdq (unsigned fract A)
2228 -- Runtime Function: short accum __satfractuhqha (unsigned fract A)
2229 -- Runtime Function: accum __satfractuhqsa (unsigned fract A)
2230 -- Runtime Function: long accum __satfractuhqda (unsigned fract A)
2231 -- Runtime Function: long long accum __satfractuhqta (unsigned fract A)
2232 -- Runtime Function: unsigned short fract __satfractuhquqq2 (unsigned
2234 -- Runtime Function: unsigned long fract __satfractuhqusq2 (unsigned
2236 -- Runtime Function: unsigned long long fract __satfractuhqudq2
2238 -- Runtime Function: unsigned short accum __satfractuhquha (unsigned
2240 -- Runtime Function: unsigned accum __satfractuhqusa (unsigned fract A)
2241 -- Runtime Function: unsigned long accum __satfractuhquda (unsigned
2243 -- Runtime Function: unsigned long long accum __satfractuhquta
2245 -- Runtime Function: short fract __satfractusqqq (unsigned long fract
2247 -- Runtime Function: fract __satfractusqhq (unsigned long fract A)
2248 -- Runtime Function: long fract __satfractusqsq (unsigned long fract A)
2249 -- Runtime Function: long long fract __satfractusqdq (unsigned long
2251 -- Runtime Function: short accum __satfractusqha (unsigned long fract
2253 -- Runtime Function: accum __satfractusqsa (unsigned long fract A)
2254 -- Runtime Function: long accum __satfractusqda (unsigned long fract A)
2255 -- Runtime Function: long long accum __satfractusqta (unsigned long
2257 -- Runtime Function: unsigned short fract __satfractusquqq2 (unsigned
2259 -- Runtime Function: unsigned fract __satfractusquhq2 (unsigned long
2261 -- Runtime Function: unsigned long long fract __satfractusqudq2
2262 (unsigned long fract A)
2263 -- Runtime Function: unsigned short accum __satfractusquha (unsigned
2265 -- Runtime Function: unsigned accum __satfractusqusa (unsigned long
2267 -- Runtime Function: unsigned long accum __satfractusquda (unsigned
2269 -- Runtime Function: unsigned long long accum __satfractusquta
2270 (unsigned long fract A)
2271 -- Runtime Function: short fract __satfractudqqq (unsigned long long
2273 -- Runtime Function: fract __satfractudqhq (unsigned long long fract A)
2274 -- Runtime Function: long fract __satfractudqsq (unsigned long long
2276 -- Runtime Function: long long fract __satfractudqdq (unsigned long
2278 -- Runtime Function: short accum __satfractudqha (unsigned long long
2280 -- Runtime Function: accum __satfractudqsa (unsigned long long fract A)
2281 -- Runtime Function: long accum __satfractudqda (unsigned long long
2283 -- Runtime Function: long long accum __satfractudqta (unsigned long
2285 -- Runtime Function: unsigned short fract __satfractudquqq2 (unsigned
2287 -- Runtime Function: unsigned fract __satfractudquhq2 (unsigned long
2289 -- Runtime Function: unsigned long fract __satfractudqusq2 (unsigned
2291 -- Runtime Function: unsigned short accum __satfractudquha (unsigned
2293 -- Runtime Function: unsigned accum __satfractudqusa (unsigned long
2295 -- Runtime Function: unsigned long accum __satfractudquda (unsigned
2297 -- Runtime Function: unsigned long long accum __satfractudquta
2298 (unsigned long long fract A)
2299 -- Runtime Function: short fract __satfractuhaqq (unsigned short accum
2301 -- Runtime Function: fract __satfractuhahq (unsigned short accum A)
2302 -- Runtime Function: long fract __satfractuhasq (unsigned short accum
2304 -- Runtime Function: long long fract __satfractuhadq (unsigned short
2306 -- Runtime Function: short accum __satfractuhaha (unsigned short accum
2308 -- Runtime Function: accum __satfractuhasa (unsigned short accum A)
2309 -- Runtime Function: long accum __satfractuhada (unsigned short accum
2311 -- Runtime Function: long long accum __satfractuhata (unsigned short
2313 -- Runtime Function: unsigned short fract __satfractuhauqq (unsigned
2315 -- Runtime Function: unsigned fract __satfractuhauhq (unsigned short
2317 -- Runtime Function: unsigned long fract __satfractuhausq (unsigned
2319 -- Runtime Function: unsigned long long fract __satfractuhaudq
2320 (unsigned short accum A)
2321 -- Runtime Function: unsigned accum __satfractuhausa2 (unsigned short
2323 -- Runtime Function: unsigned long accum __satfractuhauda2 (unsigned
2325 -- Runtime Function: unsigned long long accum __satfractuhauta2
2326 (unsigned short accum A)
2327 -- Runtime Function: short fract __satfractusaqq (unsigned accum A)
2328 -- Runtime Function: fract __satfractusahq (unsigned accum A)
2329 -- Runtime Function: long fract __satfractusasq (unsigned accum A)
2330 -- Runtime Function: long long fract __satfractusadq (unsigned accum A)
2331 -- Runtime Function: short accum __satfractusaha (unsigned accum A)
2332 -- Runtime Function: accum __satfractusasa (unsigned accum A)
2333 -- Runtime Function: long accum __satfractusada (unsigned accum A)
2334 -- Runtime Function: long long accum __satfractusata (unsigned accum A)
2335 -- Runtime Function: unsigned short fract __satfractusauqq (unsigned
2337 -- Runtime Function: unsigned fract __satfractusauhq (unsigned accum A)
2338 -- Runtime Function: unsigned long fract __satfractusausq (unsigned
2340 -- Runtime Function: unsigned long long fract __satfractusaudq
2342 -- Runtime Function: unsigned short accum __satfractusauha2 (unsigned
2344 -- Runtime Function: unsigned long accum __satfractusauda2 (unsigned
2346 -- Runtime Function: unsigned long long accum __satfractusauta2
2348 -- Runtime Function: short fract __satfractudaqq (unsigned long accum
2350 -- Runtime Function: fract __satfractudahq (unsigned long accum A)
2351 -- Runtime Function: long fract __satfractudasq (unsigned long accum A)
2352 -- Runtime Function: long long fract __satfractudadq (unsigned long
2354 -- Runtime Function: short accum __satfractudaha (unsigned long accum
2356 -- Runtime Function: accum __satfractudasa (unsigned long accum A)
2357 -- Runtime Function: long accum __satfractudada (unsigned long accum A)
2358 -- Runtime Function: long long accum __satfractudata (unsigned long
2360 -- Runtime Function: unsigned short fract __satfractudauqq (unsigned
2362 -- Runtime Function: unsigned fract __satfractudauhq (unsigned long
2364 -- Runtime Function: unsigned long fract __satfractudausq (unsigned
2366 -- Runtime Function: unsigned long long fract __satfractudaudq
2367 (unsigned long accum A)
2368 -- Runtime Function: unsigned short accum __satfractudauha2 (unsigned
2370 -- Runtime Function: unsigned accum __satfractudausa2 (unsigned long
2372 -- Runtime Function: unsigned long long accum __satfractudauta2
2373 (unsigned long accum A)
2374 -- Runtime Function: short fract __satfractutaqq (unsigned long long
2376 -- Runtime Function: fract __satfractutahq (unsigned long long accum A)
2377 -- Runtime Function: long fract __satfractutasq (unsigned long long
2379 -- Runtime Function: long long fract __satfractutadq (unsigned long
2381 -- Runtime Function: short accum __satfractutaha (unsigned long long
2383 -- Runtime Function: accum __satfractutasa (unsigned long long accum A)
2384 -- Runtime Function: long accum __satfractutada (unsigned long long
2386 -- Runtime Function: long long accum __satfractutata (unsigned long
2388 -- Runtime Function: unsigned short fract __satfractutauqq (unsigned
2390 -- Runtime Function: unsigned fract __satfractutauhq (unsigned long
2392 -- Runtime Function: unsigned long fract __satfractutausq (unsigned
2394 -- Runtime Function: unsigned long long fract __satfractutaudq
2395 (unsigned long long accum A)
2396 -- Runtime Function: unsigned short accum __satfractutauha2 (unsigned
2398 -- Runtime Function: unsigned accum __satfractutausa2 (unsigned long
2400 -- Runtime Function: unsigned long accum __satfractutauda2 (unsigned
2402 -- Runtime Function: short fract __satfractqiqq (signed char A)
2403 -- Runtime Function: fract __satfractqihq (signed char A)
2404 -- Runtime Function: long fract __satfractqisq (signed char A)
2405 -- Runtime Function: long long fract __satfractqidq (signed char A)
2406 -- Runtime Function: short accum __satfractqiha (signed char A)
2407 -- Runtime Function: accum __satfractqisa (signed char A)
2408 -- Runtime Function: long accum __satfractqida (signed char A)
2409 -- Runtime Function: long long accum __satfractqita (signed char A)
2410 -- Runtime Function: unsigned short fract __satfractqiuqq (signed char
2412 -- Runtime Function: unsigned fract __satfractqiuhq (signed char A)
2413 -- Runtime Function: unsigned long fract __satfractqiusq (signed char
2415 -- Runtime Function: unsigned long long fract __satfractqiudq (signed
2417 -- Runtime Function: unsigned short accum __satfractqiuha (signed char
2419 -- Runtime Function: unsigned accum __satfractqiusa (signed char A)
2420 -- Runtime Function: unsigned long accum __satfractqiuda (signed char
2422 -- Runtime Function: unsigned long long accum __satfractqiuta (signed
2424 -- Runtime Function: short fract __satfracthiqq (short A)
2425 -- Runtime Function: fract __satfracthihq (short A)
2426 -- Runtime Function: long fract __satfracthisq (short A)
2427 -- Runtime Function: long long fract __satfracthidq (short A)
2428 -- Runtime Function: short accum __satfracthiha (short A)
2429 -- Runtime Function: accum __satfracthisa (short A)
2430 -- Runtime Function: long accum __satfracthida (short A)
2431 -- Runtime Function: long long accum __satfracthita (short A)
2432 -- Runtime Function: unsigned short fract __satfracthiuqq (short A)
2433 -- Runtime Function: unsigned fract __satfracthiuhq (short A)
2434 -- Runtime Function: unsigned long fract __satfracthiusq (short A)
2435 -- Runtime Function: unsigned long long fract __satfracthiudq (short A)
2436 -- Runtime Function: unsigned short accum __satfracthiuha (short A)
2437 -- Runtime Function: unsigned accum __satfracthiusa (short A)
2438 -- Runtime Function: unsigned long accum __satfracthiuda (short A)
2439 -- Runtime Function: unsigned long long accum __satfracthiuta (short A)
2440 -- Runtime Function: short fract __satfractsiqq (int A)
2441 -- Runtime Function: fract __satfractsihq (int A)
2442 -- Runtime Function: long fract __satfractsisq (int A)
2443 -- Runtime Function: long long fract __satfractsidq (int A)
2444 -- Runtime Function: short accum __satfractsiha (int A)
2445 -- Runtime Function: accum __satfractsisa (int A)
2446 -- Runtime Function: long accum __satfractsida (int A)
2447 -- Runtime Function: long long accum __satfractsita (int A)
2448 -- Runtime Function: unsigned short fract __satfractsiuqq (int A)
2449 -- Runtime Function: unsigned fract __satfractsiuhq (int A)
2450 -- Runtime Function: unsigned long fract __satfractsiusq (int A)
2451 -- Runtime Function: unsigned long long fract __satfractsiudq (int A)
2452 -- Runtime Function: unsigned short accum __satfractsiuha (int A)
2453 -- Runtime Function: unsigned accum __satfractsiusa (int A)
2454 -- Runtime Function: unsigned long accum __satfractsiuda (int A)
2455 -- Runtime Function: unsigned long long accum __satfractsiuta (int A)
2456 -- Runtime Function: short fract __satfractdiqq (long A)
2457 -- Runtime Function: fract __satfractdihq (long A)
2458 -- Runtime Function: long fract __satfractdisq (long A)
2459 -- Runtime Function: long long fract __satfractdidq (long A)
2460 -- Runtime Function: short accum __satfractdiha (long A)
2461 -- Runtime Function: accum __satfractdisa (long A)
2462 -- Runtime Function: long accum __satfractdida (long A)
2463 -- Runtime Function: long long accum __satfractdita (long A)
2464 -- Runtime Function: unsigned short fract __satfractdiuqq (long A)
2465 -- Runtime Function: unsigned fract __satfractdiuhq (long A)
2466 -- Runtime Function: unsigned long fract __satfractdiusq (long A)
2467 -- Runtime Function: unsigned long long fract __satfractdiudq (long A)
2468 -- Runtime Function: unsigned short accum __satfractdiuha (long A)
2469 -- Runtime Function: unsigned accum __satfractdiusa (long A)
2470 -- Runtime Function: unsigned long accum __satfractdiuda (long A)
2471 -- Runtime Function: unsigned long long accum __satfractdiuta (long A)
2472 -- Runtime Function: short fract __satfracttiqq (long long A)
2473 -- Runtime Function: fract __satfracttihq (long long A)
2474 -- Runtime Function: long fract __satfracttisq (long long A)
2475 -- Runtime Function: long long fract __satfracttidq (long long A)
2476 -- Runtime Function: short accum __satfracttiha (long long A)
2477 -- Runtime Function: accum __satfracttisa (long long A)
2478 -- Runtime Function: long accum __satfracttida (long long A)
2479 -- Runtime Function: long long accum __satfracttita (long long A)
2480 -- Runtime Function: unsigned short fract __satfracttiuqq (long long A)
2481 -- Runtime Function: unsigned fract __satfracttiuhq (long long A)
2482 -- Runtime Function: unsigned long fract __satfracttiusq (long long A)
2483 -- Runtime Function: unsigned long long fract __satfracttiudq (long
2485 -- Runtime Function: unsigned short accum __satfracttiuha (long long A)
2486 -- Runtime Function: unsigned accum __satfracttiusa (long long A)
2487 -- Runtime Function: unsigned long accum __satfracttiuda (long long A)
2488 -- Runtime Function: unsigned long long accum __satfracttiuta (long
2490 -- Runtime Function: short fract __satfractsfqq (float A)
2491 -- Runtime Function: fract __satfractsfhq (float A)
2492 -- Runtime Function: long fract __satfractsfsq (float A)
2493 -- Runtime Function: long long fract __satfractsfdq (float A)
2494 -- Runtime Function: short accum __satfractsfha (float A)
2495 -- Runtime Function: accum __satfractsfsa (float A)
2496 -- Runtime Function: long accum __satfractsfda (float A)
2497 -- Runtime Function: long long accum __satfractsfta (float A)
2498 -- Runtime Function: unsigned short fract __satfractsfuqq (float A)
2499 -- Runtime Function: unsigned fract __satfractsfuhq (float A)
2500 -- Runtime Function: unsigned long fract __satfractsfusq (float A)
2501 -- Runtime Function: unsigned long long fract __satfractsfudq (float A)
2502 -- Runtime Function: unsigned short accum __satfractsfuha (float A)
2503 -- Runtime Function: unsigned accum __satfractsfusa (float A)
2504 -- Runtime Function: unsigned long accum __satfractsfuda (float A)
2505 -- Runtime Function: unsigned long long accum __satfractsfuta (float A)
2506 -- Runtime Function: short fract __satfractdfqq (double A)
2507 -- Runtime Function: fract __satfractdfhq (double A)
2508 -- Runtime Function: long fract __satfractdfsq (double A)
2509 -- Runtime Function: long long fract __satfractdfdq (double A)
2510 -- Runtime Function: short accum __satfractdfha (double A)
2511 -- Runtime Function: accum __satfractdfsa (double A)
2512 -- Runtime Function: long accum __satfractdfda (double A)
2513 -- Runtime Function: long long accum __satfractdfta (double A)
2514 -- Runtime Function: unsigned short fract __satfractdfuqq (double A)
2515 -- Runtime Function: unsigned fract __satfractdfuhq (double A)
2516 -- Runtime Function: unsigned long fract __satfractdfusq (double A)
2517 -- Runtime Function: unsigned long long fract __satfractdfudq (double
2519 -- Runtime Function: unsigned short accum __satfractdfuha (double A)
2520 -- Runtime Function: unsigned accum __satfractdfusa (double A)
2521 -- Runtime Function: unsigned long accum __satfractdfuda (double A)
2522 -- Runtime Function: unsigned long long accum __satfractdfuta (double
2524 The functions convert from fractional and signed non-fractionals to
2525 fractionals, with saturation.
2527 -- Runtime Function: unsigned char __fractunsqqqi (short fract A)
2528 -- Runtime Function: unsigned short __fractunsqqhi (short fract A)
2529 -- Runtime Function: unsigned int __fractunsqqsi (short fract A)
2530 -- Runtime Function: unsigned long __fractunsqqdi (short fract A)
2531 -- Runtime Function: unsigned long long __fractunsqqti (short fract A)
2532 -- Runtime Function: unsigned char __fractunshqqi (fract A)
2533 -- Runtime Function: unsigned short __fractunshqhi (fract A)
2534 -- Runtime Function: unsigned int __fractunshqsi (fract A)
2535 -- Runtime Function: unsigned long __fractunshqdi (fract A)
2536 -- Runtime Function: unsigned long long __fractunshqti (fract A)
2537 -- Runtime Function: unsigned char __fractunssqqi (long fract A)
2538 -- Runtime Function: unsigned short __fractunssqhi (long fract A)
2539 -- Runtime Function: unsigned int __fractunssqsi (long fract A)
2540 -- Runtime Function: unsigned long __fractunssqdi (long fract A)
2541 -- Runtime Function: unsigned long long __fractunssqti (long fract A)
2542 -- Runtime Function: unsigned char __fractunsdqqi (long long fract A)
2543 -- Runtime Function: unsigned short __fractunsdqhi (long long fract A)
2544 -- Runtime Function: unsigned int __fractunsdqsi (long long fract A)
2545 -- Runtime Function: unsigned long __fractunsdqdi (long long fract A)
2546 -- Runtime Function: unsigned long long __fractunsdqti (long long
2548 -- Runtime Function: unsigned char __fractunshaqi (short accum A)
2549 -- Runtime Function: unsigned short __fractunshahi (short accum A)
2550 -- Runtime Function: unsigned int __fractunshasi (short accum A)
2551 -- Runtime Function: unsigned long __fractunshadi (short accum A)
2552 -- Runtime Function: unsigned long long __fractunshati (short accum A)
2553 -- Runtime Function: unsigned char __fractunssaqi (accum A)
2554 -- Runtime Function: unsigned short __fractunssahi (accum A)
2555 -- Runtime Function: unsigned int __fractunssasi (accum A)
2556 -- Runtime Function: unsigned long __fractunssadi (accum A)
2557 -- Runtime Function: unsigned long long __fractunssati (accum A)
2558 -- Runtime Function: unsigned char __fractunsdaqi (long accum A)
2559 -- Runtime Function: unsigned short __fractunsdahi (long accum A)
2560 -- Runtime Function: unsigned int __fractunsdasi (long accum A)
2561 -- Runtime Function: unsigned long __fractunsdadi (long accum A)
2562 -- Runtime Function: unsigned long long __fractunsdati (long accum A)
2563 -- Runtime Function: unsigned char __fractunstaqi (long long accum A)
2564 -- Runtime Function: unsigned short __fractunstahi (long long accum A)
2565 -- Runtime Function: unsigned int __fractunstasi (long long accum A)
2566 -- Runtime Function: unsigned long __fractunstadi (long long accum A)
2567 -- Runtime Function: unsigned long long __fractunstati (long long
2569 -- Runtime Function: unsigned char __fractunsuqqqi (unsigned short
2571 -- Runtime Function: unsigned short __fractunsuqqhi (unsigned short
2573 -- Runtime Function: unsigned int __fractunsuqqsi (unsigned short
2575 -- Runtime Function: unsigned long __fractunsuqqdi (unsigned short
2577 -- Runtime Function: unsigned long long __fractunsuqqti (unsigned
2579 -- Runtime Function: unsigned char __fractunsuhqqi (unsigned fract A)
2580 -- Runtime Function: unsigned short __fractunsuhqhi (unsigned fract A)
2581 -- Runtime Function: unsigned int __fractunsuhqsi (unsigned fract A)
2582 -- Runtime Function: unsigned long __fractunsuhqdi (unsigned fract A)
2583 -- Runtime Function: unsigned long long __fractunsuhqti (unsigned
2585 -- Runtime Function: unsigned char __fractunsusqqi (unsigned long
2587 -- Runtime Function: unsigned short __fractunsusqhi (unsigned long
2589 -- Runtime Function: unsigned int __fractunsusqsi (unsigned long fract
2591 -- Runtime Function: unsigned long __fractunsusqdi (unsigned long
2593 -- Runtime Function: unsigned long long __fractunsusqti (unsigned long
2595 -- Runtime Function: unsigned char __fractunsudqqi (unsigned long long
2597 -- Runtime Function: unsigned short __fractunsudqhi (unsigned long
2599 -- Runtime Function: unsigned int __fractunsudqsi (unsigned long long
2601 -- Runtime Function: unsigned long __fractunsudqdi (unsigned long long
2603 -- Runtime Function: unsigned long long __fractunsudqti (unsigned long
2605 -- Runtime Function: unsigned char __fractunsuhaqi (unsigned short
2607 -- Runtime Function: unsigned short __fractunsuhahi (unsigned short
2609 -- Runtime Function: unsigned int __fractunsuhasi (unsigned short
2611 -- Runtime Function: unsigned long __fractunsuhadi (unsigned short
2613 -- Runtime Function: unsigned long long __fractunsuhati (unsigned
2615 -- Runtime Function: unsigned char __fractunsusaqi (unsigned accum A)
2616 -- Runtime Function: unsigned short __fractunsusahi (unsigned accum A)
2617 -- Runtime Function: unsigned int __fractunsusasi (unsigned accum A)
2618 -- Runtime Function: unsigned long __fractunsusadi (unsigned accum A)
2619 -- Runtime Function: unsigned long long __fractunsusati (unsigned
2621 -- Runtime Function: unsigned char __fractunsudaqi (unsigned long
2623 -- Runtime Function: unsigned short __fractunsudahi (unsigned long
2625 -- Runtime Function: unsigned int __fractunsudasi (unsigned long accum
2627 -- Runtime Function: unsigned long __fractunsudadi (unsigned long
2629 -- Runtime Function: unsigned long long __fractunsudati (unsigned long
2631 -- Runtime Function: unsigned char __fractunsutaqi (unsigned long long
2633 -- Runtime Function: unsigned short __fractunsutahi (unsigned long
2635 -- Runtime Function: unsigned int __fractunsutasi (unsigned long long
2637 -- Runtime Function: unsigned long __fractunsutadi (unsigned long long
2639 -- Runtime Function: unsigned long long __fractunsutati (unsigned long
2641 -- Runtime Function: short fract __fractunsqiqq (unsigned char A)
2642 -- Runtime Function: fract __fractunsqihq (unsigned char A)
2643 -- Runtime Function: long fract __fractunsqisq (unsigned char A)
2644 -- Runtime Function: long long fract __fractunsqidq (unsigned char A)
2645 -- Runtime Function: short accum __fractunsqiha (unsigned char A)
2646 -- Runtime Function: accum __fractunsqisa (unsigned char A)
2647 -- Runtime Function: long accum __fractunsqida (unsigned char A)
2648 -- Runtime Function: long long accum __fractunsqita (unsigned char A)
2649 -- Runtime Function: unsigned short fract __fractunsqiuqq (unsigned
2651 -- Runtime Function: unsigned fract __fractunsqiuhq (unsigned char A)
2652 -- Runtime Function: unsigned long fract __fractunsqiusq (unsigned
2654 -- Runtime Function: unsigned long long fract __fractunsqiudq
2656 -- Runtime Function: unsigned short accum __fractunsqiuha (unsigned
2658 -- Runtime Function: unsigned accum __fractunsqiusa (unsigned char A)
2659 -- Runtime Function: unsigned long accum __fractunsqiuda (unsigned
2661 -- Runtime Function: unsigned long long accum __fractunsqiuta
2663 -- Runtime Function: short fract __fractunshiqq (unsigned short A)
2664 -- Runtime Function: fract __fractunshihq (unsigned short A)
2665 -- Runtime Function: long fract __fractunshisq (unsigned short A)
2666 -- Runtime Function: long long fract __fractunshidq (unsigned short A)
2667 -- Runtime Function: short accum __fractunshiha (unsigned short A)
2668 -- Runtime Function: accum __fractunshisa (unsigned short A)
2669 -- Runtime Function: long accum __fractunshida (unsigned short A)
2670 -- Runtime Function: long long accum __fractunshita (unsigned short A)
2671 -- Runtime Function: unsigned short fract __fractunshiuqq (unsigned
2673 -- Runtime Function: unsigned fract __fractunshiuhq (unsigned short A)
2674 -- Runtime Function: unsigned long fract __fractunshiusq (unsigned
2676 -- Runtime Function: unsigned long long fract __fractunshiudq
2678 -- Runtime Function: unsigned short accum __fractunshiuha (unsigned
2680 -- Runtime Function: unsigned accum __fractunshiusa (unsigned short A)
2681 -- Runtime Function: unsigned long accum __fractunshiuda (unsigned
2683 -- Runtime Function: unsigned long long accum __fractunshiuta
2685 -- Runtime Function: short fract __fractunssiqq (unsigned int A)
2686 -- Runtime Function: fract __fractunssihq (unsigned int A)
2687 -- Runtime Function: long fract __fractunssisq (unsigned int A)
2688 -- Runtime Function: long long fract __fractunssidq (unsigned int A)
2689 -- Runtime Function: short accum __fractunssiha (unsigned int A)
2690 -- Runtime Function: accum __fractunssisa (unsigned int A)
2691 -- Runtime Function: long accum __fractunssida (unsigned int A)
2692 -- Runtime Function: long long accum __fractunssita (unsigned int A)
2693 -- Runtime Function: unsigned short fract __fractunssiuqq (unsigned
2695 -- Runtime Function: unsigned fract __fractunssiuhq (unsigned int A)
2696 -- Runtime Function: unsigned long fract __fractunssiusq (unsigned int
2698 -- Runtime Function: unsigned long long fract __fractunssiudq
2700 -- Runtime Function: unsigned short accum __fractunssiuha (unsigned
2702 -- Runtime Function: unsigned accum __fractunssiusa (unsigned int A)
2703 -- Runtime Function: unsigned long accum __fractunssiuda (unsigned int
2705 -- Runtime Function: unsigned long long accum __fractunssiuta
2707 -- Runtime Function: short fract __fractunsdiqq (unsigned long A)
2708 -- Runtime Function: fract __fractunsdihq (unsigned long A)
2709 -- Runtime Function: long fract __fractunsdisq (unsigned long A)
2710 -- Runtime Function: long long fract __fractunsdidq (unsigned long A)
2711 -- Runtime Function: short accum __fractunsdiha (unsigned long A)
2712 -- Runtime Function: accum __fractunsdisa (unsigned long A)
2713 -- Runtime Function: long accum __fractunsdida (unsigned long A)
2714 -- Runtime Function: long long accum __fractunsdita (unsigned long A)
2715 -- Runtime Function: unsigned short fract __fractunsdiuqq (unsigned
2717 -- Runtime Function: unsigned fract __fractunsdiuhq (unsigned long A)
2718 -- Runtime Function: unsigned long fract __fractunsdiusq (unsigned
2720 -- Runtime Function: unsigned long long fract __fractunsdiudq
2722 -- Runtime Function: unsigned short accum __fractunsdiuha (unsigned
2724 -- Runtime Function: unsigned accum __fractunsdiusa (unsigned long A)
2725 -- Runtime Function: unsigned long accum __fractunsdiuda (unsigned
2727 -- Runtime Function: unsigned long long accum __fractunsdiuta
2729 -- Runtime Function: short fract __fractunstiqq (unsigned long long A)
2730 -- Runtime Function: fract __fractunstihq (unsigned long long A)
2731 -- Runtime Function: long fract __fractunstisq (unsigned long long A)
2732 -- Runtime Function: long long fract __fractunstidq (unsigned long
2734 -- Runtime Function: short accum __fractunstiha (unsigned long long A)
2735 -- Runtime Function: accum __fractunstisa (unsigned long long A)
2736 -- Runtime Function: long accum __fractunstida (unsigned long long A)
2737 -- Runtime Function: long long accum __fractunstita (unsigned long
2739 -- Runtime Function: unsigned short fract __fractunstiuqq (unsigned
2741 -- Runtime Function: unsigned fract __fractunstiuhq (unsigned long
2743 -- Runtime Function: unsigned long fract __fractunstiusq (unsigned
2745 -- Runtime Function: unsigned long long fract __fractunstiudq
2746 (unsigned long long A)
2747 -- Runtime Function: unsigned short accum __fractunstiuha (unsigned
2749 -- Runtime Function: unsigned accum __fractunstiusa (unsigned long
2751 -- Runtime Function: unsigned long accum __fractunstiuda (unsigned
2753 -- Runtime Function: unsigned long long accum __fractunstiuta
2754 (unsigned long long A)
2755 These functions convert from fractionals to unsigned
2756 non-fractionals; and from unsigned non-fractionals to fractionals,
2759 -- Runtime Function: short fract __satfractunsqiqq (unsigned char A)
2760 -- Runtime Function: fract __satfractunsqihq (unsigned char A)
2761 -- Runtime Function: long fract __satfractunsqisq (unsigned char A)
2762 -- Runtime Function: long long fract __satfractunsqidq (unsigned char
2764 -- Runtime Function: short accum __satfractunsqiha (unsigned char A)
2765 -- Runtime Function: accum __satfractunsqisa (unsigned char A)
2766 -- Runtime Function: long accum __satfractunsqida (unsigned char A)
2767 -- Runtime Function: long long accum __satfractunsqita (unsigned char
2769 -- Runtime Function: unsigned short fract __satfractunsqiuqq (unsigned
2771 -- Runtime Function: unsigned fract __satfractunsqiuhq (unsigned char
2773 -- Runtime Function: unsigned long fract __satfractunsqiusq (unsigned
2775 -- Runtime Function: unsigned long long fract __satfractunsqiudq
2777 -- Runtime Function: unsigned short accum __satfractunsqiuha (unsigned
2779 -- Runtime Function: unsigned accum __satfractunsqiusa (unsigned char
2781 -- Runtime Function: unsigned long accum __satfractunsqiuda (unsigned
2783 -- Runtime Function: unsigned long long accum __satfractunsqiuta
2785 -- Runtime Function: short fract __satfractunshiqq (unsigned short A)
2786 -- Runtime Function: fract __satfractunshihq (unsigned short A)
2787 -- Runtime Function: long fract __satfractunshisq (unsigned short A)
2788 -- Runtime Function: long long fract __satfractunshidq (unsigned short
2790 -- Runtime Function: short accum __satfractunshiha (unsigned short A)
2791 -- Runtime Function: accum __satfractunshisa (unsigned short A)
2792 -- Runtime Function: long accum __satfractunshida (unsigned short A)
2793 -- Runtime Function: long long accum __satfractunshita (unsigned short
2795 -- Runtime Function: unsigned short fract __satfractunshiuqq (unsigned
2797 -- Runtime Function: unsigned fract __satfractunshiuhq (unsigned short
2799 -- Runtime Function: unsigned long fract __satfractunshiusq (unsigned
2801 -- Runtime Function: unsigned long long fract __satfractunshiudq
2803 -- Runtime Function: unsigned short accum __satfractunshiuha (unsigned
2805 -- Runtime Function: unsigned accum __satfractunshiusa (unsigned short
2807 -- Runtime Function: unsigned long accum __satfractunshiuda (unsigned
2809 -- Runtime Function: unsigned long long accum __satfractunshiuta
2811 -- Runtime Function: short fract __satfractunssiqq (unsigned int A)
2812 -- Runtime Function: fract __satfractunssihq (unsigned int A)
2813 -- Runtime Function: long fract __satfractunssisq (unsigned int A)
2814 -- Runtime Function: long long fract __satfractunssidq (unsigned int A)
2815 -- Runtime Function: short accum __satfractunssiha (unsigned int A)
2816 -- Runtime Function: accum __satfractunssisa (unsigned int A)
2817 -- Runtime Function: long accum __satfractunssida (unsigned int A)
2818 -- Runtime Function: long long accum __satfractunssita (unsigned int A)
2819 -- Runtime Function: unsigned short fract __satfractunssiuqq (unsigned
2821 -- Runtime Function: unsigned fract __satfractunssiuhq (unsigned int A)
2822 -- Runtime Function: unsigned long fract __satfractunssiusq (unsigned
2824 -- Runtime Function: unsigned long long fract __satfractunssiudq
2826 -- Runtime Function: unsigned short accum __satfractunssiuha (unsigned
2828 -- Runtime Function: unsigned accum __satfractunssiusa (unsigned int A)
2829 -- Runtime Function: unsigned long accum __satfractunssiuda (unsigned
2831 -- Runtime Function: unsigned long long accum __satfractunssiuta
2833 -- Runtime Function: short fract __satfractunsdiqq (unsigned long A)
2834 -- Runtime Function: fract __satfractunsdihq (unsigned long A)
2835 -- Runtime Function: long fract __satfractunsdisq (unsigned long A)
2836 -- Runtime Function: long long fract __satfractunsdidq (unsigned long
2838 -- Runtime Function: short accum __satfractunsdiha (unsigned long A)
2839 -- Runtime Function: accum __satfractunsdisa (unsigned long A)
2840 -- Runtime Function: long accum __satfractunsdida (unsigned long A)
2841 -- Runtime Function: long long accum __satfractunsdita (unsigned long
2843 -- Runtime Function: unsigned short fract __satfractunsdiuqq (unsigned
2845 -- Runtime Function: unsigned fract __satfractunsdiuhq (unsigned long
2847 -- Runtime Function: unsigned long fract __satfractunsdiusq (unsigned
2849 -- Runtime Function: unsigned long long fract __satfractunsdiudq
2851 -- Runtime Function: unsigned short accum __satfractunsdiuha (unsigned
2853 -- Runtime Function: unsigned accum __satfractunsdiusa (unsigned long
2855 -- Runtime Function: unsigned long accum __satfractunsdiuda (unsigned
2857 -- Runtime Function: unsigned long long accum __satfractunsdiuta
2859 -- Runtime Function: short fract __satfractunstiqq (unsigned long long
2861 -- Runtime Function: fract __satfractunstihq (unsigned long long A)
2862 -- Runtime Function: long fract __satfractunstisq (unsigned long long
2864 -- Runtime Function: long long fract __satfractunstidq (unsigned long
2866 -- Runtime Function: short accum __satfractunstiha (unsigned long long
2868 -- Runtime Function: accum __satfractunstisa (unsigned long long A)
2869 -- Runtime Function: long accum __satfractunstida (unsigned long long
2871 -- Runtime Function: long long accum __satfractunstita (unsigned long
2873 -- Runtime Function: unsigned short fract __satfractunstiuqq (unsigned
2875 -- Runtime Function: unsigned fract __satfractunstiuhq (unsigned long
2877 -- Runtime Function: unsigned long fract __satfractunstiusq (unsigned
2879 -- Runtime Function: unsigned long long fract __satfractunstiudq
2880 (unsigned long long A)
2881 -- Runtime Function: unsigned short accum __satfractunstiuha (unsigned
2883 -- Runtime Function: unsigned accum __satfractunstiusa (unsigned long
2885 -- Runtime Function: unsigned long accum __satfractunstiuda (unsigned
2887 -- Runtime Function: unsigned long long accum __satfractunstiuta
2888 (unsigned long long A)
2889 These functions convert from unsigned non-fractionals to
2890 fractionals, with saturation.
2893 File: gccint.info, Node: Exception handling routines, Next: Miscellaneous routines, Prev: Fixed-point fractional library routines, Up: Libgcc
2895 4.5 Language-independent routines for exception handling
2896 ========================================================
2900 _Unwind_DeleteException
2902 _Unwind_ForcedUnwind
2905 _Unwind_GetLanguageSpecificData
2906 _Unwind_GetRegionStart
2907 _Unwind_GetTextRelBase
2908 _Unwind_GetDataRelBase
2909 _Unwind_RaiseException
2913 _Unwind_FindEnclosingFunction
2914 _Unwind_SjLj_Register
2915 _Unwind_SjLj_Unregister
2916 _Unwind_SjLj_RaiseException
2917 _Unwind_SjLj_ForcedUnwind
2920 __deregister_frame_info
2921 __deregister_frame_info_bases
2923 __register_frame_info
2924 __register_frame_info_bases
2925 __register_frame_info_table
2926 __register_frame_info_table_bases
2927 __register_frame_table
2930 File: gccint.info, Node: Miscellaneous routines, Prev: Exception handling routines, Up: Libgcc
2932 4.6 Miscellaneous runtime library routines
2933 ==========================================
2935 4.6.1 Cache control functions
2936 -----------------------------
2938 -- Runtime Function: void __clear_cache (char *BEG, char *END)
2939 This function clears the instruction cache between BEG and END.
2942 File: gccint.info, Node: Languages, Next: Source Tree, Prev: Libgcc, Up: Top
2944 5 Language Front Ends in GCC
2945 ****************************
2947 The interface to front ends for languages in GCC, and in particular the
2948 `tree' structure (*note Trees::), was initially designed for C, and
2949 many aspects of it are still somewhat biased towards C and C-like
2950 languages. It is, however, reasonably well suited to other procedural
2951 languages, and front ends for many such languages have been written for
2954 Writing a compiler as a front end for GCC, rather than compiling
2955 directly to assembler or generating C code which is then compiled by
2956 GCC, has several advantages:
2958 * GCC front ends benefit from the support for many different target
2959 machines already present in GCC.
2961 * GCC front ends benefit from all the optimizations in GCC. Some of
2962 these, such as alias analysis, may work better when GCC is
2963 compiling directly from source code then when it is compiling from
2966 * Better debugging information is generated when compiling directly
2967 from source code than when going via intermediate generated C code.
2969 Because of the advantages of writing a compiler as a GCC front end,
2970 GCC front ends have also been created for languages very different from
2971 those for which GCC was designed, such as the declarative
2972 logic/functional language Mercury. For these reasons, it may also be
2973 useful to implement compilers created for specialized purposes (for
2974 example, as part of a research project) as GCC front ends.
2977 File: gccint.info, Node: Source Tree, Next: Options, Prev: Languages, Up: Top
2979 6 Source Tree Structure and Build System
2980 ****************************************
2982 This chapter describes the structure of the GCC source tree, and how
2983 GCC is built. The user documentation for building and installing GCC
2984 is in a separate manual (`http://gcc.gnu.org/install/'), with which it
2985 is presumed that you are familiar.
2989 * Configure Terms:: Configuration terminology and history.
2990 * Top Level:: The top level source directory.
2991 * gcc Directory:: The `gcc' subdirectory.
2992 * Testsuites:: The GCC testsuites.
2995 File: gccint.info, Node: Configure Terms, Next: Top Level, Up: Source Tree
2997 6.1 Configure Terms and History
2998 ===============================
3000 The configure and build process has a long and colorful history, and can
3001 be confusing to anyone who doesn't know why things are the way they are.
3002 While there are other documents which describe the configuration process
3003 in detail, here are a few things that everyone working on GCC should
3006 There are three system names that the build knows about: the machine
3007 you are building on ("build"), the machine that you are building for
3008 ("host"), and the machine that GCC will produce code for ("target").
3009 When you configure GCC, you specify these with `--build=', `--host=',
3012 Specifying the host without specifying the build should be avoided, as
3013 `configure' may (and once did) assume that the host you specify is also
3014 the build, which may not be true.
3016 If build, host, and target are all the same, this is called a
3017 "native". If build and host are the same but target is different, this
3018 is called a "cross". If build, host, and target are all different this
3019 is called a "canadian" (for obscure reasons dealing with Canada's
3020 political party and the background of the person working on the build
3021 at that time). If host and target are the same, but build is
3022 different, you are using a cross-compiler to build a native for a
3023 different system. Some people call this a "host-x-host", "crossed
3024 native", or "cross-built native". If build and target are the same,
3025 but host is different, you are using a cross compiler to build a cross
3026 compiler that produces code for the machine you're building on. This
3027 is rare, so there is no common way of describing it. There is a
3028 proposal to call this a "crossback".
3030 If build and host are the same, the GCC you are building will also be
3031 used to build the target libraries (like `libstdc++'). If build and
3032 host are different, you must have already built and installed a cross
3033 compiler that will be used to build the target libraries (if you
3034 configured with `--target=foo-bar', this compiler will be called
3037 In the case of target libraries, the machine you're building for is the
3038 machine you specified with `--target'. So, build is the machine you're
3039 building on (no change there), host is the machine you're building for
3040 (the target libraries are built for the target, so host is the target
3041 you specified), and target doesn't apply (because you're not building a
3042 compiler, you're building libraries). The configure/make process will
3043 adjust these variables as needed. It also sets `$with_cross_host' to
3044 the original `--host' value in case you need it.
3046 The `libiberty' support library is built up to three times: once for
3047 the host, once for the target (even if they are the same), and once for
3048 the build if build and host are different. This allows it to be used
3049 by all programs which are generated in the course of the build process.
3052 File: gccint.info, Node: Top Level, Next: gcc Directory, Prev: Configure Terms, Up: Source Tree
3054 6.2 Top Level Source Directory
3055 ==============================
3057 The top level source directory in a GCC distribution contains several
3058 files and directories that are shared with other software distributions
3059 such as that of GNU Binutils. It also contains several subdirectories
3060 that contain parts of GCC and its runtime libraries:
3063 The Boehm conservative garbage collector, used as part of the Java
3067 Contributed scripts that may be found useful in conjunction with
3068 GCC. One of these, `contrib/texi2pod.pl', is used to generate man
3069 pages from Texinfo manuals as part of the GCC build process.
3072 An implementation of the `jar' command, used with the Java front
3076 The support for fixing system headers to work with GCC. See
3077 `fixincludes/README' for more information. The headers fixed by
3078 this mechanism are installed in `LIBSUBDIR/include-fixed'. Along
3079 with those headers, `README-fixinc' is also installed, as
3080 `LIBSUBDIR/include-fixed/README'.
3083 The main sources of GCC itself (except for runtime libraries),
3084 including optimizers, support for different target architectures,
3085 language front ends, and testsuites. *Note The `gcc'
3086 Subdirectory: gcc Directory, for details.
3089 Headers for the `libiberty' library.
3092 GNU `libintl', from GNU `gettext', for systems which do not
3096 The Ada runtime library.
3099 The C preprocessor library.
3102 The Fortran runtime library.
3105 The `libffi' library, used as part of the Java runtime library.
3108 The `libiberty' library, used for portability and for some
3109 generally useful data structures and algorithms. *Note
3110 Introduction: (libiberty)Top, for more information about this
3114 The Java runtime library.
3117 The `libmudflap' library, used for instrumenting pointer and array
3118 dereferencing operations.
3121 The Objective-C and Objective-C++ runtime library.
3124 The C++ runtime library.
3126 `maintainer-scripts'
3127 Scripts used by the `gccadmin' account on `gcc.gnu.org'.
3130 The `zlib' compression library, used by the Java front end and as
3131 part of the Java runtime library.
3133 The build system in the top level directory, including how recursion
3134 into subdirectories works and how building runtime libraries for
3135 multilibs is handled, is documented in a separate manual, included with
3136 GNU Binutils. *Note GNU configure and build system: (configure)Top,
3140 File: gccint.info, Node: gcc Directory, Next: Testsuites, Prev: Top Level, Up: Source Tree
3142 6.3 The `gcc' Subdirectory
3143 ==========================
3145 The `gcc' directory contains many files that are part of the C sources
3146 of GCC, other files used as part of the configuration and build
3147 process, and subdirectories including documentation and a testsuite.
3148 The files that are sources of GCC are documented in a separate chapter.
3149 *Note Passes and Files of the Compiler: Passes.
3153 * Subdirectories:: Subdirectories of `gcc'.
3154 * Configuration:: The configuration process, and the files it uses.
3155 * Build:: The build system in the `gcc' directory.
3156 * Makefile:: Targets in `gcc/Makefile'.
3157 * Library Files:: Library source files and headers under `gcc/'.
3158 * Headers:: Headers installed by GCC.
3159 * Documentation:: Building documentation in GCC.
3160 * Front End:: Anatomy of a language front end.
3161 * Back End:: Anatomy of a target back end.
3164 File: gccint.info, Node: Subdirectories, Next: Configuration, Up: gcc Directory
3166 6.3.1 Subdirectories of `gcc'
3167 -----------------------------
3169 The `gcc' directory contains the following subdirectories:
3172 Subdirectories for various languages. Directories containing a
3173 file `config-lang.in' are language subdirectories. The contents of
3174 the subdirectories `cp' (for C++), `objc' (for Objective-C) and
3175 `objcp' (for Objective-C++) are documented in this manual (*note
3176 Passes and Files of the Compiler: Passes.); those for other
3177 languages are not. *Note Anatomy of a Language Front End: Front
3178 End, for details of the files in these directories.
3181 Configuration files for supported architectures and operating
3182 systems. *Note Anatomy of a Target Back End: Back End, for
3183 details of the files in this directory.
3186 Texinfo documentation for GCC, together with automatically
3187 generated man pages and support for converting the installation
3188 manual to HTML. *Note Documentation::.
3191 System headers installed by GCC, mainly those required by the C
3192 standard of freestanding implementations. *Note Headers Installed
3193 by GCC: Headers, for details of when these and other headers are
3197 Message catalogs with translations of messages produced by GCC into
3198 various languages, `LANGUAGE.po'. This directory also contains
3199 `gcc.pot', the template for these message catalogues, `exgettext',
3200 a wrapper around `gettext' to extract the messages from the GCC
3201 sources and create `gcc.pot', which is run by `make gcc.pot', and
3202 `EXCLUDES', a list of files from which messages should not be
3206 The GCC testsuites (except for those for runtime libraries).
3210 File: gccint.info, Node: Configuration, Next: Build, Prev: Subdirectories, Up: gcc Directory
3212 6.3.2 Configuration in the `gcc' Directory
3213 ------------------------------------------
3215 The `gcc' directory is configured with an Autoconf-generated script
3216 `configure'. The `configure' script is generated from `configure.ac'
3217 and `aclocal.m4'. From the files `configure.ac' and `acconfig.h',
3218 Autoheader generates the file `config.in'. The file `cstamp-h.in' is
3219 used as a timestamp.
3223 * Config Fragments:: Scripts used by `configure'.
3224 * System Config:: The `config.build', `config.host', and
3226 * Configuration Files:: Files created by running `configure'.
3229 File: gccint.info, Node: Config Fragments, Next: System Config, Up: Configuration
3231 6.3.2.1 Scripts Used by `configure'
3232 ...................................
3234 `configure' uses some other scripts to help in its work:
3236 * The standard GNU `config.sub' and `config.guess' files, kept in
3237 the top level directory, are used.
3239 * The file `config.gcc' is used to handle configuration specific to
3240 the particular target machine. The file `config.build' is used to
3241 handle configuration specific to the particular build machine.
3242 The file `config.host' is used to handle configuration specific to
3243 the particular host machine. (In general, these should only be
3244 used for features that cannot reasonably be tested in Autoconf
3245 feature tests.) *Note The `config.build'; `config.host'; and
3246 `config.gcc' Files: System Config, for details of the contents of
3249 * Each language subdirectory has a file `LANGUAGE/config-lang.in'
3250 that is used for front-end-specific configuration. *Note The
3251 Front End `config-lang.in' File: Front End Config, for details of
3254 * A helper script `configure.frag' is used as part of creating the
3255 output of `configure'.
3258 File: gccint.info, Node: System Config, Next: Configuration Files, Prev: Config Fragments, Up: Configuration
3260 6.3.2.2 The `config.build'; `config.host'; and `config.gcc' Files
3261 .................................................................
3263 The `config.build' file contains specific rules for particular systems
3264 which GCC is built on. This should be used as rarely as possible, as
3265 the behavior of the build system can always be detected by autoconf.
3267 The `config.host' file contains specific rules for particular systems
3268 which GCC will run on. This is rarely needed.
3270 The `config.gcc' file contains specific rules for particular systems
3271 which GCC will generate code for. This is usually needed.
3273 Each file has a list of the shell variables it sets, with
3274 descriptions, at the top of the file.
3276 FIXME: document the contents of these files, and what variables should
3277 be set to control build, host and target configuration.
3280 File: gccint.info, Node: Configuration Files, Prev: System Config, Up: Configuration
3282 6.3.2.3 Files Created by `configure'
3283 ....................................
3285 Here we spell out what files will be set up by `configure' in the `gcc'
3286 directory. Some other files are created as temporary files in the
3287 configuration process, and are not used in the subsequent build; these
3290 * `Makefile' is constructed from `Makefile.in', together with the
3291 host and target fragments (*note Makefile Fragments: Fragments.)
3292 `t-TARGET' and `x-HOST' from `config', if any, and language
3293 Makefile fragments `LANGUAGE/Make-lang.in'.
3295 * `auto-host.h' contains information about the host machine
3296 determined by `configure'. If the host machine is different from
3297 the build machine, then `auto-build.h' is also created, containing
3298 such information about the build machine.
3300 * `config.status' is a script that may be run to recreate the
3301 current configuration.
3303 * `configargs.h' is a header containing details of the arguments
3304 passed to `configure' to configure GCC, and of the thread model
3307 * `cstamp-h' is used as a timestamp.
3309 * `fixinc/Makefile' is constructed from `fixinc/Makefile.in'.
3311 * `gccbug', a script for reporting bugs in GCC, is constructed from
3314 * `intl/Makefile' is constructed from `intl/Makefile.in'.
3316 * If a language `config-lang.in' file (*note The Front End
3317 `config-lang.in' File: Front End Config.) sets `outputs', then the
3318 files listed in `outputs' there are also generated.
3320 The following configuration headers are created from the Makefile,
3321 using `mkconfig.sh', rather than directly by `configure'. `config.h',
3322 `bconfig.h' and `tconfig.h' all contain the `xm-MACHINE.h' header, if
3323 any, appropriate to the host, build and target machines respectively,
3324 the configuration headers for the target, and some definitions; for the
3325 host and build machines, these include the autoconfigured headers
3326 generated by `configure'. The other configuration headers are
3327 determined by `config.gcc'. They also contain the typedefs for `rtx',
3330 * `config.h', for use in programs that run on the host machine.
3332 * `bconfig.h', for use in programs that run on the build machine.
3334 * `tconfig.h', for use in programs and libraries for the target
3337 * `tm_p.h', which includes the header `MACHINE-protos.h' that
3338 contains prototypes for functions in the target `.c' file. FIXME:
3339 why is such a separate header necessary?
3342 File: gccint.info, Node: Build, Next: Makefile, Prev: Configuration, Up: gcc Directory
3344 6.3.3 Build System in the `gcc' Directory
3345 -----------------------------------------
3347 FIXME: describe the build system, including what is built in what
3348 stages. Also list the various source files that are used in the build
3349 process but aren't source files of GCC itself and so aren't documented
3350 below (*note Passes::).
3353 File: gccint.info, Node: Makefile, Next: Library Files, Prev: Build, Up: gcc Directory
3355 6.3.4 Makefile Targets
3356 ----------------------
3358 These targets are available from the `gcc' directory:
3361 This is the default target. Depending on what your
3362 build/host/target configuration is, it coordinates all the things
3363 that need to be built.
3366 Produce info-formatted documentation and man pages. Essentially it
3367 calls `make man' and `make info'.
3370 Produce DVI-formatted documentation.
3373 Produce PDF-formatted documentation.
3376 Produce HTML-formatted documentation.
3382 Generate info-formatted pages.
3385 Delete the files made while building the compiler.
3388 That, and all the other files built by `make all'.
3391 That, and all the files created by `configure'.
3394 Distclean plus any file that can be generated from other files.
3395 Note that additional tools may be required beyond what is normally
3396 needed to build gcc.
3399 Generates files in the source directory that do not exist in CVS
3400 but should go into a release tarball. One example is
3401 `gcc/java/parse.c' which is generated from the CVS source file
3406 Copies the info-formatted and manpage documentation into the source
3407 directory usually for the purpose of generating a release tarball.
3413 Deletes installed files.
3416 Run the testsuite. This creates a `testsuite' subdirectory that
3417 has various `.sum' and `.log' files containing the results of the
3418 testing. You can run subsets with, for example, `make check-gcc'.
3419 You can specify specific tests by setting RUNTESTFLAGS to be the
3420 name of the `.exp' file, optionally followed by (for some tests)
3421 an equals and a file wildcard, like:
3423 make check-gcc RUNTESTFLAGS="execute.exp=19980413-*"
3425 Note that running the testsuite may require additional tools be
3426 installed, such as TCL or dejagnu.
3428 The toplevel tree from which you start GCC compilation is not the GCC
3429 directory, but rather a complex Makefile that coordinates the various
3430 steps of the build, including bootstrapping the compiler and using the
3431 new compiler to build target libraries.
3433 When GCC is configured for a native configuration, the default action
3434 for `make' is to do a full three-stage bootstrap. This means that GCC
3435 is built three times--once with the native compiler, once with the
3436 native-built compiler it just built, and once with the compiler it
3437 built the second time. In theory, the last two should produce the same
3438 results, which `make compare' can check. Each stage is configured
3439 separately and compiled into a separate directory, to minimize problems
3440 due to ABI incompatibilities between the native compiler and GCC.
3442 If you do a change, rebuilding will also start from the first stage
3443 and "bubble" up the change through the three stages. Each stage is
3444 taken from its build directory (if it had been built previously),
3445 rebuilt, and copied to its subdirectory. This will allow you to, for
3446 example, continue a bootstrap after fixing a bug which causes the
3447 stage2 build to crash. It does not provide as good coverage of the
3448 compiler as bootstrapping from scratch, but it ensures that the new
3449 code is syntactically correct (e.g., that you did not use GCC extensions
3450 by mistake), and avoids spurious bootstrap comparison failures(1).
3452 Other targets available from the top level include:
3455 Like `bootstrap', except that the various stages are removed once
3456 they're no longer needed. This saves disk space.
3460 Performs only the first two stages of bootstrap. Unlike a
3461 three-stage bootstrap, this does not perform a comparison to test
3462 that the compiler is running properly. Note that the disk space
3463 required by a "lean" bootstrap is approximately independent of the
3466 `stageN-bubble (N = 1...4)'
3467 Rebuild all the stages up to N, with the appropriate flags,
3468 "bubbling" the changes as described above.
3470 `all-stageN (N = 1...4)'
3471 Assuming that stage N has already been built, rebuild it with the
3472 appropriate flags. This is rarely needed.
3475 Remove everything (`make clean') and rebuilds (`make bootstrap').
3478 Compares the results of stages 2 and 3. This ensures that the
3479 compiler is running properly, since it should produce the same
3480 object files regardless of how it itself was compiled.
3483 Builds a compiler with profiling feedback information. For more
3484 information, see *Note Building with profile feedback:
3485 (gccinstall)Building.
3488 Restart a bootstrap, so that everything that was not built with
3489 the system compiler is rebuilt.
3491 `stageN-start (N = 1...4)'
3492 For each package that is bootstrapped, rename directories so that,
3493 for example, `gcc' points to the stageN GCC, compiled with the
3496 You will invoke this target if you need to test or debug the
3497 stageN GCC. If you only need to execute GCC (but you need not run
3498 `make' either to rebuild it or to run test suites), you should be
3499 able to work directly in the `stageN-gcc' directory. This makes
3500 it easier to debug multiple stages in parallel.
3503 For each package that is bootstrapped, relocate its build directory
3504 to indicate its stage. For example, if the `gcc' directory points
3505 to the stage2 GCC, after invoking this target it will be renamed
3509 If you wish to use non-default GCC flags when compiling the stage2 and
3510 stage3 compilers, set `BOOT_CFLAGS' on the command line when doing
3513 Usually, the first stage only builds the languages that the compiler
3514 is written in: typically, C and maybe Ada. If you are debugging a
3515 miscompilation of a different stage2 front-end (for example, of the
3516 Fortran front-end), you may want to have front-ends for other languages
3517 in the first stage as well. To do so, set `STAGE1_LANGUAGES' on the
3518 command line when doing `make'.
3520 For example, in the aforementioned scenario of debugging a Fortran
3521 front-end miscompilation caused by the stage1 compiler, you may need a
3524 make stage2-bubble STAGE1_LANGUAGES=c,fortran
3526 Alternatively, you can use per-language targets to build and test
3527 languages that are not enabled by default in stage1. For example,
3528 `make f951' will build a Fortran compiler even in the stage1 build
3531 ---------- Footnotes ----------
3533 (1) Except if the compiler was buggy and miscompiled some of the files
3534 that were not modified. In this case, it's best to use `make restrap'.
3536 (2) Customarily, the system compiler is also termed the `stage0' GCC.
3539 File: gccint.info, Node: Library Files, Next: Headers, Prev: Makefile, Up: gcc Directory
3541 6.3.5 Library Source Files and Headers under the `gcc' Directory
3542 ----------------------------------------------------------------
3544 FIXME: list here, with explanation, all the C source files and headers
3545 under the `gcc' directory that aren't built into the GCC executable but
3546 rather are part of runtime libraries and object files, such as
3547 `crtstuff.c' and `unwind-dw2.c'. *Note Headers Installed by GCC:
3548 Headers, for more information about the `ginclude' directory.
3551 File: gccint.info, Node: Headers, Next: Documentation, Prev: Library Files, Up: gcc Directory
3553 6.3.6 Headers Installed by GCC
3554 ------------------------------
3556 In general, GCC expects the system C library to provide most of the
3557 headers to be used with it. However, GCC will fix those headers if
3558 necessary to make them work with GCC, and will install some headers
3559 required of freestanding implementations. These headers are installed
3560 in `LIBSUBDIR/include'. Headers for non-C runtime libraries are also
3561 installed by GCC; these are not documented here. (FIXME: document them
3564 Several of the headers GCC installs are in the `ginclude' directory.
3565 These headers, `iso646.h', `stdarg.h', `stdbool.h', and `stddef.h', are
3566 installed in `LIBSUBDIR/include', unless the target Makefile fragment
3567 (*note Target Fragment::) overrides this by setting `USER_H'.
3569 In addition to these headers and those generated by fixing system
3570 headers to work with GCC, some other headers may also be installed in
3571 `LIBSUBDIR/include'. `config.gcc' may set `extra_headers'; this
3572 specifies additional headers under `config' to be installed on some
3575 GCC installs its own version of `<float.h>', from `ginclude/float.h'.
3576 This is done to cope with command-line options that change the
3577 representation of floating point numbers.
3579 GCC also installs its own version of `<limits.h>'; this is generated
3580 from `glimits.h', together with `limitx.h' and `limity.h' if the system
3581 also has its own version of `<limits.h>'. (GCC provides its own header
3582 because it is required of ISO C freestanding implementations, but needs
3583 to include the system header from its own header as well because other
3584 standards such as POSIX specify additional values to be defined in
3585 `<limits.h>'.) The system's `<limits.h>' header is used via
3586 `LIBSUBDIR/include/syslimits.h', which is copied from `gsyslimits.h' if
3587 it does not need fixing to work with GCC; if it needs fixing,
3588 `syslimits.h' is the fixed copy.
3590 GCC can also install `<tgmath.h>'. It will do this when `config.gcc'
3591 sets `use_gcc_tgmath' to `yes'.
3594 File: gccint.info, Node: Documentation, Next: Front End, Prev: Headers, Up: gcc Directory
3596 6.3.7 Building Documentation
3597 ----------------------------
3599 The main GCC documentation is in the form of manuals in Texinfo format.
3600 These are installed in Info format; DVI versions may be generated by
3601 `make dvi', PDF versions by `make pdf', and HTML versions by `make
3602 html'. In addition, some man pages are generated from the Texinfo
3603 manuals, there are some other text files with miscellaneous
3604 documentation, and runtime libraries have their own documentation
3605 outside the `gcc' directory. FIXME: document the documentation for
3606 runtime libraries somewhere.
3610 * Texinfo Manuals:: GCC manuals in Texinfo format.
3611 * Man Page Generation:: Generating man pages from Texinfo manuals.
3612 * Miscellaneous Docs:: Miscellaneous text files with documentation.
3615 File: gccint.info, Node: Texinfo Manuals, Next: Man Page Generation, Up: Documentation
3617 6.3.7.1 Texinfo Manuals
3618 .......................
3620 The manuals for GCC as a whole, and the C and C++ front ends, are in
3621 files `doc/*.texi'. Other front ends have their own manuals in files
3622 `LANGUAGE/*.texi'. Common files `doc/include/*.texi' are provided
3623 which may be included in multiple manuals; the following files are in
3627 The GNU Free Documentation License.
3630 The section "Funding Free Software".
3633 Common definitions for manuals.
3637 The GNU General Public License.
3640 A copy of `texinfo.tex' known to work with the GCC manuals.
3642 DVI-formatted manuals are generated by `make dvi', which uses
3643 `texi2dvi' (via the Makefile macro `$(TEXI2DVI)'). PDF-formatted
3644 manuals are generated by `make pdf', which uses `texi2pdf' (via the
3645 Makefile macro `$(TEXI2PDF)'). HTML formatted manuals are generated by
3646 `make html'. Info manuals are generated by `make info' (which is run
3647 as part of a bootstrap); this generates the manuals in the source
3648 directory, using `makeinfo' via the Makefile macro `$(MAKEINFO)', and
3649 they are included in release distributions.
3651 Manuals are also provided on the GCC web site, in both HTML and
3652 PostScript forms. This is done via the script
3653 `maintainer-scripts/update_web_docs'. Each manual to be provided
3654 online must be listed in the definition of `MANUALS' in that file; a
3655 file `NAME.texi' must only appear once in the source tree, and the
3656 output manual must have the same name as the source file. (However,
3657 other Texinfo files, included in manuals but not themselves the root
3658 files of manuals, may have names that appear more than once in the
3659 source tree.) The manual file `NAME.texi' should only include other
3660 files in its own directory or in `doc/include'. HTML manuals will be
3661 generated by `makeinfo --html', PostScript manuals by `texi2dvi' and
3662 `dvips', and PDF manuals by `texi2pdf'. All Texinfo files that are
3663 parts of manuals must be checked into SVN, even if they are generated
3664 files, for the generation of online manuals to work.
3666 The installation manual, `doc/install.texi', is also provided on the
3667 GCC web site. The HTML version is generated by the script
3668 `doc/install.texi2html'.
3671 File: gccint.info, Node: Man Page Generation, Next: Miscellaneous Docs, Prev: Texinfo Manuals, Up: Documentation
3673 6.3.7.2 Man Page Generation
3674 ...........................
3676 Because of user demand, in addition to full Texinfo manuals, man pages
3677 are provided which contain extracts from those manuals. These man
3678 pages are generated from the Texinfo manuals using
3679 `contrib/texi2pod.pl' and `pod2man'. (The man page for `g++',
3680 `cp/g++.1', just contains a `.so' reference to `gcc.1', but all the
3681 other man pages are generated from Texinfo manuals.)
3683 Because many systems may not have the necessary tools installed to
3684 generate the man pages, they are only generated if the `configure'
3685 script detects that recent enough tools are installed, and the
3686 Makefiles allow generating man pages to fail without aborting the
3687 build. Man pages are also included in release distributions. They are
3688 generated in the source directory.
3690 Magic comments in Texinfo files starting `@c man' control what parts
3691 of a Texinfo file go into a man page. Only a subset of Texinfo is
3692 supported by `texi2pod.pl', and it may be necessary to add support for
3693 more Texinfo features to this script when generating new man pages. To
3694 improve the man page output, some special Texinfo macros are provided
3695 in `doc/include/gcc-common.texi' which `texi2pod.pl' understands:
3698 Use in the form `@table @gcctabopt' for tables of options, where
3699 for printed output the effect of `@code' is better than that of
3700 `@option' but for man page output a different effect is wanted.
3703 Use for summary lists of options in manuals.
3706 Use at the end of each line inside `@gccoptlist'. This is
3707 necessary to avoid problems with differences in how the
3708 `@gccoptlist' macro is handled by different Texinfo formatters.
3710 FIXME: describe the `texi2pod.pl' input language and magic comments in
3714 File: gccint.info, Node: Miscellaneous Docs, Prev: Man Page Generation, Up: Documentation
3716 6.3.7.3 Miscellaneous Documentation
3717 ...................................
3719 In addition to the formal documentation that is installed by GCC, there
3720 are several other text files with miscellaneous documentation:
3723 Notes on GCC's Native Language Support. FIXME: this should be
3724 part of this manual rather than a separate file.
3727 Notes on the Free Translation Project.
3730 The GNU General Public License.
3733 The GNU Lesser General Public License.
3737 Change log files for various parts of GCC.
3740 Details of a few changes to the GCC front-end interface. FIXME:
3741 the information in this file should be part of general
3742 documentation of the front-end interface in this manual.
3745 Information about new features in old versions of GCC. (For recent
3746 versions, the information is on the GCC web site.)
3748 `README.Portability'
3749 Information about portability issues when writing code in GCC.
3750 FIXME: why isn't this part of this manual or of the GCC Coding
3753 FIXME: document such files in subdirectories, at least `config', `cp',
3754 `objc', `testsuite'.
3757 File: gccint.info, Node: Front End, Next: Back End, Prev: Documentation, Up: gcc Directory
3759 6.3.8 Anatomy of a Language Front End
3760 -------------------------------------
3762 A front end for a language in GCC has the following parts:
3764 * A directory `LANGUAGE' under `gcc' containing source files for
3765 that front end. *Note The Front End `LANGUAGE' Directory: Front
3766 End Directory, for details.
3768 * A mention of the language in the list of supported languages in
3769 `gcc/doc/install.texi'.
3771 * A mention of the name under which the language's runtime library is
3772 recognized by `--enable-shared=PACKAGE' in the documentation of
3773 that option in `gcc/doc/install.texi'.
3775 * A mention of any special prerequisites for building the front end
3776 in the documentation of prerequisites in `gcc/doc/install.texi'.
3778 * Details of contributors to that front end in
3779 `gcc/doc/contrib.texi'. If the details are in that front end's
3780 own manual then there should be a link to that manual's list in
3783 * Information about support for that language in
3784 `gcc/doc/frontends.texi'.
3786 * Information about standards for that language, and the front end's
3787 support for them, in `gcc/doc/standards.texi'. This may be a link
3788 to such information in the front end's own manual.
3790 * Details of source file suffixes for that language and `-x LANG'
3791 options supported, in `gcc/doc/invoke.texi'.
3793 * Entries in `default_compilers' in `gcc.c' for source file suffixes
3796 * Preferably testsuites, which may be under `gcc/testsuite' or
3797 runtime library directories. FIXME: document somewhere how to
3798 write testsuite harnesses.
3800 * Probably a runtime library for the language, outside the `gcc'
3801 directory. FIXME: document this further.
3803 * Details of the directories of any runtime libraries in
3804 `gcc/doc/sourcebuild.texi'.
3806 If the front end is added to the official GCC source repository, the
3807 following are also necessary:
3809 * At least one Bugzilla component for bugs in that front end and
3810 runtime libraries. This category needs to be mentioned in
3811 `gcc/gccbug.in', as well as being added to the Bugzilla database.
3813 * Normally, one or more maintainers of that front end listed in
3816 * Mentions on the GCC web site in `index.html' and `frontends.html',
3817 with any relevant links on `readings.html'. (Front ends that are
3818 not an official part of GCC may also be listed on
3819 `frontends.html', with relevant links.)
3821 * A news item on `index.html', and possibly an announcement on the
3822 <gcc-announce@gcc.gnu.org> mailing list.
3824 * The front end's manuals should be mentioned in
3825 `maintainer-scripts/update_web_docs' (*note Texinfo Manuals::) and
3826 the online manuals should be linked to from
3827 `onlinedocs/index.html'.
3829 * Any old releases or CVS repositories of the front end, before its
3830 inclusion in GCC, should be made available on the GCC FTP site
3831 `ftp://gcc.gnu.org/pub/gcc/old-releases/'.
3833 * The release and snapshot script `maintainer-scripts/gcc_release'
3834 should be updated to generate appropriate tarballs for this front
3835 end. The associated `maintainer-scripts/snapshot-README' and
3836 `maintainer-scripts/snapshot-index.html' files should be updated
3837 to list the tarballs and diffs for this front end.
3839 * If this front end includes its own version files that include the
3840 current date, `maintainer-scripts/update_version' should be
3841 updated accordingly.
3845 * Front End Directory:: The front end `LANGUAGE' directory.
3846 * Front End Config:: The front end `config-lang.in' file.
3849 File: gccint.info, Node: Front End Directory, Next: Front End Config, Up: Front End
3851 6.3.8.1 The Front End `LANGUAGE' Directory
3852 ..........................................
3854 A front end `LANGUAGE' directory contains the source files of that
3855 front end (but not of any runtime libraries, which should be outside
3856 the `gcc' directory). This includes documentation, and possibly some
3857 subsidiary programs build alongside the front end. Certain files are
3858 special and other parts of the compiler depend on their names:
3861 This file is required in all language subdirectories. *Note The
3862 Front End `config-lang.in' File: Front End Config, for details of
3866 This file is required in all language subdirectories. It contains
3867 targets `LANG.HOOK' (where `LANG' is the setting of `language' in
3868 `config-lang.in') for the following values of `HOOK', and any
3869 other Makefile rules required to build those targets (which may if
3870 necessary use other Makefiles specified in `outputs' in
3871 `config-lang.in', although this is deprecated). It also adds any
3872 testsuite targets that can use the standard rule in
3873 `gcc/Makefile.in' to the variable `lang_checks'.
3878 FIXME: exactly what goes in each of these targets?
3881 Build an `etags' `TAGS' file in the language subdirectory in
3885 Build info documentation for the front end, in the build
3886 directory. This target is only called by `make bootstrap' if
3887 a suitable version of `makeinfo' is available, so does not
3888 need to check for this, and should fail if an error occurs.
3891 Build DVI documentation for the front end, in the build
3892 directory. This should be done using `$(TEXI2DVI)', with
3893 appropriate `-I' arguments pointing to directories of
3897 Build PDF documentation for the front end, in the build
3898 directory. This should be done using `$(TEXI2PDF)', with
3899 appropriate `-I' arguments pointing to directories of
3903 Build HTML documentation for the front end, in the build
3907 Build generated man pages for the front end from Texinfo
3908 manuals (*note Man Page Generation::), in the build
3909 directory. This target is only called if the necessary tools
3910 are available, but should ignore errors so as not to stop the
3911 build if errors occur; man pages are optional and the tools
3912 involved may be installed in a broken way.
3915 Install everything that is part of the front end, apart from
3916 the compiler executables listed in `compilers' in
3920 Install info documentation for the front end, if it is
3921 present in the source directory. This target should have
3922 dependencies on info files that should be installed.
3925 Install man pages for the front end. This target should
3929 Copies its dependencies into the source directory. This
3930 generally should be used for generated files such as Bison
3931 output files which are not present in CVS, but should be
3932 included in any release tarballs. This target will be
3933 executed during a bootstrap if
3934 `--enable-generated-files-in-srcdir' was specified as a
3939 Copies its dependencies into the source directory. These
3940 targets will be executed during a bootstrap if
3941 `--enable-generated-files-in-srcdir' was specified as a
3945 Uninstall files installed by installing the compiler. This is
3946 currently documented not to be supported, so the hook need
3953 The language parts of the standard GNU `*clean' targets.
3954 *Note Standard Targets for Users: (standards)Standard
3955 Targets, for details of the standard targets. For GCC,
3956 `maintainer-clean' should delete all generated files in the
3957 source directory that are not checked into CVS, but should
3958 not delete anything checked into CVS.
3960 `Make-lang.in' must also define a variable `LANG_OBJS' to a list
3961 of host object files that are used by that language.
3964 This file registers the set of switches that the front end accepts
3965 on the command line, and their `--help' text. *Note Options::.
3968 This file provides entries for `default_compilers' in `gcc.c'
3969 which override the default of giving an error that a compiler for
3970 that language is not installed.
3973 This file, which need not exist, defines any language-specific tree
3977 File: gccint.info, Node: Front End Config, Prev: Front End Directory, Up: Front End
3979 6.3.8.2 The Front End `config-lang.in' File
3980 ...........................................
3982 Each language subdirectory contains a `config-lang.in' file. In
3983 addition the main directory contains `c-config-lang.in', which contains
3984 limited information for the C language. This file is a shell script
3985 that may define some variables describing the language:
3988 This definition must be present, and gives the name of the language
3989 for some purposes such as arguments to `--enable-languages'.
3992 If defined, this variable lists (space-separated) language front
3993 ends other than C that this front end requires to be enabled (with
3994 the names given being their `language' settings). For example, the
3995 Java front end depends on the C++ front end, so sets
3996 `lang_requires=c++'.
3999 If defined, this variable lists (space-separated) front end
4000 directories other than C that this front end requires to be
4001 present. For example, the Objective-C++ front end uses source
4002 files from the C++ and Objective-C front ends, so sets
4003 `subdir_requires="cp objc"'.
4006 If defined, this variable lists (space-separated) targets in the
4007 top level `Makefile' to build the runtime libraries for this
4008 language, such as `target-libobjc'.
4011 If defined, this variable lists (space-separated) top level
4012 directories (parallel to `gcc'), apart from the runtime libraries,
4013 that should not be configured if this front end is not built.
4016 If defined to `no', this language front end is not built unless
4017 enabled in a `--enable-languages' argument. Otherwise, front ends
4018 are built by default, subject to any special logic in
4019 `configure.ac' (as is present to disable the Ada front end if the
4020 Ada compiler is not already installed).
4023 If defined to `yes', this front end is built in stage 1 of the
4024 bootstrap. This is only relevant to front ends written in their
4028 If defined, a space-separated list of compiler executables that
4029 will be run by the driver. The names here will each end with
4033 If defined, a space-separated list of files that should be
4034 generated by `configure' substituting values in them. This
4035 mechanism can be used to create a file `LANGUAGE/Makefile' from
4036 `LANGUAGE/Makefile.in', but this is deprecated, building
4037 everything from the single `gcc/Makefile' is preferred.
4040 If defined, a space-separated list of files that should be scanned
4041 by gengtype.c to generate the garbage collection tables and
4042 routines for this language. This excludes the files that are
4043 common to all front ends. *Note Type Information::.
4047 File: gccint.info, Node: Back End, Prev: Front End, Up: gcc Directory
4049 6.3.9 Anatomy of a Target Back End
4050 ----------------------------------
4052 A back end for a target architecture in GCC has the following parts:
4054 * A directory `MACHINE' under `gcc/config', containing a machine
4055 description `MACHINE.md' file (*note Machine Descriptions: Machine
4056 Desc.), header files `MACHINE.h' and `MACHINE-protos.h' and a
4057 source file `MACHINE.c' (*note Target Description Macros and
4058 Functions: Target Macros.), possibly a target Makefile fragment
4059 `t-MACHINE' (*note The Target Makefile Fragment: Target
4060 Fragment.), and maybe some other files. The names of these files
4061 may be changed from the defaults given by explicit specifications
4064 * If necessary, a file `MACHINE-modes.def' in the `MACHINE'
4065 directory, containing additional machine modes to represent
4066 condition codes. *Note Condition Code::, for further details.
4068 * An optional `MACHINE.opt' file in the `MACHINE' directory,
4069 containing a list of target-specific options. You can also add
4070 other option files using the `extra_options' variable in
4071 `config.gcc'. *Note Options::.
4073 * Entries in `config.gcc' (*note The `config.gcc' File: System
4074 Config.) for the systems with this target architecture.
4076 * Documentation in `gcc/doc/invoke.texi' for any command-line
4077 options supported by this target (*note Run-time Target
4078 Specification: Run-time Target.). This means both entries in the
4079 summary table of options and details of the individual options.
4081 * Documentation in `gcc/doc/extend.texi' for any target-specific
4082 attributes supported (*note Defining target-specific uses of
4083 `__attribute__': Target Attributes.), including where the same
4084 attribute is already supported on some targets, which are
4085 enumerated in the manual.
4087 * Documentation in `gcc/doc/extend.texi' for any target-specific
4090 * Documentation in `gcc/doc/extend.texi' of any target-specific
4091 built-in functions supported.
4093 * Documentation in `gcc/doc/extend.texi' of any target-specific
4094 format checking styles supported.
4096 * Documentation in `gcc/doc/md.texi' of any target-specific
4097 constraint letters (*note Constraints for Particular Machines:
4098 Machine Constraints.).
4100 * A note in `gcc/doc/contrib.texi' under the person or people who
4101 contributed the target support.
4103 * Entries in `gcc/doc/install.texi' for all target triplets
4104 supported with this target architecture, giving details of any
4105 special notes about installation for this target, or saying that
4106 there are no special notes if there are none.
4108 * Possibly other support outside the `gcc' directory for runtime
4109 libraries. FIXME: reference docs for this. The libstdc++ porting
4110 manual needs to be installed as info for this to work, or to be a
4111 chapter of this manual.
4113 If the back end is added to the official GCC source repository, the
4114 following are also necessary:
4116 * An entry for the target architecture in `readings.html' on the GCC
4117 web site, with any relevant links.
4119 * Details of the properties of the back end and target architecture
4120 in `backends.html' on the GCC web site.
4122 * A news item about the contribution of support for that target
4123 architecture, in `index.html' on the GCC web site.
4125 * Normally, one or more maintainers of that target listed in
4126 `MAINTAINERS'. Some existing architectures may be unmaintained,
4127 but it would be unusual to add support for a target that does not
4128 have a maintainer when support is added.
4131 File: gccint.info, Node: Testsuites, Prev: gcc Directory, Up: Source Tree
4136 GCC contains several testsuites to help maintain compiler quality.
4137 Most of the runtime libraries and language front ends in GCC have
4138 testsuites. Currently only the C language testsuites are documented
4139 here; FIXME: document the others.
4143 * Test Idioms:: Idioms used in testsuite code.
4144 * Test Directives:: Directives used within DejaGnu tests.
4145 * Ada Tests:: The Ada language testsuites.
4146 * C Tests:: The C language testsuites.
4147 * libgcj Tests:: The Java library testsuites.
4148 * gcov Testing:: Support for testing gcov.
4149 * profopt Testing:: Support for testing profile-directed optimizations.
4150 * compat Testing:: Support for testing binary compatibility.
4151 * Torture Tests:: Support for torture testing using multiple options.
4154 File: gccint.info, Node: Test Idioms, Next: Test Directives, Up: Testsuites
4156 6.4.1 Idioms Used in Testsuite Code
4157 -----------------------------------
4159 In general, C testcases have a trailing `-N.c', starting with `-1.c',
4160 in case other testcases with similar names are added later. If the
4161 test is a test of some well-defined feature, it should have a name
4162 referring to that feature such as `FEATURE-1.c'. If it does not test a
4163 well-defined feature but just happens to exercise a bug somewhere in
4164 the compiler, and a bug report has been filed for this bug in the GCC
4165 bug database, `prBUG-NUMBER-1.c' is the appropriate form of name.
4166 Otherwise (for miscellaneous bugs not filed in the GCC bug database),
4167 and previously more generally, test cases are named after the date on
4168 which they were added. This allows people to tell at a glance whether
4169 a test failure is because of a recently found bug that has not yet been
4170 fixed, or whether it may be a regression, but does not give any other
4171 information about the bug or where discussion of it may be found. Some
4172 other language testsuites follow similar conventions.
4174 In the `gcc.dg' testsuite, it is often necessary to test that an error
4175 is indeed a hard error and not just a warning--for example, where it is
4176 a constraint violation in the C standard, which must become an error
4177 with `-pedantic-errors'. The following idiom, where the first line
4178 shown is line LINE of the file and the line that generates the error,
4181 /* { dg-bogus "warning" "warning in place of error" } */
4182 /* { dg-error "REGEXP" "MESSAGE" { target *-*-* } LINE } */
4184 It may be necessary to check that an expression is an integer constant
4185 expression and has a certain value. To check that `E' has value `V',
4186 an idiom similar to the following is used:
4188 char x[((E) == (V) ? 1 : -1)];
4190 In `gcc.dg' tests, `__typeof__' is sometimes used to make assertions
4191 about the types of expressions. See, for example,
4192 `gcc.dg/c99-condexpr-1.c'. The more subtle uses depend on the exact
4193 rules for the types of conditional expressions in the C standard; see,
4194 for example, `gcc.dg/c99-intconst-1.c'.
4196 It is useful to be able to test that optimizations are being made
4197 properly. This cannot be done in all cases, but it can be done where
4198 the optimization will lead to code being optimized away (for example,
4199 where flow analysis or alias analysis should show that certain code
4200 cannot be called) or to functions not being called because they have
4201 been expanded as built-in functions. Such tests go in
4202 `gcc.c-torture/execute'. Where code should be optimized away, a call
4203 to a nonexistent function such as `link_failure ()' may be inserted; a
4206 #ifndef __OPTIMIZE__
4214 will also be needed so that linking still succeeds when the test is run
4215 without optimization. When all calls to a built-in function should
4216 have been optimized and no calls to the non-built-in version of the
4217 function should remain, that function may be defined as `static' to
4218 call `abort ()' (although redeclaring a function as static may not work
4221 All testcases must be portable. Target-specific testcases must have
4222 appropriate code to avoid causing failures on unsupported systems;
4223 unfortunately, the mechanisms for this differ by directory.
4225 FIXME: discuss non-C testsuites here.
4228 File: gccint.info, Node: Test Directives, Next: Ada Tests, Prev: Test Idioms, Up: Testsuites
4230 6.4.2 Directives used within DejaGnu tests
4231 ------------------------------------------
4233 Test directives appear within comments in a test source file and begin
4234 with `dg-'. Some of these are defined within DejaGnu and others are
4235 local to the GCC testsuite.
4237 The order in which test directives appear in a test can be important:
4238 directives local to GCC sometimes override information used by the
4239 DejaGnu directives, which know nothing about the GCC directives, so the
4240 DejaGnu directives must precede GCC directives.
4242 Several test directives include selectors which are usually preceded by
4243 the keyword `target' or `xfail'. A selector is: one or more target
4244 triplets, possibly including wildcard characters; a single
4245 effective-target keyword; or a logical expression. Depending on the
4246 context, the selector specifies whether a test is skipped and reported
4247 as unsupported or is expected to fail. Use `*-*-*' to match any target.
4248 Effective-target keywords are defined in `target-supports.exp' in the
4251 A selector expression appears within curly braces and uses a single
4252 logical operator: one of `!', `&&', or `||'. An operand is another
4253 selector expression, an effective-target keyword, a single target
4254 triplet, or a list of target triplets within quotes or curly braces.
4257 { target { ! "hppa*-*-* ia64*-*-*" } }
4258 { target { powerpc*-*-* && lp64 } }
4259 { xfail { lp64 || vect_no_align } }
4261 `{ dg-do DO-WHAT-KEYWORD [{ target/xfail SELECTOR }] }'
4262 DO-WHAT-KEYWORD specifies how the test is compiled and whether it
4263 is executed. It is one of:
4266 Compile with `-E' to run only the preprocessor.
4269 Compile with `-S' to produce an assembly code file.
4272 Compile with `-c' to produce a relocatable object file.
4275 Compile, assemble, and link to produce an executable file.
4278 Produce and run an executable file, which is expected to
4279 return an exit code of 0.
4281 The default is `compile'. That can be overridden for a set of
4282 tests by redefining `dg-do-what-default' within the `.exp' file
4285 If the directive includes the optional `{ target SELECTOR }' then
4286 the test is skipped unless the target system is included in the
4287 list of target triplets or matches the effective-target keyword.
4289 If `do-what-keyword' is `run' and the directive includes the
4290 optional `{ xfail SELECTOR }' and the selector is met then the
4291 test is expected to fail. The `xfail' clause is ignored for other
4292 values of `do-what-keyword'; those tests can use directive
4295 `{ dg-options OPTIONS [{ target SELECTOR }] }'
4296 This DejaGnu directive provides a list of compiler options, to be
4297 used if the target system matches SELECTOR, that replace the
4298 default options used for this set of tests.
4300 `{ dg-add-options FEATURE ... }'
4301 Add any compiler options that are needed to access certain
4302 features. This directive does nothing on targets that enable the
4303 features by default, or that don't provide them at all. It must
4304 come after all `dg-options' directives.
4306 The supported values of FEATURE are:
4308 The target's C99 runtime (both headers and libraries).
4311 `mips16' function attributes. Only MIPS targets support this
4312 feature, and only then in certain modes.
4314 `{ dg-timeout N [{target SELECTOR }] }'
4315 Set the time limit for the compilation and for the execution of
4316 the test to the specified number of seconds.
4318 `{ dg-timeout-factor X [{ target SELECTOR }] }'
4319 Multiply the normal time limit for compilation and execution of
4320 the test by the specified floating-point factor. The normal
4321 timeout limit, in seconds, is found by searching the following in
4324 * the value defined by an earlier `dg-timeout' directive in the
4327 * variable TOOL_TIMEOUT defined by the set of tests
4329 * GCC,TIMEOUT set in the target board
4333 `{ dg-skip-if COMMENT { SELECTOR } { INCLUDE-OPTS } { EXCLUDE-OPTS } }'
4334 Skip the test if the test system is included in SELECTOR and if
4335 each of the options in INCLUDE-OPTS is in the set of options with
4336 which the test would be compiled and if none of the options in
4337 EXCLUDE-OPTS is in the set of options with which the test would be
4340 Use `"*"' for an empty INCLUDE-OPTS list and `""' for an empty
4343 `{ dg-xfail-if COMMENT { SELECTOR } { INCLUDE-OPTS } { EXCLUDE-OPTS } }'
4344 Expect the test to fail if the conditions (which are the same as
4345 for `dg-skip-if') are met. This does not affect the execute step.
4347 `{ dg-xfail-run-if COMMENT { SELECTOR } { INCLUDE-OPTS } { EXCLUDE-OPTS } }'
4348 Expect the execute step of a test to fail if the conditions (which
4349 are the same as for `dg-skip-if') and `dg-xfail-if') are met.
4351 `{ dg-require-SUPPORT args }'
4352 Skip the test if the target does not provide the required support;
4353 see `gcc-dg.exp' in the GCC testsuite for the actual directives.
4354 These directives must appear after any `dg-do' directive in the
4355 test and before any `dg-additional-sources' directive. They
4356 require at least one argument, which can be an empty string if the
4357 specific procedure does not examine the argument.
4359 `{ dg-require-effective-target KEYWORD }'
4360 Skip the test if the test target, including current multilib flags,
4361 is not covered by the effective-target keyword. This directive
4362 must appear after any `dg-do' directive in the test and before any
4363 `dg-additional-sources' directive.
4365 `{ dg-shouldfail COMMENT { SELECTOR } { INCLUDE-OPTS } { EXCLUDE-OPTS } }'
4366 Expect the test executable to return a nonzero exit status if the
4367 conditions (which are the same as for `dg-skip-if') are met.
4369 `{ dg-error REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] }]] }'
4370 This DejaGnu directive appears on a source line that is expected
4371 to get an error message, or else specifies the source line
4372 associated with the message. If there is no message for that line
4373 or if the text of that message is not matched by REGEXP then the
4374 check fails and COMMENT is included in the `FAIL' message. The
4375 check does not look for the string `"error"' unless it is part of
4378 `{ dg-warning REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] }]] }'
4379 This DejaGnu directive appears on a source line that is expected
4380 to get a warning message, or else specifies the source line
4381 associated with the message. If there is no message for that line
4382 or if the text of that message is not matched by REGEXP then the
4383 check fails and COMMENT is included in the `FAIL' message. The
4384 check does not look for the string `"warning"' unless it is part
4387 `{ dg-message REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] }]] }'
4388 The line is expected to get a message other than an error or
4389 warning. If there is no message for that line or if the text of
4390 that message is not matched by REGEXP then the check fails and
4391 COMMENT is included in the `FAIL' message.
4393 `{ dg-bogus REGEXP [COMMENT [{ target/xfail SELECTOR } [LINE] }]] }'
4394 This DejaGnu directive appears on a source line that should not
4395 get a message matching REGEXP, or else specifies the source line
4396 associated with the bogus message. It is usually used with `xfail'
4397 to indicate that the message is a known problem for a particular
4400 `{ dg-excess-errors COMMENT [{ target/xfail SELECTOR }] }'
4401 This DejaGnu directive indicates that the test is expected to fail
4402 due to compiler messages that are not handled by `dg-error',
4403 `dg-warning' or `dg-bogus'. For this directive `xfail' has the
4404 same effect as `target'.
4406 `{ dg-output REGEXP [{ target/xfail SELECTOR }] }'
4407 This DejaGnu directive compares REGEXP to the combined output that
4408 the test executable writes to `stdout' and `stderr'.
4410 `{ dg-prune-output REGEXP }'
4411 Prune messages matching REGEXP from test output.
4413 `{ dg-additional-files "FILELIST" }'
4414 Specify additional files, other than source files, that must be
4415 copied to the system where the compiler runs.
4417 `{ dg-additional-sources "FILELIST" }'
4418 Specify additional source files to appear in the compile line
4419 following the main test file.
4421 `{ dg-final { LOCAL-DIRECTIVE } }'
4422 This DejaGnu directive is placed within a comment anywhere in the
4423 source file and is processed after the test has been compiled and
4424 run. Multiple `dg-final' commands are processed in the order in
4425 which they appear in the source file.
4427 The GCC testsuite defines the following directives to be used
4430 `cleanup-coverage-files'
4431 Removes coverage data files generated for this test.
4433 `cleanup-repo-files'
4434 Removes files generated for this test for `-frepo'.
4436 `cleanup-rtl-dump SUFFIX'
4437 Removes RTL dump files generated for this test.
4439 `cleanup-tree-dump SUFFIX'
4440 Removes tree dump files matching SUFFIX which were generated
4443 `cleanup-saved-temps'
4444 Removes files for the current test which were kept for
4447 `scan-file FILENAME REGEXP [{ target/xfail SELECTOR }]'
4448 Passes if REGEXP matches text in FILENAME.
4450 `scan-file-not FILENAME REGEXP [{ target/xfail SELECTOR }]'
4451 Passes if REGEXP does not match text in FILENAME.
4453 `scan-hidden SYMBOL [{ target/xfail SELECTOR }]'
4454 Passes if SYMBOL is defined as a hidden symbol in the test's
4457 `scan-not-hidden SYMBOL [{ target/xfail SELECTOR }]'
4458 Passes if SYMBOL is not defined as a hidden symbol in the
4459 test's assembly output.
4461 `scan-assembler-times REGEX NUM [{ target/xfail SELECTOR }]'
4462 Passes if REGEX is matched exactly NUM times in the test's
4465 `scan-assembler REGEX [{ target/xfail SELECTOR }]'
4466 Passes if REGEX matches text in the test's assembler output.
4468 `scan-assembler-not REGEX [{ target/xfail SELECTOR }]'
4469 Passes if REGEX does not match text in the test's assembler
4472 `scan-assembler-dem REGEX [{ target/xfail SELECTOR }]'
4473 Passes if REGEX matches text in the test's demangled
4476 `scan-assembler-dem-not REGEX [{ target/xfail SELECTOR }]'
4477 Passes if REGEX does not match text in the test's demangled
4480 `scan-tree-dump-times REGEX NUM SUFFIX [{ target/xfail SELECTOR }]'
4481 Passes if REGEX is found exactly NUM times in the dump file
4484 `scan-tree-dump REGEX SUFFIX [{ target/xfail SELECTOR }]'
4485 Passes if REGEX matches text in the dump file with suffix
4488 `scan-tree-dump-not REGEX SUFFIX [{ target/xfail SELECTOR }]'
4489 Passes if REGEX does not match text in the dump file with
4492 `scan-tree-dump-dem REGEX SUFFIX [{ target/xfail SELECTOR }]'
4493 Passes if REGEX matches demangled text in the dump file with
4496 `scan-tree-dump-dem-not REGEX SUFFIX [{ target/xfail SELECTOR }]'
4497 Passes if REGEX does not match demangled text in the dump
4498 file with suffix SUFFIX.
4500 `output-exists [{ target/xfail SELECTOR }]'
4501 Passes if compiler output file exists.
4503 `output-exists-not [{ target/xfail SELECTOR }]'
4504 Passes if compiler output file does not exist.
4506 `run-gcov SOURCEFILE'
4507 Check line counts in `gcov' tests.
4509 `run-gcov [branches] [calls] { OPTS SOURCEFILE }'
4510 Check branch and/or call counts, in addition to line counts,
4514 File: gccint.info, Node: Ada Tests, Next: C Tests, Prev: Test Directives, Up: Testsuites
4516 6.4.3 Ada Language Testsuites
4517 -----------------------------
4519 The Ada testsuite includes executable tests from the ACATS 2.5
4520 testsuite, publicly available at
4521 `http://www.adaic.org/compilers/acats/2.5'
4523 These tests are integrated in the GCC testsuite in the
4524 `gcc/testsuite/ada/acats' directory, and enabled automatically when
4525 running `make check', assuming the Ada language has been enabled when
4528 You can also run the Ada testsuite independently, using `make
4529 check-ada', or run a subset of the tests by specifying which chapter to
4532 $ make check-ada CHAPTERS="c3 c9"
4534 The tests are organized by directory, each directory corresponding to
4535 a chapter of the Ada Reference Manual. So for example, c9 corresponds
4536 to chapter 9, which deals with tasking features of the language.
4538 There is also an extra chapter called `gcc' containing a template for
4539 creating new executable tests.
4541 The tests are run using two `sh' scripts: `run_acats' and
4542 `run_all.sh'. To run the tests using a simulator or a cross target,
4543 see the small customization section at the top of `run_all.sh'.
4545 These tests are run using the build tree: they can be run without doing
4549 File: gccint.info, Node: C Tests, Next: libgcj Tests, Prev: Ada Tests, Up: Testsuites
4551 6.4.4 C Language Testsuites
4552 ---------------------------
4554 GCC contains the following C language testsuites, in the
4555 `gcc/testsuite' directory:
4558 This contains tests of particular features of the C compiler,
4559 using the more modern `dg' harness. Correctness tests for various
4560 compiler features should go here if possible.
4562 Magic comments determine whether the file is preprocessed,
4563 compiled, linked or run. In these tests, error and warning
4564 message texts are compared against expected texts or regular
4565 expressions given in comments. These tests are run with the
4566 options `-ansi -pedantic' unless other options are given in the
4567 test. Except as noted below they are not run with multiple
4568 optimization options.
4571 This subdirectory contains tests for binary compatibility using
4572 `compat.exp', which in turn uses the language-independent support
4573 (*note Support for testing binary compatibility: compat Testing.).
4576 This subdirectory contains tests of the preprocessor.
4579 This subdirectory contains tests for debug formats. Tests in this
4580 subdirectory are run for each debug format that the compiler
4584 This subdirectory contains tests of the `-Wformat' format
4585 checking. Tests in this directory are run with and without
4589 This subdirectory contains tests of code that should not compile
4590 and does not need any special compilation options. They are run
4591 with multiple optimization options, since sometimes invalid code
4592 crashes the compiler with optimization.
4595 FIXME: describe this.
4598 This contains particular code fragments which have historically
4599 broken easily. These tests are run with multiple optimization
4600 options, so tests for features which only break at some
4601 optimization levels belong here. This also contains tests to
4602 check that certain optimizations occur. It might be worthwhile to
4603 separate the correctness tests cleanly from the code quality
4604 tests, but it hasn't been done yet.
4606 `gcc.c-torture/compat'
4607 FIXME: describe this.
4609 This directory should probably not be used for new tests.
4611 `gcc.c-torture/compile'
4612 This testsuite contains test cases that should compile, but do not
4613 need to link or run. These test cases are compiled with several
4614 different combinations of optimization options. All warnings are
4615 disabled for these test cases, so this directory is not suitable if
4616 you wish to test for the presence or absence of compiler warnings.
4617 While special options can be set, and tests disabled on specific
4618 platforms, by the use of `.x' files, mostly these test cases
4619 should not contain platform dependencies. FIXME: discuss how
4620 defines such as `NO_LABEL_VALUES' and `STACK_SIZE' are used.
4622 `gcc.c-torture/execute'
4623 This testsuite contains test cases that should compile, link and
4624 run; otherwise the same comments as for `gcc.c-torture/compile'
4627 `gcc.c-torture/execute/ieee'
4628 This contains tests which are specific to IEEE floating point.
4630 `gcc.c-torture/unsorted'
4631 FIXME: describe this.
4633 This directory should probably not be used for new tests.
4635 `gcc.c-torture/misc-tests'
4636 This directory contains C tests that require special handling.
4637 Some of these tests have individual expect files, and others share
4638 special-purpose expect files:
4641 Test `-fbranch-probabilities' using `bprob.exp', which in
4642 turn uses the generic, language-independent framework (*note
4643 Support for testing profile-directed optimizations: profopt
4647 Test the testsuite itself using `dg-test.exp'.
4650 Test `gcov' output using `gcov.exp', which in turn uses the
4651 language-independent support (*note Support for testing gcov:
4655 Test i386-specific support for data prefetch using
4656 `i386-prefetch.exp'.
4659 FIXME: merge in `testsuite/README.gcc' and discuss the format of test
4660 cases and magic comments more.
4663 File: gccint.info, Node: libgcj Tests, Next: gcov Testing, Prev: C Tests, Up: Testsuites
4665 6.4.5 The Java library testsuites.
4666 ----------------------------------
4668 Runtime tests are executed via `make check' in the
4669 `TARGET/libjava/testsuite' directory in the build tree. Additional
4670 runtime tests can be checked into this testsuite.
4672 Regression testing of the core packages in libgcj is also covered by
4673 the Mauve testsuite. The Mauve Project develops tests for the Java
4674 Class Libraries. These tests are run as part of libgcj testing by
4675 placing the Mauve tree within the libjava testsuite sources at
4676 `libjava/testsuite/libjava.mauve/mauve', or by specifying the location
4677 of that tree when invoking `make', as in `make MAUVEDIR=~/mauve check'.
4679 To detect regressions, a mechanism in `mauve.exp' compares the
4680 failures for a test run against the list of expected failures in
4681 `libjava/testsuite/libjava.mauve/xfails' from the source hierarchy.
4682 Update this file when adding new failing tests to Mauve, or when fixing
4683 bugs in libgcj that had caused Mauve test failures.
4685 We encourage developers to contribute test cases to Mauve.
4688 File: gccint.info, Node: gcov Testing, Next: profopt Testing, Prev: libgcj Tests, Up: Testsuites
4690 6.4.6 Support for testing `gcov'
4691 --------------------------------
4693 Language-independent support for testing `gcov', and for checking that
4694 branch profiling produces expected values, is provided by the expect
4695 file `gcov.exp'. `gcov' tests also rely on procedures in `gcc.dg.exp'
4696 to compile and run the test program. A typical `gcov' test contains
4697 the following DejaGnu commands within comments:
4699 { dg-options "-fprofile-arcs -ftest-coverage" }
4700 { dg-do run { target native } }
4701 { dg-final { run-gcov sourcefile } }
4703 Checks of `gcov' output can include line counts, branch percentages,
4704 and call return percentages. All of these checks are requested via
4705 commands that appear in comments in the test's source file. Commands
4706 to check line counts are processed by default. Commands to check
4707 branch percentages and call return percentages are processed if the
4708 `run-gcov' command has arguments `branches' or `calls', respectively.
4709 For example, the following specifies checking both, as well as passing
4712 { dg-final { run-gcov branches calls { -b sourcefile } } }
4714 A line count command appears within a comment on the source line that
4715 is expected to get the specified count and has the form `count(CNT)'.
4716 A test should only check line counts for lines that will get the same
4717 count for any architecture.
4719 Commands to check branch percentages (`branch') and call return
4720 percentages (`returns') are very similar to each other. A beginning
4721 command appears on or before the first of a range of lines that will
4722 report the percentage, and the ending command follows that range of
4723 lines. The beginning command can include a list of percentages, all of
4724 which are expected to be found within the range. A range is terminated
4725 by the next command of the same kind. A command `branch(end)' or
4726 `returns(end)' marks the end of a range without starting a new one.
4729 if (i > 10 && j > i && j < 20) /* branch(27 50 75) */
4733 For a call return percentage, the value specified is the percentage of
4734 calls reported to return. For a branch percentage, the value is either
4735 the expected percentage or 100 minus that value, since the direction of
4736 a branch can differ depending on the target or the optimization level.
4738 Not all branches and calls need to be checked. A test should not
4739 check for branches that might be optimized away or replaced with
4740 predicated instructions. Don't check for calls inserted by the
4741 compiler or ones that might be inlined or optimized away.
4743 A single test can check for combinations of line counts, branch
4744 percentages, and call return percentages. The command to check a line
4745 count must appear on the line that will report that count, but commands
4746 to check branch percentages and call return percentages can bracket the
4747 lines that report them.
4750 File: gccint.info, Node: profopt Testing, Next: compat Testing, Prev: gcov Testing, Up: Testsuites
4752 6.4.7 Support for testing profile-directed optimizations
4753 --------------------------------------------------------
4755 The file `profopt.exp' provides language-independent support for
4756 checking correct execution of a test built with profile-directed
4757 optimization. This testing requires that a test program be built and
4758 executed twice. The first time it is compiled to generate profile
4759 data, and the second time it is compiled to use the data that was
4760 generated during the first execution. The second execution is to
4761 verify that the test produces the expected results.
4763 To check that the optimization actually generated better code, a test
4764 can be built and run a third time with normal optimizations to verify
4765 that the performance is better with the profile-directed optimizations.
4766 `profopt.exp' has the beginnings of this kind of support.
4768 `profopt.exp' provides generic support for profile-directed
4769 optimizations. Each set of tests that uses it provides information
4770 about a specific optimization:
4773 tool being tested, e.g., `gcc'
4776 options used to generate profile data
4779 options used to optimize using that profile data
4782 suffix of profile data files
4785 list of options with which to run each test, similar to the lists
4789 File: gccint.info, Node: compat Testing, Next: Torture Tests, Prev: profopt Testing, Up: Testsuites
4791 6.4.8 Support for testing binary compatibility
4792 ----------------------------------------------
4794 The file `compat.exp' provides language-independent support for binary
4795 compatibility testing. It supports testing interoperability of two
4796 compilers that follow the same ABI, or of multiple sets of compiler
4797 options that should not affect binary compatibility. It is intended to
4798 be used for testsuites that complement ABI testsuites.
4800 A test supported by this framework has three parts, each in a separate
4801 source file: a main program and two pieces that interact with each
4802 other to split up the functionality being tested.
4804 `TESTNAME_main.SUFFIX'
4805 Contains the main program, which calls a function in file
4806 `TESTNAME_x.SUFFIX'.
4809 Contains at least one call to a function in `TESTNAME_y.SUFFIX'.
4812 Shares data with, or gets arguments from, `TESTNAME_x.SUFFIX'.
4814 Within each test, the main program and one functional piece are
4815 compiled by the GCC under test. The other piece can be compiled by an
4816 alternate compiler. If no alternate compiler is specified, then all
4817 three source files are all compiled by the GCC under test. You can
4818 specify pairs of sets of compiler options. The first element of such a
4819 pair specifies options used with the GCC under test, and the second
4820 element of the pair specifies options used with the alternate compiler.
4821 Each test is compiled with each pair of options.
4823 `compat.exp' defines default pairs of compiler options. These can be
4824 overridden by defining the environment variable `COMPAT_OPTIONS' as:
4826 COMPAT_OPTIONS="[list [list {TST1} {ALT1}]
4827 ...[list {TSTN} {ALTN}]]"
4829 where TSTI and ALTI are lists of options, with TSTI used by the
4830 compiler under test and ALTI used by the alternate compiler. For
4831 example, with `[list [list {-g -O0} {-O3}] [list {-fpic} {-fPIC -O2}]]',
4832 the test is first built with `-g -O0' by the compiler under test and
4833 with `-O3' by the alternate compiler. The test is built a second time
4834 using `-fpic' by the compiler under test and `-fPIC -O2' by the
4837 An alternate compiler is specified by defining an environment variable
4838 to be the full pathname of an installed compiler; for C define
4839 `ALT_CC_UNDER_TEST', and for C++ define `ALT_CXX_UNDER_TEST'. These
4840 will be written to the `site.exp' file used by DejaGnu. The default is
4841 to build each test with the compiler under test using the first of each
4842 pair of compiler options from `COMPAT_OPTIONS'. When
4843 `ALT_CC_UNDER_TEST' or `ALT_CXX_UNDER_TEST' is `same', each test is
4844 built using the compiler under test but with combinations of the
4845 options from `COMPAT_OPTIONS'.
4847 To run only the C++ compatibility suite using the compiler under test
4848 and another version of GCC using specific compiler options, do the
4849 following from `OBJDIR/gcc':
4853 ALT_CXX_UNDER_TEST=${alt_prefix}/bin/g++ \
4854 COMPAT_OPTIONS="lists as shown above" \
4856 RUNTESTFLAGS="compat.exp"
4858 A test that fails when the source files are compiled with different
4859 compilers, but passes when the files are compiled with the same
4860 compiler, demonstrates incompatibility of the generated code or runtime
4861 support. A test that fails for the alternate compiler but passes for
4862 the compiler under test probably tests for a bug that was fixed in the
4863 compiler under test but is present in the alternate compiler.
4865 The binary compatibility tests support a small number of test framework
4866 commands that appear within comments in a test file.
4869 These commands can be used in `TESTNAME_main.SUFFIX' to skip the
4870 test if specific support is not available on the target.
4873 The specified options are used for compiling this particular source
4874 file, appended to the options from `COMPAT_OPTIONS'. When this
4875 command appears in `TESTNAME_main.SUFFIX' the options are also
4876 used to link the test program.
4879 This command can be used in a secondary source file to specify that
4880 compilation is expected to fail for particular options on
4884 File: gccint.info, Node: Torture Tests, Prev: compat Testing, Up: Testsuites
4886 6.4.9 Support for torture testing using multiple options
4887 --------------------------------------------------------
4889 Throughout the compiler testsuite there are several directories whose
4890 tests are run multiple times, each with a different set of options.
4891 These are known as torture tests.
4892 `gcc/testsuite/lib/torture-options.exp' defines procedures to set up
4896 Initialize use of torture lists.
4898 `set-torture-options'
4899 Set lists of torture options to use for tests with and without
4900 loops. Optionally combine a set of torture options with a set of
4901 other options, as is done with Objective-C runtime options.
4904 Finalize use of torture lists.
4906 The `.exp' file for a set of tests that use torture options must
4907 include calls to these three procedures if:
4909 * It calls `gcc-dg-runtest' and overrides DG_TORTURE_OPTIONS.
4911 * It calls ${TOOL}`-torture' or ${TOOL}`-torture-execute', where
4912 TOOL is `c', `fortran', or `objc'.
4914 * It calls `dg-pch'.
4916 It is not necessary for a `.exp' file that calls `gcc-dg-runtest' to
4917 call the torture procedures if the tests should use the list in
4918 DG_TORTURE_OPTIONS defined in `gcc-dg.exp'.
4920 Most uses of torture options can override the default lists by defining
4921 TORTURE_OPTIONS or add to the default list by defining
4922 ADDITIONAL_TORTURE_OPTIONS. Define these in a `.dejagnurc' file or add
4923 them to the `site.exp' file; for example
4925 set ADDITIONAL_TORTURE_OPTIONS [list \
4926 { -O2 -ftree-loop-linear } \
4927 { -O2 -fpeel-loops } ]
4930 File: gccint.info, Node: Options, Next: Passes, Prev: Source Tree, Up: Top
4932 7 Option specification files
4933 ****************************
4935 Most GCC command-line options are described by special option
4936 definition files, the names of which conventionally end in `.opt'.
4937 This chapter describes the format of these files.
4941 * Option file format:: The general layout of the files
4942 * Option properties:: Supported option properties
4945 File: gccint.info, Node: Option file format, Next: Option properties, Up: Options
4947 7.1 Option file format
4948 ======================
4950 Option files are a simple list of records in which each field occupies
4951 its own line and in which the records themselves are separated by blank
4952 lines. Comments may appear on their own line anywhere within the file
4953 and are preceded by semicolons. Whitespace is allowed before the
4956 The files can contain the following types of record:
4958 * A language definition record. These records have two fields: the
4959 string `Language' and the name of the language. Once a language
4960 has been declared in this way, it can be used as an option
4961 property. *Note Option properties::.
4963 * A target specific save record to save additional information. These
4964 records have two fields: the string `TargetSave', and a
4965 declaration type to go in the `cl_target_option' structure.
4967 * An option definition record. These records have the following
4969 1. the name of the option, with the leading "-" removed
4971 2. a space-separated list of option properties (*note Option
4974 3. the help text to use for `--help' (omitted if the second field
4975 contains the `Undocumented' property).
4977 By default, all options beginning with "f", "W" or "m" are
4978 implicitly assumed to take a "no-" form. This form should not be
4979 listed separately. If an option beginning with one of these
4980 letters does not have a "no-" form, you can use the
4981 `RejectNegative' property to reject it.
4983 The help text is automatically line-wrapped before being displayed.
4984 Normally the name of the option is printed on the left-hand side of
4985 the output and the help text is printed on the right. However, if
4986 the help text contains a tab character, the text to the left of
4987 the tab is used instead of the option's name and the text to the
4988 right of the tab forms the help text. This allows you to
4989 elaborate on what type of argument the option takes.
4991 * A target mask record. These records have one field of the form
4992 `Mask(X)'. The options-processing script will automatically
4993 allocate a bit in `target_flags' (*note Run-time Target::) for
4994 each mask name X and set the macro `MASK_X' to the appropriate
4995 bitmask. It will also declare a `TARGET_X' macro that has the
4996 value 1 when bit `MASK_X' is set and 0 otherwise.
4998 They are primarily intended to declare target masks that are not
4999 associated with user options, either because these masks represent
5000 internal switches or because the options are not available on all
5001 configurations and yet the masks always need to be defined.
5004 File: gccint.info, Node: Option properties, Prev: Option file format, Up: Options
5006 7.2 Option properties
5007 =====================
5009 The second field of an option record can specify the following
5013 The option is available for all languages and targets.
5016 The option is available for all languages but is target-specific.
5019 The option is available when compiling for the given language.
5021 It is possible to specify several different languages for the same
5022 option. Each LANGUAGE must have been declared by an earlier
5023 `Language' record. *Note Option file format::.
5026 The option does not have a "no-" form. All options beginning with
5027 "f", "W" or "m" are assumed to have a "no-" form unless this
5030 `Negative(OTHERNAME)'
5031 The option will turn off another option OTHERNAME, which is the
5032 the option name with the leading "-" removed. This chain action
5033 will propagate through the `Negative' property of the option to be
5038 The option takes a mandatory argument. `Joined' indicates that
5039 the option and argument can be included in the same `argv' entry
5040 (as with `-mflush-func=NAME', for example). `Separate' indicates
5041 that the option and argument can be separate `argv' entries (as
5042 with `-o'). An option is allowed to have both of these properties.
5045 The option takes an optional argument. If the argument is given,
5046 it will be part of the same `argv' entry as the option itself.
5048 This property cannot be used alongside `Joined' or `Separate'.
5051 The option's argument is a non-negative integer. The option parser
5052 will check and convert the argument before passing it to the
5053 relevant option handler. `UInteger' should also be used on
5054 options like `-falign-loops' where both `-falign-loops' and
5055 `-falign-loops'=N are supported to make sure the saved options are
5056 given a full integer.
5059 The state of this option should be stored in variable VAR. The
5060 way that the state is stored depends on the type of option:
5062 * If the option uses the `Mask' or `InverseMask' properties,
5063 VAR is the integer variable that contains the mask.
5065 * If the option is a normal on/off switch, VAR is an integer
5066 variable that is nonzero when the option is enabled. The
5067 options parser will set the variable to 1 when the positive
5068 form of the option is used and 0 when the "no-" form is used.
5070 * If the option takes an argument and has the `UInteger'
5071 property, VAR is an integer variable that stores the value of
5074 * Otherwise, if the option takes an argument, VAR is a pointer
5075 to the argument string. The pointer will be null if the
5076 argument is optional and wasn't given.
5078 The option-processing script will usually declare VAR in
5079 `options.c' and leave it to be zero-initialized at start-up time.
5080 You can modify this behavior using `VarExists' and `Init'.
5083 The option controls an integer variable VAR and is active when VAR
5084 equals SET. The option parser will set VAR to SET when the
5085 positive form of the option is used and `!SET' when the "no-" form
5088 VAR is declared in the same way as for the single-argument form
5092 The variable specified by the `Var' property already exists. No
5093 definition should be added to `options.c' in response to this
5096 You should use this property only if the variable is declared
5097 outside `options.c'.
5100 The variable specified by the `Var' property should be statically
5101 initialized to VALUE.
5104 The option is associated with a bit in the `target_flags' variable
5105 (*note Run-time Target::) and is active when that bit is set. You
5106 may also specify `Var' to select a variable other than
5109 The options-processing script will automatically allocate a unique
5110 bit for the option. If the option is attached to `target_flags',
5111 the script will set the macro `MASK_NAME' to the appropriate
5112 bitmask. It will also declare a `TARGET_NAME' macro that has the
5113 value 1 when the option is active and 0 otherwise. If you use
5114 `Var' to attach the option to a different variable, the associated
5115 macros are called `OPTION_MASK_NAME' and `OPTION_NAME'
5118 You can disable automatic bit allocation using `MaskExists'.
5120 `InverseMask(OTHERNAME)'
5121 `InverseMask(OTHERNAME, THISNAME)'
5122 The option is the inverse of another option that has the
5123 `Mask(OTHERNAME)' property. If THISNAME is given, the
5124 options-processing script will declare a `TARGET_THISNAME' macro
5125 that is 1 when the option is active and 0 otherwise.
5128 The mask specified by the `Mask' property already exists. No
5129 `MASK' or `TARGET' definitions should be added to `options.h' in
5130 response to this option record.
5132 The main purpose of this property is to support synonymous options.
5133 The first option should use `Mask(NAME)' and the others should use
5134 `Mask(NAME) MaskExists'.
5137 The state of the option should be printed by `-fverbose-asm'.
5140 The option is deliberately missing documentation and should not be
5141 included in the `--help' output.
5144 The option should only be accepted if preprocessor condition COND
5145 is true. Note that any C declarations associated with the option
5146 will be present even if COND is false; COND simply controls
5147 whether the option is accepted and whether it is printed in the
5151 Build the `cl_target_option' structure to hold a copy of the
5152 option, add the functions `cl_target_option_save' and
5153 `cl_target_option_restore' to save and restore the options.
5156 File: gccint.info, Node: Passes, Next: Trees, Prev: Options, Up: Top
5158 8 Passes and Files of the Compiler
5159 **********************************
5161 This chapter is dedicated to giving an overview of the optimization and
5162 code generation passes of the compiler. In the process, it describes
5163 some of the language front end interface, though this description is no
5164 where near complete.
5168 * Parsing pass:: The language front end turns text into bits.
5169 * Gimplification pass:: The bits are turned into something we can optimize.
5170 * Pass manager:: Sequencing the optimization passes.
5171 * Tree-SSA passes:: Optimizations on a high-level representation.
5172 * RTL passes:: Optimizations on a low-level representation.
5175 File: gccint.info, Node: Parsing pass, Next: Gimplification pass, Up: Passes
5180 The language front end is invoked only once, via
5181 `lang_hooks.parse_file', to parse the entire input. The language front
5182 end may use any intermediate language representation deemed
5183 appropriate. The C front end uses GENERIC trees (CROSSREF), plus a
5184 double handful of language specific tree codes defined in
5185 `c-common.def'. The Fortran front end uses a completely different
5186 private representation.
5188 At some point the front end must translate the representation used in
5189 the front end to a representation understood by the language-independent
5190 portions of the compiler. Current practice takes one of two forms.
5191 The C front end manually invokes the gimplifier (CROSSREF) on each
5192 function, and uses the gimplifier callbacks to convert the
5193 language-specific tree nodes directly to GIMPLE (CROSSREF) before
5194 passing the function off to be compiled. The Fortran front end
5195 converts from a private representation to GENERIC, which is later
5196 lowered to GIMPLE when the function is compiled. Which route to choose
5197 probably depends on how well GENERIC (plus extensions) can be made to
5198 match up with the source language and necessary parsing data structures.
5200 BUG: Gimplification must occur before nested function lowering, and
5201 nested function lowering must be done by the front end before passing
5202 the data off to cgraph.
5204 TODO: Cgraph should control nested function lowering. It would only
5205 be invoked when it is certain that the outer-most function is used.
5207 TODO: Cgraph needs a gimplify_function callback. It should be invoked
5208 when (1) it is certain that the function is used, (2) warning flags
5209 specified by the user require some amount of compilation in order to
5210 honor, (3) the language indicates that semantic analysis is not
5211 complete until gimplification occurs. Hum... this sounds overly
5212 complicated. Perhaps we should just have the front end gimplify
5213 always; in most cases it's only one function call.
5215 The front end needs to pass all function definitions and top level
5216 declarations off to the middle-end so that they can be compiled and
5217 emitted to the object file. For a simple procedural language, it is
5218 usually most convenient to do this as each top level declaration or
5219 definition is seen. There is also a distinction to be made between
5220 generating functional code and generating complete debug information.
5221 The only thing that is absolutely required for functional code is that
5222 function and data _definitions_ be passed to the middle-end. For
5223 complete debug information, function, data and type declarations should
5224 all be passed as well.
5226 In any case, the front end needs each complete top-level function or
5227 data declaration, and each data definition should be passed to
5228 `rest_of_decl_compilation'. Each complete type definition should be
5229 passed to `rest_of_type_compilation'. Each function definition should
5230 be passed to `cgraph_finalize_function'.
5232 TODO: I know rest_of_compilation currently has all sorts of
5233 rtl-generation semantics. I plan to move all code generation bits
5234 (both tree and rtl) to compile_function. Should we hide cgraph from
5235 the front ends and move back to rest_of_compilation as the official
5236 interface? Possibly we should rename all three interfaces such that
5237 the names match in some meaningful way and that is more descriptive
5240 The middle-end will, at its option, emit the function and data
5241 definitions immediately or queue them for later processing.
5244 File: gccint.info, Node: Gimplification pass, Next: Pass manager, Prev: Parsing pass, Up: Passes
5246 8.2 Gimplification pass
5247 =======================
5249 "Gimplification" is a whimsical term for the process of converting the
5250 intermediate representation of a function into the GIMPLE language
5251 (CROSSREF). The term stuck, and so words like "gimplification",
5252 "gimplify", "gimplifier" and the like are sprinkled throughout this
5255 While a front end may certainly choose to generate GIMPLE directly if
5256 it chooses, this can be a moderately complex process unless the
5257 intermediate language used by the front end is already fairly simple.
5258 Usually it is easier to generate GENERIC trees plus extensions and let
5259 the language-independent gimplifier do most of the work.
5261 The main entry point to this pass is `gimplify_function_tree' located
5262 in `gimplify.c'. From here we process the entire function gimplifying
5263 each statement in turn. The main workhorse for this pass is
5264 `gimplify_expr'. Approximately everything passes through here at least
5265 once, and it is from here that we invoke the `lang_hooks.gimplify_expr'
5268 The callback should examine the expression in question and return
5269 `GS_UNHANDLED' if the expression is not a language specific construct
5270 that requires attention. Otherwise it should alter the expression in
5271 some way to such that forward progress is made toward producing valid
5272 GIMPLE. If the callback is certain that the transformation is complete
5273 and the expression is valid GIMPLE, it should return `GS_ALL_DONE'.
5274 Otherwise it should return `GS_OK', which will cause the expression to
5275 be processed again. If the callback encounters an error during the
5276 transformation (because the front end is relying on the gimplification
5277 process to finish semantic checks), it should return `GS_ERROR'.
5280 File: gccint.info, Node: Pass manager, Next: Tree-SSA passes, Prev: Gimplification pass, Up: Passes
5285 The pass manager is located in `passes.c', `tree-optimize.c' and
5286 `tree-pass.h'. Its job is to run all of the individual passes in the
5287 correct order, and take care of standard bookkeeping that applies to
5290 The theory of operation is that each pass defines a structure that
5291 represents everything we need to know about that pass--when it should
5292 be run, how it should be run, what intermediate language form or
5293 on-the-side data structures it needs. We register the pass to be run
5294 in some particular order, and the pass manager arranges for everything
5295 to happen in the correct order.
5297 The actuality doesn't completely live up to the theory at present.
5298 Command-line switches and `timevar_id_t' enumerations must still be
5299 defined elsewhere. The pass manager validates constraints but does not
5300 attempt to (re-)generate data structures or lower intermediate language
5301 form based on the requirements of the next pass. Nevertheless, what is
5302 present is useful, and a far sight better than nothing at all.
5304 Each pass may have its own dump file (for GCC debugging purposes).
5305 Passes without any names, or with a name starting with a star, do not
5308 TODO: describe the global variables set up by the pass manager, and a
5309 brief description of how a new pass should use it. I need to look at
5310 what info rtl passes use first....
5313 File: gccint.info, Node: Tree-SSA passes, Next: RTL passes, Prev: Pass manager, Up: Passes
5318 The following briefly describes the tree optimization passes that are
5319 run after gimplification and what source files they are located in.
5321 * Remove useless statements
5323 This pass is an extremely simple sweep across the gimple code in
5324 which we identify obviously dead code and remove it. Here we do
5325 things like simplify `if' statements with constant conditions,
5326 remove exception handling constructs surrounding code that
5327 obviously cannot throw, remove lexical bindings that contain no
5328 variables, and other assorted simplistic cleanups. The idea is to
5329 get rid of the obvious stuff quickly rather than wait until later
5330 when it's more work to get rid of it. This pass is located in
5331 `tree-cfg.c' and described by `pass_remove_useless_stmts'.
5333 * Mudflap declaration registration
5335 If mudflap (*note -fmudflap -fmudflapth -fmudflapir: (gcc)Optimize
5336 Options.) is enabled, we generate code to register some variable
5337 declarations with the mudflap runtime. Specifically, the runtime
5338 tracks the lifetimes of those variable declarations that have
5339 their addresses taken, or whose bounds are unknown at compile time
5340 (`extern'). This pass generates new exception handling constructs
5341 (`try'/`finally'), and so must run before those are lowered. In
5342 addition, the pass enqueues declarations of static variables whose
5343 lifetimes extend to the entire program. The pass is located in
5344 `tree-mudflap.c' and is described by `pass_mudflap_1'.
5348 If OpenMP generation (`-fopenmp') is enabled, this pass lowers
5349 OpenMP constructs into GIMPLE.
5351 Lowering of OpenMP constructs involves creating replacement
5352 expressions for local variables that have been mapped using data
5353 sharing clauses, exposing the control flow of most synchronization
5354 directives and adding region markers to facilitate the creation of
5355 the control flow graph. The pass is located in `omp-low.c' and is
5356 described by `pass_lower_omp'.
5360 If OpenMP generation (`-fopenmp') is enabled, this pass expands
5361 parallel regions into their own functions to be invoked by the
5362 thread library. The pass is located in `omp-low.c' and is
5363 described by `pass_expand_omp'.
5365 * Lower control flow
5367 This pass flattens `if' statements (`COND_EXPR') and moves lexical
5368 bindings (`BIND_EXPR') out of line. After this pass, all `if'
5369 statements will have exactly two `goto' statements in its `then'
5370 and `else' arms. Lexical binding information for each statement
5371 will be found in `TREE_BLOCK' rather than being inferred from its
5372 position under a `BIND_EXPR'. This pass is found in
5373 `gimple-low.c' and is described by `pass_lower_cf'.
5375 * Lower exception handling control flow
5377 This pass decomposes high-level exception handling constructs
5378 (`TRY_FINALLY_EXPR' and `TRY_CATCH_EXPR') into a form that
5379 explicitly represents the control flow involved. After this pass,
5380 `lookup_stmt_eh_region' will return a non-negative number for any
5381 statement that may have EH control flow semantics; examine
5382 `tree_can_throw_internal' or `tree_can_throw_external' for exact
5383 semantics. Exact control flow may be extracted from
5384 `foreach_reachable_handler'. The EH region nesting tree is defined
5385 in `except.h' and built in `except.c'. The lowering pass itself
5386 is in `tree-eh.c' and is described by `pass_lower_eh'.
5388 * Build the control flow graph
5390 This pass decomposes a function into basic blocks and creates all
5391 of the edges that connect them. It is located in `tree-cfg.c' and
5392 is described by `pass_build_cfg'.
5394 * Find all referenced variables
5396 This pass walks the entire function and collects an array of all
5397 variables referenced in the function, `referenced_vars'. The
5398 index at which a variable is found in the array is used as a UID
5399 for the variable within this function. This data is needed by the
5400 SSA rewriting routines. The pass is located in `tree-dfa.c' and
5401 is described by `pass_referenced_vars'.
5403 * Enter static single assignment form
5405 This pass rewrites the function such that it is in SSA form. After
5406 this pass, all `is_gimple_reg' variables will be referenced by
5407 `SSA_NAME', and all occurrences of other variables will be
5408 annotated with `VDEFS' and `VUSES'; PHI nodes will have been
5409 inserted as necessary for each basic block. This pass is located
5410 in `tree-ssa.c' and is described by `pass_build_ssa'.
5412 * Warn for uninitialized variables
5414 This pass scans the function for uses of `SSA_NAME's that are fed
5415 by default definition. For non-parameter variables, such uses are
5416 uninitialized. The pass is run twice, before and after
5417 optimization (if turned on). In the first pass we only warn for
5418 uses that are positively uninitialized; in the second pass we warn
5419 for uses that are possibly uninitialized. The pass is located in
5420 `tree-ssa.c' and is defined by `pass_early_warn_uninitialized' and
5421 `pass_late_warn_uninitialized'.
5423 * Dead code elimination
5425 This pass scans the function for statements without side effects
5426 whose result is unused. It does not do memory life analysis, so
5427 any value that is stored in memory is considered used. The pass
5428 is run multiple times throughout the optimization process. It is
5429 located in `tree-ssa-dce.c' and is described by `pass_dce'.
5431 * Dominator optimizations
5433 This pass performs trivial dominator-based copy and constant
5434 propagation, expression simplification, and jump threading. It is
5435 run multiple times throughout the optimization process. It it
5436 located in `tree-ssa-dom.c' and is described by `pass_dominator'.
5438 * Forward propagation of single-use variables
5440 This pass attempts to remove redundant computation by substituting
5441 variables that are used once into the expression that uses them and
5442 seeing if the result can be simplified. It is located in
5443 `tree-ssa-forwprop.c' and is described by `pass_forwprop'.
5447 This pass attempts to change the name of compiler temporaries
5448 involved in copy operations such that SSA->normal can coalesce the
5449 copy away. When compiler temporaries are copies of user
5450 variables, it also renames the compiler temporary to the user
5451 variable resulting in better use of user symbols. It is located
5452 in `tree-ssa-copyrename.c' and is described by `pass_copyrename'.
5454 * PHI node optimizations
5456 This pass recognizes forms of PHI inputs that can be represented as
5457 conditional expressions and rewrites them into straight line code.
5458 It is located in `tree-ssa-phiopt.c' and is described by
5461 * May-alias optimization
5463 This pass performs a flow sensitive SSA-based points-to analysis.
5464 The resulting may-alias, must-alias, and escape analysis
5465 information is used to promote variables from in-memory
5466 addressable objects to non-aliased variables that can be renamed
5467 into SSA form. We also update the `VDEF'/`VUSE' memory tags for
5468 non-renameable aggregates so that we get fewer false kills. The
5469 pass is located in `tree-ssa-alias.c' and is described by
5472 Interprocedural points-to information is located in
5473 `tree-ssa-structalias.c' and described by `pass_ipa_pta'.
5477 This pass rewrites the function in order to collect runtime block
5478 and value profiling data. Such data may be fed back into the
5479 compiler on a subsequent run so as to allow optimization based on
5480 expected execution frequencies. The pass is located in
5481 `predict.c' and is described by `pass_profile'.
5483 * Lower complex arithmetic
5485 This pass rewrites complex arithmetic operations into their
5486 component scalar arithmetic operations. The pass is located in
5487 `tree-complex.c' and is described by `pass_lower_complex'.
5489 * Scalar replacement of aggregates
5491 This pass rewrites suitable non-aliased local aggregate variables
5492 into a set of scalar variables. The resulting scalar variables are
5493 rewritten into SSA form, which allows subsequent optimization
5494 passes to do a significantly better job with them. The pass is
5495 located in `tree-sra.c' and is described by `pass_sra'.
5497 * Dead store elimination
5499 This pass eliminates stores to memory that are subsequently
5500 overwritten by another store, without any intervening loads. The
5501 pass is located in `tree-ssa-dse.c' and is described by `pass_dse'.
5503 * Tail recursion elimination
5505 This pass transforms tail recursion into a loop. It is located in
5506 `tree-tailcall.c' and is described by `pass_tail_recursion'.
5508 * Forward store motion
5510 This pass sinks stores and assignments down the flowgraph closer
5511 to their use point. The pass is located in `tree-ssa-sink.c' and
5512 is described by `pass_sink_code'.
5514 * Partial redundancy elimination
5516 This pass eliminates partially redundant computations, as well as
5517 performing load motion. The pass is located in `tree-ssa-pre.c'
5518 and is described by `pass_pre'.
5520 Just before partial redundancy elimination, if
5521 `-funsafe-math-optimizations' is on, GCC tries to convert
5522 divisions to multiplications by the reciprocal. The pass is
5523 located in `tree-ssa-math-opts.c' and is described by
5524 `pass_cse_reciprocal'.
5526 * Full redundancy elimination
5528 This is a simpler form of PRE that only eliminates redundancies
5529 that occur an all paths. It is located in `tree-ssa-pre.c' and
5530 described by `pass_fre'.
5534 The main driver of the pass is placed in `tree-ssa-loop.c' and
5535 described by `pass_loop'.
5537 The optimizations performed by this pass are:
5539 Loop invariant motion. This pass moves only invariants that would
5540 be hard to handle on rtl level (function calls, operations that
5541 expand to nontrivial sequences of insns). With `-funswitch-loops'
5542 it also moves operands of conditions that are invariant out of the
5543 loop, so that we can use just trivial invariantness analysis in
5544 loop unswitching. The pass also includes store motion. The pass
5545 is implemented in `tree-ssa-loop-im.c'.
5547 Canonical induction variable creation. This pass creates a simple
5548 counter for number of iterations of the loop and replaces the exit
5549 condition of the loop using it, in case when a complicated
5550 analysis is necessary to determine the number of iterations.
5551 Later optimizations then may determine the number easily. The
5552 pass is implemented in `tree-ssa-loop-ivcanon.c'.
5554 Induction variable optimizations. This pass performs standard
5555 induction variable optimizations, including strength reduction,
5556 induction variable merging and induction variable elimination.
5557 The pass is implemented in `tree-ssa-loop-ivopts.c'.
5559 Loop unswitching. This pass moves the conditional jumps that are
5560 invariant out of the loops. To achieve this, a duplicate of the
5561 loop is created for each possible outcome of conditional jump(s).
5562 The pass is implemented in `tree-ssa-loop-unswitch.c'. This pass
5563 should eventually replace the rtl-level loop unswitching in
5564 `loop-unswitch.c', but currently the rtl-level pass is not
5565 completely redundant yet due to deficiencies in tree level alias
5568 The optimizations also use various utility functions contained in
5569 `tree-ssa-loop-manip.c', `cfgloop.c', `cfgloopanal.c' and
5572 Vectorization. This pass transforms loops to operate on vector
5573 types instead of scalar types. Data parallelism across loop
5574 iterations is exploited to group data elements from consecutive
5575 iterations into a vector and operate on them in parallel.
5576 Depending on available target support the loop is conceptually
5577 unrolled by a factor `VF' (vectorization factor), which is the
5578 number of elements operated upon in parallel in each iteration,
5579 and the `VF' copies of each scalar operation are fused to form a
5580 vector operation. Additional loop transformations such as peeling
5581 and versioning may take place to align the number of iterations,
5582 and to align the memory accesses in the loop. The pass is
5583 implemented in `tree-vectorizer.c' (the main driver and general
5584 utilities), `tree-vect-analyze.c' and `tree-vect-transform.c'.
5585 Analysis of data references is in `tree-data-ref.c'.
5587 Autoparallelization. This pass splits the loop iteration space to
5588 run into several threads. The pass is implemented in
5591 * Tree level if-conversion for vectorizer
5593 This pass applies if-conversion to simple loops to help vectorizer.
5594 We identify if convertible loops, if-convert statements and merge
5595 basic blocks in one big block. The idea is to present loop in such
5596 form so that vectorizer can have one to one mapping between
5597 statements and available vector operations. This patch
5598 re-introduces COND_EXPR at GIMPLE level. This pass is located in
5599 `tree-if-conv.c' and is described by `pass_if_conversion'.
5601 * Conditional constant propagation
5603 This pass relaxes a lattice of values in order to identify those
5604 that must be constant even in the presence of conditional branches.
5605 The pass is located in `tree-ssa-ccp.c' and is described by
5608 A related pass that works on memory loads and stores, and not just
5609 register values, is located in `tree-ssa-ccp.c' and described by
5612 * Conditional copy propagation
5614 This is similar to constant propagation but the lattice of values
5615 is the "copy-of" relation. It eliminates redundant copies from the
5616 code. The pass is located in `tree-ssa-copy.c' and described by
5619 A related pass that works on memory copies, and not just register
5620 copies, is located in `tree-ssa-copy.c' and described by
5621 `pass_store_copy_prop'.
5623 * Value range propagation
5625 This transformation is similar to constant propagation but instead
5626 of propagating single constant values, it propagates known value
5627 ranges. The implementation is based on Patterson's range
5628 propagation algorithm (Accurate Static Branch Prediction by Value
5629 Range Propagation, J. R. C. Patterson, PLDI '95). In contrast to
5630 Patterson's algorithm, this implementation does not propagate
5631 branch probabilities nor it uses more than a single range per SSA
5632 name. This means that the current implementation cannot be used
5633 for branch prediction (though adapting it would not be difficult).
5634 The pass is located in `tree-vrp.c' and is described by
5637 * Folding built-in functions
5639 This pass simplifies built-in functions, as applicable, with
5640 constant arguments or with inferable string lengths. It is
5641 located in `tree-ssa-ccp.c' and is described by
5642 `pass_fold_builtins'.
5644 * Split critical edges
5646 This pass identifies critical edges and inserts empty basic blocks
5647 such that the edge is no longer critical. The pass is located in
5648 `tree-cfg.c' and is described by `pass_split_crit_edges'.
5650 * Control dependence dead code elimination
5652 This pass is a stronger form of dead code elimination that can
5653 eliminate unnecessary control flow statements. It is located in
5654 `tree-ssa-dce.c' and is described by `pass_cd_dce'.
5656 * Tail call elimination
5658 This pass identifies function calls that may be rewritten into
5659 jumps. No code transformation is actually applied here, but the
5660 data and control flow problem is solved. The code transformation
5661 requires target support, and so is delayed until RTL. In the
5662 meantime `CALL_EXPR_TAILCALL' is set indicating the possibility.
5663 The pass is located in `tree-tailcall.c' and is described by
5664 `pass_tail_calls'. The RTL transformation is handled by
5665 `fixup_tail_calls' in `calls.c'.
5667 * Warn for function return without value
5669 For non-void functions, this pass locates return statements that do
5670 not specify a value and issues a warning. Such a statement may
5671 have been injected by falling off the end of the function. This
5672 pass is run last so that we have as much time as possible to prove
5673 that the statement is not reachable. It is located in
5674 `tree-cfg.c' and is described by `pass_warn_function_return'.
5676 * Mudflap statement annotation
5678 If mudflap is enabled, we rewrite some memory accesses with code to
5679 validate that the memory access is correct. In particular,
5680 expressions involving pointer dereferences (`INDIRECT_REF',
5681 `ARRAY_REF', etc.) are replaced by code that checks the selected
5682 address range against the mudflap runtime's database of valid
5683 regions. This check includes an inline lookup into a
5684 direct-mapped cache, based on shift/mask operations of the pointer
5685 value, with a fallback function call into the runtime. The pass
5686 is located in `tree-mudflap.c' and is described by
5689 * Leave static single assignment form
5691 This pass rewrites the function such that it is in normal form. At
5692 the same time, we eliminate as many single-use temporaries as
5693 possible, so the intermediate language is no longer GIMPLE, but
5694 GENERIC. The pass is located in `tree-outof-ssa.c' and is
5695 described by `pass_del_ssa'.
5697 * Merge PHI nodes that feed into one another
5699 This is part of the CFG cleanup passes. It attempts to join PHI
5700 nodes from a forwarder CFG block into another block with PHI
5701 nodes. The pass is located in `tree-cfgcleanup.c' and is
5702 described by `pass_merge_phi'.
5704 * Return value optimization
5706 If a function always returns the same local variable, and that
5707 local variable is an aggregate type, then the variable is replaced
5708 with the return value for the function (i.e., the function's
5709 DECL_RESULT). This is equivalent to the C++ named return value
5710 optimization applied to GIMPLE. The pass is located in
5711 `tree-nrv.c' and is described by `pass_nrv'.
5713 * Return slot optimization
5715 If a function returns a memory object and is called as `var =
5716 foo()', this pass tries to change the call so that the address of
5717 `var' is sent to the caller to avoid an extra memory copy. This
5718 pass is located in `tree-nrv.c' and is described by
5721 * Optimize calls to `__builtin_object_size'
5723 This is a propagation pass similar to CCP that tries to remove
5724 calls to `__builtin_object_size' when the size of the object can be
5725 computed at compile-time. This pass is located in
5726 `tree-object-size.c' and is described by `pass_object_sizes'.
5728 * Loop invariant motion
5730 This pass removes expensive loop-invariant computations out of
5731 loops. The pass is located in `tree-ssa-loop.c' and described by
5734 * Loop nest optimizations
5736 This is a family of loop transformations that works on loop nests.
5737 It includes loop interchange, scaling, skewing and reversal and
5738 they are all geared to the optimization of data locality in array
5739 traversals and the removal of dependencies that hamper
5740 optimizations such as loop parallelization and vectorization. The
5741 pass is located in `tree-loop-linear.c' and described by
5742 `pass_linear_transform'.
5744 * Removal of empty loops
5746 This pass removes loops with no code in them. The pass is located
5747 in `tree-ssa-loop-ivcanon.c' and described by `pass_empty_loop'.
5749 * Unrolling of small loops
5751 This pass completely unrolls loops with few iterations. The pass
5752 is located in `tree-ssa-loop-ivcanon.c' and described by
5753 `pass_complete_unroll'.
5755 * Predictive commoning
5757 This pass makes the code reuse the computations from the previous
5758 iterations of the loops, especially loads and stores to memory.
5759 It does so by storing the values of these computations to a bank
5760 of temporary variables that are rotated at the end of loop. To
5761 avoid the need for this rotation, the loop is then unrolled and
5762 the copies of the loop body are rewritten to use the appropriate
5763 version of the temporary variable. This pass is located in
5764 `tree-predcom.c' and described by `pass_predcom'.
5768 This pass issues prefetch instructions for array references inside
5769 loops. The pass is located in `tree-ssa-loop-prefetch.c' and
5770 described by `pass_loop_prefetch'.
5774 This pass rewrites arithmetic expressions to enable optimizations
5775 that operate on them, like redundancy elimination and
5776 vectorization. The pass is located in `tree-ssa-reassoc.c' and
5777 described by `pass_reassoc'.
5779 * Optimization of `stdarg' functions
5781 This pass tries to avoid the saving of register arguments into the
5782 stack on entry to `stdarg' functions. If the function doesn't use
5783 any `va_start' macros, no registers need to be saved. If
5784 `va_start' macros are used, the `va_list' variables don't escape
5785 the function, it is only necessary to save registers that will be
5786 used in `va_arg' macros. For instance, if `va_arg' is only used
5787 with integral types in the function, floating point registers
5788 don't need to be saved. This pass is located in `tree-stdarg.c'
5789 and described by `pass_stdarg'.
5793 File: gccint.info, Node: RTL passes, Prev: Tree-SSA passes, Up: Passes
5798 The following briefly describes the rtl generation and optimization
5799 passes that are run after tree optimization.
5803 The source files for RTL generation include `stmt.c', `calls.c',
5804 `expr.c', `explow.c', `expmed.c', `function.c', `optabs.c' and
5805 `emit-rtl.c'. Also, the file `insn-emit.c', generated from the
5806 machine description by the program `genemit', is used in this
5807 pass. The header file `expr.h' is used for communication within
5810 The header files `insn-flags.h' and `insn-codes.h', generated from
5811 the machine description by the programs `genflags' and `gencodes',
5812 tell this pass which standard names are available for use and
5813 which patterns correspond to them.
5815 * Generate exception handling landing pads
5817 This pass generates the glue that handles communication between the
5818 exception handling library routines and the exception handlers
5819 within the function. Entry points in the function that are
5820 invoked by the exception handling library are called "landing
5821 pads". The code for this pass is located within `except.c'.
5823 * Cleanup control flow graph
5825 This pass removes unreachable code, simplifies jumps to next,
5826 jumps to jump, jumps across jumps, etc. The pass is run multiple
5827 times. For historical reasons, it is occasionally referred to as
5828 the "jump optimization pass". The bulk of the code for this pass
5829 is in `cfgcleanup.c', and there are support routines in `cfgrtl.c'
5832 * Forward propagation of single-def values
5834 This pass attempts to remove redundant computation by substituting
5835 variables that come from a single definition, and seeing if the
5836 result can be simplified. It performs copy propagation and
5837 addressing mode selection. The pass is run twice, with values
5838 being propagated into loops only on the second run. It is located
5841 * Common subexpression elimination
5843 This pass removes redundant computation within basic blocks, and
5844 optimizes addressing modes based on cost. The pass is run twice.
5845 The source is located in `cse.c'.
5847 * Global common subexpression elimination.
5849 This pass performs two different types of GCSE depending on
5850 whether you are optimizing for size or not (LCM based GCSE tends
5851 to increase code size for a gain in speed, while Morel-Renvoise
5852 based GCSE does not). When optimizing for size, GCSE is done
5853 using Morel-Renvoise Partial Redundancy Elimination, with the
5854 exception that it does not try to move invariants out of
5855 loops--that is left to the loop optimization pass. If MR PRE
5856 GCSE is done, code hoisting (aka unification) is also done, as
5857 well as load motion. If you are optimizing for speed, LCM (lazy
5858 code motion) based GCSE is done. LCM is based on the work of
5859 Knoop, Ruthing, and Steffen. LCM based GCSE also does loop
5860 invariant code motion. We also perform load and store motion when
5861 optimizing for speed. Regardless of which type of GCSE is used,
5862 the GCSE pass also performs global constant and copy propagation.
5863 The source file for this pass is `gcse.c', and the LCM routines
5868 This pass performs several loop related optimizations. The source
5869 files `cfgloopanal.c' and `cfgloopmanip.c' contain generic loop
5870 analysis and manipulation code. Initialization and finalization
5871 of loop structures is handled by `loop-init.c'. A loop invariant
5872 motion pass is implemented in `loop-invariant.c'. Basic block
5873 level optimizations--unrolling, peeling and unswitching loops--
5874 are implemented in `loop-unswitch.c' and `loop-unroll.c'.
5875 Replacing of the exit condition of loops by special
5876 machine-dependent instructions is handled by `loop-doloop.c'.
5880 This pass is an aggressive form of GCSE that transforms the control
5881 flow graph of a function by propagating constants into conditional
5882 branch instructions. The source file for this pass is `gcse.c'.
5886 This pass attempts to replace conditional branches and surrounding
5887 assignments with arithmetic, boolean value producing comparison
5888 instructions, and conditional move instructions. In the very last
5889 invocation after reload, it will generate predicated instructions
5890 when supported by the target. The pass is located in `ifcvt.c'.
5894 This pass splits independent uses of each pseudo-register. This
5895 can improve effect of the other transformation, such as CSE or
5896 register allocation. Its source files are `web.c'.
5900 This pass computes which pseudo-registers are live at each point in
5901 the program, and makes the first instruction that uses a value
5902 point at the instruction that computed the value. It then deletes
5903 computations whose results are never used, and combines memory
5904 references with add or subtract instructions to make autoincrement
5905 or autodecrement addressing. The pass is located in `flow.c'.
5907 * Instruction combination
5909 This pass attempts to combine groups of two or three instructions
5910 that are related by data flow into single instructions. It
5911 combines the RTL expressions for the instructions by substitution,
5912 simplifies the result using algebra, and then attempts to match
5913 the result against the machine description. The pass is located
5918 This pass looks for cases where matching constraints would force an
5919 instruction to need a reload, and this reload would be a
5920 register-to-register move. It then attempts to change the
5921 registers used by the instruction to avoid the move instruction.
5922 The pass is located in `regmove.c'.
5924 * Optimize mode switching
5926 This pass looks for instructions that require the processor to be
5927 in a specific "mode" and minimizes the number of mode changes
5928 required to satisfy all users. What these modes are, and what
5929 they apply to are completely target-specific. The source is
5930 located in `mode-switching.c'.
5934 This pass looks at innermost loops and reorders their instructions
5935 by overlapping different iterations. Modulo scheduling is
5936 performed immediately before instruction scheduling. The pass is
5937 located in (`modulo-sched.c').
5939 * Instruction scheduling
5941 This pass looks for instructions whose output will not be
5942 available by the time that it is used in subsequent instructions.
5943 Memory loads and floating point instructions often have this
5944 behavior on RISC machines. It re-orders instructions within a
5945 basic block to try to separate the definition and use of items
5946 that otherwise would cause pipeline stalls. This pass is
5947 performed twice, before and after register allocation. The pass
5948 is located in `haifa-sched.c', `sched-deps.c', `sched-ebb.c',
5949 `sched-rgn.c' and `sched-vis.c'.
5951 * Register allocation
5953 These passes make sure that all occurrences of pseudo registers are
5954 eliminated, either by allocating them to a hard register, replacing
5955 them by an equivalent expression (e.g. a constant) or by placing
5956 them on the stack. This is done in several subpasses:
5958 * Register move optimizations. This pass makes some simple RTL
5959 code transformations which improve the subsequent register
5960 allocation. The source file is `regmove.c'.
5962 * The integrated register allocator (IRA). It is called
5963 integrated because coalescing, register live range splitting,
5964 and hard register preferencing are done on-the-fly during
5965 coloring. It also has better integration with the reload
5966 pass. Pseudo-registers spilled by the allocator or the
5967 reload have still a chance to get hard-registers if the
5968 reload evicts some pseudo-registers from hard-registers. The
5969 allocator helps to choose better pseudos for spilling based
5970 on their live ranges and to coalesce stack slots allocated
5971 for the spilled pseudo-registers. IRA is a regional register
5972 allocator which is transformed into Chaitin-Briggs allocator
5973 if there is one region. By default, IRA chooses regions using
5974 register pressure but the user can force it to use one region
5975 or regions corresponding to all loops.
5977 Source files of the allocator are `ira.c', `ira-build.c',
5978 `ira-costs.c', `ira-conflicts.c', `ira-color.c',
5979 `ira-emit.c', `ira-lives', plus header files `ira.h' and
5980 `ira-int.h' used for the communication between the allocator
5981 and the rest of the compiler and between the IRA files.
5983 * Reloading. This pass renumbers pseudo registers with the
5984 hardware registers numbers they were allocated. Pseudo
5985 registers that did not get hard registers are replaced with
5986 stack slots. Then it finds instructions that are invalid
5987 because a value has failed to end up in a register, or has
5988 ended up in a register of the wrong kind. It fixes up these
5989 instructions by reloading the problematical values
5990 temporarily into registers. Additional instructions are
5991 generated to do the copying.
5993 The reload pass also optionally eliminates the frame pointer
5994 and inserts instructions to save and restore call-clobbered
5995 registers around calls.
5997 Source files are `reload.c' and `reload1.c', plus the header
5998 `reload.h' used for communication between them.
6000 * Basic block reordering
6002 This pass implements profile guided code positioning. If profile
6003 information is not available, various types of static analysis are
6004 performed to make the predictions normally coming from the profile
6005 feedback (IE execution frequency, branch probability, etc). It is
6006 implemented in the file `bb-reorder.c', and the various prediction
6007 routines are in `predict.c'.
6011 This pass computes where the variables are stored at each position
6012 in code and generates notes describing the variable locations to
6013 RTL code. The location lists are then generated according to these
6014 notes to debug information if the debugging information format
6015 supports location lists.
6017 * Delayed branch scheduling
6019 This optional pass attempts to find instructions that can go into
6020 the delay slots of other instructions, usually jumps and calls.
6021 The source file name is `reorg.c'.
6025 On many RISC machines, branch instructions have a limited range.
6026 Thus, longer sequences of instructions must be used for long
6027 branches. In this pass, the compiler figures out what how far
6028 each instruction will be from each other instruction, and
6029 therefore whether the usual instructions, or the longer sequences,
6030 must be used for each branch.
6032 * Register-to-stack conversion
6034 Conversion from usage of some hard registers to usage of a register
6035 stack may be done at this point. Currently, this is supported only
6036 for the floating-point registers of the Intel 80387 coprocessor.
6037 The source file name is `reg-stack.c'.
6041 This pass outputs the assembler code for the function. The source
6042 files are `final.c' plus `insn-output.c'; the latter is generated
6043 automatically from the machine description by the tool `genoutput'.
6044 The header file `conditions.h' is used for communication between
6045 these files. If mudflap is enabled, the queue of deferred
6046 declarations and any addressed constants (e.g., string literals)
6047 is processed by `mudflap_finish_file' into a synthetic constructor
6048 function containing calls into the mudflap runtime.
6050 * Debugging information output
6052 This is run after final because it must output the stack slot
6053 offsets for pseudo registers that did not get hard registers.
6054 Source files are `dbxout.c' for DBX symbol table format,
6055 `sdbout.c' for SDB symbol table format, `dwarfout.c' for DWARF
6056 symbol table format, files `dwarf2out.c' and `dwarf2asm.c' for
6057 DWARF2 symbol table format, and `vmsdbgout.c' for VMS debug symbol
6062 File: gccint.info, Node: Trees, Next: RTL, Prev: Passes, Up: Top
6064 9 Trees: The intermediate representation used by the C and C++ front ends
6065 *************************************************************************
6067 This chapter documents the internal representation used by GCC to
6068 represent C and C++ source programs. When presented with a C or C++
6069 source program, GCC parses the program, performs semantic analysis
6070 (including the generation of error messages), and then produces the
6071 internal representation described here. This representation contains a
6072 complete representation for the entire translation unit provided as
6073 input to the front end. This representation is then typically processed
6074 by a code-generator in order to produce machine code, but could also be
6075 used in the creation of source browsers, intelligent editors, automatic
6076 documentation generators, interpreters, and any other programs needing
6077 the ability to process C or C++ code.
6079 This chapter explains the internal representation. In particular, it
6080 documents the internal representation for C and C++ source constructs,
6081 and the macros, functions, and variables that can be used to access
6082 these constructs. The C++ representation is largely a superset of the
6083 representation used in the C front end. There is only one construct
6084 used in C that does not appear in the C++ front end and that is the GNU
6085 "nested function" extension. Many of the macros documented here do not
6086 apply in C because the corresponding language constructs do not appear
6089 If you are developing a "back end", be it is a code-generator or some
6090 other tool, that uses this representation, you may occasionally find
6091 that you need to ask questions not easily answered by the functions and
6092 macros available here. If that situation occurs, it is quite likely
6093 that GCC already supports the functionality you desire, but that the
6094 interface is simply not documented here. In that case, you should ask
6095 the GCC maintainers (via mail to <gcc@gcc.gnu.org>) about documenting
6096 the functionality you require. Similarly, if you find yourself writing
6097 functions that do not deal directly with your back end, but instead
6098 might be useful to other people using the GCC front end, you should
6099 submit your patches for inclusion in GCC.
6103 * Deficiencies:: Topics net yet covered in this document.
6104 * Tree overview:: All about `tree's.
6105 * Types:: Fundamental and aggregate types.
6106 * Scopes:: Namespaces and classes.
6107 * Functions:: Overloading, function bodies, and linkage.
6108 * Declarations:: Type declarations and variables.
6109 * Attributes:: Declaration and type attributes.
6110 * Expression trees:: From `typeid' to `throw'.
6113 File: gccint.info, Node: Deficiencies, Next: Tree overview, Up: Trees
6118 There are many places in which this document is incomplet and incorrekt.
6119 It is, as of yet, only _preliminary_ documentation.
6122 File: gccint.info, Node: Tree overview, Next: Types, Prev: Deficiencies, Up: Trees
6127 The central data structure used by the internal representation is the
6128 `tree'. These nodes, while all of the C type `tree', are of many
6129 varieties. A `tree' is a pointer type, but the object to which it
6130 points may be of a variety of types. From this point forward, we will
6131 refer to trees in ordinary type, rather than in `this font', except
6132 when talking about the actual C type `tree'.
6134 You can tell what kind of node a particular tree is by using the
6135 `TREE_CODE' macro. Many, many macros take trees as input and return
6136 trees as output. However, most macros require a certain kind of tree
6137 node as input. In other words, there is a type-system for trees, but
6138 it is not reflected in the C type-system.
6140 For safety, it is useful to configure GCC with `--enable-checking'.
6141 Although this results in a significant performance penalty (since all
6142 tree types are checked at run-time), and is therefore inappropriate in a
6143 release version, it is extremely helpful during the development process.
6145 Many macros behave as predicates. Many, although not all, of these
6146 predicates end in `_P'. Do not rely on the result type of these macros
6147 being of any particular type. You may, however, rely on the fact that
6148 the type can be compared to `0', so that statements like
6149 if (TEST_P (t) && !TEST_P (y))
6152 int i = (TEST_P (t) != 0);
6153 are legal. Macros that return `int' values now may be changed to
6154 return `tree' values, or other pointers in the future. Even those that
6155 continue to return `int' may return multiple nonzero codes where
6156 previously they returned only zero and one. Therefore, you should not
6158 if (TEST_P (t) == 1)
6159 as this code is not guaranteed to work correctly in the future.
6161 You should not take the address of values returned by the macros or
6162 functions described here. In particular, no guarantee is given that the
6165 In general, the names of macros are all in uppercase, while the names
6166 of functions are entirely in lowercase. There are rare exceptions to
6167 this rule. You should assume that any macro or function whose name is
6168 made up entirely of uppercase letters may evaluate its arguments more
6169 than once. You may assume that a macro or function whose name is made
6170 up entirely of lowercase letters will evaluate its arguments only once.
6172 The `error_mark_node' is a special tree. Its tree code is
6173 `ERROR_MARK', but since there is only ever one node with that code, the
6174 usual practice is to compare the tree against `error_mark_node'. (This
6175 test is just a test for pointer equality.) If an error has occurred
6176 during front-end processing the flag `errorcount' will be set. If the
6177 front end has encountered code it cannot handle, it will issue a
6178 message to the user and set `sorrycount'. When these flags are set,
6179 any macro or function which normally returns a tree of a particular
6180 kind may instead return the `error_mark_node'. Thus, if you intend to
6181 do any processing of erroneous code, you must be prepared to deal with
6182 the `error_mark_node'.
6184 Occasionally, a particular tree slot (like an operand to an expression,
6185 or a particular field in a declaration) will be referred to as
6186 "reserved for the back end". These slots are used to store RTL when
6187 the tree is converted to RTL for use by the GCC back end. However, if
6188 that process is not taking place (e.g., if the front end is being hooked
6189 up to an intelligent editor), then those slots may be used by the back
6190 end presently in use.
6192 If you encounter situations that do not match this documentation, such
6193 as tree nodes of types not mentioned here, or macros documented to
6194 return entities of a particular kind that instead return entities of
6195 some different kind, you have found a bug, either in the front end or in
6196 the documentation. Please report these bugs as you would any other bug.
6200 * Macros and Functions::Macros and functions that can be used with all trees.
6201 * Identifiers:: The names of things.
6202 * Containers:: Lists and vectors.
6205 File: gccint.info, Node: Macros and Functions, Next: Identifiers, Up: Tree overview
6210 This section is not here yet.
6213 File: gccint.info, Node: Identifiers, Next: Containers, Prev: Macros and Functions, Up: Tree overview
6218 An `IDENTIFIER_NODE' represents a slightly more general concept that
6219 the standard C or C++ concept of identifier. In particular, an
6220 `IDENTIFIER_NODE' may contain a `$', or other extraordinary characters.
6222 There are never two distinct `IDENTIFIER_NODE's representing the same
6223 identifier. Therefore, you may use pointer equality to compare
6224 `IDENTIFIER_NODE's, rather than using a routine like `strcmp'.
6226 You can use the following macros to access identifiers:
6227 `IDENTIFIER_POINTER'
6228 The string represented by the identifier, represented as a
6229 `char*'. This string is always `NUL'-terminated, and contains no
6230 embedded `NUL' characters.
6233 The length of the string returned by `IDENTIFIER_POINTER', not
6234 including the trailing `NUL'. This value of `IDENTIFIER_LENGTH
6235 (x)' is always the same as `strlen (IDENTIFIER_POINTER (x))'.
6237 `IDENTIFIER_OPNAME_P'
6238 This predicate holds if the identifier represents the name of an
6239 overloaded operator. In this case, you should not depend on the
6240 contents of either the `IDENTIFIER_POINTER' or the
6241 `IDENTIFIER_LENGTH'.
6243 `IDENTIFIER_TYPENAME_P'
6244 This predicate holds if the identifier represents the name of a
6245 user-defined conversion operator. In this case, the `TREE_TYPE' of
6246 the `IDENTIFIER_NODE' holds the type to which the conversion
6251 File: gccint.info, Node: Containers, Prev: Identifiers, Up: Tree overview
6256 Two common container data structures can be represented directly with
6257 tree nodes. A `TREE_LIST' is a singly linked list containing two trees
6258 per node. These are the `TREE_PURPOSE' and `TREE_VALUE' of each node.
6259 (Often, the `TREE_PURPOSE' contains some kind of tag, or additional
6260 information, while the `TREE_VALUE' contains the majority of the
6261 payload. In other cases, the `TREE_PURPOSE' is simply `NULL_TREE',
6262 while in still others both the `TREE_PURPOSE' and `TREE_VALUE' are of
6263 equal stature.) Given one `TREE_LIST' node, the next node is found by
6264 following the `TREE_CHAIN'. If the `TREE_CHAIN' is `NULL_TREE', then
6265 you have reached the end of the list.
6267 A `TREE_VEC' is a simple vector. The `TREE_VEC_LENGTH' is an integer
6268 (not a tree) giving the number of nodes in the vector. The nodes
6269 themselves are accessed using the `TREE_VEC_ELT' macro, which takes two
6270 arguments. The first is the `TREE_VEC' in question; the second is an
6271 integer indicating which element in the vector is desired. The
6272 elements are indexed from zero.
6275 File: gccint.info, Node: Types, Next: Scopes, Prev: Tree overview, Up: Trees
6280 All types have corresponding tree nodes. However, you should not assume
6281 that there is exactly one tree node corresponding to each type. There
6282 are often multiple nodes corresponding to the same type.
6284 For the most part, different kinds of types have different tree codes.
6285 (For example, pointer types use a `POINTER_TYPE' code while arrays use
6286 an `ARRAY_TYPE' code.) However, pointers to member functions use the
6287 `RECORD_TYPE' code. Therefore, when writing a `switch' statement that
6288 depends on the code associated with a particular type, you should take
6289 care to handle pointers to member functions under the `RECORD_TYPE'
6292 In C++, an array type is not qualified; rather the type of the array
6293 elements is qualified. This situation is reflected in the intermediate
6294 representation. The macros described here will always examine the
6295 qualification of the underlying element type when applied to an array
6296 type. (If the element type is itself an array, then the recursion
6297 continues until a non-array type is found, and the qualification of this
6298 type is examined.) So, for example, `CP_TYPE_CONST_P' will hold of the
6299 type `const int ()[7]', denoting an array of seven `int's.
6301 The following functions and macros deal with cv-qualification of types:
6303 This macro returns the set of type qualifiers applied to this type.
6304 This value is `TYPE_UNQUALIFIED' if no qualifiers have been
6305 applied. The `TYPE_QUAL_CONST' bit is set if the type is
6306 `const'-qualified. The `TYPE_QUAL_VOLATILE' bit is set if the
6307 type is `volatile'-qualified. The `TYPE_QUAL_RESTRICT' bit is set
6308 if the type is `restrict'-qualified.
6311 This macro holds if the type is `const'-qualified.
6313 `CP_TYPE_VOLATILE_P'
6314 This macro holds if the type is `volatile'-qualified.
6316 `CP_TYPE_RESTRICT_P'
6317 This macro holds if the type is `restrict'-qualified.
6319 `CP_TYPE_CONST_NON_VOLATILE_P'
6320 This predicate holds for a type that is `const'-qualified, but
6321 _not_ `volatile'-qualified; other cv-qualifiers are ignored as
6322 well: only the `const'-ness is tested.
6325 This macro returns the unqualified version of a type. It may be
6326 applied to an unqualified type, but it is not always the identity
6327 function in that case.
6329 A few other macros and functions are usable with all types:
6331 The number of bits required to represent the type, represented as
6332 an `INTEGER_CST'. For an incomplete type, `TYPE_SIZE' will be
6336 The alignment of the type, in bits, represented as an `int'.
6339 This macro returns a declaration (in the form of a `TYPE_DECL') for
6340 the type. (Note this macro does _not_ return a `IDENTIFIER_NODE',
6341 as you might expect, given its name!) You can look at the
6342 `DECL_NAME' of the `TYPE_DECL' to obtain the actual name of the
6343 type. The `TYPE_NAME' will be `NULL_TREE' for a type that is not
6344 a built-in type, the result of a typedef, or a named class type.
6347 This predicate holds if the type is an integral type. Notice that
6348 in C++, enumerations are _not_ integral types.
6351 This predicate holds if the type is an integral type (in the C++
6352 sense) or a floating point type.
6355 This predicate holds for a class-type.
6358 This predicate holds for a built-in type.
6361 This predicate holds if the type is a pointer to data member.
6364 This predicate holds if the type is a pointer type, and the
6365 pointee is not a data member.
6368 This predicate holds for a pointer to function type.
6371 This predicate holds for a pointer to object type. Note however
6372 that it does not hold for the generic pointer to object type `void
6373 *'. You may use `TYPE_PTROBV_P' to test for a pointer to object
6374 type as well as `void *'.
6377 This macro returns the "canonical" type for the given type node.
6378 Canonical types are used to improve performance in the C++ and
6379 Objective-C++ front ends by allowing efficient comparison between
6380 two type nodes in `same_type_p': if the `TYPE_CANONICAL' values of
6381 the types are equal, the types are equivalent; otherwise, the types
6382 are not equivalent. The notion of equivalence for canonical types
6383 is the same as the notion of type equivalence in the language
6384 itself. For instance,
6386 When `TYPE_CANONICAL' is `NULL_TREE', there is no canonical type
6387 for the given type node. In this case, comparison between this
6388 type and any other type requires the compiler to perform a deep,
6389 "structural" comparison to see if the two type nodes have the same
6390 form and properties.
6392 The canonical type for a node is always the most fundamental type
6393 in the equivalence class of types. For instance, `int' is its own
6394 canonical type. A typedef `I' of `int' will have `int' as its
6395 canonical type. Similarly, `I*' and a typedef `IP' (defined to
6396 `I*') will has `int*' as their canonical type. When building a new
6397 type node, be sure to set `TYPE_CANONICAL' to the appropriate
6398 canonical type. If the new type is a compound type (built from
6399 other types), and any of those other types require structural
6400 equality, use `SET_TYPE_STRUCTURAL_EQUALITY' to ensure that the
6401 new type also requires structural equality. Finally, if for some
6402 reason you cannot guarantee that `TYPE_CANONICAL' will point to
6403 the canonical type, use `SET_TYPE_STRUCTURAL_EQUALITY' to make
6404 sure that the new type-and any type constructed based on
6405 it-requires structural equality. If you suspect that the canonical
6406 type system is miscomparing types, pass `--param
6407 verify-canonical-types=1' to the compiler or configure with
6408 `--enable-checking' to force the compiler to verify its
6409 canonical-type comparisons against the structural comparisons; the
6410 compiler will then print any warnings if the canonical types
6413 `TYPE_STRUCTURAL_EQUALITY_P'
6414 This predicate holds when the node requires structural equality
6415 checks, e.g., when `TYPE_CANONICAL' is `NULL_TREE'.
6417 `SET_TYPE_STRUCTURAL_EQUALITY'
6418 This macro states that the type node it is given requires
6419 structural equality checks, e.g., it sets `TYPE_CANONICAL' to
6423 This predicate takes two types as input, and holds if they are the
6424 same type. For example, if one type is a `typedef' for the other,
6425 or both are `typedef's for the same type. This predicate also
6426 holds if the two trees given as input are simply copies of one
6427 another; i.e., there is no difference between them at the source
6428 level, but, for whatever reason, a duplicate has been made in the
6429 representation. You should never use `==' (pointer equality) to
6430 compare types; always use `same_type_p' instead.
6432 Detailed below are the various kinds of types, and the macros that can
6433 be used to access them. Although other kinds of types are used
6434 elsewhere in G++, the types described here are the only ones that you
6435 will encounter while examining the intermediate representation.
6438 Used to represent the `void' type.
6441 Used to represent the various integral types, including `char',
6442 `short', `int', `long', and `long long'. This code is not used
6443 for enumeration types, nor for the `bool' type. The
6444 `TYPE_PRECISION' is the number of bits used in the representation,
6445 represented as an `unsigned int'. (Note that in the general case
6446 this is not the same value as `TYPE_SIZE'; suppose that there were
6447 a 24-bit integer type, but that alignment requirements for the ABI
6448 required 32-bit alignment. Then, `TYPE_SIZE' would be an
6449 `INTEGER_CST' for 32, while `TYPE_PRECISION' would be 24.) The
6450 integer type is unsigned if `TYPE_UNSIGNED' holds; otherwise, it
6453 The `TYPE_MIN_VALUE' is an `INTEGER_CST' for the smallest integer
6454 that may be represented by this type. Similarly, the
6455 `TYPE_MAX_VALUE' is an `INTEGER_CST' for the largest integer that
6456 may be represented by this type.
6459 Used to represent the `float', `double', and `long double' types.
6460 The number of bits in the floating-point representation is given
6461 by `TYPE_PRECISION', as in the `INTEGER_TYPE' case.
6464 Used to represent the `short _Fract', `_Fract', `long _Fract',
6465 `long long _Fract', `short _Accum', `_Accum', `long _Accum', and
6466 `long long _Accum' types. The number of bits in the fixed-point
6467 representation is given by `TYPE_PRECISION', as in the
6468 `INTEGER_TYPE' case. There may be padding bits, fractional bits
6469 and integral bits. The number of fractional bits is given by
6470 `TYPE_FBIT', and the number of integral bits is given by
6471 `TYPE_IBIT'. The fixed-point type is unsigned if `TYPE_UNSIGNED'
6472 holds; otherwise, it is signed. The fixed-point type is
6473 saturating if `TYPE_SATURATING' holds; otherwise, it is not
6477 Used to represent GCC built-in `__complex__' data types. The
6478 `TREE_TYPE' is the type of the real and imaginary parts.
6481 Used to represent an enumeration type. The `TYPE_PRECISION' gives
6482 (as an `int'), the number of bits used to represent the type. If
6483 there are no negative enumeration constants, `TYPE_UNSIGNED' will
6484 hold. The minimum and maximum enumeration constants may be
6485 obtained with `TYPE_MIN_VALUE' and `TYPE_MAX_VALUE', respectively;
6486 each of these macros returns an `INTEGER_CST'.
6488 The actual enumeration constants themselves may be obtained by
6489 looking at the `TYPE_VALUES'. This macro will return a
6490 `TREE_LIST', containing the constants. The `TREE_PURPOSE' of each
6491 node will be an `IDENTIFIER_NODE' giving the name of the constant;
6492 the `TREE_VALUE' will be an `INTEGER_CST' giving the value
6493 assigned to that constant. These constants will appear in the
6494 order in which they were declared. The `TREE_TYPE' of each of
6495 these constants will be the type of enumeration type itself.
6498 Used to represent the `bool' type.
6501 Used to represent pointer types, and pointer to data member types.
6502 The `TREE_TYPE' gives the type to which this type points. If the
6503 type is a pointer to data member type, then `TYPE_PTRMEM_P' will
6504 hold. For a pointer to data member type of the form `T X::*',
6505 `TYPE_PTRMEM_CLASS_TYPE' will be the type `X', while
6506 `TYPE_PTRMEM_POINTED_TO_TYPE' will be the type `T'.
6509 Used to represent reference types. The `TREE_TYPE' gives the type
6510 to which this type refers.
6513 Used to represent the type of non-member functions and of static
6514 member functions. The `TREE_TYPE' gives the return type of the
6515 function. The `TYPE_ARG_TYPES' are a `TREE_LIST' of the argument
6516 types. The `TREE_VALUE' of each node in this list is the type of
6517 the corresponding argument; the `TREE_PURPOSE' is an expression
6518 for the default argument value, if any. If the last node in the
6519 list is `void_list_node' (a `TREE_LIST' node whose `TREE_VALUE' is
6520 the `void_type_node'), then functions of this type do not take
6521 variable arguments. Otherwise, they do take a variable number of
6524 Note that in C (but not in C++) a function declared like `void f()'
6525 is an unprototyped function taking a variable number of arguments;
6526 the `TYPE_ARG_TYPES' of such a function will be `NULL'.
6529 Used to represent the type of a non-static member function. Like a
6530 `FUNCTION_TYPE', the return type is given by the `TREE_TYPE'. The
6531 type of `*this', i.e., the class of which functions of this type
6532 are a member, is given by the `TYPE_METHOD_BASETYPE'. The
6533 `TYPE_ARG_TYPES' is the parameter list, as for a `FUNCTION_TYPE',
6534 and includes the `this' argument.
6537 Used to represent array types. The `TREE_TYPE' gives the type of
6538 the elements in the array. If the array-bound is present in the
6539 type, the `TYPE_DOMAIN' is an `INTEGER_TYPE' whose
6540 `TYPE_MIN_VALUE' and `TYPE_MAX_VALUE' will be the lower and upper
6541 bounds of the array, respectively. The `TYPE_MIN_VALUE' will
6542 always be an `INTEGER_CST' for zero, while the `TYPE_MAX_VALUE'
6543 will be one less than the number of elements in the array, i.e.,
6544 the highest value which may be used to index an element in the
6548 Used to represent `struct' and `class' types, as well as pointers
6549 to member functions and similar constructs in other languages.
6550 `TYPE_FIELDS' contains the items contained in this type, each of
6551 which can be a `FIELD_DECL', `VAR_DECL', `CONST_DECL', or
6552 `TYPE_DECL'. You may not make any assumptions about the ordering
6553 of the fields in the type or whether one or more of them overlap.
6554 If `TYPE_PTRMEMFUNC_P' holds, then this type is a pointer-to-member
6555 type. In that case, the `TYPE_PTRMEMFUNC_FN_TYPE' is a
6556 `POINTER_TYPE' pointing to a `METHOD_TYPE'. The `METHOD_TYPE' is
6557 the type of a function pointed to by the pointer-to-member
6558 function. If `TYPE_PTRMEMFUNC_P' does not hold, this type is a
6559 class type. For more information, see *note Classes::.
6562 Used to represent `union' types. Similar to `RECORD_TYPE' except
6563 that all `FIELD_DECL' nodes in `TYPE_FIELD' start at bit position
6567 Used to represent part of a variant record in Ada. Similar to
6568 `UNION_TYPE' except that each `FIELD_DECL' has a `DECL_QUALIFIER'
6569 field, which contains a boolean expression that indicates whether
6570 the field is present in the object. The type will only have one
6571 field, so each field's `DECL_QUALIFIER' is only evaluated if none
6572 of the expressions in the previous fields in `TYPE_FIELDS' are
6573 nonzero. Normally these expressions will reference a field in the
6574 outer object using a `PLACEHOLDER_EXPR'.
6577 This node is used to represent a type the knowledge of which is
6578 insufficient for a sound processing.
6581 This node is used to represent a pointer-to-data member. For a
6582 data member `X::m' the `TYPE_OFFSET_BASETYPE' is `X' and the
6583 `TREE_TYPE' is the type of `m'.
6586 Used to represent a construct of the form `typename T::A'. The
6587 `TYPE_CONTEXT' is `T'; the `TYPE_NAME' is an `IDENTIFIER_NODE' for
6588 `A'. If the type is specified via a template-id, then
6589 `TYPENAME_TYPE_FULLNAME' yields a `TEMPLATE_ID_EXPR'. The
6590 `TREE_TYPE' is non-`NULL' if the node is implicitly generated in
6591 support for the implicit typename extension; in which case the
6592 `TREE_TYPE' is a type node for the base-class.
6595 Used to represent the `__typeof__' extension. The `TYPE_FIELDS'
6596 is the expression the type of which is being represented.
6598 There are variables whose values represent some of the basic types.
6606 `unsigned_type_node.'
6607 A node for `unsigned int'.
6611 It may sometimes be useful to compare one of these variables with a
6612 type in hand, using `same_type_p'.
6615 File: gccint.info, Node: Scopes, Next: Functions, Prev: Types, Up: Trees
6620 The root of the entire intermediate representation is the variable
6621 `global_namespace'. This is the namespace specified with `::' in C++
6622 source code. All other namespaces, types, variables, functions, and so
6623 forth can be found starting with this namespace.
6625 Besides namespaces, the other high-level scoping construct in C++ is
6626 the class. (Throughout this manual the term "class" is used to mean the
6627 types referred to in the ANSI/ISO C++ Standard as classes; these include
6628 types defined with the `class', `struct', and `union' keywords.)
6632 * Namespaces:: Member functions, types, etc.
6633 * Classes:: Members, bases, friends, etc.
6636 File: gccint.info, Node: Namespaces, Next: Classes, Up: Scopes
6641 A namespace is represented by a `NAMESPACE_DECL' node.
6643 However, except for the fact that it is distinguished as the root of
6644 the representation, the global namespace is no different from any other
6645 namespace. Thus, in what follows, we describe namespaces generally,
6646 rather than the global namespace in particular.
6648 The following macros and functions can be used on a `NAMESPACE_DECL':
6651 This macro is used to obtain the `IDENTIFIER_NODE' corresponding to
6652 the unqualified name of the name of the namespace (*note
6653 Identifiers::). The name of the global namespace is `::', even
6654 though in C++ the global namespace is unnamed. However, you
6655 should use comparison with `global_namespace', rather than
6656 `DECL_NAME' to determine whether or not a namespace is the global
6657 one. An unnamed namespace will have a `DECL_NAME' equal to
6658 `anonymous_namespace_name'. Within a single translation unit, all
6659 unnamed namespaces will have the same name.
6662 This macro returns the enclosing namespace. The `DECL_CONTEXT' for
6663 the `global_namespace' is `NULL_TREE'.
6665 `DECL_NAMESPACE_ALIAS'
6666 If this declaration is for a namespace alias, then
6667 `DECL_NAMESPACE_ALIAS' is the namespace for which this one is an
6670 Do not attempt to use `cp_namespace_decls' for a namespace which is
6671 an alias. Instead, follow `DECL_NAMESPACE_ALIAS' links until you
6672 reach an ordinary, non-alias, namespace, and call
6673 `cp_namespace_decls' there.
6675 `DECL_NAMESPACE_STD_P'
6676 This predicate holds if the namespace is the special `::std'
6679 `cp_namespace_decls'
6680 This function will return the declarations contained in the
6681 namespace, including types, overloaded functions, other
6682 namespaces, and so forth. If there are no declarations, this
6683 function will return `NULL_TREE'. The declarations are connected
6684 through their `TREE_CHAIN' fields.
6686 Although most entries on this list will be declarations,
6687 `TREE_LIST' nodes may also appear. In this case, the `TREE_VALUE'
6688 will be an `OVERLOAD'. The value of the `TREE_PURPOSE' is
6689 unspecified; back ends should ignore this value. As with the
6690 other kinds of declarations returned by `cp_namespace_decls', the
6691 `TREE_CHAIN' will point to the next declaration in this list.
6693 For more information on the kinds of declarations that can occur
6694 on this list, *Note Declarations::. Some declarations will not
6695 appear on this list. In particular, no `FIELD_DECL',
6696 `LABEL_DECL', or `PARM_DECL' nodes will appear here.
6698 This function cannot be used with namespaces that have
6699 `DECL_NAMESPACE_ALIAS' set.
6703 File: gccint.info, Node: Classes, Prev: Namespaces, Up: Scopes
6708 A class type is represented by either a `RECORD_TYPE' or a
6709 `UNION_TYPE'. A class declared with the `union' tag is represented by
6710 a `UNION_TYPE', while classes declared with either the `struct' or the
6711 `class' tag are represented by `RECORD_TYPE's. You can use the
6712 `CLASSTYPE_DECLARED_CLASS' macro to discern whether or not a particular
6713 type is a `class' as opposed to a `struct'. This macro will be true
6714 only for classes declared with the `class' tag.
6716 Almost all non-function members are available on the `TYPE_FIELDS'
6717 list. Given one member, the next can be found by following the
6718 `TREE_CHAIN'. You should not depend in any way on the order in which
6719 fields appear on this list. All nodes on this list will be `DECL'
6720 nodes. A `FIELD_DECL' is used to represent a non-static data member, a
6721 `VAR_DECL' is used to represent a static data member, and a `TYPE_DECL'
6722 is used to represent a type. Note that the `CONST_DECL' for an
6723 enumeration constant will appear on this list, if the enumeration type
6724 was declared in the class. (Of course, the `TYPE_DECL' for the
6725 enumeration type will appear here as well.) There are no entries for
6726 base classes on this list. In particular, there is no `FIELD_DECL' for
6727 the "base-class portion" of an object.
6729 The `TYPE_VFIELD' is a compiler-generated field used to point to
6730 virtual function tables. It may or may not appear on the `TYPE_FIELDS'
6731 list. However, back ends should handle the `TYPE_VFIELD' just like all
6732 the entries on the `TYPE_FIELDS' list.
6734 The function members are available on the `TYPE_METHODS' list. Again,
6735 subsequent members are found by following the `TREE_CHAIN' field. If a
6736 function is overloaded, each of the overloaded functions appears; no
6737 `OVERLOAD' nodes appear on the `TYPE_METHODS' list. Implicitly
6738 declared functions (including default constructors, copy constructors,
6739 assignment operators, and destructors) will appear on this list as well.
6741 Every class has an associated "binfo", which can be obtained with
6742 `TYPE_BINFO'. Binfos are used to represent base-classes. The binfo
6743 given by `TYPE_BINFO' is the degenerate case, whereby every class is
6744 considered to be its own base-class. The base binfos for a particular
6745 binfo are held in a vector, whose length is obtained with
6746 `BINFO_N_BASE_BINFOS'. The base binfos themselves are obtained with
6747 `BINFO_BASE_BINFO' and `BINFO_BASE_ITERATE'. To add a new binfo, use
6748 `BINFO_BASE_APPEND'. The vector of base binfos can be obtained with
6749 `BINFO_BASE_BINFOS', but normally you do not need to use that. The
6750 class type associated with a binfo is given by `BINFO_TYPE'. It is not
6751 always the case that `BINFO_TYPE (TYPE_BINFO (x))', because of typedefs
6752 and qualified types. Neither is it the case that `TYPE_BINFO
6753 (BINFO_TYPE (y))' is the same binfo as `y'. The reason is that if `y'
6754 is a binfo representing a base-class `B' of a derived class `D', then
6755 `BINFO_TYPE (y)' will be `B', and `TYPE_BINFO (BINFO_TYPE (y))' will be
6756 `B' as its own base-class, rather than as a base-class of `D'.
6758 The access to a base type can be found with `BINFO_BASE_ACCESS'. This
6759 will produce `access_public_node', `access_private_node' or
6760 `access_protected_node'. If bases are always public,
6761 `BINFO_BASE_ACCESSES' may be `NULL'.
6763 `BINFO_VIRTUAL_P' is used to specify whether the binfo is inherited
6764 virtually or not. The other flags, `BINFO_MARKED_P' and `BINFO_FLAG_1'
6765 to `BINFO_FLAG_6' can be used for language specific use.
6767 The following macros can be used on a tree node representing a
6771 This predicate holds if the class is local class _i.e._ declared
6772 inside a function body.
6774 `TYPE_POLYMORPHIC_P'
6775 This predicate holds if the class has at least one virtual function
6776 (declared or inherited).
6778 `TYPE_HAS_DEFAULT_CONSTRUCTOR'
6779 This predicate holds whenever its argument represents a class-type
6780 with default constructor.
6782 `CLASSTYPE_HAS_MUTABLE'
6783 `TYPE_HAS_MUTABLE_P'
6784 These predicates hold for a class-type having a mutable data
6787 `CLASSTYPE_NON_POD_P'
6788 This predicate holds only for class-types that are not PODs.
6790 `TYPE_HAS_NEW_OPERATOR'
6791 This predicate holds for a class-type that defines `operator new'.
6793 `TYPE_HAS_ARRAY_NEW_OPERATOR'
6794 This predicate holds for a class-type for which `operator new[]'
6797 `TYPE_OVERLOADS_CALL_EXPR'
6798 This predicate holds for class-type for which the function call
6799 `operator()' is overloaded.
6801 `TYPE_OVERLOADS_ARRAY_REF'
6802 This predicate holds for a class-type that overloads `operator[]'
6804 `TYPE_OVERLOADS_ARROW'
6805 This predicate holds for a class-type for which `operator->' is
6810 File: gccint.info, Node: Declarations, Next: Attributes, Prev: Functions, Up: Trees
6815 This section covers the various kinds of declarations that appear in the
6816 internal representation, except for declarations of functions
6817 (represented by `FUNCTION_DECL' nodes), which are described in *Note
6822 * Working with declarations:: Macros and functions that work on
6824 * Internal structure:: How declaration nodes are represented.
6827 File: gccint.info, Node: Working with declarations, Next: Internal structure, Up: Declarations
6829 9.5.1 Working with declarations
6830 -------------------------------
6832 Some macros can be used with any kind of declaration. These include:
6834 This macro returns an `IDENTIFIER_NODE' giving the name of the
6838 This macro returns the type of the entity declared.
6841 This macro returns the name of the file in which the entity was
6842 declared, as a `char*'. For an entity declared implicitly by the
6843 compiler (like `__builtin_memcpy'), this will be the string
6847 This macro returns the line number at which the entity was
6848 declared, as an `int'.
6851 This predicate holds if the declaration was implicitly generated
6852 by the compiler. For example, this predicate will hold of an
6853 implicitly declared member function, or of the `TYPE_DECL'
6854 implicitly generated for a class type. Recall that in C++ code
6857 is roughly equivalent to C code like:
6860 The implicitly generated `typedef' declaration is represented by a
6861 `TYPE_DECL' for which `DECL_ARTIFICIAL' holds.
6863 `DECL_NAMESPACE_SCOPE_P'
6864 This predicate holds if the entity was declared at a namespace
6867 `DECL_CLASS_SCOPE_P'
6868 This predicate holds if the entity was declared at a class scope.
6870 `DECL_FUNCTION_SCOPE_P'
6871 This predicate holds if the entity was declared inside a function
6875 The various kinds of declarations include:
6877 These nodes are used to represent labels in function bodies. For
6878 more information, see *Note Functions::. These nodes only appear
6882 These nodes are used to represent enumeration constants. The
6883 value of the constant is given by `DECL_INITIAL' which will be an
6884 `INTEGER_CST' with the same type as the `TREE_TYPE' of the
6885 `CONST_DECL', i.e., an `ENUMERAL_TYPE'.
6888 These nodes represent the value returned by a function. When a
6889 value is assigned to a `RESULT_DECL', that indicates that the
6890 value should be returned, via bitwise copy, by the function. You
6891 can use `DECL_SIZE' and `DECL_ALIGN' on a `RESULT_DECL', just as
6895 These nodes represent `typedef' declarations. The `TREE_TYPE' is
6896 the type declared to have the name given by `DECL_NAME'. In some
6897 cases, there is no associated name.
6900 These nodes represent variables with namespace or block scope, as
6901 well as static data members. The `DECL_SIZE' and `DECL_ALIGN' are
6902 analogous to `TYPE_SIZE' and `TYPE_ALIGN'. For a declaration, you
6903 should always use the `DECL_SIZE' and `DECL_ALIGN' rather than the
6904 `TYPE_SIZE' and `TYPE_ALIGN' given by the `TREE_TYPE', since
6905 special attributes may have been applied to the variable to give
6906 it a particular size and alignment. You may use the predicates
6907 `DECL_THIS_STATIC' or `DECL_THIS_EXTERN' to test whether the
6908 storage class specifiers `static' or `extern' were used to declare
6911 If this variable is initialized (but does not require a
6912 constructor), the `DECL_INITIAL' will be an expression for the
6913 initializer. The initializer should be evaluated, and a bitwise
6914 copy into the variable performed. If the `DECL_INITIAL' is the
6915 `error_mark_node', there is an initializer, but it is given by an
6916 explicit statement later in the code; no bitwise copy is required.
6918 GCC provides an extension that allows either automatic variables,
6919 or global variables, to be placed in particular registers. This
6920 extension is being used for a particular `VAR_DECL' if
6921 `DECL_REGISTER' holds for the `VAR_DECL', and if
6922 `DECL_ASSEMBLER_NAME' is not equal to `DECL_NAME'. In that case,
6923 `DECL_ASSEMBLER_NAME' is the name of the register into which the
6924 variable will be placed.
6927 Used to represent a parameter to a function. Treat these nodes
6928 similarly to `VAR_DECL' nodes. These nodes only appear in the
6929 `DECL_ARGUMENTS' for a `FUNCTION_DECL'.
6931 The `DECL_ARG_TYPE' for a `PARM_DECL' is the type that will
6932 actually be used when a value is passed to this function. It may
6933 be a wider type than the `TREE_TYPE' of the parameter; for
6934 example, the ordinary type might be `short' while the
6935 `DECL_ARG_TYPE' is `int'.
6938 These nodes represent non-static data members. The `DECL_SIZE' and
6939 `DECL_ALIGN' behave as for `VAR_DECL' nodes. The position of the
6940 field within the parent record is specified by a combination of
6941 three attributes. `DECL_FIELD_OFFSET' is the position, counting
6942 in bytes, of the `DECL_OFFSET_ALIGN'-bit sized word containing the
6943 bit of the field closest to the beginning of the structure.
6944 `DECL_FIELD_BIT_OFFSET' is the bit offset of the first bit of the
6945 field within this word; this may be nonzero even for fields that
6946 are not bit-fields, since `DECL_OFFSET_ALIGN' may be greater than
6947 the natural alignment of the field's type.
6949 If `DECL_C_BIT_FIELD' holds, this field is a bit-field. In a
6950 bit-field, `DECL_BIT_FIELD_TYPE' also contains the type that was
6951 originally specified for it, while DECL_TYPE may be a modified
6952 type with lesser precision, according to the size of the bit field.
6958 These nodes are used to represent class, function, and variable
6959 (static data member) templates. The
6960 `DECL_TEMPLATE_SPECIALIZATIONS' are a `TREE_LIST'. The
6961 `TREE_VALUE' of each node in the list is a `TEMPLATE_DECL's or
6962 `FUNCTION_DECL's representing specializations (including
6963 instantiations) of this template. Back ends can safely ignore
6964 `TEMPLATE_DECL's, but should examine `FUNCTION_DECL' nodes on the
6965 specializations list just as they would ordinary `FUNCTION_DECL'
6968 For a class template, the `DECL_TEMPLATE_INSTANTIATIONS' list
6969 contains the instantiations. The `TREE_VALUE' of each node is an
6970 instantiation of the class. The `DECL_TEMPLATE_SPECIALIZATIONS'
6971 contains partial specializations of the class.
6974 Back ends can safely ignore these nodes.
6978 File: gccint.info, Node: Internal structure, Prev: Working with declarations, Up: Declarations
6980 9.5.2 Internal structure
6981 ------------------------
6983 `DECL' nodes are represented internally as a hierarchy of structures.
6987 * Current structure hierarchy:: The current DECL node structure
6989 * Adding new DECL node types:: How to add a new DECL node to a
6993 File: gccint.info, Node: Current structure hierarchy, Next: Adding new DECL node types, Up: Internal structure
6995 9.5.2.1 Current structure hierarchy
6996 ...................................
6998 `struct tree_decl_minimal'
6999 This is the minimal structure to inherit from in order for common
7000 `DECL' macros to work. The fields it contains are a unique ID,
7001 source location, context, and name.
7003 `struct tree_decl_common'
7004 This structure inherits from `struct tree_decl_minimal'. It
7005 contains fields that most `DECL' nodes need, such as a field to
7006 store alignment, machine mode, size, and attributes.
7008 `struct tree_field_decl'
7009 This structure inherits from `struct tree_decl_common'. It is
7010 used to represent `FIELD_DECL'.
7012 `struct tree_label_decl'
7013 This structure inherits from `struct tree_decl_common'. It is
7014 used to represent `LABEL_DECL'.
7016 `struct tree_translation_unit_decl'
7017 This structure inherits from `struct tree_decl_common'. It is
7018 used to represent `TRANSLATION_UNIT_DECL'.
7020 `struct tree_decl_with_rtl'
7021 This structure inherits from `struct tree_decl_common'. It
7022 contains a field to store the low-level RTL associated with a
7025 `struct tree_result_decl'
7026 This structure inherits from `struct tree_decl_with_rtl'. It is
7027 used to represent `RESULT_DECL'.
7029 `struct tree_const_decl'
7030 This structure inherits from `struct tree_decl_with_rtl'. It is
7031 used to represent `CONST_DECL'.
7033 `struct tree_parm_decl'
7034 This structure inherits from `struct tree_decl_with_rtl'. It is
7035 used to represent `PARM_DECL'.
7037 `struct tree_decl_with_vis'
7038 This structure inherits from `struct tree_decl_with_rtl'. It
7039 contains fields necessary to store visibility information, as well
7040 as a section name and assembler name.
7042 `struct tree_var_decl'
7043 This structure inherits from `struct tree_decl_with_vis'. It is
7044 used to represent `VAR_DECL'.
7046 `struct tree_function_decl'
7047 This structure inherits from `struct tree_decl_with_vis'. It is
7048 used to represent `FUNCTION_DECL'.
7052 File: gccint.info, Node: Adding new DECL node types, Prev: Current structure hierarchy, Up: Internal structure
7054 9.5.2.2 Adding new DECL node types
7055 ..................................
7057 Adding a new `DECL' tree consists of the following steps
7059 Add a new tree code for the `DECL' node
7060 For language specific `DECL' nodes, there is a `.def' file in each
7061 frontend directory where the tree code should be added. For
7062 `DECL' nodes that are part of the middle-end, the code should be
7063 added to `tree.def'.
7065 Create a new structure type for the `DECL' node
7066 These structures should inherit from one of the existing
7067 structures in the language hierarchy by using that structure as
7070 struct tree_foo_decl
7072 struct tree_decl_with_vis common;
7075 Would create a structure name `tree_foo_decl' that inherits from
7076 `struct tree_decl_with_vis'.
7078 For language specific `DECL' nodes, this new structure type should
7079 go in the appropriate `.h' file. For `DECL' nodes that are part
7080 of the middle-end, the structure type should go in `tree.h'.
7082 Add a member to the tree structure enumerator for the node
7083 For garbage collection and dynamic checking purposes, each `DECL'
7084 node structure type is required to have a unique enumerator value
7085 specified with it. For language specific `DECL' nodes, this new
7086 enumerator value should go in the appropriate `.def' file. For
7087 `DECL' nodes that are part of the middle-end, the enumerator
7088 values are specified in `treestruct.def'.
7090 Update `union tree_node'
7091 In order to make your new structure type usable, it must be added
7092 to `union tree_node'. For language specific `DECL' nodes, a new
7093 entry should be added to the appropriate `.h' file of the form
7094 struct tree_foo_decl GTY ((tag ("TS_VAR_DECL"))) foo_decl;
7095 For `DECL' nodes that are part of the middle-end, the additional
7096 member goes directly into `union tree_node' in `tree.h'.
7098 Update dynamic checking info
7099 In order to be able to check whether accessing a named portion of
7100 `union tree_node' is legal, and whether a certain `DECL' node
7101 contains one of the enumerated `DECL' node structures in the
7102 hierarchy, a simple lookup table is used. This lookup table needs
7103 to be kept up to date with the tree structure hierarchy, or else
7104 checking and containment macros will fail inappropriately.
7106 For language specific `DECL' nodes, their is an `init_ts' function
7107 in an appropriate `.c' file, which initializes the lookup table.
7108 Code setting up the table for new `DECL' nodes should be added
7109 there. For each `DECL' tree code and enumerator value
7110 representing a member of the inheritance hierarchy, the table
7111 should contain 1 if that tree code inherits (directly or
7112 indirectly) from that member. Thus, a `FOO_DECL' node derived
7113 from `struct decl_with_rtl', and enumerator value `TS_FOO_DECL',
7114 would be set up as follows
7115 tree_contains_struct[FOO_DECL][TS_FOO_DECL] = 1;
7116 tree_contains_struct[FOO_DECL][TS_DECL_WRTL] = 1;
7117 tree_contains_struct[FOO_DECL][TS_DECL_COMMON] = 1;
7118 tree_contains_struct[FOO_DECL][TS_DECL_MINIMAL] = 1;
7120 For `DECL' nodes that are part of the middle-end, the setup code
7123 Add macros to access any new fields and flags
7124 Each added field or flag should have a macro that is used to access
7125 it, that performs appropriate checking to ensure only the right
7126 type of `DECL' nodes access the field.
7128 These macros generally take the following form
7129 #define FOO_DECL_FIELDNAME(NODE) FOO_DECL_CHECK(NODE)->foo_decl.fieldname
7130 However, if the structure is simply a base class for further
7131 structures, something like the following should be used
7132 #define BASE_STRUCT_CHECK(T) CONTAINS_STRUCT_CHECK(T, TS_BASE_STRUCT)
7133 #define BASE_STRUCT_FIELDNAME(NODE) \
7134 (BASE_STRUCT_CHECK(NODE)->base_struct.fieldname
7138 File: gccint.info, Node: Functions, Next: Declarations, Prev: Scopes, Up: Trees
7143 A function is represented by a `FUNCTION_DECL' node. A set of
7144 overloaded functions is sometimes represented by a `OVERLOAD' node.
7146 An `OVERLOAD' node is not a declaration, so none of the `DECL_' macros
7147 should be used on an `OVERLOAD'. An `OVERLOAD' node is similar to a
7148 `TREE_LIST'. Use `OVL_CURRENT' to get the function associated with an
7149 `OVERLOAD' node; use `OVL_NEXT' to get the next `OVERLOAD' node in the
7150 list of overloaded functions. The macros `OVL_CURRENT' and `OVL_NEXT'
7151 are actually polymorphic; you can use them to work with `FUNCTION_DECL'
7152 nodes as well as with overloads. In the case of a `FUNCTION_DECL',
7153 `OVL_CURRENT' will always return the function itself, and `OVL_NEXT'
7154 will always be `NULL_TREE'.
7156 To determine the scope of a function, you can use the `DECL_CONTEXT'
7157 macro. This macro will return the class (either a `RECORD_TYPE' or a
7158 `UNION_TYPE') or namespace (a `NAMESPACE_DECL') of which the function
7159 is a member. For a virtual function, this macro returns the class in
7160 which the function was actually defined, not the base class in which
7161 the virtual declaration occurred.
7163 If a friend function is defined in a class scope, the
7164 `DECL_FRIEND_CONTEXT' macro can be used to determine the class in which
7165 it was defined. For example, in
7166 class C { friend void f() {} };
7167 the `DECL_CONTEXT' for `f' will be the `global_namespace', but the
7168 `DECL_FRIEND_CONTEXT' will be the `RECORD_TYPE' for `C'.
7170 In C, the `DECL_CONTEXT' for a function maybe another function. This
7171 representation indicates that the GNU nested function extension is in
7172 use. For details on the semantics of nested functions, see the GCC
7173 Manual. The nested function can refer to local variables in its
7174 containing function. Such references are not explicitly marked in the
7175 tree structure; back ends must look at the `DECL_CONTEXT' for the
7176 referenced `VAR_DECL'. If the `DECL_CONTEXT' for the referenced
7177 `VAR_DECL' is not the same as the function currently being processed,
7178 and neither `DECL_EXTERNAL' nor `TREE_STATIC' hold, then the reference
7179 is to a local variable in a containing function, and the back end must
7180 take appropriate action.
7184 * Function Basics:: Function names, linkage, and so forth.
7185 * Function Bodies:: The statements that make up a function body.
7188 File: gccint.info, Node: Function Basics, Next: Function Bodies, Up: Functions
7190 9.6.1 Function Basics
7191 ---------------------
7193 The following macros and functions can be used on a `FUNCTION_DECL':
7195 This predicate holds for a function that is the program entry point
7199 This macro returns the unqualified name of the function, as an
7200 `IDENTIFIER_NODE'. For an instantiation of a function template,
7201 the `DECL_NAME' is the unqualified name of the template, not
7202 something like `f<int>'. The value of `DECL_NAME' is undefined
7203 when used on a constructor, destructor, overloaded operator, or
7204 type-conversion operator, or any function that is implicitly
7205 generated by the compiler. See below for macros that can be used
7206 to distinguish these cases.
7208 `DECL_ASSEMBLER_NAME'
7209 This macro returns the mangled name of the function, also an
7210 `IDENTIFIER_NODE'. This name does not contain leading underscores
7211 on systems that prefix all identifiers with underscores. The
7212 mangled name is computed in the same way on all platforms; if
7213 special processing is required to deal with the object file format
7214 used on a particular platform, it is the responsibility of the
7215 back end to perform those modifications. (Of course, the back end
7216 should not modify `DECL_ASSEMBLER_NAME' itself.)
7218 Using `DECL_ASSEMBLER_NAME' will cause additional memory to be
7219 allocated (for the mangled name of the entity) so it should be used
7220 only when emitting assembly code. It should not be used within the
7221 optimizers to determine whether or not two declarations are the
7222 same, even though some of the existing optimizers do use it in
7223 that way. These uses will be removed over time.
7226 This predicate holds if the function is undefined.
7229 This predicate holds if the function has external linkage.
7231 `DECL_LOCAL_FUNCTION_P'
7232 This predicate holds if the function was declared at block scope,
7233 even though it has a global scope.
7236 This predicate holds if the function is a built-in function but its
7237 prototype is not yet explicitly declared.
7239 `DECL_EXTERN_C_FUNCTION_P'
7240 This predicate holds if the function is declared as an ``extern
7244 This macro holds if multiple copies of this function may be
7245 emitted in various translation units. It is the responsibility of
7246 the linker to merge the various copies. Template instantiations
7247 are the most common example of functions for which
7248 `DECL_LINKONCE_P' holds; G++ instantiates needed templates in all
7249 translation units which require them, and then relies on the
7250 linker to remove duplicate instantiations.
7252 FIXME: This macro is not yet implemented.
7254 `DECL_FUNCTION_MEMBER_P'
7255 This macro holds if the function is a member of a class, rather
7256 than a member of a namespace.
7258 `DECL_STATIC_FUNCTION_P'
7259 This predicate holds if the function a static member function.
7261 `DECL_NONSTATIC_MEMBER_FUNCTION_P'
7262 This macro holds for a non-static member function.
7264 `DECL_CONST_MEMFUNC_P'
7265 This predicate holds for a `const'-member function.
7267 `DECL_VOLATILE_MEMFUNC_P'
7268 This predicate holds for a `volatile'-member function.
7270 `DECL_CONSTRUCTOR_P'
7271 This macro holds if the function is a constructor.
7273 `DECL_NONCONVERTING_P'
7274 This predicate holds if the constructor is a non-converting
7277 `DECL_COMPLETE_CONSTRUCTOR_P'
7278 This predicate holds for a function which is a constructor for an
7279 object of a complete type.
7281 `DECL_BASE_CONSTRUCTOR_P'
7282 This predicate holds for a function which is a constructor for a
7283 base class sub-object.
7285 `DECL_COPY_CONSTRUCTOR_P'
7286 This predicate holds for a function which is a copy-constructor.
7289 This macro holds if the function is a destructor.
7291 `DECL_COMPLETE_DESTRUCTOR_P'
7292 This predicate holds if the function is the destructor for an
7293 object a complete type.
7295 `DECL_OVERLOADED_OPERATOR_P'
7296 This macro holds if the function is an overloaded operator.
7299 This macro holds if the function is a type-conversion operator.
7301 `DECL_GLOBAL_CTOR_P'
7302 This predicate holds if the function is a file-scope initialization
7305 `DECL_GLOBAL_DTOR_P'
7306 This predicate holds if the function is a file-scope finalization
7310 This predicate holds if the function is a thunk.
7312 These functions represent stub code that adjusts the `this' pointer
7313 and then jumps to another function. When the jumped-to function
7314 returns, control is transferred directly to the caller, without
7315 returning to the thunk. The first parameter to the thunk is
7316 always the `this' pointer; the thunk should add `THUNK_DELTA' to
7317 this value. (The `THUNK_DELTA' is an `int', not an `INTEGER_CST'.)
7319 Then, if `THUNK_VCALL_OFFSET' (an `INTEGER_CST') is nonzero the
7320 adjusted `this' pointer must be adjusted again. The complete
7321 calculation is given by the following pseudo-code:
7324 if (THUNK_VCALL_OFFSET)
7325 this += (*((ptrdiff_t **) this))[THUNK_VCALL_OFFSET]
7327 Finally, the thunk should jump to the location given by
7328 `DECL_INITIAL'; this will always be an expression for the address
7331 `DECL_NON_THUNK_FUNCTION_P'
7332 This predicate holds if the function is _not_ a thunk function.
7334 `GLOBAL_INIT_PRIORITY'
7335 If either `DECL_GLOBAL_CTOR_P' or `DECL_GLOBAL_DTOR_P' holds, then
7336 this gives the initialization priority for the function. The
7337 linker will arrange that all functions for which
7338 `DECL_GLOBAL_CTOR_P' holds are run in increasing order of priority
7339 before `main' is called. When the program exits, all functions for
7340 which `DECL_GLOBAL_DTOR_P' holds are run in the reverse order.
7343 This macro holds if the function was implicitly generated by the
7344 compiler, rather than explicitly declared. In addition to
7345 implicitly generated class member functions, this macro holds for
7346 the special functions created to implement static initialization
7347 and destruction, to compute run-time type information, and so
7351 This macro returns the `PARM_DECL' for the first argument to the
7352 function. Subsequent `PARM_DECL' nodes can be obtained by
7353 following the `TREE_CHAIN' links.
7356 This macro returns the `RESULT_DECL' for the function.
7359 This macro returns the `FUNCTION_TYPE' or `METHOD_TYPE' for the
7362 `TYPE_RAISES_EXCEPTIONS'
7363 This macro returns the list of exceptions that a (member-)function
7364 can raise. The returned list, if non `NULL', is comprised of nodes
7365 whose `TREE_VALUE' represents a type.
7368 This predicate holds when the exception-specification of its
7369 arguments is of the form ``()''.
7371 `DECL_ARRAY_DELETE_OPERATOR_P'
7372 This predicate holds if the function an overloaded `operator
7375 `DECL_FUNCTION_SPECIFIC_TARGET'
7376 This macro returns a tree node that holds the target options that
7377 are to be used to compile this particular function or `NULL_TREE'
7378 if the function is to be compiled with the target options
7379 specified on the command line.
7381 `DECL_FUNCTION_SPECIFIC_OPTIMIZATION'
7382 This macro returns a tree node that holds the optimization options
7383 that are to be used to compile this particular function or
7384 `NULL_TREE' if the function is to be compiled with the
7385 optimization options specified on the command line.
7388 File: gccint.info, Node: Function Bodies, Prev: Function Basics, Up: Functions
7390 9.6.2 Function Bodies
7391 ---------------------
7393 A function that has a definition in the current translation unit will
7394 have a non-`NULL' `DECL_INITIAL'. However, back ends should not make
7395 use of the particular value given by `DECL_INITIAL'.
7397 The `DECL_SAVED_TREE' macro will give the complete body of the
7403 There are tree nodes corresponding to all of the source-level statement
7404 constructs, used within the C and C++ frontends. These are enumerated
7405 here, together with a list of the various macros that can be used to
7406 obtain information about them. There are a few macros that can be used
7407 with all statements:
7409 `STMT_IS_FULL_EXPR_P'
7410 In C++, statements normally constitute "full expressions";
7411 temporaries created during a statement are destroyed when the
7412 statement is complete. However, G++ sometimes represents
7413 expressions by statements; these statements will not have
7414 `STMT_IS_FULL_EXPR_P' set. Temporaries created during such
7415 statements should be destroyed when the innermost enclosing
7416 statement with `STMT_IS_FULL_EXPR_P' set is exited.
7419 Here is the list of the various statement nodes, and the macros used to
7420 access them. This documentation describes the use of these nodes in
7421 non-template functions (including instantiations of template functions).
7422 In template functions, the same nodes are used, but sometimes in
7423 slightly different ways.
7425 Many of the statements have substatements. For example, a `while'
7426 loop will have a body, which is itself a statement. If the substatement
7427 is `NULL_TREE', it is considered equivalent to a statement consisting
7428 of a single `;', i.e., an expression statement in which the expression
7429 has been omitted. A substatement may in fact be a list of statements,
7430 connected via their `TREE_CHAIN's. So, you should always process the
7431 statement tree by looping over substatements, like this:
7432 void process_stmt (stmt)
7437 switch (TREE_CODE (stmt))
7440 process_stmt (THEN_CLAUSE (stmt));
7441 /* More processing here. */
7447 stmt = TREE_CHAIN (stmt);
7450 In other words, while the `then' clause of an `if' statement in C++
7451 can be only one statement (although that one statement may be a
7452 compound statement), the intermediate representation will sometimes use
7453 several statements chained together.
7456 Used to represent an inline assembly statement. For an inline
7457 assembly statement like:
7459 The `ASM_STRING' macro will return a `STRING_CST' node for `"mov
7460 x, y"'. If the original statement made use of the
7461 extended-assembly syntax, then `ASM_OUTPUTS', `ASM_INPUTS', and
7462 `ASM_CLOBBERS' will be the outputs, inputs, and clobbers for the
7463 statement, represented as `STRING_CST' nodes. The
7464 extended-assembly syntax looks like:
7465 asm ("fsinx %1,%0" : "=f" (result) : "f" (angle));
7466 The first string is the `ASM_STRING', containing the instruction
7467 template. The next two strings are the output and inputs,
7468 respectively; this statement has no clobbers. As this example
7469 indicates, "plain" assembly statements are merely a special case
7470 of extended assembly statements; they have no cv-qualifiers,
7471 outputs, inputs, or clobbers. All of the strings will be
7472 `NUL'-terminated, and will contain no embedded `NUL'-characters.
7474 If the assembly statement is declared `volatile', or if the
7475 statement was not an extended assembly statement, and is therefore
7476 implicitly volatile, then the predicate `ASM_VOLATILE_P' will hold
7480 Used to represent a `break' statement. There are no additional
7484 Use to represent a `case' label, range of `case' labels, or a
7485 `default' label. If `CASE_LOW' is `NULL_TREE', then this is a
7486 `default' label. Otherwise, if `CASE_HIGH' is `NULL_TREE', then
7487 this is an ordinary `case' label. In this case, `CASE_LOW' is an
7488 expression giving the value of the label. Both `CASE_LOW' and
7489 `CASE_HIGH' are `INTEGER_CST' nodes. These values will have the
7490 same type as the condition expression in the switch statement.
7492 Otherwise, if both `CASE_LOW' and `CASE_HIGH' are defined, the
7493 statement is a range of case labels. Such statements originate
7494 with the extension that allows users to write things of the form:
7496 The first value will be `CASE_LOW', while the second will be
7500 Used to represent an action that should take place upon exit from
7501 the enclosing scope. Typically, these actions are calls to
7502 destructors for local objects, but back ends cannot rely on this
7503 fact. If these nodes are in fact representing such destructors,
7504 `CLEANUP_DECL' will be the `VAR_DECL' destroyed. Otherwise,
7505 `CLEANUP_DECL' will be `NULL_TREE'. In any case, the
7506 `CLEANUP_EXPR' is the expression to execute. The cleanups
7507 executed on exit from a scope should be run in the reverse order
7508 of the order in which the associated `CLEANUP_STMT's were
7512 Used to represent a `continue' statement. There are no additional
7516 Used to mark the beginning (if `CTOR_BEGIN_P' holds) or end (if
7517 `CTOR_END_P' holds of the main body of a constructor. See also
7518 `SUBOBJECT' for more information on how to use these nodes.
7521 Used to represent a local declaration. The `DECL_STMT_DECL' macro
7522 can be used to obtain the entity declared. This declaration may
7523 be a `LABEL_DECL', indicating that the label declared is a local
7524 label. (As an extension, GCC allows the declaration of labels
7525 with scope.) In C, this declaration may be a `FUNCTION_DECL',
7526 indicating the use of the GCC nested function extension. For more
7527 information, *note Functions::.
7530 Used to represent a `do' loop. The body of the loop is given by
7531 `DO_BODY' while the termination condition for the loop is given by
7532 `DO_COND'. The condition for a `do'-statement is always an
7536 Used to represent a temporary object of a class with no data whose
7537 address is never taken. (All such objects are interchangeable.)
7538 The `TREE_TYPE' represents the type of the object.
7541 Used to represent an expression statement. Use `EXPR_STMT_EXPR' to
7542 obtain the expression.
7545 Used to represent a `for' statement. The `FOR_INIT_STMT' is the
7546 initialization statement for the loop. The `FOR_COND' is the
7547 termination condition. The `FOR_EXPR' is the expression executed
7548 right before the `FOR_COND' on each loop iteration; often, this
7549 expression increments a counter. The body of the loop is given by
7550 `FOR_BODY'. Note that `FOR_INIT_STMT' and `FOR_BODY' return
7551 statements, while `FOR_COND' and `FOR_EXPR' return expressions.
7554 Used to represent a `goto' statement. The `GOTO_DESTINATION' will
7555 usually be a `LABEL_DECL'. However, if the "computed goto"
7556 extension has been used, the `GOTO_DESTINATION' will be an
7557 arbitrary expression indicating the destination. This expression
7558 will always have pointer type.
7561 Used to represent a C++ `catch' block. The `HANDLER_TYPE' is the
7562 type of exception that will be caught by this handler; it is equal
7563 (by pointer equality) to `NULL' if this handler is for all types.
7564 `HANDLER_PARMS' is the `DECL_STMT' for the catch parameter, and
7565 `HANDLER_BODY' is the code for the block itself.
7568 Used to represent an `if' statement. The `IF_COND' is the
7571 If the condition is a `TREE_LIST', then the `TREE_PURPOSE' is a
7572 statement (usually a `DECL_STMT'). Each time the condition is
7573 evaluated, the statement should be executed. Then, the
7574 `TREE_VALUE' should be used as the conditional expression itself.
7575 This representation is used to handle C++ code like this:
7579 where there is a new local variable (or variables) declared within
7582 The `THEN_CLAUSE' represents the statement given by the `then'
7583 condition, while the `ELSE_CLAUSE' represents the statement given
7584 by the `else' condition.
7587 Used to represent a label. The `LABEL_DECL' declared by this
7588 statement can be obtained with the `LABEL_EXPR_LABEL' macro. The
7589 `IDENTIFIER_NODE' giving the name of the label can be obtained from
7590 the `LABEL_DECL' with `DECL_NAME'.
7593 Used to represent a `return' statement. The `RETURN_EXPR' is the
7594 expression returned; it will be `NULL_TREE' if the statement was
7599 In a constructor, these nodes are used to mark the point at which a
7600 subobject of `this' is fully constructed. If, after this point, an
7601 exception is thrown before a `CTOR_STMT' with `CTOR_END_P' set is
7602 encountered, the `SUBOBJECT_CLEANUP' must be executed. The
7603 cleanups must be executed in the reverse order in which they
7607 Used to represent a `switch' statement. The `SWITCH_STMT_COND' is
7608 the expression on which the switch is occurring. See the
7609 documentation for an `IF_STMT' for more information on the
7610 representation used for the condition. The `SWITCH_STMT_BODY' is
7611 the body of the switch statement. The `SWITCH_STMT_TYPE' is the
7612 original type of switch expression as given in the source, before
7613 any compiler conversions.
7616 Used to represent a `try' block. The body of the try block is
7617 given by `TRY_STMTS'. Each of the catch blocks is a `HANDLER'
7618 node. The first handler is given by `TRY_HANDLERS'. Subsequent
7619 handlers are obtained by following the `TREE_CHAIN' link from one
7620 handler to the next. The body of the handler is given by
7623 If `CLEANUP_P' holds of the `TRY_BLOCK', then the `TRY_HANDLERS'
7624 will not be a `HANDLER' node. Instead, it will be an expression
7625 that should be executed if an exception is thrown in the try
7626 block. It must rethrow the exception after executing that code.
7627 And, if an exception is thrown while the expression is executing,
7628 `terminate' must be called.
7631 Used to represent a `using' directive. The namespace is given by
7632 `USING_STMT_NAMESPACE', which will be a NAMESPACE_DECL. This node
7633 is needed inside template functions, to implement using directives
7634 during instantiation.
7637 Used to represent a `while' loop. The `WHILE_COND' is the
7638 termination condition for the loop. See the documentation for an
7639 `IF_STMT' for more information on the representation used for the
7642 The `WHILE_BODY' is the body of the loop.
7646 File: gccint.info, Node: Attributes, Next: Expression trees, Prev: Declarations, Up: Trees
7648 9.7 Attributes in trees
7649 =======================
7651 Attributes, as specified using the `__attribute__' keyword, are
7652 represented internally as a `TREE_LIST'. The `TREE_PURPOSE' is the
7653 name of the attribute, as an `IDENTIFIER_NODE'. The `TREE_VALUE' is a
7654 `TREE_LIST' of the arguments of the attribute, if any, or `NULL_TREE'
7655 if there are no arguments; the arguments are stored as the `TREE_VALUE'
7656 of successive entries in the list, and may be identifiers or
7657 expressions. The `TREE_CHAIN' of the attribute is the next attribute
7658 in a list of attributes applying to the same declaration or type, or
7659 `NULL_TREE' if there are no further attributes in the list.
7661 Attributes may be attached to declarations and to types; these
7662 attributes may be accessed with the following macros. All attributes
7663 are stored in this way, and many also cause other changes to the
7664 declaration or type or to other internal compiler data structures.
7666 -- Tree Macro: tree DECL_ATTRIBUTES (tree DECL)
7667 This macro returns the attributes on the declaration DECL.
7669 -- Tree Macro: tree TYPE_ATTRIBUTES (tree TYPE)
7670 This macro returns the attributes on the type TYPE.
7673 File: gccint.info, Node: Expression trees, Prev: Attributes, Up: Trees
7678 The internal representation for expressions is for the most part quite
7679 straightforward. However, there are a few facts that one must bear in
7680 mind. In particular, the expression "tree" is actually a directed
7681 acyclic graph. (For example there may be many references to the integer
7682 constant zero throughout the source program; many of these will be
7683 represented by the same expression node.) You should not rely on
7684 certain kinds of node being shared, nor should you rely on certain
7685 kinds of nodes being unshared.
7687 The following macros can be used with all expression nodes:
7690 Returns the type of the expression. This value may not be
7691 precisely the same type that would be given the expression in the
7694 In what follows, some nodes that one might expect to always have type
7695 `bool' are documented to have either integral or boolean type. At some
7696 point in the future, the C front end may also make use of this same
7697 intermediate representation, and at this point these nodes will
7698 certainly have integral type. The previous sentence is not meant to
7699 imply that the C++ front end does not or will not give these nodes
7702 Below, we list the various kinds of expression nodes. Except where
7703 noted otherwise, the operands to an expression are accessed using the
7704 `TREE_OPERAND' macro. For example, to access the first operand to a
7705 binary plus expression `expr', use:
7707 TREE_OPERAND (expr, 0)
7708 As this example indicates, the operands are zero-indexed.
7710 All the expressions starting with `OMP_' represent directives and
7711 clauses used by the OpenMP API `http://www.openmp.org/'.
7713 The table below begins with constants, moves on to unary expressions,
7714 then proceeds to binary expressions, and concludes with various other
7715 kinds of expressions:
7718 These nodes represent integer constants. Note that the type of
7719 these constants is obtained with `TREE_TYPE'; they are not always
7720 of type `int'. In particular, `char' constants are represented
7721 with `INTEGER_CST' nodes. The value of the integer constant `e' is
7723 ((TREE_INT_CST_HIGH (e) << HOST_BITS_PER_WIDE_INT)
7724 + TREE_INST_CST_LOW (e))
7725 HOST_BITS_PER_WIDE_INT is at least thirty-two on all platforms.
7726 Both `TREE_INT_CST_HIGH' and `TREE_INT_CST_LOW' return a
7727 `HOST_WIDE_INT'. The value of an `INTEGER_CST' is interpreted as
7728 a signed or unsigned quantity depending on the type of the
7729 constant. In general, the expression given above will overflow,
7730 so it should not be used to calculate the value of the constant.
7732 The variable `integer_zero_node' is an integer constant with value
7733 zero. Similarly, `integer_one_node' is an integer constant with
7734 value one. The `size_zero_node' and `size_one_node' variables are
7735 analogous, but have type `size_t' rather than `int'.
7737 The function `tree_int_cst_lt' is a predicate which holds if its
7738 first argument is less than its second. Both constants are
7739 assumed to have the same signedness (i.e., either both should be
7740 signed or both should be unsigned.) The full width of the
7741 constant is used when doing the comparison; the usual rules about
7742 promotions and conversions are ignored. Similarly,
7743 `tree_int_cst_equal' holds if the two constants are equal. The
7744 `tree_int_cst_sgn' function returns the sign of a constant. The
7745 value is `1', `0', or `-1' according on whether the constant is
7746 greater than, equal to, or less than zero. Again, the signedness
7747 of the constant's type is taken into account; an unsigned constant
7748 is never less than zero, no matter what its bit-pattern.
7751 FIXME: Talk about how to obtain representations of this constant,
7752 do comparisons, and so forth.
7755 These nodes represent fixed-point constants. The type of these
7756 constants is obtained with `TREE_TYPE'. `TREE_FIXED_CST_PTR'
7757 points to to struct fixed_value; `TREE_FIXED_CST' returns the
7758 structure itself. Struct fixed_value contains `data' with the
7759 size of two HOST_BITS_PER_WIDE_INT and `mode' as the associated
7760 fixed-point machine mode for `data'.
7763 These nodes are used to represent complex number constants, that
7764 is a `__complex__' whose parts are constant nodes. The
7765 `TREE_REALPART' and `TREE_IMAGPART' return the real and the
7766 imaginary parts respectively.
7769 These nodes are used to represent vector constants, whose parts are
7770 constant nodes. Each individual constant node is either an
7771 integer or a double constant node. The first operand is a
7772 `TREE_LIST' of the constant nodes and is accessed through
7773 `TREE_VECTOR_CST_ELTS'.
7776 These nodes represent string-constants. The `TREE_STRING_LENGTH'
7777 returns the length of the string, as an `int'. The
7778 `TREE_STRING_POINTER' is a `char*' containing the string itself.
7779 The string may not be `NUL'-terminated, and it may contain
7780 embedded `NUL' characters. Therefore, the `TREE_STRING_LENGTH'
7781 includes the trailing `NUL' if it is present.
7783 For wide string constants, the `TREE_STRING_LENGTH' is the number
7784 of bytes in the string, and the `TREE_STRING_POINTER' points to an
7785 array of the bytes of the string, as represented on the target
7786 system (that is, as integers in the target endianness). Wide and
7787 non-wide string constants are distinguished only by the `TREE_TYPE'
7788 of the `STRING_CST'.
7790 FIXME: The formats of string constants are not well-defined when
7791 the target system bytes are not the same width as host system
7795 These nodes are used to represent pointer-to-member constants. The
7796 `PTRMEM_CST_CLASS' is the class type (either a `RECORD_TYPE' or
7797 `UNION_TYPE' within which the pointer points), and the
7798 `PTRMEM_CST_MEMBER' is the declaration for the pointed to object.
7799 Note that the `DECL_CONTEXT' for the `PTRMEM_CST_MEMBER' is in
7800 general different from the `PTRMEM_CST_CLASS'. For example, given:
7801 struct B { int i; };
7802 struct D : public B {};
7804 The `PTRMEM_CST_CLASS' for `&D::i' is `D', even though the
7805 `DECL_CONTEXT' for the `PTRMEM_CST_MEMBER' is `B', since `B::i' is
7806 a member of `B', not `D'.
7809 These nodes represent variables, including static data members.
7810 For more information, *note Declarations::.
7813 These nodes represent unary negation of the single operand, for
7814 both integer and floating-point types. The type of negation can be
7815 determined by looking at the type of the expression.
7817 The behavior of this operation on signed arithmetic overflow is
7818 controlled by the `flag_wrapv' and `flag_trapv' variables.
7821 These nodes represent the absolute value of the single operand, for
7822 both integer and floating-point types. This is typically used to
7823 implement the `abs', `labs' and `llabs' builtins for integer
7824 types, and the `fabs', `fabsf' and `fabsl' builtins for floating
7825 point types. The type of abs operation can be determined by
7826 looking at the type of the expression.
7828 This node is not used for complex types. To represent the modulus
7829 or complex abs of a complex value, use the `BUILT_IN_CABS',
7830 `BUILT_IN_CABSF' or `BUILT_IN_CABSL' builtins, as used to
7831 implement the C99 `cabs', `cabsf' and `cabsl' built-in functions.
7834 These nodes represent bitwise complement, and will always have
7835 integral type. The only operand is the value to be complemented.
7838 These nodes represent logical negation, and will always have
7839 integral (or boolean) type. The operand is the value being
7840 negated. The type of the operand and that of the result are
7841 always of `BOOLEAN_TYPE' or `INTEGER_TYPE'.
7845 `POSTDECREMENT_EXPR'
7846 `POSTINCREMENT_EXPR'
7847 These nodes represent increment and decrement expressions. The
7848 value of the single operand is computed, and the operand
7849 incremented or decremented. In the case of `PREDECREMENT_EXPR' and
7850 `PREINCREMENT_EXPR', the value of the expression is the value
7851 resulting after the increment or decrement; in the case of
7852 `POSTDECREMENT_EXPR' and `POSTINCREMENT_EXPR' is the value before
7853 the increment or decrement occurs. The type of the operand, like
7854 that of the result, will be either integral, boolean, or
7858 These nodes are used to represent the address of an object. (These
7859 expressions will always have pointer or reference type.) The
7860 operand may be another expression, or it may be a declaration.
7862 As an extension, GCC allows users to take the address of a label.
7863 In this case, the operand of the `ADDR_EXPR' will be a
7864 `LABEL_DECL'. The type of such an expression is `void*'.
7866 If the object addressed is not an lvalue, a temporary is created,
7867 and the address of the temporary is used.
7870 These nodes are used to represent the object pointed to by a
7871 pointer. The operand is the pointer being dereferenced; it will
7872 always have pointer or reference type.
7875 These nodes represent conversion of a floating-point value to an
7876 integer. The single operand will have a floating-point type, while
7877 the complete expression will have an integral (or boolean) type.
7878 The operand is rounded towards zero.
7881 These nodes represent conversion of an integral (or boolean) value
7882 to a floating-point value. The single operand will have integral
7883 type, while the complete expression will have a floating-point
7886 FIXME: How is the operand supposed to be rounded? Is this
7887 dependent on `-mieee'?
7890 These nodes are used to represent complex numbers constructed from
7891 two expressions of the same (integer or real) type. The first
7892 operand is the real part and the second operand is the imaginary
7896 These nodes represent the conjugate of their operand.
7900 These nodes represent respectively the real and the imaginary parts
7901 of complex numbers (their sole argument).
7904 These nodes indicate that their one and only operand is not an
7905 lvalue. A back end can treat these identically to the single
7909 These nodes are used to represent conversions that do not require
7910 any code-generation. For example, conversion of a `char*' to an
7911 `int*' does not require any code be generated; such a conversion is
7912 represented by a `NOP_EXPR'. The single operand is the expression
7913 to be converted. The conversion from a pointer to a reference is
7914 also represented with a `NOP_EXPR'.
7917 These nodes are similar to `NOP_EXPR's, but are used in those
7918 situations where code may need to be generated. For example, if an
7919 `int*' is converted to an `int' code may need to be generated on
7920 some platforms. These nodes are never used for C++-specific
7921 conversions, like conversions between pointers to different
7922 classes in an inheritance hierarchy. Any adjustments that need to
7923 be made in such cases are always indicated explicitly. Similarly,
7924 a user-defined conversion is never represented by a
7925 `CONVERT_EXPR'; instead, the function calls are made explicit.
7927 `FIXED_CONVERT_EXPR'
7928 These nodes are used to represent conversions that involve
7929 fixed-point values. For example, from a fixed-point value to
7930 another fixed-point value, from an integer to a fixed-point value,
7931 from a fixed-point value to an integer, from a floating-point
7932 value to a fixed-point value, or from a fixed-point value to a
7933 floating-point value.
7936 These nodes represent `throw' expressions. The single operand is
7937 an expression for the code that should be executed to throw the
7938 exception. However, there is one implicit action not represented
7939 in that expression; namely the call to `__throw'. This function
7940 takes no arguments. If `setjmp'/`longjmp' exceptions are used, the
7941 function `__sjthrow' is called instead. The normal GCC back end
7942 uses the function `emit_throw' to generate this code; you can
7943 examine this function to see what needs to be done.
7947 These nodes represent left and right shifts, respectively. The
7948 first operand is the value to shift; it will always be of integral
7949 type. The second operand is an expression for the number of bits
7950 by which to shift. Right shift should be treated as arithmetic,
7951 i.e., the high-order bits should be zero-filled when the
7952 expression has unsigned type and filled with the sign bit when the
7953 expression has signed type. Note that the result is undefined if
7954 the second operand is larger than or equal to the first operand's
7960 These nodes represent bitwise inclusive or, bitwise exclusive or,
7961 and bitwise and, respectively. Both operands will always have
7966 These nodes represent logical "and" and logical "or", respectively.
7967 These operators are not strict; i.e., the second operand is
7968 evaluated only if the value of the expression is not determined by
7969 evaluation of the first operand. The type of the operands and
7970 that of the result are always of `BOOLEAN_TYPE' or `INTEGER_TYPE'.
7975 These nodes represent logical and, logical or, and logical
7976 exclusive or. They are strict; both arguments are always
7977 evaluated. There are no corresponding operators in C or C++, but
7978 the front end will sometimes generate these expressions anyhow, if
7979 it can tell that strictness does not matter. The type of the
7980 operands and that of the result are always of `BOOLEAN_TYPE' or
7984 This node represents pointer arithmetic. The first operand is
7985 always a pointer/reference type. The second operand is always an
7986 unsigned integer type compatible with sizetype. This is the only
7987 binary arithmetic operand that can operate on pointer types.
7992 These nodes represent various binary arithmetic operations.
7993 Respectively, these operations are addition, subtraction (of the
7994 second operand from the first) and multiplication. Their operands
7995 may have either integral or floating type, but there will never be
7996 case in which one operand is of floating type and the other is of
7999 The behavior of these operations on signed arithmetic overflow is
8000 controlled by the `flag_wrapv' and `flag_trapv' variables.
8003 This node represents a floating point division operation.
8009 These nodes represent integer division operations that return an
8010 integer result. `TRUNC_DIV_EXPR' rounds towards zero,
8011 `FLOOR_DIV_EXPR' rounds towards negative infinity, `CEIL_DIV_EXPR'
8012 rounds towards positive infinity and `ROUND_DIV_EXPR' rounds to
8013 the closest integer. Integer division in C and C++ is truncating,
8014 i.e. `TRUNC_DIV_EXPR'.
8016 The behavior of these operations on signed arithmetic overflow,
8017 when dividing the minimum signed integer by minus one, is
8018 controlled by the `flag_wrapv' and `flag_trapv' variables.
8024 These nodes represent the integer remainder or modulus operation.
8025 The integer modulus of two operands `a' and `b' is defined as `a -
8026 (a/b)*b' where the division calculated using the corresponding
8027 division operator. Hence for `TRUNC_MOD_EXPR' this definition
8028 assumes division using truncation towards zero, i.e.
8029 `TRUNC_DIV_EXPR'. Integer remainder in C and C++ uses truncating
8030 division, i.e. `TRUNC_MOD_EXPR'.
8033 The `EXACT_DIV_EXPR' code is used to represent integer divisions
8034 where the numerator is known to be an exact multiple of the
8035 denominator. This allows the backend to choose between the faster
8036 of `TRUNC_DIV_EXPR', `CEIL_DIV_EXPR' and `FLOOR_DIV_EXPR' for the
8040 These nodes represent array accesses. The first operand is the
8041 array; the second is the index. To calculate the address of the
8042 memory accessed, you must scale the index by the size of the type
8043 of the array elements. The type of these expressions must be the
8044 type of a component of the array. The third and fourth operands
8045 are used after gimplification to represent the lower bound and
8046 component size but should not be used directly; call
8047 `array_ref_low_bound' and `array_ref_element_size' instead.
8050 These nodes represent access to a range (or "slice") of an array.
8051 The operands are the same as that for `ARRAY_REF' and have the same
8052 meanings. The type of these expressions must be an array whose
8053 component type is the same as that of the first operand. The
8054 range of that array type determines the amount of data these
8058 These nodes represent memory accesses whose address directly map to
8059 an addressing mode of the target architecture. The first argument
8060 is `TMR_SYMBOL' and must be a `VAR_DECL' of an object with a fixed
8061 address. The second argument is `TMR_BASE' and the third one is
8062 `TMR_INDEX'. The fourth argument is `TMR_STEP' and must be an
8063 `INTEGER_CST'. The fifth argument is `TMR_OFFSET' and must be an
8064 `INTEGER_CST'. Any of the arguments may be NULL if the
8065 appropriate component does not appear in the address. Address of
8066 the `TARGET_MEM_REF' is determined in the following way.
8068 &TMR_SYMBOL + TMR_BASE + TMR_INDEX * TMR_STEP + TMR_OFFSET
8070 The sixth argument is the reference to the original memory access,
8071 which is preserved for the purposes of the RTL alias analysis.
8072 The seventh argument is a tag representing the results of tree
8073 level alias analysis.
8081 These nodes represent the less than, less than or equal to, greater
8082 than, greater than or equal to, equal, and not equal comparison
8083 operators. The first and second operand with either be both of
8084 integral type or both of floating type. The result type of these
8085 expressions will always be of integral or boolean type. These
8086 operations return the result type's zero value for false, and the
8087 result type's one value for true.
8089 For floating point comparisons, if we honor IEEE NaNs and either
8090 operand is NaN, then `NE_EXPR' always returns true and the
8091 remaining operators always return false. On some targets,
8092 comparisons against an IEEE NaN, other than equality and
8093 inequality, may generate a floating point exception.
8097 These nodes represent non-trapping ordered and unordered comparison
8098 operators. These operations take two floating point operands and
8099 determine whether they are ordered or unordered relative to each
8100 other. If either operand is an IEEE NaN, their comparison is
8101 defined to be unordered, otherwise the comparison is defined to be
8102 ordered. The result type of these expressions will always be of
8103 integral or boolean type. These operations return the result
8104 type's zero value for false, and the result type's one value for
8113 These nodes represent the unordered comparison operators. These
8114 operations take two floating point operands and determine whether
8115 the operands are unordered or are less than, less than or equal to,
8116 greater than, greater than or equal to, or equal respectively. For
8117 example, `UNLT_EXPR' returns true if either operand is an IEEE NaN
8118 or the first operand is less than the second. With the possible
8119 exception of `LTGT_EXPR', all of these operations are guaranteed
8120 not to generate a floating point exception. The result type of
8121 these expressions will always be of integral or boolean type.
8122 These operations return the result type's zero value for false,
8123 and the result type's one value for true.
8126 These nodes represent assignment. The left-hand side is the first
8127 operand; the right-hand side is the second operand. The left-hand
8128 side will be a `VAR_DECL', `INDIRECT_REF', `COMPONENT_REF', or
8131 These nodes are used to represent not only assignment with `=' but
8132 also compound assignments (like `+='), by reduction to `='
8133 assignment. In other words, the representation for `i += 3' looks
8134 just like that for `i = i + 3'.
8137 These nodes are just like `MODIFY_EXPR', but are used only when a
8138 variable is initialized, rather than assigned to subsequently.
8139 This means that we can assume that the target of the
8140 initialization is not used in computing its own value; any
8141 reference to the lhs in computing the rhs is undefined.
8144 These nodes represent non-static data member accesses. The first
8145 operand is the object (rather than a pointer to it); the second
8146 operand is the `FIELD_DECL' for the data member. The third
8147 operand represents the byte offset of the field, but should not be
8148 used directly; call `component_ref_field_offset' instead.
8151 These nodes represent comma-expressions. The first operand is an
8152 expression whose value is computed and thrown away prior to the
8153 evaluation of the second operand. The value of the entire
8154 expression is the value of the second operand.
8157 These nodes represent `?:' expressions. The first operand is of
8158 boolean or integral type. If it evaluates to a nonzero value, the
8159 second operand should be evaluated, and returned as the value of
8160 the expression. Otherwise, the third operand is evaluated, and
8161 returned as the value of the expression.
8163 The second operand must have the same type as the entire
8164 expression, unless it unconditionally throws an exception or calls
8165 a noreturn function, in which case it should have void type. The
8166 same constraints apply to the third operand. This allows array
8167 bounds checks to be represented conveniently as `(i >= 0 && i <
8170 As a GNU extension, the C language front-ends allow the second
8171 operand of the `?:' operator may be omitted in the source. For
8172 example, `x ? : 3' is equivalent to `x ? x : 3', assuming that `x'
8173 is an expression without side-effects. In the tree
8174 representation, however, the second operand is always present,
8175 possibly protected by `SAVE_EXPR' if the first argument does cause
8179 These nodes are used to represent calls to functions, including
8180 non-static member functions. `CALL_EXPR's are implemented as
8181 expression nodes with a variable number of operands. Rather than
8182 using `TREE_OPERAND' to extract them, it is preferable to use the
8183 specialized accessor macros and functions that operate
8184 specifically on `CALL_EXPR' nodes.
8186 `CALL_EXPR_FN' returns a pointer to the function to call; it is
8187 always an expression whose type is a `POINTER_TYPE'.
8189 The number of arguments to the call is returned by
8190 `call_expr_nargs', while the arguments themselves can be accessed
8191 with the `CALL_EXPR_ARG' macro. The arguments are zero-indexed
8192 and numbered left-to-right. You can iterate over the arguments
8193 using `FOR_EACH_CALL_EXPR_ARG', as in:
8196 call_expr_arg_iterator iter;
8197 FOR_EACH_CALL_EXPR_ARG (arg, iter, call)
8198 /* arg is bound to successive arguments of call. */
8201 For non-static member functions, there will be an operand
8202 corresponding to the `this' pointer. There will always be
8203 expressions corresponding to all of the arguments, even if the
8204 function is declared with default arguments and some arguments are
8205 not explicitly provided at the call sites.
8207 `CALL_EXPR's also have a `CALL_EXPR_STATIC_CHAIN' operand that is
8208 used to implement nested functions. This operand is otherwise
8212 These nodes are used to represent GCC's statement-expression
8213 extension. The statement-expression extension allows code like
8215 int f() { return ({ int j; j = 3; j + 7; }); }
8216 In other words, an sequence of statements may occur where a single
8217 expression would normally appear. The `STMT_EXPR' node represents
8218 such an expression. The `STMT_EXPR_STMT' gives the statement
8219 contained in the expression. The value of the expression is the
8220 value of the last sub-statement in the body. More precisely, the
8221 value is the value computed by the last statement nested inside
8222 `BIND_EXPR', `TRY_FINALLY_EXPR', or `TRY_CATCH_EXPR'. For
8225 the value is `3' while in:
8227 there is no value. If the `STMT_EXPR' does not yield a value,
8228 it's type will be `void'.
8231 These nodes represent local blocks. The first operand is a list of
8232 variables, connected via their `TREE_CHAIN' field. These will
8233 never require cleanups. The scope of these variables is just the
8234 body of the `BIND_EXPR'. The body of the `BIND_EXPR' is the
8238 These nodes represent "infinite" loops. The `LOOP_EXPR_BODY'
8239 represents the body of the loop. It should be executed forever,
8240 unless an `EXIT_EXPR' is encountered.
8243 These nodes represent conditional exits from the nearest enclosing
8244 `LOOP_EXPR'. The single operand is the condition; if it is
8245 nonzero, then the loop should be exited. An `EXIT_EXPR' will only
8246 appear within a `LOOP_EXPR'.
8248 `CLEANUP_POINT_EXPR'
8249 These nodes represent full-expressions. The single operand is an
8250 expression to evaluate. Any destructor calls engendered by the
8251 creation of temporaries during the evaluation of that expression
8252 should be performed immediately after the expression is evaluated.
8255 These nodes represent the brace-enclosed initializers for a
8256 structure or array. The first operand is reserved for use by the
8257 back end. The second operand is a `TREE_LIST'. If the
8258 `TREE_TYPE' of the `CONSTRUCTOR' is a `RECORD_TYPE' or
8259 `UNION_TYPE', then the `TREE_PURPOSE' of each node in the
8260 `TREE_LIST' will be a `FIELD_DECL' and the `TREE_VALUE' of each
8261 node will be the expression used to initialize that field.
8263 If the `TREE_TYPE' of the `CONSTRUCTOR' is an `ARRAY_TYPE', then
8264 the `TREE_PURPOSE' of each element in the `TREE_LIST' will be an
8265 `INTEGER_CST' or a `RANGE_EXPR' of two `INTEGER_CST's. A single
8266 `INTEGER_CST' indicates which element of the array (indexed from
8267 zero) is being assigned to. A `RANGE_EXPR' indicates an inclusive
8268 range of elements to initialize. In both cases the `TREE_VALUE'
8269 is the corresponding initializer. It is re-evaluated for each
8270 element of a `RANGE_EXPR'. If the `TREE_PURPOSE' is `NULL_TREE',
8271 then the initializer is for the next available array element.
8273 In the front end, you should not depend on the fields appearing in
8274 any particular order. However, in the middle end, fields must
8275 appear in declaration order. You should not assume that all
8276 fields will be represented. Unrepresented fields will be set to
8279 `COMPOUND_LITERAL_EXPR'
8280 These nodes represent ISO C99 compound literals. The
8281 `COMPOUND_LITERAL_EXPR_DECL_STMT' is a `DECL_STMT' containing an
8282 anonymous `VAR_DECL' for the unnamed object represented by the
8283 compound literal; the `DECL_INITIAL' of that `VAR_DECL' is a
8284 `CONSTRUCTOR' representing the brace-enclosed list of initializers
8285 in the compound literal. That anonymous `VAR_DECL' can also be
8286 accessed directly by the `COMPOUND_LITERAL_EXPR_DECL' macro.
8289 A `SAVE_EXPR' represents an expression (possibly involving
8290 side-effects) that is used more than once. The side-effects should
8291 occur only the first time the expression is evaluated. Subsequent
8292 uses should just reuse the computed value. The first operand to
8293 the `SAVE_EXPR' is the expression to evaluate. The side-effects
8294 should be executed where the `SAVE_EXPR' is first encountered in a
8295 depth-first preorder traversal of the expression tree.
8298 A `TARGET_EXPR' represents a temporary object. The first operand
8299 is a `VAR_DECL' for the temporary variable. The second operand is
8300 the initializer for the temporary. The initializer is evaluated
8301 and, if non-void, copied (bitwise) into the temporary. If the
8302 initializer is void, that means that it will perform the
8303 initialization itself.
8305 Often, a `TARGET_EXPR' occurs on the right-hand side of an
8306 assignment, or as the second operand to a comma-expression which is
8307 itself the right-hand side of an assignment, etc. In this case,
8308 we say that the `TARGET_EXPR' is "normal"; otherwise, we say it is
8309 "orphaned". For a normal `TARGET_EXPR' the temporary variable
8310 should be treated as an alias for the left-hand side of the
8311 assignment, rather than as a new temporary variable.
8313 The third operand to the `TARGET_EXPR', if present, is a
8314 cleanup-expression (i.e., destructor call) for the temporary. If
8315 this expression is orphaned, then this expression must be executed
8316 when the statement containing this expression is complete. These
8317 cleanups must always be executed in the order opposite to that in
8318 which they were encountered. Note that if a temporary is created
8319 on one branch of a conditional operator (i.e., in the second or
8320 third operand to a `COND_EXPR'), the cleanup must be run only if
8321 that branch is actually executed.
8323 See `STMT_IS_FULL_EXPR_P' for more information about running these
8327 An `AGGR_INIT_EXPR' represents the initialization as the return
8328 value of a function call, or as the result of a constructor. An
8329 `AGGR_INIT_EXPR' will only appear as a full-expression, or as the
8330 second operand of a `TARGET_EXPR'. `AGGR_INIT_EXPR's have a
8331 representation similar to that of `CALL_EXPR's. You can use the
8332 `AGGR_INIT_EXPR_FN' and `AGGR_INIT_EXPR_ARG' macros to access the
8333 function to call and the arguments to pass.
8335 If `AGGR_INIT_VIA_CTOR_P' holds of the `AGGR_INIT_EXPR', then the
8336 initialization is via a constructor call. The address of the
8337 `AGGR_INIT_EXPR_SLOT' operand, which is always a `VAR_DECL', is
8338 taken, and this value replaces the first argument in the argument
8341 In either case, the expression is void.
8344 This node is used to implement support for the C/C++ variable
8345 argument-list mechanism. It represents expressions like `va_arg
8346 (ap, type)'. Its `TREE_TYPE' yields the tree representation for
8347 `type' and its sole argument yields the representation for `ap'.
8349 `CHANGE_DYNAMIC_TYPE_EXPR'
8350 Indicates the special aliasing required by C++ placement new. It
8351 has two operands: a type and a location. It means that the
8352 dynamic type of the location is changing to be the specified type.
8353 The alias analysis code takes this into account when doing type
8354 based alias analysis.
8357 Represents `#pragma omp parallel [clause1 ... clauseN]'. It has
8360 Operand `OMP_PARALLEL_BODY' is valid while in GENERIC and High
8361 GIMPLE forms. It contains the body of code to be executed by all
8362 the threads. During GIMPLE lowering, this operand becomes `NULL'
8363 and the body is emitted linearly after `OMP_PARALLEL'.
8365 Operand `OMP_PARALLEL_CLAUSES' is the list of clauses associated
8368 Operand `OMP_PARALLEL_FN' is created by `pass_lower_omp', it
8369 contains the `FUNCTION_DECL' for the function that will contain
8370 the body of the parallel region.
8372 Operand `OMP_PARALLEL_DATA_ARG' is also created by
8373 `pass_lower_omp'. If there are shared variables to be communicated
8374 to the children threads, this operand will contain the `VAR_DECL'
8375 that contains all the shared values and variables.
8378 Represents `#pragma omp for [clause1 ... clauseN]'. It has 5
8381 Operand `OMP_FOR_BODY' contains the loop body.
8383 Operand `OMP_FOR_CLAUSES' is the list of clauses associated with
8386 Operand `OMP_FOR_INIT' is the loop initialization code of the form
8389 Operand `OMP_FOR_COND' is the loop conditional expression of the
8390 form `VAR {<,>,<=,>=} N2'.
8392 Operand `OMP_FOR_INCR' is the loop index increment of the form
8395 Operand `OMP_FOR_PRE_BODY' contains side-effect code from operands
8396 `OMP_FOR_INIT', `OMP_FOR_COND' and `OMP_FOR_INC'. These
8397 side-effects are part of the `OMP_FOR' block but must be evaluated
8398 before the start of loop body.
8400 The loop index variable `VAR' must be a signed integer variable,
8401 which is implicitly private to each thread. Bounds `N1' and `N2'
8402 and the increment expression `INCR' are required to be loop
8403 invariant integer expressions that are evaluated without any
8404 synchronization. The evaluation order, frequency of evaluation and
8405 side-effects are unspecified by the standard.
8408 Represents `#pragma omp sections [clause1 ... clauseN]'.
8410 Operand `OMP_SECTIONS_BODY' contains the sections body, which in
8411 turn contains a set of `OMP_SECTION' nodes for each of the
8412 concurrent sections delimited by `#pragma omp section'.
8414 Operand `OMP_SECTIONS_CLAUSES' is the list of clauses associated
8418 Section delimiter for `OMP_SECTIONS'.
8421 Represents `#pragma omp single'.
8423 Operand `OMP_SINGLE_BODY' contains the body of code to be executed
8426 Operand `OMP_SINGLE_CLAUSES' is the list of clauses associated
8430 Represents `#pragma omp master'.
8432 Operand `OMP_MASTER_BODY' contains the body of code to be executed
8433 by the master thread.
8436 Represents `#pragma omp ordered'.
8438 Operand `OMP_ORDERED_BODY' contains the body of code to be
8439 executed in the sequential order dictated by the loop index
8443 Represents `#pragma omp critical [name]'.
8445 Operand `OMP_CRITICAL_BODY' is the critical section.
8447 Operand `OMP_CRITICAL_NAME' is an optional identifier to label the
8451 This does not represent any OpenMP directive, it is an artificial
8452 marker to indicate the end of the body of an OpenMP. It is used by
8453 the flow graph (`tree-cfg.c') and OpenMP region building code
8457 Similarly, this instruction does not represent an OpenMP
8458 directive, it is used by `OMP_FOR' and `OMP_SECTIONS' to mark the
8459 place where the code needs to loop to the next iteration (in the
8460 case of `OMP_FOR') or the next section (in the case of
8463 In some cases, `OMP_CONTINUE' is placed right before `OMP_RETURN'.
8464 But if there are cleanups that need to occur right after the
8465 looping body, it will be emitted between `OMP_CONTINUE' and
8469 Represents `#pragma omp atomic'.
8471 Operand 0 is the address at which the atomic operation is to be
8474 Operand 1 is the expression to evaluate. The gimplifier tries
8475 three alternative code generation strategies. Whenever possible,
8476 an atomic update built-in is used. If that fails, a
8477 compare-and-swap loop is attempted. If that also fails, a regular
8478 critical section around the expression is used.
8481 Represents clauses associated with one of the `OMP_' directives.
8482 Clauses are represented by separate sub-codes defined in `tree.h'.
8483 Clauses codes can be one of: `OMP_CLAUSE_PRIVATE',
8484 `OMP_CLAUSE_SHARED', `OMP_CLAUSE_FIRSTPRIVATE',
8485 `OMP_CLAUSE_LASTPRIVATE', `OMP_CLAUSE_COPYIN',
8486 `OMP_CLAUSE_COPYPRIVATE', `OMP_CLAUSE_IF',
8487 `OMP_CLAUSE_NUM_THREADS', `OMP_CLAUSE_SCHEDULE',
8488 `OMP_CLAUSE_NOWAIT', `OMP_CLAUSE_ORDERED', `OMP_CLAUSE_DEFAULT',
8489 and `OMP_CLAUSE_REDUCTION'. Each code represents the
8490 corresponding OpenMP clause.
8492 Clauses associated with the same directive are chained together
8493 via `OMP_CLAUSE_CHAIN'. Those clauses that accept a list of
8494 variables are restricted to exactly one, accessed with
8495 `OMP_CLAUSE_VAR'. Therefore, multiple variables under the same
8496 clause `C' need to be represented as multiple `C' clauses chained
8497 together. This facilitates adding new clauses during compilation.
8502 These nodes represent whole vector left and right shifts,
8503 respectively. The first operand is the vector to shift; it will
8504 always be of vector type. The second operand is an expression for
8505 the number of bits by which to shift. Note that the result is
8506 undefined if the second operand is larger than or equal to the
8507 first operand's type size.
8509 `VEC_WIDEN_MULT_HI_EXPR'
8511 `VEC_WIDEN_MULT_LO_EXPR'
8512 These nodes represent widening vector multiplication of the high
8513 and low parts of the two input vectors, respectively. Their
8514 operands are vectors that contain the same number of elements
8515 (`N') of the same integral type. The result is a vector that
8516 contains half as many elements, of an integral type whose size is
8517 twice as wide. In the case of `VEC_WIDEN_MULT_HI_EXPR' the high
8518 `N/2' elements of the two vector are multiplied to produce the
8519 vector of `N/2' products. In the case of `VEC_WIDEN_MULT_LO_EXPR'
8520 the low `N/2' elements of the two vector are multiplied to produce
8521 the vector of `N/2' products.
8523 `VEC_UNPACK_HI_EXPR'
8525 `VEC_UNPACK_LO_EXPR'
8526 These nodes represent unpacking of the high and low parts of the
8527 input vector, respectively. The single operand is a vector that
8528 contains `N' elements of the same integral or floating point type.
8529 The result is a vector that contains half as many elements, of an
8530 integral or floating point type whose size is twice as wide. In
8531 the case of `VEC_UNPACK_HI_EXPR' the high `N/2' elements of the
8532 vector are extracted and widened (promoted). In the case of
8533 `VEC_UNPACK_LO_EXPR' the low `N/2' elements of the vector are
8534 extracted and widened (promoted).
8536 `VEC_UNPACK_FLOAT_HI_EXPR'
8538 `VEC_UNPACK_FLOAT_LO_EXPR'
8539 These nodes represent unpacking of the high and low parts of the
8540 input vector, where the values are converted from fixed point to
8541 floating point. The single operand is a vector that contains `N'
8542 elements of the same integral type. The result is a vector that
8543 contains half as many elements of a floating point type whose size
8544 is twice as wide. In the case of `VEC_UNPACK_HI_EXPR' the high
8545 `N/2' elements of the vector are extracted, converted and widened.
8546 In the case of `VEC_UNPACK_LO_EXPR' the low `N/2' elements of the
8547 vector are extracted, converted and widened.
8549 `VEC_PACK_TRUNC_EXPR'
8550 This node represents packing of truncated elements of the two
8551 input vectors into the output vector. Input operands are vectors
8552 that contain the same number of elements of the same integral or
8553 floating point type. The result is a vector that contains twice
8554 as many elements of an integral or floating point type whose size
8555 is half as wide. The elements of the two vectors are demoted and
8556 merged (concatenated) to form the output vector.
8559 This node represents packing of elements of the two input vectors
8560 into the output vector using saturation. Input operands are
8561 vectors that contain the same number of elements of the same
8562 integral type. The result is a vector that contains twice as many
8563 elements of an integral type whose size is half as wide. The
8564 elements of the two vectors are demoted and merged (concatenated)
8565 to form the output vector.
8567 `VEC_PACK_FIX_TRUNC_EXPR'
8568 This node represents packing of elements of the two input vectors
8569 into the output vector, where the values are converted from
8570 floating point to fixed point. Input operands are vectors that
8571 contain the same number of elements of a floating point type. The
8572 result is a vector that contains twice as many elements of an
8573 integral type whose size is half as wide. The elements of the two
8574 vectors are merged (concatenated) to form the output vector.
8576 `VEC_EXTRACT_EVEN_EXPR'
8578 `VEC_EXTRACT_ODD_EXPR'
8579 These nodes represent extracting of the even/odd elements of the
8580 two input vectors, respectively. Their operands and result are
8581 vectors that contain the same number of elements of the same type.
8583 `VEC_INTERLEAVE_HIGH_EXPR'
8585 `VEC_INTERLEAVE_LOW_EXPR'
8586 These nodes represent merging and interleaving of the high/low
8587 elements of the two input vectors, respectively. The operands and
8588 the result are vectors that contain the same number of elements
8589 (`N') of the same type. In the case of
8590 `VEC_INTERLEAVE_HIGH_EXPR', the high `N/2' elements of the first
8591 input vector are interleaved with the high `N/2' elements of the
8592 second input vector. In the case of `VEC_INTERLEAVE_LOW_EXPR', the
8593 low `N/2' elements of the first input vector are interleaved with
8594 the low `N/2' elements of the second input vector.
8598 File: gccint.info, Node: RTL, Next: GENERIC, Prev: Trees, Up: Top
8600 10 RTL Representation
8601 *********************
8603 Most of the work of the compiler is done on an intermediate
8604 representation called register transfer language. In this language,
8605 the instructions to be output are described, pretty much one by one, in
8606 an algebraic form that describes what the instruction does.
8608 RTL is inspired by Lisp lists. It has both an internal form, made up
8609 of structures that point at other structures, and a textual form that
8610 is used in the machine description and in printed debugging dumps. The
8611 textual form uses nested parentheses to indicate the pointers in the
8616 * RTL Objects:: Expressions vs vectors vs strings vs integers.
8617 * RTL Classes:: Categories of RTL expression objects, and their structure.
8618 * Accessors:: Macros to access expression operands or vector elts.
8619 * Special Accessors:: Macros to access specific annotations on RTL.
8620 * Flags:: Other flags in an RTL expression.
8621 * Machine Modes:: Describing the size and format of a datum.
8622 * Constants:: Expressions with constant values.
8623 * Regs and Memory:: Expressions representing register contents or memory.
8624 * Arithmetic:: Expressions representing arithmetic on other expressions.
8625 * Comparisons:: Expressions representing comparison of expressions.
8626 * Bit-Fields:: Expressions representing bit-fields in memory or reg.
8627 * Vector Operations:: Expressions involving vector datatypes.
8628 * Conversions:: Extending, truncating, floating or fixing.
8629 * RTL Declarations:: Declaring volatility, constancy, etc.
8630 * Side Effects:: Expressions for storing in registers, etc.
8631 * Incdec:: Embedded side-effects for autoincrement addressing.
8632 * Assembler:: Representing `asm' with operands.
8633 * Insns:: Expression types for entire insns.
8634 * Calls:: RTL representation of function call insns.
8635 * Sharing:: Some expressions are unique; others *must* be copied.
8636 * Reading RTL:: Reading textual RTL from a file.
8639 File: gccint.info, Node: RTL Objects, Next: RTL Classes, Up: RTL
8641 10.1 RTL Object Types
8642 =====================
8644 RTL uses five kinds of objects: expressions, integers, wide integers,
8645 strings and vectors. Expressions are the most important ones. An RTL
8646 expression ("RTX", for short) is a C structure, but it is usually
8647 referred to with a pointer; a type that is given the typedef name `rtx'.
8649 An integer is simply an `int'; their written form uses decimal digits.
8650 A wide integer is an integral object whose type is `HOST_WIDE_INT';
8651 their written form uses decimal digits.
8653 A string is a sequence of characters. In core it is represented as a
8654 `char *' in usual C fashion, and it is written in C syntax as well.
8655 However, strings in RTL may never be null. If you write an empty
8656 string in a machine description, it is represented in core as a null
8657 pointer rather than as a pointer to a null character. In certain
8658 contexts, these null pointers instead of strings are valid. Within RTL
8659 code, strings are most commonly found inside `symbol_ref' expressions,
8660 but they appear in other contexts in the RTL expressions that make up
8661 machine descriptions.
8663 In a machine description, strings are normally written with double
8664 quotes, as you would in C. However, strings in machine descriptions may
8665 extend over many lines, which is invalid C, and adjacent string
8666 constants are not concatenated as they are in C. Any string constant
8667 may be surrounded with a single set of parentheses. Sometimes this
8668 makes the machine description easier to read.
8670 There is also a special syntax for strings, which can be useful when C
8671 code is embedded in a machine description. Wherever a string can
8672 appear, it is also valid to write a C-style brace block. The entire
8673 brace block, including the outermost pair of braces, is considered to be
8674 the string constant. Double quote characters inside the braces are not
8675 special. Therefore, if you write string constants in the C code, you
8676 need not escape each quote character with a backslash.
8678 A vector contains an arbitrary number of pointers to expressions. The
8679 number of elements in the vector is explicitly present in the vector.
8680 The written form of a vector consists of square brackets (`[...]')
8681 surrounding the elements, in sequence and with whitespace separating
8682 them. Vectors of length zero are not created; null pointers are used
8685 Expressions are classified by "expression codes" (also called RTX
8686 codes). The expression code is a name defined in `rtl.def', which is
8687 also (in uppercase) a C enumeration constant. The possible expression
8688 codes and their meanings are machine-independent. The code of an RTX
8689 can be extracted with the macro `GET_CODE (X)' and altered with
8690 `PUT_CODE (X, NEWCODE)'.
8692 The expression code determines how many operands the expression
8693 contains, and what kinds of objects they are. In RTL, unlike Lisp, you
8694 cannot tell by looking at an operand what kind of object it is.
8695 Instead, you must know from its context--from the expression code of
8696 the containing expression. For example, in an expression of code
8697 `subreg', the first operand is to be regarded as an expression and the
8698 second operand as an integer. In an expression of code `plus', there
8699 are two operands, both of which are to be regarded as expressions. In
8700 a `symbol_ref' expression, there is one operand, which is to be
8701 regarded as a string.
8703 Expressions are written as parentheses containing the name of the
8704 expression type, its flags and machine mode if any, and then the
8705 operands of the expression (separated by spaces).
8707 Expression code names in the `md' file are written in lowercase, but
8708 when they appear in C code they are written in uppercase. In this
8709 manual, they are shown as follows: `const_int'.
8711 In a few contexts a null pointer is valid where an expression is
8712 normally wanted. The written form of this is `(nil)'.
8715 File: gccint.info, Node: RTL Classes, Next: Accessors, Prev: RTL Objects, Up: RTL
8717 10.2 RTL Classes and Formats
8718 ============================
8720 The various expression codes are divided into several "classes", which
8721 are represented by single characters. You can determine the class of
8722 an RTX code with the macro `GET_RTX_CLASS (CODE)'. Currently,
8723 `rtl.def' defines these classes:
8726 An RTX code that represents an actual object, such as a register
8727 (`REG') or a memory location (`MEM', `SYMBOL_REF'). `LO_SUM') is
8728 also included; instead, `SUBREG' and `STRICT_LOW_PART' are not in
8729 this class, but in class `x'.
8732 An RTX code that represents a constant object. `HIGH' is also
8733 included in this class.
8736 An RTX code for a non-symmetric comparison, such as `GEU' or `LT'.
8739 An RTX code for a symmetric (commutative) comparison, such as `EQ'
8743 An RTX code for a unary arithmetic operation, such as `NEG',
8744 `NOT', or `ABS'. This category also includes value extension
8745 (sign or zero) and conversions between integer and floating point.
8748 An RTX code for a commutative binary operation, such as `PLUS' or
8749 `AND'. `NE' and `EQ' are comparisons, so they have class `<'.
8752 An RTX code for a non-commutative binary operation, such as
8753 `MINUS', `DIV', or `ASHIFTRT'.
8756 An RTX code for a bit-field operation. Currently only
8757 `ZERO_EXTRACT' and `SIGN_EXTRACT'. These have three inputs and
8758 are lvalues (so they can be used for insertion as well). *Note
8762 An RTX code for other three input operations. Currently only
8763 `IF_THEN_ELSE' and `VEC_MERGE'.
8766 An RTX code for an entire instruction: `INSN', `JUMP_INSN', and
8767 `CALL_INSN'. *Note Insns::.
8770 An RTX code for something that matches in insns, such as
8771 `MATCH_DUP'. These only occur in machine descriptions.
8774 An RTX code for an auto-increment addressing mode, such as
8778 All other RTX codes. This category includes the remaining codes
8779 used only in machine descriptions (`DEFINE_*', etc.). It also
8780 includes all the codes describing side effects (`SET', `USE',
8781 `CLOBBER', etc.) and the non-insns that may appear on an insn
8782 chain, such as `NOTE', `BARRIER', and `CODE_LABEL'. `SUBREG' is
8783 also part of this class.
8785 For each expression code, `rtl.def' specifies the number of contained
8786 objects and their kinds using a sequence of characters called the
8787 "format" of the expression code. For example, the format of `subreg'
8790 These are the most commonly used format characters:
8793 An expression (actually a pointer to an expression).
8805 A vector of expressions.
8807 A few other format characters are used occasionally:
8810 `u' is equivalent to `e' except that it is printed differently in
8811 debugging dumps. It is used for pointers to insns.
8814 `n' is equivalent to `i' except that it is printed differently in
8815 debugging dumps. It is used for the line number or code number of
8819 `S' indicates a string which is optional. In the RTL objects in
8820 core, `S' is equivalent to `s', but when the object is read, from
8821 an `md' file, the string value of this operand may be omitted. An
8822 omitted string is taken to be the null string.
8825 `V' indicates a vector which is optional. In the RTL objects in
8826 core, `V' is equivalent to `E', but when the object is read from
8827 an `md' file, the vector value of this operand may be omitted. An
8828 omitted vector is effectively the same as a vector of no elements.
8831 `B' indicates a pointer to basic block structure.
8834 `0' means a slot whose contents do not fit any normal category.
8835 `0' slots are not printed at all in dumps, and are often used in
8836 special ways by small parts of the compiler.
8838 There are macros to get the number of operands and the format of an
8841 `GET_RTX_LENGTH (CODE)'
8842 Number of operands of an RTX of code CODE.
8844 `GET_RTX_FORMAT (CODE)'
8845 The format of an RTX of code CODE, as a C string.
8847 Some classes of RTX codes always have the same format. For example, it
8848 is safe to assume that all comparison operations have format `ee'.
8851 All codes of this class have format `e'.
8856 All codes of these classes have format `ee'.
8860 All codes of these classes have format `eee'.
8863 All codes of this class have formats that begin with `iuueiee'.
8864 *Note Insns::. Note that not all RTL objects linked onto an insn
8865 chain are of class `i'.
8870 You can make no assumptions about the format of these codes.
8873 File: gccint.info, Node: Accessors, Next: Special Accessors, Prev: RTL Classes, Up: RTL
8875 10.3 Access to Operands
8876 =======================
8878 Operands of expressions are accessed using the macros `XEXP', `XINT',
8879 `XWINT' and `XSTR'. Each of these macros takes two arguments: an
8880 expression-pointer (RTX) and an operand number (counting from zero).
8885 accesses operand 2 of expression X, as an expression.
8889 accesses the same operand as an integer. `XSTR', used in the same
8890 fashion, would access it as a string.
8892 Any operand can be accessed as an integer, as an expression or as a
8893 string. You must choose the correct method of access for the kind of
8894 value actually stored in the operand. You would do this based on the
8895 expression code of the containing expression. That is also how you
8896 would know how many operands there are.
8898 For example, if X is a `subreg' expression, you know that it has two
8899 operands which can be correctly accessed as `XEXP (X, 0)' and `XINT (X,
8900 1)'. If you did `XINT (X, 0)', you would get the address of the
8901 expression operand but cast as an integer; that might occasionally be
8902 useful, but it would be cleaner to write `(int) XEXP (X, 0)'. `XEXP
8903 (X, 1)' would also compile without error, and would return the second,
8904 integer operand cast as an expression pointer, which would probably
8905 result in a crash when accessed. Nothing stops you from writing `XEXP
8906 (X, 28)' either, but this will access memory past the end of the
8907 expression with unpredictable results.
8909 Access to operands which are vectors is more complicated. You can use
8910 the macro `XVEC' to get the vector-pointer itself, or the macros
8911 `XVECEXP' and `XVECLEN' to access the elements and length of a vector.
8914 Access the vector-pointer which is operand number IDX in EXP.
8916 `XVECLEN (EXP, IDX)'
8917 Access the length (number of elements) in the vector which is in
8918 operand number IDX in EXP. This value is an `int'.
8920 `XVECEXP (EXP, IDX, ELTNUM)'
8921 Access element number ELTNUM in the vector which is in operand
8922 number IDX in EXP. This value is an RTX.
8924 It is up to you to make sure that ELTNUM is not negative and is
8925 less than `XVECLEN (EXP, IDX)'.
8927 All the macros defined in this section expand into lvalues and
8928 therefore can be used to assign the operands, lengths and vector
8929 elements as well as to access them.
8932 File: gccint.info, Node: Special Accessors, Next: Flags, Prev: Accessors, Up: RTL
8934 10.4 Access to Special Operands
8935 ===============================
8937 Some RTL nodes have special annotations associated with them.
8942 If 0, X is not in any alias set, and may alias anything.
8943 Otherwise, X can only alias `MEM's in a conflicting alias
8944 set. This value is set in a language-dependent manner in the
8945 front-end, and should not be altered in the back-end. In
8946 some front-ends, these numbers may correspond in some way to
8947 types, or other language-level entities, but they need not,
8948 and the back-end makes no such assumptions. These set
8949 numbers are tested with `alias_sets_conflict_p'.
8952 If this register is known to hold the value of some user-level
8953 declaration, this is that tree node. It may also be a
8954 `COMPONENT_REF', in which case this is some field reference,
8955 and `TREE_OPERAND (X, 0)' contains the declaration, or
8956 another `COMPONENT_REF', or null if there is no compile-time
8957 object associated with the reference.
8960 The offset from the start of `MEM_EXPR' as a `CONST_INT' rtx.
8963 The size in bytes of the memory reference as a `CONST_INT'
8964 rtx. This is mostly relevant for `BLKmode' references as
8965 otherwise the size is implied by the mode.
8968 The known alignment in bits of the memory reference.
8972 `ORIGINAL_REGNO (X)'
8973 This field holds the number the register "originally" had;
8974 for a pseudo register turned into a hard reg this will hold
8975 the old pseudo register number.
8978 If this register is known to hold the value of some user-level
8979 declaration, this is that tree node.
8982 If this register is known to hold the value of some user-level
8983 declaration, this is the offset into that logical storage.
8987 `SYMBOL_REF_DECL (X)'
8988 If the `symbol_ref' X was created for a `VAR_DECL' or a
8989 `FUNCTION_DECL', that tree is recorded here. If this value is
8990 null, then X was created by back end code generation routines,
8991 and there is no associated front end symbol table entry.
8993 `SYMBOL_REF_DECL' may also point to a tree of class `'c'',
8994 that is, some sort of constant. In this case, the
8995 `symbol_ref' is an entry in the per-file constant pool;
8996 again, there is no associated front end symbol table entry.
8998 `SYMBOL_REF_CONSTANT (X)'
8999 If `CONSTANT_POOL_ADDRESS_P (X)' is true, this is the constant
9000 pool entry for X. It is null otherwise.
9002 `SYMBOL_REF_DATA (X)'
9003 A field of opaque type used to store `SYMBOL_REF_DECL' or
9004 `SYMBOL_REF_CONSTANT'.
9006 `SYMBOL_REF_FLAGS (X)'
9007 In a `symbol_ref', this is used to communicate various
9008 predicates about the symbol. Some of these are common enough
9009 to be computed by common code, some are specific to the
9010 target. The common bits are:
9012 `SYMBOL_FLAG_FUNCTION'
9013 Set if the symbol refers to a function.
9016 Set if the symbol is local to this "module". See
9017 `TARGET_BINDS_LOCAL_P'.
9019 `SYMBOL_FLAG_EXTERNAL'
9020 Set if this symbol is not defined in this translation
9021 unit. Note that this is not the inverse of
9022 `SYMBOL_FLAG_LOCAL'.
9025 Set if the symbol is located in the small data section.
9026 See `TARGET_IN_SMALL_DATA_P'.
9028 `SYMBOL_REF_TLS_MODEL (X)'
9029 This is a multi-bit field accessor that returns the
9030 `tls_model' to be used for a thread-local storage
9031 symbol. It returns zero for non-thread-local symbols.
9033 `SYMBOL_FLAG_HAS_BLOCK_INFO'
9034 Set if the symbol has `SYMBOL_REF_BLOCK' and
9035 `SYMBOL_REF_BLOCK_OFFSET' fields.
9037 `SYMBOL_FLAG_ANCHOR'
9038 Set if the symbol is used as a section anchor. "Section
9039 anchors" are symbols that have a known position within
9040 an `object_block' and that can be used to access nearby
9041 members of that block. They are used to implement
9042 `-fsection-anchors'.
9044 If this flag is set, then `SYMBOL_FLAG_HAS_BLOCK_INFO'
9047 Bits beginning with `SYMBOL_FLAG_MACH_DEP' are available for
9050 `SYMBOL_REF_BLOCK (X)'
9051 If `SYMBOL_REF_HAS_BLOCK_INFO_P (X)', this is the `object_block'
9052 structure to which the symbol belongs, or `NULL' if it has not
9053 been assigned a block.
9055 `SYMBOL_REF_BLOCK_OFFSET (X)'
9056 If `SYMBOL_REF_HAS_BLOCK_INFO_P (X)', this is the offset of X from
9057 the first object in `SYMBOL_REF_BLOCK (X)'. The value is negative
9058 if X has not yet been assigned to a block, or it has not been
9059 given an offset within that block.
9062 File: gccint.info, Node: Flags, Next: Machine Modes, Prev: Special Accessors, Up: RTL
9064 10.5 Flags in an RTL Expression
9065 ===============================
9067 RTL expressions contain several flags (one-bit bit-fields) that are
9068 used in certain types of expression. Most often they are accessed with
9069 the following macros, which expand into lvalues.
9071 `CONSTANT_POOL_ADDRESS_P (X)'
9072 Nonzero in a `symbol_ref' if it refers to part of the current
9073 function's constant pool. For most targets these addresses are in
9074 a `.rodata' section entirely separate from the function, but for
9075 some targets the addresses are close to the beginning of the
9076 function. In either case GCC assumes these addresses can be
9077 addressed directly, perhaps with the help of base registers.
9078 Stored in the `unchanging' field and printed as `/u'.
9080 `RTL_CONST_CALL_P (X)'
9081 In a `call_insn' indicates that the insn represents a call to a
9082 const function. Stored in the `unchanging' field and printed as
9085 `RTL_PURE_CALL_P (X)'
9086 In a `call_insn' indicates that the insn represents a call to a
9087 pure function. Stored in the `return_val' field and printed as
9090 `RTL_CONST_OR_PURE_CALL_P (X)'
9091 In a `call_insn', true if `RTL_CONST_CALL_P' or `RTL_PURE_CALL_P'
9094 `RTL_LOOPING_CONST_OR_PURE_CALL_P (X)'
9095 In a `call_insn' indicates that the insn represents a possibly
9096 infinite looping call to a const or pure function. Stored in the
9097 `call' field and printed as `/c'. Only true if one of
9098 `RTL_CONST_CALL_P' or `RTL_PURE_CALL_P' is true.
9100 `INSN_ANNULLED_BRANCH_P (X)'
9101 In a `jump_insn', `call_insn', or `insn' indicates that the branch
9102 is an annulling one. See the discussion under `sequence' below.
9103 Stored in the `unchanging' field and printed as `/u'.
9105 `INSN_DELETED_P (X)'
9106 In an `insn', `call_insn', `jump_insn', `code_label', `barrier',
9107 or `note', nonzero if the insn has been deleted. Stored in the
9108 `volatil' field and printed as `/v'.
9110 `INSN_FROM_TARGET_P (X)'
9111 In an `insn' or `jump_insn' or `call_insn' in a delay slot of a
9112 branch, indicates that the insn is from the target of the branch.
9113 If the branch insn has `INSN_ANNULLED_BRANCH_P' set, this insn
9114 will only be executed if the branch is taken. For annulled
9115 branches with `INSN_FROM_TARGET_P' clear, the insn will be
9116 executed only if the branch is not taken. When
9117 `INSN_ANNULLED_BRANCH_P' is not set, this insn will always be
9118 executed. Stored in the `in_struct' field and printed as `/s'.
9120 `LABEL_PRESERVE_P (X)'
9121 In a `code_label' or `note', indicates that the label is
9122 referenced by code or data not visible to the RTL of a given
9123 function. Labels referenced by a non-local goto will have this
9124 bit set. Stored in the `in_struct' field and printed as `/s'.
9126 `LABEL_REF_NONLOCAL_P (X)'
9127 In `label_ref' and `reg_label' expressions, nonzero if this is a
9128 reference to a non-local label. Stored in the `volatil' field and
9131 `MEM_IN_STRUCT_P (X)'
9132 In `mem' expressions, nonzero for reference to an entire structure,
9133 union or array, or to a component of one. Zero for references to a
9134 scalar variable or through a pointer to a scalar. If both this
9135 flag and `MEM_SCALAR_P' are clear, then we don't know whether this
9136 `mem' is in a structure or not. Both flags should never be
9137 simultaneously set. Stored in the `in_struct' field and printed
9140 `MEM_KEEP_ALIAS_SET_P (X)'
9141 In `mem' expressions, 1 if we should keep the alias set for this
9142 mem unchanged when we access a component. Set to 1, for example,
9143 when we are already in a non-addressable component of an aggregate.
9144 Stored in the `jump' field and printed as `/j'.
9147 In `mem' expressions, nonzero for reference to a scalar known not
9148 to be a member of a structure, union, or array. Zero for such
9149 references and for indirections through pointers, even pointers
9150 pointing to scalar types. If both this flag and `MEM_IN_STRUCT_P'
9151 are clear, then we don't know whether this `mem' is in a structure
9152 or not. Both flags should never be simultaneously set. Stored in
9153 the `return_val' field and printed as `/i'.
9155 `MEM_VOLATILE_P (X)'
9156 In `mem', `asm_operands', and `asm_input' expressions, nonzero for
9157 volatile memory references. Stored in the `volatil' field and
9161 In `mem', nonzero for memory references that will not trap.
9162 Stored in the `call' field and printed as `/c'.
9165 Nonzero in a `mem' if the memory reference holds a pointer.
9166 Stored in the `frame_related' field and printed as `/f'.
9168 `REG_FUNCTION_VALUE_P (X)'
9169 Nonzero in a `reg' if it is the place in which this function's
9170 value is going to be returned. (This happens only in a hard
9171 register.) Stored in the `return_val' field and printed as `/i'.
9174 Nonzero in a `reg' if the register holds a pointer. Stored in the
9175 `frame_related' field and printed as `/f'.
9178 In a `reg', nonzero if it corresponds to a variable present in the
9179 user's source code. Zero for temporaries generated internally by
9180 the compiler. Stored in the `volatil' field and printed as `/v'.
9182 The same hard register may be used also for collecting the values
9183 of functions called by this one, but `REG_FUNCTION_VALUE_P' is zero
9184 in this kind of use.
9186 `RTX_FRAME_RELATED_P (X)'
9187 Nonzero in an `insn', `call_insn', `jump_insn', `barrier', or
9188 `set' which is part of a function prologue and sets the stack
9189 pointer, sets the frame pointer, or saves a register. This flag
9190 should also be set on an instruction that sets up a temporary
9191 register to use in place of the frame pointer. Stored in the
9192 `frame_related' field and printed as `/f'.
9194 In particular, on RISC targets where there are limits on the sizes
9195 of immediate constants, it is sometimes impossible to reach the
9196 register save area directly from the stack pointer. In that case,
9197 a temporary register is used that is near enough to the register
9198 save area, and the Canonical Frame Address, i.e., DWARF2's logical
9199 frame pointer, register must (temporarily) be changed to be this
9200 temporary register. So, the instruction that sets this temporary
9201 register must be marked as `RTX_FRAME_RELATED_P'.
9203 If the marked instruction is overly complex (defined in terms of
9204 what `dwarf2out_frame_debug_expr' can handle), you will also have
9205 to create a `REG_FRAME_RELATED_EXPR' note and attach it to the
9206 instruction. This note should contain a simple expression of the
9207 computation performed by this instruction, i.e., one that
9208 `dwarf2out_frame_debug_expr' can handle.
9210 This flag is required for exception handling support on targets
9213 `MEM_READONLY_P (X)'
9214 Nonzero in a `mem', if the memory is statically allocated and
9217 Read-only in this context means never modified during the lifetime
9218 of the program, not necessarily in ROM or in write-disabled pages.
9219 A common example of the later is a shared library's global offset
9220 table. This table is initialized by the runtime loader, so the
9221 memory is technically writable, but after control is transfered
9222 from the runtime loader to the application, this memory will never
9223 be subsequently modified.
9225 Stored in the `unchanging' field and printed as `/u'.
9228 During instruction scheduling, in an `insn', `call_insn' or
9229 `jump_insn', indicates that the previous insn must be scheduled
9230 together with this insn. This is used to ensure that certain
9231 groups of instructions will not be split up by the instruction
9232 scheduling pass, for example, `use' insns before a `call_insn' may
9233 not be separated from the `call_insn'. Stored in the `in_struct'
9234 field and printed as `/s'.
9236 `SET_IS_RETURN_P (X)'
9237 For a `set', nonzero if it is for a return. Stored in the `jump'
9238 field and printed as `/j'.
9240 `SIBLING_CALL_P (X)'
9241 For a `call_insn', nonzero if the insn is a sibling call. Stored
9242 in the `jump' field and printed as `/j'.
9244 `STRING_POOL_ADDRESS_P (X)'
9245 For a `symbol_ref' expression, nonzero if it addresses this
9246 function's string constant pool. Stored in the `frame_related'
9247 field and printed as `/f'.
9249 `SUBREG_PROMOTED_UNSIGNED_P (X)'
9250 Returns a value greater then zero for a `subreg' that has
9251 `SUBREG_PROMOTED_VAR_P' nonzero if the object being referenced is
9252 kept zero-extended, zero if it is kept sign-extended, and less
9253 then zero if it is extended some other way via the `ptr_extend'
9254 instruction. Stored in the `unchanging' field and `volatil'
9255 field, printed as `/u' and `/v'. This macro may only be used to
9256 get the value it may not be used to change the value. Use
9257 `SUBREG_PROMOTED_UNSIGNED_SET' to change the value.
9259 `SUBREG_PROMOTED_UNSIGNED_SET (X)'
9260 Set the `unchanging' and `volatil' fields in a `subreg' to reflect
9261 zero, sign, or other extension. If `volatil' is zero, then
9262 `unchanging' as nonzero means zero extension and as zero means
9263 sign extension. If `volatil' is nonzero then some other type of
9264 extension was done via the `ptr_extend' instruction.
9266 `SUBREG_PROMOTED_VAR_P (X)'
9267 Nonzero in a `subreg' if it was made when accessing an object that
9268 was promoted to a wider mode in accord with the `PROMOTED_MODE'
9269 machine description macro (*note Storage Layout::). In this case,
9270 the mode of the `subreg' is the declared mode of the object and
9271 the mode of `SUBREG_REG' is the mode of the register that holds
9272 the object. Promoted variables are always either sign- or
9273 zero-extended to the wider mode on every assignment. Stored in
9274 the `in_struct' field and printed as `/s'.
9276 `SYMBOL_REF_USED (X)'
9277 In a `symbol_ref', indicates that X has been used. This is
9278 normally only used to ensure that X is only declared external
9279 once. Stored in the `used' field.
9281 `SYMBOL_REF_WEAK (X)'
9282 In a `symbol_ref', indicates that X has been declared weak.
9283 Stored in the `return_val' field and printed as `/i'.
9285 `SYMBOL_REF_FLAG (X)'
9286 In a `symbol_ref', this is used as a flag for machine-specific
9287 purposes. Stored in the `volatil' field and printed as `/v'.
9289 Most uses of `SYMBOL_REF_FLAG' are historic and may be subsumed by
9290 `SYMBOL_REF_FLAGS'. Certainly use of `SYMBOL_REF_FLAGS' is
9291 mandatory if the target requires more than one bit of storage.
9293 These are the fields to which the above macros refer:
9296 In a `mem', 1 means that the memory reference will not trap.
9298 In a `call', 1 means that this pure or const call may possibly
9301 In an RTL dump, this flag is represented as `/c'.
9304 In an `insn' or `set' expression, 1 means that it is part of a
9305 function prologue and sets the stack pointer, sets the frame
9306 pointer, saves a register, or sets up a temporary register to use
9307 in place of the frame pointer.
9309 In `reg' expressions, 1 means that the register holds a pointer.
9311 In `mem' expressions, 1 means that the memory reference holds a
9314 In `symbol_ref' expressions, 1 means that the reference addresses
9315 this function's string constant pool.
9317 In an RTL dump, this flag is represented as `/f'.
9320 In `mem' expressions, it is 1 if the memory datum referred to is
9321 all or part of a structure or array; 0 if it is (or might be) a
9322 scalar variable. A reference through a C pointer has 0 because
9323 the pointer might point to a scalar variable. This information
9324 allows the compiler to determine something about possible cases of
9327 In `reg' expressions, it is 1 if the register has its entire life
9328 contained within the test expression of some loop.
9330 In `subreg' expressions, 1 means that the `subreg' is accessing an
9331 object that has had its mode promoted from a wider mode.
9333 In `label_ref' expressions, 1 means that the referenced label is
9334 outside the innermost loop containing the insn in which the
9335 `label_ref' was found.
9337 In `code_label' expressions, it is 1 if the label may never be
9338 deleted. This is used for labels which are the target of
9339 non-local gotos. Such a label that would have been deleted is
9340 replaced with a `note' of type `NOTE_INSN_DELETED_LABEL'.
9342 In an `insn' during dead-code elimination, 1 means that the insn is
9345 In an `insn' or `jump_insn' during reorg for an insn in the delay
9346 slot of a branch, 1 means that this insn is from the target of the
9349 In an `insn' during instruction scheduling, 1 means that this insn
9350 must be scheduled as part of a group together with the previous
9353 In an RTL dump, this flag is represented as `/s'.
9356 In `reg' expressions, 1 means the register contains the value to
9357 be returned by the current function. On machines that pass
9358 parameters in registers, the same register number may be used for
9359 parameters as well, but this flag is not set on such uses.
9361 In `mem' expressions, 1 means the memory reference is to a scalar
9362 known not to be a member of a structure, union, or array.
9364 In `symbol_ref' expressions, 1 means the referenced symbol is weak.
9366 In `call' expressions, 1 means the call is pure.
9368 In an RTL dump, this flag is represented as `/i'.
9371 In a `mem' expression, 1 means we should keep the alias set for
9372 this mem unchanged when we access a component.
9374 In a `set', 1 means it is for a return.
9376 In a `call_insn', 1 means it is a sibling call.
9378 In an RTL dump, this flag is represented as `/j'.
9381 In `reg' and `mem' expressions, 1 means that the value of the
9382 expression never changes.
9384 In `subreg' expressions, it is 1 if the `subreg' references an
9385 unsigned object whose mode has been promoted to a wider mode.
9387 In an `insn' or `jump_insn' in the delay slot of a branch
9388 instruction, 1 means an annulling branch should be used.
9390 In a `symbol_ref' expression, 1 means that this symbol addresses
9391 something in the per-function constant pool.
9393 In a `call_insn' 1 means that this instruction is a call to a const
9396 In an RTL dump, this flag is represented as `/u'.
9399 This flag is used directly (without an access macro) at the end of
9400 RTL generation for a function, to count the number of times an
9401 expression appears in insns. Expressions that appear more than
9402 once are copied, according to the rules for shared structure
9405 For a `reg', it is used directly (without an access macro) by the
9406 leaf register renumbering code to ensure that each register is only
9409 In a `symbol_ref', it indicates that an external declaration for
9410 the symbol has already been written.
9413 In a `mem', `asm_operands', or `asm_input' expression, it is 1 if
9414 the memory reference is volatile. Volatile memory references may
9415 not be deleted, reordered or combined.
9417 In a `symbol_ref' expression, it is used for machine-specific
9420 In a `reg' expression, it is 1 if the value is a user-level
9421 variable. 0 indicates an internal compiler temporary.
9423 In an `insn', 1 means the insn has been deleted.
9425 In `label_ref' and `reg_label' expressions, 1 means a reference to
9428 In an RTL dump, this flag is represented as `/v'.
9431 File: gccint.info, Node: Machine Modes, Next: Constants, Prev: Flags, Up: RTL
9436 A machine mode describes a size of data object and the representation
9437 used for it. In the C code, machine modes are represented by an
9438 enumeration type, `enum machine_mode', defined in `machmode.def'. Each
9439 RTL expression has room for a machine mode and so do certain kinds of
9440 tree expressions (declarations and types, to be precise).
9442 In debugging dumps and machine descriptions, the machine mode of an RTL
9443 expression is written after the expression code with a colon to separate
9444 them. The letters `mode' which appear at the end of each machine mode
9445 name are omitted. For example, `(reg:SI 38)' is a `reg' expression
9446 with machine mode `SImode'. If the mode is `VOIDmode', it is not
9449 Here is a table of machine modes. The term "byte" below refers to an
9450 object of `BITS_PER_UNIT' bits (*note Storage Layout::).
9453 "Bit" mode represents a single bit, for predicate registers.
9456 "Quarter-Integer" mode represents a single byte treated as an
9460 "Half-Integer" mode represents a two-byte integer.
9463 "Partial Single Integer" mode represents an integer which occupies
9464 four bytes but which doesn't really use all four. On some
9465 machines, this is the right mode to use for pointers.
9468 "Single Integer" mode represents a four-byte integer.
9471 "Partial Double Integer" mode represents an integer which occupies
9472 eight bytes but which doesn't really use all eight. On some
9473 machines, this is the right mode to use for certain pointers.
9476 "Double Integer" mode represents an eight-byte integer.
9479 "Tetra Integer" (?) mode represents a sixteen-byte integer.
9482 "Octa Integer" (?) mode represents a thirty-two-byte integer.
9485 "Quarter-Floating" mode represents a quarter-precision (single
9486 byte) floating point number.
9489 "Half-Floating" mode represents a half-precision (two byte)
9490 floating point number.
9493 "Three-Quarter-Floating" (?) mode represents a
9494 three-quarter-precision (three byte) floating point number.
9497 "Single Floating" mode represents a four byte floating point
9498 number. In the common case, of a processor with IEEE arithmetic
9499 and 8-bit bytes, this is a single-precision IEEE floating point
9500 number; it can also be used for double-precision (on processors
9501 with 16-bit bytes) and single-precision VAX and IBM types.
9504 "Double Floating" mode represents an eight byte floating point
9505 number. In the common case, of a processor with IEEE arithmetic
9506 and 8-bit bytes, this is a double-precision IEEE floating point
9510 "Extended Floating" mode represents an IEEE extended floating point
9511 number. This mode only has 80 meaningful bits (ten bytes). Some
9512 processors require such numbers to be padded to twelve bytes,
9513 others to sixteen; this mode is used for either.
9516 "Single Decimal Floating" mode represents a four byte decimal
9517 floating point number (as distinct from conventional binary
9521 "Double Decimal Floating" mode represents an eight byte decimal
9522 floating point number.
9525 "Tetra Decimal Floating" mode represents a sixteen byte decimal
9526 floating point number all 128 of whose bits are meaningful.
9529 "Tetra Floating" mode represents a sixteen byte floating point
9530 number all 128 of whose bits are meaningful. One common use is the
9531 IEEE quad-precision format.
9534 "Quarter-Fractional" mode represents a single byte treated as a
9535 signed fractional number. The default format is "s.7".
9538 "Half-Fractional" mode represents a two-byte signed fractional
9539 number. The default format is "s.15".
9542 "Single Fractional" mode represents a four-byte signed fractional
9543 number. The default format is "s.31".
9546 "Double Fractional" mode represents an eight-byte signed
9547 fractional number. The default format is "s.63".
9550 "Tetra Fractional" mode represents a sixteen-byte signed
9551 fractional number. The default format is "s.127".
9554 "Unsigned Quarter-Fractional" mode represents a single byte
9555 treated as an unsigned fractional number. The default format is
9559 "Unsigned Half-Fractional" mode represents a two-byte unsigned
9560 fractional number. The default format is ".16".
9563 "Unsigned Single Fractional" mode represents a four-byte unsigned
9564 fractional number. The default format is ".32".
9567 "Unsigned Double Fractional" mode represents an eight-byte unsigned
9568 fractional number. The default format is ".64".
9571 "Unsigned Tetra Fractional" mode represents a sixteen-byte unsigned
9572 fractional number. The default format is ".128".
9575 "Half-Accumulator" mode represents a two-byte signed accumulator.
9576 The default format is "s8.7".
9579 "Single Accumulator" mode represents a four-byte signed
9580 accumulator. The default format is "s16.15".
9583 "Double Accumulator" mode represents an eight-byte signed
9584 accumulator. The default format is "s32.31".
9587 "Tetra Accumulator" mode represents a sixteen-byte signed
9588 accumulator. The default format is "s64.63".
9591 "Unsigned Half-Accumulator" mode represents a two-byte unsigned
9592 accumulator. The default format is "8.8".
9595 "Unsigned Single Accumulator" mode represents a four-byte unsigned
9596 accumulator. The default format is "16.16".
9599 "Unsigned Double Accumulator" mode represents an eight-byte
9600 unsigned accumulator. The default format is "32.32".
9603 "Unsigned Tetra Accumulator" mode represents a sixteen-byte
9604 unsigned accumulator. The default format is "64.64".
9607 "Condition Code" mode represents the value of a condition code,
9608 which is a machine-specific set of bits used to represent the
9609 result of a comparison operation. Other machine-specific modes
9610 may also be used for the condition code. These modes are not used
9611 on machines that use `cc0' (see *note Condition Code::).
9614 "Block" mode represents values that are aggregates to which none of
9615 the other modes apply. In RTL, only memory references can have
9616 this mode, and only if they appear in string-move or vector
9617 instructions. On machines which have no such instructions,
9618 `BLKmode' will not appear in RTL.
9621 Void mode means the absence of a mode or an unspecified mode. For
9622 example, RTL expressions of code `const_int' have mode `VOIDmode'
9623 because they can be taken to have whatever mode the context
9624 requires. In debugging dumps of RTL, `VOIDmode' is expressed by
9625 the absence of any mode.
9627 `QCmode, HCmode, SCmode, DCmode, XCmode, TCmode'
9628 These modes stand for a complex number represented as a pair of
9629 floating point values. The floating point values are in `QFmode',
9630 `HFmode', `SFmode', `DFmode', `XFmode', and `TFmode', respectively.
9632 `CQImode, CHImode, CSImode, CDImode, CTImode, COImode'
9633 These modes stand for a complex number represented as a pair of
9634 integer values. The integer values are in `QImode', `HImode',
9635 `SImode', `DImode', `TImode', and `OImode', respectively.
9637 The machine description defines `Pmode' as a C macro which expands
9638 into the machine mode used for addresses. Normally this is the mode
9639 whose size is `BITS_PER_WORD', `SImode' on 32-bit machines.
9641 The only modes which a machine description must support are `QImode',
9642 and the modes corresponding to `BITS_PER_WORD', `FLOAT_TYPE_SIZE' and
9643 `DOUBLE_TYPE_SIZE'. The compiler will attempt to use `DImode' for
9644 8-byte structures and unions, but this can be prevented by overriding
9645 the definition of `MAX_FIXED_MODE_SIZE'. Alternatively, you can have
9646 the compiler use `TImode' for 16-byte structures and unions. Likewise,
9647 you can arrange for the C type `short int' to avoid using `HImode'.
9649 Very few explicit references to machine modes remain in the compiler
9650 and these few references will soon be removed. Instead, the machine
9651 modes are divided into mode classes. These are represented by the
9652 enumeration type `enum mode_class' defined in `machmode.h'. The
9653 possible mode classes are:
9656 Integer modes. By default these are `BImode', `QImode', `HImode',
9657 `SImode', `DImode', `TImode', and `OImode'.
9660 The "partial integer" modes, `PQImode', `PHImode', `PSImode' and
9664 Floating point modes. By default these are `QFmode', `HFmode',
9665 `TQFmode', `SFmode', `DFmode', `XFmode' and `TFmode'.
9667 `MODE_DECIMAL_FLOAT'
9668 Decimal floating point modes. By default these are `SDmode',
9669 `DDmode' and `TDmode'.
9672 Signed fractional modes. By default these are `QQmode', `HQmode',
9673 `SQmode', `DQmode' and `TQmode'.
9676 Unsigned fractional modes. By default these are `UQQmode',
9677 `UHQmode', `USQmode', `UDQmode' and `UTQmode'.
9680 Signed accumulator modes. By default these are `HAmode',
9681 `SAmode', `DAmode' and `TAmode'.
9684 Unsigned accumulator modes. By default these are `UHAmode',
9685 `USAmode', `UDAmode' and `UTAmode'.
9688 Complex integer modes. (These are not currently implemented).
9690 `MODE_COMPLEX_FLOAT'
9691 Complex floating point modes. By default these are `QCmode',
9692 `HCmode', `SCmode', `DCmode', `XCmode', and `TCmode'.
9695 Algol or Pascal function variables including a static chain.
9696 (These are not currently implemented).
9699 Modes representing condition code values. These are `CCmode' plus
9700 any `CC_MODE' modes listed in the `MACHINE-modes.def'. *Note Jump
9701 Patterns::, also see *Note Condition Code::.
9704 This is a catchall mode class for modes which don't fit into the
9705 above classes. Currently `VOIDmode' and `BLKmode' are in
9708 Here are some C macros that relate to machine modes:
9711 Returns the machine mode of the RTX X.
9713 `PUT_MODE (X, NEWMODE)'
9714 Alters the machine mode of the RTX X to be NEWMODE.
9717 Stands for the number of machine modes available on the target
9718 machine. This is one greater than the largest numeric value of any
9722 Returns the name of mode M as a string.
9724 `GET_MODE_CLASS (M)'
9725 Returns the mode class of mode M.
9727 `GET_MODE_WIDER_MODE (M)'
9728 Returns the next wider natural mode. For example, the expression
9729 `GET_MODE_WIDER_MODE (QImode)' returns `HImode'.
9732 Returns the size in bytes of a datum of mode M.
9734 `GET_MODE_BITSIZE (M)'
9735 Returns the size in bits of a datum of mode M.
9738 Returns the number of integral bits of a datum of fixed-point mode
9742 Returns the number of fractional bits of a datum of fixed-point
9746 Returns a bitmask containing 1 for all bits in a word that fit
9747 within mode M. This macro can only be used for modes whose
9748 bitsize is less than or equal to `HOST_BITS_PER_INT'.
9750 `GET_MODE_ALIGNMENT (M)'
9751 Return the required alignment, in bits, for an object of mode M.
9753 `GET_MODE_UNIT_SIZE (M)'
9754 Returns the size in bytes of the subunits of a datum of mode M.
9755 This is the same as `GET_MODE_SIZE' except in the case of complex
9756 modes. For them, the unit size is the size of the real or
9759 `GET_MODE_NUNITS (M)'
9760 Returns the number of units contained in a mode, i.e.,
9761 `GET_MODE_SIZE' divided by `GET_MODE_UNIT_SIZE'.
9763 `GET_CLASS_NARROWEST_MODE (C)'
9764 Returns the narrowest mode in mode class C.
9766 The global variables `byte_mode' and `word_mode' contain modes whose
9767 classes are `MODE_INT' and whose bitsizes are either `BITS_PER_UNIT' or
9768 `BITS_PER_WORD', respectively. On 32-bit machines, these are `QImode'
9769 and `SImode', respectively.
9772 File: gccint.info, Node: Constants, Next: Regs and Memory, Prev: Machine Modes, Up: RTL
9774 10.7 Constant Expression Types
9775 ==============================
9777 The simplest RTL expressions are those that represent constant values.
9780 This type of expression represents the integer value I. I is
9781 customarily accessed with the macro `INTVAL' as in `INTVAL (EXP)',
9782 which is equivalent to `XWINT (EXP, 0)'.
9784 Constants generated for modes with fewer bits than `HOST_WIDE_INT'
9785 must be sign extended to full width (e.g., with `gen_int_mode').
9787 There is only one expression object for the integer value zero; it
9788 is the value of the variable `const0_rtx'. Likewise, the only
9789 expression for integer value one is found in `const1_rtx', the only
9790 expression for integer value two is found in `const2_rtx', and the
9791 only expression for integer value negative one is found in
9792 `constm1_rtx'. Any attempt to create an expression of code
9793 `const_int' and value zero, one, two or negative one will return
9794 `const0_rtx', `const1_rtx', `const2_rtx' or `constm1_rtx' as
9797 Similarly, there is only one object for the integer whose value is
9798 `STORE_FLAG_VALUE'. It is found in `const_true_rtx'. If
9799 `STORE_FLAG_VALUE' is one, `const_true_rtx' and `const1_rtx' will
9800 point to the same object. If `STORE_FLAG_VALUE' is -1,
9801 `const_true_rtx' and `constm1_rtx' will point to the same object.
9803 `(const_double:M I0 I1 ...)'
9804 Represents either a floating-point constant of mode M or an
9805 integer constant too large to fit into `HOST_BITS_PER_WIDE_INT'
9806 bits but small enough to fit within twice that number of bits (GCC
9807 does not provide a mechanism to represent even larger constants).
9808 In the latter case, M will be `VOIDmode'.
9810 If M is `VOIDmode', the bits of the value are stored in I0 and I1.
9811 I0 is customarily accessed with the macro `CONST_DOUBLE_LOW' and
9812 I1 with `CONST_DOUBLE_HIGH'.
9814 If the constant is floating point (regardless of its precision),
9815 then the number of integers used to store the value depends on the
9816 size of `REAL_VALUE_TYPE' (*note Floating Point::). The integers
9817 represent a floating point number, but not precisely in the target
9818 machine's or host machine's floating point format. To convert
9819 them to the precise bit pattern used by the target machine, use
9820 the macro `REAL_VALUE_TO_TARGET_DOUBLE' and friends (*note Data
9823 `(const_fixed:M ...)'
9824 Represents a fixed-point constant of mode M. The operand is a
9825 data structure of type `struct fixed_value' and is accessed with
9826 the macro `CONST_FIXED_VALUE'. The high part of data is accessed
9827 with `CONST_FIXED_VALUE_HIGH'; the low part is accessed with
9828 `CONST_FIXED_VALUE_LOW'.
9830 `(const_vector:M [X0 X1 ...])'
9831 Represents a vector constant. The square brackets stand for the
9832 vector containing the constant elements. X0, X1 and so on are the
9833 `const_int', `const_double' or `const_fixed' elements.
9835 The number of units in a `const_vector' is obtained with the macro
9836 `CONST_VECTOR_NUNITS' as in `CONST_VECTOR_NUNITS (V)'.
9838 Individual elements in a vector constant are accessed with the
9839 macro `CONST_VECTOR_ELT' as in `CONST_VECTOR_ELT (V, N)' where V
9840 is the vector constant and N is the element desired.
9842 `(const_string STR)'
9843 Represents a constant string with value STR. Currently this is
9844 used only for insn attributes (*note Insn Attributes::) since
9845 constant strings in C are placed in memory.
9847 `(symbol_ref:MODE SYMBOL)'
9848 Represents the value of an assembler label for data. SYMBOL is a
9849 string that describes the name of the assembler label. If it
9850 starts with a `*', the label is the rest of SYMBOL not including
9851 the `*'. Otherwise, the label is SYMBOL, usually prefixed with
9854 The `symbol_ref' contains a mode, which is usually `Pmode'.
9855 Usually that is the only mode for which a symbol is directly valid.
9857 `(label_ref:MODE LABEL)'
9858 Represents the value of an assembler label for code. It contains
9859 one operand, an expression, which must be a `code_label' or a
9860 `note' of type `NOTE_INSN_DELETED_LABEL' that appears in the
9861 instruction sequence to identify the place where the label should
9864 The reason for using a distinct expression type for code label
9865 references is so that jump optimization can distinguish them.
9867 The `label_ref' contains a mode, which is usually `Pmode'.
9868 Usually that is the only mode for which a label is directly valid.
9871 Represents a constant that is the result of an assembly-time
9872 arithmetic computation. The operand, EXP, is an expression that
9873 contains only constants (`const_int', `symbol_ref' and `label_ref'
9874 expressions) combined with `plus' and `minus'. However, not all
9875 combinations are valid, since the assembler cannot do arbitrary
9876 arithmetic on relocatable symbols.
9878 M should be `Pmode'.
9881 Represents the high-order bits of EXP, usually a `symbol_ref'.
9882 The number of bits is machine-dependent and is normally the number
9883 of bits specified in an instruction that initializes the high
9884 order bits of a register. It is used with `lo_sum' to represent
9885 the typical two-instruction sequence used in RISC machines to
9886 reference a global memory location.
9888 M should be `Pmode'.
9890 The macro `CONST0_RTX (MODE)' refers to an expression with value 0 in
9891 mode MODE. If mode MODE is of mode class `MODE_INT', it returns
9892 `const0_rtx'. If mode MODE is of mode class `MODE_FLOAT', it returns a
9893 `CONST_DOUBLE' expression in mode MODE. Otherwise, it returns a
9894 `CONST_VECTOR' expression in mode MODE. Similarly, the macro
9895 `CONST1_RTX (MODE)' refers to an expression with value 1 in mode MODE
9896 and similarly for `CONST2_RTX'. The `CONST1_RTX' and `CONST2_RTX'
9897 macros are undefined for vector modes.
9900 File: gccint.info, Node: Regs and Memory, Next: Arithmetic, Prev: Constants, Up: RTL
9902 10.8 Registers and Memory
9903 =========================
9905 Here are the RTL expression types for describing access to machine
9906 registers and to main memory.
9909 For small values of the integer N (those that are less than
9910 `FIRST_PSEUDO_REGISTER'), this stands for a reference to machine
9911 register number N: a "hard register". For larger values of N, it
9912 stands for a temporary value or "pseudo register". The compiler's
9913 strategy is to generate code assuming an unlimited number of such
9914 pseudo registers, and later convert them into hard registers or
9915 into memory references.
9917 M is the machine mode of the reference. It is necessary because
9918 machines can generally refer to each register in more than one
9919 mode. For example, a register may contain a full word but there
9920 may be instructions to refer to it as a half word or as a single
9921 byte, as well as instructions to refer to it as a floating point
9922 number of various precisions.
9924 Even for a register that the machine can access in only one mode,
9925 the mode must always be specified.
9927 The symbol `FIRST_PSEUDO_REGISTER' is defined by the machine
9928 description, since the number of hard registers on the machine is
9929 an invariant characteristic of the machine. Note, however, that
9930 not all of the machine registers must be general registers. All
9931 the machine registers that can be used for storage of data are
9932 given hard register numbers, even those that can be used only in
9933 certain instructions or can hold only certain types of data.
9935 A hard register may be accessed in various modes throughout one
9936 function, but each pseudo register is given a natural mode and is
9937 accessed only in that mode. When it is necessary to describe an
9938 access to a pseudo register using a nonnatural mode, a `subreg'
9941 A `reg' expression with a machine mode that specifies more than
9942 one word of data may actually stand for several consecutive
9943 registers. If in addition the register number specifies a
9944 hardware register, then it actually represents several consecutive
9945 hardware registers starting with the specified one.
9947 Each pseudo register number used in a function's RTL code is
9948 represented by a unique `reg' expression.
9950 Some pseudo register numbers, those within the range of
9951 `FIRST_VIRTUAL_REGISTER' to `LAST_VIRTUAL_REGISTER' only appear
9952 during the RTL generation phase and are eliminated before the
9953 optimization phases. These represent locations in the stack frame
9954 that cannot be determined until RTL generation for the function
9955 has been completed. The following virtual register numbers are
9958 `VIRTUAL_INCOMING_ARGS_REGNUM'
9959 This points to the first word of the incoming arguments
9960 passed on the stack. Normally these arguments are placed
9961 there by the caller, but the callee may have pushed some
9962 arguments that were previously passed in registers.
9964 When RTL generation is complete, this virtual register is
9965 replaced by the sum of the register given by
9966 `ARG_POINTER_REGNUM' and the value of `FIRST_PARM_OFFSET'.
9968 `VIRTUAL_STACK_VARS_REGNUM'
9969 If `FRAME_GROWS_DOWNWARD' is defined to a nonzero value, this
9970 points to immediately above the first variable on the stack.
9971 Otherwise, it points to the first variable on the stack.
9973 `VIRTUAL_STACK_VARS_REGNUM' is replaced with the sum of the
9974 register given by `FRAME_POINTER_REGNUM' and the value
9975 `STARTING_FRAME_OFFSET'.
9977 `VIRTUAL_STACK_DYNAMIC_REGNUM'
9978 This points to the location of dynamically allocated memory
9979 on the stack immediately after the stack pointer has been
9980 adjusted by the amount of memory desired.
9982 This virtual register is replaced by the sum of the register
9983 given by `STACK_POINTER_REGNUM' and the value
9984 `STACK_DYNAMIC_OFFSET'.
9986 `VIRTUAL_OUTGOING_ARGS_REGNUM'
9987 This points to the location in the stack at which outgoing
9988 arguments should be written when the stack is pre-pushed
9989 (arguments pushed using push insns should always use
9990 `STACK_POINTER_REGNUM').
9992 This virtual register is replaced by the sum of the register
9993 given by `STACK_POINTER_REGNUM' and the value
9994 `STACK_POINTER_OFFSET'.
9996 `(subreg:M1 REG:M2 BYTENUM)'
9997 `subreg' expressions are used to refer to a register in a machine
9998 mode other than its natural one, or to refer to one register of a
9999 multi-part `reg' that actually refers to several registers.
10001 Each pseudo register has a natural mode. If it is necessary to
10002 operate on it in a different mode, the register must be enclosed
10005 There are currently three supported types for the first operand of
10007 * pseudo registers This is the most common case. Most
10008 `subreg's have pseudo `reg's as their first operand.
10010 * mem `subreg's of `mem' were common in earlier versions of GCC
10011 and are still supported. During the reload pass these are
10012 replaced by plain `mem's. On machines that do not do
10013 instruction scheduling, use of `subreg's of `mem' are still
10014 used, but this is no longer recommended. Such `subreg's are
10015 considered to be `register_operand's rather than
10016 `memory_operand's before and during reload. Because of this,
10017 the scheduling passes cannot properly schedule instructions
10018 with `subreg's of `mem', so for machines that do scheduling,
10019 `subreg's of `mem' should never be used. To support this,
10020 the combine and recog passes have explicit code to inhibit
10021 the creation of `subreg's of `mem' when `INSN_SCHEDULING' is
10024 The use of `subreg's of `mem' after the reload pass is an area
10025 that is not well understood and should be avoided. There is
10026 still some code in the compiler to support this, but this
10027 code has possibly rotted. This use of `subreg's is
10028 discouraged and will most likely not be supported in the
10031 * hard registers It is seldom necessary to wrap hard registers
10032 in `subreg's; such registers would normally reduce to a
10033 single `reg' rtx. This use of `subreg's is discouraged and
10034 may not be supported in the future.
10037 `subreg's of `subreg's are not supported. Using
10038 `simplify_gen_subreg' is the recommended way to avoid this problem.
10040 `subreg's come in two distinct flavors, each having its own usage
10043 Paradoxical subregs
10044 When M1 is strictly wider than M2, the `subreg' expression is
10045 called "paradoxical". The canonical test for this class of
10048 GET_MODE_SIZE (M1) > GET_MODE_SIZE (M2)
10050 Paradoxical `subreg's can be used as both lvalues and rvalues.
10051 When used as an lvalue, the low-order bits of the source value
10052 are stored in REG and the high-order bits are discarded.
10053 When used as an rvalue, the low-order bits of the `subreg' are
10054 taken from REG while the high-order bits may or may not be
10057 The high-order bits of rvalues are in the following
10060 * `subreg's of `mem' When M2 is smaller than a word, the
10061 macro `LOAD_EXTEND_OP', can control how the high-order
10064 * `subreg' of `reg's The upper bits are defined when
10065 `SUBREG_PROMOTED_VAR_P' is true.
10066 `SUBREG_PROMOTED_UNSIGNED_P' describes what the upper
10067 bits hold. Such subregs usually represent local
10068 variables, register variables and parameter pseudo
10069 variables that have been promoted to a wider mode.
10072 BYTENUM is always zero for a paradoxical `subreg', even on
10073 big-endian targets.
10075 For example, the paradoxical `subreg':
10077 (set (subreg:SI (reg:HI X) 0) Y)
10079 stores the lower 2 bytes of Y in X and discards the upper 2
10080 bytes. A subsequent:
10082 (set Z (subreg:SI (reg:HI X) 0))
10084 would set the lower two bytes of Z to Y and set the upper two
10085 bytes to an unknown value assuming `SUBREG_PROMOTED_VAR_P' is
10089 When M1 is at least as narrow as M2 the `subreg' expression
10090 is called "normal".
10092 Normal `subreg's restrict consideration to certain bits of
10093 REG. There are two cases. If M1 is smaller than a word, the
10094 `subreg' refers to the least-significant part (or "lowpart")
10095 of one word of REG. If M1 is word-sized or greater, the
10096 `subreg' refers to one or more complete words.
10098 When used as an lvalue, `subreg' is a word-based accessor.
10099 Storing to a `subreg' modifies all the words of REG that
10100 overlap the `subreg', but it leaves the other words of REG
10103 When storing to a normal `subreg' that is smaller than a word,
10104 the other bits of the referenced word are usually left in an
10105 undefined state. This laxity makes it easier to generate
10106 efficient code for such instructions. To represent an
10107 instruction that preserves all the bits outside of those in
10108 the `subreg', use `strict_low_part' or `zero_extract' around
10111 BYTENUM must identify the offset of the first byte of the
10112 `subreg' from the start of REG, assuming that REG is laid out
10113 in memory order. The memory order of bytes is defined by two
10114 target macros, `WORDS_BIG_ENDIAN' and `BYTES_BIG_ENDIAN':
10116 * `WORDS_BIG_ENDIAN', if set to 1, says that byte number
10117 zero is part of the most significant word; otherwise, it
10118 is part of the least significant word.
10120 * `BYTES_BIG_ENDIAN', if set to 1, says that byte number
10121 zero is the most significant byte within a word;
10122 otherwise, it is the least significant byte within a
10125 On a few targets, `FLOAT_WORDS_BIG_ENDIAN' disagrees with
10126 `WORDS_BIG_ENDIAN'. However, most parts of the compiler treat
10127 floating point values as if they had the same endianness as
10128 integer values. This works because they handle them solely
10129 as a collection of integer values, with no particular
10130 numerical value. Only real.c and the runtime libraries care
10131 about `FLOAT_WORDS_BIG_ENDIAN'.
10135 (subreg:HI (reg:SI X) 2)
10137 on a `BYTES_BIG_ENDIAN', `UNITS_PER_WORD == 4' target is the
10140 (subreg:HI (reg:SI X) 0)
10142 on a little-endian, `UNITS_PER_WORD == 4' target. Both
10143 `subreg's access the lower two bytes of register X.
10146 A `MODE_PARTIAL_INT' mode behaves as if it were as wide as the
10147 corresponding `MODE_INT' mode, except that it has an unknown
10148 number of undefined bits. For example:
10150 (subreg:PSI (reg:SI 0) 0)
10152 accesses the whole of `(reg:SI 0)', but the exact relationship
10153 between the `PSImode' value and the `SImode' value is not defined.
10154 If we assume `UNITS_PER_WORD <= 4', then the following two
10157 (subreg:PSI (reg:DI 0) 0)
10158 (subreg:PSI (reg:DI 0) 4)
10160 represent independent 4-byte accesses to the two halves of
10161 `(reg:DI 0)'. Both `subreg's have an unknown number of undefined
10164 If `UNITS_PER_WORD <= 2' then these two `subreg's:
10166 (subreg:HI (reg:PSI 0) 0)
10167 (subreg:HI (reg:PSI 0) 2)
10169 represent independent 2-byte accesses that together span the whole
10170 of `(reg:PSI 0)'. Storing to the first `subreg' does not affect
10171 the value of the second, and vice versa. `(reg:PSI 0)' has an
10172 unknown number of undefined bits, so the assignment:
10174 (set (subreg:HI (reg:PSI 0) 0) (reg:HI 4))
10176 does not guarantee that `(subreg:HI (reg:PSI 0) 0)' has the value
10179 The rules above apply to both pseudo REGs and hard REGs. If the
10180 semantics are not correct for particular combinations of M1, M2
10181 and hard REG, the target-specific code must ensure that those
10182 combinations are never used. For example:
10184 CANNOT_CHANGE_MODE_CLASS (M2, M1, CLASS)
10186 must be true for every class CLASS that includes REG.
10188 The first operand of a `subreg' expression is customarily accessed
10189 with the `SUBREG_REG' macro and the second operand is customarily
10190 accessed with the `SUBREG_BYTE' macro.
10192 It has been several years since a platform in which
10193 `BYTES_BIG_ENDIAN' not equal to `WORDS_BIG_ENDIAN' has been
10194 tested. Anyone wishing to support such a platform in the future
10195 may be confronted with code rot.
10198 This represents a scratch register that will be required for the
10199 execution of a single instruction and not used subsequently. It is
10200 converted into a `reg' by either the local register allocator or
10203 `scratch' is usually present inside a `clobber' operation (*note
10207 This refers to the machine's condition code register. It has no
10208 operands and may not have a machine mode. There are two ways to
10211 * To stand for a complete set of condition code flags. This is
10212 best on most machines, where each comparison sets the entire
10215 With this technique, `(cc0)' may be validly used in only two
10216 contexts: as the destination of an assignment (in test and
10217 compare instructions) and in comparison operators comparing
10218 against zero (`const_int' with value zero; that is to say,
10221 * To stand for a single flag that is the result of a single
10222 condition. This is useful on machines that have only a
10223 single flag bit, and in which comparison instructions must
10224 specify the condition to test.
10226 With this technique, `(cc0)' may be validly used in only two
10227 contexts: as the destination of an assignment (in test and
10228 compare instructions) where the source is a comparison
10229 operator, and as the first operand of `if_then_else' (in a
10230 conditional branch).
10232 There is only one expression object of code `cc0'; it is the value
10233 of the variable `cc0_rtx'. Any attempt to create an expression of
10234 code `cc0' will return `cc0_rtx'.
10236 Instructions can set the condition code implicitly. On many
10237 machines, nearly all instructions set the condition code based on
10238 the value that they compute or store. It is not necessary to
10239 record these actions explicitly in the RTL because the machine
10240 description includes a prescription for recognizing the
10241 instructions that do so (by means of the macro
10242 `NOTICE_UPDATE_CC'). *Note Condition Code::. Only instructions
10243 whose sole purpose is to set the condition code, and instructions
10244 that use the condition code, need mention `(cc0)'.
10246 On some machines, the condition code register is given a register
10247 number and a `reg' is used instead of `(cc0)'. This is usually the
10248 preferable approach if only a small subset of instructions modify
10249 the condition code. Other machines store condition codes in
10250 general registers; in such cases a pseudo register should be used.
10252 Some machines, such as the SPARC and RS/6000, have two sets of
10253 arithmetic instructions, one that sets and one that does not set
10254 the condition code. This is best handled by normally generating
10255 the instruction that does not set the condition code, and making a
10256 pattern that both performs the arithmetic and sets the condition
10257 code register (which would not be `(cc0)' in this case). For
10258 examples, search for `addcc' and `andcc' in `sparc.md'.
10261 This represents the machine's program counter. It has no operands
10262 and may not have a machine mode. `(pc)' may be validly used only
10263 in certain specific contexts in jump instructions.
10265 There is only one expression object of code `pc'; it is the value
10266 of the variable `pc_rtx'. Any attempt to create an expression of
10267 code `pc' will return `pc_rtx'.
10269 All instructions that do not jump alter the program counter
10270 implicitly by incrementing it, but there is no need to mention
10273 `(mem:M ADDR ALIAS)'
10274 This RTX represents a reference to main memory at an address
10275 represented by the expression ADDR. M specifies how large a unit
10276 of memory is accessed. ALIAS specifies an alias set for the
10277 reference. In general two items are in different alias sets if
10278 they cannot reference the same memory address.
10280 The construct `(mem:BLK (scratch))' is considered to alias all
10281 other memories. Thus it may be used as a memory barrier in
10282 epilogue stack deallocation patterns.
10284 `(concatM RTX RTX)'
10285 This RTX represents the concatenation of two other RTXs. This is
10286 used for complex values. It should only appear in the RTL
10287 attached to declarations and during RTL generation. It should not
10288 appear in the ordinary insn chain.
10290 `(concatnM [RTX ...])'
10291 This RTX represents the concatenation of all the RTX to make a
10292 single value. Like `concat', this should only appear in
10293 declarations, and not in the insn chain.
10296 File: gccint.info, Node: Arithmetic, Next: Comparisons, Prev: Regs and Memory, Up: RTL
10298 10.9 RTL Expressions for Arithmetic
10299 ===================================
10301 Unless otherwise specified, all the operands of arithmetic expressions
10302 must be valid for mode M. An operand is valid for mode M if it has
10303 mode M, or if it is a `const_int' or `const_double' and M is a mode of
10306 For commutative binary operations, constants should be placed in the
10312 These three expressions all represent the sum of the values
10313 represented by X and Y carried out in machine mode M. They differ
10314 in their behavior on overflow of integer modes. `plus' wraps
10315 round modulo the width of M; `ss_plus' saturates at the maximum
10316 signed value representable in M; `us_plus' saturates at the
10317 maximum unsigned value.
10320 This expression represents the sum of X and the low-order bits of
10321 Y. It is used with `high' (*note Constants::) to represent the
10322 typical two-instruction sequence used in RISC machines to
10323 reference a global memory location.
10325 The number of low order bits is machine-dependent but is normally
10326 the number of bits in a `Pmode' item minus the number of bits set
10329 M should be `Pmode'.
10334 These three expressions represent the result of subtracting Y from
10335 X, carried out in mode M. Behavior on overflow is the same as for
10336 the three variants of `plus' (see above).
10339 Represents the result of subtracting Y from X for purposes of
10340 comparison. The result is computed without overflow, as if with
10341 infinite precision.
10343 Of course, machines can't really subtract with infinite precision.
10344 However, they can pretend to do so when only the sign of the
10345 result will be used, which is the case when the result is stored
10346 in the condition code. And that is the _only_ way this kind of
10347 expression may validly be used: as a value to be stored in the
10348 condition codes, either `(cc0)' or a register. *Note
10351 The mode M is not related to the modes of X and Y, but instead is
10352 the mode of the condition code value. If `(cc0)' is used, it is
10353 `VOIDmode'. Otherwise it is some mode in class `MODE_CC', often
10354 `CCmode'. *Note Condition Code::. If M is `VOIDmode' or
10355 `CCmode', the operation returns sufficient information (in an
10356 unspecified format) so that any comparison operator can be applied
10357 to the result of the `COMPARE' operation. For other modes in
10358 class `MODE_CC', the operation only returns a subset of this
10361 Normally, X and Y must have the same mode. Otherwise, `compare'
10362 is valid only if the mode of X is in class `MODE_INT' and Y is a
10363 `const_int' or `const_double' with mode `VOIDmode'. The mode of X
10364 determines what mode the comparison is to be done in; thus it must
10367 If one of the operands is a constant, it should be placed in the
10368 second operand and the comparison code adjusted as appropriate.
10370 A `compare' specifying two `VOIDmode' constants is not valid since
10371 there is no way to know in what mode the comparison is to be
10372 performed; the comparison must either be folded during the
10373 compilation or the first operand must be loaded into a register
10374 while its mode is still known.
10379 These two expressions represent the negation (subtraction from
10380 zero) of the value represented by X, carried out in mode M. They
10381 differ in the behavior on overflow of integer modes. In the case
10382 of `neg', the negation of the operand may be a number not
10383 representable in mode M, in which case it is truncated to M.
10384 `ss_neg' and `us_neg' ensure that an out-of-bounds result
10385 saturates to the maximum or minimum signed or unsigned value.
10390 Represents the signed product of the values represented by X and Y
10391 carried out in machine mode M. `ss_mult' and `us_mult' ensure
10392 that an out-of-bounds result saturates to the maximum or minimum
10393 signed or unsigned value.
10395 Some machines support a multiplication that generates a product
10396 wider than the operands. Write the pattern for this as
10398 (mult:M (sign_extend:M X) (sign_extend:M Y))
10400 where M is wider than the modes of X and Y, which need not be the
10403 For unsigned widening multiplication, use the same idiom, but with
10404 `zero_extend' instead of `sign_extend'.
10408 Represents the quotient in signed division of X by Y, carried out
10409 in machine mode M. If M is a floating point mode, it represents
10410 the exact quotient; otherwise, the integerized quotient. `ss_div'
10411 ensures that an out-of-bounds result saturates to the maximum or
10412 minimum signed value.
10414 Some machines have division instructions in which the operands and
10415 quotient widths are not all the same; you should represent such
10416 instructions using `truncate' and `sign_extend' as in,
10418 (truncate:M1 (div:M2 X (sign_extend:M2 Y)))
10422 Like `div' but represents unsigned division. `us_div' ensures
10423 that an out-of-bounds result saturates to the maximum or minimum
10428 Like `div' and `udiv' but represent the remainder instead of the
10433 Represents the smaller (for `smin') or larger (for `smax') of X
10434 and Y, interpreted as signed values in mode M. When used with
10435 floating point, if both operands are zeros, or if either operand
10436 is `NaN', then it is unspecified which of the two operands is
10437 returned as the result.
10441 Like `smin' and `smax', but the values are interpreted as unsigned
10445 Represents the bitwise complement of the value represented by X,
10446 carried out in mode M, which must be a fixed-point machine mode.
10449 Represents the bitwise logical-and of the values represented by X
10450 and Y, carried out in machine mode M, which must be a fixed-point
10454 Represents the bitwise inclusive-or of the values represented by X
10455 and Y, carried out in machine mode M, which must be a fixed-point
10459 Represents the bitwise exclusive-or of the values represented by X
10460 and Y, carried out in machine mode M, which must be a fixed-point
10464 `(ss_ashift:M X C)'
10465 `(us_ashift:M X C)'
10466 These three expressions represent the result of arithmetically
10467 shifting X left by C places. They differ in their behavior on
10468 overflow of integer modes. An `ashift' operation is a plain shift
10469 with no special behavior in case of a change in the sign bit;
10470 `ss_ashift' and `us_ashift' saturates to the minimum or maximum
10471 representable value if any of the bits shifted out differs from
10472 the final sign bit.
10474 X have mode M, a fixed-point machine mode. C be a fixed-point
10475 mode or be a constant with mode `VOIDmode'; which mode is
10476 determined by the mode called for in the machine description entry
10477 for the left-shift instruction. For example, on the VAX, the mode
10478 of C is `QImode' regardless of M.
10482 Like `ashift' but for right shift. Unlike the case for left shift,
10483 these two operations are distinct.
10487 Similar but represent left and right rotate. If C is a constant,
10491 Represents the absolute value of X, computed in mode M.
10494 Represents the square root of X, computed in mode M. Most often M
10495 will be a floating point mode.
10498 Represents one plus the index of the least significant 1-bit in X,
10499 represented as an integer of mode M. (The value is zero if X is
10500 zero.) The mode of X need not be M; depending on the target
10501 machine, various mode combinations may be valid.
10504 Represents the number of leading 0-bits in X, represented as an
10505 integer of mode M, starting at the most significant bit position.
10506 If X is zero, the value is determined by
10507 `CLZ_DEFINED_VALUE_AT_ZERO' (*note Misc::). Note that this is one
10508 of the few expressions that is not invariant under widening. The
10509 mode of X will usually be an integer mode.
10512 Represents the number of trailing 0-bits in X, represented as an
10513 integer of mode M, starting at the least significant bit position.
10514 If X is zero, the value is determined by
10515 `CTZ_DEFINED_VALUE_AT_ZERO' (*note Misc::). Except for this case,
10516 `ctz(x)' is equivalent to `ffs(X) - 1'. The mode of X will
10517 usually be an integer mode.
10520 Represents the number of 1-bits in X, represented as an integer of
10521 mode M. The mode of X will usually be an integer mode.
10524 Represents the number of 1-bits modulo 2 in X, represented as an
10525 integer of mode M. The mode of X will usually be an integer mode.
10528 Represents the value X with the order of bytes reversed, carried
10529 out in mode M, which must be a fixed-point machine mode.
10532 File: gccint.info, Node: Comparisons, Next: Bit-Fields, Prev: Arithmetic, Up: RTL
10534 10.10 Comparison Operations
10535 ===========================
10537 Comparison operators test a relation on two operands and are considered
10538 to represent a machine-dependent nonzero value described by, but not
10539 necessarily equal to, `STORE_FLAG_VALUE' (*note Misc::) if the relation
10540 holds, or zero if it does not, for comparison operators whose results
10541 have a `MODE_INT' mode, `FLOAT_STORE_FLAG_VALUE' (*note Misc::) if the
10542 relation holds, or zero if it does not, for comparison operators that
10543 return floating-point values, and a vector of either
10544 `VECTOR_STORE_FLAG_VALUE' (*note Misc::) if the relation holds, or of
10545 zeros if it does not, for comparison operators that return vector
10546 results. The mode of the comparison operation is independent of the
10547 mode of the data being compared. If the comparison operation is being
10548 tested (e.g., the first operand of an `if_then_else'), the mode must be
10551 There are two ways that comparison operations may be used. The
10552 comparison operators may be used to compare the condition codes `(cc0)'
10553 against zero, as in `(eq (cc0) (const_int 0))'. Such a construct
10554 actually refers to the result of the preceding instruction in which the
10555 condition codes were set. The instruction setting the condition code
10556 must be adjacent to the instruction using the condition code; only
10557 `note' insns may separate them.
10559 Alternatively, a comparison operation may directly compare two data
10560 objects. The mode of the comparison is determined by the operands; they
10561 must both be valid for a common machine mode. A comparison with both
10562 operands constant would be invalid as the machine mode could not be
10563 deduced from it, but such a comparison should never exist in RTL due to
10566 In the example above, if `(cc0)' were last set to `(compare X Y)', the
10567 comparison operation is identical to `(eq X Y)'. Usually only one style
10568 of comparisons is supported on a particular machine, but the combine
10569 pass will try to merge the operations to produce the `eq' shown in case
10570 it exists in the context of the particular insn involved.
10572 Inequality comparisons come in two flavors, signed and unsigned. Thus,
10573 there are distinct expression codes `gt' and `gtu' for signed and
10574 unsigned greater-than. These can produce different results for the same
10575 pair of integer values: for example, 1 is signed greater-than -1 but not
10576 unsigned greater-than, because -1 when regarded as unsigned is actually
10577 `0xffffffff' which is greater than 1.
10579 The signed comparisons are also used for floating point values.
10580 Floating point comparisons are distinguished by the machine modes of
10584 `STORE_FLAG_VALUE' if the values represented by X and Y are equal,
10588 `STORE_FLAG_VALUE' if the values represented by X and Y are not
10589 equal, otherwise 0.
10592 `STORE_FLAG_VALUE' if the X is greater than Y. If they are
10593 fixed-point, the comparison is done in a signed sense.
10596 Like `gt' but does unsigned comparison, on fixed-point numbers
10601 Like `gt' and `gtu' but test for "less than".
10605 Like `gt' and `gtu' but test for "greater than or equal".
10609 Like `gt' and `gtu' but test for "less than or equal".
10611 `(if_then_else COND THEN ELSE)'
10612 This is not a comparison operation but is listed here because it is
10613 always used in conjunction with a comparison operation. To be
10614 precise, COND is a comparison expression. This expression
10615 represents a choice, according to COND, between the value
10616 represented by THEN and the one represented by ELSE.
10618 On most machines, `if_then_else' expressions are valid only to
10619 express conditional jumps.
10621 `(cond [TEST1 VALUE1 TEST2 VALUE2 ...] DEFAULT)'
10622 Similar to `if_then_else', but more general. Each of TEST1,
10623 TEST2, ... is performed in turn. The result of this expression is
10624 the VALUE corresponding to the first nonzero test, or DEFAULT if
10625 none of the tests are nonzero expressions.
10627 This is currently not valid for instruction patterns and is
10628 supported only for insn attributes. *Note Insn Attributes::.
10631 File: gccint.info, Node: Bit-Fields, Next: Vector Operations, Prev: Comparisons, Up: RTL
10636 Special expression codes exist to represent bit-field instructions.
10638 `(sign_extract:M LOC SIZE POS)'
10639 This represents a reference to a sign-extended bit-field contained
10640 or starting in LOC (a memory or register reference). The bit-field
10641 is SIZE bits wide and starts at bit POS. The compilation option
10642 `BITS_BIG_ENDIAN' says which end of the memory unit POS counts
10645 If LOC is in memory, its mode must be a single-byte integer mode.
10646 If LOC is in a register, the mode to use is specified by the
10647 operand of the `insv' or `extv' pattern (*note Standard Names::)
10648 and is usually a full-word integer mode, which is the default if
10651 The mode of POS is machine-specific and is also specified in the
10652 `insv' or `extv' pattern.
10654 The mode M is the same as the mode that would be used for LOC if
10655 it were a register.
10657 A `sign_extract' can not appear as an lvalue, or part thereof, in
10660 `(zero_extract:M LOC SIZE POS)'
10661 Like `sign_extract' but refers to an unsigned or zero-extended
10662 bit-field. The same sequence of bits are extracted, but they are
10663 filled to an entire word with zeros instead of by sign-extension.
10665 Unlike `sign_extract', this type of expressions can be lvalues in
10666 RTL; they may appear on the left side of an assignment, indicating
10667 insertion of a value into the specified bit-field.
10670 File: gccint.info, Node: Vector Operations, Next: Conversions, Prev: Bit-Fields, Up: RTL
10672 10.12 Vector Operations
10673 =======================
10675 All normal RTL expressions can be used with vector modes; they are
10676 interpreted as operating on each part of the vector independently.
10677 Additionally, there are a few new expressions to describe specific
10680 `(vec_merge:M VEC1 VEC2 ITEMS)'
10681 This describes a merge operation between two vectors. The result
10682 is a vector of mode M; its elements are selected from either VEC1
10683 or VEC2. Which elements are selected is described by ITEMS, which
10684 is a bit mask represented by a `const_int'; a zero bit indicates
10685 the corresponding element in the result vector is taken from VEC2
10686 while a set bit indicates it is taken from VEC1.
10688 `(vec_select:M VEC1 SELECTION)'
10689 This describes an operation that selects parts of a vector. VEC1
10690 is the source vector, SELECTION is a `parallel' that contains a
10691 `const_int' for each of the subparts of the result vector, giving
10692 the number of the source subpart that should be stored into it.
10694 `(vec_concat:M VEC1 VEC2)'
10695 Describes a vector concat operation. The result is a
10696 concatenation of the vectors VEC1 and VEC2; its length is the sum
10697 of the lengths of the two inputs.
10699 `(vec_duplicate:M VEC)'
10700 This operation converts a small vector into a larger one by
10701 duplicating the input values. The output vector mode must have
10702 the same submodes as the input vector mode, and the number of
10703 output parts must be an integer multiple of the number of input
10708 File: gccint.info, Node: Conversions, Next: RTL Declarations, Prev: Vector Operations, Up: RTL
10713 All conversions between machine modes must be represented by explicit
10714 conversion operations. For example, an expression which is the sum of
10715 a byte and a full word cannot be written as `(plus:SI (reg:QI 34)
10716 (reg:SI 80))' because the `plus' operation requires two operands of the
10717 same machine mode. Therefore, the byte-sized operand is enclosed in a
10718 conversion operation, as in
10720 (plus:SI (sign_extend:SI (reg:QI 34)) (reg:SI 80))
10722 The conversion operation is not a mere placeholder, because there may
10723 be more than one way of converting from a given starting mode to the
10724 desired final mode. The conversion operation code says how to do it.
10726 For all conversion operations, X must not be `VOIDmode' because the
10727 mode in which to do the conversion would not be known. The conversion
10728 must either be done at compile-time or X must be placed into a register.
10730 `(sign_extend:M X)'
10731 Represents the result of sign-extending the value X to machine
10732 mode M. M must be a fixed-point mode and X a fixed-point value of
10733 a mode narrower than M.
10735 `(zero_extend:M X)'
10736 Represents the result of zero-extending the value X to machine
10737 mode M. M must be a fixed-point mode and X a fixed-point value of
10738 a mode narrower than M.
10740 `(float_extend:M X)'
10741 Represents the result of extending the value X to machine mode M.
10742 M must be a floating point mode and X a floating point value of a
10743 mode narrower than M.
10746 Represents the result of truncating the value X to machine mode M.
10747 M must be a fixed-point mode and X a fixed-point value of a mode
10750 `(ss_truncate:M X)'
10751 Represents the result of truncating the value X to machine mode M,
10752 using signed saturation in the case of overflow. Both M and the
10753 mode of X must be fixed-point modes.
10755 `(us_truncate:M X)'
10756 Represents the result of truncating the value X to machine mode M,
10757 using unsigned saturation in the case of overflow. Both M and the
10758 mode of X must be fixed-point modes.
10760 `(float_truncate:M X)'
10761 Represents the result of truncating the value X to machine mode M.
10762 M must be a floating point mode and X a floating point value of a
10766 Represents the result of converting fixed point value X, regarded
10767 as signed, to floating point mode M.
10769 `(unsigned_float:M X)'
10770 Represents the result of converting fixed point value X, regarded
10771 as unsigned, to floating point mode M.
10774 When M is a floating-point mode, represents the result of
10775 converting floating point value X (valid for mode M) to an
10776 integer, still represented in floating point mode M, by rounding
10779 When M is a fixed-point mode, represents the result of converting
10780 floating point value X to mode M, regarded as signed. How
10781 rounding is done is not specified, so this operation may be used
10782 validly in compiling C code only for integer-valued operands.
10784 `(unsigned_fix:M X)'
10785 Represents the result of converting floating point value X to
10786 fixed point mode M, regarded as unsigned. How rounding is done is
10789 `(fract_convert:M X)'
10790 Represents the result of converting fixed-point value X to
10791 fixed-point mode M, signed integer value X to fixed-point mode M,
10792 floating-point value X to fixed-point mode M, fixed-point value X
10793 to integer mode M regarded as signed, or fixed-point value X to
10794 floating-point mode M. When overflows or underflows happen, the
10795 results are undefined.
10798 Represents the result of converting fixed-point value X to
10799 fixed-point mode M, signed integer value X to fixed-point mode M,
10800 or floating-point value X to fixed-point mode M. When overflows
10801 or underflows happen, the results are saturated to the maximum or
10804 `(unsigned_fract_convert:M X)'
10805 Represents the result of converting fixed-point value X to integer
10806 mode M regarded as unsigned, or unsigned integer value X to
10807 fixed-point mode M. When overflows or underflows happen, the
10808 results are undefined.
10810 `(unsigned_sat_fract:M X)'
10811 Represents the result of converting unsigned integer value X to
10812 fixed-point mode M. When overflows or underflows happen, the
10813 results are saturated to the maximum or the minimum.
10816 File: gccint.info, Node: RTL Declarations, Next: Side Effects, Prev: Conversions, Up: RTL
10821 Declaration expression codes do not represent arithmetic operations but
10822 rather state assertions about their operands.
10824 `(strict_low_part (subreg:M (reg:N R) 0))'
10825 This expression code is used in only one context: as the
10826 destination operand of a `set' expression. In addition, the
10827 operand of this expression must be a non-paradoxical `subreg'
10830 The presence of `strict_low_part' says that the part of the
10831 register which is meaningful in mode N, but is not part of mode M,
10832 is not to be altered. Normally, an assignment to such a subreg is
10833 allowed to have undefined effects on the rest of the register when
10834 M is less than a word.
10837 File: gccint.info, Node: Side Effects, Next: Incdec, Prev: RTL Declarations, Up: RTL
10839 10.15 Side Effect Expressions
10840 =============================
10842 The expression codes described so far represent values, not actions.
10843 But machine instructions never produce values; they are meaningful only
10844 for their side effects on the state of the machine. Special expression
10845 codes are used to represent side effects.
10847 The body of an instruction is always one of these side effect codes;
10848 the codes described above, which represent values, appear only as the
10852 Represents the action of storing the value of X into the place
10853 represented by LVAL. LVAL must be an expression representing a
10854 place that can be stored in: `reg' (or `subreg', `strict_low_part'
10855 or `zero_extract'), `mem', `pc', `parallel', or `cc0'.
10857 If LVAL is a `reg', `subreg' or `mem', it has a machine mode; then
10858 X must be valid for that mode.
10860 If LVAL is a `reg' whose machine mode is less than the full width
10861 of the register, then it means that the part of the register
10862 specified by the machine mode is given the specified value and the
10863 rest of the register receives an undefined value. Likewise, if
10864 LVAL is a `subreg' whose machine mode is narrower than the mode of
10865 the register, the rest of the register can be changed in an
10868 If LVAL is a `strict_low_part' of a subreg, then the part of the
10869 register specified by the machine mode of the `subreg' is given
10870 the value X and the rest of the register is not changed.
10872 If LVAL is a `zero_extract', then the referenced part of the
10873 bit-field (a memory or register reference) specified by the
10874 `zero_extract' is given the value X and the rest of the bit-field
10875 is not changed. Note that `sign_extract' can not appear in LVAL.
10877 If LVAL is `(cc0)', it has no machine mode, and X may be either a
10878 `compare' expression or a value that may have any mode. The
10879 latter case represents a "test" instruction. The expression `(set
10880 (cc0) (reg:M N))' is equivalent to `(set (cc0) (compare (reg:M N)
10881 (const_int 0)))'. Use the former expression to save space during
10884 If LVAL is a `parallel', it is used to represent the case of a
10885 function returning a structure in multiple registers. Each element
10886 of the `parallel' is an `expr_list' whose first operand is a `reg'
10887 and whose second operand is a `const_int' representing the offset
10888 (in bytes) into the structure at which the data in that register
10889 corresponds. The first element may be null to indicate that the
10890 structure is also passed partly in memory.
10892 If LVAL is `(pc)', we have a jump instruction, and the
10893 possibilities for X are very limited. It may be a `label_ref'
10894 expression (unconditional jump). It may be an `if_then_else'
10895 (conditional jump), in which case either the second or the third
10896 operand must be `(pc)' (for the case which does not jump) and the
10897 other of the two must be a `label_ref' (for the case which does
10898 jump). X may also be a `mem' or `(plus:SI (pc) Y)', where Y may
10899 be a `reg' or a `mem'; these unusual patterns are used to
10900 represent jumps through branch tables.
10902 If LVAL is neither `(cc0)' nor `(pc)', the mode of LVAL must not
10903 be `VOIDmode' and the mode of X must be valid for the mode of LVAL.
10905 LVAL is customarily accessed with the `SET_DEST' macro and X with
10906 the `SET_SRC' macro.
10909 As the sole expression in a pattern, represents a return from the
10910 current function, on machines where this can be done with one
10911 instruction, such as VAXen. On machines where a multi-instruction
10912 "epilogue" must be executed in order to return from the function,
10913 returning is done by jumping to a label which precedes the
10914 epilogue, and the `return' expression code is never used.
10916 Inside an `if_then_else' expression, represents the value to be
10917 placed in `pc' to return to the caller.
10919 Note that an insn pattern of `(return)' is logically equivalent to
10920 `(set (pc) (return))', but the latter form is never used.
10922 `(call FUNCTION NARGS)'
10923 Represents a function call. FUNCTION is a `mem' expression whose
10924 address is the address of the function to be called. NARGS is an
10925 expression which can be used for two purposes: on some machines it
10926 represents the number of bytes of stack argument; on others, it
10927 represents the number of argument registers.
10929 Each machine has a standard machine mode which FUNCTION must have.
10930 The machine description defines macro `FUNCTION_MODE' to expand
10931 into the requisite mode name. The purpose of this mode is to
10932 specify what kind of addressing is allowed, on machines where the
10933 allowed kinds of addressing depend on the machine mode being
10937 Represents the storing or possible storing of an unpredictable,
10938 undescribed value into X, which must be a `reg', `scratch',
10939 `parallel' or `mem' expression.
10941 One place this is used is in string instructions that store
10942 standard values into particular hard registers. It may not be
10943 worth the trouble to describe the values that are stored, but it
10944 is essential to inform the compiler that the registers will be
10945 altered, lest it attempt to keep data in them across the string
10948 If X is `(mem:BLK (const_int 0))' or `(mem:BLK (scratch))', it
10949 means that all memory locations must be presumed clobbered. If X
10950 is a `parallel', it has the same meaning as a `parallel' in a
10953 Note that the machine description classifies certain hard
10954 registers as "call-clobbered". All function call instructions are
10955 assumed by default to clobber these registers, so there is no need
10956 to use `clobber' expressions to indicate this fact. Also, each
10957 function call is assumed to have the potential to alter any memory
10958 location, unless the function is declared `const'.
10960 If the last group of expressions in a `parallel' are each a
10961 `clobber' expression whose arguments are `reg' or `match_scratch'
10962 (*note RTL Template::) expressions, the combiner phase can add the
10963 appropriate `clobber' expressions to an insn it has constructed
10964 when doing so will cause a pattern to be matched.
10966 This feature can be used, for example, on a machine that whose
10967 multiply and add instructions don't use an MQ register but which
10968 has an add-accumulate instruction that does clobber the MQ
10969 register. Similarly, a combined instruction might require a
10970 temporary register while the constituent instructions might not.
10972 When a `clobber' expression for a register appears inside a
10973 `parallel' with other side effects, the register allocator
10974 guarantees that the register is unoccupied both before and after
10975 that insn if it is a hard register clobber. For pseudo-register
10976 clobber, the register allocator and the reload pass do not assign
10977 the same hard register to the clobber and the input operands if
10978 there is an insn alternative containing the `&' constraint (*note
10979 Modifiers::) for the clobber and the hard register is in register
10980 classes of the clobber in the alternative. You can clobber either
10981 a specific hard register, a pseudo register, or a `scratch'
10982 expression; in the latter two cases, GCC will allocate a hard
10983 register that is available there for use as a temporary.
10985 For instructions that require a temporary register, you should use
10986 `scratch' instead of a pseudo-register because this will allow the
10987 combiner phase to add the `clobber' when required. You do this by
10988 coding (`clobber' (`match_scratch' ...)). If you do clobber a
10989 pseudo register, use one which appears nowhere else--generate a
10990 new one each time. Otherwise, you may confuse CSE.
10992 There is one other known use for clobbering a pseudo register in a
10993 `parallel': when one of the input operands of the insn is also
10994 clobbered by the insn. In this case, using the same pseudo
10995 register in the clobber and elsewhere in the insn produces the
10999 Represents the use of the value of X. It indicates that the value
11000 in X at this point in the program is needed, even though it may
11001 not be apparent why this is so. Therefore, the compiler will not
11002 attempt to delete previous instructions whose only effect is to
11003 store a value in X. X must be a `reg' expression.
11005 In some situations, it may be tempting to add a `use' of a
11006 register in a `parallel' to describe a situation where the value
11007 of a special register will modify the behavior of the instruction.
11008 An hypothetical example might be a pattern for an addition that can
11009 either wrap around or use saturating addition depending on the
11010 value of a special control register:
11012 (parallel [(set (reg:SI 2) (unspec:SI [(reg:SI 3)
11016 This will not work, several of the optimizers only look at
11017 expressions locally; it is very likely that if you have multiple
11018 insns with identical inputs to the `unspec', they will be
11019 optimized away even if register 1 changes in between.
11021 This means that `use' can _only_ be used to describe that the
11022 register is live. You should think twice before adding `use'
11023 statements, more often you will want to use `unspec' instead. The
11024 `use' RTX is most commonly useful to describe that a fixed
11025 register is implicitly used in an insn. It is also safe to use in
11026 patterns where the compiler knows for other reasons that the result
11027 of the whole pattern is variable, such as `movmemM' or `call'
11030 During the reload phase, an insn that has a `use' as pattern can
11031 carry a reg_equal note. These `use' insns will be deleted before
11032 the reload phase exits.
11034 During the delayed branch scheduling phase, X may be an insn.
11035 This indicates that X previously was located at this place in the
11036 code and its data dependencies need to be taken into account.
11037 These `use' insns will be deleted before the delayed branch
11038 scheduling phase exits.
11040 `(parallel [X0 X1 ...])'
11041 Represents several side effects performed in parallel. The square
11042 brackets stand for a vector; the operand of `parallel' is a vector
11043 of expressions. X0, X1 and so on are individual side effect
11044 expressions--expressions of code `set', `call', `return',
11045 `clobber' or `use'.
11047 "In parallel" means that first all the values used in the
11048 individual side-effects are computed, and second all the actual
11049 side-effects are performed. For example,
11051 (parallel [(set (reg:SI 1) (mem:SI (reg:SI 1)))
11052 (set (mem:SI (reg:SI 1)) (reg:SI 1))])
11054 says unambiguously that the values of hard register 1 and the
11055 memory location addressed by it are interchanged. In both places
11056 where `(reg:SI 1)' appears as a memory address it refers to the
11057 value in register 1 _before_ the execution of the insn.
11059 It follows that it is _incorrect_ to use `parallel' and expect the
11060 result of one `set' to be available for the next one. For
11061 example, people sometimes attempt to represent a jump-if-zero
11062 instruction this way:
11064 (parallel [(set (cc0) (reg:SI 34))
11065 (set (pc) (if_then_else
11066 (eq (cc0) (const_int 0))
11070 But this is incorrect, because it says that the jump condition
11071 depends on the condition code value _before_ this instruction, not
11072 on the new value that is set by this instruction.
11074 Peephole optimization, which takes place together with final
11075 assembly code output, can produce insns whose patterns consist of
11076 a `parallel' whose elements are the operands needed to output the
11077 resulting assembler code--often `reg', `mem' or constant
11078 expressions. This would not be well-formed RTL at any other stage
11079 in compilation, but it is ok then because no further optimization
11080 remains to be done. However, the definition of the macro
11081 `NOTICE_UPDATE_CC', if any, must deal with such insns if you
11082 define any peephole optimizations.
11084 `(cond_exec [COND EXPR])'
11085 Represents a conditionally executed expression. The EXPR is
11086 executed only if the COND is nonzero. The COND expression must
11087 not have side-effects, but the EXPR may very well have
11090 `(sequence [INSNS ...])'
11091 Represents a sequence of insns. Each of the INSNS that appears in
11092 the vector is suitable for appearing in the chain of insns, so it
11093 must be an `insn', `jump_insn', `call_insn', `code_label',
11094 `barrier' or `note'.
11096 A `sequence' RTX is never placed in an actual insn during RTL
11097 generation. It represents the sequence of insns that result from a
11098 `define_expand' _before_ those insns are passed to `emit_insn' to
11099 insert them in the chain of insns. When actually inserted, the
11100 individual sub-insns are separated out and the `sequence' is
11103 After delay-slot scheduling is completed, an insn and all the
11104 insns that reside in its delay slots are grouped together into a
11105 `sequence'. The insn requiring the delay slot is the first insn
11106 in the vector; subsequent insns are to be placed in the delay slot.
11108 `INSN_ANNULLED_BRANCH_P' is set on an insn in a delay slot to
11109 indicate that a branch insn should be used that will conditionally
11110 annul the effect of the insns in the delay slots. In such a case,
11111 `INSN_FROM_TARGET_P' indicates that the insn is from the target of
11112 the branch and should be executed only if the branch is taken;
11113 otherwise the insn should be executed only if the branch is not
11114 taken. *Note Delay Slots::.
11116 These expression codes appear in place of a side effect, as the body of
11117 an insn, though strictly speaking they do not always describe side
11121 Represents literal assembler code as described by the string S.
11123 `(unspec [OPERANDS ...] INDEX)'
11124 `(unspec_volatile [OPERANDS ...] INDEX)'
11125 Represents a machine-specific operation on OPERANDS. INDEX
11126 selects between multiple machine-specific operations.
11127 `unspec_volatile' is used for volatile operations and operations
11128 that may trap; `unspec' is used for other operations.
11130 These codes may appear inside a `pattern' of an insn, inside a
11131 `parallel', or inside an expression.
11133 `(addr_vec:M [LR0 LR1 ...])'
11134 Represents a table of jump addresses. The vector elements LR0,
11135 etc., are `label_ref' expressions. The mode M specifies how much
11136 space is given to each address; normally M would be `Pmode'.
11138 `(addr_diff_vec:M BASE [LR0 LR1 ...] MIN MAX FLAGS)'
11139 Represents a table of jump addresses expressed as offsets from
11140 BASE. The vector elements LR0, etc., are `label_ref' expressions
11141 and so is BASE. The mode M specifies how much space is given to
11142 each address-difference. MIN and MAX are set up by branch
11143 shortening and hold a label with a minimum and a maximum address,
11144 respectively. FLAGS indicates the relative position of BASE, MIN
11145 and MAX to the containing insn and of MIN and MAX to BASE. See
11146 rtl.def for details.
11148 `(prefetch:M ADDR RW LOCALITY)'
11149 Represents prefetch of memory at address ADDR. Operand RW is 1 if
11150 the prefetch is for data to be written, 0 otherwise; targets that
11151 do not support write prefetches should treat this as a normal
11152 prefetch. Operand LOCALITY specifies the amount of temporal
11153 locality; 0 if there is none or 1, 2, or 3 for increasing levels
11154 of temporal locality; targets that do not support locality hints
11155 should ignore this.
11157 This insn is used to minimize cache-miss latency by moving data
11158 into a cache before it is accessed. It should use only
11159 non-faulting data prefetch instructions.
11162 File: gccint.info, Node: Incdec, Next: Assembler, Prev: Side Effects, Up: RTL
11164 10.16 Embedded Side-Effects on Addresses
11165 ========================================
11167 Six special side-effect expression codes appear as memory addresses.
11170 Represents the side effect of decrementing X by a standard amount
11171 and represents also the value that X has after being decremented.
11172 X must be a `reg' or `mem', but most machines allow only a `reg'.
11173 M must be the machine mode for pointers on the machine in use.
11174 The amount X is decremented by is the length in bytes of the
11175 machine mode of the containing memory reference of which this
11176 expression serves as the address. Here is an example of its use:
11178 (mem:DF (pre_dec:SI (reg:SI 39)))
11180 This says to decrement pseudo register 39 by the length of a
11181 `DFmode' value and use the result to address a `DFmode' value.
11184 Similar, but specifies incrementing X instead of decrementing it.
11187 Represents the same side effect as `pre_dec' but a different
11188 value. The value represented here is the value X has before being
11192 Similar, but specifies incrementing X instead of decrementing it.
11194 `(post_modify:M X Y)'
11195 Represents the side effect of setting X to Y and represents X
11196 before X is modified. X must be a `reg' or `mem', but most
11197 machines allow only a `reg'. M must be the machine mode for
11198 pointers on the machine in use.
11200 The expression Y must be one of three forms: `(plus:M X Z)',
11201 `(minus:M X Z)', or `(plus:M X I)', where Z is an index register
11202 and I is a constant.
11204 Here is an example of its use:
11206 (mem:SF (post_modify:SI (reg:SI 42) (plus (reg:SI 42)
11209 This says to modify pseudo register 42 by adding the contents of
11210 pseudo register 48 to it, after the use of what ever 42 points to.
11212 `(pre_modify:M X EXPR)'
11213 Similar except side effects happen before the use.
11215 These embedded side effect expressions must be used with care.
11216 Instruction patterns may not use them. Until the `flow' pass of the
11217 compiler, they may occur only to represent pushes onto the stack. The
11218 `flow' pass finds cases where registers are incremented or decremented
11219 in one instruction and used as an address shortly before or after;
11220 these cases are then transformed to use pre- or post-increment or
11223 If a register used as the operand of these expressions is used in
11224 another address in an insn, the original value of the register is used.
11225 Uses of the register outside of an address are not permitted within the
11226 same insn as a use in an embedded side effect expression because such
11227 insns behave differently on different machines and hence must be treated
11228 as ambiguous and disallowed.
11230 An instruction that can be represented with an embedded side effect
11231 could also be represented using `parallel' containing an additional
11232 `set' to describe how the address register is altered. This is not
11233 done because machines that allow these operations at all typically
11234 allow them wherever a memory address is called for. Describing them as
11235 additional parallel stores would require doubling the number of entries
11236 in the machine description.
11239 File: gccint.info, Node: Assembler, Next: Insns, Prev: Incdec, Up: RTL
11241 10.17 Assembler Instructions as Expressions
11242 ===========================================
11244 The RTX code `asm_operands' represents a value produced by a
11245 user-specified assembler instruction. It is used to represent an `asm'
11246 statement with arguments. An `asm' statement with a single output
11247 operand, like this:
11249 asm ("foo %1,%2,%0" : "=a" (outputvar) : "g" (x + y), "di" (*z));
11251 is represented using a single `asm_operands' RTX which represents the
11252 value that is stored in `outputvar':
11254 (set RTX-FOR-OUTPUTVAR
11255 (asm_operands "foo %1,%2,%0" "a" 0
11256 [RTX-FOR-ADDITION-RESULT RTX-FOR-*Z]
11257 [(asm_input:M1 "g")
11258 (asm_input:M2 "di")]))
11260 Here the operands of the `asm_operands' RTX are the assembler template
11261 string, the output-operand's constraint, the index-number of the output
11262 operand among the output operands specified, a vector of input operand
11263 RTX's, and a vector of input-operand modes and constraints. The mode
11264 M1 is the mode of the sum `x+y'; M2 is that of `*z'.
11266 When an `asm' statement has multiple output values, its insn has
11267 several such `set' RTX's inside of a `parallel'. Each `set' contains a
11268 `asm_operands'; all of these share the same assembler template and
11269 vectors, but each contains the constraint for the respective output
11270 operand. They are also distinguished by the output-operand index
11271 number, which is 0, 1, ... for successive output operands.
11274 File: gccint.info, Node: Insns, Next: Calls, Prev: Assembler, Up: RTL
11279 The RTL representation of the code for a function is a doubly-linked
11280 chain of objects called "insns". Insns are expressions with special
11281 codes that are used for no other purpose. Some insns are actual
11282 instructions; others represent dispatch tables for `switch' statements;
11283 others represent labels to jump to or various sorts of declarative
11286 In addition to its own specific data, each insn must have a unique
11287 id-number that distinguishes it from all other insns in the current
11288 function (after delayed branch scheduling, copies of an insn with the
11289 same id-number may be present in multiple places in a function, but
11290 these copies will always be identical and will only appear inside a
11291 `sequence'), and chain pointers to the preceding and following insns.
11292 These three fields occupy the same position in every insn, independent
11293 of the expression code of the insn. They could be accessed with `XEXP'
11294 and `XINT', but instead three special macros are always used:
11297 Accesses the unique id of insn I.
11300 Accesses the chain pointer to the insn preceding I. If I is the
11301 first insn, this is a null pointer.
11304 Accesses the chain pointer to the insn following I. If I is the
11305 last insn, this is a null pointer.
11307 The first insn in the chain is obtained by calling `get_insns'; the
11308 last insn is the result of calling `get_last_insn'. Within the chain
11309 delimited by these insns, the `NEXT_INSN' and `PREV_INSN' pointers must
11310 always correspond: if INSN is not the first insn,
11312 NEXT_INSN (PREV_INSN (INSN)) == INSN
11314 is always true and if INSN is not the last insn,
11316 PREV_INSN (NEXT_INSN (INSN)) == INSN
11320 After delay slot scheduling, some of the insns in the chain might be
11321 `sequence' expressions, which contain a vector of insns. The value of
11322 `NEXT_INSN' in all but the last of these insns is the next insn in the
11323 vector; the value of `NEXT_INSN' of the last insn in the vector is the
11324 same as the value of `NEXT_INSN' for the `sequence' in which it is
11325 contained. Similar rules apply for `PREV_INSN'.
11327 This means that the above invariants are not necessarily true for insns
11328 inside `sequence' expressions. Specifically, if INSN is the first insn
11329 in a `sequence', `NEXT_INSN (PREV_INSN (INSN))' is the insn containing
11330 the `sequence' expression, as is the value of `PREV_INSN (NEXT_INSN
11331 (INSN))' if INSN is the last insn in the `sequence' expression. You
11332 can use these expressions to find the containing `sequence' expression.
11334 Every insn has one of the following six expression codes:
11337 The expression code `insn' is used for instructions that do not
11338 jump and do not do function calls. `sequence' expressions are
11339 always contained in insns with code `insn' even if one of those
11340 insns should jump or do function calls.
11342 Insns with code `insn' have four additional fields beyond the three
11343 mandatory ones listed above. These four are described in a table
11347 The expression code `jump_insn' is used for instructions that may
11348 jump (or, more generally, may contain `label_ref' expressions to
11349 which `pc' can be set in that instruction). If there is an
11350 instruction to return from the current function, it is recorded as
11353 `jump_insn' insns have the same extra fields as `insn' insns,
11354 accessed in the same way and in addition contain a field
11355 `JUMP_LABEL' which is defined once jump optimization has completed.
11357 For simple conditional and unconditional jumps, this field contains
11358 the `code_label' to which this insn will (possibly conditionally)
11359 branch. In a more complex jump, `JUMP_LABEL' records one of the
11360 labels that the insn refers to; other jump target labels are
11361 recorded as `REG_LABEL_TARGET' notes. The exception is `addr_vec'
11362 and `addr_diff_vec', where `JUMP_LABEL' is `NULL_RTX' and the only
11363 way to find the labels is to scan the entire body of the insn.
11365 Return insns count as jumps, but since they do not refer to any
11366 labels, their `JUMP_LABEL' is `NULL_RTX'.
11369 The expression code `call_insn' is used for instructions that may
11370 do function calls. It is important to distinguish these
11371 instructions because they imply that certain registers and memory
11372 locations may be altered unpredictably.
11374 `call_insn' insns have the same extra fields as `insn' insns,
11375 accessed in the same way and in addition contain a field
11376 `CALL_INSN_FUNCTION_USAGE', which contains a list (chain of
11377 `expr_list' expressions) containing `use' and `clobber'
11378 expressions that denote hard registers and `MEM's used or
11379 clobbered by the called function.
11381 A `MEM' generally points to a stack slots in which arguments passed
11382 to the libcall by reference (*note TARGET_PASS_BY_REFERENCE:
11383 Register Arguments.) are stored. If the argument is caller-copied
11384 (*note TARGET_CALLEE_COPIES: Register Arguments.), the stack slot
11385 will be mentioned in `CLOBBER' and `USE' entries; if it's
11386 callee-copied, only a `USE' will appear, and the `MEM' may point
11387 to addresses that are not stack slots.
11389 `CLOBBER'ed registers in this list augment registers specified in
11390 `CALL_USED_REGISTERS' (*note Register Basics::).
11393 A `code_label' insn represents a label that a jump insn can jump
11394 to. It contains two special fields of data in addition to the
11395 three standard ones. `CODE_LABEL_NUMBER' is used to hold the
11396 "label number", a number that identifies this label uniquely among
11397 all the labels in the compilation (not just in the current
11398 function). Ultimately, the label is represented in the assembler
11399 output as an assembler label, usually of the form `LN' where N is
11402 When a `code_label' appears in an RTL expression, it normally
11403 appears within a `label_ref' which represents the address of the
11404 label, as a number.
11406 Besides as a `code_label', a label can also be represented as a
11407 `note' of type `NOTE_INSN_DELETED_LABEL'.
11409 The field `LABEL_NUSES' is only defined once the jump optimization
11410 phase is completed. It contains the number of times this label is
11411 referenced in the current function.
11413 The field `LABEL_KIND' differentiates four different types of
11414 labels: `LABEL_NORMAL', `LABEL_STATIC_ENTRY',
11415 `LABEL_GLOBAL_ENTRY', and `LABEL_WEAK_ENTRY'. The only labels
11416 that do not have type `LABEL_NORMAL' are "alternate entry points"
11417 to the current function. These may be static (visible only in the
11418 containing translation unit), global (exposed to all translation
11419 units), or weak (global, but can be overridden by another symbol
11420 with the same name).
11422 Much of the compiler treats all four kinds of label identically.
11423 Some of it needs to know whether or not a label is an alternate
11424 entry point; for this purpose, the macro `LABEL_ALT_ENTRY_P' is
11425 provided. It is equivalent to testing whether `LABEL_KIND (label)
11426 == LABEL_NORMAL'. The only place that cares about the distinction
11427 between static, global, and weak alternate entry points, besides
11428 the front-end code that creates them, is the function
11429 `output_alternate_entry_point', in `final.c'.
11431 To set the kind of a label, use the `SET_LABEL_KIND' macro.
11434 Barriers are placed in the instruction stream when control cannot
11435 flow past them. They are placed after unconditional jump
11436 instructions to indicate that the jumps are unconditional and
11437 after calls to `volatile' functions, which do not return (e.g.,
11438 `exit'). They contain no information beyond the three standard
11442 `note' insns are used to represent additional debugging and
11443 declarative information. They contain two nonstandard fields, an
11444 integer which is accessed with the macro `NOTE_LINE_NUMBER' and a
11445 string accessed with `NOTE_SOURCE_FILE'.
11447 If `NOTE_LINE_NUMBER' is positive, the note represents the
11448 position of a source line and `NOTE_SOURCE_FILE' is the source
11449 file name that the line came from. These notes control generation
11450 of line number data in the assembler output.
11452 Otherwise, `NOTE_LINE_NUMBER' is not really a line number but a
11453 code with one of the following values (and `NOTE_SOURCE_FILE' must
11454 contain a null pointer):
11456 `NOTE_INSN_DELETED'
11457 Such a note is completely ignorable. Some passes of the
11458 compiler delete insns by altering them into notes of this
11461 `NOTE_INSN_DELETED_LABEL'
11462 This marks what used to be a `code_label', but was not used
11463 for other purposes than taking its address and was
11464 transformed to mark that no code jumps to it.
11466 `NOTE_INSN_BLOCK_BEG'
11467 `NOTE_INSN_BLOCK_END'
11468 These types of notes indicate the position of the beginning
11469 and end of a level of scoping of variable names. They
11470 control the output of debugging information.
11472 `NOTE_INSN_EH_REGION_BEG'
11473 `NOTE_INSN_EH_REGION_END'
11474 These types of notes indicate the position of the beginning
11475 and end of a level of scoping for exception handling.
11476 `NOTE_BLOCK_NUMBER' identifies which `CODE_LABEL' or `note'
11477 of type `NOTE_INSN_DELETED_LABEL' is associated with the
11480 `NOTE_INSN_LOOP_BEG'
11481 `NOTE_INSN_LOOP_END'
11482 These types of notes indicate the position of the beginning
11483 and end of a `while' or `for' loop. They enable the loop
11484 optimizer to find loops quickly.
11486 `NOTE_INSN_LOOP_CONT'
11487 Appears at the place in a loop that `continue' statements
11490 `NOTE_INSN_LOOP_VTOP'
11491 This note indicates the place in a loop where the exit test
11492 begins for those loops in which the exit test has been
11493 duplicated. This position becomes another virtual start of
11494 the loop when considering loop invariants.
11496 `NOTE_INSN_FUNCTION_BEG'
11497 Appears at the start of the function body, after the function
11501 These codes are printed symbolically when they appear in debugging
11504 The machine mode of an insn is normally `VOIDmode', but some phases
11505 use the mode for various purposes.
11507 The common subexpression elimination pass sets the mode of an insn to
11508 `QImode' when it is the first insn in a block that has already been
11511 The second Haifa scheduling pass, for targets that can multiple issue,
11512 sets the mode of an insn to `TImode' when it is believed that the
11513 instruction begins an issue group. That is, when the instruction
11514 cannot issue simultaneously with the previous. This may be relied on
11515 by later passes, in particular machine-dependent reorg.
11517 Here is a table of the extra fields of `insn', `jump_insn' and
11521 An expression for the side effect performed by this insn. This
11522 must be one of the following codes: `set', `call', `use',
11523 `clobber', `return', `asm_input', `asm_output', `addr_vec',
11524 `addr_diff_vec', `trap_if', `unspec', `unspec_volatile',
11525 `parallel', `cond_exec', or `sequence'. If it is a `parallel',
11526 each element of the `parallel' must be one these codes, except that
11527 `parallel' expressions cannot be nested and `addr_vec' and
11528 `addr_diff_vec' are not permitted inside a `parallel' expression.
11531 An integer that says which pattern in the machine description
11532 matches this insn, or -1 if the matching has not yet been
11535 Such matching is never attempted and this field remains -1 on an
11536 insn whose pattern consists of a single `use', `clobber',
11537 `asm_input', `addr_vec' or `addr_diff_vec' expression.
11539 Matching is also never attempted on insns that result from an `asm'
11540 statement. These contain at least one `asm_operands' expression.
11541 The function `asm_noperands' returns a non-negative value for such
11544 In the debugging output, this field is printed as a number
11545 followed by a symbolic representation that locates the pattern in
11546 the `md' file as some small positive or negative offset from a
11550 A list (chain of `insn_list' expressions) giving information about
11551 dependencies between instructions within a basic block. Neither a
11552 jump nor a label may come between the related insns. These are
11553 only used by the schedulers and by combine. This is a deprecated
11554 data structure. Def-use and use-def chains are now preferred.
11557 A list (chain of `expr_list' and `insn_list' expressions) giving
11558 miscellaneous information about the insn. It is often information
11559 pertaining to the registers used in this insn.
11561 The `LOG_LINKS' field of an insn is a chain of `insn_list'
11562 expressions. Each of these has two operands: the first is an insn, and
11563 the second is another `insn_list' expression (the next one in the
11564 chain). The last `insn_list' in the chain has a null pointer as second
11565 operand. The significant thing about the chain is which insns appear
11566 in it (as first operands of `insn_list' expressions). Their order is
11569 This list is originally set up by the flow analysis pass; it is a null
11570 pointer until then. Flow only adds links for those data dependencies
11571 which can be used for instruction combination. For each insn, the flow
11572 analysis pass adds a link to insns which store into registers values
11573 that are used for the first time in this insn.
11575 The `REG_NOTES' field of an insn is a chain similar to the `LOG_LINKS'
11576 field but it includes `expr_list' expressions in addition to
11577 `insn_list' expressions. There are several kinds of register notes,
11578 which are distinguished by the machine mode, which in a register note
11579 is really understood as being an `enum reg_note'. The first operand OP
11580 of the note is data whose meaning depends on the kind of note.
11582 The macro `REG_NOTE_KIND (X)' returns the kind of register note. Its
11583 counterpart, the macro `PUT_REG_NOTE_KIND (X, NEWKIND)' sets the
11584 register note type of X to be NEWKIND.
11586 Register notes are of three classes: They may say something about an
11587 input to an insn, they may say something about an output of an insn, or
11588 they may create a linkage between two insns. There are also a set of
11589 values that are only used in `LOG_LINKS'.
11591 These register notes annotate inputs to an insn:
11594 The value in OP dies in this insn; that is to say, altering the
11595 value immediately after this insn would not affect the future
11596 behavior of the program.
11598 It does not follow that the register OP has no useful value after
11599 this insn since OP is not necessarily modified by this insn.
11600 Rather, no subsequent instruction uses the contents of OP.
11603 The register OP being set by this insn will not be used in a
11604 subsequent insn. This differs from a `REG_DEAD' note, which
11605 indicates that the value in an input will not be used subsequently.
11606 These two notes are independent; both may be present for the same
11610 The register OP is incremented (or decremented; at this level
11611 there is no distinction) by an embedded side effect inside this
11612 insn. This means it appears in a `post_inc', `pre_inc',
11613 `post_dec' or `pre_dec' expression.
11616 The register OP is known to have a nonnegative value when this
11617 insn is reached. This is used so that decrement and branch until
11618 zero instructions, such as the m68k dbra, can be matched.
11620 The `REG_NONNEG' note is added to insns only if the machine
11621 description has a `decrement_and_branch_until_zero' pattern.
11623 `REG_LABEL_OPERAND'
11624 This insn uses OP, a `code_label' or a `note' of type
11625 `NOTE_INSN_DELETED_LABEL', but is not a `jump_insn', or it is a
11626 `jump_insn' that refers to the operand as an ordinary operand.
11627 The label may still eventually be a jump target, but if so in an
11628 indirect jump in a subsequent insn. The presence of this note
11629 allows jump optimization to be aware that OP is, in fact, being
11630 used, and flow optimization to build an accurate flow graph.
11633 This insn is a `jump_insn' but not a `addr_vec' or
11634 `addr_diff_vec'. It uses OP, a `code_label' as a direct or
11635 indirect jump target. Its purpose is similar to that of
11636 `REG_LABEL_OPERAND'. This note is only present if the insn has
11637 multiple targets; the last label in the insn (in the highest
11638 numbered insn-field) goes into the `JUMP_LABEL' field and does not
11639 have a `REG_LABEL_TARGET' note. *Note JUMP_LABEL: Insns.
11641 `REG_CROSSING_JUMP'
11642 This insn is an branching instruction (either an unconditional
11643 jump or an indirect jump) which crosses between hot and cold
11644 sections, which could potentially be very far apart in the
11645 executable. The presence of this note indicates to other
11646 optimizations that this branching instruction should not be
11647 "collapsed" into a simpler branching construct. It is used when
11648 the optimization to partition basic blocks into hot and cold
11649 sections is turned on.
11652 Appears attached to each `CALL_INSN' to `setjmp' or a related
11655 The following notes describe attributes of outputs of an insn:
11659 This note is only valid on an insn that sets only one register and
11660 indicates that that register will be equal to OP at run time; the
11661 scope of this equivalence differs between the two types of notes.
11662 The value which the insn explicitly copies into the register may
11663 look different from OP, but they will be equal at run time. If the
11664 output of the single `set' is a `strict_low_part' expression, the
11665 note refers to the register that is contained in `SUBREG_REG' of
11666 the `subreg' expression.
11668 For `REG_EQUIV', the register is equivalent to OP throughout the
11669 entire function, and could validly be replaced in all its
11670 occurrences by OP. ("Validly" here refers to the data flow of the
11671 program; simple replacement may make some insns invalid.) For
11672 example, when a constant is loaded into a register that is never
11673 assigned any other value, this kind of note is used.
11675 When a parameter is copied into a pseudo-register at entry to a
11676 function, a note of this kind records that the register is
11677 equivalent to the stack slot where the parameter was passed.
11678 Although in this case the register may be set by other insns, it
11679 is still valid to replace the register by the stack slot
11680 throughout the function.
11682 A `REG_EQUIV' note is also used on an instruction which copies a
11683 register parameter into a pseudo-register at entry to a function,
11684 if there is a stack slot where that parameter could be stored.
11685 Although other insns may set the pseudo-register, it is valid for
11686 the compiler to replace the pseudo-register by stack slot
11687 throughout the function, provided the compiler ensures that the
11688 stack slot is properly initialized by making the replacement in
11689 the initial copy instruction as well. This is used on machines
11690 for which the calling convention allocates stack space for
11691 register parameters. See `REG_PARM_STACK_SPACE' in *Note Stack
11694 In the case of `REG_EQUAL', the register that is set by this insn
11695 will be equal to OP at run time at the end of this insn but not
11696 necessarily elsewhere in the function. In this case, OP is
11697 typically an arithmetic expression. For example, when a sequence
11698 of insns such as a library call is used to perform an arithmetic
11699 operation, this kind of note is attached to the insn that produces
11700 or copies the final value.
11702 These two notes are used in different ways by the compiler passes.
11703 `REG_EQUAL' is used by passes prior to register allocation (such as
11704 common subexpression elimination and loop optimization) to tell
11705 them how to think of that value. `REG_EQUIV' notes are used by
11706 register allocation to indicate that there is an available
11707 substitute expression (either a constant or a `mem' expression for
11708 the location of a parameter on the stack) that may be used in
11709 place of a register if insufficient registers are available.
11711 Except for stack homes for parameters, which are indicated by a
11712 `REG_EQUIV' note and are not useful to the early optimization
11713 passes and pseudo registers that are equivalent to a memory
11714 location throughout their entire life, which is not detected until
11715 later in the compilation, all equivalences are initially indicated
11716 by an attached `REG_EQUAL' note. In the early stages of register
11717 allocation, a `REG_EQUAL' note is changed into a `REG_EQUIV' note
11718 if OP is a constant and the insn represents the only set of its
11719 destination register.
11721 Thus, compiler passes prior to register allocation need only check
11722 for `REG_EQUAL' notes and passes subsequent to register allocation
11723 need only check for `REG_EQUIV' notes.
11725 These notes describe linkages between insns. They occur in pairs: one
11726 insn has one of a pair of notes that points to a second insn, which has
11727 the inverse note pointing back to the first insn.
11731 On machines that use `cc0', the insns which set and use `cc0' set
11732 and use `cc0' are adjacent. However, when branch delay slot
11733 filling is done, this may no longer be true. In this case a
11734 `REG_CC_USER' note will be placed on the insn setting `cc0' to
11735 point to the insn using `cc0' and a `REG_CC_SETTER' note will be
11736 placed on the insn using `cc0' to point to the insn setting `cc0'.
11738 These values are only used in the `LOG_LINKS' field, and indicate the
11739 type of dependency that each link represents. Links which indicate a
11740 data dependence (a read after write dependence) do not use any code,
11741 they simply have mode `VOIDmode', and are printed without any
11745 This indicates a true dependence (a read after write dependence).
11748 This indicates an output dependence (a write after write
11752 This indicates an anti dependence (a write after read dependence).
11755 These notes describe information gathered from gcov profile data. They
11756 are stored in the `REG_NOTES' field of an insn as an `expr_list'.
11759 This is used to specify the ratio of branches to non-branches of a
11760 branch insn according to the profile data. The value is stored as
11761 a value between 0 and REG_BR_PROB_BASE; larger values indicate a
11762 higher probability that the branch will be taken.
11765 These notes are found in JUMP insns after delayed branch scheduling
11766 has taken place. They indicate both the direction and the
11767 likelihood of the JUMP. The format is a bitmask of ATTR_FLAG_*
11770 `REG_FRAME_RELATED_EXPR'
11771 This is used on an RTX_FRAME_RELATED_P insn wherein the attached
11772 expression is used in place of the actual insn pattern. This is
11773 done in cases where the pattern is either complex or misleading.
11775 For convenience, the machine mode in an `insn_list' or `expr_list' is
11776 printed using these symbolic codes in debugging dumps.
11778 The only difference between the expression codes `insn_list' and
11779 `expr_list' is that the first operand of an `insn_list' is assumed to
11780 be an insn and is printed in debugging dumps as the insn's unique id;
11781 the first operand of an `expr_list' is printed in the ordinary way as
11785 File: gccint.info, Node: Calls, Next: Sharing, Prev: Insns, Up: RTL
11787 10.19 RTL Representation of Function-Call Insns
11788 ===============================================
11790 Insns that call subroutines have the RTL expression code `call_insn'.
11791 These insns must satisfy special rules, and their bodies must use a
11792 special RTL expression code, `call'.
11794 A `call' expression has two operands, as follows:
11796 (call (mem:FM ADDR) NBYTES)
11798 Here NBYTES is an operand that represents the number of bytes of
11799 argument data being passed to the subroutine, FM is a machine mode
11800 (which must equal as the definition of the `FUNCTION_MODE' macro in the
11801 machine description) and ADDR represents the address of the subroutine.
11803 For a subroutine that returns no value, the `call' expression as shown
11804 above is the entire body of the insn, except that the insn might also
11805 contain `use' or `clobber' expressions.
11807 For a subroutine that returns a value whose mode is not `BLKmode', the
11808 value is returned in a hard register. If this register's number is R,
11809 then the body of the call insn looks like this:
11812 (call (mem:FM ADDR) NBYTES))
11814 This RTL expression makes it clear (to the optimizer passes) that the
11815 appropriate register receives a useful value in this insn.
11817 When a subroutine returns a `BLKmode' value, it is handled by passing
11818 to the subroutine the address of a place to store the value. So the
11819 call insn itself does not "return" any value, and it has the same RTL
11820 form as a call that returns nothing.
11822 On some machines, the call instruction itself clobbers some register,
11823 for example to contain the return address. `call_insn' insns on these
11824 machines should have a body which is a `parallel' that contains both
11825 the `call' expression and `clobber' expressions that indicate which
11826 registers are destroyed. Similarly, if the call instruction requires
11827 some register other than the stack pointer that is not explicitly
11828 mentioned in its RTL, a `use' subexpression should mention that
11831 Functions that are called are assumed to modify all registers listed in
11832 the configuration macro `CALL_USED_REGISTERS' (*note Register Basics::)
11833 and, with the exception of `const' functions and library calls, to
11834 modify all of memory.
11836 Insns containing just `use' expressions directly precede the
11837 `call_insn' insn to indicate which registers contain inputs to the
11838 function. Similarly, if registers other than those in
11839 `CALL_USED_REGISTERS' are clobbered by the called function, insns
11840 containing a single `clobber' follow immediately after the call to
11841 indicate which registers.
11844 File: gccint.info, Node: Sharing, Next: Reading RTL, Prev: Calls, Up: RTL
11846 10.20 Structure Sharing Assumptions
11847 ===================================
11849 The compiler assumes that certain kinds of RTL expressions are unique;
11850 there do not exist two distinct objects representing the same value.
11851 In other cases, it makes an opposite assumption: that no RTL expression
11852 object of a certain kind appears in more than one place in the
11853 containing structure.
11855 These assumptions refer to a single function; except for the RTL
11856 objects that describe global variables and external functions, and a
11857 few standard objects such as small integer constants, no RTL objects
11858 are common to two functions.
11860 * Each pseudo-register has only a single `reg' object to represent
11861 it, and therefore only a single machine mode.
11863 * For any symbolic label, there is only one `symbol_ref' object
11866 * All `const_int' expressions with equal values are shared.
11868 * There is only one `pc' expression.
11870 * There is only one `cc0' expression.
11872 * There is only one `const_double' expression with value 0 for each
11873 floating point mode. Likewise for values 1 and 2.
11875 * There is only one `const_vector' expression with value 0 for each
11876 vector mode, be it an integer or a double constant vector.
11878 * No `label_ref' or `scratch' appears in more than one place in the
11879 RTL structure; in other words, it is safe to do a tree-walk of all
11880 the insns in the function and assume that each time a `label_ref'
11881 or `scratch' is seen it is distinct from all others that are seen.
11883 * Only one `mem' object is normally created for each static variable
11884 or stack slot, so these objects are frequently shared in all the
11885 places they appear. However, separate but equal objects for these
11886 variables are occasionally made.
11888 * When a single `asm' statement has multiple output operands, a
11889 distinct `asm_operands' expression is made for each output operand.
11890 However, these all share the vector which contains the sequence of
11891 input operands. This sharing is used later on to test whether two
11892 `asm_operands' expressions come from the same statement, so all
11893 optimizations must carefully preserve the sharing if they copy the
11896 * No RTL object appears in more than one place in the RTL structure
11897 except as described above. Many passes of the compiler rely on
11898 this by assuming that they can modify RTL objects in place without
11899 unwanted side-effects on other insns.
11901 * During initial RTL generation, shared structure is freely
11902 introduced. After all the RTL for a function has been generated,
11903 all shared structure is copied by `unshare_all_rtl' in
11904 `emit-rtl.c', after which the above rules are guaranteed to be
11907 * During the combiner pass, shared structure within an insn can exist
11908 temporarily. However, the shared structure is copied before the
11909 combiner is finished with the insn. This is done by calling
11910 `copy_rtx_if_shared', which is a subroutine of `unshare_all_rtl'.
11913 File: gccint.info, Node: Reading RTL, Prev: Sharing, Up: RTL
11918 To read an RTL object from a file, call `read_rtx'. It takes one
11919 argument, a stdio stream, and returns a single RTL object. This routine
11920 is defined in `read-rtl.c'. It is not available in the compiler
11921 itself, only the various programs that generate the compiler back end
11922 from the machine description.
11924 People frequently have the idea of using RTL stored as text in a file
11925 as an interface between a language front end and the bulk of GCC. This
11926 idea is not feasible.
11928 GCC was designed to use RTL internally only. Correct RTL for a given
11929 program is very dependent on the particular target machine. And the RTL
11930 does not contain all the information about the program.
11932 The proper way to interface GCC to a new language front end is with
11933 the "tree" data structure, described in the files `tree.h' and
11934 `tree.def'. The documentation for this structure (*note Trees::) is
11938 File: gccint.info, Node: GENERIC, Next: GIMPLE, Prev: RTL, Up: Top
11943 The purpose of GENERIC is simply to provide a language-independent way
11944 of representing an entire function in trees. To this end, it was
11945 necessary to add a few new tree codes to the back end, but most
11946 everything was already there. If you can express it with the codes in
11947 `gcc/tree.def', it's GENERIC.
11949 Early on, there was a great deal of debate about how to think about
11950 statements in a tree IL. In GENERIC, a statement is defined as any
11951 expression whose value, if any, is ignored. A statement will always
11952 have `TREE_SIDE_EFFECTS' set (or it will be discarded), but a
11953 non-statement expression may also have side effects. A `CALL_EXPR',
11956 It would be possible for some local optimizations to work on the
11957 GENERIC form of a function; indeed, the adapted tree inliner works fine
11958 on GENERIC, but the current compiler performs inlining after lowering
11959 to GIMPLE (a restricted form described in the next section). Indeed,
11960 currently the frontends perform this lowering before handing off to
11961 `tree_rest_of_compilation', but this seems inelegant.
11963 If necessary, a front end can use some language-dependent tree codes
11964 in its GENERIC representation, so long as it provides a hook for
11965 converting them to GIMPLE and doesn't expect them to work with any
11966 (hypothetical) optimizers that run before the conversion to GIMPLE. The
11967 intermediate representation used while parsing C and C++ looks very
11968 little like GENERIC, but the C and C++ gimplifier hooks are perfectly
11969 happy to take it as input and spit out GIMPLE.
11976 File: gccint.info, Node: Statements, Up: GENERIC
11981 Most statements in GIMPLE are assignment statements, represented by
11982 `GIMPLE_ASSIGN'. No other C expressions can appear at statement level;
11983 a reference to a volatile object is converted into a `GIMPLE_ASSIGN'.
11985 There are also several varieties of complex statements.
11990 * Statement Sequences::
11991 * Empty Statements::
11996 File: gccint.info, Node: Blocks, Next: Statement Sequences, Up: Statements
12001 Block scopes and the variables they declare in GENERIC are expressed
12002 using the `BIND_EXPR' code, which in previous versions of GCC was
12003 primarily used for the C statement-expression extension.
12005 Variables in a block are collected into `BIND_EXPR_VARS' in
12006 declaration order. Any runtime initialization is moved out of
12007 `DECL_INITIAL' and into a statement in the controlled block. When
12008 gimplifying from C or C++, this initialization replaces the `DECL_STMT'.
12010 Variable-length arrays (VLAs) complicate this process, as their size
12011 often refers to variables initialized earlier in the block. To handle
12012 this, we currently split the block at that point, and move the VLA into
12013 a new, inner `BIND_EXPR'. This strategy may change in the future.
12015 A C++ program will usually contain more `BIND_EXPR's than there are
12016 syntactic blocks in the source code, since several C++ constructs have
12017 implicit scopes associated with them. On the other hand, although the
12018 C++ front end uses pseudo-scopes to handle cleanups for objects with
12019 destructors, these don't translate into the GIMPLE form; multiple
12020 declarations at the same level use the same `BIND_EXPR'.
12023 File: gccint.info, Node: Statement Sequences, Next: Empty Statements, Prev: Blocks, Up: Statements
12025 11.1.2 Statement Sequences
12026 --------------------------
12028 Multiple statements at the same nesting level are collected into a
12029 `STATEMENT_LIST'. Statement lists are modified and traversed using the
12030 interface in `tree-iterator.h'.
12033 File: gccint.info, Node: Empty Statements, Next: Jumps, Prev: Statement Sequences, Up: Statements
12035 11.1.3 Empty Statements
12036 -----------------------
12038 Whenever possible, statements with no effect are discarded. But if
12039 they are nested within another construct which cannot be discarded for
12040 some reason, they are instead replaced with an empty statement,
12041 generated by `build_empty_stmt'. Initially, all empty statements were
12042 shared, after the pattern of the Java front end, but this caused a lot
12043 of trouble in practice.
12045 An empty statement is represented as `(void)0'.
12048 File: gccint.info, Node: Jumps, Next: Cleanups, Prev: Empty Statements, Up: Statements
12053 Other jumps are expressed by either `GOTO_EXPR' or `RETURN_EXPR'.
12055 The operand of a `GOTO_EXPR' must be either a label or a variable
12056 containing the address to jump to.
12058 The operand of a `RETURN_EXPR' is either `NULL_TREE', `RESULT_DECL',
12059 or a `MODIFY_EXPR' which sets the return value. It would be nice to
12060 move the `MODIFY_EXPR' into a separate statement, but the special
12061 return semantics in `expand_return' make that difficult. It may still
12062 happen in the future, perhaps by moving most of that logic into
12063 `expand_assignment'.
12066 File: gccint.info, Node: Cleanups, Prev: Jumps, Up: Statements
12071 Destructors for local C++ objects and similar dynamic cleanups are
12072 represented in GIMPLE by a `TRY_FINALLY_EXPR'. `TRY_FINALLY_EXPR' has
12073 two operands, both of which are a sequence of statements to execute.
12074 The first sequence is executed. When it completes the second sequence
12077 The first sequence may complete in the following ways:
12079 1. Execute the last statement in the sequence and fall off the end.
12081 2. Execute a goto statement (`GOTO_EXPR') to an ordinary label
12082 outside the sequence.
12084 3. Execute a return statement (`RETURN_EXPR').
12086 4. Throw an exception. This is currently not explicitly represented
12090 The second sequence is not executed if the first sequence completes by
12091 calling `setjmp' or `exit' or any other function that does not return.
12092 The second sequence is also not executed if the first sequence
12093 completes via a non-local goto or a computed goto (in general the
12094 compiler does not know whether such a goto statement exits the first
12095 sequence or not, so we assume that it doesn't).
12097 After the second sequence is executed, if it completes normally by
12098 falling off the end, execution continues wherever the first sequence
12099 would have continued, by falling off the end, or doing a goto, etc.
12101 `TRY_FINALLY_EXPR' complicates the flow graph, since the cleanup needs
12102 to appear on every edge out of the controlled block; this reduces the
12103 freedom to move code across these edges. Therefore, the EH lowering
12104 pass which runs before most of the optimization passes eliminates these
12105 expressions by explicitly adding the cleanup to each edge. Rethrowing
12106 the exception is represented using `RESX_EXPR'.
12109 File: gccint.info, Node: GIMPLE, Next: Tree SSA, Prev: GENERIC, Up: Top
12114 GIMPLE is a three-address representation derived from GENERIC by
12115 breaking down GENERIC expressions into tuples of no more than 3
12116 operands (with some exceptions like function calls). GIMPLE was
12117 heavily influenced by the SIMPLE IL used by the McCAT compiler project
12118 at McGill University, though we have made some different choices. For
12119 one thing, SIMPLE doesn't support `goto'.
12121 Temporaries are introduced to hold intermediate values needed to
12122 compute complex expressions. Additionally, all the control structures
12123 used in GENERIC are lowered into conditional jumps, lexical scopes are
12124 removed and exception regions are converted into an on the side
12125 exception region tree.
12127 The compiler pass which converts GENERIC into GIMPLE is referred to as
12128 the `gimplifier'. The gimplifier works recursively, generating GIMPLE
12129 tuples out of the original GENERIC expressions.
12131 One of the early implementation strategies used for the GIMPLE
12132 representation was to use the same internal data structures used by
12133 front ends to represent parse trees. This simplified implementation
12134 because we could leverage existing functionality and interfaces.
12135 However, GIMPLE is a much more restrictive representation than abstract
12136 syntax trees (AST), therefore it does not require the full structural
12137 complexity provided by the main tree data structure.
12139 The GENERIC representation of a function is stored in the
12140 `DECL_SAVED_TREE' field of the associated `FUNCTION_DECL' tree node.
12141 It is converted to GIMPLE by a call to `gimplify_function_tree'.
12143 If a front end wants to include language-specific tree codes in the
12144 tree representation which it provides to the back end, it must provide a
12145 definition of `LANG_HOOKS_GIMPLIFY_EXPR' which knows how to convert the
12146 front end trees to GIMPLE. Usually such a hook will involve much of
12147 the same code for expanding front end trees to RTL. This function can
12148 return fully lowered GIMPLE, or it can return GENERIC trees and let the
12149 main gimplifier lower them the rest of the way; this is often simpler.
12150 GIMPLE that is not fully lowered is known as "High GIMPLE" and consists
12151 of the IL before the pass `pass_lower_cf'. High GIMPLE contains some
12152 container statements like lexical scopes (represented by `GIMPLE_BIND')
12153 and nested expressions (e.g., `GIMPLE_TRY'), while "Low GIMPLE" exposes
12154 all of the implicit jumps for control and exception expressions
12155 directly in the IL and EH region trees.
12157 The C and C++ front ends currently convert directly from front end
12158 trees to GIMPLE, and hand that off to the back end rather than first
12159 converting to GENERIC. Their gimplifier hooks know about all the
12160 `_STMT' nodes and how to convert them to GENERIC forms. There was some
12161 work done on a genericization pass which would run first, but the
12162 existence of `STMT_EXPR' meant that in order to convert all of the C
12163 statements into GENERIC equivalents would involve walking the entire
12164 tree anyway, so it was simpler to lower all the way. This might change
12165 in the future if someone writes an optimization pass which would work
12166 better with higher-level trees, but currently the optimizers all expect
12169 You can request to dump a C-like representation of the GIMPLE form
12170 with the flag `-fdump-tree-gimple'.
12174 * Tuple representation::
12175 * GIMPLE instruction set::
12176 * GIMPLE Exception Handling::
12179 * Manipulating GIMPLE statements::
12180 * Tuple specific accessors::
12181 * GIMPLE sequences::
12182 * Sequence iterators::
12183 * Adding a new GIMPLE statement code::
12184 * Statement and operand traversals::
12187 File: gccint.info, Node: Tuple representation, Next: GIMPLE instruction set, Up: GIMPLE
12189 12.1 Tuple representation
12190 =========================
12192 GIMPLE instructions are tuples of variable size divided in two groups:
12193 a header describing the instruction and its locations, and a variable
12194 length body with all the operands. Tuples are organized into a
12195 hierarchy with 3 main classes of tuples.
12197 12.1.1 `gimple_statement_base' (gsbase)
12198 ---------------------------------------
12200 This is the root of the hierarchy, it holds basic information needed by
12201 most GIMPLE statements. There are some fields that may not be relevant
12202 to every GIMPLE statement, but those were moved into the base structure
12203 to take advantage of holes left by other fields (thus making the
12204 structure more compact). The structure takes 4 words (32 bytes) on 64
12212 `nontemporal_move' 1
12215 `has_volatile_ops' 1
12216 `references_memory_p' 1
12222 Total size 32 bytes
12224 * `code' Main identifier for a GIMPLE instruction.
12226 * `subcode' Used to distinguish different variants of the same basic
12227 instruction or provide flags applicable to a given code. The
12228 `subcode' flags field has different uses depending on the code of
12229 the instruction, but mostly it distinguishes instructions of the
12230 same family. The most prominent use of this field is in
12231 assignments, where subcode indicates the operation done on the RHS
12232 of the assignment. For example, a = b + c is encoded as
12233 `GIMPLE_ASSIGN <PLUS_EXPR, a, b, c>'.
12235 * `no_warning' Bitflag to indicate whether a warning has already
12236 been issued on this statement.
12238 * `visited' General purpose "visited" marker. Set and cleared by
12239 each pass when needed.
12241 * `nontemporal_move' Bitflag used in assignments that represent
12242 non-temporal moves. Although this bitflag is only used in
12243 assignments, it was moved into the base to take advantage of the
12244 bit holes left by the previous fields.
12246 * `plf' Pass Local Flags. This 2-bit mask can be used as general
12247 purpose markers by any pass. Passes are responsible for clearing
12248 and setting these two flags accordingly.
12250 * `modified' Bitflag to indicate whether the statement has been
12251 modified. Used mainly by the operand scanner to determine when to
12252 re-scan a statement for operands.
12254 * `has_volatile_ops' Bitflag to indicate whether this statement
12255 contains operands that have been marked volatile.
12257 * `references_memory_p' Bitflag to indicate whether this statement
12258 contains memory references (i.e., its operands are either global
12259 variables, or pointer dereferences or anything that must reside in
12262 * `uid' This is an unsigned integer used by passes that want to
12263 assign IDs to every statement. These IDs must be assigned and used
12266 * `location' This is a `location_t' identifier to specify source code
12267 location for this statement. It is inherited from the front end.
12269 * `num_ops' Number of operands that this statement has. This
12270 specifies the size of the operand vector embedded in the tuple.
12271 Only used in some tuples, but it is declared in the base tuple to
12272 take advantage of the 32-bit hole left by the previous fields.
12274 * `bb' Basic block holding the instruction.
12276 * `block' Lexical block holding this statement. Also used for debug
12277 information generation.
12279 12.1.2 `gimple_statement_with_ops'
12280 ----------------------------------
12282 This tuple is actually split in two: `gimple_statement_with_ops_base'
12283 and `gimple_statement_with_ops'. This is needed to accommodate the way
12284 the operand vector is allocated. The operand vector is defined to be an
12285 array of 1 element. So, to allocate a dynamic number of operands, the
12286 memory allocator (`gimple_alloc') simply allocates enough memory to
12287 hold the structure itself plus `N - 1' operands which run "off the end"
12288 of the structure. For example, to allocate space for a tuple with 3
12289 operands, `gimple_alloc' reserves `sizeof (struct
12290 gimple_statement_with_ops) + 2 * sizeof (tree)' bytes.
12292 On the other hand, several fields in this tuple need to be shared with
12293 the `gimple_statement_with_memory_ops' tuple. So, these common fields
12294 are placed in `gimple_statement_with_ops_base' which is then inherited
12295 from the other two tuples.
12298 `addresses_taken' 64
12301 `op' `num_ops' * 64
12302 Total size 56 + 8 * `num_ops' bytes
12304 * `gsbase' Inherited from `struct gimple_statement_base'.
12306 * `addresses_taken' Bitmap holding the UIDs of all the `VAR_DECL's
12307 whose addresses are taken by this statement. For example, a
12308 statement of the form `p = &b' will have the UID for symbol `b' in
12311 * `def_ops' Array of pointers into the operand array indicating all
12312 the slots that contain a variable written-to by the statement.
12313 This array is also used for immediate use chaining. Note that it
12314 would be possible to not rely on this array, but the changes
12315 required to implement this are pretty invasive.
12317 * `use_ops' Similar to `def_ops' but for variables read by the
12320 * `op' Array of trees with `num_ops' slots.
12322 12.1.3 `gimple_statement_with_memory_ops'
12323 -----------------------------------------
12325 This tuple is essentially identical to `gimple_statement_with_ops',
12326 except that it contains 4 additional fields to hold vectors related
12327 memory stores and loads. Similar to the previous case, the structure
12328 is split in two to accommodate for the operand vector
12329 (`gimple_statement_with_memory_ops_base' and
12330 `gimple_statement_with_memory_ops').
12334 `addresses_taken' 64
12341 `op' `num_ops' * 64
12342 Total size 88 + 8 * `num_ops' bytes
12344 * `vdef_ops' Similar to `def_ops' but for `VDEF' operators. There is
12345 one entry per memory symbol written by this statement. This is
12346 used to maintain the memory SSA use-def and def-def chains.
12348 * `vuse_ops' Similar to `use_ops' but for `VUSE' operators. There is
12349 one entry per memory symbol loaded by this statement. This is used
12350 to maintain the memory SSA use-def chains.
12352 * `stores' Bitset with all the UIDs for the symbols written-to by the
12353 statement. This is different than `vdef_ops' in that all the
12354 affected symbols are mentioned in this set. If memory
12355 partitioning is enabled, the `vdef_ops' vector will refer to memory
12356 partitions. Furthermore, no SSA information is stored in this set.
12358 * `loads' Similar to `stores', but for memory loads. (Note that there
12359 is some amount of redundancy here, it should be possible to reduce
12360 memory utilization further by removing these sets).
12362 All the other tuples are defined in terms of these three basic ones.
12363 Each tuple will add some fields. The main gimple type is defined to be
12364 the union of all these structures (`GTY' markers elided for clarity):
12366 union gimple_statement_d
12368 struct gimple_statement_base gsbase;
12369 struct gimple_statement_with_ops gsops;
12370 struct gimple_statement_with_memory_ops gsmem;
12371 struct gimple_statement_omp omp;
12372 struct gimple_statement_bind gimple_bind;
12373 struct gimple_statement_catch gimple_catch;
12374 struct gimple_statement_eh_filter gimple_eh_filter;
12375 struct gimple_statement_phi gimple_phi;
12376 struct gimple_statement_resx gimple_resx;
12377 struct gimple_statement_try gimple_try;
12378 struct gimple_statement_wce gimple_wce;
12379 struct gimple_statement_asm gimple_asm;
12380 struct gimple_statement_omp_critical gimple_omp_critical;
12381 struct gimple_statement_omp_for gimple_omp_for;
12382 struct gimple_statement_omp_parallel gimple_omp_parallel;
12383 struct gimple_statement_omp_task gimple_omp_task;
12384 struct gimple_statement_omp_sections gimple_omp_sections;
12385 struct gimple_statement_omp_single gimple_omp_single;
12386 struct gimple_statement_omp_continue gimple_omp_continue;
12387 struct gimple_statement_omp_atomic_load gimple_omp_atomic_load;
12388 struct gimple_statement_omp_atomic_store gimple_omp_atomic_store;
12392 File: gccint.info, Node: GIMPLE instruction set, Next: GIMPLE Exception Handling, Prev: Tuple representation, Up: GIMPLE
12394 12.2 GIMPLE instruction set
12395 ===========================
12397 The following table briefly describes the GIMPLE instruction set.
12399 Instruction High GIMPLE Low GIMPLE
12401 `GIMPLE_ASSIGN' x x
12405 `GIMPLE_CHANGE_DYNAMIC_TYPE' x x
12407 `GIMPLE_EH_FILTER' x
12411 `GIMPLE_OMP_ATOMIC_LOAD' x x
12412 `GIMPLE_OMP_ATOMIC_STORE' x x
12413 `GIMPLE_OMP_CONTINUE' x x
12414 `GIMPLE_OMP_CRITICAL' x x
12415 `GIMPLE_OMP_FOR' x x
12416 `GIMPLE_OMP_MASTER' x x
12417 `GIMPLE_OMP_ORDERED' x x
12418 `GIMPLE_OMP_PARALLEL' x x
12419 `GIMPLE_OMP_RETURN' x x
12420 `GIMPLE_OMP_SECTION' x x
12421 `GIMPLE_OMP_SECTIONS' x x
12422 `GIMPLE_OMP_SECTIONS_SWITCH' x x
12423 `GIMPLE_OMP_SINGLE' x x
12426 `GIMPLE_RETURN' x x
12427 `GIMPLE_SWITCH' x x
12431 File: gccint.info, Node: GIMPLE Exception Handling, Next: Temporaries, Prev: GIMPLE instruction set, Up: GIMPLE
12433 12.3 Exception Handling
12434 =======================
12436 Other exception handling constructs are represented using
12437 `GIMPLE_TRY_CATCH'. `GIMPLE_TRY_CATCH' has two operands. The first
12438 operand is a sequence of statements to execute. If executing these
12439 statements does not throw an exception, then the second operand is
12440 ignored. Otherwise, if an exception is thrown, then the second operand
12441 of the `GIMPLE_TRY_CATCH' is checked. The second operand may have the
12444 1. A sequence of statements to execute. When an exception occurs,
12445 these statements are executed, and then the exception is rethrown.
12447 2. A sequence of `GIMPLE_CATCH' statements. Each `GIMPLE_CATCH' has
12448 a list of applicable exception types and handler code. If the
12449 thrown exception matches one of the caught types, the associated
12450 handler code is executed. If the handler code falls off the
12451 bottom, execution continues after the original `GIMPLE_TRY_CATCH'.
12453 3. An `GIMPLE_EH_FILTER' statement. This has a list of permitted
12454 exception types, and code to handle a match failure. If the
12455 thrown exception does not match one of the allowed types, the
12456 associated match failure code is executed. If the thrown exception
12457 does match, it continues unwinding the stack looking for the next
12461 Currently throwing an exception is not directly represented in GIMPLE,
12462 since it is implemented by calling a function. At some point in the
12463 future we will want to add some way to express that the call will throw
12464 an exception of a known type.
12466 Just before running the optimizers, the compiler lowers the high-level
12467 EH constructs above into a set of `goto's, magic labels, and EH
12468 regions. Continuing to unwind at the end of a cleanup is represented
12469 with a `GIMPLE_RESX'.
12472 File: gccint.info, Node: Temporaries, Next: Operands, Prev: GIMPLE Exception Handling, Up: GIMPLE
12477 When gimplification encounters a subexpression that is too complex, it
12478 creates a new temporary variable to hold the value of the
12479 subexpression, and adds a new statement to initialize it before the
12480 current statement. These special temporaries are known as `expression
12481 temporaries', and are allocated using `get_formal_tmp_var'. The
12482 compiler tries to always evaluate identical expressions into the same
12483 temporary, to simplify elimination of redundant calculations.
12485 We can only use expression temporaries when we know that it will not
12486 be reevaluated before its value is used, and that it will not be
12487 otherwise modified(1). Other temporaries can be allocated using
12488 `get_initialized_tmp_var' or `create_tmp_var'.
12490 Currently, an expression like `a = b + 5' is not reduced any further.
12491 We tried converting it to something like
12494 but this bloated the representation for minimal benefit. However, a
12495 variable which must live in memory cannot appear in an expression; its
12496 value is explicitly loaded into a temporary first. Similarly, storing
12497 the value of an expression to a memory variable goes through a
12500 ---------- Footnotes ----------
12502 (1) These restrictions are derived from those in Morgan 4.8.
12505 File: gccint.info, Node: Operands, Next: Manipulating GIMPLE statements, Prev: Temporaries, Up: GIMPLE
12510 In general, expressions in GIMPLE consist of an operation and the
12511 appropriate number of simple operands; these operands must either be a
12512 GIMPLE rvalue (`is_gimple_val'), i.e. a constant or a register
12513 variable. More complex operands are factored out into temporaries, so
12520 The same rule holds for arguments to a `GIMPLE_CALL'.
12522 The target of an assignment is usually a variable, but can also be an
12523 `INDIRECT_REF' or a compound lvalue as described below.
12527 * Compound Expressions::
12528 * Compound Lvalues::
12529 * Conditional Expressions::
12530 * Logical Operators::
12533 File: gccint.info, Node: Compound Expressions, Next: Compound Lvalues, Up: Operands
12535 12.5.1 Compound Expressions
12536 ---------------------------
12538 The left-hand side of a C comma expression is simply moved into a
12539 separate statement.
12542 File: gccint.info, Node: Compound Lvalues, Next: Conditional Expressions, Prev: Compound Expressions, Up: Operands
12544 12.5.2 Compound Lvalues
12545 -----------------------
12547 Currently compound lvalues involving array and structure field
12548 references are not broken down; an expression like `a.b[2] = 42' is not
12549 reduced any further (though complex array subscripts are). This
12550 restriction is a workaround for limitations in later optimizers; if we
12551 were to convert this to
12556 alias analysis would not remember that the reference to `T1[2]' came
12557 by way of `a.b', so it would think that the assignment could alias
12558 another member of `a'; this broke `struct-alias-1.c'. Future optimizer
12559 improvements may make this limitation unnecessary.
12562 File: gccint.info, Node: Conditional Expressions, Next: Logical Operators, Prev: Compound Lvalues, Up: Operands
12564 12.5.3 Conditional Expressions
12565 ------------------------------
12567 A C `?:' expression is converted into an `if' statement with each
12568 branch assigning to the same temporary. So,
12578 The GIMPLE level if-conversion pass re-introduces `?:' expression, if
12579 appropriate. It is used to vectorize loops with conditions using vector
12580 conditional operations.
12582 Note that in GIMPLE, `if' statements are represented using
12583 `GIMPLE_COND', as described below.
12586 File: gccint.info, Node: Logical Operators, Prev: Conditional Expressions, Up: Operands
12588 12.5.4 Logical Operators
12589 ------------------------
12591 Except when they appear in the condition operand of a `GIMPLE_COND',
12592 logical `and' and `or' operators are simplified as follows: `a = b &&
12600 Note that `T1' in this example cannot be an expression temporary,
12601 because it has two different assignments.
12603 12.5.5 Manipulating operands
12604 ----------------------------
12606 All gimple operands are of type `tree'. But only certain types of
12607 trees are allowed to be used as operand tuples. Basic validation is
12608 controlled by the function `get_gimple_rhs_class', which given a tree
12609 code, returns an `enum' with the following values of type `enum
12612 * `GIMPLE_INVALID_RHS' The tree cannot be used as a GIMPLE operand.
12614 * `GIMPLE_BINARY_RHS' The tree is a valid GIMPLE binary operation.
12616 * `GIMPLE_UNARY_RHS' The tree is a valid GIMPLE unary operation.
12618 * `GIMPLE_SINGLE_RHS' The tree is a single object, that cannot be
12619 split into simpler operands (for instance, `SSA_NAME', `VAR_DECL',
12620 `COMPONENT_REF', etc).
12622 This operand class also acts as an escape hatch for tree nodes
12623 that may be flattened out into the operand vector, but would need
12624 more than two slots on the RHS. For instance, a `COND_EXPR'
12625 expression of the form `(a op b) ? x : y' could be flattened out
12626 on the operand vector using 4 slots, but it would also require
12627 additional processing to distinguish `c = a op b' from `c = a op b
12628 ? x : y'. Something similar occurs with `ASSERT_EXPR'. In time,
12629 these special case tree expressions should be flattened into the
12632 For tree nodes in the categories `GIMPLE_BINARY_RHS' and
12633 `GIMPLE_UNARY_RHS', they cannot be stored inside tuples directly. They
12634 first need to be flattened and separated into individual components.
12635 For instance, given the GENERIC expression
12639 its tree representation is:
12641 MODIFY_EXPR <VAR_DECL <a>, PLUS_EXPR <VAR_DECL <b>, VAR_DECL <c>>>
12643 In this case, the GIMPLE form for this statement is logically
12644 identical to its GENERIC form but in GIMPLE, the `PLUS_EXPR' on the RHS
12645 of the assignment is not represented as a tree, instead the two
12646 operands are taken out of the `PLUS_EXPR' sub-tree and flattened into
12647 the GIMPLE tuple as follows:
12649 GIMPLE_ASSIGN <PLUS_EXPR, VAR_DECL <a>, VAR_DECL <b>, VAR_DECL <c>>
12651 12.5.6 Operand vector allocation
12652 --------------------------------
12654 The operand vector is stored at the bottom of the three tuple
12655 structures that accept operands. This means, that depending on the code
12656 of a given statement, its operand vector will be at different offsets
12657 from the base of the structure. To access tuple operands use the
12658 following accessors
12660 -- GIMPLE function: unsigned gimple_num_ops (gimple g)
12661 Returns the number of operands in statement G.
12663 -- GIMPLE function: tree gimple_op (gimple g, unsigned i)
12664 Returns operand `I' from statement `G'.
12666 -- GIMPLE function: tree *gimple_ops (gimple g)
12667 Returns a pointer into the operand vector for statement `G'. This
12668 is computed using an internal table called `gimple_ops_offset_'[].
12669 This table is indexed by the gimple code of `G'.
12671 When the compiler is built, this table is filled-in using the
12672 sizes of the structures used by each statement code defined in
12673 gimple.def. Since the operand vector is at the bottom of the
12674 structure, for a gimple code `C' the offset is computed as sizeof
12675 (struct-of `C') - sizeof (tree).
12677 This mechanism adds one memory indirection to every access when
12678 using `gimple_op'(), if this becomes a bottleneck, a pass can
12679 choose to memoize the result from `gimple_ops'() and use that to
12680 access the operands.
12682 12.5.7 Operand validation
12683 -------------------------
12685 When adding a new operand to a gimple statement, the operand will be
12686 validated according to what each tuple accepts in its operand vector.
12687 These predicates are called by the `gimple_<name>_set_...()'. Each
12688 tuple will use one of the following predicates (Note, this list is not
12691 -- GIMPLE function: is_gimple_operand (tree t)
12692 This is the most permissive of the predicates. It essentially
12693 checks whether t has a `gimple_rhs_class' of `GIMPLE_SINGLE_RHS'.
12695 -- GIMPLE function: is_gimple_val (tree t)
12696 Returns true if t is a "GIMPLE value", which are all the
12697 non-addressable stack variables (variables for which
12698 `is_gimple_reg' returns true) and constants (expressions for which
12699 `is_gimple_min_invariant' returns true).
12701 -- GIMPLE function: is_gimple_addressable (tree t)
12702 Returns true if t is a symbol or memory reference whose address
12705 -- GIMPLE function: is_gimple_asm_val (tree t)
12706 Similar to `is_gimple_val' but it also accepts hard registers.
12708 -- GIMPLE function: is_gimple_call_addr (tree t)
12709 Return true if t is a valid expression to use as the function
12710 called by a `GIMPLE_CALL'.
12712 -- GIMPLE function: is_gimple_constant (tree t)
12713 Return true if t is a valid gimple constant.
12715 -- GIMPLE function: is_gimple_min_invariant (tree t)
12716 Return true if t is a valid minimal invariant. This is different
12717 from constants, in that the specific value of t may not be known
12718 at compile time, but it is known that it doesn't change (e.g., the
12719 address of a function local variable).
12721 -- GIMPLE function: is_gimple_min_invariant_address (tree t)
12722 Return true if t is an `ADDR_EXPR' that does not change once the
12723 program is running.
12725 12.5.8 Statement validation
12726 ---------------------------
12728 -- GIMPLE function: is_gimple_assign (gimple g)
12729 Return true if the code of g is `GIMPLE_ASSIGN'.
12731 -- GIMPLE function: is_gimple_call (gimple g)
12732 Return true if the code of g is `GIMPLE_CALL'
12734 -- GIMPLE function: gimple_assign_cast_p (gimple g)
12735 Return true if g is a `GIMPLE_ASSIGN' that performs a type cast
12739 File: gccint.info, Node: Manipulating GIMPLE statements, Next: Tuple specific accessors, Prev: Operands, Up: GIMPLE
12741 12.6 Manipulating GIMPLE statements
12742 ===================================
12744 This section documents all the functions available to handle each of
12745 the GIMPLE instructions.
12747 12.6.1 Common accessors
12748 -----------------------
12750 The following are common accessors for gimple statements.
12752 -- GIMPLE function: enum gimple_code gimple_code (gimple g)
12753 Return the code for statement `G'.
12755 -- GIMPLE function: basic_block gimple_bb (gimple g)
12756 Return the basic block to which statement `G' belongs to.
12758 -- GIMPLE function: tree gimple_block (gimple g)
12759 Return the lexical scope block holding statement `G'.
12761 -- GIMPLE function: tree gimple_expr_type (gimple stmt)
12762 Return the type of the main expression computed by `STMT'. Return
12763 `void_type_node' if `STMT' computes nothing. This will only return
12764 something meaningful for `GIMPLE_ASSIGN', `GIMPLE_COND' and
12765 `GIMPLE_CALL'. For all other tuple codes, it will return
12768 -- GIMPLE function: enum tree_code gimple_expr_code (gimple stmt)
12769 Return the tree code for the expression computed by `STMT'. This
12770 is only meaningful for `GIMPLE_CALL', `GIMPLE_ASSIGN' and
12771 `GIMPLE_COND'. If `STMT' is `GIMPLE_CALL', it will return
12772 `CALL_EXPR'. For `GIMPLE_COND', it returns the code of the
12773 comparison predicate. For `GIMPLE_ASSIGN' it returns the code of
12774 the operation performed by the `RHS' of the assignment.
12776 -- GIMPLE function: void gimple_set_block (gimple g, tree block)
12777 Set the lexical scope block of `G' to `BLOCK'.
12779 -- GIMPLE function: location_t gimple_locus (gimple g)
12780 Return locus information for statement `G'.
12782 -- GIMPLE function: void gimple_set_locus (gimple g, location_t locus)
12783 Set locus information for statement `G'.
12785 -- GIMPLE function: bool gimple_locus_empty_p (gimple g)
12786 Return true if `G' does not have locus information.
12788 -- GIMPLE function: bool gimple_no_warning_p (gimple stmt)
12789 Return true if no warnings should be emitted for statement `STMT'.
12791 -- GIMPLE function: void gimple_set_visited (gimple stmt, bool
12793 Set the visited status on statement `STMT' to `VISITED_P'.
12795 -- GIMPLE function: bool gimple_visited_p (gimple stmt)
12796 Return the visited status on statement `STMT'.
12798 -- GIMPLE function: void gimple_set_plf (gimple stmt, enum plf_mask
12800 Set pass local flag `PLF' on statement `STMT' to `VAL_P'.
12802 -- GIMPLE function: unsigned int gimple_plf (gimple stmt, enum
12804 Return the value of pass local flag `PLF' on statement `STMT'.
12806 -- GIMPLE function: bool gimple_has_ops (gimple g)
12807 Return true if statement `G' has register or memory operands.
12809 -- GIMPLE function: bool gimple_has_mem_ops (gimple g)
12810 Return true if statement `G' has memory operands.
12812 -- GIMPLE function: unsigned gimple_num_ops (gimple g)
12813 Return the number of operands for statement `G'.
12815 -- GIMPLE function: tree *gimple_ops (gimple g)
12816 Return the array of operands for statement `G'.
12818 -- GIMPLE function: tree gimple_op (gimple g, unsigned i)
12819 Return operand `I' for statement `G'.
12821 -- GIMPLE function: tree *gimple_op_ptr (gimple g, unsigned i)
12822 Return a pointer to operand `I' for statement `G'.
12824 -- GIMPLE function: void gimple_set_op (gimple g, unsigned i, tree op)
12825 Set operand `I' of statement `G' to `OP'.
12827 -- GIMPLE function: bitmap gimple_addresses_taken (gimple stmt)
12828 Return the set of symbols that have had their address taken by
12831 -- GIMPLE function: struct def_optype_d *gimple_def_ops (gimple g)
12832 Return the set of `DEF' operands for statement `G'.
12834 -- GIMPLE function: void gimple_set_def_ops (gimple g, struct
12836 Set `DEF' to be the set of `DEF' operands for statement `G'.
12838 -- GIMPLE function: struct use_optype_d *gimple_use_ops (gimple g)
12839 Return the set of `USE' operands for statement `G'.
12841 -- GIMPLE function: void gimple_set_use_ops (gimple g, struct
12843 Set `USE' to be the set of `USE' operands for statement `G'.
12845 -- GIMPLE function: struct voptype_d *gimple_vuse_ops (gimple g)
12846 Return the set of `VUSE' operands for statement `G'.
12848 -- GIMPLE function: void gimple_set_vuse_ops (gimple g, struct
12850 Set `OPS' to be the set of `VUSE' operands for statement `G'.
12852 -- GIMPLE function: struct voptype_d *gimple_vdef_ops (gimple g)
12853 Return the set of `VDEF' operands for statement `G'.
12855 -- GIMPLE function: void gimple_set_vdef_ops (gimple g, struct
12857 Set `OPS' to be the set of `VDEF' operands for statement `G'.
12859 -- GIMPLE function: bitmap gimple_loaded_syms (gimple g)
12860 Return the set of symbols loaded by statement `G'. Each element of
12861 the set is the `DECL_UID' of the corresponding symbol.
12863 -- GIMPLE function: bitmap gimple_stored_syms (gimple g)
12864 Return the set of symbols stored by statement `G'. Each element of
12865 the set is the `DECL_UID' of the corresponding symbol.
12867 -- GIMPLE function: bool gimple_modified_p (gimple g)
12868 Return true if statement `G' has operands and the modified field
12871 -- GIMPLE function: bool gimple_has_volatile_ops (gimple stmt)
12872 Return true if statement `STMT' contains volatile operands.
12874 -- GIMPLE function: void gimple_set_has_volatile_ops (gimple stmt,
12876 Return true if statement `STMT' contains volatile operands.
12878 -- GIMPLE function: void update_stmt (gimple s)
12879 Mark statement `S' as modified, and update it.
12881 -- GIMPLE function: void update_stmt_if_modified (gimple s)
12882 Update statement `S' if it has been marked modified.
12884 -- GIMPLE function: gimple gimple_copy (gimple stmt)
12885 Return a deep copy of statement `STMT'.
12888 File: gccint.info, Node: Tuple specific accessors, Next: GIMPLE sequences, Prev: Manipulating GIMPLE statements, Up: GIMPLE
12890 12.7 Tuple specific accessors
12891 =============================
12896 * `GIMPLE_ASSIGN'::
12900 * `GIMPLE_CHANGE_DYNAMIC_TYPE'::
12902 * `GIMPLE_EH_FILTER'::
12905 * `GIMPLE_OMP_ATOMIC_LOAD'::
12906 * `GIMPLE_OMP_ATOMIC_STORE'::
12907 * `GIMPLE_OMP_CONTINUE'::
12908 * `GIMPLE_OMP_CRITICAL'::
12909 * `GIMPLE_OMP_FOR'::
12910 * `GIMPLE_OMP_MASTER'::
12911 * `GIMPLE_OMP_ORDERED'::
12912 * `GIMPLE_OMP_PARALLEL'::
12913 * `GIMPLE_OMP_RETURN'::
12914 * `GIMPLE_OMP_SECTION'::
12915 * `GIMPLE_OMP_SECTIONS'::
12916 * `GIMPLE_OMP_SINGLE'::
12919 * `GIMPLE_RETURN'::
12920 * `GIMPLE_SWITCH'::
12922 * `GIMPLE_WITH_CLEANUP_EXPR'::
12925 File: gccint.info, Node: `GIMPLE_ASM', Next: `GIMPLE_ASSIGN', Up: Tuple specific accessors
12927 12.7.1 `GIMPLE_ASM'
12928 -------------------
12930 -- GIMPLE function: gimple gimple_build_asm (const char *string,
12931 ninputs, noutputs, nclobbers, ...)
12932 Build a `GIMPLE_ASM' statement. This statement is used for
12933 building in-line assembly constructs. `STRING' is the assembly
12934 code. `NINPUT' is the number of register inputs. `NOUTPUT' is the
12935 number of register outputs. `NCLOBBERS' is the number of clobbered
12936 registers. The rest of the arguments trees for each input,
12937 output, and clobbered registers.
12939 -- GIMPLE function: gimple gimple_build_asm_vec (const char *,
12940 VEC(tree,gc) *, VEC(tree,gc) *, VEC(tree,gc) *)
12941 Identical to gimple_build_asm, but the arguments are passed in
12944 -- GIMPLE function: gimple_asm_ninputs (gimple g)
12945 Return the number of input operands for `GIMPLE_ASM' `G'.
12947 -- GIMPLE function: gimple_asm_noutputs (gimple g)
12948 Return the number of output operands for `GIMPLE_ASM' `G'.
12950 -- GIMPLE function: gimple_asm_nclobbers (gimple g)
12951 Return the number of clobber operands for `GIMPLE_ASM' `G'.
12953 -- GIMPLE function: tree gimple_asm_input_op (gimple g, unsigned index)
12954 Return input operand `INDEX' of `GIMPLE_ASM' `G'.
12956 -- GIMPLE function: void gimple_asm_set_input_op (gimple g, unsigned
12958 Set `IN_OP' to be input operand `INDEX' in `GIMPLE_ASM' `G'.
12960 -- GIMPLE function: tree gimple_asm_output_op (gimple g, unsigned
12962 Return output operand `INDEX' of `GIMPLE_ASM' `G'.
12964 -- GIMPLE function: void gimple_asm_set_output_op (gimple g, unsigned
12965 index, tree out_op)
12966 Set `OUT_OP' to be output operand `INDEX' in `GIMPLE_ASM' `G'.
12968 -- GIMPLE function: tree gimple_asm_clobber_op (gimple g, unsigned
12970 Return clobber operand `INDEX' of `GIMPLE_ASM' `G'.
12972 -- GIMPLE function: void gimple_asm_set_clobber_op (gimple g, unsigned
12973 index, tree clobber_op)
12974 Set `CLOBBER_OP' to be clobber operand `INDEX' in `GIMPLE_ASM' `G'.
12976 -- GIMPLE function: const char *gimple_asm_string (gimple g)
12977 Return the string representing the assembly instruction in
12980 -- GIMPLE function: bool gimple_asm_volatile_p (gimple g)
12981 Return true if `G' is an asm statement marked volatile.
12983 -- GIMPLE function: void gimple_asm_set_volatile (gimple g)
12984 Mark asm statement `G' as volatile.
12986 -- GIMPLE function: void gimple_asm_clear_volatile (gimple g)
12987 Remove volatile marker from asm statement `G'.
12990 File: gccint.info, Node: `GIMPLE_ASSIGN', Next: `GIMPLE_BIND', Prev: `GIMPLE_ASM', Up: Tuple specific accessors
12992 12.7.2 `GIMPLE_ASSIGN'
12993 ----------------------
12995 -- GIMPLE function: gimple gimple_build_assign (tree lhs, tree rhs)
12996 Build a `GIMPLE_ASSIGN' statement. The left-hand side is an lvalue
12997 passed in lhs. The right-hand side can be either a unary or
12998 binary tree expression. The expression tree rhs will be flattened
12999 and its operands assigned to the corresponding operand slots in
13000 the new statement. This function is useful when you already have
13001 a tree expression that you want to convert into a tuple. However,
13002 try to avoid building expression trees for the sole purpose of
13003 calling this function. If you already have the operands in
13004 separate trees, it is better to use `gimple_build_assign_with_ops'.
13006 -- GIMPLE function: gimple gimplify_assign (tree dst, tree src,
13008 Build a new `GIMPLE_ASSIGN' tuple and append it to the end of
13011 `DST'/`SRC' are the destination and source respectively. You can pass
13012 ungimplified trees in `DST' or `SRC', in which case they will be
13013 converted to a gimple operand if necessary.
13015 This function returns the newly created `GIMPLE_ASSIGN' tuple.
13017 -- GIMPLE function: gimple gimple_build_assign_with_ops (enum
13018 tree_code subcode, tree lhs, tree op1, tree op2)
13019 This function is similar to `gimple_build_assign', but is used to
13020 build a `GIMPLE_ASSIGN' statement when the operands of the
13021 right-hand side of the assignment are already split into different
13024 The left-hand side is an lvalue passed in lhs. Subcode is the
13025 `tree_code' for the right-hand side of the assignment. Op1 and op2
13026 are the operands. If op2 is null, subcode must be a `tree_code'
13027 for a unary expression.
13029 -- GIMPLE function: enum tree_code gimple_assign_rhs_code (gimple g)
13030 Return the code of the expression computed on the `RHS' of
13031 assignment statement `G'.
13033 -- GIMPLE function: enum gimple_rhs_class gimple_assign_rhs_class
13035 Return the gimple rhs class of the code for the expression
13036 computed on the rhs of assignment statement `G'. This will never
13037 return `GIMPLE_INVALID_RHS'.
13039 -- GIMPLE function: tree gimple_assign_lhs (gimple g)
13040 Return the `LHS' of assignment statement `G'.
13042 -- GIMPLE function: tree *gimple_assign_lhs_ptr (gimple g)
13043 Return a pointer to the `LHS' of assignment statement `G'.
13045 -- GIMPLE function: tree gimple_assign_rhs1 (gimple g)
13046 Return the first operand on the `RHS' of assignment statement `G'.
13048 -- GIMPLE function: tree *gimple_assign_rhs1_ptr (gimple g)
13049 Return the address of the first operand on the `RHS' of assignment
13052 -- GIMPLE function: tree gimple_assign_rhs2 (gimple g)
13053 Return the second operand on the `RHS' of assignment statement `G'.
13055 -- GIMPLE function: tree *gimple_assign_rhs2_ptr (gimple g)
13056 Return the address of the second operand on the `RHS' of assignment
13059 -- GIMPLE function: void gimple_assign_set_lhs (gimple g, tree lhs)
13060 Set `LHS' to be the `LHS' operand of assignment statement `G'.
13062 -- GIMPLE function: void gimple_assign_set_rhs1 (gimple g, tree rhs)
13063 Set `RHS' to be the first operand on the `RHS' of assignment
13066 -- GIMPLE function: tree gimple_assign_rhs2 (gimple g)
13067 Return the second operand on the `RHS' of assignment statement `G'.
13069 -- GIMPLE function: tree *gimple_assign_rhs2_ptr (gimple g)
13070 Return a pointer to the second operand on the `RHS' of assignment
13073 -- GIMPLE function: void gimple_assign_set_rhs2 (gimple g, tree rhs)
13074 Set `RHS' to be the second operand on the `RHS' of assignment
13077 -- GIMPLE function: bool gimple_assign_cast_p (gimple s)
13078 Return true if `S' is an type-cast assignment.
13081 File: gccint.info, Node: `GIMPLE_BIND', Next: `GIMPLE_CALL', Prev: `GIMPLE_ASSIGN', Up: Tuple specific accessors
13083 12.7.3 `GIMPLE_BIND'
13084 --------------------
13086 -- GIMPLE function: gimple gimple_build_bind (tree vars, gimple_seq
13088 Build a `GIMPLE_BIND' statement with a list of variables in `VARS'
13089 and a body of statements in sequence `BODY'.
13091 -- GIMPLE function: tree gimple_bind_vars (gimple g)
13092 Return the variables declared in the `GIMPLE_BIND' statement `G'.
13094 -- GIMPLE function: void gimple_bind_set_vars (gimple g, tree vars)
13095 Set `VARS' to be the set of variables declared in the `GIMPLE_BIND'
13098 -- GIMPLE function: void gimple_bind_append_vars (gimple g, tree vars)
13099 Append `VARS' to the set of variables declared in the `GIMPLE_BIND'
13102 -- GIMPLE function: gimple_seq gimple_bind_body (gimple g)
13103 Return the GIMPLE sequence contained in the `GIMPLE_BIND' statement
13106 -- GIMPLE function: void gimple_bind_set_body (gimple g, gimple_seq
13108 Set `SEQ' to be sequence contained in the `GIMPLE_BIND' statement
13111 -- GIMPLE function: void gimple_bind_add_stmt (gimple gs, gimple stmt)
13112 Append a statement to the end of a `GIMPLE_BIND''s body.
13114 -- GIMPLE function: void gimple_bind_add_seq (gimple gs, gimple_seq
13116 Append a sequence of statements to the end of a `GIMPLE_BIND''s
13119 -- GIMPLE function: tree gimple_bind_block (gimple g)
13120 Return the `TREE_BLOCK' node associated with `GIMPLE_BIND'
13121 statement `G'. This is analogous to the `BIND_EXPR_BLOCK' field in
13124 -- GIMPLE function: void gimple_bind_set_block (gimple g, tree block)
13125 Set `BLOCK' to be the `TREE_BLOCK' node associated with
13126 `GIMPLE_BIND' statement `G'.
13129 File: gccint.info, Node: `GIMPLE_CALL', Next: `GIMPLE_CATCH', Prev: `GIMPLE_BIND', Up: Tuple specific accessors
13131 12.7.4 `GIMPLE_CALL'
13132 --------------------
13134 -- GIMPLE function: gimple gimple_build_call (tree fn, unsigned nargs,
13136 Build a `GIMPLE_CALL' statement to function `FN'. The argument
13137 `FN' must be either a `FUNCTION_DECL' or a gimple call address as
13138 determined by `is_gimple_call_addr'. `NARGS' are the number of
13139 arguments. The rest of the arguments follow the argument `NARGS',
13140 and must be trees that are valid as rvalues in gimple (i.e., each
13141 operand is validated with `is_gimple_operand').
13143 -- GIMPLE function: gimple gimple_build_call_from_tree (tree call_expr)
13144 Build a `GIMPLE_CALL' from a `CALL_EXPR' node. The arguments and
13145 the function are taken from the expression directly. This routine
13146 assumes that `call_expr' is already in GIMPLE form. That is, its
13147 operands are GIMPLE values and the function call needs no further
13148 simplification. All the call flags in `call_expr' are copied over
13149 to the new `GIMPLE_CALL'.
13151 -- GIMPLE function: gimple gimple_build_call_vec (tree fn, `VEC'(tree,
13153 Identical to `gimple_build_call' but the arguments are stored in a
13156 -- GIMPLE function: tree gimple_call_lhs (gimple g)
13157 Return the `LHS' of call statement `G'.
13159 -- GIMPLE function: tree *gimple_call_lhs_ptr (gimple g)
13160 Return a pointer to the `LHS' of call statement `G'.
13162 -- GIMPLE function: void gimple_call_set_lhs (gimple g, tree lhs)
13163 Set `LHS' to be the `LHS' operand of call statement `G'.
13165 -- GIMPLE function: tree gimple_call_fn (gimple g)
13166 Return the tree node representing the function called by call
13169 -- GIMPLE function: void gimple_call_set_fn (gimple g, tree fn)
13170 Set `FN' to be the function called by call statement `G'. This has
13171 to be a gimple value specifying the address of the called function.
13173 -- GIMPLE function: tree gimple_call_fndecl (gimple g)
13174 If a given `GIMPLE_CALL''s callee is a `FUNCTION_DECL', return it.
13175 Otherwise return `NULL'. This function is analogous to
13176 `get_callee_fndecl' in `GENERIC'.
13178 -- GIMPLE function: tree gimple_call_set_fndecl (gimple g, tree fndecl)
13179 Set the called function to `FNDECL'.
13181 -- GIMPLE function: tree gimple_call_return_type (gimple g)
13182 Return the type returned by call statement `G'.
13184 -- GIMPLE function: tree gimple_call_chain (gimple g)
13185 Return the static chain for call statement `G'.
13187 -- GIMPLE function: void gimple_call_set_chain (gimple g, tree chain)
13188 Set `CHAIN' to be the static chain for call statement `G'.
13190 -- GIMPLE function: gimple_call_num_args (gimple g)
13191 Return the number of arguments used by call statement `G'.
13193 -- GIMPLE function: tree gimple_call_arg (gimple g, unsigned index)
13194 Return the argument at position `INDEX' for call statement `G'.
13195 The first argument is 0.
13197 -- GIMPLE function: tree *gimple_call_arg_ptr (gimple g, unsigned
13199 Return a pointer to the argument at position `INDEX' for call
13202 -- GIMPLE function: void gimple_call_set_arg (gimple g, unsigned
13204 Set `ARG' to be the argument at position `INDEX' for call statement
13207 -- GIMPLE function: void gimple_call_set_tail (gimple s)
13208 Mark call statement `S' as being a tail call (i.e., a call just
13209 before the exit of a function). These calls are candidate for tail
13212 -- GIMPLE function: bool gimple_call_tail_p (gimple s)
13213 Return true if `GIMPLE_CALL' `S' is marked as a tail call.
13215 -- GIMPLE function: void gimple_call_mark_uninlinable (gimple s)
13216 Mark `GIMPLE_CALL' `S' as being uninlinable.
13218 -- GIMPLE function: bool gimple_call_cannot_inline_p (gimple s)
13219 Return true if `GIMPLE_CALL' `S' cannot be inlined.
13221 -- GIMPLE function: bool gimple_call_noreturn_p (gimple s)
13222 Return true if `S' is a noreturn call.
13224 -- GIMPLE function: gimple gimple_call_copy_skip_args (gimple stmt,
13225 bitmap args_to_skip)
13226 Build a `GIMPLE_CALL' identical to `STMT' but skipping the
13227 arguments in the positions marked by the set `ARGS_TO_SKIP'.
13230 File: gccint.info, Node: `GIMPLE_CATCH', Next: `GIMPLE_CHANGE_DYNAMIC_TYPE', Prev: `GIMPLE_CALL', Up: Tuple specific accessors
13232 12.7.5 `GIMPLE_CATCH'
13233 ---------------------
13235 -- GIMPLE function: gimple gimple_build_catch (tree types, gimple_seq
13237 Build a `GIMPLE_CATCH' statement. `TYPES' are the tree types this
13238 catch handles. `HANDLER' is a sequence of statements with the code
13241 -- GIMPLE function: tree gimple_catch_types (gimple g)
13242 Return the types handled by `GIMPLE_CATCH' statement `G'.
13244 -- GIMPLE function: tree *gimple_catch_types_ptr (gimple g)
13245 Return a pointer to the types handled by `GIMPLE_CATCH' statement
13248 -- GIMPLE function: gimple_seq gimple_catch_handler (gimple g)
13249 Return the GIMPLE sequence representing the body of the handler of
13250 `GIMPLE_CATCH' statement `G'.
13252 -- GIMPLE function: void gimple_catch_set_types (gimple g, tree t)
13253 Set `T' to be the set of types handled by `GIMPLE_CATCH' `G'.
13255 -- GIMPLE function: void gimple_catch_set_handler (gimple g,
13256 gimple_seq handler)
13257 Set `HANDLER' to be the body of `GIMPLE_CATCH' `G'.
13260 File: gccint.info, Node: `GIMPLE_CHANGE_DYNAMIC_TYPE', Next: `GIMPLE_COND', Prev: `GIMPLE_CATCH', Up: Tuple specific accessors
13262 12.7.6 `GIMPLE_CHANGE_DYNAMIC_TYPE'
13263 -----------------------------------
13265 -- GIMPLE function: gimple gimple_build_cdt (tree type, tree ptr)
13266 Build a `GIMPLE_CHANGE_DYNAMIC_TYPE' statement. `TYPE' is the new
13267 type for the location `PTR'.
13269 -- GIMPLE function: tree gimple_cdt_new_type (gimple g)
13270 Return the new type set by `GIMPLE_CHANGE_DYNAMIC_TYPE' statement
13273 -- GIMPLE function: tree *gimple_cdt_new_type_ptr (gimple g)
13274 Return a pointer to the new type set by
13275 `GIMPLE_CHANGE_DYNAMIC_TYPE' statement `G'.
13277 -- GIMPLE function: void gimple_cdt_set_new_type (gimple g, tree
13279 Set `NEW_TYPE' to be the type returned by
13280 `GIMPLE_CHANGE_DYNAMIC_TYPE' statement `G'.
13282 -- GIMPLE function: tree gimple_cdt_location (gimple g)
13283 Return the location affected by `GIMPLE_CHANGE_DYNAMIC_TYPE'
13286 -- GIMPLE function: tree *gimple_cdt_location_ptr (gimple g)
13287 Return a pointer to the location affected by
13288 `GIMPLE_CHANGE_DYNAMIC_TYPE' statement `G'.
13290 -- GIMPLE function: void gimple_cdt_set_location (gimple g, tree ptr)
13291 Set `PTR' to be the location affected by
13292 `GIMPLE_CHANGE_DYNAMIC_TYPE' statement `G'.
13295 File: gccint.info, Node: `GIMPLE_COND', Next: `GIMPLE_EH_FILTER', Prev: `GIMPLE_CHANGE_DYNAMIC_TYPE', Up: Tuple specific accessors
13297 12.7.7 `GIMPLE_COND'
13298 --------------------
13300 -- GIMPLE function: gimple gimple_build_cond (enum tree_code
13301 pred_code, tree lhs, tree rhs, tree t_label, tree f_label)
13302 Build a `GIMPLE_COND' statement. `A' `GIMPLE_COND' statement
13303 compares `LHS' and `RHS' and if the condition in `PRED_CODE' is
13304 true, jump to the label in `t_label', otherwise jump to the label
13305 in `f_label'. `PRED_CODE' are relational operator tree codes like
13306 `EQ_EXPR', `LT_EXPR', `LE_EXPR', `NE_EXPR', etc.
13308 -- GIMPLE function: gimple gimple_build_cond_from_tree (tree cond,
13309 tree t_label, tree f_label)
13310 Build a `GIMPLE_COND' statement from the conditional expression
13311 tree `COND'. `T_LABEL' and `F_LABEL' are as in
13312 `gimple_build_cond'.
13314 -- GIMPLE function: enum tree_code gimple_cond_code (gimple g)
13315 Return the code of the predicate computed by conditional statement
13318 -- GIMPLE function: void gimple_cond_set_code (gimple g, enum
13320 Set `CODE' to be the predicate code for the conditional statement
13323 -- GIMPLE function: tree gimple_cond_lhs (gimple g)
13324 Return the `LHS' of the predicate computed by conditional statement
13327 -- GIMPLE function: void gimple_cond_set_lhs (gimple g, tree lhs)
13328 Set `LHS' to be the `LHS' operand of the predicate computed by
13329 conditional statement `G'.
13331 -- GIMPLE function: tree gimple_cond_rhs (gimple g)
13332 Return the `RHS' operand of the predicate computed by conditional
13335 -- GIMPLE function: void gimple_cond_set_rhs (gimple g, tree rhs)
13336 Set `RHS' to be the `RHS' operand of the predicate computed by
13337 conditional statement `G'.
13339 -- GIMPLE function: tree gimple_cond_true_label (gimple g)
13340 Return the label used by conditional statement `G' when its
13341 predicate evaluates to true.
13343 -- GIMPLE function: void gimple_cond_set_true_label (gimple g, tree
13345 Set `LABEL' to be the label used by conditional statement `G' when
13346 its predicate evaluates to true.
13348 -- GIMPLE function: void gimple_cond_set_false_label (gimple g, tree
13350 Set `LABEL' to be the label used by conditional statement `G' when
13351 its predicate evaluates to false.
13353 -- GIMPLE function: tree gimple_cond_false_label (gimple g)
13354 Return the label used by conditional statement `G' when its
13355 predicate evaluates to false.
13357 -- GIMPLE function: void gimple_cond_make_false (gimple g)
13358 Set the conditional `COND_STMT' to be of the form 'if (1 == 0)'.
13360 -- GIMPLE function: void gimple_cond_make_true (gimple g)
13361 Set the conditional `COND_STMT' to be of the form 'if (1 == 1)'.
13364 File: gccint.info, Node: `GIMPLE_EH_FILTER', Next: `GIMPLE_LABEL', Prev: `GIMPLE_COND', Up: Tuple specific accessors
13366 12.7.8 `GIMPLE_EH_FILTER'
13367 -------------------------
13369 -- GIMPLE function: gimple gimple_build_eh_filter (tree types,
13370 gimple_seq failure)
13371 Build a `GIMPLE_EH_FILTER' statement. `TYPES' are the filter's
13372 types. `FAILURE' is a sequence with the filter's failure action.
13374 -- GIMPLE function: tree gimple_eh_filter_types (gimple g)
13375 Return the types handled by `GIMPLE_EH_FILTER' statement `G'.
13377 -- GIMPLE function: tree *gimple_eh_filter_types_ptr (gimple g)
13378 Return a pointer to the types handled by `GIMPLE_EH_FILTER'
13381 -- GIMPLE function: gimple_seq gimple_eh_filter_failure (gimple g)
13382 Return the sequence of statement to execute when `GIMPLE_EH_FILTER'
13385 -- GIMPLE function: void gimple_eh_filter_set_types (gimple g, tree
13387 Set `TYPES' to be the set of types handled by `GIMPLE_EH_FILTER'
13390 -- GIMPLE function: void gimple_eh_filter_set_failure (gimple g,
13391 gimple_seq failure)
13392 Set `FAILURE' to be the sequence of statements to execute on
13393 failure for `GIMPLE_EH_FILTER' `G'.
13395 -- GIMPLE function: bool gimple_eh_filter_must_not_throw (gimple g)
13396 Return the `EH_FILTER_MUST_NOT_THROW' flag.
13398 -- GIMPLE function: void gimple_eh_filter_set_must_not_throw (gimple
13400 Set the `EH_FILTER_MUST_NOT_THROW' flag.
13403 File: gccint.info, Node: `GIMPLE_LABEL', Next: `GIMPLE_NOP', Prev: `GIMPLE_EH_FILTER', Up: Tuple specific accessors
13405 12.7.9 `GIMPLE_LABEL'
13406 ---------------------
13408 -- GIMPLE function: gimple gimple_build_label (tree label)
13409 Build a `GIMPLE_LABEL' statement with corresponding to the tree
13412 -- GIMPLE function: tree gimple_label_label (gimple g)
13413 Return the `LABEL_DECL' node used by `GIMPLE_LABEL' statement `G'.
13415 -- GIMPLE function: void gimple_label_set_label (gimple g, tree label)
13416 Set `LABEL' to be the `LABEL_DECL' node used by `GIMPLE_LABEL'
13419 -- GIMPLE function: gimple gimple_build_goto (tree dest)
13420 Build a `GIMPLE_GOTO' statement to label `DEST'.
13422 -- GIMPLE function: tree gimple_goto_dest (gimple g)
13423 Return the destination of the unconditional jump `G'.
13425 -- GIMPLE function: void gimple_goto_set_dest (gimple g, tree dest)
13426 Set `DEST' to be the destination of the unconditional jump `G'.
13429 File: gccint.info, Node: `GIMPLE_NOP', Next: `GIMPLE_OMP_ATOMIC_LOAD', Prev: `GIMPLE_LABEL', Up: Tuple specific accessors
13431 12.7.10 `GIMPLE_NOP'
13432 --------------------
13434 -- GIMPLE function: gimple gimple_build_nop (void)
13435 Build a `GIMPLE_NOP' statement.
13437 -- GIMPLE function: bool gimple_nop_p (gimple g)
13438 Returns `TRUE' if statement `G' is a `GIMPLE_NOP'.
13441 File: gccint.info, Node: `GIMPLE_OMP_ATOMIC_LOAD', Next: `GIMPLE_OMP_ATOMIC_STORE', Prev: `GIMPLE_NOP', Up: Tuple specific accessors
13443 12.7.11 `GIMPLE_OMP_ATOMIC_LOAD'
13444 --------------------------------
13446 -- GIMPLE function: gimple gimple_build_omp_atomic_load (tree lhs,
13448 Build a `GIMPLE_OMP_ATOMIC_LOAD' statement. `LHS' is the left-hand
13449 side of the assignment. `RHS' is the right-hand side of the
13452 -- GIMPLE function: void gimple_omp_atomic_load_set_lhs (gimple g,
13454 Set the `LHS' of an atomic load.
13456 -- GIMPLE function: tree gimple_omp_atomic_load_lhs (gimple g)
13457 Get the `LHS' of an atomic load.
13459 -- GIMPLE function: void gimple_omp_atomic_load_set_rhs (gimple g,
13461 Set the `RHS' of an atomic set.
13463 -- GIMPLE function: tree gimple_omp_atomic_load_rhs (gimple g)
13464 Get the `RHS' of an atomic set.
13467 File: gccint.info, Node: `GIMPLE_OMP_ATOMIC_STORE', Next: `GIMPLE_OMP_CONTINUE', Prev: `GIMPLE_OMP_ATOMIC_LOAD', Up: Tuple specific accessors
13469 12.7.12 `GIMPLE_OMP_ATOMIC_STORE'
13470 ---------------------------------
13472 -- GIMPLE function: gimple gimple_build_omp_atomic_store (tree val)
13473 Build a `GIMPLE_OMP_ATOMIC_STORE' statement. `VAL' is the value to
13476 -- GIMPLE function: void gimple_omp_atomic_store_set_val (gimple g,
13478 Set the value being stored in an atomic store.
13480 -- GIMPLE function: tree gimple_omp_atomic_store_val (gimple g)
13481 Return the value being stored in an atomic store.
13484 File: gccint.info, Node: `GIMPLE_OMP_CONTINUE', Next: `GIMPLE_OMP_CRITICAL', Prev: `GIMPLE_OMP_ATOMIC_STORE', Up: Tuple specific accessors
13486 12.7.13 `GIMPLE_OMP_CONTINUE'
13487 -----------------------------
13489 -- GIMPLE function: gimple gimple_build_omp_continue (tree
13490 control_def, tree control_use)
13491 Build a `GIMPLE_OMP_CONTINUE' statement. `CONTROL_DEF' is the
13492 definition of the control variable. `CONTROL_USE' is the use of
13493 the control variable.
13495 -- GIMPLE function: tree gimple_omp_continue_control_def (gimple s)
13496 Return the definition of the control variable on a
13497 `GIMPLE_OMP_CONTINUE' in `S'.
13499 -- GIMPLE function: tree gimple_omp_continue_control_def_ptr (gimple s)
13500 Same as above, but return the pointer.
13502 -- GIMPLE function: tree gimple_omp_continue_set_control_def (gimple s)
13503 Set the control variable definition for a `GIMPLE_OMP_CONTINUE'
13506 -- GIMPLE function: tree gimple_omp_continue_control_use (gimple s)
13507 Return the use of the control variable on a `GIMPLE_OMP_CONTINUE'
13510 -- GIMPLE function: tree gimple_omp_continue_control_use_ptr (gimple s)
13511 Same as above, but return the pointer.
13513 -- GIMPLE function: tree gimple_omp_continue_set_control_use (gimple s)
13514 Set the control variable use for a `GIMPLE_OMP_CONTINUE' statement
13518 File: gccint.info, Node: `GIMPLE_OMP_CRITICAL', Next: `GIMPLE_OMP_FOR', Prev: `GIMPLE_OMP_CONTINUE', Up: Tuple specific accessors
13520 12.7.14 `GIMPLE_OMP_CRITICAL'
13521 -----------------------------
13523 -- GIMPLE function: gimple gimple_build_omp_critical (gimple_seq body,
13525 Build a `GIMPLE_OMP_CRITICAL' statement. `BODY' is the sequence of
13526 statements for which only one thread can execute. `NAME' is an
13527 optional identifier for this critical block.
13529 -- GIMPLE function: tree gimple_omp_critical_name (gimple g)
13530 Return the name associated with `OMP_CRITICAL' statement `G'.
13532 -- GIMPLE function: tree *gimple_omp_critical_name_ptr (gimple g)
13533 Return a pointer to the name associated with `OMP' critical
13536 -- GIMPLE function: void gimple_omp_critical_set_name (gimple g, tree
13538 Set `NAME' to be the name associated with `OMP' critical statement
13542 File: gccint.info, Node: `GIMPLE_OMP_FOR', Next: `GIMPLE_OMP_MASTER', Prev: `GIMPLE_OMP_CRITICAL', Up: Tuple specific accessors
13544 12.7.15 `GIMPLE_OMP_FOR'
13545 ------------------------
13547 -- GIMPLE function: gimple gimple_build_omp_for (gimple_seq body, tree
13548 clauses, tree index, tree initial, tree final, tree incr,
13549 gimple_seq pre_body, enum tree_code omp_for_cond)
13550 Build a `GIMPLE_OMP_FOR' statement. `BODY' is sequence of
13551 statements inside the for loop. `CLAUSES', are any of the `OMP'
13552 loop construct's clauses: private, firstprivate, lastprivate,
13553 reductions, ordered, schedule, and nowait. `PRE_BODY' is the
13554 sequence of statements that are loop invariant. `INDEX' is the
13555 index variable. `INITIAL' is the initial value of `INDEX'.
13556 `FINAL' is final value of `INDEX'. OMP_FOR_COND is the predicate
13557 used to compare `INDEX' and `FINAL'. `INCR' is the increment
13560 -- GIMPLE function: tree gimple_omp_for_clauses (gimple g)
13561 Return the clauses associated with `OMP_FOR' `G'.
13563 -- GIMPLE function: tree *gimple_omp_for_clauses_ptr (gimple g)
13564 Return a pointer to the `OMP_FOR' `G'.
13566 -- GIMPLE function: void gimple_omp_for_set_clauses (gimple g, tree
13568 Set `CLAUSES' to be the list of clauses associated with `OMP_FOR'
13571 -- GIMPLE function: tree gimple_omp_for_index (gimple g)
13572 Return the index variable for `OMP_FOR' `G'.
13574 -- GIMPLE function: tree *gimple_omp_for_index_ptr (gimple g)
13575 Return a pointer to the index variable for `OMP_FOR' `G'.
13577 -- GIMPLE function: void gimple_omp_for_set_index (gimple g, tree
13579 Set `INDEX' to be the index variable for `OMP_FOR' `G'.
13581 -- GIMPLE function: tree gimple_omp_for_initial (gimple g)
13582 Return the initial value for `OMP_FOR' `G'.
13584 -- GIMPLE function: tree *gimple_omp_for_initial_ptr (gimple g)
13585 Return a pointer to the initial value for `OMP_FOR' `G'.
13587 -- GIMPLE function: void gimple_omp_for_set_initial (gimple g, tree
13589 Set `INITIAL' to be the initial value for `OMP_FOR' `G'.
13591 -- GIMPLE function: tree gimple_omp_for_final (gimple g)
13592 Return the final value for `OMP_FOR' `G'.
13594 -- GIMPLE function: tree *gimple_omp_for_final_ptr (gimple g)
13595 turn a pointer to the final value for `OMP_FOR' `G'.
13597 -- GIMPLE function: void gimple_omp_for_set_final (gimple g, tree
13599 Set `FINAL' to be the final value for `OMP_FOR' `G'.
13601 -- GIMPLE function: tree gimple_omp_for_incr (gimple g)
13602 Return the increment value for `OMP_FOR' `G'.
13604 -- GIMPLE function: tree *gimple_omp_for_incr_ptr (gimple g)
13605 Return a pointer to the increment value for `OMP_FOR' `G'.
13607 -- GIMPLE function: void gimple_omp_for_set_incr (gimple g, tree incr)
13608 Set `INCR' to be the increment value for `OMP_FOR' `G'.
13610 -- GIMPLE function: gimple_seq gimple_omp_for_pre_body (gimple g)
13611 Return the sequence of statements to execute before the `OMP_FOR'
13612 statement `G' starts.
13614 -- GIMPLE function: void gimple_omp_for_set_pre_body (gimple g,
13615 gimple_seq pre_body)
13616 Set `PRE_BODY' to be the sequence of statements to execute before
13617 the `OMP_FOR' statement `G' starts.
13619 -- GIMPLE function: void gimple_omp_for_set_cond (gimple g, enum
13621 Set `COND' to be the condition code for `OMP_FOR' `G'.
13623 -- GIMPLE function: enum tree_code gimple_omp_for_cond (gimple g)
13624 Return the condition code associated with `OMP_FOR' `G'.
13627 File: gccint.info, Node: `GIMPLE_OMP_MASTER', Next: `GIMPLE_OMP_ORDERED', Prev: `GIMPLE_OMP_FOR', Up: Tuple specific accessors
13629 12.7.16 `GIMPLE_OMP_MASTER'
13630 ---------------------------
13632 -- GIMPLE function: gimple gimple_build_omp_master (gimple_seq body)
13633 Build a `GIMPLE_OMP_MASTER' statement. `BODY' is the sequence of
13634 statements to be executed by just the master.
13637 File: gccint.info, Node: `GIMPLE_OMP_ORDERED', Next: `GIMPLE_OMP_PARALLEL', Prev: `GIMPLE_OMP_MASTER', Up: Tuple specific accessors
13639 12.7.17 `GIMPLE_OMP_ORDERED'
13640 ----------------------------
13642 -- GIMPLE function: gimple gimple_build_omp_ordered (gimple_seq body)
13643 Build a `GIMPLE_OMP_ORDERED' statement.
13645 `BODY' is the sequence of statements inside a loop that will executed
13649 File: gccint.info, Node: `GIMPLE_OMP_PARALLEL', Next: `GIMPLE_OMP_RETURN', Prev: `GIMPLE_OMP_ORDERED', Up: Tuple specific accessors
13651 12.7.18 `GIMPLE_OMP_PARALLEL'
13652 -----------------------------
13654 -- GIMPLE function: gimple gimple_build_omp_parallel (gimple_seq body,
13655 tree clauses, tree child_fn, tree data_arg)
13656 Build a `GIMPLE_OMP_PARALLEL' statement.
13658 `BODY' is sequence of statements which are executed in parallel.
13659 `CLAUSES', are the `OMP' parallel construct's clauses. `CHILD_FN' is
13660 the function created for the parallel threads to execute. `DATA_ARG'
13661 are the shared data argument(s).
13663 -- GIMPLE function: bool gimple_omp_parallel_combined_p (gimple g)
13664 Return true if `OMP' parallel statement `G' has the
13665 `GF_OMP_PARALLEL_COMBINED' flag set.
13667 -- GIMPLE function: void gimple_omp_parallel_set_combined_p (gimple g)
13668 Set the `GF_OMP_PARALLEL_COMBINED' field in `OMP' parallel
13671 -- GIMPLE function: gimple_seq gimple_omp_body (gimple g)
13672 Return the body for the `OMP' statement `G'.
13674 -- GIMPLE function: void gimple_omp_set_body (gimple g, gimple_seq
13676 Set `BODY' to be the body for the `OMP' statement `G'.
13678 -- GIMPLE function: tree gimple_omp_parallel_clauses (gimple g)
13679 Return the clauses associated with `OMP_PARALLEL' `G'.
13681 -- GIMPLE function: tree *gimple_omp_parallel_clauses_ptr (gimple g)
13682 Return a pointer to the clauses associated with `OMP_PARALLEL' `G'.
13684 -- GIMPLE function: void gimple_omp_parallel_set_clauses (gimple g,
13686 Set `CLAUSES' to be the list of clauses associated with
13687 `OMP_PARALLEL' `G'.
13689 -- GIMPLE function: tree gimple_omp_parallel_child_fn (gimple g)
13690 Return the child function used to hold the body of `OMP_PARALLEL'
13693 -- GIMPLE function: tree *gimple_omp_parallel_child_fn_ptr (gimple g)
13694 Return a pointer to the child function used to hold the body of
13695 `OMP_PARALLEL' `G'.
13697 -- GIMPLE function: void gimple_omp_parallel_set_child_fn (gimple g,
13699 Set `CHILD_FN' to be the child function for `OMP_PARALLEL' `G'.
13701 -- GIMPLE function: tree gimple_omp_parallel_data_arg (gimple g)
13702 Return the artificial argument used to send variables and values
13703 from the parent to the children threads in `OMP_PARALLEL' `G'.
13705 -- GIMPLE function: tree *gimple_omp_parallel_data_arg_ptr (gimple g)
13706 Return a pointer to the data argument for `OMP_PARALLEL' `G'.
13708 -- GIMPLE function: void gimple_omp_parallel_set_data_arg (gimple g,
13710 Set `DATA_ARG' to be the data argument for `OMP_PARALLEL' `G'.
13712 -- GIMPLE function: bool is_gimple_omp (gimple stmt)
13713 Returns true when the gimple statement `STMT' is any of the OpenMP
13717 File: gccint.info, Node: `GIMPLE_OMP_RETURN', Next: `GIMPLE_OMP_SECTION', Prev: `GIMPLE_OMP_PARALLEL', Up: Tuple specific accessors
13719 12.7.19 `GIMPLE_OMP_RETURN'
13720 ---------------------------
13722 -- GIMPLE function: gimple gimple_build_omp_return (bool wait_p)
13723 Build a `GIMPLE_OMP_RETURN' statement. `WAIT_P' is true if this is
13724 a non-waiting return.
13726 -- GIMPLE function: void gimple_omp_return_set_nowait (gimple s)
13727 Set the nowait flag on `GIMPLE_OMP_RETURN' statement `S'.
13729 -- GIMPLE function: bool gimple_omp_return_nowait_p (gimple g)
13730 Return true if `OMP' return statement `G' has the
13731 `GF_OMP_RETURN_NOWAIT' flag set.
13734 File: gccint.info, Node: `GIMPLE_OMP_SECTION', Next: `GIMPLE_OMP_SECTIONS', Prev: `GIMPLE_OMP_RETURN', Up: Tuple specific accessors
13736 12.7.20 `GIMPLE_OMP_SECTION'
13737 ----------------------------
13739 -- GIMPLE function: gimple gimple_build_omp_section (gimple_seq body)
13740 Build a `GIMPLE_OMP_SECTION' statement for a sections statement.
13742 `BODY' is the sequence of statements in the section.
13744 -- GIMPLE function: bool gimple_omp_section_last_p (gimple g)
13745 Return true if `OMP' section statement `G' has the
13746 `GF_OMP_SECTION_LAST' flag set.
13748 -- GIMPLE function: void gimple_omp_section_set_last (gimple g)
13749 Set the `GF_OMP_SECTION_LAST' flag on `G'.
13752 File: gccint.info, Node: `GIMPLE_OMP_SECTIONS', Next: `GIMPLE_OMP_SINGLE', Prev: `GIMPLE_OMP_SECTION', Up: Tuple specific accessors
13754 12.7.21 `GIMPLE_OMP_SECTIONS'
13755 -----------------------------
13757 -- GIMPLE function: gimple gimple_build_omp_sections (gimple_seq body,
13759 Build a `GIMPLE_OMP_SECTIONS' statement. `BODY' is a sequence of
13760 section statements. `CLAUSES' are any of the `OMP' sections
13761 construct's clauses: private, firstprivate, lastprivate,
13762 reduction, and nowait.
13764 -- GIMPLE function: gimple gimple_build_omp_sections_switch (void)
13765 Build a `GIMPLE_OMP_SECTIONS_SWITCH' statement.
13767 -- GIMPLE function: tree gimple_omp_sections_control (gimple g)
13768 Return the control variable associated with the
13769 `GIMPLE_OMP_SECTIONS' in `G'.
13771 -- GIMPLE function: tree *gimple_omp_sections_control_ptr (gimple g)
13772 Return a pointer to the clauses associated with the
13773 `GIMPLE_OMP_SECTIONS' in `G'.
13775 -- GIMPLE function: void gimple_omp_sections_set_control (gimple g,
13777 Set `CONTROL' to be the set of clauses associated with the
13778 `GIMPLE_OMP_SECTIONS' in `G'.
13780 -- GIMPLE function: tree gimple_omp_sections_clauses (gimple g)
13781 Return the clauses associated with `OMP_SECTIONS' `G'.
13783 -- GIMPLE function: tree *gimple_omp_sections_clauses_ptr (gimple g)
13784 Return a pointer to the clauses associated with `OMP_SECTIONS' `G'.
13786 -- GIMPLE function: void gimple_omp_sections_set_clauses (gimple g,
13788 Set `CLAUSES' to be the set of clauses associated with
13789 `OMP_SECTIONS' `G'.
13792 File: gccint.info, Node: `GIMPLE_OMP_SINGLE', Next: `GIMPLE_PHI', Prev: `GIMPLE_OMP_SECTIONS', Up: Tuple specific accessors
13794 12.7.22 `GIMPLE_OMP_SINGLE'
13795 ---------------------------
13797 -- GIMPLE function: gimple gimple_build_omp_single (gimple_seq body,
13799 Build a `GIMPLE_OMP_SINGLE' statement. `BODY' is the sequence of
13800 statements that will be executed once. `CLAUSES' are any of the
13801 `OMP' single construct's clauses: private, firstprivate,
13802 copyprivate, nowait.
13804 -- GIMPLE function: tree gimple_omp_single_clauses (gimple g)
13805 Return the clauses associated with `OMP_SINGLE' `G'.
13807 -- GIMPLE function: tree *gimple_omp_single_clauses_ptr (gimple g)
13808 Return a pointer to the clauses associated with `OMP_SINGLE' `G'.
13810 -- GIMPLE function: void gimple_omp_single_set_clauses (gimple g, tree
13812 Set `CLAUSES' to be the clauses associated with `OMP_SINGLE' `G'.
13815 File: gccint.info, Node: `GIMPLE_PHI', Next: `GIMPLE_RESX', Prev: `GIMPLE_OMP_SINGLE', Up: Tuple specific accessors
13817 12.7.23 `GIMPLE_PHI'
13818 --------------------
13820 -- GIMPLE function: gimple make_phi_node (tree var, int len)
13821 Build a `PHI' node with len argument slots for variable var.
13823 -- GIMPLE function: unsigned gimple_phi_capacity (gimple g)
13824 Return the maximum number of arguments supported by `GIMPLE_PHI'
13827 -- GIMPLE function: unsigned gimple_phi_num_args (gimple g)
13828 Return the number of arguments in `GIMPLE_PHI' `G'. This must
13829 always be exactly the number of incoming edges for the basic block
13832 -- GIMPLE function: tree gimple_phi_result (gimple g)
13833 Return the `SSA' name created by `GIMPLE_PHI' `G'.
13835 -- GIMPLE function: tree *gimple_phi_result_ptr (gimple g)
13836 Return a pointer to the `SSA' name created by `GIMPLE_PHI' `G'.
13838 -- GIMPLE function: void gimple_phi_set_result (gimple g, tree result)
13839 Set `RESULT' to be the `SSA' name created by `GIMPLE_PHI' `G'.
13841 -- GIMPLE function: struct phi_arg_d *gimple_phi_arg (gimple g, index)
13842 Return the `PHI' argument corresponding to incoming edge `INDEX'
13843 for `GIMPLE_PHI' `G'.
13845 -- GIMPLE function: void gimple_phi_set_arg (gimple g, index, struct
13846 phi_arg_d * phiarg)
13847 Set `PHIARG' to be the argument corresponding to incoming edge
13848 `INDEX' for `GIMPLE_PHI' `G'.
13851 File: gccint.info, Node: `GIMPLE_RESX', Next: `GIMPLE_RETURN', Prev: `GIMPLE_PHI', Up: Tuple specific accessors
13853 12.7.24 `GIMPLE_RESX'
13854 ---------------------
13856 -- GIMPLE function: gimple gimple_build_resx (int region)
13857 Build a `GIMPLE_RESX' statement which is a statement. This
13858 statement is a placeholder for _Unwind_Resume before we know if a
13859 function call or a branch is needed. `REGION' is the exception
13860 region from which control is flowing.
13862 -- GIMPLE function: int gimple_resx_region (gimple g)
13863 Return the region number for `GIMPLE_RESX' `G'.
13865 -- GIMPLE function: void gimple_resx_set_region (gimple g, int region)
13866 Set `REGION' to be the region number for `GIMPLE_RESX' `G'.
13869 File: gccint.info, Node: `GIMPLE_RETURN', Next: `GIMPLE_SWITCH', Prev: `GIMPLE_RESX', Up: Tuple specific accessors
13871 12.7.25 `GIMPLE_RETURN'
13872 -----------------------
13874 -- GIMPLE function: gimple gimple_build_return (tree retval)
13875 Build a `GIMPLE_RETURN' statement whose return value is retval.
13877 -- GIMPLE function: tree gimple_return_retval (gimple g)
13878 Return the return value for `GIMPLE_RETURN' `G'.
13880 -- GIMPLE function: void gimple_return_set_retval (gimple g, tree
13882 Set `RETVAL' to be the return value for `GIMPLE_RETURN' `G'.
13885 File: gccint.info, Node: `GIMPLE_SWITCH', Next: `GIMPLE_TRY', Prev: `GIMPLE_RETURN', Up: Tuple specific accessors
13887 12.7.26 `GIMPLE_SWITCH'
13888 -----------------------
13890 -- GIMPLE function: gimple gimple_build_switch ( nlabels, tree index,
13891 tree default_label, ...)
13892 Build a `GIMPLE_SWITCH' statement. `NLABELS' are the number of
13893 labels excluding the default label. The default label is passed
13894 in `DEFAULT_LABEL'. The rest of the arguments are trees
13895 representing the labels. Each label is a tree of code
13898 -- GIMPLE function: gimple gimple_build_switch_vec (tree index, tree
13899 default_label, `VEC'(tree,heap) *args)
13900 This function is an alternate way of building `GIMPLE_SWITCH'
13901 statements. `INDEX' and `DEFAULT_LABEL' are as in
13902 gimple_build_switch. `ARGS' is a vector of `CASE_LABEL_EXPR' trees
13903 that contain the labels.
13905 -- GIMPLE function: unsigned gimple_switch_num_labels (gimple g)
13906 Return the number of labels associated with the switch statement
13909 -- GIMPLE function: void gimple_switch_set_num_labels (gimple g,
13911 Set `NLABELS' to be the number of labels for the switch statement
13914 -- GIMPLE function: tree gimple_switch_index (gimple g)
13915 Return the index variable used by the switch statement `G'.
13917 -- GIMPLE function: void gimple_switch_set_index (gimple g, tree index)
13918 Set `INDEX' to be the index variable for switch statement `G'.
13920 -- GIMPLE function: tree gimple_switch_label (gimple g, unsigned index)
13921 Return the label numbered `INDEX'. The default label is 0, followed
13922 by any labels in a switch statement.
13924 -- GIMPLE function: void gimple_switch_set_label (gimple g, unsigned
13926 Set the label number `INDEX' to `LABEL'. 0 is always the default
13929 -- GIMPLE function: tree gimple_switch_default_label (gimple g)
13930 Return the default label for a switch statement.
13932 -- GIMPLE function: void gimple_switch_set_default_label (gimple g,
13934 Set the default label for a switch statement.
13937 File: gccint.info, Node: `GIMPLE_TRY', Next: `GIMPLE_WITH_CLEANUP_EXPR', Prev: `GIMPLE_SWITCH', Up: Tuple specific accessors
13939 12.7.27 `GIMPLE_TRY'
13940 --------------------
13942 -- GIMPLE function: gimple gimple_build_try (gimple_seq eval,
13943 gimple_seq cleanup, unsigned int kind)
13944 Build a `GIMPLE_TRY' statement. `EVAL' is a sequence with the
13945 expression to evaluate. `CLEANUP' is a sequence of statements to
13946 run at clean-up time. `KIND' is the enumeration value
13947 `GIMPLE_TRY_CATCH' if this statement denotes a try/catch construct
13948 or `GIMPLE_TRY_FINALLY' if this statement denotes a try/finally
13951 -- GIMPLE function: enum gimple_try_flags gimple_try_kind (gimple g)
13952 Return the kind of try block represented by `GIMPLE_TRY' `G'. This
13953 is either `GIMPLE_TRY_CATCH' or `GIMPLE_TRY_FINALLY'.
13955 -- GIMPLE function: bool gimple_try_catch_is_cleanup (gimple g)
13956 Return the `GIMPLE_TRY_CATCH_IS_CLEANUP' flag.
13958 -- GIMPLE function: gimple_seq gimple_try_eval (gimple g)
13959 Return the sequence of statements used as the body for `GIMPLE_TRY'
13962 -- GIMPLE function: gimple_seq gimple_try_cleanup (gimple g)
13963 Return the sequence of statements used as the cleanup body for
13966 -- GIMPLE function: void gimple_try_set_catch_is_cleanup (gimple g,
13967 bool catch_is_cleanup)
13968 Set the `GIMPLE_TRY_CATCH_IS_CLEANUP' flag.
13970 -- GIMPLE function: void gimple_try_set_eval (gimple g, gimple_seq
13972 Set `EVAL' to be the sequence of statements to use as the body for
13975 -- GIMPLE function: void gimple_try_set_cleanup (gimple g, gimple_seq
13977 Set `CLEANUP' to be the sequence of statements to use as the
13978 cleanup body for `GIMPLE_TRY' `G'.
13981 File: gccint.info, Node: `GIMPLE_WITH_CLEANUP_EXPR', Prev: `GIMPLE_TRY', Up: Tuple specific accessors
13983 12.7.28 `GIMPLE_WITH_CLEANUP_EXPR'
13984 ----------------------------------
13986 -- GIMPLE function: gimple gimple_build_wce (gimple_seq cleanup)
13987 Build a `GIMPLE_WITH_CLEANUP_EXPR' statement. `CLEANUP' is the
13988 clean-up expression.
13990 -- GIMPLE function: gimple_seq gimple_wce_cleanup (gimple g)
13991 Return the cleanup sequence for cleanup statement `G'.
13993 -- GIMPLE function: void gimple_wce_set_cleanup (gimple g, gimple_seq
13995 Set `CLEANUP' to be the cleanup sequence for `G'.
13997 -- GIMPLE function: bool gimple_wce_cleanup_eh_only (gimple g)
13998 Return the `CLEANUP_EH_ONLY' flag for a `WCE' tuple.
14000 -- GIMPLE function: void gimple_wce_set_cleanup_eh_only (gimple g,
14002 Set the `CLEANUP_EH_ONLY' flag for a `WCE' tuple.
14005 File: gccint.info, Node: GIMPLE sequences, Next: Sequence iterators, Prev: Tuple specific accessors, Up: GIMPLE
14007 12.8 GIMPLE sequences
14008 =====================
14010 GIMPLE sequences are the tuple equivalent of `STATEMENT_LIST''s used in
14011 `GENERIC'. They are used to chain statements together, and when used
14012 in conjunction with sequence iterators, provide a framework for
14013 iterating through statements.
14015 GIMPLE sequences are of type struct `gimple_sequence', but are more
14016 commonly passed by reference to functions dealing with sequences. The
14017 type for a sequence pointer is `gimple_seq' which is the same as struct
14018 `gimple_sequence' *. When declaring a local sequence, you can define a
14019 local variable of type struct `gimple_sequence'. When declaring a
14020 sequence allocated on the garbage collected heap, use the function
14021 `gimple_seq_alloc' documented below.
14023 There are convenience functions for iterating through sequences in the
14024 section entitled Sequence Iterators.
14026 Below is a list of functions to manipulate and query sequences.
14028 -- GIMPLE function: void gimple_seq_add_stmt (gimple_seq *seq, gimple
14030 Link a gimple statement to the end of the sequence *`SEQ' if `G' is
14031 not `NULL'. If *`SEQ' is `NULL', allocate a sequence before
14034 -- GIMPLE function: void gimple_seq_add_seq (gimple_seq *dest,
14036 Append sequence `SRC' to the end of sequence *`DEST' if `SRC' is
14037 not `NULL'. If *`DEST' is `NULL', allocate a new sequence before
14040 -- GIMPLE function: gimple_seq gimple_seq_deep_copy (gimple_seq src)
14041 Perform a deep copy of sequence `SRC' and return the result.
14043 -- GIMPLE function: gimple_seq gimple_seq_reverse (gimple_seq seq)
14044 Reverse the order of the statements in the sequence `SEQ'. Return
14047 -- GIMPLE function: gimple gimple_seq_first (gimple_seq s)
14048 Return the first statement in sequence `S'.
14050 -- GIMPLE function: gimple gimple_seq_last (gimple_seq s)
14051 Return the last statement in sequence `S'.
14053 -- GIMPLE function: void gimple_seq_set_last (gimple_seq s, gimple
14055 Set the last statement in sequence `S' to the statement in `LAST'.
14057 -- GIMPLE function: void gimple_seq_set_first (gimple_seq s, gimple
14059 Set the first statement in sequence `S' to the statement in
14062 -- GIMPLE function: void gimple_seq_init (gimple_seq s)
14063 Initialize sequence `S' to an empty sequence.
14065 -- GIMPLE function: gimple_seq gimple_seq_alloc (void)
14066 Allocate a new sequence in the garbage collected store and return
14069 -- GIMPLE function: void gimple_seq_copy (gimple_seq dest, gimple_seq
14071 Copy the sequence `SRC' into the sequence `DEST'.
14073 -- GIMPLE function: bool gimple_seq_empty_p (gimple_seq s)
14074 Return true if the sequence `S' is empty.
14076 -- GIMPLE function: gimple_seq bb_seq (basic_block bb)
14077 Returns the sequence of statements in `BB'.
14079 -- GIMPLE function: void set_bb_seq (basic_block bb, gimple_seq seq)
14080 Sets the sequence of statements in `BB' to `SEQ'.
14082 -- GIMPLE function: bool gimple_seq_singleton_p (gimple_seq seq)
14083 Determine whether `SEQ' contains exactly one statement.
14086 File: gccint.info, Node: Sequence iterators, Next: Adding a new GIMPLE statement code, Prev: GIMPLE sequences, Up: GIMPLE
14088 12.9 Sequence iterators
14089 =======================
14091 Sequence iterators are convenience constructs for iterating through
14092 statements in a sequence. Given a sequence `SEQ', here is a typical
14093 use of gimple sequence iterators:
14095 gimple_stmt_iterator gsi;
14097 for (gsi = gsi_start (seq); !gsi_end_p (gsi); gsi_next (&gsi))
14099 gimple g = gsi_stmt (gsi);
14100 /* Do something with gimple statement `G'. */
14103 Backward iterations are possible:
14105 for (gsi = gsi_last (seq); !gsi_end_p (gsi); gsi_prev (&gsi))
14107 Forward and backward iterations on basic blocks are possible with
14108 `gsi_start_bb' and `gsi_last_bb'.
14110 In the documentation below we sometimes refer to enum
14111 `gsi_iterator_update'. The valid options for this enumeration are:
14113 * `GSI_NEW_STMT' Only valid when a single statement is added. Move
14114 the iterator to it.
14116 * `GSI_SAME_STMT' Leave the iterator at the same statement.
14118 * `GSI_CONTINUE_LINKING' Move iterator to whatever position is
14119 suitable for linking other statements in the same direction.
14121 Below is a list of the functions used to manipulate and use statement
14124 -- GIMPLE function: gimple_stmt_iterator gsi_start (gimple_seq seq)
14125 Return a new iterator pointing to the sequence `SEQ''s first
14126 statement. If `SEQ' is empty, the iterator's basic block is
14127 `NULL'. Use `gsi_start_bb' instead when the iterator needs to
14128 always have the correct basic block set.
14130 -- GIMPLE function: gimple_stmt_iterator gsi_start_bb (basic_block bb)
14131 Return a new iterator pointing to the first statement in basic
14134 -- GIMPLE function: gimple_stmt_iterator gsi_last (gimple_seq seq)
14135 Return a new iterator initially pointing to the last statement of
14136 sequence `SEQ'. If `SEQ' is empty, the iterator's basic block is
14137 `NULL'. Use `gsi_last_bb' instead when the iterator needs to
14138 always have the correct basic block set.
14140 -- GIMPLE function: gimple_stmt_iterator gsi_last_bb (basic_block bb)
14141 Return a new iterator pointing to the last statement in basic
14144 -- GIMPLE function: bool gsi_end_p (gimple_stmt_iterator i)
14145 Return `TRUE' if at the end of `I'.
14147 -- GIMPLE function: bool gsi_one_before_end_p (gimple_stmt_iterator i)
14148 Return `TRUE' if we're one statement before the end of `I'.
14150 -- GIMPLE function: void gsi_next (gimple_stmt_iterator *i)
14151 Advance the iterator to the next gimple statement.
14153 -- GIMPLE function: void gsi_prev (gimple_stmt_iterator *i)
14154 Advance the iterator to the previous gimple statement.
14156 -- GIMPLE function: gimple gsi_stmt (gimple_stmt_iterator i)
14157 Return the current stmt.
14159 -- GIMPLE function: gimple_stmt_iterator gsi_after_labels (basic_block
14161 Return a block statement iterator that points to the first
14162 non-label statement in block `BB'.
14164 -- GIMPLE function: gimple *gsi_stmt_ptr (gimple_stmt_iterator *i)
14165 Return a pointer to the current stmt.
14167 -- GIMPLE function: basic_block gsi_bb (gimple_stmt_iterator i)
14168 Return the basic block associated with this iterator.
14170 -- GIMPLE function: gimple_seq gsi_seq (gimple_stmt_iterator i)
14171 Return the sequence associated with this iterator.
14173 -- GIMPLE function: void gsi_remove (gimple_stmt_iterator *i, bool
14175 Remove the current stmt from the sequence. The iterator is
14176 updated to point to the next statement. When `REMOVE_EH_INFO' is
14177 true we remove the statement pointed to by iterator `I' from the
14178 `EH' tables. Otherwise we do not modify the `EH' tables.
14179 Generally, `REMOVE_EH_INFO' should be true when the statement is
14180 going to be removed from the `IL' and not reinserted elsewhere.
14182 -- GIMPLE function: void gsi_link_seq_before (gimple_stmt_iterator *i,
14183 gimple_seq seq, enum gsi_iterator_update mode)
14184 Links the sequence of statements `SEQ' before the statement pointed
14185 by iterator `I'. `MODE' indicates what to do with the iterator
14186 after insertion (see `enum gsi_iterator_update' above).
14188 -- GIMPLE function: void gsi_link_before (gimple_stmt_iterator *i,
14189 gimple g, enum gsi_iterator_update mode)
14190 Links statement `G' before the statement pointed-to by iterator
14191 `I'. Updates iterator `I' according to `MODE'.
14193 -- GIMPLE function: void gsi_link_seq_after (gimple_stmt_iterator *i,
14194 gimple_seq seq, enum gsi_iterator_update mode)
14195 Links sequence `SEQ' after the statement pointed-to by iterator
14196 `I'. `MODE' is as in `gsi_insert_after'.
14198 -- GIMPLE function: void gsi_link_after (gimple_stmt_iterator *i,
14199 gimple g, enum gsi_iterator_update mode)
14200 Links statement `G' after the statement pointed-to by iterator `I'.
14201 `MODE' is as in `gsi_insert_after'.
14203 -- GIMPLE function: gimple_seq gsi_split_seq_after
14204 (gimple_stmt_iterator i)
14205 Move all statements in the sequence after `I' to a new sequence.
14206 Return this new sequence.
14208 -- GIMPLE function: gimple_seq gsi_split_seq_before
14209 (gimple_stmt_iterator *i)
14210 Move all statements in the sequence before `I' to a new sequence.
14211 Return this new sequence.
14213 -- GIMPLE function: void gsi_replace (gimple_stmt_iterator *i, gimple
14214 stmt, bool update_eh_info)
14215 Replace the statement pointed-to by `I' to `STMT'. If
14216 `UPDATE_EH_INFO' is true, the exception handling information of
14217 the original statement is moved to the new statement.
14219 -- GIMPLE function: void gsi_insert_before (gimple_stmt_iterator *i,
14220 gimple stmt, enum gsi_iterator_update mode)
14221 Insert statement `STMT' before the statement pointed-to by iterator
14222 `I', update `STMT''s basic block and scan it for new operands.
14223 `MODE' specifies how to update iterator `I' after insertion (see
14224 enum `gsi_iterator_update').
14226 -- GIMPLE function: void gsi_insert_seq_before (gimple_stmt_iterator
14227 *i, gimple_seq seq, enum gsi_iterator_update mode)
14228 Like `gsi_insert_before', but for all the statements in `SEQ'.
14230 -- GIMPLE function: void gsi_insert_after (gimple_stmt_iterator *i,
14231 gimple stmt, enum gsi_iterator_update mode)
14232 Insert statement `STMT' after the statement pointed-to by iterator
14233 `I', update `STMT''s basic block and scan it for new operands.
14234 `MODE' specifies how to update iterator `I' after insertion (see
14235 enum `gsi_iterator_update').
14237 -- GIMPLE function: void gsi_insert_seq_after (gimple_stmt_iterator
14238 *i, gimple_seq seq, enum gsi_iterator_update mode)
14239 Like `gsi_insert_after', but for all the statements in `SEQ'.
14241 -- GIMPLE function: gimple_stmt_iterator gsi_for_stmt (gimple stmt)
14242 Finds iterator for `STMT'.
14244 -- GIMPLE function: void gsi_move_after (gimple_stmt_iterator *from,
14245 gimple_stmt_iterator *to)
14246 Move the statement at `FROM' so it comes right after the statement
14249 -- GIMPLE function: void gsi_move_before (gimple_stmt_iterator *from,
14250 gimple_stmt_iterator *to)
14251 Move the statement at `FROM' so it comes right before the statement
14254 -- GIMPLE function: void gsi_move_to_bb_end (gimple_stmt_iterator
14255 *from, basic_block bb)
14256 Move the statement at `FROM' to the end of basic block `BB'.
14258 -- GIMPLE function: void gsi_insert_on_edge (edge e, gimple stmt)
14259 Add `STMT' to the pending list of edge `E'. No actual insertion is
14260 made until a call to `gsi_commit_edge_inserts'() is made.
14262 -- GIMPLE function: void gsi_insert_seq_on_edge (edge e, gimple_seq
14264 Add the sequence of statements in `SEQ' to the pending list of edge
14265 `E'. No actual insertion is made until a call to
14266 `gsi_commit_edge_inserts'() is made.
14268 -- GIMPLE function: basic_block gsi_insert_on_edge_immediate (edge e,
14270 Similar to `gsi_insert_on_edge'+`gsi_commit_edge_inserts'. If a
14271 new block has to be created, it is returned.
14273 -- GIMPLE function: void gsi_commit_one_edge_insert (edge e,
14274 basic_block *new_bb)
14275 Commit insertions pending at edge `E'. If a new block is created,
14276 set `NEW_BB' to this block, otherwise set it to `NULL'.
14278 -- GIMPLE function: void gsi_commit_edge_inserts (void)
14279 This routine will commit all pending edge insertions, creating any
14280 new basic blocks which are necessary.
14283 File: gccint.info, Node: Adding a new GIMPLE statement code, Next: Statement and operand traversals, Prev: Sequence iterators, Up: GIMPLE
14285 12.10 Adding a new GIMPLE statement code
14286 ========================================
14288 The first step in adding a new GIMPLE statement code, is modifying the
14289 file `gimple.def', which contains all the GIMPLE codes. Then you must
14290 add a corresponding structure, and an entry in `union
14291 gimple_statement_d', both of which are located in `gimple.h'. This in
14292 turn, will require you to add a corresponding `GTY' tag in
14293 `gsstruct.def', and code to handle this tag in `gss_for_code' which is
14294 located in `gimple.c'.
14296 In order for the garbage collector to know the size of the structure
14297 you created in `gimple.h', you need to add a case to handle your new
14298 GIMPLE statement in `gimple_size' which is located in `gimple.c'.
14300 You will probably want to create a function to build the new gimple
14301 statement in `gimple.c'. The function should be called
14302 `gimple_build_<`NEW_TUPLE_NAME'>', and should return the new tuple of
14305 If your new statement requires accessors for any members or operands
14306 it may have, put simple inline accessors in `gimple.h' and any
14307 non-trivial accessors in `gimple.c' with a corresponding prototype in
14311 File: gccint.info, Node: Statement and operand traversals, Prev: Adding a new GIMPLE statement code, Up: GIMPLE
14313 12.11 Statement and operand traversals
14314 ======================================
14316 There are two functions available for walking statements and sequences:
14317 `walk_gimple_stmt' and `walk_gimple_seq', accordingly, and a third
14318 function for walking the operands in a statement: `walk_gimple_op'.
14320 -- GIMPLE function: tree walk_gimple_stmt (gimple_stmt_iterator *gsi,
14321 walk_stmt_fn callback_stmt, walk_tree_fn callback_op, struct
14322 walk_stmt_info *wi)
14323 This function is used to walk the current statement in `GSI',
14324 optionally using traversal state stored in `WI'. If `WI' is
14325 `NULL', no state is kept during the traversal.
14327 The callback `CALLBACK_STMT' is called. If `CALLBACK_STMT' returns
14328 true, it means that the callback function has handled all the
14329 operands of the statement and it is not necessary to walk its
14332 If `CALLBACK_STMT' is `NULL' or it returns false, `CALLBACK_OP' is
14333 called on each operand of the statement via `walk_gimple_op'. If
14334 `walk_gimple_op' returns non-`NULL' for any operand, the remaining
14335 operands are not scanned.
14337 The return value is that returned by the last call to
14338 `walk_gimple_op', or `NULL_TREE' if no `CALLBACK_OP' is specified.
14340 -- GIMPLE function: tree walk_gimple_op (gimple stmt, walk_tree_fn
14341 callback_op, struct walk_stmt_info *wi)
14342 Use this function to walk the operands of statement `STMT'. Every
14343 operand is walked via `walk_tree' with optional state information
14346 `CALLBACK_OP' is called on each operand of `STMT' via `walk_tree'.
14347 Additional parameters to `walk_tree' must be stored in `WI'. For
14348 each operand `OP', `walk_tree' is called as:
14350 walk_tree (&`OP', `CALLBACK_OP', `WI', `WI'- `PSET')
14352 If `CALLBACK_OP' returns non-`NULL' for an operand, the remaining
14353 operands are not scanned. The return value is that returned by
14354 the last call to `walk_tree', or `NULL_TREE' if no `CALLBACK_OP' is
14357 -- GIMPLE function: tree walk_gimple_seq (gimple_seq seq, walk_stmt_fn
14358 callback_stmt, walk_tree_fn callback_op, struct
14359 walk_stmt_info *wi)
14360 This function walks all the statements in the sequence `SEQ'
14361 calling `walk_gimple_stmt' on each one. `WI' is as in
14362 `walk_gimple_stmt'. If `walk_gimple_stmt' returns non-`NULL', the
14363 walk is stopped and the value returned. Otherwise, all the
14364 statements are walked and `NULL_TREE' returned.
14367 File: gccint.info, Node: Tree SSA, Next: Control Flow, Prev: GIMPLE, Up: Top
14369 13 Analysis and Optimization of GIMPLE tuples
14370 *********************************************
14372 GCC uses three main intermediate languages to represent the program
14373 during compilation: GENERIC, GIMPLE and RTL. GENERIC is a
14374 language-independent representation generated by each front end. It is
14375 used to serve as an interface between the parser and optimizer.
14376 GENERIC is a common representation that is able to represent programs
14377 written in all the languages supported by GCC.
14379 GIMPLE and RTL are used to optimize the program. GIMPLE is used for
14380 target and language independent optimizations (e.g., inlining, constant
14381 propagation, tail call elimination, redundancy elimination, etc). Much
14382 like GENERIC, GIMPLE is a language independent, tree based
14383 representation. However, it differs from GENERIC in that the GIMPLE
14384 grammar is more restrictive: expressions contain no more than 3
14385 operands (except function calls), it has no control flow structures and
14386 expressions with side-effects are only allowed on the right hand side
14387 of assignments. See the chapter describing GENERIC and GIMPLE for more
14390 This chapter describes the data structures and functions used in the
14391 GIMPLE optimizers (also known as "tree optimizers" or "middle end").
14392 In particular, it focuses on all the macros, data structures, functions
14393 and programming constructs needed to implement optimization passes for
14398 * Annotations:: Attributes for variables.
14399 * SSA Operands:: SSA names referenced by GIMPLE statements.
14400 * SSA:: Static Single Assignment representation.
14401 * Alias analysis:: Representing aliased loads and stores.
14404 File: gccint.info, Node: Annotations, Next: SSA Operands, Up: Tree SSA
14409 The optimizers need to associate attributes with variables during the
14410 optimization process. For instance, we need to know whether a variable
14411 has aliases. All these attributes are stored in data structures called
14412 annotations which are then linked to the field `ann' in `struct
14415 Presently, we define annotations for variables (`var_ann_t').
14416 Annotations are defined and documented in `tree-flow.h'.
14419 File: gccint.info, Node: SSA Operands, Next: SSA, Prev: Annotations, Up: Tree SSA
14424 Almost every GIMPLE statement will contain a reference to a variable or
14425 memory location. Since statements come in different shapes and sizes,
14426 their operands are going to be located at various spots inside the
14427 statement's tree. To facilitate access to the statement's operands,
14428 they are organized into lists associated inside each statement's
14429 annotation. Each element in an operand list is a pointer to a
14430 `VAR_DECL', `PARM_DECL' or `SSA_NAME' tree node. This provides a very
14431 convenient way of examining and replacing operands.
14433 Data flow analysis and optimization is done on all tree nodes
14434 representing variables. Any node for which `SSA_VAR_P' returns nonzero
14435 is considered when scanning statement operands. However, not all
14436 `SSA_VAR_P' variables are processed in the same way. For the purposes
14437 of optimization, we need to distinguish between references to local
14438 scalar variables and references to globals, statics, structures,
14439 arrays, aliased variables, etc. The reason is simple, the compiler can
14440 gather complete data flow information for a local scalar. On the other
14441 hand, a global variable may be modified by a function call, it may not
14442 be possible to keep track of all the elements of an array or the fields
14443 of a structure, etc.
14445 The operand scanner gathers two kinds of operands: "real" and
14446 "virtual". An operand for which `is_gimple_reg' returns true is
14447 considered real, otherwise it is a virtual operand. We also
14448 distinguish between uses and definitions. An operand is used if its
14449 value is loaded by the statement (e.g., the operand at the RHS of an
14450 assignment). If the statement assigns a new value to the operand, the
14451 operand is considered a definition (e.g., the operand at the LHS of an
14454 Virtual and real operands also have very different data flow
14455 properties. Real operands are unambiguous references to the full
14456 object that they represent. For instance, given
14463 Since `a' and `b' are non-aliased locals, the statement `a = b' will
14464 have one real definition and one real use because variable `b' is
14465 completely modified with the contents of variable `a'. Real definition
14466 are also known as "killing definitions". Similarly, the use of `a'
14467 reads all its bits.
14469 In contrast, virtual operands are used with variables that can have a
14470 partial or ambiguous reference. This includes structures, arrays,
14471 globals, and aliased variables. In these cases, we have two types of
14472 definitions. For globals, structures, and arrays, we can determine from
14473 a statement whether a variable of these types has a killing definition.
14474 If the variable does, then the statement is marked as having a "must
14475 definition" of that variable. However, if a statement is only defining
14476 a part of the variable (i.e. a field in a structure), or if we know
14477 that a statement might define the variable but we cannot say for sure,
14478 then we mark that statement as having a "may definition". For
14492 The assignment `*p = 5' may be a definition of `a' or `b'. If we
14493 cannot determine statically where `p' is pointing to at the time of the
14494 store operation, we create virtual definitions to mark that statement
14495 as a potential definition site for `a' and `b'. Memory loads are
14496 similarly marked with virtual use operands. Virtual operands are shown
14497 in tree dumps right before the statement that contains them. To
14498 request a tree dump with virtual operands, use the `-vops' option to
14517 Notice that `VDEF' operands have two copies of the referenced
14518 variable. This indicates that this is not a killing definition of that
14519 variable. In this case we refer to it as a "may definition" or
14520 "aliased store". The presence of the second copy of the variable in
14521 the `VDEF' operand will become important when the function is converted
14522 into SSA form. This will be used to link all the non-killing
14523 definitions to prevent optimizations from making incorrect assumptions
14526 Operands are updated as soon as the statement is finished via a call
14527 to `update_stmt'. If statement elements are changed via `SET_USE' or
14528 `SET_DEF', then no further action is required (i.e., those macros take
14529 care of updating the statement). If changes are made by manipulating
14530 the statement's tree directly, then a call must be made to
14531 `update_stmt' when complete. Calling one of the `bsi_insert' routines
14532 or `bsi_replace' performs an implicit call to `update_stmt'.
14534 13.2.1 Operand Iterators And Access Routines
14535 --------------------------------------------
14537 Operands are collected by `tree-ssa-operands.c'. They are stored
14538 inside each statement's annotation and can be accessed through either
14539 the operand iterators or an access routine.
14541 The following access routines are available for examining operands:
14543 1. `SINGLE_SSA_{USE,DEF,TREE}_OPERAND': These accessors will return
14544 NULL unless there is exactly one operand matching the specified
14545 flags. If there is exactly one operand, the operand is returned
14546 as either a `tree', `def_operand_p', or `use_operand_p'.
14548 tree t = SINGLE_SSA_TREE_OPERAND (stmt, flags);
14549 use_operand_p u = SINGLE_SSA_USE_OPERAND (stmt, SSA_ALL_VIRTUAL_USES);
14550 def_operand_p d = SINGLE_SSA_DEF_OPERAND (stmt, SSA_OP_ALL_DEFS);
14552 2. `ZERO_SSA_OPERANDS': This macro returns true if there are no
14553 operands matching the specified flags.
14555 if (ZERO_SSA_OPERANDS (stmt, SSA_OP_ALL_VIRTUALS))
14558 3. `NUM_SSA_OPERANDS': This macro Returns the number of operands
14559 matching 'flags'. This actually executes a loop to perform the
14560 count, so only use this if it is really needed.
14562 int count = NUM_SSA_OPERANDS (stmt, flags)
14564 If you wish to iterate over some or all operands, use the
14565 `FOR_EACH_SSA_{USE,DEF,TREE}_OPERAND' iterator. For example, to print
14566 all the operands for a statement:
14569 print_ops (tree stmt)
14574 FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_OPERANDS)
14575 print_generic_expr (stderr, var, TDF_SLIM);
14578 How to choose the appropriate iterator:
14580 1. Determine whether you are need to see the operand pointers, or
14581 just the trees, and choose the appropriate macro:
14585 use_operand_p FOR_EACH_SSA_USE_OPERAND
14586 def_operand_p FOR_EACH_SSA_DEF_OPERAND
14587 tree FOR_EACH_SSA_TREE_OPERAND
14589 2. You need to declare a variable of the type you are interested in,
14590 and an ssa_op_iter structure which serves as the loop controlling
14593 3. Determine which operands you wish to use, and specify the flags of
14594 those you are interested in. They are documented in
14595 `tree-ssa-operands.h':
14597 #define SSA_OP_USE 0x01 /* Real USE operands. */
14598 #define SSA_OP_DEF 0x02 /* Real DEF operands. */
14599 #define SSA_OP_VUSE 0x04 /* VUSE operands. */
14600 #define SSA_OP_VMAYUSE 0x08 /* USE portion of VDEFS. */
14601 #define SSA_OP_VDEF 0x10 /* DEF portion of VDEFS. */
14603 /* These are commonly grouped operand flags. */
14604 #define SSA_OP_VIRTUAL_USES (SSA_OP_VUSE | SSA_OP_VMAYUSE)
14605 #define SSA_OP_VIRTUAL_DEFS (SSA_OP_VDEF)
14606 #define SSA_OP_ALL_USES (SSA_OP_VIRTUAL_USES | SSA_OP_USE)
14607 #define SSA_OP_ALL_DEFS (SSA_OP_VIRTUAL_DEFS | SSA_OP_DEF)
14608 #define SSA_OP_ALL_OPERANDS (SSA_OP_ALL_USES | SSA_OP_ALL_DEFS)
14610 So if you want to look at the use pointers for all the `USE' and
14611 `VUSE' operands, you would do something like:
14613 use_operand_p use_p;
14616 FOR_EACH_SSA_USE_OPERAND (use_p, stmt, iter, (SSA_OP_USE | SSA_OP_VUSE))
14618 process_use_ptr (use_p);
14621 The `TREE' macro is basically the same as the `USE' and `DEF' macros,
14622 only with the use or def dereferenced via `USE_FROM_PTR (use_p)' and
14623 `DEF_FROM_PTR (def_p)'. Since we aren't using operand pointers, use
14624 and defs flags can be mixed.
14629 FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_VUSE)
14631 print_generic_expr (stderr, var, TDF_SLIM);
14634 `VDEF's are broken into two flags, one for the `DEF' portion
14635 (`SSA_OP_VDEF') and one for the USE portion (`SSA_OP_VMAYUSE'). If all
14636 you want to look at are the `VDEF's together, there is a fourth
14637 iterator macro for this, which returns both a def_operand_p and a
14638 use_operand_p for each `VDEF' in the statement. Note that you don't
14639 need any flags for this one.
14641 use_operand_p use_p;
14642 def_operand_p def_p;
14645 FOR_EACH_SSA_MAYDEF_OPERAND (def_p, use_p, stmt, iter)
14650 There are many examples in the code as well, as well as the
14651 documentation in `tree-ssa-operands.h'.
14653 There are also a couple of variants on the stmt iterators regarding PHI
14656 `FOR_EACH_PHI_ARG' Works exactly like `FOR_EACH_SSA_USE_OPERAND',
14657 except it works over `PHI' arguments instead of statement operands.
14659 /* Look at every virtual PHI use. */
14660 FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_VIRTUAL_USES)
14665 /* Look at every real PHI use. */
14666 FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_USES)
14669 /* Look at every PHI use. */
14670 FOR_EACH_PHI_ARG (use_p, phi_stmt, iter, SSA_OP_ALL_USES)
14673 `FOR_EACH_PHI_OR_STMT_{USE,DEF}' works exactly like
14674 `FOR_EACH_SSA_{USE,DEF}_OPERAND', except it will function on either a
14675 statement or a `PHI' node. These should be used when it is appropriate
14676 but they are not quite as efficient as the individual `FOR_EACH_PHI'
14677 and `FOR_EACH_SSA' routines.
14679 FOR_EACH_PHI_OR_STMT_USE (use_operand_p, stmt, iter, flags)
14684 FOR_EACH_PHI_OR_STMT_DEF (def_operand_p, phi, iter, flags)
14689 13.2.2 Immediate Uses
14690 ---------------------
14692 Immediate use information is now always available. Using the immediate
14693 use iterators, you may examine every use of any `SSA_NAME'. For
14694 instance, to change each use of `ssa_var' to `ssa_var2' and call
14695 fold_stmt on each stmt after that is done:
14697 use_operand_p imm_use_p;
14698 imm_use_iterator iterator;
14699 tree ssa_var, stmt;
14702 FOR_EACH_IMM_USE_STMT (stmt, iterator, ssa_var)
14704 FOR_EACH_IMM_USE_ON_STMT (imm_use_p, iterator)
14705 SET_USE (imm_use_p, ssa_var_2);
14709 There are 2 iterators which can be used. `FOR_EACH_IMM_USE_FAST' is
14710 used when the immediate uses are not changed, i.e., you are looking at
14711 the uses, but not setting them.
14713 If they do get changed, then care must be taken that things are not
14714 changed under the iterators, so use the `FOR_EACH_IMM_USE_STMT' and
14715 `FOR_EACH_IMM_USE_ON_STMT' iterators. They attempt to preserve the
14716 sanity of the use list by moving all the uses for a statement into a
14717 controlled position, and then iterating over those uses. Then the
14718 optimization can manipulate the stmt when all the uses have been
14719 processed. This is a little slower than the FAST version since it adds
14720 a placeholder element and must sort through the list a bit for each
14721 statement. This placeholder element must be also be removed if the
14722 loop is terminated early. The macro `BREAK_FROM_IMM_USE_SAFE' is
14723 provided to do this :
14725 FOR_EACH_IMM_USE_STMT (stmt, iterator, ssa_var)
14727 if (stmt == last_stmt)
14728 BREAK_FROM_SAFE_IMM_USE (iter);
14730 FOR_EACH_IMM_USE_ON_STMT (imm_use_p, iterator)
14731 SET_USE (imm_use_p, ssa_var_2);
14735 There are checks in `verify_ssa' which verify that the immediate use
14736 list is up to date, as well as checking that an optimization didn't
14737 break from the loop without using this macro. It is safe to simply
14738 'break'; from a `FOR_EACH_IMM_USE_FAST' traverse.
14740 Some useful functions and macros:
14741 1. `has_zero_uses (ssa_var)' : Returns true if there are no uses of
14744 2. `has_single_use (ssa_var)' : Returns true if there is only a
14745 single use of `ssa_var'.
14747 3. `single_imm_use (ssa_var, use_operand_p *ptr, tree *stmt)' :
14748 Returns true if there is only a single use of `ssa_var', and also
14749 returns the use pointer and statement it occurs in, in the second
14750 and third parameters.
14752 4. `num_imm_uses (ssa_var)' : Returns the number of immediate uses of
14753 `ssa_var'. It is better not to use this if possible since it simply
14754 utilizes a loop to count the uses.
14756 5. `PHI_ARG_INDEX_FROM_USE (use_p)' : Given a use within a `PHI'
14757 node, return the index number for the use. An assert is triggered
14758 if the use isn't located in a `PHI' node.
14760 6. `USE_STMT (use_p)' : Return the statement a use occurs in.
14762 Note that uses are not put into an immediate use list until their
14763 statement is actually inserted into the instruction stream via a
14766 It is also still possible to utilize lazy updating of statements, but
14767 this should be used only when absolutely required. Both alias analysis
14768 and the dominator optimizations currently do this.
14770 When lazy updating is being used, the immediate use information is out
14771 of date and cannot be used reliably. Lazy updating is achieved by
14772 simply marking statements modified via calls to `mark_stmt_modified'
14773 instead of `update_stmt'. When lazy updating is no longer required,
14774 all the modified statements must have `update_stmt' called in order to
14775 bring them up to date. This must be done before the optimization is
14776 finished, or `verify_ssa' will trigger an abort.
14778 This is done with a simple loop over the instruction stream:
14779 block_stmt_iterator bsi;
14783 for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
14784 update_stmt_if_modified (bsi_stmt (bsi));
14788 File: gccint.info, Node: SSA, Next: Alias analysis, Prev: SSA Operands, Up: Tree SSA
14790 13.3 Static Single Assignment
14791 =============================
14793 Most of the tree optimizers rely on the data flow information provided
14794 by the Static Single Assignment (SSA) form. We implement the SSA form
14795 as described in `R. Cytron, J. Ferrante, B. Rosen, M. Wegman, and K.
14796 Zadeck. Efficiently Computing Static Single Assignment Form and the
14797 Control Dependence Graph. ACM Transactions on Programming Languages
14798 and Systems, 13(4):451-490, October 1991'.
14800 The SSA form is based on the premise that program variables are
14801 assigned in exactly one location in the program. Multiple assignments
14802 to the same variable create new versions of that variable. Naturally,
14803 actual programs are seldom in SSA form initially because variables tend
14804 to be assigned multiple times. The compiler modifies the program
14805 representation so that every time a variable is assigned in the code, a
14806 new version of the variable is created. Different versions of the same
14807 variable are distinguished by subscripting the variable name with its
14808 version number. Variables used in the right-hand side of expressions
14809 are renamed so that their version number matches that of the most
14812 We represent variable versions using `SSA_NAME' nodes. The renaming
14813 process in `tree-ssa.c' wraps every real and virtual operand with an
14814 `SSA_NAME' node which contains the version number and the statement
14815 that created the `SSA_NAME'. Only definitions and virtual definitions
14816 may create new `SSA_NAME' nodes.
14818 Sometimes, flow of control makes it impossible to determine the most
14819 recent version of a variable. In these cases, the compiler inserts an
14820 artificial definition for that variable called "PHI function" or "PHI
14821 node". This new definition merges all the incoming versions of the
14822 variable to create a new name for it. For instance,
14831 # a_4 = PHI <a_1, a_2, a_3>
14834 Since it is not possible to determine which of the three branches will
14835 be taken at runtime, we don't know which of `a_1', `a_2' or `a_3' to
14836 use at the return statement. So, the SSA renamer creates a new version
14837 `a_4' which is assigned the result of "merging" `a_1', `a_2' and `a_3'.
14838 Hence, PHI nodes mean "one of these operands. I don't know which".
14840 The following macros can be used to examine PHI nodes
14842 -- Macro: PHI_RESULT (PHI)
14843 Returns the `SSA_NAME' created by PHI node PHI (i.e., PHI's LHS).
14845 -- Macro: PHI_NUM_ARGS (PHI)
14846 Returns the number of arguments in PHI. This number is exactly
14847 the number of incoming edges to the basic block holding PHI.
14849 -- Macro: PHI_ARG_ELT (PHI, I)
14850 Returns a tuple representing the Ith argument of PHI. Each
14851 element of this tuple contains an `SSA_NAME' VAR and the incoming
14852 edge through which VAR flows.
14854 -- Macro: PHI_ARG_EDGE (PHI, I)
14855 Returns the incoming edge for the Ith argument of PHI.
14857 -- Macro: PHI_ARG_DEF (PHI, I)
14858 Returns the `SSA_NAME' for the Ith argument of PHI.
14860 13.3.1 Preserving the SSA form
14861 ------------------------------
14863 Some optimization passes make changes to the function that invalidate
14864 the SSA property. This can happen when a pass has added new symbols or
14865 changed the program so that variables that were previously aliased
14866 aren't anymore. Whenever something like this happens, the affected
14867 symbols must be renamed into SSA form again. Transformations that emit
14868 new code or replicate existing statements will also need to update the
14871 Since GCC implements two different SSA forms for register and virtual
14872 variables, keeping the SSA form up to date depends on whether you are
14873 updating register or virtual names. In both cases, the general idea
14874 behind incremental SSA updates is similar: when new SSA names are
14875 created, they typically are meant to replace other existing names in
14878 For instance, given the following code:
14881 2 x_1 = PHI (0, x_5)
14892 Suppose that we insert new names `x_10' and `x_11' (lines `4' and `8').
14895 2 x_1 = PHI (0, x_5)
14908 We want to replace all the uses of `x_1' with the new definitions of
14909 `x_10' and `x_11'. Note that the only uses that should be replaced are
14910 those at lines `5', `9' and `11'. Also, the use of `x_7' at line `9'
14911 should _not_ be replaced (this is why we cannot just mark symbol `x' for
14914 Additionally, we may need to insert a PHI node at line `11' because
14915 that is a merge point for `x_10' and `x_11'. So the use of `x_1' at
14916 line `11' will be replaced with the new PHI node. The insertion of PHI
14917 nodes is optional. They are not strictly necessary to preserve the SSA
14918 form, and depending on what the caller inserted, they may not even be
14919 useful for the optimizers.
14921 Updating the SSA form is a two step process. First, the pass has to
14922 identify which names need to be updated and/or which symbols need to be
14923 renamed into SSA form for the first time. When new names are
14924 introduced to replace existing names in the program, the mapping
14925 between the old and the new names are registered by calling
14926 `register_new_name_mapping' (note that if your pass creates new code by
14927 duplicating basic blocks, the call to `tree_duplicate_bb' will set up
14928 the necessary mappings automatically). On the other hand, if your pass
14929 exposes a new symbol that should be put in SSA form for the first time,
14930 the new symbol should be registered with `mark_sym_for_renaming'.
14932 After the replacement mappings have been registered and new symbols
14933 marked for renaming, a call to `update_ssa' makes the registered
14934 changes. This can be done with an explicit call or by creating `TODO'
14935 flags in the `tree_opt_pass' structure for your pass. There are
14936 several `TODO' flags that control the behavior of `update_ssa':
14938 * `TODO_update_ssa'. Update the SSA form inserting PHI nodes for
14939 newly exposed symbols and virtual names marked for updating. When
14940 updating real names, only insert PHI nodes for a real name `O_j'
14941 in blocks reached by all the new and old definitions for `O_j'.
14942 If the iterated dominance frontier for `O_j' is not pruned, we may
14943 end up inserting PHI nodes in blocks that have one or more edges
14944 with no incoming definition for `O_j'. This would lead to
14945 uninitialized warnings for `O_j''s symbol.
14947 * `TODO_update_ssa_no_phi'. Update the SSA form without inserting
14948 any new PHI nodes at all. This is used by passes that have either
14949 inserted all the PHI nodes themselves or passes that need only to
14950 patch use-def and def-def chains for virtuals (e.g., DCE).
14952 * `TODO_update_ssa_full_phi'. Insert PHI nodes everywhere they are
14953 needed. No pruning of the IDF is done. This is used by passes
14954 that need the PHI nodes for `O_j' even if it means that some
14955 arguments will come from the default definition of `O_j''s symbol
14956 (e.g., `pass_linear_transform').
14958 WARNING: If you need to use this flag, chances are that your pass
14959 may be doing something wrong. Inserting PHI nodes for an old name
14960 where not all edges carry a new replacement may lead to silent
14961 codegen errors or spurious uninitialized warnings.
14963 * `TODO_update_ssa_only_virtuals'. Passes that update the SSA form
14964 on their own may want to delegate the updating of virtual names to
14965 the generic updater. Since FUD chains are easier to maintain,
14966 this simplifies the work they need to do. NOTE: If this flag is
14967 used, any OLD->NEW mappings for real names are explicitly
14968 destroyed and only the symbols marked for renaming are processed.
14970 13.3.2 Preserving the virtual SSA form
14971 --------------------------------------
14973 The virtual SSA form is harder to preserve than the non-virtual SSA form
14974 mainly because the set of virtual operands for a statement may change at
14975 what some would consider unexpected times. In general, statement
14976 modifications should be bracketed between calls to `push_stmt_changes'
14977 and `pop_stmt_changes'. For example,
14979 munge_stmt (tree stmt)
14981 push_stmt_changes (&stmt);
14982 ... rewrite STMT ...
14983 pop_stmt_changes (&stmt);
14986 The call to `push_stmt_changes' saves the current state of the
14987 statement operands and the call to `pop_stmt_changes' compares the
14988 saved state with the current one and does the appropriate symbol
14989 marking for the SSA renamer.
14991 It is possible to modify several statements at a time, provided that
14992 `push_stmt_changes' and `pop_stmt_changes' are called in LIFO order, as
14993 when processing a stack of statements.
14995 Additionally, if the pass discovers that it did not need to make
14996 changes to the statement after calling `push_stmt_changes', it can
14997 simply discard the topmost change buffer by calling
14998 `discard_stmt_changes'. This will avoid the expensive operand re-scan
14999 operation and the buffer comparison that determines if symbols need to
15000 be marked for renaming.
15002 13.3.3 Examining `SSA_NAME' nodes
15003 ---------------------------------
15005 The following macros can be used to examine `SSA_NAME' nodes
15007 -- Macro: SSA_NAME_DEF_STMT (VAR)
15008 Returns the statement S that creates the `SSA_NAME' VAR. If S is
15009 an empty statement (i.e., `IS_EMPTY_STMT (S)' returns `true'), it
15010 means that the first reference to this variable is a USE or a VUSE.
15012 -- Macro: SSA_NAME_VERSION (VAR)
15013 Returns the version number of the `SSA_NAME' object VAR.
15015 13.3.4 Walking use-def chains
15016 -----------------------------
15018 -- Tree SSA function: void walk_use_def_chains (VAR, FN, DATA)
15019 Walks use-def chains starting at the `SSA_NAME' node VAR. Calls
15020 function FN at each reaching definition found. Function FN takes
15021 three arguments: VAR, its defining statement (DEF_STMT) and a
15022 generic pointer to whatever state information that FN may want to
15023 maintain (DATA). Function FN is able to stop the walk by
15024 returning `true', otherwise in order to continue the walk, FN
15025 should return `false'.
15027 Note, that if DEF_STMT is a `PHI' node, the semantics are slightly
15028 different. For each argument ARG of the PHI node, this function
15031 1. Walk the use-def chains for ARG.
15033 2. Call `FN (ARG, PHI, DATA)'.
15035 Note how the first argument to FN is no longer the original
15036 variable VAR, but the PHI argument currently being examined. If
15037 FN wants to get at VAR, it should call `PHI_RESULT' (PHI).
15039 13.3.5 Walking the dominator tree
15040 ---------------------------------
15042 -- Tree SSA function: void walk_dominator_tree (WALK_DATA, BB)
15043 This function walks the dominator tree for the current CFG calling
15044 a set of callback functions defined in STRUCT DOM_WALK_DATA in
15045 `domwalk.h'. The call back functions you need to define give you
15046 hooks to execute custom code at various points during traversal:
15048 1. Once to initialize any local data needed while processing BB
15049 and its children. This local data is pushed into an internal
15050 stack which is automatically pushed and popped as the walker
15051 traverses the dominator tree.
15053 2. Once before traversing all the statements in the BB.
15055 3. Once for every statement inside BB.
15057 4. Once after traversing all the statements and before recursing
15058 into BB's dominator children.
15060 5. It then recurses into all the dominator children of BB.
15062 6. After recursing into all the dominator children of BB it can,
15063 optionally, traverse every statement in BB again (i.e.,
15064 repeating steps 2 and 3).
15066 7. Once after walking the statements in BB and BB's dominator
15067 children. At this stage, the block local data stack is
15071 File: gccint.info, Node: Alias analysis, Prev: SSA, Up: Tree SSA
15073 13.4 Alias analysis
15074 ===================
15076 Alias analysis proceeds in 4 main phases:
15078 1. Structural alias analysis.
15080 This phase walks the types for structure variables, and determines
15081 which of the fields can overlap using offset and size of each
15082 field. For each field, a "subvariable" called a "Structure field
15083 tag" (SFT) is created, which represents that field as a separate
15084 variable. All accesses that could possibly overlap with a given
15085 field will have virtual operands for the SFT of that field.
15095 int tmp1, tmp2, tmp3;
15096 SFT.0_2 = VDEF <SFT.0_1>
15098 SFT.1_4 = VDEF <SFT.1_3>
15106 tmp3_7 = tmp1_5 + tmp2_6;
15110 If you copy the symbol tag for a variable for some reason, you
15111 probably also want to copy the subvariables for that variable.
15113 2. Points-to and escape analysis.
15115 This phase walks the use-def chains in the SSA web looking for
15118 * Assignments of the form `P_i = &VAR'
15120 * Assignments of the form P_i = malloc()
15122 * Pointers and ADDR_EXPR that escape the current function.
15124 The concept of `escaping' is the same one used in the Java world.
15125 When a pointer or an ADDR_EXPR escapes, it means that it has been
15126 exposed outside of the current function. So, assignment to global
15127 variables, function arguments and returning a pointer are all
15130 This is where we are currently limited. Since not everything is
15131 renamed into SSA, we lose track of escape properties when a
15132 pointer is stashed inside a field in a structure, for instance.
15133 In those cases, we are assuming that the pointer does escape.
15135 We use escape analysis to determine whether a variable is
15136 call-clobbered. Simply put, if an ADDR_EXPR escapes, then the
15137 variable is call-clobbered. If a pointer P_i escapes, then all
15138 the variables pointed-to by P_i (and its memory tag) also escape.
15140 3. Compute flow-sensitive aliases
15142 We have two classes of memory tags. Memory tags associated with
15143 the pointed-to data type of the pointers in the program. These
15144 tags are called "symbol memory tag" (SMT). The other class are
15145 those associated with SSA_NAMEs, called "name memory tag" (NMT).
15146 The basic idea is that when adding operands for an INDIRECT_REF
15147 *P_i, we will first check whether P_i has a name tag, if it does
15148 we use it, because that will have more precise aliasing
15149 information. Otherwise, we use the standard symbol tag.
15151 In this phase, we go through all the pointers we found in
15152 points-to analysis and create alias sets for the name memory tags
15153 associated with each pointer P_i. If P_i escapes, we mark
15154 call-clobbered the variables it points to and its tag.
15156 4. Compute flow-insensitive aliases
15158 This pass will compare the alias set of every symbol memory tag and
15159 every addressable variable found in the program. Given a symbol
15160 memory tag SMT and an addressable variable V. If the alias sets
15161 of SMT and V conflict (as computed by may_alias_p), then V is
15162 marked as an alias tag and added to the alias set of SMT.
15164 Every language that wishes to perform language-specific alias
15165 analysis should define a function that computes, given a `tree'
15166 node, an alias set for the node. Nodes in different alias sets
15167 are not allowed to alias. For an example, see the C front-end
15168 function `c_get_alias_set'.
15170 For instance, consider the following function:
15187 After aliasing analysis has finished, the symbol memory tag for
15188 pointer `p' will have two aliases, namely variables `a' and `b'. Every
15189 time pointer `p' is dereferenced, we want to mark the operation as a
15190 potential reference to `a' and `b'.
15200 # p_1 = PHI <p_4(1), p_6(2)>;
15202 # a_7 = VDEF <a_3>;
15203 # b_8 = VDEF <b_5>;
15215 In certain cases, the list of may aliases for a pointer may grow too
15216 large. This may cause an explosion in the number of virtual operands
15217 inserted in the code. Resulting in increased memory consumption and
15220 When the number of virtual operands needed to represent aliased loads
15221 and stores grows too large (configurable with `--param
15222 max-aliased-vops'), alias sets are grouped to avoid severe compile-time
15223 slow downs and memory consumption. The alias grouping heuristic
15224 proceeds as follows:
15226 1. Sort the list of pointers in decreasing number of contributed
15229 2. Take the first pointer from the list and reverse the role of the
15230 memory tag and its aliases. Usually, whenever an aliased variable
15231 Vi is found to alias with a memory tag T, we add Vi to the
15232 may-aliases set for T. Meaning that after alias analysis, we will
15235 may-aliases(T) = { V1, V2, V3, ..., Vn }
15237 This means that every statement that references T, will get `n'
15238 virtual operands for each of the Vi tags. But, when alias
15239 grouping is enabled, we make T an alias tag and add it to the
15240 alias set of all the Vi variables:
15242 may-aliases(V1) = { T }
15243 may-aliases(V2) = { T }
15245 may-aliases(Vn) = { T }
15247 This has two effects: (a) statements referencing T will only get a
15248 single virtual operand, and, (b) all the variables Vi will now
15249 appear to alias each other. So, we lose alias precision to
15250 improve compile time. But, in theory, a program with such a high
15251 level of aliasing should not be very optimizable in the first
15254 3. Since variables may be in the alias set of more than one memory
15255 tag, the grouping done in step (2) needs to be extended to all the
15256 memory tags that have a non-empty intersection with the
15257 may-aliases set of tag T. For instance, if we originally had
15258 these may-aliases sets:
15260 may-aliases(T) = { V1, V2, V3 }
15261 may-aliases(R) = { V2, V4 }
15263 In step (2) we would have reverted the aliases for T as:
15265 may-aliases(V1) = { T }
15266 may-aliases(V2) = { T }
15267 may-aliases(V3) = { T }
15269 But note that now V2 is no longer aliased with R. We could add R
15270 to may-aliases(V2), but we are in the process of grouping aliases
15271 to reduce virtual operands so what we do is add V4 to the grouping
15274 may-aliases(V1) = { T }
15275 may-aliases(V2) = { T }
15276 may-aliases(V3) = { T }
15277 may-aliases(V4) = { T }
15279 4. If the total number of virtual operands due to aliasing is still
15280 above the threshold set by max-alias-vops, go back to (2).
15283 File: gccint.info, Node: Loop Analysis and Representation, Next: Machine Desc, Prev: Control Flow, Up: Top
15285 14 Analysis and Representation of Loops
15286 ***************************************
15288 GCC provides extensive infrastructure for work with natural loops, i.e.,
15289 strongly connected components of CFG with only one entry block. This
15290 chapter describes representation of loops in GCC, both on GIMPLE and in
15291 RTL, as well as the interfaces to loop-related analyses (induction
15292 variable analysis and number of iterations analysis).
15296 * Loop representation:: Representation and analysis of loops.
15297 * Loop querying:: Getting information about loops.
15298 * Loop manipulation:: Loop manipulation functions.
15299 * LCSSA:: Loop-closed SSA form.
15300 * Scalar evolutions:: Induction variables on GIMPLE.
15301 * loop-iv:: Induction variables on RTL.
15302 * Number of iterations:: Number of iterations analysis.
15303 * Dependency analysis:: Data dependency analysis.
15304 * Lambda:: Linear loop transformations framework.
15305 * Omega:: A solver for linear programming problems.
15308 File: gccint.info, Node: Loop representation, Next: Loop querying, Up: Loop Analysis and Representation
15310 14.1 Loop representation
15311 ========================
15313 This chapter describes the representation of loops in GCC, and functions
15314 that can be used to build, modify and analyze this representation. Most
15315 of the interfaces and data structures are declared in `cfgloop.h'. At
15316 the moment, loop structures are analyzed and this information is
15317 updated only by the optimization passes that deal with loops, but some
15318 efforts are being made to make it available throughout most of the
15319 optimization passes.
15321 In general, a natural loop has one entry block (header) and possibly
15322 several back edges (latches) leading to the header from the inside of
15323 the loop. Loops with several latches may appear if several loops share
15324 a single header, or if there is a branching in the middle of the loop.
15325 The representation of loops in GCC however allows only loops with a
15326 single latch. During loop analysis, headers of such loops are split and
15327 forwarder blocks are created in order to disambiguate their structures.
15328 Heuristic based on profile information and structure of the induction
15329 variables in the loops is used to determine whether the latches
15330 correspond to sub-loops or to control flow in a single loop. This means
15331 that the analysis sometimes changes the CFG, and if you run it in the
15332 middle of an optimization pass, you must be able to deal with the new
15333 blocks. You may avoid CFG changes by passing
15334 `LOOPS_MAY_HAVE_MULTIPLE_LATCHES' flag to the loop discovery, note
15335 however that most other loop manipulation functions will not work
15336 correctly for loops with multiple latch edges (the functions that only
15337 query membership of blocks to loops and subloop relationships, or
15338 enumerate and test loop exits, can be expected to work).
15340 Body of the loop is the set of blocks that are dominated by its header,
15341 and reachable from its latch against the direction of edges in CFG. The
15342 loops are organized in a containment hierarchy (tree) such that all the
15343 loops immediately contained inside loop L are the children of L in the
15344 tree. This tree is represented by the `struct loops' structure. The
15345 root of this tree is a fake loop that contains all blocks in the
15346 function. Each of the loops is represented in a `struct loop'
15347 structure. Each loop is assigned an index (`num' field of the `struct
15348 loop' structure), and the pointer to the loop is stored in the
15349 corresponding field of the `larray' vector in the loops structure. The
15350 indices do not have to be continuous, there may be empty (`NULL')
15351 entries in the `larray' created by deleting loops. Also, there is no
15352 guarantee on the relative order of a loop and its subloops in the
15353 numbering. The index of a loop never changes.
15355 The entries of the `larray' field should not be accessed directly.
15356 The function `get_loop' returns the loop description for a loop with
15357 the given index. `number_of_loops' function returns number of loops in
15358 the function. To traverse all loops, use `FOR_EACH_LOOP' macro. The
15359 `flags' argument of the macro is used to determine the direction of
15360 traversal and the set of loops visited. Each loop is guaranteed to be
15361 visited exactly once, regardless of the changes to the loop tree, and
15362 the loops may be removed during the traversal. The newly created loops
15363 are never traversed, if they need to be visited, this must be done
15364 separately after their creation. The `FOR_EACH_LOOP' macro allocates
15365 temporary variables. If the `FOR_EACH_LOOP' loop were ended using
15366 break or goto, they would not be released; `FOR_EACH_LOOP_BREAK' macro
15367 must be used instead.
15369 Each basic block contains the reference to the innermost loop it
15370 belongs to (`loop_father'). For this reason, it is only possible to
15371 have one `struct loops' structure initialized at the same time for each
15372 CFG. The global variable `current_loops' contains the `struct loops'
15373 structure. Many of the loop manipulation functions assume that
15374 dominance information is up-to-date.
15376 The loops are analyzed through `loop_optimizer_init' function. The
15377 argument of this function is a set of flags represented in an integer
15378 bitmask. These flags specify what other properties of the loop
15379 structures should be calculated/enforced and preserved later:
15381 * `LOOPS_MAY_HAVE_MULTIPLE_LATCHES': If this flag is set, no changes
15382 to CFG will be performed in the loop analysis, in particular,
15383 loops with multiple latch edges will not be disambiguated. If a
15384 loop has multiple latches, its latch block is set to NULL. Most of
15385 the loop manipulation functions will not work for loops in this
15386 shape. No other flags that require CFG changes can be passed to
15387 loop_optimizer_init.
15389 * `LOOPS_HAVE_PREHEADERS': Forwarder blocks are created in such a
15390 way that each loop has only one entry edge, and additionally, the
15391 source block of this entry edge has only one successor. This
15392 creates a natural place where the code can be moved out of the
15393 loop, and ensures that the entry edge of the loop leads from its
15394 immediate super-loop.
15396 * `LOOPS_HAVE_SIMPLE_LATCHES': Forwarder blocks are created to force
15397 the latch block of each loop to have only one successor. This
15398 ensures that the latch of the loop does not belong to any of its
15399 sub-loops, and makes manipulation with the loops significantly
15400 easier. Most of the loop manipulation functions assume that the
15401 loops are in this shape. Note that with this flag, the "normal"
15402 loop without any control flow inside and with one exit consists of
15405 * `LOOPS_HAVE_MARKED_IRREDUCIBLE_REGIONS': Basic blocks and edges in
15406 the strongly connected components that are not natural loops (have
15407 more than one entry block) are marked with `BB_IRREDUCIBLE_LOOP'
15408 and `EDGE_IRREDUCIBLE_LOOP' flags. The flag is not set for blocks
15409 and edges that belong to natural loops that are in such an
15410 irreducible region (but it is set for the entry and exit edges of
15411 such a loop, if they lead to/from this region).
15413 * `LOOPS_HAVE_RECORDED_EXITS': The lists of exits are recorded and
15414 updated for each loop. This makes some functions (e.g.,
15415 `get_loop_exit_edges') more efficient. Some functions (e.g.,
15416 `single_exit') can be used only if the lists of exits are recorded.
15418 These properties may also be computed/enforced later, using functions
15419 `create_preheaders', `force_single_succ_latches',
15420 `mark_irreducible_loops' and `record_loop_exits'.
15422 The memory occupied by the loops structures should be freed with
15423 `loop_optimizer_finalize' function.
15425 The CFG manipulation functions in general do not update loop
15426 structures. Specialized versions that additionally do so are provided
15427 for the most common tasks. On GIMPLE, `cleanup_tree_cfg_loop' function
15428 can be used to cleanup CFG while updating the loops structures if
15429 `current_loops' is set.
15432 File: gccint.info, Node: Loop querying, Next: Loop manipulation, Prev: Loop representation, Up: Loop Analysis and Representation
15437 The functions to query the information about loops are declared in
15438 `cfgloop.h'. Some of the information can be taken directly from the
15439 structures. `loop_father' field of each basic block contains the
15440 innermost loop to that the block belongs. The most useful fields of
15441 loop structure (that are kept up-to-date at all times) are:
15443 * `header', `latch': Header and latch basic blocks of the loop.
15445 * `num_nodes': Number of basic blocks in the loop (including the
15446 basic blocks of the sub-loops).
15448 * `depth': The depth of the loop in the loops tree, i.e., the number
15449 of super-loops of the loop.
15451 * `outer', `inner', `next': The super-loop, the first sub-loop, and
15452 the sibling of the loop in the loops tree.
15454 There are other fields in the loop structures, many of them used only
15455 by some of the passes, or not updated during CFG changes; in general,
15456 they should not be accessed directly.
15458 The most important functions to query loop structures are:
15460 * `flow_loops_dump': Dumps the information about loops to a file.
15462 * `verify_loop_structure': Checks consistency of the loop structures.
15464 * `loop_latch_edge': Returns the latch edge of a loop.
15466 * `loop_preheader_edge': If loops have preheaders, returns the
15467 preheader edge of a loop.
15469 * `flow_loop_nested_p': Tests whether loop is a sub-loop of another
15472 * `flow_bb_inside_loop_p': Tests whether a basic block belongs to a
15473 loop (including its sub-loops).
15475 * `find_common_loop': Finds the common super-loop of two loops.
15477 * `superloop_at_depth': Returns the super-loop of a loop with the
15480 * `tree_num_loop_insns', `num_loop_insns': Estimates the number of
15481 insns in the loop, on GIMPLE and on RTL.
15483 * `loop_exit_edge_p': Tests whether edge is an exit from a loop.
15485 * `mark_loop_exit_edges': Marks all exit edges of all loops with
15486 `EDGE_LOOP_EXIT' flag.
15488 * `get_loop_body', `get_loop_body_in_dom_order',
15489 `get_loop_body_in_bfs_order': Enumerates the basic blocks in the
15490 loop in depth-first search order in reversed CFG, ordered by
15491 dominance relation, and breath-first search order, respectively.
15493 * `single_exit': Returns the single exit edge of the loop, or `NULL'
15494 if the loop has more than one exit. You can only use this
15495 function if LOOPS_HAVE_MARKED_SINGLE_EXITS property is used.
15497 * `get_loop_exit_edges': Enumerates the exit edges of a loop.
15499 * `just_once_each_iteration_p': Returns true if the basic block is
15500 executed exactly once during each iteration of a loop (that is, it
15501 does not belong to a sub-loop, and it dominates the latch of the
15505 File: gccint.info, Node: Loop manipulation, Next: LCSSA, Prev: Loop querying, Up: Loop Analysis and Representation
15507 14.3 Loop manipulation
15508 ======================
15510 The loops tree can be manipulated using the following functions:
15512 * `flow_loop_tree_node_add': Adds a node to the tree.
15514 * `flow_loop_tree_node_remove': Removes a node from the tree.
15516 * `add_bb_to_loop': Adds a basic block to a loop.
15518 * `remove_bb_from_loops': Removes a basic block from loops.
15520 Most low-level CFG functions update loops automatically. The following
15521 functions handle some more complicated cases of CFG manipulations:
15523 * `remove_path': Removes an edge and all blocks it dominates.
15525 * `split_loop_exit_edge': Splits exit edge of the loop, ensuring
15526 that PHI node arguments remain in the loop (this ensures that
15527 loop-closed SSA form is preserved). Only useful on GIMPLE.
15529 Finally, there are some higher-level loop transformations implemented.
15530 While some of them are written so that they should work on non-innermost
15531 loops, they are mostly untested in that case, and at the moment, they
15532 are only reliable for the innermost loops:
15534 * `create_iv': Creates a new induction variable. Only works on
15535 GIMPLE. `standard_iv_increment_position' can be used to find a
15536 suitable place for the iv increment.
15538 * `duplicate_loop_to_header_edge',
15539 `tree_duplicate_loop_to_header_edge': These functions (on RTL and
15540 on GIMPLE) duplicate the body of the loop prescribed number of
15541 times on one of the edges entering loop header, thus performing
15542 either loop unrolling or loop peeling. `can_duplicate_loop_p'
15543 (`can_unroll_loop_p' on GIMPLE) must be true for the duplicated
15546 * `loop_version', `tree_ssa_loop_version': These function create a
15547 copy of a loop, and a branch before them that selects one of them
15548 depending on the prescribed condition. This is useful for
15549 optimizations that need to verify some assumptions in runtime (one
15550 of the copies of the loop is usually left unchanged, while the
15551 other one is transformed in some way).
15553 * `tree_unroll_loop': Unrolls the loop, including peeling the extra
15554 iterations to make the number of iterations divisible by unroll
15555 factor, updating the exit condition, and removing the exits that
15556 now cannot be taken. Works only on GIMPLE.
15559 File: gccint.info, Node: LCSSA, Next: Scalar evolutions, Prev: Loop manipulation, Up: Loop Analysis and Representation
15561 14.4 Loop-closed SSA form
15562 =========================
15564 Throughout the loop optimizations on tree level, one extra condition is
15565 enforced on the SSA form: No SSA name is used outside of the loop in
15566 that it is defined. The SSA form satisfying this condition is called
15567 "loop-closed SSA form" - LCSSA. To enforce LCSSA, PHI nodes must be
15568 created at the exits of the loops for the SSA names that are used
15569 outside of them. Only the real operands (not virtual SSA names) are
15570 held in LCSSA, in order to save memory.
15572 There are various benefits of LCSSA:
15574 * Many optimizations (value range analysis, final value replacement)
15575 are interested in the values that are defined in the loop and used
15576 outside of it, i.e., exactly those for that we create new PHI
15579 * In induction variable analysis, it is not necessary to specify the
15580 loop in that the analysis should be performed - the scalar
15581 evolution analysis always returns the results with respect to the
15582 loop in that the SSA name is defined.
15584 * It makes updating of SSA form during loop transformations simpler.
15585 Without LCSSA, operations like loop unrolling may force creation
15586 of PHI nodes arbitrarily far from the loop, while in LCSSA, the
15587 SSA form can be updated locally. However, since we only keep real
15588 operands in LCSSA, we cannot use this advantage (we could have
15589 local updating of real operands, but it is not much more efficient
15590 than to use generic SSA form updating for it as well; the amount
15591 of changes to SSA is the same).
15593 However, it also means LCSSA must be updated. This is usually
15594 straightforward, unless you create a new value in loop and use it
15595 outside, or unless you manipulate loop exit edges (functions are
15596 provided to make these manipulations simple).
15597 `rewrite_into_loop_closed_ssa' is used to rewrite SSA form to LCSSA,
15598 and `verify_loop_closed_ssa' to check that the invariant of LCSSA is
15602 File: gccint.info, Node: Scalar evolutions, Next: loop-iv, Prev: LCSSA, Up: Loop Analysis and Representation
15604 14.5 Scalar evolutions
15605 ======================
15607 Scalar evolutions (SCEV) are used to represent results of induction
15608 variable analysis on GIMPLE. They enable us to represent variables with
15609 complicated behavior in a simple and consistent way (we only use it to
15610 express values of polynomial induction variables, but it is possible to
15611 extend it). The interfaces to SCEV analysis are declared in
15612 `tree-scalar-evolution.h'. To use scalar evolutions analysis,
15613 `scev_initialize' must be used. To stop using SCEV, `scev_finalize'
15614 should be used. SCEV analysis caches results in order to save time and
15615 memory. This cache however is made invalid by most of the loop
15616 transformations, including removal of code. If such a transformation
15617 is performed, `scev_reset' must be called to clean the caches.
15619 Given an SSA name, its behavior in loops can be analyzed using the
15620 `analyze_scalar_evolution' function. The returned SCEV however does
15621 not have to be fully analyzed and it may contain references to other
15622 SSA names defined in the loop. To resolve these (potentially
15623 recursive) references, `instantiate_parameters' or `resolve_mixers'
15624 functions must be used. `instantiate_parameters' is useful when you
15625 use the results of SCEV only for some analysis, and when you work with
15626 whole nest of loops at once. It will try replacing all SSA names by
15627 their SCEV in all loops, including the super-loops of the current loop,
15628 thus providing a complete information about the behavior of the
15629 variable in the loop nest. `resolve_mixers' is useful if you work with
15630 only one loop at a time, and if you possibly need to create code based
15631 on the value of the induction variable. It will only resolve the SSA
15632 names defined in the current loop, leaving the SSA names defined
15633 outside unchanged, even if their evolution in the outer loops is known.
15635 The SCEV is a normal tree expression, except for the fact that it may
15636 contain several special tree nodes. One of them is `SCEV_NOT_KNOWN',
15637 used for SSA names whose value cannot be expressed. The other one is
15638 `POLYNOMIAL_CHREC'. Polynomial chrec has three arguments - base, step
15639 and loop (both base and step may contain further polynomial chrecs).
15640 Type of the expression and of base and step must be the same. A
15641 variable has evolution `POLYNOMIAL_CHREC(base, step, loop)' if it is
15642 (in the specified loop) equivalent to `x_1' in the following example
15646 x_1 = phi (base, x_2);
15650 Note that this includes the language restrictions on the operations.
15651 For example, if we compile C code and `x' has signed type, then the
15652 overflow in addition would cause undefined behavior, and we may assume
15653 that this does not happen. Hence, the value with this SCEV cannot
15654 overflow (which restricts the number of iterations of such a loop).
15656 In many cases, one wants to restrict the attention just to affine
15657 induction variables. In this case, the extra expressive power of SCEV
15658 is not useful, and may complicate the optimizations. In this case,
15659 `simple_iv' function may be used to analyze a value - the result is a
15660 loop-invariant base and step.
15663 File: gccint.info, Node: loop-iv, Next: Number of iterations, Prev: Scalar evolutions, Up: Loop Analysis and Representation
15665 14.6 IV analysis on RTL
15666 =======================
15668 The induction variable on RTL is simple and only allows analysis of
15669 affine induction variables, and only in one loop at once. The interface
15670 is declared in `cfgloop.h'. Before analyzing induction variables in a
15671 loop L, `iv_analysis_loop_init' function must be called on L. After
15672 the analysis (possibly calling `iv_analysis_loop_init' for several
15673 loops) is finished, `iv_analysis_done' should be called. The following
15674 functions can be used to access the results of the analysis:
15676 * `iv_analyze': Analyzes a single register used in the given insn.
15677 If no use of the register in this insn is found, the following
15678 insns are scanned, so that this function can be called on the insn
15679 returned by get_condition.
15681 * `iv_analyze_result': Analyzes result of the assignment in the
15684 * `iv_analyze_expr': Analyzes a more complicated expression. All
15685 its operands are analyzed by `iv_analyze', and hence they must be
15686 used in the specified insn or one of the following insns.
15688 The description of the induction variable is provided in `struct
15689 rtx_iv'. In order to handle subregs, the representation is a bit
15690 complicated; if the value of the `extend' field is not `UNKNOWN', the
15691 value of the induction variable in the i-th iteration is
15693 delta + mult * extend_{extend_mode} (subreg_{mode} (base + i * step)),
15695 with the following exception: if `first_special' is true, then the
15696 value in the first iteration (when `i' is zero) is `delta + mult *
15697 base'. However, if `extend' is equal to `UNKNOWN', then
15698 `first_special' must be false, `delta' 0, `mult' 1 and the value in the
15701 subreg_{mode} (base + i * step)
15703 The function `get_iv_value' can be used to perform these calculations.
15706 File: gccint.info, Node: Number of iterations, Next: Dependency analysis, Prev: loop-iv, Up: Loop Analysis and Representation
15708 14.7 Number of iterations analysis
15709 ==================================
15711 Both on GIMPLE and on RTL, there are functions available to determine
15712 the number of iterations of a loop, with a similar interface. The
15713 number of iterations of a loop in GCC is defined as the number of
15714 executions of the loop latch. In many cases, it is not possible to
15715 determine the number of iterations unconditionally - the determined
15716 number is correct only if some assumptions are satisfied. The analysis
15717 tries to verify these conditions using the information contained in the
15718 program; if it fails, the conditions are returned together with the
15719 result. The following information and conditions are provided by the
15722 * `assumptions': If this condition is false, the rest of the
15723 information is invalid.
15725 * `noloop_assumptions' on RTL, `may_be_zero' on GIMPLE: If this
15726 condition is true, the loop exits in the first iteration.
15728 * `infinite': If this condition is true, the loop is infinite. This
15729 condition is only available on RTL. On GIMPLE, conditions for
15730 finiteness of the loop are included in `assumptions'.
15732 * `niter_expr' on RTL, `niter' on GIMPLE: The expression that gives
15733 number of iterations. The number of iterations is defined as the
15734 number of executions of the loop latch.
15736 Both on GIMPLE and on RTL, it necessary for the induction variable
15737 analysis framework to be initialized (SCEV on GIMPLE, loop-iv on RTL).
15738 On GIMPLE, the results are stored to `struct tree_niter_desc'
15739 structure. Number of iterations before the loop is exited through a
15740 given exit can be determined using `number_of_iterations_exit'
15741 function. On RTL, the results are returned in `struct niter_desc'
15742 structure. The corresponding function is named `check_simple_exit'.
15743 There are also functions that pass through all the exits of a loop and
15744 try to find one with easy to determine number of iterations -
15745 `find_loop_niter' on GIMPLE and `find_simple_exit' on RTL. Finally,
15746 there are functions that provide the same information, but additionally
15747 cache it, so that repeated calls to number of iterations are not so
15748 costly - `number_of_latch_executions' on GIMPLE and
15749 `get_simple_loop_desc' on RTL.
15751 Note that some of these functions may behave slightly differently than
15752 others - some of them return only the expression for the number of
15753 iterations, and fail if there are some assumptions. The function
15754 `number_of_latch_executions' works only for single-exit loops. The
15755 function `number_of_cond_exit_executions' can be used to determine
15756 number of executions of the exit condition of a single-exit loop (i.e.,
15757 the `number_of_latch_executions' increased by one).
15760 File: gccint.info, Node: Dependency analysis, Next: Lambda, Prev: Number of iterations, Up: Loop Analysis and Representation
15762 14.8 Data Dependency Analysis
15763 =============================
15765 The code for the data dependence analysis can be found in
15766 `tree-data-ref.c' and its interface and data structures are described
15767 in `tree-data-ref.h'. The function that computes the data dependences
15768 for all the array and pointer references for a given loop is
15769 `compute_data_dependences_for_loop'. This function is currently used
15770 by the linear loop transform and the vectorization passes. Before
15771 calling this function, one has to allocate two vectors: a first vector
15772 will contain the set of data references that are contained in the
15773 analyzed loop body, and the second vector will contain the dependence
15774 relations between the data references. Thus if the vector of data
15775 references is of size `n', the vector containing the dependence
15776 relations will contain `n*n' elements. However if the analyzed loop
15777 contains side effects, such as calls that potentially can interfere
15778 with the data references in the current analyzed loop, the analysis
15779 stops while scanning the loop body for data references, and inserts a
15780 single `chrec_dont_know' in the dependence relation array.
15782 The data references are discovered in a particular order during the
15783 scanning of the loop body: the loop body is analyzed in execution order,
15784 and the data references of each statement are pushed at the end of the
15785 data reference array. Two data references syntactically occur in the
15786 program in the same order as in the array of data references. This
15787 syntactic order is important in some classical data dependence tests,
15788 and mapping this order to the elements of this array avoids costly
15789 queries to the loop body representation.
15791 Three types of data references are currently handled: ARRAY_REF,
15792 INDIRECT_REF and COMPONENT_REF. The data structure for the data
15793 reference is `data_reference', where `data_reference_p' is a name of a
15794 pointer to the data reference structure. The structure contains the
15795 following elements:
15797 * `base_object_info': Provides information about the base object of
15798 the data reference and its access functions. These access functions
15799 represent the evolution of the data reference in the loop relative
15800 to its base, in keeping with the classical meaning of the data
15801 reference access function for the support of arrays. For example,
15802 for a reference `a.b[i][j]', the base object is `a.b' and the
15803 access functions, one for each array subscript, are: `{i_init, +
15804 i_step}_1, {j_init, +, j_step}_2'.
15806 * `first_location_in_loop': Provides information about the first
15807 location accessed by the data reference in the loop and about the
15808 access function used to represent evolution relative to this
15809 location. This data is used to support pointers, and is not used
15810 for arrays (for which we have base objects). Pointer accesses are
15811 represented as a one-dimensional access that starts from the first
15812 location accessed in the loop. For example:
15816 *((int *)p + i + j) = a[i][j];
15818 The access function of the pointer access is `{0, + 4B}_for2'
15819 relative to `p + i'. The access functions of the array are
15820 `{i_init, + i_step}_for1' and `{j_init, +, j_step}_for2' relative
15823 Usually, the object the pointer refers to is either unknown, or we
15824 can't prove that the access is confined to the boundaries of a
15827 Two data references can be compared only if at least one of these
15828 two representations has all its fields filled for both data
15831 The current strategy for data dependence tests is as follows: If
15832 both `a' and `b' are represented as arrays, compare
15833 `a.base_object' and `b.base_object'; if they are equal, apply
15834 dependence tests (use access functions based on base_objects).
15835 Else if both `a' and `b' are represented as pointers, compare
15836 `a.first_location' and `b.first_location'; if they are equal,
15837 apply dependence tests (use access functions based on first
15838 location). However, if `a' and `b' are represented differently,
15839 only try to prove that the bases are definitely different.
15841 * Aliasing information.
15843 * Alignment information.
15845 The structure describing the relation between two data references is
15846 `data_dependence_relation' and the shorter name for a pointer to such a
15847 structure is `ddr_p'. This structure contains:
15849 * a pointer to each data reference,
15851 * a tree node `are_dependent' that is set to `chrec_known' if the
15852 analysis has proved that there is no dependence between these two
15853 data references, `chrec_dont_know' if the analysis was not able to
15854 determine any useful result and potentially there could exist a
15855 dependence between these data references, and `are_dependent' is
15856 set to `NULL_TREE' if there exist a dependence relation between the
15857 data references, and the description of this dependence relation is
15858 given in the `subscripts', `dir_vects', and `dist_vects' arrays,
15860 * a boolean that determines whether the dependence relation can be
15861 represented by a classical distance vector,
15863 * an array `subscripts' that contains a description of each
15864 subscript of the data references. Given two array accesses a
15865 subscript is the tuple composed of the access functions for a given
15866 dimension. For example, given `A[f1][f2][f3]' and
15867 `B[g1][g2][g3]', there are three subscripts: `(f1, g1), (f2, g2),
15870 * two arrays `dir_vects' and `dist_vects' that contain classical
15871 representations of the data dependences under the form of
15872 direction and distance dependence vectors,
15874 * an array of loops `loop_nest' that contains the loops to which the
15875 distance and direction vectors refer to.
15877 Several functions for pretty printing the information extracted by the
15878 data dependence analysis are available: `dump_ddrs' prints with a
15879 maximum verbosity the details of a data dependence relations array,
15880 `dump_dist_dir_vectors' prints only the classical distance and
15881 direction vectors for a data dependence relations array, and
15882 `dump_data_references' prints the details of the data references
15883 contained in a data reference array.
15886 File: gccint.info, Node: Lambda, Next: Omega, Prev: Dependency analysis, Up: Loop Analysis and Representation
15888 14.9 Linear loop transformations framework
15889 ==========================================
15891 Lambda is a framework that allows transformations of loops using
15892 non-singular matrix based transformations of the iteration space and
15893 loop bounds. This allows compositions of skewing, scaling, interchange,
15894 and reversal transformations. These transformations are often used to
15895 improve cache behavior or remove inner loop dependencies to allow
15896 parallelization and vectorization to take place.
15898 To perform these transformations, Lambda requires that the loopnest be
15899 converted into a internal form that can be matrix transformed easily.
15900 To do this conversion, the function `gcc_loopnest_to_lambda_loopnest'
15901 is provided. If the loop cannot be transformed using lambda, this
15902 function will return NULL.
15904 Once a `lambda_loopnest' is obtained from the conversion function, it
15905 can be transformed by using `lambda_loopnest_transform', which takes a
15906 transformation matrix to apply. Note that it is up to the caller to
15907 verify that the transformation matrix is legal to apply to the loop
15908 (dependence respecting, etc). Lambda simply applies whatever matrix it
15909 is told to provide. It can be extended to make legal matrices out of
15910 any non-singular matrix, but this is not currently implemented.
15911 Legality of a matrix for a given loopnest can be verified using
15912 `lambda_transform_legal_p'.
15914 Given a transformed loopnest, conversion back into gcc IR is done by
15915 `lambda_loopnest_to_gcc_loopnest'. This function will modify the loops
15916 so that they match the transformed loopnest.
15919 File: gccint.info, Node: Omega, Prev: Lambda, Up: Loop Analysis and Representation
15921 14.10 Omega a solver for linear programming problems
15922 ====================================================
15924 The data dependence analysis contains several solvers triggered
15925 sequentially from the less complex ones to the more sophisticated. For
15926 ensuring the consistency of the results of these solvers, a data
15927 dependence check pass has been implemented based on two different
15928 solvers. The second method that has been integrated to GCC is based on
15929 the Omega dependence solver, written in the 1990's by William Pugh and
15930 David Wonnacott. Data dependence tests can be formulated using a
15931 subset of the Presburger arithmetics that can be translated to linear
15932 constraint systems. These linear constraint systems can then be solved
15933 using the Omega solver.
15935 The Omega solver is using Fourier-Motzkin's algorithm for variable
15936 elimination: a linear constraint system containing `n' variables is
15937 reduced to a linear constraint system with `n-1' variables. The Omega
15938 solver can also be used for solving other problems that can be
15939 expressed under the form of a system of linear equalities and
15940 inequalities. The Omega solver is known to have an exponential worst
15941 case, also known under the name of "omega nightmare" in the literature,
15942 but in practice, the omega test is known to be efficient for the common
15943 data dependence tests.
15945 The interface used by the Omega solver for describing the linear
15946 programming problems is described in `omega.h', and the solver is
15947 `omega_solve_problem'.
15950 File: gccint.info, Node: Control Flow, Next: Loop Analysis and Representation, Prev: Tree SSA, Up: Top
15952 15 Control Flow Graph
15953 *********************
15955 A control flow graph (CFG) is a data structure built on top of the
15956 intermediate code representation (the RTL or `tree' instruction stream)
15957 abstracting the control flow behavior of a function that is being
15958 compiled. The CFG is a directed graph where the vertices represent
15959 basic blocks and edges represent possible transfer of control flow from
15960 one basic block to another. The data structures used to represent the
15961 control flow graph are defined in `basic-block.h'.
15965 * Basic Blocks:: The definition and representation of basic blocks.
15966 * Edges:: Types of edges and their representation.
15967 * Profile information:: Representation of frequencies and probabilities.
15968 * Maintaining the CFG:: Keeping the control flow graph and up to date.
15969 * Liveness information:: Using and maintaining liveness information.
15972 File: gccint.info, Node: Basic Blocks, Next: Edges, Up: Control Flow
15977 A basic block is a straight-line sequence of code with only one entry
15978 point and only one exit. In GCC, basic blocks are represented using
15979 the `basic_block' data type.
15981 Two pointer members of the `basic_block' structure are the pointers
15982 `next_bb' and `prev_bb'. These are used to keep doubly linked chain of
15983 basic blocks in the same order as the underlying instruction stream.
15984 The chain of basic blocks is updated transparently by the provided API
15985 for manipulating the CFG. The macro `FOR_EACH_BB' can be used to visit
15986 all the basic blocks in lexicographical order. Dominator traversals
15987 are also possible using `walk_dominator_tree'. Given two basic blocks
15988 A and B, block A dominates block B if A is _always_ executed before B.
15990 The `BASIC_BLOCK' array contains all basic blocks in an unspecified
15991 order. Each `basic_block' structure has a field that holds a unique
15992 integer identifier `index' that is the index of the block in the
15993 `BASIC_BLOCK' array. The total number of basic blocks in the function
15994 is `n_basic_blocks'. Both the basic block indices and the total number
15995 of basic blocks may vary during the compilation process, as passes
15996 reorder, create, duplicate, and destroy basic blocks. The index for
15997 any block should never be greater than `last_basic_block'.
15999 Special basic blocks represent possible entry and exit points of a
16000 function. These blocks are called `ENTRY_BLOCK_PTR' and
16001 `EXIT_BLOCK_PTR'. These blocks do not contain any code, and are not
16002 elements of the `BASIC_BLOCK' array. Therefore they have been assigned
16003 unique, negative index numbers.
16005 Each `basic_block' also contains pointers to the first instruction
16006 (the "head") and the last instruction (the "tail") or "end" of the
16007 instruction stream contained in a basic block. In fact, since the
16008 `basic_block' data type is used to represent blocks in both major
16009 intermediate representations of GCC (`tree' and RTL), there are
16010 pointers to the head and end of a basic block for both representations.
16012 For RTL, these pointers are `rtx head, end'. In the RTL function
16013 representation, the head pointer always points either to a
16014 `NOTE_INSN_BASIC_BLOCK' or to a `CODE_LABEL', if present. In the RTL
16015 representation of a function, the instruction stream contains not only
16016 the "real" instructions, but also "notes". Any function that moves or
16017 duplicates the basic blocks needs to take care of updating of these
16018 notes. Many of these notes expect that the instruction stream consists
16019 of linear regions, making such updates difficult. The
16020 `NOTE_INSN_BASIC_BLOCK' note is the only kind of note that may appear
16021 in the instruction stream contained in a basic block. The instruction
16022 stream of a basic block always follows a `NOTE_INSN_BASIC_BLOCK', but
16023 zero or more `CODE_LABEL' nodes can precede the block note. A basic
16024 block ends by control flow instruction or last instruction before
16025 following `CODE_LABEL' or `NOTE_INSN_BASIC_BLOCK'. A `CODE_LABEL'
16026 cannot appear in the instruction stream of a basic block.
16028 In addition to notes, the jump table vectors are also represented as
16029 "pseudo-instructions" inside the insn stream. These vectors never
16030 appear in the basic block and should always be placed just after the
16031 table jump instructions referencing them. After removing the
16032 table-jump it is often difficult to eliminate the code computing the
16033 address and referencing the vector, so cleaning up these vectors is
16034 postponed until after liveness analysis. Thus the jump table vectors
16035 may appear in the insn stream unreferenced and without any purpose.
16036 Before any edge is made "fall-thru", the existence of such construct in
16037 the way needs to be checked by calling `can_fallthru' function.
16039 For the `tree' representation, the head and end of the basic block are
16040 being pointed to by the `stmt_list' field, but this special `tree'
16041 should never be referenced directly. Instead, at the tree level
16042 abstract containers and iterators are used to access statements and
16043 expressions in basic blocks. These iterators are called "block
16044 statement iterators" (BSIs). Grep for `^bsi' in the various `tree-*'
16045 files. The following snippet will pretty-print all the statements of
16046 the program in the GIMPLE representation.
16050 block_stmt_iterator si;
16052 for (si = bsi_start (bb); !bsi_end_p (si); bsi_next (&si))
16054 tree stmt = bsi_stmt (si);
16055 print_generic_stmt (stderr, stmt, 0);
16060 File: gccint.info, Node: Edges, Next: Profile information, Prev: Basic Blocks, Up: Control Flow
16065 Edges represent possible control flow transfers from the end of some
16066 basic block A to the head of another basic block B. We say that A is a
16067 predecessor of B, and B is a successor of A. Edges are represented in
16068 GCC with the `edge' data type. Each `edge' acts as a link between two
16069 basic blocks: the `src' member of an edge points to the predecessor
16070 basic block of the `dest' basic block. The members `preds' and `succs'
16071 of the `basic_block' data type point to type-safe vectors of edges to
16072 the predecessors and successors of the block.
16074 When walking the edges in an edge vector, "edge iterators" should be
16075 used. Edge iterators are constructed using the `edge_iterator' data
16076 structure and several methods are available to operate on them:
16079 This function initializes an `edge_iterator' that points to the
16080 first edge in a vector of edges.
16083 This function initializes an `edge_iterator' that points to the
16084 last edge in a vector of edges.
16087 This predicate is `true' if an `edge_iterator' represents the last
16088 edge in an edge vector.
16090 `ei_one_before_end_p'
16091 This predicate is `true' if an `edge_iterator' represents the
16092 second last edge in an edge vector.
16095 This function takes a pointer to an `edge_iterator' and makes it
16096 point to the next edge in the sequence.
16099 This function takes a pointer to an `edge_iterator' and makes it
16100 point to the previous edge in the sequence.
16103 This function returns the `edge' currently pointed to by an
16107 This function returns the `edge' currently pointed to by an
16108 `edge_iterator', but returns `NULL' if the iterator is pointing at
16109 the end of the sequence. This function has been provided for
16110 existing code makes the assumption that a `NULL' edge indicates
16111 the end of the sequence.
16114 The convenience macro `FOR_EACH_EDGE' can be used to visit all of the
16115 edges in a sequence of predecessor or successor edges. It must not be
16116 used when an element might be removed during the traversal, otherwise
16117 elements will be missed. Here is an example of how to use the macro:
16122 FOR_EACH_EDGE (e, ei, bb->succs)
16124 if (e->flags & EDGE_FALLTHRU)
16128 There are various reasons why control flow may transfer from one block
16129 to another. One possibility is that some instruction, for example a
16130 `CODE_LABEL', in a linearized instruction stream just always starts a
16131 new basic block. In this case a "fall-thru" edge links the basic block
16132 to the first following basic block. But there are several other
16133 reasons why edges may be created. The `flags' field of the `edge' data
16134 type is used to store information about the type of edge we are dealing
16135 with. Each edge is of one of the following types:
16138 No type flags are set for edges corresponding to jump instructions.
16139 These edges are used for unconditional or conditional jumps and in
16140 RTL also for table jumps. They are the easiest to manipulate as
16141 they may be freely redirected when the flow graph is not in SSA
16145 Fall-thru edges are present in case where the basic block may
16146 continue execution to the following one without branching. These
16147 edges have the `EDGE_FALLTHRU' flag set. Unlike other types of
16148 edges, these edges must come into the basic block immediately
16149 following in the instruction stream. The function
16150 `force_nonfallthru' is available to insert an unconditional jump
16151 in the case that redirection is needed. Note that this may
16152 require creation of a new basic block.
16154 _exception handling_
16155 Exception handling edges represent possible control transfers from
16156 a trapping instruction to an exception handler. The definition of
16157 "trapping" varies. In C++, only function calls can throw, but for
16158 Java, exceptions like division by zero or segmentation fault are
16159 defined and thus each instruction possibly throwing this kind of
16160 exception needs to be handled as control flow instruction.
16161 Exception edges have the `EDGE_ABNORMAL' and `EDGE_EH' flags set.
16163 When updating the instruction stream it is easy to change possibly
16164 trapping instruction to non-trapping, by simply removing the
16165 exception edge. The opposite conversion is difficult, but should
16166 not happen anyway. The edges can be eliminated via
16167 `purge_dead_edges' call.
16169 In the RTL representation, the destination of an exception edge is
16170 specified by `REG_EH_REGION' note attached to the insn. In case
16171 of a trapping call the `EDGE_ABNORMAL_CALL' flag is set too. In
16172 the `tree' representation, this extra flag is not set.
16174 In the RTL representation, the predicate `may_trap_p' may be used
16175 to check whether instruction still may trap or not. For the tree
16176 representation, the `tree_could_trap_p' predicate is available,
16177 but this predicate only checks for possible memory traps, as in
16178 dereferencing an invalid pointer location.
16181 Sibling calls or tail calls terminate the function in a
16182 non-standard way and thus an edge to the exit must be present.
16183 `EDGE_SIBCALL' and `EDGE_ABNORMAL' are set in such case. These
16184 edges only exist in the RTL representation.
16187 Computed jumps contain edges to all labels in the function
16188 referenced from the code. All those edges have `EDGE_ABNORMAL'
16189 flag set. The edges used to represent computed jumps often cause
16190 compile time performance problems, since functions consisting of
16191 many taken labels and many computed jumps may have _very_ dense
16192 flow graphs, so these edges need to be handled with special care.
16193 During the earlier stages of the compilation process, GCC tries to
16194 avoid such dense flow graphs by factoring computed jumps. For
16195 example, given the following series of jumps,
16206 factoring the computed jumps results in the following code sequence
16207 which has a much simpler flow graph:
16221 However, the classic problem with this transformation is that it
16222 has a runtime cost in there resulting code: An extra jump.
16223 Therefore, the computed jumps are un-factored in the later passes
16224 of the compiler. Be aware of that when you work on passes in that
16225 area. There have been numerous examples already where the compile
16226 time for code with unfactored computed jumps caused some serious
16229 _nonlocal goto handlers_
16230 GCC allows nested functions to return into caller using a `goto'
16231 to a label passed to as an argument to the callee. The labels
16232 passed to nested functions contain special code to cleanup after
16233 function call. Such sections of code are referred to as "nonlocal
16234 goto receivers". If a function contains such nonlocal goto
16235 receivers, an edge from the call to the label is created with the
16236 `EDGE_ABNORMAL' and `EDGE_ABNORMAL_CALL' flags set.
16238 _function entry points_
16239 By definition, execution of function starts at basic block 0, so
16240 there is always an edge from the `ENTRY_BLOCK_PTR' to basic block
16241 0. There is no `tree' representation for alternate entry points at
16242 this moment. In RTL, alternate entry points are specified by
16243 `CODE_LABEL' with `LABEL_ALTERNATE_NAME' defined. This feature is
16244 currently used for multiple entry point prologues and is limited
16245 to post-reload passes only. This can be used by back-ends to emit
16246 alternate prologues for functions called from different contexts.
16247 In future full support for multiple entry functions defined by
16248 Fortran 90 needs to be implemented.
16251 In the pre-reload representation a function terminates after the
16252 last instruction in the insn chain and no explicit return
16253 instructions are used. This corresponds to the fall-thru edge
16254 into exit block. After reload, optimal RTL epilogues are used
16255 that use explicit (conditional) return instructions that are
16256 represented by edges with no flags set.
16260 File: gccint.info, Node: Profile information, Next: Maintaining the CFG, Prev: Edges, Up: Control Flow
16262 15.3 Profile information
16263 ========================
16265 In many cases a compiler must make a choice whether to trade speed in
16266 one part of code for speed in another, or to trade code size for code
16267 speed. In such cases it is useful to know information about how often
16268 some given block will be executed. That is the purpose for maintaining
16269 profile within the flow graph. GCC can handle profile information
16270 obtained through "profile feedback", but it can also estimate branch
16271 probabilities based on statics and heuristics.
16273 The feedback based profile is produced by compiling the program with
16274 instrumentation, executing it on a train run and reading the numbers of
16275 executions of basic blocks and edges back to the compiler while
16276 re-compiling the program to produce the final executable. This method
16277 provides very accurate information about where a program spends most of
16278 its time on the train run. Whether it matches the average run of
16279 course depends on the choice of train data set, but several studies
16280 have shown that the behavior of a program usually changes just
16281 marginally over different data sets.
16283 When profile feedback is not available, the compiler may be asked to
16284 attempt to predict the behavior of each branch in the program using a
16285 set of heuristics (see `predict.def' for details) and compute estimated
16286 frequencies of each basic block by propagating the probabilities over
16289 Each `basic_block' contains two integer fields to represent profile
16290 information: `frequency' and `count'. The `frequency' is an estimation
16291 how often is basic block executed within a function. It is represented
16292 as an integer scaled in the range from 0 to `BB_FREQ_BASE'. The most
16293 frequently executed basic block in function is initially set to
16294 `BB_FREQ_BASE' and the rest of frequencies are scaled accordingly.
16295 During optimization, the frequency of the most frequent basic block can
16296 both decrease (for instance by loop unrolling) or grow (for instance by
16297 cross-jumping optimization), so scaling sometimes has to be performed
16300 The `count' contains hard-counted numbers of execution measured during
16301 training runs and is nonzero only when profile feedback is available.
16302 This value is represented as the host's widest integer (typically a 64
16303 bit integer) of the special type `gcov_type'.
16305 Most optimization passes can use only the frequency information of a
16306 basic block, but a few passes may want to know hard execution counts.
16307 The frequencies should always match the counts after scaling, however
16308 during updating of the profile information numerical error may
16309 accumulate into quite large errors.
16311 Each edge also contains a branch probability field: an integer in the
16312 range from 0 to `REG_BR_PROB_BASE'. It represents probability of
16313 passing control from the end of the `src' basic block to the `dest'
16314 basic block, i.e. the probability that control will flow along this
16315 edge. The `EDGE_FREQUENCY' macro is available to compute how
16316 frequently a given edge is taken. There is a `count' field for each
16317 edge as well, representing same information as for a basic block.
16319 The basic block frequencies are not represented in the instruction
16320 stream, but in the RTL representation the edge frequencies are
16321 represented for conditional jumps (via the `REG_BR_PROB' macro) since
16322 they are used when instructions are output to the assembly file and the
16323 flow graph is no longer maintained.
16325 The probability that control flow arrives via a given edge to its
16326 destination basic block is called "reverse probability" and is not
16327 directly represented, but it may be easily computed from frequencies of
16330 Updating profile information is a delicate task that can unfortunately
16331 not be easily integrated with the CFG manipulation API. Many of the
16332 functions and hooks to modify the CFG, such as
16333 `redirect_edge_and_branch', do not have enough information to easily
16334 update the profile, so updating it is in the majority of cases left up
16335 to the caller. It is difficult to uncover bugs in the profile updating
16336 code, because they manifest themselves only by producing worse code,
16337 and checking profile consistency is not possible because of numeric
16338 error accumulation. Hence special attention needs to be given to this
16339 issue in each pass that modifies the CFG.
16341 It is important to point out that `REG_BR_PROB_BASE' and
16342 `BB_FREQ_BASE' are both set low enough to be possible to compute second
16343 power of any frequency or probability in the flow graph, it is not
16344 possible to even square the `count' field, as modern CPUs are fast
16345 enough to execute $2^32$ operations quickly.
16348 File: gccint.info, Node: Maintaining the CFG, Next: Liveness information, Prev: Profile information, Up: Control Flow
16350 15.4 Maintaining the CFG
16351 ========================
16353 An important task of each compiler pass is to keep both the control
16354 flow graph and all profile information up-to-date. Reconstruction of
16355 the control flow graph after each pass is not an option, since it may be
16356 very expensive and lost profile information cannot be reconstructed at
16359 GCC has two major intermediate representations, and both use the
16360 `basic_block' and `edge' data types to represent control flow. Both
16361 representations share as much of the CFG maintenance code as possible.
16362 For each representation, a set of "hooks" is defined so that each
16363 representation can provide its own implementation of CFG manipulation
16364 routines when necessary. These hooks are defined in `cfghooks.h'.
16365 There are hooks for almost all common CFG manipulations, including
16366 block splitting and merging, edge redirection and creating and deleting
16367 basic blocks. These hooks should provide everything you need to
16368 maintain and manipulate the CFG in both the RTL and `tree'
16371 At the moment, the basic block boundaries are maintained transparently
16372 when modifying instructions, so there rarely is a need to move them
16373 manually (such as in case someone wants to output instruction outside
16374 basic block explicitly). Often the CFG may be better viewed as
16375 integral part of instruction chain, than structure built on the top of
16376 it. However, in principle the control flow graph for the `tree'
16377 representation is _not_ an integral part of the representation, in that
16378 a function tree may be expanded without first building a flow graph
16379 for the `tree' representation at all. This happens when compiling
16380 without any `tree' optimization enabled. When the `tree' optimizations
16381 are enabled and the instruction stream is rewritten in SSA form, the
16382 CFG is very tightly coupled with the instruction stream. In
16383 particular, statement insertion and removal has to be done with care.
16384 In fact, the whole `tree' representation can not be easily used or
16385 maintained without proper maintenance of the CFG simultaneously.
16387 In the RTL representation, each instruction has a `BLOCK_FOR_INSN'
16388 value that represents pointer to the basic block that contains the
16389 instruction. In the `tree' representation, the function `bb_for_stmt'
16390 returns a pointer to the basic block containing the queried statement.
16392 When changes need to be applied to a function in its `tree'
16393 representation, "block statement iterators" should be used. These
16394 iterators provide an integrated abstraction of the flow graph and the
16395 instruction stream. Block statement iterators are constructed using
16396 the `block_stmt_iterator' data structure and several modifier are
16397 available, including the following:
16400 This function initializes a `block_stmt_iterator' that points to
16401 the first non-empty statement in a basic block.
16404 This function initializes a `block_stmt_iterator' that points to
16405 the last statement in a basic block.
16408 This predicate is `true' if a `block_stmt_iterator' represents the
16409 end of a basic block.
16412 This function takes a `block_stmt_iterator' and makes it point to
16416 This function takes a `block_stmt_iterator' and makes it point to
16420 This function inserts a statement after the `block_stmt_iterator'
16421 passed in. The final parameter determines whether the statement
16422 iterator is updated to point to the newly inserted statement, or
16423 left pointing to the original statement.
16425 `bsi_insert_before'
16426 This function inserts a statement before the `block_stmt_iterator'
16427 passed in. The final parameter determines whether the statement
16428 iterator is updated to point to the newly inserted statement, or
16429 left pointing to the original statement.
16432 This function removes the `block_stmt_iterator' passed in and
16433 rechains the remaining statements in a basic block, if any.
16435 In the RTL representation, the macros `BB_HEAD' and `BB_END' may be
16436 used to get the head and end `rtx' of a basic block. No abstract
16437 iterators are defined for traversing the insn chain, but you can just
16438 use `NEXT_INSN' and `PREV_INSN' instead. See *Note Insns::.
16440 Usually a code manipulating pass simplifies the instruction stream and
16441 the flow of control, possibly eliminating some edges. This may for
16442 example happen when a conditional jump is replaced with an
16443 unconditional jump, but also when simplifying possibly trapping
16444 instruction to non-trapping while compiling Java. Updating of edges is
16445 not transparent and each optimization pass is required to do so
16446 manually. However only few cases occur in practice. The pass may call
16447 `purge_dead_edges' on a given basic block to remove superfluous edges,
16450 Another common scenario is redirection of branch instructions, but
16451 this is best modeled as redirection of edges in the control flow graph
16452 and thus use of `redirect_edge_and_branch' is preferred over more low
16453 level functions, such as `redirect_jump' that operate on RTL chain
16454 only. The CFG hooks defined in `cfghooks.h' should provide the
16455 complete API required for manipulating and maintaining the CFG.
16457 It is also possible that a pass has to insert control flow instruction
16458 into the middle of a basic block, thus creating an entry point in the
16459 middle of the basic block, which is impossible by definition: The block
16460 must be split to make sure it only has one entry point, i.e. the head
16461 of the basic block. The CFG hook `split_block' may be used when an
16462 instruction in the middle of a basic block has to become the target of
16463 a jump or branch instruction.
16465 For a global optimizer, a common operation is to split edges in the
16466 flow graph and insert instructions on them. In the RTL representation,
16467 this can be easily done using the `insert_insn_on_edge' function that
16468 emits an instruction "on the edge", caching it for a later
16469 `commit_edge_insertions' call that will take care of moving the
16470 inserted instructions off the edge into the instruction stream
16471 contained in a basic block. This includes the creation of new basic
16472 blocks where needed. In the `tree' representation, the equivalent
16473 functions are `bsi_insert_on_edge' which inserts a block statement
16474 iterator on an edge, and `bsi_commit_edge_inserts' which flushes the
16475 instruction to actual instruction stream.
16477 While debugging the optimization pass, an `verify_flow_info' function
16478 may be useful to find bugs in the control flow graph updating code.
16480 Note that at present, the representation of control flow in the `tree'
16481 representation is discarded before expanding to RTL. Long term the CFG
16482 should be maintained and "expanded" to the RTL representation along
16483 with the function `tree' itself.
16486 File: gccint.info, Node: Liveness information, Prev: Maintaining the CFG, Up: Control Flow
16488 15.5 Liveness information
16489 =========================
16491 Liveness information is useful to determine whether some register is
16492 "live" at given point of program, i.e. that it contains a value that
16493 may be used at a later point in the program. This information is used,
16494 for instance, during register allocation, as the pseudo registers only
16495 need to be assigned to a unique hard register or to a stack slot if
16496 they are live. The hard registers and stack slots may be freely reused
16497 for other values when a register is dead.
16499 Liveness information is available in the back end starting with
16500 `pass_df_initialize' and ending with `pass_df_finish'. Three flavors
16501 of live analysis are available: With `LR', it is possible to determine
16502 at any point `P' in the function if the register may be used on some
16503 path from `P' to the end of the function. With `UR', it is possible to
16504 determine if there is a path from the beginning of the function to `P'
16505 that defines the variable. `LIVE' is the intersection of the `LR' and
16506 `UR' and a variable is live at `P' if there is both an assignment that
16507 reaches it from the beginning of the function and a uses that can be
16508 reached on some path from `P' to the end of the function.
16510 In general `LIVE' is the most useful of the three. The macros
16511 `DF_[LR,UR,LIVE]_[IN,OUT]' can be used to access this information. The
16512 macros take a basic block number and return a bitmap that is indexed by
16513 the register number. This information is only guaranteed to be up to
16514 date after calls are made to `df_analyze'. See the file `df-core.c'
16515 for details on using the dataflow.
16517 The liveness information is stored partly in the RTL instruction stream
16518 and partly in the flow graph. Local information is stored in the
16519 instruction stream: Each instruction may contain `REG_DEAD' notes
16520 representing that the value of a given register is no longer needed, or
16521 `REG_UNUSED' notes representing that the value computed by the
16522 instruction is never used. The second is useful for instructions
16523 computing multiple values at once.
16526 File: gccint.info, Node: Machine Desc, Next: Target Macros, Prev: Loop Analysis and Representation, Up: Top
16528 16 Machine Descriptions
16529 ***********************
16531 A machine description has two parts: a file of instruction patterns
16532 (`.md' file) and a C header file of macro definitions.
16534 The `.md' file for a target machine contains a pattern for each
16535 instruction that the target machine supports (or at least each
16536 instruction that is worth telling the compiler about). It may also
16537 contain comments. A semicolon causes the rest of the line to be a
16538 comment, unless the semicolon is inside a quoted string.
16540 See the next chapter for information on the C header file.
16544 * Overview:: How the machine description is used.
16545 * Patterns:: How to write instruction patterns.
16546 * Example:: An explained example of a `define_insn' pattern.
16547 * RTL Template:: The RTL template defines what insns match a pattern.
16548 * Output Template:: The output template says how to make assembler code
16550 * Output Statement:: For more generality, write C code to output
16551 the assembler code.
16552 * Predicates:: Controlling what kinds of operands can be used
16554 * Constraints:: Fine-tuning operand selection.
16555 * Standard Names:: Names mark patterns to use for code generation.
16556 * Pattern Ordering:: When the order of patterns makes a difference.
16557 * Dependent Patterns:: Having one pattern may make you need another.
16558 * Jump Patterns:: Special considerations for patterns for jump insns.
16559 * Looping Patterns:: How to define patterns for special looping insns.
16560 * Insn Canonicalizations::Canonicalization of Instructions
16561 * Expander Definitions::Generating a sequence of several RTL insns
16562 for a standard operation.
16563 * Insn Splitting:: Splitting Instructions into Multiple Instructions.
16564 * Including Patterns:: Including Patterns in Machine Descriptions.
16565 * Peephole Definitions::Defining machine-specific peephole optimizations.
16566 * Insn Attributes:: Specifying the value of attributes for generated insns.
16567 * Conditional Execution::Generating `define_insn' patterns for
16569 * Constant Definitions::Defining symbolic constants that can be used in the
16571 * Iterators:: Using iterators to generate patterns from a template.
16574 File: gccint.info, Node: Overview, Next: Patterns, Up: Machine Desc
16576 16.1 Overview of How the Machine Description is Used
16577 ====================================================
16579 There are three main conversions that happen in the compiler:
16581 1. The front end reads the source code and builds a parse tree.
16583 2. The parse tree is used to generate an RTL insn list based on named
16584 instruction patterns.
16586 3. The insn list is matched against the RTL templates to produce
16590 For the generate pass, only the names of the insns matter, from either
16591 a named `define_insn' or a `define_expand'. The compiler will choose
16592 the pattern with the right name and apply the operands according to the
16593 documentation later in this chapter, without regard for the RTL
16594 template or operand constraints. Note that the names the compiler looks
16595 for are hard-coded in the compiler--it will ignore unnamed patterns and
16596 patterns with names it doesn't know about, but if you don't provide a
16597 named pattern it needs, it will abort.
16599 If a `define_insn' is used, the template given is inserted into the
16600 insn list. If a `define_expand' is used, one of three things happens,
16601 based on the condition logic. The condition logic may manually create
16602 new insns for the insn list, say via `emit_insn()', and invoke `DONE'.
16603 For certain named patterns, it may invoke `FAIL' to tell the compiler
16604 to use an alternate way of performing that task. If it invokes neither
16605 `DONE' nor `FAIL', the template given in the pattern is inserted, as if
16606 the `define_expand' were a `define_insn'.
16608 Once the insn list is generated, various optimization passes convert,
16609 replace, and rearrange the insns in the insn list. This is where the
16610 `define_split' and `define_peephole' patterns get used, for example.
16612 Finally, the insn list's RTL is matched up with the RTL templates in
16613 the `define_insn' patterns, and those patterns are used to emit the
16614 final assembly code. For this purpose, each named `define_insn' acts
16615 like it's unnamed, since the names are ignored.
16618 File: gccint.info, Node: Patterns, Next: Example, Prev: Overview, Up: Machine Desc
16620 16.2 Everything about Instruction Patterns
16621 ==========================================
16623 Each instruction pattern contains an incomplete RTL expression, with
16624 pieces to be filled in later, operand constraints that restrict how the
16625 pieces can be filled in, and an output pattern or C code to generate
16626 the assembler output, all wrapped up in a `define_insn' expression.
16628 A `define_insn' is an RTL expression containing four or five operands:
16630 1. An optional name. The presence of a name indicate that this
16631 instruction pattern can perform a certain standard job for the
16632 RTL-generation pass of the compiler. This pass knows certain
16633 names and will use the instruction patterns with those names, if
16634 the names are defined in the machine description.
16636 The absence of a name is indicated by writing an empty string
16637 where the name should go. Nameless instruction patterns are never
16638 used for generating RTL code, but they may permit several simpler
16639 insns to be combined later on.
16641 Names that are not thus known and used in RTL-generation have no
16642 effect; they are equivalent to no name at all.
16644 For the purpose of debugging the compiler, you may also specify a
16645 name beginning with the `*' character. Such a name is used only
16646 for identifying the instruction in RTL dumps; it is entirely
16647 equivalent to having a nameless pattern for all other purposes.
16649 2. The "RTL template" (*note RTL Template::) is a vector of incomplete
16650 RTL expressions which show what the instruction should look like.
16651 It is incomplete because it may contain `match_operand',
16652 `match_operator', and `match_dup' expressions that stand for
16653 operands of the instruction.
16655 If the vector has only one element, that element is the template
16656 for the instruction pattern. If the vector has multiple elements,
16657 then the instruction pattern is a `parallel' expression containing
16658 the elements described.
16660 3. A condition. This is a string which contains a C expression that
16661 is the final test to decide whether an insn body matches this
16664 For a named pattern, the condition (if present) may not depend on
16665 the data in the insn being matched, but only the
16666 target-machine-type flags. The compiler needs to test these
16667 conditions during initialization in order to learn exactly which
16668 named instructions are available in a particular run.
16670 For nameless patterns, the condition is applied only when matching
16671 an individual insn, and only after the insn has matched the
16672 pattern's recognition template. The insn's operands may be found
16673 in the vector `operands'. For an insn where the condition has
16674 once matched, it can't be used to control register allocation, for
16675 example by excluding certain hard registers or hard register
16678 4. The "output template": a string that says how to output matching
16679 insns as assembler code. `%' in this string specifies where to
16680 substitute the value of an operand. *Note Output Template::.
16682 When simple substitution isn't general enough, you can specify a
16683 piece of C code to compute the output. *Note Output Statement::.
16685 5. Optionally, a vector containing the values of attributes for insns
16686 matching this pattern. *Note Insn Attributes::.
16689 File: gccint.info, Node: Example, Next: RTL Template, Prev: Patterns, Up: Machine Desc
16691 16.3 Example of `define_insn'
16692 =============================
16694 Here is an actual example of an instruction pattern, for the
16697 (define_insn "tstsi"
16699 (match_operand:SI 0 "general_operand" "rm"))]
16703 if (TARGET_68020 || ! ADDRESS_REG_P (operands[0]))
16704 return \"tstl %0\";
16705 return \"cmpl #0,%0\";
16708 This can also be written using braced strings:
16710 (define_insn "tstsi"
16712 (match_operand:SI 0 "general_operand" "rm"))]
16715 if (TARGET_68020 || ! ADDRESS_REG_P (operands[0]))
16717 return "cmpl #0,%0";
16720 This is an instruction that sets the condition codes based on the
16721 value of a general operand. It has no condition, so any insn whose RTL
16722 description has the form shown may be handled according to this
16723 pattern. The name `tstsi' means "test a `SImode' value" and tells the
16724 RTL generation pass that, when it is necessary to test such a value, an
16725 insn to do so can be constructed using this pattern.
16727 The output control string is a piece of C code which chooses which
16728 output template to return based on the kind of operand and the specific
16729 type of CPU for which code is being generated.
16731 `"rm"' is an operand constraint. Its meaning is explained below.
16734 File: gccint.info, Node: RTL Template, Next: Output Template, Prev: Example, Up: Machine Desc
16739 The RTL template is used to define which insns match the particular
16740 pattern and how to find their operands. For named patterns, the RTL
16741 template also says how to construct an insn from specified operands.
16743 Construction involves substituting specified operands into a copy of
16744 the template. Matching involves determining the values that serve as
16745 the operands in the insn being matched. Both of these activities are
16746 controlled by special expression types that direct matching and
16747 substitution of the operands.
16749 `(match_operand:M N PREDICATE CONSTRAINT)'
16750 This expression is a placeholder for operand number N of the insn.
16751 When constructing an insn, operand number N will be substituted
16752 at this point. When matching an insn, whatever appears at this
16753 position in the insn will be taken as operand number N; but it
16754 must satisfy PREDICATE or this instruction pattern will not match
16757 Operand numbers must be chosen consecutively counting from zero in
16758 each instruction pattern. There may be only one `match_operand'
16759 expression in the pattern for each operand number. Usually
16760 operands are numbered in the order of appearance in `match_operand'
16761 expressions. In the case of a `define_expand', any operand numbers
16762 used only in `match_dup' expressions have higher values than all
16763 other operand numbers.
16765 PREDICATE is a string that is the name of a function that accepts
16766 two arguments, an expression and a machine mode. *Note
16767 Predicates::. During matching, the function will be called with
16768 the putative operand as the expression and M as the mode argument
16769 (if M is not specified, `VOIDmode' will be used, which normally
16770 causes PREDICATE to accept any mode). If it returns zero, this
16771 instruction pattern fails to match. PREDICATE may be an empty
16772 string; then it means no test is to be done on the operand, so
16773 anything which occurs in this position is valid.
16775 Most of the time, PREDICATE will reject modes other than M--but
16776 not always. For example, the predicate `address_operand' uses M
16777 as the mode of memory ref that the address should be valid for.
16778 Many predicates accept `const_int' nodes even though their mode is
16781 CONSTRAINT controls reloading and the choice of the best register
16782 class to use for a value, as explained later (*note Constraints::).
16783 If the constraint would be an empty string, it can be omitted.
16785 People are often unclear on the difference between the constraint
16786 and the predicate. The predicate helps decide whether a given
16787 insn matches the pattern. The constraint plays no role in this
16788 decision; instead, it controls various decisions in the case of an
16789 insn which does match.
16791 `(match_scratch:M N CONSTRAINT)'
16792 This expression is also a placeholder for operand number N and
16793 indicates that operand must be a `scratch' or `reg' expression.
16795 When matching patterns, this is equivalent to
16797 (match_operand:M N "scratch_operand" PRED)
16799 but, when generating RTL, it produces a (`scratch':M) expression.
16801 If the last few expressions in a `parallel' are `clobber'
16802 expressions whose operands are either a hard register or
16803 `match_scratch', the combiner can add or delete them when
16804 necessary. *Note Side Effects::.
16807 This expression is also a placeholder for operand number N. It is
16808 used when the operand needs to appear more than once in the insn.
16810 In construction, `match_dup' acts just like `match_operand': the
16811 operand is substituted into the insn being constructed. But in
16812 matching, `match_dup' behaves differently. It assumes that operand
16813 number N has already been determined by a `match_operand'
16814 appearing earlier in the recognition template, and it matches only
16815 an identical-looking expression.
16817 Note that `match_dup' should not be used to tell the compiler that
16818 a particular register is being used for two operands (example:
16819 `add' that adds one register to another; the second register is
16820 both an input operand and the output operand). Use a matching
16821 constraint (*note Simple Constraints::) for those. `match_dup' is
16822 for the cases where one operand is used in two places in the
16823 template, such as an instruction that computes both a quotient and
16824 a remainder, where the opcode takes two input operands but the RTL
16825 template has to refer to each of those twice; once for the
16826 quotient pattern and once for the remainder pattern.
16828 `(match_operator:M N PREDICATE [OPERANDS...])'
16829 This pattern is a kind of placeholder for a variable RTL expression
16832 When constructing an insn, it stands for an RTL expression whose
16833 expression code is taken from that of operand N, and whose
16834 operands are constructed from the patterns OPERANDS.
16836 When matching an expression, it matches an expression if the
16837 function PREDICATE returns nonzero on that expression _and_ the
16838 patterns OPERANDS match the operands of the expression.
16840 Suppose that the function `commutative_operator' is defined as
16841 follows, to match any expression whose operator is one of the
16842 commutative arithmetic operators of RTL and whose mode is MODE:
16845 commutative_integer_operator (x, mode)
16847 enum machine_mode mode;
16849 enum rtx_code code = GET_CODE (x);
16850 if (GET_MODE (x) != mode)
16852 return (GET_RTX_CLASS (code) == RTX_COMM_ARITH
16853 || code == EQ || code == NE);
16856 Then the following pattern will match any RTL expression consisting
16857 of a commutative operator applied to two general operands:
16859 (match_operator:SI 3 "commutative_operator"
16860 [(match_operand:SI 1 "general_operand" "g")
16861 (match_operand:SI 2 "general_operand" "g")])
16863 Here the vector `[OPERANDS...]' contains two patterns because the
16864 expressions to be matched all contain two operands.
16866 When this pattern does match, the two operands of the commutative
16867 operator are recorded as operands 1 and 2 of the insn. (This is
16868 done by the two instances of `match_operand'.) Operand 3 of the
16869 insn will be the entire commutative expression: use `GET_CODE
16870 (operands[3])' to see which commutative operator was used.
16872 The machine mode M of `match_operator' works like that of
16873 `match_operand': it is passed as the second argument to the
16874 predicate function, and that function is solely responsible for
16875 deciding whether the expression to be matched "has" that mode.
16877 When constructing an insn, argument 3 of the gen-function will
16878 specify the operation (i.e. the expression code) for the
16879 expression to be made. It should be an RTL expression, whose
16880 expression code is copied into a new expression whose operands are
16881 arguments 1 and 2 of the gen-function. The subexpressions of
16882 argument 3 are not used; only its expression code matters.
16884 When `match_operator' is used in a pattern for matching an insn,
16885 it usually best if the operand number of the `match_operator' is
16886 higher than that of the actual operands of the insn. This improves
16887 register allocation because the register allocator often looks at
16888 operands 1 and 2 of insns to see if it can do register tying.
16890 There is no way to specify constraints in `match_operator'. The
16891 operand of the insn which corresponds to the `match_operator'
16892 never has any constraints because it is never reloaded as a whole.
16893 However, if parts of its OPERANDS are matched by `match_operand'
16894 patterns, those parts may have constraints of their own.
16896 `(match_op_dup:M N[OPERANDS...])'
16897 Like `match_dup', except that it applies to operators instead of
16898 operands. When constructing an insn, operand number N will be
16899 substituted at this point. But in matching, `match_op_dup' behaves
16900 differently. It assumes that operand number N has already been
16901 determined by a `match_operator' appearing earlier in the
16902 recognition template, and it matches only an identical-looking
16905 `(match_parallel N PREDICATE [SUBPAT...])'
16906 This pattern is a placeholder for an insn that consists of a
16907 `parallel' expression with a variable number of elements. This
16908 expression should only appear at the top level of an insn pattern.
16910 When constructing an insn, operand number N will be substituted at
16911 this point. When matching an insn, it matches if the body of the
16912 insn is a `parallel' expression with at least as many elements as
16913 the vector of SUBPAT expressions in the `match_parallel', if each
16914 SUBPAT matches the corresponding element of the `parallel', _and_
16915 the function PREDICATE returns nonzero on the `parallel' that is
16916 the body of the insn. It is the responsibility of the predicate
16917 to validate elements of the `parallel' beyond those listed in the
16920 A typical use of `match_parallel' is to match load and store
16921 multiple expressions, which can contain a variable number of
16922 elements in a `parallel'. For example,
16925 [(match_parallel 0 "load_multiple_operation"
16926 [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
16927 (match_operand:SI 2 "memory_operand" "m"))
16929 (clobber (reg:SI 179))])]
16933 This example comes from `a29k.md'. The function
16934 `load_multiple_operation' is defined in `a29k.c' and checks that
16935 subsequent elements in the `parallel' are the same as the `set' in
16936 the pattern, except that they are referencing subsequent registers
16937 and memory locations.
16939 An insn that matches this pattern might look like:
16942 [(set (reg:SI 20) (mem:SI (reg:SI 100)))
16944 (clobber (reg:SI 179))
16946 (mem:SI (plus:SI (reg:SI 100)
16949 (mem:SI (plus:SI (reg:SI 100)
16952 `(match_par_dup N [SUBPAT...])'
16953 Like `match_op_dup', but for `match_parallel' instead of
16958 File: gccint.info, Node: Output Template, Next: Output Statement, Prev: RTL Template, Up: Machine Desc
16960 16.5 Output Templates and Operand Substitution
16961 ==============================================
16963 The "output template" is a string which specifies how to output the
16964 assembler code for an instruction pattern. Most of the template is a
16965 fixed string which is output literally. The character `%' is used to
16966 specify where to substitute an operand; it can also be used to identify
16967 places where different variants of the assembler require different
16970 In the simplest case, a `%' followed by a digit N says to output
16971 operand N at that point in the string.
16973 `%' followed by a letter and a digit says to output an operand in an
16974 alternate fashion. Four letters have standard, built-in meanings
16975 described below. The machine description macro `PRINT_OPERAND' can
16976 define additional letters with nonstandard meanings.
16978 `%cDIGIT' can be used to substitute an operand that is a constant
16979 value without the syntax that normally indicates an immediate operand.
16981 `%nDIGIT' is like `%cDIGIT' except that the value of the constant is
16982 negated before printing.
16984 `%aDIGIT' can be used to substitute an operand as if it were a memory
16985 reference, with the actual operand treated as the address. This may be
16986 useful when outputting a "load address" instruction, because often the
16987 assembler syntax for such an instruction requires you to write the
16988 operand as if it were a memory reference.
16990 `%lDIGIT' is used to substitute a `label_ref' into a jump instruction.
16992 `%=' outputs a number which is unique to each instruction in the
16993 entire compilation. This is useful for making local labels to be
16994 referred to more than once in a single template that generates multiple
16995 assembler instructions.
16997 `%' followed by a punctuation character specifies a substitution that
16998 does not use an operand. Only one case is standard: `%%' outputs a `%'
16999 into the assembler code. Other nonstandard cases can be defined in the
17000 `PRINT_OPERAND' macro. You must also define which punctuation
17001 characters are valid with the `PRINT_OPERAND_PUNCT_VALID_P' macro.
17003 The template may generate multiple assembler instructions. Write the
17004 text for the instructions, with `\;' between them.
17006 When the RTL contains two operands which are required by constraint to
17007 match each other, the output template must refer only to the
17008 lower-numbered operand. Matching operands are not always identical,
17009 and the rest of the compiler arranges to put the proper RTL expression
17010 for printing into the lower-numbered operand.
17012 One use of nonstandard letters or punctuation following `%' is to
17013 distinguish between different assembler languages for the same machine;
17014 for example, Motorola syntax versus MIT syntax for the 68000. Motorola
17015 syntax requires periods in most opcode names, while MIT syntax does
17016 not. For example, the opcode `movel' in MIT syntax is `move.l' in
17017 Motorola syntax. The same file of patterns is used for both kinds of
17018 output syntax, but the character sequence `%.' is used in each place
17019 where Motorola syntax wants a period. The `PRINT_OPERAND' macro for
17020 Motorola syntax defines the sequence to output a period; the macro for
17021 MIT syntax defines it to do nothing.
17023 As a special case, a template consisting of the single character `#'
17024 instructs the compiler to first split the insn, and then output the
17025 resulting instructions separately. This helps eliminate redundancy in
17026 the output templates. If you have a `define_insn' that needs to emit
17027 multiple assembler instructions, and there is an matching `define_split'
17028 already defined, then you can simply use `#' as the output template
17029 instead of writing an output template that emits the multiple assembler
17032 If the macro `ASSEMBLER_DIALECT' is defined, you can use construct of
17033 the form `{option0|option1|option2}' in the templates. These describe
17034 multiple variants of assembler language syntax. *Note Instruction
17038 File: gccint.info, Node: Output Statement, Next: Predicates, Prev: Output Template, Up: Machine Desc
17040 16.6 C Statements for Assembler Output
17041 ======================================
17043 Often a single fixed template string cannot produce correct and
17044 efficient assembler code for all the cases that are recognized by a
17045 single instruction pattern. For example, the opcodes may depend on the
17046 kinds of operands; or some unfortunate combinations of operands may
17047 require extra machine instructions.
17049 If the output control string starts with a `@', then it is actually a
17050 series of templates, each on a separate line. (Blank lines and leading
17051 spaces and tabs are ignored.) The templates correspond to the
17052 pattern's constraint alternatives (*note Multi-Alternative::). For
17053 example, if a target machine has a two-address add instruction `addr'
17054 to add into a register and another `addm' to add a register to memory,
17055 you might write this pattern:
17057 (define_insn "addsi3"
17058 [(set (match_operand:SI 0 "general_operand" "=r,m")
17059 (plus:SI (match_operand:SI 1 "general_operand" "0,0")
17060 (match_operand:SI 2 "general_operand" "g,r")))]
17066 If the output control string starts with a `*', then it is not an
17067 output template but rather a piece of C program that should compute a
17068 template. It should execute a `return' statement to return the
17069 template-string you want. Most such templates use C string literals,
17070 which require doublequote characters to delimit them. To include these
17071 doublequote characters in the string, prefix each one with `\'.
17073 If the output control string is written as a brace block instead of a
17074 double-quoted string, it is automatically assumed to be C code. In that
17075 case, it is not necessary to put in a leading asterisk, or to escape the
17076 doublequotes surrounding C string literals.
17078 The operands may be found in the array `operands', whose C data type
17081 It is very common to select different ways of generating assembler code
17082 based on whether an immediate operand is within a certain range. Be
17083 careful when doing this, because the result of `INTVAL' is an integer
17084 on the host machine. If the host machine has more bits in an `int'
17085 than the target machine has in the mode in which the constant will be
17086 used, then some of the bits you get from `INTVAL' will be superfluous.
17087 For proper results, you must carefully disregard the values of those
17090 It is possible to output an assembler instruction and then go on to
17091 output or compute more of them, using the subroutine `output_asm_insn'.
17092 This receives two arguments: a template-string and a vector of
17093 operands. The vector may be `operands', or it may be another array of
17094 `rtx' that you declare locally and initialize yourself.
17096 When an insn pattern has multiple alternatives in its constraints,
17097 often the appearance of the assembler code is determined mostly by
17098 which alternative was matched. When this is so, the C code can test
17099 the variable `which_alternative', which is the ordinal number of the
17100 alternative that was actually satisfied (0 for the first, 1 for the
17101 second alternative, etc.).
17103 For example, suppose there are two opcodes for storing zero, `clrreg'
17104 for registers and `clrmem' for memory locations. Here is how a pattern
17105 could use `which_alternative' to choose between them:
17108 [(set (match_operand:SI 0 "general_operand" "=r,m")
17112 return (which_alternative == 0
17113 ? "clrreg %0" : "clrmem %0");
17116 The example above, where the assembler code to generate was _solely_
17117 determined by the alternative, could also have been specified as
17118 follows, having the output control string start with a `@':
17121 [(set (match_operand:SI 0 "general_operand" "=r,m")
17129 File: gccint.info, Node: Predicates, Next: Constraints, Prev: Output Statement, Up: Machine Desc
17134 A predicate determines whether a `match_operand' or `match_operator'
17135 expression matches, and therefore whether the surrounding instruction
17136 pattern will be used for that combination of operands. GCC has a
17137 number of machine-independent predicates, and you can define
17138 machine-specific predicates as needed. By convention, predicates used
17139 with `match_operand' have names that end in `_operand', and those used
17140 with `match_operator' have names that end in `_operator'.
17142 All predicates are Boolean functions (in the mathematical sense) of
17143 two arguments: the RTL expression that is being considered at that
17144 position in the instruction pattern, and the machine mode that the
17145 `match_operand' or `match_operator' specifies. In this section, the
17146 first argument is called OP and the second argument MODE. Predicates
17147 can be called from C as ordinary two-argument functions; this can be
17148 useful in output templates or other machine-specific code.
17150 Operand predicates can allow operands that are not actually acceptable
17151 to the hardware, as long as the constraints give reload the ability to
17152 fix them up (*note Constraints::). However, GCC will usually generate
17153 better code if the predicates specify the requirements of the machine
17154 instructions as closely as possible. Reload cannot fix up operands
17155 that must be constants ("immediate operands"); you must use a predicate
17156 that allows only constants, or else enforce the requirement in the
17159 Most predicates handle their MODE argument in a uniform manner. If
17160 MODE is `VOIDmode' (unspecified), then OP can have any mode. If MODE
17161 is anything else, then OP must have the same mode, unless OP is a
17162 `CONST_INT' or integer `CONST_DOUBLE'. These RTL expressions always
17163 have `VOIDmode', so it would be counterproductive to check that their
17164 mode matches. Instead, predicates that accept `CONST_INT' and/or
17165 integer `CONST_DOUBLE' check that the value stored in the constant will
17166 fit in the requested mode.
17168 Predicates with this behavior are called "normal". `genrecog' can
17169 optimize the instruction recognizer based on knowledge of how normal
17170 predicates treat modes. It can also diagnose certain kinds of common
17171 errors in the use of normal predicates; for instance, it is almost
17172 always an error to use a normal predicate without specifying a mode.
17174 Predicates that do something different with their MODE argument are
17175 called "special". The generic predicates `address_operand' and
17176 `pmode_register_operand' are special predicates. `genrecog' does not
17177 do any optimizations or diagnosis when special predicates are used.
17181 * Machine-Independent Predicates:: Predicates available to all back ends.
17182 * Defining Predicates:: How to write machine-specific predicate
17186 File: gccint.info, Node: Machine-Independent Predicates, Next: Defining Predicates, Up: Predicates
17188 16.7.1 Machine-Independent Predicates
17189 -------------------------------------
17191 These are the generic predicates available to all back ends. They are
17192 defined in `recog.c'. The first category of predicates allow only
17193 constant, or "immediate", operands.
17195 -- Function: immediate_operand
17196 This predicate allows any sort of constant that fits in MODE. It
17197 is an appropriate choice for instructions that take operands that
17200 -- Function: const_int_operand
17201 This predicate allows any `CONST_INT' expression that fits in
17202 MODE. It is an appropriate choice for an immediate operand that
17203 does not allow a symbol or label.
17205 -- Function: const_double_operand
17206 This predicate accepts any `CONST_DOUBLE' expression that has
17207 exactly MODE. If MODE is `VOIDmode', it will also accept
17208 `CONST_INT'. It is intended for immediate floating point
17211 The second category of predicates allow only some kind of machine
17214 -- Function: register_operand
17215 This predicate allows any `REG' or `SUBREG' expression that is
17216 valid for MODE. It is often suitable for arithmetic instruction
17217 operands on a RISC machine.
17219 -- Function: pmode_register_operand
17220 This is a slight variant on `register_operand' which works around
17221 a limitation in the machine-description reader.
17223 (match_operand N "pmode_register_operand" CONSTRAINT)
17227 (match_operand:P N "register_operand" CONSTRAINT)
17229 would mean, if the machine-description reader accepted `:P' mode
17230 suffixes. Unfortunately, it cannot, because `Pmode' is an alias
17231 for some other mode, and might vary with machine-specific options.
17234 -- Function: scratch_operand
17235 This predicate allows hard registers and `SCRATCH' expressions,
17236 but not pseudo-registers. It is used internally by
17237 `match_scratch'; it should not be used directly.
17239 The third category of predicates allow only some kind of memory
17242 -- Function: memory_operand
17243 This predicate allows any valid reference to a quantity of mode
17244 MODE in memory, as determined by the weak form of
17245 `GO_IF_LEGITIMATE_ADDRESS' (*note Addressing Modes::).
17247 -- Function: address_operand
17248 This predicate is a little unusual; it allows any operand that is a
17249 valid expression for the _address_ of a quantity of mode MODE,
17250 again determined by the weak form of `GO_IF_LEGITIMATE_ADDRESS'.
17251 To first order, if `(mem:MODE (EXP))' is acceptable to
17252 `memory_operand', then EXP is acceptable to `address_operand'.
17253 Note that EXP does not necessarily have the mode MODE.
17255 -- Function: indirect_operand
17256 This is a stricter form of `memory_operand' which allows only
17257 memory references with a `general_operand' as the address
17258 expression. New uses of this predicate are discouraged, because
17259 `general_operand' is very permissive, so it's hard to tell what an
17260 `indirect_operand' does or does not allow. If a target has
17261 different requirements for memory operands for different
17262 instructions, it is better to define target-specific predicates
17263 which enforce the hardware's requirements explicitly.
17265 -- Function: push_operand
17266 This predicate allows a memory reference suitable for pushing a
17267 value onto the stack. This will be a `MEM' which refers to
17268 `stack_pointer_rtx', with a side-effect in its address expression
17269 (*note Incdec::); which one is determined by the `STACK_PUSH_CODE'
17270 macro (*note Frame Layout::).
17272 -- Function: pop_operand
17273 This predicate allows a memory reference suitable for popping a
17274 value off the stack. Again, this will be a `MEM' referring to
17275 `stack_pointer_rtx', with a side-effect in its address expression.
17276 However, this time `STACK_POP_CODE' is expected.
17278 The fourth category of predicates allow some combination of the above
17281 -- Function: nonmemory_operand
17282 This predicate allows any immediate or register operand valid for
17285 -- Function: nonimmediate_operand
17286 This predicate allows any register or memory operand valid for
17289 -- Function: general_operand
17290 This predicate allows any immediate, register, or memory operand
17293 Finally, there is one generic operator predicate.
17295 -- Function: comparison_operator
17296 This predicate matches any expression which performs an arithmetic
17297 comparison in MODE; that is, `COMPARISON_P' is true for the
17301 File: gccint.info, Node: Defining Predicates, Prev: Machine-Independent Predicates, Up: Predicates
17303 16.7.2 Defining Machine-Specific Predicates
17304 -------------------------------------------
17306 Many machines have requirements for their operands that cannot be
17307 expressed precisely using the generic predicates. You can define
17308 additional predicates using `define_predicate' and
17309 `define_special_predicate' expressions. These expressions have three
17312 * The name of the predicate, as it will be referred to in
17313 `match_operand' or `match_operator' expressions.
17315 * An RTL expression which evaluates to true if the predicate allows
17316 the operand OP, false if it does not. This expression can only use
17317 the following RTL codes:
17320 When written inside a predicate expression, a `MATCH_OPERAND'
17321 expression evaluates to true if the predicate it names would
17322 allow OP. The operand number and constraint are ignored.
17323 Due to limitations in `genrecog', you can only refer to
17324 generic predicates and predicates that have already been
17328 This expression evaluates to true if OP or a specified
17329 subexpression of OP has one of a given list of RTX codes.
17331 The first operand of this expression is a string constant
17332 containing a comma-separated list of RTX code names (in lower
17333 case). These are the codes for which the `MATCH_CODE' will
17336 The second operand is a string constant which indicates what
17337 subexpression of OP to examine. If it is absent or the empty
17338 string, OP itself is examined. Otherwise, the string constant
17339 must be a sequence of digits and/or lowercase letters. Each
17340 character indicates a subexpression to extract from the
17341 current expression; for the first character this is OP, for
17342 the second and subsequent characters it is the result of the
17343 previous character. A digit N extracts `XEXP (E, N)'; a
17344 letter L extracts `XVECEXP (E, 0, N)' where N is the
17345 alphabetic ordinal of L (0 for `a', 1 for 'b', and so on).
17346 The `MATCH_CODE' then examines the RTX code of the
17347 subexpression extracted by the complete string. It is not
17348 possible to extract components of an `rtvec' that is not at
17349 position 0 within its RTX object.
17352 This expression has one operand, a string constant containing
17353 a C expression. The predicate's arguments, OP and MODE, are
17354 available with those names in the C expression. The
17355 `MATCH_TEST' evaluates to true if the C expression evaluates
17356 to a nonzero value. `MATCH_TEST' expressions must not have
17363 The basic `MATCH_' expressions can be combined using these
17364 logical operators, which have the semantics of the C operators
17365 `&&', `||', `!', and `? :' respectively. As in Common Lisp,
17366 you may give an `AND' or `IOR' expression an arbitrary number
17367 of arguments; this has exactly the same effect as writing a
17368 chain of two-argument `AND' or `IOR' expressions.
17370 * An optional block of C code, which should execute `return true' if
17371 the predicate is found to match and `return false' if it does not.
17372 It must not have any side effects. The predicate arguments, OP
17373 and MODE, are available with those names.
17375 If a code block is present in a predicate definition, then the RTL
17376 expression must evaluate to true _and_ the code block must execute
17377 `return true' for the predicate to allow the operand. The RTL
17378 expression is evaluated first; do not re-check anything in the
17379 code block that was checked in the RTL expression.
17381 The program `genrecog' scans `define_predicate' and
17382 `define_special_predicate' expressions to determine which RTX codes are
17383 possibly allowed. You should always make this explicit in the RTL
17384 predicate expression, using `MATCH_OPERAND' and `MATCH_CODE'.
17386 Here is an example of a simple predicate definition, from the IA64
17387 machine description:
17389 ;; True if OP is a `SYMBOL_REF' which refers to the sdata section.
17390 (define_predicate "small_addr_symbolic_operand"
17391 (and (match_code "symbol_ref")
17392 (match_test "SYMBOL_REF_SMALL_ADDR_P (op)")))
17394 And here is another, showing the use of the C block.
17396 ;; True if OP is a register operand that is (or could be) a GR reg.
17397 (define_predicate "gr_register_operand"
17398 (match_operand 0 "register_operand")
17400 unsigned int regno;
17401 if (GET_CODE (op) == SUBREG)
17402 op = SUBREG_REG (op);
17404 regno = REGNO (op);
17405 return (regno >= FIRST_PSEUDO_REGISTER || GENERAL_REGNO_P (regno));
17408 Predicates written with `define_predicate' automatically include a
17409 test that MODE is `VOIDmode', or OP has the same mode as MODE, or OP is
17410 a `CONST_INT' or `CONST_DOUBLE'. They do _not_ check specifically for
17411 integer `CONST_DOUBLE', nor do they test that the value of either kind
17412 of constant fits in the requested mode. This is because
17413 target-specific predicates that take constants usually have to do more
17414 stringent value checks anyway. If you need the exact same treatment of
17415 `CONST_INT' or `CONST_DOUBLE' that the generic predicates provide, use
17416 a `MATCH_OPERAND' subexpression to call `const_int_operand',
17417 `const_double_operand', or `immediate_operand'.
17419 Predicates written with `define_special_predicate' do not get any
17420 automatic mode checks, and are treated as having special mode handling
17423 The program `genpreds' is responsible for generating code to test
17424 predicates. It also writes a header file containing function
17425 declarations for all machine-specific predicates. It is not necessary
17426 to declare these predicates in `CPU-protos.h'.
17429 File: gccint.info, Node: Constraints, Next: Standard Names, Prev: Predicates, Up: Machine Desc
17431 16.8 Operand Constraints
17432 ========================
17434 Each `match_operand' in an instruction pattern can specify constraints
17435 for the operands allowed. The constraints allow you to fine-tune
17436 matching within the set of operands allowed by the predicate.
17438 Constraints can say whether an operand may be in a register, and which
17439 kinds of register; whether the operand can be a memory reference, and
17440 which kinds of address; whether the operand may be an immediate
17441 constant, and which possible values it may have. Constraints can also
17442 require two operands to match.
17446 * Simple Constraints:: Basic use of constraints.
17447 * Multi-Alternative:: When an insn has two alternative constraint-patterns.
17448 * Class Preferences:: Constraints guide which hard register to put things in.
17449 * Modifiers:: More precise control over effects of constraints.
17450 * Disable Insn Alternatives:: Disable insn alternatives using the `enabled' attribute.
17451 * Machine Constraints:: Existing constraints for some particular machines.
17452 * Define Constraints:: How to define machine-specific constraints.
17453 * C Constraint Interface:: How to test constraints from C code.
17456 File: gccint.info, Node: Simple Constraints, Next: Multi-Alternative, Up: Constraints
17458 16.8.1 Simple Constraints
17459 -------------------------
17461 The simplest kind of constraint is a string full of letters, each of
17462 which describes one kind of operand that is permitted. Here are the
17463 letters that are allowed:
17466 Whitespace characters are ignored and can be inserted at any
17467 position except the first. This enables each alternative for
17468 different operands to be visually aligned in the machine
17469 description even if they have different number of constraints and
17473 A memory operand is allowed, with any kind of address that the
17474 machine supports in general. Note that the letter used for the
17475 general memory constraint can be re-defined by a back end using
17476 the `TARGET_MEM_CONSTRAINT' macro.
17479 A memory operand is allowed, but only if the address is
17480 "offsettable". This means that adding a small integer (actually,
17481 the width in bytes of the operand, as determined by its machine
17482 mode) may be added to the address and the result is also a valid
17485 For example, an address which is constant is offsettable; so is an
17486 address that is the sum of a register and a constant (as long as a
17487 slightly larger constant is also within the range of
17488 address-offsets supported by the machine); but an autoincrement or
17489 autodecrement address is not offsettable. More complicated
17490 indirect/indexed addresses may or may not be offsettable depending
17491 on the other addressing modes that the machine supports.
17493 Note that in an output operand which can be matched by another
17494 operand, the constraint letter `o' is valid only when accompanied
17495 by both `<' (if the target machine has predecrement addressing)
17496 and `>' (if the target machine has preincrement addressing).
17499 A memory operand that is not offsettable. In other words,
17500 anything that would fit the `m' constraint but not the `o'
17504 A memory operand with autodecrement addressing (either
17505 predecrement or postdecrement) is allowed.
17508 A memory operand with autoincrement addressing (either
17509 preincrement or postincrement) is allowed.
17512 A register operand is allowed provided that it is in a general
17516 An immediate integer operand (one with constant value) is allowed.
17517 This includes symbolic constants whose values will be known only at
17518 assembly time or later.
17521 An immediate integer operand with a known numeric value is allowed.
17522 Many systems cannot support assembly-time constants for operands
17523 less than a word wide. Constraints for these operands should use
17524 `n' rather than `i'.
17526 `I', `J', `K', ... `P'
17527 Other letters in the range `I' through `P' may be defined in a
17528 machine-dependent fashion to permit immediate integer operands with
17529 explicit integer values in specified ranges. For example, on the
17530 68000, `I' is defined to stand for the range of values 1 to 8.
17531 This is the range permitted as a shift count in the shift
17535 An immediate floating operand (expression code `const_double') is
17536 allowed, but only if the target floating point format is the same
17537 as that of the host machine (on which the compiler is running).
17540 An immediate floating operand (expression code `const_double' or
17541 `const_vector') is allowed.
17544 `G' and `H' may be defined in a machine-dependent fashion to
17545 permit immediate floating operands in particular ranges of values.
17548 An immediate integer operand whose value is not an explicit
17549 integer is allowed.
17551 This might appear strange; if an insn allows a constant operand
17552 with a value not known at compile time, it certainly must allow
17553 any known value. So why use `s' instead of `i'? Sometimes it
17554 allows better code to be generated.
17556 For example, on the 68000 in a fullword instruction it is possible
17557 to use an immediate operand; but if the immediate value is between
17558 -128 and 127, better code results from loading the value into a
17559 register and using the register. This is because the load into
17560 the register can be done with a `moveq' instruction. We arrange
17561 for this to happen by defining the letter `K' to mean "any integer
17562 outside the range -128 to 127", and then specifying `Ks' in the
17563 operand constraints.
17566 Any register, memory or immediate integer operand is allowed,
17567 except for registers that are not general registers.
17570 Any operand whatsoever is allowed, even if it does not satisfy
17571 `general_operand'. This is normally used in the constraint of a
17572 `match_scratch' when certain alternatives will not actually
17573 require a scratch register.
17575 `0', `1', `2', ... `9'
17576 An operand that matches the specified operand number is allowed.
17577 If a digit is used together with letters within the same
17578 alternative, the digit should come last.
17580 This number is allowed to be more than a single digit. If multiple
17581 digits are encountered consecutively, they are interpreted as a
17582 single decimal integer. There is scant chance for ambiguity,
17583 since to-date it has never been desirable that `10' be interpreted
17584 as matching either operand 1 _or_ operand 0. Should this be
17585 desired, one can use multiple alternatives instead.
17587 This is called a "matching constraint" and what it really means is
17588 that the assembler has only a single operand that fills two roles
17589 considered separate in the RTL insn. For example, an add insn has
17590 two input operands and one output operand in the RTL, but on most
17591 CISC machines an add instruction really has only two operands, one
17592 of them an input-output operand:
17596 Matching constraints are used in these circumstances. More
17597 precisely, the two operands that match must include one input-only
17598 operand and one output-only operand. Moreover, the digit must be a
17599 smaller number than the number of the operand that uses it in the
17602 For operands to match in a particular case usually means that they
17603 are identical-looking RTL expressions. But in a few special cases
17604 specific kinds of dissimilarity are allowed. For example, `*x' as
17605 an input operand will match `*x++' as an output operand. For
17606 proper results in such cases, the output template should always
17607 use the output-operand's number when printing the operand.
17610 An operand that is a valid memory address is allowed. This is for
17611 "load address" and "push address" instructions.
17613 `p' in the constraint must be accompanied by `address_operand' as
17614 the predicate in the `match_operand'. This predicate interprets
17615 the mode specified in the `match_operand' as the mode of the memory
17616 reference for which the address would be valid.
17619 Other letters can be defined in machine-dependent fashion to stand
17620 for particular classes of registers or other arbitrary operand
17621 types. `d', `a' and `f' are defined on the 68000/68020 to stand
17622 for data, address and floating point registers.
17624 In order to have valid assembler code, each operand must satisfy its
17625 constraint. But a failure to do so does not prevent the pattern from
17626 applying to an insn. Instead, it directs the compiler to modify the
17627 code so that the constraint will be satisfied. Usually this is done by
17628 copying an operand into a register.
17630 Contrast, therefore, the two instruction patterns that follow:
17633 [(set (match_operand:SI 0 "general_operand" "=r")
17634 (plus:SI (match_dup 0)
17635 (match_operand:SI 1 "general_operand" "r")))]
17639 which has two operands, one of which must appear in two places, and
17642 [(set (match_operand:SI 0 "general_operand" "=r")
17643 (plus:SI (match_operand:SI 1 "general_operand" "0")
17644 (match_operand:SI 2 "general_operand" "r")))]
17648 which has three operands, two of which are required by a constraint to
17649 be identical. If we are considering an insn of the form
17653 (plus:SI (reg:SI 6) (reg:SI 109)))
17656 the first pattern would not apply at all, because this insn does not
17657 contain two identical subexpressions in the right place. The pattern
17658 would say, "That does not look like an add instruction; try other
17659 patterns". The second pattern would say, "Yes, that's an add
17660 instruction, but there is something wrong with it". It would direct
17661 the reload pass of the compiler to generate additional insns to make
17662 the constraint true. The results might look like this:
17665 (set (reg:SI 3) (reg:SI 6))
17670 (plus:SI (reg:SI 3) (reg:SI 109)))
17673 It is up to you to make sure that each operand, in each pattern, has
17674 constraints that can handle any RTL expression that could be present for
17675 that operand. (When multiple alternatives are in use, each pattern
17676 must, for each possible combination of operand expressions, have at
17677 least one alternative which can handle that combination of operands.)
17678 The constraints don't need to _allow_ any possible operand--when this is
17679 the case, they do not constrain--but they must at least point the way to
17680 reloading any possible operand so that it will fit.
17682 * If the constraint accepts whatever operands the predicate permits,
17683 there is no problem: reloading is never necessary for this operand.
17685 For example, an operand whose constraints permit everything except
17686 registers is safe provided its predicate rejects registers.
17688 An operand whose predicate accepts only constant values is safe
17689 provided its constraints include the letter `i'. If any possible
17690 constant value is accepted, then nothing less than `i' will do; if
17691 the predicate is more selective, then the constraints may also be
17694 * Any operand expression can be reloaded by copying it into a
17695 register. So if an operand's constraints allow some kind of
17696 register, it is certain to be safe. It need not permit all
17697 classes of registers; the compiler knows how to copy a register
17698 into another register of the proper class in order to make an
17701 * A nonoffsettable memory reference can be reloaded by copying the
17702 address into a register. So if the constraint uses the letter
17703 `o', all memory references are taken care of.
17705 * A constant operand can be reloaded by allocating space in memory to
17706 hold it as preinitialized data. Then the memory reference can be
17707 used in place of the constant. So if the constraint uses the
17708 letters `o' or `m', constant operands are not a problem.
17710 * If the constraint permits a constant and a pseudo register used in
17711 an insn was not allocated to a hard register and is equivalent to
17712 a constant, the register will be replaced with the constant. If
17713 the predicate does not permit a constant and the insn is
17714 re-recognized for some reason, the compiler will crash. Thus the
17715 predicate must always recognize any objects allowed by the
17718 If the operand's predicate can recognize registers, but the constraint
17719 does not permit them, it can make the compiler crash. When this
17720 operand happens to be a register, the reload pass will be stymied,
17721 because it does not know how to copy a register temporarily into memory.
17723 If the predicate accepts a unary operator, the constraint applies to
17724 the operand. For example, the MIPS processor at ISA level 3 supports an
17725 instruction which adds two registers in `SImode' to produce a `DImode'
17726 result, but only if the registers are correctly sign extended. This
17727 predicate for the input operands accepts a `sign_extend' of an `SImode'
17728 register. Write the constraint to indicate the type of register that
17729 is required for the operand of the `sign_extend'.
17732 File: gccint.info, Node: Multi-Alternative, Next: Class Preferences, Prev: Simple Constraints, Up: Constraints
17734 16.8.2 Multiple Alternative Constraints
17735 ---------------------------------------
17737 Sometimes a single instruction has multiple alternative sets of possible
17738 operands. For example, on the 68000, a logical-or instruction can
17739 combine register or an immediate value into memory, or it can combine
17740 any kind of operand into a register; but it cannot combine one memory
17741 location into another.
17743 These constraints are represented as multiple alternatives. An
17744 alternative can be described by a series of letters for each operand.
17745 The overall constraint for an operand is made from the letters for this
17746 operand from the first alternative, a comma, the letters for this
17747 operand from the second alternative, a comma, and so on until the last
17748 alternative. Here is how it is done for fullword logical-or on the
17751 (define_insn "iorsi3"
17752 [(set (match_operand:SI 0 "general_operand" "=m,d")
17753 (ior:SI (match_operand:SI 1 "general_operand" "%0,0")
17754 (match_operand:SI 2 "general_operand" "dKs,dmKs")))]
17757 The first alternative has `m' (memory) for operand 0, `0' for operand
17758 1 (meaning it must match operand 0), and `dKs' for operand 2. The
17759 second alternative has `d' (data register) for operand 0, `0' for
17760 operand 1, and `dmKs' for operand 2. The `=' and `%' in the
17761 constraints apply to all the alternatives; their meaning is explained
17762 in the next section (*note Class Preferences::).
17764 If all the operands fit any one alternative, the instruction is valid.
17765 Otherwise, for each alternative, the compiler counts how many
17766 instructions must be added to copy the operands so that that
17767 alternative applies. The alternative requiring the least copying is
17768 chosen. If two alternatives need the same amount of copying, the one
17769 that comes first is chosen. These choices can be altered with the `?'
17770 and `!' characters:
17773 Disparage slightly the alternative that the `?' appears in, as a
17774 choice when no alternative applies exactly. The compiler regards
17775 this alternative as one unit more costly for each `?' that appears
17779 Disparage severely the alternative that the `!' appears in. This
17780 alternative can still be used if it fits without reloading, but if
17781 reloading is needed, some other alternative will be used.
17783 When an insn pattern has multiple alternatives in its constraints,
17784 often the appearance of the assembler code is determined mostly by which
17785 alternative was matched. When this is so, the C code for writing the
17786 assembler code can use the variable `which_alternative', which is the
17787 ordinal number of the alternative that was actually satisfied (0 for
17788 the first, 1 for the second alternative, etc.). *Note Output
17792 File: gccint.info, Node: Class Preferences, Next: Modifiers, Prev: Multi-Alternative, Up: Constraints
17794 16.8.3 Register Class Preferences
17795 ---------------------------------
17797 The operand constraints have another function: they enable the compiler
17798 to decide which kind of hardware register a pseudo register is best
17799 allocated to. The compiler examines the constraints that apply to the
17800 insns that use the pseudo register, looking for the machine-dependent
17801 letters such as `d' and `a' that specify classes of registers. The
17802 pseudo register is put in whichever class gets the most "votes". The
17803 constraint letters `g' and `r' also vote: they vote in favor of a
17804 general register. The machine description says which registers are
17805 considered general.
17807 Of course, on some machines all registers are equivalent, and no
17808 register classes are defined. Then none of this complexity is relevant.
17811 File: gccint.info, Node: Modifiers, Next: Disable Insn Alternatives, Prev: Class Preferences, Up: Constraints
17813 16.8.4 Constraint Modifier Characters
17814 -------------------------------------
17816 Here are constraint modifier characters.
17819 Means that this operand is write-only for this instruction: the
17820 previous value is discarded and replaced by output data.
17823 Means that this operand is both read and written by the
17826 When the compiler fixes up the operands to satisfy the constraints,
17827 it needs to know which operands are inputs to the instruction and
17828 which are outputs from it. `=' identifies an output; `+'
17829 identifies an operand that is both input and output; all other
17830 operands are assumed to be input only.
17832 If you specify `=' or `+' in a constraint, you put it in the first
17833 character of the constraint string.
17836 Means (in a particular alternative) that this operand is an
17837 "earlyclobber" operand, which is modified before the instruction is
17838 finished using the input operands. Therefore, this operand may
17839 not lie in a register that is used as an input operand or as part
17840 of any memory address.
17842 `&' applies only to the alternative in which it is written. In
17843 constraints with multiple alternatives, sometimes one alternative
17844 requires `&' while others do not. See, for example, the `movdf'
17847 An input operand can be tied to an earlyclobber operand if its only
17848 use as an input occurs before the early result is written. Adding
17849 alternatives of this form often allows GCC to produce better code
17850 when only some of the inputs can be affected by the earlyclobber.
17851 See, for example, the `mulsi3' insn of the ARM.
17853 `&' does not obviate the need to write `='.
17856 Declares the instruction to be commutative for this operand and the
17857 following operand. This means that the compiler may interchange
17858 the two operands if that is the cheapest way to make all operands
17859 fit the constraints. This is often used in patterns for addition
17860 instructions that really have only two operands: the result must
17861 go in one of the arguments. Here for example, is how the 68000
17862 halfword-add instruction is defined:
17864 (define_insn "addhi3"
17865 [(set (match_operand:HI 0 "general_operand" "=m,r")
17866 (plus:HI (match_operand:HI 1 "general_operand" "%0,0")
17867 (match_operand:HI 2 "general_operand" "di,g")))]
17869 GCC can only handle one commutative pair in an asm; if you use
17870 more, the compiler may fail. Note that you need not use the
17871 modifier if the two alternatives are strictly identical; this
17872 would only waste time in the reload pass. The modifier is not
17873 operational after register allocation, so the result of
17874 `define_peephole2' and `define_split's performed after reload
17875 cannot rely on `%' to make the intended insn match.
17878 Says that all following characters, up to the next comma, are to be
17879 ignored as a constraint. They are significant only for choosing
17880 register preferences.
17883 Says that the following character should be ignored when choosing
17884 register preferences. `*' has no effect on the meaning of the
17885 constraint as a constraint, and no effect on reloading.
17887 Here is an example: the 68000 has an instruction to sign-extend a
17888 halfword in a data register, and can also sign-extend a value by
17889 copying it into an address register. While either kind of
17890 register is acceptable, the constraints on an address-register
17891 destination are less strict, so it is best if register allocation
17892 makes an address register its goal. Therefore, `*' is used so
17893 that the `d' constraint letter (for data register) is ignored when
17894 computing register preferences.
17896 (define_insn "extendhisi2"
17897 [(set (match_operand:SI 0 "general_operand" "=*d,a")
17899 (match_operand:HI 1 "general_operand" "0,g")))]
17903 File: gccint.info, Node: Machine Constraints, Next: Define Constraints, Prev: Disable Insn Alternatives, Up: Constraints
17905 16.8.5 Constraints for Particular Machines
17906 ------------------------------------------
17908 Whenever possible, you should use the general-purpose constraint letters
17909 in `asm' arguments, since they will convey meaning more readily to
17910 people reading your code. Failing that, use the constraint letters
17911 that usually have very similar meanings across architectures. The most
17912 commonly used constraints are `m' and `r' (for memory and
17913 general-purpose registers respectively; *note Simple Constraints::), and
17914 `I', usually the letter indicating the most common immediate-constant
17917 Each architecture defines additional constraints. These constraints
17918 are used by the compiler itself for instruction generation, as well as
17919 for `asm' statements; therefore, some of the constraints are not
17920 particularly useful for `asm'. Here is a summary of some of the
17921 machine-dependent constraints available on some particular machines; it
17922 includes both constraints that are useful for `asm' and constraints
17923 that aren't. The compiler source file mentioned in the table heading
17924 for each architecture is the definitive reference for the meanings of
17925 that architecture's constraints.
17927 _ARM family--`config/arm/arm.h'_
17930 Floating-point register
17933 VFP floating-point register
17936 One of the floating-point constants 0.0, 0.5, 1.0, 2.0, 3.0,
17940 Floating-point constant that would satisfy the constraint `F'
17944 Integer that is valid as an immediate operand in a data
17945 processing instruction. That is, an integer in the range 0
17946 to 255 rotated by a multiple of 2
17949 Integer in the range -4095 to 4095
17952 Integer that satisfies constraint `I' when inverted (ones
17956 Integer that satisfies constraint `I' when negated (twos
17960 Integer in the range 0 to 32
17963 A memory reference where the exact address is in a single
17964 register (``m'' is preferable for `asm' statements)
17967 An item in the constant pool
17970 A symbol in the text segment of the current file
17973 A memory reference suitable for VFP load/store insns
17974 (reg+constant offset)
17977 A memory reference suitable for iWMMXt load/store
17981 A memory reference suitable for the ARMv4 ldrsb instruction.
17983 _AVR family--`config/avr/constraints.md'_
17986 Registers from r0 to r15
17989 Registers from r16 to r23
17992 Registers from r16 to r31
17995 Registers from r24 to r31. These registers can be used in
17999 Pointer register (r26-r31)
18002 Base pointer register (r28-r31)
18005 Stack pointer register (SPH:SPL)
18008 Temporary register r0
18011 Register pair X (r27:r26)
18014 Register pair Y (r29:r28)
18017 Register pair Z (r31:r30)
18020 Constant greater than -1, less than 64
18023 Constant greater than -64, less than 1
18032 Constant that fits in 8 bits
18035 Constant integer -1
18038 Constant integer 8, 16, or 24
18044 A floating point constant 0.0
18047 Integer constant in the range -6 ... 5.
18050 A memory address based on Y or Z pointer with displacement.
18052 _CRX Architecture--`config/crx/crx.h'_
18055 Registers from r0 to r14 (registers without stack pointer)
18058 Register r16 (64-bit accumulator lo register)
18061 Register r17 (64-bit accumulator hi register)
18064 Register pair r16-r17. (64-bit accumulator lo-hi pair)
18067 Constant that fits in 3 bits
18070 Constant that fits in 4 bits
18073 Constant that fits in 5 bits
18076 Constant that is one of -1, 4, -4, 7, 8, 12, 16, 20, 32, 48
18079 Floating point constant that is legal for store immediate
18081 _Hewlett-Packard PA-RISC--`config/pa/pa.h'_
18087 Floating point register
18090 Shift amount register
18093 Floating point register (deprecated)
18096 Upper floating point register (32-bit), floating point
18103 Signed 11-bit integer constant
18106 Signed 14-bit integer constant
18109 Integer constant that can be deposited with a `zdepi'
18113 Signed 5-bit integer constant
18119 Integer constant that can be loaded with a `ldil' instruction
18122 Integer constant whose value plus one is a power of 2
18125 Integer constant that can be used for `and' operations in
18126 `depi' and `extru' instructions
18129 Integer constant 31
18132 Integer constant 63
18135 Floating-point constant 0.0
18138 A `lo_sum' data-linkage-table memory operand
18141 A memory operand that can be used as the destination operand
18142 of an integer store instruction
18145 A scaled or unscaled indexed memory operand
18148 A memory operand for floating-point loads and stores
18151 A register indirect memory operand
18153 _picoChip family--`picochip.h'_
18159 Pointer register. A register which can be used to access
18160 memory without supplying an offset. Any other register can
18161 be used to access memory, but will need a constant offset.
18162 In the case of the offset being zero, it is more efficient to
18163 use a pointer register, since this reduces code size.
18166 A twin register. A register which may be paired with an
18167 adjacent register to create a 32-bit register.
18170 Any absolute memory address (e.g., symbolic constant, symbolic
18171 constant + offset).
18174 4-bit signed integer.
18177 4-bit unsigned integer.
18180 8-bit signed integer.
18183 Any constant whose absolute value is no greater than 4-bits.
18186 10-bit signed integer
18189 16-bit signed integer.
18192 _PowerPC and IBM RS6000--`config/rs6000/rs6000.h'_
18195 Address base register
18198 Floating point register
18204 `MQ', `CTR', or `LINK' register
18216 `CR' register (condition register) number 0
18219 `CR' register (condition register)
18222 `FPMEM' stack memory for FPR-GPR transfers
18225 Signed 16-bit constant
18228 Unsigned 16-bit constant shifted left 16 bits (use `L'
18229 instead for `SImode' constants)
18232 Unsigned 16-bit constant
18235 Signed 16-bit constant shifted left 16 bits
18238 Constant larger than 31
18247 Constant whose negation is a signed 16-bit constant
18250 Floating point constant that can be loaded into a register
18251 with one instruction per word
18254 Integer/Floating point constant that can be loaded into a
18255 register using three instructions
18258 Memory operand that is an offset from a register (`m' is
18259 preferable for `asm' statements)
18262 Memory operand that is an indexed or indirect from a register
18263 (`m' is preferable for `asm' statements)
18269 Address operand that is an indexed or indirect from a
18270 register (`p' is preferable for `asm' statements)
18273 Constant suitable as a 64-bit mask operand
18276 Constant suitable as a 32-bit mask operand
18279 System V Release 4 small data area reference
18282 AND masks that can be performed by two rldic{l, r}
18286 Vector constant that does not require memory
18289 _Intel 386--`config/i386/constraints.md'_
18292 Legacy register--the eight integer registers available on all
18293 i386 processors (`a', `b', `c', `d', `si', `di', `bp', `sp').
18296 Any register accessible as `Rl'. In 32-bit mode, `a', `b',
18297 `c', and `d'; in 64-bit mode, any integer register.
18300 Any register accessible as `Rh': `a', `b', `c', and `d'.
18303 Any register that can be used as the index in a base+index
18304 memory access: that is, any general register except the stack
18326 The `a' and `d' registers, as a pair (for instructions that
18327 return half the result in one and half in the other).
18330 Any 80387 floating-point (stack) register.
18333 Top of 80387 floating-point stack (`%st(0)').
18336 Second from top of 80387 floating-point stack (`%st(1)').
18345 First SSE register (`%xmm0').
18348 Any SSE register, when SSE2 is enabled.
18351 Any SSE register, when SSE2 and inter-unit moves are enabled.
18354 Any MMX register, when inter-unit moves are enabled.
18357 Integer constant in the range 0 ... 31, for 32-bit shifts.
18360 Integer constant in the range 0 ... 63, for 64-bit shifts.
18363 Signed 8-bit integer constant.
18366 `0xFF' or `0xFFFF', for andsi as a zero-extending move.
18369 0, 1, 2, or 3 (shifts for the `lea' instruction).
18372 Unsigned 8-bit integer constant (for `in' and `out'
18376 Integer constant in the range 0 ... 127, for 128-bit shifts.
18379 Standard 80387 floating point constant.
18382 Standard SSE floating point constant.
18385 32-bit signed integer constant, or a symbolic reference known
18386 to fit that range (for immediate operands in sign-extending
18387 x86-64 instructions).
18390 32-bit unsigned integer constant, or a symbolic reference
18391 known to fit that range (for immediate operands in
18392 zero-extending x86-64 instructions).
18395 _Intel IA-64--`config/ia64/ia64.h'_
18398 General register `r0' to `r3' for `addl' instruction
18404 Predicate register (`c' as in "conditional")
18407 Application register residing in M-unit
18410 Application register residing in I-unit
18413 Floating-point register
18416 Memory operand. Remember that `m' allows postincrement and
18417 postdecrement which require printing with `%Pn' on IA-64.
18418 Use `S' to disallow postincrement and postdecrement.
18421 Floating-point constant 0.0 or 1.0
18424 14-bit signed integer constant
18427 22-bit signed integer constant
18430 8-bit signed integer constant for logical instructions
18433 8-bit adjusted signed integer constant for compare pseudo-ops
18436 6-bit unsigned integer constant for shift counts
18439 9-bit signed integer constant for load and store
18446 0 or -1 for `dep' instruction
18449 Non-volatile memory for floating-point loads and stores
18452 Integer constant in the range 1 to 4 for `shladd' instruction
18455 Memory operand except postincrement and postdecrement
18457 _FRV--`config/frv/frv.h'_
18460 Register in the class `ACC_REGS' (`acc0' to `acc7').
18463 Register in the class `EVEN_ACC_REGS' (`acc0' to `acc7').
18466 Register in the class `CC_REGS' (`fcc0' to `fcc3' and `icc0'
18470 Register in the class `GPR_REGS' (`gr0' to `gr63').
18473 Register in the class `EVEN_REGS' (`gr0' to `gr63'). Odd
18474 registers are excluded not in the class but through the use
18475 of a machine mode larger than 4 bytes.
18478 Register in the class `FPR_REGS' (`fr0' to `fr63').
18481 Register in the class `FEVEN_REGS' (`fr0' to `fr63'). Odd
18482 registers are excluded not in the class but through the use
18483 of a machine mode larger than 4 bytes.
18486 Register in the class `LR_REG' (the `lr' register).
18489 Register in the class `QUAD_REGS' (`gr2' to `gr63').
18490 Register numbers not divisible by 4 are excluded not in the
18491 class but through the use of a machine mode larger than 8
18495 Register in the class `ICC_REGS' (`icc0' to `icc3').
18498 Register in the class `FCC_REGS' (`fcc0' to `fcc3').
18501 Register in the class `ICR_REGS' (`cc4' to `cc7').
18504 Register in the class `FCR_REGS' (`cc0' to `cc3').
18507 Register in the class `QUAD_FPR_REGS' (`fr0' to `fr63').
18508 Register numbers not divisible by 4 are excluded not in the
18509 class but through the use of a machine mode larger than 8
18513 Register in the class `SPR_REGS' (`lcr' and `lr').
18516 Register in the class `QUAD_ACC_REGS' (`acc0' to `acc7').
18519 Register in the class `ACCG_REGS' (`accg0' to `accg7').
18522 Register in the class `CR_REGS' (`cc0' to `cc7').
18525 Floating point constant zero
18528 6-bit signed integer constant
18531 10-bit signed integer constant
18534 16-bit signed integer constant
18537 16-bit unsigned integer constant
18540 12-bit signed integer constant that is negative--i.e. in the
18541 range of -2048 to -1
18547 12-bit signed integer constant that is greater than
18548 zero--i.e. in the range of 1 to 2047.
18551 _Blackfin family--`config/bfin/constraints.md'_
18560 A call clobbered P register.
18563 A single register. If N is in the range 0 to 7, the
18564 corresponding D register. If it is `A', then the register P0.
18567 Even-numbered D register
18570 Odd-numbered D register
18573 Accumulator register.
18576 Even-numbered accumulator register.
18579 Odd-numbered accumulator register.
18591 Registers used for circular buffering, i.e. I, B, or L
18607 Any D, P, B, M, I or L register.
18610 Additional registers typically used only in prologues and
18611 epilogues: RETS, RETN, RETI, RETX, RETE, ASTAT, SEQSTAT and
18615 Any register except accumulators or CC.
18618 Signed 16 bit integer (in the range -32768 to 32767)
18621 Unsigned 16 bit integer (in the range 0 to 65535)
18624 Signed 7 bit integer (in the range -64 to 63)
18627 Unsigned 7 bit integer (in the range 0 to 127)
18630 Unsigned 5 bit integer (in the range 0 to 31)
18633 Signed 4 bit integer (in the range -8 to 7)
18636 Signed 3 bit integer (in the range -3 to 4)
18639 Unsigned 3 bit integer (in the range 0 to 7)
18642 Constant N, where N is a single-digit constant in the range 0
18646 An integer equal to one of the MACFLAG_XXX constants that is
18647 suitable for use with either accumulator.
18650 An integer equal to one of the MACFLAG_XXX constants that is
18651 suitable for use only with accumulator A1.
18660 An integer constant with exactly a single bit set.
18663 An integer constant with all bits set except exactly one.
18670 _M32C--`config/m32c/m32c.c'_
18675 `$sp', `$fb', `$sb'.
18678 Any control register, when they're 16 bits wide (nothing if
18679 control registers are 24 bits wide)
18682 Any control register, when they're 24 bits wide.
18688 $r0, $r1, $r2, $r3.
18691 $r0 or $r2, or $r2r0 for 32 bit values.
18694 $r1 or $r3, or $r3r1 for 32 bit values.
18697 A register that can hold a 64 bit value.
18700 $r0 or $r1 (registers with addressable high/low bytes)
18709 Address registers when they're 16 bits wide.
18712 Address registers when they're 24 bits wide.
18715 Registers that can hold QI values.
18718 Registers that can be used with displacements ($a0, $a1, $sb).
18721 Registers that can hold 32 bit values.
18724 Registers that can hold 16 bit values.
18727 Registers chat can hold 16 bit values, including all control
18731 $r0 through R1, plus $a0 and $a1.
18734 The flags register.
18737 The memory-based pseudo-registers $mem0 through $mem15.
18740 Registers that can hold pointers (16 bit registers for r8c,
18741 m16c; 24 bit registers for m32cm, m32c).
18744 Matches multiple registers in a PARALLEL to form a larger
18745 register. Used to match function return values.
18760 -8 ... -1 or 1 ... 8
18763 -16 ... -1 or 1 ... 16
18766 -32 ... -1 or 1 ... 32
18772 An 8 bit value with exactly one bit set.
18775 A 16 bit value with exactly one bit set.
18778 The common src/dest memory addressing modes.
18781 Memory addressed using $a0 or $a1.
18784 Memory addressed with immediate addresses.
18787 Memory addressed using the stack pointer ($sp).
18790 Memory addressed using the frame base register ($fb).
18793 Memory addressed using the small base register ($sb).
18798 _MIPS--`config/mips/constraints.md'_
18801 An address register. This is equivalent to `r' unless
18802 generating MIPS16 code.
18805 A floating-point register (if available).
18808 Formerly the `hi' register. This constraint is no longer
18812 The `lo' register. Use this register to store values that are
18813 no bigger than a word.
18816 The concatenated `hi' and `lo' registers. Use this register
18817 to store doubleword values.
18820 A register suitable for use in an indirect jump. This will
18821 always be `$25' for `-mabicalls'.
18824 Register `$3'. Do not use this constraint in new code; it is
18825 retained only for compatibility with glibc.
18828 Equivalent to `r'; retained for backwards compatibility.
18831 A floating-point condition code register.
18834 A signed 16-bit constant (for arithmetic instructions).
18840 An unsigned 16-bit constant (for logic instructions).
18843 A signed 32-bit constant in which the lower 16 bits are zero.
18844 Such constants can be loaded using `lui'.
18847 A constant that cannot be loaded using `lui', `addiu' or
18851 A constant in the range -65535 to -1 (inclusive).
18854 A signed 15-bit constant.
18857 A constant in the range 1 to 65535 (inclusive).
18860 Floating-point zero.
18863 An address that can be used in a non-macro load or store.
18865 _Motorola 680x0--`config/m68k/constraints.md'_
18874 68881 floating-point register, if available
18877 Integer in the range 1 to 8
18880 16-bit signed number
18883 Signed number whose magnitude is greater than 0x80
18886 Integer in the range -8 to -1
18889 Signed number whose magnitude is greater than 0x100
18892 Range 24 to 31, rotatert:SI 8 to 1 expressed as rotate
18895 16 (for rotate using swap)
18898 Range 8 to 15, rotatert:HI 8 to 1 expressed as rotate
18901 Numbers that mov3q can handle
18904 Floating point constant that is not a 68881 constant
18907 Operands that satisfy 'm' when -mpcrel is in effect
18910 Operands that satisfy 's' when -mpcrel is not in effect
18913 Address register indirect addressing mode
18916 Register offset addressing
18922 symbol_ref or const
18931 Range of signed numbers that don't fit in 16 bits
18934 Integers valid for mvq
18937 Integers valid for a moveq followed by a swap
18940 Integers valid for mvz
18943 Integers valid for mvs
18949 Non-register operands allowed in clr
18952 _Motorola 68HC11 & 68HC12 families--`config/m68hc11/m68hc11.h'_
18967 Temporary soft register _.tmp
18970 A soft register _.d1 to _.d31
18973 Stack pointer register
18982 Pseudo register `z' (replaced by `x' or `y' at the end)
18985 An address register: x, y or z
18988 An address register: x or y
18991 Register pair (x:d) to form a 32-bit value
18994 Constants in the range -65536 to 65535
18997 Constants whose 16-bit low part is zero
19000 Constant integer 1 or -1
19003 Constant integer 16
19006 Constants in the range -8 to 2
19009 _SPARC--`config/sparc/sparc.h'_
19012 Floating-point register on the SPARC-V8 architecture and
19013 lower floating-point register on the SPARC-V9 architecture.
19016 Floating-point register. It is equivalent to `f' on the
19017 SPARC-V8 architecture and contains both lower and upper
19018 floating-point registers on the SPARC-V9 architecture.
19021 Floating-point condition code register.
19024 Lower floating-point register. It is only valid on the
19025 SPARC-V9 architecture when the Visual Instruction Set is
19029 Floating-point register. It is only valid on the SPARC-V9
19030 architecture when the Visual Instruction Set is available.
19033 64-bit global or out register for the SPARC-V8+ architecture.
19039 Signed 13-bit constant
19045 32-bit constant with the low 12 bits clear (a constant that
19046 can be loaded with the `sethi' instruction)
19049 A constant in the range supported by `movcc' instructions
19052 A constant in the range supported by `movrcc' instructions
19055 Same as `K', except that it verifies that bits that are not
19056 in the lower 32-bit range are all zero. Must be used instead
19057 of `K' for modes wider than `SImode'
19063 Floating-point zero
19066 Signed 13-bit constant, sign-extended to 32 or 64 bits
19069 Floating-point constant whose integral representation can be
19070 moved into an integer register using a single sethi
19074 Floating-point constant whose integral representation can be
19075 moved into an integer register using a single mov instruction
19078 Floating-point constant whose integral representation can be
19079 moved into an integer register using a high/lo_sum
19080 instruction sequence
19083 Memory address aligned to an 8-byte boundary
19089 Memory address for `e' constraint registers
19095 _SPU--`config/spu/spu.h'_
19098 An immediate which can be loaded with the il/ila/ilh/ilhu
19099 instructions. const_int is treated as a 64 bit value.
19102 An immediate for and/xor/or instructions. const_int is
19103 treated as a 64 bit value.
19106 An immediate for the `iohl' instruction. const_int is
19107 treated as a 64 bit value.
19110 An immediate which can be loaded with `fsmbi'.
19113 An immediate which can be loaded with the il/ila/ilh/ilhu
19114 instructions. const_int is treated as a 32 bit value.
19117 An immediate for most arithmetic instructions. const_int is
19118 treated as a 32 bit value.
19121 An immediate for and/xor/or instructions. const_int is
19122 treated as a 32 bit value.
19125 An immediate for the `iohl' instruction. const_int is
19126 treated as a 32 bit value.
19129 A constant in the range [-64, 63] for shift/rotate
19133 An unsigned 7-bit constant for conversion/nop/channel
19137 A signed 10-bit constant for most arithmetic instructions.
19140 A signed 16 bit immediate for `stop'.
19143 An unsigned 16-bit constant for `iohl' and `fsmbi'.
19146 An unsigned 7-bit constant whose 3 least significant bits are
19150 An unsigned 3-bit constant for 16-byte rotates and shifts
19153 Call operand, reg, for indirect calls
19156 Call operand, symbol, for relative calls.
19159 Call operand, const_int, for absolute calls.
19162 An immediate which can be loaded with the il/ila/ilh/ilhu
19163 instructions. const_int is sign extended to 128 bit.
19166 An immediate for shift and rotate instructions. const_int is
19167 treated as a 32 bit value.
19170 An immediate for and/xor/or instructions. const_int is sign
19171 extended as a 128 bit.
19174 An immediate for the `iohl' instruction. const_int is sign
19175 extended to 128 bit.
19178 _S/390 and zSeries--`config/s390/s390.h'_
19181 Address register (general purpose register except r0)
19184 Condition code register
19187 Data register (arbitrary general purpose register)
19190 Floating-point register
19193 Unsigned 8-bit constant (0-255)
19196 Unsigned 12-bit constant (0-4095)
19199 Signed 16-bit constant (-32768-32767)
19202 Value appropriate as displacement.
19204 for short displacement
19206 `(-524288..524287)'
19207 for long displacement
19210 Constant integer with a value of 0x7fffffff.
19213 Multiple letter constraint followed by 4 parameter letters.
19215 number of the part counting from most to least
19222 mode of the containing operand
19225 value of the other parts (F--all bits set)
19226 The constraint matches if the specified part of a constant
19227 has a value different from its other parts.
19230 Memory reference without index register and with short
19234 Memory reference with index register and short displacement.
19237 Memory reference without index register but with long
19241 Memory reference with index register and long displacement.
19244 Pointer with short displacement.
19247 Pointer with long displacement.
19250 Shift count operand.
19253 _Score family--`config/score/score.h'_
19256 Registers from r0 to r32.
19259 Registers from r0 to r16.
19262 r8--r11 or r22--r27 registers.
19283 cnt + lcb + scb register.
19286 cr0--cr15 register.
19298 cp1 + cp2 + cp3 registers.
19301 High 16-bit constant (32-bit constant with 16 LSBs zero).
19304 Unsigned 5 bit integer (in the range 0 to 31).
19307 Unsigned 16 bit integer (in the range 0 to 65535).
19310 Signed 16 bit integer (in the range -32768 to 32767).
19313 Unsigned 14 bit integer (in the range 0 to 16383).
19316 Signed 14 bit integer (in the range -8192 to 8191).
19321 _Xstormy16--`config/stormy16/stormy16.h'_
19336 Registers r0 through r7.
19339 Registers r0 and r1.
19342 The carry register.
19345 Registers r8 and r9.
19348 A constant between 0 and 3 inclusive.
19351 A constant that has exactly one bit set.
19354 A constant that has exactly one bit clear.
19357 A constant between 0 and 255 inclusive.
19360 A constant between -255 and 0 inclusive.
19363 A constant between -3 and 0 inclusive.
19366 A constant between 1 and 4 inclusive.
19369 A constant between -4 and -1 inclusive.
19372 A memory reference that is a stack push.
19375 A memory reference that is a stack pop.
19378 A memory reference that refers to a constant address of known
19382 The register indicated by Rx (not implemented yet).
19385 A constant that is not between 2 and 15 inclusive.
19391 _Xtensa--`config/xtensa/constraints.md'_
19394 General-purpose 32-bit register
19397 One-bit boolean register
19400 MAC16 40-bit accumulator register
19403 Signed 12-bit integer constant, for use in MOVI instructions
19406 Signed 8-bit integer constant, for use in ADDI instructions
19409 Integer constant valid for BccI instructions
19412 Unsigned constant valid for BccUI instructions
19417 File: gccint.info, Node: Disable Insn Alternatives, Next: Machine Constraints, Prev: Modifiers, Up: Constraints
19419 16.8.6 Disable insn alternatives using the `enabled' attribute
19420 --------------------------------------------------------------
19422 The `enabled' insn attribute may be used to disable certain insn
19423 alternatives for machine-specific reasons. This is useful when adding
19424 new instructions to an existing pattern which are only available for
19425 certain cpu architecture levels as specified with the `-march=' option.
19427 If an insn alternative is disabled, then it will never be used. The
19428 compiler treats the constraints for the disabled alternative as
19431 In order to make use of the `enabled' attribute a back end has to add
19432 in the machine description files:
19434 1. A definition of the `enabled' insn attribute. The attribute is
19435 defined as usual using the `define_attr' command. This definition
19436 should be based on other insn attributes and/or target flags. The
19437 `enabled' attribute is a numeric attribute and should evaluate to
19438 `(const_int 1)' for an enabled alternative and to `(const_int 0)'
19441 2. A definition of another insn attribute used to describe for what
19442 reason an insn alternative might be available or not. E.g.
19443 `cpu_facility' as in the example below.
19445 3. An assignment for the second attribute to each insn definition
19446 combining instructions which are not all available under the same
19447 circumstances. (Note: It obviously only makes sense for
19448 definitions with more than one alternative. Otherwise the insn
19449 pattern should be disabled or enabled using the insn condition.)
19451 E.g. the following two patterns could easily be merged using the
19452 `enabled' attribute:
19455 (define_insn "*movdi_old"
19456 [(set (match_operand:DI 0 "register_operand" "=d")
19457 (match_operand:DI 1 "register_operand" " d"))]
19461 (define_insn "*movdi_new"
19462 [(set (match_operand:DI 0 "register_operand" "=d,f,d")
19463 (match_operand:DI 1 "register_operand" " d,d,f"))]
19473 (define_insn "*movdi_combined"
19474 [(set (match_operand:DI 0 "register_operand" "=d,f,d")
19475 (match_operand:DI 1 "register_operand" " d,d,f"))]
19481 [(set_attr "cpu_facility" "*,new,new")])
19483 with the `enabled' attribute defined like this:
19486 (define_attr "cpu_facility" "standard,new" (const_string "standard"))
19488 (define_attr "enabled" ""
19489 (cond [(eq_attr "cpu_facility" "standard") (const_int 1)
19490 (and (eq_attr "cpu_facility" "new")
19491 (ne (symbol_ref "TARGET_NEW") (const_int 0)))
19496 File: gccint.info, Node: Define Constraints, Next: C Constraint Interface, Prev: Machine Constraints, Up: Constraints
19498 16.8.7 Defining Machine-Specific Constraints
19499 --------------------------------------------
19501 Machine-specific constraints fall into two categories: register and
19502 non-register constraints. Within the latter category, constraints
19503 which allow subsets of all possible memory or address operands should
19504 be specially marked, to give `reload' more information.
19506 Machine-specific constraints can be given names of arbitrary length,
19507 but they must be entirely composed of letters, digits, underscores
19508 (`_'), and angle brackets (`< >'). Like C identifiers, they must begin
19509 with a letter or underscore.
19511 In order to avoid ambiguity in operand constraint strings, no
19512 constraint can have a name that begins with any other constraint's
19513 name. For example, if `x' is defined as a constraint name, `xy' may
19514 not be, and vice versa. As a consequence of this rule, no constraint
19515 may begin with one of the generic constraint letters: `E F V X g i m n
19518 Register constraints correspond directly to register classes. *Note
19519 Register Classes::. There is thus not much flexibility in their
19522 -- MD Expression: define_register_constraint name regclass docstring
19523 All three arguments are string constants. NAME is the name of the
19524 constraint, as it will appear in `match_operand' expressions. If
19525 NAME is a multi-letter constraint its length shall be the same for
19526 all constraints starting with the same letter. REGCLASS can be
19527 either the name of the corresponding register class (*note
19528 Register Classes::), or a C expression which evaluates to the
19529 appropriate register class. If it is an expression, it must have
19530 no side effects, and it cannot look at the operand. The usual use
19531 of expressions is to map some register constraints to `NO_REGS'
19532 when the register class is not available on a given
19535 DOCSTRING is a sentence documenting the meaning of the constraint.
19536 Docstrings are explained further below.
19538 Non-register constraints are more like predicates: the constraint
19539 definition gives a Boolean expression which indicates whether the
19540 constraint matches.
19542 -- MD Expression: define_constraint name docstring exp
19543 The NAME and DOCSTRING arguments are the same as for
19544 `define_register_constraint', but note that the docstring comes
19545 immediately after the name for these expressions. EXP is an RTL
19546 expression, obeying the same rules as the RTL expressions in
19547 predicate definitions. *Note Defining Predicates::, for details.
19548 If it evaluates true, the constraint matches; if it evaluates
19549 false, it doesn't. Constraint expressions should indicate which
19550 RTL codes they might match, just like predicate expressions.
19552 `match_test' C expressions have access to the following variables:
19555 The RTL object defining the operand.
19558 The machine mode of OP.
19561 `INTVAL (OP)', if OP is a `const_int'.
19564 `CONST_DOUBLE_HIGH (OP)', if OP is an integer `const_double'.
19567 `CONST_DOUBLE_LOW (OP)', if OP is an integer `const_double'.
19570 `CONST_DOUBLE_REAL_VALUE (OP)', if OP is a floating-point
19573 The *VAL variables should only be used once another piece of the
19574 expression has verified that OP is the appropriate kind of RTL
19577 Most non-register constraints should be defined with
19578 `define_constraint'. The remaining two definition expressions are only
19579 appropriate for constraints that should be handled specially by
19580 `reload' if they fail to match.
19582 -- MD Expression: define_memory_constraint name docstring exp
19583 Use this expression for constraints that match a subset of all
19584 memory operands: that is, `reload' can make them match by
19585 converting the operand to the form `(mem (reg X))', where X is a
19586 base register (from the register class specified by
19587 `BASE_REG_CLASS', *note Register Classes::).
19589 For example, on the S/390, some instructions do not accept
19590 arbitrary memory references, but only those that do not make use
19591 of an index register. The constraint letter `Q' is defined to
19592 represent a memory address of this type. If `Q' is defined with
19593 `define_memory_constraint', a `Q' constraint can handle any memory
19594 operand, because `reload' knows it can simply copy the memory
19595 address into a base register if required. This is analogous to
19596 the way a `o' constraint can handle any memory operand.
19598 The syntax and semantics are otherwise identical to
19599 `define_constraint'.
19601 -- MD Expression: define_address_constraint name docstring exp
19602 Use this expression for constraints that match a subset of all
19603 address operands: that is, `reload' can make the constraint match
19604 by converting the operand to the form `(reg X)', again with X a
19607 Constraints defined with `define_address_constraint' can only be
19608 used with the `address_operand' predicate, or machine-specific
19609 predicates that work the same way. They are treated analogously to
19610 the generic `p' constraint.
19612 The syntax and semantics are otherwise identical to
19613 `define_constraint'.
19615 For historical reasons, names beginning with the letters `G H' are
19616 reserved for constraints that match only `const_double's, and names
19617 beginning with the letters `I J K L M N O P' are reserved for
19618 constraints that match only `const_int's. This may change in the
19619 future. For the time being, constraints with these names must be
19620 written in a stylized form, so that `genpreds' can tell you did it
19623 (define_constraint "[GHIJKLMNOP]..."
19625 (and (match_code "const_int") ; `const_double' for G/H
19626 CONDITION...)) ; usually a `match_test'
19628 It is fine to use names beginning with other letters for constraints
19629 that match `const_double's or `const_int's.
19631 Each docstring in a constraint definition should be one or more
19632 complete sentences, marked up in Texinfo format. _They are currently
19633 unused._ In the future they will be copied into the GCC manual, in
19634 *Note Machine Constraints::, replacing the hand-maintained tables
19635 currently found in that section. Also, in the future the compiler may
19636 use this to give more helpful diagnostics when poor choice of `asm'
19637 constraints causes a reload failure.
19639 If you put the pseudo-Texinfo directive `@internal' at the beginning
19640 of a docstring, then (in the future) it will appear only in the
19641 internals manual's version of the machine-specific constraint tables.
19642 Use this for constraints that should not appear in `asm' statements.
19645 File: gccint.info, Node: C Constraint Interface, Prev: Define Constraints, Up: Constraints
19647 16.8.8 Testing constraints from C
19648 ---------------------------------
19650 It is occasionally useful to test a constraint from C code rather than
19651 implicitly via the constraint string in a `match_operand'. The
19652 generated file `tm_p.h' declares a few interfaces for working with
19653 machine-specific constraints. None of these interfaces work with the
19654 generic constraints described in *Note Simple Constraints::. This may
19655 change in the future.
19657 *Warning:* `tm_p.h' may declare other functions that operate on
19658 constraints, besides the ones documented here. Do not use those
19659 functions from machine-dependent code. They exist to implement the old
19660 constraint interface that machine-independent components of the
19661 compiler still expect. They will change or disappear in the future.
19663 Some valid constraint names are not valid C identifiers, so there is a
19664 mangling scheme for referring to them from C. Constraint names that do
19665 not contain angle brackets or underscores are left unchanged.
19666 Underscores are doubled, each `<' is replaced with `_l', and each `>'
19667 with `_g'. Here are some examples:
19669 *Original* *Mangled*
19677 Throughout this section, the variable C is either a constraint in the
19678 abstract sense, or a constant from `enum constraint_num'; the variable
19679 M is a mangled constraint name (usually as part of a larger identifier).
19681 -- Enum: constraint_num
19682 For each machine-specific constraint, there is a corresponding
19683 enumeration constant: `CONSTRAINT_' plus the mangled name of the
19684 constraint. Functions that take an `enum constraint_num' as an
19685 argument expect one of these constants.
19687 Machine-independent constraints do not have associated constants.
19688 This may change in the future.
19690 -- Function: inline bool satisfies_constraint_M (rtx EXP)
19691 For each machine-specific, non-register constraint M, there is one
19692 of these functions; it returns `true' if EXP satisfies the
19693 constraint. These functions are only visible if `rtl.h' was
19694 included before `tm_p.h'.
19696 -- Function: bool constraint_satisfied_p (rtx EXP, enum constraint_num
19698 Like the `satisfies_constraint_M' functions, but the constraint to
19699 test is given as an argument, C. If C specifies a register
19700 constraint, this function will always return `false'.
19702 -- Function: enum reg_class regclass_for_constraint (enum
19704 Returns the register class associated with C. If C is not a
19705 register constraint, or those registers are not available for the
19706 currently selected subtarget, returns `NO_REGS'.
19708 Here is an example use of `satisfies_constraint_M'. In peephole
19709 optimizations (*note Peephole Definitions::), operand constraint
19710 strings are ignored, so if there are relevant constraints, they must be
19711 tested in the C condition. In the example, the optimization is applied
19712 if operand 2 does _not_ satisfy the `K' constraint. (This is a
19713 simplified version of a peephole definition from the i386 machine
19717 [(match_scratch:SI 3 "r")
19718 (set (match_operand:SI 0 "register_operand" "")
19719 (mult:SI (match_operand:SI 1 "memory_operand" "")
19720 (match_operand:SI 2 "immediate_operand" "")))]
19722 "!satisfies_constraint_K (operands[2])"
19724 [(set (match_dup 3) (match_dup 1))
19725 (set (match_dup 0) (mult:SI (match_dup 3) (match_dup 2)))]
19730 File: gccint.info, Node: Standard Names, Next: Pattern Ordering, Prev: Constraints, Up: Machine Desc
19732 16.9 Standard Pattern Names For Generation
19733 ==========================================
19735 Here is a table of the instruction names that are meaningful in the RTL
19736 generation pass of the compiler. Giving one of these names to an
19737 instruction pattern tells the RTL generation pass that it can use the
19738 pattern to accomplish a certain task.
19741 Here M stands for a two-letter machine mode name, in lowercase.
19742 This instruction pattern moves data with that machine mode from
19743 operand 1 to operand 0. For example, `movsi' moves full-word data.
19745 If operand 0 is a `subreg' with mode M of a register whose own
19746 mode is wider than M, the effect of this instruction is to store
19747 the specified value in the part of the register that corresponds
19748 to mode M. Bits outside of M, but which are within the same
19749 target word as the `subreg' are undefined. Bits which are outside
19750 the target word are left unchanged.
19752 This class of patterns is special in several ways. First of all,
19753 each of these names up to and including full word size _must_ be
19754 defined, because there is no other way to copy a datum from one
19755 place to another. If there are patterns accepting operands in
19756 larger modes, `movM' must be defined for integer modes of those
19759 Second, these patterns are not used solely in the RTL generation
19760 pass. Even the reload pass can generate move insns to copy values
19761 from stack slots into temporary registers. When it does so, one
19762 of the operands is a hard register and the other is an operand
19763 that can need to be reloaded into a register.
19765 Therefore, when given such a pair of operands, the pattern must
19766 generate RTL which needs no reloading and needs no temporary
19767 registers--no registers other than the operands. For example, if
19768 you support the pattern with a `define_expand', then in such a
19769 case the `define_expand' mustn't call `force_reg' or any other such
19770 function which might generate new pseudo registers.
19772 This requirement exists even for subword modes on a RISC machine
19773 where fetching those modes from memory normally requires several
19774 insns and some temporary registers.
19776 During reload a memory reference with an invalid address may be
19777 passed as an operand. Such an address will be replaced with a
19778 valid address later in the reload pass. In this case, nothing may
19779 be done with the address except to use it as it stands. If it is
19780 copied, it will not be replaced with a valid address. No attempt
19781 should be made to make such an address into a valid address and no
19782 routine (such as `change_address') that will do so may be called.
19783 Note that `general_operand' will fail when applied to such an
19786 The global variable `reload_in_progress' (which must be explicitly
19787 declared if required) can be used to determine whether such special
19788 handling is required.
19790 The variety of operands that have reloads depends on the rest of
19791 the machine description, but typically on a RISC machine these can
19792 only be pseudo registers that did not get hard registers, while on
19793 other machines explicit memory references will get optional
19796 If a scratch register is required to move an object to or from
19797 memory, it can be allocated using `gen_reg_rtx' prior to life
19800 If there are cases which need scratch registers during or after
19801 reload, you must provide an appropriate secondary_reload target
19804 The macro `can_create_pseudo_p' can be used to determine if it is
19805 unsafe to create new pseudo registers. If this variable is
19806 nonzero, then it is unsafe to call `gen_reg_rtx' to allocate a new
19809 The constraints on a `movM' must permit moving any hard register
19810 to any other hard register provided that `HARD_REGNO_MODE_OK'
19811 permits mode M in both registers and `REGISTER_MOVE_COST' applied
19812 to their classes returns a value of 2.
19814 It is obligatory to support floating point `movM' instructions
19815 into and out of any registers that can hold fixed point values,
19816 because unions and structures (which have modes `SImode' or
19817 `DImode') can be in those registers and they may have floating
19820 There may also be a need to support fixed point `movM'
19821 instructions in and out of floating point registers.
19822 Unfortunately, I have forgotten why this was so, and I don't know
19823 whether it is still true. If `HARD_REGNO_MODE_OK' rejects fixed
19824 point values in floating point registers, then the constraints of
19825 the fixed point `movM' instructions must be designed to avoid ever
19826 trying to reload into a floating point register.
19830 These named patterns have been obsoleted by the target hook
19831 `secondary_reload'.
19833 Like `movM', but used when a scratch register is required to move
19834 between operand 0 and operand 1. Operand 2 describes the scratch
19835 register. See the discussion of the `SECONDARY_RELOAD_CLASS'
19836 macro in *note Register Classes::.
19838 There are special restrictions on the form of the `match_operand's
19839 used in these patterns. First, only the predicate for the reload
19840 operand is examined, i.e., `reload_in' examines operand 1, but not
19841 the predicates for operand 0 or 2. Second, there may be only one
19842 alternative in the constraints. Third, only a single register
19843 class letter may be used for the constraint; subsequent constraint
19844 letters are ignored. As a special exception, an empty constraint
19845 string matches the `ALL_REGS' register class. This may relieve
19846 ports of the burden of defining an `ALL_REGS' constraint letter
19847 just for these patterns.
19850 Like `movM' except that if operand 0 is a `subreg' with mode M of
19851 a register whose natural mode is wider, the `movstrictM'
19852 instruction is guaranteed not to alter any of the register except
19853 the part which belongs to mode M.
19856 This variant of a move pattern is designed to load or store a value
19857 from a memory address that is not naturally aligned for its mode.
19858 For a store, the memory will be in operand 0; for a load, the
19859 memory will be in operand 1. The other operand is guaranteed not
19860 to be a memory, so that it's easy to tell whether this is a load
19863 This pattern is used by the autovectorizer, and when expanding a
19864 `MISALIGNED_INDIRECT_REF' expression.
19867 Load several consecutive memory locations into consecutive
19868 registers. Operand 0 is the first of the consecutive registers,
19869 operand 1 is the first memory location, and operand 2 is a
19870 constant: the number of consecutive registers.
19872 Define this only if the target machine really has such an
19873 instruction; do not define this if the most efficient way of
19874 loading consecutive registers from memory is to do them one at a
19877 On some machines, there are restrictions as to which consecutive
19878 registers can be stored into memory, such as particular starting or
19879 ending register numbers or only a range of valid counts. For those
19880 machines, use a `define_expand' (*note Expander Definitions::) and
19881 make the pattern fail if the restrictions are not met.
19883 Write the generated insn as a `parallel' with elements being a
19884 `set' of one register from the appropriate memory location (you may
19885 also need `use' or `clobber' elements). Use a `match_parallel'
19886 (*note RTL Template::) to recognize the insn. See `rs6000.md' for
19887 examples of the use of this insn pattern.
19890 Similar to `load_multiple', but store several consecutive registers
19891 into consecutive memory locations. Operand 0 is the first of the
19892 consecutive memory locations, operand 1 is the first register, and
19893 operand 2 is a constant: the number of consecutive registers.
19896 Set given field in the vector value. Operand 0 is the vector to
19897 modify, operand 1 is new value of field and operand 2 specify the
19901 Extract given field from the vector value. Operand 1 is the
19902 vector, operand 2 specify field index and operand 0 place to store
19905 `vec_extract_evenM'
19906 Extract even elements from the input vectors (operand 1 and
19907 operand 2). The even elements of operand 2 are concatenated to
19908 the even elements of operand 1 in their original order. The result
19909 is stored in operand 0. The output and input vectors should have
19913 Extract odd elements from the input vectors (operand 1 and operand
19914 2). The odd elements of operand 2 are concatenated to the odd
19915 elements of operand 1 in their original order. The result is
19916 stored in operand 0. The output and input vectors should have the
19919 `vec_interleave_highM'
19920 Merge high elements of the two input vectors into the output
19921 vector. The output and input vectors should have the same modes
19922 (`N' elements). The high `N/2' elements of the first input vector
19923 are interleaved with the high `N/2' elements of the second input
19926 `vec_interleave_lowM'
19927 Merge low elements of the two input vectors into the output
19928 vector. The output and input vectors should have the same modes
19929 (`N' elements). The low `N/2' elements of the first input vector
19930 are interleaved with the low `N/2' elements of the second input
19934 Initialize the vector to given values. Operand 0 is the vector to
19935 initialize and operand 1 is parallel containing values for
19939 Output a push instruction. Operand 0 is value to push. Used only
19940 when `PUSH_ROUNDING' is defined. For historical reason, this
19941 pattern may be missing and in such case an `mov' expander is used
19942 instead, with a `MEM' expression forming the push operation. The
19943 `mov' expander method is deprecated.
19946 Add operand 2 and operand 1, storing the result in operand 0. All
19947 operands must have mode M. This can be used even on two-address
19948 machines, by means of constraints requiring operands 1 and 0 to be
19951 `ssaddM3', `usaddM3'
19953 `subM3', `sssubM3', `ussubM3'
19955 `mulM3', `ssmulM3', `usmulM3'
19957 `udivM3', `usdivM3'
19960 `andM3', `iorM3', `xorM3'
19961 Similar, for other arithmetic operations.
19964 Signed minimum and maximum operations. When used with floating
19965 point, if both operands are zeros, or if either operand is `NaN',
19966 then it is unspecified which of the two operands is returned as
19969 `reduc_smin_M', `reduc_smax_M'
19970 Find the signed minimum/maximum of the elements of a vector. The
19971 vector is operand 1, and the scalar result is stored in the least
19972 significant bits of operand 0 (also a vector). The output and
19973 input vector should have the same modes.
19975 `reduc_umin_M', `reduc_umax_M'
19976 Find the unsigned minimum/maximum of the elements of a vector. The
19977 vector is operand 1, and the scalar result is stored in the least
19978 significant bits of operand 0 (also a vector). The output and
19979 input vector should have the same modes.
19982 Compute the sum of the signed elements of a vector. The vector is
19983 operand 1, and the scalar result is stored in the least
19984 significant bits of operand 0 (also a vector). The output and
19985 input vector should have the same modes.
19988 Compute the sum of the unsigned elements of a vector. The vector
19989 is operand 1, and the scalar result is stored in the least
19990 significant bits of operand 0 (also a vector). The output and
19991 input vector should have the same modes.
19996 Compute the sum of the products of two signed/unsigned elements.
19997 Operand 1 and operand 2 are of the same mode. Their product, which
19998 is of a wider mode, is computed and added to operand 3. Operand 3
19999 is of a mode equal or wider than the mode of the product. The
20000 result is placed in operand 0, which is of the same mode as
20006 Operands 0 and 2 are of the same mode, which is wider than the
20007 mode of operand 1. Add operand 1 to operand 2 and place the
20008 widened result in operand 0. (This is used express accumulation of
20009 elements into an accumulator of a wider mode.)
20011 `vec_shl_M', `vec_shr_M'
20012 Whole vector left/right shift in bits. Operand 1 is a vector to
20013 be shifted. Operand 2 is an integer shift amount in bits.
20014 Operand 0 is where the resulting shifted vector is stored. The
20015 output and input vectors should have the same modes.
20018 Narrow (demote) and merge the elements of two vectors. Operands 1
20019 and 2 are vectors of the same mode having N integral or floating
20020 point elements of size S. Operand 0 is the resulting vector in
20021 which 2*N elements of size N/2 are concatenated after narrowing
20022 them down using truncation.
20024 `vec_pack_ssat_M', `vec_pack_usat_M'
20025 Narrow (demote) and merge the elements of two vectors. Operands 1
20026 and 2 are vectors of the same mode having N integral elements of
20027 size S. Operand 0 is the resulting vector in which the elements
20028 of the two input vectors are concatenated after narrowing them
20029 down using signed/unsigned saturating arithmetic.
20031 `vec_pack_sfix_trunc_M', `vec_pack_ufix_trunc_M'
20032 Narrow, convert to signed/unsigned integral type and merge the
20033 elements of two vectors. Operands 1 and 2 are vectors of the same
20034 mode having N floating point elements of size S. Operand 0 is the
20035 resulting vector in which 2*N elements of size N/2 are
20038 `vec_unpacks_hi_M', `vec_unpacks_lo_M'
20039 Extract and widen (promote) the high/low part of a vector of signed
20040 integral or floating point elements. The input vector (operand 1)
20041 has N elements of size S. Widen (promote) the high/low elements
20042 of the vector using signed or floating point extension and place
20043 the resulting N/2 values of size 2*S in the output vector (operand
20046 `vec_unpacku_hi_M', `vec_unpacku_lo_M'
20047 Extract and widen (promote) the high/low part of a vector of
20048 unsigned integral elements. The input vector (operand 1) has N
20049 elements of size S. Widen (promote) the high/low elements of the
20050 vector using zero extension and place the resulting N/2 values of
20051 size 2*S in the output vector (operand 0).
20053 `vec_unpacks_float_hi_M', `vec_unpacks_float_lo_M'
20054 `vec_unpacku_float_hi_M', `vec_unpacku_float_lo_M'
20055 Extract, convert to floating point type and widen the high/low
20056 part of a vector of signed/unsigned integral elements. The input
20057 vector (operand 1) has N elements of size S. Convert the high/low
20058 elements of the vector using floating point conversion and place
20059 the resulting N/2 values of size 2*S in the output vector (operand
20062 `vec_widen_umult_hi_M', `vec_widen_umult_lo_M'
20063 `vec_widen_smult_hi_M', `vec_widen_smult_lo_M'
20064 Signed/Unsigned widening multiplication. The two inputs (operands
20065 1 and 2) are vectors with N signed/unsigned elements of size S.
20066 Multiply the high/low elements of the two vectors, and put the N/2
20067 products of size 2*S in the output vector (operand 0).
20070 Multiply operands 1 and 2, which have mode `HImode', and store a
20071 `SImode' product in operand 0.
20073 `mulqihi3', `mulsidi3'
20074 Similar widening-multiplication instructions of other widths.
20076 `umulqihi3', `umulhisi3', `umulsidi3'
20077 Similar widening-multiplication instructions that do unsigned
20080 `usmulqihi3', `usmulhisi3', `usmulsidi3'
20081 Similar widening-multiplication instructions that interpret the
20082 first operand as unsigned and the second operand as signed, then
20083 do a signed multiplication.
20086 Perform a signed multiplication of operands 1 and 2, which have
20087 mode M, and store the most significant half of the product in
20088 operand 0. The least significant half of the product is discarded.
20091 Similar, but the multiplication is unsigned.
20094 Multiply operands 1 and 2, sign-extend them to mode N, add operand
20095 3, and store the result in operand 0. Operands 1 and 2 have mode
20096 M and operands 0 and 3 have mode N. Both modes must be integer or
20097 fixed-point modes and N must be twice the size of M.
20099 In other words, `maddMN4' is like `mulMN3' except that it also
20102 These instructions are not allowed to `FAIL'.
20105 Like `maddMN4', but zero-extend the multiplication operands
20106 instead of sign-extending them.
20109 Like `maddMN4', but all involved operations must be
20113 Like `umaddMN4', but all involved operations must be
20114 unsigned-saturating.
20117 Multiply operands 1 and 2, sign-extend them to mode N, subtract the
20118 result from operand 3, and store the result in operand 0.
20119 Operands 1 and 2 have mode M and operands 0 and 3 have mode N.
20120 Both modes must be integer or fixed-point modes and N must be twice
20123 In other words, `msubMN4' is like `mulMN3' except that it also
20124 subtracts the result from operand 3.
20126 These instructions are not allowed to `FAIL'.
20129 Like `msubMN4', but zero-extend the multiplication operands
20130 instead of sign-extending them.
20133 Like `msubMN4', but all involved operations must be
20137 Like `umsubMN4', but all involved operations must be
20138 unsigned-saturating.
20141 Signed division that produces both a quotient and a remainder.
20142 Operand 1 is divided by operand 2 to produce a quotient stored in
20143 operand 0 and a remainder stored in operand 3.
20145 For machines with an instruction that produces both a quotient and
20146 a remainder, provide a pattern for `divmodM4' but do not provide
20147 patterns for `divM3' and `modM3'. This allows optimization in the
20148 relatively common case when both the quotient and remainder are
20151 If an instruction that just produces a quotient or just a remainder
20152 exists and is more efficient than the instruction that produces
20153 both, write the output routine of `divmodM4' to call
20154 `find_reg_note' and look for a `REG_UNUSED' note on the quotient
20155 or remainder and generate the appropriate instruction.
20158 Similar, but does unsigned division.
20160 `ashlM3', `ssashlM3', `usashlM3'
20161 Arithmetic-shift operand 1 left by a number of bits specified by
20162 operand 2, and store the result in operand 0. Here M is the mode
20163 of operand 0 and operand 1; operand 2's mode is specified by the
20164 instruction pattern, and the compiler will convert the operand to
20165 that mode before generating the instruction. The meaning of
20166 out-of-range shift counts can optionally be specified by
20167 `TARGET_SHIFT_TRUNCATION_MASK'. *Note
20168 TARGET_SHIFT_TRUNCATION_MASK::. Operand 2 is always a scalar type.
20170 `ashrM3', `lshrM3', `rotlM3', `rotrM3'
20171 Other shift and rotate instructions, analogous to the `ashlM3'
20172 instructions. Operand 2 is always a scalar type.
20174 `vashlM3', `vashrM3', `vlshrM3', `vrotlM3', `vrotrM3'
20175 Vector shift and rotate instructions that take vectors as operand 2
20176 instead of a scalar type.
20178 `negM2', `ssnegM2', `usnegM2'
20179 Negate operand 1 and store the result in operand 0.
20182 Store the absolute value of operand 1 into operand 0.
20185 Store the square root of operand 1 into operand 0.
20187 The `sqrt' built-in function of C always uses the mode which
20188 corresponds to the C data type `double' and the `sqrtf' built-in
20189 function uses the mode which corresponds to the C data type
20193 Store the remainder of dividing operand 1 by operand 2 into
20194 operand 0, rounded towards zero to an integer.
20196 The `fmod' built-in function of C always uses the mode which
20197 corresponds to the C data type `double' and the `fmodf' built-in
20198 function uses the mode which corresponds to the C data type
20202 Store the remainder of dividing operand 1 by operand 2 into
20203 operand 0, rounded to the nearest integer.
20205 The `remainder' built-in function of C always uses the mode which
20206 corresponds to the C data type `double' and the `remainderf'
20207 built-in function uses the mode which corresponds to the C data
20211 Store the cosine of operand 1 into operand 0.
20213 The `cos' built-in function of C always uses the mode which
20214 corresponds to the C data type `double' and the `cosf' built-in
20215 function uses the mode which corresponds to the C data type
20219 Store the sine of operand 1 into operand 0.
20221 The `sin' built-in function of C always uses the mode which
20222 corresponds to the C data type `double' and the `sinf' built-in
20223 function uses the mode which corresponds to the C data type
20227 Store the exponential of operand 1 into operand 0.
20229 The `exp' built-in function of C always uses the mode which
20230 corresponds to the C data type `double' and the `expf' built-in
20231 function uses the mode which corresponds to the C data type
20235 Store the natural logarithm of operand 1 into operand 0.
20237 The `log' built-in function of C always uses the mode which
20238 corresponds to the C data type `double' and the `logf' built-in
20239 function uses the mode which corresponds to the C data type
20243 Store the value of operand 1 raised to the exponent operand 2 into
20246 The `pow' built-in function of C always uses the mode which
20247 corresponds to the C data type `double' and the `powf' built-in
20248 function uses the mode which corresponds to the C data type
20252 Store the arc tangent (inverse tangent) of operand 1 divided by
20253 operand 2 into operand 0, using the signs of both arguments to
20254 determine the quadrant of the result.
20256 The `atan2' built-in function of C always uses the mode which
20257 corresponds to the C data type `double' and the `atan2f' built-in
20258 function uses the mode which corresponds to the C data type
20262 Store the largest integral value not greater than argument.
20264 The `floor' built-in function of C always uses the mode which
20265 corresponds to the C data type `double' and the `floorf' built-in
20266 function uses the mode which corresponds to the C data type
20270 Store the argument rounded to integer towards zero.
20272 The `trunc' built-in function of C always uses the mode which
20273 corresponds to the C data type `double' and the `truncf' built-in
20274 function uses the mode which corresponds to the C data type
20278 Store the argument rounded to integer away from zero.
20280 The `round' built-in function of C always uses the mode which
20281 corresponds to the C data type `double' and the `roundf' built-in
20282 function uses the mode which corresponds to the C data type
20286 Store the argument rounded to integer away from zero.
20288 The `ceil' built-in function of C always uses the mode which
20289 corresponds to the C data type `double' and the `ceilf' built-in
20290 function uses the mode which corresponds to the C data type
20294 Store the argument rounded according to the default rounding mode
20296 The `nearbyint' built-in function of C always uses the mode which
20297 corresponds to the C data type `double' and the `nearbyintf'
20298 built-in function uses the mode which corresponds to the C data
20302 Store the argument rounded according to the default rounding mode
20303 and raise the inexact exception when the result differs in value
20306 The `rint' built-in function of C always uses the mode which
20307 corresponds to the C data type `double' and the `rintf' built-in
20308 function uses the mode which corresponds to the C data type
20312 Convert operand 1 (valid for floating point mode M) to fixed point
20313 mode N as a signed number according to the current rounding mode
20314 and store in operand 0 (which has mode N).
20317 Convert operand 1 (valid for floating point mode M) to fixed point
20318 mode N as a signed number rounding to nearest and away from zero
20319 and store in operand 0 (which has mode N).
20322 Convert operand 1 (valid for floating point mode M) to fixed point
20323 mode N as a signed number rounding down and store in operand 0
20324 (which has mode N).
20327 Convert operand 1 (valid for floating point mode M) to fixed point
20328 mode N as a signed number rounding up and store in operand 0
20329 (which has mode N).
20332 Store a value with the magnitude of operand 1 and the sign of
20333 operand 2 into operand 0.
20335 The `copysign' built-in function of C always uses the mode which
20336 corresponds to the C data type `double' and the `copysignf'
20337 built-in function uses the mode which corresponds to the C data
20341 Store into operand 0 one plus the index of the least significant
20342 1-bit of operand 1. If operand 1 is zero, store zero. M is the
20343 mode of operand 0; operand 1's mode is specified by the instruction
20344 pattern, and the compiler will convert the operand to that mode
20345 before generating the instruction.
20347 The `ffs' built-in function of C always uses the mode which
20348 corresponds to the C data type `int'.
20351 Store into operand 0 the number of leading 0-bits in X, starting
20352 at the most significant bit position. If X is 0, the
20353 `CLZ_DEFINED_VALUE_AT_ZERO' (*note Misc::) macro defines if the
20354 result is undefined or has a useful value. M is the mode of
20355 operand 0; operand 1's mode is specified by the instruction
20356 pattern, and the compiler will convert the operand to that mode
20357 before generating the instruction.
20360 Store into operand 0 the number of trailing 0-bits in X, starting
20361 at the least significant bit position. If X is 0, the
20362 `CTZ_DEFINED_VALUE_AT_ZERO' (*note Misc::) macro defines if the
20363 result is undefined or has a useful value. M is the mode of
20364 operand 0; operand 1's mode is specified by the instruction
20365 pattern, and the compiler will convert the operand to that mode
20366 before generating the instruction.
20369 Store into operand 0 the number of 1-bits in X. M is the mode of
20370 operand 0; operand 1's mode is specified by the instruction
20371 pattern, and the compiler will convert the operand to that mode
20372 before generating the instruction.
20375 Store into operand 0 the parity of X, i.e. the number of 1-bits in
20376 X modulo 2. M is the mode of operand 0; operand 1's mode is
20377 specified by the instruction pattern, and the compiler will convert
20378 the operand to that mode before generating the instruction.
20381 Store the bitwise-complement of operand 1 into operand 0.
20384 Compare operand 0 and operand 1, and set the condition codes. The
20385 RTL pattern should look like this:
20387 (set (cc0) (compare (match_operand:M 0 ...)
20388 (match_operand:M 1 ...)))
20391 Compare operand 0 against zero, and set the condition codes. The
20392 RTL pattern should look like this:
20394 (set (cc0) (match_operand:M 0 ...))
20396 `tstM' patterns should not be defined for machines that do not use
20397 `(cc0)'. Doing so would confuse the optimizer since it would no
20398 longer be clear which `set' operations were comparisons. The
20399 `cmpM' patterns should be used instead.
20402 Block move instruction. The destination and source blocks of
20403 memory are the first two operands, and both are `mem:BLK's with an
20404 address in mode `Pmode'.
20406 The number of bytes to move is the third operand, in mode M.
20407 Usually, you specify `word_mode' for M. However, if you can
20408 generate better code knowing the range of valid lengths is smaller
20409 than those representable in a full word, you should provide a
20410 pattern with a mode corresponding to the range of values you can
20411 handle efficiently (e.g., `QImode' for values in the range 0-127;
20412 note we avoid numbers that appear negative) and also a pattern
20415 The fourth operand is the known shared alignment of the source and
20416 destination, in the form of a `const_int' rtx. Thus, if the
20417 compiler knows that both source and destination are word-aligned,
20418 it may provide the value 4 for this operand.
20420 Optional operands 5 and 6 specify expected alignment and size of
20421 block respectively. The expected alignment differs from alignment
20422 in operand 4 in a way that the blocks are not required to be
20423 aligned according to it in all cases. This expected alignment is
20424 also in bytes, just like operand 4. Expected size, when unknown,
20425 is set to `(const_int -1)'.
20427 Descriptions of multiple `movmemM' patterns can only be beneficial
20428 if the patterns for smaller modes have fewer restrictions on their
20429 first, second and fourth operands. Note that the mode M in
20430 `movmemM' does not impose any restriction on the mode of
20431 individually moved data units in the block.
20433 These patterns need not give special consideration to the
20434 possibility that the source and destination strings might overlap.
20437 String copy instruction, with `stpcpy' semantics. Operand 0 is an
20438 output operand in mode `Pmode'. The addresses of the destination
20439 and source strings are operands 1 and 2, and both are `mem:BLK's
20440 with addresses in mode `Pmode'. The execution of the expansion of
20441 this pattern should store in operand 0 the address in which the
20442 `NUL' terminator was stored in the destination string.
20445 Block set instruction. The destination string is the first
20446 operand, given as a `mem:BLK' whose address is in mode `Pmode'.
20447 The number of bytes to set is the second operand, in mode M. The
20448 value to initialize the memory with is the third operand. Targets
20449 that only support the clearing of memory should reject any value
20450 that is not the constant 0. See `movmemM' for a discussion of the
20453 The fourth operand is the known alignment of the destination, in
20454 the form of a `const_int' rtx. Thus, if the compiler knows that
20455 the destination is word-aligned, it may provide the value 4 for
20458 Optional operands 5 and 6 specify expected alignment and size of
20459 block respectively. The expected alignment differs from alignment
20460 in operand 4 in a way that the blocks are not required to be
20461 aligned according to it in all cases. This expected alignment is
20462 also in bytes, just like operand 4. Expected size, when unknown,
20463 is set to `(const_int -1)'.
20465 The use for multiple `setmemM' is as for `movmemM'.
20468 String compare instruction, with five operands. Operand 0 is the
20469 output; it has mode M. The remaining four operands are like the
20470 operands of `movmemM'. The two memory blocks specified are
20471 compared byte by byte in lexicographic order starting at the
20472 beginning of each string. The instruction is not allowed to
20473 prefetch more than one byte at a time since either string may end
20474 in the first byte and reading past that may access an invalid page
20475 or segment and cause a fault. The effect of the instruction is to
20476 store a value in operand 0 whose sign indicates the result of the
20480 String compare instruction, without known maximum length. Operand
20481 0 is the output; it has mode M. The second and third operand are
20482 the blocks of memory to be compared; both are `mem:BLK' with an
20483 address in mode `Pmode'.
20485 The fourth operand is the known shared alignment of the source and
20486 destination, in the form of a `const_int' rtx. Thus, if the
20487 compiler knows that both source and destination are word-aligned,
20488 it may provide the value 4 for this operand.
20490 The two memory blocks specified are compared byte by byte in
20491 lexicographic order starting at the beginning of each string. The
20492 instruction is not allowed to prefetch more than one byte at a
20493 time since either string may end in the first byte and reading
20494 past that may access an invalid page or segment and cause a fault.
20495 The effect of the instruction is to store a value in operand 0
20496 whose sign indicates the result of the comparison.
20499 Block compare instruction, with five operands like the operands of
20500 `cmpstrM'. The two memory blocks specified are compared byte by
20501 byte in lexicographic order starting at the beginning of each
20502 block. Unlike `cmpstrM' the instruction can prefetch any bytes in
20503 the two memory blocks. The effect of the instruction is to store
20504 a value in operand 0 whose sign indicates the result of the
20508 Compute the length of a string, with three operands. Operand 0 is
20509 the result (of mode M), operand 1 is a `mem' referring to the
20510 first character of the string, operand 2 is the character to
20511 search for (normally zero), and operand 3 is a constant describing
20512 the known alignment of the beginning of the string.
20515 Convert signed integer operand 1 (valid for fixed point mode M) to
20516 floating point mode N and store in operand 0 (which has mode N).
20519 Convert unsigned integer operand 1 (valid for fixed point mode M)
20520 to floating point mode N and store in operand 0 (which has mode N).
20523 Convert operand 1 (valid for floating point mode M) to fixed point
20524 mode N as a signed number and store in operand 0 (which has mode
20525 N). This instruction's result is defined only when the value of
20526 operand 1 is an integer.
20528 If the machine description defines this pattern, it also needs to
20529 define the `ftrunc' pattern.
20532 Convert operand 1 (valid for floating point mode M) to fixed point
20533 mode N as an unsigned number and store in operand 0 (which has
20534 mode N). This instruction's result is defined only when the value
20535 of operand 1 is an integer.
20538 Convert operand 1 (valid for floating point mode M) to an integer
20539 value, still represented in floating point mode M, and store it in
20540 operand 0 (valid for floating point mode M).
20543 Like `fixMN2' but works for any floating point value of mode M by
20544 converting the value to an integer.
20547 Like `fixunsMN2' but works for any floating point value of mode M
20548 by converting the value to an integer.
20551 Truncate operand 1 (valid for mode M) to mode N and store in
20552 operand 0 (which has mode N). Both modes must be fixed point or
20553 both floating point.
20556 Sign-extend operand 1 (valid for mode M) to mode N and store in
20557 operand 0 (which has mode N). Both modes must be fixed point or
20558 both floating point.
20561 Zero-extend operand 1 (valid for mode M) to mode N and store in
20562 operand 0 (which has mode N). Both modes must be fixed point.
20565 Convert operand 1 of mode M to mode N and store in operand 0
20566 (which has mode N). Mode M and mode N could be fixed-point to
20567 fixed-point, signed integer to fixed-point, fixed-point to signed
20568 integer, floating-point to fixed-point, or fixed-point to
20569 floating-point. When overflows or underflows happen, the results
20573 Convert operand 1 of mode M to mode N and store in operand 0
20574 (which has mode N). Mode M and mode N could be fixed-point to
20575 fixed-point, signed integer to fixed-point, or floating-point to
20576 fixed-point. When overflows or underflows happen, the instruction
20577 saturates the results to the maximum or the minimum.
20580 Convert operand 1 of mode M to mode N and store in operand 0
20581 (which has mode N). Mode M and mode N could be unsigned integer
20582 to fixed-point, or fixed-point to unsigned integer. When
20583 overflows or underflows happen, the results are undefined.
20586 Convert unsigned integer operand 1 of mode M to fixed-point mode N
20587 and store in operand 0 (which has mode N). When overflows or
20588 underflows happen, the instruction saturates the results to the
20589 maximum or the minimum.
20592 Extract a bit-field from operand 1 (a register or memory operand),
20593 where operand 2 specifies the width in bits and operand 3 the
20594 starting bit, and store it in operand 0. Operand 0 must have mode
20595 `word_mode'. Operand 1 may have mode `byte_mode' or `word_mode';
20596 often `word_mode' is allowed only for registers. Operands 2 and 3
20597 must be valid for `word_mode'.
20599 The RTL generation pass generates this instruction only with
20600 constants for operands 2 and 3 and the constant is never zero for
20603 The bit-field value is sign-extended to a full word integer before
20604 it is stored in operand 0.
20607 Like `extv' except that the bit-field value is zero-extended.
20610 Store operand 3 (which must be valid for `word_mode') into a
20611 bit-field in operand 0, where operand 1 specifies the width in
20612 bits and operand 2 the starting bit. Operand 0 may have mode
20613 `byte_mode' or `word_mode'; often `word_mode' is allowed only for
20614 registers. Operands 1 and 2 must be valid for `word_mode'.
20616 The RTL generation pass generates this instruction only with
20617 constants for operands 1 and 2 and the constant is never zero for
20621 Conditionally move operand 2 or operand 3 into operand 0 according
20622 to the comparison in operand 1. If the comparison is true,
20623 operand 2 is moved into operand 0, otherwise operand 3 is moved.
20625 The mode of the operands being compared need not be the same as
20626 the operands being moved. Some machines, sparc64 for example,
20627 have instructions that conditionally move an integer value based
20628 on the floating point condition codes and vice versa.
20630 If the machine does not have conditional move instructions, do not
20631 define these patterns.
20634 Similar to `movMODEcc' but for conditional addition. Conditionally
20635 move operand 2 or (operands 2 + operand 3) into operand 0
20636 according to the comparison in operand 1. If the comparison is
20637 true, operand 2 is moved into operand 0, otherwise (operand 2 +
20638 operand 3) is moved.
20641 Store zero or nonzero in the operand according to the condition
20642 codes. Value stored is nonzero iff the condition COND is true.
20643 COND is the name of a comparison operation expression code, such
20644 as `eq', `lt' or `leu'.
20646 You specify the mode that the operand must have when you write the
20647 `match_operand' expression. The compiler automatically sees which
20648 mode you have used and supplies an operand of that mode.
20650 The value stored for a true condition must have 1 as its low bit,
20651 or else must be negative. Otherwise the instruction is not
20652 suitable and you should omit it from the machine description. You
20653 describe to the compiler exactly which value is stored by defining
20654 the macro `STORE_FLAG_VALUE' (*note Misc::). If a description
20655 cannot be found that can be used for all the `sCOND' patterns, you
20656 should omit those operations from the machine description.
20658 These operations may fail, but should do so only in relatively
20659 uncommon cases; if they would fail for common cases involving
20660 integer comparisons, it is best to omit these patterns.
20662 If these operations are omitted, the compiler will usually
20663 generate code that copies the constant one to the target and
20664 branches around an assignment of zero to the target. If this code
20665 is more efficient than the potential instructions used for the
20666 `sCOND' pattern followed by those required to convert the result
20667 into a 1 or a zero in `SImode', you should omit the `sCOND'
20668 operations from the machine description.
20671 Conditional branch instruction. Operand 0 is a `label_ref' that
20672 refers to the label to jump to. Jump if the condition codes meet
20675 Some machines do not follow the model assumed here where a
20676 comparison instruction is followed by a conditional branch
20677 instruction. In that case, the `cmpM' (and `tstM') patterns should
20678 simply store the operands away and generate all the required insns
20679 in a `define_expand' (*note Expander Definitions::) for the
20680 conditional branch operations. All calls to expand `bCOND'
20681 patterns are immediately preceded by calls to expand either a
20682 `cmpM' pattern or a `tstM' pattern.
20684 Machines that use a pseudo register for the condition code value,
20685 or where the mode used for the comparison depends on the condition
20686 being tested, should also use the above mechanism. *Note Jump
20689 The above discussion also applies to the `movMODEcc' and `sCOND'
20693 Conditional branch instruction combined with a compare instruction.
20694 Operand 0 is a comparison operator. Operand 1 and operand 2 are
20695 the first and second operands of the comparison, respectively.
20696 Operand 3 is a `label_ref' that refers to the label to jump to.
20699 A jump inside a function; an unconditional branch. Operand 0 is
20700 the `label_ref' of the label to jump to. This pattern name is
20701 mandatory on all machines.
20704 Subroutine call instruction returning no value. Operand 0 is the
20705 function to call; operand 1 is the number of bytes of arguments
20706 pushed as a `const_int'; operand 2 is the number of registers used
20709 On most machines, operand 2 is not actually stored into the RTL
20710 pattern. It is supplied for the sake of some RISC machines which
20711 need to put this information into the assembler code; they can put
20712 it in the RTL instead of operand 1.
20714 Operand 0 should be a `mem' RTX whose address is the address of the
20715 function. Note, however, that this address can be a `symbol_ref'
20716 expression even if it would not be a legitimate memory address on
20717 the target machine. If it is also not a valid argument for a call
20718 instruction, the pattern for this operation should be a
20719 `define_expand' (*note Expander Definitions::) that places the
20720 address into a register and uses that register in the call
20724 Subroutine call instruction returning a value. Operand 0 is the
20725 hard register in which the value is returned. There are three more
20726 operands, the same as the three operands of the `call' instruction
20727 (but with numbers increased by one).
20729 Subroutines that return `BLKmode' objects use the `call' insn.
20731 `call_pop', `call_value_pop'
20732 Similar to `call' and `call_value', except used if defined and if
20733 `RETURN_POPS_ARGS' is nonzero. They should emit a `parallel' that
20734 contains both the function call and a `set' to indicate the
20735 adjustment made to the frame pointer.
20737 For machines where `RETURN_POPS_ARGS' can be nonzero, the use of
20738 these patterns increases the number of functions for which the
20739 frame pointer can be eliminated, if desired.
20742 Subroutine call instruction returning a value of any type.
20743 Operand 0 is the function to call; operand 1 is a memory location
20744 where the result of calling the function is to be stored; operand
20745 2 is a `parallel' expression where each element is a `set'
20746 expression that indicates the saving of a function return value
20747 into the result block.
20749 This instruction pattern should be defined to support
20750 `__builtin_apply' on machines where special instructions are needed
20751 to call a subroutine with arbitrary arguments or to save the value
20752 returned. This instruction pattern is required on machines that
20753 have multiple registers that can hold a return value (i.e.
20754 `FUNCTION_VALUE_REGNO_P' is true for more than one register).
20757 Subroutine return instruction. This instruction pattern name
20758 should be defined only if a single instruction can do all the work
20759 of returning from a function.
20761 Like the `movM' patterns, this pattern is also used after the RTL
20762 generation phase. In this case it is to support machines where
20763 multiple instructions are usually needed to return from a
20764 function, but some class of functions only requires one
20765 instruction to implement a return. Normally, the applicable
20766 functions are those which do not need to save any registers or
20767 allocate stack space.
20769 For such machines, the condition specified in this pattern should
20770 only be true when `reload_completed' is nonzero and the function's
20771 epilogue would only be a single instruction. For machines with
20772 register windows, the routine `leaf_function_p' may be used to
20773 determine if a register window push is required.
20775 Machines that have conditional return instructions should define
20780 (if_then_else (match_operator
20781 0 "comparison_operator"
20782 [(cc0) (const_int 0)])
20788 where CONDITION would normally be the same condition specified on
20789 the named `return' pattern.
20792 Untyped subroutine return instruction. This instruction pattern
20793 should be defined to support `__builtin_return' on machines where
20794 special instructions are needed to return a value of any type.
20796 Operand 0 is a memory location where the result of calling a
20797 function with `__builtin_apply' is stored; operand 1 is a
20798 `parallel' expression where each element is a `set' expression
20799 that indicates the restoring of a function return value from the
20803 No-op instruction. This instruction pattern name should always be
20804 defined to output a no-op in assembler code. `(const_int 0)' will
20805 do as an RTL pattern.
20808 An instruction to jump to an address which is operand zero. This
20809 pattern name is mandatory on all machines.
20812 Instruction to jump through a dispatch table, including bounds
20813 checking. This instruction takes five operands:
20815 1. The index to dispatch on, which has mode `SImode'.
20817 2. The lower bound for indices in the table, an integer constant.
20819 3. The total range of indices in the table--the largest index
20820 minus the smallest one (both inclusive).
20822 4. A label that precedes the table itself.
20824 5. A label to jump to if the index has a value outside the
20827 The table is a `addr_vec' or `addr_diff_vec' inside of a
20828 `jump_insn'. The number of elements in the table is one plus the
20829 difference between the upper bound and the lower bound.
20832 Instruction to jump to a variable address. This is a low-level
20833 capability which can be used to implement a dispatch table when
20834 there is no `casesi' pattern.
20836 This pattern requires two operands: the address or offset, and a
20837 label which should immediately precede the jump table. If the
20838 macro `CASE_VECTOR_PC_RELATIVE' evaluates to a nonzero value then
20839 the first operand is an offset which counts from the address of
20840 the table; otherwise, it is an absolute address to jump to. In
20841 either case, the first operand has mode `Pmode'.
20843 The `tablejump' insn is always the last insn before the jump table
20844 it uses. Its assembler code normally has no need to use the
20845 second operand, but you should incorporate it in the RTL pattern so
20846 that the jump optimizer will not delete the table as unreachable
20849 `decrement_and_branch_until_zero'
20850 Conditional branch instruction that decrements a register and
20851 jumps if the register is nonzero. Operand 0 is the register to
20852 decrement and test; operand 1 is the label to jump to if the
20853 register is nonzero. *Note Looping Patterns::.
20855 This optional instruction pattern is only used by the combiner,
20856 typically for loops reversed by the loop optimizer when strength
20857 reduction is enabled.
20860 Conditional branch instruction that decrements a register and
20861 jumps if the register is nonzero. This instruction takes five
20862 operands: Operand 0 is the register to decrement and test; operand
20863 1 is the number of loop iterations as a `const_int' or
20864 `const0_rtx' if this cannot be determined until run-time; operand
20865 2 is the actual or estimated maximum number of iterations as a
20866 `const_int'; operand 3 is the number of enclosed loops as a
20867 `const_int' (an innermost loop has a value of 1); operand 4 is the
20868 label to jump to if the register is nonzero. *Note Looping
20871 This optional instruction pattern should be defined for machines
20872 with low-overhead looping instructions as the loop optimizer will
20873 try to modify suitable loops to utilize it. If nested
20874 low-overhead looping is not supported, use a `define_expand'
20875 (*note Expander Definitions::) and make the pattern fail if
20876 operand 3 is not `const1_rtx'. Similarly, if the actual or
20877 estimated maximum number of iterations is too large for this
20878 instruction, make it fail.
20881 Companion instruction to `doloop_end' required for machines that
20882 need to perform some initialization, such as loading special
20883 registers used by a low-overhead looping instruction. If
20884 initialization insns do not always need to be emitted, use a
20885 `define_expand' (*note Expander Definitions::) and make it fail.
20887 `canonicalize_funcptr_for_compare'
20888 Canonicalize the function pointer in operand 1 and store the result
20891 Operand 0 is always a `reg' and has mode `Pmode'; operand 1 may be
20892 a `reg', `mem', `symbol_ref', `const_int', etc and also has mode
20895 Canonicalization of a function pointer usually involves computing
20896 the address of the function which would be called if the function
20897 pointer were used in an indirect call.
20899 Only define this pattern if function pointers on the target machine
20900 can have different values but still call the same function when
20901 used in an indirect call.
20904 `save_stack_function'
20905 `save_stack_nonlocal'
20906 `restore_stack_block'
20907 `restore_stack_function'
20908 `restore_stack_nonlocal'
20909 Most machines save and restore the stack pointer by copying it to
20910 or from an object of mode `Pmode'. Do not define these patterns on
20913 Some machines require special handling for stack pointer saves and
20914 restores. On those machines, define the patterns corresponding to
20915 the non-standard cases by using a `define_expand' (*note Expander
20916 Definitions::) that produces the required insns. The three types
20917 of saves and restores are:
20919 1. `save_stack_block' saves the stack pointer at the start of a
20920 block that allocates a variable-sized object, and
20921 `restore_stack_block' restores the stack pointer when the
20924 2. `save_stack_function' and `restore_stack_function' do a
20925 similar job for the outermost block of a function and are
20926 used when the function allocates variable-sized objects or
20927 calls `alloca'. Only the epilogue uses the restored stack
20928 pointer, allowing a simpler save or restore sequence on some
20931 3. `save_stack_nonlocal' is used in functions that contain labels
20932 branched to by nested functions. It saves the stack pointer
20933 in such a way that the inner function can use
20934 `restore_stack_nonlocal' to restore the stack pointer. The
20935 compiler generates code to restore the frame and argument
20936 pointer registers, but some machines require saving and
20937 restoring additional data such as register window information
20938 or stack backchains. Place insns in these patterns to save
20939 and restore any such required data.
20941 When saving the stack pointer, operand 0 is the save area and
20942 operand 1 is the stack pointer. The mode used to allocate the
20943 save area defaults to `Pmode' but you can override that choice by
20944 defining the `STACK_SAVEAREA_MODE' macro (*note Storage Layout::).
20945 You must specify an integral mode, or `VOIDmode' if no save area
20946 is needed for a particular type of save (either because no save is
20947 needed or because a machine-specific save area can be used).
20948 Operand 0 is the stack pointer and operand 1 is the save area for
20949 restore operations. If `save_stack_block' is defined, operand 0
20950 must not be `VOIDmode' since these saves can be arbitrarily nested.
20952 A save area is a `mem' that is at a constant offset from
20953 `virtual_stack_vars_rtx' when the stack pointer is saved for use by
20954 nonlocal gotos and a `reg' in the other two cases.
20957 Subtract (or add if `STACK_GROWS_DOWNWARD' is undefined) operand 1
20958 from the stack pointer to create space for dynamically allocated
20961 Store the resultant pointer to this space into operand 0. If you
20962 are allocating space from the main stack, do this by emitting a
20963 move insn to copy `virtual_stack_dynamic_rtx' to operand 0. If
20964 you are allocating the space elsewhere, generate code to copy the
20965 location of the space to operand 0. In the latter case, you must
20966 ensure this space gets freed when the corresponding space on the
20967 main stack is free.
20969 Do not define this pattern if all that must be done is the
20970 subtraction. Some machines require other operations such as stack
20971 probes or maintaining the back chain. Define this pattern to emit
20972 those operations in addition to updating the stack pointer.
20975 If stack checking cannot be done on your system by probing the
20976 stack with a load or store instruction (*note Stack Checking::),
20977 define this pattern to perform the needed check and signaling an
20978 error if the stack has overflowed. The single operand is the
20979 location in the stack furthest from the current stack pointer that
20980 you need to validate. Normally, on machines where this pattern is
20981 needed, you would obtain the stack limit from a global or
20982 thread-specific variable or register.
20985 Emit code to generate a non-local goto, e.g., a jump from one
20986 function to a label in an outer function. This pattern has four
20987 arguments, each representing a value to be used in the jump. The
20988 first argument is to be loaded into the frame pointer, the second
20989 is the address to branch to (code to dispatch to the actual label),
20990 the third is the address of a location where the stack is saved,
20991 and the last is the address of the label, to be placed in the
20992 location for the incoming static chain.
20994 On most machines you need not define this pattern, since GCC will
20995 already generate the correct code, which is to load the frame
20996 pointer and static chain, restore the stack (using the
20997 `restore_stack_nonlocal' pattern, if defined), and jump indirectly
20998 to the dispatcher. You need only define this pattern if this code
20999 will not work on your machine.
21001 `nonlocal_goto_receiver'
21002 This pattern, if defined, contains code needed at the target of a
21003 nonlocal goto after the code already generated by GCC. You will
21004 not normally need to define this pattern. A typical reason why
21005 you might need this pattern is if some value, such as a pointer to
21006 a global table, must be restored when the frame pointer is
21007 restored. Note that a nonlocal goto only occurs within a
21008 unit-of-translation, so a global table pointer that is shared by
21009 all functions of a given module need not be restored. There are
21012 `exception_receiver'
21013 This pattern, if defined, contains code needed at the site of an
21014 exception handler that isn't needed at the site of a nonlocal
21015 goto. You will not normally need to define this pattern. A
21016 typical reason why you might need this pattern is if some value,
21017 such as a pointer to a global table, must be restored after
21018 control flow is branched to the handler of an exception. There
21021 `builtin_setjmp_setup'
21022 This pattern, if defined, contains additional code needed to
21023 initialize the `jmp_buf'. You will not normally need to define
21024 this pattern. A typical reason why you might need this pattern is
21025 if some value, such as a pointer to a global table, must be
21026 restored. Though it is preferred that the pointer value be
21027 recalculated if possible (given the address of a label for
21028 instance). The single argument is a pointer to the `jmp_buf'.
21029 Note that the buffer is five words long and that the first three
21030 are normally used by the generic mechanism.
21032 `builtin_setjmp_receiver'
21033 This pattern, if defined, contains code needed at the site of an
21034 built-in setjmp that isn't needed at the site of a nonlocal goto.
21035 You will not normally need to define this pattern. A typical
21036 reason why you might need this pattern is if some value, such as a
21037 pointer to a global table, must be restored. It takes one
21038 argument, which is the label to which builtin_longjmp transfered
21039 control; this pattern may be emitted at a small offset from that
21043 This pattern, if defined, performs the entire action of the
21044 longjmp. You will not normally need to define this pattern unless
21045 you also define `builtin_setjmp_setup'. The single argument is a
21046 pointer to the `jmp_buf'.
21049 This pattern, if defined, affects the way `__builtin_eh_return',
21050 and thence the call frame exception handling library routines, are
21051 built. It is intended to handle non-trivial actions needed along
21052 the abnormal return path.
21054 The address of the exception handler to which the function should
21055 return is passed as operand to this pattern. It will normally
21056 need to copied by the pattern to some special register or memory
21057 location. If the pattern needs to determine the location of the
21058 target call frame in order to do so, it may use
21059 `EH_RETURN_STACKADJ_RTX', if defined; it will have already been
21062 If this pattern is not defined, the default action will be to
21063 simply copy the return address to `EH_RETURN_HANDLER_RTX'. Either
21064 that macro or this pattern needs to be defined if call frame
21065 exception handling is to be used.
21068 This pattern, if defined, emits RTL for entry to a function. The
21069 function entry is responsible for setting up the stack frame,
21070 initializing the frame pointer register, saving callee saved
21073 Using a prologue pattern is generally preferred over defining
21074 `TARGET_ASM_FUNCTION_PROLOGUE' to emit assembly code for the
21077 The `prologue' pattern is particularly useful for targets which
21078 perform instruction scheduling.
21081 This pattern emits RTL for exit from a function. The function
21082 exit is responsible for deallocating the stack frame, restoring
21083 callee saved registers and emitting the return instruction.
21085 Using an epilogue pattern is generally preferred over defining
21086 `TARGET_ASM_FUNCTION_EPILOGUE' to emit assembly code for the
21089 The `epilogue' pattern is particularly useful for targets which
21090 perform instruction scheduling or which have delay slots for their
21091 return instruction.
21094 This pattern, if defined, emits RTL for exit from a function
21095 without the final branch back to the calling function. This
21096 pattern will be emitted before any sibling call (aka tail call)
21099 The `sibcall_epilogue' pattern must not clobber any arguments used
21100 for parameter passing or any stack slots for arguments passed to
21101 the current function.
21104 This pattern, if defined, signals an error, typically by causing
21105 some kind of signal to be raised. Among other places, it is used
21106 by the Java front end to signal `invalid array index' exceptions.
21109 Conditional trap instruction. Operand 0 is a piece of RTL which
21110 performs a comparison. Operand 1 is the trap code, an integer.
21112 A typical `conditional_trap' pattern looks like
21114 (define_insn "conditional_trap"
21115 [(trap_if (match_operator 0 "trap_operator"
21116 [(cc0) (const_int 0)])
21117 (match_operand 1 "const_int_operand" "i"))]
21122 This pattern, if defined, emits code for a non-faulting data
21123 prefetch instruction. Operand 0 is the address of the memory to
21124 prefetch. Operand 1 is a constant 1 if the prefetch is preparing
21125 for a write to the memory address, or a constant 0 otherwise.
21126 Operand 2 is the expected degree of temporal locality of the data
21127 and is a value between 0 and 3, inclusive; 0 means that the data
21128 has no temporal locality, so it need not be left in the cache
21129 after the access; 3 means that the data has a high degree of
21130 temporal locality and should be left in all levels of cache
21131 possible; 1 and 2 mean, respectively, a low or moderate degree of
21134 Targets that do not support write prefetches or locality hints can
21135 ignore the values of operands 1 and 2.
21138 This pattern defines a pseudo insn that prevents the instruction
21139 scheduler from moving instructions across the boundary defined by
21140 the blockage insn. Normally an UNSPEC_VOLATILE pattern.
21143 If the target memory model is not fully synchronous, then this
21144 pattern should be defined to an instruction that orders both loads
21145 and stores before the instruction with respect to loads and stores
21146 after the instruction. This pattern has no operands.
21148 `sync_compare_and_swapMODE'
21149 This pattern, if defined, emits code for an atomic compare-and-swap
21150 operation. Operand 1 is the memory on which the atomic operation
21151 is performed. Operand 2 is the "old" value to be compared against
21152 the current contents of the memory location. Operand 3 is the
21153 "new" value to store in the memory if the compare succeeds.
21154 Operand 0 is the result of the operation; it should contain the
21155 contents of the memory before the operation. If the compare
21156 succeeds, this should obviously be a copy of operand 2.
21158 This pattern must show that both operand 0 and operand 1 are
21161 This pattern must issue any memory barrier instructions such that
21162 all memory operations before the atomic operation occur before the
21163 atomic operation and all memory operations after the atomic
21164 operation occur after the atomic operation.
21166 `sync_compare_and_swap_ccMODE'
21167 This pattern is just like `sync_compare_and_swapMODE', except it
21168 should act as if compare part of the compare-and-swap were issued
21169 via `cmpM'. This comparison will only be used with `EQ' and `NE'
21170 branches and `setcc' operations.
21172 Some targets do expose the success or failure of the
21173 compare-and-swap operation via the status flags. Ideally we
21174 wouldn't need a separate named pattern in order to take advantage
21175 of this, but the combine pass does not handle patterns with
21176 multiple sets, which is required by definition for
21177 `sync_compare_and_swapMODE'.
21179 `sync_addMODE', `sync_subMODE'
21180 `sync_iorMODE', `sync_andMODE'
21181 `sync_xorMODE', `sync_nandMODE'
21182 These patterns emit code for an atomic operation on memory.
21183 Operand 0 is the memory on which the atomic operation is performed.
21184 Operand 1 is the second operand to the binary operator.
21186 The "nand" operation is `~op0 & op1'.
21188 This pattern must issue any memory barrier instructions such that
21189 all memory operations before the atomic operation occur before the
21190 atomic operation and all memory operations after the atomic
21191 operation occur after the atomic operation.
21193 If these patterns are not defined, the operation will be
21194 constructed from a compare-and-swap operation, if defined.
21196 `sync_old_addMODE', `sync_old_subMODE'
21197 `sync_old_iorMODE', `sync_old_andMODE'
21198 `sync_old_xorMODE', `sync_old_nandMODE'
21199 These patterns are emit code for an atomic operation on memory,
21200 and return the value that the memory contained before the
21201 operation. Operand 0 is the result value, operand 1 is the memory
21202 on which the atomic operation is performed, and operand 2 is the
21203 second operand to the binary operator.
21205 This pattern must issue any memory barrier instructions such that
21206 all memory operations before the atomic operation occur before the
21207 atomic operation and all memory operations after the atomic
21208 operation occur after the atomic operation.
21210 If these patterns are not defined, the operation will be
21211 constructed from a compare-and-swap operation, if defined.
21213 `sync_new_addMODE', `sync_new_subMODE'
21214 `sync_new_iorMODE', `sync_new_andMODE'
21215 `sync_new_xorMODE', `sync_new_nandMODE'
21216 These patterns are like their `sync_old_OP' counterparts, except
21217 that they return the value that exists in the memory location
21218 after the operation, rather than before the operation.
21220 `sync_lock_test_and_setMODE'
21221 This pattern takes two forms, based on the capabilities of the
21222 target. In either case, operand 0 is the result of the operand,
21223 operand 1 is the memory on which the atomic operation is
21224 performed, and operand 2 is the value to set in the lock.
21226 In the ideal case, this operation is an atomic exchange operation,
21227 in which the previous value in memory operand is copied into the
21228 result operand, and the value operand is stored in the memory
21231 For less capable targets, any value operand that is not the
21232 constant 1 should be rejected with `FAIL'. In this case the
21233 target may use an atomic test-and-set bit operation. The result
21234 operand should contain 1 if the bit was previously set and 0 if
21235 the bit was previously clear. The true contents of the memory
21236 operand are implementation defined.
21238 This pattern must issue any memory barrier instructions such that
21239 the pattern as a whole acts as an acquire barrier, that is all
21240 memory operations after the pattern do not occur until the lock is
21243 If this pattern is not defined, the operation will be constructed
21244 from a compare-and-swap operation, if defined.
21246 `sync_lock_releaseMODE'
21247 This pattern, if defined, releases a lock set by
21248 `sync_lock_test_and_setMODE'. Operand 0 is the memory that
21249 contains the lock; operand 1 is the value to store in the lock.
21251 If the target doesn't implement full semantics for
21252 `sync_lock_test_and_setMODE', any value operand which is not the
21253 constant 0 should be rejected with `FAIL', and the true contents
21254 of the memory operand are implementation defined.
21256 This pattern must issue any memory barrier instructions such that
21257 the pattern as a whole acts as a release barrier, that is the lock
21258 is released only after all previous memory operations have
21261 If this pattern is not defined, then a `memory_barrier' pattern
21262 will be emitted, followed by a store of the value to the memory
21265 `stack_protect_set'
21266 This pattern, if defined, moves a `Pmode' value from the memory in
21267 operand 1 to the memory in operand 0 without leaving the value in
21268 a register afterward. This is to avoid leaking the value some
21269 place that an attacker might use to rewrite the stack guard slot
21270 after having clobbered it.
21272 If this pattern is not defined, then a plain move pattern is
21275 `stack_protect_test'
21276 This pattern, if defined, compares a `Pmode' value from the memory
21277 in operand 1 with the memory in operand 0 without leaving the
21278 value in a register afterward and branches to operand 2 if the
21279 values weren't equal.
21281 If this pattern is not defined, then a plain compare pattern and
21282 conditional branch pattern is used.
21285 This pattern, if defined, flushes the instruction cache for a
21286 region of memory. The region is bounded to by the Pmode pointers
21287 in operand 0 inclusive and operand 1 exclusive.
21289 If this pattern is not defined, a call to the library function
21290 `__clear_cache' is used.
21294 File: gccint.info, Node: Pattern Ordering, Next: Dependent Patterns, Prev: Standard Names, Up: Machine Desc
21296 16.10 When the Order of Patterns Matters
21297 ========================================
21299 Sometimes an insn can match more than one instruction pattern. Then the
21300 pattern that appears first in the machine description is the one used.
21301 Therefore, more specific patterns (patterns that will match fewer
21302 things) and faster instructions (those that will produce better code
21303 when they do match) should usually go first in the description.
21305 In some cases the effect of ordering the patterns can be used to hide
21306 a pattern when it is not valid. For example, the 68000 has an
21307 instruction for converting a fullword to floating point and another for
21308 converting a byte to floating point. An instruction converting an
21309 integer to floating point could match either one. We put the pattern
21310 to convert the fullword first to make sure that one will be used rather
21311 than the other. (Otherwise a large integer might be generated as a
21312 single-byte immediate quantity, which would not work.) Instead of
21313 using this pattern ordering it would be possible to make the pattern
21314 for convert-a-byte smart enough to deal properly with any constant
21318 File: gccint.info, Node: Dependent Patterns, Next: Jump Patterns, Prev: Pattern Ordering, Up: Machine Desc
21320 16.11 Interdependence of Patterns
21321 =================================
21323 Every machine description must have a named pattern for each of the
21324 conditional branch names `bCOND'. The recognition template must always
21328 (if_then_else (COND (cc0) (const_int 0))
21329 (label_ref (match_operand 0 "" ""))
21332 In addition, every machine description must have an anonymous pattern
21333 for each of the possible reverse-conditional branches. Their templates
21337 (if_then_else (COND (cc0) (const_int 0))
21339 (label_ref (match_operand 0 "" ""))))
21341 They are necessary because jump optimization can turn direct-conditional
21342 branches into reverse-conditional branches.
21344 It is often convenient to use the `match_operator' construct to reduce
21345 the number of patterns that must be specified for branches. For
21350 (if_then_else (match_operator 0 "comparison_operator"
21351 [(cc0) (const_int 0)])
21353 (label_ref (match_operand 1 "" ""))))]
21357 In some cases machines support instructions identical except for the
21358 machine mode of one or more operands. For example, there may be
21359 "sign-extend halfword" and "sign-extend byte" instructions whose
21362 (set (match_operand:SI 0 ...)
21363 (extend:SI (match_operand:HI 1 ...)))
21365 (set (match_operand:SI 0 ...)
21366 (extend:SI (match_operand:QI 1 ...)))
21368 Constant integers do not specify a machine mode, so an instruction to
21369 extend a constant value could match either pattern. The pattern it
21370 actually will match is the one that appears first in the file. For
21371 correct results, this must be the one for the widest possible mode
21372 (`HImode', here). If the pattern matches the `QImode' instruction, the
21373 results will be incorrect if the constant value does not actually fit
21376 Such instructions to extend constants are rarely generated because
21377 they are optimized away, but they do occasionally happen in nonoptimized
21380 If a constraint in a pattern allows a constant, the reload pass may
21381 replace a register with a constant permitted by the constraint in some
21382 cases. Similarly for memory references. Because of this substitution,
21383 you should not provide separate patterns for increment and decrement
21384 instructions. Instead, they should be generated from the same pattern
21385 that supports register-register add insns by examining the operands and
21386 generating the appropriate machine instruction.
21389 File: gccint.info, Node: Jump Patterns, Next: Looping Patterns, Prev: Dependent Patterns, Up: Machine Desc
21391 16.12 Defining Jump Instruction Patterns
21392 ========================================
21394 For most machines, GCC assumes that the machine has a condition code.
21395 A comparison insn sets the condition code, recording the results of both
21396 signed and unsigned comparison of the given operands. A separate branch
21397 insn tests the condition code and branches or not according its value.
21398 The branch insns come in distinct signed and unsigned flavors. Many
21399 common machines, such as the VAX, the 68000 and the 32000, work this
21402 Some machines have distinct signed and unsigned compare instructions,
21403 and only one set of conditional branch instructions. The easiest way
21404 to handle these machines is to treat them just like the others until
21405 the final stage where assembly code is written. At this time, when
21406 outputting code for the compare instruction, peek ahead at the
21407 following branch using `next_cc0_user (insn)'. (The variable `insn'
21408 refers to the insn being output, in the output-writing code in an
21409 instruction pattern.) If the RTL says that is an unsigned branch,
21410 output an unsigned compare; otherwise output a signed compare. When
21411 the branch itself is output, you can treat signed and unsigned branches
21414 The reason you can do this is that GCC always generates a pair of
21415 consecutive RTL insns, possibly separated by `note' insns, one to set
21416 the condition code and one to test it, and keeps the pair inviolate
21419 To go with this technique, you must define the machine-description
21420 macro `NOTICE_UPDATE_CC' to do `CC_STATUS_INIT'; in other words, no
21421 compare instruction is superfluous.
21423 Some machines have compare-and-branch instructions and no condition
21424 code. A similar technique works for them. When it is time to "output"
21425 a compare instruction, record its operands in two static variables.
21426 When outputting the branch-on-condition-code instruction that follows,
21427 actually output a compare-and-branch instruction that uses the
21428 remembered operands.
21430 It also works to define patterns for compare-and-branch instructions.
21431 In optimizing compilation, the pair of compare and branch instructions
21432 will be combined according to these patterns. But this does not happen
21433 if optimization is not requested. So you must use one of the solutions
21434 above in addition to any special patterns you define.
21436 In many RISC machines, most instructions do not affect the condition
21437 code and there may not even be a separate condition code register. On
21438 these machines, the restriction that the definition and use of the
21439 condition code be adjacent insns is not necessary and can prevent
21440 important optimizations. For example, on the IBM RS/6000, there is a
21441 delay for taken branches unless the condition code register is set three
21442 instructions earlier than the conditional branch. The instruction
21443 scheduler cannot perform this optimization if it is not permitted to
21444 separate the definition and use of the condition code register.
21446 On these machines, do not use `(cc0)', but instead use a register to
21447 represent the condition code. If there is a specific condition code
21448 register in the machine, use a hard register. If the condition code or
21449 comparison result can be placed in any general register, or if there are
21450 multiple condition registers, use a pseudo register.
21452 On some machines, the type of branch instruction generated may depend
21453 on the way the condition code was produced; for example, on the 68k and
21454 SPARC, setting the condition code directly from an add or subtract
21455 instruction does not clear the overflow bit the way that a test
21456 instruction does, so a different branch instruction must be used for
21457 some conditional branches. For machines that use `(cc0)', the set and
21458 use of the condition code must be adjacent (separated only by `note'
21459 insns) allowing flags in `cc_status' to be used. (*Note Condition
21460 Code::.) Also, the comparison and branch insns can be located from
21461 each other by using the functions `prev_cc0_setter' and `next_cc0_user'.
21463 However, this is not true on machines that do not use `(cc0)'. On
21464 those machines, no assumptions can be made about the adjacency of the
21465 compare and branch insns and the above methods cannot be used. Instead,
21466 we use the machine mode of the condition code register to record
21467 different formats of the condition code register.
21469 Registers used to store the condition code value should have a mode
21470 that is in class `MODE_CC'. Normally, it will be `CCmode'. If
21471 additional modes are required (as for the add example mentioned above in
21472 the SPARC), define them in `MACHINE-modes.def' (*note Condition
21473 Code::). Also define `SELECT_CC_MODE' to choose a mode given an
21474 operand of a compare.
21476 If it is known during RTL generation that a different mode will be
21477 required (for example, if the machine has separate compare instructions
21478 for signed and unsigned quantities, like most IBM processors), they can
21479 be specified at that time.
21481 If the cases that require different modes would be made by instruction
21482 combination, the macro `SELECT_CC_MODE' determines which machine mode
21483 should be used for the comparison result. The patterns should be
21484 written using that mode. To support the case of the add on the SPARC
21485 discussed above, we have the pattern
21488 [(set (reg:CC_NOOV 0)
21490 (plus:SI (match_operand:SI 0 "register_operand" "%r")
21491 (match_operand:SI 1 "arith_operand" "rI"))
21496 The `SELECT_CC_MODE' macro on the SPARC returns `CC_NOOVmode' for
21497 comparisons whose argument is a `plus'.
21500 File: gccint.info, Node: Looping Patterns, Next: Insn Canonicalizations, Prev: Jump Patterns, Up: Machine Desc
21502 16.13 Defining Looping Instruction Patterns
21503 ===========================================
21505 Some machines have special jump instructions that can be utilized to
21506 make loops more efficient. A common example is the 68000 `dbra'
21507 instruction which performs a decrement of a register and a branch if the
21508 result was greater than zero. Other machines, in particular digital
21509 signal processors (DSPs), have special block repeat instructions to
21510 provide low-overhead loop support. For example, the TI TMS320C3x/C4x
21511 DSPs have a block repeat instruction that loads special registers to
21512 mark the top and end of a loop and to count the number of loop
21513 iterations. This avoids the need for fetching and executing a
21514 `dbra'-like instruction and avoids pipeline stalls associated with the
21517 GCC has three special named patterns to support low overhead looping.
21518 They are `decrement_and_branch_until_zero', `doloop_begin', and
21519 `doloop_end'. The first pattern, `decrement_and_branch_until_zero', is
21520 not emitted during RTL generation but may be emitted during the
21521 instruction combination phase. This requires the assistance of the
21522 loop optimizer, using information collected during strength reduction,
21523 to reverse a loop to count down to zero. Some targets also require the
21524 loop optimizer to add a `REG_NONNEG' note to indicate that the
21525 iteration count is always positive. This is needed if the target
21526 performs a signed loop termination test. For example, the 68000 uses a
21527 pattern similar to the following for its `dbra' instruction:
21529 (define_insn "decrement_and_branch_until_zero"
21532 (ge (plus:SI (match_operand:SI 0 "general_operand" "+d*am")
21535 (label_ref (match_operand 1 "" ""))
21538 (plus:SI (match_dup 0)
21540 "find_reg_note (insn, REG_NONNEG, 0)"
21543 Note that since the insn is both a jump insn and has an output, it must
21544 deal with its own reloads, hence the `m' constraints. Also note that
21545 since this insn is generated by the instruction combination phase
21546 combining two sequential insns together into an implicit parallel insn,
21547 the iteration counter needs to be biased by the same amount as the
21548 decrement operation, in this case -1. Note that the following similar
21549 pattern will not be matched by the combiner.
21551 (define_insn "decrement_and_branch_until_zero"
21554 (ge (match_operand:SI 0 "general_operand" "+d*am")
21556 (label_ref (match_operand 1 "" ""))
21559 (plus:SI (match_dup 0)
21561 "find_reg_note (insn, REG_NONNEG, 0)"
21564 The other two special looping patterns, `doloop_begin' and
21565 `doloop_end', are emitted by the loop optimizer for certain
21566 well-behaved loops with a finite number of loop iterations using
21567 information collected during strength reduction.
21569 The `doloop_end' pattern describes the actual looping instruction (or
21570 the implicit looping operation) and the `doloop_begin' pattern is an
21571 optional companion pattern that can be used for initialization needed
21572 for some low-overhead looping instructions.
21574 Note that some machines require the actual looping instruction to be
21575 emitted at the top of the loop (e.g., the TMS320C3x/C4x DSPs). Emitting
21576 the true RTL for a looping instruction at the top of the loop can cause
21577 problems with flow analysis. So instead, a dummy `doloop' insn is
21578 emitted at the end of the loop. The machine dependent reorg pass checks
21579 for the presence of this `doloop' insn and then searches back to the
21580 top of the loop, where it inserts the true looping insn (provided there
21581 are no instructions in the loop which would cause problems). Any
21582 additional labels can be emitted at this point. In addition, if the
21583 desired special iteration counter register was not allocated, this
21584 machine dependent reorg pass could emit a traditional compare and jump
21587 The essential difference between the `decrement_and_branch_until_zero'
21588 and the `doloop_end' patterns is that the loop optimizer allocates an
21589 additional pseudo register for the latter as an iteration counter.
21590 This pseudo register cannot be used within the loop (i.e., general
21591 induction variables cannot be derived from it), however, in many cases
21592 the loop induction variable may become redundant and removed by the
21596 File: gccint.info, Node: Insn Canonicalizations, Next: Expander Definitions, Prev: Looping Patterns, Up: Machine Desc
21598 16.14 Canonicalization of Instructions
21599 ======================================
21601 There are often cases where multiple RTL expressions could represent an
21602 operation performed by a single machine instruction. This situation is
21603 most commonly encountered with logical, branch, and multiply-accumulate
21604 instructions. In such cases, the compiler attempts to convert these
21605 multiple RTL expressions into a single canonical form to reduce the
21606 number of insn patterns required.
21608 In addition to algebraic simplifications, following canonicalizations
21611 * For commutative and comparison operators, a constant is always
21612 made the second operand. If a machine only supports a constant as
21613 the second operand, only patterns that match a constant in the
21614 second operand need be supplied.
21616 * For associative operators, a sequence of operators will always
21617 chain to the left; for instance, only the left operand of an
21618 integer `plus' can itself be a `plus'. `and', `ior', `xor',
21619 `plus', `mult', `smin', `smax', `umin', and `umax' are associative
21620 when applied to integers, and sometimes to floating-point.
21622 * For these operators, if only one operand is a `neg', `not',
21623 `mult', `plus', or `minus' expression, it will be the first
21626 * In combinations of `neg', `mult', `plus', and `minus', the `neg'
21627 operations (if any) will be moved inside the operations as far as
21628 possible. For instance, `(neg (mult A B))' is canonicalized as
21629 `(mult (neg A) B)', but `(plus (mult (neg A) B) C)' is
21630 canonicalized as `(minus A (mult B C))'.
21632 * For the `compare' operator, a constant is always the second operand
21633 on machines where `cc0' is used (*note Jump Patterns::). On other
21634 machines, there are rare cases where the compiler might want to
21635 construct a `compare' with a constant as the first operand.
21636 However, these cases are not common enough for it to be worthwhile
21637 to provide a pattern matching a constant as the first operand
21638 unless the machine actually has such an instruction.
21640 An operand of `neg', `not', `mult', `plus', or `minus' is made the
21641 first operand under the same conditions as above.
21643 * `(ltu (plus A B) B)' is converted to `(ltu (plus A B) A)'.
21644 Likewise with `geu' instead of `ltu'.
21646 * `(minus X (const_int N))' is converted to `(plus X (const_int
21649 * Within address computations (i.e., inside `mem'), a left shift is
21650 converted into the appropriate multiplication by a power of two.
21652 * De Morgan's Law is used to move bitwise negation inside a bitwise
21653 logical-and or logical-or operation. If this results in only one
21654 operand being a `not' expression, it will be the first one.
21656 A machine that has an instruction that performs a bitwise
21657 logical-and of one operand with the bitwise negation of the other
21658 should specify the pattern for that instruction as
21661 [(set (match_operand:M 0 ...)
21662 (and:M (not:M (match_operand:M 1 ...))
21663 (match_operand:M 2 ...)))]
21667 Similarly, a pattern for a "NAND" instruction should be written
21670 [(set (match_operand:M 0 ...)
21671 (ior:M (not:M (match_operand:M 1 ...))
21672 (not:M (match_operand:M 2 ...))))]
21676 In both cases, it is not necessary to include patterns for the many
21677 logically equivalent RTL expressions.
21679 * The only possible RTL expressions involving both bitwise
21680 exclusive-or and bitwise negation are `(xor:M X Y)' and `(not:M
21683 * The sum of three items, one of which is a constant, will only
21686 (plus:M (plus:M X Y) CONSTANT)
21688 * On machines that do not use `cc0', `(compare X (const_int 0))'
21689 will be converted to X.
21691 * Equality comparisons of a group of bits (usually a single bit)
21692 with zero will be written using `zero_extract' rather than the
21693 equivalent `and' or `sign_extract' operations.
21696 Further canonicalization rules are defined in the function
21697 `commutative_operand_precedence' in `gcc/rtlanal.c'.
21700 File: gccint.info, Node: Expander Definitions, Next: Insn Splitting, Prev: Insn Canonicalizations, Up: Machine Desc
21702 16.15 Defining RTL Sequences for Code Generation
21703 ================================================
21705 On some target machines, some standard pattern names for RTL generation
21706 cannot be handled with single insn, but a sequence of RTL insns can
21707 represent them. For these target machines, you can write a
21708 `define_expand' to specify how to generate the sequence of RTL.
21710 A `define_expand' is an RTL expression that looks almost like a
21711 `define_insn'; but, unlike the latter, a `define_expand' is used only
21712 for RTL generation and it can produce more than one RTL insn.
21714 A `define_expand' RTX has four operands:
21716 * The name. Each `define_expand' must have a name, since the only
21717 use for it is to refer to it by name.
21719 * The RTL template. This is a vector of RTL expressions representing
21720 a sequence of separate instructions. Unlike `define_insn', there
21721 is no implicit surrounding `PARALLEL'.
21723 * The condition, a string containing a C expression. This
21724 expression is used to express how the availability of this pattern
21725 depends on subclasses of target machine, selected by command-line
21726 options when GCC is run. This is just like the condition of a
21727 `define_insn' that has a standard name. Therefore, the condition
21728 (if present) may not depend on the data in the insn being matched,
21729 but only the target-machine-type flags. The compiler needs to
21730 test these conditions during initialization in order to learn
21731 exactly which named instructions are available in a particular run.
21733 * The preparation statements, a string containing zero or more C
21734 statements which are to be executed before RTL code is generated
21735 from the RTL template.
21737 Usually these statements prepare temporary registers for use as
21738 internal operands in the RTL template, but they can also generate
21739 RTL insns directly by calling routines such as `emit_insn', etc.
21740 Any such insns precede the ones that come from the RTL template.
21742 Every RTL insn emitted by a `define_expand' must match some
21743 `define_insn' in the machine description. Otherwise, the compiler will
21744 crash when trying to generate code for the insn or trying to optimize
21747 The RTL template, in addition to controlling generation of RTL insns,
21748 also describes the operands that need to be specified when this pattern
21749 is used. In particular, it gives a predicate for each operand.
21751 A true operand, which needs to be specified in order to generate RTL
21752 from the pattern, should be described with a `match_operand' in its
21753 first occurrence in the RTL template. This enters information on the
21754 operand's predicate into the tables that record such things. GCC uses
21755 the information to preload the operand into a register if that is
21756 required for valid RTL code. If the operand is referred to more than
21757 once, subsequent references should use `match_dup'.
21759 The RTL template may also refer to internal "operands" which are
21760 temporary registers or labels used only within the sequence made by the
21761 `define_expand'. Internal operands are substituted into the RTL
21762 template with `match_dup', never with `match_operand'. The values of
21763 the internal operands are not passed in as arguments by the compiler
21764 when it requests use of this pattern. Instead, they are computed
21765 within the pattern, in the preparation statements. These statements
21766 compute the values and store them into the appropriate elements of
21767 `operands' so that `match_dup' can find them.
21769 There are two special macros defined for use in the preparation
21770 statements: `DONE' and `FAIL'. Use them with a following semicolon, as
21774 Use the `DONE' macro to end RTL generation for the pattern. The
21775 only RTL insns resulting from the pattern on this occasion will be
21776 those already emitted by explicit calls to `emit_insn' within the
21777 preparation statements; the RTL template will not be generated.
21780 Make the pattern fail on this occasion. When a pattern fails, it
21781 means that the pattern was not truly available. The calling
21782 routines in the compiler will try other strategies for code
21783 generation using other patterns.
21785 Failure is currently supported only for binary (addition,
21786 multiplication, shifting, etc.) and bit-field (`extv', `extzv',
21787 and `insv') operations.
21789 If the preparation falls through (invokes neither `DONE' nor `FAIL'),
21790 then the `define_expand' acts like a `define_insn' in that the RTL
21791 template is used to generate the insn.
21793 The RTL template is not used for matching, only for generating the
21794 initial insn list. If the preparation statement always invokes `DONE'
21795 or `FAIL', the RTL template may be reduced to a simple list of
21796 operands, such as this example:
21798 (define_expand "addsi3"
21799 [(match_operand:SI 0 "register_operand" "")
21800 (match_operand:SI 1 "register_operand" "")
21801 (match_operand:SI 2 "register_operand" "")]
21805 handle_add (operands[0], operands[1], operands[2]);
21809 Here is an example, the definition of left-shift for the SPUR chip:
21811 (define_expand "ashlsi3"
21812 [(set (match_operand:SI 0 "register_operand" "")
21814 (match_operand:SI 1 "register_operand" "")
21815 (match_operand:SI 2 "nonmemory_operand" "")))]
21820 if (GET_CODE (operands[2]) != CONST_INT
21821 || (unsigned) INTVAL (operands[2]) > 3)
21825 This example uses `define_expand' so that it can generate an RTL insn
21826 for shifting when the shift-count is in the supported range of 0 to 3
21827 but fail in other cases where machine insns aren't available. When it
21828 fails, the compiler tries another strategy using different patterns
21829 (such as, a library call).
21831 If the compiler were able to handle nontrivial condition-strings in
21832 patterns with names, then it would be possible to use a `define_insn'
21833 in that case. Here is another case (zero-extension on the 68000) which
21834 makes more use of the power of `define_expand':
21836 (define_expand "zero_extendhisi2"
21837 [(set (match_operand:SI 0 "general_operand" "")
21839 (set (strict_low_part
21843 (match_operand:HI 1 "general_operand" ""))]
21845 "operands[1] = make_safe_from (operands[1], operands[0]);")
21847 Here two RTL insns are generated, one to clear the entire output operand
21848 and the other to copy the input operand into its low half. This
21849 sequence is incorrect if the input operand refers to [the old value of]
21850 the output operand, so the preparation statement makes sure this isn't
21851 so. The function `make_safe_from' copies the `operands[1]' into a
21852 temporary register if it refers to `operands[0]'. It does this by
21853 emitting another RTL insn.
21855 Finally, a third example shows the use of an internal operand.
21856 Zero-extension on the SPUR chip is done by `and'-ing the result against
21857 a halfword mask. But this mask cannot be represented by a `const_int'
21858 because the constant value is too large to be legitimate on this
21859 machine. So it must be copied into a register with `force_reg' and
21860 then the register used in the `and'.
21862 (define_expand "zero_extendhisi2"
21863 [(set (match_operand:SI 0 "register_operand" "")
21865 (match_operand:HI 1 "register_operand" "")
21870 = force_reg (SImode, GEN_INT (65535)); ")
21872 _Note:_ If the `define_expand' is used to serve a standard binary or
21873 unary arithmetic operation or a bit-field operation, then the last insn
21874 it generates must not be a `code_label', `barrier' or `note'. It must
21875 be an `insn', `jump_insn' or `call_insn'. If you don't need a real insn
21876 at the end, emit an insn to copy the result of the operation into
21877 itself. Such an insn will generate no code, but it can avoid problems
21881 File: gccint.info, Node: Insn Splitting, Next: Including Patterns, Prev: Expander Definitions, Up: Machine Desc
21883 16.16 Defining How to Split Instructions
21884 ========================================
21886 There are two cases where you should specify how to split a pattern
21887 into multiple insns. On machines that have instructions requiring
21888 delay slots (*note Delay Slots::) or that have instructions whose
21889 output is not available for multiple cycles (*note Processor pipeline
21890 description::), the compiler phases that optimize these cases need to
21891 be able to move insns into one-instruction delay slots. However, some
21892 insns may generate more than one machine instruction. These insns
21893 cannot be placed into a delay slot.
21895 Often you can rewrite the single insn as a list of individual insns,
21896 each corresponding to one machine instruction. The disadvantage of
21897 doing so is that it will cause the compilation to be slower and require
21898 more space. If the resulting insns are too complex, it may also
21899 suppress some optimizations. The compiler splits the insn if there is a
21900 reason to believe that it might improve instruction or delay slot
21903 The insn combiner phase also splits putative insns. If three insns are
21904 merged into one insn with a complex expression that cannot be matched by
21905 some `define_insn' pattern, the combiner phase attempts to split the
21906 complex pattern into two insns that are recognized. Usually it can
21907 break the complex pattern into two patterns by splitting out some
21908 subexpression. However, in some other cases, such as performing an
21909 addition of a large constant in two insns on a RISC machine, the way to
21910 split the addition into two insns is machine-dependent.
21912 The `define_split' definition tells the compiler how to split a
21913 complex insn into several simpler insns. It looks like this:
21918 [NEW-INSN-PATTERN-1
21921 "PREPARATION-STATEMENTS")
21923 INSN-PATTERN is a pattern that needs to be split and CONDITION is the
21924 final condition to be tested, as in a `define_insn'. When an insn
21925 matching INSN-PATTERN and satisfying CONDITION is found, it is replaced
21926 in the insn list with the insns given by NEW-INSN-PATTERN-1,
21927 NEW-INSN-PATTERN-2, etc.
21929 The PREPARATION-STATEMENTS are similar to those statements that are
21930 specified for `define_expand' (*note Expander Definitions::) and are
21931 executed before the new RTL is generated to prepare for the generated
21932 code or emit some insns whose pattern is not fixed. Unlike those in
21933 `define_expand', however, these statements must not generate any new
21934 pseudo-registers. Once reload has completed, they also must not
21935 allocate any space in the stack frame.
21937 Patterns are matched against INSN-PATTERN in two different
21938 circumstances. If an insn needs to be split for delay slot scheduling
21939 or insn scheduling, the insn is already known to be valid, which means
21940 that it must have been matched by some `define_insn' and, if
21941 `reload_completed' is nonzero, is known to satisfy the constraints of
21942 that `define_insn'. In that case, the new insn patterns must also be
21943 insns that are matched by some `define_insn' and, if `reload_completed'
21944 is nonzero, must also satisfy the constraints of those definitions.
21946 As an example of this usage of `define_split', consider the following
21947 example from `a29k.md', which splits a `sign_extend' from `HImode' to
21948 `SImode' into a pair of shift insns:
21951 [(set (match_operand:SI 0 "gen_reg_operand" "")
21952 (sign_extend:SI (match_operand:HI 1 "gen_reg_operand" "")))]
21954 [(set (match_dup 0)
21955 (ashift:SI (match_dup 1)
21958 (ashiftrt:SI (match_dup 0)
21961 { operands[1] = gen_lowpart (SImode, operands[1]); }")
21963 When the combiner phase tries to split an insn pattern, it is always
21964 the case that the pattern is _not_ matched by any `define_insn'. The
21965 combiner pass first tries to split a single `set' expression and then
21966 the same `set' expression inside a `parallel', but followed by a
21967 `clobber' of a pseudo-reg to use as a scratch register. In these
21968 cases, the combiner expects exactly two new insn patterns to be
21969 generated. It will verify that these patterns match some `define_insn'
21970 definitions, so you need not do this test in the `define_split' (of
21971 course, there is no point in writing a `define_split' that will never
21972 produce insns that match).
21974 Here is an example of this use of `define_split', taken from
21978 [(set (match_operand:SI 0 "gen_reg_operand" "")
21979 (plus:SI (match_operand:SI 1 "gen_reg_operand" "")
21980 (match_operand:SI 2 "non_add_cint_operand" "")))]
21982 [(set (match_dup 0) (plus:SI (match_dup 1) (match_dup 3)))
21983 (set (match_dup 0) (plus:SI (match_dup 0) (match_dup 4)))]
21986 int low = INTVAL (operands[2]) & 0xffff;
21987 int high = (unsigned) INTVAL (operands[2]) >> 16;
21990 high++, low |= 0xffff0000;
21992 operands[3] = GEN_INT (high << 16);
21993 operands[4] = GEN_INT (low);
21996 Here the predicate `non_add_cint_operand' matches any `const_int' that
21997 is _not_ a valid operand of a single add insn. The add with the
21998 smaller displacement is written so that it can be substituted into the
21999 address of a subsequent operation.
22001 An example that uses a scratch register, from the same file, generates
22002 an equality comparison of a register and a large constant:
22005 [(set (match_operand:CC 0 "cc_reg_operand" "")
22006 (compare:CC (match_operand:SI 1 "gen_reg_operand" "")
22007 (match_operand:SI 2 "non_short_cint_operand" "")))
22008 (clobber (match_operand:SI 3 "gen_reg_operand" ""))]
22009 "find_single_use (operands[0], insn, 0)
22010 && (GET_CODE (*find_single_use (operands[0], insn, 0)) == EQ
22011 || GET_CODE (*find_single_use (operands[0], insn, 0)) == NE)"
22012 [(set (match_dup 3) (xor:SI (match_dup 1) (match_dup 4)))
22013 (set (match_dup 0) (compare:CC (match_dup 3) (match_dup 5)))]
22016 /* Get the constant we are comparing against, C, and see what it
22017 looks like sign-extended to 16 bits. Then see what constant
22018 could be XOR'ed with C to get the sign-extended value. */
22020 int c = INTVAL (operands[2]);
22021 int sextc = (c << 16) >> 16;
22022 int xorv = c ^ sextc;
22024 operands[4] = GEN_INT (xorv);
22025 operands[5] = GEN_INT (sextc);
22028 To avoid confusion, don't write a single `define_split' that accepts
22029 some insns that match some `define_insn' as well as some insns that
22030 don't. Instead, write two separate `define_split' definitions, one for
22031 the insns that are valid and one for the insns that are not valid.
22033 The splitter is allowed to split jump instructions into sequence of
22034 jumps or create new jumps in while splitting non-jump instructions. As
22035 the central flowgraph and branch prediction information needs to be
22036 updated, several restriction apply.
22038 Splitting of jump instruction into sequence that over by another jump
22039 instruction is always valid, as compiler expect identical behavior of
22040 new jump. When new sequence contains multiple jump instructions or new
22041 labels, more assistance is needed. Splitter is required to create only
22042 unconditional jumps, or simple conditional jump instructions.
22043 Additionally it must attach a `REG_BR_PROB' note to each conditional
22044 jump. A global variable `split_branch_probability' holds the
22045 probability of the original branch in case it was an simple conditional
22046 jump, -1 otherwise. To simplify recomputing of edge frequencies, the
22047 new sequence is required to have only forward jumps to the newly
22050 For the common case where the pattern of a define_split exactly
22051 matches the pattern of a define_insn, use `define_insn_and_split'. It
22054 (define_insn_and_split
22059 [NEW-INSN-PATTERN-1
22062 "PREPARATION-STATEMENTS"
22065 INSN-PATTERN, CONDITION, OUTPUT-TEMPLATE, and INSN-ATTRIBUTES are used
22066 as in `define_insn'. The NEW-INSN-PATTERN vector and the
22067 PREPARATION-STATEMENTS are used as in a `define_split'. The
22068 SPLIT-CONDITION is also used as in `define_split', with the additional
22069 behavior that if the condition starts with `&&', the condition used for
22070 the split will be the constructed as a logical "and" of the split
22071 condition with the insn condition. For example, from i386.md:
22073 (define_insn_and_split "zero_extendhisi2_and"
22074 [(set (match_operand:SI 0 "register_operand" "=r")
22075 (zero_extend:SI (match_operand:HI 1 "register_operand" "0")))
22076 (clobber (reg:CC 17))]
22077 "TARGET_ZERO_EXTEND_WITH_AND && !optimize_size"
22079 "&& reload_completed"
22080 [(parallel [(set (match_dup 0)
22081 (and:SI (match_dup 0) (const_int 65535)))
22082 (clobber (reg:CC 17))])]
22084 [(set_attr "type" "alu1")])
22086 In this case, the actual split condition will be
22087 `TARGET_ZERO_EXTEND_WITH_AND && !optimize_size && reload_completed'.
22089 The `define_insn_and_split' construction provides exactly the same
22090 functionality as two separate `define_insn' and `define_split'
22091 patterns. It exists for compactness, and as a maintenance tool to
22092 prevent having to ensure the two patterns' templates match.
22095 File: gccint.info, Node: Including Patterns, Next: Peephole Definitions, Prev: Insn Splitting, Up: Machine Desc
22097 16.17 Including Patterns in Machine Descriptions.
22098 =================================================
22100 The `include' pattern tells the compiler tools where to look for
22101 patterns that are in files other than in the file `.md'. This is used
22102 only at build time and there is no preprocessing allowed.
22113 (include "filestuff")
22115 Where PATHNAME is a string that specifies the location of the file,
22116 specifies the include file to be in `gcc/config/target/filestuff'. The
22117 directory `gcc/config/target' is regarded as the default directory.
22119 Machine descriptions may be split up into smaller more manageable
22120 subsections and placed into subdirectories.
22125 (include "BOGUS/filestuff")
22127 the include file is specified to be in
22128 `gcc/config/TARGET/BOGUS/filestuff'.
22130 Specifying an absolute path for the include file such as;
22132 (include "/u2/BOGUS/filestuff")
22133 is permitted but is not encouraged.
22135 16.17.1 RTL Generation Tool Options for Directory Search
22136 --------------------------------------------------------
22138 The `-IDIR' option specifies directories to search for machine
22139 descriptions. For example:
22142 genrecog -I/p1/abc/proc1 -I/p2/abcd/pro2 target.md
22144 Add the directory DIR to the head of the list of directories to be
22145 searched for header files. This can be used to override a system
22146 machine definition file, substituting your own version, since these
22147 directories are searched before the default machine description file
22148 directories. If you use more than one `-I' option, the directories are
22149 scanned in left-to-right order; the standard default directory come
22153 File: gccint.info, Node: Peephole Definitions, Next: Insn Attributes, Prev: Including Patterns, Up: Machine Desc
22155 16.18 Machine-Specific Peephole Optimizers
22156 ==========================================
22158 In addition to instruction patterns the `md' file may contain
22159 definitions of machine-specific peephole optimizations.
22161 The combiner does not notice certain peephole optimizations when the
22162 data flow in the program does not suggest that it should try them. For
22163 example, sometimes two consecutive insns related in purpose can be
22164 combined even though the second one does not appear to use a register
22165 computed in the first one. A machine-specific peephole optimizer can
22166 detect such opportunities.
22168 There are two forms of peephole definitions that may be used. The
22169 original `define_peephole' is run at assembly output time to match
22170 insns and substitute assembly text. Use of `define_peephole' is
22173 A newer `define_peephole2' matches insns and substitutes new insns.
22174 The `peephole2' pass is run after register allocation but before
22175 scheduling, which may result in much better code for targets that do
22180 * define_peephole:: RTL to Text Peephole Optimizers
22181 * define_peephole2:: RTL to RTL Peephole Optimizers
22184 File: gccint.info, Node: define_peephole, Next: define_peephole2, Up: Peephole Definitions
22186 16.18.1 RTL to Text Peephole Optimizers
22187 ---------------------------------------
22189 A definition looks like this:
22197 "OPTIONAL-INSN-ATTRIBUTES")
22199 The last string operand may be omitted if you are not using any
22200 machine-specific information in this machine description. If present,
22201 it must obey the same rules as in a `define_insn'.
22203 In this skeleton, INSN-PATTERN-1 and so on are patterns to match
22204 consecutive insns. The optimization applies to a sequence of insns when
22205 INSN-PATTERN-1 matches the first one, INSN-PATTERN-2 matches the next,
22208 Each of the insns matched by a peephole must also match a
22209 `define_insn'. Peepholes are checked only at the last stage just
22210 before code generation, and only optionally. Therefore, any insn which
22211 would match a peephole but no `define_insn' will cause a crash in code
22212 generation in an unoptimized compilation, or at various optimization
22215 The operands of the insns are matched with `match_operands',
22216 `match_operator', and `match_dup', as usual. What is not usual is that
22217 the operand numbers apply to all the insn patterns in the definition.
22218 So, you can check for identical operands in two insns by using
22219 `match_operand' in one insn and `match_dup' in the other.
22221 The operand constraints used in `match_operand' patterns do not have
22222 any direct effect on the applicability of the peephole, but they will
22223 be validated afterward, so make sure your constraints are general enough
22224 to apply whenever the peephole matches. If the peephole matches but
22225 the constraints are not satisfied, the compiler will crash.
22227 It is safe to omit constraints in all the operands of the peephole; or
22228 you can write constraints which serve as a double-check on the criteria
22231 Once a sequence of insns matches the patterns, the CONDITION is
22232 checked. This is a C expression which makes the final decision whether
22233 to perform the optimization (we do so if the expression is nonzero). If
22234 CONDITION is omitted (in other words, the string is empty) then the
22235 optimization is applied to every sequence of insns that matches the
22238 The defined peephole optimizations are applied after register
22239 allocation is complete. Therefore, the peephole definition can check
22240 which operands have ended up in which kinds of registers, just by
22241 looking at the operands.
22243 The way to refer to the operands in CONDITION is to write
22244 `operands[I]' for operand number I (as matched by `(match_operand I
22245 ...)'). Use the variable `insn' to refer to the last of the insns
22246 being matched; use `prev_active_insn' to find the preceding insns.
22248 When optimizing computations with intermediate results, you can use
22249 CONDITION to match only when the intermediate results are not used
22250 elsewhere. Use the C expression `dead_or_set_p (INSN, OP)', where INSN
22251 is the insn in which you expect the value to be used for the last time
22252 (from the value of `insn', together with use of `prev_nonnote_insn'),
22253 and OP is the intermediate value (from `operands[I]').
22255 Applying the optimization means replacing the sequence of insns with
22256 one new insn. The TEMPLATE controls ultimate output of assembler code
22257 for this combined insn. It works exactly like the template of a
22258 `define_insn'. Operand numbers in this template are the same ones used
22259 in matching the original sequence of insns.
22261 The result of a defined peephole optimizer does not need to match any
22262 of the insn patterns in the machine description; it does not even have
22263 an opportunity to match them. The peephole optimizer definition itself
22264 serves as the insn pattern to control how the insn is output.
22266 Defined peephole optimizers are run as assembler code is being output,
22267 so the insns they produce are never combined or rearranged in any way.
22269 Here is an example, taken from the 68000 machine description:
22272 [(set (reg:SI 15) (plus:SI (reg:SI 15) (const_int 4)))
22273 (set (match_operand:DF 0 "register_operand" "=f")
22274 (match_operand:DF 1 "register_operand" "ad"))]
22275 "FP_REG_P (operands[0]) && ! FP_REG_P (operands[1])"
22278 xoperands[1] = gen_rtx_REG (SImode, REGNO (operands[1]) + 1);
22280 output_asm_insn ("move.l %1,(sp)", xoperands);
22281 output_asm_insn ("move.l %1,-(sp)", operands);
22282 return "fmove.d (sp)+,%0";
22284 output_asm_insn ("movel %1,sp@", xoperands);
22285 output_asm_insn ("movel %1,sp@-", operands);
22286 return "fmoved sp@+,%0";
22290 The effect of this optimization is to change
22305 INSN-PATTERN-1 and so on look _almost_ like the second operand of
22306 `define_insn'. There is one important difference: the second operand
22307 of `define_insn' consists of one or more RTX's enclosed in square
22308 brackets. Usually, there is only one: then the same action can be
22309 written as an element of a `define_peephole'. But when there are
22310 multiple actions in a `define_insn', they are implicitly enclosed in a
22311 `parallel'. Then you must explicitly write the `parallel', and the
22312 square brackets within it, in the `define_peephole'. Thus, if an insn
22313 pattern looks like this,
22315 (define_insn "divmodsi4"
22316 [(set (match_operand:SI 0 "general_operand" "=d")
22317 (div:SI (match_operand:SI 1 "general_operand" "0")
22318 (match_operand:SI 2 "general_operand" "dmsK")))
22319 (set (match_operand:SI 3 "general_operand" "=d")
22320 (mod:SI (match_dup 1) (match_dup 2)))]
22322 "divsl%.l %2,%3:%0")
22324 then the way to mention this insn in a peephole is as follows:
22329 [(set (match_operand:SI 0 "general_operand" "=d")
22330 (div:SI (match_operand:SI 1 "general_operand" "0")
22331 (match_operand:SI 2 "general_operand" "dmsK")))
22332 (set (match_operand:SI 3 "general_operand" "=d")
22333 (mod:SI (match_dup 1) (match_dup 2)))])
22338 File: gccint.info, Node: define_peephole2, Prev: define_peephole, Up: Peephole Definitions
22340 16.18.2 RTL to RTL Peephole Optimizers
22341 --------------------------------------
22343 The `define_peephole2' definition tells the compiler how to substitute
22344 one sequence of instructions for another sequence, what additional
22345 scratch registers may be needed and what their lifetimes must be.
22352 [NEW-INSN-PATTERN-1
22355 "PREPARATION-STATEMENTS")
22357 The definition is almost identical to `define_split' (*note Insn
22358 Splitting::) except that the pattern to match is not a single
22359 instruction, but a sequence of instructions.
22361 It is possible to request additional scratch registers for use in the
22362 output template. If appropriate registers are not free, the pattern
22363 will simply not match.
22365 Scratch registers are requested with a `match_scratch' pattern at the
22366 top level of the input pattern. The allocated register (initially) will
22367 be dead at the point requested within the original sequence. If the
22368 scratch is used at more than a single point, a `match_dup' pattern at
22369 the top level of the input pattern marks the last position in the input
22370 sequence at which the register must be available.
22372 Here is an example from the IA-32 machine description:
22375 [(match_scratch:SI 2 "r")
22376 (parallel [(set (match_operand:SI 0 "register_operand" "")
22377 (match_operator:SI 3 "arith_or_logical_operator"
22379 (match_operand:SI 1 "memory_operand" "")]))
22380 (clobber (reg:CC 17))])]
22381 "! optimize_size && ! TARGET_READ_MODIFY"
22382 [(set (match_dup 2) (match_dup 1))
22383 (parallel [(set (match_dup 0)
22384 (match_op_dup 3 [(match_dup 0) (match_dup 2)]))
22385 (clobber (reg:CC 17))])]
22388 This pattern tries to split a load from its use in the hopes that we'll
22389 be able to schedule around the memory load latency. It allocates a
22390 single `SImode' register of class `GENERAL_REGS' (`"r"') that needs to
22391 be live only at the point just before the arithmetic.
22393 A real example requiring extended scratch lifetimes is harder to come
22394 by, so here's a silly made-up example:
22397 [(match_scratch:SI 4 "r")
22398 (set (match_operand:SI 0 "" "") (match_operand:SI 1 "" ""))
22399 (set (match_operand:SI 2 "" "") (match_dup 1))
22401 (set (match_operand:SI 3 "" "") (match_dup 1))]
22402 "/* determine 1 does not overlap 0 and 2 */"
22403 [(set (match_dup 4) (match_dup 1))
22404 (set (match_dup 0) (match_dup 4))
22405 (set (match_dup 2) (match_dup 4))]
22406 (set (match_dup 3) (match_dup 4))]
22409 If we had not added the `(match_dup 4)' in the middle of the input
22410 sequence, it might have been the case that the register we chose at the
22411 beginning of the sequence is killed by the first or second `set'.
22414 File: gccint.info, Node: Insn Attributes, Next: Conditional Execution, Prev: Peephole Definitions, Up: Machine Desc
22416 16.19 Instruction Attributes
22417 ============================
22419 In addition to describing the instruction supported by the target
22420 machine, the `md' file also defines a group of "attributes" and a set of
22421 values for each. Every generated insn is assigned a value for each
22422 attribute. One possible attribute would be the effect that the insn
22423 has on the machine's condition code. This attribute can then be used
22424 by `NOTICE_UPDATE_CC' to track the condition codes.
22428 * Defining Attributes:: Specifying attributes and their values.
22429 * Expressions:: Valid expressions for attribute values.
22430 * Tagging Insns:: Assigning attribute values to insns.
22431 * Attr Example:: An example of assigning attributes.
22432 * Insn Lengths:: Computing the length of insns.
22433 * Constant Attributes:: Defining attributes that are constant.
22434 * Delay Slots:: Defining delay slots required for a machine.
22435 * Processor pipeline description:: Specifying information for insn scheduling.
22438 File: gccint.info, Node: Defining Attributes, Next: Expressions, Up: Insn Attributes
22440 16.19.1 Defining Attributes and their Values
22441 --------------------------------------------
22443 The `define_attr' expression is used to define each attribute required
22444 by the target machine. It looks like:
22446 (define_attr NAME LIST-OF-VALUES DEFAULT)
22448 NAME is a string specifying the name of the attribute being defined.
22450 LIST-OF-VALUES is either a string that specifies a comma-separated
22451 list of values that can be assigned to the attribute, or a null string
22452 to indicate that the attribute takes numeric values.
22454 DEFAULT is an attribute expression that gives the value of this
22455 attribute for insns that match patterns whose definition does not
22456 include an explicit value for this attribute. *Note Attr Example::,
22457 for more information on the handling of defaults. *Note Constant
22458 Attributes::, for information on attributes that do not depend on any
22461 For each defined attribute, a number of definitions are written to the
22462 `insn-attr.h' file. For cases where an explicit set of values is
22463 specified for an attribute, the following are defined:
22465 * A `#define' is written for the symbol `HAVE_ATTR_NAME'.
22467 * An enumerated class is defined for `attr_NAME' with elements of
22468 the form `UPPER-NAME_UPPER-VALUE' where the attribute name and
22469 value are first converted to uppercase.
22471 * A function `get_attr_NAME' is defined that is passed an insn and
22472 returns the attribute value for that insn.
22474 For example, if the following is present in the `md' file:
22476 (define_attr "type" "branch,fp,load,store,arith" ...)
22478 the following lines will be written to the file `insn-attr.h'.
22480 #define HAVE_ATTR_type
22481 enum attr_type {TYPE_BRANCH, TYPE_FP, TYPE_LOAD,
22482 TYPE_STORE, TYPE_ARITH};
22483 extern enum attr_type get_attr_type ();
22485 If the attribute takes numeric values, no `enum' type will be defined
22486 and the function to obtain the attribute's value will return `int'.
22488 There are attributes which are tied to a specific meaning. These
22489 attributes are not free to use for other purposes:
22492 The `length' attribute is used to calculate the length of emitted
22493 code chunks. This is especially important when verifying branch
22494 distances. *Note Insn Lengths::.
22497 The `enabled' attribute can be defined to prevent certain
22498 alternatives of an insn definition from being used during code
22499 generation. *Note Disable Insn Alternatives::.
22503 File: gccint.info, Node: Expressions, Next: Tagging Insns, Prev: Defining Attributes, Up: Insn Attributes
22505 16.19.2 Attribute Expressions
22506 -----------------------------
22508 RTL expressions used to define attributes use the codes described above
22509 plus a few specific to attribute definitions, to be discussed below.
22510 Attribute value expressions must have one of the following forms:
22513 The integer I specifies the value of a numeric attribute. I must
22516 The value of a numeric attribute can be specified either with a
22517 `const_int', or as an integer represented as a string in
22518 `const_string', `eq_attr' (see below), `attr', `symbol_ref',
22519 simple arithmetic expressions, and `set_attr' overrides on
22520 specific instructions (*note Tagging Insns::).
22522 `(const_string VALUE)'
22523 The string VALUE specifies a constant attribute value. If VALUE
22524 is specified as `"*"', it means that the default value of the
22525 attribute is to be used for the insn containing this expression.
22526 `"*"' obviously cannot be used in the DEFAULT expression of a
22529 If the attribute whose value is being specified is numeric, VALUE
22530 must be a string containing a non-negative integer (normally
22531 `const_int' would be used in this case). Otherwise, it must
22532 contain one of the valid values for the attribute.
22534 `(if_then_else TEST TRUE-VALUE FALSE-VALUE)'
22535 TEST specifies an attribute test, whose format is defined below.
22536 The value of this expression is TRUE-VALUE if TEST is true,
22537 otherwise it is FALSE-VALUE.
22539 `(cond [TEST1 VALUE1 ...] DEFAULT)'
22540 The first operand of this expression is a vector containing an even
22541 number of expressions and consisting of pairs of TEST and VALUE
22542 expressions. The value of the `cond' expression is that of the
22543 VALUE corresponding to the first true TEST expression. If none of
22544 the TEST expressions are true, the value of the `cond' expression
22545 is that of the DEFAULT expression.
22547 TEST expressions can have one of the following forms:
22550 This test is true if I is nonzero and false otherwise.
22553 `(ior TEST1 TEST2)'
22554 `(and TEST1 TEST2)'
22555 These tests are true if the indicated logical function is true.
22557 `(match_operand:M N PRED CONSTRAINTS)'
22558 This test is true if operand N of the insn whose attribute value
22559 is being determined has mode M (this part of the test is ignored
22560 if M is `VOIDmode') and the function specified by the string PRED
22561 returns a nonzero value when passed operand N and mode M (this
22562 part of the test is ignored if PRED is the null string).
22564 The CONSTRAINTS operand is ignored and should be the null string.
22566 `(le ARITH1 ARITH2)'
22567 `(leu ARITH1 ARITH2)'
22568 `(lt ARITH1 ARITH2)'
22569 `(ltu ARITH1 ARITH2)'
22570 `(gt ARITH1 ARITH2)'
22571 `(gtu ARITH1 ARITH2)'
22572 `(ge ARITH1 ARITH2)'
22573 `(geu ARITH1 ARITH2)'
22574 `(ne ARITH1 ARITH2)'
22575 `(eq ARITH1 ARITH2)'
22576 These tests are true if the indicated comparison of the two
22577 arithmetic expressions is true. Arithmetic expressions are formed
22578 with `plus', `minus', `mult', `div', `mod', `abs', `neg', `and',
22579 `ior', `xor', `not', `ashift', `lshiftrt', and `ashiftrt'
22582 `const_int' and `symbol_ref' are always valid terms (*note Insn
22583 Lengths::,for additional forms). `symbol_ref' is a string
22584 denoting a C expression that yields an `int' when evaluated by the
22585 `get_attr_...' routine. It should normally be a global variable.
22587 `(eq_attr NAME VALUE)'
22588 NAME is a string specifying the name of an attribute.
22590 VALUE is a string that is either a valid value for attribute NAME,
22591 a comma-separated list of values, or `!' followed by a value or
22592 list. If VALUE does not begin with a `!', this test is true if
22593 the value of the NAME attribute of the current insn is in the list
22594 specified by VALUE. If VALUE begins with a `!', this test is true
22595 if the attribute's value is _not_ in the specified list.
22599 (eq_attr "type" "load,store")
22603 (ior (eq_attr "type" "load") (eq_attr "type" "store"))
22605 If NAME specifies an attribute of `alternative', it refers to the
22606 value of the compiler variable `which_alternative' (*note Output
22607 Statement::) and the values must be small integers. For example,
22609 (eq_attr "alternative" "2,3")
22613 (ior (eq (symbol_ref "which_alternative") (const_int 2))
22614 (eq (symbol_ref "which_alternative") (const_int 3)))
22616 Note that, for most attributes, an `eq_attr' test is simplified in
22617 cases where the value of the attribute being tested is known for
22618 all insns matching a particular pattern. This is by far the most
22622 The value of an `attr_flag' expression is true if the flag
22623 specified by NAME is true for the `insn' currently being scheduled.
22625 NAME is a string specifying one of a fixed set of flags to test.
22626 Test the flags `forward' and `backward' to determine the direction
22627 of a conditional branch. Test the flags `very_likely', `likely',
22628 `very_unlikely', and `unlikely' to determine if a conditional
22629 branch is expected to be taken.
22631 If the `very_likely' flag is true, then the `likely' flag is also
22632 true. Likewise for the `very_unlikely' and `unlikely' flags.
22634 This example describes a conditional branch delay slot which can
22635 be nullified for forward branches that are taken (annul-true) or
22636 for backward branches which are not taken (annul-false).
22638 (define_delay (eq_attr "type" "cbranch")
22639 [(eq_attr "in_branch_delay" "true")
22640 (and (eq_attr "in_branch_delay" "true")
22641 (attr_flag "forward"))
22642 (and (eq_attr "in_branch_delay" "true")
22643 (attr_flag "backward"))])
22645 The `forward' and `backward' flags are false if the current `insn'
22646 being scheduled is not a conditional branch.
22648 The `very_likely' and `likely' flags are true if the `insn' being
22649 scheduled is not a conditional branch. The `very_unlikely' and
22650 `unlikely' flags are false if the `insn' being scheduled is not a
22651 conditional branch.
22653 `attr_flag' is only used during delay slot scheduling and has no
22654 meaning to other passes of the compiler.
22657 The value of another attribute is returned. This is most useful
22658 for numeric attributes, as `eq_attr' and `attr_flag' produce more
22659 efficient code for non-numeric attributes.
22662 File: gccint.info, Node: Tagging Insns, Next: Attr Example, Prev: Expressions, Up: Insn Attributes
22664 16.19.3 Assigning Attribute Values to Insns
22665 -------------------------------------------
22667 The value assigned to an attribute of an insn is primarily determined by
22668 which pattern is matched by that insn (or which `define_peephole'
22669 generated it). Every `define_insn' and `define_peephole' can have an
22670 optional last argument to specify the values of attributes for matching
22671 insns. The value of any attribute not specified in a particular insn
22672 is set to the default value for that attribute, as specified in its
22673 `define_attr'. Extensive use of default values for attributes permits
22674 the specification of the values for only one or two attributes in the
22675 definition of most insn patterns, as seen in the example in the next
22678 The optional last argument of `define_insn' and `define_peephole' is a
22679 vector of expressions, each of which defines the value for a single
22680 attribute. The most general way of assigning an attribute's value is
22681 to use a `set' expression whose first operand is an `attr' expression
22682 giving the name of the attribute being set. The second operand of the
22683 `set' is an attribute expression (*note Expressions::) giving the value
22686 When the attribute value depends on the `alternative' attribute (i.e.,
22687 which is the applicable alternative in the constraint of the insn), the
22688 `set_attr_alternative' expression can be used. It allows the
22689 specification of a vector of attribute expressions, one for each
22692 When the generality of arbitrary attribute expressions is not required,
22693 the simpler `set_attr' expression can be used, which allows specifying
22694 a string giving either a single attribute value or a list of attribute
22695 values, one for each alternative.
22697 The form of each of the above specifications is shown below. In each
22698 case, NAME is a string specifying the attribute to be set.
22700 `(set_attr NAME VALUE-STRING)'
22701 VALUE-STRING is either a string giving the desired attribute value,
22702 or a string containing a comma-separated list giving the values for
22703 succeeding alternatives. The number of elements must match the
22704 number of alternatives in the constraint of the insn pattern.
22706 Note that it may be useful to specify `*' for some alternative, in
22707 which case the attribute will assume its default value for insns
22708 matching that alternative.
22710 `(set_attr_alternative NAME [VALUE1 VALUE2 ...])'
22711 Depending on the alternative of the insn, the value will be one of
22712 the specified values. This is a shorthand for using a `cond' with
22713 tests on the `alternative' attribute.
22715 `(set (attr NAME) VALUE)'
22716 The first operand of this `set' must be the special RTL expression
22717 `attr', whose sole operand is a string giving the name of the
22718 attribute being set. VALUE is the value of the attribute.
22720 The following shows three different ways of representing the same
22721 attribute value specification:
22723 (set_attr "type" "load,store,arith")
22725 (set_attr_alternative "type"
22726 [(const_string "load") (const_string "store")
22727 (const_string "arith")])
22730 (cond [(eq_attr "alternative" "1") (const_string "load")
22731 (eq_attr "alternative" "2") (const_string "store")]
22732 (const_string "arith")))
22734 The `define_asm_attributes' expression provides a mechanism to specify
22735 the attributes assigned to insns produced from an `asm' statement. It
22738 (define_asm_attributes [ATTR-SETS])
22740 where ATTR-SETS is specified the same as for both the `define_insn' and
22741 the `define_peephole' expressions.
22743 These values will typically be the "worst case" attribute values. For
22744 example, they might indicate that the condition code will be clobbered.
22746 A specification for a `length' attribute is handled specially. The
22747 way to compute the length of an `asm' insn is to multiply the length
22748 specified in the expression `define_asm_attributes' by the number of
22749 machine instructions specified in the `asm' statement, determined by
22750 counting the number of semicolons and newlines in the string.
22751 Therefore, the value of the `length' attribute specified in a
22752 `define_asm_attributes' should be the maximum possible length of a
22753 single machine instruction.
22756 File: gccint.info, Node: Attr Example, Next: Insn Lengths, Prev: Tagging Insns, Up: Insn Attributes
22758 16.19.4 Example of Attribute Specifications
22759 -------------------------------------------
22761 The judicious use of defaulting is important in the efficient use of
22762 insn attributes. Typically, insns are divided into "types" and an
22763 attribute, customarily called `type', is used to represent this value.
22764 This attribute is normally used only to define the default value for
22765 other attributes. An example will clarify this usage.
22767 Assume we have a RISC machine with a condition code and in which only
22768 full-word operations are performed in registers. Let us assume that we
22769 can divide all insns into loads, stores, (integer) arithmetic
22770 operations, floating point operations, and branches.
22772 Here we will concern ourselves with determining the effect of an insn
22773 on the condition code and will limit ourselves to the following possible
22774 effects: The condition code can be set unpredictably (clobbered), not
22775 be changed, be set to agree with the results of the operation, or only
22776 changed if the item previously set into the condition code has been
22779 Here is part of a sample `md' file for such a machine:
22781 (define_attr "type" "load,store,arith,fp,branch" (const_string "arith"))
22783 (define_attr "cc" "clobber,unchanged,set,change0"
22784 (cond [(eq_attr "type" "load")
22785 (const_string "change0")
22786 (eq_attr "type" "store,branch")
22787 (const_string "unchanged")
22788 (eq_attr "type" "arith")
22789 (if_then_else (match_operand:SI 0 "" "")
22790 (const_string "set")
22791 (const_string "clobber"))]
22792 (const_string "clobber")))
22795 [(set (match_operand:SI 0 "general_operand" "=r,r,m")
22796 (match_operand:SI 1 "general_operand" "r,m,r"))]
22802 [(set_attr "type" "arith,load,store")])
22804 Note that we assume in the above example that arithmetic operations
22805 performed on quantities smaller than a machine word clobber the
22806 condition code since they will set the condition code to a value
22807 corresponding to the full-word result.
22810 File: gccint.info, Node: Insn Lengths, Next: Constant Attributes, Prev: Attr Example, Up: Insn Attributes
22812 16.19.5 Computing the Length of an Insn
22813 ---------------------------------------
22815 For many machines, multiple types of branch instructions are provided,
22816 each for different length branch displacements. In most cases, the
22817 assembler will choose the correct instruction to use. However, when
22818 the assembler cannot do so, GCC can when a special attribute, the
22819 `length' attribute, is defined. This attribute must be defined to have
22820 numeric values by specifying a null string in its `define_attr'.
22822 In the case of the `length' attribute, two additional forms of
22823 arithmetic terms are allowed in test expressions:
22826 This refers to the address of operand N of the current insn, which
22827 must be a `label_ref'.
22830 This refers to the address of the _current_ insn. It might have
22831 been more consistent with other usage to make this the address of
22832 the _next_ insn but this would be confusing because the length of
22833 the current insn is to be computed.
22835 For normal insns, the length will be determined by value of the
22836 `length' attribute. In the case of `addr_vec' and `addr_diff_vec' insn
22837 patterns, the length is computed as the number of vectors multiplied by
22838 the size of each vector.
22840 Lengths are measured in addressable storage units (bytes).
22842 The following macros can be used to refine the length computation:
22844 `ADJUST_INSN_LENGTH (INSN, LENGTH)'
22845 If defined, modifies the length assigned to instruction INSN as a
22846 function of the context in which it is used. LENGTH is an lvalue
22847 that contains the initially computed length of the insn and should
22848 be updated with the correct length of the insn.
22850 This macro will normally not be required. A case in which it is
22851 required is the ROMP. On this machine, the size of an `addr_vec'
22852 insn must be increased by two to compensate for the fact that
22853 alignment may be required.
22855 The routine that returns `get_attr_length' (the value of the `length'
22856 attribute) can be used by the output routine to determine the form of
22857 the branch instruction to be written, as the example below illustrates.
22859 As an example of the specification of variable-length branches,
22860 consider the IBM 360. If we adopt the convention that a register will
22861 be set to the starting address of a function, we can jump to labels
22862 within 4k of the start using a four-byte instruction. Otherwise, we
22863 need a six-byte sequence to load the address from memory and then
22866 On such a machine, a pattern for a branch instruction might be
22867 specified as follows:
22869 (define_insn "jump"
22871 (label_ref (match_operand 0 "" "")))]
22874 return (get_attr_length (insn) == 4
22875 ? "b %l0" : "l r15,=a(%l0); br r15");
22877 [(set (attr "length")
22878 (if_then_else (lt (match_dup 0) (const_int 4096))
22883 File: gccint.info, Node: Constant Attributes, Next: Delay Slots, Prev: Insn Lengths, Up: Insn Attributes
22885 16.19.6 Constant Attributes
22886 ---------------------------
22888 A special form of `define_attr', where the expression for the default
22889 value is a `const' expression, indicates an attribute that is constant
22890 for a given run of the compiler. Constant attributes may be used to
22891 specify which variety of processor is used. For example,
22893 (define_attr "cpu" "m88100,m88110,m88000"
22895 (cond [(symbol_ref "TARGET_88100") (const_string "m88100")
22896 (symbol_ref "TARGET_88110") (const_string "m88110")]
22897 (const_string "m88000"))))
22899 (define_attr "memory" "fast,slow"
22901 (if_then_else (symbol_ref "TARGET_FAST_MEM")
22902 (const_string "fast")
22903 (const_string "slow"))))
22905 The routine generated for constant attributes has no parameters as it
22906 does not depend on any particular insn. RTL expressions used to define
22907 the value of a constant attribute may use the `symbol_ref' form, but
22908 may not use either the `match_operand' form or `eq_attr' forms
22909 involving insn attributes.
22912 File: gccint.info, Node: Delay Slots, Next: Processor pipeline description, Prev: Constant Attributes, Up: Insn Attributes
22914 16.19.7 Delay Slot Scheduling
22915 -----------------------------
22917 The insn attribute mechanism can be used to specify the requirements for
22918 delay slots, if any, on a target machine. An instruction is said to
22919 require a "delay slot" if some instructions that are physically after
22920 the instruction are executed as if they were located before it.
22921 Classic examples are branch and call instructions, which often execute
22922 the following instruction before the branch or call is performed.
22924 On some machines, conditional branch instructions can optionally
22925 "annul" instructions in the delay slot. This means that the
22926 instruction will not be executed for certain branch outcomes. Both
22927 instructions that annul if the branch is true and instructions that
22928 annul if the branch is false are supported.
22930 Delay slot scheduling differs from instruction scheduling in that
22931 determining whether an instruction needs a delay slot is dependent only
22932 on the type of instruction being generated, not on data flow between the
22933 instructions. See the next section for a discussion of data-dependent
22934 instruction scheduling.
22936 The requirement of an insn needing one or more delay slots is indicated
22937 via the `define_delay' expression. It has the following form:
22940 [DELAY-1 ANNUL-TRUE-1 ANNUL-FALSE-1
22941 DELAY-2 ANNUL-TRUE-2 ANNUL-FALSE-2
22944 TEST is an attribute test that indicates whether this `define_delay'
22945 applies to a particular insn. If so, the number of required delay
22946 slots is determined by the length of the vector specified as the second
22947 argument. An insn placed in delay slot N must satisfy attribute test
22948 DELAY-N. ANNUL-TRUE-N is an attribute test that specifies which insns
22949 may be annulled if the branch is true. Similarly, ANNUL-FALSE-N
22950 specifies which insns in the delay slot may be annulled if the branch
22951 is false. If annulling is not supported for that delay slot, `(nil)'
22954 For example, in the common case where branch and call insns require a
22955 single delay slot, which may contain any insn other than a branch or
22956 call, the following would be placed in the `md' file:
22958 (define_delay (eq_attr "type" "branch,call")
22959 [(eq_attr "type" "!branch,call") (nil) (nil)])
22961 Multiple `define_delay' expressions may be specified. In this case,
22962 each such expression specifies different delay slot requirements and
22963 there must be no insn for which tests in two `define_delay' expressions
22966 For example, if we have a machine that requires one delay slot for
22967 branches but two for calls, no delay slot can contain a branch or call
22968 insn, and any valid insn in the delay slot for the branch can be
22969 annulled if the branch is true, we might represent this as follows:
22971 (define_delay (eq_attr "type" "branch")
22972 [(eq_attr "type" "!branch,call")
22973 (eq_attr "type" "!branch,call")
22976 (define_delay (eq_attr "type" "call")
22977 [(eq_attr "type" "!branch,call") (nil) (nil)
22978 (eq_attr "type" "!branch,call") (nil) (nil)])
22981 File: gccint.info, Node: Processor pipeline description, Prev: Delay Slots, Up: Insn Attributes
22983 16.19.8 Specifying processor pipeline description
22984 -------------------------------------------------
22986 To achieve better performance, most modern processors (super-pipelined,
22987 superscalar RISC, and VLIW processors) have many "functional units" on
22988 which several instructions can be executed simultaneously. An
22989 instruction starts execution if its issue conditions are satisfied. If
22990 not, the instruction is stalled until its conditions are satisfied.
22991 Such "interlock (pipeline) delay" causes interruption of the fetching
22992 of successor instructions (or demands nop instructions, e.g. for some
22995 There are two major kinds of interlock delays in modern processors.
22996 The first one is a data dependence delay determining "instruction
22997 latency time". The instruction execution is not started until all
22998 source data have been evaluated by prior instructions (there are more
22999 complex cases when the instruction execution starts even when the data
23000 are not available but will be ready in given time after the instruction
23001 execution start). Taking the data dependence delays into account is
23002 simple. The data dependence (true, output, and anti-dependence) delay
23003 between two instructions is given by a constant. In most cases this
23004 approach is adequate. The second kind of interlock delays is a
23005 reservation delay. The reservation delay means that two instructions
23006 under execution will be in need of shared processors resources, i.e.
23007 buses, internal registers, and/or functional units, which are reserved
23008 for some time. Taking this kind of delay into account is complex
23009 especially for modern RISC processors.
23011 The task of exploiting more processor parallelism is solved by an
23012 instruction scheduler. For a better solution to this problem, the
23013 instruction scheduler has to have an adequate description of the
23014 processor parallelism (or "pipeline description"). GCC machine
23015 descriptions describe processor parallelism and functional unit
23016 reservations for groups of instructions with the aid of "regular
23019 The GCC instruction scheduler uses a "pipeline hazard recognizer" to
23020 figure out the possibility of the instruction issue by the processor on
23021 a given simulated processor cycle. The pipeline hazard recognizer is
23022 automatically generated from the processor pipeline description. The
23023 pipeline hazard recognizer generated from the machine description is
23024 based on a deterministic finite state automaton (DFA): the instruction
23025 issue is possible if there is a transition from one automaton state to
23026 another one. This algorithm is very fast, and furthermore, its speed
23027 is not dependent on processor complexity(1).
23029 The rest of this section describes the directives that constitute an
23030 automaton-based processor pipeline description. The order of these
23031 constructions within the machine description file is not important.
23033 The following optional construction describes names of automata
23034 generated and used for the pipeline hazards recognition. Sometimes the
23035 generated finite state automaton used by the pipeline hazard recognizer
23036 is large. If we use more than one automaton and bind functional units
23037 to the automata, the total size of the automata is usually less than
23038 the size of the single automaton. If there is no one such
23039 construction, only one finite state automaton is generated.
23041 (define_automaton AUTOMATA-NAMES)
23043 AUTOMATA-NAMES is a string giving names of the automata. The names
23044 are separated by commas. All the automata should have unique names.
23045 The automaton name is used in the constructions `define_cpu_unit' and
23046 `define_query_cpu_unit'.
23048 Each processor functional unit used in the description of instruction
23049 reservations should be described by the following construction.
23051 (define_cpu_unit UNIT-NAMES [AUTOMATON-NAME])
23053 UNIT-NAMES is a string giving the names of the functional units
23054 separated by commas. Don't use name `nothing', it is reserved for
23057 AUTOMATON-NAME is a string giving the name of the automaton with which
23058 the unit is bound. The automaton should be described in construction
23059 `define_automaton'. You should give "automaton-name", if there is a
23062 The assignment of units to automata are constrained by the uses of the
23063 units in insn reservations. The most important constraint is: if a
23064 unit reservation is present on a particular cycle of an alternative for
23065 an insn reservation, then some unit from the same automaton must be
23066 present on the same cycle for the other alternatives of the insn
23067 reservation. The rest of the constraints are mentioned in the
23068 description of the subsequent constructions.
23070 The following construction describes CPU functional units analogously
23071 to `define_cpu_unit'. The reservation of such units can be queried for
23072 an automaton state. The instruction scheduler never queries
23073 reservation of functional units for given automaton state. So as a
23074 rule, you don't need this construction. This construction could be
23075 used for future code generation goals (e.g. to generate VLIW insn
23078 (define_query_cpu_unit UNIT-NAMES [AUTOMATON-NAME])
23080 UNIT-NAMES is a string giving names of the functional units separated
23083 AUTOMATON-NAME is a string giving the name of the automaton with which
23086 The following construction is the major one to describe pipeline
23087 characteristics of an instruction.
23089 (define_insn_reservation INSN-NAME DEFAULT_LATENCY
23092 DEFAULT_LATENCY is a number giving latency time of the instruction.
23093 There is an important difference between the old description and the
23094 automaton based pipeline description. The latency time is used for all
23095 dependencies when we use the old description. In the automaton based
23096 pipeline description, the given latency time is only used for true
23097 dependencies. The cost of anti-dependencies is always zero and the
23098 cost of output dependencies is the difference between latency times of
23099 the producing and consuming insns (if the difference is negative, the
23100 cost is considered to be zero). You can always change the default
23101 costs for any description by using the target hook
23102 `TARGET_SCHED_ADJUST_COST' (*note Scheduling::).
23104 INSN-NAME is a string giving the internal name of the insn. The
23105 internal names are used in constructions `define_bypass' and in the
23106 automaton description file generated for debugging. The internal name
23107 has nothing in common with the names in `define_insn'. It is a good
23108 practice to use insn classes described in the processor manual.
23110 CONDITION defines what RTL insns are described by this construction.
23111 You should remember that you will be in trouble if CONDITION for two or
23112 more different `define_insn_reservation' constructions is TRUE for an
23113 insn. In this case what reservation will be used for the insn is not
23114 defined. Such cases are not checked during generation of the pipeline
23115 hazards recognizer because in general recognizing that two conditions
23116 may have the same value is quite difficult (especially if the conditions
23117 contain `symbol_ref'). It is also not checked during the pipeline
23118 hazard recognizer work because it would slow down the recognizer
23121 REGEXP is a string describing the reservation of the cpu's functional
23122 units by the instruction. The reservations are described by a regular
23123 expression according to the following syntax:
23125 regexp = regexp "," oneof
23128 oneof = oneof "|" allof
23131 allof = allof "+" repeat
23134 repeat = element "*" number
23137 element = cpu_function_unit_name
23143 * `,' is used for describing the start of the next cycle in the
23146 * `|' is used for describing a reservation described by the first
23147 regular expression *or* a reservation described by the second
23148 regular expression *or* etc.
23150 * `+' is used for describing a reservation described by the first
23151 regular expression *and* a reservation described by the second
23152 regular expression *and* etc.
23154 * `*' is used for convenience and simply means a sequence in which
23155 the regular expression are repeated NUMBER times with cycle
23156 advancing (see `,').
23158 * `cpu_function_unit_name' denotes reservation of the named
23161 * `reservation_name' -- see description of construction
23162 `define_reservation'.
23164 * `nothing' denotes no unit reservations.
23166 Sometimes unit reservations for different insns contain common parts.
23167 In such case, you can simplify the pipeline description by describing
23168 the common part by the following construction
23170 (define_reservation RESERVATION-NAME REGEXP)
23172 RESERVATION-NAME is a string giving name of REGEXP. Functional unit
23173 names and reservation names are in the same name space. So the
23174 reservation names should be different from the functional unit names
23175 and can not be the reserved name `nothing'.
23177 The following construction is used to describe exceptions in the
23178 latency time for given instruction pair. This is so called bypasses.
23180 (define_bypass NUMBER OUT_INSN_NAMES IN_INSN_NAMES
23183 NUMBER defines when the result generated by the instructions given in
23184 string OUT_INSN_NAMES will be ready for the instructions given in
23185 string IN_INSN_NAMES. The instructions in the string are separated by
23188 GUARD is an optional string giving the name of a C function which
23189 defines an additional guard for the bypass. The function will get the
23190 two insns as parameters. If the function returns zero the bypass will
23191 be ignored for this case. The additional guard is necessary to
23192 recognize complicated bypasses, e.g. when the consumer is only an
23193 address of insn `store' (not a stored value).
23195 The following five constructions are usually used to describe VLIW
23196 processors, or more precisely, to describe a placement of small
23197 instructions into VLIW instruction slots. They can be used for RISC
23200 (exclusion_set UNIT-NAMES UNIT-NAMES)
23201 (presence_set UNIT-NAMES PATTERNS)
23202 (final_presence_set UNIT-NAMES PATTERNS)
23203 (absence_set UNIT-NAMES PATTERNS)
23204 (final_absence_set UNIT-NAMES PATTERNS)
23206 UNIT-NAMES is a string giving names of functional units separated by
23209 PATTERNS is a string giving patterns of functional units separated by
23210 comma. Currently pattern is one unit or units separated by
23213 The first construction (`exclusion_set') means that each functional
23214 unit in the first string can not be reserved simultaneously with a unit
23215 whose name is in the second string and vice versa. For example, the
23216 construction is useful for describing processors (e.g. some SPARC
23217 processors) with a fully pipelined floating point functional unit which
23218 can execute simultaneously only single floating point insns or only
23219 double floating point insns.
23221 The second construction (`presence_set') means that each functional
23222 unit in the first string can not be reserved unless at least one of
23223 pattern of units whose names are in the second string is reserved.
23224 This is an asymmetric relation. For example, it is useful for
23225 description that VLIW `slot1' is reserved after `slot0' reservation.
23226 We could describe it by the following construction
23228 (presence_set "slot1" "slot0")
23230 Or `slot1' is reserved only after `slot0' and unit `b0' reservation.
23231 In this case we could write
23233 (presence_set "slot1" "slot0 b0")
23235 The third construction (`final_presence_set') is analogous to
23236 `presence_set'. The difference between them is when checking is done.
23237 When an instruction is issued in given automaton state reflecting all
23238 current and planned unit reservations, the automaton state is changed.
23239 The first state is a source state, the second one is a result state.
23240 Checking for `presence_set' is done on the source state reservation,
23241 checking for `final_presence_set' is done on the result reservation.
23242 This construction is useful to describe a reservation which is actually
23243 two subsequent reservations. For example, if we use
23245 (presence_set "slot1" "slot0")
23247 the following insn will be never issued (because `slot1' requires
23248 `slot0' which is absent in the source state).
23250 (define_reservation "insn_and_nop" "slot0 + slot1")
23252 but it can be issued if we use analogous `final_presence_set'.
23254 The forth construction (`absence_set') means that each functional unit
23255 in the first string can be reserved only if each pattern of units whose
23256 names are in the second string is not reserved. This is an asymmetric
23257 relation (actually `exclusion_set' is analogous to this one but it is
23258 symmetric). For example it might be useful in a VLIW description to
23259 say that `slot0' cannot be reserved after either `slot1' or `slot2'
23260 have been reserved. This can be described as:
23262 (absence_set "slot0" "slot1, slot2")
23264 Or `slot2' can not be reserved if `slot0' and unit `b0' are reserved
23265 or `slot1' and unit `b1' are reserved. In this case we could write
23267 (absence_set "slot2" "slot0 b0, slot1 b1")
23269 All functional units mentioned in a set should belong to the same
23272 The last construction (`final_absence_set') is analogous to
23273 `absence_set' but checking is done on the result (state) reservation.
23274 See comments for `final_presence_set'.
23276 You can control the generator of the pipeline hazard recognizer with
23277 the following construction.
23279 (automata_option OPTIONS)
23281 OPTIONS is a string giving options which affect the generated code.
23282 Currently there are the following options:
23284 * "no-minimization" makes no minimization of the automaton. This is
23285 only worth to do when we are debugging the description and need to
23286 look more accurately at reservations of states.
23288 * "time" means printing time statistics about the generation of
23291 * "stats" means printing statistics about the generated automata
23292 such as the number of DFA states, NDFA states and arcs.
23294 * "v" means a generation of the file describing the result automata.
23295 The file has suffix `.dfa' and can be used for the description
23296 verification and debugging.
23298 * "w" means a generation of warning instead of error for
23299 non-critical errors.
23301 * "ndfa" makes nondeterministic finite state automata. This affects
23302 the treatment of operator `|' in the regular expressions. The
23303 usual treatment of the operator is to try the first alternative
23304 and, if the reservation is not possible, the second alternative.
23305 The nondeterministic treatment means trying all alternatives, some
23306 of them may be rejected by reservations in the subsequent insns.
23308 * "progress" means output of a progress bar showing how many states
23309 were generated so far for automaton being processed. This is
23310 useful during debugging a DFA description. If you see too many
23311 generated states, you could interrupt the generator of the pipeline
23312 hazard recognizer and try to figure out a reason for generation of
23313 the huge automaton.
23315 As an example, consider a superscalar RISC machine which can issue
23316 three insns (two integer insns and one floating point insn) on the
23317 cycle but can finish only two insns. To describe this, we define the
23318 following functional units.
23320 (define_cpu_unit "i0_pipeline, i1_pipeline, f_pipeline")
23321 (define_cpu_unit "port0, port1")
23323 All simple integer insns can be executed in any integer pipeline and
23324 their result is ready in two cycles. The simple integer insns are
23325 issued into the first pipeline unless it is reserved, otherwise they
23326 are issued into the second pipeline. Integer division and
23327 multiplication insns can be executed only in the second integer
23328 pipeline and their results are ready correspondingly in 8 and 4 cycles.
23329 The integer division is not pipelined, i.e. the subsequent integer
23330 division insn can not be issued until the current division insn
23331 finished. Floating point insns are fully pipelined and their results
23332 are ready in 3 cycles. Where the result of a floating point insn is
23333 used by an integer insn, an additional delay of one cycle is incurred.
23334 To describe all of this we could specify
23336 (define_cpu_unit "div")
23338 (define_insn_reservation "simple" 2 (eq_attr "type" "int")
23339 "(i0_pipeline | i1_pipeline), (port0 | port1)")
23341 (define_insn_reservation "mult" 4 (eq_attr "type" "mult")
23342 "i1_pipeline, nothing*2, (port0 | port1)")
23344 (define_insn_reservation "div" 8 (eq_attr "type" "div")
23345 "i1_pipeline, div*7, div + (port0 | port1)")
23347 (define_insn_reservation "float" 3 (eq_attr "type" "float")
23348 "f_pipeline, nothing, (port0 | port1))
23350 (define_bypass 4 "float" "simple,mult,div")
23352 To simplify the description we could describe the following reservation
23354 (define_reservation "finish" "port0|port1")
23356 and use it in all `define_insn_reservation' as in the following
23359 (define_insn_reservation "simple" 2 (eq_attr "type" "int")
23360 "(i0_pipeline | i1_pipeline), finish")
23362 ---------- Footnotes ----------
23364 (1) However, the size of the automaton depends on processor
23365 complexity. To limit this effect, machine descriptions can split
23366 orthogonal parts of the machine description among several automata: but
23367 then, since each of these must be stepped independently, this does
23368 cause a small decrease in the algorithm's performance.
23371 File: gccint.info, Node: Conditional Execution, Next: Constant Definitions, Prev: Insn Attributes, Up: Machine Desc
23373 16.20 Conditional Execution
23374 ===========================
23376 A number of architectures provide for some form of conditional
23377 execution, or predication. The hallmark of this feature is the ability
23378 to nullify most of the instructions in the instruction set. When the
23379 instruction set is large and not entirely symmetric, it can be quite
23380 tedious to describe these forms directly in the `.md' file. An
23381 alternative is the `define_cond_exec' template.
23384 [PREDICATE-PATTERN]
23388 PREDICATE-PATTERN is the condition that must be true for the insn to
23389 be executed at runtime and should match a relational operator. One can
23390 use `match_operator' to match several relational operators at once.
23391 Any `match_operand' operands must have no more than one alternative.
23393 CONDITION is a C expression that must be true for the generated
23396 OUTPUT-TEMPLATE is a string similar to the `define_insn' output
23397 template (*note Output Template::), except that the `*' and `@' special
23398 cases do not apply. This is only useful if the assembly text for the
23399 predicate is a simple prefix to the main insn. In order to handle the
23400 general case, there is a global variable `current_insn_predicate' that
23401 will contain the entire predicate if the current insn is predicated,
23402 and will otherwise be `NULL'.
23404 When `define_cond_exec' is used, an implicit reference to the
23405 `predicable' instruction attribute is made. *Note Insn Attributes::.
23406 This attribute must be boolean (i.e. have exactly two elements in its
23407 LIST-OF-VALUES). Further, it must not be used with complex
23408 expressions. That is, the default and all uses in the insns must be a
23409 simple constant, not dependent on the alternative or anything else.
23411 For each `define_insn' for which the `predicable' attribute is true, a
23412 new `define_insn' pattern will be generated that matches a predicated
23413 version of the instruction. For example,
23415 (define_insn "addsi"
23416 [(set (match_operand:SI 0 "register_operand" "r")
23417 (plus:SI (match_operand:SI 1 "register_operand" "r")
23418 (match_operand:SI 2 "register_operand" "r")))]
23423 [(ne (match_operand:CC 0 "register_operand" "c")
23428 generates a new pattern
23432 (ne (match_operand:CC 3 "register_operand" "c") (const_int 0))
23433 (set (match_operand:SI 0 "register_operand" "r")
23434 (plus:SI (match_operand:SI 1 "register_operand" "r")
23435 (match_operand:SI 2 "register_operand" "r"))))]
23436 "(TEST2) && (TEST1)"
23437 "(%3) add %2,%1,%0")
23440 File: gccint.info, Node: Constant Definitions, Next: Iterators, Prev: Conditional Execution, Up: Machine Desc
23442 16.21 Constant Definitions
23443 ==========================
23445 Using literal constants inside instruction patterns reduces legibility
23446 and can be a maintenance problem.
23448 To overcome this problem, you may use the `define_constants'
23449 expression. It contains a vector of name-value pairs. From that point
23450 on, wherever any of the names appears in the MD file, it is as if the
23451 corresponding value had been written instead. You may use
23452 `define_constants' multiple times; each appearance adds more constants
23453 to the table. It is an error to redefine a constant with a different
23456 To come back to the a29k load multiple example, instead of
23459 [(match_parallel 0 "load_multiple_operation"
23460 [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
23461 (match_operand:SI 2 "memory_operand" "m"))
23463 (clobber (reg:SI 179))])]
23469 (define_constants [
23477 [(match_parallel 0 "load_multiple_operation"
23478 [(set (match_operand:SI 1 "gpc_reg_operand" "=r")
23479 (match_operand:SI 2 "memory_operand" "m"))
23480 (use (reg:SI R_CR))
23481 (clobber (reg:SI R_CR))])]
23485 The constants that are defined with a define_constant are also output
23486 in the insn-codes.h header file as #defines.
23489 File: gccint.info, Node: Iterators, Prev: Constant Definitions, Up: Machine Desc
23494 Ports often need to define similar patterns for more than one machine
23495 mode or for more than one rtx code. GCC provides some simple iterator
23496 facilities to make this process easier.
23500 * Mode Iterators:: Generating variations of patterns for different modes.
23501 * Code Iterators:: Doing the same for codes.
23504 File: gccint.info, Node: Mode Iterators, Next: Code Iterators, Up: Iterators
23506 16.22.1 Mode Iterators
23507 ----------------------
23509 Ports often need to define similar patterns for two or more different
23510 modes. For example:
23512 * If a processor has hardware support for both single and double
23513 floating-point arithmetic, the `SFmode' patterns tend to be very
23514 similar to the `DFmode' ones.
23516 * If a port uses `SImode' pointers in one configuration and `DImode'
23517 pointers in another, it will usually have very similar `SImode'
23518 and `DImode' patterns for manipulating pointers.
23520 Mode iterators allow several patterns to be instantiated from one
23521 `.md' file template. They can be used with any type of rtx-based
23522 construct, such as a `define_insn', `define_split', or
23523 `define_peephole2'.
23527 * Defining Mode Iterators:: Defining a new mode iterator.
23528 * Substitutions:: Combining mode iterators with substitutions
23529 * Examples:: Examples
23532 File: gccint.info, Node: Defining Mode Iterators, Next: Substitutions, Up: Mode Iterators
23534 16.22.1.1 Defining Mode Iterators
23535 .................................
23537 The syntax for defining a mode iterator is:
23539 (define_mode_iterator NAME [(MODE1 "COND1") ... (MODEN "CONDN")])
23541 This allows subsequent `.md' file constructs to use the mode suffix
23542 `:NAME'. Every construct that does so will be expanded N times, once
23543 with every use of `:NAME' replaced by `:MODE1', once with every use
23544 replaced by `:MODE2', and so on. In the expansion for a particular
23545 MODEI, every C condition will also require that CONDI be true.
23549 (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
23551 defines a new mode suffix `:P'. Every construct that uses `:P' will
23552 be expanded twice, once with every `:P' replaced by `:SI' and once with
23553 every `:P' replaced by `:DI'. The `:SI' version will only apply if
23554 `Pmode == SImode' and the `:DI' version will only apply if `Pmode ==
23557 As with other `.md' conditions, an empty string is treated as "always
23558 true". `(MODE "")' can also be abbreviated to `MODE'. For example:
23560 (define_mode_iterator GPR [SI (DI "TARGET_64BIT")])
23562 means that the `:DI' expansion only applies if `TARGET_64BIT' but that
23563 the `:SI' expansion has no such constraint.
23565 Iterators are applied in the order they are defined. This can be
23566 significant if two iterators are used in a construct that requires
23567 substitutions. *Note Substitutions::.
23570 File: gccint.info, Node: Substitutions, Next: Examples, Prev: Defining Mode Iterators, Up: Mode Iterators
23572 16.22.1.2 Substitution in Mode Iterators
23573 ........................................
23575 If an `.md' file construct uses mode iterators, each version of the
23576 construct will often need slightly different strings or modes. For
23579 * When a `define_expand' defines several `addM3' patterns (*note
23580 Standard Names::), each expander will need to use the appropriate
23583 * When a `define_insn' defines several instruction patterns, each
23584 instruction will often use a different assembler mnemonic.
23586 * When a `define_insn' requires operands with different modes, using
23587 an iterator for one of the operand modes usually requires a
23588 specific mode for the other operand(s).
23590 GCC supports such variations through a system of "mode attributes".
23591 There are two standard attributes: `mode', which is the name of the
23592 mode in lower case, and `MODE', which is the same thing in upper case.
23593 You can define other attributes using:
23595 (define_mode_attr NAME [(MODE1 "VALUE1") ... (MODEN "VALUEN")])
23597 where NAME is the name of the attribute and VALUEI is the value
23598 associated with MODEI.
23600 When GCC replaces some :ITERATOR with :MODE, it will scan each string
23601 and mode in the pattern for sequences of the form `<ITERATOR:ATTR>',
23602 where ATTR is the name of a mode attribute. If the attribute is
23603 defined for MODE, the whole `<...>' sequence will be replaced by the
23604 appropriate attribute value.
23606 For example, suppose an `.md' file has:
23608 (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
23609 (define_mode_attr load [(SI "lw") (DI "ld")])
23611 If one of the patterns that uses `:P' contains the string
23612 `"<P:load>\t%0,%1"', the `SI' version of that pattern will use
23613 `"lw\t%0,%1"' and the `DI' version will use `"ld\t%0,%1"'.
23615 Here is an example of using an attribute for a mode:
23617 (define_mode_iterator LONG [SI DI])
23618 (define_mode_attr SHORT [(SI "HI") (DI "SI")])
23620 (sign_extend:LONG (match_operand:<LONG:SHORT> ...)) ...)
23622 The `ITERATOR:' prefix may be omitted, in which case the substitution
23623 will be attempted for every iterator expansion.
23626 File: gccint.info, Node: Examples, Prev: Substitutions, Up: Mode Iterators
23628 16.22.1.3 Mode Iterator Examples
23629 ................................
23631 Here is an example from the MIPS port. It defines the following modes
23632 and attributes (among others):
23634 (define_mode_iterator GPR [SI (DI "TARGET_64BIT")])
23635 (define_mode_attr d [(SI "") (DI "d")])
23637 and uses the following template to define both `subsi3' and `subdi3':
23639 (define_insn "sub<mode>3"
23640 [(set (match_operand:GPR 0 "register_operand" "=d")
23641 (minus:GPR (match_operand:GPR 1 "register_operand" "d")
23642 (match_operand:GPR 2 "register_operand" "d")))]
23644 "<d>subu\t%0,%1,%2"
23645 [(set_attr "type" "arith")
23646 (set_attr "mode" "<MODE>")])
23648 This is exactly equivalent to:
23650 (define_insn "subsi3"
23651 [(set (match_operand:SI 0 "register_operand" "=d")
23652 (minus:SI (match_operand:SI 1 "register_operand" "d")
23653 (match_operand:SI 2 "register_operand" "d")))]
23656 [(set_attr "type" "arith")
23657 (set_attr "mode" "SI")])
23659 (define_insn "subdi3"
23660 [(set (match_operand:DI 0 "register_operand" "=d")
23661 (minus:DI (match_operand:DI 1 "register_operand" "d")
23662 (match_operand:DI 2 "register_operand" "d")))]
23665 [(set_attr "type" "arith")
23666 (set_attr "mode" "DI")])
23669 File: gccint.info, Node: Code Iterators, Prev: Mode Iterators, Up: Iterators
23671 16.22.2 Code Iterators
23672 ----------------------
23674 Code iterators operate in a similar way to mode iterators. *Note Mode
23679 (define_code_iterator NAME [(CODE1 "COND1") ... (CODEN "CONDN")])
23681 defines a pseudo rtx code NAME that can be instantiated as CODEI if
23682 condition CONDI is true. Each CODEI must have the same rtx format.
23683 *Note RTL Classes::.
23685 As with mode iterators, each pattern that uses NAME will be expanded N
23686 times, once with all uses of NAME replaced by CODE1, once with all uses
23687 replaced by CODE2, and so on. *Note Defining Mode Iterators::.
23689 It is possible to define attributes for codes as well as for modes.
23690 There are two standard code attributes: `code', the name of the code in
23691 lower case, and `CODE', the name of the code in upper case. Other
23692 attributes are defined using:
23694 (define_code_attr NAME [(CODE1 "VALUE1") ... (CODEN "VALUEN")])
23696 Here's an example of code iterators in action, taken from the MIPS
23699 (define_code_iterator any_cond [unordered ordered unlt unge uneq ltgt unle ungt
23700 eq ne gt ge lt le gtu geu ltu leu])
23702 (define_expand "b<code>"
23704 (if_then_else (any_cond:CC (cc0)
23706 (label_ref (match_operand 0 ""))
23710 gen_conditional_branch (operands, <CODE>);
23714 This is equivalent to:
23716 (define_expand "bunordered"
23718 (if_then_else (unordered:CC (cc0)
23720 (label_ref (match_operand 0 ""))
23724 gen_conditional_branch (operands, UNORDERED);
23728 (define_expand "bordered"
23730 (if_then_else (ordered:CC (cc0)
23732 (label_ref (match_operand 0 ""))
23736 gen_conditional_branch (operands, ORDERED);
23743 File: gccint.info, Node: Target Macros, Next: Host Config, Prev: Machine Desc, Up: Top
23745 17 Target Description Macros and Functions
23746 ******************************************
23748 In addition to the file `MACHINE.md', a machine description includes a
23749 C header file conventionally given the name `MACHINE.h' and a C source
23750 file named `MACHINE.c'. The header file defines numerous macros that
23751 convey the information about the target machine that does not fit into
23752 the scheme of the `.md' file. The file `tm.h' should be a link to
23753 `MACHINE.h'. The header file `config.h' includes `tm.h' and most
23754 compiler source files include `config.h'. The source file defines a
23755 variable `targetm', which is a structure containing pointers to
23756 functions and data relating to the target machine. `MACHINE.c' should
23757 also contain their definitions, if they are not defined elsewhere in
23758 GCC, and other functions called through the macros defined in the `.h'
23763 * Target Structure:: The `targetm' variable.
23764 * Driver:: Controlling how the driver runs the compilation passes.
23765 * Run-time Target:: Defining `-m' options like `-m68000' and `-m68020'.
23766 * Per-Function Data:: Defining data structures for per-function information.
23767 * Storage Layout:: Defining sizes and alignments of data.
23768 * Type Layout:: Defining sizes and properties of basic user data types.
23769 * Registers:: Naming and describing the hardware registers.
23770 * Register Classes:: Defining the classes of hardware registers.
23771 * Old Constraints:: The old way to define machine-specific constraints.
23772 * Stack and Calling:: Defining which way the stack grows and by how much.
23773 * Varargs:: Defining the varargs macros.
23774 * Trampolines:: Code set up at run time to enter a nested function.
23775 * Library Calls:: Controlling how library routines are implicitly called.
23776 * Addressing Modes:: Defining addressing modes valid for memory operands.
23777 * Anchored Addresses:: Defining how `-fsection-anchors' should work.
23778 * Condition Code:: Defining how insns update the condition code.
23779 * Costs:: Defining relative costs of different operations.
23780 * Scheduling:: Adjusting the behavior of the instruction scheduler.
23781 * Sections:: Dividing storage into text, data, and other sections.
23782 * PIC:: Macros for position independent code.
23783 * Assembler Format:: Defining how to write insns and pseudo-ops to output.
23784 * Debugging Info:: Defining the format of debugging output.
23785 * Floating Point:: Handling floating point for cross-compilers.
23786 * Mode Switching:: Insertion of mode-switching instructions.
23787 * Target Attributes:: Defining target-specific uses of `__attribute__'.
23788 * Emulated TLS:: Emulated TLS support.
23789 * MIPS Coprocessors:: MIPS coprocessor support and how to customize it.
23790 * PCH Target:: Validity checking for precompiled headers.
23791 * C++ ABI:: Controlling C++ ABI changes.
23792 * Misc:: Everything else.
23795 File: gccint.info, Node: Target Structure, Next: Driver, Up: Target Macros
23797 17.1 The Global `targetm' Variable
23798 ==================================
23800 -- Variable: struct gcc_target targetm
23801 The target `.c' file must define the global `targetm' variable
23802 which contains pointers to functions and data relating to the
23803 target machine. The variable is declared in `target.h';
23804 `target-def.h' defines the macro `TARGET_INITIALIZER' which is
23805 used to initialize the variable, and macros for the default
23806 initializers for elements of the structure. The `.c' file should
23807 override those macros for which the default definition is
23808 inappropriate. For example:
23809 #include "target.h"
23810 #include "target-def.h"
23812 /* Initialize the GCC target structure. */
23814 #undef TARGET_COMP_TYPE_ATTRIBUTES
23815 #define TARGET_COMP_TYPE_ATTRIBUTES MACHINE_comp_type_attributes
23817 struct gcc_target targetm = TARGET_INITIALIZER;
23819 Where a macro should be defined in the `.c' file in this manner to form
23820 part of the `targetm' structure, it is documented below as a "Target
23821 Hook" with a prototype. Many macros will change in future from being
23822 defined in the `.h' file to being part of the `targetm' structure.
23825 File: gccint.info, Node: Driver, Next: Run-time Target, Prev: Target Structure, Up: Target Macros
23827 17.2 Controlling the Compilation Driver, `gcc'
23828 ==============================================
23830 You can control the compilation driver.
23832 -- Macro: SWITCH_TAKES_ARG (CHAR)
23833 A C expression which determines whether the option `-CHAR' takes
23834 arguments. The value should be the number of arguments that
23835 option takes-zero, for many options.
23837 By default, this macro is defined as `DEFAULT_SWITCH_TAKES_ARG',
23838 which handles the standard options properly. You need not define
23839 `SWITCH_TAKES_ARG' unless you wish to add additional options which
23840 take arguments. Any redefinition should call
23841 `DEFAULT_SWITCH_TAKES_ARG' and then check for additional options.
23843 -- Macro: WORD_SWITCH_TAKES_ARG (NAME)
23844 A C expression which determines whether the option `-NAME' takes
23845 arguments. The value should be the number of arguments that
23846 option takes-zero, for many options. This macro rather than
23847 `SWITCH_TAKES_ARG' is used for multi-character option names.
23849 By default, this macro is defined as
23850 `DEFAULT_WORD_SWITCH_TAKES_ARG', which handles the standard options
23851 properly. You need not define `WORD_SWITCH_TAKES_ARG' unless you
23852 wish to add additional options which take arguments. Any
23853 redefinition should call `DEFAULT_WORD_SWITCH_TAKES_ARG' and then
23854 check for additional options.
23856 -- Macro: SWITCH_CURTAILS_COMPILATION (CHAR)
23857 A C expression which determines whether the option `-CHAR' stops
23858 compilation before the generation of an executable. The value is
23859 boolean, nonzero if the option does stop an executable from being
23860 generated, zero otherwise.
23862 By default, this macro is defined as
23863 `DEFAULT_SWITCH_CURTAILS_COMPILATION', which handles the standard
23864 options properly. You need not define
23865 `SWITCH_CURTAILS_COMPILATION' unless you wish to add additional
23866 options which affect the generation of an executable. Any
23867 redefinition should call `DEFAULT_SWITCH_CURTAILS_COMPILATION' and
23868 then check for additional options.
23870 -- Macro: SWITCHES_NEED_SPACES
23871 A string-valued C expression which enumerates the options for which
23872 the linker needs a space between the option and its argument.
23874 If this macro is not defined, the default value is `""'.
23876 -- Macro: TARGET_OPTION_TRANSLATE_TABLE
23877 If defined, a list of pairs of strings, the first of which is a
23878 potential command line target to the `gcc' driver program, and the
23879 second of which is a space-separated (tabs and other whitespace
23880 are not supported) list of options with which to replace the first
23881 option. The target defining this list is responsible for assuring
23882 that the results are valid. Replacement options may not be the
23883 `--opt' style, they must be the `-opt' style. It is the intention
23884 of this macro to provide a mechanism for substitution that affects
23885 the multilibs chosen, such as one option that enables many
23886 options, some of which select multilibs. Example nonsensical
23887 definition, where `-malt-abi', `-EB', and `-mspoo' cause different
23888 multilibs to be chosen:
23890 #define TARGET_OPTION_TRANSLATE_TABLE \
23891 { "-fast", "-march=fast-foo -malt-abi -I/usr/fast-foo" }, \
23892 { "-compat", "-EB -malign=4 -mspoo" }
23894 -- Macro: DRIVER_SELF_SPECS
23895 A list of specs for the driver itself. It should be a suitable
23896 initializer for an array of strings, with no surrounding braces.
23898 The driver applies these specs to its own command line between
23899 loading default `specs' files (but not command-line specified
23900 ones) and choosing the multilib directory or running any
23901 subcommands. It applies them in the order given, so each spec can
23902 depend on the options added by earlier ones. It is also possible
23903 to remove options using `%<OPTION' in the usual way.
23905 This macro can be useful when a port has several interdependent
23906 target options. It provides a way of standardizing the command
23907 line so that the other specs are easier to write.
23909 Do not define this macro if it does not need to do anything.
23911 -- Macro: OPTION_DEFAULT_SPECS
23912 A list of specs used to support configure-time default options
23913 (i.e. `--with' options) in the driver. It should be a suitable
23914 initializer for an array of structures, each containing two
23915 strings, without the outermost pair of surrounding braces.
23917 The first item in the pair is the name of the default. This must
23918 match the code in `config.gcc' for the target. The second item is
23919 a spec to apply if a default with this name was specified. The
23920 string `%(VALUE)' in the spec will be replaced by the value of the
23921 default everywhere it occurs.
23923 The driver will apply these specs to its own command line between
23924 loading default `specs' files and processing `DRIVER_SELF_SPECS',
23925 using the same mechanism as `DRIVER_SELF_SPECS'.
23927 Do not define this macro if it does not need to do anything.
23930 A C string constant that tells the GCC driver program options to
23931 pass to CPP. It can also specify how to translate options you
23932 give to GCC into options for GCC to pass to the CPP.
23934 Do not define this macro if it does not need to do anything.
23936 -- Macro: CPLUSPLUS_CPP_SPEC
23937 This macro is just like `CPP_SPEC', but is used for C++, rather
23938 than C. If you do not define this macro, then the value of
23939 `CPP_SPEC' (if any) will be used instead.
23942 A C string constant that tells the GCC driver program options to
23943 pass to `cc1', `cc1plus', `f771', and the other language front
23944 ends. It can also specify how to translate options you give to
23945 GCC into options for GCC to pass to front ends.
23947 Do not define this macro if it does not need to do anything.
23949 -- Macro: CC1PLUS_SPEC
23950 A C string constant that tells the GCC driver program options to
23951 pass to `cc1plus'. It can also specify how to translate options
23952 you give to GCC into options for GCC to pass to the `cc1plus'.
23954 Do not define this macro if it does not need to do anything. Note
23955 that everything defined in CC1_SPEC is already passed to `cc1plus'
23956 so there is no need to duplicate the contents of CC1_SPEC in
23960 A C string constant that tells the GCC driver program options to
23961 pass to the assembler. It can also specify how to translate
23962 options you give to GCC into options for GCC to pass to the
23963 assembler. See the file `sun3.h' for an example of this.
23965 Do not define this macro if it does not need to do anything.
23967 -- Macro: ASM_FINAL_SPEC
23968 A C string constant that tells the GCC driver program how to run
23969 any programs which cleanup after the normal assembler. Normally,
23970 this is not needed. See the file `mips.h' for an example of this.
23972 Do not define this macro if it does not need to do anything.
23974 -- Macro: AS_NEEDS_DASH_FOR_PIPED_INPUT
23975 Define this macro, with no value, if the driver should give the
23976 assembler an argument consisting of a single dash, `-', to
23977 instruct it to read from its standard input (which will be a pipe
23978 connected to the output of the compiler proper). This argument is
23979 given after any `-o' option specifying the name of the output file.
23981 If you do not define this macro, the assembler is assumed to read
23982 its standard input if given no non-option arguments. If your
23983 assembler cannot read standard input at all, use a `%{pipe:%e}'
23984 construct; see `mips.h' for instance.
23986 -- Macro: LINK_SPEC
23987 A C string constant that tells the GCC driver program options to
23988 pass to the linker. It can also specify how to translate options
23989 you give to GCC into options for GCC to pass to the linker.
23991 Do not define this macro if it does not need to do anything.
23994 Another C string constant used much like `LINK_SPEC'. The
23995 difference between the two is that `LIB_SPEC' is used at the end
23996 of the command given to the linker.
23998 If this macro is not defined, a default is provided that loads the
23999 standard C library from the usual place. See `gcc.c'.
24001 -- Macro: LIBGCC_SPEC
24002 Another C string constant that tells the GCC driver program how
24003 and when to place a reference to `libgcc.a' into the linker
24004 command line. This constant is placed both before and after the
24005 value of `LIB_SPEC'.
24007 If this macro is not defined, the GCC driver provides a default
24008 that passes the string `-lgcc' to the linker.
24010 -- Macro: REAL_LIBGCC_SPEC
24011 By default, if `ENABLE_SHARED_LIBGCC' is defined, the
24012 `LIBGCC_SPEC' is not directly used by the driver program but is
24013 instead modified to refer to different versions of `libgcc.a'
24014 depending on the values of the command line flags `-static',
24015 `-shared', `-static-libgcc', and `-shared-libgcc'. On targets
24016 where these modifications are inappropriate, define
24017 `REAL_LIBGCC_SPEC' instead. `REAL_LIBGCC_SPEC' tells the driver
24018 how to place a reference to `libgcc' on the link command line,
24019 but, unlike `LIBGCC_SPEC', it is used unmodified.
24021 -- Macro: USE_LD_AS_NEEDED
24022 A macro that controls the modifications to `LIBGCC_SPEC' mentioned
24023 in `REAL_LIBGCC_SPEC'. If nonzero, a spec will be generated that
24024 uses -as-needed and the shared libgcc in place of the static
24025 exception handler library, when linking without any of `-static',
24026 `-static-libgcc', or `-shared-libgcc'.
24028 -- Macro: LINK_EH_SPEC
24029 If defined, this C string constant is added to `LINK_SPEC'. When
24030 `USE_LD_AS_NEEDED' is zero or undefined, it also affects the
24031 modifications to `LIBGCC_SPEC' mentioned in `REAL_LIBGCC_SPEC'.
24033 -- Macro: STARTFILE_SPEC
24034 Another C string constant used much like `LINK_SPEC'. The
24035 difference between the two is that `STARTFILE_SPEC' is used at the
24036 very beginning of the command given to the linker.
24038 If this macro is not defined, a default is provided that loads the
24039 standard C startup file from the usual place. See `gcc.c'.
24041 -- Macro: ENDFILE_SPEC
24042 Another C string constant used much like `LINK_SPEC'. The
24043 difference between the two is that `ENDFILE_SPEC' is used at the
24044 very end of the command given to the linker.
24046 Do not define this macro if it does not need to do anything.
24048 -- Macro: THREAD_MODEL_SPEC
24049 GCC `-v' will print the thread model GCC was configured to use.
24050 However, this doesn't work on platforms that are multilibbed on
24051 thread models, such as AIX 4.3. On such platforms, define
24052 `THREAD_MODEL_SPEC' such that it evaluates to a string without
24053 blanks that names one of the recognized thread models. `%*', the
24054 default value of this macro, will expand to the value of
24055 `thread_file' set in `config.gcc'.
24057 -- Macro: SYSROOT_SUFFIX_SPEC
24058 Define this macro to add a suffix to the target sysroot when GCC is
24059 configured with a sysroot. This will cause GCC to search for
24060 usr/lib, et al, within sysroot+suffix.
24062 -- Macro: SYSROOT_HEADERS_SUFFIX_SPEC
24063 Define this macro to add a headers_suffix to the target sysroot
24064 when GCC is configured with a sysroot. This will cause GCC to
24065 pass the updated sysroot+headers_suffix to CPP, causing it to
24066 search for usr/include, et al, within sysroot+headers_suffix.
24068 -- Macro: EXTRA_SPECS
24069 Define this macro to provide additional specifications to put in
24070 the `specs' file that can be used in various specifications like
24073 The definition should be an initializer for an array of structures,
24074 containing a string constant, that defines the specification name,
24075 and a string constant that provides the specification.
24077 Do not define this macro if it does not need to do anything.
24079 `EXTRA_SPECS' is useful when an architecture contains several
24080 related targets, which have various `..._SPECS' which are similar
24081 to each other, and the maintainer would like one central place to
24082 keep these definitions.
24084 For example, the PowerPC System V.4 targets use `EXTRA_SPECS' to
24085 define either `_CALL_SYSV' when the System V calling sequence is
24086 used or `_CALL_AIX' when the older AIX-based calling sequence is
24089 The `config/rs6000/rs6000.h' target file defines:
24091 #define EXTRA_SPECS \
24092 { "cpp_sysv_default", CPP_SYSV_DEFAULT },
24094 #define CPP_SYS_DEFAULT ""
24096 The `config/rs6000/sysv.h' target file defines:
24099 "%{posix: -D_POSIX_SOURCE } \
24100 %{mcall-sysv: -D_CALL_SYSV } \
24101 %{!mcall-sysv: %(cpp_sysv_default) } \
24102 %{msoft-float: -D_SOFT_FLOAT} %{mcpu=403: -D_SOFT_FLOAT}"
24104 #undef CPP_SYSV_DEFAULT
24105 #define CPP_SYSV_DEFAULT "-D_CALL_SYSV"
24107 while the `config/rs6000/eabiaix.h' target file defines
24108 `CPP_SYSV_DEFAULT' as:
24110 #undef CPP_SYSV_DEFAULT
24111 #define CPP_SYSV_DEFAULT "-D_CALL_AIX"
24113 -- Macro: LINK_LIBGCC_SPECIAL_1
24114 Define this macro if the driver program should find the library
24115 `libgcc.a'. If you do not define this macro, the driver program
24116 will pass the argument `-lgcc' to tell the linker to do the search.
24118 -- Macro: LINK_GCC_C_SEQUENCE_SPEC
24119 The sequence in which libgcc and libc are specified to the linker.
24120 By default this is `%G %L %G'.
24122 -- Macro: LINK_COMMAND_SPEC
24123 A C string constant giving the complete command line need to
24124 execute the linker. When you do this, you will need to update
24125 your port each time a change is made to the link command line
24126 within `gcc.c'. Therefore, define this macro only if you need to
24127 completely redefine the command line for invoking the linker and
24128 there is no other way to accomplish the effect you need.
24129 Overriding this macro may be avoidable by overriding
24130 `LINK_GCC_C_SEQUENCE_SPEC' instead.
24132 -- Macro: LINK_ELIMINATE_DUPLICATE_LDIRECTORIES
24133 A nonzero value causes `collect2' to remove duplicate
24134 `-LDIRECTORY' search directories from linking commands. Do not
24135 give it a nonzero value if removing duplicate search directories
24136 changes the linker's semantics.
24138 -- Macro: MULTILIB_DEFAULTS
24139 Define this macro as a C expression for the initializer of an
24140 array of string to tell the driver program which options are
24141 defaults for this target and thus do not need to be handled
24142 specially when using `MULTILIB_OPTIONS'.
24144 Do not define this macro if `MULTILIB_OPTIONS' is not defined in
24145 the target makefile fragment or if none of the options listed in
24146 `MULTILIB_OPTIONS' are set by default. *Note Target Fragment::.
24148 -- Macro: RELATIVE_PREFIX_NOT_LINKDIR
24149 Define this macro to tell `gcc' that it should only translate a
24150 `-B' prefix into a `-L' linker option if the prefix indicates an
24151 absolute file name.
24153 -- Macro: MD_EXEC_PREFIX
24154 If defined, this macro is an additional prefix to try after
24155 `STANDARD_EXEC_PREFIX'. `MD_EXEC_PREFIX' is not searched when the
24156 `-b' option is used, or the compiler is built as a cross compiler.
24157 If you define `MD_EXEC_PREFIX', then be sure to add it to the
24158 list of directories used to find the assembler in `configure.in'.
24160 -- Macro: STANDARD_STARTFILE_PREFIX
24161 Define this macro as a C string constant if you wish to override
24162 the standard choice of `libdir' as the default prefix to try when
24163 searching for startup files such as `crt0.o'.
24164 `STANDARD_STARTFILE_PREFIX' is not searched when the compiler is
24165 built as a cross compiler.
24167 -- Macro: STANDARD_STARTFILE_PREFIX_1
24168 Define this macro as a C string constant if you wish to override
24169 the standard choice of `/lib' as a prefix to try after the default
24170 prefix when searching for startup files such as `crt0.o'.
24171 `STANDARD_STARTFILE_PREFIX_1' is not searched when the compiler is
24172 built as a cross compiler.
24174 -- Macro: STANDARD_STARTFILE_PREFIX_2
24175 Define this macro as a C string constant if you wish to override
24176 the standard choice of `/lib' as yet another prefix to try after
24177 the default prefix when searching for startup files such as
24178 `crt0.o'. `STANDARD_STARTFILE_PREFIX_2' is not searched when the
24179 compiler is built as a cross compiler.
24181 -- Macro: MD_STARTFILE_PREFIX
24182 If defined, this macro supplies an additional prefix to try after
24183 the standard prefixes. `MD_EXEC_PREFIX' is not searched when the
24184 `-b' option is used, or when the compiler is built as a cross
24187 -- Macro: MD_STARTFILE_PREFIX_1
24188 If defined, this macro supplies yet another prefix to try after the
24189 standard prefixes. It is not searched when the `-b' option is
24190 used, or when the compiler is built as a cross compiler.
24192 -- Macro: INIT_ENVIRONMENT
24193 Define this macro as a C string constant if you wish to set
24194 environment variables for programs called by the driver, such as
24195 the assembler and loader. The driver passes the value of this
24196 macro to `putenv' to initialize the necessary environment
24199 -- Macro: LOCAL_INCLUDE_DIR
24200 Define this macro as a C string constant if you wish to override
24201 the standard choice of `/usr/local/include' as the default prefix
24202 to try when searching for local header files. `LOCAL_INCLUDE_DIR'
24203 comes before `SYSTEM_INCLUDE_DIR' in the search order.
24205 Cross compilers do not search either `/usr/local/include' or its
24208 -- Macro: MODIFY_TARGET_NAME
24209 Define this macro if you wish to define command-line switches that
24210 modify the default target name.
24212 For each switch, you can include a string to be appended to the
24213 first part of the configuration name or a string to be deleted
24214 from the configuration name, if present. The definition should be
24215 an initializer for an array of structures. Each array element
24216 should have three elements: the switch name (a string constant,
24217 including the initial dash), one of the enumeration codes `ADD' or
24218 `DELETE' to indicate whether the string should be inserted or
24219 deleted, and the string to be inserted or deleted (a string
24222 For example, on a machine where `64' at the end of the
24223 configuration name denotes a 64-bit target and you want the `-32'
24224 and `-64' switches to select between 32- and 64-bit targets, you
24227 #define MODIFY_TARGET_NAME \
24228 { { "-32", DELETE, "64"}, \
24229 {"-64", ADD, "64"}}
24231 -- Macro: SYSTEM_INCLUDE_DIR
24232 Define this macro as a C string constant if you wish to specify a
24233 system-specific directory to search for header files before the
24234 standard directory. `SYSTEM_INCLUDE_DIR' comes before
24235 `STANDARD_INCLUDE_DIR' in the search order.
24237 Cross compilers do not use this macro and do not search the
24238 directory specified.
24240 -- Macro: STANDARD_INCLUDE_DIR
24241 Define this macro as a C string constant if you wish to override
24242 the standard choice of `/usr/include' as the default prefix to try
24243 when searching for header files.
24245 Cross compilers ignore this macro and do not search either
24246 `/usr/include' or its replacement.
24248 -- Macro: STANDARD_INCLUDE_COMPONENT
24249 The "component" corresponding to `STANDARD_INCLUDE_DIR'. See
24250 `INCLUDE_DEFAULTS', below, for the description of components. If
24251 you do not define this macro, no component is used.
24253 -- Macro: INCLUDE_DEFAULTS
24254 Define this macro if you wish to override the entire default
24255 search path for include files. For a native compiler, the default
24256 search path usually consists of `GCC_INCLUDE_DIR',
24257 `LOCAL_INCLUDE_DIR', `SYSTEM_INCLUDE_DIR',
24258 `GPLUSPLUS_INCLUDE_DIR', and `STANDARD_INCLUDE_DIR'. In addition,
24259 `GPLUSPLUS_INCLUDE_DIR' and `GCC_INCLUDE_DIR' are defined
24260 automatically by `Makefile', and specify private search areas for
24261 GCC. The directory `GPLUSPLUS_INCLUDE_DIR' is used only for C++
24264 The definition should be an initializer for an array of structures.
24265 Each array element should have four elements: the directory name (a
24266 string constant), the component name (also a string constant), a
24267 flag for C++-only directories, and a flag showing that the
24268 includes in the directory don't need to be wrapped in `extern `C''
24269 when compiling C++. Mark the end of the array with a null element.
24271 The component name denotes what GNU package the include file is
24272 part of, if any, in all uppercase letters. For example, it might
24273 be `GCC' or `BINUTILS'. If the package is part of a
24274 vendor-supplied operating system, code the component name as `0'.
24276 For example, here is the definition used for VAX/VMS:
24278 #define INCLUDE_DEFAULTS \
24280 { "GNU_GXX_INCLUDE:", "G++", 1, 1}, \
24281 { "GNU_CC_INCLUDE:", "GCC", 0, 0}, \
24282 { "SYS$SYSROOT:[SYSLIB.]", 0, 0, 0}, \
24287 Here is the order of prefixes tried for exec files:
24289 1. Any prefixes specified by the user with `-B'.
24291 2. The environment variable `GCC_EXEC_PREFIX' or, if `GCC_EXEC_PREFIX'
24292 is not set and the compiler has not been installed in the
24293 configure-time PREFIX, the location in which the compiler has
24294 actually been installed.
24296 3. The directories specified by the environment variable
24299 4. The macro `STANDARD_EXEC_PREFIX', if the compiler has been
24300 installed in the configured-time PREFIX.
24302 5. The location `/usr/libexec/gcc/', but only if this is a native
24305 6. The location `/usr/lib/gcc/', but only if this is a native
24308 7. The macro `MD_EXEC_PREFIX', if defined, but only if this is a
24311 Here is the order of prefixes tried for startfiles:
24313 1. Any prefixes specified by the user with `-B'.
24315 2. The environment variable `GCC_EXEC_PREFIX' or its automatically
24316 determined value based on the installed toolchain location.
24318 3. The directories specified by the environment variable
24319 `LIBRARY_PATH' (or port-specific name; native only, cross
24320 compilers do not use this).
24322 4. The macro `STANDARD_EXEC_PREFIX', but only if the toolchain is
24323 installed in the configured PREFIX or this is a native compiler.
24325 5. The location `/usr/lib/gcc/', but only if this is a native
24328 6. The macro `MD_EXEC_PREFIX', if defined, but only if this is a
24331 7. The macro `MD_STARTFILE_PREFIX', if defined, but only if this is a
24332 native compiler, or we have a target system root.
24334 8. The macro `MD_STARTFILE_PREFIX_1', if defined, but only if this is
24335 a native compiler, or we have a target system root.
24337 9. The macro `STANDARD_STARTFILE_PREFIX', with any sysroot
24338 modifications. If this path is relative it will be prefixed by
24339 `GCC_EXEC_PREFIX' and the machine suffix or `STANDARD_EXEC_PREFIX'
24340 and the machine suffix.
24342 10. The macro `STANDARD_STARTFILE_PREFIX_1', but only if this is a
24343 native compiler, or we have a target system root. The default for
24344 this macro is `/lib/'.
24346 11. The macro `STANDARD_STARTFILE_PREFIX_2', but only if this is a
24347 native compiler, or we have a target system root. The default for
24348 this macro is `/usr/lib/'.
24351 File: gccint.info, Node: Run-time Target, Next: Per-Function Data, Prev: Driver, Up: Target Macros
24353 17.3 Run-time Target Specification
24354 ==================================
24356 Here are run-time target specifications.
24358 -- Macro: TARGET_CPU_CPP_BUILTINS ()
24359 This function-like macro expands to a block of code that defines
24360 built-in preprocessor macros and assertions for the target CPU,
24361 using the functions `builtin_define', `builtin_define_std' and
24362 `builtin_assert'. When the front end calls this macro it provides
24363 a trailing semicolon, and since it has finished command line
24364 option processing your code can use those results freely.
24366 `builtin_assert' takes a string in the form you pass to the
24367 command-line option `-A', such as `cpu=mips', and creates the
24368 assertion. `builtin_define' takes a string in the form accepted
24369 by option `-D' and unconditionally defines the macro.
24371 `builtin_define_std' takes a string representing the name of an
24372 object-like macro. If it doesn't lie in the user's namespace,
24373 `builtin_define_std' defines it unconditionally. Otherwise, it
24374 defines a version with two leading underscores, and another version
24375 with two leading and trailing underscores, and defines the original
24376 only if an ISO standard was not requested on the command line. For
24377 example, passing `unix' defines `__unix', `__unix__' and possibly
24378 `unix'; passing `_mips' defines `__mips', `__mips__' and possibly
24379 `_mips', and passing `_ABI64' defines only `_ABI64'.
24381 You can also test for the C dialect being compiled. The variable
24382 `c_language' is set to one of `clk_c', `clk_cplusplus' or
24383 `clk_objective_c'. Note that if we are preprocessing assembler,
24384 this variable will be `clk_c' but the function-like macro
24385 `preprocessing_asm_p()' will return true, so you might want to
24386 check for that first. If you need to check for strict ANSI, the
24387 variable `flag_iso' can be used. The function-like macro
24388 `preprocessing_trad_p()' can be used to check for traditional
24391 -- Macro: TARGET_OS_CPP_BUILTINS ()
24392 Similarly to `TARGET_CPU_CPP_BUILTINS' but this macro is optional
24393 and is used for the target operating system instead.
24395 -- Macro: TARGET_OBJFMT_CPP_BUILTINS ()
24396 Similarly to `TARGET_CPU_CPP_BUILTINS' but this macro is optional
24397 and is used for the target object format. `elfos.h' uses this
24398 macro to define `__ELF__', so you probably do not need to define
24401 -- Variable: extern int target_flags
24402 This variable is declared in `options.h', which is included before
24403 any target-specific headers.
24405 -- Variable: Target Hook int TARGET_DEFAULT_TARGET_FLAGS
24406 This variable specifies the initial value of `target_flags'. Its
24407 default setting is 0.
24409 -- Target Hook: bool TARGET_HANDLE_OPTION (size_t CODE, const char
24411 This hook is called whenever the user specifies one of the
24412 target-specific options described by the `.opt' definition files
24413 (*note Options::). It has the opportunity to do some
24414 option-specific processing and should return true if the option is
24415 valid. The default definition does nothing but return true.
24417 CODE specifies the `OPT_NAME' enumeration value associated with
24418 the selected option; NAME is just a rendering of the option name
24419 in which non-alphanumeric characters are replaced by underscores.
24420 ARG specifies the string argument and is null if no argument was
24421 given. If the option is flagged as a `UInteger' (*note Option
24422 properties::), VALUE is the numeric value of the argument.
24423 Otherwise VALUE is 1 if the positive form of the option was used
24424 and 0 if the "no-" form was.
24426 -- Target Hook: bool TARGET_HANDLE_C_OPTION (size_t CODE, const char
24428 This target hook is called whenever the user specifies one of the
24429 target-specific C language family options described by the `.opt'
24430 definition files(*note Options::). It has the opportunity to do
24431 some option-specific processing and should return true if the
24432 option is valid. The default definition does nothing but return
24435 In general, you should use `TARGET_HANDLE_OPTION' to handle
24436 options. However, if processing an option requires routines that
24437 are only available in the C (and related language) front ends,
24438 then you should use `TARGET_HANDLE_C_OPTION' instead.
24440 -- Macro: TARGET_VERSION
24441 This macro is a C statement to print on `stderr' a string
24442 describing the particular machine description choice. Every
24443 machine description should define `TARGET_VERSION'. For example:
24446 #define TARGET_VERSION \
24447 fprintf (stderr, " (68k, Motorola syntax)");
24449 #define TARGET_VERSION \
24450 fprintf (stderr, " (68k, MIT syntax)");
24453 -- Macro: OVERRIDE_OPTIONS
24454 Sometimes certain combinations of command options do not make
24455 sense on a particular target machine. You can define a macro
24456 `OVERRIDE_OPTIONS' to take account of this. This macro, if
24457 defined, is executed once just after all the command options have
24460 Don't use this macro to turn on various extra optimizations for
24461 `-O'. That is what `OPTIMIZATION_OPTIONS' is for.
24463 -- Macro: C_COMMON_OVERRIDE_OPTIONS
24464 This is similar to `OVERRIDE_OPTIONS' but is only used in the C
24465 language frontends (C, Objective-C, C++, Objective-C++) and so can
24466 be used to alter option flag variables which only exist in those
24469 -- Macro: OPTIMIZATION_OPTIONS (LEVEL, SIZE)
24470 Some machines may desire to change what optimizations are
24471 performed for various optimization levels. This macro, if
24472 defined, is executed once just after the optimization level is
24473 determined and before the remainder of the command options have
24474 been parsed. Values set in this macro are used as the default
24475 values for the other command line options.
24477 LEVEL is the optimization level specified; 2 if `-O2' is
24478 specified, 1 if `-O' is specified, and 0 if neither is specified.
24480 SIZE is nonzero if `-Os' is specified and zero otherwise.
24482 This macro is run once at program startup and when the optimization
24483 options are changed via `#pragma GCC optimize' or by using the
24484 `optimize' attribute.
24486 *Do not examine `write_symbols' in this macro!* The debugging
24487 options are not supposed to alter the generated code.
24489 -- Target Hook: bool TARGET_HELP (void)
24490 This hook is called in response to the user invoking
24491 `--target-help' on the command line. It gives the target a chance
24492 to display extra information on the target specific command line
24493 options found in its `.opt' file.
24495 -- Macro: CAN_DEBUG_WITHOUT_FP
24496 Define this macro if debugging can be performed even without a
24497 frame pointer. If this macro is defined, GCC will turn on the
24498 `-fomit-frame-pointer' option whenever `-O' is specified.
24501 File: gccint.info, Node: Per-Function Data, Next: Storage Layout, Prev: Run-time Target, Up: Target Macros
24503 17.4 Defining data structures for per-function information.
24504 ===========================================================
24506 If the target needs to store information on a per-function basis, GCC
24507 provides a macro and a couple of variables to allow this. Note, just
24508 using statics to store the information is a bad idea, since GCC supports
24509 nested functions, so you can be halfway through encoding one function
24510 when another one comes along.
24512 GCC defines a data structure called `struct function' which contains
24513 all of the data specific to an individual function. This structure
24514 contains a field called `machine' whose type is `struct
24515 machine_function *', which can be used by targets to point to their own
24518 If a target needs per-function specific data it should define the type
24519 `struct machine_function' and also the macro `INIT_EXPANDERS'. This
24520 macro should be used to initialize the function pointer
24521 `init_machine_status'. This pointer is explained below.
24523 One typical use of per-function, target specific data is to create an
24524 RTX to hold the register containing the function's return address. This
24525 RTX can then be used to implement the `__builtin_return_address'
24526 function, for level 0.
24528 Note--earlier implementations of GCC used a single data area to hold
24529 all of the per-function information. Thus when processing of a nested
24530 function began the old per-function data had to be pushed onto a stack,
24531 and when the processing was finished, it had to be popped off the
24532 stack. GCC used to provide function pointers called
24533 `save_machine_status' and `restore_machine_status' to handle the saving
24534 and restoring of the target specific information. Since the single
24535 data area approach is no longer used, these pointers are no longer
24538 -- Macro: INIT_EXPANDERS
24539 Macro called to initialize any target specific information. This
24540 macro is called once per function, before generation of any RTL
24541 has begun. The intention of this macro is to allow the
24542 initialization of the function pointer `init_machine_status'.
24544 -- Variable: void (*)(struct function *) init_machine_status
24545 If this function pointer is non-`NULL' it will be called once per
24546 function, before function compilation starts, in order to allow the
24547 target to perform any target specific initialization of the
24548 `struct function' structure. It is intended that this would be
24549 used to initialize the `machine' of that structure.
24551 `struct machine_function' structures are expected to be freed by
24552 GC. Generally, any memory that they reference must be allocated
24553 by using `ggc_alloc', including the structure itself.
24556 File: gccint.info, Node: Storage Layout, Next: Type Layout, Prev: Per-Function Data, Up: Target Macros
24558 17.5 Storage Layout
24559 ===================
24561 Note that the definitions of the macros in this table which are sizes or
24562 alignments measured in bits do not need to be constant. They can be C
24563 expressions that refer to static variables, such as the `target_flags'.
24564 *Note Run-time Target::.
24566 -- Macro: BITS_BIG_ENDIAN
24567 Define this macro to have the value 1 if the most significant bit
24568 in a byte has the lowest number; otherwise define it to have the
24569 value zero. This means that bit-field instructions count from the
24570 most significant bit. If the machine has no bit-field
24571 instructions, then this must still be defined, but it doesn't
24572 matter which value it is defined to. This macro need not be a
24575 This macro does not affect the way structure fields are packed into
24576 bytes or words; that is controlled by `BYTES_BIG_ENDIAN'.
24578 -- Macro: BYTES_BIG_ENDIAN
24579 Define this macro to have the value 1 if the most significant byte
24580 in a word has the lowest number. This macro need not be a
24583 -- Macro: WORDS_BIG_ENDIAN
24584 Define this macro to have the value 1 if, in a multiword object,
24585 the most significant word has the lowest number. This applies to
24586 both memory locations and registers; GCC fundamentally assumes
24587 that the order of words in memory is the same as the order in
24588 registers. This macro need not be a constant.
24590 -- Macro: LIBGCC2_WORDS_BIG_ENDIAN
24591 Define this macro if `WORDS_BIG_ENDIAN' is not constant. This
24592 must be a constant value with the same meaning as
24593 `WORDS_BIG_ENDIAN', which will be used only when compiling
24594 `libgcc2.c'. Typically the value will be set based on
24595 preprocessor defines.
24597 -- Macro: FLOAT_WORDS_BIG_ENDIAN
24598 Define this macro to have the value 1 if `DFmode', `XFmode' or
24599 `TFmode' floating point numbers are stored in memory with the word
24600 containing the sign bit at the lowest address; otherwise define it
24601 to have the value 0. This macro need not be a constant.
24603 You need not define this macro if the ordering is the same as for
24604 multi-word integers.
24606 -- Macro: BITS_PER_UNIT
24607 Define this macro to be the number of bits in an addressable
24608 storage unit (byte). If you do not define this macro the default
24611 -- Macro: BITS_PER_WORD
24612 Number of bits in a word. If you do not define this macro, the
24613 default is `BITS_PER_UNIT * UNITS_PER_WORD'.
24615 -- Macro: MAX_BITS_PER_WORD
24616 Maximum number of bits in a word. If this is undefined, the
24617 default is `BITS_PER_WORD'. Otherwise, it is the constant value
24618 that is the largest value that `BITS_PER_WORD' can have at
24621 -- Macro: UNITS_PER_WORD
24622 Number of storage units in a word; normally the size of a
24623 general-purpose register, a power of two from 1 or 8.
24625 -- Macro: MIN_UNITS_PER_WORD
24626 Minimum number of units in a word. If this is undefined, the
24627 default is `UNITS_PER_WORD'. Otherwise, it is the constant value
24628 that is the smallest value that `UNITS_PER_WORD' can have at
24631 -- Macro: UNITS_PER_SIMD_WORD (MODE)
24632 Number of units in the vectors that the vectorizer can produce for
24633 scalar mode MODE. The default is equal to `UNITS_PER_WORD',
24634 because the vectorizer can do some transformations even in absence
24635 of specialized SIMD hardware.
24637 -- Macro: POINTER_SIZE
24638 Width of a pointer, in bits. You must specify a value no wider
24639 than the width of `Pmode'. If it is not equal to the width of
24640 `Pmode', you must define `POINTERS_EXTEND_UNSIGNED'. If you do
24641 not specify a value the default is `BITS_PER_WORD'.
24643 -- Macro: POINTERS_EXTEND_UNSIGNED
24644 A C expression that determines how pointers should be extended from
24645 `ptr_mode' to either `Pmode' or `word_mode'. It is greater than
24646 zero if pointers should be zero-extended, zero if they should be
24647 sign-extended, and negative if some other sort of conversion is
24648 needed. In the last case, the extension is done by the target's
24649 `ptr_extend' instruction.
24651 You need not define this macro if the `ptr_mode', `Pmode' and
24652 `word_mode' are all the same width.
24654 -- Macro: PROMOTE_MODE (M, UNSIGNEDP, TYPE)
24655 A macro to update M and UNSIGNEDP when an object whose type is
24656 TYPE and which has the specified mode and signedness is to be
24657 stored in a register. This macro is only called when TYPE is a
24660 On most RISC machines, which only have operations that operate on
24661 a full register, define this macro to set M to `word_mode' if M is
24662 an integer mode narrower than `BITS_PER_WORD'. In most cases,
24663 only integer modes should be widened because wider-precision
24664 floating-point operations are usually more expensive than their
24665 narrower counterparts.
24667 For most machines, the macro definition does not change UNSIGNEDP.
24668 However, some machines, have instructions that preferentially
24669 handle either signed or unsigned quantities of certain modes. For
24670 example, on the DEC Alpha, 32-bit loads from memory and 32-bit add
24671 instructions sign-extend the result to 64 bits. On such machines,
24672 set UNSIGNEDP according to which kind of extension is more
24675 Do not define this macro if it would never modify M.
24677 -- Macro: PROMOTE_FUNCTION_MODE
24678 Like `PROMOTE_MODE', but is applied to outgoing function arguments
24679 or function return values, as specified by
24680 `TARGET_PROMOTE_FUNCTION_ARGS' and
24681 `TARGET_PROMOTE_FUNCTION_RETURN', respectively.
24683 The default is `PROMOTE_MODE'.
24685 -- Target Hook: bool TARGET_PROMOTE_FUNCTION_ARGS (tree FNTYPE)
24686 This target hook should return `true' if the promotion described by
24687 `PROMOTE_FUNCTION_MODE' should be done for outgoing function
24690 -- Target Hook: bool TARGET_PROMOTE_FUNCTION_RETURN (tree FNTYPE)
24691 This target hook should return `true' if the promotion described by
24692 `PROMOTE_FUNCTION_MODE' should be done for the return value of
24695 If this target hook returns `true', `TARGET_FUNCTION_VALUE' must
24696 perform the same promotions done by `PROMOTE_FUNCTION_MODE'.
24698 -- Macro: PARM_BOUNDARY
24699 Normal alignment required for function parameters on the stack, in
24700 bits. All stack parameters receive at least this much alignment
24701 regardless of data type. On most machines, this is the same as the
24702 size of an integer.
24704 -- Macro: STACK_BOUNDARY
24705 Define this macro to the minimum alignment enforced by hardware
24706 for the stack pointer on this machine. The definition is a C
24707 expression for the desired alignment (measured in bits). This
24708 value is used as a default if `PREFERRED_STACK_BOUNDARY' is not
24709 defined. On most machines, this should be the same as
24712 -- Macro: PREFERRED_STACK_BOUNDARY
24713 Define this macro if you wish to preserve a certain alignment for
24714 the stack pointer, greater than what the hardware enforces. The
24715 definition is a C expression for the desired alignment (measured
24716 in bits). This macro must evaluate to a value equal to or larger
24717 than `STACK_BOUNDARY'.
24719 -- Macro: INCOMING_STACK_BOUNDARY
24720 Define this macro if the incoming stack boundary may be different
24721 from `PREFERRED_STACK_BOUNDARY'. This macro must evaluate to a
24722 value equal to or larger than `STACK_BOUNDARY'.
24724 -- Macro: FUNCTION_BOUNDARY
24725 Alignment required for a function entry point, in bits.
24727 -- Macro: BIGGEST_ALIGNMENT
24728 Biggest alignment that any data type can require on this machine,
24729 in bits. Note that this is not the biggest alignment that is
24730 supported, just the biggest alignment that, when violated, may
24733 -- Macro: MALLOC_ABI_ALIGNMENT
24734 Alignment, in bits, a C conformant malloc implementation has to
24735 provide. If not defined, the default value is `BITS_PER_WORD'.
24737 -- Macro: ATTRIBUTE_ALIGNED_VALUE
24738 Alignment used by the `__attribute__ ((aligned))' construct. If
24739 not defined, the default value is `BIGGEST_ALIGNMENT'.
24741 -- Macro: MINIMUM_ATOMIC_ALIGNMENT
24742 If defined, the smallest alignment, in bits, that can be given to
24743 an object that can be referenced in one operation, without
24744 disturbing any nearby object. Normally, this is `BITS_PER_UNIT',
24745 but may be larger on machines that don't have byte or half-word
24748 -- Macro: BIGGEST_FIELD_ALIGNMENT
24749 Biggest alignment that any structure or union field can require on
24750 this machine, in bits. If defined, this overrides
24751 `BIGGEST_ALIGNMENT' for structure and union fields only, unless
24752 the field alignment has been set by the `__attribute__ ((aligned
24755 -- Macro: ADJUST_FIELD_ALIGN (FIELD, COMPUTED)
24756 An expression for the alignment of a structure field FIELD if the
24757 alignment computed in the usual way (including applying of
24758 `BIGGEST_ALIGNMENT' and `BIGGEST_FIELD_ALIGNMENT' to the
24759 alignment) is COMPUTED. It overrides alignment only if the field
24760 alignment has not been set by the `__attribute__ ((aligned (N)))'
24763 -- Macro: MAX_STACK_ALIGNMENT
24764 Biggest stack alignment guaranteed by the backend. Use this macro
24765 to specify the maximum alignment of a variable on stack.
24767 If not defined, the default value is `STACK_BOUNDARY'.
24770 -- Macro: MAX_OFILE_ALIGNMENT
24771 Biggest alignment supported by the object file format of this
24772 machine. Use this macro to limit the alignment which can be
24773 specified using the `__attribute__ ((aligned (N)))' construct. If
24774 not defined, the default value is `BIGGEST_ALIGNMENT'.
24776 On systems that use ELF, the default (in `config/elfos.h') is the
24777 largest supported 32-bit ELF section alignment representable on a
24778 32-bit host e.g. `(((unsigned HOST_WIDEST_INT) 1 << 28) * 8)'. On
24779 32-bit ELF the largest supported section alignment in bits is
24780 `(0x80000000 * 8)', but this is not representable on 32-bit hosts.
24782 -- Macro: DATA_ALIGNMENT (TYPE, BASIC-ALIGN)
24783 If defined, a C expression to compute the alignment for a variable
24784 in the static store. TYPE is the data type, and BASIC-ALIGN is
24785 the alignment that the object would ordinarily have. The value of
24786 this macro is used instead of that alignment to align the object.
24788 If this macro is not defined, then BASIC-ALIGN is used.
24790 One use of this macro is to increase alignment of medium-size data
24791 to make it all fit in fewer cache lines. Another is to cause
24792 character arrays to be word-aligned so that `strcpy' calls that
24793 copy constants to character arrays can be done inline.
24795 -- Macro: CONSTANT_ALIGNMENT (CONSTANT, BASIC-ALIGN)
24796 If defined, a C expression to compute the alignment given to a
24797 constant that is being placed in memory. CONSTANT is the constant
24798 and BASIC-ALIGN is the alignment that the object would ordinarily
24799 have. The value of this macro is used instead of that alignment to
24802 If this macro is not defined, then BASIC-ALIGN is used.
24804 The typical use of this macro is to increase alignment for string
24805 constants to be word aligned so that `strcpy' calls that copy
24806 constants can be done inline.
24808 -- Macro: LOCAL_ALIGNMENT (TYPE, BASIC-ALIGN)
24809 If defined, a C expression to compute the alignment for a variable
24810 in the local store. TYPE is the data type, and BASIC-ALIGN is the
24811 alignment that the object would ordinarily have. The value of this
24812 macro is used instead of that alignment to align the object.
24814 If this macro is not defined, then BASIC-ALIGN is used.
24816 One use of this macro is to increase alignment of medium-size data
24817 to make it all fit in fewer cache lines.
24819 -- Macro: STACK_SLOT_ALIGNMENT (TYPE, MODE, BASIC-ALIGN)
24820 If defined, a C expression to compute the alignment for stack slot.
24821 TYPE is the data type, MODE is the widest mode available, and
24822 BASIC-ALIGN is the alignment that the slot would ordinarily have.
24823 The value of this macro is used instead of that alignment to align
24826 If this macro is not defined, then BASIC-ALIGN is used when TYPE
24827 is `NULL'. Otherwise, `LOCAL_ALIGNMENT' will be used.
24829 This macro is to set alignment of stack slot to the maximum
24830 alignment of all possible modes which the slot may have.
24832 -- Macro: LOCAL_DECL_ALIGNMENT (DECL)
24833 If defined, a C expression to compute the alignment for a local
24836 If this macro is not defined, then `LOCAL_ALIGNMENT (TREE_TYPE
24837 (DECL), DECL_ALIGN (DECL))' is used.
24839 One use of this macro is to increase alignment of medium-size data
24840 to make it all fit in fewer cache lines.
24842 -- Macro: EMPTY_FIELD_BOUNDARY
24843 Alignment in bits to be given to a structure bit-field that
24844 follows an empty field such as `int : 0;'.
24846 If `PCC_BITFIELD_TYPE_MATTERS' is true, it overrides this macro.
24848 -- Macro: STRUCTURE_SIZE_BOUNDARY
24849 Number of bits which any structure or union's size must be a
24850 multiple of. Each structure or union's size is rounded up to a
24853 If you do not define this macro, the default is the same as
24856 -- Macro: STRICT_ALIGNMENT
24857 Define this macro to be the value 1 if instructions will fail to
24858 work if given data not on the nominal alignment. If instructions
24859 will merely go slower in that case, define this macro as 0.
24861 -- Macro: PCC_BITFIELD_TYPE_MATTERS
24862 Define this if you wish to imitate the way many other C compilers
24863 handle alignment of bit-fields and the structures that contain
24866 The behavior is that the type written for a named bit-field (`int',
24867 `short', or other integer type) imposes an alignment for the entire
24868 structure, as if the structure really did contain an ordinary
24869 field of that type. In addition, the bit-field is placed within
24870 the structure so that it would fit within such a field, not
24871 crossing a boundary for it.
24873 Thus, on most machines, a named bit-field whose type is written as
24874 `int' would not cross a four-byte boundary, and would force
24875 four-byte alignment for the whole structure. (The alignment used
24876 may not be four bytes; it is controlled by the other alignment
24879 An unnamed bit-field will not affect the alignment of the
24880 containing structure.
24882 If the macro is defined, its definition should be a C expression;
24883 a nonzero value for the expression enables this behavior.
24885 Note that if this macro is not defined, or its value is zero, some
24886 bit-fields may cross more than one alignment boundary. The
24887 compiler can support such references if there are `insv', `extv',
24888 and `extzv' insns that can directly reference memory.
24890 The other known way of making bit-fields work is to define
24891 `STRUCTURE_SIZE_BOUNDARY' as large as `BIGGEST_ALIGNMENT'. Then
24892 every structure can be accessed with fullwords.
24894 Unless the machine has bit-field instructions or you define
24895 `STRUCTURE_SIZE_BOUNDARY' that way, you must define
24896 `PCC_BITFIELD_TYPE_MATTERS' to have a nonzero value.
24898 If your aim is to make GCC use the same conventions for laying out
24899 bit-fields as are used by another compiler, here is how to
24900 investigate what the other compiler does. Compile and run this
24919 printf ("Size of foo1 is %d\n",
24920 sizeof (struct foo1));
24921 printf ("Size of foo2 is %d\n",
24922 sizeof (struct foo2));
24926 If this prints 2 and 5, then the compiler's behavior is what you
24927 would get from `PCC_BITFIELD_TYPE_MATTERS'.
24929 -- Macro: BITFIELD_NBYTES_LIMITED
24930 Like `PCC_BITFIELD_TYPE_MATTERS' except that its effect is limited
24931 to aligning a bit-field within the structure.
24933 -- Target Hook: bool TARGET_ALIGN_ANON_BITFIELD (void)
24934 When `PCC_BITFIELD_TYPE_MATTERS' is true this hook will determine
24935 whether unnamed bitfields affect the alignment of the containing
24936 structure. The hook should return true if the structure should
24937 inherit the alignment requirements of an unnamed bitfield's type.
24939 -- Target Hook: bool TARGET_NARROW_VOLATILE_BITFIELD (void)
24940 This target hook should return `true' if accesses to volatile
24941 bitfields should use the narrowest mode possible. It should
24942 return `false' if these accesses should use the bitfield container
24945 The default is `!TARGET_STRICT_ALIGN'.
24947 -- Macro: MEMBER_TYPE_FORCES_BLK (FIELD, MODE)
24948 Return 1 if a structure or array containing FIELD should be
24949 accessed using `BLKMODE'.
24951 If FIELD is the only field in the structure, MODE is its mode,
24952 otherwise MODE is VOIDmode. MODE is provided in the case where
24953 structures of one field would require the structure's mode to
24954 retain the field's mode.
24956 Normally, this is not needed.
24958 -- Macro: ROUND_TYPE_ALIGN (TYPE, COMPUTED, SPECIFIED)
24959 Define this macro as an expression for the alignment of a type
24960 (given by TYPE as a tree node) if the alignment computed in the
24961 usual way is COMPUTED and the alignment explicitly specified was
24964 The default is to use SPECIFIED if it is larger; otherwise, use
24965 the smaller of COMPUTED and `BIGGEST_ALIGNMENT'
24967 -- Macro: MAX_FIXED_MODE_SIZE
24968 An integer expression for the size in bits of the largest integer
24969 machine mode that should actually be used. All integer machine
24970 modes of this size or smaller can be used for structures and
24971 unions with the appropriate sizes. If this macro is undefined,
24972 `GET_MODE_BITSIZE (DImode)' is assumed.
24974 -- Macro: STACK_SAVEAREA_MODE (SAVE_LEVEL)
24975 If defined, an expression of type `enum machine_mode' that
24976 specifies the mode of the save area operand of a
24977 `save_stack_LEVEL' named pattern (*note Standard Names::).
24978 SAVE_LEVEL is one of `SAVE_BLOCK', `SAVE_FUNCTION', or
24979 `SAVE_NONLOCAL' and selects which of the three named patterns is
24980 having its mode specified.
24982 You need not define this macro if it always returns `Pmode'. You
24983 would most commonly define this macro if the `save_stack_LEVEL'
24984 patterns need to support both a 32- and a 64-bit mode.
24986 -- Macro: STACK_SIZE_MODE
24987 If defined, an expression of type `enum machine_mode' that
24988 specifies the mode of the size increment operand of an
24989 `allocate_stack' named pattern (*note Standard Names::).
24991 You need not define this macro if it always returns `word_mode'.
24992 You would most commonly define this macro if the `allocate_stack'
24993 pattern needs to support both a 32- and a 64-bit mode.
24995 -- Target Hook: enum machine_mode TARGET_LIBGCC_CMP_RETURN_MODE ()
24996 This target hook should return the mode to be used for the return
24997 value of compare instructions expanded to libgcc calls. If not
24998 defined `word_mode' is returned which is the right choice for a
24999 majority of targets.
25001 -- Target Hook: enum machine_mode TARGET_LIBGCC_SHIFT_COUNT_MODE ()
25002 This target hook should return the mode to be used for the shift
25003 count operand of shift instructions expanded to libgcc calls. If
25004 not defined `word_mode' is returned which is the right choice for
25005 a majority of targets.
25007 -- Macro: ROUND_TOWARDS_ZERO
25008 If defined, this macro should be true if the prevailing rounding
25009 mode is towards zero.
25011 Defining this macro only affects the way `libgcc.a' emulates
25012 floating-point arithmetic.
25014 Not defining this macro is equivalent to returning zero.
25016 -- Macro: LARGEST_EXPONENT_IS_NORMAL (SIZE)
25017 This macro should return true if floats with SIZE bits do not have
25018 a NaN or infinity representation, but use the largest exponent for
25019 normal numbers instead.
25021 Defining this macro only affects the way `libgcc.a' emulates
25022 floating-point arithmetic.
25024 The default definition of this macro returns false for all sizes.
25026 -- Target Hook: bool TARGET_VECTOR_OPAQUE_P (tree TYPE)
25027 This target hook should return `true' a vector is opaque. That
25028 is, if no cast is needed when copying a vector value of type TYPE
25029 into another vector lvalue of the same size. Vector opaque types
25030 cannot be initialized. The default is that there are no such
25033 -- Target Hook: bool TARGET_MS_BITFIELD_LAYOUT_P (tree RECORD_TYPE)
25034 This target hook returns `true' if bit-fields in the given
25035 RECORD_TYPE are to be laid out following the rules of Microsoft
25036 Visual C/C++, namely: (i) a bit-field won't share the same storage
25037 unit with the previous bit-field if their underlying types have
25038 different sizes, and the bit-field will be aligned to the highest
25039 alignment of the underlying types of itself and of the previous
25040 bit-field; (ii) a zero-sized bit-field will affect the alignment of
25041 the whole enclosing structure, even if it is unnamed; except that
25042 (iii) a zero-sized bit-field will be disregarded unless it follows
25043 another bit-field of nonzero size. If this hook returns `true',
25044 other macros that control bit-field layout are ignored.
25046 When a bit-field is inserted into a packed record, the whole size
25047 of the underlying type is used by one or more same-size adjacent
25048 bit-fields (that is, if its long:3, 32 bits is used in the record,
25049 and any additional adjacent long bit-fields are packed into the
25050 same chunk of 32 bits. However, if the size changes, a new field
25051 of that size is allocated). In an unpacked record, this is the
25052 same as using alignment, but not equivalent when packing.
25054 If both MS bit-fields and `__attribute__((packed))' are used, the
25055 latter will take precedence. If `__attribute__((packed))' is used
25056 on a single field when MS bit-fields are in use, it will take
25057 precedence for that field, but the alignment of the rest of the
25058 structure may affect its placement.
25060 -- Target Hook: bool TARGET_DECIMAL_FLOAT_SUPPORTED_P (void)
25061 Returns true if the target supports decimal floating point.
25063 -- Target Hook: bool TARGET_FIXED_POINT_SUPPORTED_P (void)
25064 Returns true if the target supports fixed-point arithmetic.
25066 -- Target Hook: void TARGET_EXPAND_TO_RTL_HOOK (void)
25067 This hook is called just before expansion into rtl, allowing the
25068 target to perform additional initializations or analysis before
25069 the expansion. For example, the rs6000 port uses it to allocate a
25070 scratch stack slot for use in copying SDmode values between memory
25071 and floating point registers whenever the function being expanded
25072 has any SDmode usage.
25074 -- Target Hook: void TARGET_INSTANTIATE_DECLS (void)
25075 This hook allows the backend to perform additional instantiations
25076 on rtl that are not actually in any insns yet, but will be later.
25078 -- Target Hook: const char * TARGET_MANGLE_TYPE (tree TYPE)
25079 If your target defines any fundamental types, or any types your
25080 target uses should be mangled differently from the default, define
25081 this hook to return the appropriate encoding for these types as
25082 part of a C++ mangled name. The TYPE argument is the tree
25083 structure representing the type to be mangled. The hook may be
25084 applied to trees which are not target-specific fundamental types;
25085 it should return `NULL' for all such types, as well as arguments
25086 it does not recognize. If the return value is not `NULL', it must
25087 point to a statically-allocated string constant.
25089 Target-specific fundamental types might be new fundamental types or
25090 qualified versions of ordinary fundamental types. Encode new
25091 fundamental types as `u N NAME', where NAME is the name used for
25092 the type in source code, and N is the length of NAME in decimal.
25093 Encode qualified versions of ordinary types as `U N NAME CODE',
25094 where NAME is the name used for the type qualifier in source code,
25095 N is the length of NAME as above, and CODE is the code used to
25096 represent the unqualified version of this type. (See
25097 `write_builtin_type' in `cp/mangle.c' for the list of codes.) In
25098 both cases the spaces are for clarity; do not include any spaces
25101 This hook is applied to types prior to typedef resolution. If the
25102 mangled name for a particular type depends only on that type's
25103 main variant, you can perform typedef resolution yourself using
25104 `TYPE_MAIN_VARIANT' before mangling.
25106 The default version of this hook always returns `NULL', which is
25107 appropriate for a target that does not define any new fundamental
25111 File: gccint.info, Node: Type Layout, Next: Registers, Prev: Storage Layout, Up: Target Macros
25113 17.6 Layout of Source Language Data Types
25114 =========================================
25116 These macros define the sizes and other characteristics of the standard
25117 basic data types used in programs being compiled. Unlike the macros in
25118 the previous section, these apply to specific features of C and related
25119 languages, rather than to fundamental aspects of storage layout.
25121 -- Macro: INT_TYPE_SIZE
25122 A C expression for the size in bits of the type `int' on the
25123 target machine. If you don't define this, the default is one word.
25125 -- Macro: SHORT_TYPE_SIZE
25126 A C expression for the size in bits of the type `short' on the
25127 target machine. If you don't define this, the default is half a
25128 word. (If this would be less than one storage unit, it is rounded
25131 -- Macro: LONG_TYPE_SIZE
25132 A C expression for the size in bits of the type `long' on the
25133 target machine. If you don't define this, the default is one word.
25135 -- Macro: ADA_LONG_TYPE_SIZE
25136 On some machines, the size used for the Ada equivalent of the type
25137 `long' by a native Ada compiler differs from that used by C. In
25138 that situation, define this macro to be a C expression to be used
25139 for the size of that type. If you don't define this, the default
25140 is the value of `LONG_TYPE_SIZE'.
25142 -- Macro: LONG_LONG_TYPE_SIZE
25143 A C expression for the size in bits of the type `long long' on the
25144 target machine. If you don't define this, the default is two
25145 words. If you want to support GNU Ada on your machine, the value
25146 of this macro must be at least 64.
25148 -- Macro: CHAR_TYPE_SIZE
25149 A C expression for the size in bits of the type `char' on the
25150 target machine. If you don't define this, the default is
25153 -- Macro: BOOL_TYPE_SIZE
25154 A C expression for the size in bits of the C++ type `bool' and C99
25155 type `_Bool' on the target machine. If you don't define this, and
25156 you probably shouldn't, the default is `CHAR_TYPE_SIZE'.
25158 -- Macro: FLOAT_TYPE_SIZE
25159 A C expression for the size in bits of the type `float' on the
25160 target machine. If you don't define this, the default is one word.
25162 -- Macro: DOUBLE_TYPE_SIZE
25163 A C expression for the size in bits of the type `double' on the
25164 target machine. If you don't define this, the default is two
25167 -- Macro: LONG_DOUBLE_TYPE_SIZE
25168 A C expression for the size in bits of the type `long double' on
25169 the target machine. If you don't define this, the default is two
25172 -- Macro: SHORT_FRACT_TYPE_SIZE
25173 A C expression for the size in bits of the type `short _Fract' on
25174 the target machine. If you don't define this, the default is
25177 -- Macro: FRACT_TYPE_SIZE
25178 A C expression for the size in bits of the type `_Fract' on the
25179 target machine. If you don't define this, the default is
25180 `BITS_PER_UNIT * 2'.
25182 -- Macro: LONG_FRACT_TYPE_SIZE
25183 A C expression for the size in bits of the type `long _Fract' on
25184 the target machine. If you don't define this, the default is
25185 `BITS_PER_UNIT * 4'.
25187 -- Macro: LONG_LONG_FRACT_TYPE_SIZE
25188 A C expression for the size in bits of the type `long long _Fract'
25189 on the target machine. If you don't define this, the default is
25190 `BITS_PER_UNIT * 8'.
25192 -- Macro: SHORT_ACCUM_TYPE_SIZE
25193 A C expression for the size in bits of the type `short _Accum' on
25194 the target machine. If you don't define this, the default is
25195 `BITS_PER_UNIT * 2'.
25197 -- Macro: ACCUM_TYPE_SIZE
25198 A C expression for the size in bits of the type `_Accum' on the
25199 target machine. If you don't define this, the default is
25200 `BITS_PER_UNIT * 4'.
25202 -- Macro: LONG_ACCUM_TYPE_SIZE
25203 A C expression for the size in bits of the type `long _Accum' on
25204 the target machine. If you don't define this, the default is
25205 `BITS_PER_UNIT * 8'.
25207 -- Macro: LONG_LONG_ACCUM_TYPE_SIZE
25208 A C expression for the size in bits of the type `long long _Accum'
25209 on the target machine. If you don't define this, the default is
25210 `BITS_PER_UNIT * 16'.
25212 -- Macro: LIBGCC2_LONG_DOUBLE_TYPE_SIZE
25213 Define this macro if `LONG_DOUBLE_TYPE_SIZE' is not constant or if
25214 you want routines in `libgcc2.a' for a size other than
25215 `LONG_DOUBLE_TYPE_SIZE'. If you don't define this, the default is
25216 `LONG_DOUBLE_TYPE_SIZE'.
25218 -- Macro: LIBGCC2_HAS_DF_MODE
25219 Define this macro if neither `LIBGCC2_DOUBLE_TYPE_SIZE' nor
25220 `LIBGCC2_LONG_DOUBLE_TYPE_SIZE' is `DFmode' but you want `DFmode'
25221 routines in `libgcc2.a' anyway. If you don't define this and
25222 either `LIBGCC2_DOUBLE_TYPE_SIZE' or
25223 `LIBGCC2_LONG_DOUBLE_TYPE_SIZE' is 64 then the default is 1,
25226 -- Macro: LIBGCC2_HAS_XF_MODE
25227 Define this macro if `LIBGCC2_LONG_DOUBLE_TYPE_SIZE' is not
25228 `XFmode' but you want `XFmode' routines in `libgcc2.a' anyway. If
25229 you don't define this and `LIBGCC2_LONG_DOUBLE_TYPE_SIZE' is 80
25230 then the default is 1, otherwise it is 0.
25232 -- Macro: LIBGCC2_HAS_TF_MODE
25233 Define this macro if `LIBGCC2_LONG_DOUBLE_TYPE_SIZE' is not
25234 `TFmode' but you want `TFmode' routines in `libgcc2.a' anyway. If
25235 you don't define this and `LIBGCC2_LONG_DOUBLE_TYPE_SIZE' is 128
25236 then the default is 1, otherwise it is 0.
25242 Define these macros to be the size in bits of the mantissa of
25243 `SFmode', `DFmode', `XFmode' and `TFmode' values, if the defaults
25244 in `libgcc2.h' are inappropriate. By default, `FLT_MANT_DIG' is
25245 used for `SF_SIZE', `LDBL_MANT_DIG' for `XF_SIZE' and `TF_SIZE',
25246 and `DBL_MANT_DIG' or `LDBL_MANT_DIG' for `DF_SIZE' according to
25247 whether `LIBGCC2_DOUBLE_TYPE_SIZE' or
25248 `LIBGCC2_LONG_DOUBLE_TYPE_SIZE' is 64.
25250 -- Macro: TARGET_FLT_EVAL_METHOD
25251 A C expression for the value for `FLT_EVAL_METHOD' in `float.h',
25252 assuming, if applicable, that the floating-point control word is
25253 in its default state. If you do not define this macro the value of
25254 `FLT_EVAL_METHOD' will be zero.
25256 -- Macro: WIDEST_HARDWARE_FP_SIZE
25257 A C expression for the size in bits of the widest floating-point
25258 format supported by the hardware. If you define this macro, you
25259 must specify a value less than or equal to the value of
25260 `LONG_DOUBLE_TYPE_SIZE'. If you do not define this macro, the
25261 value of `LONG_DOUBLE_TYPE_SIZE' is the default.
25263 -- Macro: DEFAULT_SIGNED_CHAR
25264 An expression whose value is 1 or 0, according to whether the type
25265 `char' should be signed or unsigned by default. The user can
25266 always override this default with the options `-fsigned-char' and
25269 -- Target Hook: bool TARGET_DEFAULT_SHORT_ENUMS (void)
25270 This target hook should return true if the compiler should give an
25271 `enum' type only as many bytes as it takes to represent the range
25272 of possible values of that type. It should return false if all
25273 `enum' types should be allocated like `int'.
25275 The default is to return false.
25277 -- Macro: SIZE_TYPE
25278 A C expression for a string describing the name of the data type
25279 to use for size values. The typedef name `size_t' is defined
25280 using the contents of the string.
25282 The string can contain more than one keyword. If so, separate
25283 them with spaces, and write first any length keyword, then
25284 `unsigned' if appropriate, and finally `int'. The string must
25285 exactly match one of the data type names defined in the function
25286 `init_decl_processing' in the file `c-decl.c'. You may not omit
25287 `int' or change the order--that would cause the compiler to crash
25290 If you don't define this macro, the default is `"long unsigned
25293 -- Macro: PTRDIFF_TYPE
25294 A C expression for a string describing the name of the data type
25295 to use for the result of subtracting two pointers. The typedef
25296 name `ptrdiff_t' is defined using the contents of the string. See
25297 `SIZE_TYPE' above for more information.
25299 If you don't define this macro, the default is `"long int"'.
25301 -- Macro: WCHAR_TYPE
25302 A C expression for a string describing the name of the data type
25303 to use for wide characters. The typedef name `wchar_t' is defined
25304 using the contents of the string. See `SIZE_TYPE' above for more
25307 If you don't define this macro, the default is `"int"'.
25309 -- Macro: WCHAR_TYPE_SIZE
25310 A C expression for the size in bits of the data type for wide
25311 characters. This is used in `cpp', which cannot make use of
25314 -- Macro: WINT_TYPE
25315 A C expression for a string describing the name of the data type to
25316 use for wide characters passed to `printf' and returned from
25317 `getwc'. The typedef name `wint_t' is defined using the contents
25318 of the string. See `SIZE_TYPE' above for more information.
25320 If you don't define this macro, the default is `"unsigned int"'.
25322 -- Macro: INTMAX_TYPE
25323 A C expression for a string describing the name of the data type
25324 that can represent any value of any standard or extended signed
25325 integer type. The typedef name `intmax_t' is defined using the
25326 contents of the string. See `SIZE_TYPE' above for more
25329 If you don't define this macro, the default is the first of
25330 `"int"', `"long int"', or `"long long int"' that has as much
25331 precision as `long long int'.
25333 -- Macro: UINTMAX_TYPE
25334 A C expression for a string describing the name of the data type
25335 that can represent any value of any standard or extended unsigned
25336 integer type. The typedef name `uintmax_t' is defined using the
25337 contents of the string. See `SIZE_TYPE' above for more
25340 If you don't define this macro, the default is the first of
25341 `"unsigned int"', `"long unsigned int"', or `"long long unsigned
25342 int"' that has as much precision as `long long unsigned int'.
25344 -- Macro: TARGET_PTRMEMFUNC_VBIT_LOCATION
25345 The C++ compiler represents a pointer-to-member-function with a
25346 struct that looks like:
25351 ptrdiff_t vtable_index;
25356 The C++ compiler must use one bit to indicate whether the function
25357 that will be called through a pointer-to-member-function is
25358 virtual. Normally, we assume that the low-order bit of a function
25359 pointer must always be zero. Then, by ensuring that the
25360 vtable_index is odd, we can distinguish which variant of the union
25361 is in use. But, on some platforms function pointers can be odd,
25362 and so this doesn't work. In that case, we use the low-order bit
25363 of the `delta' field, and shift the remainder of the `delta' field
25366 GCC will automatically make the right selection about where to
25367 store this bit using the `FUNCTION_BOUNDARY' setting for your
25368 platform. However, some platforms such as ARM/Thumb have
25369 `FUNCTION_BOUNDARY' set such that functions always start at even
25370 addresses, but the lowest bit of pointers to functions indicate
25371 whether the function at that address is in ARM or Thumb mode. If
25372 this is the case of your architecture, you should define this
25373 macro to `ptrmemfunc_vbit_in_delta'.
25375 In general, you should not have to define this macro. On
25376 architectures in which function addresses are always even,
25377 according to `FUNCTION_BOUNDARY', GCC will automatically define
25378 this macro to `ptrmemfunc_vbit_in_pfn'.
25380 -- Macro: TARGET_VTABLE_USES_DESCRIPTORS
25381 Normally, the C++ compiler uses function pointers in vtables. This
25382 macro allows the target to change to use "function descriptors"
25383 instead. Function descriptors are found on targets for whom a
25384 function pointer is actually a small data structure. Normally the
25385 data structure consists of the actual code address plus a data
25386 pointer to which the function's data is relative.
25388 If vtables are used, the value of this macro should be the number
25389 of words that the function descriptor occupies.
25391 -- Macro: TARGET_VTABLE_ENTRY_ALIGN
25392 By default, the vtable entries are void pointers, the so the
25393 alignment is the same as pointer alignment. The value of this
25394 macro specifies the alignment of the vtable entry in bits. It
25395 should be defined only when special alignment is necessary. */
25397 -- Macro: TARGET_VTABLE_DATA_ENTRY_DISTANCE
25398 There are a few non-descriptor entries in the vtable at offsets
25399 below zero. If these entries must be padded (say, to preserve the
25400 alignment specified by `TARGET_VTABLE_ENTRY_ALIGN'), set this to
25401 the number of words in each data entry.
25404 File: gccint.info, Node: Registers, Next: Register Classes, Prev: Type Layout, Up: Target Macros
25406 17.7 Register Usage
25407 ===================
25409 This section explains how to describe what registers the target machine
25410 has, and how (in general) they can be used.
25412 The description of which registers a specific instruction can use is
25413 done with register classes; see *Note Register Classes::. For
25414 information on using registers to access a stack frame, see *Note Frame
25415 Registers::. For passing values in registers, see *Note Register
25416 Arguments::. For returning values in registers, see *Note Scalar
25421 * Register Basics:: Number and kinds of registers.
25422 * Allocation Order:: Order in which registers are allocated.
25423 * Values in Registers:: What kinds of values each reg can hold.
25424 * Leaf Functions:: Renumbering registers for leaf functions.
25425 * Stack Registers:: Handling a register stack such as 80387.
25428 File: gccint.info, Node: Register Basics, Next: Allocation Order, Up: Registers
25430 17.7.1 Basic Characteristics of Registers
25431 -----------------------------------------
25433 Registers have various characteristics.
25435 -- Macro: FIRST_PSEUDO_REGISTER
25436 Number of hardware registers known to the compiler. They receive
25437 numbers 0 through `FIRST_PSEUDO_REGISTER-1'; thus, the first
25438 pseudo register's number really is assigned the number
25439 `FIRST_PSEUDO_REGISTER'.
25441 -- Macro: FIXED_REGISTERS
25442 An initializer that says which registers are used for fixed
25443 purposes all throughout the compiled code and are therefore not
25444 available for general allocation. These would include the stack
25445 pointer, the frame pointer (except on machines where that can be
25446 used as a general register when no frame pointer is needed), the
25447 program counter on machines where that is considered one of the
25448 addressable registers, and any other numbered register with a
25451 This information is expressed as a sequence of numbers, separated
25452 by commas and surrounded by braces. The Nth number is 1 if
25453 register N is fixed, 0 otherwise.
25455 The table initialized from this macro, and the table initialized by
25456 the following one, may be overridden at run time either
25457 automatically, by the actions of the macro
25458 `CONDITIONAL_REGISTER_USAGE', or by the user with the command
25459 options `-ffixed-REG', `-fcall-used-REG' and `-fcall-saved-REG'.
25461 -- Macro: CALL_USED_REGISTERS
25462 Like `FIXED_REGISTERS' but has 1 for each register that is
25463 clobbered (in general) by function calls as well as for fixed
25464 registers. This macro therefore identifies the registers that are
25465 not available for general allocation of values that must live
25466 across function calls.
25468 If a register has 0 in `CALL_USED_REGISTERS', the compiler
25469 automatically saves it on function entry and restores it on
25470 function exit, if the register is used within the function.
25472 -- Macro: CALL_REALLY_USED_REGISTERS
25473 Like `CALL_USED_REGISTERS' except this macro doesn't require that
25474 the entire set of `FIXED_REGISTERS' be included.
25475 (`CALL_USED_REGISTERS' must be a superset of `FIXED_REGISTERS').
25476 This macro is optional. If not specified, it defaults to the value
25477 of `CALL_USED_REGISTERS'.
25479 -- Macro: HARD_REGNO_CALL_PART_CLOBBERED (REGNO, MODE)
25480 A C expression that is nonzero if it is not permissible to store a
25481 value of mode MODE in hard register number REGNO across a call
25482 without some part of it being clobbered. For most machines this
25483 macro need not be defined. It is only required for machines that
25484 do not preserve the entire contents of a register across a call.
25486 -- Macro: CONDITIONAL_REGISTER_USAGE
25487 Zero or more C statements that may conditionally modify five
25488 variables `fixed_regs', `call_used_regs', `global_regs',
25489 `reg_names', and `reg_class_contents', to take into account any
25490 dependence of these register sets on target flags. The first three
25491 of these are of type `char []' (interpreted as Boolean vectors).
25492 `global_regs' is a `const char *[]', and `reg_class_contents' is a
25493 `HARD_REG_SET'. Before the macro is called, `fixed_regs',
25494 `call_used_regs', `reg_class_contents', and `reg_names' have been
25495 initialized from `FIXED_REGISTERS', `CALL_USED_REGISTERS',
25496 `REG_CLASS_CONTENTS', and `REGISTER_NAMES', respectively.
25497 `global_regs' has been cleared, and any `-ffixed-REG',
25498 `-fcall-used-REG' and `-fcall-saved-REG' command options have been
25501 You need not define this macro if it has no work to do.
25503 If the usage of an entire class of registers depends on the target
25504 flags, you may indicate this to GCC by using this macro to modify
25505 `fixed_regs' and `call_used_regs' to 1 for each of the registers
25506 in the classes which should not be used by GCC. Also define the
25507 macro `REG_CLASS_FROM_LETTER' / `REG_CLASS_FROM_CONSTRAINT' to
25508 return `NO_REGS' if it is called with a letter for a class that
25511 (However, if this class is not included in `GENERAL_REGS' and all
25512 of the insn patterns whose constraints permit this class are
25513 controlled by target switches, then GCC will automatically avoid
25514 using these registers when the target switches are opposed to
25517 -- Macro: INCOMING_REGNO (OUT)
25518 Define this macro if the target machine has register windows.
25519 This C expression returns the register number as seen by the
25520 called function corresponding to the register number OUT as seen
25521 by the calling function. Return OUT if register number OUT is not
25522 an outbound register.
25524 -- Macro: OUTGOING_REGNO (IN)
25525 Define this macro if the target machine has register windows.
25526 This C expression returns the register number as seen by the
25527 calling function corresponding to the register number IN as seen
25528 by the called function. Return IN if register number IN is not an
25531 -- Macro: LOCAL_REGNO (REGNO)
25532 Define this macro if the target machine has register windows.
25533 This C expression returns true if the register is call-saved but
25534 is in the register window. Unlike most call-saved registers, such
25535 registers need not be explicitly restored on function exit or
25536 during non-local gotos.
25538 -- Macro: PC_REGNUM
25539 If the program counter has a register number, define this as that
25540 register number. Otherwise, do not define it.
25543 File: gccint.info, Node: Allocation Order, Next: Values in Registers, Prev: Register Basics, Up: Registers
25545 17.7.2 Order of Allocation of Registers
25546 ---------------------------------------
25548 Registers are allocated in order.
25550 -- Macro: REG_ALLOC_ORDER
25551 If defined, an initializer for a vector of integers, containing the
25552 numbers of hard registers in the order in which GCC should prefer
25553 to use them (from most preferred to least).
25555 If this macro is not defined, registers are used lowest numbered
25556 first (all else being equal).
25558 One use of this macro is on machines where the highest numbered
25559 registers must always be saved and the save-multiple-registers
25560 instruction supports only sequences of consecutive registers. On
25561 such machines, define `REG_ALLOC_ORDER' to be an initializer that
25562 lists the highest numbered allocable register first.
25564 -- Macro: ORDER_REGS_FOR_LOCAL_ALLOC
25565 A C statement (sans semicolon) to choose the order in which to
25566 allocate hard registers for pseudo-registers local to a basic
25569 Store the desired register order in the array `reg_alloc_order'.
25570 Element 0 should be the register to allocate first; element 1, the
25571 next register; and so on.
25573 The macro body should not assume anything about the contents of
25574 `reg_alloc_order' before execution of the macro.
25576 On most machines, it is not necessary to define this macro.
25578 -- Macro: IRA_HARD_REGNO_ADD_COST_MULTIPLIER (REGNO)
25579 In some case register allocation order is not enough for the
25580 Integrated Register Allocator (IRA) to generate a good code. If
25581 this macro is defined, it should return a floating point value
25582 based on REGNO. The cost of using REGNO for a pseudo will be
25583 increased by approximately the pseudo's usage frequency times the
25584 value returned by this macro. Not defining this macro is
25585 equivalent to having it always return `0.0'.
25587 On most machines, it is not necessary to define this macro.
25590 File: gccint.info, Node: Values in Registers, Next: Leaf Functions, Prev: Allocation Order, Up: Registers
25592 17.7.3 How Values Fit in Registers
25593 ----------------------------------
25595 This section discusses the macros that describe which kinds of values
25596 (specifically, which machine modes) each register can hold, and how many
25597 consecutive registers are needed for a given mode.
25599 -- Macro: HARD_REGNO_NREGS (REGNO, MODE)
25600 A C expression for the number of consecutive hard registers,
25601 starting at register number REGNO, required to hold a value of mode
25602 MODE. This macro must never return zero, even if a register
25603 cannot hold the requested mode - indicate that with
25604 HARD_REGNO_MODE_OK and/or CANNOT_CHANGE_MODE_CLASS instead.
25606 On a machine where all registers are exactly one word, a suitable
25607 definition of this macro is
25609 #define HARD_REGNO_NREGS(REGNO, MODE) \
25610 ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) \
25613 -- Macro: HARD_REGNO_NREGS_HAS_PADDING (REGNO, MODE)
25614 A C expression that is nonzero if a value of mode MODE, stored in
25615 memory, ends with padding that causes it to take up more space than
25616 in registers starting at register number REGNO (as determined by
25617 multiplying GCC's notion of the size of the register when
25618 containing this mode by the number of registers returned by
25619 `HARD_REGNO_NREGS'). By default this is zero.
25621 For example, if a floating-point value is stored in three 32-bit
25622 registers but takes up 128 bits in memory, then this would be
25625 This macros only needs to be defined if there are cases where
25626 `subreg_get_info' would otherwise wrongly determine that a
25627 `subreg' can be represented by an offset to the register number,
25628 when in fact such a `subreg' would contain some of the padding not
25629 stored in registers and so not be representable.
25631 -- Macro: HARD_REGNO_NREGS_WITH_PADDING (REGNO, MODE)
25632 For values of REGNO and MODE for which
25633 `HARD_REGNO_NREGS_HAS_PADDING' returns nonzero, a C expression
25634 returning the greater number of registers required to hold the
25635 value including any padding. In the example above, the value
25638 -- Macro: REGMODE_NATURAL_SIZE (MODE)
25639 Define this macro if the natural size of registers that hold values
25640 of mode MODE is not the word size. It is a C expression that
25641 should give the natural size in bytes for the specified mode. It
25642 is used by the register allocator to try to optimize its results.
25643 This happens for example on SPARC 64-bit where the natural size of
25644 floating-point registers is still 32-bit.
25646 -- Macro: HARD_REGNO_MODE_OK (REGNO, MODE)
25647 A C expression that is nonzero if it is permissible to store a
25648 value of mode MODE in hard register number REGNO (or in several
25649 registers starting with that one). For a machine where all
25650 registers are equivalent, a suitable definition is
25652 #define HARD_REGNO_MODE_OK(REGNO, MODE) 1
25654 You need not include code to check for the numbers of fixed
25655 registers, because the allocation mechanism considers them to be
25658 On some machines, double-precision values must be kept in even/odd
25659 register pairs. You can implement that by defining this macro to
25660 reject odd register numbers for such modes.
25662 The minimum requirement for a mode to be OK in a register is that
25663 the `movMODE' instruction pattern support moves between the
25664 register and other hard register in the same class and that moving
25665 a value into the register and back out not alter it.
25667 Since the same instruction used to move `word_mode' will work for
25668 all narrower integer modes, it is not necessary on any machine for
25669 `HARD_REGNO_MODE_OK' to distinguish between these modes, provided
25670 you define patterns `movhi', etc., to take advantage of this. This
25671 is useful because of the interaction between `HARD_REGNO_MODE_OK'
25672 and `MODES_TIEABLE_P'; it is very desirable for all integer modes
25675 Many machines have special registers for floating point arithmetic.
25676 Often people assume that floating point machine modes are allowed
25677 only in floating point registers. This is not true. Any
25678 registers that can hold integers can safely _hold_ a floating
25679 point machine mode, whether or not floating arithmetic can be done
25680 on it in those registers. Integer move instructions can be used
25681 to move the values.
25683 On some machines, though, the converse is true: fixed-point machine
25684 modes may not go in floating registers. This is true if the
25685 floating registers normalize any value stored in them, because
25686 storing a non-floating value there would garble it. In this case,
25687 `HARD_REGNO_MODE_OK' should reject fixed-point machine modes in
25688 floating registers. But if the floating registers do not
25689 automatically normalize, if you can store any bit pattern in one
25690 and retrieve it unchanged without a trap, then any machine mode
25691 may go in a floating register, so you can define this macro to say
25694 The primary significance of special floating registers is rather
25695 that they are the registers acceptable in floating point arithmetic
25696 instructions. However, this is of no concern to
25697 `HARD_REGNO_MODE_OK'. You handle it by writing the proper
25698 constraints for those instructions.
25700 On some machines, the floating registers are especially slow to
25701 access, so that it is better to store a value in a stack frame
25702 than in such a register if floating point arithmetic is not being
25703 done. As long as the floating registers are not in class
25704 `GENERAL_REGS', they will not be used unless some pattern's
25705 constraint asks for one.
25707 -- Macro: HARD_REGNO_RENAME_OK (FROM, TO)
25708 A C expression that is nonzero if it is OK to rename a hard
25709 register FROM to another hard register TO.
25711 One common use of this macro is to prevent renaming of a register
25712 to another register that is not saved by a prologue in an interrupt
25715 The default is always nonzero.
25717 -- Macro: MODES_TIEABLE_P (MODE1, MODE2)
25718 A C expression that is nonzero if a value of mode MODE1 is
25719 accessible in mode MODE2 without copying.
25721 If `HARD_REGNO_MODE_OK (R, MODE1)' and `HARD_REGNO_MODE_OK (R,
25722 MODE2)' are always the same for any R, then `MODES_TIEABLE_P
25723 (MODE1, MODE2)' should be nonzero. If they differ for any R, you
25724 should define this macro to return zero unless some other
25725 mechanism ensures the accessibility of the value in a narrower
25728 You should define this macro to return nonzero in as many cases as
25729 possible since doing so will allow GCC to perform better register
25732 -- Target Hook: bool TARGET_HARD_REGNO_SCRATCH_OK (unsigned int REGNO)
25733 This target hook should return `true' if it is OK to use a hard
25734 register REGNO as scratch reg in peephole2.
25736 One common use of this macro is to prevent using of a register that
25737 is not saved by a prologue in an interrupt handler.
25739 The default version of this hook always returns `true'.
25741 -- Macro: AVOID_CCMODE_COPIES
25742 Define this macro if the compiler should avoid copies to/from
25743 `CCmode' registers. You should only define this macro if support
25744 for copying to/from `CCmode' is incomplete.
25747 File: gccint.info, Node: Leaf Functions, Next: Stack Registers, Prev: Values in Registers, Up: Registers
25749 17.7.4 Handling Leaf Functions
25750 ------------------------------
25752 On some machines, a leaf function (i.e., one which makes no calls) can
25753 run more efficiently if it does not make its own register window.
25754 Often this means it is required to receive its arguments in the
25755 registers where they are passed by the caller, instead of the registers
25756 where they would normally arrive.
25758 The special treatment for leaf functions generally applies only when
25759 other conditions are met; for example, often they may use only those
25760 registers for its own variables and temporaries. We use the term "leaf
25761 function" to mean a function that is suitable for this special
25762 handling, so that functions with no calls are not necessarily "leaf
25765 GCC assigns register numbers before it knows whether the function is
25766 suitable for leaf function treatment. So it needs to renumber the
25767 registers in order to output a leaf function. The following macros
25770 -- Macro: LEAF_REGISTERS
25771 Name of a char vector, indexed by hard register number, which
25772 contains 1 for a register that is allowable in a candidate for leaf
25773 function treatment.
25775 If leaf function treatment involves renumbering the registers,
25776 then the registers marked here should be the ones before
25777 renumbering--those that GCC would ordinarily allocate. The
25778 registers which will actually be used in the assembler code, after
25779 renumbering, should not be marked with 1 in this vector.
25781 Define this macro only if the target machine offers a way to
25782 optimize the treatment of leaf functions.
25784 -- Macro: LEAF_REG_REMAP (REGNO)
25785 A C expression whose value is the register number to which REGNO
25786 should be renumbered, when a function is treated as a leaf
25789 If REGNO is a register number which should not appear in a leaf
25790 function before renumbering, then the expression should yield -1,
25791 which will cause the compiler to abort.
25793 Define this macro only if the target machine offers a way to
25794 optimize the treatment of leaf functions, and registers need to be
25795 renumbered to do this.
25797 `TARGET_ASM_FUNCTION_PROLOGUE' and `TARGET_ASM_FUNCTION_EPILOGUE' must
25798 usually treat leaf functions specially. They can test the C variable
25799 `current_function_is_leaf' which is nonzero for leaf functions.
25800 `current_function_is_leaf' is set prior to local register allocation
25801 and is valid for the remaining compiler passes. They can also test the
25802 C variable `current_function_uses_only_leaf_regs' which is nonzero for
25803 leaf functions which only use leaf registers.
25804 `current_function_uses_only_leaf_regs' is valid after all passes that
25805 modify the instructions have been run and is only useful if
25806 `LEAF_REGISTERS' is defined.
25809 File: gccint.info, Node: Stack Registers, Prev: Leaf Functions, Up: Registers
25811 17.7.5 Registers That Form a Stack
25812 ----------------------------------
25814 There are special features to handle computers where some of the
25815 "registers" form a stack. Stack registers are normally written by
25816 pushing onto the stack, and are numbered relative to the top of the
25819 Currently, GCC can only handle one group of stack-like registers, and
25820 they must be consecutively numbered. Furthermore, the existing support
25821 for stack-like registers is specific to the 80387 floating point
25822 coprocessor. If you have a new architecture that uses stack-like
25823 registers, you will need to do substantial work on `reg-stack.c' and
25824 write your machine description to cooperate with it, as well as
25825 defining these macros.
25827 -- Macro: STACK_REGS
25828 Define this if the machine has any stack-like registers.
25830 -- Macro: FIRST_STACK_REG
25831 The number of the first stack-like register. This one is the top
25834 -- Macro: LAST_STACK_REG
25835 The number of the last stack-like register. This one is the
25836 bottom of the stack.
25839 File: gccint.info, Node: Register Classes, Next: Old Constraints, Prev: Registers, Up: Target Macros
25841 17.8 Register Classes
25842 =====================
25844 On many machines, the numbered registers are not all equivalent. For
25845 example, certain registers may not be allowed for indexed addressing;
25846 certain registers may not be allowed in some instructions. These
25847 machine restrictions are described to the compiler using "register
25850 You define a number of register classes, giving each one a name and
25851 saying which of the registers belong to it. Then you can specify
25852 register classes that are allowed as operands to particular instruction
25855 In general, each register will belong to several classes. In fact, one
25856 class must be named `ALL_REGS' and contain all the registers. Another
25857 class must be named `NO_REGS' and contain no registers. Often the
25858 union of two classes will be another class; however, this is not
25861 One of the classes must be named `GENERAL_REGS'. There is nothing
25862 terribly special about the name, but the operand constraint letters `r'
25863 and `g' specify this class. If `GENERAL_REGS' is the same as
25864 `ALL_REGS', just define it as a macro which expands to `ALL_REGS'.
25866 Order the classes so that if class X is contained in class Y then X
25867 has a lower class number than Y.
25869 The way classes other than `GENERAL_REGS' are specified in operand
25870 constraints is through machine-dependent operand constraint letters.
25871 You can define such letters to correspond to various classes, then use
25872 them in operand constraints.
25874 You should define a class for the union of two classes whenever some
25875 instruction allows both classes. For example, if an instruction allows
25876 either a floating point (coprocessor) register or a general register
25877 for a certain operand, you should define a class `FLOAT_OR_GENERAL_REGS'
25878 which includes both of them. Otherwise you will get suboptimal code.
25880 You must also specify certain redundant information about the register
25881 classes: for each class, which classes contain it and which ones are
25882 contained in it; for each pair of classes, the largest class contained
25885 When a value occupying several consecutive registers is expected in a
25886 certain class, all the registers used must belong to that class.
25887 Therefore, register classes cannot be used to enforce a requirement for
25888 a register pair to start with an even-numbered register. The way to
25889 specify this requirement is with `HARD_REGNO_MODE_OK'.
25891 Register classes used for input-operands of bitwise-and or shift
25892 instructions have a special requirement: each such class must have, for
25893 each fixed-point machine mode, a subclass whose registers can transfer
25894 that mode to or from memory. For example, on some machines, the
25895 operations for single-byte values (`QImode') are limited to certain
25896 registers. When this is so, each register class that is used in a
25897 bitwise-and or shift instruction must have a subclass consisting of
25898 registers from which single-byte values can be loaded or stored. This
25899 is so that `PREFERRED_RELOAD_CLASS' can always have a possible value to
25902 -- Data type: enum reg_class
25903 An enumerated type that must be defined with all the register
25904 class names as enumerated values. `NO_REGS' must be first.
25905 `ALL_REGS' must be the last register class, followed by one more
25906 enumerated value, `LIM_REG_CLASSES', which is not a register class
25907 but rather tells how many classes there are.
25909 Each register class has a number, which is the value of casting
25910 the class name to type `int'. The number serves as an index in
25911 many of the tables described below.
25913 -- Macro: N_REG_CLASSES
25914 The number of distinct register classes, defined as follows:
25916 #define N_REG_CLASSES (int) LIM_REG_CLASSES
25918 -- Macro: REG_CLASS_NAMES
25919 An initializer containing the names of the register classes as C
25920 string constants. These names are used in writing some of the
25923 -- Macro: REG_CLASS_CONTENTS
25924 An initializer containing the contents of the register classes, as
25925 integers which are bit masks. The Nth integer specifies the
25926 contents of class N. The way the integer MASK is interpreted is
25927 that register R is in the class if `MASK & (1 << R)' is 1.
25929 When the machine has more than 32 registers, an integer does not
25930 suffice. Then the integers are replaced by sub-initializers,
25931 braced groupings containing several integers. Each
25932 sub-initializer must be suitable as an initializer for the type
25933 `HARD_REG_SET' which is defined in `hard-reg-set.h'. In this
25934 situation, the first integer in each sub-initializer corresponds to
25935 registers 0 through 31, the second integer to registers 32 through
25938 -- Macro: REGNO_REG_CLASS (REGNO)
25939 A C expression whose value is a register class containing hard
25940 register REGNO. In general there is more than one such class;
25941 choose a class which is "minimal", meaning that no smaller class
25942 also contains the register.
25944 -- Macro: BASE_REG_CLASS
25945 A macro whose definition is the name of the class to which a valid
25946 base register must belong. A base register is one used in an
25947 address which is the register value plus a displacement.
25949 -- Macro: MODE_BASE_REG_CLASS (MODE)
25950 This is a variation of the `BASE_REG_CLASS' macro which allows the
25951 selection of a base register in a mode dependent manner. If MODE
25952 is VOIDmode then it should return the same value as
25955 -- Macro: MODE_BASE_REG_REG_CLASS (MODE)
25956 A C expression whose value is the register class to which a valid
25957 base register must belong in order to be used in a base plus index
25958 register address. You should define this macro if base plus index
25959 addresses have different requirements than other base register
25962 -- Macro: MODE_CODE_BASE_REG_CLASS (MODE, OUTER_CODE, INDEX_CODE)
25963 A C expression whose value is the register class to which a valid
25964 base register must belong. OUTER_CODE and INDEX_CODE define the
25965 context in which the base register occurs. OUTER_CODE is the code
25966 of the immediately enclosing expression (`MEM' for the top level
25967 of an address, `ADDRESS' for something that occurs in an
25968 `address_operand'). INDEX_CODE is the code of the corresponding
25969 index expression if OUTER_CODE is `PLUS'; `SCRATCH' otherwise.
25971 -- Macro: INDEX_REG_CLASS
25972 A macro whose definition is the name of the class to which a valid
25973 index register must belong. An index register is one used in an
25974 address where its value is either multiplied by a scale factor or
25975 added to another register (as well as added to a displacement).
25977 -- Macro: REGNO_OK_FOR_BASE_P (NUM)
25978 A C expression which is nonzero if register number NUM is suitable
25979 for use as a base register in operand addresses. It may be either
25980 a suitable hard register or a pseudo register that has been
25981 allocated such a hard register.
25983 -- Macro: REGNO_MODE_OK_FOR_BASE_P (NUM, MODE)
25984 A C expression that is just like `REGNO_OK_FOR_BASE_P', except that
25985 that expression may examine the mode of the memory reference in
25986 MODE. You should define this macro if the mode of the memory
25987 reference affects whether a register may be used as a base
25988 register. If you define this macro, the compiler will use it
25989 instead of `REGNO_OK_FOR_BASE_P'. The mode may be `VOIDmode' for
25990 addresses that appear outside a `MEM', i.e., as an
25994 -- Macro: REGNO_MODE_OK_FOR_REG_BASE_P (NUM, MODE)
25995 A C expression which is nonzero if register number NUM is suitable
25996 for use as a base register in base plus index operand addresses,
25997 accessing memory in mode MODE. It may be either a suitable hard
25998 register or a pseudo register that has been allocated such a hard
25999 register. You should define this macro if base plus index
26000 addresses have different requirements than other base register
26003 Use of this macro is deprecated; please use the more general
26004 `REGNO_MODE_CODE_OK_FOR_BASE_P'.
26006 -- Macro: REGNO_MODE_CODE_OK_FOR_BASE_P (NUM, MODE, OUTER_CODE,
26008 A C expression that is just like `REGNO_MODE_OK_FOR_BASE_P', except
26009 that that expression may examine the context in which the register
26010 appears in the memory reference. OUTER_CODE is the code of the
26011 immediately enclosing expression (`MEM' if at the top level of the
26012 address, `ADDRESS' for something that occurs in an
26013 `address_operand'). INDEX_CODE is the code of the corresponding
26014 index expression if OUTER_CODE is `PLUS'; `SCRATCH' otherwise.
26015 The mode may be `VOIDmode' for addresses that appear outside a
26016 `MEM', i.e., as an `address_operand'.
26018 -- Macro: REGNO_OK_FOR_INDEX_P (NUM)
26019 A C expression which is nonzero if register number NUM is suitable
26020 for use as an index register in operand addresses. It may be
26021 either a suitable hard register or a pseudo register that has been
26022 allocated such a hard register.
26024 The difference between an index register and a base register is
26025 that the index register may be scaled. If an address involves the
26026 sum of two registers, neither one of them scaled, then either one
26027 may be labeled the "base" and the other the "index"; but whichever
26028 labeling is used must fit the machine's constraints of which
26029 registers may serve in each capacity. The compiler will try both
26030 labelings, looking for one that is valid, and will reload one or
26031 both registers only if neither labeling works.
26033 -- Macro: PREFERRED_RELOAD_CLASS (X, CLASS)
26034 A C expression that places additional restrictions on the register
26035 class to use when it is necessary to copy value X into a register
26036 in class CLASS. The value is a register class; perhaps CLASS, or
26037 perhaps another, smaller class. On many machines, the following
26038 definition is safe:
26040 #define PREFERRED_RELOAD_CLASS(X,CLASS) CLASS
26042 Sometimes returning a more restrictive class makes better code.
26043 For example, on the 68000, when X is an integer constant that is
26044 in range for a `moveq' instruction, the value of this macro is
26045 always `DATA_REGS' as long as CLASS includes the data registers.
26046 Requiring a data register guarantees that a `moveq' will be used.
26048 One case where `PREFERRED_RELOAD_CLASS' must not return CLASS is
26049 if X is a legitimate constant which cannot be loaded into some
26050 register class. By returning `NO_REGS' you can force X into a
26051 memory location. For example, rs6000 can load immediate values
26052 into general-purpose registers, but does not have an instruction
26053 for loading an immediate value into a floating-point register, so
26054 `PREFERRED_RELOAD_CLASS' returns `NO_REGS' when X is a
26055 floating-point constant. If the constant can't be loaded into any
26056 kind of register, code generation will be better if
26057 `LEGITIMATE_CONSTANT_P' makes the constant illegitimate instead of
26058 using `PREFERRED_RELOAD_CLASS'.
26060 If an insn has pseudos in it after register allocation, reload
26061 will go through the alternatives and call repeatedly
26062 `PREFERRED_RELOAD_CLASS' to find the best one. Returning
26063 `NO_REGS', in this case, makes reload add a `!' in front of the
26064 constraint: the x86 back-end uses this feature to discourage usage
26065 of 387 registers when math is done in the SSE registers (and vice
26068 -- Macro: PREFERRED_OUTPUT_RELOAD_CLASS (X, CLASS)
26069 Like `PREFERRED_RELOAD_CLASS', but for output reloads instead of
26070 input reloads. If you don't define this macro, the default is to
26071 use CLASS, unchanged.
26073 You can also use `PREFERRED_OUTPUT_RELOAD_CLASS' to discourage
26074 reload from using some alternatives, like `PREFERRED_RELOAD_CLASS'.
26076 -- Macro: LIMIT_RELOAD_CLASS (MODE, CLASS)
26077 A C expression that places additional restrictions on the register
26078 class to use when it is necessary to be able to hold a value of
26079 mode MODE in a reload register for which class CLASS would
26080 ordinarily be used.
26082 Unlike `PREFERRED_RELOAD_CLASS', this macro should be used when
26083 there are certain modes that simply can't go in certain reload
26086 The value is a register class; perhaps CLASS, or perhaps another,
26089 Don't define this macro unless the target machine has limitations
26090 which require the macro to do something nontrivial.
26092 -- Target Hook: enum reg_class TARGET_SECONDARY_RELOAD (bool IN_P, rtx
26093 X, enum reg_class RELOAD_CLASS, enum machine_mode
26094 RELOAD_MODE, secondary_reload_info *SRI)
26095 Many machines have some registers that cannot be copied directly
26096 to or from memory or even from other types of registers. An
26097 example is the `MQ' register, which on most machines, can only be
26098 copied to or from general registers, but not memory. Below, we
26099 shall be using the term 'intermediate register' when a move
26100 operation cannot be performed directly, but has to be done by
26101 copying the source into the intermediate register first, and then
26102 copying the intermediate register to the destination. An
26103 intermediate register always has the same mode as source and
26104 destination. Since it holds the actual value being copied, reload
26105 might apply optimizations to re-use an intermediate register and
26106 eliding the copy from the source when it can determine that the
26107 intermediate register still holds the required value.
26109 Another kind of secondary reload is required on some machines which
26110 allow copying all registers to and from memory, but require a
26111 scratch register for stores to some memory locations (e.g., those
26112 with symbolic address on the RT, and those with certain symbolic
26113 address on the SPARC when compiling PIC). Scratch registers need
26114 not have the same mode as the value being copied, and usually hold
26115 a different value that that being copied. Special patterns in the
26116 md file are needed to describe how the copy is performed with the
26117 help of the scratch register; these patterns also describe the
26118 number, register class(es) and mode(s) of the scratch register(s).
26120 In some cases, both an intermediate and a scratch register are
26123 For input reloads, this target hook is called with nonzero IN_P,
26124 and X is an rtx that needs to be copied to a register of class
26125 RELOAD_CLASS in RELOAD_MODE. For output reloads, this target hook
26126 is called with zero IN_P, and a register of class RELOAD_CLASS
26127 needs to be copied to rtx X in RELOAD_MODE.
26129 If copying a register of RELOAD_CLASS from/to X requires an
26130 intermediate register, the hook `secondary_reload' should return
26131 the register class required for this intermediate register. If no
26132 intermediate register is required, it should return NO_REGS. If
26133 more than one intermediate register is required, describe the one
26134 that is closest in the copy chain to the reload register.
26136 If scratch registers are needed, you also have to describe how to
26137 perform the copy from/to the reload register to/from this closest
26138 intermediate register. Or if no intermediate register is
26139 required, but still a scratch register is needed, describe the
26140 copy from/to the reload register to/from the reload operand X.
26142 You do this by setting `sri->icode' to the instruction code of a
26143 pattern in the md file which performs the move. Operands 0 and 1
26144 are the output and input of this copy, respectively. Operands
26145 from operand 2 onward are for scratch operands. These scratch
26146 operands must have a mode, and a single-register-class output
26149 When an intermediate register is used, the `secondary_reload' hook
26150 will be called again to determine how to copy the intermediate
26151 register to/from the reload operand X, so your hook must also have
26152 code to handle the register class of the intermediate operand.
26154 X might be a pseudo-register or a `subreg' of a pseudo-register,
26155 which could either be in a hard register or in memory. Use
26156 `true_regnum' to find out; it will return -1 if the pseudo is in
26157 memory and the hard register number if it is in a register.
26159 Scratch operands in memory (constraint `"=m"' / `"=&m"') are
26160 currently not supported. For the time being, you will have to
26161 continue to use `SECONDARY_MEMORY_NEEDED' for that purpose.
26163 `copy_cost' also uses this target hook to find out how values are
26164 copied. If you want it to include some extra cost for the need to
26165 allocate (a) scratch register(s), set `sri->extra_cost' to the
26166 additional cost. Or if two dependent moves are supposed to have a
26167 lower cost than the sum of the individual moves due to expected
26168 fortuitous scheduling and/or special forwarding logic, you can set
26169 `sri->extra_cost' to a negative amount.
26171 -- Macro: SECONDARY_RELOAD_CLASS (CLASS, MODE, X)
26172 -- Macro: SECONDARY_INPUT_RELOAD_CLASS (CLASS, MODE, X)
26173 -- Macro: SECONDARY_OUTPUT_RELOAD_CLASS (CLASS, MODE, X)
26174 These macros are obsolete, new ports should use the target hook
26175 `TARGET_SECONDARY_RELOAD' instead.
26177 These are obsolete macros, replaced by the
26178 `TARGET_SECONDARY_RELOAD' target hook. Older ports still define
26179 these macros to indicate to the reload phase that it may need to
26180 allocate at least one register for a reload in addition to the
26181 register to contain the data. Specifically, if copying X to a
26182 register CLASS in MODE requires an intermediate register, you were
26183 supposed to define `SECONDARY_INPUT_RELOAD_CLASS' to return the
26184 largest register class all of whose registers can be used as
26185 intermediate registers or scratch registers.
26187 If copying a register CLASS in MODE to X requires an intermediate
26188 or scratch register, `SECONDARY_OUTPUT_RELOAD_CLASS' was supposed
26189 to be defined be defined to return the largest register class
26190 required. If the requirements for input and output reloads were
26191 the same, the macro `SECONDARY_RELOAD_CLASS' should have been used
26192 instead of defining both macros identically.
26194 The values returned by these macros are often `GENERAL_REGS'.
26195 Return `NO_REGS' if no spare register is needed; i.e., if X can be
26196 directly copied to or from a register of CLASS in MODE without
26197 requiring a scratch register. Do not define this macro if it
26198 would always return `NO_REGS'.
26200 If a scratch register is required (either with or without an
26201 intermediate register), you were supposed to define patterns for
26202 `reload_inM' or `reload_outM', as required (*note Standard
26203 Names::. These patterns, which were normally implemented with a
26204 `define_expand', should be similar to the `movM' patterns, except
26205 that operand 2 is the scratch register.
26207 These patterns need constraints for the reload register and scratch
26208 register that contain a single register class. If the original
26209 reload register (whose class is CLASS) can meet the constraint
26210 given in the pattern, the value returned by these macros is used
26211 for the class of the scratch register. Otherwise, two additional
26212 reload registers are required. Their classes are obtained from
26213 the constraints in the insn pattern.
26215 X might be a pseudo-register or a `subreg' of a pseudo-register,
26216 which could either be in a hard register or in memory. Use
26217 `true_regnum' to find out; it will return -1 if the pseudo is in
26218 memory and the hard register number if it is in a register.
26220 These macros should not be used in the case where a particular
26221 class of registers can only be copied to memory and not to another
26222 class of registers. In that case, secondary reload registers are
26223 not needed and would not be helpful. Instead, a stack location
26224 must be used to perform the copy and the `movM' pattern should use
26225 memory as an intermediate storage. This case often occurs between
26226 floating-point and general registers.
26228 -- Macro: SECONDARY_MEMORY_NEEDED (CLASS1, CLASS2, M)
26229 Certain machines have the property that some registers cannot be
26230 copied to some other registers without using memory. Define this
26231 macro on those machines to be a C expression that is nonzero if
26232 objects of mode M in registers of CLASS1 can only be copied to
26233 registers of class CLASS2 by storing a register of CLASS1 into
26234 memory and loading that memory location into a register of CLASS2.
26236 Do not define this macro if its value would always be zero.
26238 -- Macro: SECONDARY_MEMORY_NEEDED_RTX (MODE)
26239 Normally when `SECONDARY_MEMORY_NEEDED' is defined, the compiler
26240 allocates a stack slot for a memory location needed for register
26241 copies. If this macro is defined, the compiler instead uses the
26242 memory location defined by this macro.
26244 Do not define this macro if you do not define
26245 `SECONDARY_MEMORY_NEEDED'.
26247 -- Macro: SECONDARY_MEMORY_NEEDED_MODE (MODE)
26248 When the compiler needs a secondary memory location to copy
26249 between two registers of mode MODE, it normally allocates
26250 sufficient memory to hold a quantity of `BITS_PER_WORD' bits and
26251 performs the store and load operations in a mode that many bits
26252 wide and whose class is the same as that of MODE.
26254 This is right thing to do on most machines because it ensures that
26255 all bits of the register are copied and prevents accesses to the
26256 registers in a narrower mode, which some machines prohibit for
26257 floating-point registers.
26259 However, this default behavior is not correct on some machines,
26260 such as the DEC Alpha, that store short integers in floating-point
26261 registers differently than in integer registers. On those
26262 machines, the default widening will not work correctly and you
26263 must define this macro to suppress that widening in some cases.
26264 See the file `alpha.h' for details.
26266 Do not define this macro if you do not define
26267 `SECONDARY_MEMORY_NEEDED' or if widening MODE to a mode that is
26268 `BITS_PER_WORD' bits wide is correct for your machine.
26270 -- Macro: SMALL_REGISTER_CLASSES
26271 On some machines, it is risky to let hard registers live across
26272 arbitrary insns. Typically, these machines have instructions that
26273 require values to be in specific registers (like an accumulator),
26274 and reload will fail if the required hard register is used for
26275 another purpose across such an insn.
26277 Define `SMALL_REGISTER_CLASSES' to be an expression with a nonzero
26278 value on these machines. When this macro has a nonzero value, the
26279 compiler will try to minimize the lifetime of hard registers.
26281 It is always safe to define this macro with a nonzero value, but
26282 if you unnecessarily define it, you will reduce the amount of
26283 optimizations that can be performed in some cases. If you do not
26284 define this macro with a nonzero value when it is required, the
26285 compiler will run out of spill registers and print a fatal error
26286 message. For most machines, you should not define this macro at
26289 -- Macro: CLASS_LIKELY_SPILLED_P (CLASS)
26290 A C expression whose value is nonzero if pseudos that have been
26291 assigned to registers of class CLASS would likely be spilled
26292 because registers of CLASS are needed for spill registers.
26294 The default value of this macro returns 1 if CLASS has exactly one
26295 register and zero otherwise. On most machines, this default
26296 should be used. Only define this macro to some other expression
26297 if pseudos allocated by `local-alloc.c' end up in memory because
26298 their hard registers were needed for spill registers. If this
26299 macro returns nonzero for those classes, those pseudos will only
26300 be allocated by `global.c', which knows how to reallocate the
26301 pseudo to another register. If there would not be another
26302 register available for reallocation, you should not change the
26303 definition of this macro since the only effect of such a
26304 definition would be to slow down register allocation.
26306 -- Macro: CLASS_MAX_NREGS (CLASS, MODE)
26307 A C expression for the maximum number of consecutive registers of
26308 class CLASS needed to hold a value of mode MODE.
26310 This is closely related to the macro `HARD_REGNO_NREGS'. In fact,
26311 the value of the macro `CLASS_MAX_NREGS (CLASS, MODE)' should be
26312 the maximum value of `HARD_REGNO_NREGS (REGNO, MODE)' for all
26313 REGNO values in the class CLASS.
26315 This macro helps control the handling of multiple-word values in
26318 -- Macro: CANNOT_CHANGE_MODE_CLASS (FROM, TO, CLASS)
26319 If defined, a C expression that returns nonzero for a CLASS for
26320 which a change from mode FROM to mode TO is invalid.
26322 For the example, loading 32-bit integer or floating-point objects
26323 into floating-point registers on the Alpha extends them to 64 bits.
26324 Therefore loading a 64-bit object and then storing it as a 32-bit
26325 object does not store the low-order 32 bits, as would be the case
26326 for a normal register. Therefore, `alpha.h' defines
26327 `CANNOT_CHANGE_MODE_CLASS' as below:
26329 #define CANNOT_CHANGE_MODE_CLASS(FROM, TO, CLASS) \
26330 (GET_MODE_SIZE (FROM) != GET_MODE_SIZE (TO) \
26331 ? reg_classes_intersect_p (FLOAT_REGS, (CLASS)) : 0)
26333 -- Target Hook: const enum reg_class * TARGET_IRA_COVER_CLASSES ()
26334 Return an array of cover classes for the Integrated Register
26335 Allocator (IRA). Cover classes are a set of non-intersecting
26336 register classes covering all hard registers used for register
26337 allocation purposes. If a move between two registers in the same
26338 cover class is possible, it should be cheaper than a load or store
26339 of the registers. The array is terminated by a `LIM_REG_CLASSES'
26342 This hook is called once at compiler startup, after the
26343 command-line options have been processed. It is then re-examined
26344 by every call to `target_reinit'.
26346 The default implementation returns `IRA_COVER_CLASSES', if defined,
26347 otherwise there is no default implementation. You must define
26348 either this macro or `IRA_COVER_CLASSES' in order to use the
26349 integrated register allocator with Chaitin-Briggs coloring. If the
26350 macro is not defined, the only available coloring algorithm is
26351 Chow's priority coloring.
26353 -- Macro: IRA_COVER_CLASSES
26354 See the documentation for `TARGET_IRA_COVER_CLASSES'.
26357 File: gccint.info, Node: Old Constraints, Next: Stack and Calling, Prev: Register Classes, Up: Target Macros
26359 17.9 Obsolete Macros for Defining Constraints
26360 =============================================
26362 Machine-specific constraints can be defined with these macros instead
26363 of the machine description constructs described in *Note Define
26364 Constraints::. This mechanism is obsolete. New ports should not use
26365 it; old ports should convert to the new mechanism.
26367 -- Macro: CONSTRAINT_LEN (CHAR, STR)
26368 For the constraint at the start of STR, which starts with the
26369 letter C, return the length. This allows you to have register
26370 class / constant / extra constraints that are longer than a single
26371 letter; you don't need to define this macro if you can do with
26372 single-letter constraints only. The definition of this macro
26373 should use DEFAULT_CONSTRAINT_LEN for all the characters that you
26374 don't want to handle specially. There are some sanity checks in
26375 genoutput.c that check the constraint lengths for the md file, so
26376 you can also use this macro to help you while you are
26377 transitioning from a byzantine single-letter-constraint scheme:
26378 when you return a negative length for a constraint you want to
26379 re-use, genoutput will complain about every instance where it is
26380 used in the md file.
26382 -- Macro: REG_CLASS_FROM_LETTER (CHAR)
26383 A C expression which defines the machine-dependent operand
26384 constraint letters for register classes. If CHAR is such a
26385 letter, the value should be the register class corresponding to
26386 it. Otherwise, the value should be `NO_REGS'. The register
26387 letter `r', corresponding to class `GENERAL_REGS', will not be
26388 passed to this macro; you do not need to handle it.
26390 -- Macro: REG_CLASS_FROM_CONSTRAINT (CHAR, STR)
26391 Like `REG_CLASS_FROM_LETTER', but you also get the constraint
26392 string passed in STR, so that you can use suffixes to distinguish
26393 between different variants.
26395 -- Macro: CONST_OK_FOR_LETTER_P (VALUE, C)
26396 A C expression that defines the machine-dependent operand
26397 constraint letters (`I', `J', `K', ... `P') that specify
26398 particular ranges of integer values. If C is one of those
26399 letters, the expression should check that VALUE, an integer, is in
26400 the appropriate range and return 1 if so, 0 otherwise. If C is
26401 not one of those letters, the value should be 0 regardless of
26404 -- Macro: CONST_OK_FOR_CONSTRAINT_P (VALUE, C, STR)
26405 Like `CONST_OK_FOR_LETTER_P', but you also get the constraint
26406 string passed in STR, so that you can use suffixes to distinguish
26407 between different variants.
26409 -- Macro: CONST_DOUBLE_OK_FOR_LETTER_P (VALUE, C)
26410 A C expression that defines the machine-dependent operand
26411 constraint letters that specify particular ranges of
26412 `const_double' values (`G' or `H').
26414 If C is one of those letters, the expression should check that
26415 VALUE, an RTX of code `const_double', is in the appropriate range
26416 and return 1 if so, 0 otherwise. If C is not one of those
26417 letters, the value should be 0 regardless of VALUE.
26419 `const_double' is used for all floating-point constants and for
26420 `DImode' fixed-point constants. A given letter can accept either
26421 or both kinds of values. It can use `GET_MODE' to distinguish
26422 between these kinds.
26424 -- Macro: CONST_DOUBLE_OK_FOR_CONSTRAINT_P (VALUE, C, STR)
26425 Like `CONST_DOUBLE_OK_FOR_LETTER_P', but you also get the
26426 constraint string passed in STR, so that you can use suffixes to
26427 distinguish between different variants.
26429 -- Macro: EXTRA_CONSTRAINT (VALUE, C)
26430 A C expression that defines the optional machine-dependent
26431 constraint letters that can be used to segregate specific types of
26432 operands, usually memory references, for the target machine. Any
26433 letter that is not elsewhere defined and not matched by
26434 `REG_CLASS_FROM_LETTER' / `REG_CLASS_FROM_CONSTRAINT' may be used.
26435 Normally this macro will not be defined.
26437 If it is required for a particular target machine, it should
26438 return 1 if VALUE corresponds to the operand type represented by
26439 the constraint letter C. If C is not defined as an extra
26440 constraint, the value returned should be 0 regardless of VALUE.
26442 For example, on the ROMP, load instructions cannot have their
26443 output in r0 if the memory reference contains a symbolic address.
26444 Constraint letter `Q' is defined as representing a memory address
26445 that does _not_ contain a symbolic address. An alternative is
26446 specified with a `Q' constraint on the input and `r' on the
26447 output. The next alternative specifies `m' on the input and a
26448 register class that does not include r0 on the output.
26450 -- Macro: EXTRA_CONSTRAINT_STR (VALUE, C, STR)
26451 Like `EXTRA_CONSTRAINT', but you also get the constraint string
26452 passed in STR, so that you can use suffixes to distinguish between
26453 different variants.
26455 -- Macro: EXTRA_MEMORY_CONSTRAINT (C, STR)
26456 A C expression that defines the optional machine-dependent
26457 constraint letters, amongst those accepted by `EXTRA_CONSTRAINT',
26458 that should be treated like memory constraints by the reload pass.
26460 It should return 1 if the operand type represented by the
26461 constraint at the start of STR, the first letter of which is the
26462 letter C, comprises a subset of all memory references including
26463 all those whose address is simply a base register. This allows
26464 the reload pass to reload an operand, if it does not directly
26465 correspond to the operand type of C, by copying its address into a
26468 For example, on the S/390, some instructions do not accept
26469 arbitrary memory references, but only those that do not make use
26470 of an index register. The constraint letter `Q' is defined via
26471 `EXTRA_CONSTRAINT' as representing a memory address of this type.
26472 If the letter `Q' is marked as `EXTRA_MEMORY_CONSTRAINT', a `Q'
26473 constraint can handle any memory operand, because the reload pass
26474 knows it can be reloaded by copying the memory address into a base
26475 register if required. This is analogous to the way a `o'
26476 constraint can handle any memory operand.
26478 -- Macro: EXTRA_ADDRESS_CONSTRAINT (C, STR)
26479 A C expression that defines the optional machine-dependent
26480 constraint letters, amongst those accepted by `EXTRA_CONSTRAINT' /
26481 `EXTRA_CONSTRAINT_STR', that should be treated like address
26482 constraints by the reload pass.
26484 It should return 1 if the operand type represented by the
26485 constraint at the start of STR, which starts with the letter C,
26486 comprises a subset of all memory addresses including all those
26487 that consist of just a base register. This allows the reload pass
26488 to reload an operand, if it does not directly correspond to the
26489 operand type of STR, by copying it into a base register.
26491 Any constraint marked as `EXTRA_ADDRESS_CONSTRAINT' can only be
26492 used with the `address_operand' predicate. It is treated
26493 analogously to the `p' constraint.
26496 File: gccint.info, Node: Stack and Calling, Next: Varargs, Prev: Old Constraints, Up: Target Macros
26498 17.10 Stack Layout and Calling Conventions
26499 ==========================================
26501 This describes the stack layout and calling conventions.
26506 * Exception Handling::
26508 * Frame Registers::
26510 * Stack Arguments::
26511 * Register Arguments::
26513 * Aggregate Return::
26518 * Stack Smashing Protection::
26521 File: gccint.info, Node: Frame Layout, Next: Exception Handling, Up: Stack and Calling
26523 17.10.1 Basic Stack Layout
26524 --------------------------
26526 Here is the basic stack layout.
26528 -- Macro: STACK_GROWS_DOWNWARD
26529 Define this macro if pushing a word onto the stack moves the stack
26530 pointer to a smaller address.
26532 When we say, "define this macro if ...", it means that the
26533 compiler checks this macro only with `#ifdef' so the precise
26534 definition used does not matter.
26536 -- Macro: STACK_PUSH_CODE
26537 This macro defines the operation used when something is pushed on
26538 the stack. In RTL, a push operation will be `(set (mem
26539 (STACK_PUSH_CODE (reg sp))) ...)'
26541 The choices are `PRE_DEC', `POST_DEC', `PRE_INC', and `POST_INC'.
26542 Which of these is correct depends on the stack direction and on
26543 whether the stack pointer points to the last item on the stack or
26544 whether it points to the space for the next item on the stack.
26546 The default is `PRE_DEC' when `STACK_GROWS_DOWNWARD' is defined,
26547 which is almost always right, and `PRE_INC' otherwise, which is
26550 -- Macro: FRAME_GROWS_DOWNWARD
26551 Define this macro to nonzero value if the addresses of local
26552 variable slots are at negative offsets from the frame pointer.
26554 -- Macro: ARGS_GROW_DOWNWARD
26555 Define this macro if successive arguments to a function occupy
26556 decreasing addresses on the stack.
26558 -- Macro: STARTING_FRAME_OFFSET
26559 Offset from the frame pointer to the first local variable slot to
26562 If `FRAME_GROWS_DOWNWARD', find the next slot's offset by
26563 subtracting the first slot's length from `STARTING_FRAME_OFFSET'.
26564 Otherwise, it is found by adding the length of the first slot to
26565 the value `STARTING_FRAME_OFFSET'.
26567 -- Macro: STACK_ALIGNMENT_NEEDED
26568 Define to zero to disable final alignment of the stack during
26569 reload. The nonzero default for this macro is suitable for most
26572 On ports where `STARTING_FRAME_OFFSET' is nonzero or where there
26573 is a register save block following the local block that doesn't
26574 require alignment to `STACK_BOUNDARY', it may be beneficial to
26575 disable stack alignment and do it in the backend.
26577 -- Macro: STACK_POINTER_OFFSET
26578 Offset from the stack pointer register to the first location at
26579 which outgoing arguments are placed. If not specified, the
26580 default value of zero is used. This is the proper value for most
26583 If `ARGS_GROW_DOWNWARD', this is the offset to the location above
26584 the first location at which outgoing arguments are placed.
26586 -- Macro: FIRST_PARM_OFFSET (FUNDECL)
26587 Offset from the argument pointer register to the first argument's
26588 address. On some machines it may depend on the data type of the
26591 If `ARGS_GROW_DOWNWARD', this is the offset to the location above
26592 the first argument's address.
26594 -- Macro: STACK_DYNAMIC_OFFSET (FUNDECL)
26595 Offset from the stack pointer register to an item dynamically
26596 allocated on the stack, e.g., by `alloca'.
26598 The default value for this macro is `STACK_POINTER_OFFSET' plus the
26599 length of the outgoing arguments. The default is correct for most
26600 machines. See `function.c' for details.
26602 -- Macro: INITIAL_FRAME_ADDRESS_RTX
26603 A C expression whose value is RTL representing the address of the
26604 initial stack frame. This address is passed to `RETURN_ADDR_RTX'
26605 and `DYNAMIC_CHAIN_ADDRESS'. If you don't define this macro, a
26606 reasonable default value will be used. Define this macro in order
26607 to make frame pointer elimination work in the presence of
26608 `__builtin_frame_address (count)' and `__builtin_return_address
26609 (count)' for `count' not equal to zero.
26611 -- Macro: DYNAMIC_CHAIN_ADDRESS (FRAMEADDR)
26612 A C expression whose value is RTL representing the address in a
26613 stack frame where the pointer to the caller's frame is stored.
26614 Assume that FRAMEADDR is an RTL expression for the address of the
26615 stack frame itself.
26617 If you don't define this macro, the default is to return the value
26618 of FRAMEADDR--that is, the stack frame address is also the address
26619 of the stack word that points to the previous frame.
26621 -- Macro: SETUP_FRAME_ADDRESSES
26622 If defined, a C expression that produces the machine-specific code
26623 to setup the stack so that arbitrary frames can be accessed. For
26624 example, on the SPARC, we must flush all of the register windows
26625 to the stack before we can access arbitrary stack frames. You
26626 will seldom need to define this macro.
26628 -- Target Hook: bool TARGET_BUILTIN_SETJMP_FRAME_VALUE ()
26629 This target hook should return an rtx that is used to store the
26630 address of the current frame into the built in `setjmp' buffer.
26631 The default value, `virtual_stack_vars_rtx', is correct for most
26632 machines. One reason you may need to define this target hook is if
26633 `hard_frame_pointer_rtx' is the appropriate value on your machine.
26635 -- Macro: FRAME_ADDR_RTX (FRAMEADDR)
26636 A C expression whose value is RTL representing the value of the
26637 frame address for the current frame. FRAMEADDR is the frame
26638 pointer of the current frame. This is used for
26639 __builtin_frame_address. You need only define this macro if the
26640 frame address is not the same as the frame pointer. Most machines
26641 do not need to define it.
26643 -- Macro: RETURN_ADDR_RTX (COUNT, FRAMEADDR)
26644 A C expression whose value is RTL representing the value of the
26645 return address for the frame COUNT steps up from the current
26646 frame, after the prologue. FRAMEADDR is the frame pointer of the
26647 COUNT frame, or the frame pointer of the COUNT - 1 frame if
26648 `RETURN_ADDR_IN_PREVIOUS_FRAME' is defined.
26650 The value of the expression must always be the correct address when
26651 COUNT is zero, but may be `NULL_RTX' if there is no way to
26652 determine the return address of other frames.
26654 -- Macro: RETURN_ADDR_IN_PREVIOUS_FRAME
26655 Define this if the return address of a particular stack frame is
26656 accessed from the frame pointer of the previous stack frame.
26658 -- Macro: INCOMING_RETURN_ADDR_RTX
26659 A C expression whose value is RTL representing the location of the
26660 incoming return address at the beginning of any function, before
26661 the prologue. This RTL is either a `REG', indicating that the
26662 return value is saved in `REG', or a `MEM' representing a location
26665 You only need to define this macro if you want to support call
26666 frame debugging information like that provided by DWARF 2.
26668 If this RTL is a `REG', you should also define
26669 `DWARF_FRAME_RETURN_COLUMN' to `DWARF_FRAME_REGNUM (REGNO)'.
26671 -- Macro: DWARF_ALT_FRAME_RETURN_COLUMN
26672 A C expression whose value is an integer giving a DWARF 2 column
26673 number that may be used as an alternative return column. The
26674 column must not correspond to any gcc hard register (that is, it
26675 must not be in the range of `DWARF_FRAME_REGNUM').
26677 This macro can be useful if `DWARF_FRAME_RETURN_COLUMN' is set to a
26678 general register, but an alternative column needs to be used for
26679 signal frames. Some targets have also used different frame return
26682 -- Macro: DWARF_ZERO_REG
26683 A C expression whose value is an integer giving a DWARF 2 register
26684 number that is considered to always have the value zero. This
26685 should only be defined if the target has an architected zero
26686 register, and someone decided it was a good idea to use that
26687 register number to terminate the stack backtrace. New ports
26690 -- Target Hook: void TARGET_DWARF_HANDLE_FRAME_UNSPEC (const char
26691 *LABEL, rtx PATTERN, int INDEX)
26692 This target hook allows the backend to emit frame-related insns
26693 that contain UNSPECs or UNSPEC_VOLATILEs. The DWARF 2 call frame
26694 debugging info engine will invoke it on insns of the form
26695 (set (reg) (unspec [...] UNSPEC_INDEX))
26697 (set (reg) (unspec_volatile [...] UNSPECV_INDEX)).
26698 to let the backend emit the call frame instructions. LABEL is the
26699 CFI label attached to the insn, PATTERN is the pattern of the insn
26700 and INDEX is `UNSPEC_INDEX' or `UNSPECV_INDEX'.
26702 -- Macro: INCOMING_FRAME_SP_OFFSET
26703 A C expression whose value is an integer giving the offset, in
26704 bytes, from the value of the stack pointer register to the top of
26705 the stack frame at the beginning of any function, before the
26706 prologue. The top of the frame is defined to be the value of the
26707 stack pointer in the previous frame, just before the call
26710 You only need to define this macro if you want to support call
26711 frame debugging information like that provided by DWARF 2.
26713 -- Macro: ARG_POINTER_CFA_OFFSET (FUNDECL)
26714 A C expression whose value is an integer giving the offset, in
26715 bytes, from the argument pointer to the canonical frame address
26716 (cfa). The final value should coincide with that calculated by
26717 `INCOMING_FRAME_SP_OFFSET'. Which is unfortunately not usable
26718 during virtual register instantiation.
26720 The default value for this macro is `FIRST_PARM_OFFSET (fundecl)',
26721 which is correct for most machines; in general, the arguments are
26722 found immediately before the stack frame. Note that this is not
26723 the case on some targets that save registers into the caller's
26724 frame, such as SPARC and rs6000, and so such targets need to
26727 You only need to define this macro if the default is incorrect,
26728 and you want to support call frame debugging information like that
26729 provided by DWARF 2.
26731 -- Macro: FRAME_POINTER_CFA_OFFSET (FUNDECL)
26732 If defined, a C expression whose value is an integer giving the
26733 offset in bytes from the frame pointer to the canonical frame
26734 address (cfa). The final value should coincide with that
26735 calculated by `INCOMING_FRAME_SP_OFFSET'.
26737 Normally the CFA is calculated as an offset from the argument
26738 pointer, via `ARG_POINTER_CFA_OFFSET', but if the argument pointer
26739 is variable due to the ABI, this may not be possible. If this
26740 macro is defined, it implies that the virtual register
26741 instantiation should be based on the frame pointer instead of the
26742 argument pointer. Only one of `FRAME_POINTER_CFA_OFFSET' and
26743 `ARG_POINTER_CFA_OFFSET' should be defined.
26745 -- Macro: CFA_FRAME_BASE_OFFSET (FUNDECL)
26746 If defined, a C expression whose value is an integer giving the
26747 offset in bytes from the canonical frame address (cfa) to the
26748 frame base used in DWARF 2 debug information. The default is
26749 zero. A different value may reduce the size of debug information
26753 File: gccint.info, Node: Exception Handling, Next: Stack Checking, Prev: Frame Layout, Up: Stack and Calling
26755 17.10.2 Exception Handling Support
26756 ----------------------------------
26758 -- Macro: EH_RETURN_DATA_REGNO (N)
26759 A C expression whose value is the Nth register number used for
26760 data by exception handlers, or `INVALID_REGNUM' if fewer than N
26761 registers are usable.
26763 The exception handling library routines communicate with the
26764 exception handlers via a set of agreed upon registers. Ideally
26765 these registers should be call-clobbered; it is possible to use
26766 call-saved registers, but may negatively impact code size. The
26767 target must support at least 2 data registers, but should define 4
26768 if there are enough free registers.
26770 You must define this macro if you want to support call frame
26771 exception handling like that provided by DWARF 2.
26773 -- Macro: EH_RETURN_STACKADJ_RTX
26774 A C expression whose value is RTL representing a location in which
26775 to store a stack adjustment to be applied before function return.
26776 This is used to unwind the stack to an exception handler's call
26777 frame. It will be assigned zero on code paths that return
26780 Typically this is a call-clobbered hard register that is otherwise
26781 untouched by the epilogue, but could also be a stack slot.
26783 Do not define this macro if the stack pointer is saved and restored
26784 by the regular prolog and epilog code in the call frame itself; in
26785 this case, the exception handling library routines will update the
26786 stack location to be restored in place. Otherwise, you must define
26787 this macro if you want to support call frame exception handling
26788 like that provided by DWARF 2.
26790 -- Macro: EH_RETURN_HANDLER_RTX
26791 A C expression whose value is RTL representing a location in which
26792 to store the address of an exception handler to which we should
26793 return. It will not be assigned on code paths that return
26796 Typically this is the location in the call frame at which the
26797 normal return address is stored. For targets that return by
26798 popping an address off the stack, this might be a memory address
26799 just below the _target_ call frame rather than inside the current
26800 call frame. If defined, `EH_RETURN_STACKADJ_RTX' will have already
26801 been assigned, so it may be used to calculate the location of the
26804 Some targets have more complex requirements than storing to an
26805 address calculable during initial code generation. In that case
26806 the `eh_return' instruction pattern should be used instead.
26808 If you want to support call frame exception handling, you must
26809 define either this macro or the `eh_return' instruction pattern.
26811 -- Macro: RETURN_ADDR_OFFSET
26812 If defined, an integer-valued C expression for which rtl will be
26813 generated to add it to the exception handler address before it is
26814 searched in the exception handling tables, and to subtract it
26815 again from the address before using it to return to the exception
26818 -- Macro: ASM_PREFERRED_EH_DATA_FORMAT (CODE, GLOBAL)
26819 This macro chooses the encoding of pointers embedded in the
26820 exception handling sections. If at all possible, this should be
26821 defined such that the exception handling section will not require
26822 dynamic relocations, and so may be read-only.
26824 CODE is 0 for data, 1 for code labels, 2 for function pointers.
26825 GLOBAL is true if the symbol may be affected by dynamic
26826 relocations. The macro should return a combination of the
26827 `DW_EH_PE_*' defines as found in `dwarf2.h'.
26829 If this macro is not defined, pointers will not be encoded but
26830 represented directly.
26832 -- Macro: ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX (FILE, ENCODING, SIZE,
26834 This macro allows the target to emit whatever special magic is
26835 required to represent the encoding chosen by
26836 `ASM_PREFERRED_EH_DATA_FORMAT'. Generic code takes care of
26837 pc-relative and indirect encodings; this must be defined if the
26838 target uses text-relative or data-relative encodings.
26840 This is a C statement that branches to DONE if the format was
26841 handled. ENCODING is the format chosen, SIZE is the number of
26842 bytes that the format occupies, ADDR is the `SYMBOL_REF' to be
26845 -- Macro: MD_UNWIND_SUPPORT
26846 A string specifying a file to be #include'd in unwind-dw2.c. The
26847 file so included typically defines `MD_FALLBACK_FRAME_STATE_FOR'.
26849 -- Macro: MD_FALLBACK_FRAME_STATE_FOR (CONTEXT, FS)
26850 This macro allows the target to add CPU and operating system
26851 specific code to the call-frame unwinder for use when there is no
26852 unwind data available. The most common reason to implement this
26853 macro is to unwind through signal frames.
26855 This macro is called from `uw_frame_state_for' in `unwind-dw2.c',
26856 `unwind-dw2-xtensa.c' and `unwind-ia64.c'. CONTEXT is an
26857 `_Unwind_Context'; FS is an `_Unwind_FrameState'. Examine
26858 `context->ra' for the address of the code being executed and
26859 `context->cfa' for the stack pointer value. If the frame can be
26860 decoded, the register save addresses should be updated in FS and
26861 the macro should evaluate to `_URC_NO_REASON'. If the frame
26862 cannot be decoded, the macro should evaluate to
26863 `_URC_END_OF_STACK'.
26865 For proper signal handling in Java this macro is accompanied by
26866 `MAKE_THROW_FRAME', defined in `libjava/include/*-signal.h'
26869 -- Macro: MD_HANDLE_UNWABI (CONTEXT, FS)
26870 This macro allows the target to add operating system specific code
26871 to the call-frame unwinder to handle the IA-64 `.unwabi' unwinding
26872 directive, usually used for signal or interrupt frames.
26874 This macro is called from `uw_update_context' in `unwind-ia64.c'.
26875 CONTEXT is an `_Unwind_Context'; FS is an `_Unwind_FrameState'.
26876 Examine `fs->unwabi' for the abi and context in the `.unwabi'
26877 directive. If the `.unwabi' directive can be handled, the
26878 register save addresses should be updated in FS.
26880 -- Macro: TARGET_USES_WEAK_UNWIND_INFO
26881 A C expression that evaluates to true if the target requires unwind
26882 info to be given comdat linkage. Define it to be `1' if comdat
26883 linkage is necessary. The default is `0'.
26886 File: gccint.info, Node: Stack Checking, Next: Frame Registers, Prev: Exception Handling, Up: Stack and Calling
26888 17.10.3 Specifying How Stack Checking is Done
26889 ---------------------------------------------
26891 GCC will check that stack references are within the boundaries of the
26892 stack, if the option `-fstack-check' is specified, in one of three ways:
26894 1. If the value of the `STACK_CHECK_BUILTIN' macro is nonzero, GCC
26895 will assume that you have arranged for full stack checking to be
26896 done at appropriate places in the configuration files. GCC will
26897 not do other special processing.
26899 2. If `STACK_CHECK_BUILTIN' is zero and the value of the
26900 `STACK_CHECK_STATIC_BUILTIN' macro is nonzero, GCC will assume
26901 that you have arranged for static stack checking (checking of the
26902 static stack frame of functions) to be done at appropriate places
26903 in the configuration files. GCC will only emit code to do dynamic
26904 stack checking (checking on dynamic stack allocations) using the
26905 third approach below.
26907 3. If neither of the above are true, GCC will generate code to
26908 periodically "probe" the stack pointer using the values of the
26909 macros defined below.
26911 If neither STACK_CHECK_BUILTIN nor STACK_CHECK_STATIC_BUILTIN is
26912 defined, GCC will change its allocation strategy for large objects if
26913 the option `-fstack-check' is specified: they will always be allocated
26914 dynamically if their size exceeds `STACK_CHECK_MAX_VAR_SIZE' bytes.
26916 -- Macro: STACK_CHECK_BUILTIN
26917 A nonzero value if stack checking is done by the configuration
26918 files in a machine-dependent manner. You should define this macro
26919 if stack checking is require by the ABI of your machine or if you
26920 would like to do stack checking in some more efficient way than
26921 the generic approach. The default value of this macro is zero.
26923 -- Macro: STACK_CHECK_STATIC_BUILTIN
26924 A nonzero value if static stack checking is done by the
26925 configuration files in a machine-dependent manner. You should
26926 define this macro if you would like to do static stack checking in
26927 some more efficient way than the generic approach. The default
26928 value of this macro is zero.
26930 -- Macro: STACK_CHECK_PROBE_INTERVAL
26931 An integer representing the interval at which GCC must generate
26932 stack probe instructions. You will normally define this macro to
26933 be no larger than the size of the "guard pages" at the end of a
26934 stack area. The default value of 4096 is suitable for most
26937 -- Macro: STACK_CHECK_PROBE_LOAD
26938 An integer which is nonzero if GCC should perform the stack probe
26939 as a load instruction and zero if GCC should use a store
26940 instruction. The default is zero, which is the most efficient
26941 choice on most systems.
26943 -- Macro: STACK_CHECK_PROTECT
26944 The number of bytes of stack needed to recover from a stack
26945 overflow, for languages where such a recovery is supported. The
26946 default value of 75 words should be adequate for most machines.
26948 The following macros are relevant only if neither STACK_CHECK_BUILTIN
26949 nor STACK_CHECK_STATIC_BUILTIN is defined; you can omit them altogether
26950 in the opposite case.
26952 -- Macro: STACK_CHECK_MAX_FRAME_SIZE
26953 The maximum size of a stack frame, in bytes. GCC will generate
26954 probe instructions in non-leaf functions to ensure at least this
26955 many bytes of stack are available. If a stack frame is larger
26956 than this size, stack checking will not be reliable and GCC will
26957 issue a warning. The default is chosen so that GCC only generates
26958 one instruction on most systems. You should normally not change
26959 the default value of this macro.
26961 -- Macro: STACK_CHECK_FIXED_FRAME_SIZE
26962 GCC uses this value to generate the above warning message. It
26963 represents the amount of fixed frame used by a function, not
26964 including space for any callee-saved registers, temporaries and
26965 user variables. You need only specify an upper bound for this
26966 amount and will normally use the default of four words.
26968 -- Macro: STACK_CHECK_MAX_VAR_SIZE
26969 The maximum size, in bytes, of an object that GCC will place in the
26970 fixed area of the stack frame when the user specifies
26971 `-fstack-check'. GCC computed the default from the values of the
26972 above macros and you will normally not need to override that
26976 File: gccint.info, Node: Frame Registers, Next: Elimination, Prev: Stack Checking, Up: Stack and Calling
26978 17.10.4 Registers That Address the Stack Frame
26979 ----------------------------------------------
26981 This discusses registers that address the stack frame.
26983 -- Macro: STACK_POINTER_REGNUM
26984 The register number of the stack pointer register, which must also
26985 be a fixed register according to `FIXED_REGISTERS'. On most
26986 machines, the hardware determines which register this is.
26988 -- Macro: FRAME_POINTER_REGNUM
26989 The register number of the frame pointer register, which is used to
26990 access automatic variables in the stack frame. On some machines,
26991 the hardware determines which register this is. On other
26992 machines, you can choose any register you wish for this purpose.
26994 -- Macro: HARD_FRAME_POINTER_REGNUM
26995 On some machines the offset between the frame pointer and starting
26996 offset of the automatic variables is not known until after register
26997 allocation has been done (for example, because the saved registers
26998 are between these two locations). On those machines, define
26999 `FRAME_POINTER_REGNUM' the number of a special, fixed register to
27000 be used internally until the offset is known, and define
27001 `HARD_FRAME_POINTER_REGNUM' to be the actual hard register number
27002 used for the frame pointer.
27004 You should define this macro only in the very rare circumstances
27005 when it is not possible to calculate the offset between the frame
27006 pointer and the automatic variables until after register
27007 allocation has been completed. When this macro is defined, you
27008 must also indicate in your definition of `ELIMINABLE_REGS' how to
27009 eliminate `FRAME_POINTER_REGNUM' into either
27010 `HARD_FRAME_POINTER_REGNUM' or `STACK_POINTER_REGNUM'.
27012 Do not define this macro if it would be the same as
27013 `FRAME_POINTER_REGNUM'.
27015 -- Macro: ARG_POINTER_REGNUM
27016 The register number of the arg pointer register, which is used to
27017 access the function's argument list. On some machines, this is
27018 the same as the frame pointer register. On some machines, the
27019 hardware determines which register this is. On other machines,
27020 you can choose any register you wish for this purpose. If this is
27021 not the same register as the frame pointer register, then you must
27022 mark it as a fixed register according to `FIXED_REGISTERS', or
27023 arrange to be able to eliminate it (*note Elimination::).
27025 -- Macro: RETURN_ADDRESS_POINTER_REGNUM
27026 The register number of the return address pointer register, which
27027 is used to access the current function's return address from the
27028 stack. On some machines, the return address is not at a fixed
27029 offset from the frame pointer or stack pointer or argument
27030 pointer. This register can be defined to point to the return
27031 address on the stack, and then be converted by `ELIMINABLE_REGS'
27032 into either the frame pointer or stack pointer.
27034 Do not define this macro unless there is no other way to get the
27035 return address from the stack.
27037 -- Macro: STATIC_CHAIN_REGNUM
27038 -- Macro: STATIC_CHAIN_INCOMING_REGNUM
27039 Register numbers used for passing a function's static chain
27040 pointer. If register windows are used, the register number as
27041 seen by the called function is `STATIC_CHAIN_INCOMING_REGNUM',
27042 while the register number as seen by the calling function is
27043 `STATIC_CHAIN_REGNUM'. If these registers are the same,
27044 `STATIC_CHAIN_INCOMING_REGNUM' need not be defined.
27046 The static chain register need not be a fixed register.
27048 If the static chain is passed in memory, these macros should not be
27049 defined; instead, the next two macros should be defined.
27051 -- Macro: STATIC_CHAIN
27052 -- Macro: STATIC_CHAIN_INCOMING
27053 If the static chain is passed in memory, these macros provide rtx
27054 giving `mem' expressions that denote where they are stored.
27055 `STATIC_CHAIN' and `STATIC_CHAIN_INCOMING' give the locations as
27056 seen by the calling and called functions, respectively. Often the
27057 former will be at an offset from the stack pointer and the latter
27058 at an offset from the frame pointer.
27060 The variables `stack_pointer_rtx', `frame_pointer_rtx', and
27061 `arg_pointer_rtx' will have been initialized prior to the use of
27062 these macros and should be used to refer to those items.
27064 If the static chain is passed in a register, the two previous
27065 macros should be defined instead.
27067 -- Macro: DWARF_FRAME_REGISTERS
27068 This macro specifies the maximum number of hard registers that can
27069 be saved in a call frame. This is used to size data structures
27070 used in DWARF2 exception handling.
27072 Prior to GCC 3.0, this macro was needed in order to establish a
27073 stable exception handling ABI in the face of adding new hard
27074 registers for ISA extensions. In GCC 3.0 and later, the EH ABI is
27075 insulated from changes in the number of hard registers.
27076 Nevertheless, this macro can still be used to reduce the runtime
27077 memory requirements of the exception handling routines, which can
27078 be substantial if the ISA contains a lot of registers that are not
27081 If this macro is not defined, it defaults to
27082 `FIRST_PSEUDO_REGISTER'.
27084 -- Macro: PRE_GCC3_DWARF_FRAME_REGISTERS
27085 This macro is similar to `DWARF_FRAME_REGISTERS', but is provided
27086 for backward compatibility in pre GCC 3.0 compiled code.
27088 If this macro is not defined, it defaults to
27089 `DWARF_FRAME_REGISTERS'.
27091 -- Macro: DWARF_REG_TO_UNWIND_COLUMN (REGNO)
27092 Define this macro if the target's representation for dwarf
27093 registers is different than the internal representation for unwind
27094 column. Given a dwarf register, this macro should return the
27095 internal unwind column number to use instead.
27097 See the PowerPC's SPE target for an example.
27099 -- Macro: DWARF_FRAME_REGNUM (REGNO)
27100 Define this macro if the target's representation for dwarf
27101 registers used in .eh_frame or .debug_frame is different from that
27102 used in other debug info sections. Given a GCC hard register
27103 number, this macro should return the .eh_frame register number.
27104 The default is `DBX_REGISTER_NUMBER (REGNO)'.
27107 -- Macro: DWARF2_FRAME_REG_OUT (REGNO, FOR_EH)
27108 Define this macro to map register numbers held in the call frame
27109 info that GCC has collected using `DWARF_FRAME_REGNUM' to those
27110 that should be output in .debug_frame (`FOR_EH' is zero) and
27111 .eh_frame (`FOR_EH' is nonzero). The default is to return `REGNO'.
27115 File: gccint.info, Node: Elimination, Next: Stack Arguments, Prev: Frame Registers, Up: Stack and Calling
27117 17.10.5 Eliminating Frame Pointer and Arg Pointer
27118 -------------------------------------------------
27120 This is about eliminating the frame pointer and arg pointer.
27122 -- Macro: FRAME_POINTER_REQUIRED
27123 A C expression which is nonzero if a function must have and use a
27124 frame pointer. This expression is evaluated in the reload pass.
27125 If its value is nonzero the function will have a frame pointer.
27127 The expression can in principle examine the current function and
27128 decide according to the facts, but on most machines the constant 0
27129 or the constant 1 suffices. Use 0 when the machine allows code to
27130 be generated with no frame pointer, and doing so saves some time
27131 or space. Use 1 when there is no possible advantage to avoiding a
27134 In certain cases, the compiler does not know how to produce valid
27135 code without a frame pointer. The compiler recognizes those cases
27136 and automatically gives the function a frame pointer regardless of
27137 what `FRAME_POINTER_REQUIRED' says. You don't need to worry about
27140 In a function that does not require a frame pointer, the frame
27141 pointer register can be allocated for ordinary usage, unless you
27142 mark it as a fixed register. See `FIXED_REGISTERS' for more
27145 -- Macro: INITIAL_FRAME_POINTER_OFFSET (DEPTH-VAR)
27146 A C statement to store in the variable DEPTH-VAR the difference
27147 between the frame pointer and the stack pointer values immediately
27148 after the function prologue. The value would be computed from
27149 information such as the result of `get_frame_size ()' and the
27150 tables of registers `regs_ever_live' and `call_used_regs'.
27152 If `ELIMINABLE_REGS' is defined, this macro will be not be used and
27153 need not be defined. Otherwise, it must be defined even if
27154 `FRAME_POINTER_REQUIRED' is defined to always be true; in that
27155 case, you may set DEPTH-VAR to anything.
27157 -- Macro: ELIMINABLE_REGS
27158 If defined, this macro specifies a table of register pairs used to
27159 eliminate unneeded registers that point into the stack frame. If
27160 it is not defined, the only elimination attempted by the compiler
27161 is to replace references to the frame pointer with references to
27164 The definition of this macro is a list of structure
27165 initializations, each of which specifies an original and
27166 replacement register.
27168 On some machines, the position of the argument pointer is not
27169 known until the compilation is completed. In such a case, a
27170 separate hard register must be used for the argument pointer.
27171 This register can be eliminated by replacing it with either the
27172 frame pointer or the argument pointer, depending on whether or not
27173 the frame pointer has been eliminated.
27175 In this case, you might specify:
27176 #define ELIMINABLE_REGS \
27177 {{ARG_POINTER_REGNUM, STACK_POINTER_REGNUM}, \
27178 {ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM}, \
27179 {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}}
27181 Note that the elimination of the argument pointer with the stack
27182 pointer is specified first since that is the preferred elimination.
27184 -- Macro: CAN_ELIMINATE (FROM-REG, TO-REG)
27185 A C expression that returns nonzero if the compiler is allowed to
27186 try to replace register number FROM-REG with register number
27187 TO-REG. This macro need only be defined if `ELIMINABLE_REGS' is
27188 defined, and will usually be the constant 1, since most of the
27189 cases preventing register elimination are things that the compiler
27190 already knows about.
27192 -- Macro: INITIAL_ELIMINATION_OFFSET (FROM-REG, TO-REG, OFFSET-VAR)
27193 This macro is similar to `INITIAL_FRAME_POINTER_OFFSET'. It
27194 specifies the initial difference between the specified pair of
27195 registers. This macro must be defined if `ELIMINABLE_REGS' is
27199 File: gccint.info, Node: Stack Arguments, Next: Register Arguments, Prev: Elimination, Up: Stack and Calling
27201 17.10.6 Passing Function Arguments on the Stack
27202 -----------------------------------------------
27204 The macros in this section control how arguments are passed on the
27205 stack. See the following section for other macros that control passing
27206 certain arguments in registers.
27208 -- Target Hook: bool TARGET_PROMOTE_PROTOTYPES (tree FNTYPE)
27209 This target hook returns `true' if an argument declared in a
27210 prototype as an integral type smaller than `int' should actually be
27211 passed as an `int'. In addition to avoiding errors in certain
27212 cases of mismatch, it also makes for better code on certain
27213 machines. The default is to not promote prototypes.
27215 -- Macro: PUSH_ARGS
27216 A C expression. If nonzero, push insns will be used to pass
27217 outgoing arguments. If the target machine does not have a push
27218 instruction, set it to zero. That directs GCC to use an alternate
27219 strategy: to allocate the entire argument block and then store the
27220 arguments into it. When `PUSH_ARGS' is nonzero, `PUSH_ROUNDING'
27221 must be defined too.
27223 -- Macro: PUSH_ARGS_REVERSED
27224 A C expression. If nonzero, function arguments will be evaluated
27225 from last to first, rather than from first to last. If this macro
27226 is not defined, it defaults to `PUSH_ARGS' on targets where the
27227 stack and args grow in opposite directions, and 0 otherwise.
27229 -- Macro: PUSH_ROUNDING (NPUSHED)
27230 A C expression that is the number of bytes actually pushed onto the
27231 stack when an instruction attempts to push NPUSHED bytes.
27233 On some machines, the definition
27235 #define PUSH_ROUNDING(BYTES) (BYTES)
27237 will suffice. But on other machines, instructions that appear to
27238 push one byte actually push two bytes in an attempt to maintain
27239 alignment. Then the definition should be
27241 #define PUSH_ROUNDING(BYTES) (((BYTES) + 1) & ~1)
27243 -- Macro: ACCUMULATE_OUTGOING_ARGS
27244 A C expression. If nonzero, the maximum amount of space required
27245 for outgoing arguments will be computed and placed into the
27246 variable `current_function_outgoing_args_size'. No space will be
27247 pushed onto the stack for each call; instead, the function
27248 prologue should increase the stack frame size by this amount.
27250 Setting both `PUSH_ARGS' and `ACCUMULATE_OUTGOING_ARGS' is not
27253 -- Macro: REG_PARM_STACK_SPACE (FNDECL)
27254 Define this macro if functions should assume that stack space has
27255 been allocated for arguments even when their values are passed in
27258 The value of this macro is the size, in bytes, of the area
27259 reserved for arguments passed in registers for the function
27260 represented by FNDECL, which can be zero if GCC is calling a
27261 library function. The argument FNDECL can be the FUNCTION_DECL,
27262 or the type itself of the function.
27264 This space can be allocated by the caller, or be a part of the
27265 machine-dependent stack frame: `OUTGOING_REG_PARM_STACK_SPACE' says
27268 -- Macro: OUTGOING_REG_PARM_STACK_SPACE (FNTYPE)
27269 Define this to a nonzero value if it is the responsibility of the
27270 caller to allocate the area reserved for arguments passed in
27271 registers when calling a function of FNTYPE. FNTYPE may be NULL
27272 if the function called is a library function.
27274 If `ACCUMULATE_OUTGOING_ARGS' is defined, this macro controls
27275 whether the space for these arguments counts in the value of
27276 `current_function_outgoing_args_size'.
27278 -- Macro: STACK_PARMS_IN_REG_PARM_AREA
27279 Define this macro if `REG_PARM_STACK_SPACE' is defined, but the
27280 stack parameters don't skip the area specified by it.
27282 Normally, when a parameter is not passed in registers, it is
27283 placed on the stack beyond the `REG_PARM_STACK_SPACE' area.
27284 Defining this macro suppresses this behavior and causes the
27285 parameter to be passed on the stack in its natural location.
27287 -- Macro: RETURN_POPS_ARGS (FUNDECL, FUNTYPE, STACK-SIZE)
27288 A C expression that should indicate the number of bytes of its own
27289 arguments that a function pops on returning, or 0 if the function
27290 pops no arguments and the caller must therefore pop them all after
27291 the function returns.
27293 FUNDECL is a C variable whose value is a tree node that describes
27294 the function in question. Normally it is a node of type
27295 `FUNCTION_DECL' that describes the declaration of the function.
27296 From this you can obtain the `DECL_ATTRIBUTES' of the function.
27298 FUNTYPE is a C variable whose value is a tree node that describes
27299 the function in question. Normally it is a node of type
27300 `FUNCTION_TYPE' that describes the data type of the function.
27301 From this it is possible to obtain the data types of the value and
27302 arguments (if known).
27304 When a call to a library function is being considered, FUNDECL
27305 will contain an identifier node for the library function. Thus, if
27306 you need to distinguish among various library functions, you can
27307 do so by their names. Note that "library function" in this
27308 context means a function used to perform arithmetic, whose name is
27309 known specially in the compiler and was not mentioned in the C
27310 code being compiled.
27312 STACK-SIZE is the number of bytes of arguments passed on the
27313 stack. If a variable number of bytes is passed, it is zero, and
27314 argument popping will always be the responsibility of the calling
27317 On the VAX, all functions always pop their arguments, so the
27318 definition of this macro is STACK-SIZE. On the 68000, using the
27319 standard calling convention, no functions pop their arguments, so
27320 the value of the macro is always 0 in this case. But an
27321 alternative calling convention is available in which functions
27322 that take a fixed number of arguments pop them but other functions
27323 (such as `printf') pop nothing (the caller pops all). When this
27324 convention is in use, FUNTYPE is examined to determine whether a
27325 function takes a fixed number of arguments.
27327 -- Macro: CALL_POPS_ARGS (CUM)
27328 A C expression that should indicate the number of bytes a call
27329 sequence pops off the stack. It is added to the value of
27330 `RETURN_POPS_ARGS' when compiling a function call.
27332 CUM is the variable in which all arguments to the called function
27333 have been accumulated.
27335 On certain architectures, such as the SH5, a call trampoline is
27336 used that pops certain registers off the stack, depending on the
27337 arguments that have been passed to the function. Since this is a
27338 property of the call site, not of the called function,
27339 `RETURN_POPS_ARGS' is not appropriate.
27342 File: gccint.info, Node: Register Arguments, Next: Scalar Return, Prev: Stack Arguments, Up: Stack and Calling
27344 17.10.7 Passing Arguments in Registers
27345 --------------------------------------
27347 This section describes the macros which let you control how various
27348 types of arguments are passed in registers or how they are arranged in
27351 -- Macro: FUNCTION_ARG (CUM, MODE, TYPE, NAMED)
27352 A C expression that controls whether a function argument is passed
27353 in a register, and which register.
27355 The arguments are CUM, which summarizes all the previous
27356 arguments; MODE, the machine mode of the argument; TYPE, the data
27357 type of the argument as a tree node or 0 if that is not known
27358 (which happens for C support library functions); and NAMED, which
27359 is 1 for an ordinary argument and 0 for nameless arguments that
27360 correspond to `...' in the called function's prototype. TYPE can
27361 be an incomplete type if a syntax error has previously occurred.
27363 The value of the expression is usually either a `reg' RTX for the
27364 hard register in which to pass the argument, or zero to pass the
27365 argument on the stack.
27367 For machines like the VAX and 68000, where normally all arguments
27368 are pushed, zero suffices as a definition.
27370 The value of the expression can also be a `parallel' RTX. This is
27371 used when an argument is passed in multiple locations. The mode
27372 of the `parallel' should be the mode of the entire argument. The
27373 `parallel' holds any number of `expr_list' pairs; each one
27374 describes where part of the argument is passed. In each
27375 `expr_list' the first operand must be a `reg' RTX for the hard
27376 register in which to pass this part of the argument, and the mode
27377 of the register RTX indicates how large this part of the argument
27378 is. The second operand of the `expr_list' is a `const_int' which
27379 gives the offset in bytes into the entire argument of where this
27380 part starts. As a special exception the first `expr_list' in the
27381 `parallel' RTX may have a first operand of zero. This indicates
27382 that the entire argument is also stored on the stack.
27384 The last time this macro is called, it is called with `MODE ==
27385 VOIDmode', and its result is passed to the `call' or `call_value'
27386 pattern as operands 2 and 3 respectively.
27388 The usual way to make the ISO library `stdarg.h' work on a machine
27389 where some arguments are usually passed in registers, is to cause
27390 nameless arguments to be passed on the stack instead. This is done
27391 by making `FUNCTION_ARG' return 0 whenever NAMED is 0.
27393 You may use the hook `targetm.calls.must_pass_in_stack' in the
27394 definition of this macro to determine if this argument is of a
27395 type that must be passed in the stack. If `REG_PARM_STACK_SPACE'
27396 is not defined and `FUNCTION_ARG' returns nonzero for such an
27397 argument, the compiler will abort. If `REG_PARM_STACK_SPACE' is
27398 defined, the argument will be computed in the stack and then
27399 loaded into a register.
27401 -- Target Hook: bool TARGET_MUST_PASS_IN_STACK (enum machine_mode
27403 This target hook should return `true' if we should not pass TYPE
27404 solely in registers. The file `expr.h' defines a definition that
27405 is usually appropriate, refer to `expr.h' for additional
27408 -- Macro: FUNCTION_INCOMING_ARG (CUM, MODE, TYPE, NAMED)
27409 Define this macro if the target machine has "register windows", so
27410 that the register in which a function sees an arguments is not
27411 necessarily the same as the one in which the caller passed the
27414 For such machines, `FUNCTION_ARG' computes the register in which
27415 the caller passes the value, and `FUNCTION_INCOMING_ARG' should be
27416 defined in a similar fashion to tell the function being called
27417 where the arguments will arrive.
27419 If `FUNCTION_INCOMING_ARG' is not defined, `FUNCTION_ARG' serves
27422 -- Target Hook: int TARGET_ARG_PARTIAL_BYTES (CUMULATIVE_ARGS *CUM,
27423 enum machine_mode MODE, tree TYPE, bool NAMED)
27424 This target hook returns the number of bytes at the beginning of an
27425 argument that must be put in registers. The value must be zero for
27426 arguments that are passed entirely in registers or that are
27427 entirely pushed on the stack.
27429 On some machines, certain arguments must be passed partially in
27430 registers and partially in memory. On these machines, typically
27431 the first few words of arguments are passed in registers, and the
27432 rest on the stack. If a multi-word argument (a `double' or a
27433 structure) crosses that boundary, its first few words must be
27434 passed in registers and the rest must be pushed. This macro tells
27435 the compiler when this occurs, and how many bytes should go in
27438 `FUNCTION_ARG' for these arguments should return the first
27439 register to be used by the caller for this argument; likewise
27440 `FUNCTION_INCOMING_ARG', for the called function.
27442 -- Target Hook: bool TARGET_PASS_BY_REFERENCE (CUMULATIVE_ARGS *CUM,
27443 enum machine_mode MODE, tree TYPE, bool NAMED)
27444 This target hook should return `true' if an argument at the
27445 position indicated by CUM should be passed by reference. This
27446 predicate is queried after target independent reasons for being
27447 passed by reference, such as `TREE_ADDRESSABLE (type)'.
27449 If the hook returns true, a copy of that argument is made in
27450 memory and a pointer to the argument is passed instead of the
27451 argument itself. The pointer is passed in whatever way is
27452 appropriate for passing a pointer to that type.
27454 -- Target Hook: bool TARGET_CALLEE_COPIES (CUMULATIVE_ARGS *CUM, enum
27455 machine_mode MODE, tree TYPE, bool NAMED)
27456 The function argument described by the parameters to this hook is
27457 known to be passed by reference. The hook should return true if
27458 the function argument should be copied by the callee instead of
27459 copied by the caller.
27461 For any argument for which the hook returns true, if it can be
27462 determined that the argument is not modified, then a copy need not
27465 The default version of this hook always returns false.
27467 -- Macro: CUMULATIVE_ARGS
27468 A C type for declaring a variable that is used as the first
27469 argument of `FUNCTION_ARG' and other related values. For some
27470 target machines, the type `int' suffices and can hold the number
27471 of bytes of argument so far.
27473 There is no need to record in `CUMULATIVE_ARGS' anything about the
27474 arguments that have been passed on the stack. The compiler has
27475 other variables to keep track of that. For target machines on
27476 which all arguments are passed on the stack, there is no need to
27477 store anything in `CUMULATIVE_ARGS'; however, the data structure
27478 must exist and should not be empty, so use `int'.
27480 -- Macro: OVERRIDE_ABI_FORMAT (FNDECL)
27481 If defined, this macro is called before generating any code for a
27482 function, but after the CFUN descriptor for the function has been
27483 created. The back end may use this macro to update CFUN to
27484 reflect an ABI other than that which would normally be used by
27485 default. If the compiler is generating code for a
27486 compiler-generated function, FNDECL may be `NULL'.
27488 -- Macro: INIT_CUMULATIVE_ARGS (CUM, FNTYPE, LIBNAME, FNDECL,
27490 A C statement (sans semicolon) for initializing the variable CUM
27491 for the state at the beginning of the argument list. The variable
27492 has type `CUMULATIVE_ARGS'. The value of FNTYPE is the tree node
27493 for the data type of the function which will receive the args, or
27494 0 if the args are to a compiler support library function. For
27495 direct calls that are not libcalls, FNDECL contain the declaration
27496 node of the function. FNDECL is also set when
27497 `INIT_CUMULATIVE_ARGS' is used to find arguments for the function
27498 being compiled. N_NAMED_ARGS is set to the number of named
27499 arguments, including a structure return address if it is passed as
27500 a parameter, when making a call. When processing incoming
27501 arguments, N_NAMED_ARGS is set to -1.
27503 When processing a call to a compiler support library function,
27504 LIBNAME identifies which one. It is a `symbol_ref' rtx which
27505 contains the name of the function, as a string. LIBNAME is 0 when
27506 an ordinary C function call is being processed. Thus, each time
27507 this macro is called, either LIBNAME or FNTYPE is nonzero, but
27508 never both of them at once.
27510 -- Macro: INIT_CUMULATIVE_LIBCALL_ARGS (CUM, MODE, LIBNAME)
27511 Like `INIT_CUMULATIVE_ARGS' but only used for outgoing libcalls,
27512 it gets a `MODE' argument instead of FNTYPE, that would be `NULL'.
27513 INDIRECT would always be zero, too. If this macro is not
27514 defined, `INIT_CUMULATIVE_ARGS (cum, NULL_RTX, libname, 0)' is
27517 -- Macro: INIT_CUMULATIVE_INCOMING_ARGS (CUM, FNTYPE, LIBNAME)
27518 Like `INIT_CUMULATIVE_ARGS' but overrides it for the purposes of
27519 finding the arguments for the function being compiled. If this
27520 macro is undefined, `INIT_CUMULATIVE_ARGS' is used instead.
27522 The value passed for LIBNAME is always 0, since library routines
27523 with special calling conventions are never compiled with GCC. The
27524 argument LIBNAME exists for symmetry with `INIT_CUMULATIVE_ARGS'.
27526 -- Macro: FUNCTION_ARG_ADVANCE (CUM, MODE, TYPE, NAMED)
27527 A C statement (sans semicolon) to update the summarizer variable
27528 CUM to advance past an argument in the argument list. The values
27529 MODE, TYPE and NAMED describe that argument. Once this is done,
27530 the variable CUM is suitable for analyzing the _following_
27531 argument with `FUNCTION_ARG', etc.
27533 This macro need not do anything if the argument in question was
27534 passed on the stack. The compiler knows how to track the amount
27535 of stack space used for arguments without any special help.
27537 -- Macro: FUNCTION_ARG_OFFSET (MODE, TYPE)
27538 If defined, a C expression that is the number of bytes to add to
27539 the offset of the argument passed in memory. This is needed for
27540 the SPU, which passes `char' and `short' arguments in the preferred
27541 slot that is in the middle of the quad word instead of starting at
27544 -- Macro: FUNCTION_ARG_PADDING (MODE, TYPE)
27545 If defined, a C expression which determines whether, and in which
27546 direction, to pad out an argument with extra space. The value
27547 should be of type `enum direction': either `upward' to pad above
27548 the argument, `downward' to pad below, or `none' to inhibit
27551 The _amount_ of padding is always just enough to reach the next
27552 multiple of `FUNCTION_ARG_BOUNDARY'; this macro does not control
27555 This macro has a default definition which is right for most
27556 systems. For little-endian machines, the default is to pad
27557 upward. For big-endian machines, the default is to pad downward
27558 for an argument of constant size shorter than an `int', and upward
27561 -- Macro: PAD_VARARGS_DOWN
27562 If defined, a C expression which determines whether the default
27563 implementation of va_arg will attempt to pad down before reading
27564 the next argument, if that argument is smaller than its aligned
27565 space as controlled by `PARM_BOUNDARY'. If this macro is not
27566 defined, all such arguments are padded down if `BYTES_BIG_ENDIAN'
27569 -- Macro: BLOCK_REG_PADDING (MODE, TYPE, FIRST)
27570 Specify padding for the last element of a block move between
27571 registers and memory. FIRST is nonzero if this is the only
27572 element. Defining this macro allows better control of register
27573 function parameters on big-endian machines, without using
27574 `PARALLEL' rtl. In particular, `MUST_PASS_IN_STACK' need not test
27575 padding and mode of types in registers, as there is no longer a
27576 "wrong" part of a register; For example, a three byte aggregate
27577 may be passed in the high part of a register if so required.
27579 -- Macro: FUNCTION_ARG_BOUNDARY (MODE, TYPE)
27580 If defined, a C expression that gives the alignment boundary, in
27581 bits, of an argument with the specified mode and type. If it is
27582 not defined, `PARM_BOUNDARY' is used for all arguments.
27584 -- Macro: FUNCTION_ARG_REGNO_P (REGNO)
27585 A C expression that is nonzero if REGNO is the number of a hard
27586 register in which function arguments are sometimes passed. This
27587 does _not_ include implicit arguments such as the static chain and
27588 the structure-value address. On many machines, no registers can be
27589 used for this purpose since all function arguments are pushed on
27592 -- Target Hook: bool TARGET_SPLIT_COMPLEX_ARG (tree TYPE)
27593 This hook should return true if parameter of type TYPE are passed
27594 as two scalar parameters. By default, GCC will attempt to pack
27595 complex arguments into the target's word size. Some ABIs require
27596 complex arguments to be split and treated as their individual
27597 components. For example, on AIX64, complex floats should be
27598 passed in a pair of floating point registers, even though a
27599 complex float would fit in one 64-bit floating point register.
27601 The default value of this hook is `NULL', which is treated as
27604 -- Target Hook: tree TARGET_BUILD_BUILTIN_VA_LIST (void)
27605 This hook returns a type node for `va_list' for the target. The
27606 default version of the hook returns `void*'.
27608 -- Target Hook: tree TARGET_FN_ABI_VA_LIST (tree FNDECL)
27609 This hook returns the va_list type of the calling convention
27610 specified by FNDECL. The default version of this hook returns
27611 `va_list_type_node'.
27613 -- Target Hook: tree TARGET_CANONICAL_VA_LIST_TYPE (tree TYPE)
27614 This hook returns the va_list type of the calling convention
27615 specified by the type of TYPE. If TYPE is not a valid va_list
27616 type, it returns `NULL_TREE'.
27618 -- Target Hook: tree TARGET_GIMPLIFY_VA_ARG_EXPR (tree VALIST, tree
27619 TYPE, tree *PRE_P, tree *POST_P)
27620 This hook performs target-specific gimplification of
27621 `VA_ARG_EXPR'. The first two parameters correspond to the
27622 arguments to `va_arg'; the latter two are as in
27623 `gimplify.c:gimplify_expr'.
27625 -- Target Hook: bool TARGET_VALID_POINTER_MODE (enum machine_mode MODE)
27626 Define this to return nonzero if the port can handle pointers with
27627 machine mode MODE. The default version of this hook returns true
27628 for both `ptr_mode' and `Pmode'.
27630 -- Target Hook: bool TARGET_SCALAR_MODE_SUPPORTED_P (enum machine_mode
27632 Define this to return nonzero if the port is prepared to handle
27633 insns involving scalar mode MODE. For a scalar mode to be
27634 considered supported, all the basic arithmetic and comparisons
27637 The default version of this hook returns true for any mode
27638 required to handle the basic C types (as defined by the port).
27639 Included here are the double-word arithmetic supported by the code
27642 -- Target Hook: bool TARGET_VECTOR_MODE_SUPPORTED_P (enum machine_mode
27644 Define this to return nonzero if the port is prepared to handle
27645 insns involving vector mode MODE. At the very least, it must have
27646 move patterns for this mode.
27649 File: gccint.info, Node: Scalar Return, Next: Aggregate Return, Prev: Register Arguments, Up: Stack and Calling
27651 17.10.8 How Scalar Function Values Are Returned
27652 -----------------------------------------------
27654 This section discusses the macros that control returning scalars as
27655 values--values that can fit in registers.
27657 -- Target Hook: rtx TARGET_FUNCTION_VALUE (tree RET_TYPE, tree
27658 FN_DECL_OR_TYPE, bool OUTGOING)
27659 Define this to return an RTX representing the place where a
27660 function returns or receives a value of data type RET_TYPE, a tree
27661 node node representing a data type. FN_DECL_OR_TYPE is a tree node
27662 representing `FUNCTION_DECL' or `FUNCTION_TYPE' of a function
27663 being called. If OUTGOING is false, the hook should compute the
27664 register in which the caller will see the return value.
27665 Otherwise, the hook should return an RTX representing the place
27666 where a function returns a value.
27668 On many machines, only `TYPE_MODE (RET_TYPE)' is relevant.
27669 (Actually, on most machines, scalar values are returned in the same
27670 place regardless of mode.) The value of the expression is usually
27671 a `reg' RTX for the hard register where the return value is stored.
27672 The value can also be a `parallel' RTX, if the return value is in
27673 multiple places. See `FUNCTION_ARG' for an explanation of the
27674 `parallel' form. Note that the callee will populate every
27675 location specified in the `parallel', but if the first element of
27676 the `parallel' contains the whole return value, callers will use
27677 that element as the canonical location and ignore the others. The
27678 m68k port uses this type of `parallel' to return pointers in both
27679 `%a0' (the canonical location) and `%d0'.
27681 If `TARGET_PROMOTE_FUNCTION_RETURN' returns true, you must apply
27682 the same promotion rules specified in `PROMOTE_MODE' if VALTYPE is
27685 If the precise function being called is known, FUNC is a tree node
27686 (`FUNCTION_DECL') for it; otherwise, FUNC is a null pointer. This
27687 makes it possible to use a different value-returning convention
27688 for specific functions when all their calls are known.
27690 Some target machines have "register windows" so that the register
27691 in which a function returns its value is not the same as the one
27692 in which the caller sees the value. For such machines, you should
27693 return different RTX depending on OUTGOING.
27695 `TARGET_FUNCTION_VALUE' is not used for return values with
27696 aggregate data types, because these are returned in another way.
27697 See `TARGET_STRUCT_VALUE_RTX' and related macros, below.
27699 -- Macro: FUNCTION_VALUE (VALTYPE, FUNC)
27700 This macro has been deprecated. Use `TARGET_FUNCTION_VALUE' for a
27701 new target instead.
27703 -- Macro: FUNCTION_OUTGOING_VALUE (VALTYPE, FUNC)
27704 This macro has been deprecated. Use `TARGET_FUNCTION_VALUE' for a
27705 new target instead.
27707 -- Macro: LIBCALL_VALUE (MODE)
27708 A C expression to create an RTX representing the place where a
27709 library function returns a value of mode MODE.
27711 Note that "library function" in this context means a compiler
27712 support routine, used to perform arithmetic, whose name is known
27713 specially by the compiler and was not mentioned in the C code being
27716 -- Macro: FUNCTION_VALUE_REGNO_P (REGNO)
27717 A C expression that is nonzero if REGNO is the number of a hard
27718 register in which the values of called function may come back.
27720 A register whose use for returning values is limited to serving as
27721 the second of a pair (for a value of type `double', say) need not
27722 be recognized by this macro. So for most machines, this definition
27725 #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0)
27727 If the machine has register windows, so that the caller and the
27728 called function use different registers for the return value, this
27729 macro should recognize only the caller's register numbers.
27731 -- Macro: TARGET_ENUM_VA_LIST (IDX, PNAME, PTYPE)
27732 This target macro is used in function `c_common_nodes_and_builtins'
27733 to iterate through the target specific builtin types for va_list.
27734 The variable IDX is used as iterator. PNAME has to be a pointer to
27735 a `const char *' and PTYPE a pointer to a `tree' typed variable.
27736 The arguments PNAME and PTYPE are used to store the result of this
27737 macro and are set to the name of the va_list builtin type and its
27738 internal type. If the return value of this macro is zero, then
27739 there is no more element. Otherwise the IDX should be increased
27740 for the next call of this macro to iterate through all types.
27742 -- Macro: APPLY_RESULT_SIZE
27743 Define this macro if `untyped_call' and `untyped_return' need more
27744 space than is implied by `FUNCTION_VALUE_REGNO_P' for saving and
27745 restoring an arbitrary return value.
27747 -- Target Hook: bool TARGET_RETURN_IN_MSB (tree TYPE)
27748 This hook should return true if values of type TYPE are returned
27749 at the most significant end of a register (in other words, if they
27750 are padded at the least significant end). You can assume that TYPE
27751 is returned in a register; the caller is required to check this.
27753 Note that the register provided by `TARGET_FUNCTION_VALUE' must be
27754 able to hold the complete return value. For example, if a 1-, 2-
27755 or 3-byte structure is returned at the most significant end of a
27756 4-byte register, `TARGET_FUNCTION_VALUE' should provide an
27760 File: gccint.info, Node: Aggregate Return, Next: Caller Saves, Prev: Scalar Return, Up: Stack and Calling
27762 17.10.9 How Large Values Are Returned
27763 -------------------------------------
27765 When a function value's mode is `BLKmode' (and in some other cases),
27766 the value is not returned according to `TARGET_FUNCTION_VALUE' (*note
27767 Scalar Return::). Instead, the caller passes the address of a block of
27768 memory in which the value should be stored. This address is called the
27769 "structure value address".
27771 This section describes how to control returning structure values in
27774 -- Target Hook: bool TARGET_RETURN_IN_MEMORY (tree TYPE, tree FNTYPE)
27775 This target hook should return a nonzero value to say to return the
27776 function value in memory, just as large structures are always
27777 returned. Here TYPE will be the data type of the value, and FNTYPE
27778 will be the type of the function doing the returning, or `NULL' for
27781 Note that values of mode `BLKmode' must be explicitly handled by
27782 this function. Also, the option `-fpcc-struct-return' takes
27783 effect regardless of this macro. On most systems, it is possible
27784 to leave the hook undefined; this causes a default definition to
27785 be used, whose value is the constant 1 for `BLKmode' values, and 0
27788 Do not use this hook to indicate that structures and unions should
27789 always be returned in memory. You should instead use
27790 `DEFAULT_PCC_STRUCT_RETURN' to indicate this.
27792 -- Macro: DEFAULT_PCC_STRUCT_RETURN
27793 Define this macro to be 1 if all structure and union return values
27794 must be in memory. Since this results in slower code, this should
27795 be defined only if needed for compatibility with other compilers
27796 or with an ABI. If you define this macro to be 0, then the
27797 conventions used for structure and union return values are decided
27798 by the `TARGET_RETURN_IN_MEMORY' target hook.
27800 If not defined, this defaults to the value 1.
27802 -- Target Hook: rtx TARGET_STRUCT_VALUE_RTX (tree FNDECL, int INCOMING)
27803 This target hook should return the location of the structure value
27804 address (normally a `mem' or `reg'), or 0 if the address is passed
27805 as an "invisible" first argument. Note that FNDECL may be `NULL',
27806 for libcalls. You do not need to define this target hook if the
27807 address is always passed as an "invisible" first argument.
27809 On some architectures the place where the structure value address
27810 is found by the called function is not the same place that the
27811 caller put it. This can be due to register windows, or it could
27812 be because the function prologue moves it to a different place.
27813 INCOMING is `1' or `2' when the location is needed in the context
27814 of the called function, and `0' in the context of the caller.
27816 If INCOMING is nonzero and the address is to be found on the
27817 stack, return a `mem' which refers to the frame pointer. If
27818 INCOMING is `2', the result is being used to fetch the structure
27819 value address at the beginning of a function. If you need to emit
27820 adjusting code, you should do it at this point.
27822 -- Macro: PCC_STATIC_STRUCT_RETURN
27823 Define this macro if the usual system convention on the target
27824 machine for returning structures and unions is for the called
27825 function to return the address of a static variable containing the
27828 Do not define this if the usual system convention is for the
27829 caller to pass an address to the subroutine.
27831 This macro has effect in `-fpcc-struct-return' mode, but it does
27832 nothing when you use `-freg-struct-return' mode.
27835 File: gccint.info, Node: Caller Saves, Next: Function Entry, Prev: Aggregate Return, Up: Stack and Calling
27837 17.10.10 Caller-Saves Register Allocation
27838 -----------------------------------------
27840 If you enable it, GCC can save registers around function calls. This
27841 makes it possible to use call-clobbered registers to hold variables that
27842 must live across calls.
27844 -- Macro: CALLER_SAVE_PROFITABLE (REFS, CALLS)
27845 A C expression to determine whether it is worthwhile to consider
27846 placing a pseudo-register in a call-clobbered hard register and
27847 saving and restoring it around each function call. The expression
27848 should be 1 when this is worth doing, and 0 otherwise.
27850 If you don't define this macro, a default is used which is good on
27851 most machines: `4 * CALLS < REFS'.
27853 -- Macro: HARD_REGNO_CALLER_SAVE_MODE (REGNO, NREGS)
27854 A C expression specifying which mode is required for saving NREGS
27855 of a pseudo-register in call-clobbered hard register REGNO. If
27856 REGNO is unsuitable for caller save, `VOIDmode' should be
27857 returned. For most machines this macro need not be defined since
27858 GCC will select the smallest suitable mode.
27861 File: gccint.info, Node: Function Entry, Next: Profiling, Prev: Caller Saves, Up: Stack and Calling
27863 17.10.11 Function Entry and Exit
27864 --------------------------------
27866 This section describes the macros that output function entry
27867 ("prologue") and exit ("epilogue") code.
27869 -- Target Hook: void TARGET_ASM_FUNCTION_PROLOGUE (FILE *FILE,
27870 HOST_WIDE_INT SIZE)
27871 If defined, a function that outputs the assembler code for entry
27872 to a function. The prologue is responsible for setting up the
27873 stack frame, initializing the frame pointer register, saving
27874 registers that must be saved, and allocating SIZE additional bytes
27875 of storage for the local variables. SIZE is an integer. FILE is
27876 a stdio stream to which the assembler code should be output.
27878 The label for the beginning of the function need not be output by
27879 this macro. That has already been done when the macro is run.
27881 To determine which registers to save, the macro can refer to the
27882 array `regs_ever_live': element R is nonzero if hard register R is
27883 used anywhere within the function. This implies the function
27884 prologue should save register R, provided it is not one of the
27885 call-used registers. (`TARGET_ASM_FUNCTION_EPILOGUE' must
27886 likewise use `regs_ever_live'.)
27888 On machines that have "register windows", the function entry code
27889 does not save on the stack the registers that are in the windows,
27890 even if they are supposed to be preserved by function calls;
27891 instead it takes appropriate steps to "push" the register stack,
27892 if any non-call-used registers are used in the function.
27894 On machines where functions may or may not have frame-pointers, the
27895 function entry code must vary accordingly; it must set up the frame
27896 pointer if one is wanted, and not otherwise. To determine whether
27897 a frame pointer is in wanted, the macro can refer to the variable
27898 `frame_pointer_needed'. The variable's value will be 1 at run
27899 time in a function that needs a frame pointer. *Note
27902 The function entry code is responsible for allocating any stack
27903 space required for the function. This stack space consists of the
27904 regions listed below. In most cases, these regions are allocated
27905 in the order listed, with the last listed region closest to the
27906 top of the stack (the lowest address if `STACK_GROWS_DOWNWARD' is
27907 defined, and the highest address if it is not defined). You can
27908 use a different order for a machine if doing so is more convenient
27909 or required for compatibility reasons. Except in cases where
27910 required by standard or by a debugger, there is no reason why the
27911 stack layout used by GCC need agree with that used by other
27912 compilers for a machine.
27914 -- Target Hook: void TARGET_ASM_FUNCTION_END_PROLOGUE (FILE *FILE)
27915 If defined, a function that outputs assembler code at the end of a
27916 prologue. This should be used when the function prologue is being
27917 emitted as RTL, and you have some extra assembler that needs to be
27918 emitted. *Note prologue instruction pattern::.
27920 -- Target Hook: void TARGET_ASM_FUNCTION_BEGIN_EPILOGUE (FILE *FILE)
27921 If defined, a function that outputs assembler code at the start of
27922 an epilogue. This should be used when the function epilogue is
27923 being emitted as RTL, and you have some extra assembler that needs
27924 to be emitted. *Note epilogue instruction pattern::.
27926 -- Target Hook: void TARGET_ASM_FUNCTION_EPILOGUE (FILE *FILE,
27927 HOST_WIDE_INT SIZE)
27928 If defined, a function that outputs the assembler code for exit
27929 from a function. The epilogue is responsible for restoring the
27930 saved registers and stack pointer to their values when the
27931 function was called, and returning control to the caller. This
27932 macro takes the same arguments as the macro
27933 `TARGET_ASM_FUNCTION_PROLOGUE', and the registers to restore are
27934 determined from `regs_ever_live' and `CALL_USED_REGISTERS' in the
27937 On some machines, there is a single instruction that does all the
27938 work of returning from the function. On these machines, give that
27939 instruction the name `return' and do not define the macro
27940 `TARGET_ASM_FUNCTION_EPILOGUE' at all.
27942 Do not define a pattern named `return' if you want the
27943 `TARGET_ASM_FUNCTION_EPILOGUE' to be used. If you want the target
27944 switches to control whether return instructions or epilogues are
27945 used, define a `return' pattern with a validity condition that
27946 tests the target switches appropriately. If the `return'
27947 pattern's validity condition is false, epilogues will be used.
27949 On machines where functions may or may not have frame-pointers, the
27950 function exit code must vary accordingly. Sometimes the code for
27951 these two cases is completely different. To determine whether a
27952 frame pointer is wanted, the macro can refer to the variable
27953 `frame_pointer_needed'. The variable's value will be 1 when
27954 compiling a function that needs a frame pointer.
27956 Normally, `TARGET_ASM_FUNCTION_PROLOGUE' and
27957 `TARGET_ASM_FUNCTION_EPILOGUE' must treat leaf functions specially.
27958 The C variable `current_function_is_leaf' is nonzero for such a
27959 function. *Note Leaf Functions::.
27961 On some machines, some functions pop their arguments on exit while
27962 others leave that for the caller to do. For example, the 68020
27963 when given `-mrtd' pops arguments in functions that take a fixed
27964 number of arguments.
27966 Your definition of the macro `RETURN_POPS_ARGS' decides which
27967 functions pop their own arguments. `TARGET_ASM_FUNCTION_EPILOGUE'
27968 needs to know what was decided. The variable that is called
27969 `current_function_pops_args' is the number of bytes of its
27970 arguments that a function should pop. *Note Scalar Return::.
27972 * A region of `current_function_pretend_args_size' bytes of
27973 uninitialized space just underneath the first argument arriving on
27974 the stack. (This may not be at the very start of the allocated
27975 stack region if the calling sequence has pushed anything else
27976 since pushing the stack arguments. But usually, on such machines,
27977 nothing else has been pushed yet, because the function prologue
27978 itself does all the pushing.) This region is used on machines
27979 where an argument may be passed partly in registers and partly in
27980 memory, and, in some cases to support the features in `<stdarg.h>'.
27982 * An area of memory used to save certain registers used by the
27983 function. The size of this area, which may also include space for
27984 such things as the return address and pointers to previous stack
27985 frames, is machine-specific and usually depends on which registers
27986 have been used in the function. Machines with register windows
27987 often do not require a save area.
27989 * A region of at least SIZE bytes, possibly rounded up to an
27990 allocation boundary, to contain the local variables of the
27991 function. On some machines, this region and the save area may
27992 occur in the opposite order, with the save area closer to the top
27995 * Optionally, when `ACCUMULATE_OUTGOING_ARGS' is defined, a region of
27996 `current_function_outgoing_args_size' bytes to be used for outgoing
27997 argument lists of the function. *Note Stack Arguments::.
27999 -- Macro: EXIT_IGNORE_STACK
28000 Define this macro as a C expression that is nonzero if the return
28001 instruction or the function epilogue ignores the value of the stack
28002 pointer; in other words, if it is safe to delete an instruction to
28003 adjust the stack pointer before a return from the function. The
28006 Note that this macro's value is relevant only for functions for
28007 which frame pointers are maintained. It is never safe to delete a
28008 final stack adjustment in a function that has no frame pointer,
28009 and the compiler knows this regardless of `EXIT_IGNORE_STACK'.
28011 -- Macro: EPILOGUE_USES (REGNO)
28012 Define this macro as a C expression that is nonzero for registers
28013 that are used by the epilogue or the `return' pattern. The stack
28014 and frame pointer registers are already assumed to be used as
28017 -- Macro: EH_USES (REGNO)
28018 Define this macro as a C expression that is nonzero for registers
28019 that are used by the exception handling mechanism, and so should
28020 be considered live on entry to an exception edge.
28022 -- Macro: DELAY_SLOTS_FOR_EPILOGUE
28023 Define this macro if the function epilogue contains delay slots to
28024 which instructions from the rest of the function can be "moved".
28025 The definition should be a C expression whose value is an integer
28026 representing the number of delay slots there.
28028 -- Macro: ELIGIBLE_FOR_EPILOGUE_DELAY (INSN, N)
28029 A C expression that returns 1 if INSN can be placed in delay slot
28030 number N of the epilogue.
28032 The argument N is an integer which identifies the delay slot now
28033 being considered (since different slots may have different rules of
28034 eligibility). It is never negative and is always less than the
28035 number of epilogue delay slots (what `DELAY_SLOTS_FOR_EPILOGUE'
28036 returns). If you reject a particular insn for a given delay slot,
28037 in principle, it may be reconsidered for a subsequent delay slot.
28038 Also, other insns may (at least in principle) be considered for
28039 the so far unfilled delay slot.
28041 The insns accepted to fill the epilogue delay slots are put in an
28042 RTL list made with `insn_list' objects, stored in the variable
28043 `current_function_epilogue_delay_list'. The insn for the first
28044 delay slot comes first in the list. Your definition of the macro
28045 `TARGET_ASM_FUNCTION_EPILOGUE' should fill the delay slots by
28046 outputting the insns in this list, usually by calling
28049 You need not define this macro if you did not define
28050 `DELAY_SLOTS_FOR_EPILOGUE'.
28052 -- Target Hook: void TARGET_ASM_OUTPUT_MI_THUNK (FILE *FILE, tree
28053 THUNK_FNDECL, HOST_WIDE_INT DELTA, HOST_WIDE_INT
28054 VCALL_OFFSET, tree FUNCTION)
28055 A function that outputs the assembler code for a thunk function,
28056 used to implement C++ virtual function calls with multiple
28057 inheritance. The thunk acts as a wrapper around a virtual
28058 function, adjusting the implicit object parameter before handing
28059 control off to the real function.
28061 First, emit code to add the integer DELTA to the location that
28062 contains the incoming first argument. Assume that this argument
28063 contains a pointer, and is the one used to pass the `this' pointer
28064 in C++. This is the incoming argument _before_ the function
28065 prologue, e.g. `%o0' on a sparc. The addition must preserve the
28066 values of all other incoming arguments.
28068 Then, if VCALL_OFFSET is nonzero, an additional adjustment should
28069 be made after adding `delta'. In particular, if P is the adjusted
28070 pointer, the following adjustment should be made:
28072 p += (*((ptrdiff_t **)p))[vcall_offset/sizeof(ptrdiff_t)]
28074 After the additions, emit code to jump to FUNCTION, which is a
28075 `FUNCTION_DECL'. This is a direct pure jump, not a call, and does
28076 not touch the return address. Hence returning from FUNCTION will
28077 return to whoever called the current `thunk'.
28079 The effect must be as if FUNCTION had been called directly with
28080 the adjusted first argument. This macro is responsible for
28081 emitting all of the code for a thunk function;
28082 `TARGET_ASM_FUNCTION_PROLOGUE' and `TARGET_ASM_FUNCTION_EPILOGUE'
28085 The THUNK_FNDECL is redundant. (DELTA and FUNCTION have already
28086 been extracted from it.) It might possibly be useful on some
28087 targets, but probably not.
28089 If you do not define this macro, the target-independent code in
28090 the C++ front end will generate a less efficient heavyweight thunk
28091 that calls FUNCTION instead of jumping to it. The generic
28092 approach does not support varargs.
28094 -- Target Hook: bool TARGET_ASM_CAN_OUTPUT_MI_THUNK (tree
28095 THUNK_FNDECL, HOST_WIDE_INT DELTA, HOST_WIDE_INT
28096 VCALL_OFFSET, tree FUNCTION)
28097 A function that returns true if TARGET_ASM_OUTPUT_MI_THUNK would
28098 be able to output the assembler code for the thunk function
28099 specified by the arguments it is passed, and false otherwise. In
28100 the latter case, the generic approach will be used by the C++
28101 front end, with the limitations previously exposed.
28104 File: gccint.info, Node: Profiling, Next: Tail Calls, Prev: Function Entry, Up: Stack and Calling
28106 17.10.12 Generating Code for Profiling
28107 --------------------------------------
28109 These macros will help you generate code for profiling.
28111 -- Macro: FUNCTION_PROFILER (FILE, LABELNO)
28112 A C statement or compound statement to output to FILE some
28113 assembler code to call the profiling subroutine `mcount'.
28115 The details of how `mcount' expects to be called are determined by
28116 your operating system environment, not by GCC. To figure them out,
28117 compile a small program for profiling using the system's installed
28118 C compiler and look at the assembler code that results.
28120 Older implementations of `mcount' expect the address of a counter
28121 variable to be loaded into some register. The name of this
28122 variable is `LP' followed by the number LABELNO, so you would
28123 generate the name using `LP%d' in a `fprintf'.
28125 -- Macro: PROFILE_HOOK
28126 A C statement or compound statement to output to FILE some assembly
28127 code to call the profiling subroutine `mcount' even the target does
28128 not support profiling.
28130 -- Macro: NO_PROFILE_COUNTERS
28131 Define this macro to be an expression with a nonzero value if the
28132 `mcount' subroutine on your system does not need a counter variable
28133 allocated for each function. This is true for almost all modern
28134 implementations. If you define this macro, you must not use the
28135 LABELNO argument to `FUNCTION_PROFILER'.
28137 -- Macro: PROFILE_BEFORE_PROLOGUE
28138 Define this macro if the code for function profiling should come
28139 before the function prologue. Normally, the profiling code comes
28143 File: gccint.info, Node: Tail Calls, Next: Stack Smashing Protection, Prev: Profiling, Up: Stack and Calling
28145 17.10.13 Permitting tail calls
28146 ------------------------------
28148 -- Target Hook: bool TARGET_FUNCTION_OK_FOR_SIBCALL (tree DECL, tree
28150 True if it is ok to do sibling call optimization for the specified
28151 call expression EXP. DECL will be the called function, or `NULL'
28152 if this is an indirect call.
28154 It is not uncommon for limitations of calling conventions to
28155 prevent tail calls to functions outside the current unit of
28156 translation, or during PIC compilation. The hook is used to
28157 enforce these restrictions, as the `sibcall' md pattern can not
28158 fail, or fall over to a "normal" call. The criteria for
28159 successful sibling call optimization may vary greatly between
28160 different architectures.
28162 -- Target Hook: void TARGET_EXTRA_LIVE_ON_ENTRY (bitmap *REGS)
28163 Add any hard registers to REGS that are live on entry to the
28164 function. This hook only needs to be defined to provide registers
28165 that cannot be found by examination of FUNCTION_ARG_REGNO_P, the
28166 callee saved registers, STATIC_CHAIN_INCOMING_REGNUM,
28167 STATIC_CHAIN_REGNUM, TARGET_STRUCT_VALUE_RTX,
28168 FRAME_POINTER_REGNUM, EH_USES, FRAME_POINTER_REGNUM,
28169 ARG_POINTER_REGNUM, and the PIC_OFFSET_TABLE_REGNUM.
28172 File: gccint.info, Node: Stack Smashing Protection, Prev: Tail Calls, Up: Stack and Calling
28174 17.10.14 Stack smashing protection
28175 ----------------------------------
28177 -- Target Hook: tree TARGET_STACK_PROTECT_GUARD (void)
28178 This hook returns a `DECL' node for the external variable to use
28179 for the stack protection guard. This variable is initialized by
28180 the runtime to some random value and is used to initialize the
28181 guard value that is placed at the top of the local stack frame.
28182 The type of this variable must be `ptr_type_node'.
28184 The default version of this hook creates a variable called
28185 `__stack_chk_guard', which is normally defined in `libgcc2.c'.
28187 -- Target Hook: tree TARGET_STACK_PROTECT_FAIL (void)
28188 This hook returns a tree expression that alerts the runtime that
28189 the stack protect guard variable has been modified. This
28190 expression should involve a call to a `noreturn' function.
28192 The default version of this hook invokes a function called
28193 `__stack_chk_fail', taking no arguments. This function is
28194 normally defined in `libgcc2.c'.
28197 File: gccint.info, Node: Varargs, Next: Trampolines, Prev: Stack and Calling, Up: Target Macros
28199 17.11 Implementing the Varargs Macros
28200 =====================================
28202 GCC comes with an implementation of `<varargs.h>' and `<stdarg.h>' that
28203 work without change on machines that pass arguments on the stack.
28204 Other machines require their own implementations of varargs, and the
28205 two machine independent header files must have conditionals to include
28208 ISO `<stdarg.h>' differs from traditional `<varargs.h>' mainly in the
28209 calling convention for `va_start'. The traditional implementation
28210 takes just one argument, which is the variable in which to store the
28211 argument pointer. The ISO implementation of `va_start' takes an
28212 additional second argument. The user is supposed to write the last
28213 named argument of the function here.
28215 However, `va_start' should not use this argument. The way to find the
28216 end of the named arguments is with the built-in functions described
28219 -- Macro: __builtin_saveregs ()
28220 Use this built-in function to save the argument registers in
28221 memory so that the varargs mechanism can access them. Both ISO
28222 and traditional versions of `va_start' must use
28223 `__builtin_saveregs', unless you use
28224 `TARGET_SETUP_INCOMING_VARARGS' (see below) instead.
28226 On some machines, `__builtin_saveregs' is open-coded under the
28227 control of the target hook `TARGET_EXPAND_BUILTIN_SAVEREGS'. On
28228 other machines, it calls a routine written in assembler language,
28229 found in `libgcc2.c'.
28231 Code generated for the call to `__builtin_saveregs' appears at the
28232 beginning of the function, as opposed to where the call to
28233 `__builtin_saveregs' is written, regardless of what the code is.
28234 This is because the registers must be saved before the function
28235 starts to use them for its own purposes.
28237 -- Macro: __builtin_args_info (CATEGORY)
28238 Use this built-in function to find the first anonymous arguments in
28241 In general, a machine may have several categories of registers
28242 used for arguments, each for a particular category of data types.
28243 (For example, on some machines, floating-point registers are used
28244 for floating-point arguments while other arguments are passed in
28245 the general registers.) To make non-varargs functions use the
28246 proper calling convention, you have defined the `CUMULATIVE_ARGS'
28247 data type to record how many registers in each category have been
28250 `__builtin_args_info' accesses the same data structure of type
28251 `CUMULATIVE_ARGS' after the ordinary argument layout is finished
28252 with it, with CATEGORY specifying which word to access. Thus, the
28253 value indicates the first unused register in a given category.
28255 Normally, you would use `__builtin_args_info' in the implementation
28256 of `va_start', accessing each category just once and storing the
28257 value in the `va_list' object. This is because `va_list' will
28258 have to update the values, and there is no way to alter the values
28259 accessed by `__builtin_args_info'.
28261 -- Macro: __builtin_next_arg (LASTARG)
28262 This is the equivalent of `__builtin_args_info', for stack
28263 arguments. It returns the address of the first anonymous stack
28264 argument, as type `void *'. If `ARGS_GROW_DOWNWARD', it returns
28265 the address of the location above the first anonymous stack
28266 argument. Use it in `va_start' to initialize the pointer for
28267 fetching arguments from the stack. Also use it in `va_start' to
28268 verify that the second parameter LASTARG is the last named argument
28269 of the current function.
28271 -- Macro: __builtin_classify_type (OBJECT)
28272 Since each machine has its own conventions for which data types are
28273 passed in which kind of register, your implementation of `va_arg'
28274 has to embody these conventions. The easiest way to categorize the
28275 specified data type is to use `__builtin_classify_type' together
28276 with `sizeof' and `__alignof__'.
28278 `__builtin_classify_type' ignores the value of OBJECT, considering
28279 only its data type. It returns an integer describing what kind of
28280 type that is--integer, floating, pointer, structure, and so on.
28282 The file `typeclass.h' defines an enumeration that you can use to
28283 interpret the values of `__builtin_classify_type'.
28285 These machine description macros help implement varargs:
28287 -- Target Hook: rtx TARGET_EXPAND_BUILTIN_SAVEREGS (void)
28288 If defined, this hook produces the machine-specific code for a
28289 call to `__builtin_saveregs'. This code will be moved to the very
28290 beginning of the function, before any parameter access are made.
28291 The return value of this function should be an RTX that contains
28292 the value to use as the return of `__builtin_saveregs'.
28294 -- Target Hook: void TARGET_SETUP_INCOMING_VARARGS (CUMULATIVE_ARGS
28295 *ARGS_SO_FAR, enum machine_mode MODE, tree TYPE, int
28296 *PRETEND_ARGS_SIZE, int SECOND_TIME)
28297 This target hook offers an alternative to using
28298 `__builtin_saveregs' and defining the hook
28299 `TARGET_EXPAND_BUILTIN_SAVEREGS'. Use it to store the anonymous
28300 register arguments into the stack so that all the arguments appear
28301 to have been passed consecutively on the stack. Once this is
28302 done, you can use the standard implementation of varargs that
28303 works for machines that pass all their arguments on the stack.
28305 The argument ARGS_SO_FAR points to the `CUMULATIVE_ARGS' data
28306 structure, containing the values that are obtained after
28307 processing the named arguments. The arguments MODE and TYPE
28308 describe the last named argument--its machine mode and its data
28309 type as a tree node.
28311 The target hook should do two things: first, push onto the stack
28312 all the argument registers _not_ used for the named arguments, and
28313 second, store the size of the data thus pushed into the
28314 `int'-valued variable pointed to by PRETEND_ARGS_SIZE. The value
28315 that you store here will serve as additional offset for setting up
28318 Because you must generate code to push the anonymous arguments at
28319 compile time without knowing their data types,
28320 `TARGET_SETUP_INCOMING_VARARGS' is only useful on machines that
28321 have just a single category of argument register and use it
28322 uniformly for all data types.
28324 If the argument SECOND_TIME is nonzero, it means that the
28325 arguments of the function are being analyzed for the second time.
28326 This happens for an inline function, which is not actually
28327 compiled until the end of the source file. The hook
28328 `TARGET_SETUP_INCOMING_VARARGS' should not generate any
28329 instructions in this case.
28331 -- Target Hook: bool TARGET_STRICT_ARGUMENT_NAMING (CUMULATIVE_ARGS
28333 Define this hook to return `true' if the location where a function
28334 argument is passed depends on whether or not it is a named
28337 This hook controls how the NAMED argument to `FUNCTION_ARG' is set
28338 for varargs and stdarg functions. If this hook returns `true',
28339 the NAMED argument is always true for named arguments, and false
28340 for unnamed arguments. If it returns `false', but
28341 `TARGET_PRETEND_OUTGOING_VARARGS_NAMED' returns `true', then all
28342 arguments are treated as named. Otherwise, all named arguments
28343 except the last are treated as named.
28345 You need not define this hook if it always returns zero.
28347 -- Target Hook: bool TARGET_PRETEND_OUTGOING_VARARGS_NAMED
28348 If you need to conditionally change ABIs so that one works with
28349 `TARGET_SETUP_INCOMING_VARARGS', but the other works like neither
28350 `TARGET_SETUP_INCOMING_VARARGS' nor
28351 `TARGET_STRICT_ARGUMENT_NAMING' was defined, then define this hook
28352 to return `true' if `TARGET_SETUP_INCOMING_VARARGS' is used,
28353 `false' otherwise. Otherwise, you should not define this hook.
28356 File: gccint.info, Node: Trampolines, Next: Library Calls, Prev: Varargs, Up: Target Macros
28358 17.12 Trampolines for Nested Functions
28359 ======================================
28361 A "trampoline" is a small piece of code that is created at run time
28362 when the address of a nested function is taken. It normally resides on
28363 the stack, in the stack frame of the containing function. These macros
28364 tell GCC how to generate code to allocate and initialize a trampoline.
28366 The instructions in the trampoline must do two things: load a constant
28367 address into the static chain register, and jump to the real address of
28368 the nested function. On CISC machines such as the m68k, this requires
28369 two instructions, a move immediate and a jump. Then the two addresses
28370 exist in the trampoline as word-long immediate operands. On RISC
28371 machines, it is often necessary to load each address into a register in
28372 two parts. Then pieces of each address form separate immediate
28375 The code generated to initialize the trampoline must store the variable
28376 parts--the static chain value and the function address--into the
28377 immediate operands of the instructions. On a CISC machine, this is
28378 simply a matter of copying each address to a memory reference at the
28379 proper offset from the start of the trampoline. On a RISC machine, it
28380 may be necessary to take out pieces of the address and store them
28383 -- Macro: TRAMPOLINE_TEMPLATE (FILE)
28384 A C statement to output, on the stream FILE, assembler code for a
28385 block of data that contains the constant parts of a trampoline.
28386 This code should not include a label--the label is taken care of
28389 If you do not define this macro, it means no template is needed
28390 for the target. Do not define this macro on systems where the
28391 block move code to copy the trampoline into place would be larger
28392 than the code to generate it on the spot.
28394 -- Macro: TRAMPOLINE_SECTION
28395 Return the section into which the trampoline template is to be
28396 placed (*note Sections::). The default value is
28397 `readonly_data_section'.
28399 -- Macro: TRAMPOLINE_SIZE
28400 A C expression for the size in bytes of the trampoline, as an
28403 -- Macro: TRAMPOLINE_ALIGNMENT
28404 Alignment required for trampolines, in bits.
28406 If you don't define this macro, the value of `BIGGEST_ALIGNMENT'
28407 is used for aligning trampolines.
28409 -- Macro: INITIALIZE_TRAMPOLINE (ADDR, FNADDR, STATIC_CHAIN)
28410 A C statement to initialize the variable parts of a trampoline.
28411 ADDR is an RTX for the address of the trampoline; FNADDR is an RTX
28412 for the address of the nested function; STATIC_CHAIN is an RTX for
28413 the static chain value that should be passed to the function when
28416 -- Macro: TRAMPOLINE_ADJUST_ADDRESS (ADDR)
28417 A C statement that should perform any machine-specific adjustment
28418 in the address of the trampoline. Its argument contains the
28419 address that was passed to `INITIALIZE_TRAMPOLINE'. In case the
28420 address to be used for a function call should be different from
28421 the address in which the template was stored, the different
28422 address should be assigned to ADDR. If this macro is not defined,
28423 ADDR will be used for function calls.
28425 If this macro is not defined, by default the trampoline is
28426 allocated as a stack slot. This default is right for most
28427 machines. The exceptions are machines where it is impossible to
28428 execute instructions in the stack area. On such machines, you may
28429 have to implement a separate stack, using this macro in
28430 conjunction with `TARGET_ASM_FUNCTION_PROLOGUE' and
28431 `TARGET_ASM_FUNCTION_EPILOGUE'.
28433 FP points to a data structure, a `struct function', which
28434 describes the compilation status of the immediate containing
28435 function of the function which the trampoline is for. The stack
28436 slot for the trampoline is in the stack frame of this containing
28437 function. Other allocation strategies probably must do something
28438 analogous with this information.
28440 Implementing trampolines is difficult on many machines because they
28441 have separate instruction and data caches. Writing into a stack
28442 location fails to clear the memory in the instruction cache, so when
28443 the program jumps to that location, it executes the old contents.
28445 Here are two possible solutions. One is to clear the relevant parts of
28446 the instruction cache whenever a trampoline is set up. The other is to
28447 make all trampolines identical, by having them jump to a standard
28448 subroutine. The former technique makes trampoline execution faster; the
28449 latter makes initialization faster.
28451 To clear the instruction cache when a trampoline is initialized, define
28452 the following macro.
28454 -- Macro: CLEAR_INSN_CACHE (BEG, END)
28455 If defined, expands to a C expression clearing the _instruction
28456 cache_ in the specified interval. The definition of this macro
28457 would typically be a series of `asm' statements. Both BEG and END
28458 are both pointer expressions.
28460 The operating system may also require the stack to be made executable
28461 before calling the trampoline. To implement this requirement, define
28462 the following macro.
28464 -- Macro: ENABLE_EXECUTE_STACK
28465 Define this macro if certain operations must be performed before
28466 executing code located on the stack. The macro should expand to a
28467 series of C file-scope constructs (e.g. functions) and provide a
28468 unique entry point named `__enable_execute_stack'. The target is
28469 responsible for emitting calls to the entry point in the code, for
28470 example from the `INITIALIZE_TRAMPOLINE' macro.
28472 To use a standard subroutine, define the following macro. In addition,
28473 you must make sure that the instructions in a trampoline fill an entire
28474 cache line with identical instructions, or else ensure that the
28475 beginning of the trampoline code is always aligned at the same point in
28476 its cache line. Look in `m68k.h' as a guide.
28478 -- Macro: TRANSFER_FROM_TRAMPOLINE
28479 Define this macro if trampolines need a special subroutine to do
28480 their work. The macro should expand to a series of `asm'
28481 statements which will be compiled with GCC. They go in a library
28482 function named `__transfer_from_trampoline'.
28484 If you need to avoid executing the ordinary prologue code of a
28485 compiled C function when you jump to the subroutine, you can do so
28486 by placing a special label of your own in the assembler code. Use
28487 one `asm' statement to generate an assembler label, and another to
28488 make the label global. Then trampolines can use that label to
28489 jump directly to your special assembler code.
28492 File: gccint.info, Node: Library Calls, Next: Addressing Modes, Prev: Trampolines, Up: Target Macros
28494 17.13 Implicit Calls to Library Routines
28495 ========================================
28497 Here is an explanation of implicit calls to library routines.
28499 -- Macro: DECLARE_LIBRARY_RENAMES
28500 This macro, if defined, should expand to a piece of C code that
28501 will get expanded when compiling functions for libgcc.a. It can
28502 be used to provide alternate names for GCC's internal library
28503 functions if there are ABI-mandated names that the compiler should
28506 -- Target Hook: void TARGET_INIT_LIBFUNCS (void)
28507 This hook should declare additional library routines or rename
28508 existing ones, using the functions `set_optab_libfunc' and
28509 `init_one_libfunc' defined in `optabs.c'. `init_optabs' calls
28510 this macro after initializing all the normal library routines.
28512 The default is to do nothing. Most ports don't need to define
28515 -- Macro: FLOAT_LIB_COMPARE_RETURNS_BOOL (MODE, COMPARISON)
28516 This macro should return `true' if the library routine that
28517 implements the floating point comparison operator COMPARISON in
28518 mode MODE will return a boolean, and FALSE if it will return a
28521 GCC's own floating point libraries return tristates from the
28522 comparison operators, so the default returns false always. Most
28523 ports don't need to define this macro.
28525 -- Macro: TARGET_LIB_INT_CMP_BIASED
28526 This macro should evaluate to `true' if the integer comparison
28527 functions (like `__cmpdi2') return 0 to indicate that the first
28528 operand is smaller than the second, 1 to indicate that they are
28529 equal, and 2 to indicate that the first operand is greater than
28530 the second. If this macro evaluates to `false' the comparison
28531 functions return -1, 0, and 1 instead of 0, 1, and 2. If the
28532 target uses the routines in `libgcc.a', you do not need to define
28535 -- Macro: US_SOFTWARE_GOFAST
28536 Define this macro if your system C library uses the US Software
28537 GOFAST library to provide floating point emulation.
28539 In addition to defining this macro, your architecture must set
28540 `TARGET_INIT_LIBFUNCS' to `gofast_maybe_init_libfuncs', or else
28541 call that function from its version of that hook. It is defined
28542 in `config/gofast.h', which must be included by your
28543 architecture's `CPU.c' file. See `sparc/sparc.c' for an example.
28545 If this macro is defined, the
28546 `TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL' target hook must return
28547 false for `SFmode' and `DFmode' comparisons.
28549 -- Macro: TARGET_EDOM
28550 The value of `EDOM' on the target machine, as a C integer constant
28551 expression. If you don't define this macro, GCC does not attempt
28552 to deposit the value of `EDOM' into `errno' directly. Look in
28553 `/usr/include/errno.h' to find the value of `EDOM' on your system.
28555 If you do not define `TARGET_EDOM', then compiled code reports
28556 domain errors by calling the library function and letting it
28557 report the error. If mathematical functions on your system use
28558 `matherr' when there is an error, then you should leave
28559 `TARGET_EDOM' undefined so that `matherr' is used normally.
28561 -- Macro: GEN_ERRNO_RTX
28562 Define this macro as a C expression to create an rtl expression
28563 that refers to the global "variable" `errno'. (On certain systems,
28564 `errno' may not actually be a variable.) If you don't define this
28565 macro, a reasonable default is used.
28567 -- Macro: TARGET_C99_FUNCTIONS
28568 When this macro is nonzero, GCC will implicitly optimize `sin'
28569 calls into `sinf' and similarly for other functions defined by C99
28570 standard. The default is zero because a number of existing
28571 systems lack support for these functions in their runtime so this
28572 macro needs to be redefined to one on systems that do support the
28575 -- Macro: TARGET_HAS_SINCOS
28576 When this macro is nonzero, GCC will implicitly optimize calls to
28577 `sin' and `cos' with the same argument to a call to `sincos'. The
28578 default is zero. The target has to provide the following
28580 void sincos(double x, double *sin, double *cos);
28581 void sincosf(float x, float *sin, float *cos);
28582 void sincosl(long double x, long double *sin, long double *cos);
28584 -- Macro: NEXT_OBJC_RUNTIME
28585 Define this macro to generate code for Objective-C message sending
28586 using the calling convention of the NeXT system. This calling
28587 convention involves passing the object, the selector and the
28588 method arguments all at once to the method-lookup library function.
28590 The default calling convention passes just the object and the
28591 selector to the lookup function, which returns a pointer to the
28595 File: gccint.info, Node: Addressing Modes, Next: Anchored Addresses, Prev: Library Calls, Up: Target Macros
28597 17.14 Addressing Modes
28598 ======================
28600 This is about addressing modes.
28602 -- Macro: HAVE_PRE_INCREMENT
28603 -- Macro: HAVE_PRE_DECREMENT
28604 -- Macro: HAVE_POST_INCREMENT
28605 -- Macro: HAVE_POST_DECREMENT
28606 A C expression that is nonzero if the machine supports
28607 pre-increment, pre-decrement, post-increment, or post-decrement
28608 addressing respectively.
28610 -- Macro: HAVE_PRE_MODIFY_DISP
28611 -- Macro: HAVE_POST_MODIFY_DISP
28612 A C expression that is nonzero if the machine supports pre- or
28613 post-address side-effect generation involving constants other than
28614 the size of the memory operand.
28616 -- Macro: HAVE_PRE_MODIFY_REG
28617 -- Macro: HAVE_POST_MODIFY_REG
28618 A C expression that is nonzero if the machine supports pre- or
28619 post-address side-effect generation involving a register
28622 -- Macro: CONSTANT_ADDRESS_P (X)
28623 A C expression that is 1 if the RTX X is a constant which is a
28624 valid address. On most machines, this can be defined as
28625 `CONSTANT_P (X)', but a few machines are more restrictive in which
28626 constant addresses are supported.
28628 -- Macro: CONSTANT_P (X)
28629 `CONSTANT_P', which is defined by target-independent code, accepts
28630 integer-values expressions whose values are not explicitly known,
28631 such as `symbol_ref', `label_ref', and `high' expressions and
28632 `const' arithmetic expressions, in addition to `const_int' and
28633 `const_double' expressions.
28635 -- Macro: MAX_REGS_PER_ADDRESS
28636 A number, the maximum number of registers that can appear in a
28637 valid memory address. Note that it is up to you to specify a
28638 value equal to the maximum number that `GO_IF_LEGITIMATE_ADDRESS'
28641 -- Macro: GO_IF_LEGITIMATE_ADDRESS (MODE, X, LABEL)
28642 A C compound statement with a conditional `goto LABEL;' executed
28643 if X (an RTX) is a legitimate memory address on the target machine
28644 for a memory operand of mode MODE.
28646 It usually pays to define several simpler macros to serve as
28647 subroutines for this one. Otherwise it may be too complicated to
28650 This macro must exist in two variants: a strict variant and a
28651 non-strict one. The strict variant is used in the reload pass. It
28652 must be defined so that any pseudo-register that has not been
28653 allocated a hard register is considered a memory reference. In
28654 contexts where some kind of register is required, a pseudo-register
28655 with no hard register must be rejected.
28657 The non-strict variant is used in other passes. It must be
28658 defined to accept all pseudo-registers in every context where some
28659 kind of register is required.
28661 Compiler source files that want to use the strict variant of this
28662 macro define the macro `REG_OK_STRICT'. You should use an `#ifdef
28663 REG_OK_STRICT' conditional to define the strict variant in that
28664 case and the non-strict variant otherwise.
28666 Subroutines to check for acceptable registers for various purposes
28667 (one for base registers, one for index registers, and so on) are
28668 typically among the subroutines used to define
28669 `GO_IF_LEGITIMATE_ADDRESS'. Then only these subroutine macros
28670 need have two variants; the higher levels of macros may be the
28671 same whether strict or not.
28673 Normally, constant addresses which are the sum of a `symbol_ref'
28674 and an integer are stored inside a `const' RTX to mark them as
28675 constant. Therefore, there is no need to recognize such sums
28676 specifically as legitimate addresses. Normally you would simply
28677 recognize any `const' as legitimate.
28679 Usually `PRINT_OPERAND_ADDRESS' is not prepared to handle constant
28680 sums that are not marked with `const'. It assumes that a naked
28681 `plus' indicates indexing. If so, then you _must_ reject such
28682 naked constant sums as illegitimate addresses, so that none of
28683 them will be given to `PRINT_OPERAND_ADDRESS'.
28685 On some machines, whether a symbolic address is legitimate depends
28686 on the section that the address refers to. On these machines,
28687 define the target hook `TARGET_ENCODE_SECTION_INFO' to store the
28688 information into the `symbol_ref', and then check for it here.
28689 When you see a `const', you will have to look inside it to find the
28690 `symbol_ref' in order to determine the section. *Note Assembler
28693 -- Macro: TARGET_MEM_CONSTRAINT
28694 A single character to be used instead of the default `'m''
28695 character for general memory addresses. This defines the
28696 constraint letter which matches the memory addresses accepted by
28697 `GO_IF_LEGITIMATE_ADDRESS_P'. Define this macro if you want to
28698 support new address formats in your back end without changing the
28699 semantics of the `'m'' constraint. This is necessary in order to
28700 preserve functionality of inline assembly constructs using the
28703 -- Macro: FIND_BASE_TERM (X)
28704 A C expression to determine the base term of address X, or to
28705 provide a simplified version of X from which `alias.c' can easily
28706 find the base term. This macro is used in only two places:
28707 `find_base_value' and `find_base_term' in `alias.c'.
28709 It is always safe for this macro to not be defined. It exists so
28710 that alias analysis can understand machine-dependent addresses.
28712 The typical use of this macro is to handle addresses containing a
28713 label_ref or symbol_ref within an UNSPEC.
28715 -- Macro: LEGITIMIZE_ADDRESS (X, OLDX, MODE, WIN)
28716 A C compound statement that attempts to replace X with a valid
28717 memory address for an operand of mode MODE. WIN will be a C
28718 statement label elsewhere in the code; the macro definition may use
28720 GO_IF_LEGITIMATE_ADDRESS (MODE, X, WIN);
28722 to avoid further processing if the address has become legitimate.
28724 X will always be the result of a call to `break_out_memory_refs',
28725 and OLDX will be the operand that was given to that function to
28728 The code generated by this macro should not alter the substructure
28729 of X. If it transforms X into a more legitimate form, it should
28730 assign X (which will always be a C variable) a new value.
28732 It is not necessary for this macro to come up with a legitimate
28733 address. The compiler has standard ways of doing so in all cases.
28734 In fact, it is safe to omit this macro. But often a
28735 machine-dependent strategy can generate better code.
28737 -- Macro: LEGITIMIZE_RELOAD_ADDRESS (X, MODE, OPNUM, TYPE, IND_LEVELS,
28739 A C compound statement that attempts to replace X, which is an
28740 address that needs reloading, with a valid memory address for an
28741 operand of mode MODE. WIN will be a C statement label elsewhere
28742 in the code. It is not necessary to define this macro, but it
28743 might be useful for performance reasons.
28745 For example, on the i386, it is sometimes possible to use a single
28746 reload register instead of two by reloading a sum of two pseudo
28747 registers into a register. On the other hand, for number of RISC
28748 processors offsets are limited so that often an intermediate
28749 address needs to be generated in order to address a stack slot.
28750 By defining `LEGITIMIZE_RELOAD_ADDRESS' appropriately, the
28751 intermediate addresses generated for adjacent some stack slots can
28752 be made identical, and thus be shared.
28754 _Note_: This macro should be used with caution. It is necessary
28755 to know something of how reload works in order to effectively use
28756 this, and it is quite easy to produce macros that build in too
28757 much knowledge of reload internals.
28759 _Note_: This macro must be able to reload an address created by a
28760 previous invocation of this macro. If it fails to handle such
28761 addresses then the compiler may generate incorrect code or abort.
28763 The macro definition should use `push_reload' to indicate parts
28764 that need reloading; OPNUM, TYPE and IND_LEVELS are usually
28765 suitable to be passed unaltered to `push_reload'.
28767 The code generated by this macro must not alter the substructure of
28768 X. If it transforms X into a more legitimate form, it should
28769 assign X (which will always be a C variable) a new value. This
28770 also applies to parts that you change indirectly by calling
28773 The macro definition may use `strict_memory_address_p' to test if
28774 the address has become legitimate.
28776 If you want to change only a part of X, one standard way of doing
28777 this is to use `copy_rtx'. Note, however, that it unshares only a
28778 single level of rtl. Thus, if the part to be changed is not at the
28779 top level, you'll need to replace first the top level. It is not
28780 necessary for this macro to come up with a legitimate address;
28781 but often a machine-dependent strategy can generate better code.
28783 -- Macro: GO_IF_MODE_DEPENDENT_ADDRESS (ADDR, LABEL)
28784 A C statement or compound statement with a conditional `goto
28785 LABEL;' executed if memory address X (an RTX) can have different
28786 meanings depending on the machine mode of the memory reference it
28787 is used for or if the address is valid for some modes but not
28790 Autoincrement and autodecrement addresses typically have
28791 mode-dependent effects because the amount of the increment or
28792 decrement is the size of the operand being addressed. Some
28793 machines have other mode-dependent addresses. Many RISC machines
28794 have no mode-dependent addresses.
28796 You may assume that ADDR is a valid address for the machine.
28798 -- Macro: LEGITIMATE_CONSTANT_P (X)
28799 A C expression that is nonzero if X is a legitimate constant for
28800 an immediate operand on the target machine. You can assume that X
28801 satisfies `CONSTANT_P', so you need not check this. In fact, `1'
28802 is a suitable definition for this macro on machines where anything
28803 `CONSTANT_P' is valid.
28805 -- Target Hook: rtx TARGET_DELEGITIMIZE_ADDRESS (rtx X)
28806 This hook is used to undo the possibly obfuscating effects of the
28807 `LEGITIMIZE_ADDRESS' and `LEGITIMIZE_RELOAD_ADDRESS' target
28808 macros. Some backend implementations of these macros wrap symbol
28809 references inside an `UNSPEC' rtx to represent PIC or similar
28810 addressing modes. This target hook allows GCC's optimizers to
28811 understand the semantics of these opaque `UNSPEC's by converting
28812 them back into their original form.
28814 -- Target Hook: bool TARGET_CANNOT_FORCE_CONST_MEM (rtx X)
28815 This hook should return true if X is of a form that cannot (or
28816 should not) be spilled to the constant pool. The default version
28817 of this hook returns false.
28819 The primary reason to define this hook is to prevent reload from
28820 deciding that a non-legitimate constant would be better reloaded
28821 from the constant pool instead of spilling and reloading a register
28822 holding the constant. This restriction is often true of addresses
28823 of TLS symbols for various targets.
28825 -- Target Hook: bool TARGET_USE_BLOCKS_FOR_CONSTANT_P (enum
28826 machine_mode MODE, rtx X)
28827 This hook should return true if pool entries for constant X can be
28828 placed in an `object_block' structure. MODE is the mode of X.
28830 The default version returns false for all constants.
28832 -- Target Hook: tree TARGET_BUILTIN_RECIPROCAL (enum tree_code FN,
28833 bool TM_FN, bool SQRT)
28834 This hook should return the DECL of a function that implements
28835 reciprocal of the builtin function with builtin function code FN,
28836 or `NULL_TREE' if such a function is not available. TM_FN is true
28837 when FN is a code of a machine-dependent builtin function. When
28838 SQRT is true, additional optimizations that apply only to the
28839 reciprocal of a square root function are performed, and only
28840 reciprocals of `sqrt' function are valid.
28842 -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD (void)
28843 This hook should return the DECL of a function F that given an
28844 address ADDR as an argument returns a mask M that can be used to
28845 extract from two vectors the relevant data that resides in ADDR in
28846 case ADDR is not properly aligned.
28848 The autovectorizer, when vectorizing a load operation from an
28849 address ADDR that may be unaligned, will generate two vector loads
28850 from the two aligned addresses around ADDR. It then generates a
28851 `REALIGN_LOAD' operation to extract the relevant data from the two
28852 loaded vectors. The first two arguments to `REALIGN_LOAD', V1 and
28853 V2, are the two vectors, each of size VS, and the third argument,
28854 OFF, defines how the data will be extracted from these two
28855 vectors: if OFF is 0, then the returned vector is V2; otherwise,
28856 the returned vector is composed from the last VS-OFF elements of
28857 V1 concatenated to the first OFF elements of V2.
28859 If this hook is defined, the autovectorizer will generate a call
28860 to F (using the DECL tree that this hook returns) and will use the
28861 return value of F as the argument OFF to `REALIGN_LOAD'.
28862 Therefore, the mask M returned by F should comply with the
28863 semantics expected by `REALIGN_LOAD' described above. If this
28864 hook is not defined, then ADDR will be used as the argument OFF to
28865 `REALIGN_LOAD', in which case the low log2(VS)-1 bits of ADDR will
28868 -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN (tree X)
28869 This hook should return the DECL of a function F that implements
28870 widening multiplication of the even elements of two input vectors
28873 If this hook is defined, the autovectorizer will use it along with
28874 the `TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD' target hook when
28875 vectorizing widening multiplication in cases that the order of the
28876 results does not have to be preserved (e.g. used only by a
28877 reduction computation). Otherwise, the `widen_mult_hi/lo' idioms
28880 -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD (tree X)
28881 This hook should return the DECL of a function F that implements
28882 widening multiplication of the odd elements of two input vectors
28885 If this hook is defined, the autovectorizer will use it along with
28886 the `TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN' target hook when
28887 vectorizing widening multiplication in cases that the order of the
28888 results does not have to be preserved (e.g. used only by a
28889 reduction computation). Otherwise, the `widen_mult_hi/lo' idioms
28892 -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_CONVERSION (enum
28893 tree_code CODE, tree TYPE)
28894 This hook should return the DECL of a function that implements
28895 conversion of the input vector of type TYPE. If TYPE is an
28896 integral type, the result of the conversion is a vector of
28897 floating-point type of the same size. If TYPE is a floating-point
28898 type, the result of the conversion is a vector of integral type of
28899 the same size. CODE specifies how the conversion is to be applied
28900 (truncation, rounding, etc.).
28902 If this hook is defined, the autovectorizer will use the
28903 `TARGET_VECTORIZE_BUILTIN_CONVERSION' target hook when vectorizing
28904 conversion. Otherwise, it will return `NULL_TREE'.
28906 -- Target Hook: tree TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION
28907 (enum built_in_function CODE, tree VEC_TYPE_OUT, tree
28909 This hook should return the decl of a function that implements the
28910 vectorized variant of the builtin function with builtin function
28911 code CODE or `NULL_TREE' if such a function is not available. The
28912 return type of the vectorized function shall be of vector type
28913 VEC_TYPE_OUT and the argument types should be VEC_TYPE_IN.
28916 File: gccint.info, Node: Anchored Addresses, Next: Condition Code, Prev: Addressing Modes, Up: Target Macros
28918 17.15 Anchored Addresses
28919 ========================
28921 GCC usually addresses every static object as a separate entity. For
28922 example, if we have:
28924 static int a, b, c;
28925 int foo (void) { return a + b + c; }
28927 the code for `foo' will usually calculate three separate symbolic
28928 addresses: those of `a', `b' and `c'. On some targets, it would be
28929 better to calculate just one symbolic address and access the three
28930 variables relative to it. The equivalent pseudocode would be something
28935 register int *xr = &x;
28936 return xr[&a - &x] + xr[&b - &x] + xr[&c - &x];
28939 (which isn't valid C). We refer to shared addresses like `x' as
28940 "section anchors". Their use is controlled by `-fsection-anchors'.
28942 The hooks below describe the target properties that GCC needs to know
28943 in order to make effective use of section anchors. It won't use
28944 section anchors at all unless either `TARGET_MIN_ANCHOR_OFFSET' or
28945 `TARGET_MAX_ANCHOR_OFFSET' is set to a nonzero value.
28947 -- Variable: Target Hook HOST_WIDE_INT TARGET_MIN_ANCHOR_OFFSET
28948 The minimum offset that should be applied to a section anchor. On
28949 most targets, it should be the smallest offset that can be applied
28950 to a base register while still giving a legitimate address for
28951 every mode. The default value is 0.
28953 -- Variable: Target Hook HOST_WIDE_INT TARGET_MAX_ANCHOR_OFFSET
28954 Like `TARGET_MIN_ANCHOR_OFFSET', but the maximum (inclusive)
28955 offset that should be applied to section anchors. The default
28958 -- Target Hook: void TARGET_ASM_OUTPUT_ANCHOR (rtx X)
28959 Write the assembly code to define section anchor X, which is a
28960 `SYMBOL_REF' for which `SYMBOL_REF_ANCHOR_P (X)' is true. The
28961 hook is called with the assembly output position set to the
28962 beginning of `SYMBOL_REF_BLOCK (X)'.
28964 If `ASM_OUTPUT_DEF' is available, the hook's default definition
28965 uses it to define the symbol as `. + SYMBOL_REF_BLOCK_OFFSET (X)'.
28966 If `ASM_OUTPUT_DEF' is not available, the hook's default definition
28967 is `NULL', which disables the use of section anchors altogether.
28969 -- Target Hook: bool TARGET_USE_ANCHORS_FOR_SYMBOL_P (rtx X)
28970 Return true if GCC should attempt to use anchors to access
28971 `SYMBOL_REF' X. You can assume `SYMBOL_REF_HAS_BLOCK_INFO_P (X)'
28972 and `!SYMBOL_REF_ANCHOR_P (X)'.
28974 The default version is correct for most targets, but you might
28975 need to intercept this hook to handle things like target-specific
28976 attributes or target-specific sections.
28979 File: gccint.info, Node: Condition Code, Next: Costs, Prev: Anchored Addresses, Up: Target Macros
28981 17.16 Condition Code Status
28982 ===========================
28984 This describes the condition code status.
28986 The file `conditions.h' defines a variable `cc_status' to describe how
28987 the condition code was computed (in case the interpretation of the
28988 condition code depends on the instruction that it was set by). This
28989 variable contains the RTL expressions on which the condition code is
28990 currently based, and several standard flags.
28992 Sometimes additional machine-specific flags must be defined in the
28993 machine description header file. It can also add additional
28994 machine-specific information by defining `CC_STATUS_MDEP'.
28996 -- Macro: CC_STATUS_MDEP
28997 C code for a data type which is used for declaring the `mdep'
28998 component of `cc_status'. It defaults to `int'.
29000 This macro is not used on machines that do not use `cc0'.
29002 -- Macro: CC_STATUS_MDEP_INIT
29003 A C expression to initialize the `mdep' field to "empty". The
29004 default definition does nothing, since most machines don't use the
29005 field anyway. If you want to use the field, you should probably
29006 define this macro to initialize it.
29008 This macro is not used on machines that do not use `cc0'.
29010 -- Macro: NOTICE_UPDATE_CC (EXP, INSN)
29011 A C compound statement to set the components of `cc_status'
29012 appropriately for an insn INSN whose body is EXP. It is this
29013 macro's responsibility to recognize insns that set the condition
29014 code as a byproduct of other activity as well as those that
29015 explicitly set `(cc0)'.
29017 This macro is not used on machines that do not use `cc0'.
29019 If there are insns that do not set the condition code but do alter
29020 other machine registers, this macro must check to see whether they
29021 invalidate the expressions that the condition code is recorded as
29022 reflecting. For example, on the 68000, insns that store in address
29023 registers do not set the condition code, which means that usually
29024 `NOTICE_UPDATE_CC' can leave `cc_status' unaltered for such insns.
29025 But suppose that the previous insn set the condition code based
29026 on location `a4@(102)' and the current insn stores a new value in
29027 `a4'. Although the condition code is not changed by this, it will
29028 no longer be true that it reflects the contents of `a4@(102)'.
29029 Therefore, `NOTICE_UPDATE_CC' must alter `cc_status' in this case
29030 to say that nothing is known about the condition code value.
29032 The definition of `NOTICE_UPDATE_CC' must be prepared to deal with
29033 the results of peephole optimization: insns whose patterns are
29034 `parallel' RTXs containing various `reg', `mem' or constants which
29035 are just the operands. The RTL structure of these insns is not
29036 sufficient to indicate what the insns actually do. What
29037 `NOTICE_UPDATE_CC' should do when it sees one is just to run
29040 A possible definition of `NOTICE_UPDATE_CC' is to call a function
29041 that looks at an attribute (*note Insn Attributes::) named, for
29042 example, `cc'. This avoids having detailed information about
29043 patterns in two places, the `md' file and in `NOTICE_UPDATE_CC'.
29045 -- Macro: SELECT_CC_MODE (OP, X, Y)
29046 Returns a mode from class `MODE_CC' to be used when comparison
29047 operation code OP is applied to rtx X and Y. For example, on the
29048 SPARC, `SELECT_CC_MODE' is defined as (see *note Jump Patterns::
29049 for a description of the reason for this definition)
29051 #define SELECT_CC_MODE(OP,X,Y) \
29052 (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \
29053 ? ((OP == EQ || OP == NE) ? CCFPmode : CCFPEmode) \
29054 : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS \
29055 || GET_CODE (X) == NEG) \
29056 ? CC_NOOVmode : CCmode))
29058 You should define this macro if and only if you define extra CC
29059 modes in `MACHINE-modes.def'.
29061 -- Macro: CANONICALIZE_COMPARISON (CODE, OP0, OP1)
29062 On some machines not all possible comparisons are defined, but you
29063 can convert an invalid comparison into a valid one. For example,
29064 the Alpha does not have a `GT' comparison, but you can use an `LT'
29065 comparison instead and swap the order of the operands.
29067 On such machines, define this macro to be a C statement to do any
29068 required conversions. CODE is the initial comparison code and OP0
29069 and OP1 are the left and right operands of the comparison,
29070 respectively. You should modify CODE, OP0, and OP1 as required.
29072 GCC will not assume that the comparison resulting from this macro
29073 is valid but will see if the resulting insn matches a pattern in
29076 You need not define this macro if it would never change the
29077 comparison code or operands.
29079 -- Macro: REVERSIBLE_CC_MODE (MODE)
29080 A C expression whose value is one if it is always safe to reverse a
29081 comparison whose mode is MODE. If `SELECT_CC_MODE' can ever
29082 return MODE for a floating-point inequality comparison, then
29083 `REVERSIBLE_CC_MODE (MODE)' must be zero.
29085 You need not define this macro if it would always returns zero or
29086 if the floating-point format is anything other than
29087 `IEEE_FLOAT_FORMAT'. For example, here is the definition used on
29088 the SPARC, where floating-point inequality comparisons are always
29091 #define REVERSIBLE_CC_MODE(MODE) ((MODE) != CCFPEmode)
29093 -- Macro: REVERSE_CONDITION (CODE, MODE)
29094 A C expression whose value is reversed condition code of the CODE
29095 for comparison done in CC_MODE MODE. The macro is used only in
29096 case `REVERSIBLE_CC_MODE (MODE)' is nonzero. Define this macro in
29097 case machine has some non-standard way how to reverse certain
29098 conditionals. For instance in case all floating point conditions
29099 are non-trapping, compiler may freely convert unordered compares
29100 to ordered one. Then definition may look like:
29102 #define REVERSE_CONDITION(CODE, MODE) \
29103 ((MODE) != CCFPmode ? reverse_condition (CODE) \
29104 : reverse_condition_maybe_unordered (CODE))
29106 -- Macro: REVERSE_CONDEXEC_PREDICATES_P (OP1, OP2)
29107 A C expression that returns true if the conditional execution
29108 predicate OP1, a comparison operation, is the inverse of OP2 and
29109 vice versa. Define this to return 0 if the target has conditional
29110 execution predicates that cannot be reversed safely. There is no
29111 need to validate that the arguments of op1 and op2 are the same,
29112 this is done separately. If no expansion is specified, this macro
29113 is defined as follows:
29115 #define REVERSE_CONDEXEC_PREDICATES_P (x, y) \
29116 (GET_CODE ((x)) == reversed_comparison_code ((y), NULL))
29118 -- Target Hook: bool TARGET_FIXED_CONDITION_CODE_REGS (unsigned int *,
29120 On targets which do not use `(cc0)', and which use a hard register
29121 rather than a pseudo-register to hold condition codes, the regular
29122 CSE passes are often not able to identify cases in which the hard
29123 register is set to a common value. Use this hook to enable a
29124 small pass which optimizes such cases. This hook should return
29125 true to enable this pass, and it should set the integers to which
29126 its arguments point to the hard register numbers used for
29127 condition codes. When there is only one such register, as is true
29128 on most systems, the integer pointed to by the second argument
29129 should be set to `INVALID_REGNUM'.
29131 The default version of this hook returns false.
29133 -- Target Hook: enum machine_mode TARGET_CC_MODES_COMPATIBLE (enum
29134 machine_mode, enum machine_mode)
29135 On targets which use multiple condition code modes in class
29136 `MODE_CC', it is sometimes the case that a comparison can be
29137 validly done in more than one mode. On such a system, define this
29138 target hook to take two mode arguments and to return a mode in
29139 which both comparisons may be validly done. If there is no such
29140 mode, return `VOIDmode'.
29142 The default version of this hook checks whether the modes are the
29143 same. If they are, it returns that mode. If they are different,
29144 it returns `VOIDmode'.
29147 File: gccint.info, Node: Costs, Next: Scheduling, Prev: Condition Code, Up: Target Macros
29149 17.17 Describing Relative Costs of Operations
29150 =============================================
29152 These macros let you describe the relative speed of various operations
29153 on the target machine.
29155 -- Macro: REGISTER_MOVE_COST (MODE, FROM, TO)
29156 A C expression for the cost of moving data of mode MODE from a
29157 register in class FROM to one in class TO. The classes are
29158 expressed using the enumeration values such as `GENERAL_REGS'. A
29159 value of 2 is the default; other values are interpreted relative to
29162 It is not required that the cost always equal 2 when FROM is the
29163 same as TO; on some machines it is expensive to move between
29164 registers if they are not general registers.
29166 If reload sees an insn consisting of a single `set' between two
29167 hard registers, and if `REGISTER_MOVE_COST' applied to their
29168 classes returns a value of 2, reload does not check to ensure that
29169 the constraints of the insn are met. Setting a cost of other than
29170 2 will allow reload to verify that the constraints are met. You
29171 should do this if the `movM' pattern's constraints do not allow
29174 -- Macro: MEMORY_MOVE_COST (MODE, CLASS, IN)
29175 A C expression for the cost of moving data of mode MODE between a
29176 register of class CLASS and memory; IN is zero if the value is to
29177 be written to memory, nonzero if it is to be read in. This cost
29178 is relative to those in `REGISTER_MOVE_COST'. If moving between
29179 registers and memory is more expensive than between two registers,
29180 you should define this macro to express the relative cost.
29182 If you do not define this macro, GCC uses a default cost of 4 plus
29183 the cost of copying via a secondary reload register, if one is
29184 needed. If your machine requires a secondary reload register to
29185 copy between memory and a register of CLASS but the reload
29186 mechanism is more complex than copying via an intermediate, define
29187 this macro to reflect the actual cost of the move.
29189 GCC defines the function `memory_move_secondary_cost' if secondary
29190 reloads are needed. It computes the costs due to copying via a
29191 secondary register. If your machine copies from memory using a
29192 secondary register in the conventional way but the default base
29193 value of 4 is not correct for your machine, define this macro to
29194 add some other value to the result of that function. The
29195 arguments to that function are the same as to this macro.
29197 -- Macro: BRANCH_COST (SPEED_P, PREDICTABLE_P)
29198 A C expression for the cost of a branch instruction. A value of 1
29199 is the default; other values are interpreted relative to that.
29200 Parameter SPEED_P is true when the branch in question should be
29201 optimized for speed. When it is false, `BRANCH_COST' should be
29202 returning value optimal for code size rather then performance
29203 considerations. PREDICTABLE_P is true for well predictable
29204 branches. On many architectures the `BRANCH_COST' can be reduced
29207 Here are additional macros which do not specify precise relative costs,
29208 but only that certain actions are more expensive than GCC would
29211 -- Macro: SLOW_BYTE_ACCESS
29212 Define this macro as a C expression which is nonzero if accessing
29213 less than a word of memory (i.e. a `char' or a `short') is no
29214 faster than accessing a word of memory, i.e., if such access
29215 require more than one instruction or if there is no difference in
29216 cost between byte and (aligned) word loads.
29218 When this macro is not defined, the compiler will access a field by
29219 finding the smallest containing object; when it is defined, a
29220 fullword load will be used if alignment permits. Unless bytes
29221 accesses are faster than word accesses, using word accesses is
29222 preferable since it may eliminate subsequent memory access if
29223 subsequent accesses occur to other fields in the same word of the
29224 structure, but to different bytes.
29226 -- Macro: SLOW_UNALIGNED_ACCESS (MODE, ALIGNMENT)
29227 Define this macro to be the value 1 if memory accesses described
29228 by the MODE and ALIGNMENT parameters have a cost many times greater
29229 than aligned accesses, for example if they are emulated in a trap
29232 When this macro is nonzero, the compiler will act as if
29233 `STRICT_ALIGNMENT' were nonzero when generating code for block
29234 moves. This can cause significantly more instructions to be
29235 produced. Therefore, do not set this macro nonzero if unaligned
29236 accesses only add a cycle or two to the time for a memory access.
29238 If the value of this macro is always zero, it need not be defined.
29239 If this macro is defined, it should produce a nonzero value when
29240 `STRICT_ALIGNMENT' is nonzero.
29242 -- Macro: MOVE_RATIO
29243 The threshold of number of scalar memory-to-memory move insns,
29244 _below_ which a sequence of insns should be generated instead of a
29245 string move insn or a library call. Increasing the value will
29246 always make code faster, but eventually incurs high cost in
29247 increased code size.
29249 Note that on machines where the corresponding move insn is a
29250 `define_expand' that emits a sequence of insns, this macro counts
29251 the number of such sequences.
29253 If you don't define this, a reasonable default is used.
29255 -- Macro: MOVE_BY_PIECES_P (SIZE, ALIGNMENT)
29256 A C expression used to determine whether `move_by_pieces' will be
29257 used to copy a chunk of memory, or whether some other block move
29258 mechanism will be used. Defaults to 1 if `move_by_pieces_ninsns'
29259 returns less than `MOVE_RATIO'.
29261 -- Macro: MOVE_MAX_PIECES
29262 A C expression used by `move_by_pieces' to determine the largest
29263 unit a load or store used to copy memory is. Defaults to
29266 -- Macro: CLEAR_RATIO
29267 The threshold of number of scalar move insns, _below_ which a
29268 sequence of insns should be generated to clear memory instead of a
29269 string clear insn or a library call. Increasing the value will
29270 always make code faster, but eventually incurs high cost in
29271 increased code size.
29273 If you don't define this, a reasonable default is used.
29275 -- Macro: CLEAR_BY_PIECES_P (SIZE, ALIGNMENT)
29276 A C expression used to determine whether `clear_by_pieces' will be
29277 used to clear a chunk of memory, or whether some other block clear
29278 mechanism will be used. Defaults to 1 if `move_by_pieces_ninsns'
29279 returns less than `CLEAR_RATIO'.
29281 -- Macro: SET_RATIO
29282 The threshold of number of scalar move insns, _below_ which a
29283 sequence of insns should be generated to set memory to a constant
29284 value, instead of a block set insn or a library call. Increasing
29285 the value will always make code faster, but eventually incurs high
29286 cost in increased code size.
29288 If you don't define this, it defaults to the value of `MOVE_RATIO'.
29290 -- Macro: SET_BY_PIECES_P (SIZE, ALIGNMENT)
29291 A C expression used to determine whether `store_by_pieces' will be
29292 used to set a chunk of memory to a constant value, or whether some
29293 other mechanism will be used. Used by `__builtin_memset' when
29294 storing values other than constant zero. Defaults to 1 if
29295 `move_by_pieces_ninsns' returns less than `SET_RATIO'.
29297 -- Macro: STORE_BY_PIECES_P (SIZE, ALIGNMENT)
29298 A C expression used to determine whether `store_by_pieces' will be
29299 used to set a chunk of memory to a constant string value, or
29300 whether some other mechanism will be used. Used by
29301 `__builtin_strcpy' when called with a constant source string.
29302 Defaults to 1 if `move_by_pieces_ninsns' returns less than
29305 -- Macro: USE_LOAD_POST_INCREMENT (MODE)
29306 A C expression used to determine whether a load postincrement is a
29307 good thing to use for a given mode. Defaults to the value of
29308 `HAVE_POST_INCREMENT'.
29310 -- Macro: USE_LOAD_POST_DECREMENT (MODE)
29311 A C expression used to determine whether a load postdecrement is a
29312 good thing to use for a given mode. Defaults to the value of
29313 `HAVE_POST_DECREMENT'.
29315 -- Macro: USE_LOAD_PRE_INCREMENT (MODE)
29316 A C expression used to determine whether a load preincrement is a
29317 good thing to use for a given mode. Defaults to the value of
29318 `HAVE_PRE_INCREMENT'.
29320 -- Macro: USE_LOAD_PRE_DECREMENT (MODE)
29321 A C expression used to determine whether a load predecrement is a
29322 good thing to use for a given mode. Defaults to the value of
29323 `HAVE_PRE_DECREMENT'.
29325 -- Macro: USE_STORE_POST_INCREMENT (MODE)
29326 A C expression used to determine whether a store postincrement is
29327 a good thing to use for a given mode. Defaults to the value of
29328 `HAVE_POST_INCREMENT'.
29330 -- Macro: USE_STORE_POST_DECREMENT (MODE)
29331 A C expression used to determine whether a store postdecrement is
29332 a good thing to use for a given mode. Defaults to the value of
29333 `HAVE_POST_DECREMENT'.
29335 -- Macro: USE_STORE_PRE_INCREMENT (MODE)
29336 This macro is used to determine whether a store preincrement is a
29337 good thing to use for a given mode. Defaults to the value of
29338 `HAVE_PRE_INCREMENT'.
29340 -- Macro: USE_STORE_PRE_DECREMENT (MODE)
29341 This macro is used to determine whether a store predecrement is a
29342 good thing to use for a given mode. Defaults to the value of
29343 `HAVE_PRE_DECREMENT'.
29345 -- Macro: NO_FUNCTION_CSE
29346 Define this macro if it is as good or better to call a constant
29347 function address than to call an address kept in a register.
29349 -- Macro: RANGE_TEST_NON_SHORT_CIRCUIT
29350 Define this macro if a non-short-circuit operation produced by
29351 `fold_range_test ()' is optimal. This macro defaults to true if
29352 `BRANCH_COST' is greater than or equal to the value 2.
29354 -- Target Hook: bool TARGET_RTX_COSTS (rtx X, int CODE, int
29355 OUTER_CODE, int *TOTAL)
29356 This target hook describes the relative costs of RTL expressions.
29358 The cost may depend on the precise form of the expression, which is
29359 available for examination in X, and the rtx code of the expression
29360 in which it is contained, found in OUTER_CODE. CODE is the
29361 expression code--redundant, since it can be obtained with
29364 In implementing this hook, you can use the construct
29365 `COSTS_N_INSNS (N)' to specify a cost equal to N fast instructions.
29367 On entry to the hook, `*TOTAL' contains a default estimate for the
29368 cost of the expression. The hook should modify this value as
29369 necessary. Traditionally, the default costs are `COSTS_N_INSNS
29370 (5)' for multiplications, `COSTS_N_INSNS (7)' for division and
29371 modulus operations, and `COSTS_N_INSNS (1)' for all other
29374 When optimizing for code size, i.e. when `optimize_size' is
29375 nonzero, this target hook should be used to estimate the relative
29376 size cost of an expression, again relative to `COSTS_N_INSNS'.
29378 The hook returns true when all subexpressions of X have been
29379 processed, and false when `rtx_cost' should recurse.
29381 -- Target Hook: int TARGET_ADDRESS_COST (rtx ADDRESS)
29382 This hook computes the cost of an addressing mode that contains
29383 ADDRESS. If not defined, the cost is computed from the ADDRESS
29384 expression and the `TARGET_RTX_COST' hook.
29386 For most CISC machines, the default cost is a good approximation
29387 of the true cost of the addressing mode. However, on RISC
29388 machines, all instructions normally have the same length and
29389 execution time. Hence all addresses will have equal costs.
29391 In cases where more than one form of an address is known, the form
29392 with the lowest cost will be used. If multiple forms have the
29393 same, lowest, cost, the one that is the most complex will be used.
29395 For example, suppose an address that is equal to the sum of a
29396 register and a constant is used twice in the same basic block.
29397 When this macro is not defined, the address will be computed in a
29398 register and memory references will be indirect through that
29399 register. On machines where the cost of the addressing mode
29400 containing the sum is no higher than that of a simple indirect
29401 reference, this will produce an additional instruction and
29402 possibly require an additional register. Proper specification of
29403 this macro eliminates this overhead for such machines.
29405 This hook is never called with an invalid address.
29407 On machines where an address involving more than one register is as
29408 cheap as an address computation involving only one register,
29409 defining `TARGET_ADDRESS_COST' to reflect this can cause two
29410 registers to be live over a region of code where only one would
29411 have been if `TARGET_ADDRESS_COST' were not defined in that
29412 manner. This effect should be considered in the definition of
29413 this macro. Equivalent costs should probably only be given to
29414 addresses with different numbers of registers on machines with
29418 File: gccint.info, Node: Scheduling, Next: Sections, Prev: Costs, Up: Target Macros
29420 17.18 Adjusting the Instruction Scheduler
29421 =========================================
29423 The instruction scheduler may need a fair amount of machine-specific
29424 adjustment in order to produce good code. GCC provides several target
29425 hooks for this purpose. It is usually enough to define just a few of
29426 them: try the first ones in this list first.
29428 -- Target Hook: int TARGET_SCHED_ISSUE_RATE (void)
29429 This hook returns the maximum number of instructions that can ever
29430 issue at the same time on the target machine. The default is one.
29431 Although the insn scheduler can define itself the possibility of
29432 issue an insn on the same cycle, the value can serve as an
29433 additional constraint to issue insns on the same simulated
29434 processor cycle (see hooks `TARGET_SCHED_REORDER' and
29435 `TARGET_SCHED_REORDER2'). This value must be constant over the
29436 entire compilation. If you need it to vary depending on what the
29437 instructions are, you must use `TARGET_SCHED_VARIABLE_ISSUE'.
29439 -- Target Hook: int TARGET_SCHED_VARIABLE_ISSUE (FILE *FILE, int
29440 VERBOSE, rtx INSN, int MORE)
29441 This hook is executed by the scheduler after it has scheduled an
29442 insn from the ready list. It should return the number of insns
29443 which can still be issued in the current cycle. The default is
29444 `MORE - 1' for insns other than `CLOBBER' and `USE', which
29445 normally are not counted against the issue rate. You should
29446 define this hook if some insns take more machine resources than
29447 others, so that fewer insns can follow them in the same cycle.
29448 FILE is either a null pointer, or a stdio stream to write any
29449 debug output to. VERBOSE is the verbose level provided by
29450 `-fsched-verbose-N'. INSN is the instruction that was scheduled.
29452 -- Target Hook: int TARGET_SCHED_ADJUST_COST (rtx INSN, rtx LINK, rtx
29453 DEP_INSN, int COST)
29454 This function corrects the value of COST based on the relationship
29455 between INSN and DEP_INSN through the dependence LINK. It should
29456 return the new value. The default is to make no adjustment to
29457 COST. This can be used for example to specify to the scheduler
29458 using the traditional pipeline description that an output- or
29459 anti-dependence does not incur the same cost as a data-dependence.
29460 If the scheduler using the automaton based pipeline description,
29461 the cost of anti-dependence is zero and the cost of
29462 output-dependence is maximum of one and the difference of latency
29463 times of the first and the second insns. If these values are not
29464 acceptable, you could use the hook to modify them too. See also
29465 *note Processor pipeline description::.
29467 -- Target Hook: int TARGET_SCHED_ADJUST_PRIORITY (rtx INSN, int
29469 This hook adjusts the integer scheduling priority PRIORITY of
29470 INSN. It should return the new priority. Increase the priority to
29471 execute INSN earlier, reduce the priority to execute INSN later.
29472 Do not define this hook if you do not need to adjust the
29473 scheduling priorities of insns.
29475 -- Target Hook: int TARGET_SCHED_REORDER (FILE *FILE, int VERBOSE, rtx
29476 *READY, int *N_READYP, int CLOCK)
29477 This hook is executed by the scheduler after it has scheduled the
29478 ready list, to allow the machine description to reorder it (for
29479 example to combine two small instructions together on `VLIW'
29480 machines). FILE is either a null pointer, or a stdio stream to
29481 write any debug output to. VERBOSE is the verbose level provided
29482 by `-fsched-verbose-N'. READY is a pointer to the ready list of
29483 instructions that are ready to be scheduled. N_READYP is a
29484 pointer to the number of elements in the ready list. The scheduler
29485 reads the ready list in reverse order, starting with
29486 READY[*N_READYP-1] and going to READY[0]. CLOCK is the timer tick
29487 of the scheduler. You may modify the ready list and the number of
29488 ready insns. The return value is the number of insns that can
29489 issue this cycle; normally this is just `issue_rate'. See also
29490 `TARGET_SCHED_REORDER2'.
29492 -- Target Hook: int TARGET_SCHED_REORDER2 (FILE *FILE, int VERBOSE,
29493 rtx *READY, int *N_READY, CLOCK)
29494 Like `TARGET_SCHED_REORDER', but called at a different time. That
29495 function is called whenever the scheduler starts a new cycle.
29496 This one is called once per iteration over a cycle, immediately
29497 after `TARGET_SCHED_VARIABLE_ISSUE'; it can reorder the ready list
29498 and return the number of insns to be scheduled in the same cycle.
29499 Defining this hook can be useful if there are frequent situations
29500 where scheduling one insn causes other insns to become ready in
29501 the same cycle. These other insns can then be taken into account
29504 -- Target Hook: void TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK (rtx
29506 This hook is called after evaluation forward dependencies of insns
29507 in chain given by two parameter values (HEAD and TAIL
29508 correspondingly) but before insns scheduling of the insn chain.
29509 For example, it can be used for better insn classification if it
29510 requires analysis of dependencies. This hook can use backward and
29511 forward dependencies of the insn scheduler because they are already
29514 -- Target Hook: void TARGET_SCHED_INIT (FILE *FILE, int VERBOSE, int
29516 This hook is executed by the scheduler at the beginning of each
29517 block of instructions that are to be scheduled. FILE is either a
29518 null pointer, or a stdio stream to write any debug output to.
29519 VERBOSE is the verbose level provided by `-fsched-verbose-N'.
29520 MAX_READY is the maximum number of insns in the current scheduling
29521 region that can be live at the same time. This can be used to
29522 allocate scratch space if it is needed, e.g. by
29523 `TARGET_SCHED_REORDER'.
29525 -- Target Hook: void TARGET_SCHED_FINISH (FILE *FILE, int VERBOSE)
29526 This hook is executed by the scheduler at the end of each block of
29527 instructions that are to be scheduled. It can be used to perform
29528 cleanup of any actions done by the other scheduling hooks. FILE
29529 is either a null pointer, or a stdio stream to write any debug
29530 output to. VERBOSE is the verbose level provided by
29531 `-fsched-verbose-N'.
29533 -- Target Hook: void TARGET_SCHED_INIT_GLOBAL (FILE *FILE, int
29534 VERBOSE, int OLD_MAX_UID)
29535 This hook is executed by the scheduler after function level
29536 initializations. FILE is either a null pointer, or a stdio stream
29537 to write any debug output to. VERBOSE is the verbose level
29538 provided by `-fsched-verbose-N'. OLD_MAX_UID is the maximum insn
29539 uid when scheduling begins.
29541 -- Target Hook: void TARGET_SCHED_FINISH_GLOBAL (FILE *FILE, int
29543 This is the cleanup hook corresponding to
29544 `TARGET_SCHED_INIT_GLOBAL'. FILE is either a null pointer, or a
29545 stdio stream to write any debug output to. VERBOSE is the verbose
29546 level provided by `-fsched-verbose-N'.
29548 -- Target Hook: int TARGET_SCHED_DFA_PRE_CYCLE_INSN (void)
29549 The hook returns an RTL insn. The automaton state used in the
29550 pipeline hazard recognizer is changed as if the insn were scheduled
29551 when the new simulated processor cycle starts. Usage of the hook
29552 may simplify the automaton pipeline description for some VLIW
29553 processors. If the hook is defined, it is used only for the
29554 automaton based pipeline description. The default is not to
29555 change the state when the new simulated processor cycle starts.
29557 -- Target Hook: void TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN (void)
29558 The hook can be used to initialize data used by the previous hook.
29560 -- Target Hook: int TARGET_SCHED_DFA_POST_CYCLE_INSN (void)
29561 The hook is analogous to `TARGET_SCHED_DFA_PRE_CYCLE_INSN' but used
29562 to changed the state as if the insn were scheduled when the new
29563 simulated processor cycle finishes.
29565 -- Target Hook: void TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN (void)
29566 The hook is analogous to `TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN' but
29567 used to initialize data used by the previous hook.
29569 -- Target Hook: void TARGET_SCHED_DFA_PRE_CYCLE_ADVANCE (void)
29570 The hook to notify target that the current simulated cycle is
29571 about to finish. The hook is analogous to
29572 `TARGET_SCHED_DFA_PRE_CYCLE_INSN' but used to change the state in
29573 more complicated situations - e.g., when advancing state on a
29574 single insn is not enough.
29576 -- Target Hook: void TARGET_SCHED_DFA_POST_CYCLE_ADVANCE (void)
29577 The hook to notify target that new simulated cycle has just
29578 started. The hook is analogous to
29579 `TARGET_SCHED_DFA_POST_CYCLE_INSN' but used to change the state in
29580 more complicated situations - e.g., when advancing state on a
29581 single insn is not enough.
29583 -- Target Hook: int TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD
29585 This hook controls better choosing an insn from the ready insn
29586 queue for the DFA-based insn scheduler. Usually the scheduler
29587 chooses the first insn from the queue. If the hook returns a
29588 positive value, an additional scheduler code tries all
29589 permutations of `TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD
29590 ()' subsequent ready insns to choose an insn whose issue will
29591 result in maximal number of issued insns on the same cycle. For
29592 the VLIW processor, the code could actually solve the problem of
29593 packing simple insns into the VLIW insn. Of course, if the rules
29594 of VLIW packing are described in the automaton.
29596 This code also could be used for superscalar RISC processors. Let
29597 us consider a superscalar RISC processor with 3 pipelines. Some
29598 insns can be executed in pipelines A or B, some insns can be
29599 executed only in pipelines B or C, and one insn can be executed in
29600 pipeline B. The processor may issue the 1st insn into A and the
29601 2nd one into B. In this case, the 3rd insn will wait for freeing B
29602 until the next cycle. If the scheduler issues the 3rd insn the
29603 first, the processor could issue all 3 insns per cycle.
29605 Actually this code demonstrates advantages of the automaton based
29606 pipeline hazard recognizer. We try quickly and easy many insn
29607 schedules to choose the best one.
29609 The default is no multipass scheduling.
29611 -- Target Hook: int
29612 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD (rtx)
29613 This hook controls what insns from the ready insn queue will be
29614 considered for the multipass insn scheduling. If the hook returns
29615 zero for insn passed as the parameter, the insn will be not chosen
29618 The default is that any ready insns can be chosen to be issued.
29620 -- Target Hook: int TARGET_SCHED_DFA_NEW_CYCLE (FILE *, int, rtx, int,
29622 This hook is called by the insn scheduler before issuing insn
29623 passed as the third parameter on given cycle. If the hook returns
29624 nonzero, the insn is not issued on given processors cycle.
29625 Instead of that, the processor cycle is advanced. If the value
29626 passed through the last parameter is zero, the insn ready queue is
29627 not sorted on the new cycle start as usually. The first parameter
29628 passes file for debugging output. The second one passes the
29629 scheduler verbose level of the debugging output. The forth and
29630 the fifth parameter values are correspondingly processor cycle on
29631 which the previous insn has been issued and the current processor
29634 -- Target Hook: bool TARGET_SCHED_IS_COSTLY_DEPENDENCE (struct dep_def
29635 *_DEP, int COST, int DISTANCE)
29636 This hook is used to define which dependences are considered
29637 costly by the target, so costly that it is not advisable to
29638 schedule the insns that are involved in the dependence too close
29639 to one another. The parameters to this hook are as follows: The
29640 first parameter _DEP is the dependence being evaluated. The
29641 second parameter COST is the cost of the dependence, and the third
29642 parameter DISTANCE is the distance in cycles between the two insns.
29643 The hook returns `true' if considering the distance between the two
29644 insns the dependence between them is considered costly by the
29645 target, and `false' otherwise.
29647 Defining this hook can be useful in multiple-issue out-of-order
29648 machines, where (a) it's practically hopeless to predict the
29649 actual data/resource delays, however: (b) there's a better chance
29650 to predict the actual grouping that will be formed, and (c)
29651 correctly emulating the grouping can be very important. In such
29652 targets one may want to allow issuing dependent insns closer to
29653 one another--i.e., closer than the dependence distance; however,
29654 not in cases of "costly dependences", which this hooks allows to
29657 -- Target Hook: void TARGET_SCHED_H_I_D_EXTENDED (void)
29658 This hook is called by the insn scheduler after emitting a new
29659 instruction to the instruction stream. The hook notifies a target
29660 backend to extend its per instruction data structures.
29662 -- Target Hook: void * TARGET_SCHED_ALLOC_SCHED_CONTEXT (void)
29663 Return a pointer to a store large enough to hold target scheduling
29666 -- Target Hook: void TARGET_SCHED_INIT_SCHED_CONTEXT (void *TC, bool
29668 Initialize store pointed to by TC to hold target scheduling
29669 context. It CLEAN_P is true then initialize TC as if scheduler is
29670 at the beginning of the block. Otherwise, make a copy of the
29671 current context in TC.
29673 -- Target Hook: void TARGET_SCHED_SET_SCHED_CONTEXT (void *TC)
29674 Copy target scheduling context pointer to by TC to the current
29677 -- Target Hook: void TARGET_SCHED_CLEAR_SCHED_CONTEXT (void *TC)
29678 Deallocate internal data in target scheduling context pointed to
29681 -- Target Hook: void TARGET_SCHED_FREE_SCHED_CONTEXT (void *TC)
29682 Deallocate a store for target scheduling context pointed to by TC.
29684 -- Target Hook: void * TARGET_SCHED_ALLOC_SCHED_CONTEXT (void)
29685 Return a pointer to a store large enough to hold target scheduling
29688 -- Target Hook: void TARGET_SCHED_INIT_SCHED_CONTEXT (void *TC, bool
29690 Initialize store pointed to by TC to hold target scheduling
29691 context. It CLEAN_P is true then initialize TC as if scheduler is
29692 at the beginning of the block. Otherwise, make a copy of the
29693 current context in TC.
29695 -- Target Hook: void TARGET_SCHED_SET_SCHED_CONTEXT (void *TC)
29696 Copy target scheduling context pointer to by TC to the current
29699 -- Target Hook: void TARGET_SCHED_CLEAR_SCHED_CONTEXT (void *TC)
29700 Deallocate internal data in target scheduling context pointed to
29703 -- Target Hook: void TARGET_SCHED_FREE_SCHED_CONTEXT (void *TC)
29704 Deallocate a store for target scheduling context pointed to by TC.
29706 -- Target Hook: int TARGET_SCHED_SPECULATE_INSN (rtx INSN, int
29707 REQUEST, rtx *NEW_PAT)
29708 This hook is called by the insn scheduler when INSN has only
29709 speculative dependencies and therefore can be scheduled
29710 speculatively. The hook is used to check if the pattern of INSN
29711 has a speculative version and, in case of successful check, to
29712 generate that speculative pattern. The hook should return 1, if
29713 the instruction has a speculative form, or -1, if it doesn't.
29714 REQUEST describes the type of requested speculation. If the
29715 return value equals 1 then NEW_PAT is assigned the generated
29716 speculative pattern.
29718 -- Target Hook: int TARGET_SCHED_NEEDS_BLOCK_P (rtx INSN)
29719 This hook is called by the insn scheduler during generation of
29720 recovery code for INSN. It should return nonzero, if the
29721 corresponding check instruction should branch to recovery code, or
29724 -- Target Hook: rtx TARGET_SCHED_GEN_CHECK (rtx INSN, rtx LABEL, int
29726 This hook is called by the insn scheduler to generate a pattern
29727 for recovery check instruction. If MUTATE_P is zero, then INSN is
29728 a speculative instruction for which the check should be generated.
29729 LABEL is either a label of a basic block, where recovery code
29730 should be emitted, or a null pointer, when requested check doesn't
29731 branch to recovery code (a simple check). If MUTATE_P is nonzero,
29732 then a pattern for a branchy check corresponding to a simple check
29733 denoted by INSN should be generated. In this case LABEL can't be
29736 -- Target Hook: int
29737 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC (rtx INSN)
29738 This hook is used as a workaround for
29739 `TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD' not being
29740 called on the first instruction of the ready list. The hook is
29741 used to discard speculative instruction that stand first in the
29742 ready list from being scheduled on the current cycle. For
29743 non-speculative instructions, the hook should always return
29744 nonzero. For example, in the ia64 backend the hook is used to
29745 cancel data speculative insns when the ALAT table is nearly full.
29747 -- Target Hook: void TARGET_SCHED_SET_SCHED_FLAGS (unsigned int
29748 *FLAGS, spec_info_t SPEC_INFO)
29749 This hook is used by the insn scheduler to find out what features
29750 should be enabled/used. FLAGS initially may have either the
29751 SCHED_RGN or SCHED_EBB bit set. This denotes the scheduler pass
29752 for which the data should be provided. The target backend should
29753 modify FLAGS by modifying the bits corresponding to the following
29754 features: USE_DEPS_LIST, USE_GLAT, DETACH_LIFE_INFO, and
29755 DO_SPECULATION. For the DO_SPECULATION feature an additional
29756 structure SPEC_INFO should be filled by the target. The structure
29757 describes speculation types that can be used in the scheduler.
29759 -- Target Hook: int TARGET_SCHED_SMS_RES_MII (struct ddg *G)
29760 This hook is called by the swing modulo scheduler to calculate a
29761 resource-based lower bound which is based on the resources
29762 available in the machine and the resources required by each
29763 instruction. The target backend can use G to calculate such
29764 bound. A very simple lower bound will be used in case this hook
29765 is not implemented: the total number of instructions divided by
29769 File: gccint.info, Node: Sections, Next: PIC, Prev: Scheduling, Up: Target Macros
29771 17.19 Dividing the Output into Sections (Texts, Data, ...)
29772 ==========================================================
29774 An object file is divided into sections containing different types of
29775 data. In the most common case, there are three sections: the "text
29776 section", which holds instructions and read-only data; the "data
29777 section", which holds initialized writable data; and the "bss section",
29778 which holds uninitialized data. Some systems have other kinds of
29781 `varasm.c' provides several well-known sections, such as
29782 `text_section', `data_section' and `bss_section'. The normal way of
29783 controlling a `FOO_section' variable is to define the associated
29784 `FOO_SECTION_ASM_OP' macro, as described below. The macros are only
29785 read once, when `varasm.c' initializes itself, so their values must be
29786 run-time constants. They may however depend on command-line flags.
29788 _Note:_ Some run-time files, such `crtstuff.c', also make use of the
29789 `FOO_SECTION_ASM_OP' macros, and expect them to be string literals.
29791 Some assemblers require a different string to be written every time a
29792 section is selected. If your assembler falls into this category, you
29793 should define the `TARGET_ASM_INIT_SECTIONS' hook and use
29794 `get_unnamed_section' to set up the sections.
29796 You must always create a `text_section', either by defining
29797 `TEXT_SECTION_ASM_OP' or by initializing `text_section' in
29798 `TARGET_ASM_INIT_SECTIONS'. The same is true of `data_section' and
29799 `DATA_SECTION_ASM_OP'. If you do not create a distinct
29800 `readonly_data_section', the default is to reuse `text_section'.
29802 All the other `varasm.c' sections are optional, and are null if the
29803 target does not provide them.
29805 -- Macro: TEXT_SECTION_ASM_OP
29806 A C expression whose value is a string, including spacing,
29807 containing the assembler operation that should precede
29808 instructions and read-only data. Normally `"\t.text"' is right.
29810 -- Macro: HOT_TEXT_SECTION_NAME
29811 If defined, a C string constant for the name of the section
29812 containing most frequently executed functions of the program. If
29813 not defined, GCC will provide a default definition if the target
29814 supports named sections.
29816 -- Macro: UNLIKELY_EXECUTED_TEXT_SECTION_NAME
29817 If defined, a C string constant for the name of the section
29818 containing unlikely executed functions in the program.
29820 -- Macro: DATA_SECTION_ASM_OP
29821 A C expression whose value is a string, including spacing,
29822 containing the assembler operation to identify the following data
29823 as writable initialized data. Normally `"\t.data"' is right.
29825 -- Macro: SDATA_SECTION_ASM_OP
29826 If defined, a C expression whose value is a string, including
29827 spacing, containing the assembler operation to identify the
29828 following data as initialized, writable small data.
29830 -- Macro: READONLY_DATA_SECTION_ASM_OP
29831 A C expression whose value is a string, including spacing,
29832 containing the assembler operation to identify the following data
29833 as read-only initialized data.
29835 -- Macro: BSS_SECTION_ASM_OP
29836 If defined, a C expression whose value is a string, including
29837 spacing, containing the assembler operation to identify the
29838 following data as uninitialized global data. If not defined, and
29839 neither `ASM_OUTPUT_BSS' nor `ASM_OUTPUT_ALIGNED_BSS' are defined,
29840 uninitialized global data will be output in the data section if
29841 `-fno-common' is passed, otherwise `ASM_OUTPUT_COMMON' will be
29844 -- Macro: SBSS_SECTION_ASM_OP
29845 If defined, a C expression whose value is a string, including
29846 spacing, containing the assembler operation to identify the
29847 following data as uninitialized, writable small data.
29849 -- Macro: INIT_SECTION_ASM_OP
29850 If defined, a C expression whose value is a string, including
29851 spacing, containing the assembler operation to identify the
29852 following data as initialization code. If not defined, GCC will
29853 assume such a section does not exist. This section has no
29854 corresponding `init_section' variable; it is used entirely in
29857 -- Macro: FINI_SECTION_ASM_OP
29858 If defined, a C expression whose value is a string, including
29859 spacing, containing the assembler operation to identify the
29860 following data as finalization code. If not defined, GCC will
29861 assume such a section does not exist. This section has no
29862 corresponding `fini_section' variable; it is used entirely in
29865 -- Macro: INIT_ARRAY_SECTION_ASM_OP
29866 If defined, a C expression whose value is a string, including
29867 spacing, containing the assembler operation to identify the
29868 following data as part of the `.init_array' (or equivalent)
29869 section. If not defined, GCC will assume such a section does not
29870 exist. Do not define both this macro and `INIT_SECTION_ASM_OP'.
29872 -- Macro: FINI_ARRAY_SECTION_ASM_OP
29873 If defined, a C expression whose value is a string, including
29874 spacing, containing the assembler operation to identify the
29875 following data as part of the `.fini_array' (or equivalent)
29876 section. If not defined, GCC will assume such a section does not
29877 exist. Do not define both this macro and `FINI_SECTION_ASM_OP'.
29879 -- Macro: CRT_CALL_STATIC_FUNCTION (SECTION_OP, FUNCTION)
29880 If defined, an ASM statement that switches to a different section
29881 via SECTION_OP, calls FUNCTION, and switches back to the text
29882 section. This is used in `crtstuff.c' if `INIT_SECTION_ASM_OP' or
29883 `FINI_SECTION_ASM_OP' to calls to initialization and finalization
29884 functions from the init and fini sections. By default, this macro
29885 uses a simple function call. Some ports need hand-crafted
29886 assembly code to avoid dependencies on registers initialized in
29887 the function prologue or to ensure that constant pools don't end
29888 up too far way in the text section.
29890 -- Macro: TARGET_LIBGCC_SDATA_SECTION
29891 If defined, a string which names the section into which small
29892 variables defined in crtstuff and libgcc should go. This is useful
29893 when the target has options for optimizing access to small data,
29894 and you want the crtstuff and libgcc routines to be conservative
29895 in what they expect of your application yet liberal in what your
29896 application expects. For example, for targets with a `.sdata'
29897 section (like MIPS), you could compile crtstuff with `-G 0' so
29898 that it doesn't require small data support from your application,
29899 but use this macro to put small data into `.sdata' so that your
29900 application can access these variables whether it uses small data
29903 -- Macro: FORCE_CODE_SECTION_ALIGN
29904 If defined, an ASM statement that aligns a code section to some
29905 arbitrary boundary. This is used to force all fragments of the
29906 `.init' and `.fini' sections to have to same alignment and thus
29907 prevent the linker from having to add any padding.
29909 -- Macro: JUMP_TABLES_IN_TEXT_SECTION
29910 Define this macro to be an expression with a nonzero value if jump
29911 tables (for `tablejump' insns) should be output in the text
29912 section, along with the assembler instructions. Otherwise, the
29913 readonly data section is used.
29915 This macro is irrelevant if there is no separate readonly data
29918 -- Target Hook: void TARGET_ASM_INIT_SECTIONS (void)
29919 Define this hook if you need to do something special to set up the
29920 `varasm.c' sections, or if your target has some special sections
29921 of its own that you need to create.
29923 GCC calls this hook after processing the command line, but before
29924 writing any assembly code, and before calling any of the
29925 section-returning hooks described below.
29927 -- Target Hook: TARGET_ASM_RELOC_RW_MASK (void)
29928 Return a mask describing how relocations should be treated when
29929 selecting sections. Bit 1 should be set if global relocations
29930 should be placed in a read-write section; bit 0 should be set if
29931 local relocations should be placed in a read-write section.
29933 The default version of this function returns 3 when `-fpic' is in
29934 effect, and 0 otherwise. The hook is typically redefined when the
29935 target cannot support (some kinds of) dynamic relocations in
29936 read-only sections even in executables.
29938 -- Target Hook: section * TARGET_ASM_SELECT_SECTION (tree EXP, int
29939 RELOC, unsigned HOST_WIDE_INT ALIGN)
29940 Return the section into which EXP should be placed. You can
29941 assume that EXP is either a `VAR_DECL' node or a constant of some
29942 sort. RELOC indicates whether the initial value of EXP requires
29943 link-time relocations. Bit 0 is set when variable contains local
29944 relocations only, while bit 1 is set for global relocations.
29945 ALIGN is the constant alignment in bits.
29947 The default version of this function takes care of putting
29948 read-only variables in `readonly_data_section'.
29950 See also USE_SELECT_SECTION_FOR_FUNCTIONS.
29952 -- Macro: USE_SELECT_SECTION_FOR_FUNCTIONS
29953 Define this macro if you wish TARGET_ASM_SELECT_SECTION to be
29954 called for `FUNCTION_DECL's as well as for variables and constants.
29956 In the case of a `FUNCTION_DECL', RELOC will be zero if the
29957 function has been determined to be likely to be called, and
29958 nonzero if it is unlikely to be called.
29960 -- Target Hook: void TARGET_ASM_UNIQUE_SECTION (tree DECL, int RELOC)
29961 Build up a unique section name, expressed as a `STRING_CST' node,
29962 and assign it to `DECL_SECTION_NAME (DECL)'. As with
29963 `TARGET_ASM_SELECT_SECTION', RELOC indicates whether the initial
29964 value of EXP requires link-time relocations.
29966 The default version of this function appends the symbol name to the
29967 ELF section name that would normally be used for the symbol. For
29968 example, the function `foo' would be placed in `.text.foo'.
29969 Whatever the actual target object format, this is often good
29972 -- Target Hook: section * TARGET_ASM_FUNCTION_RODATA_SECTION (tree
29974 Return the readonly data section associated with
29975 `DECL_SECTION_NAME (DECL)'. The default version of this function
29976 selects `.gnu.linkonce.r.name' if the function's section is
29977 `.gnu.linkonce.t.name', `.rodata.name' if function is in
29978 `.text.name', and the normal readonly-data section otherwise.
29980 -- Target Hook: section * TARGET_ASM_SELECT_RTX_SECTION (enum
29981 machine_mode MODE, rtx X, unsigned HOST_WIDE_INT ALIGN)
29982 Return the section into which a constant X, of mode MODE, should
29983 be placed. You can assume that X is some kind of constant in RTL.
29984 The argument MODE is redundant except in the case of a
29985 `const_int' rtx. ALIGN is the constant alignment in bits.
29987 The default version of this function takes care of putting symbolic
29988 constants in `flag_pic' mode in `data_section' and everything else
29989 in `readonly_data_section'.
29991 -- Target Hook: void TARGET_MANGLE_DECL_ASSEMBLER_NAME (tree DECL,
29993 Define this hook if you need to postprocess the assembler name
29994 generated by target-independent code. The ID provided to this
29995 hook will be the computed name (e.g., the macro `DECL_NAME' of the
29996 DECL in C, or the mangled name of the DECL in C++). The return
29997 value of the hook is an `IDENTIFIER_NODE' for the appropriate
29998 mangled name on your target system. The default implementation of
29999 this hook just returns the ID provided.
30001 -- Target Hook: void TARGET_ENCODE_SECTION_INFO (tree DECL, rtx RTL,
30003 Define this hook if references to a symbol or a constant must be
30004 treated differently depending on something about the variable or
30005 function named by the symbol (such as what section it is in).
30007 The hook is executed immediately after rtl has been created for
30008 DECL, which may be a variable or function declaration or an entry
30009 in the constant pool. In either case, RTL is the rtl in question.
30010 Do _not_ use `DECL_RTL (DECL)' in this hook; that field may not
30011 have been initialized yet.
30013 In the case of a constant, it is safe to assume that the rtl is a
30014 `mem' whose address is a `symbol_ref'. Most decls will also have
30015 this form, but that is not guaranteed. Global register variables,
30016 for instance, will have a `reg' for their rtl. (Normally the
30017 right thing to do with such unusual rtl is leave it alone.)
30019 The NEW_DECL_P argument will be true if this is the first time
30020 that `TARGET_ENCODE_SECTION_INFO' has been invoked on this decl.
30021 It will be false for subsequent invocations, which will happen for
30022 duplicate declarations. Whether or not anything must be done for
30023 the duplicate declaration depends on whether the hook examines
30024 `DECL_ATTRIBUTES'. NEW_DECL_P is always true when the hook is
30025 called for a constant.
30027 The usual thing for this hook to do is to record flags in the
30028 `symbol_ref', using `SYMBOL_REF_FLAG' or `SYMBOL_REF_FLAGS'.
30029 Historically, the name string was modified if it was necessary to
30030 encode more than one bit of information, but this practice is now
30031 discouraged; use `SYMBOL_REF_FLAGS'.
30033 The default definition of this hook, `default_encode_section_info'
30034 in `varasm.c', sets a number of commonly-useful bits in
30035 `SYMBOL_REF_FLAGS'. Check whether the default does what you need
30036 before overriding it.
30038 -- Target Hook: const char *TARGET_STRIP_NAME_ENCODING (const char
30040 Decode NAME and return the real name part, sans the characters
30041 that `TARGET_ENCODE_SECTION_INFO' may have added.
30043 -- Target Hook: bool TARGET_IN_SMALL_DATA_P (tree EXP)
30044 Returns true if EXP should be placed into a "small data" section.
30045 The default version of this hook always returns false.
30047 -- Variable: Target Hook bool TARGET_HAVE_SRODATA_SECTION
30048 Contains the value true if the target places read-only "small
30049 data" into a separate section. The default value is false.
30051 -- Target Hook: bool TARGET_BINDS_LOCAL_P (tree EXP)
30052 Returns true if EXP names an object for which name resolution
30053 rules must resolve to the current "module" (dynamic shared library
30054 or executable image).
30056 The default version of this hook implements the name resolution
30057 rules for ELF, which has a looser model of global name binding
30058 than other currently supported object file formats.
30060 -- Variable: Target Hook bool TARGET_HAVE_TLS
30061 Contains the value true if the target supports thread-local
30062 storage. The default value is false.
30065 File: gccint.info, Node: PIC, Next: Assembler Format, Prev: Sections, Up: Target Macros
30067 17.20 Position Independent Code
30068 ===============================
30070 This section describes macros that help implement generation of position
30071 independent code. Simply defining these macros is not enough to
30072 generate valid PIC; you must also add support to the macros
30073 `GO_IF_LEGITIMATE_ADDRESS' and `PRINT_OPERAND_ADDRESS', as well as
30074 `LEGITIMIZE_ADDRESS'. You must modify the definition of `movsi' to do
30075 something appropriate when the source operand contains a symbolic
30076 address. You may also need to alter the handling of switch statements
30077 so that they use relative addresses.
30079 -- Macro: PIC_OFFSET_TABLE_REGNUM
30080 The register number of the register used to address a table of
30081 static data addresses in memory. In some cases this register is
30082 defined by a processor's "application binary interface" (ABI).
30083 When this macro is defined, RTL is generated for this register
30084 once, as with the stack pointer and frame pointer registers. If
30085 this macro is not defined, it is up to the machine-dependent files
30086 to allocate such a register (if necessary). Note that this
30087 register must be fixed when in use (e.g. when `flag_pic' is true).
30089 -- Macro: PIC_OFFSET_TABLE_REG_CALL_CLOBBERED
30090 Define this macro if the register defined by
30091 `PIC_OFFSET_TABLE_REGNUM' is clobbered by calls. Do not define
30092 this macro if `PIC_OFFSET_TABLE_REGNUM' is not defined.
30094 -- Macro: LEGITIMATE_PIC_OPERAND_P (X)
30095 A C expression that is nonzero if X is a legitimate immediate
30096 operand on the target machine when generating position independent
30097 code. You can assume that X satisfies `CONSTANT_P', so you need
30098 not check this. You can also assume FLAG_PIC is true, so you need
30099 not check it either. You need not define this macro if all
30100 constants (including `SYMBOL_REF') can be immediate operands when
30101 generating position independent code.
30104 File: gccint.info, Node: Assembler Format, Next: Debugging Info, Prev: PIC, Up: Target Macros
30106 17.21 Defining the Output Assembler Language
30107 ============================================
30109 This section describes macros whose principal purpose is to describe how
30110 to write instructions in assembler language--rather than what the
30115 * File Framework:: Structural information for the assembler file.
30116 * Data Output:: Output of constants (numbers, strings, addresses).
30117 * Uninitialized Data:: Output of uninitialized variables.
30118 * Label Output:: Output and generation of labels.
30119 * Initialization:: General principles of initialization
30120 and termination routines.
30121 * Macros for Initialization::
30122 Specific macros that control the handling of
30123 initialization and termination routines.
30124 * Instruction Output:: Output of actual instructions.
30125 * Dispatch Tables:: Output of jump tables.
30126 * Exception Region Output:: Output of exception region code.
30127 * Alignment Output:: Pseudo ops for alignment and skipping data.
30130 File: gccint.info, Node: File Framework, Next: Data Output, Up: Assembler Format
30132 17.21.1 The Overall Framework of an Assembler File
30133 --------------------------------------------------
30135 This describes the overall framework of an assembly file.
30137 -- Target Hook: void TARGET_ASM_FILE_START ()
30138 Output to `asm_out_file' any text which the assembler expects to
30139 find at the beginning of a file. The default behavior is
30140 controlled by two flags, documented below. Unless your target's
30141 assembler is quite unusual, if you override the default, you
30142 should call `default_file_start' at some point in your target
30143 hook. This lets other target files rely on these variables.
30145 -- Target Hook: bool TARGET_ASM_FILE_START_APP_OFF
30146 If this flag is true, the text of the macro `ASM_APP_OFF' will be
30147 printed as the very first line in the assembly file, unless
30148 `-fverbose-asm' is in effect. (If that macro has been defined to
30149 the empty string, this variable has no effect.) With the normal
30150 definition of `ASM_APP_OFF', the effect is to notify the GNU
30151 assembler that it need not bother stripping comments or extra
30152 whitespace from its input. This allows it to work a bit faster.
30154 The default is false. You should not set it to true unless you
30155 have verified that your port does not generate any extra
30156 whitespace or comments that will cause GAS to issue errors in
30159 -- Target Hook: bool TARGET_ASM_FILE_START_FILE_DIRECTIVE
30160 If this flag is true, `output_file_directive' will be called for
30161 the primary source file, immediately after printing `ASM_APP_OFF'
30162 (if that is enabled). Most ELF assemblers expect this to be done.
30163 The default is false.
30165 -- Target Hook: void TARGET_ASM_FILE_END ()
30166 Output to `asm_out_file' any text which the assembler expects to
30167 find at the end of a file. The default is to output nothing.
30169 -- Function: void file_end_indicate_exec_stack ()
30170 Some systems use a common convention, the `.note.GNU-stack'
30171 special section, to indicate whether or not an object file relies
30172 on the stack being executable. If your system uses this
30173 convention, you should define `TARGET_ASM_FILE_END' to this
30174 function. If you need to do other things in that hook, have your
30175 hook function call this function.
30177 -- Macro: ASM_COMMENT_START
30178 A C string constant describing how to begin a comment in the target
30179 assembler language. The compiler assumes that the comment will
30180 end at the end of the line.
30182 -- Macro: ASM_APP_ON
30183 A C string constant for text to be output before each `asm'
30184 statement or group of consecutive ones. Normally this is
30185 `"#APP"', which is a comment that has no effect on most assemblers
30186 but tells the GNU assembler that it must check the lines that
30187 follow for all valid assembler constructs.
30189 -- Macro: ASM_APP_OFF
30190 A C string constant for text to be output after each `asm'
30191 statement or group of consecutive ones. Normally this is
30192 `"#NO_APP"', which tells the GNU assembler to resume making the
30193 time-saving assumptions that are valid for ordinary compiler
30196 -- Macro: ASM_OUTPUT_SOURCE_FILENAME (STREAM, NAME)
30197 A C statement to output COFF information or DWARF debugging
30198 information which indicates that filename NAME is the current
30199 source file to the stdio stream STREAM.
30201 This macro need not be defined if the standard form of output for
30202 the file format in use is appropriate.
30204 -- Macro: OUTPUT_QUOTED_STRING (STREAM, STRING)
30205 A C statement to output the string STRING to the stdio stream
30206 STREAM. If you do not call the function `output_quoted_string' in
30207 your config files, GCC will only call it to output filenames to
30208 the assembler source. So you can use it to canonicalize the format
30209 of the filename using this macro.
30211 -- Macro: ASM_OUTPUT_IDENT (STREAM, STRING)
30212 A C statement to output something to the assembler file to handle a
30213 `#ident' directive containing the text STRING. If this macro is
30214 not defined, nothing is output for a `#ident' directive.
30216 -- Target Hook: void TARGET_ASM_NAMED_SECTION (const char *NAME,
30217 unsigned int FLAGS, unsigned int ALIGN)
30218 Output assembly directives to switch to section NAME. The section
30219 should have attributes as specified by FLAGS, which is a bit mask
30220 of the `SECTION_*' flags defined in `output.h'. If ALIGN is
30221 nonzero, it contains an alignment in bytes to be used for the
30222 section, otherwise some target default should be used. Only
30223 targets that must specify an alignment within the section
30224 directive need pay attention to ALIGN - we will still use
30225 `ASM_OUTPUT_ALIGN'.
30227 -- Target Hook: bool TARGET_HAVE_NAMED_SECTIONS
30228 This flag is true if the target supports
30229 `TARGET_ASM_NAMED_SECTION'.
30231 -- Target Hook: bool TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
30232 This flag is true if we can create zeroed data by switching to a
30233 BSS section and then using `ASM_OUTPUT_SKIP' to allocate the space.
30234 This is true on most ELF targets.
30236 -- Target Hook: unsigned int TARGET_SECTION_TYPE_FLAGS (tree DECL,
30237 const char *NAME, int RELOC)
30238 Choose a set of section attributes for use by
30239 `TARGET_ASM_NAMED_SECTION' based on a variable or function decl, a
30240 section name, and whether or not the declaration's initializer may
30241 contain runtime relocations. DECL may be null, in which case
30242 read-write data should be assumed.
30244 The default version of this function handles choosing code vs data,
30245 read-only vs read-write data, and `flag_pic'. You should only
30246 need to override this if your target has special flags that might
30247 be set via `__attribute__'.
30249 -- Target Hook: int TARGET_ASM_RECORD_GCC_SWITCHES (print_switch_type
30250 TYPE, const char * TEXT)
30251 Provides the target with the ability to record the gcc command line
30252 switches that have been passed to the compiler, and options that
30253 are enabled. The TYPE argument specifies what is being recorded.
30254 It can take the following values:
30256 `SWITCH_TYPE_PASSED'
30257 TEXT is a command line switch that has been set by the user.
30259 `SWITCH_TYPE_ENABLED'
30260 TEXT is an option which has been enabled. This might be as a
30261 direct result of a command line switch, or because it is
30262 enabled by default or because it has been enabled as a side
30263 effect of a different command line switch. For example, the
30264 `-O2' switch enables various different individual
30265 optimization passes.
30267 `SWITCH_TYPE_DESCRIPTIVE'
30268 TEXT is either NULL or some descriptive text which should be
30269 ignored. If TEXT is NULL then it is being used to warn the
30270 target hook that either recording is starting or ending. The
30271 first time TYPE is SWITCH_TYPE_DESCRIPTIVE and TEXT is NULL,
30272 the warning is for start up and the second time the warning
30273 is for wind down. This feature is to allow the target hook
30274 to make any necessary preparations before it starts to record
30275 switches and to perform any necessary tidying up after it has
30276 finished recording switches.
30278 `SWITCH_TYPE_LINE_START'
30279 This option can be ignored by this target hook.
30281 `SWITCH_TYPE_LINE_END'
30282 This option can be ignored by this target hook.
30284 The hook's return value must be zero. Other return values may be
30285 supported in the future.
30287 By default this hook is set to NULL, but an example implementation
30288 is provided for ELF based targets. Called ELF_RECORD_GCC_SWITCHES,
30289 it records the switches as ASCII text inside a new, string
30290 mergeable section in the assembler output file. The name of the
30291 new section is provided by the
30292 `TARGET_ASM_RECORD_GCC_SWITCHES_SECTION' target hook.
30294 -- Target Hook: const char * TARGET_ASM_RECORD_GCC_SWITCHES_SECTION
30295 This is the name of the section that will be created by the example
30296 ELF implementation of the `TARGET_ASM_RECORD_GCC_SWITCHES' target
30300 File: gccint.info, Node: Data Output, Next: Uninitialized Data, Prev: File Framework, Up: Assembler Format
30302 17.21.2 Output of Data
30303 ----------------------
30305 -- Target Hook: const char * TARGET_ASM_BYTE_OP
30306 -- Target Hook: const char * TARGET_ASM_ALIGNED_HI_OP
30307 -- Target Hook: const char * TARGET_ASM_ALIGNED_SI_OP
30308 -- Target Hook: const char * TARGET_ASM_ALIGNED_DI_OP
30309 -- Target Hook: const char * TARGET_ASM_ALIGNED_TI_OP
30310 -- Target Hook: const char * TARGET_ASM_UNALIGNED_HI_OP
30311 -- Target Hook: const char * TARGET_ASM_UNALIGNED_SI_OP
30312 -- Target Hook: const char * TARGET_ASM_UNALIGNED_DI_OP
30313 -- Target Hook: const char * TARGET_ASM_UNALIGNED_TI_OP
30314 These hooks specify assembly directives for creating certain kinds
30315 of integer object. The `TARGET_ASM_BYTE_OP' directive creates a
30316 byte-sized object, the `TARGET_ASM_ALIGNED_HI_OP' one creates an
30317 aligned two-byte object, and so on. Any of the hooks may be
30318 `NULL', indicating that no suitable directive is available.
30320 The compiler will print these strings at the start of a new line,
30321 followed immediately by the object's initial value. In most cases,
30322 the string should contain a tab, a pseudo-op, and then another tab.
30324 -- Target Hook: bool TARGET_ASM_INTEGER (rtx X, unsigned int SIZE, int
30326 The `assemble_integer' function uses this hook to output an
30327 integer object. X is the object's value, SIZE is its size in
30328 bytes and ALIGNED_P indicates whether it is aligned. The function
30329 should return `true' if it was able to output the object. If it
30330 returns false, `assemble_integer' will try to split the object
30331 into smaller parts.
30333 The default implementation of this hook will use the
30334 `TARGET_ASM_BYTE_OP' family of strings, returning `false' when the
30335 relevant string is `NULL'.
30337 -- Macro: OUTPUT_ADDR_CONST_EXTRA (STREAM, X, FAIL)
30338 A C statement to recognize RTX patterns that `output_addr_const'
30339 can't deal with, and output assembly code to STREAM corresponding
30340 to the pattern X. This may be used to allow machine-dependent
30341 `UNSPEC's to appear within constants.
30343 If `OUTPUT_ADDR_CONST_EXTRA' fails to recognize a pattern, it must
30344 `goto fail', so that a standard error message is printed. If it
30345 prints an error message itself, by calling, for example,
30346 `output_operand_lossage', it may just complete normally.
30348 -- Macro: ASM_OUTPUT_ASCII (STREAM, PTR, LEN)
30349 A C statement to output to the stdio stream STREAM an assembler
30350 instruction to assemble a string constant containing the LEN bytes
30351 at PTR. PTR will be a C expression of type `char *' and LEN a C
30352 expression of type `int'.
30354 If the assembler has a `.ascii' pseudo-op as found in the Berkeley
30355 Unix assembler, do not define the macro `ASM_OUTPUT_ASCII'.
30357 -- Macro: ASM_OUTPUT_FDESC (STREAM, DECL, N)
30358 A C statement to output word N of a function descriptor for DECL.
30359 This must be defined if `TARGET_VTABLE_USES_DESCRIPTORS' is
30360 defined, and is otherwise unused.
30362 -- Macro: CONSTANT_POOL_BEFORE_FUNCTION
30363 You may define this macro as a C expression. You should define the
30364 expression to have a nonzero value if GCC should output the
30365 constant pool for a function before the code for the function, or
30366 a zero value if GCC should output the constant pool after the
30367 function. If you do not define this macro, the usual case, GCC
30368 will output the constant pool before the function.
30370 -- Macro: ASM_OUTPUT_POOL_PROLOGUE (FILE, FUNNAME, FUNDECL, SIZE)
30371 A C statement to output assembler commands to define the start of
30372 the constant pool for a function. FUNNAME is a string giving the
30373 name of the function. Should the return type of the function be
30374 required, it can be obtained via FUNDECL. SIZE is the size, in
30375 bytes, of the constant pool that will be written immediately after
30378 If no constant-pool prefix is required, the usual case, this macro
30379 need not be defined.
30381 -- Macro: ASM_OUTPUT_SPECIAL_POOL_ENTRY (FILE, X, MODE, ALIGN,
30383 A C statement (with or without semicolon) to output a constant in
30384 the constant pool, if it needs special treatment. (This macro
30385 need not do anything for RTL expressions that can be output
30388 The argument FILE is the standard I/O stream to output the
30389 assembler code on. X is the RTL expression for the constant to
30390 output, and MODE is the machine mode (in case X is a `const_int').
30391 ALIGN is the required alignment for the value X; you should
30392 output an assembler directive to force this much alignment.
30394 The argument LABELNO is a number to use in an internal label for
30395 the address of this pool entry. The definition of this macro is
30396 responsible for outputting the label definition at the proper
30397 place. Here is how to do this:
30399 `(*targetm.asm_out.internal_label)' (FILE, "LC", LABELNO);
30401 When you output a pool entry specially, you should end with a
30402 `goto' to the label JUMPTO. This will prevent the same pool entry
30403 from being output a second time in the usual manner.
30405 You need not define this macro if it would do nothing.
30407 -- Macro: ASM_OUTPUT_POOL_EPILOGUE (FILE FUNNAME FUNDECL SIZE)
30408 A C statement to output assembler commands to at the end of the
30409 constant pool for a function. FUNNAME is a string giving the name
30410 of the function. Should the return type of the function be
30411 required, you can obtain it via FUNDECL. SIZE is the size, in
30412 bytes, of the constant pool that GCC wrote immediately before this
30415 If no constant-pool epilogue is required, the usual case, you need
30416 not define this macro.
30418 -- Macro: IS_ASM_LOGICAL_LINE_SEPARATOR (C, STR)
30419 Define this macro as a C expression which is nonzero if C is used
30420 as a logical line separator by the assembler. STR points to the
30421 position in the string where C was found; this can be used if a
30422 line separator uses multiple characters.
30424 If you do not define this macro, the default is that only the
30425 character `;' is treated as a logical line separator.
30427 -- Target Hook: const char * TARGET_ASM_OPEN_PAREN
30428 -- Target Hook: const char * TARGET_ASM_CLOSE_PAREN
30429 These target hooks are C string constants, describing the syntax
30430 in the assembler for grouping arithmetic expressions. If not
30431 overridden, they default to normal parentheses, which is correct
30432 for most assemblers.
30434 These macros are provided by `real.h' for writing the definitions of
30435 `ASM_OUTPUT_DOUBLE' and the like:
30437 -- Macro: REAL_VALUE_TO_TARGET_SINGLE (X, L)
30438 -- Macro: REAL_VALUE_TO_TARGET_DOUBLE (X, L)
30439 -- Macro: REAL_VALUE_TO_TARGET_LONG_DOUBLE (X, L)
30440 -- Macro: REAL_VALUE_TO_TARGET_DECIMAL32 (X, L)
30441 -- Macro: REAL_VALUE_TO_TARGET_DECIMAL64 (X, L)
30442 -- Macro: REAL_VALUE_TO_TARGET_DECIMAL128 (X, L)
30443 These translate X, of type `REAL_VALUE_TYPE', to the target's
30444 floating point representation, and store its bit pattern in the
30445 variable L. For `REAL_VALUE_TO_TARGET_SINGLE' and
30446 `REAL_VALUE_TO_TARGET_DECIMAL32', this variable should be a simple
30447 `long int'. For the others, it should be an array of `long int'.
30448 The number of elements in this array is determined by the size of
30449 the desired target floating point data type: 32 bits of it go in
30450 each `long int' array element. Each array element holds 32 bits
30451 of the result, even if `long int' is wider than 32 bits on the
30454 The array element values are designed so that you can print them
30455 out using `fprintf' in the order they should appear in the target
30459 File: gccint.info, Node: Uninitialized Data, Next: Label Output, Prev: Data Output, Up: Assembler Format
30461 17.21.3 Output of Uninitialized Variables
30462 -----------------------------------------
30464 Each of the macros in this section is used to do the whole job of
30465 outputting a single uninitialized variable.
30467 -- Macro: ASM_OUTPUT_COMMON (STREAM, NAME, SIZE, ROUNDED)
30468 A C statement (sans semicolon) to output to the stdio stream
30469 STREAM the assembler definition of a common-label named NAME whose
30470 size is SIZE bytes. The variable ROUNDED is the size rounded up
30471 to whatever alignment the caller wants.
30473 Use the expression `assemble_name (STREAM, NAME)' to output the
30474 name itself; before and after that, output the additional
30475 assembler syntax for defining the name, and a newline.
30477 This macro controls how the assembler definitions of uninitialized
30478 common global variables are output.
30480 -- Macro: ASM_OUTPUT_ALIGNED_COMMON (STREAM, NAME, SIZE, ALIGNMENT)
30481 Like `ASM_OUTPUT_COMMON' except takes the required alignment as a
30482 separate, explicit argument. If you define this macro, it is used
30483 in place of `ASM_OUTPUT_COMMON', and gives you more flexibility in
30484 handling the required alignment of the variable. The alignment is
30485 specified as the number of bits.
30487 -- Macro: ASM_OUTPUT_ALIGNED_DECL_COMMON (STREAM, DECL, NAME, SIZE,
30489 Like `ASM_OUTPUT_ALIGNED_COMMON' except that DECL of the variable
30490 to be output, if there is one, or `NULL_TREE' if there is no
30491 corresponding variable. If you define this macro, GCC will use it
30492 in place of both `ASM_OUTPUT_COMMON' and
30493 `ASM_OUTPUT_ALIGNED_COMMON'. Define this macro when you need to
30494 see the variable's decl in order to chose what to output.
30496 -- Macro: ASM_OUTPUT_BSS (STREAM, DECL, NAME, SIZE, ROUNDED)
30497 A C statement (sans semicolon) to output to the stdio stream
30498 STREAM the assembler definition of uninitialized global DECL named
30499 NAME whose size is SIZE bytes. The variable ROUNDED is the size
30500 rounded up to whatever alignment the caller wants.
30502 Try to use function `asm_output_bss' defined in `varasm.c' when
30503 defining this macro. If unable, use the expression `assemble_name
30504 (STREAM, NAME)' to output the name itself; before and after that,
30505 output the additional assembler syntax for defining the name, and
30508 There are two ways of handling global BSS. One is to define either
30509 this macro or its aligned counterpart, `ASM_OUTPUT_ALIGNED_BSS'.
30510 The other is to have `TARGET_ASM_SELECT_SECTION' return a
30511 switchable BSS section (*note
30512 TARGET_HAVE_SWITCHABLE_BSS_SECTIONS::). You do not need to do
30515 Some languages do not have `common' data, and require a non-common
30516 form of global BSS in order to handle uninitialized globals
30517 efficiently. C++ is one example of this. However, if the target
30518 does not support global BSS, the front end may choose to make
30519 globals common in order to save space in the object file.
30521 -- Macro: ASM_OUTPUT_ALIGNED_BSS (STREAM, DECL, NAME, SIZE, ALIGNMENT)
30522 Like `ASM_OUTPUT_BSS' except takes the required alignment as a
30523 separate, explicit argument. If you define this macro, it is used
30524 in place of `ASM_OUTPUT_BSS', and gives you more flexibility in
30525 handling the required alignment of the variable. The alignment is
30526 specified as the number of bits.
30528 Try to use function `asm_output_aligned_bss' defined in file
30529 `varasm.c' when defining this macro.
30531 -- Macro: ASM_OUTPUT_LOCAL (STREAM, NAME, SIZE, ROUNDED)
30532 A C statement (sans semicolon) to output to the stdio stream
30533 STREAM the assembler definition of a local-common-label named NAME
30534 whose size is SIZE bytes. The variable ROUNDED is the size
30535 rounded up to whatever alignment the caller wants.
30537 Use the expression `assemble_name (STREAM, NAME)' to output the
30538 name itself; before and after that, output the additional
30539 assembler syntax for defining the name, and a newline.
30541 This macro controls how the assembler definitions of uninitialized
30542 static variables are output.
30544 -- Macro: ASM_OUTPUT_ALIGNED_LOCAL (STREAM, NAME, SIZE, ALIGNMENT)
30545 Like `ASM_OUTPUT_LOCAL' except takes the required alignment as a
30546 separate, explicit argument. If you define this macro, it is used
30547 in place of `ASM_OUTPUT_LOCAL', and gives you more flexibility in
30548 handling the required alignment of the variable. The alignment is
30549 specified as the number of bits.
30551 -- Macro: ASM_OUTPUT_ALIGNED_DECL_LOCAL (STREAM, DECL, NAME, SIZE,
30553 Like `ASM_OUTPUT_ALIGNED_DECL' except that DECL of the variable to
30554 be output, if there is one, or `NULL_TREE' if there is no
30555 corresponding variable. If you define this macro, GCC will use it
30556 in place of both `ASM_OUTPUT_DECL' and `ASM_OUTPUT_ALIGNED_DECL'.
30557 Define this macro when you need to see the variable's decl in
30558 order to chose what to output.
30561 File: gccint.info, Node: Label Output, Next: Initialization, Prev: Uninitialized Data, Up: Assembler Format
30563 17.21.4 Output and Generation of Labels
30564 ---------------------------------------
30566 This is about outputting labels.
30568 -- Macro: ASM_OUTPUT_LABEL (STREAM, NAME)
30569 A C statement (sans semicolon) to output to the stdio stream
30570 STREAM the assembler definition of a label named NAME. Use the
30571 expression `assemble_name (STREAM, NAME)' to output the name
30572 itself; before and after that, output the additional assembler
30573 syntax for defining the name, and a newline. A default definition
30574 of this macro is provided which is correct for most systems.
30576 -- Macro: ASM_OUTPUT_INTERNAL_LABEL (STREAM, NAME)
30577 Identical to `ASM_OUTPUT_LABEL', except that NAME is known to
30578 refer to a compiler-generated label. The default definition uses
30579 `assemble_name_raw', which is like `assemble_name' except that it
30582 -- Macro: SIZE_ASM_OP
30583 A C string containing the appropriate assembler directive to
30584 specify the size of a symbol, without any arguments. On systems
30585 that use ELF, the default (in `config/elfos.h') is `"\t.size\t"';
30586 on other systems, the default is not to define this macro.
30588 Define this macro only if it is correct to use the default
30589 definitions of `ASM_OUTPUT_SIZE_DIRECTIVE' and
30590 `ASM_OUTPUT_MEASURED_SIZE' for your system. If you need your own
30591 custom definitions of those macros, or if you do not need explicit
30592 symbol sizes at all, do not define this macro.
30594 -- Macro: ASM_OUTPUT_SIZE_DIRECTIVE (STREAM, NAME, SIZE)
30595 A C statement (sans semicolon) to output to the stdio stream
30596 STREAM a directive telling the assembler that the size of the
30597 symbol NAME is SIZE. SIZE is a `HOST_WIDE_INT'. If you define
30598 `SIZE_ASM_OP', a default definition of this macro is provided.
30600 -- Macro: ASM_OUTPUT_MEASURED_SIZE (STREAM, NAME)
30601 A C statement (sans semicolon) to output to the stdio stream
30602 STREAM a directive telling the assembler to calculate the size of
30603 the symbol NAME by subtracting its address from the current
30606 If you define `SIZE_ASM_OP', a default definition of this macro is
30607 provided. The default assumes that the assembler recognizes a
30608 special `.' symbol as referring to the current address, and can
30609 calculate the difference between this and another symbol. If your
30610 assembler does not recognize `.' or cannot do calculations with
30611 it, you will need to redefine `ASM_OUTPUT_MEASURED_SIZE' to use
30612 some other technique.
30614 -- Macro: TYPE_ASM_OP
30615 A C string containing the appropriate assembler directive to
30616 specify the type of a symbol, without any arguments. On systems
30617 that use ELF, the default (in `config/elfos.h') is `"\t.type\t"';
30618 on other systems, the default is not to define this macro.
30620 Define this macro only if it is correct to use the default
30621 definition of `ASM_OUTPUT_TYPE_DIRECTIVE' for your system. If you
30622 need your own custom definition of this macro, or if you do not
30623 need explicit symbol types at all, do not define this macro.
30625 -- Macro: TYPE_OPERAND_FMT
30626 A C string which specifies (using `printf' syntax) the format of
30627 the second operand to `TYPE_ASM_OP'. On systems that use ELF, the
30628 default (in `config/elfos.h') is `"@%s"'; on other systems, the
30629 default is not to define this macro.
30631 Define this macro only if it is correct to use the default
30632 definition of `ASM_OUTPUT_TYPE_DIRECTIVE' for your system. If you
30633 need your own custom definition of this macro, or if you do not
30634 need explicit symbol types at all, do not define this macro.
30636 -- Macro: ASM_OUTPUT_TYPE_DIRECTIVE (STREAM, TYPE)
30637 A C statement (sans semicolon) to output to the stdio stream
30638 STREAM a directive telling the assembler that the type of the
30639 symbol NAME is TYPE. TYPE is a C string; currently, that string
30640 is always either `"function"' or `"object"', but you should not
30643 If you define `TYPE_ASM_OP' and `TYPE_OPERAND_FMT', a default
30644 definition of this macro is provided.
30646 -- Macro: ASM_DECLARE_FUNCTION_NAME (STREAM, NAME, DECL)
30647 A C statement (sans semicolon) to output to the stdio stream
30648 STREAM any text necessary for declaring the name NAME of a
30649 function which is being defined. This macro is responsible for
30650 outputting the label definition (perhaps using
30651 `ASM_OUTPUT_LABEL'). The argument DECL is the `FUNCTION_DECL'
30652 tree node representing the function.
30654 If this macro is not defined, then the function name is defined in
30655 the usual manner as a label (by means of `ASM_OUTPUT_LABEL').
30657 You may wish to use `ASM_OUTPUT_TYPE_DIRECTIVE' in the definition
30660 -- Macro: ASM_DECLARE_FUNCTION_SIZE (STREAM, NAME, DECL)
30661 A C statement (sans semicolon) to output to the stdio stream
30662 STREAM any text necessary for declaring the size of a function
30663 which is being defined. The argument NAME is the name of the
30664 function. The argument DECL is the `FUNCTION_DECL' tree node
30665 representing the function.
30667 If this macro is not defined, then the function size is not
30670 You may wish to use `ASM_OUTPUT_MEASURED_SIZE' in the definition
30673 -- Macro: ASM_DECLARE_OBJECT_NAME (STREAM, NAME, DECL)
30674 A C statement (sans semicolon) to output to the stdio stream
30675 STREAM any text necessary for declaring the name NAME of an
30676 initialized variable which is being defined. This macro must
30677 output the label definition (perhaps using `ASM_OUTPUT_LABEL').
30678 The argument DECL is the `VAR_DECL' tree node representing the
30681 If this macro is not defined, then the variable name is defined in
30682 the usual manner as a label (by means of `ASM_OUTPUT_LABEL').
30684 You may wish to use `ASM_OUTPUT_TYPE_DIRECTIVE' and/or
30685 `ASM_OUTPUT_SIZE_DIRECTIVE' in the definition of this macro.
30687 -- Macro: ASM_DECLARE_CONSTANT_NAME (STREAM, NAME, EXP, SIZE)
30688 A C statement (sans semicolon) to output to the stdio stream
30689 STREAM any text necessary for declaring the name NAME of a
30690 constant which is being defined. This macro is responsible for
30691 outputting the label definition (perhaps using
30692 `ASM_OUTPUT_LABEL'). The argument EXP is the value of the
30693 constant, and SIZE is the size of the constant in bytes. NAME
30694 will be an internal label.
30696 If this macro is not defined, then the NAME is defined in the
30697 usual manner as a label (by means of `ASM_OUTPUT_LABEL').
30699 You may wish to use `ASM_OUTPUT_TYPE_DIRECTIVE' in the definition
30702 -- Macro: ASM_DECLARE_REGISTER_GLOBAL (STREAM, DECL, REGNO, NAME)
30703 A C statement (sans semicolon) to output to the stdio stream
30704 STREAM any text necessary for claiming a register REGNO for a
30705 global variable DECL with name NAME.
30707 If you don't define this macro, that is equivalent to defining it
30710 -- Macro: ASM_FINISH_DECLARE_OBJECT (STREAM, DECL, TOPLEVEL, ATEND)
30711 A C statement (sans semicolon) to finish up declaring a variable
30712 name once the compiler has processed its initializer fully and
30713 thus has had a chance to determine the size of an array when
30714 controlled by an initializer. This is used on systems where it's
30715 necessary to declare something about the size of the object.
30717 If you don't define this macro, that is equivalent to defining it
30720 You may wish to use `ASM_OUTPUT_SIZE_DIRECTIVE' and/or
30721 `ASM_OUTPUT_MEASURED_SIZE' in the definition of this macro.
30723 -- Target Hook: void TARGET_ASM_GLOBALIZE_LABEL (FILE *STREAM, const
30725 This target hook is a function to output to the stdio stream
30726 STREAM some commands that will make the label NAME global; that
30727 is, available for reference from other files.
30729 The default implementation relies on a proper definition of
30732 -- Target Hook: void TARGET_ASM_GLOBALIZE_DECL_NAME (FILE *STREAM,
30734 This target hook is a function to output to the stdio stream
30735 STREAM some commands that will make the name associated with DECL
30736 global; that is, available for reference from other files.
30738 The default implementation uses the TARGET_ASM_GLOBALIZE_LABEL
30741 -- Macro: ASM_WEAKEN_LABEL (STREAM, NAME)
30742 A C statement (sans semicolon) to output to the stdio stream
30743 STREAM some commands that will make the label NAME weak; that is,
30744 available for reference from other files but only used if no other
30745 definition is available. Use the expression `assemble_name
30746 (STREAM, NAME)' to output the name itself; before and after that,
30747 output the additional assembler syntax for making that name weak,
30750 If you don't define this macro or `ASM_WEAKEN_DECL', GCC will not
30751 support weak symbols and you should not define the `SUPPORTS_WEAK'
30754 -- Macro: ASM_WEAKEN_DECL (STREAM, DECL, NAME, VALUE)
30755 Combines (and replaces) the function of `ASM_WEAKEN_LABEL' and
30756 `ASM_OUTPUT_WEAK_ALIAS', allowing access to the associated function
30757 or variable decl. If VALUE is not `NULL', this C statement should
30758 output to the stdio stream STREAM assembler code which defines
30759 (equates) the weak symbol NAME to have the value VALUE. If VALUE
30760 is `NULL', it should output commands to make NAME weak.
30762 -- Macro: ASM_OUTPUT_WEAKREF (STREAM, DECL, NAME, VALUE)
30763 Outputs a directive that enables NAME to be used to refer to
30764 symbol VALUE with weak-symbol semantics. `decl' is the
30765 declaration of `name'.
30767 -- Macro: SUPPORTS_WEAK
30768 A C expression which evaluates to true if the target supports weak
30771 If you don't define this macro, `defaults.h' provides a default
30772 definition. If either `ASM_WEAKEN_LABEL' or `ASM_WEAKEN_DECL' is
30773 defined, the default definition is `1'; otherwise, it is `0'.
30774 Define this macro if you want to control weak symbol support with
30775 a compiler flag such as `-melf'.
30777 -- Macro: MAKE_DECL_ONE_ONLY (DECL)
30778 A C statement (sans semicolon) to mark DECL to be emitted as a
30779 public symbol such that extra copies in multiple translation units
30780 will be discarded by the linker. Define this macro if your object
30781 file format provides support for this concept, such as the `COMDAT'
30782 section flags in the Microsoft Windows PE/COFF format, and this
30783 support requires changes to DECL, such as putting it in a separate
30786 -- Macro: SUPPORTS_ONE_ONLY
30787 A C expression which evaluates to true if the target supports
30788 one-only semantics.
30790 If you don't define this macro, `varasm.c' provides a default
30791 definition. If `MAKE_DECL_ONE_ONLY' is defined, the default
30792 definition is `1'; otherwise, it is `0'. Define this macro if you
30793 want to control one-only symbol support with a compiler flag, or if
30794 setting the `DECL_ONE_ONLY' flag is enough to mark a declaration to
30795 be emitted as one-only.
30797 -- Target Hook: void TARGET_ASM_ASSEMBLE_VISIBILITY (tree DECL, const
30799 This target hook is a function to output to ASM_OUT_FILE some
30800 commands that will make the symbol(s) associated with DECL have
30801 hidden, protected or internal visibility as specified by
30804 -- Macro: TARGET_WEAK_NOT_IN_ARCHIVE_TOC
30805 A C expression that evaluates to true if the target's linker
30806 expects that weak symbols do not appear in a static archive's
30807 table of contents. The default is `0'.
30809 Leaving weak symbols out of an archive's table of contents means
30810 that, if a symbol will only have a definition in one translation
30811 unit and will have undefined references from other translation
30812 units, that symbol should not be weak. Defining this macro to be
30813 nonzero will thus have the effect that certain symbols that would
30814 normally be weak (explicit template instantiations, and vtables
30815 for polymorphic classes with noninline key methods) will instead
30818 The C++ ABI requires this macro to be zero. Define this macro for
30819 targets where full C++ ABI compliance is impossible and where
30820 linker restrictions require weak symbols to be left out of a
30821 static archive's table of contents.
30823 -- Macro: ASM_OUTPUT_EXTERNAL (STREAM, DECL, NAME)
30824 A C statement (sans semicolon) to output to the stdio stream
30825 STREAM any text necessary for declaring the name of an external
30826 symbol named NAME which is referenced in this compilation but not
30827 defined. The value of DECL is the tree node for the declaration.
30829 This macro need not be defined if it does not need to output
30830 anything. The GNU assembler and most Unix assemblers don't
30833 -- Target Hook: void TARGET_ASM_EXTERNAL_LIBCALL (rtx SYMREF)
30834 This target hook is a function to output to ASM_OUT_FILE an
30835 assembler pseudo-op to declare a library function name external.
30836 The name of the library function is given by SYMREF, which is a
30839 -- Target Hook: void TARGET_ASM_MARK_DECL_PRESERVED (tree DECL)
30840 This target hook is a function to output to ASM_OUT_FILE an
30841 assembler directive to annotate used symbol. Darwin target use
30842 .no_dead_code_strip directive.
30844 -- Macro: ASM_OUTPUT_LABELREF (STREAM, NAME)
30845 A C statement (sans semicolon) to output to the stdio stream
30846 STREAM a reference in assembler syntax to a label named NAME.
30847 This should add `_' to the front of the name, if that is customary
30848 on your operating system, as it is in most Berkeley Unix systems.
30849 This macro is used in `assemble_name'.
30851 -- Macro: ASM_OUTPUT_SYMBOL_REF (STREAM, SYM)
30852 A C statement (sans semicolon) to output a reference to
30853 `SYMBOL_REF' SYM. If not defined, `assemble_name' will be used to
30854 output the name of the symbol. This macro may be used to modify
30855 the way a symbol is referenced depending on information encoded by
30856 `TARGET_ENCODE_SECTION_INFO'.
30858 -- Macro: ASM_OUTPUT_LABEL_REF (STREAM, BUF)
30859 A C statement (sans semicolon) to output a reference to BUF, the
30860 result of `ASM_GENERATE_INTERNAL_LABEL'. If not defined,
30861 `assemble_name' will be used to output the name of the symbol.
30862 This macro is not used by `output_asm_label', or the `%l'
30863 specifier that calls it; the intention is that this macro should
30864 be set when it is necessary to output a label differently when its
30865 address is being taken.
30867 -- Target Hook: void TARGET_ASM_INTERNAL_LABEL (FILE *STREAM, const
30868 char *PREFIX, unsigned long LABELNO)
30869 A function to output to the stdio stream STREAM a label whose name
30870 is made from the string PREFIX and the number LABELNO.
30872 It is absolutely essential that these labels be distinct from the
30873 labels used for user-level functions and variables. Otherwise,
30874 certain programs will have name conflicts with internal labels.
30876 It is desirable to exclude internal labels from the symbol table
30877 of the object file. Most assemblers have a naming convention for
30878 labels that should be excluded; on many systems, the letter `L' at
30879 the beginning of a label has this effect. You should find out what
30880 convention your system uses, and follow it.
30882 The default version of this function utilizes
30883 `ASM_GENERATE_INTERNAL_LABEL'.
30885 -- Macro: ASM_OUTPUT_DEBUG_LABEL (STREAM, PREFIX, NUM)
30886 A C statement to output to the stdio stream STREAM a debug info
30887 label whose name is made from the string PREFIX and the number
30888 NUM. This is useful for VLIW targets, where debug info labels may
30889 need to be treated differently than branch target labels. On some
30890 systems, branch target labels must be at the beginning of
30891 instruction bundles, but debug info labels can occur in the middle
30892 of instruction bundles.
30894 If this macro is not defined, then
30895 `(*targetm.asm_out.internal_label)' will be used.
30897 -- Macro: ASM_GENERATE_INTERNAL_LABEL (STRING, PREFIX, NUM)
30898 A C statement to store into the string STRING a label whose name
30899 is made from the string PREFIX and the number NUM.
30901 This string, when output subsequently by `assemble_name', should
30902 produce the output that `(*targetm.asm_out.internal_label)' would
30903 produce with the same PREFIX and NUM.
30905 If the string begins with `*', then `assemble_name' will output
30906 the rest of the string unchanged. It is often convenient for
30907 `ASM_GENERATE_INTERNAL_LABEL' to use `*' in this way. If the
30908 string doesn't start with `*', then `ASM_OUTPUT_LABELREF' gets to
30909 output the string, and may change it. (Of course,
30910 `ASM_OUTPUT_LABELREF' is also part of your machine description, so
30911 you should know what it does on your machine.)
30913 -- Macro: ASM_FORMAT_PRIVATE_NAME (OUTVAR, NAME, NUMBER)
30914 A C expression to assign to OUTVAR (which is a variable of type
30915 `char *') a newly allocated string made from the string NAME and
30916 the number NUMBER, with some suitable punctuation added. Use
30917 `alloca' to get space for the string.
30919 The string will be used as an argument to `ASM_OUTPUT_LABELREF' to
30920 produce an assembler label for an internal static variable whose
30921 name is NAME. Therefore, the string must be such as to result in
30922 valid assembler code. The argument NUMBER is different each time
30923 this macro is executed; it prevents conflicts between
30924 similarly-named internal static variables in different scopes.
30926 Ideally this string should not be a valid C identifier, to prevent
30927 any conflict with the user's own symbols. Most assemblers allow
30928 periods or percent signs in assembler symbols; putting at least
30929 one of these between the name and the number will suffice.
30931 If this macro is not defined, a default definition will be provided
30932 which is correct for most systems.
30934 -- Macro: ASM_OUTPUT_DEF (STREAM, NAME, VALUE)
30935 A C statement to output to the stdio stream STREAM assembler code
30936 which defines (equates) the symbol NAME to have the value VALUE.
30938 If `SET_ASM_OP' is defined, a default definition is provided which
30939 is correct for most systems.
30941 -- Macro: ASM_OUTPUT_DEF_FROM_DECLS (STREAM, DECL_OF_NAME,
30943 A C statement to output to the stdio stream STREAM assembler code
30944 which defines (equates) the symbol whose tree node is DECL_OF_NAME
30945 to have the value of the tree node DECL_OF_VALUE. This macro will
30946 be used in preference to `ASM_OUTPUT_DEF' if it is defined and if
30947 the tree nodes are available.
30949 If `SET_ASM_OP' is defined, a default definition is provided which
30950 is correct for most systems.
30952 -- Macro: TARGET_DEFERRED_OUTPUT_DEFS (DECL_OF_NAME, DECL_OF_VALUE)
30953 A C statement that evaluates to true if the assembler code which
30954 defines (equates) the symbol whose tree node is DECL_OF_NAME to
30955 have the value of the tree node DECL_OF_VALUE should be emitted
30956 near the end of the current compilation unit. The default is to
30957 not defer output of defines. This macro affects defines output by
30958 `ASM_OUTPUT_DEF' and `ASM_OUTPUT_DEF_FROM_DECLS'.
30960 -- Macro: ASM_OUTPUT_WEAK_ALIAS (STREAM, NAME, VALUE)
30961 A C statement to output to the stdio stream STREAM assembler code
30962 which defines (equates) the weak symbol NAME to have the value
30963 VALUE. If VALUE is `NULL', it defines NAME as an undefined weak
30966 Define this macro if the target only supports weak aliases; define
30967 `ASM_OUTPUT_DEF' instead if possible.
30969 -- Macro: OBJC_GEN_METHOD_LABEL (BUF, IS_INST, CLASS_NAME, CAT_NAME,
30971 Define this macro to override the default assembler names used for
30972 Objective-C methods.
30974 The default name is a unique method number followed by the name of
30975 the class (e.g. `_1_Foo'). For methods in categories, the name of
30976 the category is also included in the assembler name (e.g.
30979 These names are safe on most systems, but make debugging difficult
30980 since the method's selector is not present in the name.
30981 Therefore, particular systems define other ways of computing names.
30983 BUF is an expression of type `char *' which gives you a buffer in
30984 which to store the name; its length is as long as CLASS_NAME,
30985 CAT_NAME and SEL_NAME put together, plus 50 characters extra.
30987 The argument IS_INST specifies whether the method is an instance
30988 method or a class method; CLASS_NAME is the name of the class;
30989 CAT_NAME is the name of the category (or `NULL' if the method is
30990 not in a category); and SEL_NAME is the name of the selector.
30992 On systems where the assembler can handle quoted names, you can
30993 use this macro to provide more human-readable names.
30995 -- Macro: ASM_DECLARE_CLASS_REFERENCE (STREAM, NAME)
30996 A C statement (sans semicolon) to output to the stdio stream
30997 STREAM commands to declare that the label NAME is an Objective-C
30998 class reference. This is only needed for targets whose linkers
30999 have special support for NeXT-style runtimes.
31001 -- Macro: ASM_DECLARE_UNRESOLVED_REFERENCE (STREAM, NAME)
31002 A C statement (sans semicolon) to output to the stdio stream
31003 STREAM commands to declare that the label NAME is an unresolved
31004 Objective-C class reference. This is only needed for targets
31005 whose linkers have special support for NeXT-style runtimes.
31008 File: gccint.info, Node: Initialization, Next: Macros for Initialization, Prev: Label Output, Up: Assembler Format
31010 17.21.5 How Initialization Functions Are Handled
31011 ------------------------------------------------
31013 The compiled code for certain languages includes "constructors" (also
31014 called "initialization routines")--functions to initialize data in the
31015 program when the program is started. These functions need to be called
31016 before the program is "started"--that is to say, before `main' is
31019 Compiling some languages generates "destructors" (also called
31020 "termination routines") that should be called when the program
31023 To make the initialization and termination functions work, the compiler
31024 must output something in the assembler code to cause those functions to
31025 be called at the appropriate time. When you port the compiler to a new
31026 system, you need to specify how to do this.
31028 There are two major ways that GCC currently supports the execution of
31029 initialization and termination functions. Each way has two variants.
31030 Much of the structure is common to all four variations.
31032 The linker must build two lists of these functions--a list of
31033 initialization functions, called `__CTOR_LIST__', and a list of
31034 termination functions, called `__DTOR_LIST__'.
31036 Each list always begins with an ignored function pointer (which may
31037 hold 0, -1, or a count of the function pointers after it, depending on
31038 the environment). This is followed by a series of zero or more function
31039 pointers to constructors (or destructors), followed by a function
31040 pointer containing zero.
31042 Depending on the operating system and its executable file format,
31043 either `crtstuff.c' or `libgcc2.c' traverses these lists at startup
31044 time and exit time. Constructors are called in reverse order of the
31045 list; destructors in forward order.
31047 The best way to handle static constructors works only for object file
31048 formats which provide arbitrarily-named sections. A section is set
31049 aside for a list of constructors, and another for a list of destructors.
31050 Traditionally these are called `.ctors' and `.dtors'. Each object file
31051 that defines an initialization function also puts a word in the
31052 constructor section to point to that function. The linker accumulates
31053 all these words into one contiguous `.ctors' section. Termination
31054 functions are handled similarly.
31056 This method will be chosen as the default by `target-def.h' if
31057 `TARGET_ASM_NAMED_SECTION' is defined. A target that does not support
31058 arbitrary sections, but does support special designated constructor and
31059 destructor sections may define `CTORS_SECTION_ASM_OP' and
31060 `DTORS_SECTION_ASM_OP' to achieve the same effect.
31062 When arbitrary sections are available, there are two variants,
31063 depending upon how the code in `crtstuff.c' is called. On systems that
31064 support a ".init" section which is executed at program startup, parts
31065 of `crtstuff.c' are compiled into that section. The program is linked
31066 by the `gcc' driver like this:
31068 ld -o OUTPUT_FILE crti.o crtbegin.o ... -lgcc crtend.o crtn.o
31070 The prologue of a function (`__init') appears in the `.init' section
31071 of `crti.o'; the epilogue appears in `crtn.o'. Likewise for the
31072 function `__fini' in the ".fini" section. Normally these files are
31073 provided by the operating system or by the GNU C library, but are
31074 provided by GCC for a few targets.
31076 The objects `crtbegin.o' and `crtend.o' are (for most targets)
31077 compiled from `crtstuff.c'. They contain, among other things, code
31078 fragments within the `.init' and `.fini' sections that branch to
31079 routines in the `.text' section. The linker will pull all parts of a
31080 section together, which results in a complete `__init' function that
31081 invokes the routines we need at startup.
31083 To use this variant, you must define the `INIT_SECTION_ASM_OP' macro
31086 If no init section is available, when GCC compiles any function called
31087 `main' (or more accurately, any function designated as a program entry
31088 point by the language front end calling `expand_main_function'), it
31089 inserts a procedure call to `__main' as the first executable code after
31090 the function prologue. The `__main' function is defined in `libgcc2.c'
31091 and runs the global constructors.
31093 In file formats that don't support arbitrary sections, there are again
31094 two variants. In the simplest variant, the GNU linker (GNU `ld') and
31095 an `a.out' format must be used. In this case, `TARGET_ASM_CONSTRUCTOR'
31096 is defined to produce a `.stabs' entry of type `N_SETT', referencing
31097 the name `__CTOR_LIST__', and with the address of the void function
31098 containing the initialization code as its value. The GNU linker
31099 recognizes this as a request to add the value to a "set"; the values
31100 are accumulated, and are eventually placed in the executable as a
31101 vector in the format described above, with a leading (ignored) count
31102 and a trailing zero element. `TARGET_ASM_DESTRUCTOR' is handled
31103 similarly. Since no init section is available, the absence of
31104 `INIT_SECTION_ASM_OP' causes the compilation of `main' to call `__main'
31105 as above, starting the initialization process.
31107 The last variant uses neither arbitrary sections nor the GNU linker.
31108 This is preferable when you want to do dynamic linking and when using
31109 file formats which the GNU linker does not support, such as `ECOFF'. In
31110 this case, `TARGET_HAVE_CTORS_DTORS' is false, initialization and
31111 termination functions are recognized simply by their names. This
31112 requires an extra program in the linkage step, called `collect2'. This
31113 program pretends to be the linker, for use with GCC; it does its job by
31114 running the ordinary linker, but also arranges to include the vectors of
31115 initialization and termination functions. These functions are called
31116 via `__main' as described above. In order to use this method,
31117 `use_collect2' must be defined in the target in `config.gcc'.
31119 The following section describes the specific macros that control and
31120 customize the handling of initialization and termination functions.
31123 File: gccint.info, Node: Macros for Initialization, Next: Instruction Output, Prev: Initialization, Up: Assembler Format
31125 17.21.6 Macros Controlling Initialization Routines
31126 --------------------------------------------------
31128 Here are the macros that control how the compiler handles initialization
31129 and termination functions:
31131 -- Macro: INIT_SECTION_ASM_OP
31132 If defined, a C string constant, including spacing, for the
31133 assembler operation to identify the following data as
31134 initialization code. If not defined, GCC will assume such a
31135 section does not exist. When you are using special sections for
31136 initialization and termination functions, this macro also controls
31137 how `crtstuff.c' and `libgcc2.c' arrange to run the initialization
31140 -- Macro: HAS_INIT_SECTION
31141 If defined, `main' will not call `__main' as described above.
31142 This macro should be defined for systems that control start-up code
31143 on a symbol-by-symbol basis, such as OSF/1, and should not be
31144 defined explicitly for systems that support `INIT_SECTION_ASM_OP'.
31146 -- Macro: LD_INIT_SWITCH
31147 If defined, a C string constant for a switch that tells the linker
31148 that the following symbol is an initialization routine.
31150 -- Macro: LD_FINI_SWITCH
31151 If defined, a C string constant for a switch that tells the linker
31152 that the following symbol is a finalization routine.
31154 -- Macro: COLLECT_SHARED_INIT_FUNC (STREAM, FUNC)
31155 If defined, a C statement that will write a function that can be
31156 automatically called when a shared library is loaded. The function
31157 should call FUNC, which takes no arguments. If not defined, and
31158 the object format requires an explicit initialization function,
31159 then a function called `_GLOBAL__DI' will be generated.
31161 This function and the following one are used by collect2 when
31162 linking a shared library that needs constructors or destructors,
31163 or has DWARF2 exception tables embedded in the code.
31165 -- Macro: COLLECT_SHARED_FINI_FUNC (STREAM, FUNC)
31166 If defined, a C statement that will write a function that can be
31167 automatically called when a shared library is unloaded. The
31168 function should call FUNC, which takes no arguments. If not
31169 defined, and the object format requires an explicit finalization
31170 function, then a function called `_GLOBAL__DD' will be generated.
31172 -- Macro: INVOKE__main
31173 If defined, `main' will call `__main' despite the presence of
31174 `INIT_SECTION_ASM_OP'. This macro should be defined for systems
31175 where the init section is not actually run automatically, but is
31176 still useful for collecting the lists of constructors and
31179 -- Macro: SUPPORTS_INIT_PRIORITY
31180 If nonzero, the C++ `init_priority' attribute is supported and the
31181 compiler should emit instructions to control the order of
31182 initialization of objects. If zero, the compiler will issue an
31183 error message upon encountering an `init_priority' attribute.
31185 -- Target Hook: bool TARGET_HAVE_CTORS_DTORS
31186 This value is true if the target supports some "native" method of
31187 collecting constructors and destructors to be run at startup and
31188 exit. It is false if we must use `collect2'.
31190 -- Target Hook: void TARGET_ASM_CONSTRUCTOR (rtx SYMBOL, int PRIORITY)
31191 If defined, a function that outputs assembler code to arrange to
31192 call the function referenced by SYMBOL at initialization time.
31194 Assume that SYMBOL is a `SYMBOL_REF' for a function taking no
31195 arguments and with no return value. If the target supports
31196 initialization priorities, PRIORITY is a value between 0 and
31197 `MAX_INIT_PRIORITY'; otherwise it must be `DEFAULT_INIT_PRIORITY'.
31199 If this macro is not defined by the target, a suitable default will
31200 be chosen if (1) the target supports arbitrary section names, (2)
31201 the target defines `CTORS_SECTION_ASM_OP', or (3) `USE_COLLECT2'
31204 -- Target Hook: void TARGET_ASM_DESTRUCTOR (rtx SYMBOL, int PRIORITY)
31205 This is like `TARGET_ASM_CONSTRUCTOR' but used for termination
31206 functions rather than initialization functions.
31208 If `TARGET_HAVE_CTORS_DTORS' is true, the initialization routine
31209 generated for the generated object file will have static linkage.
31211 If your system uses `collect2' as the means of processing
31212 constructors, then that program normally uses `nm' to scan an object
31213 file for constructor functions to be called.
31215 On certain kinds of systems, you can define this macro to make
31216 `collect2' work faster (and, in some cases, make it work at all):
31218 -- Macro: OBJECT_FORMAT_COFF
31219 Define this macro if the system uses COFF (Common Object File
31220 Format) object files, so that `collect2' can assume this format
31221 and scan object files directly for dynamic constructor/destructor
31224 This macro is effective only in a native compiler; `collect2' as
31225 part of a cross compiler always uses `nm' for the target machine.
31227 -- Macro: REAL_NM_FILE_NAME
31228 Define this macro as a C string constant containing the file name
31229 to use to execute `nm'. The default is to search the path
31232 If your system supports shared libraries and has a program to list
31233 the dynamic dependencies of a given library or executable, you can
31234 define these macros to enable support for running initialization
31235 and termination functions in shared libraries:
31237 -- Macro: LDD_SUFFIX
31238 Define this macro to a C string constant containing the name of
31239 the program which lists dynamic dependencies, like `"ldd"' under
31242 -- Macro: PARSE_LDD_OUTPUT (PTR)
31243 Define this macro to be C code that extracts filenames from the
31244 output of the program denoted by `LDD_SUFFIX'. PTR is a variable
31245 of type `char *' that points to the beginning of a line of output
31246 from `LDD_SUFFIX'. If the line lists a dynamic dependency, the
31247 code must advance PTR to the beginning of the filename on that
31248 line. Otherwise, it must set PTR to `NULL'.
31250 -- Macro: SHLIB_SUFFIX
31251 Define this macro to a C string constant containing the default
31252 shared library extension of the target (e.g., `".so"'). `collect2'
31253 strips version information after this suffix when generating global
31254 constructor and destructor names. This define is only needed on
31255 targets that use `collect2' to process constructors and
31259 File: gccint.info, Node: Instruction Output, Next: Dispatch Tables, Prev: Macros for Initialization, Up: Assembler Format
31261 17.21.7 Output of Assembler Instructions
31262 ----------------------------------------
31264 This describes assembler instruction output.
31266 -- Macro: REGISTER_NAMES
31267 A C initializer containing the assembler's names for the machine
31268 registers, each one as a C string constant. This is what
31269 translates register numbers in the compiler into assembler
31272 -- Macro: ADDITIONAL_REGISTER_NAMES
31273 If defined, a C initializer for an array of structures containing
31274 a name and a register number. This macro defines additional names
31275 for hard registers, thus allowing the `asm' option in declarations
31276 to refer to registers using alternate names.
31278 -- Macro: ASM_OUTPUT_OPCODE (STREAM, PTR)
31279 Define this macro if you are using an unusual assembler that
31280 requires different names for the machine instructions.
31282 The definition is a C statement or statements which output an
31283 assembler instruction opcode to the stdio stream STREAM. The
31284 macro-operand PTR is a variable of type `char *' which points to
31285 the opcode name in its "internal" form--the form that is written
31286 in the machine description. The definition should output the
31287 opcode name to STREAM, performing any translation you desire, and
31288 increment the variable PTR to point at the end of the opcode so
31289 that it will not be output twice.
31291 In fact, your macro definition may process less than the entire
31292 opcode name, or more than the opcode name; but if you want to
31293 process text that includes `%'-sequences to substitute operands,
31294 you must take care of the substitution yourself. Just be sure to
31295 increment PTR over whatever text should not be output normally.
31297 If you need to look at the operand values, they can be found as the
31298 elements of `recog_data.operand'.
31300 If the macro definition does nothing, the instruction is output in
31303 -- Macro: FINAL_PRESCAN_INSN (INSN, OPVEC, NOPERANDS)
31304 If defined, a C statement to be executed just prior to the output
31305 of assembler code for INSN, to modify the extracted operands so
31306 they will be output differently.
31308 Here the argument OPVEC is the vector containing the operands
31309 extracted from INSN, and NOPERANDS is the number of elements of
31310 the vector which contain meaningful data for this insn. The
31311 contents of this vector are what will be used to convert the insn
31312 template into assembler code, so you can change the assembler
31313 output by changing the contents of the vector.
31315 This macro is useful when various assembler syntaxes share a single
31316 file of instruction patterns; by defining this macro differently,
31317 you can cause a large class of instructions to be output
31318 differently (such as with rearranged operands). Naturally,
31319 variations in assembler syntax affecting individual insn patterns
31320 ought to be handled by writing conditional output routines in
31323 If this macro is not defined, it is equivalent to a null statement.
31325 -- Macro: PRINT_OPERAND (STREAM, X, CODE)
31326 A C compound statement to output to stdio stream STREAM the
31327 assembler syntax for an instruction operand X. X is an RTL
31330 CODE is a value that can be used to specify one of several ways of
31331 printing the operand. It is used when identical operands must be
31332 printed differently depending on the context. CODE comes from the
31333 `%' specification that was used to request printing of the
31334 operand. If the specification was just `%DIGIT' then CODE is 0;
31335 if the specification was `%LTR DIGIT' then CODE is the ASCII code
31338 If X is a register, this macro should print the register's name.
31339 The names can be found in an array `reg_names' whose type is `char
31340 *[]'. `reg_names' is initialized from `REGISTER_NAMES'.
31342 When the machine description has a specification `%PUNCT' (a `%'
31343 followed by a punctuation character), this macro is called with a
31344 null pointer for X and the punctuation character for CODE.
31346 -- Macro: PRINT_OPERAND_PUNCT_VALID_P (CODE)
31347 A C expression which evaluates to true if CODE is a valid
31348 punctuation character for use in the `PRINT_OPERAND' macro. If
31349 `PRINT_OPERAND_PUNCT_VALID_P' is not defined, it means that no
31350 punctuation characters (except for the standard one, `%') are used
31353 -- Macro: PRINT_OPERAND_ADDRESS (STREAM, X)
31354 A C compound statement to output to stdio stream STREAM the
31355 assembler syntax for an instruction operand that is a memory
31356 reference whose address is X. X is an RTL expression.
31358 On some machines, the syntax for a symbolic address depends on the
31359 section that the address refers to. On these machines, define the
31360 hook `TARGET_ENCODE_SECTION_INFO' to store the information into the
31361 `symbol_ref', and then check for it here. *Note Assembler
31364 -- Macro: DBR_OUTPUT_SEQEND (FILE)
31365 A C statement, to be executed after all slot-filler instructions
31366 have been output. If necessary, call `dbr_sequence_length' to
31367 determine the number of slots filled in a sequence (zero if not
31368 currently outputting a sequence), to decide how many no-ops to
31369 output, or whatever.
31371 Don't define this macro if it has nothing to do, but it is helpful
31372 in reading assembly output if the extent of the delay sequence is
31373 made explicit (e.g. with white space).
31375 Note that output routines for instructions with delay slots must be
31376 prepared to deal with not being output as part of a sequence (i.e. when
31377 the scheduling pass is not run, or when no slot fillers could be
31378 found.) The variable `final_sequence' is null when not processing a
31379 sequence, otherwise it contains the `sequence' rtx being output.
31381 -- Macro: REGISTER_PREFIX
31382 -- Macro: LOCAL_LABEL_PREFIX
31383 -- Macro: USER_LABEL_PREFIX
31384 -- Macro: IMMEDIATE_PREFIX
31385 If defined, C string expressions to be used for the `%R', `%L',
31386 `%U', and `%I' options of `asm_fprintf' (see `final.c'). These
31387 are useful when a single `md' file must support multiple assembler
31388 formats. In that case, the various `tm.h' files can define these
31389 macros differently.
31391 -- Macro: ASM_FPRINTF_EXTENSIONS (FILE, ARGPTR, FORMAT)
31392 If defined this macro should expand to a series of `case'
31393 statements which will be parsed inside the `switch' statement of
31394 the `asm_fprintf' function. This allows targets to define extra
31395 printf formats which may useful when generating their assembler
31396 statements. Note that uppercase letters are reserved for future
31397 generic extensions to asm_fprintf, and so are not available to
31398 target specific code. The output file is given by the parameter
31399 FILE. The varargs input pointer is ARGPTR and the rest of the
31400 format string, starting the character after the one that is being
31401 switched upon, is pointed to by FORMAT.
31403 -- Macro: ASSEMBLER_DIALECT
31404 If your target supports multiple dialects of assembler language
31405 (such as different opcodes), define this macro as a C expression
31406 that gives the numeric index of the assembler language dialect to
31407 use, with zero as the first variant.
31409 If this macro is defined, you may use constructs of the form
31410 `{option0|option1|option2...}'
31411 in the output templates of patterns (*note Output Template::) or
31412 in the first argument of `asm_fprintf'. This construct outputs
31413 `option0', `option1', `option2', etc., if the value of
31414 `ASSEMBLER_DIALECT' is zero, one, two, etc. Any special characters
31415 within these strings retain their usual meaning. If there are
31416 fewer alternatives within the braces than the value of
31417 `ASSEMBLER_DIALECT', the construct outputs nothing.
31419 If you do not define this macro, the characters `{', `|' and `}'
31420 do not have any special meaning when used in templates or operands
31423 Define the macros `REGISTER_PREFIX', `LOCAL_LABEL_PREFIX',
31424 `USER_LABEL_PREFIX' and `IMMEDIATE_PREFIX' if you can express the
31425 variations in assembler language syntax with that mechanism.
31426 Define `ASSEMBLER_DIALECT' and use the `{option0|option1}' syntax
31427 if the syntax variant are larger and involve such things as
31428 different opcodes or operand order.
31430 -- Macro: ASM_OUTPUT_REG_PUSH (STREAM, REGNO)
31431 A C expression to output to STREAM some assembler code which will
31432 push hard register number REGNO onto the stack. The code need not
31433 be optimal, since this macro is used only when profiling.
31435 -- Macro: ASM_OUTPUT_REG_POP (STREAM, REGNO)
31436 A C expression to output to STREAM some assembler code which will
31437 pop hard register number REGNO off of the stack. The code need
31438 not be optimal, since this macro is used only when profiling.
31441 File: gccint.info, Node: Dispatch Tables, Next: Exception Region Output, Prev: Instruction Output, Up: Assembler Format
31443 17.21.8 Output of Dispatch Tables
31444 ---------------------------------
31446 This concerns dispatch tables.
31448 -- Macro: ASM_OUTPUT_ADDR_DIFF_ELT (STREAM, BODY, VALUE, REL)
31449 A C statement to output to the stdio stream STREAM an assembler
31450 pseudo-instruction to generate a difference between two labels.
31451 VALUE and REL are the numbers of two internal labels. The
31452 definitions of these labels are output using
31453 `(*targetm.asm_out.internal_label)', and they must be printed in
31454 the same way here. For example,
31456 fprintf (STREAM, "\t.word L%d-L%d\n",
31459 You must provide this macro on machines where the addresses in a
31460 dispatch table are relative to the table's own address. If
31461 defined, GCC will also use this macro on all machines when
31462 producing PIC. BODY is the body of the `ADDR_DIFF_VEC'; it is
31463 provided so that the mode and flags can be read.
31465 -- Macro: ASM_OUTPUT_ADDR_VEC_ELT (STREAM, VALUE)
31466 This macro should be provided on machines where the addresses in a
31467 dispatch table are absolute.
31469 The definition should be a C statement to output to the stdio
31470 stream STREAM an assembler pseudo-instruction to generate a
31471 reference to a label. VALUE is the number of an internal label
31472 whose definition is output using
31473 `(*targetm.asm_out.internal_label)'. For example,
31475 fprintf (STREAM, "\t.word L%d\n", VALUE)
31477 -- Macro: ASM_OUTPUT_CASE_LABEL (STREAM, PREFIX, NUM, TABLE)
31478 Define this if the label before a jump-table needs to be output
31479 specially. The first three arguments are the same as for
31480 `(*targetm.asm_out.internal_label)'; the fourth argument is the
31481 jump-table which follows (a `jump_insn' containing an `addr_vec'
31482 or `addr_diff_vec').
31484 This feature is used on system V to output a `swbeg' statement for
31487 If this macro is not defined, these labels are output with
31488 `(*targetm.asm_out.internal_label)'.
31490 -- Macro: ASM_OUTPUT_CASE_END (STREAM, NUM, TABLE)
31491 Define this if something special must be output at the end of a
31492 jump-table. The definition should be a C statement to be executed
31493 after the assembler code for the table is written. It should write
31494 the appropriate code to stdio stream STREAM. The argument TABLE
31495 is the jump-table insn, and NUM is the label-number of the
31498 If this macro is not defined, nothing special is output at the end
31501 -- Target Hook: void TARGET_ASM_EMIT_UNWIND_LABEL (STREAM, DECL,
31503 This target hook emits a label at the beginning of each FDE. It
31504 should be defined on targets where FDEs need special labels, and it
31505 should write the appropriate label, for the FDE associated with the
31506 function declaration DECL, to the stdio stream STREAM. The third
31507 argument, FOR_EH, is a boolean: true if this is for an exception
31508 table. The fourth argument, EMPTY, is a boolean: true if this is
31509 a placeholder label for an omitted FDE.
31511 The default is that FDEs are not given nonlocal labels.
31513 -- Target Hook: void TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL (STREAM)
31514 This target hook emits a label at the beginning of the exception
31515 table. It should be defined on targets where it is desirable for
31516 the table to be broken up according to function.
31518 The default is that no label is emitted.
31520 -- Target Hook: void TARGET_UNWIND_EMIT (FILE * STREAM, rtx INSN)
31521 This target hook emits and assembly directives required to unwind
31522 the given instruction. This is only used when TARGET_UNWIND_INFO
31526 File: gccint.info, Node: Exception Region Output, Next: Alignment Output, Prev: Dispatch Tables, Up: Assembler Format
31528 17.21.9 Assembler Commands for Exception Regions
31529 ------------------------------------------------
31531 This describes commands marking the start and the end of an exception
31534 -- Macro: EH_FRAME_SECTION_NAME
31535 If defined, a C string constant for the name of the section
31536 containing exception handling frame unwind information. If not
31537 defined, GCC will provide a default definition if the target
31538 supports named sections. `crtstuff.c' uses this macro to switch
31539 to the appropriate section.
31541 You should define this symbol if your target supports DWARF 2 frame
31542 unwind information and the default definition does not work.
31544 -- Macro: EH_FRAME_IN_DATA_SECTION
31545 If defined, DWARF 2 frame unwind information will be placed in the
31546 data section even though the target supports named sections. This
31547 might be necessary, for instance, if the system linker does garbage
31548 collection and sections cannot be marked as not to be collected.
31550 Do not define this macro unless `TARGET_ASM_NAMED_SECTION' is also
31553 -- Macro: EH_TABLES_CAN_BE_READ_ONLY
31554 Define this macro to 1 if your target is such that no frame unwind
31555 information encoding used with non-PIC code will ever require a
31556 runtime relocation, but the linker may not support merging
31557 read-only and read-write sections into a single read-write section.
31559 -- Macro: MASK_RETURN_ADDR
31560 An rtx used to mask the return address found via
31561 `RETURN_ADDR_RTX', so that it does not contain any extraneous set
31564 -- Macro: DWARF2_UNWIND_INFO
31565 Define this macro to 0 if your target supports DWARF 2 frame unwind
31566 information, but it does not yet work with exception handling.
31567 Otherwise, if your target supports this information (if it defines
31568 `INCOMING_RETURN_ADDR_RTX' and either `UNALIGNED_INT_ASM_OP' or
31569 `OBJECT_FORMAT_ELF'), GCC will provide a default definition of 1.
31571 If `TARGET_UNWIND_INFO' is defined, the target specific unwinder
31572 will be used in all cases. Defining this macro will enable the
31573 generation of DWARF 2 frame debugging information.
31575 If `TARGET_UNWIND_INFO' is not defined, and this macro is defined
31576 to 1, the DWARF 2 unwinder will be the default exception handling
31577 mechanism; otherwise, the `setjmp'/`longjmp'-based scheme will be
31580 -- Macro: TARGET_UNWIND_INFO
31581 Define this macro if your target has ABI specified unwind tables.
31582 Usually these will be output by `TARGET_UNWIND_EMIT'.
31584 -- Variable: Target Hook bool TARGET_UNWIND_TABLES_DEFAULT
31585 This variable should be set to `true' if the target ABI requires
31586 unwinding tables even when exceptions are not used.
31588 -- Macro: MUST_USE_SJLJ_EXCEPTIONS
31589 This macro need only be defined if `DWARF2_UNWIND_INFO' is
31590 runtime-variable. In that case, `except.h' cannot correctly
31591 determine the corresponding definition of
31592 `MUST_USE_SJLJ_EXCEPTIONS', so the target must provide it directly.
31594 -- Macro: DONT_USE_BUILTIN_SETJMP
31595 Define this macro to 1 if the `setjmp'/`longjmp'-based scheme
31596 should use the `setjmp'/`longjmp' functions from the C library
31597 instead of the `__builtin_setjmp'/`__builtin_longjmp' machinery.
31599 -- Macro: DWARF_CIE_DATA_ALIGNMENT
31600 This macro need only be defined if the target might save registers
31601 in the function prologue at an offset to the stack pointer that is
31602 not aligned to `UNITS_PER_WORD'. The definition should be the
31603 negative minimum alignment if `STACK_GROWS_DOWNWARD' is defined,
31604 and the positive minimum alignment otherwise. *Note SDB and
31605 DWARF::. Only applicable if the target supports DWARF 2 frame
31606 unwind information.
31608 -- Variable: Target Hook bool TARGET_TERMINATE_DW2_EH_FRAME_INFO
31609 Contains the value true if the target should add a zero word onto
31610 the end of a Dwarf-2 frame info section when used for exception
31611 handling. Default value is false if `EH_FRAME_SECTION_NAME' is
31612 defined, and true otherwise.
31614 -- Target Hook: rtx TARGET_DWARF_REGISTER_SPAN (rtx REG)
31615 Given a register, this hook should return a parallel of registers
31616 to represent where to find the register pieces. Define this hook
31617 if the register and its mode are represented in Dwarf in
31618 non-contiguous locations, or if the register should be represented
31619 in more than one register in Dwarf. Otherwise, this hook should
31620 return `NULL_RTX'. If not defined, the default is to return
31623 -- Target Hook: void TARGET_INIT_DWARF_REG_SIZES_EXTRA (tree ADDRESS)
31624 If some registers are represented in Dwarf-2 unwind information in
31625 multiple pieces, define this hook to fill in information about the
31626 sizes of those pieces in the table used by the unwinder at runtime.
31627 It will be called by `expand_builtin_init_dwarf_reg_sizes' after
31628 filling in a single size corresponding to each hard register;
31629 ADDRESS is the address of the table.
31631 -- Target Hook: bool TARGET_ASM_TTYPE (rtx SYM)
31632 This hook is used to output a reference from a frame unwinding
31633 table to the type_info object identified by SYM. It should return
31634 `true' if the reference was output. Returning `false' will cause
31635 the reference to be output using the normal Dwarf2 routines.
31637 -- Target Hook: bool TARGET_ARM_EABI_UNWINDER
31638 This hook should be set to `true' on targets that use an ARM EABI
31639 based unwinding library, and `false' on other targets. This
31640 effects the format of unwinding tables, and how the unwinder in
31641 entered after running a cleanup. The default is `false'.
31644 File: gccint.info, Node: Alignment Output, Prev: Exception Region Output, Up: Assembler Format
31646 17.21.10 Assembler Commands for Alignment
31647 -----------------------------------------
31649 This describes commands for alignment.
31651 -- Macro: JUMP_ALIGN (LABEL)
31652 The alignment (log base 2) to put in front of LABEL, which is a
31653 common destination of jumps and has no fallthru incoming edge.
31655 This macro need not be defined if you don't want any special
31656 alignment to be done at such a time. Most machine descriptions do
31657 not currently define the macro.
31659 Unless it's necessary to inspect the LABEL parameter, it is better
31660 to set the variable ALIGN_JUMPS in the target's
31661 `OVERRIDE_OPTIONS'. Otherwise, you should try to honor the user's
31662 selection in ALIGN_JUMPS in a `JUMP_ALIGN' implementation.
31664 -- Macro: LABEL_ALIGN_AFTER_BARRIER (LABEL)
31665 The alignment (log base 2) to put in front of LABEL, which follows
31668 This macro need not be defined if you don't want any special
31669 alignment to be done at such a time. Most machine descriptions do
31670 not currently define the macro.
31672 -- Macro: LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP
31673 The maximum number of bytes to skip when applying
31674 `LABEL_ALIGN_AFTER_BARRIER'. This works only if
31675 `ASM_OUTPUT_MAX_SKIP_ALIGN' is defined.
31677 -- Macro: LOOP_ALIGN (LABEL)
31678 The alignment (log base 2) to put in front of LABEL, which follows
31679 a `NOTE_INSN_LOOP_BEG' note.
31681 This macro need not be defined if you don't want any special
31682 alignment to be done at such a time. Most machine descriptions do
31683 not currently define the macro.
31685 Unless it's necessary to inspect the LABEL parameter, it is better
31686 to set the variable `align_loops' in the target's
31687 `OVERRIDE_OPTIONS'. Otherwise, you should try to honor the user's
31688 selection in `align_loops' in a `LOOP_ALIGN' implementation.
31690 -- Macro: LOOP_ALIGN_MAX_SKIP
31691 The maximum number of bytes to skip when applying `LOOP_ALIGN'.
31692 This works only if `ASM_OUTPUT_MAX_SKIP_ALIGN' is defined.
31694 -- Macro: LABEL_ALIGN (LABEL)
31695 The alignment (log base 2) to put in front of LABEL. If
31696 `LABEL_ALIGN_AFTER_BARRIER' / `LOOP_ALIGN' specify a different
31697 alignment, the maximum of the specified values is used.
31699 Unless it's necessary to inspect the LABEL parameter, it is better
31700 to set the variable `align_labels' in the target's
31701 `OVERRIDE_OPTIONS'. Otherwise, you should try to honor the user's
31702 selection in `align_labels' in a `LABEL_ALIGN' implementation.
31704 -- Macro: LABEL_ALIGN_MAX_SKIP
31705 The maximum number of bytes to skip when applying `LABEL_ALIGN'.
31706 This works only if `ASM_OUTPUT_MAX_SKIP_ALIGN' is defined.
31708 -- Macro: ASM_OUTPUT_SKIP (STREAM, NBYTES)
31709 A C statement to output to the stdio stream STREAM an assembler
31710 instruction to advance the location counter by NBYTES bytes.
31711 Those bytes should be zero when loaded. NBYTES will be a C
31712 expression of type `unsigned HOST_WIDE_INT'.
31714 -- Macro: ASM_NO_SKIP_IN_TEXT
31715 Define this macro if `ASM_OUTPUT_SKIP' should not be used in the
31716 text section because it fails to put zeros in the bytes that are
31717 skipped. This is true on many Unix systems, where the pseudo-op
31718 to skip bytes produces no-op instructions rather than zeros when
31719 used in the text section.
31721 -- Macro: ASM_OUTPUT_ALIGN (STREAM, POWER)
31722 A C statement to output to the stdio stream STREAM an assembler
31723 command to advance the location counter to a multiple of 2 to the
31724 POWER bytes. POWER will be a C expression of type `int'.
31726 -- Macro: ASM_OUTPUT_ALIGN_WITH_NOP (STREAM, POWER)
31727 Like `ASM_OUTPUT_ALIGN', except that the "nop" instruction is used
31728 for padding, if necessary.
31730 -- Macro: ASM_OUTPUT_MAX_SKIP_ALIGN (STREAM, POWER, MAX_SKIP)
31731 A C statement to output to the stdio stream STREAM an assembler
31732 command to advance the location counter to a multiple of 2 to the
31733 POWER bytes, but only if MAX_SKIP or fewer bytes are needed to
31734 satisfy the alignment request. POWER and MAX_SKIP will be a C
31735 expression of type `int'.
31738 File: gccint.info, Node: Debugging Info, Next: Floating Point, Prev: Assembler Format, Up: Target Macros
31740 17.22 Controlling Debugging Information Format
31741 ==============================================
31743 This describes how to specify debugging information.
31747 * All Debuggers:: Macros that affect all debugging formats uniformly.
31748 * DBX Options:: Macros enabling specific options in DBX format.
31749 * DBX Hooks:: Hook macros for varying DBX format.
31750 * File Names and DBX:: Macros controlling output of file names in DBX format.
31751 * SDB and DWARF:: Macros for SDB (COFF) and DWARF formats.
31752 * VMS Debug:: Macros for VMS debug format.
31755 File: gccint.info, Node: All Debuggers, Next: DBX Options, Up: Debugging Info
31757 17.22.1 Macros Affecting All Debugging Formats
31758 ----------------------------------------------
31760 These macros affect all debugging formats.
31762 -- Macro: DBX_REGISTER_NUMBER (REGNO)
31763 A C expression that returns the DBX register number for the
31764 compiler register number REGNO. In the default macro provided,
31765 the value of this expression will be REGNO itself. But sometimes
31766 there are some registers that the compiler knows about and DBX
31767 does not, or vice versa. In such cases, some register may need to
31768 have one number in the compiler and another for DBX.
31770 If two registers have consecutive numbers inside GCC, and they can
31771 be used as a pair to hold a multiword value, then they _must_ have
31772 consecutive numbers after renumbering with `DBX_REGISTER_NUMBER'.
31773 Otherwise, debuggers will be unable to access such a pair, because
31774 they expect register pairs to be consecutive in their own
31777 If you find yourself defining `DBX_REGISTER_NUMBER' in way that
31778 does not preserve register pairs, then what you must do instead is
31779 redefine the actual register numbering scheme.
31781 -- Macro: DEBUGGER_AUTO_OFFSET (X)
31782 A C expression that returns the integer offset value for an
31783 automatic variable having address X (an RTL expression). The
31784 default computation assumes that X is based on the frame-pointer
31785 and gives the offset from the frame-pointer. This is required for
31786 targets that produce debugging output for DBX or COFF-style
31787 debugging output for SDB and allow the frame-pointer to be
31788 eliminated when the `-g' options is used.
31790 -- Macro: DEBUGGER_ARG_OFFSET (OFFSET, X)
31791 A C expression that returns the integer offset value for an
31792 argument having address X (an RTL expression). The nominal offset
31795 -- Macro: PREFERRED_DEBUGGING_TYPE
31796 A C expression that returns the type of debugging output GCC should
31797 produce when the user specifies just `-g'. Define this if you
31798 have arranged for GCC to support more than one format of debugging
31799 output. Currently, the allowable values are `DBX_DEBUG',
31800 `SDB_DEBUG', `DWARF_DEBUG', `DWARF2_DEBUG', `XCOFF_DEBUG',
31801 `VMS_DEBUG', and `VMS_AND_DWARF2_DEBUG'.
31803 When the user specifies `-ggdb', GCC normally also uses the value
31804 of this macro to select the debugging output format, but with two
31805 exceptions. If `DWARF2_DEBUGGING_INFO' is defined, GCC uses the
31806 value `DWARF2_DEBUG'. Otherwise, if `DBX_DEBUGGING_INFO' is
31807 defined, GCC uses `DBX_DEBUG'.
31809 The value of this macro only affects the default debugging output;
31810 the user can always get a specific type of output by using
31811 `-gstabs', `-gcoff', `-gdwarf-2', `-gxcoff', or `-gvms'.
31814 File: gccint.info, Node: DBX Options, Next: DBX Hooks, Prev: All Debuggers, Up: Debugging Info
31816 17.22.2 Specific Options for DBX Output
31817 ---------------------------------------
31819 These are specific options for DBX output.
31821 -- Macro: DBX_DEBUGGING_INFO
31822 Define this macro if GCC should produce debugging output for DBX
31823 in response to the `-g' option.
31825 -- Macro: XCOFF_DEBUGGING_INFO
31826 Define this macro if GCC should produce XCOFF format debugging
31827 output in response to the `-g' option. This is a variant of DBX
31830 -- Macro: DEFAULT_GDB_EXTENSIONS
31831 Define this macro to control whether GCC should by default generate
31832 GDB's extended version of DBX debugging information (assuming
31833 DBX-format debugging information is enabled at all). If you don't
31834 define the macro, the default is 1: always generate the extended
31835 information if there is any occasion to.
31837 -- Macro: DEBUG_SYMS_TEXT
31838 Define this macro if all `.stabs' commands should be output while
31839 in the text section.
31841 -- Macro: ASM_STABS_OP
31842 A C string constant, including spacing, naming the assembler
31843 pseudo op to use instead of `"\t.stabs\t"' to define an ordinary
31844 debugging symbol. If you don't define this macro, `"\t.stabs\t"'
31845 is used. This macro applies only to DBX debugging information
31848 -- Macro: ASM_STABD_OP
31849 A C string constant, including spacing, naming the assembler
31850 pseudo op to use instead of `"\t.stabd\t"' to define a debugging
31851 symbol whose value is the current location. If you don't define
31852 this macro, `"\t.stabd\t"' is used. This macro applies only to
31853 DBX debugging information format.
31855 -- Macro: ASM_STABN_OP
31856 A C string constant, including spacing, naming the assembler
31857 pseudo op to use instead of `"\t.stabn\t"' to define a debugging
31858 symbol with no name. If you don't define this macro,
31859 `"\t.stabn\t"' is used. This macro applies only to DBX debugging
31860 information format.
31862 -- Macro: DBX_NO_XREFS
31863 Define this macro if DBX on your system does not support the
31864 construct `xsTAGNAME'. On some systems, this construct is used to
31865 describe a forward reference to a structure named TAGNAME. On
31866 other systems, this construct is not supported at all.
31868 -- Macro: DBX_CONTIN_LENGTH
31869 A symbol name in DBX-format debugging information is normally
31870 continued (split into two separate `.stabs' directives) when it
31871 exceeds a certain length (by default, 80 characters). On some
31872 operating systems, DBX requires this splitting; on others,
31873 splitting must not be done. You can inhibit splitting by defining
31874 this macro with the value zero. You can override the default
31875 splitting-length by defining this macro as an expression for the
31878 -- Macro: DBX_CONTIN_CHAR
31879 Normally continuation is indicated by adding a `\' character to
31880 the end of a `.stabs' string when a continuation follows. To use
31881 a different character instead, define this macro as a character
31882 constant for the character you want to use. Do not define this
31883 macro if backslash is correct for your system.
31885 -- Macro: DBX_STATIC_STAB_DATA_SECTION
31886 Define this macro if it is necessary to go to the data section
31887 before outputting the `.stabs' pseudo-op for a non-global static
31890 -- Macro: DBX_TYPE_DECL_STABS_CODE
31891 The value to use in the "code" field of the `.stabs' directive for
31892 a typedef. The default is `N_LSYM'.
31894 -- Macro: DBX_STATIC_CONST_VAR_CODE
31895 The value to use in the "code" field of the `.stabs' directive for
31896 a static variable located in the text section. DBX format does not
31897 provide any "right" way to do this. The default is `N_FUN'.
31899 -- Macro: DBX_REGPARM_STABS_CODE
31900 The value to use in the "code" field of the `.stabs' directive for
31901 a parameter passed in registers. DBX format does not provide any
31902 "right" way to do this. The default is `N_RSYM'.
31904 -- Macro: DBX_REGPARM_STABS_LETTER
31905 The letter to use in DBX symbol data to identify a symbol as a
31906 parameter passed in registers. DBX format does not customarily
31907 provide any way to do this. The default is `'P''.
31909 -- Macro: DBX_FUNCTION_FIRST
31910 Define this macro if the DBX information for a function and its
31911 arguments should precede the assembler code for the function.
31912 Normally, in DBX format, the debugging information entirely
31913 follows the assembler code.
31915 -- Macro: DBX_BLOCKS_FUNCTION_RELATIVE
31916 Define this macro, with value 1, if the value of a symbol
31917 describing the scope of a block (`N_LBRAC' or `N_RBRAC') should be
31918 relative to the start of the enclosing function. Normally, GCC
31919 uses an absolute address.
31921 -- Macro: DBX_LINES_FUNCTION_RELATIVE
31922 Define this macro, with value 1, if the value of a symbol
31923 indicating the current line number (`N_SLINE') should be relative
31924 to the start of the enclosing function. Normally, GCC uses an
31927 -- Macro: DBX_USE_BINCL
31928 Define this macro if GCC should generate `N_BINCL' and `N_EINCL'
31929 stabs for included header files, as on Sun systems. This macro
31930 also directs GCC to output a type number as a pair of a file
31931 number and a type number within the file. Normally, GCC does not
31932 generate `N_BINCL' or `N_EINCL' stabs, and it outputs a single
31933 number for a type number.
31936 File: gccint.info, Node: DBX Hooks, Next: File Names and DBX, Prev: DBX Options, Up: Debugging Info
31938 17.22.3 Open-Ended Hooks for DBX Format
31939 ---------------------------------------
31941 These are hooks for DBX format.
31943 -- Macro: DBX_OUTPUT_LBRAC (STREAM, NAME)
31944 Define this macro to say how to output to STREAM the debugging
31945 information for the start of a scope level for variable names. The
31946 argument NAME is the name of an assembler symbol (for use with
31947 `assemble_name') whose value is the address where the scope begins.
31949 -- Macro: DBX_OUTPUT_RBRAC (STREAM, NAME)
31950 Like `DBX_OUTPUT_LBRAC', but for the end of a scope level.
31952 -- Macro: DBX_OUTPUT_NFUN (STREAM, LSCOPE_LABEL, DECL)
31953 Define this macro if the target machine requires special handling
31954 to output an `N_FUN' entry for the function DECL.
31956 -- Macro: DBX_OUTPUT_SOURCE_LINE (STREAM, LINE, COUNTER)
31957 A C statement to output DBX debugging information before code for
31958 line number LINE of the current source file to the stdio stream
31959 STREAM. COUNTER is the number of time the macro was invoked,
31960 including the current invocation; it is intended to generate
31961 unique labels in the assembly output.
31963 This macro should not be defined if the default output is correct,
31964 or if it can be made correct by defining
31965 `DBX_LINES_FUNCTION_RELATIVE'.
31967 -- Macro: NO_DBX_FUNCTION_END
31968 Some stabs encapsulation formats (in particular ECOFF), cannot
31969 handle the `.stabs "",N_FUN,,0,0,Lscope-function-1' gdb dbx
31970 extension construct. On those machines, define this macro to turn
31971 this feature off without disturbing the rest of the gdb extensions.
31973 -- Macro: NO_DBX_BNSYM_ENSYM
31974 Some assemblers cannot handle the `.stabd BNSYM/ENSYM,0,0' gdb dbx
31975 extension construct. On those machines, define this macro to turn
31976 this feature off without disturbing the rest of the gdb extensions.
31979 File: gccint.info, Node: File Names and DBX, Next: SDB and DWARF, Prev: DBX Hooks, Up: Debugging Info
31981 17.22.4 File Names in DBX Format
31982 --------------------------------
31984 This describes file names in DBX format.
31986 -- Macro: DBX_OUTPUT_MAIN_SOURCE_FILENAME (STREAM, NAME)
31987 A C statement to output DBX debugging information to the stdio
31988 stream STREAM, which indicates that file NAME is the main source
31989 file--the file specified as the input file for compilation. This
31990 macro is called only once, at the beginning of compilation.
31992 This macro need not be defined if the standard form of output for
31993 DBX debugging information is appropriate.
31995 It may be necessary to refer to a label equal to the beginning of
31996 the text section. You can use `assemble_name (stream,
31997 ltext_label_name)' to do so. If you do this, you must also set
31998 the variable USED_LTEXT_LABEL_NAME to `true'.
32000 -- Macro: NO_DBX_MAIN_SOURCE_DIRECTORY
32001 Define this macro, with value 1, if GCC should not emit an
32002 indication of the current directory for compilation and current
32003 source language at the beginning of the file.
32005 -- Macro: NO_DBX_GCC_MARKER
32006 Define this macro, with value 1, if GCC should not emit an
32007 indication that this object file was compiled by GCC. The default
32008 is to emit an `N_OPT' stab at the beginning of every source file,
32009 with `gcc2_compiled.' for the string and value 0.
32011 -- Macro: DBX_OUTPUT_MAIN_SOURCE_FILE_END (STREAM, NAME)
32012 A C statement to output DBX debugging information at the end of
32013 compilation of the main source file NAME. Output should be
32014 written to the stdio stream STREAM.
32016 If you don't define this macro, nothing special is output at the
32017 end of compilation, which is correct for most machines.
32019 -- Macro: DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
32020 Define this macro _instead of_ defining
32021 `DBX_OUTPUT_MAIN_SOURCE_FILE_END', if what needs to be output at
32022 the end of compilation is a `N_SO' stab with an empty string,
32023 whose value is the highest absolute text address in the file.
32026 File: gccint.info, Node: SDB and DWARF, Next: VMS Debug, Prev: File Names and DBX, Up: Debugging Info
32028 17.22.5 Macros for SDB and DWARF Output
32029 ---------------------------------------
32031 Here are macros for SDB and DWARF output.
32033 -- Macro: SDB_DEBUGGING_INFO
32034 Define this macro if GCC should produce COFF-style debugging output
32035 for SDB in response to the `-g' option.
32037 -- Macro: DWARF2_DEBUGGING_INFO
32038 Define this macro if GCC should produce dwarf version 2 format
32039 debugging output in response to the `-g' option.
32041 -- Target Hook: int TARGET_DWARF_CALLING_CONVENTION (tree
32043 Define this to enable the dwarf attribute
32044 `DW_AT_calling_convention' to be emitted for each function.
32045 Instead of an integer return the enum value for the `DW_CC_'
32048 To support optional call frame debugging information, you must also
32049 define `INCOMING_RETURN_ADDR_RTX' and either set
32050 `RTX_FRAME_RELATED_P' on the prologue insns if you use RTL for the
32051 prologue, or call `dwarf2out_def_cfa' and `dwarf2out_reg_save' as
32052 appropriate from `TARGET_ASM_FUNCTION_PROLOGUE' if you don't.
32054 -- Macro: DWARF2_FRAME_INFO
32055 Define this macro to a nonzero value if GCC should always output
32056 Dwarf 2 frame information. If `DWARF2_UNWIND_INFO' (*note
32057 Exception Region Output:: is nonzero, GCC will output this
32058 information not matter how you define `DWARF2_FRAME_INFO'.
32060 -- Macro: DWARF2_ASM_LINE_DEBUG_INFO
32061 Define this macro to be a nonzero value if the assembler can
32062 generate Dwarf 2 line debug info sections. This will result in
32063 much more compact line number tables, and hence is desirable if it
32066 -- Macro: ASM_OUTPUT_DWARF_DELTA (STREAM, SIZE, LABEL1, LABEL2)
32067 A C statement to issue assembly directives that create a difference
32068 LAB1 minus LAB2, using an integer of the given SIZE.
32070 -- Macro: ASM_OUTPUT_DWARF_OFFSET (STREAM, SIZE, LABEL, SECTION)
32071 A C statement to issue assembly directives that create a
32072 section-relative reference to the given LABEL, using an integer of
32073 the given SIZE. The label is known to be defined in the given
32076 -- Macro: ASM_OUTPUT_DWARF_PCREL (STREAM, SIZE, LABEL)
32077 A C statement to issue assembly directives that create a
32078 self-relative reference to the given LABEL, using an integer of
32081 -- Target Hook: void TARGET_ASM_OUTPUT_DWARF_DTPREL (FILE *FILE, int
32083 If defined, this target hook is a function which outputs a
32084 DTP-relative reference to the given TLS symbol of the specified
32087 -- Macro: PUT_SDB_...
32088 Define these macros to override the assembler syntax for the
32089 special SDB assembler directives. See `sdbout.c' for a list of
32090 these macros and their arguments. If the standard syntax is used,
32091 you need not define them yourself.
32093 -- Macro: SDB_DELIM
32094 Some assemblers do not support a semicolon as a delimiter, even
32095 between SDB assembler directives. In that case, define this macro
32096 to be the delimiter to use (usually `\n'). It is not necessary to
32097 define a new set of `PUT_SDB_OP' macros if this is the only change
32100 -- Macro: SDB_ALLOW_UNKNOWN_REFERENCES
32101 Define this macro to allow references to unknown structure, union,
32102 or enumeration tags to be emitted. Standard COFF does not allow
32103 handling of unknown references, MIPS ECOFF has support for it.
32105 -- Macro: SDB_ALLOW_FORWARD_REFERENCES
32106 Define this macro to allow references to structure, union, or
32107 enumeration tags that have not yet been seen to be handled. Some
32108 assemblers choke if forward tags are used, while some require it.
32110 -- Macro: SDB_OUTPUT_SOURCE_LINE (STREAM, LINE)
32111 A C statement to output SDB debugging information before code for
32112 line number LINE of the current source file to the stdio stream
32113 STREAM. The default is to emit an `.ln' directive.
32116 File: gccint.info, Node: VMS Debug, Prev: SDB and DWARF, Up: Debugging Info
32118 17.22.6 Macros for VMS Debug Format
32119 -----------------------------------
32121 Here are macros for VMS debug format.
32123 -- Macro: VMS_DEBUGGING_INFO
32124 Define this macro if GCC should produce debugging output for VMS
32125 in response to the `-g' option. The default behavior for VMS is
32126 to generate minimal debug info for a traceback in the absence of
32127 `-g' unless explicitly overridden with `-g0'. This behavior is
32128 controlled by `OPTIMIZATION_OPTIONS' and `OVERRIDE_OPTIONS'.
32131 File: gccint.info, Node: Floating Point, Next: Mode Switching, Prev: Debugging Info, Up: Target Macros
32133 17.23 Cross Compilation and Floating Point
32134 ==========================================
32136 While all modern machines use twos-complement representation for
32137 integers, there are a variety of representations for floating point
32138 numbers. This means that in a cross-compiler the representation of
32139 floating point numbers in the compiled program may be different from
32140 that used in the machine doing the compilation.
32142 Because different representation systems may offer different amounts of
32143 range and precision, all floating point constants must be represented in
32144 the target machine's format. Therefore, the cross compiler cannot
32145 safely use the host machine's floating point arithmetic; it must emulate
32146 the target's arithmetic. To ensure consistency, GCC always uses
32147 emulation to work with floating point values, even when the host and
32148 target floating point formats are identical.
32150 The following macros are provided by `real.h' for the compiler to use.
32151 All parts of the compiler which generate or optimize floating-point
32152 calculations must use these macros. They may evaluate their operands
32153 more than once, so operands must not have side effects.
32155 -- Macro: REAL_VALUE_TYPE
32156 The C data type to be used to hold a floating point value in the
32157 target machine's format. Typically this is a `struct' containing
32158 an array of `HOST_WIDE_INT', but all code should treat it as an
32161 -- Macro: int REAL_VALUES_EQUAL (REAL_VALUE_TYPE X, REAL_VALUE_TYPE Y)
32162 Compares for equality the two values, X and Y. If the target
32163 floating point format supports negative zeroes and/or NaNs,
32164 `REAL_VALUES_EQUAL (-0.0, 0.0)' is true, and `REAL_VALUES_EQUAL
32165 (NaN, NaN)' is false.
32167 -- Macro: int REAL_VALUES_LESS (REAL_VALUE_TYPE X, REAL_VALUE_TYPE Y)
32168 Tests whether X is less than Y.
32170 -- Macro: HOST_WIDE_INT REAL_VALUE_FIX (REAL_VALUE_TYPE X)
32171 Truncates X to a signed integer, rounding toward zero.
32173 -- Macro: unsigned HOST_WIDE_INT REAL_VALUE_UNSIGNED_FIX
32174 (REAL_VALUE_TYPE X)
32175 Truncates X to an unsigned integer, rounding toward zero. If X is
32176 negative, returns zero.
32178 -- Macro: REAL_VALUE_TYPE REAL_VALUE_ATOF (const char *STRING, enum
32180 Converts STRING into a floating point number in the target
32181 machine's representation for mode MODE. This routine can handle
32182 both decimal and hexadecimal floating point constants, using the
32183 syntax defined by the C language for both.
32185 -- Macro: int REAL_VALUE_NEGATIVE (REAL_VALUE_TYPE X)
32186 Returns 1 if X is negative (including negative zero), 0 otherwise.
32188 -- Macro: int REAL_VALUE_ISINF (REAL_VALUE_TYPE X)
32189 Determines whether X represents infinity (positive or negative).
32191 -- Macro: int REAL_VALUE_ISNAN (REAL_VALUE_TYPE X)
32192 Determines whether X represents a "NaN" (not-a-number).
32194 -- Macro: void REAL_ARITHMETIC (REAL_VALUE_TYPE OUTPUT, enum tree_code
32195 CODE, REAL_VALUE_TYPE X, REAL_VALUE_TYPE Y)
32196 Calculates an arithmetic operation on the two floating point values
32197 X and Y, storing the result in OUTPUT (which must be a variable).
32199 The operation to be performed is specified by CODE. Only the
32200 following codes are supported: `PLUS_EXPR', `MINUS_EXPR',
32201 `MULT_EXPR', `RDIV_EXPR', `MAX_EXPR', `MIN_EXPR'.
32203 If `REAL_ARITHMETIC' is asked to evaluate division by zero and the
32204 target's floating point format cannot represent infinity, it will
32205 call `abort'. Callers should check for this situation first, using
32206 `MODE_HAS_INFINITIES'. *Note Storage Layout::.
32208 -- Macro: REAL_VALUE_TYPE REAL_VALUE_NEGATE (REAL_VALUE_TYPE X)
32209 Returns the negative of the floating point value X.
32211 -- Macro: REAL_VALUE_TYPE REAL_VALUE_ABS (REAL_VALUE_TYPE X)
32212 Returns the absolute value of X.
32214 -- Macro: REAL_VALUE_TYPE REAL_VALUE_TRUNCATE (REAL_VALUE_TYPE MODE,
32215 enum machine_mode X)
32216 Truncates the floating point value X to fit in MODE. The return
32217 value is still a full-size `REAL_VALUE_TYPE', but it has an
32218 appropriate bit pattern to be output as a floating constant whose
32219 precision accords with mode MODE.
32221 -- Macro: void REAL_VALUE_TO_INT (HOST_WIDE_INT LOW, HOST_WIDE_INT
32222 HIGH, REAL_VALUE_TYPE X)
32223 Converts a floating point value X into a double-precision integer
32224 which is then stored into LOW and HIGH. If the value is not
32225 integral, it is truncated.
32227 -- Macro: void REAL_VALUE_FROM_INT (REAL_VALUE_TYPE X, HOST_WIDE_INT
32228 LOW, HOST_WIDE_INT HIGH, enum machine_mode MODE)
32229 Converts a double-precision integer found in LOW and HIGH, into a
32230 floating point value which is then stored into X. The value is
32231 truncated to fit in mode MODE.
32234 File: gccint.info, Node: Mode Switching, Next: Target Attributes, Prev: Floating Point, Up: Target Macros
32236 17.24 Mode Switching Instructions
32237 =================================
32239 The following macros control mode switching optimizations:
32241 -- Macro: OPTIMIZE_MODE_SWITCHING (ENTITY)
32242 Define this macro if the port needs extra instructions inserted
32243 for mode switching in an optimizing compilation.
32245 For an example, the SH4 can perform both single and double
32246 precision floating point operations, but to perform a single
32247 precision operation, the FPSCR PR bit has to be cleared, while for
32248 a double precision operation, this bit has to be set. Changing
32249 the PR bit requires a general purpose register as a scratch
32250 register, hence these FPSCR sets have to be inserted before
32251 reload, i.e. you can't put this into instruction emitting or
32252 `TARGET_MACHINE_DEPENDENT_REORG'.
32254 You can have multiple entities that are mode-switched, and select
32255 at run time which entities actually need it.
32256 `OPTIMIZE_MODE_SWITCHING' should return nonzero for any ENTITY
32257 that needs mode-switching. If you define this macro, you also
32258 have to define `NUM_MODES_FOR_MODE_SWITCHING', `MODE_NEEDED',
32259 `MODE_PRIORITY_TO_MODE' and `EMIT_MODE_SET'. `MODE_AFTER',
32260 `MODE_ENTRY', and `MODE_EXIT' are optional.
32262 -- Macro: NUM_MODES_FOR_MODE_SWITCHING
32263 If you define `OPTIMIZE_MODE_SWITCHING', you have to define this as
32264 initializer for an array of integers. Each initializer element N
32265 refers to an entity that needs mode switching, and specifies the
32266 number of different modes that might need to be set for this
32267 entity. The position of the initializer in the
32268 initializer--starting counting at zero--determines the integer
32269 that is used to refer to the mode-switched entity in question. In
32270 macros that take mode arguments / yield a mode result, modes are
32271 represented as numbers 0 ... N - 1. N is used to specify that no
32272 mode switch is needed / supplied.
32274 -- Macro: MODE_NEEDED (ENTITY, INSN)
32275 ENTITY is an integer specifying a mode-switched entity. If
32276 `OPTIMIZE_MODE_SWITCHING' is defined, you must define this macro to
32277 return an integer value not larger than the corresponding element
32278 in `NUM_MODES_FOR_MODE_SWITCHING', to denote the mode that ENTITY
32279 must be switched into prior to the execution of INSN.
32281 -- Macro: MODE_AFTER (MODE, INSN)
32282 If this macro is defined, it is evaluated for every INSN during
32283 mode switching. It determines the mode that an insn results in (if
32284 different from the incoming mode).
32286 -- Macro: MODE_ENTRY (ENTITY)
32287 If this macro is defined, it is evaluated for every ENTITY that
32288 needs mode switching. It should evaluate to an integer, which is
32289 a mode that ENTITY is assumed to be switched to at function entry.
32290 If `MODE_ENTRY' is defined then `MODE_EXIT' must be defined.
32292 -- Macro: MODE_EXIT (ENTITY)
32293 If this macro is defined, it is evaluated for every ENTITY that
32294 needs mode switching. It should evaluate to an integer, which is
32295 a mode that ENTITY is assumed to be switched to at function exit.
32296 If `MODE_EXIT' is defined then `MODE_ENTRY' must be defined.
32298 -- Macro: MODE_PRIORITY_TO_MODE (ENTITY, N)
32299 This macro specifies the order in which modes for ENTITY are
32300 processed. 0 is the highest priority,
32301 `NUM_MODES_FOR_MODE_SWITCHING[ENTITY] - 1' the lowest. The value
32302 of the macro should be an integer designating a mode for ENTITY.
32303 For any fixed ENTITY, `mode_priority_to_mode' (ENTITY, N) shall be
32304 a bijection in 0 ... `num_modes_for_mode_switching[ENTITY] - 1'.
32306 -- Macro: EMIT_MODE_SET (ENTITY, MODE, HARD_REGS_LIVE)
32307 Generate one or more insns to set ENTITY to MODE. HARD_REG_LIVE
32308 is the set of hard registers live at the point where the insn(s)
32309 are to be inserted.
32312 File: gccint.info, Node: Target Attributes, Next: Emulated TLS, Prev: Mode Switching, Up: Target Macros
32314 17.25 Defining target-specific uses of `__attribute__'
32315 ======================================================
32317 Target-specific attributes may be defined for functions, data and types.
32318 These are described using the following target hooks; they also need to
32319 be documented in `extend.texi'.
32321 -- Target Hook: const struct attribute_spec * TARGET_ATTRIBUTE_TABLE
32322 If defined, this target hook points to an array of `struct
32323 attribute_spec' (defined in `tree.h') specifying the machine
32324 specific attributes for this target and some of the restrictions
32325 on the entities to which these attributes are applied and the
32326 arguments they take.
32328 -- Target Hook: int TARGET_COMP_TYPE_ATTRIBUTES (tree TYPE1, tree
32330 If defined, this target hook is a function which returns zero if
32331 the attributes on TYPE1 and TYPE2 are incompatible, one if they
32332 are compatible, and two if they are nearly compatible (which
32333 causes a warning to be generated). If this is not defined,
32334 machine-specific attributes are supposed always to be compatible.
32336 -- Target Hook: void TARGET_SET_DEFAULT_TYPE_ATTRIBUTES (tree TYPE)
32337 If defined, this target hook is a function which assigns default
32338 attributes to newly defined TYPE.
32340 -- Target Hook: tree TARGET_MERGE_TYPE_ATTRIBUTES (tree TYPE1, tree
32342 Define this target hook if the merging of type attributes needs
32343 special handling. If defined, the result is a list of the combined
32344 `TYPE_ATTRIBUTES' of TYPE1 and TYPE2. It is assumed that
32345 `comptypes' has already been called and returned 1. This function
32346 may call `merge_attributes' to handle machine-independent merging.
32348 -- Target Hook: tree TARGET_MERGE_DECL_ATTRIBUTES (tree OLDDECL, tree
32350 Define this target hook if the merging of decl attributes needs
32351 special handling. If defined, the result is a list of the combined
32352 `DECL_ATTRIBUTES' of OLDDECL and NEWDECL. NEWDECL is a duplicate
32353 declaration of OLDDECL. Examples of when this is needed are when
32354 one attribute overrides another, or when an attribute is nullified
32355 by a subsequent definition. This function may call
32356 `merge_attributes' to handle machine-independent merging.
32358 If the only target-specific handling you require is `dllimport'
32359 for Microsoft Windows targets, you should define the macro
32360 `TARGET_DLLIMPORT_DECL_ATTRIBUTES' to `1'. The compiler will then
32361 define a function called `merge_dllimport_decl_attributes' which
32362 can then be defined as the expansion of
32363 `TARGET_MERGE_DECL_ATTRIBUTES'. You can also add
32364 `handle_dll_attribute' in the attribute table for your port to
32365 perform initial processing of the `dllimport' and `dllexport'
32366 attributes. This is done in `i386/cygwin.h' and `i386/i386.c',
32369 -- Target Hook: bool TARGET_VALID_DLLIMPORT_ATTRIBUTE_P (tree DECL)
32370 DECL is a variable or function with `__attribute__((dllimport))'
32371 specified. Use this hook if the target needs to add extra
32372 validation checks to `handle_dll_attribute'.
32374 -- Macro: TARGET_DECLSPEC
32375 Define this macro to a nonzero value if you want to treat
32376 `__declspec(X)' as equivalent to `__attribute((X))'. By default,
32377 this behavior is enabled only for targets that define
32378 `TARGET_DLLIMPORT_DECL_ATTRIBUTES'. The current implementation of
32379 `__declspec' is via a built-in macro, but you should not rely on
32380 this implementation detail.
32382 -- Target Hook: void TARGET_INSERT_ATTRIBUTES (tree NODE, tree
32384 Define this target hook if you want to be able to add attributes
32385 to a decl when it is being created. This is normally useful for
32386 back ends which wish to implement a pragma by using the attributes
32387 which correspond to the pragma's effect. The NODE argument is the
32388 decl which is being created. The ATTR_PTR argument is a pointer
32389 to the attribute list for this decl. The list itself should not
32390 be modified, since it may be shared with other decls, but
32391 attributes may be chained on the head of the list and `*ATTR_PTR'
32392 modified to point to the new attributes, or a copy of the list may
32393 be made if further changes are needed.
32395 -- Target Hook: bool TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P (tree
32397 This target hook returns `true' if it is ok to inline FNDECL into
32398 the current function, despite its having target-specific
32399 attributes, `false' otherwise. By default, if a function has a
32400 target specific attribute attached to it, it will not be inlined.
32402 -- Target Hook: bool TARGET_VALID_OPTION_ATTRIBUTE_P (tree FNDECL,
32403 tree NAME, tree ARGS, int FLAGS)
32404 This hook is called to parse the `attribute(option("..."))', and
32405 it allows the function to set different target machine compile time
32406 options for the current function that might be different than the
32407 options specified on the command line. The hook should return
32408 `true' if the options are valid.
32410 The hook should set the DECL_FUNCTION_SPECIFIC_TARGET field in the
32411 function declaration to hold a pointer to a target specific STRUCT
32412 CL_TARGET_OPTION structure.
32414 -- Target Hook: void TARGET_OPTION_SAVE (struct cl_target_option *PTR)
32415 This hook is called to save any additional target specific
32416 information in the STRUCT CL_TARGET_OPTION structure for function
32417 specific options. *Note Option file format::.
32419 -- Target Hook: void TARGET_OPTION_RESTORE (struct cl_target_option
32421 This hook is called to restore any additional target specific
32422 information in the STRUCT CL_TARGET_OPTION structure for function
32425 -- Target Hook: void TARGET_OPTION_PRINT (struct cl_target_option *PTR)
32426 This hook is called to print any additional target specific
32427 information in the STRUCT CL_TARGET_OPTION structure for function
32430 -- Target Hook: bool TARGET_OPTION_PRAGMA_PARSE (target ARGS)
32431 This target hook parses the options for `#pragma GCC option' to
32432 set the machine specific options for functions that occur later in
32433 the input stream. The options should be the same as handled by the
32434 `TARGET_VALID_OPTION_ATTRIBUTE_P' hook.
32436 -- Target Hook: bool TARGET_CAN_INLINE_P (tree CALLER, tree CALLEE)
32437 This target hook returns `false' if the CALLER function cannot
32438 inline CALLEE, based on target specific information. By default,
32439 inlining is not allowed if the callee function has function
32440 specific target options and the caller does not use the same
32444 File: gccint.info, Node: Emulated TLS, Next: MIPS Coprocessors, Prev: Target Attributes, Up: Target Macros
32446 17.26 Emulating TLS
32447 ===================
32449 For targets whose psABI does not provide Thread Local Storage via
32450 specific relocations and instruction sequences, an emulation layer is
32451 used. A set of target hooks allows this emulation layer to be
32452 configured for the requirements of a particular target. For instance
32453 the psABI may in fact specify TLS support in terms of an emulation
32456 The emulation layer works by creating a control object for every TLS
32457 object. To access the TLS object, a lookup function is provided which,
32458 when given the address of the control object, will return the address
32459 of the current thread's instance of the TLS object.
32461 -- Target Hook: const char * TARGET_EMUTLS_GET_ADDRESS
32462 Contains the name of the helper function that uses a TLS control
32463 object to locate a TLS instance. The default causes libgcc's
32464 emulated TLS helper function to be used.
32466 -- Target Hook: const char * TARGET_EMUTLS_REGISTER_COMMON
32467 Contains the name of the helper function that should be used at
32468 program startup to register TLS objects that are implicitly
32469 initialized to zero. If this is `NULL', all TLS objects will have
32470 explicit initializers. The default causes libgcc's emulated TLS
32471 registration function to be used.
32473 -- Target Hook: const char * TARGET_EMUTLS_VAR_SECTION
32474 Contains the name of the section in which TLS control variables
32475 should be placed. The default of `NULL' allows these to be placed
32478 -- Target Hook: const char * TARGET_EMUTLS_TMPL_SECTION
32479 Contains the name of the section in which TLS initializers should
32480 be placed. The default of `NULL' allows these to be placed in any
32483 -- Target Hook: const char * TARGET_EMUTLS_VAR_PREFIX
32484 Contains the prefix to be prepended to TLS control variable names.
32485 The default of `NULL' uses a target-specific prefix.
32487 -- Target Hook: const char * TARGET_EMUTLS_TMPL_PREFIX
32488 Contains the prefix to be prepended to TLS initializer objects.
32489 The default of `NULL' uses a target-specific prefix.
32491 -- Target Hook: tree TARGET_EMUTLS_VAR_FIELDS (tree TYPE, tree *NAME)
32492 Specifies a function that generates the FIELD_DECLs for a TLS
32493 control object type. TYPE is the RECORD_TYPE the fields are for
32494 and NAME should be filled with the structure tag, if the default of
32495 `__emutls_object' is unsuitable. The default creates a type
32496 suitable for libgcc's emulated TLS function.
32498 -- Target Hook: tree TARGET_EMUTLS_VAR_INIT (tree VAR, tree DECL, tree
32500 Specifies a function that generates the CONSTRUCTOR to initialize a
32501 TLS control object. VAR is the TLS control object, DECL is the
32502 TLS object and TMPL_ADDR is the address of the initializer. The
32503 default initializes libgcc's emulated TLS control object.
32505 -- Target Hook: bool TARGET_EMUTLS_VAR_ALIGN_FIXED
32506 Specifies whether the alignment of TLS control variable objects is
32507 fixed and should not be increased as some backends may do to
32508 optimize single objects. The default is false.
32510 -- Target Hook: bool TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS
32511 Specifies whether a DWARF `DW_OP_form_tls_address' location
32512 descriptor may be used to describe emulated TLS control objects.
32515 File: gccint.info, Node: MIPS Coprocessors, Next: PCH Target, Prev: Emulated TLS, Up: Target Macros
32517 17.27 Defining coprocessor specifics for MIPS targets.
32518 ======================================================
32520 The MIPS specification allows MIPS implementations to have as many as 4
32521 coprocessors, each with as many as 32 private registers. GCC supports
32522 accessing these registers and transferring values between the registers
32523 and memory using asm-ized variables. For example:
32525 register unsigned int cp0count asm ("c0r1");
32530 ("c0r1" is the default name of register 1 in coprocessor 0; alternate
32531 names may be added as described below, or the default names may be
32532 overridden entirely in `SUBTARGET_CONDITIONAL_REGISTER_USAGE'.)
32534 Coprocessor registers are assumed to be epilogue-used; sets to them
32535 will be preserved even if it does not appear that the register is used
32536 again later in the function.
32538 Another note: according to the MIPS spec, coprocessor 1 (if present) is
32539 the FPU. One accesses COP1 registers through standard mips
32540 floating-point support; they are not included in this mechanism.
32542 There is one macro used in defining the MIPS coprocessor interface
32543 which you may want to override in subtargets; it is described below.
32545 -- Macro: ALL_COP_ADDITIONAL_REGISTER_NAMES
32546 A comma-separated list (with leading comma) of pairs describing the
32547 alternate names of coprocessor registers. The format of each
32549 { ALTERNATENAME, REGISTER_NUMBER}
32553 File: gccint.info, Node: PCH Target, Next: C++ ABI, Prev: MIPS Coprocessors, Up: Target Macros
32555 17.28 Parameters for Precompiled Header Validity Checking
32556 =========================================================
32558 -- Target Hook: void *TARGET_GET_PCH_VALIDITY (size_t *SZ)
32559 This hook returns the data needed by `TARGET_PCH_VALID_P' and sets
32560 `*SZ' to the size of the data in bytes.
32562 -- Target Hook: const char *TARGET_PCH_VALID_P (const void *DATA,
32564 This hook checks whether the options used to create a PCH file are
32565 compatible with the current settings. It returns `NULL' if so and
32566 a suitable error message if not. Error messages will be presented
32567 to the user and must be localized using `_(MSG)'.
32569 DATA is the data that was returned by `TARGET_GET_PCH_VALIDITY'
32570 when the PCH file was created and SZ is the size of that data in
32571 bytes. It's safe to assume that the data was created by the same
32572 version of the compiler, so no format checking is needed.
32574 The default definition of `default_pch_valid_p' should be suitable
32577 -- Target Hook: const char *TARGET_CHECK_PCH_TARGET_FLAGS (int
32579 If this hook is nonnull, the default implementation of
32580 `TARGET_PCH_VALID_P' will use it to check for compatible values of
32581 `target_flags'. PCH_FLAGS specifies the value that `target_flags'
32582 had when the PCH file was created. The return value is the same
32583 as for `TARGET_PCH_VALID_P'.
32586 File: gccint.info, Node: C++ ABI, Next: Misc, Prev: PCH Target, Up: Target Macros
32588 17.29 C++ ABI parameters
32589 ========================
32591 -- Target Hook: tree TARGET_CXX_GUARD_TYPE (void)
32592 Define this hook to override the integer type used for guard
32593 variables. These are used to implement one-time construction of
32594 static objects. The default is long_long_integer_type_node.
32596 -- Target Hook: bool TARGET_CXX_GUARD_MASK_BIT (void)
32597 This hook determines how guard variables are used. It should
32598 return `false' (the default) if first byte should be used. A
32599 return value of `true' indicates the least significant bit should
32602 -- Target Hook: tree TARGET_CXX_GET_COOKIE_SIZE (tree TYPE)
32603 This hook returns the size of the cookie to use when allocating an
32604 array whose elements have the indicated TYPE. Assumes that it is
32605 already known that a cookie is needed. The default is `max(sizeof
32606 (size_t), alignof(type))', as defined in section 2.7 of the
32607 IA64/Generic C++ ABI.
32609 -- Target Hook: bool TARGET_CXX_COOKIE_HAS_SIZE (void)
32610 This hook should return `true' if the element size should be
32611 stored in array cookies. The default is to return `false'.
32613 -- Target Hook: int TARGET_CXX_IMPORT_EXPORT_CLASS (tree TYPE, int
32615 If defined by a backend this hook allows the decision made to
32616 export class TYPE to be overruled. Upon entry IMPORT_EXPORT will
32617 contain 1 if the class is going to be exported, -1 if it is going
32618 to be imported and 0 otherwise. This function should return the
32619 modified value and perform any other actions necessary to support
32620 the backend's targeted operating system.
32622 -- Target Hook: bool TARGET_CXX_CDTOR_RETURNS_THIS (void)
32623 This hook should return `true' if constructors and destructors
32624 return the address of the object created/destroyed. The default
32625 is to return `false'.
32627 -- Target Hook: bool TARGET_CXX_KEY_METHOD_MAY_BE_INLINE (void)
32628 This hook returns true if the key method for a class (i.e., the
32629 method which, if defined in the current translation unit, causes
32630 the virtual table to be emitted) may be an inline function. Under
32631 the standard Itanium C++ ABI the key method may be an inline
32632 function so long as the function is not declared inline in the
32633 class definition. Under some variants of the ABI, an inline
32634 function can never be the key method. The default is to return
32637 -- Target Hook: void TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY (tree
32639 DECL is a virtual table, virtual table table, typeinfo object, or
32640 other similar implicit class data object that will be emitted with
32641 external linkage in this translation unit. No ELF visibility has
32642 been explicitly specified. If the target needs to specify a
32643 visibility other than that of the containing class, use this hook
32644 to set `DECL_VISIBILITY' and `DECL_VISIBILITY_SPECIFIED'.
32646 -- Target Hook: bool TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT (void)
32647 This hook returns true (the default) if virtual tables and other
32648 similar implicit class data objects are always COMDAT if they have
32649 external linkage. If this hook returns false, then class data for
32650 classes whose virtual table will be emitted in only one translation
32651 unit will not be COMDAT.
32653 -- Target Hook: bool TARGET_CXX_LIBRARY_RTTI_COMDAT (void)
32654 This hook returns true (the default) if the RTTI information for
32655 the basic types which is defined in the C++ runtime should always
32656 be COMDAT, false if it should not be COMDAT.
32658 -- Target Hook: bool TARGET_CXX_USE_AEABI_ATEXIT (void)
32659 This hook returns true if `__aeabi_atexit' (as defined by the ARM
32660 EABI) should be used to register static destructors when
32661 `-fuse-cxa-atexit' is in effect. The default is to return false
32662 to use `__cxa_atexit'.
32664 -- Target Hook: bool TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT (void)
32665 This hook returns true if the target `atexit' function can be used
32666 in the same manner as `__cxa_atexit' to register C++ static
32667 destructors. This requires that `atexit'-registered functions in
32668 shared libraries are run in the correct order when the libraries
32669 are unloaded. The default is to return false.
32671 -- Target Hook: void TARGET_CXX_ADJUST_CLASS_AT_DEFINITION (tree TYPE)
32672 TYPE is a C++ class (i.e., RECORD_TYPE or UNION_TYPE) that has
32673 just been defined. Use this hook to make adjustments to the class
32674 (eg, tweak visibility or perform any other required target
32678 File: gccint.info, Node: Misc, Prev: C++ ABI, Up: Target Macros
32680 17.30 Miscellaneous Parameters
32681 ==============================
32683 Here are several miscellaneous parameters.
32685 -- Macro: HAS_LONG_COND_BRANCH
32686 Define this boolean macro to indicate whether or not your
32687 architecture has conditional branches that can span all of memory.
32688 It is used in conjunction with an optimization that partitions
32689 hot and cold basic blocks into separate sections of the
32690 executable. If this macro is set to false, gcc will convert any
32691 conditional branches that attempt to cross between sections into
32692 unconditional branches or indirect jumps.
32694 -- Macro: HAS_LONG_UNCOND_BRANCH
32695 Define this boolean macro to indicate whether or not your
32696 architecture has unconditional branches that can span all of
32697 memory. It is used in conjunction with an optimization that
32698 partitions hot and cold basic blocks into separate sections of the
32699 executable. If this macro is set to false, gcc will convert any
32700 unconditional branches that attempt to cross between sections into
32703 -- Macro: CASE_VECTOR_MODE
32704 An alias for a machine mode name. This is the machine mode that
32705 elements of a jump-table should have.
32707 -- Macro: CASE_VECTOR_SHORTEN_MODE (MIN_OFFSET, MAX_OFFSET, BODY)
32708 Optional: return the preferred mode for an `addr_diff_vec' when
32709 the minimum and maximum offset are known. If you define this, it
32710 enables extra code in branch shortening to deal with
32711 `addr_diff_vec'. To make this work, you also have to define
32712 `INSN_ALIGN' and make the alignment for `addr_diff_vec' explicit.
32713 The BODY argument is provided so that the offset_unsigned and scale
32714 flags can be updated.
32716 -- Macro: CASE_VECTOR_PC_RELATIVE
32717 Define this macro to be a C expression to indicate when jump-tables
32718 should contain relative addresses. You need not define this macro
32719 if jump-tables never contain relative addresses, or jump-tables
32720 should contain relative addresses only when `-fPIC' or `-fPIC' is
32723 -- Macro: CASE_VALUES_THRESHOLD
32724 Define this to be the smallest number of different values for
32725 which it is best to use a jump-table instead of a tree of
32726 conditional branches. The default is four for machines with a
32727 `casesi' instruction and five otherwise. This is best for most
32730 -- Macro: CASE_USE_BIT_TESTS
32731 Define this macro to be a C expression to indicate whether C switch
32732 statements may be implemented by a sequence of bit tests. This is
32733 advantageous on processors that can efficiently implement left
32734 shift of 1 by the number of bits held in a register, but
32735 inappropriate on targets that would require a loop. By default,
32736 this macro returns `true' if the target defines an `ashlsi3'
32737 pattern, and `false' otherwise.
32739 -- Macro: WORD_REGISTER_OPERATIONS
32740 Define this macro if operations between registers with integral
32741 mode smaller than a word are always performed on the entire
32742 register. Most RISC machines have this property and most CISC
32745 -- Macro: LOAD_EXTEND_OP (MEM_MODE)
32746 Define this macro to be a C expression indicating when insns that
32747 read memory in MEM_MODE, an integral mode narrower than a word,
32748 set the bits outside of MEM_MODE to be either the sign-extension
32749 or the zero-extension of the data read. Return `SIGN_EXTEND' for
32750 values of MEM_MODE for which the insn sign-extends, `ZERO_EXTEND'
32751 for which it zero-extends, and `UNKNOWN' for other modes.
32753 This macro is not called with MEM_MODE non-integral or with a width
32754 greater than or equal to `BITS_PER_WORD', so you may return any
32755 value in this case. Do not define this macro if it would always
32756 return `UNKNOWN'. On machines where this macro is defined, you
32757 will normally define it as the constant `SIGN_EXTEND' or
32760 You may return a non-`UNKNOWN' value even if for some hard
32761 registers the sign extension is not performed, if for the
32762 `REGNO_REG_CLASS' of these hard registers
32763 `CANNOT_CHANGE_MODE_CLASS' returns nonzero when the FROM mode is
32764 MEM_MODE and the TO mode is any integral mode larger than this but
32765 not larger than `word_mode'.
32767 You must return `UNKNOWN' if for some hard registers that allow
32768 this mode, `CANNOT_CHANGE_MODE_CLASS' says that they cannot change
32769 to `word_mode', but that they can change to another integral mode
32770 that is larger then MEM_MODE but still smaller than `word_mode'.
32772 -- Macro: SHORT_IMMEDIATES_SIGN_EXTEND
32773 Define this macro if loading short immediate values into registers
32776 -- Macro: FIXUNS_TRUNC_LIKE_FIX_TRUNC
32777 Define this macro if the same instructions that convert a floating
32778 point number to a signed fixed point number also convert validly
32779 to an unsigned one.
32781 -- Target Hook: int TARGET_MIN_DIVISIONS_FOR_RECIP_MUL (enum
32783 When `-ffast-math' is in effect, GCC tries to optimize divisions
32784 by the same divisor, by turning them into multiplications by the
32785 reciprocal. This target hook specifies the minimum number of
32786 divisions that should be there for GCC to perform the optimization
32787 for a variable of mode MODE. The default implementation returns 3
32788 if the machine has an instruction for the division, and 2 if it
32792 The maximum number of bytes that a single instruction can move
32793 quickly between memory and registers or between two memory
32796 -- Macro: MAX_MOVE_MAX
32797 The maximum number of bytes that a single instruction can move
32798 quickly between memory and registers or between two memory
32799 locations. If this is undefined, the default is `MOVE_MAX'.
32800 Otherwise, it is the constant value that is the largest value that
32801 `MOVE_MAX' can have at run-time.
32803 -- Macro: SHIFT_COUNT_TRUNCATED
32804 A C expression that is nonzero if on this machine the number of
32805 bits actually used for the count of a shift operation is equal to
32806 the number of bits needed to represent the size of the object
32807 being shifted. When this macro is nonzero, the compiler will
32808 assume that it is safe to omit a sign-extend, zero-extend, and
32809 certain bitwise `and' instructions that truncates the count of a
32810 shift operation. On machines that have instructions that act on
32811 bit-fields at variable positions, which may include `bit test'
32812 instructions, a nonzero `SHIFT_COUNT_TRUNCATED' also enables
32813 deletion of truncations of the values that serve as arguments to
32814 bit-field instructions.
32816 If both types of instructions truncate the count (for shifts) and
32817 position (for bit-field operations), or if no variable-position
32818 bit-field instructions exist, you should define this macro.
32820 However, on some machines, such as the 80386 and the 680x0,
32821 truncation only applies to shift operations and not the (real or
32822 pretended) bit-field operations. Define `SHIFT_COUNT_TRUNCATED'
32823 to be zero on such machines. Instead, add patterns to the `md'
32824 file that include the implied truncation of the shift instructions.
32826 You need not define this macro if it would always have the value
32829 -- Target Hook: int TARGET_SHIFT_TRUNCATION_MASK (enum machine_mode
32831 This function describes how the standard shift patterns for MODE
32832 deal with shifts by negative amounts or by more than the width of
32833 the mode. *Note shift patterns::.
32835 On many machines, the shift patterns will apply a mask M to the
32836 shift count, meaning that a fixed-width shift of X by Y is
32837 equivalent to an arbitrary-width shift of X by Y & M. If this is
32838 true for mode MODE, the function should return M, otherwise it
32839 should return 0. A return value of 0 indicates that no particular
32840 behavior is guaranteed.
32842 Note that, unlike `SHIFT_COUNT_TRUNCATED', this function does
32843 _not_ apply to general shift rtxes; it applies only to instructions
32844 that are generated by the named shift patterns.
32846 The default implementation of this function returns
32847 `GET_MODE_BITSIZE (MODE) - 1' if `SHIFT_COUNT_TRUNCATED' and 0
32848 otherwise. This definition is always safe, but if
32849 `SHIFT_COUNT_TRUNCATED' is false, and some shift patterns
32850 nevertheless truncate the shift count, you may get better code by
32853 -- Macro: TRULY_NOOP_TRUNCATION (OUTPREC, INPREC)
32854 A C expression which is nonzero if on this machine it is safe to
32855 "convert" an integer of INPREC bits to one of OUTPREC bits (where
32856 OUTPREC is smaller than INPREC) by merely operating on it as if it
32857 had only OUTPREC bits.
32859 On many machines, this expression can be 1.
32861 When `TRULY_NOOP_TRUNCATION' returns 1 for a pair of sizes for
32862 modes for which `MODES_TIEABLE_P' is 0, suboptimal code can result.
32863 If this is the case, making `TRULY_NOOP_TRUNCATION' return 0 in
32864 such cases may improve things.
32866 -- Target Hook: int TARGET_MODE_REP_EXTENDED (enum machine_mode MODE,
32867 enum machine_mode REP_MODE)
32868 The representation of an integral mode can be such that the values
32869 are always extended to a wider integral mode. Return
32870 `SIGN_EXTEND' if values of MODE are represented in sign-extended
32871 form to REP_MODE. Return `UNKNOWN' otherwise. (Currently, none
32872 of the targets use zero-extended representation this way so unlike
32873 `LOAD_EXTEND_OP', `TARGET_MODE_REP_EXTENDED' is expected to return
32874 either `SIGN_EXTEND' or `UNKNOWN'. Also no target extends MODE to
32875 MODE_REP so that MODE_REP is not the next widest integral mode and
32876 currently we take advantage of this fact.)
32878 Similarly to `LOAD_EXTEND_OP' you may return a non-`UNKNOWN' value
32879 even if the extension is not performed on certain hard registers
32880 as long as for the `REGNO_REG_CLASS' of these hard registers
32881 `CANNOT_CHANGE_MODE_CLASS' returns nonzero.
32883 Note that `TARGET_MODE_REP_EXTENDED' and `LOAD_EXTEND_OP' describe
32884 two related properties. If you define `TARGET_MODE_REP_EXTENDED
32885 (mode, word_mode)' you probably also want to define
32886 `LOAD_EXTEND_OP (mode)' to return the same type of extension.
32888 In order to enforce the representation of `mode',
32889 `TRULY_NOOP_TRUNCATION' should return false when truncating to
32892 -- Macro: STORE_FLAG_VALUE
32893 A C expression describing the value returned by a comparison
32894 operator with an integral mode and stored by a store-flag
32895 instruction (`sCOND') when the condition is true. This
32896 description must apply to _all_ the `sCOND' patterns and all the
32897 comparison operators whose results have a `MODE_INT' mode.
32899 A value of 1 or -1 means that the instruction implementing the
32900 comparison operator returns exactly 1 or -1 when the comparison is
32901 true and 0 when the comparison is false. Otherwise, the value
32902 indicates which bits of the result are guaranteed to be 1 when the
32903 comparison is true. This value is interpreted in the mode of the
32904 comparison operation, which is given by the mode of the first
32905 operand in the `sCOND' pattern. Either the low bit or the sign
32906 bit of `STORE_FLAG_VALUE' be on. Presently, only those bits are
32907 used by the compiler.
32909 If `STORE_FLAG_VALUE' is neither 1 or -1, the compiler will
32910 generate code that depends only on the specified bits. It can also
32911 replace comparison operators with equivalent operations if they
32912 cause the required bits to be set, even if the remaining bits are
32913 undefined. For example, on a machine whose comparison operators
32914 return an `SImode' value and where `STORE_FLAG_VALUE' is defined as
32915 `0x80000000', saying that just the sign bit is relevant, the
32918 (ne:SI (and:SI X (const_int POWER-OF-2)) (const_int 0))
32920 can be converted to
32922 (ashift:SI X (const_int N))
32924 where N is the appropriate shift count to move the bit being
32925 tested into the sign bit.
32927 There is no way to describe a machine that always sets the
32928 low-order bit for a true value, but does not guarantee the value
32929 of any other bits, but we do not know of any machine that has such
32930 an instruction. If you are trying to port GCC to such a machine,
32931 include an instruction to perform a logical-and of the result with
32932 1 in the pattern for the comparison operators and let us know at
32935 Often, a machine will have multiple instructions that obtain a
32936 value from a comparison (or the condition codes). Here are rules
32937 to guide the choice of value for `STORE_FLAG_VALUE', and hence the
32938 instructions to be used:
32940 * Use the shortest sequence that yields a valid definition for
32941 `STORE_FLAG_VALUE'. It is more efficient for the compiler to
32942 "normalize" the value (convert it to, e.g., 1 or 0) than for
32943 the comparison operators to do so because there may be
32944 opportunities to combine the normalization with other
32947 * For equal-length sequences, use a value of 1 or -1, with -1
32948 being slightly preferred on machines with expensive jumps and
32949 1 preferred on other machines.
32951 * As a second choice, choose a value of `0x80000001' if
32952 instructions exist that set both the sign and low-order bits
32953 but do not define the others.
32955 * Otherwise, use a value of `0x80000000'.
32957 Many machines can produce both the value chosen for
32958 `STORE_FLAG_VALUE' and its negation in the same number of
32959 instructions. On those machines, you should also define a pattern
32960 for those cases, e.g., one matching
32962 (set A (neg:M (ne:M B C)))
32964 Some machines can also perform `and' or `plus' operations on
32965 condition code values with less instructions than the corresponding
32966 `sCOND' insn followed by `and' or `plus'. On those machines,
32967 define the appropriate patterns. Use the names `incscc' and
32968 `decscc', respectively, for the patterns which perform `plus' or
32969 `minus' operations on condition code values. See `rs6000.md' for
32970 some examples. The GNU Superoptizer can be used to find such
32971 instruction sequences on other machines.
32973 If this macro is not defined, the default value, 1, is used. You
32974 need not define `STORE_FLAG_VALUE' if the machine has no store-flag
32975 instructions, or if the value generated by these instructions is 1.
32977 -- Macro: FLOAT_STORE_FLAG_VALUE (MODE)
32978 A C expression that gives a nonzero `REAL_VALUE_TYPE' value that is
32979 returned when comparison operators with floating-point results are
32980 true. Define this macro on machines that have comparison
32981 operations that return floating-point values. If there are no
32982 such operations, do not define this macro.
32984 -- Macro: VECTOR_STORE_FLAG_VALUE (MODE)
32985 A C expression that gives a rtx representing the nonzero true
32986 element for vector comparisons. The returned rtx should be valid
32987 for the inner mode of MODE which is guaranteed to be a vector
32988 mode. Define this macro on machines that have vector comparison
32989 operations that return a vector result. If there are no such
32990 operations, do not define this macro. Typically, this macro is
32991 defined as `const1_rtx' or `constm1_rtx'. This macro may return
32992 `NULL_RTX' to prevent the compiler optimizing such vector
32993 comparison operations for the given mode.
32995 -- Macro: CLZ_DEFINED_VALUE_AT_ZERO (MODE, VALUE)
32996 -- Macro: CTZ_DEFINED_VALUE_AT_ZERO (MODE, VALUE)
32997 A C expression that indicates whether the architecture defines a
32998 value for `clz' or `ctz' with a zero operand. A result of `0'
32999 indicates the value is undefined. If the value is defined for
33000 only the RTL expression, the macro should evaluate to `1'; if the
33001 value applies also to the corresponding optab entry (which is
33002 normally the case if it expands directly into the corresponding
33003 RTL), then the macro should evaluate to `2'. In the cases where
33004 the value is defined, VALUE should be set to this value.
33006 If this macro is not defined, the value of `clz' or `ctz' at zero
33007 is assumed to be undefined.
33009 This macro must be defined if the target's expansion for `ffs'
33010 relies on a particular value to get correct results. Otherwise it
33011 is not necessary, though it may be used to optimize some corner
33012 cases, and to provide a default expansion for the `ffs' optab.
33014 Note that regardless of this macro the "definedness" of `clz' and
33015 `ctz' at zero do _not_ extend to the builtin functions visible to
33016 the user. Thus one may be free to adjust the value at will to
33017 match the target expansion of these operations without fear of
33021 An alias for the machine mode for pointers. On most machines,
33022 define this to be the integer mode corresponding to the width of a
33023 hardware pointer; `SImode' on 32-bit machine or `DImode' on 64-bit
33024 machines. On some machines you must define this to be one of the
33025 partial integer modes, such as `PSImode'.
33027 The width of `Pmode' must be at least as large as the value of
33028 `POINTER_SIZE'. If it is not equal, you must define the macro
33029 `POINTERS_EXTEND_UNSIGNED' to specify how pointers are extended to
33032 -- Macro: FUNCTION_MODE
33033 An alias for the machine mode used for memory references to
33034 functions being called, in `call' RTL expressions. On most CISC
33035 machines, where an instruction can begin at any byte address, this
33036 should be `QImode'. On most RISC machines, where all instructions
33037 have fixed size and alignment, this should be a mode with the same
33038 size and alignment as the machine instruction words - typically
33039 `SImode' or `HImode'.
33041 -- Macro: STDC_0_IN_SYSTEM_HEADERS
33042 In normal operation, the preprocessor expands `__STDC__' to the
33043 constant 1, to signify that GCC conforms to ISO Standard C. On
33044 some hosts, like Solaris, the system compiler uses a different
33045 convention, where `__STDC__' is normally 0, but is 1 if the user
33046 specifies strict conformance to the C Standard.
33048 Defining `STDC_0_IN_SYSTEM_HEADERS' makes GNU CPP follows the host
33049 convention when processing system header files, but when
33050 processing user files `__STDC__' will always expand to 1.
33052 -- Macro: NO_IMPLICIT_EXTERN_C
33053 Define this macro if the system header files support C++ as well
33054 as C. This macro inhibits the usual method of using system header
33055 files in C++, which is to pretend that the file's contents are
33056 enclosed in `extern "C" {...}'.
33058 -- Macro: REGISTER_TARGET_PRAGMAS ()
33059 Define this macro if you want to implement any target-specific
33060 pragmas. If defined, it is a C expression which makes a series of
33061 calls to `c_register_pragma' or `c_register_pragma_with_expansion'
33062 for each pragma. The macro may also do any setup required for the
33065 The primary reason to define this macro is to provide
33066 compatibility with other compilers for the same target. In
33067 general, we discourage definition of target-specific pragmas for
33070 If the pragma can be implemented by attributes then you should
33071 consider defining the target hook `TARGET_INSERT_ATTRIBUTES' as
33074 Preprocessor macros that appear on pragma lines are not expanded.
33075 All `#pragma' directives that do not match any registered pragma
33076 are silently ignored, unless the user specifies
33077 `-Wunknown-pragmas'.
33079 -- Function: void c_register_pragma (const char *SPACE, const char
33080 *NAME, void (*CALLBACK) (struct cpp_reader *))
33081 -- Function: void c_register_pragma_with_expansion (const char *SPACE,
33082 const char *NAME, void (*CALLBACK) (struct cpp_reader *))
33083 Each call to `c_register_pragma' or
33084 `c_register_pragma_with_expansion' establishes one pragma. The
33085 CALLBACK routine will be called when the preprocessor encounters a
33088 #pragma [SPACE] NAME ...
33090 SPACE is the case-sensitive namespace of the pragma, or `NULL' to
33091 put the pragma in the global namespace. The callback routine
33092 receives PFILE as its first argument, which can be passed on to
33093 cpplib's functions if necessary. You can lex tokens after the
33094 NAME by calling `pragma_lex'. Tokens that are not read by the
33095 callback will be silently ignored. The end of the line is
33096 indicated by a token of type `CPP_EOF'. Macro expansion occurs on
33097 the arguments of pragmas registered with
33098 `c_register_pragma_with_expansion' but not on the arguments of
33099 pragmas registered with `c_register_pragma'.
33101 Note that the use of `pragma_lex' is specific to the C and C++
33102 compilers. It will not work in the Java or Fortran compilers, or
33103 any other language compilers for that matter. Thus if
33104 `pragma_lex' is going to be called from target-specific code, it
33105 must only be done so when building the C and C++ compilers. This
33106 can be done by defining the variables `c_target_objs' and
33107 `cxx_target_objs' in the target entry in the `config.gcc' file.
33108 These variables should name the target-specific, language-specific
33109 object file which contains the code that uses `pragma_lex'. Note
33110 it will also be necessary to add a rule to the makefile fragment
33111 pointed to by `tmake_file' that shows how to build this object
33114 -- Macro: HANDLE_SYSV_PRAGMA
33115 Define this macro (to a value of 1) if you want the System V style
33116 pragmas `#pragma pack(<n>)' and `#pragma weak <name> [=<value>]'
33117 to be supported by gcc.
33119 The pack pragma specifies the maximum alignment (in bytes) of
33120 fields within a structure, in much the same way as the
33121 `__aligned__' and `__packed__' `__attribute__'s do. A pack value
33122 of zero resets the behavior to the default.
33124 A subtlety for Microsoft Visual C/C++ style bit-field packing
33125 (e.g. -mms-bitfields) for targets that support it: When a
33126 bit-field is inserted into a packed record, the whole size of the
33127 underlying type is used by one or more same-size adjacent
33128 bit-fields (that is, if its long:3, 32 bits is used in the record,
33129 and any additional adjacent long bit-fields are packed into the
33130 same chunk of 32 bits. However, if the size changes, a new field
33131 of that size is allocated).
33133 If both MS bit-fields and `__attribute__((packed))' are used, the
33134 latter will take precedence. If `__attribute__((packed))' is used
33135 on a single field when MS bit-fields are in use, it will take
33136 precedence for that field, but the alignment of the rest of the
33137 structure may affect its placement.
33139 The weak pragma only works if `SUPPORTS_WEAK' and
33140 `ASM_WEAKEN_LABEL' are defined. If enabled it allows the creation
33141 of specifically named weak labels, optionally with a value.
33143 -- Macro: HANDLE_PRAGMA_PACK_PUSH_POP
33144 Define this macro (to a value of 1) if you want to support the
33145 Win32 style pragmas `#pragma pack(push[,N])' and `#pragma
33146 pack(pop)'. The `pack(push,[N])' pragma specifies the maximum
33147 alignment (in bytes) of fields within a structure, in much the
33148 same way as the `__aligned__' and `__packed__' `__attribute__'s
33149 do. A pack value of zero resets the behavior to the default.
33150 Successive invocations of this pragma cause the previous values to
33151 be stacked, so that invocations of `#pragma pack(pop)' will return
33152 to the previous value.
33154 -- Macro: HANDLE_PRAGMA_PACK_WITH_EXPANSION
33155 Define this macro, as well as `HANDLE_SYSV_PRAGMA', if macros
33156 should be expanded in the arguments of `#pragma pack'.
33158 -- Macro: TARGET_DEFAULT_PACK_STRUCT
33159 If your target requires a structure packing default other than 0
33160 (meaning the machine default), define this macro to the necessary
33161 value (in bytes). This must be a value that would also be valid
33162 to use with `#pragma pack()' (that is, a small power of two).
33164 -- Macro: HANDLE_PRAGMA_PUSH_POP_MACRO
33165 Define this macro if you want to support the Win32 style pragmas
33166 `#pragma push_macro(macro-name-as-string)' and `#pragma
33167 pop_macro(macro-name-as-string)'. The `#pragma push_macro(
33168 macro-name-as-string)' pragma saves the named macro and via
33169 `#pragma pop_macro(macro-name-as-string)' it will return to the
33172 -- Macro: DOLLARS_IN_IDENTIFIERS
33173 Define this macro to control use of the character `$' in
33174 identifier names for the C family of languages. 0 means `$' is
33175 not allowed by default; 1 means it is allowed. 1 is the default;
33176 there is no need to define this macro in that case.
33178 -- Macro: NO_DOLLAR_IN_LABEL
33179 Define this macro if the assembler does not accept the character
33180 `$' in label names. By default constructors and destructors in
33181 G++ have `$' in the identifiers. If this macro is defined, `.' is
33184 -- Macro: NO_DOT_IN_LABEL
33185 Define this macro if the assembler does not accept the character
33186 `.' in label names. By default constructors and destructors in G++
33187 have names that use `.'. If this macro is defined, these names
33188 are rewritten to avoid `.'.
33190 -- Macro: INSN_SETS_ARE_DELAYED (INSN)
33191 Define this macro as a C expression that is nonzero if it is safe
33192 for the delay slot scheduler to place instructions in the delay
33193 slot of INSN, even if they appear to use a resource set or
33194 clobbered in INSN. INSN is always a `jump_insn' or an `insn'; GCC
33195 knows that every `call_insn' has this behavior. On machines where
33196 some `insn' or `jump_insn' is really a function call and hence has
33197 this behavior, you should define this macro.
33199 You need not define this macro if it would always return zero.
33201 -- Macro: INSN_REFERENCES_ARE_DELAYED (INSN)
33202 Define this macro as a C expression that is nonzero if it is safe
33203 for the delay slot scheduler to place instructions in the delay
33204 slot of INSN, even if they appear to set or clobber a resource
33205 referenced in INSN. INSN is always a `jump_insn' or an `insn'.
33206 On machines where some `insn' or `jump_insn' is really a function
33207 call and its operands are registers whose use is actually in the
33208 subroutine it calls, you should define this macro. Doing so
33209 allows the delay slot scheduler to move instructions which copy
33210 arguments into the argument registers into the delay slot of INSN.
33212 You need not define this macro if it would always return zero.
33214 -- Macro: MULTIPLE_SYMBOL_SPACES
33215 Define this macro as a C expression that is nonzero if, in some
33216 cases, global symbols from one translation unit may not be bound
33217 to undefined symbols in another translation unit without user
33218 intervention. For instance, under Microsoft Windows symbols must
33219 be explicitly imported from shared libraries (DLLs).
33221 You need not define this macro if it would always evaluate to zero.
33223 -- Target Hook: tree TARGET_MD_ASM_CLOBBERS (tree OUTPUTS, tree
33224 INPUTS, tree CLOBBERS)
33225 This target hook should add to CLOBBERS `STRING_CST' trees for any
33226 hard regs the port wishes to automatically clobber for an asm. It
33227 should return the result of the last `tree_cons' used to add a
33228 clobber. The OUTPUTS, INPUTS and CLOBBER lists are the
33229 corresponding parameters to the asm and may be inspected to avoid
33230 clobbering a register that is an input or output of the asm. You
33231 can use `tree_overlaps_hard_reg_set', declared in `tree.h', to test
33232 for overlap with regards to asm-declared registers.
33234 -- Macro: MATH_LIBRARY
33235 Define this macro as a C string constant for the linker argument
33236 to link in the system math library, or `""' if the target does not
33237 have a separate math library.
33239 You need only define this macro if the default of `"-lm"' is wrong.
33241 -- Macro: LIBRARY_PATH_ENV
33242 Define this macro as a C string constant for the environment
33243 variable that specifies where the linker should look for libraries.
33245 You need only define this macro if the default of `"LIBRARY_PATH"'
33248 -- Macro: TARGET_POSIX_IO
33249 Define this macro if the target supports the following POSIX file
33250 functions, access, mkdir and file locking with fcntl / F_SETLKW.
33251 Defining `TARGET_POSIX_IO' will enable the test coverage code to
33252 use file locking when exiting a program, which avoids race
33253 conditions if the program has forked. It will also create
33254 directories at run-time for cross-profiling.
33256 -- Macro: MAX_CONDITIONAL_EXECUTE
33257 A C expression for the maximum number of instructions to execute
33258 via conditional execution instructions instead of a branch. A
33259 value of `BRANCH_COST'+1 is the default if the machine does not
33260 use cc0, and 1 if it does use cc0.
33262 -- Macro: IFCVT_MODIFY_TESTS (CE_INFO, TRUE_EXPR, FALSE_EXPR)
33263 Used if the target needs to perform machine-dependent
33264 modifications on the conditionals used for turning basic blocks
33265 into conditionally executed code. CE_INFO points to a data
33266 structure, `struct ce_if_block', which contains information about
33267 the currently processed blocks. TRUE_EXPR and FALSE_EXPR are the
33268 tests that are used for converting the then-block and the
33269 else-block, respectively. Set either TRUE_EXPR or FALSE_EXPR to a
33270 null pointer if the tests cannot be converted.
33272 -- Macro: IFCVT_MODIFY_MULTIPLE_TESTS (CE_INFO, BB, TRUE_EXPR,
33274 Like `IFCVT_MODIFY_TESTS', but used when converting more
33275 complicated if-statements into conditions combined by `and' and
33276 `or' operations. BB contains the basic block that contains the
33277 test that is currently being processed and about to be turned into
33280 -- Macro: IFCVT_MODIFY_INSN (CE_INFO, PATTERN, INSN)
33281 A C expression to modify the PATTERN of an INSN that is to be
33282 converted to conditional execution format. CE_INFO points to a
33283 data structure, `struct ce_if_block', which contains information
33284 about the currently processed blocks.
33286 -- Macro: IFCVT_MODIFY_FINAL (CE_INFO)
33287 A C expression to perform any final machine dependent
33288 modifications in converting code to conditional execution. The
33289 involved basic blocks can be found in the `struct ce_if_block'
33290 structure that is pointed to by CE_INFO.
33292 -- Macro: IFCVT_MODIFY_CANCEL (CE_INFO)
33293 A C expression to cancel any machine dependent modifications in
33294 converting code to conditional execution. The involved basic
33295 blocks can be found in the `struct ce_if_block' structure that is
33296 pointed to by CE_INFO.
33298 -- Macro: IFCVT_INIT_EXTRA_FIELDS (CE_INFO)
33299 A C expression to initialize any extra fields in a `struct
33300 ce_if_block' structure, which are defined by the
33301 `IFCVT_EXTRA_FIELDS' macro.
33303 -- Macro: IFCVT_EXTRA_FIELDS
33304 If defined, it should expand to a set of field declarations that
33305 will be added to the `struct ce_if_block' structure. These should
33306 be initialized by the `IFCVT_INIT_EXTRA_FIELDS' macro.
33308 -- Target Hook: void TARGET_MACHINE_DEPENDENT_REORG ()
33309 If non-null, this hook performs a target-specific pass over the
33310 instruction stream. The compiler will run it at all optimization
33311 levels, just before the point at which it normally does
33312 delayed-branch scheduling.
33314 The exact purpose of the hook varies from target to target. Some
33315 use it to do transformations that are necessary for correctness,
33316 such as laying out in-function constant pools or avoiding hardware
33317 hazards. Others use it as an opportunity to do some
33318 machine-dependent optimizations.
33320 You need not implement the hook if it has nothing to do. The
33321 default definition is null.
33323 -- Target Hook: void TARGET_INIT_BUILTINS ()
33324 Define this hook if you have any machine-specific built-in
33325 functions that need to be defined. It should be a function that
33326 performs the necessary setup.
33328 Machine specific built-in functions can be useful to expand
33329 special machine instructions that would otherwise not normally be
33330 generated because they have no equivalent in the source language
33331 (for example, SIMD vector instructions or prefetch instructions).
33333 To create a built-in function, call the function
33334 `lang_hooks.builtin_function' which is defined by the language
33335 front end. You can use any type nodes set up by
33336 `build_common_tree_nodes' and `build_common_tree_nodes_2'; only
33337 language front ends that use those two functions will call
33338 `TARGET_INIT_BUILTINS'.
33340 -- Target Hook: rtx TARGET_EXPAND_BUILTIN (tree EXP, rtx TARGET, rtx
33341 SUBTARGET, enum machine_mode MODE, int IGNORE)
33342 Expand a call to a machine specific built-in function that was set
33343 up by `TARGET_INIT_BUILTINS'. EXP is the expression for the
33344 function call; the result should go to TARGET if that is
33345 convenient, and have mode MODE if that is convenient. SUBTARGET
33346 may be used as the target for computing one of EXP's operands.
33347 IGNORE is nonzero if the value is to be ignored. This function
33348 should return the result of the call to the built-in function.
33350 -- Target Hook: tree TARGET_RESOLVE_OVERLOADED_BUILTIN (tree FNDECL,
33352 Select a replacement for a machine specific built-in function that
33353 was set up by `TARGET_INIT_BUILTINS'. This is done _before_
33354 regular type checking, and so allows the target to implement a
33355 crude form of function overloading. FNDECL is the declaration of
33356 the built-in function. ARGLIST is the list of arguments passed to
33357 the built-in function. The result is a complete expression that
33358 implements the operation, usually another `CALL_EXPR'.
33360 -- Target Hook: tree TARGET_FOLD_BUILTIN (tree FNDECL, tree ARGLIST,
33362 Fold a call to a machine specific built-in function that was set
33363 up by `TARGET_INIT_BUILTINS'. FNDECL is the declaration of the
33364 built-in function. ARGLIST is the list of arguments passed to the
33365 built-in function. The result is another tree containing a
33366 simplified expression for the call's result. If IGNORE is true
33367 the value will be ignored.
33369 -- Target Hook: const char * TARGET_INVALID_WITHIN_DOLOOP (rtx INSN)
33370 Take an instruction in INSN and return NULL if it is valid within a
33371 low-overhead loop, otherwise return a string why doloop could not
33374 Many targets use special registers for low-overhead looping. For
33375 any instruction that clobbers these this function should return a
33376 string indicating the reason why the doloop could not be applied.
33377 By default, the RTL loop optimizer does not use a present doloop
33378 pattern for loops containing function calls or branch on table
33381 -- Macro: MD_CAN_REDIRECT_BRANCH (BRANCH1, BRANCH2)
33382 Take a branch insn in BRANCH1 and another in BRANCH2. Return true
33383 if redirecting BRANCH1 to the destination of BRANCH2 is possible.
33385 On some targets, branches may have a limited range. Optimizing the
33386 filling of delay slots can result in branches being redirected,
33387 and this may in turn cause a branch offset to overflow.
33389 -- Target Hook: bool TARGET_COMMUTATIVE_P (rtx X, OUTER_CODE)
33390 This target hook returns `true' if X is considered to be
33391 commutative. Usually, this is just COMMUTATIVE_P (X), but the HP
33392 PA doesn't consider PLUS to be commutative inside a MEM.
33393 OUTER_CODE is the rtx code of the enclosing rtl, if known,
33394 otherwise it is UNKNOWN.
33396 -- Target Hook: rtx TARGET_ALLOCATE_INITIAL_VALUE (rtx HARD_REG)
33397 When the initial value of a hard register has been copied in a
33398 pseudo register, it is often not necessary to actually allocate
33399 another register to this pseudo register, because the original
33400 hard register or a stack slot it has been saved into can be used.
33401 `TARGET_ALLOCATE_INITIAL_VALUE' is called at the start of register
33402 allocation once for each hard register that had its initial value
33403 copied by using `get_func_hard_reg_initial_val' or
33404 `get_hard_reg_initial_val'. Possible values are `NULL_RTX', if
33405 you don't want to do any special allocation, a `REG' rtx--that
33406 would typically be the hard register itself, if it is known not to
33407 be clobbered--or a `MEM'. If you are returning a `MEM', this is
33408 only a hint for the allocator; it might decide to use another
33409 register anyways. You may use `current_function_leaf_function' in
33410 the hook, functions that use `REG_N_SETS', to determine if the hard
33411 register in question will not be clobbered. The default value of
33412 this hook is `NULL', which disables any special allocation.
33414 -- Target Hook: int TARGET_UNSPEC_MAY_TRAP_P (const_rtx X, unsigned
33416 This target hook returns nonzero if X, an `unspec' or
33417 `unspec_volatile' operation, might cause a trap. Targets can use
33418 this hook to enhance precision of analysis for `unspec' and
33419 `unspec_volatile' operations. You may call `may_trap_p_1' to
33420 analyze inner elements of X in which case FLAGS should be passed
33423 -- Target Hook: void TARGET_SET_CURRENT_FUNCTION (tree DECL)
33424 The compiler invokes this hook whenever it changes its current
33425 function context (`cfun'). You can define this function if the
33426 back end needs to perform any initialization or reset actions on a
33427 per-function basis. For example, it may be used to implement
33428 function attributes that affect register usage or code generation
33429 patterns. The argument DECL is the declaration for the new
33430 function context, and may be null to indicate that the compiler
33431 has left a function context and is returning to processing at the
33432 top level. The default hook function does nothing.
33434 GCC sets `cfun' to a dummy function context during initialization
33435 of some parts of the back end. The hook function is not invoked
33436 in this situation; you need not worry about the hook being invoked
33437 recursively, or when the back end is in a partially-initialized
33440 -- Macro: TARGET_OBJECT_SUFFIX
33441 Define this macro to be a C string representing the suffix for
33442 object files on your target machine. If you do not define this
33443 macro, GCC will use `.o' as the suffix for object files.
33445 -- Macro: TARGET_EXECUTABLE_SUFFIX
33446 Define this macro to be a C string representing the suffix to be
33447 automatically added to executable files on your target machine.
33448 If you do not define this macro, GCC will use the null string as
33449 the suffix for executable files.
33451 -- Macro: COLLECT_EXPORT_LIST
33452 If defined, `collect2' will scan the individual object files
33453 specified on its command line and create an export list for the
33454 linker. Define this macro for systems like AIX, where the linker
33455 discards object files that are not referenced from `main' and uses
33458 -- Macro: MODIFY_JNI_METHOD_CALL (MDECL)
33459 Define this macro to a C expression representing a variant of the
33460 method call MDECL, if Java Native Interface (JNI) methods must be
33461 invoked differently from other methods on your target. For
33462 example, on 32-bit Microsoft Windows, JNI methods must be invoked
33463 using the `stdcall' calling convention and this macro is then
33464 defined as this expression:
33466 build_type_attribute_variant (MDECL,
33468 (get_identifier ("stdcall"),
33471 -- Target Hook: bool TARGET_CANNOT_MODIFY_JUMPS_P (void)
33472 This target hook returns `true' past the point in which new jump
33473 instructions could be created. On machines that require a
33474 register for every jump such as the SHmedia ISA of SH5, this point
33475 would typically be reload, so this target hook should be defined
33476 to a function such as:
33479 cannot_modify_jumps_past_reload_p ()
33481 return (reload_completed || reload_in_progress);
33484 -- Target Hook: int TARGET_BRANCH_TARGET_REGISTER_CLASS (void)
33485 This target hook returns a register class for which branch target
33486 register optimizations should be applied. All registers in this
33487 class should be usable interchangeably. After reload, registers
33488 in this class will be re-allocated and loads will be hoisted out
33489 of loops and be subjected to inter-block scheduling.
33491 -- Target Hook: bool TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED (bool
33492 AFTER_PROLOGUE_EPILOGUE_GEN)
33493 Branch target register optimization will by default exclude
33494 callee-saved registers that are not already live during the
33495 current function; if this target hook returns true, they will be
33496 included. The target code must than make sure that all target
33497 registers in the class returned by
33498 `TARGET_BRANCH_TARGET_REGISTER_CLASS' that might need saving are
33499 saved. AFTER_PROLOGUE_EPILOGUE_GEN indicates if prologues and
33500 epilogues have already been generated. Note, even if you only
33501 return true when AFTER_PROLOGUE_EPILOGUE_GEN is false, you still
33502 are likely to have to make special provisions in
33503 `INITIAL_ELIMINATION_OFFSET' to reserve space for caller-saved
33506 -- Macro: POWI_MAX_MULTS
33507 If defined, this macro is interpreted as a signed integer C
33508 expression that specifies the maximum number of floating point
33509 multiplications that should be emitted when expanding
33510 exponentiation by an integer constant inline. When this value is
33511 defined, exponentiation requiring more than this number of
33512 multiplications is implemented by calling the system library's
33513 `pow', `powf' or `powl' routines. The default value places no
33514 upper bound on the multiplication count.
33516 -- Macro: void TARGET_EXTRA_INCLUDES (const char *SYSROOT, const char
33517 *IPREFIX, int STDINC)
33518 This target hook should register any extra include files for the
33519 target. The parameter STDINC indicates if normal include files
33520 are present. The parameter SYSROOT is the system root directory.
33521 The parameter IPREFIX is the prefix for the gcc directory.
33523 -- Macro: void TARGET_EXTRA_PRE_INCLUDES (const char *SYSROOT, const
33524 char *IPREFIX, int STDINC)
33525 This target hook should register any extra include files for the
33526 target before any standard headers. The parameter STDINC
33527 indicates if normal include files are present. The parameter
33528 SYSROOT is the system root directory. The parameter IPREFIX is
33529 the prefix for the gcc directory.
33531 -- Macro: void TARGET_OPTF (char *PATH)
33532 This target hook should register special include paths for the
33533 target. The parameter PATH is the include to register. On Darwin
33534 systems, this is used for Framework includes, which have semantics
33535 that are different from `-I'.
33537 -- Target Hook: bool TARGET_USE_LOCAL_THUNK_ALIAS_P (tree FNDECL)
33538 This target hook returns `true' if it is safe to use a local alias
33539 for a virtual function FNDECL when constructing thunks, `false'
33540 otherwise. By default, the hook returns `true' for all functions,
33541 if a target supports aliases (i.e. defines `ASM_OUTPUT_DEF'),
33544 -- Macro: TARGET_FORMAT_TYPES
33545 If defined, this macro is the name of a global variable containing
33546 target-specific format checking information for the `-Wformat'
33547 option. The default is to have no target-specific format checks.
33549 -- Macro: TARGET_N_FORMAT_TYPES
33550 If defined, this macro is the number of entries in
33551 `TARGET_FORMAT_TYPES'.
33553 -- Macro: TARGET_OVERRIDES_FORMAT_ATTRIBUTES
33554 If defined, this macro is the name of a global variable containing
33555 target-specific format overrides for the `-Wformat' option. The
33556 default is to have no target-specific format overrides. If defined,
33557 `TARGET_FORMAT_TYPES' must be defined, too.
33559 -- Macro: TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT
33560 If defined, this macro specifies the number of entries in
33561 `TARGET_OVERRIDES_FORMAT_ATTRIBUTES'.
33563 -- Macro: TARGET_OVERRIDES_FORMAT_INIT
33564 If defined, this macro specifies the optional initialization
33565 routine for target specific customizations of the system printf
33566 and scanf formatter settings.
33568 -- Target Hook: bool TARGET_RELAXED_ORDERING
33569 If set to `true', means that the target's memory model does not
33570 guarantee that loads which do not depend on one another will access
33571 main memory in the order of the instruction stream; if ordering is
33572 important, an explicit memory barrier must be used. This is true
33573 of many recent processors which implement a policy of "relaxed,"
33574 "weak," or "release" memory consistency, such as Alpha, PowerPC,
33575 and ia64. The default is `false'.
33577 -- Target Hook: const char *TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN
33578 (tree TYPELIST, tree FUNCDECL, tree VAL)
33579 If defined, this macro returns the diagnostic message when it is
33580 illegal to pass argument VAL to function FUNCDECL with prototype
33583 -- Target Hook: const char * TARGET_INVALID_CONVERSION (tree FROMTYPE,
33585 If defined, this macro returns the diagnostic message when it is
33586 invalid to convert from FROMTYPE to TOTYPE, or `NULL' if validity
33587 should be determined by the front end.
33589 -- Target Hook: const char * TARGET_INVALID_UNARY_OP (int OP, tree
33591 If defined, this macro returns the diagnostic message when it is
33592 invalid to apply operation OP (where unary plus is denoted by
33593 `CONVERT_EXPR') to an operand of type TYPE, or `NULL' if validity
33594 should be determined by the front end.
33596 -- Target Hook: const char * TARGET_INVALID_BINARY_OP (int OP, tree
33598 If defined, this macro returns the diagnostic message when it is
33599 invalid to apply operation OP to operands of types TYPE1 and
33600 TYPE2, or `NULL' if validity should be determined by the front end.
33602 -- Macro: TARGET_USE_JCR_SECTION
33603 This macro determines whether to use the JCR section to register
33604 Java classes. By default, TARGET_USE_JCR_SECTION is defined to 1
33605 if both SUPPORTS_WEAK and TARGET_HAVE_NAMED_SECTIONS are true,
33608 -- Macro: OBJC_JBLEN
33609 This macro determines the size of the objective C jump buffer for
33610 the NeXT runtime. By default, OBJC_JBLEN is defined to an
33613 -- Macro: LIBGCC2_UNWIND_ATTRIBUTE
33614 Define this macro if any target-specific attributes need to be
33615 attached to the functions in `libgcc' that provide low-level
33616 support for call stack unwinding. It is used in declarations in
33617 `unwind-generic.h' and the associated definitions of those
33620 -- Target Hook: void TARGET_UPDATE_STACK_BOUNDARY (void)
33621 Define this macro to update the current function stack boundary if
33624 -- Target Hook: rtx TARGET_GET_DRAP_RTX (void)
33625 Define this macro to an rtx for Dynamic Realign Argument Pointer
33626 if a different argument pointer register is needed to access the
33627 function's argument list when stack is aligned.
33629 -- Target Hook: bool TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS (void)
33630 When optimization is disabled, this hook indicates whether or not
33631 arguments should be allocated to stack slots. Normally, GCC
33632 allocates stacks slots for arguments when not optimizing in order
33633 to make debugging easier. However, when a function is declared
33634 with `__attribute__((naked))', there is no stack frame, and the
33635 compiler cannot safely move arguments from the registers in which
33636 they are passed to the stack. Therefore, this hook should return
33637 true in general, but false for naked functions. The default
33638 implementation always returns true.
33641 File: gccint.info, Node: Host Config, Next: Fragments, Prev: Target Macros, Up: Top
33643 18 Host Configuration
33644 *********************
33646 Most details about the machine and system on which the compiler is
33647 actually running are detected by the `configure' script. Some things
33648 are impossible for `configure' to detect; these are described in two
33649 ways, either by macros defined in a file named `xm-MACHINE.h' or by
33650 hook functions in the file specified by the OUT_HOST_HOOK_OBJ variable
33651 in `config.gcc'. (The intention is that very few hosts will need a
33652 header file but nearly every fully supported host will need to override
33655 If you need to define only a few macros, and they have simple
33656 definitions, consider using the `xm_defines' variable in your
33657 `config.gcc' entry instead of creating a host configuration header.
33658 *Note System Config::.
33662 * Host Common:: Things every host probably needs implemented.
33663 * Filesystem:: Your host can't have the letter `a' in filenames?
33664 * Host Misc:: Rare configuration options for hosts.
33667 File: gccint.info, Node: Host Common, Next: Filesystem, Up: Host Config
33672 Some things are just not portable, even between similar operating
33673 systems, and are too difficult for autoconf to detect. They get
33674 implemented using hook functions in the file specified by the
33675 HOST_HOOK_OBJ variable in `config.gcc'.
33677 -- Host Hook: void HOST_HOOKS_EXTRA_SIGNALS (void)
33678 This host hook is used to set up handling for extra signals. The
33679 most common thing to do in this hook is to detect stack overflow.
33681 -- Host Hook: void * HOST_HOOKS_GT_PCH_GET_ADDRESS (size_t SIZE, int
33683 This host hook returns the address of some space that is likely to
33684 be free in some subsequent invocation of the compiler. We intend
33685 to load the PCH data at this address such that the data need not
33686 be relocated. The area should be able to hold SIZE bytes. If the
33687 host uses `mmap', FD is an open file descriptor that can be used
33690 -- Host Hook: int HOST_HOOKS_GT_PCH_USE_ADDRESS (void * ADDRESS,
33691 size_t SIZE, int FD, size_t OFFSET)
33692 This host hook is called when a PCH file is about to be loaded.
33693 We want to load SIZE bytes from FD at OFFSET into memory at
33694 ADDRESS. The given address will be the result of a previous
33695 invocation of `HOST_HOOKS_GT_PCH_GET_ADDRESS'. Return -1 if we
33696 couldn't allocate SIZE bytes at ADDRESS. Return 0 if the memory
33697 is allocated but the data is not loaded. Return 1 if the hook has
33698 performed everything.
33700 If the implementation uses reserved address space, free any
33701 reserved space beyond SIZE, regardless of the return value. If no
33702 PCH will be loaded, this hook may be called with SIZE zero, in
33703 which case all reserved address space should be freed.
33705 Do not try to handle values of ADDRESS that could not have been
33706 returned by this executable; just return -1. Such values usually
33707 indicate an out-of-date PCH file (built by some other GCC
33708 executable), and such a PCH file won't work.
33710 -- Host Hook: size_t HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY (void);
33711 This host hook returns the alignment required for allocating
33712 virtual memory. Usually this is the same as getpagesize, but on
33713 some hosts the alignment for reserving memory differs from the
33714 pagesize for committing memory.
33717 File: gccint.info, Node: Filesystem, Next: Host Misc, Prev: Host Common, Up: Host Config
33719 18.2 Host Filesystem
33720 ====================
33722 GCC needs to know a number of things about the semantics of the host
33723 machine's filesystem. Filesystems with Unix and MS-DOS semantics are
33724 automatically detected. For other systems, you can define the
33725 following macros in `xm-MACHINE.h'.
33727 `HAVE_DOS_BASED_FILE_SYSTEM'
33728 This macro is automatically defined by `system.h' if the host file
33729 system obeys the semantics defined by MS-DOS instead of Unix. DOS
33730 file systems are case insensitive, file specifications may begin
33731 with a drive letter, and both forward slash and backslash (`/' and
33732 `\') are directory separators.
33736 If defined, these macros expand to character constants specifying
33737 separators for directory names within a file specification.
33738 `system.h' will automatically give them appropriate values on Unix
33739 and MS-DOS file systems. If your file system is neither of these,
33740 define one or both appropriately in `xm-MACHINE.h'.
33742 However, operating systems like VMS, where constructing a pathname
33743 is more complicated than just stringing together directory names
33744 separated by a special character, should not define either of these
33748 If defined, this macro should expand to a character constant
33749 specifying the separator for elements of search paths. The default
33750 value is a colon (`:'). DOS-based systems usually, but not
33751 always, use semicolon (`;').
33754 Define this macro if the host system is VMS.
33756 `HOST_OBJECT_SUFFIX'
33757 Define this macro to be a C string representing the suffix for
33758 object files on your host machine. If you do not define this
33759 macro, GCC will use `.o' as the suffix for object files.
33761 `HOST_EXECUTABLE_SUFFIX'
33762 Define this macro to be a C string representing the suffix for
33763 executable files on your host machine. If you do not define this
33764 macro, GCC will use the null string as the suffix for executable
33768 A pathname defined by the host operating system, which can be
33769 opened as a file and written to, but all the information written
33770 is discarded. This is commonly known as a "bit bucket" or "null
33771 device". If you do not define this macro, GCC will use
33772 `/dev/null' as the bit bucket. If the host does not support a bit
33773 bucket, define this macro to an invalid filename.
33775 `UPDATE_PATH_HOST_CANONICALIZE (PATH)'
33776 If defined, a C statement (sans semicolon) that performs
33777 host-dependent canonicalization when a path used in a compilation
33778 driver or preprocessor is canonicalized. PATH is a malloc-ed path
33779 to be canonicalized. If the C statement does canonicalize PATH
33780 into a different buffer, the old path should be freed and the new
33781 buffer should have been allocated with malloc.
33784 Define this macro to be a C string representing the format to use
33785 for constructing the index part of debugging dump file names. The
33786 resultant string must fit in fifteen bytes. The full filename
33787 will be the concatenation of: the prefix of the assembler file
33788 name, the string resulting from applying this format to an index
33789 number, and a string unique to each dump file kind, e.g. `rtl'.
33791 If you do not define this macro, GCC will use `.%02d.'. You should
33792 define this macro if using the default will create an invalid file
33795 `DELETE_IF_ORDINARY'
33796 Define this macro to be a C statement (sans semicolon) that
33797 performs host-dependent removal of ordinary temp files in the
33798 compilation driver.
33800 If you do not define this macro, GCC will use the default version.
33801 You should define this macro if the default version does not
33802 reliably remove the temp file as, for example, on VMS which allows
33803 multiple versions of a file.
33805 `HOST_LACKS_INODE_NUMBERS'
33806 Define this macro if the host filesystem does not report
33807 meaningful inode numbers in struct stat.
33810 File: gccint.info, Node: Host Misc, Prev: Filesystem, Up: Host Config
33816 A C expression for the status code to be returned when the compiler
33817 exits after serious errors. The default is the system-provided
33818 macro `EXIT_FAILURE', or `1' if the system doesn't define that
33819 macro. Define this macro only if these defaults are incorrect.
33821 `SUCCESS_EXIT_CODE'
33822 A C expression for the status code to be returned when the compiler
33823 exits without serious errors. (Warnings are not serious errors.)
33824 The default is the system-provided macro `EXIT_SUCCESS', or `0' if
33825 the system doesn't define that macro. Define this macro only if
33826 these defaults are incorrect.
33829 Define this macro if GCC should use the C implementation of
33830 `alloca' provided by `libiberty.a'. This only affects how some
33831 parts of the compiler itself allocate memory. It does not change
33834 When GCC is built with a compiler other than itself, the C `alloca'
33835 is always used. This is because most other implementations have
33836 serious bugs. You should define this macro only on a system where
33837 no stack-based `alloca' can possibly work. For instance, if a
33838 system has a small limit on the size of the stack, GCC's builtin
33839 `alloca' will not work reliably.
33841 `COLLECT2_HOST_INITIALIZATION'
33842 If defined, a C statement (sans semicolon) that performs
33843 host-dependent initialization when `collect2' is being initialized.
33845 `GCC_DRIVER_HOST_INITIALIZATION'
33846 If defined, a C statement (sans semicolon) that performs
33847 host-dependent initialization when a compilation driver is being
33850 `HOST_LONG_LONG_FORMAT'
33851 If defined, the string used to indicate an argument of type `long
33852 long' to functions like `printf'. The default value is `"ll"'.
33854 In addition, if `configure' generates an incorrect definition of any
33855 of the macros in `auto-host.h', you can override that definition in a
33856 host configuration header. If you need to do this, first see if it is
33857 possible to fix `configure'.
33860 File: gccint.info, Node: Fragments, Next: Collect2, Prev: Host Config, Up: Top
33862 19 Makefile Fragments
33863 *********************
33865 When you configure GCC using the `configure' script, it will construct
33866 the file `Makefile' from the template file `Makefile.in'. When it does
33867 this, it can incorporate makefile fragments from the `config'
33868 directory. These are used to set Makefile parameters that are not
33869 amenable to being calculated by autoconf. The list of fragments to
33870 incorporate is set by `config.gcc' (and occasionally `config.build' and
33871 `config.host'); *Note System Config::.
33873 Fragments are named either `t-TARGET' or `x-HOST', depending on
33874 whether they are relevant to configuring GCC to produce code for a
33875 particular target, or to configuring GCC to run on a particular host.
33876 Here TARGET and HOST are mnemonics which usually have some relationship
33877 to the canonical system name, but no formal connection.
33879 If these files do not exist, it means nothing needs to be added for a
33880 given target or host. Most targets need a few `t-TARGET' fragments,
33881 but needing `x-HOST' fragments is rare.
33885 * Target Fragment:: Writing `t-TARGET' files.
33886 * Host Fragment:: Writing `x-HOST' files.
33889 File: gccint.info, Node: Target Fragment, Next: Host Fragment, Up: Fragments
33891 19.1 Target Makefile Fragments
33892 ==============================
33894 Target makefile fragments can set these Makefile variables.
33897 Compiler flags to use when compiling `libgcc2.c'.
33900 A list of source file names to be compiled or assembled and
33901 inserted into `libgcc.a'.
33903 `Floating Point Emulation'
33904 To have GCC include software floating point libraries in `libgcc.a'
33905 define `FPBIT' and `DPBIT' along with a few rules as follows:
33906 # We want fine grained libraries, so use the new code
33907 # to build the floating point emulation libraries.
33912 fp-bit.c: $(srcdir)/config/fp-bit.c
33913 echo '#define FLOAT' > fp-bit.c
33914 cat $(srcdir)/config/fp-bit.c >> fp-bit.c
33916 dp-bit.c: $(srcdir)/config/fp-bit.c
33917 cat $(srcdir)/config/fp-bit.c > dp-bit.c
33919 You may need to provide additional #defines at the beginning of
33920 `fp-bit.c' and `dp-bit.c' to control target endianness and other
33923 `CRTSTUFF_T_CFLAGS'
33924 Special flags used when compiling `crtstuff.c'. *Note
33927 `CRTSTUFF_T_CFLAGS_S'
33928 Special flags used when compiling `crtstuff.c' for shared linking.
33929 Used if you use `crtbeginS.o' and `crtendS.o' in `EXTRA-PARTS'.
33930 *Note Initialization::.
33933 For some targets, invoking GCC in different ways produces objects
33934 that can not be linked together. For example, for some targets GCC
33935 produces both big and little endian code. For these targets, you
33936 must arrange for multiple versions of `libgcc.a' to be compiled,
33937 one for each set of incompatible options. When GCC invokes the
33938 linker, it arranges to link in the right version of `libgcc.a',
33939 based on the command line options used.
33941 The `MULTILIB_OPTIONS' macro lists the set of options for which
33942 special versions of `libgcc.a' must be built. Write options that
33943 are mutually incompatible side by side, separated by a slash.
33944 Write options that may be used together separated by a space. The
33945 build procedure will build all combinations of compatible options.
33947 For example, if you set `MULTILIB_OPTIONS' to `m68000/m68020
33948 msoft-float', `Makefile' will build special versions of `libgcc.a'
33949 using the following sets of options: `-m68000', `-m68020',
33950 `-msoft-float', `-m68000 -msoft-float', and `-m68020 -msoft-float'.
33952 `MULTILIB_DIRNAMES'
33953 If `MULTILIB_OPTIONS' is used, this variable specifies the
33954 directory names that should be used to hold the various libraries.
33955 Write one element in `MULTILIB_DIRNAMES' for each element in
33956 `MULTILIB_OPTIONS'. If `MULTILIB_DIRNAMES' is not used, the
33957 default value will be `MULTILIB_OPTIONS', with all slashes treated
33960 For example, if `MULTILIB_OPTIONS' is set to `m68000/m68020
33961 msoft-float', then the default value of `MULTILIB_DIRNAMES' is
33962 `m68000 m68020 msoft-float'. You may specify a different value if
33963 you desire a different set of directory names.
33966 Sometimes the same option may be written in two different ways.
33967 If an option is listed in `MULTILIB_OPTIONS', GCC needs to know
33968 about any synonyms. In that case, set `MULTILIB_MATCHES' to a
33969 list of items of the form `option=option' to describe all relevant
33970 synonyms. For example, `m68000=mc68000 m68020=mc68020'.
33972 `MULTILIB_EXCEPTIONS'
33973 Sometimes when there are multiple sets of `MULTILIB_OPTIONS' being
33974 specified, there are combinations that should not be built. In
33975 that case, set `MULTILIB_EXCEPTIONS' to be all of the switch
33976 exceptions in shell case syntax that should not be built.
33978 For example the ARM processor cannot execute both hardware floating
33979 point instructions and the reduced size THUMB instructions at the
33980 same time, so there is no need to build libraries with both of
33981 these options enabled. Therefore `MULTILIB_EXCEPTIONS' is set to:
33982 *mthumb/*mhard-float*
33984 `MULTILIB_EXTRA_OPTS'
33985 Sometimes it is desirable that when building multiple versions of
33986 `libgcc.a' certain options should always be passed on to the
33987 compiler. In that case, set `MULTILIB_EXTRA_OPTS' to be the list
33988 of options to be used for all builds. If you set this, you should
33989 probably set `CRTSTUFF_T_CFLAGS' to a dash followed by it.
33991 `NATIVE_SYSTEM_HEADER_DIR'
33992 If the default location for system headers is not `/usr/include',
33993 you must set this to the directory containing the headers. This
33994 value should match the value of the `SYSTEM_INCLUDE_DIR' macro.
33997 Unfortunately, setting `MULTILIB_EXTRA_OPTS' is not enough, since
33998 it does not affect the build of target libraries, at least not the
33999 build of the default multilib. One possible work-around is to use
34000 `DRIVER_SELF_SPECS' to bring options from the `specs' file as if
34001 they had been passed in the compiler driver command line.
34002 However, you don't want to be adding these options after the
34003 toolchain is installed, so you can instead tweak the `specs' file
34004 that will be used during the toolchain build, while you still
34005 install the original, built-in `specs'. The trick is to set
34006 `SPECS' to some other filename (say `specs.install'), that will
34007 then be created out of the built-in specs, and introduce a
34008 `Makefile' rule to generate the `specs' file that's going to be
34009 used at build time out of your `specs.install'.
34012 These are extra flags to pass to the C compiler. They are used
34013 both when building GCC, and when compiling things with the
34014 just-built GCC. This variable is deprecated and should not be
34018 File: gccint.info, Node: Host Fragment, Prev: Target Fragment, Up: Fragments
34020 19.2 Host Makefile Fragments
34021 ============================
34023 The use of `x-HOST' fragments is discouraged. You should only use it
34024 for makefile dependencies.
34027 File: gccint.info, Node: Collect2, Next: Header Dirs, Prev: Fragments, Up: Top
34032 GCC uses a utility called `collect2' on nearly all systems to arrange
34033 to call various initialization functions at start time.
34035 The program `collect2' works by linking the program once and looking
34036 through the linker output file for symbols with particular names
34037 indicating they are constructor functions. If it finds any, it creates
34038 a new temporary `.c' file containing a table of them, compiles it, and
34039 links the program a second time including that file.
34041 The actual calls to the constructors are carried out by a subroutine
34042 called `__main', which is called (automatically) at the beginning of
34043 the body of `main' (provided `main' was compiled with GNU CC). Calling
34044 `__main' is necessary, even when compiling C code, to allow linking C
34045 and C++ object code together. (If you use `-nostdlib', you get an
34046 unresolved reference to `__main', since it's defined in the standard
34047 GCC library. Include `-lgcc' at the end of your compiler command line
34048 to resolve this reference.)
34050 The program `collect2' is installed as `ld' in the directory where the
34051 passes of the compiler are installed. When `collect2' needs to find
34052 the _real_ `ld', it tries the following file names:
34054 * `real-ld' in the directories listed in the compiler's search
34057 * `real-ld' in the directories listed in the environment variable
34060 * The file specified in the `REAL_LD_FILE_NAME' configuration macro,
34063 * `ld' in the compiler's search directories, except that `collect2'
34064 will not execute itself recursively.
34068 "The compiler's search directories" means all the directories where
34069 `gcc' searches for passes of the compiler. This includes directories
34070 that you specify with `-B'.
34072 Cross-compilers search a little differently:
34074 * `real-ld' in the compiler's search directories.
34076 * `TARGET-real-ld' in `PATH'.
34078 * The file specified in the `REAL_LD_FILE_NAME' configuration macro,
34081 * `ld' in the compiler's search directories.
34083 * `TARGET-ld' in `PATH'.
34085 `collect2' explicitly avoids running `ld' using the file name under
34086 which `collect2' itself was invoked. In fact, it remembers up a list
34087 of such names--in case one copy of `collect2' finds another copy (or
34088 version) of `collect2' installed as `ld' in a second place in the
34091 `collect2' searches for the utilities `nm' and `strip' using the same
34092 algorithm as above for `ld'.
34095 File: gccint.info, Node: Header Dirs, Next: Type Information, Prev: Collect2, Up: Top
34097 21 Standard Header File Directories
34098 ***********************************
34100 `GCC_INCLUDE_DIR' means the same thing for native and cross. It is
34101 where GCC stores its private include files, and also where GCC stores
34102 the fixed include files. A cross compiled GCC runs `fixincludes' on
34103 the header files in `$(tooldir)/include'. (If the cross compilation
34104 header files need to be fixed, they must be installed before GCC is
34105 built. If the cross compilation header files are already suitable for
34106 GCC, nothing special need be done).
34108 `GPLUSPLUS_INCLUDE_DIR' means the same thing for native and cross. It
34109 is where `g++' looks first for header files. The C++ library installs
34110 only target independent header files in that directory.
34112 `LOCAL_INCLUDE_DIR' is used only by native compilers. GCC doesn't
34113 install anything there. It is normally `/usr/local/include'. This is
34114 where local additions to a packaged system should place header files.
34116 `CROSS_INCLUDE_DIR' is used only by cross compilers. GCC doesn't
34117 install anything there.
34119 `TOOL_INCLUDE_DIR' is used for both native and cross compilers. It is
34120 the place for other packages to install header files that GCC will use.
34121 For a cross-compiler, this is the equivalent of `/usr/include'. When
34122 you build a cross-compiler, `fixincludes' processes any header files in
34126 File: gccint.info, Node: Type Information, Next: Funding, Prev: Header Dirs, Up: Top
34128 22 Memory Management and Type Information
34129 *****************************************
34131 GCC uses some fairly sophisticated memory management techniques, which
34132 involve determining information about GCC's data structures from GCC's
34133 source code and using this information to perform garbage collection and
34134 implement precompiled headers.
34136 A full C parser would be too complicated for this task, so a limited
34137 subset of C is interpreted and special markers are used to determine
34138 what parts of the source to look at. All `struct' and `union'
34139 declarations that define data structures that are allocated under
34140 control of the garbage collector must be marked. All global variables
34141 that hold pointers to garbage-collected memory must also be marked.
34142 Finally, all global variables that need to be saved and restored by a
34143 precompiled header must be marked. (The precompiled header mechanism
34144 can only save static variables if they're scalar. Complex data
34145 structures must be allocated in garbage-collected memory to be saved in
34146 a precompiled header.)
34148 The full format of a marker is
34149 GTY (([OPTION] [(PARAM)], [OPTION] [(PARAM)] ...))
34150 but in most cases no options are needed. The outer double parentheses
34151 are still necessary, though: `GTY(())'. Markers can appear:
34153 * In a structure definition, before the open brace;
34155 * In a global variable declaration, after the keyword `static' or
34158 * In a structure field definition, before the name of the field.
34160 Here are some examples of marking simple data structures and globals.
34167 typedef struct TAG GTY(())
34172 static GTY(()) struct TAG *LIST; /* points to GC memory */
34173 static GTY(()) int COUNTER; /* save counter in a PCH */
34175 The parser understands simple typedefs such as `typedef struct TAG
34176 *NAME;' and `typedef int NAME;'. These don't need to be marked.
34180 * GTY Options:: What goes inside a `GTY(())'.
34181 * GGC Roots:: Making global variables GGC roots.
34182 * Files:: How the generated files work.
34183 * Invoking the garbage collector:: How to invoke the garbage collector.
34186 File: gccint.info, Node: GTY Options, Next: GGC Roots, Up: Type Information
34188 22.1 The Inside of a `GTY(())'
34189 ==============================
34191 Sometimes the C code is not enough to fully describe the type
34192 structure. Extra information can be provided with `GTY' options and
34193 additional markers. Some options take a parameter, which may be either
34194 a string or a type name, depending on the parameter. If an option
34195 takes no parameter, it is acceptable either to omit the parameter
34196 entirely, or to provide an empty string as a parameter. For example,
34197 `GTY ((skip))' and `GTY ((skip ("")))' are equivalent.
34199 When the parameter is a string, often it is a fragment of C code. Four
34200 special escapes may be used in these strings, to refer to pieces of the
34201 data structure being marked:
34204 The current structure.
34207 The structure that immediately contains the current structure.
34210 The outermost structure that contains the current structure.
34213 A partial expression of the form `[i1][i2]...' that indexes the
34214 array item currently being marked.
34216 For instance, suppose that you have a structure of the form
34223 and `b' is a variable of type `struct B'. When marking `b.foo[11]',
34224 `%h' would expand to `b.foo[11]', `%0' and `%1' would both expand to
34225 `b', and `%a' would expand to `[11]'.
34227 As in ordinary C, adjacent strings will be concatenated; this is
34228 helpful when you have a complicated expression.
34229 GTY ((chain_next ("TREE_CODE (&%h.generic) == INTEGER_TYPE"
34230 " ? TYPE_NEXT_VARIANT (&%h.generic)"
34231 " : TREE_CHAIN (&%h.generic)")))
34233 The available options are:
34235 `length ("EXPRESSION")'
34236 There are two places the type machinery will need to be explicitly
34237 told the length of an array. The first case is when a structure
34238 ends in a variable-length array, like this:
34239 struct rtvec_def GTY(()) {
34240 int num_elem; /* number of elements */
34241 rtx GTY ((length ("%h.num_elem"))) elem[1];
34244 In this case, the `length' option is used to override the specified
34245 array length (which should usually be `1'). The parameter of the
34246 option is a fragment of C code that calculates the length.
34248 The second case is when a structure or a global variable contains a
34249 pointer to an array, like this:
34251 GTY ((length ("%h.regno_pointer_align_length"))) regno_decl;
34252 In this case, `regno_decl' has been allocated by writing something
34255 ggc_alloc (x->regno_pointer_align_length * sizeof (tree));
34256 and the `length' provides the length of the field.
34258 This second use of `length' also works on global variables, like:
34259 static GTY((length ("reg_base_value_size")))
34260 rtx *reg_base_value;
34263 If `skip' is applied to a field, the type machinery will ignore it.
34264 This is somewhat dangerous; the only safe use is in a union when
34265 one field really isn't ever used.
34267 `desc ("EXPRESSION")'
34270 The type machinery needs to be told which field of a `union' is
34271 currently active. This is done by giving each field a constant
34272 `tag' value, and then specifying a discriminator using `desc'.
34273 The value of the expression given by `desc' is compared against
34274 each `tag' value, each of which should be different. If no `tag'
34275 is matched, the field marked with `default' is used if there is
34276 one, otherwise no field in the union will be marked.
34278 In the `desc' option, the "current structure" is the union that it
34279 discriminates. Use `%1' to mean the structure containing it.
34280 There are no escapes available to the `tag' option, since it is a
34284 struct tree_binding GTY(())
34286 struct tree_common common;
34287 union tree_binding_u {
34288 tree GTY ((tag ("0"))) scope;
34289 struct cp_binding_level * GTY ((tag ("1"))) level;
34290 } GTY ((desc ("BINDING_HAS_LEVEL_P ((tree)&%0)"))) xscope;
34294 In this example, the value of BINDING_HAS_LEVEL_P when applied to a
34295 `struct tree_binding *' is presumed to be 0 or 1. If 1, the type
34296 mechanism will treat the field `level' as being present and if 0,
34297 will treat the field `scope' as being present.
34301 Sometimes it's convenient to define some data structure to work on
34302 generic pointers (that is, `PTR') and then use it with a specific
34303 type. `param_is' specifies the real type pointed to, and
34304 `use_param' says where in the generic data structure that type
34307 For instance, to have a `htab_t' that points to trees, one would
34308 write the definition of `htab_t' like this:
34309 typedef struct GTY(()) {
34311 void ** GTY ((use_param, ...)) entries;
34314 and then declare variables like this:
34315 static htab_t GTY ((param_is (union tree_node))) ict;
34319 In more complicated cases, the data structure might need to work on
34320 several different types, which might not necessarily all be
34321 pointers. For this, `param1_is' through `param9_is' may be used to
34322 specify the real type of a field identified by `use_param1' through
34326 When a structure contains another structure that is parameterized,
34327 there's no need to do anything special, the inner structure
34328 inherits the parameters of the outer one. When a structure
34329 contains a pointer to a parameterized structure, the type
34330 machinery won't automatically detect this (it could, it just
34331 doesn't yet), so it's necessary to tell it that the pointed-to
34332 structure should use the same parameters as the outer structure.
34333 This is done by marking the pointer with the `use_params' option.
34336 `deletable', when applied to a global variable, indicates that when
34337 garbage collection runs, there's no need to mark anything pointed
34338 to by this variable, it can just be set to `NULL' instead. This
34339 is used to keep a list of free structures around for re-use.
34341 `if_marked ("EXPRESSION")'
34342 Suppose you want some kinds of object to be unique, and so you put
34343 them in a hash table. If garbage collection marks the hash table,
34344 these objects will never be freed, even if the last other
34345 reference to them goes away. GGC has special handling to deal
34346 with this: if you use the `if_marked' option on a global hash
34347 table, GGC will call the routine whose name is the parameter to
34348 the option on each hash table entry. If the routine returns
34349 nonzero, the hash table entry will be marked as usual. If the
34350 routine returns zero, the hash table entry will be deleted.
34352 The routine `ggc_marked_p' can be used to determine if an element
34353 has been marked already; in fact, the usual case is to use
34354 `if_marked ("ggc_marked_p")'.
34356 `mark_hook ("HOOK-ROUTINE-NAME")'
34357 If provided for a structure or union type, the given
34358 HOOK-ROUTINE-NAME (between double-quotes) is the name of a routine
34359 called when the garbage collector has just marked the data as
34360 reachable. This routine should not change the data, or call any ggc
34361 routine. Its only argument is a pointer to the just marked (const)
34362 structure or union.
34365 When applied to a field, `maybe_undef' indicates that it's OK if
34366 the structure that this fields points to is never defined, so long
34367 as this field is always `NULL'. This is used to avoid requiring
34368 backends to define certain optional structures. It doesn't work
34369 with language frontends.
34371 `nested_ptr (TYPE, "TO EXPRESSION", "FROM EXPRESSION")'
34372 The type machinery expects all pointers to point to the start of an
34373 object. Sometimes for abstraction purposes it's convenient to have
34374 a pointer which points inside an object. So long as it's possible
34375 to convert the original object to and from the pointer, such
34376 pointers can still be used. TYPE is the type of the original
34377 object, the TO EXPRESSION returns the pointer given the original
34378 object, and the FROM EXPRESSION returns the original object given
34379 the pointer. The pointer will be available using the `%h' escape.
34381 `chain_next ("EXPRESSION")'
34382 `chain_prev ("EXPRESSION")'
34383 `chain_circular ("EXPRESSION")'
34384 It's helpful for the type machinery to know if objects are often
34385 chained together in long lists; this lets it generate code that
34386 uses less stack space by iterating along the list instead of
34387 recursing down it. `chain_next' is an expression for the next
34388 item in the list, `chain_prev' is an expression for the previous
34389 item. For singly linked lists, use only `chain_next'; for doubly
34390 linked lists, use both. The machinery requires that taking the
34391 next item of the previous item gives the original item.
34392 `chain_circular' is similar to `chain_next', but can be used for
34393 circular single linked lists.
34395 `reorder ("FUNCTION NAME")'
34396 Some data structures depend on the relative ordering of pointers.
34397 If the precompiled header machinery needs to change that ordering,
34398 it will call the function referenced by the `reorder' option,
34399 before changing the pointers in the object that's pointed to by
34400 the field the option applies to. The function must take four
34401 arguments, with the signature
34402 `void *, void *, gt_pointer_operator, void *'. The first
34403 parameter is a pointer to the structure that contains the object
34404 being updated, or the object itself if there is no containing
34405 structure. The second parameter is a cookie that should be
34406 ignored. The third parameter is a routine that, given a pointer,
34407 will update it to its correct new value. The fourth parameter is
34408 a cookie that must be passed to the second parameter.
34410 PCH cannot handle data structures that depend on the absolute
34411 values of pointers. `reorder' functions can be expensive. When
34412 possible, it is better to depend on properties of the data, like
34413 an ID number or the hash of a string instead.
34416 The `special' option is used to mark types that have to be dealt
34417 with by special case machinery. The parameter is the name of the
34418 special case. See `gengtype.c' for further details. Avoid adding
34419 new special cases unless there is no other alternative.
34422 File: gccint.info, Node: GGC Roots, Next: Files, Prev: GTY Options, Up: Type Information
34424 22.2 Marking Roots for the Garbage Collector
34425 ============================================
34427 In addition to keeping track of types, the type machinery also locates
34428 the global variables ("roots") that the garbage collector starts at.
34429 Roots must be declared using one of the following syntaxes:
34431 * `extern GTY(([OPTIONS])) TYPE NAME;'
34433 * `static GTY(([OPTIONS])) TYPE NAME;'
34435 * `GTY(([OPTIONS])) TYPE NAME;'
34436 is _not_ accepted. There should be an `extern' declaration of such a
34437 variable in a header somewhere--mark that, not the definition. Or, if
34438 the variable is only used in one file, make it `static'.
34441 File: gccint.info, Node: Files, Next: Invoking the garbage collector, Prev: GGC Roots, Up: Type Information
34443 22.3 Source Files Containing Type Information
34444 =============================================
34446 Whenever you add `GTY' markers to a source file that previously had
34447 none, or create a new source file containing `GTY' markers, there are
34448 three things you need to do:
34450 1. You need to add the file to the list of source files the type
34451 machinery scans. There are four cases:
34453 a. For a back-end file, this is usually done automatically; if
34454 not, you should add it to `target_gtfiles' in the appropriate
34455 port's entries in `config.gcc'.
34457 b. For files shared by all front ends, add the filename to the
34458 `GTFILES' variable in `Makefile.in'.
34460 c. For files that are part of one front end, add the filename to
34461 the `gtfiles' variable defined in the appropriate
34462 `config-lang.in'. For C, the file is `c-config-lang.in'.
34463 Headers should appear before non-headers in this list.
34465 d. For files that are part of some but not all front ends, add
34466 the filename to the `gtfiles' variable of _all_ the front ends
34469 2. If the file was a header file, you'll need to check that it's
34470 included in the right place to be visible to the generated files.
34471 For a back-end header file, this should be done automatically.
34472 For a front-end header file, it needs to be included by the same
34473 file that includes `gtype-LANG.h'. For other header files, it
34474 needs to be included in `gtype-desc.c', which is a generated file,
34475 so add it to `ifiles' in `open_base_file' in `gengtype.c'.
34477 For source files that aren't header files, the machinery will
34478 generate a header file that should be included in the source file
34479 you just changed. The file will be called `gt-PATH.h' where PATH
34480 is the pathname relative to the `gcc' directory with slashes
34481 replaced by -, so for example the header file to be included in
34482 `cp/parser.c' is called `gt-cp-parser.c'. The generated header
34483 file should be included after everything else in the source file.
34484 Don't forget to mention this file as a dependency in the
34488 For language frontends, there is another file that needs to be included
34489 somewhere. It will be called `gtype-LANG.h', where LANG is the name of
34490 the subdirectory the language is contained in.
34493 File: gccint.info, Node: Invoking the garbage collector, Prev: Files, Up: Type Information
34495 22.4 How to invoke the garbage collector
34496 ========================================
34498 The GCC garbage collector GGC is only invoked explicitly. In contrast
34499 with many other garbage collectors, it is not implicitly invoked by
34500 allocation routines when a lot of memory has been consumed. So the only
34501 way to have GGC reclaim storage it to call the `ggc_collect' function
34502 explicitly. This call is an expensive operation, as it may have to scan
34503 the entire heap. Beware that local variables (on the GCC call stack)
34504 are not followed by such an invocation (as many other garbage
34505 collectors do): you should reference all your data from static or
34506 external `GTY'-ed variables, and it is advised to call `ggc_collect'
34507 with a shallow call stack. The GGC is an exact mark and sweep garbage
34508 collector (so it does not scan the call stack for pointers). In
34509 practice GCC passes don't often call `ggc_collect' themselves, because
34510 it is called by the pass manager between passes.
34513 File: gccint.info, Node: Funding, Next: GNU Project, Prev: Type Information, Up: Top
34515 Funding Free Software
34516 *********************
34518 If you want to have more free software a few years from now, it makes
34519 sense for you to help encourage people to contribute funds for its
34520 development. The most effective approach known is to encourage
34521 commercial redistributors to donate.
34523 Users of free software systems can boost the pace of development by
34524 encouraging for-a-fee distributors to donate part of their selling price
34525 to free software developers--the Free Software Foundation, and others.
34527 The way to convince distributors to do this is to demand it and expect
34528 it from them. So when you compare distributors, judge them partly by
34529 how much they give to free software development. Show distributors
34530 they must compete to be the one who gives the most.
34532 To make this approach work, you must insist on numbers that you can
34533 compare, such as, "We will donate ten dollars to the Frobnitz project
34534 for each disk sold." Don't be satisfied with a vague promise, such as
34535 "A portion of the profits are donated," since it doesn't give a basis
34538 Even a precise fraction "of the profits from this disk" is not very
34539 meaningful, since creative accounting and unrelated business decisions
34540 can greatly alter what fraction of the sales price counts as profit.
34541 If the price you pay is $50, ten percent of the profit is probably less
34542 than a dollar; it might be a few cents, or nothing at all.
34544 Some redistributors do development work themselves. This is useful
34545 too; but to keep everyone honest, you need to inquire how much they do,
34546 and what kind. Some kinds of development make much more long-term
34547 difference than others. For example, maintaining a separate version of
34548 a program contributes very little; maintaining the standard version of a
34549 program for the whole community contributes much. Easy new ports
34550 contribute little, since someone else would surely do them; difficult
34551 ports such as adding a new CPU to the GNU Compiler Collection
34552 contribute more; major new features or packages contribute the most.
34554 By establishing the idea that supporting further development is "the
34555 proper thing to do" when distributing free software for a fee, we can
34556 assure a steady flow of resources into making more free software.
34558 Copyright (C) 1994 Free Software Foundation, Inc.
34559 Verbatim copying and redistribution of this section is permitted
34560 without royalty; alteration is not permitted.
34563 File: gccint.info, Node: GNU Project, Next: Copying, Prev: Funding, Up: Top
34565 The GNU Project and GNU/Linux
34566 *****************************
34568 The GNU Project was launched in 1984 to develop a complete Unix-like
34569 operating system which is free software: the GNU system. (GNU is a
34570 recursive acronym for "GNU's Not Unix"; it is pronounced "guh-NEW".)
34571 Variants of the GNU operating system, which use the kernel Linux, are
34572 now widely used; though these systems are often referred to as "Linux",
34573 they are more accurately called GNU/Linux systems.
34575 For more information, see:
34576 `http://www.gnu.org/'
34577 `http://www.gnu.org/gnu/linux-and-gnu.html'
34580 File: gccint.info, Node: Copying, Next: GNU Free Documentation License, Prev: GNU Project, Up: Top
34582 GNU General Public License
34583 **************************
34585 Version 3, 29 June 2007
34587 Copyright (C) 2007 Free Software Foundation, Inc. `http://fsf.org/'
34589 Everyone is permitted to copy and distribute verbatim copies of this
34590 license document, but changing it is not allowed.
34595 The GNU General Public License is a free, copyleft license for software
34596 and other kinds of works.
34598 The licenses for most software and other practical works are designed
34599 to take away your freedom to share and change the works. By contrast,
34600 the GNU General Public License is intended to guarantee your freedom to
34601 share and change all versions of a program-to make sure it remains free
34602 software for all its users. We, the Free Software Foundation, use the
34603 GNU General Public License for most of our software; it applies also to
34604 any other work released this way by its authors. You can apply it to
34605 your programs, too.
34607 When we speak of free software, we are referring to freedom, not
34608 price. Our General Public Licenses are designed to make sure that you
34609 have the freedom to distribute copies of free software (and charge for
34610 them if you wish), that you receive source code or can get it if you
34611 want it, that you can change the software or use pieces of it in new
34612 free programs, and that you know you can do these things.
34614 To protect your rights, we need to prevent others from denying you
34615 these rights or asking you to surrender the rights. Therefore, you
34616 have certain responsibilities if you distribute copies of the software,
34617 or if you modify it: responsibilities to respect the freedom of others.
34619 For example, if you distribute copies of such a program, whether
34620 gratis or for a fee, you must pass on to the recipients the same
34621 freedoms that you received. You must make sure that they, too, receive
34622 or can get the source code. And you must show them these terms so they
34625 Developers that use the GNU GPL protect your rights with two steps:
34626 (1) assert copyright on the software, and (2) offer you this License
34627 giving you legal permission to copy, distribute and/or modify it.
34629 For the developers' and authors' protection, the GPL clearly explains
34630 that there is no warranty for this free software. For both users' and
34631 authors' sake, the GPL requires that modified versions be marked as
34632 changed, so that their problems will not be attributed erroneously to
34633 authors of previous versions.
34635 Some devices are designed to deny users access to install or run
34636 modified versions of the software inside them, although the
34637 manufacturer can do so. This is fundamentally incompatible with the
34638 aim of protecting users' freedom to change the software. The
34639 systematic pattern of such abuse occurs in the area of products for
34640 individuals to use, which is precisely where it is most unacceptable.
34641 Therefore, we have designed this version of the GPL to prohibit the
34642 practice for those products. If such problems arise substantially in
34643 other domains, we stand ready to extend this provision to those domains
34644 in future versions of the GPL, as needed to protect the freedom of
34647 Finally, every program is threatened constantly by software patents.
34648 States should not allow patents to restrict development and use of
34649 software on general-purpose computers, but in those that do, we wish to
34650 avoid the special danger that patents applied to a free program could
34651 make it effectively proprietary. To prevent this, the GPL assures that
34652 patents cannot be used to render the program non-free.
34654 The precise terms and conditions for copying, distribution and
34655 modification follow.
34657 TERMS AND CONDITIONS
34658 ====================
34662 "This License" refers to version 3 of the GNU General Public
34665 "Copyright" also means copyright-like laws that apply to other
34666 kinds of works, such as semiconductor masks.
34668 "The Program" refers to any copyrightable work licensed under this
34669 License. Each licensee is addressed as "you". "Licensees" and
34670 "recipients" may be individuals or organizations.
34672 To "modify" a work means to copy from or adapt all or part of the
34673 work in a fashion requiring copyright permission, other than the
34674 making of an exact copy. The resulting work is called a "modified
34675 version" of the earlier work or a work "based on" the earlier work.
34677 A "covered work" means either the unmodified Program or a work
34678 based on the Program.
34680 To "propagate" a work means to do anything with it that, without
34681 permission, would make you directly or secondarily liable for
34682 infringement under applicable copyright law, except executing it
34683 on a computer or modifying a private copy. Propagation includes
34684 copying, distribution (with or without modification), making
34685 available to the public, and in some countries other activities as
34688 To "convey" a work means any kind of propagation that enables other
34689 parties to make or receive copies. Mere interaction with a user
34690 through a computer network, with no transfer of a copy, is not
34693 An interactive user interface displays "Appropriate Legal Notices"
34694 to the extent that it includes a convenient and prominently visible
34695 feature that (1) displays an appropriate copyright notice, and (2)
34696 tells the user that there is no warranty for the work (except to
34697 the extent that warranties are provided), that licensees may
34698 convey the work under this License, and how to view a copy of this
34699 License. If the interface presents a list of user commands or
34700 options, such as a menu, a prominent item in the list meets this
34705 The "source code" for a work means the preferred form of the work
34706 for making modifications to it. "Object code" means any
34707 non-source form of a work.
34709 A "Standard Interface" means an interface that either is an
34710 official standard defined by a recognized standards body, or, in
34711 the case of interfaces specified for a particular programming
34712 language, one that is widely used among developers working in that
34715 The "System Libraries" of an executable work include anything,
34716 other than the work as a whole, that (a) is included in the normal
34717 form of packaging a Major Component, but which is not part of that
34718 Major Component, and (b) serves only to enable use of the work
34719 with that Major Component, or to implement a Standard Interface
34720 for which an implementation is available to the public in source
34721 code form. A "Major Component", in this context, means a major
34722 essential component (kernel, window system, and so on) of the
34723 specific operating system (if any) on which the executable work
34724 runs, or a compiler used to produce the work, or an object code
34725 interpreter used to run it.
34727 The "Corresponding Source" for a work in object code form means all
34728 the source code needed to generate, install, and (for an executable
34729 work) run the object code and to modify the work, including
34730 scripts to control those activities. However, it does not include
34731 the work's System Libraries, or general-purpose tools or generally
34732 available free programs which are used unmodified in performing
34733 those activities but which are not part of the work. For example,
34734 Corresponding Source includes interface definition files
34735 associated with source files for the work, and the source code for
34736 shared libraries and dynamically linked subprograms that the work
34737 is specifically designed to require, such as by intimate data
34738 communication or control flow between those subprograms and other
34741 The Corresponding Source need not include anything that users can
34742 regenerate automatically from other parts of the Corresponding
34745 The Corresponding Source for a work in source code form is that
34748 2. Basic Permissions.
34750 All rights granted under this License are granted for the term of
34751 copyright on the Program, and are irrevocable provided the stated
34752 conditions are met. This License explicitly affirms your unlimited
34753 permission to run the unmodified Program. The output from running
34754 a covered work is covered by this License only if the output,
34755 given its content, constitutes a covered work. This License
34756 acknowledges your rights of fair use or other equivalent, as
34757 provided by copyright law.
34759 You may make, run and propagate covered works that you do not
34760 convey, without conditions so long as your license otherwise
34761 remains in force. You may convey covered works to others for the
34762 sole purpose of having them make modifications exclusively for
34763 you, or provide you with facilities for running those works,
34764 provided that you comply with the terms of this License in
34765 conveying all material for which you do not control copyright.
34766 Those thus making or running the covered works for you must do so
34767 exclusively on your behalf, under your direction and control, on
34768 terms that prohibit them from making any copies of your
34769 copyrighted material outside their relationship with you.
34771 Conveying under any other circumstances is permitted solely under
34772 the conditions stated below. Sublicensing is not allowed; section
34773 10 makes it unnecessary.
34775 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
34777 No covered work shall be deemed part of an effective technological
34778 measure under any applicable law fulfilling obligations under
34779 article 11 of the WIPO copyright treaty adopted on 20 December
34780 1996, or similar laws prohibiting or restricting circumvention of
34783 When you convey a covered work, you waive any legal power to forbid
34784 circumvention of technological measures to the extent such
34785 circumvention is effected by exercising rights under this License
34786 with respect to the covered work, and you disclaim any intention
34787 to limit operation or modification of the work as a means of
34788 enforcing, against the work's users, your or third parties' legal
34789 rights to forbid circumvention of technological measures.
34791 4. Conveying Verbatim Copies.
34793 You may convey verbatim copies of the Program's source code as you
34794 receive it, in any medium, provided that you conspicuously and
34795 appropriately publish on each copy an appropriate copyright notice;
34796 keep intact all notices stating that this License and any
34797 non-permissive terms added in accord with section 7 apply to the
34798 code; keep intact all notices of the absence of any warranty; and
34799 give all recipients a copy of this License along with the Program.
34801 You may charge any price or no price for each copy that you convey,
34802 and you may offer support or warranty protection for a fee.
34804 5. Conveying Modified Source Versions.
34806 You may convey a work based on the Program, or the modifications to
34807 produce it from the Program, in the form of source code under the
34808 terms of section 4, provided that you also meet all of these
34811 a. The work must carry prominent notices stating that you
34812 modified it, and giving a relevant date.
34814 b. The work must carry prominent notices stating that it is
34815 released under this License and any conditions added under
34816 section 7. This requirement modifies the requirement in
34817 section 4 to "keep intact all notices".
34819 c. You must license the entire work, as a whole, under this
34820 License to anyone who comes into possession of a copy. This
34821 License will therefore apply, along with any applicable
34822 section 7 additional terms, to the whole of the work, and all
34823 its parts, regardless of how they are packaged. This License
34824 gives no permission to license the work in any other way, but
34825 it does not invalidate such permission if you have separately
34828 d. If the work has interactive user interfaces, each must display
34829 Appropriate Legal Notices; however, if the Program has
34830 interactive interfaces that do not display Appropriate Legal
34831 Notices, your work need not make them do so.
34833 A compilation of a covered work with other separate and independent
34834 works, which are not by their nature extensions of the covered
34835 work, and which are not combined with it such as to form a larger
34836 program, in or on a volume of a storage or distribution medium, is
34837 called an "aggregate" if the compilation and its resulting
34838 copyright are not used to limit the access or legal rights of the
34839 compilation's users beyond what the individual works permit.
34840 Inclusion of a covered work in an aggregate does not cause this
34841 License to apply to the other parts of the aggregate.
34843 6. Conveying Non-Source Forms.
34845 You may convey a covered work in object code form under the terms
34846 of sections 4 and 5, provided that you also convey the
34847 machine-readable Corresponding Source under the terms of this
34848 License, in one of these ways:
34850 a. Convey the object code in, or embodied in, a physical product
34851 (including a physical distribution medium), accompanied by the
34852 Corresponding Source fixed on a durable physical medium
34853 customarily used for software interchange.
34855 b. Convey the object code in, or embodied in, a physical product
34856 (including a physical distribution medium), accompanied by a
34857 written offer, valid for at least three years and valid for
34858 as long as you offer spare parts or customer support for that
34859 product model, to give anyone who possesses the object code
34860 either (1) a copy of the Corresponding Source for all the
34861 software in the product that is covered by this License, on a
34862 durable physical medium customarily used for software
34863 interchange, for a price no more than your reasonable cost of
34864 physically performing this conveying of source, or (2) access
34865 to copy the Corresponding Source from a network server at no
34868 c. Convey individual copies of the object code with a copy of
34869 the written offer to provide the Corresponding Source. This
34870 alternative is allowed only occasionally and noncommercially,
34871 and only if you received the object code with such an offer,
34872 in accord with subsection 6b.
34874 d. Convey the object code by offering access from a designated
34875 place (gratis or for a charge), and offer equivalent access
34876 to the Corresponding Source in the same way through the same
34877 place at no further charge. You need not require recipients
34878 to copy the Corresponding Source along with the object code.
34879 If the place to copy the object code is a network server, the
34880 Corresponding Source may be on a different server (operated
34881 by you or a third party) that supports equivalent copying
34882 facilities, provided you maintain clear directions next to
34883 the object code saying where to find the Corresponding Source.
34884 Regardless of what server hosts the Corresponding Source, you
34885 remain obligated to ensure that it is available for as long
34886 as needed to satisfy these requirements.
34888 e. Convey the object code using peer-to-peer transmission,
34889 provided you inform other peers where the object code and
34890 Corresponding Source of the work are being offered to the
34891 general public at no charge under subsection 6d.
34894 A separable portion of the object code, whose source code is
34895 excluded from the Corresponding Source as a System Library, need
34896 not be included in conveying the object code work.
34898 A "User Product" is either (1) a "consumer product", which means
34899 any tangible personal property which is normally used for personal,
34900 family, or household purposes, or (2) anything designed or sold for
34901 incorporation into a dwelling. In determining whether a product
34902 is a consumer product, doubtful cases shall be resolved in favor of
34903 coverage. For a particular product received by a particular user,
34904 "normally used" refers to a typical or common use of that class of
34905 product, regardless of the status of the particular user or of the
34906 way in which the particular user actually uses, or expects or is
34907 expected to use, the product. A product is a consumer product
34908 regardless of whether the product has substantial commercial,
34909 industrial or non-consumer uses, unless such uses represent the
34910 only significant mode of use of the product.
34912 "Installation Information" for a User Product means any methods,
34913 procedures, authorization keys, or other information required to
34914 install and execute modified versions of a covered work in that
34915 User Product from a modified version of its Corresponding Source.
34916 The information must suffice to ensure that the continued
34917 functioning of the modified object code is in no case prevented or
34918 interfered with solely because modification has been made.
34920 If you convey an object code work under this section in, or with,
34921 or specifically for use in, a User Product, and the conveying
34922 occurs as part of a transaction in which the right of possession
34923 and use of the User Product is transferred to the recipient in
34924 perpetuity or for a fixed term (regardless of how the transaction
34925 is characterized), the Corresponding Source conveyed under this
34926 section must be accompanied by the Installation Information. But
34927 this requirement does not apply if neither you nor any third party
34928 retains the ability to install modified object code on the User
34929 Product (for example, the work has been installed in ROM).
34931 The requirement to provide Installation Information does not
34932 include a requirement to continue to provide support service,
34933 warranty, or updates for a work that has been modified or
34934 installed by the recipient, or for the User Product in which it
34935 has been modified or installed. Access to a network may be denied
34936 when the modification itself materially and adversely affects the
34937 operation of the network or violates the rules and protocols for
34938 communication across the network.
34940 Corresponding Source conveyed, and Installation Information
34941 provided, in accord with this section must be in a format that is
34942 publicly documented (and with an implementation available to the
34943 public in source code form), and must require no special password
34944 or key for unpacking, reading or copying.
34946 7. Additional Terms.
34948 "Additional permissions" are terms that supplement the terms of
34949 this License by making exceptions from one or more of its
34950 conditions. Additional permissions that are applicable to the
34951 entire Program shall be treated as though they were included in
34952 this License, to the extent that they are valid under applicable
34953 law. If additional permissions apply only to part of the Program,
34954 that part may be used separately under those permissions, but the
34955 entire Program remains governed by this License without regard to
34956 the additional permissions.
34958 When you convey a copy of a covered work, you may at your option
34959 remove any additional permissions from that copy, or from any part
34960 of it. (Additional permissions may be written to require their own
34961 removal in certain cases when you modify the work.) You may place
34962 additional permissions on material, added by you to a covered work,
34963 for which you have or can give appropriate copyright permission.
34965 Notwithstanding any other provision of this License, for material
34966 you add to a covered work, you may (if authorized by the copyright
34967 holders of that material) supplement the terms of this License
34970 a. Disclaiming warranty or limiting liability differently from
34971 the terms of sections 15 and 16 of this License; or
34973 b. Requiring preservation of specified reasonable legal notices
34974 or author attributions in that material or in the Appropriate
34975 Legal Notices displayed by works containing it; or
34977 c. Prohibiting misrepresentation of the origin of that material,
34978 or requiring that modified versions of such material be
34979 marked in reasonable ways as different from the original
34982 d. Limiting the use for publicity purposes of names of licensors
34983 or authors of the material; or
34985 e. Declining to grant rights under trademark law for use of some
34986 trade names, trademarks, or service marks; or
34988 f. Requiring indemnification of licensors and authors of that
34989 material by anyone who conveys the material (or modified
34990 versions of it) with contractual assumptions of liability to
34991 the recipient, for any liability that these contractual
34992 assumptions directly impose on those licensors and authors.
34994 All other non-permissive additional terms are considered "further
34995 restrictions" within the meaning of section 10. If the Program as
34996 you received it, or any part of it, contains a notice stating that
34997 it is governed by this License along with a term that is a further
34998 restriction, you may remove that term. If a license document
34999 contains a further restriction but permits relicensing or
35000 conveying under this License, you may add to a covered work
35001 material governed by the terms of that license document, provided
35002 that the further restriction does not survive such relicensing or
35005 If you add terms to a covered work in accord with this section, you
35006 must place, in the relevant source files, a statement of the
35007 additional terms that apply to those files, or a notice indicating
35008 where to find the applicable terms.
35010 Additional terms, permissive or non-permissive, may be stated in
35011 the form of a separately written license, or stated as exceptions;
35012 the above requirements apply either way.
35016 You may not propagate or modify a covered work except as expressly
35017 provided under this License. Any attempt otherwise to propagate or
35018 modify it is void, and will automatically terminate your rights
35019 under this License (including any patent licenses granted under
35020 the third paragraph of section 11).
35022 However, if you cease all violation of this License, then your
35023 license from a particular copyright holder is reinstated (a)
35024 provisionally, unless and until the copyright holder explicitly
35025 and finally terminates your license, and (b) permanently, if the
35026 copyright holder fails to notify you of the violation by some
35027 reasonable means prior to 60 days after the cessation.
35029 Moreover, your license from a particular copyright holder is
35030 reinstated permanently if the copyright holder notifies you of the
35031 violation by some reasonable means, this is the first time you have
35032 received notice of violation of this License (for any work) from
35033 that copyright holder, and you cure the violation prior to 30 days
35034 after your receipt of the notice.
35036 Termination of your rights under this section does not terminate
35037 the licenses of parties who have received copies or rights from
35038 you under this License. If your rights have been terminated and
35039 not permanently reinstated, you do not qualify to receive new
35040 licenses for the same material under section 10.
35042 9. Acceptance Not Required for Having Copies.
35044 You are not required to accept this License in order to receive or
35045 run a copy of the Program. Ancillary propagation of a covered work
35046 occurring solely as a consequence of using peer-to-peer
35047 transmission to receive a copy likewise does not require
35048 acceptance. However, nothing other than this License grants you
35049 permission to propagate or modify any covered work. These actions
35050 infringe copyright if you do not accept this License. Therefore,
35051 by modifying or propagating a covered work, you indicate your
35052 acceptance of this License to do so.
35054 10. Automatic Licensing of Downstream Recipients.
35056 Each time you convey a covered work, the recipient automatically
35057 receives a license from the original licensors, to run, modify and
35058 propagate that work, subject to this License. You are not
35059 responsible for enforcing compliance by third parties with this
35062 An "entity transaction" is a transaction transferring control of an
35063 organization, or substantially all assets of one, or subdividing an
35064 organization, or merging organizations. If propagation of a
35065 covered work results from an entity transaction, each party to that
35066 transaction who receives a copy of the work also receives whatever
35067 licenses to the work the party's predecessor in interest had or
35068 could give under the previous paragraph, plus a right to
35069 possession of the Corresponding Source of the work from the
35070 predecessor in interest, if the predecessor has it or can get it
35071 with reasonable efforts.
35073 You may not impose any further restrictions on the exercise of the
35074 rights granted or affirmed under this License. For example, you
35075 may not impose a license fee, royalty, or other charge for
35076 exercise of rights granted under this License, and you may not
35077 initiate litigation (including a cross-claim or counterclaim in a
35078 lawsuit) alleging that any patent claim is infringed by making,
35079 using, selling, offering for sale, or importing the Program or any
35084 A "contributor" is a copyright holder who authorizes use under this
35085 License of the Program or a work on which the Program is based.
35086 The work thus licensed is called the contributor's "contributor
35089 A contributor's "essential patent claims" are all patent claims
35090 owned or controlled by the contributor, whether already acquired or
35091 hereafter acquired, that would be infringed by some manner,
35092 permitted by this License, of making, using, or selling its
35093 contributor version, but do not include claims that would be
35094 infringed only as a consequence of further modification of the
35095 contributor version. For purposes of this definition, "control"
35096 includes the right to grant patent sublicenses in a manner
35097 consistent with the requirements of this License.
35099 Each contributor grants you a non-exclusive, worldwide,
35100 royalty-free patent license under the contributor's essential
35101 patent claims, to make, use, sell, offer for sale, import and
35102 otherwise run, modify and propagate the contents of its
35103 contributor version.
35105 In the following three paragraphs, a "patent license" is any
35106 express agreement or commitment, however denominated, not to
35107 enforce a patent (such as an express permission to practice a
35108 patent or covenant not to sue for patent infringement). To
35109 "grant" such a patent license to a party means to make such an
35110 agreement or commitment not to enforce a patent against the party.
35112 If you convey a covered work, knowingly relying on a patent
35113 license, and the Corresponding Source of the work is not available
35114 for anyone to copy, free of charge and under the terms of this
35115 License, through a publicly available network server or other
35116 readily accessible means, then you must either (1) cause the
35117 Corresponding Source to be so available, or (2) arrange to deprive
35118 yourself of the benefit of the patent license for this particular
35119 work, or (3) arrange, in a manner consistent with the requirements
35120 of this License, to extend the patent license to downstream
35121 recipients. "Knowingly relying" means you have actual knowledge
35122 that, but for the patent license, your conveying the covered work
35123 in a country, or your recipient's use of the covered work in a
35124 country, would infringe one or more identifiable patents in that
35125 country that you have reason to believe are valid.
35127 If, pursuant to or in connection with a single transaction or
35128 arrangement, you convey, or propagate by procuring conveyance of, a
35129 covered work, and grant a patent license to some of the parties
35130 receiving the covered work authorizing them to use, propagate,
35131 modify or convey a specific copy of the covered work, then the
35132 patent license you grant is automatically extended to all
35133 recipients of the covered work and works based on it.
35135 A patent license is "discriminatory" if it does not include within
35136 the scope of its coverage, prohibits the exercise of, or is
35137 conditioned on the non-exercise of one or more of the rights that
35138 are specifically granted under this License. You may not convey a
35139 covered work if you are a party to an arrangement with a third
35140 party that is in the business of distributing software, under
35141 which you make payment to the third party based on the extent of
35142 your activity of conveying the work, and under which the third
35143 party grants, to any of the parties who would receive the covered
35144 work from you, a discriminatory patent license (a) in connection
35145 with copies of the covered work conveyed by you (or copies made
35146 from those copies), or (b) primarily for and in connection with
35147 specific products or compilations that contain the covered work,
35148 unless you entered into that arrangement, or that patent license
35149 was granted, prior to 28 March 2007.
35151 Nothing in this License shall be construed as excluding or limiting
35152 any implied license or other defenses to infringement that may
35153 otherwise be available to you under applicable patent law.
35155 12. No Surrender of Others' Freedom.
35157 If conditions are imposed on you (whether by court order,
35158 agreement or otherwise) that contradict the conditions of this
35159 License, they do not excuse you from the conditions of this
35160 License. If you cannot convey a covered work so as to satisfy
35161 simultaneously your obligations under this License and any other
35162 pertinent obligations, then as a consequence you may not convey it
35163 at all. For example, if you agree to terms that obligate you to
35164 collect a royalty for further conveying from those to whom you
35165 convey the Program, the only way you could satisfy both those
35166 terms and this License would be to refrain entirely from conveying
35169 13. Use with the GNU Affero General Public License.
35171 Notwithstanding any other provision of this License, you have
35172 permission to link or combine any covered work with a work licensed
35173 under version 3 of the GNU Affero General Public License into a
35174 single combined work, and to convey the resulting work. The terms
35175 of this License will continue to apply to the part which is the
35176 covered work, but the special requirements of the GNU Affero
35177 General Public License, section 13, concerning interaction through
35178 a network will apply to the combination as such.
35180 14. Revised Versions of this License.
35182 The Free Software Foundation may publish revised and/or new
35183 versions of the GNU General Public License from time to time.
35184 Such new versions will be similar in spirit to the present
35185 version, but may differ in detail to address new problems or
35188 Each version is given a distinguishing version number. If the
35189 Program specifies that a certain numbered version of the GNU
35190 General Public License "or any later version" applies to it, you
35191 have the option of following the terms and conditions either of
35192 that numbered version or of any later version published by the
35193 Free Software Foundation. If the Program does not specify a
35194 version number of the GNU General Public License, you may choose
35195 any version ever published by the Free Software Foundation.
35197 If the Program specifies that a proxy can decide which future
35198 versions of the GNU General Public License can be used, that
35199 proxy's public statement of acceptance of a version permanently
35200 authorizes you to choose that version for the Program.
35202 Later license versions may give you additional or different
35203 permissions. However, no additional obligations are imposed on any
35204 author or copyright holder as a result of your choosing to follow a
35207 15. Disclaimer of Warranty.
35209 THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
35210 APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
35211 COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
35212 WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
35213 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
35214 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE
35215 RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.
35216 SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
35217 NECESSARY SERVICING, REPAIR OR CORRECTION.
35219 16. Limitation of Liability.
35221 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
35222 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
35223 AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU
35224 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
35225 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
35226 THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA
35227 BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
35228 PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
35229 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
35230 THE POSSIBILITY OF SUCH DAMAGES.
35232 17. Interpretation of Sections 15 and 16.
35234 If the disclaimer of warranty and limitation of liability provided
35235 above cannot be given local legal effect according to their terms,
35236 reviewing courts shall apply local law that most closely
35237 approximates an absolute waiver of all civil liability in
35238 connection with the Program, unless a warranty or assumption of
35239 liability accompanies a copy of the Program in return for a fee.
35242 END OF TERMS AND CONDITIONS
35243 ===========================
35245 How to Apply These Terms to Your New Programs
35246 =============================================
35248 If you develop a new program, and you want it to be of the greatest
35249 possible use to the public, the best way to achieve this is to make it
35250 free software which everyone can redistribute and change under these
35253 To do so, attach the following notices to the program. It is safest
35254 to attach them to the start of each source file to most effectively
35255 state the exclusion of warranty; and each file should have at least the
35256 "copyright" line and a pointer to where the full notice is found.
35258 ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
35259 Copyright (C) YEAR NAME OF AUTHOR
35261 This program is free software: you can redistribute it and/or modify
35262 it under the terms of the GNU General Public License as published by
35263 the Free Software Foundation, either version 3 of the License, or (at
35264 your option) any later version.
35266 This program is distributed in the hope that it will be useful, but
35267 WITHOUT ANY WARRANTY; without even the implied warranty of
35268 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
35269 General Public License for more details.
35271 You should have received a copy of the GNU General Public License
35272 along with this program. If not, see `http://www.gnu.org/licenses/'.
35274 Also add information on how to contact you by electronic and paper
35277 If the program does terminal interaction, make it output a short
35278 notice like this when it starts in an interactive mode:
35280 PROGRAM Copyright (C) YEAR NAME OF AUTHOR
35281 This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
35282 This is free software, and you are welcome to redistribute it
35283 under certain conditions; type `show c' for details.
35285 The hypothetical commands `show w' and `show c' should show the
35286 appropriate parts of the General Public License. Of course, your
35287 program's commands might be different; for a GUI interface, you would
35288 use an "about box".
35290 You should also get your employer (if you work as a programmer) or
35291 school, if any, to sign a "copyright disclaimer" for the program, if
35292 necessary. For more information on this, and how to apply and follow
35293 the GNU GPL, see `http://www.gnu.org/licenses/'.
35295 The GNU General Public License does not permit incorporating your
35296 program into proprietary programs. If your program is a subroutine
35297 library, you may consider it more useful to permit linking proprietary
35298 applications with the library. If this is what you want to do, use the
35299 GNU Lesser General Public License instead of this License. But first,
35300 please read `http://www.gnu.org/philosophy/why-not-lgpl.html'.
35303 File: gccint.info, Node: GNU Free Documentation License, Next: Contributors, Prev: Copying, Up: Top
35305 GNU Free Documentation License
35306 ******************************
35308 Version 1.2, November 2002
35310 Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
35311 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
35313 Everyone is permitted to copy and distribute verbatim copies
35314 of this license document, but changing it is not allowed.
35318 The purpose of this License is to make a manual, textbook, or other
35319 functional and useful document "free" in the sense of freedom: to
35320 assure everyone the effective freedom to copy and redistribute it,
35321 with or without modifying it, either commercially or
35322 noncommercially. Secondarily, this License preserves for the
35323 author and publisher a way to get credit for their work, while not
35324 being considered responsible for modifications made by others.
35326 This License is a kind of "copyleft", which means that derivative
35327 works of the document must themselves be free in the same sense.
35328 It complements the GNU General Public License, which is a copyleft
35329 license designed for free software.
35331 We have designed this License in order to use it for manuals for
35332 free software, because free software needs free documentation: a
35333 free program should come with manuals providing the same freedoms
35334 that the software does. But this License is not limited to
35335 software manuals; it can be used for any textual work, regardless
35336 of subject matter or whether it is published as a printed book.
35337 We recommend this License principally for works whose purpose is
35338 instruction or reference.
35340 1. APPLICABILITY AND DEFINITIONS
35342 This License applies to any manual or other work, in any medium,
35343 that contains a notice placed by the copyright holder saying it
35344 can be distributed under the terms of this License. Such a notice
35345 grants a world-wide, royalty-free license, unlimited in duration,
35346 to use that work under the conditions stated herein. The
35347 "Document", below, refers to any such manual or work. Any member
35348 of the public is a licensee, and is addressed as "you". You
35349 accept the license if you copy, modify or distribute the work in a
35350 way requiring permission under copyright law.
35352 A "Modified Version" of the Document means any work containing the
35353 Document or a portion of it, either copied verbatim, or with
35354 modifications and/or translated into another language.
35356 A "Secondary Section" is a named appendix or a front-matter section
35357 of the Document that deals exclusively with the relationship of the
35358 publishers or authors of the Document to the Document's overall
35359 subject (or to related matters) and contains nothing that could
35360 fall directly within that overall subject. (Thus, if the Document
35361 is in part a textbook of mathematics, a Secondary Section may not
35362 explain any mathematics.) The relationship could be a matter of
35363 historical connection with the subject or with related matters, or
35364 of legal, commercial, philosophical, ethical or political position
35367 The "Invariant Sections" are certain Secondary Sections whose
35368 titles are designated, as being those of Invariant Sections, in
35369 the notice that says that the Document is released under this
35370 License. If a section does not fit the above definition of
35371 Secondary then it is not allowed to be designated as Invariant.
35372 The Document may contain zero Invariant Sections. If the Document
35373 does not identify any Invariant Sections then there are none.
35375 The "Cover Texts" are certain short passages of text that are
35376 listed, as Front-Cover Texts or Back-Cover Texts, in the notice
35377 that says that the Document is released under this License. A
35378 Front-Cover Text may be at most 5 words, and a Back-Cover Text may
35379 be at most 25 words.
35381 A "Transparent" copy of the Document means a machine-readable copy,
35382 represented in a format whose specification is available to the
35383 general public, that is suitable for revising the document
35384 straightforwardly with generic text editors or (for images
35385 composed of pixels) generic paint programs or (for drawings) some
35386 widely available drawing editor, and that is suitable for input to
35387 text formatters or for automatic translation to a variety of
35388 formats suitable for input to text formatters. A copy made in an
35389 otherwise Transparent file format whose markup, or absence of
35390 markup, has been arranged to thwart or discourage subsequent
35391 modification by readers is not Transparent. An image format is
35392 not Transparent if used for any substantial amount of text. A
35393 copy that is not "Transparent" is called "Opaque".
35395 Examples of suitable formats for Transparent copies include plain
35396 ASCII without markup, Texinfo input format, LaTeX input format,
35397 SGML or XML using a publicly available DTD, and
35398 standard-conforming simple HTML, PostScript or PDF designed for
35399 human modification. Examples of transparent image formats include
35400 PNG, XCF and JPG. Opaque formats include proprietary formats that
35401 can be read and edited only by proprietary word processors, SGML or
35402 XML for which the DTD and/or processing tools are not generally
35403 available, and the machine-generated HTML, PostScript or PDF
35404 produced by some word processors for output purposes only.
35406 The "Title Page" means, for a printed book, the title page itself,
35407 plus such following pages as are needed to hold, legibly, the
35408 material this License requires to appear in the title page. For
35409 works in formats which do not have any title page as such, "Title
35410 Page" means the text near the most prominent appearance of the
35411 work's title, preceding the beginning of the body of the text.
35413 A section "Entitled XYZ" means a named subunit of the Document
35414 whose title either is precisely XYZ or contains XYZ in parentheses
35415 following text that translates XYZ in another language. (Here XYZ
35416 stands for a specific section name mentioned below, such as
35417 "Acknowledgements", "Dedications", "Endorsements", or "History".)
35418 To "Preserve the Title" of such a section when you modify the
35419 Document means that it remains a section "Entitled XYZ" according
35420 to this definition.
35422 The Document may include Warranty Disclaimers next to the notice
35423 which states that this License applies to the Document. These
35424 Warranty Disclaimers are considered to be included by reference in
35425 this License, but only as regards disclaiming warranties: any other
35426 implication that these Warranty Disclaimers may have is void and
35427 has no effect on the meaning of this License.
35429 2. VERBATIM COPYING
35431 You may copy and distribute the Document in any medium, either
35432 commercially or noncommercially, provided that this License, the
35433 copyright notices, and the license notice saying this License
35434 applies to the Document are reproduced in all copies, and that you
35435 add no other conditions whatsoever to those of this License. You
35436 may not use technical measures to obstruct or control the reading
35437 or further copying of the copies you make or distribute. However,
35438 you may accept compensation in exchange for copies. If you
35439 distribute a large enough number of copies you must also follow
35440 the conditions in section 3.
35442 You may also lend copies, under the same conditions stated above,
35443 and you may publicly display copies.
35445 3. COPYING IN QUANTITY
35447 If you publish printed copies (or copies in media that commonly
35448 have printed covers) of the Document, numbering more than 100, and
35449 the Document's license notice requires Cover Texts, you must
35450 enclose the copies in covers that carry, clearly and legibly, all
35451 these Cover Texts: Front-Cover Texts on the front cover, and
35452 Back-Cover Texts on the back cover. Both covers must also clearly
35453 and legibly identify you as the publisher of these copies. The
35454 front cover must present the full title with all words of the
35455 title equally prominent and visible. You may add other material
35456 on the covers in addition. Copying with changes limited to the
35457 covers, as long as they preserve the title of the Document and
35458 satisfy these conditions, can be treated as verbatim copying in
35461 If the required texts for either cover are too voluminous to fit
35462 legibly, you should put the first ones listed (as many as fit
35463 reasonably) on the actual cover, and continue the rest onto
35466 If you publish or distribute Opaque copies of the Document
35467 numbering more than 100, you must either include a
35468 machine-readable Transparent copy along with each Opaque copy, or
35469 state in or with each Opaque copy a computer-network location from
35470 which the general network-using public has access to download
35471 using public-standard network protocols a complete Transparent
35472 copy of the Document, free of added material. If you use the
35473 latter option, you must take reasonably prudent steps, when you
35474 begin distribution of Opaque copies in quantity, to ensure that
35475 this Transparent copy will remain thus accessible at the stated
35476 location until at least one year after the last time you
35477 distribute an Opaque copy (directly or through your agents or
35478 retailers) of that edition to the public.
35480 It is requested, but not required, that you contact the authors of
35481 the Document well before redistributing any large number of
35482 copies, to give them a chance to provide you with an updated
35483 version of the Document.
35487 You may copy and distribute a Modified Version of the Document
35488 under the conditions of sections 2 and 3 above, provided that you
35489 release the Modified Version under precisely this License, with
35490 the Modified Version filling the role of the Document, thus
35491 licensing distribution and modification of the Modified Version to
35492 whoever possesses a copy of it. In addition, you must do these
35493 things in the Modified Version:
35495 A. Use in the Title Page (and on the covers, if any) a title
35496 distinct from that of the Document, and from those of
35497 previous versions (which should, if there were any, be listed
35498 in the History section of the Document). You may use the
35499 same title as a previous version if the original publisher of
35500 that version gives permission.
35502 B. List on the Title Page, as authors, one or more persons or
35503 entities responsible for authorship of the modifications in
35504 the Modified Version, together with at least five of the
35505 principal authors of the Document (all of its principal
35506 authors, if it has fewer than five), unless they release you
35507 from this requirement.
35509 C. State on the Title page the name of the publisher of the
35510 Modified Version, as the publisher.
35512 D. Preserve all the copyright notices of the Document.
35514 E. Add an appropriate copyright notice for your modifications
35515 adjacent to the other copyright notices.
35517 F. Include, immediately after the copyright notices, a license
35518 notice giving the public permission to use the Modified
35519 Version under the terms of this License, in the form shown in
35520 the Addendum below.
35522 G. Preserve in that license notice the full lists of Invariant
35523 Sections and required Cover Texts given in the Document's
35526 H. Include an unaltered copy of this License.
35528 I. Preserve the section Entitled "History", Preserve its Title,
35529 and add to it an item stating at least the title, year, new
35530 authors, and publisher of the Modified Version as given on
35531 the Title Page. If there is no section Entitled "History" in
35532 the Document, create one stating the title, year, authors,
35533 and publisher of the Document as given on its Title Page,
35534 then add an item describing the Modified Version as stated in
35535 the previous sentence.
35537 J. Preserve the network location, if any, given in the Document
35538 for public access to a Transparent copy of the Document, and
35539 likewise the network locations given in the Document for
35540 previous versions it was based on. These may be placed in
35541 the "History" section. You may omit a network location for a
35542 work that was published at least four years before the
35543 Document itself, or if the original publisher of the version
35544 it refers to gives permission.
35546 K. For any section Entitled "Acknowledgements" or "Dedications",
35547 Preserve the Title of the section, and preserve in the
35548 section all the substance and tone of each of the contributor
35549 acknowledgements and/or dedications given therein.
35551 L. Preserve all the Invariant Sections of the Document,
35552 unaltered in their text and in their titles. Section numbers
35553 or the equivalent are not considered part of the section
35556 M. Delete any section Entitled "Endorsements". Such a section
35557 may not be included in the Modified Version.
35559 N. Do not retitle any existing section to be Entitled
35560 "Endorsements" or to conflict in title with any Invariant
35563 O. Preserve any Warranty Disclaimers.
35565 If the Modified Version includes new front-matter sections or
35566 appendices that qualify as Secondary Sections and contain no
35567 material copied from the Document, you may at your option
35568 designate some or all of these sections as invariant. To do this,
35569 add their titles to the list of Invariant Sections in the Modified
35570 Version's license notice. These titles must be distinct from any
35571 other section titles.
35573 You may add a section Entitled "Endorsements", provided it contains
35574 nothing but endorsements of your Modified Version by various
35575 parties--for example, statements of peer review or that the text
35576 has been approved by an organization as the authoritative
35577 definition of a standard.
35579 You may add a passage of up to five words as a Front-Cover Text,
35580 and a passage of up to 25 words as a Back-Cover Text, to the end
35581 of the list of Cover Texts in the Modified Version. Only one
35582 passage of Front-Cover Text and one of Back-Cover Text may be
35583 added by (or through arrangements made by) any one entity. If the
35584 Document already includes a cover text for the same cover,
35585 previously added by you or by arrangement made by the same entity
35586 you are acting on behalf of, you may not add another; but you may
35587 replace the old one, on explicit permission from the previous
35588 publisher that added the old one.
35590 The author(s) and publisher(s) of the Document do not by this
35591 License give permission to use their names for publicity for or to
35592 assert or imply endorsement of any Modified Version.
35594 5. COMBINING DOCUMENTS
35596 You may combine the Document with other documents released under
35597 this License, under the terms defined in section 4 above for
35598 modified versions, provided that you include in the combination
35599 all of the Invariant Sections of all of the original documents,
35600 unmodified, and list them all as Invariant Sections of your
35601 combined work in its license notice, and that you preserve all
35602 their Warranty Disclaimers.
35604 The combined work need only contain one copy of this License, and
35605 multiple identical Invariant Sections may be replaced with a single
35606 copy. If there are multiple Invariant Sections with the same name
35607 but different contents, make the title of each such section unique
35608 by adding at the end of it, in parentheses, the name of the
35609 original author or publisher of that section if known, or else a
35610 unique number. Make the same adjustment to the section titles in
35611 the list of Invariant Sections in the license notice of the
35614 In the combination, you must combine any sections Entitled
35615 "History" in the various original documents, forming one section
35616 Entitled "History"; likewise combine any sections Entitled
35617 "Acknowledgements", and any sections Entitled "Dedications". You
35618 must delete all sections Entitled "Endorsements."
35620 6. COLLECTIONS OF DOCUMENTS
35622 You may make a collection consisting of the Document and other
35623 documents released under this License, and replace the individual
35624 copies of this License in the various documents with a single copy
35625 that is included in the collection, provided that you follow the
35626 rules of this License for verbatim copying of each of the
35627 documents in all other respects.
35629 You may extract a single document from such a collection, and
35630 distribute it individually under this License, provided you insert
35631 a copy of this License into the extracted document, and follow
35632 this License in all other respects regarding verbatim copying of
35635 7. AGGREGATION WITH INDEPENDENT WORKS
35637 A compilation of the Document or its derivatives with other
35638 separate and independent documents or works, in or on a volume of
35639 a storage or distribution medium, is called an "aggregate" if the
35640 copyright resulting from the compilation is not used to limit the
35641 legal rights of the compilation's users beyond what the individual
35642 works permit. When the Document is included in an aggregate, this
35643 License does not apply to the other works in the aggregate which
35644 are not themselves derivative works of the Document.
35646 If the Cover Text requirement of section 3 is applicable to these
35647 copies of the Document, then if the Document is less than one half
35648 of the entire aggregate, the Document's Cover Texts may be placed
35649 on covers that bracket the Document within the aggregate, or the
35650 electronic equivalent of covers if the Document is in electronic
35651 form. Otherwise they must appear on printed covers that bracket
35652 the whole aggregate.
35656 Translation is considered a kind of modification, so you may
35657 distribute translations of the Document under the terms of section
35658 4. Replacing Invariant Sections with translations requires special
35659 permission from their copyright holders, but you may include
35660 translations of some or all Invariant Sections in addition to the
35661 original versions of these Invariant Sections. You may include a
35662 translation of this License, and all the license notices in the
35663 Document, and any Warranty Disclaimers, provided that you also
35664 include the original English version of this License and the
35665 original versions of those notices and disclaimers. In case of a
35666 disagreement between the translation and the original version of
35667 this License or a notice or disclaimer, the original version will
35670 If a section in the Document is Entitled "Acknowledgements",
35671 "Dedications", or "History", the requirement (section 4) to
35672 Preserve its Title (section 1) will typically require changing the
35677 You may not copy, modify, sublicense, or distribute the Document
35678 except as expressly provided for under this License. Any other
35679 attempt to copy, modify, sublicense or distribute the Document is
35680 void, and will automatically terminate your rights under this
35681 License. However, parties who have received copies, or rights,
35682 from you under this License will not have their licenses
35683 terminated so long as such parties remain in full compliance.
35685 10. FUTURE REVISIONS OF THIS LICENSE
35687 The Free Software Foundation may publish new, revised versions of
35688 the GNU Free Documentation License from time to time. Such new
35689 versions will be similar in spirit to the present version, but may
35690 differ in detail to address new problems or concerns. See
35691 `http://www.gnu.org/copyleft/'.
35693 Each version of the License is given a distinguishing version
35694 number. If the Document specifies that a particular numbered
35695 version of this License "or any later version" applies to it, you
35696 have the option of following the terms and conditions either of
35697 that specified version or of any later version that has been
35698 published (not as a draft) by the Free Software Foundation. If
35699 the Document does not specify a version number of this License,
35700 you may choose any version ever published (not as a draft) by the
35701 Free Software Foundation.
35703 ADDENDUM: How to use this License for your documents
35704 ====================================================
35706 To use this License in a document you have written, include a copy of
35707 the License in the document and put the following copyright and license
35708 notices just after the title page:
35710 Copyright (C) YEAR YOUR NAME.
35711 Permission is granted to copy, distribute and/or modify this document
35712 under the terms of the GNU Free Documentation License, Version 1.2
35713 or any later version published by the Free Software Foundation;
35714 with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
35715 Texts. A copy of the license is included in the section entitled ``GNU
35716 Free Documentation License''.
35718 If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
35719 replace the "with...Texts." line with this:
35721 with the Invariant Sections being LIST THEIR TITLES, with
35722 the Front-Cover Texts being LIST, and with the Back-Cover Texts
35725 If you have Invariant Sections without Cover Texts, or some other
35726 combination of the three, merge those two alternatives to suit the
35729 If your document contains nontrivial examples of program code, we
35730 recommend releasing these examples in parallel under your choice of
35731 free software license, such as the GNU General Public License, to
35732 permit their use in free software.
35735 File: gccint.info, Node: Contributors, Next: Option Index, Prev: GNU Free Documentation License, Up: Top
35737 Contributors to GCC
35738 *******************
35740 The GCC project would like to thank its many contributors. Without
35741 them the project would not have been nearly as successful as it has
35742 been. Any omissions in this list are accidental. Feel free to contact
35743 <law@redhat.com> or <gerald@pfeifer.com> if you have been left out or
35744 some of your contributions are not listed. Please keep this list in
35745 alphabetical order.
35747 * Analog Devices helped implement the support for complex data types
35750 * John David Anglin for threading-related fixes and improvements to
35751 libstdc++-v3, and the HP-UX port.
35753 * James van Artsdalen wrote the code that makes efficient use of the
35754 Intel 80387 register stack.
35756 * Abramo and Roberto Bagnara for the SysV68 Motorola 3300 Delta
35759 * Alasdair Baird for various bug fixes.
35761 * Giovanni Bajo for analyzing lots of complicated C++ problem
35764 * Peter Barada for his work to improve code generation for new
35767 * Gerald Baumgartner added the signature extension to the C++ front
35770 * Godmar Back for his Java improvements and encouragement.
35772 * Scott Bambrough for help porting the Java compiler.
35774 * Wolfgang Bangerth for processing tons of bug reports.
35776 * Jon Beniston for his Microsoft Windows port of Java.
35778 * Daniel Berlin for better DWARF2 support, faster/better
35779 optimizations, improved alias analysis, plus migrating GCC to
35782 * Geoff Berry for his Java object serialization work and various
35785 * Uros Bizjak for the implementation of x87 math built-in functions
35786 and for various middle end and i386 back end improvements and bug
35789 * Eric Blake for helping to make GCJ and libgcj conform to the
35792 * Janne Blomqvist for contributions to GNU Fortran.
35794 * Segher Boessenkool for various fixes.
35796 * Hans-J. Boehm for his garbage collector, IA-64 libffi port, and
35799 * Neil Booth for work on cpplib, lang hooks, debug hooks and other
35800 miscellaneous clean-ups.
35802 * Steven Bosscher for integrating the GNU Fortran front end into GCC
35803 and for contributing to the tree-ssa branch.
35805 * Eric Botcazou for fixing middle- and backend bugs left and right.
35807 * Per Bothner for his direction via the steering committee and
35808 various improvements to the infrastructure for supporting new
35809 languages. Chill front end implementation. Initial
35810 implementations of cpplib, fix-header, config.guess, libio, and
35811 past C++ library (libg++) maintainer. Dreaming up, designing and
35812 implementing much of GCJ.
35814 * Devon Bowen helped port GCC to the Tahoe.
35816 * Don Bowman for mips-vxworks contributions.
35818 * Dave Brolley for work on cpplib and Chill.
35820 * Paul Brook for work on the ARM architecture and maintaining GNU
35823 * Robert Brown implemented the support for Encore 32000 systems.
35825 * Christian Bruel for improvements to local store elimination.
35827 * Herman A.J. ten Brugge for various fixes.
35829 * Joerg Brunsmann for Java compiler hacking and help with the GCJ
35832 * Joe Buck for his direction via the steering committee.
35834 * Craig Burley for leadership of the G77 Fortran effort.
35836 * Stephan Buys for contributing Doxygen notes for libstdc++.
35838 * Paolo Carlini for libstdc++ work: lots of efficiency improvements
35839 to the C++ strings, streambufs and formatted I/O, hard detective
35840 work on the frustrating localization issues, and keeping up with
35841 the problem reports.
35843 * John Carr for his alias work, SPARC hacking, infrastructure
35844 improvements, previous contributions to the steering committee,
35845 loop optimizations, etc.
35847 * Stephane Carrez for 68HC11 and 68HC12 ports.
35849 * Steve Chamberlain for support for the Renesas SH and H8 processors
35850 and the PicoJava processor, and for GCJ config fixes.
35852 * Glenn Chambers for help with the GCJ FAQ.
35854 * John-Marc Chandonia for various libgcj patches.
35856 * Scott Christley for his Objective-C contributions.
35858 * Eric Christopher for his Java porting help and clean-ups.
35860 * Branko Cibej for more warning contributions.
35862 * The GNU Classpath project for all of their merged runtime code.
35864 * Nick Clifton for arm, mcore, fr30, v850, m32r work, `--help', and
35865 other random hacking.
35867 * Michael Cook for libstdc++ cleanup patches to reduce warnings.
35869 * R. Kelley Cook for making GCC buildable from a read-only directory
35870 as well as other miscellaneous build process and documentation
35873 * Ralf Corsepius for SH testing and minor bug fixing.
35875 * Stan Cox for care and feeding of the x86 port and lots of behind
35876 the scenes hacking.
35878 * Alex Crain provided changes for the 3b1.
35880 * Ian Dall for major improvements to the NS32k port.
35882 * Paul Dale for his work to add uClinux platform support to the m68k
35885 * Dario Dariol contributed the four varieties of sample programs
35886 that print a copy of their source.
35888 * Russell Davidson for fstream and stringstream fixes in libstdc++.
35890 * Bud Davis for work on the G77 and GNU Fortran compilers.
35892 * Mo DeJong for GCJ and libgcj bug fixes.
35894 * DJ Delorie for the DJGPP port, build and libiberty maintenance,
35895 various bug fixes, and the M32C port.
35897 * Arnaud Desitter for helping to debug GNU Fortran.
35899 * Gabriel Dos Reis for contributions to G++, contributions and
35900 maintenance of GCC diagnostics infrastructure, libstdc++-v3,
35901 including `valarray<>', `complex<>', maintaining the numerics
35902 library (including that pesky `<limits>' :-) and keeping
35903 up-to-date anything to do with numbers.
35905 * Ulrich Drepper for his work on glibc, testing of GCC using glibc,
35906 ISO C99 support, CFG dumping support, etc., plus support of the
35907 C++ runtime libraries including for all kinds of C interface
35908 issues, contributing and maintaining `complex<>', sanity checking
35909 and disbursement, configuration architecture, libio maintenance,
35910 and early math work.
35912 * Zdenek Dvorak for a new loop unroller and various fixes.
35914 * Richard Earnshaw for his ongoing work with the ARM.
35916 * David Edelsohn for his direction via the steering committee,
35917 ongoing work with the RS6000/PowerPC port, help cleaning up Haifa
35918 loop changes, doing the entire AIX port of libstdc++ with his bare
35919 hands, and for ensuring GCC properly keeps working on AIX.
35921 * Kevin Ediger for the floating point formatting of num_put::do_put
35924 * Phil Edwards for libstdc++ work including configuration hackery,
35925 documentation maintainer, chief breaker of the web pages, the
35926 occasional iostream bug fix, and work on shared library symbol
35929 * Paul Eggert for random hacking all over GCC.
35931 * Mark Elbrecht for various DJGPP improvements, and for libstdc++
35932 configuration support for locales and fstream-related fixes.
35934 * Vadim Egorov for libstdc++ fixes in strings, streambufs, and
35937 * Christian Ehrhardt for dealing with bug reports.
35939 * Ben Elliston for his work to move the Objective-C runtime into its
35940 own subdirectory and for his work on autoconf.
35942 * Revital Eres for work on the PowerPC 750CL port.
35944 * Marc Espie for OpenBSD support.
35946 * Doug Evans for much of the global optimization framework, arc,
35947 m32r, and SPARC work.
35949 * Christopher Faylor for his work on the Cygwin port and for caring
35950 and feeding the gcc.gnu.org box and saving its users tons of spam.
35952 * Fred Fish for BeOS support and Ada fixes.
35954 * Ivan Fontes Garcia for the Portuguese translation of the GCJ FAQ.
35956 * Peter Gerwinski for various bug fixes and the Pascal front end.
35958 * Kaveh R. Ghazi for his direction via the steering committee,
35959 amazing work to make `-W -Wall -W* -Werror' useful, and
35960 continuously testing GCC on a plethora of platforms. Kaveh
35961 extends his gratitude to the CAIP Center at Rutgers University for
35962 providing him with computing resources to work on Free Software
35963 since the late 1980s.
35965 * John Gilmore for a donation to the FSF earmarked improving GNU
35968 * Judy Goldberg for c++ contributions.
35970 * Torbjorn Granlund for various fixes and the c-torture testsuite,
35971 multiply- and divide-by-constant optimization, improved long long
35972 support, improved leaf function register allocation, and his
35973 direction via the steering committee.
35975 * Anthony Green for his `-Os' contributions and Java front end work.
35977 * Stu Grossman for gdb hacking, allowing GCJ developers to debug
35980 * Michael K. Gschwind contributed the port to the PDP-11.
35982 * Ron Guilmette implemented the `protoize' and `unprotoize' tools,
35983 the support for Dwarf symbolic debugging information, and much of
35984 the support for System V Release 4. He has also worked heavily on
35985 the Intel 386 and 860 support.
35987 * Mostafa Hagog for Swing Modulo Scheduling (SMS) and post reload
35990 * Bruno Haible for improvements in the runtime overhead for EH, new
35991 warnings and assorted bug fixes.
35993 * Andrew Haley for his amazing Java compiler and library efforts.
35995 * Chris Hanson assisted in making GCC work on HP-UX for the 9000
35998 * Michael Hayes for various thankless work he's done trying to get
35999 the c30/c40 ports functional. Lots of loop and unroll
36000 improvements and fixes.
36002 * Dara Hazeghi for wading through myriads of target-specific bug
36005 * Kate Hedstrom for staking the G77 folks with an initial testsuite.
36007 * Richard Henderson for his ongoing SPARC, alpha, ia32, and ia64
36008 work, loop opts, and generally fixing lots of old problems we've
36009 ignored for years, flow rewrite and lots of further stuff,
36010 including reviewing tons of patches.
36012 * Aldy Hernandez for working on the PowerPC port, SIMD support, and
36015 * Nobuyuki Hikichi of Software Research Associates, Tokyo,
36016 contributed the support for the Sony NEWS machine.
36018 * Kazu Hirata for caring and feeding the Renesas H8/300 port and
36021 * Katherine Holcomb for work on GNU Fortran.
36023 * Manfred Hollstein for his ongoing work to keep the m88k alive, lots
36024 of testing and bug fixing, particularly of GCC configury code.
36026 * Steve Holmgren for MachTen patches.
36028 * Jan Hubicka for his x86 port improvements.
36030 * Falk Hueffner for working on C and optimization bug reports.
36032 * Bernardo Innocenti for his m68k work, including merging of
36033 ColdFire improvements and uClinux support.
36035 * Christian Iseli for various bug fixes.
36037 * Kamil Iskra for general m68k hacking.
36039 * Lee Iverson for random fixes and MIPS testing.
36041 * Andreas Jaeger for testing and benchmarking of GCC and various bug
36044 * Jakub Jelinek for his SPARC work and sibling call optimizations as
36045 well as lots of bug fixes and test cases, and for improving the
36048 * Janis Johnson for ia64 testing and fixes, her quality improvement
36049 sidetracks, and web page maintenance.
36051 * Kean Johnston for SCO OpenServer support and various fixes.
36053 * Tim Josling for the sample language treelang based originally on
36054 Richard Kenner's "toy" language.
36056 * Nicolai Josuttis for additional libstdc++ documentation.
36058 * Klaus Kaempf for his ongoing work to make alpha-vms a viable
36061 * Steven G. Kargl for work on GNU Fortran.
36063 * David Kashtan of SRI adapted GCC to VMS.
36065 * Ryszard Kabatek for many, many libstdc++ bug fixes and
36066 optimizations of strings, especially member functions, and for
36069 * Geoffrey Keating for his ongoing work to make the PPC work for
36070 GNU/Linux and his automatic regression tester.
36072 * Brendan Kehoe for his ongoing work with G++ and for a lot of early
36073 work in just about every part of libstdc++.
36075 * Oliver M. Kellogg of Deutsche Aerospace contributed the port to the
36078 * Richard Kenner of the New York University Ultracomputer Research
36079 Laboratory wrote the machine descriptions for the AMD 29000, the
36080 DEC Alpha, the IBM RT PC, and the IBM RS/6000 as well as the
36081 support for instruction attributes. He also made changes to
36082 better support RISC processors including changes to common
36083 subexpression elimination, strength reduction, function calling
36084 sequence handling, and condition code support, in addition to
36085 generalizing the code for frame pointer elimination and delay slot
36086 scheduling. Richard Kenner was also the head maintainer of GCC
36089 * Mumit Khan for various contributions to the Cygwin and Mingw32
36090 ports and maintaining binary releases for Microsoft Windows hosts,
36091 and for massive libstdc++ porting work to Cygwin/Mingw32.
36093 * Robin Kirkham for cpu32 support.
36095 * Mark Klein for PA improvements.
36097 * Thomas Koenig for various bug fixes.
36099 * Bruce Korb for the new and improved fixincludes code.
36101 * Benjamin Kosnik for his G++ work and for leading the libstdc++-v3
36104 * Charles LaBrec contributed the support for the Integrated Solutions
36107 * Asher Langton and Mike Kumbera for contributing Cray pointer
36108 support to GNU Fortran, and for other GNU Fortran improvements.
36110 * Jeff Law for his direction via the steering committee,
36111 coordinating the entire egcs project and GCC 2.95, rolling out
36112 snapshots and releases, handling merges from GCC2, reviewing tons
36113 of patches that might have fallen through the cracks else, and
36114 random but extensive hacking.
36116 * Marc Lehmann for his direction via the steering committee and
36117 helping with analysis and improvements of x86 performance.
36119 * Victor Leikehman for work on GNU Fortran.
36121 * Ted Lemon wrote parts of the RTL reader and printer.
36123 * Kriang Lerdsuwanakij for C++ improvements including template as
36124 template parameter support, and many C++ fixes.
36126 * Warren Levy for tremendous work on libgcj (Java Runtime Library)
36127 and random work on the Java front end.
36129 * Alain Lichnewsky ported GCC to the MIPS CPU.
36131 * Oskar Liljeblad for hacking on AWT and his many Java bug reports
36134 * Robert Lipe for OpenServer support, new testsuites, testing, etc.
36136 * Chen Liqin for various S+core related fixes/improvement, and for
36137 maintaining the S+core port.
36139 * Weiwen Liu for testing and various bug fixes.
36141 * Manuel Lo'pez-Iba'n~ez for improving `-Wconversion' and many other
36142 diagnostics fixes and improvements.
36144 * Dave Love for his ongoing work with the Fortran front end and
36147 * Martin von Lo"wis for internal consistency checking infrastructure,
36148 various C++ improvements including namespace support, and tons of
36149 assistance with libstdc++/compiler merges.
36151 * H.J. Lu for his previous contributions to the steering committee,
36152 many x86 bug reports, prototype patches, and keeping the GNU/Linux
36155 * Greg McGary for random fixes and (someday) bounded pointers.
36157 * Andrew MacLeod for his ongoing work in building a real EH system,
36158 various code generation improvements, work on the global
36161 * Vladimir Makarov for hacking some ugly i960 problems, PowerPC
36162 hacking improvements to compile-time performance, overall
36163 knowledge and direction in the area of instruction scheduling, and
36164 design and implementation of the automaton based instruction
36167 * Bob Manson for his behind the scenes work on dejagnu.
36169 * Philip Martin for lots of libstdc++ string and vector iterator
36170 fixes and improvements, and string clean up and testsuites.
36172 * All of the Mauve project contributors, for Java test code.
36174 * Bryce McKinlay for numerous GCJ and libgcj fixes and improvements.
36176 * Adam Megacz for his work on the Microsoft Windows port of GCJ.
36178 * Michael Meissner for LRS framework, ia32, m32r, v850, m88k, MIPS,
36179 powerpc, haifa, ECOFF debug support, and other assorted hacking.
36181 * Jason Merrill for his direction via the steering committee and
36182 leading the G++ effort.
36184 * Martin Michlmayr for testing GCC on several architectures using the
36185 entire Debian archive.
36187 * David Miller for his direction via the steering committee, lots of
36188 SPARC work, improvements in jump.c and interfacing with the Linux
36191 * Gary Miller ported GCC to Charles River Data Systems machines.
36193 * Alfred Minarik for libstdc++ string and ios bug fixes, and turning
36194 the entire libstdc++ testsuite namespace-compatible.
36196 * Mark Mitchell for his direction via the steering committee,
36197 mountains of C++ work, load/store hoisting out of loops, alias
36198 analysis improvements, ISO C `restrict' support, and serving as
36199 release manager for GCC 3.x.
36201 * Alan Modra for various GNU/Linux bits and testing.
36203 * Toon Moene for his direction via the steering committee, Fortran
36204 maintenance, and his ongoing work to make us make Fortran run fast.
36206 * Jason Molenda for major help in the care and feeding of all the
36207 services on the gcc.gnu.org (formerly egcs.cygnus.com)
36208 machine--mail, web services, ftp services, etc etc. Doing all
36209 this work on scrap paper and the backs of envelopes would have
36212 * Catherine Moore for fixing various ugly problems we have sent her
36213 way, including the haifa bug which was killing the Alpha & PowerPC
36216 * Mike Moreton for his various Java patches.
36218 * David Mosberger-Tang for various Alpha improvements, and for the
36219 initial IA-64 port.
36221 * Stephen Moshier contributed the floating point emulator that
36222 assists in cross-compilation and permits support for floating
36223 point numbers wider than 64 bits and for ISO C99 support.
36225 * Bill Moyer for his behind the scenes work on various issues.
36227 * Philippe De Muyter for his work on the m68k port.
36229 * Joseph S. Myers for his work on the PDP-11 port, format checking
36230 and ISO C99 support, and continuous emphasis on (and contributions
36233 * Nathan Myers for his work on libstdc++-v3: architecture and
36234 authorship through the first three snapshots, including
36235 implementation of locale infrastructure, string, shadow C headers,
36236 and the initial project documentation (DESIGN, CHECKLIST, and so
36237 forth). Later, more work on MT-safe string and shadow headers.
36239 * Felix Natter for documentation on porting libstdc++.
36241 * Nathanael Nerode for cleaning up the configuration/build process.
36243 * NeXT, Inc. donated the front end that supports the Objective-C
36246 * Hans-Peter Nilsson for the CRIS and MMIX ports, improvements to
36247 the search engine setup, various documentation fixes and other
36250 * Geoff Noer for his work on getting cygwin native builds working.
36252 * Diego Novillo for his work on Tree SSA, OpenMP, SPEC performance
36253 tracking web pages, GIMPLE tuples, and assorted fixes.
36255 * David O'Brien for the FreeBSD/alpha, FreeBSD/AMD x86-64,
36256 FreeBSD/ARM, FreeBSD/PowerPC, and FreeBSD/SPARC64 ports and
36257 related infrastructure improvements.
36259 * Alexandre Oliva for various build infrastructure improvements,
36260 scripts and amazing testing work, including keeping libtool issues
36263 * Stefan Olsson for work on mt_alloc.
36265 * Melissa O'Neill for various NeXT fixes.
36267 * Rainer Orth for random MIPS work, including improvements to GCC's
36268 o32 ABI support, improvements to dejagnu's MIPS support, Java
36269 configuration clean-ups and porting work, etc.
36271 * Hartmut Penner for work on the s390 port.
36273 * Paul Petersen wrote the machine description for the Alliant FX/8.
36275 * Alexandre Petit-Bianco for implementing much of the Java compiler
36276 and continued Java maintainership.
36278 * Matthias Pfaller for major improvements to the NS32k port.
36280 * Gerald Pfeifer for his direction via the steering committee,
36281 pointing out lots of problems we need to solve, maintenance of the
36282 web pages, and taking care of documentation maintenance in general.
36284 * Andrew Pinski for processing bug reports by the dozen.
36286 * Ovidiu Predescu for his work on the Objective-C front end and
36289 * Jerry Quinn for major performance improvements in C++ formatted
36292 * Ken Raeburn for various improvements to checker, MIPS ports and
36293 various cleanups in the compiler.
36295 * Rolf W. Rasmussen for hacking on AWT.
36297 * David Reese of Sun Microsystems contributed to the Solaris on
36300 * Volker Reichelt for keeping up with the problem reports.
36302 * Joern Rennecke for maintaining the sh port, loop, regmove & reload
36305 * Loren J. Rittle for improvements to libstdc++-v3 including the
36306 FreeBSD port, threading fixes, thread-related configury changes,
36307 critical threading documentation, and solutions to really tricky
36308 I/O problems, as well as keeping GCC properly working on FreeBSD
36309 and continuous testing.
36311 * Craig Rodrigues for processing tons of bug reports.
36313 * Ola Ro"nnerup for work on mt_alloc.
36315 * Gavin Romig-Koch for lots of behind the scenes MIPS work.
36317 * David Ronis inspired and encouraged Craig to rewrite the G77
36318 documentation in texinfo format by contributing a first pass at a
36319 translation of the old `g77-0.5.16/f/DOC' file.
36321 * Ken Rose for fixes to GCC's delay slot filling code.
36323 * Paul Rubin wrote most of the preprocessor.
36325 * Pe'tur Runo'lfsson for major performance improvements in C++
36326 formatted I/O and large file support in C++ filebuf.
36328 * Chip Salzenberg for libstdc++ patches and improvements to locales,
36329 traits, Makefiles, libio, libtool hackery, and "long long" support.
36331 * Juha Sarlin for improvements to the H8 code generator.
36333 * Greg Satz assisted in making GCC work on HP-UX for the 9000 series
36336 * Roger Sayle for improvements to constant folding and GCC's RTL
36337 optimizers as well as for fixing numerous bugs.
36339 * Bradley Schatz for his work on the GCJ FAQ.
36341 * Peter Schauer wrote the code to allow debugging to work on the
36344 * William Schelter did most of the work on the Intel 80386 support.
36346 * Tobias Schlu"ter for work on GNU Fortran.
36348 * Bernd Schmidt for various code generation improvements and major
36349 work in the reload pass as well a serving as release manager for
36352 * Peter Schmid for constant testing of libstdc++--especially
36353 application testing, going above and beyond what was requested for
36354 the release criteria--and libstdc++ header file tweaks.
36356 * Jason Schroeder for jcf-dump patches.
36358 * Andreas Schwab for his work on the m68k port.
36360 * Lars Segerlund for work on GNU Fortran.
36362 * Joel Sherrill for his direction via the steering committee, RTEMS
36363 contributions and RTEMS testing.
36365 * Nathan Sidwell for many C++ fixes/improvements.
36367 * Jeffrey Siegal for helping RMS with the original design of GCC,
36368 some code which handles the parse tree and RTL data structures,
36369 constant folding and help with the original VAX & m68k ports.
36371 * Kenny Simpson for prompting libstdc++ fixes due to defect reports
36372 from the LWG (thereby keeping GCC in line with updates from the
36375 * Franz Sirl for his ongoing work with making the PPC port stable
36378 * Andrey Slepuhin for assorted AIX hacking.
36380 * Trevor Smigiel for contributing the SPU port.
36382 * Christopher Smith did the port for Convex machines.
36384 * Danny Smith for his major efforts on the Mingw (and Cygwin) ports.
36386 * Randy Smith finished the Sun FPA support.
36388 * Scott Snyder for queue, iterator, istream, and string fixes and
36389 libstdc++ testsuite entries. Also for providing the patch to G77
36390 to add rudimentary support for `INTEGER*1', `INTEGER*2', and
36393 * Brad Spencer for contributions to the GLIBCPP_FORCE_NEW technique.
36395 * Richard Stallman, for writing the original GCC and launching the
36398 * Jan Stein of the Chalmers Computer Society provided support for
36399 Genix, as well as part of the 32000 machine description.
36401 * Nigel Stephens for various mips16 related fixes/improvements.
36403 * Jonathan Stone wrote the machine description for the Pyramid
36406 * Graham Stott for various infrastructure improvements.
36408 * John Stracke for his Java HTTP protocol fixes.
36410 * Mike Stump for his Elxsi port, G++ contributions over the years
36411 and more recently his vxworks contributions
36413 * Jeff Sturm for Java porting help, bug fixes, and encouragement.
36415 * Shigeya Suzuki for this fixes for the bsdi platforms.
36417 * Ian Lance Taylor for his mips16 work, general configury hacking,
36420 * Holger Teutsch provided the support for the Clipper CPU.
36422 * Gary Thomas for his ongoing work to make the PPC work for
36425 * Philipp Thomas for random bug fixes throughout the compiler
36427 * Jason Thorpe for thread support in libstdc++ on NetBSD.
36429 * Kresten Krab Thorup wrote the run time support for the Objective-C
36430 language and the fantastic Java bytecode interpreter.
36432 * Michael Tiemann for random bug fixes, the first instruction
36433 scheduler, initial C++ support, function integration, NS32k, SPARC
36434 and M88k machine description work, delay slot scheduling.
36436 * Andreas Tobler for his work porting libgcj to Darwin.
36438 * Teemu Torma for thread safe exception handling support.
36440 * Leonard Tower wrote parts of the parser, RTL generator, and RTL
36441 definitions, and of the VAX machine description.
36443 * Daniel Towner and Hariharan Sandanagobalane contributed and
36444 maintain the picoChip port.
36446 * Tom Tromey for internationalization support and for his many Java
36447 contributions and libgcj maintainership.
36449 * Lassi Tuura for improvements to config.guess to determine HP
36452 * Petter Urkedal for libstdc++ CXXFLAGS, math, and algorithms fixes.
36454 * Andy Vaught for the design and initial implementation of the GNU
36457 * Brent Verner for work with the libstdc++ cshadow files and their
36458 associated configure steps.
36460 * Todd Vierling for contributions for NetBSD ports.
36462 * Jonathan Wakely for contributing libstdc++ Doxygen notes and XHTML
36465 * Dean Wakerley for converting the install documentation from HTML
36466 to texinfo in time for GCC 3.0.
36468 * Krister Walfridsson for random bug fixes.
36470 * Feng Wang for contributions to GNU Fortran.
36472 * Stephen M. Webb for time and effort on making libstdc++ shadow
36473 files work with the tricky Solaris 8+ headers, and for pushing the
36474 build-time header tree.
36476 * John Wehle for various improvements for the x86 code generator,
36477 related infrastructure improvements to help x86 code generation,
36478 value range propagation and other work, WE32k port.
36480 * Ulrich Weigand for work on the s390 port.
36482 * Zack Weinberg for major work on cpplib and various other bug fixes.
36484 * Matt Welsh for help with Linux Threads support in GCJ.
36486 * Urban Widmark for help fixing java.io.
36488 * Mark Wielaard for new Java library code and his work integrating
36491 * Dale Wiles helped port GCC to the Tahoe.
36493 * Bob Wilson from Tensilica, Inc. for the Xtensa port.
36495 * Jim Wilson for his direction via the steering committee, tackling
36496 hard problems in various places that nobody else wanted to work
36497 on, strength reduction and other loop optimizations.
36499 * Paul Woegerer and Tal Agmon for the CRX port.
36501 * Carlo Wood for various fixes.
36503 * Tom Wood for work on the m88k port.
36505 * Canqun Yang for work on GNU Fortran.
36507 * Masanobu Yuhara of Fujitsu Laboratories implemented the machine
36508 description for the Tron architecture (specifically, the Gmicro).
36510 * Kevin Zachmann helped port GCC to the Tahoe.
36512 * Ayal Zaks for Swing Modulo Scheduling (SMS).
36514 * Xiaoqiang Zhang for work on GNU Fortran.
36516 * Gilles Zunino for help porting Java to Irix.
36519 The following people are recognized for their contributions to GNAT,
36520 the Ada front end of GCC:
36523 * Romain Berrendonner
36573 * Hristian Kirtchev
36616 The following people are recognized for their contributions of new
36617 features, bug reports, testing and integration of classpath/libgcj for
36619 * Lillian Angel for `JTree' implementation and lots Free Swing
36620 additions and bug fixes.
36622 * Wolfgang Baer for `GapContent' bug fixes.
36624 * Anthony Balkissoon for `JList', Free Swing 1.5 updates and mouse
36625 event fixes, lots of Free Swing work including `JTable' editing.
36627 * Stuart Ballard for RMI constant fixes.
36629 * Goffredo Baroncelli for `HTTPURLConnection' fixes.
36631 * Gary Benson for `MessageFormat' fixes.
36633 * Daniel Bonniot for `Serialization' fixes.
36635 * Chris Burdess for lots of gnu.xml and http protocol fixes, `StAX'
36636 and `DOM xml:id' support.
36638 * Ka-Hing Cheung for `TreePath' and `TreeSelection' fixes.
36640 * Archie Cobbs for build fixes, VM interface updates,
36641 `URLClassLoader' updates.
36643 * Kelley Cook for build fixes.
36645 * Martin Cordova for Suggestions for better `SocketTimeoutException'.
36647 * David Daney for `BitSet' bug fixes, `HttpURLConnection' rewrite
36650 * Thomas Fitzsimmons for lots of upgrades to the gtk+ AWT and Cairo
36651 2D support. Lots of imageio framework additions, lots of AWT and
36652 Free Swing bug fixes.
36654 * Jeroen Frijters for `ClassLoader' and nio cleanups, serialization
36655 fixes, better `Proxy' support, bug fixes and IKVM integration.
36657 * Santiago Gala for `AccessControlContext' fixes.
36659 * Nicolas Geoffray for `VMClassLoader' and `AccessController'
36662 * David Gilbert for `basic' and `metal' icon and plaf support and
36663 lots of documenting, Lots of Free Swing and metal theme additions.
36664 `MetalIconFactory' implementation.
36666 * Anthony Green for `MIDI' framework, `ALSA' and `DSSI' providers.
36668 * Andrew Haley for `Serialization' and `URLClassLoader' fixes, gcj
36671 * Kim Ho for `JFileChooser' implementation.
36673 * Andrew John Hughes for `Locale' and net fixes, URI RFC2986
36674 updates, `Serialization' fixes, `Properties' XML support and
36675 generic branch work, VMIntegration guide update.
36677 * Bastiaan Huisman for `TimeZone' bug fixing.
36679 * Andreas Jaeger for mprec updates.
36681 * Paul Jenner for better `-Werror' support.
36683 * Ito Kazumitsu for `NetworkInterface' implementation and updates.
36685 * Roman Kennke for `BoxLayout', `GrayFilter' and `SplitPane', plus
36686 bug fixes all over. Lots of Free Swing work including styled text.
36688 * Simon Kitching for `String' cleanups and optimization suggestions.
36690 * Michael Koch for configuration fixes, `Locale' updates, bug and
36693 * Guilhem Lavaux for configuration, thread and channel fixes and
36694 Kaffe integration. JCL native `Pointer' updates. Logger bug fixes.
36696 * David Lichteblau for JCL support library global/local reference
36699 * Aaron Luchko for JDWP updates and documentation fixes.
36701 * Ziga Mahkovec for `Graphics2D' upgraded to Cairo 0.5 and new regex
36704 * Sven de Marothy for BMP imageio support, CSS and `TextLayout'
36705 fixes. `GtkImage' rewrite, 2D, awt, free swing and date/time fixes
36706 and implementing the Qt4 peers.
36708 * Casey Marshall for crypto algorithm fixes, `FileChannel' lock,
36709 `SystemLogger' and `FileHandler' rotate implementations, NIO
36710 `FileChannel.map' support, security and policy updates.
36712 * Bryce McKinlay for RMI work.
36714 * Audrius Meskauskas for lots of Free Corba, RMI and HTML work plus
36715 testing and documenting.
36717 * Kalle Olavi Niemitalo for build fixes.
36719 * Rainer Orth for build fixes.
36721 * Andrew Overholt for `File' locking fixes.
36723 * Ingo Proetel for `Image', `Logger' and `URLClassLoader' updates.
36725 * Olga Rodimina for `MenuSelectionManager' implementation.
36727 * Jan Roehrich for `BasicTreeUI' and `JTree' fixes.
36729 * Julian Scheid for documentation updates and gjdoc support.
36731 * Christian Schlichtherle for zip fixes and cleanups.
36733 * Robert Schuster for documentation updates and beans fixes,
36734 `TreeNode' enumerations and `ActionCommand' and various fixes, XML
36735 and URL, AWT and Free Swing bug fixes.
36737 * Keith Seitz for lots of JDWP work.
36739 * Christian Thalinger for 64-bit cleanups, Configuration and VM
36740 interface fixes and `CACAO' integration, `fdlibm' updates.
36742 * Gael Thomas for `VMClassLoader' boot packages support suggestions.
36744 * Andreas Tobler for Darwin and Solaris testing and fixing, `Qt4'
36745 support for Darwin/OS X, `Graphics2D' support, `gtk+' updates.
36747 * Dalibor Topic for better `DEBUG' support, build cleanups and Kaffe
36748 integration. `Qt4' build infrastructure, `SHA1PRNG' and
36749 `GdkPixbugDecoder' updates.
36751 * Tom Tromey for Eclipse integration, generics work, lots of bug
36752 fixes and gcj integration including coordinating The Big Merge.
36754 * Mark Wielaard for bug fixes, packaging and release management,
36755 `Clipboard' implementation, system call interrupts and network
36756 timeouts and `GdkPixpufDecoder' fixes.
36759 In addition to the above, all of which also contributed time and
36760 energy in testing GCC, we would like to thank the following for their
36761 contributions to testing:
36763 * Michael Abd-El-Malek
36773 * David Billinghurst
36777 * Stephane Bortzmeyer
36787 * Bradford Castalia
36809 * Charles-Antoine Gauthier
36831 * Kevin B. Hendricks
36835 * Christian Joensson
36843 * Anand Krishnaswamy
36845 * A. O. V. Le Blanc
36909 * Pedro A. M. Vazquez
36919 And finally we'd like to thank everyone who uses the compiler, provides
36920 feedback and generally reminds us why we're doing this work in the first
36924 File: gccint.info, Node: Option Index, Next: Concept Index, Prev: Contributors, Up: Top
36929 GCC's command line options are indexed here without any initial `-' or
36930 `--'. Where an option has both positive and negative forms (such as
36931 `-fOPTION' and `-fno-OPTION'), relevant entries in the manual are
36932 indexed under the most appropriate form; it may sometimes be useful to
36933 look up both forms.
36938 * msoft-float: Soft float library routines.
36942 File: gccint.info, Node: Concept Index, Prev: Option Index, Up: Top
36950 * ! in constraint: Multi-Alternative. (line 47)
36951 * # in constraint: Modifiers. (line 67)
36952 * # in template: Output Template. (line 66)
36953 * #pragma: Misc. (line 381)
36954 * % in constraint: Modifiers. (line 45)
36955 * % in GTY option: GTY Options. (line 18)
36956 * % in template: Output Template. (line 6)
36957 * & in constraint: Modifiers. (line 25)
36958 * ( <1>: Logical Operators. (line 131)
36959 * ( <2>: GIMPLE_CALL. (line 63)
36960 * ( <3>: Logical Operators. (line 111)
36961 * ( <4>: Sections. (line 160)
36962 * ( <5>: GIMPLE_ASM. (line 27)
36963 * ( <6>: Logical Operators. (line 124)
36964 * (: GIMPLE_ASM. (line 21)
36965 * (nil): RTL Objects. (line 73)
36966 * * <1>: Host Common. (line 17)
36967 * *: Scheduling. (line 246)
36968 * * in constraint: Modifiers. (line 72)
36969 * * in template: Output Statement. (line 29)
36970 * *gimple_assign_lhs_ptr: GIMPLE_ASSIGN. (line 54)
36971 * *gimple_assign_rhs1_ptr: GIMPLE_ASSIGN. (line 60)
36972 * *gimple_assign_rhs2_ptr: GIMPLE_ASSIGN. (line 81)
36973 * *gimple_call_arg_ptr: GIMPLE_CALL. (line 71)
36974 * *gimple_call_lhs_ptr: GIMPLE_CALL. (line 32)
36975 * *gimple_catch_types_ptr: GIMPLE_CATCH. (line 16)
36976 * *gimple_cdt_location_ptr: GIMPLE_CHANGE_DYNAMIC_TYPE.
36978 * *gimple_cdt_new_type_ptr: GIMPLE_CHANGE_DYNAMIC_TYPE.
36980 * *gimple_eh_filter_types_ptr: GIMPLE_EH_FILTER. (line 15)
36981 * *gimple_omp_critical_name_ptr: GIMPLE_OMP_CRITICAL.
36983 * *gimple_omp_for_clauses_ptr: GIMPLE_OMP_FOR. (line 23)
36984 * *gimple_omp_for_final_ptr: GIMPLE_OMP_FOR. (line 54)
36985 * *gimple_omp_for_incr_ptr: GIMPLE_OMP_FOR. (line 64)
36986 * *gimple_omp_for_index_ptr: GIMPLE_OMP_FOR. (line 34)
36987 * *gimple_omp_for_initial_ptr: GIMPLE_OMP_FOR. (line 44)
36988 * *gimple_omp_parallel_child_fn_ptr: GIMPLE_OMP_PARALLEL.
36990 * *gimple_omp_parallel_clauses_ptr: GIMPLE_OMP_PARALLEL.
36992 * *gimple_omp_parallel_data_arg_ptr: GIMPLE_OMP_PARALLEL.
36994 * *gimple_omp_sections_clauses_ptr: GIMPLE_OMP_SECTIONS.
36996 * *gimple_omp_sections_control_ptr: GIMPLE_OMP_SECTIONS.
36998 * *gimple_omp_single_clauses_ptr: GIMPLE_OMP_SINGLE. (line 17)
36999 * *gimple_op_ptr: Manipulating GIMPLE statements.
37001 * *gimple_ops <1>: Logical Operators. (line 82)
37002 * *gimple_ops: Manipulating GIMPLE statements.
37004 * *gimple_phi_result_ptr: GIMPLE_PHI. (line 22)
37005 * *gsi_stmt_ptr: Sequence iterators. (line 80)
37006 * *TARGET_GET_PCH_VALIDITY: PCH Target. (line 7)
37007 * + in constraint: Modifiers. (line 12)
37008 * -fsection-anchors <1>: Special Accessors. (line 106)
37009 * -fsection-anchors: Anchored Addresses. (line 6)
37010 * /c in RTL dump: Flags. (line 234)
37011 * /f in RTL dump: Flags. (line 242)
37012 * /i in RTL dump: Flags. (line 294)
37013 * /j in RTL dump: Flags. (line 309)
37014 * /s in RTL dump: Flags. (line 258)
37015 * /u in RTL dump: Flags. (line 319)
37016 * /v in RTL dump: Flags. (line 351)
37017 * 0 in constraint: Simple Constraints. (line 120)
37018 * < in constraint: Simple Constraints. (line 48)
37019 * = in constraint: Modifiers. (line 8)
37020 * > in constraint: Simple Constraints. (line 52)
37021 * ? in constraint: Multi-Alternative. (line 41)
37022 * \: Output Template. (line 46)
37023 * __absvdi2: Integer library routines.
37025 * __absvsi2: Integer library routines.
37027 * __addda3: Fixed-point fractional library routines.
37029 * __adddf3: Soft float library routines.
37031 * __adddq3: Fixed-point fractional library routines.
37033 * __addha3: Fixed-point fractional library routines.
37035 * __addhq3: Fixed-point fractional library routines.
37037 * __addqq3: Fixed-point fractional library routines.
37039 * __addsa3: Fixed-point fractional library routines.
37041 * __addsf3: Soft float library routines.
37043 * __addsq3: Fixed-point fractional library routines.
37045 * __addta3: Fixed-point fractional library routines.
37047 * __addtf3: Soft float library routines.
37049 * __adduda3: Fixed-point fractional library routines.
37051 * __addudq3: Fixed-point fractional library routines.
37053 * __adduha3: Fixed-point fractional library routines.
37055 * __adduhq3: Fixed-point fractional library routines.
37057 * __adduqq3: Fixed-point fractional library routines.
37059 * __addusa3: Fixed-point fractional library routines.
37061 * __addusq3: Fixed-point fractional library routines.
37063 * __adduta3: Fixed-point fractional library routines.
37065 * __addvdi3: Integer library routines.
37067 * __addvsi3: Integer library routines.
37069 * __addxf3: Soft float library routines.
37071 * __ashlda3: Fixed-point fractional library routines.
37073 * __ashldi3: Integer library routines.
37075 * __ashldq3: Fixed-point fractional library routines.
37077 * __ashlha3: Fixed-point fractional library routines.
37079 * __ashlhq3: Fixed-point fractional library routines.
37081 * __ashlqq3: Fixed-point fractional library routines.
37083 * __ashlsa3: Fixed-point fractional library routines.
37085 * __ashlsi3: Integer library routines.
37087 * __ashlsq3: Fixed-point fractional library routines.
37089 * __ashlta3: Fixed-point fractional library routines.
37091 * __ashlti3: Integer library routines.
37093 * __ashluda3: Fixed-point fractional library routines.
37095 * __ashludq3: Fixed-point fractional library routines.
37097 * __ashluha3: Fixed-point fractional library routines.
37099 * __ashluhq3: Fixed-point fractional library routines.
37101 * __ashluqq3: Fixed-point fractional library routines.
37103 * __ashlusa3: Fixed-point fractional library routines.
37105 * __ashlusq3: Fixed-point fractional library routines.
37107 * __ashluta3: Fixed-point fractional library routines.
37109 * __ashrda3: Fixed-point fractional library routines.
37111 * __ashrdi3: Integer library routines.
37113 * __ashrdq3: Fixed-point fractional library routines.
37115 * __ashrha3: Fixed-point fractional library routines.
37117 * __ashrhq3: Fixed-point fractional library routines.
37119 * __ashrqq3: Fixed-point fractional library routines.
37121 * __ashrsa3: Fixed-point fractional library routines.
37123 * __ashrsi3: Integer library routines.
37125 * __ashrsq3: Fixed-point fractional library routines.
37127 * __ashrta3: Fixed-point fractional library routines.
37129 * __ashrti3: Integer library routines.
37131 * __bid_adddd3: Decimal float library routines.
37133 * __bid_addsd3: Decimal float library routines.
37135 * __bid_addtd3: Decimal float library routines.
37137 * __bid_divdd3: Decimal float library routines.
37139 * __bid_divsd3: Decimal float library routines.
37141 * __bid_divtd3: Decimal float library routines.
37143 * __bid_eqdd2: Decimal float library routines.
37145 * __bid_eqsd2: Decimal float library routines.
37147 * __bid_eqtd2: Decimal float library routines.
37149 * __bid_extendddtd2: Decimal float library routines.
37151 * __bid_extendddtf: Decimal float library routines.
37153 * __bid_extendddxf: Decimal float library routines.
37155 * __bid_extenddfdd: Decimal float library routines.
37157 * __bid_extenddftd: Decimal float library routines.
37159 * __bid_extendsddd2: Decimal float library routines.
37161 * __bid_extendsddf: Decimal float library routines.
37163 * __bid_extendsdtd2: Decimal float library routines.
37165 * __bid_extendsdtf: Decimal float library routines.
37167 * __bid_extendsdxf: Decimal float library routines.
37169 * __bid_extendsfdd: Decimal float library routines.
37171 * __bid_extendsfsd: Decimal float library routines.
37173 * __bid_extendsftd: Decimal float library routines.
37175 * __bid_extendtftd: Decimal float library routines.
37177 * __bid_extendxftd: Decimal float library routines.
37179 * __bid_fixdddi: Decimal float library routines.
37181 * __bid_fixddsi: Decimal float library routines.
37183 * __bid_fixsddi: Decimal float library routines.
37185 * __bid_fixsdsi: Decimal float library routines.
37187 * __bid_fixtddi: Decimal float library routines.
37189 * __bid_fixtdsi: Decimal float library routines.
37191 * __bid_fixunsdddi: Decimal float library routines.
37193 * __bid_fixunsddsi: Decimal float library routines.
37195 * __bid_fixunssddi: Decimal float library routines.
37197 * __bid_fixunssdsi: Decimal float library routines.
37199 * __bid_fixunstddi: Decimal float library routines.
37201 * __bid_fixunstdsi: Decimal float library routines.
37203 * __bid_floatdidd: Decimal float library routines.
37205 * __bid_floatdisd: Decimal float library routines.
37207 * __bid_floatditd: Decimal float library routines.
37209 * __bid_floatsidd: Decimal float library routines.
37211 * __bid_floatsisd: Decimal float library routines.
37213 * __bid_floatsitd: Decimal float library routines.
37215 * __bid_floatunsdidd: Decimal float library routines.
37217 * __bid_floatunsdisd: Decimal float library routines.
37219 * __bid_floatunsditd: Decimal float library routines.
37221 * __bid_floatunssidd: Decimal float library routines.
37223 * __bid_floatunssisd: Decimal float library routines.
37225 * __bid_floatunssitd: Decimal float library routines.
37227 * __bid_gedd2: Decimal float library routines.
37229 * __bid_gesd2: Decimal float library routines.
37231 * __bid_getd2: Decimal float library routines.
37233 * __bid_gtdd2: Decimal float library routines.
37235 * __bid_gtsd2: Decimal float library routines.
37237 * __bid_gttd2: Decimal float library routines.
37239 * __bid_ledd2: Decimal float library routines.
37241 * __bid_lesd2: Decimal float library routines.
37243 * __bid_letd2: Decimal float library routines.
37245 * __bid_ltdd2: Decimal float library routines.
37247 * __bid_ltsd2: Decimal float library routines.
37249 * __bid_lttd2: Decimal float library routines.
37251 * __bid_muldd3: Decimal float library routines.
37253 * __bid_mulsd3: Decimal float library routines.
37255 * __bid_multd3: Decimal float library routines.
37257 * __bid_nedd2: Decimal float library routines.
37259 * __bid_negdd2: Decimal float library routines.
37261 * __bid_negsd2: Decimal float library routines.
37263 * __bid_negtd2: Decimal float library routines.
37265 * __bid_nesd2: Decimal float library routines.
37267 * __bid_netd2: Decimal float library routines.
37269 * __bid_subdd3: Decimal float library routines.
37271 * __bid_subsd3: Decimal float library routines.
37273 * __bid_subtd3: Decimal float library routines.
37275 * __bid_truncdddf: Decimal float library routines.
37277 * __bid_truncddsd2: Decimal float library routines.
37279 * __bid_truncddsf: Decimal float library routines.
37281 * __bid_truncdfsd: Decimal float library routines.
37283 * __bid_truncsdsf: Decimal float library routines.
37285 * __bid_trunctddd2: Decimal float library routines.
37287 * __bid_trunctddf: Decimal float library routines.
37289 * __bid_trunctdsd2: Decimal float library routines.
37291 * __bid_trunctdsf: Decimal float library routines.
37293 * __bid_trunctdtf: Decimal float library routines.
37295 * __bid_trunctdxf: Decimal float library routines.
37297 * __bid_trunctfdd: Decimal float library routines.
37299 * __bid_trunctfsd: Decimal float library routines.
37301 * __bid_truncxfdd: Decimal float library routines.
37303 * __bid_truncxfsd: Decimal float library routines.
37305 * __bid_unorddd2: Decimal float library routines.
37307 * __bid_unordsd2: Decimal float library routines.
37309 * __bid_unordtd2: Decimal float library routines.
37311 * __bswapdi2: Integer library routines.
37313 * __bswapsi2: Integer library routines.
37315 * __builtin_args_info: Varargs. (line 42)
37316 * __builtin_classify_type: Varargs. (line 76)
37317 * __builtin_next_arg: Varargs. (line 66)
37318 * __builtin_saveregs: Varargs. (line 24)
37319 * __clear_cache: Miscellaneous routines.
37321 * __clzdi2: Integer library routines.
37323 * __clzsi2: Integer library routines.
37325 * __clzti2: Integer library routines.
37327 * __cmpda2: Fixed-point fractional library routines.
37329 * __cmpdf2: Soft float library routines.
37331 * __cmpdi2: Integer library routines.
37333 * __cmpdq2: Fixed-point fractional library routines.
37335 * __cmpha2: Fixed-point fractional library routines.
37337 * __cmphq2: Fixed-point fractional library routines.
37339 * __cmpqq2: Fixed-point fractional library routines.
37341 * __cmpsa2: Fixed-point fractional library routines.
37343 * __cmpsf2: Soft float library routines.
37345 * __cmpsq2: Fixed-point fractional library routines.
37347 * __cmpta2: Fixed-point fractional library routines.
37349 * __cmptf2: Soft float library routines.
37351 * __cmpti2: Integer library routines.
37353 * __cmpuda2: Fixed-point fractional library routines.
37355 * __cmpudq2: Fixed-point fractional library routines.
37357 * __cmpuha2: Fixed-point fractional library routines.
37359 * __cmpuhq2: Fixed-point fractional library routines.
37361 * __cmpuqq2: Fixed-point fractional library routines.
37363 * __cmpusa2: Fixed-point fractional library routines.
37365 * __cmpusq2: Fixed-point fractional library routines.
37367 * __cmputa2: Fixed-point fractional library routines.
37369 * __CTOR_LIST__: Initialization. (line 25)
37370 * __ctzdi2: Integer library routines.
37372 * __ctzsi2: Integer library routines.
37374 * __ctzti2: Integer library routines.
37376 * __divda3: Fixed-point fractional library routines.
37378 * __divdc3: Soft float library routines.
37380 * __divdf3: Soft float library routines.
37382 * __divdi3: Integer library routines.
37384 * __divdq3: Fixed-point fractional library routines.
37386 * __divha3: Fixed-point fractional library routines.
37388 * __divhq3: Fixed-point fractional library routines.
37390 * __divqq3: Fixed-point fractional library routines.
37392 * __divsa3: Fixed-point fractional library routines.
37394 * __divsc3: Soft float library routines.
37396 * __divsf3: Soft float library routines.
37398 * __divsi3: Integer library routines.
37400 * __divsq3: Fixed-point fractional library routines.
37402 * __divta3: Fixed-point fractional library routines.
37404 * __divtc3: Soft float library routines.
37406 * __divtf3: Soft float library routines.
37408 * __divti3: Integer library routines.
37410 * __divxc3: Soft float library routines.
37412 * __divxf3: Soft float library routines.
37414 * __dpd_adddd3: Decimal float library routines.
37416 * __dpd_addsd3: Decimal float library routines.
37418 * __dpd_addtd3: Decimal float library routines.
37420 * __dpd_divdd3: Decimal float library routines.
37422 * __dpd_divsd3: Decimal float library routines.
37424 * __dpd_divtd3: Decimal float library routines.
37426 * __dpd_eqdd2: Decimal float library routines.
37428 * __dpd_eqsd2: Decimal float library routines.
37430 * __dpd_eqtd2: Decimal float library routines.
37432 * __dpd_extendddtd2: Decimal float library routines.
37434 * __dpd_extendddtf: Decimal float library routines.
37436 * __dpd_extendddxf: Decimal float library routines.
37438 * __dpd_extenddfdd: Decimal float library routines.
37440 * __dpd_extenddftd: Decimal float library routines.
37442 * __dpd_extendsddd2: Decimal float library routines.
37444 * __dpd_extendsddf: Decimal float library routines.
37446 * __dpd_extendsdtd2: Decimal float library routines.
37448 * __dpd_extendsdtf: Decimal float library routines.
37450 * __dpd_extendsdxf: Decimal float library routines.
37452 * __dpd_extendsfdd: Decimal float library routines.
37454 * __dpd_extendsfsd: Decimal float library routines.
37456 * __dpd_extendsftd: Decimal float library routines.
37458 * __dpd_extendtftd: Decimal float library routines.
37460 * __dpd_extendxftd: Decimal float library routines.
37462 * __dpd_fixdddi: Decimal float library routines.
37464 * __dpd_fixddsi: Decimal float library routines.
37466 * __dpd_fixsddi: Decimal float library routines.
37468 * __dpd_fixsdsi: Decimal float library routines.
37470 * __dpd_fixtddi: Decimal float library routines.
37472 * __dpd_fixtdsi: Decimal float library routines.
37474 * __dpd_fixunsdddi: Decimal float library routines.
37476 * __dpd_fixunsddsi: Decimal float library routines.
37478 * __dpd_fixunssddi: Decimal float library routines.
37480 * __dpd_fixunssdsi: Decimal float library routines.
37482 * __dpd_fixunstddi: Decimal float library routines.
37484 * __dpd_fixunstdsi: Decimal float library routines.
37486 * __dpd_floatdidd: Decimal float library routines.
37488 * __dpd_floatdisd: Decimal float library routines.
37490 * __dpd_floatditd: Decimal float library routines.
37492 * __dpd_floatsidd: Decimal float library routines.
37494 * __dpd_floatsisd: Decimal float library routines.
37496 * __dpd_floatsitd: Decimal float library routines.
37498 * __dpd_floatunsdidd: Decimal float library routines.
37500 * __dpd_floatunsdisd: Decimal float library routines.
37502 * __dpd_floatunsditd: Decimal float library routines.
37504 * __dpd_floatunssidd: Decimal float library routines.
37506 * __dpd_floatunssisd: Decimal float library routines.
37508 * __dpd_floatunssitd: Decimal float library routines.
37510 * __dpd_gedd2: Decimal float library routines.
37512 * __dpd_gesd2: Decimal float library routines.
37514 * __dpd_getd2: Decimal float library routines.
37516 * __dpd_gtdd2: Decimal float library routines.
37518 * __dpd_gtsd2: Decimal float library routines.
37520 * __dpd_gttd2: Decimal float library routines.
37522 * __dpd_ledd2: Decimal float library routines.
37524 * __dpd_lesd2: Decimal float library routines.
37526 * __dpd_letd2: Decimal float library routines.
37528 * __dpd_ltdd2: Decimal float library routines.
37530 * __dpd_ltsd2: Decimal float library routines.
37532 * __dpd_lttd2: Decimal float library routines.
37534 * __dpd_muldd3: Decimal float library routines.
37536 * __dpd_mulsd3: Decimal float library routines.
37538 * __dpd_multd3: Decimal float library routines.
37540 * __dpd_nedd2: Decimal float library routines.
37542 * __dpd_negdd2: Decimal float library routines.
37544 * __dpd_negsd2: Decimal float library routines.
37546 * __dpd_negtd2: Decimal float library routines.
37548 * __dpd_nesd2: Decimal float library routines.
37550 * __dpd_netd2: Decimal float library routines.
37552 * __dpd_subdd3: Decimal float library routines.
37554 * __dpd_subsd3: Decimal float library routines.
37556 * __dpd_subtd3: Decimal float library routines.
37558 * __dpd_truncdddf: Decimal float library routines.
37560 * __dpd_truncddsd2: Decimal float library routines.
37562 * __dpd_truncddsf: Decimal float library routines.
37564 * __dpd_truncdfsd: Decimal float library routines.
37566 * __dpd_truncsdsf: Decimal float library routines.
37568 * __dpd_trunctddd2: Decimal float library routines.
37570 * __dpd_trunctddf: Decimal float library routines.
37572 * __dpd_trunctdsd2: Decimal float library routines.
37574 * __dpd_trunctdsf: Decimal float library routines.
37576 * __dpd_trunctdtf: Decimal float library routines.
37578 * __dpd_trunctdxf: Decimal float library routines.
37580 * __dpd_trunctfdd: Decimal float library routines.
37582 * __dpd_trunctfsd: Decimal float library routines.
37584 * __dpd_truncxfdd: Decimal float library routines.
37586 * __dpd_truncxfsd: Decimal float library routines.
37588 * __dpd_unorddd2: Decimal float library routines.
37590 * __dpd_unordsd2: Decimal float library routines.
37592 * __dpd_unordtd2: Decimal float library routines.
37594 * __DTOR_LIST__: Initialization. (line 25)
37595 * __eqdf2: Soft float library routines.
37597 * __eqsf2: Soft float library routines.
37599 * __eqtf2: Soft float library routines.
37601 * __extenddftf2: Soft float library routines.
37603 * __extenddfxf2: Soft float library routines.
37605 * __extendsfdf2: Soft float library routines.
37607 * __extendsftf2: Soft float library routines.
37609 * __extendsfxf2: Soft float library routines.
37611 * __ffsdi2: Integer library routines.
37613 * __ffsti2: Integer library routines.
37615 * __fixdfdi: Soft float library routines.
37617 * __fixdfsi: Soft float library routines.
37619 * __fixdfti: Soft float library routines.
37621 * __fixsfdi: Soft float library routines.
37623 * __fixsfsi: Soft float library routines.
37625 * __fixsfti: Soft float library routines.
37627 * __fixtfdi: Soft float library routines.
37629 * __fixtfsi: Soft float library routines.
37631 * __fixtfti: Soft float library routines.
37633 * __fixunsdfdi: Soft float library routines.
37635 * __fixunsdfsi: Soft float library routines.
37637 * __fixunsdfti: Soft float library routines.
37639 * __fixunssfdi: Soft float library routines.
37641 * __fixunssfsi: Soft float library routines.
37643 * __fixunssfti: Soft float library routines.
37645 * __fixunstfdi: Soft float library routines.
37647 * __fixunstfsi: Soft float library routines.
37649 * __fixunstfti: Soft float library routines.
37651 * __fixunsxfdi: Soft float library routines.
37653 * __fixunsxfsi: Soft float library routines.
37655 * __fixunsxfti: Soft float library routines.
37657 * __fixxfdi: Soft float library routines.
37659 * __fixxfsi: Soft float library routines.
37661 * __fixxfti: Soft float library routines.
37663 * __floatdidf: Soft float library routines.
37665 * __floatdisf: Soft float library routines.
37667 * __floatditf: Soft float library routines.
37669 * __floatdixf: Soft float library routines.
37671 * __floatsidf: Soft float library routines.
37673 * __floatsisf: Soft float library routines.
37675 * __floatsitf: Soft float library routines.
37677 * __floatsixf: Soft float library routines.
37679 * __floattidf: Soft float library routines.
37681 * __floattisf: Soft float library routines.
37683 * __floattitf: Soft float library routines.
37685 * __floattixf: Soft float library routines.
37687 * __floatundidf: Soft float library routines.
37689 * __floatundisf: Soft float library routines.
37691 * __floatunditf: Soft float library routines.
37693 * __floatundixf: Soft float library routines.
37695 * __floatunsidf: Soft float library routines.
37697 * __floatunsisf: Soft float library routines.
37699 * __floatunsitf: Soft float library routines.
37701 * __floatunsixf: Soft float library routines.
37703 * __floatuntidf: Soft float library routines.
37705 * __floatuntisf: Soft float library routines.
37707 * __floatuntitf: Soft float library routines.
37709 * __floatuntixf: Soft float library routines.
37711 * __fractdadf: Fixed-point fractional library routines.
37713 * __fractdadi: Fixed-point fractional library routines.
37715 * __fractdadq: Fixed-point fractional library routines.
37717 * __fractdaha2: Fixed-point fractional library routines.
37719 * __fractdahi: Fixed-point fractional library routines.
37721 * __fractdahq: Fixed-point fractional library routines.
37723 * __fractdaqi: Fixed-point fractional library routines.
37725 * __fractdaqq: Fixed-point fractional library routines.
37727 * __fractdasa2: Fixed-point fractional library routines.
37729 * __fractdasf: Fixed-point fractional library routines.
37731 * __fractdasi: Fixed-point fractional library routines.
37733 * __fractdasq: Fixed-point fractional library routines.
37735 * __fractdata2: Fixed-point fractional library routines.
37737 * __fractdati: Fixed-point fractional library routines.
37739 * __fractdauda: Fixed-point fractional library routines.
37741 * __fractdaudq: Fixed-point fractional library routines.
37743 * __fractdauha: Fixed-point fractional library routines.
37745 * __fractdauhq: Fixed-point fractional library routines.
37747 * __fractdauqq: Fixed-point fractional library routines.
37749 * __fractdausa: Fixed-point fractional library routines.
37751 * __fractdausq: Fixed-point fractional library routines.
37753 * __fractdauta: Fixed-point fractional library routines.
37755 * __fractdfda: Fixed-point fractional library routines.
37757 * __fractdfdq: Fixed-point fractional library routines.
37759 * __fractdfha: Fixed-point fractional library routines.
37761 * __fractdfhq: Fixed-point fractional library routines.
37763 * __fractdfqq: Fixed-point fractional library routines.
37765 * __fractdfsa: Fixed-point fractional library routines.
37767 * __fractdfsq: Fixed-point fractional library routines.
37769 * __fractdfta: Fixed-point fractional library routines.
37771 * __fractdfuda: Fixed-point fractional library routines.
37773 * __fractdfudq: Fixed-point fractional library routines.
37775 * __fractdfuha: Fixed-point fractional library routines.
37777 * __fractdfuhq: Fixed-point fractional library routines.
37779 * __fractdfuqq: Fixed-point fractional library routines.
37781 * __fractdfusa: Fixed-point fractional library routines.
37783 * __fractdfusq: Fixed-point fractional library routines.
37785 * __fractdfuta: Fixed-point fractional library routines.
37787 * __fractdida: Fixed-point fractional library routines.
37789 * __fractdidq: Fixed-point fractional library routines.
37791 * __fractdiha: Fixed-point fractional library routines.
37793 * __fractdihq: Fixed-point fractional library routines.
37795 * __fractdiqq: Fixed-point fractional library routines.
37797 * __fractdisa: Fixed-point fractional library routines.
37799 * __fractdisq: Fixed-point fractional library routines.
37801 * __fractdita: Fixed-point fractional library routines.
37803 * __fractdiuda: Fixed-point fractional library routines.
37805 * __fractdiudq: Fixed-point fractional library routines.
37807 * __fractdiuha: Fixed-point fractional library routines.
37809 * __fractdiuhq: Fixed-point fractional library routines.
37811 * __fractdiuqq: Fixed-point fractional library routines.
37813 * __fractdiusa: Fixed-point fractional library routines.
37815 * __fractdiusq: Fixed-point fractional library routines.
37817 * __fractdiuta: Fixed-point fractional library routines.
37819 * __fractdqda: Fixed-point fractional library routines.
37821 * __fractdqdf: Fixed-point fractional library routines.
37823 * __fractdqdi: Fixed-point fractional library routines.
37825 * __fractdqha: Fixed-point fractional library routines.
37827 * __fractdqhi: Fixed-point fractional library routines.
37829 * __fractdqhq2: Fixed-point fractional library routines.
37831 * __fractdqqi: Fixed-point fractional library routines.
37833 * __fractdqqq2: Fixed-point fractional library routines.
37835 * __fractdqsa: Fixed-point fractional library routines.
37837 * __fractdqsf: Fixed-point fractional library routines.
37839 * __fractdqsi: Fixed-point fractional library routines.
37841 * __fractdqsq2: Fixed-point fractional library routines.
37843 * __fractdqta: Fixed-point fractional library routines.
37845 * __fractdqti: Fixed-point fractional library routines.
37847 * __fractdquda: Fixed-point fractional library routines.
37849 * __fractdqudq: Fixed-point fractional library routines.
37851 * __fractdquha: Fixed-point fractional library routines.
37853 * __fractdquhq: Fixed-point fractional library routines.
37855 * __fractdquqq: Fixed-point fractional library routines.
37857 * __fractdqusa: Fixed-point fractional library routines.
37859 * __fractdqusq: Fixed-point fractional library routines.
37861 * __fractdquta: Fixed-point fractional library routines.
37863 * __fracthada2: Fixed-point fractional library routines.
37865 * __fracthadf: Fixed-point fractional library routines.
37867 * __fracthadi: Fixed-point fractional library routines.
37869 * __fracthadq: Fixed-point fractional library routines.
37871 * __fracthahi: Fixed-point fractional library routines.
37873 * __fracthahq: Fixed-point fractional library routines.
37875 * __fracthaqi: Fixed-point fractional library routines.
37877 * __fracthaqq: Fixed-point fractional library routines.
37879 * __fracthasa2: Fixed-point fractional library routines.
37881 * __fracthasf: Fixed-point fractional library routines.
37883 * __fracthasi: Fixed-point fractional library routines.
37885 * __fracthasq: Fixed-point fractional library routines.
37887 * __fracthata2: Fixed-point fractional library routines.
37889 * __fracthati: Fixed-point fractional library routines.
37891 * __fracthauda: Fixed-point fractional library routines.
37893 * __fracthaudq: Fixed-point fractional library routines.
37895 * __fracthauha: Fixed-point fractional library routines.
37897 * __fracthauhq: Fixed-point fractional library routines.
37899 * __fracthauqq: Fixed-point fractional library routines.
37901 * __fracthausa: Fixed-point fractional library routines.
37903 * __fracthausq: Fixed-point fractional library routines.
37905 * __fracthauta: Fixed-point fractional library routines.
37907 * __fracthida: Fixed-point fractional library routines.
37909 * __fracthidq: Fixed-point fractional library routines.
37911 * __fracthiha: Fixed-point fractional library routines.
37913 * __fracthihq: Fixed-point fractional library routines.
37915 * __fracthiqq: Fixed-point fractional library routines.
37917 * __fracthisa: Fixed-point fractional library routines.
37919 * __fracthisq: Fixed-point fractional library routines.
37921 * __fracthita: Fixed-point fractional library routines.
37923 * __fracthiuda: Fixed-point fractional library routines.
37925 * __fracthiudq: Fixed-point fractional library routines.
37927 * __fracthiuha: Fixed-point fractional library routines.
37929 * __fracthiuhq: Fixed-point fractional library routines.
37931 * __fracthiuqq: Fixed-point fractional library routines.
37933 * __fracthiusa: Fixed-point fractional library routines.
37935 * __fracthiusq: Fixed-point fractional library routines.
37937 * __fracthiuta: Fixed-point fractional library routines.
37939 * __fracthqda: Fixed-point fractional library routines.
37941 * __fracthqdf: Fixed-point fractional library routines.
37943 * __fracthqdi: Fixed-point fractional library routines.
37945 * __fracthqdq2: Fixed-point fractional library routines.
37947 * __fracthqha: Fixed-point fractional library routines.
37949 * __fracthqhi: Fixed-point fractional library routines.
37951 * __fracthqqi: Fixed-point fractional library routines.
37953 * __fracthqqq2: Fixed-point fractional library routines.
37955 * __fracthqsa: Fixed-point fractional library routines.
37957 * __fracthqsf: Fixed-point fractional library routines.
37959 * __fracthqsi: Fixed-point fractional library routines.
37961 * __fracthqsq2: Fixed-point fractional library routines.
37963 * __fracthqta: Fixed-point fractional library routines.
37965 * __fracthqti: Fixed-point fractional library routines.
37967 * __fracthquda: Fixed-point fractional library routines.
37969 * __fracthqudq: Fixed-point fractional library routines.
37971 * __fracthquha: Fixed-point fractional library routines.
37973 * __fracthquhq: Fixed-point fractional library routines.
37975 * __fracthquqq: Fixed-point fractional library routines.
37977 * __fracthqusa: Fixed-point fractional library routines.
37979 * __fracthqusq: Fixed-point fractional library routines.
37981 * __fracthquta: Fixed-point fractional library routines.
37983 * __fractqida: Fixed-point fractional library routines.
37985 * __fractqidq: Fixed-point fractional library routines.
37987 * __fractqiha: Fixed-point fractional library routines.
37989 * __fractqihq: Fixed-point fractional library routines.
37991 * __fractqiqq: Fixed-point fractional library routines.
37993 * __fractqisa: Fixed-point fractional library routines.
37995 * __fractqisq: Fixed-point fractional library routines.
37997 * __fractqita: Fixed-point fractional library routines.
37999 * __fractqiuda: Fixed-point fractional library routines.
38001 * __fractqiudq: Fixed-point fractional library routines.
38003 * __fractqiuha: Fixed-point fractional library routines.
38005 * __fractqiuhq: Fixed-point fractional library routines.
38007 * __fractqiuqq: Fixed-point fractional library routines.
38009 * __fractqiusa: Fixed-point fractional library routines.
38011 * __fractqiusq: Fixed-point fractional library routines.
38013 * __fractqiuta: Fixed-point fractional library routines.
38015 * __fractqqda: Fixed-point fractional library routines.
38017 * __fractqqdf: Fixed-point fractional library routines.
38019 * __fractqqdi: Fixed-point fractional library routines.
38021 * __fractqqdq2: Fixed-point fractional library routines.
38023 * __fractqqha: Fixed-point fractional library routines.
38025 * __fractqqhi: Fixed-point fractional library routines.
38027 * __fractqqhq2: Fixed-point fractional library routines.
38029 * __fractqqqi: Fixed-point fractional library routines.
38031 * __fractqqsa: Fixed-point fractional library routines.
38033 * __fractqqsf: Fixed-point fractional library routines.
38035 * __fractqqsi: Fixed-point fractional library routines.
38037 * __fractqqsq2: Fixed-point fractional library routines.
38039 * __fractqqta: Fixed-point fractional library routines.
38041 * __fractqqti: Fixed-point fractional library routines.
38043 * __fractqquda: Fixed-point fractional library routines.
38045 * __fractqqudq: Fixed-point fractional library routines.
38047 * __fractqquha: Fixed-point fractional library routines.
38049 * __fractqquhq: Fixed-point fractional library routines.
38051 * __fractqquqq: Fixed-point fractional library routines.
38053 * __fractqqusa: Fixed-point fractional library routines.
38055 * __fractqqusq: Fixed-point fractional library routines.
38057 * __fractqquta: Fixed-point fractional library routines.
38059 * __fractsada2: Fixed-point fractional library routines.
38061 * __fractsadf: Fixed-point fractional library routines.
38063 * __fractsadi: Fixed-point fractional library routines.
38065 * __fractsadq: Fixed-point fractional library routines.
38067 * __fractsaha2: Fixed-point fractional library routines.
38069 * __fractsahi: Fixed-point fractional library routines.
38071 * __fractsahq: Fixed-point fractional library routines.
38073 * __fractsaqi: Fixed-point fractional library routines.
38075 * __fractsaqq: Fixed-point fractional library routines.
38077 * __fractsasf: Fixed-point fractional library routines.
38079 * __fractsasi: Fixed-point fractional library routines.
38081 * __fractsasq: Fixed-point fractional library routines.
38083 * __fractsata2: Fixed-point fractional library routines.
38085 * __fractsati: Fixed-point fractional library routines.
38087 * __fractsauda: Fixed-point fractional library routines.
38089 * __fractsaudq: Fixed-point fractional library routines.
38091 * __fractsauha: Fixed-point fractional library routines.
38093 * __fractsauhq: Fixed-point fractional library routines.
38095 * __fractsauqq: Fixed-point fractional library routines.
38097 * __fractsausa: Fixed-point fractional library routines.
38099 * __fractsausq: Fixed-point fractional library routines.
38101 * __fractsauta: Fixed-point fractional library routines.
38103 * __fractsfda: Fixed-point fractional library routines.
38105 * __fractsfdq: Fixed-point fractional library routines.
38107 * __fractsfha: Fixed-point fractional library routines.
38109 * __fractsfhq: Fixed-point fractional library routines.
38111 * __fractsfqq: Fixed-point fractional library routines.
38113 * __fractsfsa: Fixed-point fractional library routines.
38115 * __fractsfsq: Fixed-point fractional library routines.
38117 * __fractsfta: Fixed-point fractional library routines.
38119 * __fractsfuda: Fixed-point fractional library routines.
38121 * __fractsfudq: Fixed-point fractional library routines.
38123 * __fractsfuha: Fixed-point fractional library routines.
38125 * __fractsfuhq: Fixed-point fractional library routines.
38127 * __fractsfuqq: Fixed-point fractional library routines.
38129 * __fractsfusa: Fixed-point fractional library routines.
38131 * __fractsfusq: Fixed-point fractional library routines.
38133 * __fractsfuta: Fixed-point fractional library routines.
38135 * __fractsida: Fixed-point fractional library routines.
38137 * __fractsidq: Fixed-point fractional library routines.
38139 * __fractsiha: Fixed-point fractional library routines.
38141 * __fractsihq: Fixed-point fractional library routines.
38143 * __fractsiqq: Fixed-point fractional library routines.
38145 * __fractsisa: Fixed-point fractional library routines.
38147 * __fractsisq: Fixed-point fractional library routines.
38149 * __fractsita: Fixed-point fractional library routines.
38151 * __fractsiuda: Fixed-point fractional library routines.
38153 * __fractsiudq: Fixed-point fractional library routines.
38155 * __fractsiuha: Fixed-point fractional library routines.
38157 * __fractsiuhq: Fixed-point fractional library routines.
38159 * __fractsiuqq: Fixed-point fractional library routines.
38161 * __fractsiusa: Fixed-point fractional library routines.
38163 * __fractsiusq: Fixed-point fractional library routines.
38165 * __fractsiuta: Fixed-point fractional library routines.
38167 * __fractsqda: Fixed-point fractional library routines.
38169 * __fractsqdf: Fixed-point fractional library routines.
38171 * __fractsqdi: Fixed-point fractional library routines.
38173 * __fractsqdq2: Fixed-point fractional library routines.
38175 * __fractsqha: Fixed-point fractional library routines.
38177 * __fractsqhi: Fixed-point fractional library routines.
38179 * __fractsqhq2: Fixed-point fractional library routines.
38181 * __fractsqqi: Fixed-point fractional library routines.
38183 * __fractsqqq2: Fixed-point fractional library routines.
38185 * __fractsqsa: Fixed-point fractional library routines.
38187 * __fractsqsf: Fixed-point fractional library routines.
38189 * __fractsqsi: Fixed-point fractional library routines.
38191 * __fractsqta: Fixed-point fractional library routines.
38193 * __fractsqti: Fixed-point fractional library routines.
38195 * __fractsquda: Fixed-point fractional library routines.
38197 * __fractsqudq: Fixed-point fractional library routines.
38199 * __fractsquha: Fixed-point fractional library routines.
38201 * __fractsquhq: Fixed-point fractional library routines.
38203 * __fractsquqq: Fixed-point fractional library routines.
38205 * __fractsqusa: Fixed-point fractional library routines.
38207 * __fractsqusq: Fixed-point fractional library routines.
38209 * __fractsquta: Fixed-point fractional library routines.
38211 * __fracttada2: Fixed-point fractional library routines.
38213 * __fracttadf: Fixed-point fractional library routines.
38215 * __fracttadi: Fixed-point fractional library routines.
38217 * __fracttadq: Fixed-point fractional library routines.
38219 * __fracttaha2: Fixed-point fractional library routines.
38221 * __fracttahi: Fixed-point fractional library routines.
38223 * __fracttahq: Fixed-point fractional library routines.
38225 * __fracttaqi: Fixed-point fractional library routines.
38227 * __fracttaqq: Fixed-point fractional library routines.
38229 * __fracttasa2: Fixed-point fractional library routines.
38231 * __fracttasf: Fixed-point fractional library routines.
38233 * __fracttasi: Fixed-point fractional library routines.
38235 * __fracttasq: Fixed-point fractional library routines.
38237 * __fracttati: Fixed-point fractional library routines.
38239 * __fracttauda: Fixed-point fractional library routines.
38241 * __fracttaudq: Fixed-point fractional library routines.
38243 * __fracttauha: Fixed-point fractional library routines.
38245 * __fracttauhq: Fixed-point fractional library routines.
38247 * __fracttauqq: Fixed-point fractional library routines.
38249 * __fracttausa: Fixed-point fractional library routines.
38251 * __fracttausq: Fixed-point fractional library routines.
38253 * __fracttauta: Fixed-point fractional library routines.
38255 * __fracttida: Fixed-point fractional library routines.
38257 * __fracttidq: Fixed-point fractional library routines.
38259 * __fracttiha: Fixed-point fractional library routines.
38261 * __fracttihq: Fixed-point fractional library routines.
38263 * __fracttiqq: Fixed-point fractional library routines.
38265 * __fracttisa: Fixed-point fractional library routines.
38267 * __fracttisq: Fixed-point fractional library routines.
38269 * __fracttita: Fixed-point fractional library routines.
38271 * __fracttiuda: Fixed-point fractional library routines.
38273 * __fracttiudq: Fixed-point fractional library routines.
38275 * __fracttiuha: Fixed-point fractional library routines.
38277 * __fracttiuhq: Fixed-point fractional library routines.
38279 * __fracttiuqq: Fixed-point fractional library routines.
38281 * __fracttiusa: Fixed-point fractional library routines.
38283 * __fracttiusq: Fixed-point fractional library routines.
38285 * __fracttiuta: Fixed-point fractional library routines.
38287 * __fractudada: Fixed-point fractional library routines.
38289 * __fractudadf: Fixed-point fractional library routines.
38291 * __fractudadi: Fixed-point fractional library routines.
38293 * __fractudadq: Fixed-point fractional library routines.
38295 * __fractudaha: Fixed-point fractional library routines.
38297 * __fractudahi: Fixed-point fractional library routines.
38299 * __fractudahq: Fixed-point fractional library routines.
38301 * __fractudaqi: Fixed-point fractional library routines.
38303 * __fractudaqq: Fixed-point fractional library routines.
38305 * __fractudasa: Fixed-point fractional library routines.
38307 * __fractudasf: Fixed-point fractional library routines.
38309 * __fractudasi: Fixed-point fractional library routines.
38311 * __fractudasq: Fixed-point fractional library routines.
38313 * __fractudata: Fixed-point fractional library routines.
38315 * __fractudati: Fixed-point fractional library routines.
38317 * __fractudaudq: Fixed-point fractional library routines.
38319 * __fractudauha2: Fixed-point fractional library routines.
38321 * __fractudauhq: Fixed-point fractional library routines.
38323 * __fractudauqq: Fixed-point fractional library routines.
38325 * __fractudausa2: Fixed-point fractional library routines.
38327 * __fractudausq: Fixed-point fractional library routines.
38329 * __fractudauta2: Fixed-point fractional library routines.
38331 * __fractudqda: Fixed-point fractional library routines.
38333 * __fractudqdf: Fixed-point fractional library routines.
38335 * __fractudqdi: Fixed-point fractional library routines.
38337 * __fractudqdq: Fixed-point fractional library routines.
38339 * __fractudqha: Fixed-point fractional library routines.
38341 * __fractudqhi: Fixed-point fractional library routines.
38343 * __fractudqhq: Fixed-point fractional library routines.
38345 * __fractudqqi: Fixed-point fractional library routines.
38347 * __fractudqqq: Fixed-point fractional library routines.
38349 * __fractudqsa: Fixed-point fractional library routines.
38351 * __fractudqsf: Fixed-point fractional library routines.
38353 * __fractudqsi: Fixed-point fractional library routines.
38355 * __fractudqsq: Fixed-point fractional library routines.
38357 * __fractudqta: Fixed-point fractional library routines.
38359 * __fractudqti: Fixed-point fractional library routines.
38361 * __fractudquda: Fixed-point fractional library routines.
38363 * __fractudquha: Fixed-point fractional library routines.
38365 * __fractudquhq2: Fixed-point fractional library routines.
38367 * __fractudquqq2: Fixed-point fractional library routines.
38369 * __fractudqusa: Fixed-point fractional library routines.
38371 * __fractudqusq2: Fixed-point fractional library routines.
38373 * __fractudquta: Fixed-point fractional library routines.
38375 * __fractuhada: Fixed-point fractional library routines.
38377 * __fractuhadf: Fixed-point fractional library routines.
38379 * __fractuhadi: Fixed-point fractional library routines.
38381 * __fractuhadq: Fixed-point fractional library routines.
38383 * __fractuhaha: Fixed-point fractional library routines.
38385 * __fractuhahi: Fixed-point fractional library routines.
38387 * __fractuhahq: Fixed-point fractional library routines.
38389 * __fractuhaqi: Fixed-point fractional library routines.
38391 * __fractuhaqq: Fixed-point fractional library routines.
38393 * __fractuhasa: Fixed-point fractional library routines.
38395 * __fractuhasf: Fixed-point fractional library routines.
38397 * __fractuhasi: Fixed-point fractional library routines.
38399 * __fractuhasq: Fixed-point fractional library routines.
38401 * __fractuhata: Fixed-point fractional library routines.
38403 * __fractuhati: Fixed-point fractional library routines.
38405 * __fractuhauda2: Fixed-point fractional library routines.
38407 * __fractuhaudq: Fixed-point fractional library routines.
38409 * __fractuhauhq: Fixed-point fractional library routines.
38411 * __fractuhauqq: Fixed-point fractional library routines.
38413 * __fractuhausa2: Fixed-point fractional library routines.
38415 * __fractuhausq: Fixed-point fractional library routines.
38417 * __fractuhauta2: Fixed-point fractional library routines.
38419 * __fractuhqda: Fixed-point fractional library routines.
38421 * __fractuhqdf: Fixed-point fractional library routines.
38423 * __fractuhqdi: Fixed-point fractional library routines.
38425 * __fractuhqdq: Fixed-point fractional library routines.
38427 * __fractuhqha: Fixed-point fractional library routines.
38429 * __fractuhqhi: Fixed-point fractional library routines.
38431 * __fractuhqhq: Fixed-point fractional library routines.
38433 * __fractuhqqi: Fixed-point fractional library routines.
38435 * __fractuhqqq: Fixed-point fractional library routines.
38437 * __fractuhqsa: Fixed-point fractional library routines.
38439 * __fractuhqsf: Fixed-point fractional library routines.
38441 * __fractuhqsi: Fixed-point fractional library routines.
38443 * __fractuhqsq: Fixed-point fractional library routines.
38445 * __fractuhqta: Fixed-point fractional library routines.
38447 * __fractuhqti: Fixed-point fractional library routines.
38449 * __fractuhquda: Fixed-point fractional library routines.
38451 * __fractuhqudq2: Fixed-point fractional library routines.
38453 * __fractuhquha: Fixed-point fractional library routines.
38455 * __fractuhquqq2: Fixed-point fractional library routines.
38457 * __fractuhqusa: Fixed-point fractional library routines.
38459 * __fractuhqusq2: Fixed-point fractional library routines.
38461 * __fractuhquta: Fixed-point fractional library routines.
38463 * __fractunsdadi: Fixed-point fractional library routines.
38465 * __fractunsdahi: Fixed-point fractional library routines.
38467 * __fractunsdaqi: Fixed-point fractional library routines.
38469 * __fractunsdasi: Fixed-point fractional library routines.
38471 * __fractunsdati: Fixed-point fractional library routines.
38473 * __fractunsdida: Fixed-point fractional library routines.
38475 * __fractunsdidq: Fixed-point fractional library routines.
38477 * __fractunsdiha: Fixed-point fractional library routines.
38479 * __fractunsdihq: Fixed-point fractional library routines.
38481 * __fractunsdiqq: Fixed-point fractional library routines.
38483 * __fractunsdisa: Fixed-point fractional library routines.
38485 * __fractunsdisq: Fixed-point fractional library routines.
38487 * __fractunsdita: Fixed-point fractional library routines.
38489 * __fractunsdiuda: Fixed-point fractional library routines.
38491 * __fractunsdiudq: Fixed-point fractional library routines.
38493 * __fractunsdiuha: Fixed-point fractional library routines.
38495 * __fractunsdiuhq: Fixed-point fractional library routines.
38497 * __fractunsdiuqq: Fixed-point fractional library routines.
38499 * __fractunsdiusa: Fixed-point fractional library routines.
38501 * __fractunsdiusq: Fixed-point fractional library routines.
38503 * __fractunsdiuta: Fixed-point fractional library routines.
38505 * __fractunsdqdi: Fixed-point fractional library routines.
38507 * __fractunsdqhi: Fixed-point fractional library routines.
38509 * __fractunsdqqi: Fixed-point fractional library routines.
38511 * __fractunsdqsi: Fixed-point fractional library routines.
38513 * __fractunsdqti: Fixed-point fractional library routines.
38515 * __fractunshadi: Fixed-point fractional library routines.
38517 * __fractunshahi: Fixed-point fractional library routines.
38519 * __fractunshaqi: Fixed-point fractional library routines.
38521 * __fractunshasi: Fixed-point fractional library routines.
38523 * __fractunshati: Fixed-point fractional library routines.
38525 * __fractunshida: Fixed-point fractional library routines.
38527 * __fractunshidq: Fixed-point fractional library routines.
38529 * __fractunshiha: Fixed-point fractional library routines.
38531 * __fractunshihq: Fixed-point fractional library routines.
38533 * __fractunshiqq: Fixed-point fractional library routines.
38535 * __fractunshisa: Fixed-point fractional library routines.
38537 * __fractunshisq: Fixed-point fractional library routines.
38539 * __fractunshita: Fixed-point fractional library routines.
38541 * __fractunshiuda: Fixed-point fractional library routines.
38543 * __fractunshiudq: Fixed-point fractional library routines.
38545 * __fractunshiuha: Fixed-point fractional library routines.
38547 * __fractunshiuhq: Fixed-point fractional library routines.
38549 * __fractunshiuqq: Fixed-point fractional library routines.
38551 * __fractunshiusa: Fixed-point fractional library routines.
38553 * __fractunshiusq: Fixed-point fractional library routines.
38555 * __fractunshiuta: Fixed-point fractional library routines.
38557 * __fractunshqdi: Fixed-point fractional library routines.
38559 * __fractunshqhi: Fixed-point fractional library routines.
38561 * __fractunshqqi: Fixed-point fractional library routines.
38563 * __fractunshqsi: Fixed-point fractional library routines.
38565 * __fractunshqti: Fixed-point fractional library routines.
38567 * __fractunsqida: Fixed-point fractional library routines.
38569 * __fractunsqidq: Fixed-point fractional library routines.
38571 * __fractunsqiha: Fixed-point fractional library routines.
38573 * __fractunsqihq: Fixed-point fractional library routines.
38575 * __fractunsqiqq: Fixed-point fractional library routines.
38577 * __fractunsqisa: Fixed-point fractional library routines.
38579 * __fractunsqisq: Fixed-point fractional library routines.
38581 * __fractunsqita: Fixed-point fractional library routines.
38583 * __fractunsqiuda: Fixed-point fractional library routines.
38585 * __fractunsqiudq: Fixed-point fractional library routines.
38587 * __fractunsqiuha: Fixed-point fractional library routines.
38589 * __fractunsqiuhq: Fixed-point fractional library routines.
38591 * __fractunsqiuqq: Fixed-point fractional library routines.
38593 * __fractunsqiusa: Fixed-point fractional library routines.
38595 * __fractunsqiusq: Fixed-point fractional library routines.
38597 * __fractunsqiuta: Fixed-point fractional library routines.
38599 * __fractunsqqdi: Fixed-point fractional library routines.
38601 * __fractunsqqhi: Fixed-point fractional library routines.
38603 * __fractunsqqqi: Fixed-point fractional library routines.
38605 * __fractunsqqsi: Fixed-point fractional library routines.
38607 * __fractunsqqti: Fixed-point fractional library routines.
38609 * __fractunssadi: Fixed-point fractional library routines.
38611 * __fractunssahi: Fixed-point fractional library routines.
38613 * __fractunssaqi: Fixed-point fractional library routines.
38615 * __fractunssasi: Fixed-point fractional library routines.
38617 * __fractunssati: Fixed-point fractional library routines.
38619 * __fractunssida: Fixed-point fractional library routines.
38621 * __fractunssidq: Fixed-point fractional library routines.
38623 * __fractunssiha: Fixed-point fractional library routines.
38625 * __fractunssihq: Fixed-point fractional library routines.
38627 * __fractunssiqq: Fixed-point fractional library routines.
38629 * __fractunssisa: Fixed-point fractional library routines.
38631 * __fractunssisq: Fixed-point fractional library routines.
38633 * __fractunssita: Fixed-point fractional library routines.
38635 * __fractunssiuda: Fixed-point fractional library routines.
38637 * __fractunssiudq: Fixed-point fractional library routines.
38639 * __fractunssiuha: Fixed-point fractional library routines.
38641 * __fractunssiuhq: Fixed-point fractional library routines.
38643 * __fractunssiuqq: Fixed-point fractional library routines.
38645 * __fractunssiusa: Fixed-point fractional library routines.
38647 * __fractunssiusq: Fixed-point fractional library routines.
38649 * __fractunssiuta: Fixed-point fractional library routines.
38651 * __fractunssqdi: Fixed-point fractional library routines.
38653 * __fractunssqhi: Fixed-point fractional library routines.
38655 * __fractunssqqi: Fixed-point fractional library routines.
38657 * __fractunssqsi: Fixed-point fractional library routines.
38659 * __fractunssqti: Fixed-point fractional library routines.
38661 * __fractunstadi: Fixed-point fractional library routines.
38663 * __fractunstahi: Fixed-point fractional library routines.
38665 * __fractunstaqi: Fixed-point fractional library routines.
38667 * __fractunstasi: Fixed-point fractional library routines.
38669 * __fractunstati: Fixed-point fractional library routines.
38671 * __fractunstida: Fixed-point fractional library routines.
38673 * __fractunstidq: Fixed-point fractional library routines.
38675 * __fractunstiha: Fixed-point fractional library routines.
38677 * __fractunstihq: Fixed-point fractional library routines.
38679 * __fractunstiqq: Fixed-point fractional library routines.
38681 * __fractunstisa: Fixed-point fractional library routines.
38683 * __fractunstisq: Fixed-point fractional library routines.
38685 * __fractunstita: Fixed-point fractional library routines.
38687 * __fractunstiuda: Fixed-point fractional library routines.
38689 * __fractunstiudq: Fixed-point fractional library routines.
38691 * __fractunstiuha: Fixed-point fractional library routines.
38693 * __fractunstiuhq: Fixed-point fractional library routines.
38695 * __fractunstiuqq: Fixed-point fractional library routines.
38697 * __fractunstiusa: Fixed-point fractional library routines.
38699 * __fractunstiusq: Fixed-point fractional library routines.
38701 * __fractunstiuta: Fixed-point fractional library routines.
38703 * __fractunsudadi: Fixed-point fractional library routines.
38705 * __fractunsudahi: Fixed-point fractional library routines.
38707 * __fractunsudaqi: Fixed-point fractional library routines.
38709 * __fractunsudasi: Fixed-point fractional library routines.
38711 * __fractunsudati: Fixed-point fractional library routines.
38713 * __fractunsudqdi: Fixed-point fractional library routines.
38715 * __fractunsudqhi: Fixed-point fractional library routines.
38717 * __fractunsudqqi: Fixed-point fractional library routines.
38719 * __fractunsudqsi: Fixed-point fractional library routines.
38721 * __fractunsudqti: Fixed-point fractional library routines.
38723 * __fractunsuhadi: Fixed-point fractional library routines.
38725 * __fractunsuhahi: Fixed-point fractional library routines.
38727 * __fractunsuhaqi: Fixed-point fractional library routines.
38729 * __fractunsuhasi: Fixed-point fractional library routines.
38731 * __fractunsuhati: Fixed-point fractional library routines.
38733 * __fractunsuhqdi: Fixed-point fractional library routines.
38735 * __fractunsuhqhi: Fixed-point fractional library routines.
38737 * __fractunsuhqqi: Fixed-point fractional library routines.
38739 * __fractunsuhqsi: Fixed-point fractional library routines.
38741 * __fractunsuhqti: Fixed-point fractional library routines.
38743 * __fractunsuqqdi: Fixed-point fractional library routines.
38745 * __fractunsuqqhi: Fixed-point fractional library routines.
38747 * __fractunsuqqqi: Fixed-point fractional library routines.
38749 * __fractunsuqqsi: Fixed-point fractional library routines.
38751 * __fractunsuqqti: Fixed-point fractional library routines.
38753 * __fractunsusadi: Fixed-point fractional library routines.
38755 * __fractunsusahi: Fixed-point fractional library routines.
38757 * __fractunsusaqi: Fixed-point fractional library routines.
38759 * __fractunsusasi: Fixed-point fractional library routines.
38761 * __fractunsusati: Fixed-point fractional library routines.
38763 * __fractunsusqdi: Fixed-point fractional library routines.
38765 * __fractunsusqhi: Fixed-point fractional library routines.
38767 * __fractunsusqqi: Fixed-point fractional library routines.
38769 * __fractunsusqsi: Fixed-point fractional library routines.
38771 * __fractunsusqti: Fixed-point fractional library routines.
38773 * __fractunsutadi: Fixed-point fractional library routines.
38775 * __fractunsutahi: Fixed-point fractional library routines.
38777 * __fractunsutaqi: Fixed-point fractional library routines.
38779 * __fractunsutasi: Fixed-point fractional library routines.
38781 * __fractunsutati: Fixed-point fractional library routines.
38783 * __fractuqqda: Fixed-point fractional library routines.
38785 * __fractuqqdf: Fixed-point fractional library routines.
38787 * __fractuqqdi: Fixed-point fractional library routines.
38789 * __fractuqqdq: Fixed-point fractional library routines.
38791 * __fractuqqha: Fixed-point fractional library routines.
38793 * __fractuqqhi: Fixed-point fractional library routines.
38795 * __fractuqqhq: Fixed-point fractional library routines.
38797 * __fractuqqqi: Fixed-point fractional library routines.
38799 * __fractuqqqq: Fixed-point fractional library routines.
38801 * __fractuqqsa: Fixed-point fractional library routines.
38803 * __fractuqqsf: Fixed-point fractional library routines.
38805 * __fractuqqsi: Fixed-point fractional library routines.
38807 * __fractuqqsq: Fixed-point fractional library routines.
38809 * __fractuqqta: Fixed-point fractional library routines.
38811 * __fractuqqti: Fixed-point fractional library routines.
38813 * __fractuqquda: Fixed-point fractional library routines.
38815 * __fractuqqudq2: Fixed-point fractional library routines.
38817 * __fractuqquha: Fixed-point fractional library routines.
38819 * __fractuqquhq2: Fixed-point fractional library routines.
38821 * __fractuqqusa: Fixed-point fractional library routines.
38823 * __fractuqqusq2: Fixed-point fractional library routines.
38825 * __fractuqquta: Fixed-point fractional library routines.
38827 * __fractusada: Fixed-point fractional library routines.
38829 * __fractusadf: Fixed-point fractional library routines.
38831 * __fractusadi: Fixed-point fractional library routines.
38833 * __fractusadq: Fixed-point fractional library routines.
38835 * __fractusaha: Fixed-point fractional library routines.
38837 * __fractusahi: Fixed-point fractional library routines.
38839 * __fractusahq: Fixed-point fractional library routines.
38841 * __fractusaqi: Fixed-point fractional library routines.
38843 * __fractusaqq: Fixed-point fractional library routines.
38845 * __fractusasa: Fixed-point fractional library routines.
38847 * __fractusasf: Fixed-point fractional library routines.
38849 * __fractusasi: Fixed-point fractional library routines.
38851 * __fractusasq: Fixed-point fractional library routines.
38853 * __fractusata: Fixed-point fractional library routines.
38855 * __fractusati: Fixed-point fractional library routines.
38857 * __fractusauda2: Fixed-point fractional library routines.
38859 * __fractusaudq: Fixed-point fractional library routines.
38861 * __fractusauha2: Fixed-point fractional library routines.
38863 * __fractusauhq: Fixed-point fractional library routines.
38865 * __fractusauqq: Fixed-point fractional library routines.
38867 * __fractusausq: Fixed-point fractional library routines.
38869 * __fractusauta2: Fixed-point fractional library routines.
38871 * __fractusqda: Fixed-point fractional library routines.
38873 * __fractusqdf: Fixed-point fractional library routines.
38875 * __fractusqdi: Fixed-point fractional library routines.
38877 * __fractusqdq: Fixed-point fractional library routines.
38879 * __fractusqha: Fixed-point fractional library routines.
38881 * __fractusqhi: Fixed-point fractional library routines.
38883 * __fractusqhq: Fixed-point fractional library routines.
38885 * __fractusqqi: Fixed-point fractional library routines.
38887 * __fractusqqq: Fixed-point fractional library routines.
38889 * __fractusqsa: Fixed-point fractional library routines.
38891 * __fractusqsf: Fixed-point fractional library routines.
38893 * __fractusqsi: Fixed-point fractional library routines.
38895 * __fractusqsq: Fixed-point fractional library routines.
38897 * __fractusqta: Fixed-point fractional library routines.
38899 * __fractusqti: Fixed-point fractional library routines.
38901 * __fractusquda: Fixed-point fractional library routines.
38903 * __fractusqudq2: Fixed-point fractional library routines.
38905 * __fractusquha: Fixed-point fractional library routines.
38907 * __fractusquhq2: Fixed-point fractional library routines.
38909 * __fractusquqq2: Fixed-point fractional library routines.
38911 * __fractusqusa: Fixed-point fractional library routines.
38913 * __fractusquta: Fixed-point fractional library routines.
38915 * __fractutada: Fixed-point fractional library routines.
38917 * __fractutadf: Fixed-point fractional library routines.
38919 * __fractutadi: Fixed-point fractional library routines.
38921 * __fractutadq: Fixed-point fractional library routines.
38923 * __fractutaha: Fixed-point fractional library routines.
38925 * __fractutahi: Fixed-point fractional library routines.
38927 * __fractutahq: Fixed-point fractional library routines.
38929 * __fractutaqi: Fixed-point fractional library routines.
38931 * __fractutaqq: Fixed-point fractional library routines.
38933 * __fractutasa: Fixed-point fractional library routines.
38935 * __fractutasf: Fixed-point fractional library routines.
38937 * __fractutasi: Fixed-point fractional library routines.
38939 * __fractutasq: Fixed-point fractional library routines.
38941 * __fractutata: Fixed-point fractional library routines.
38943 * __fractutati: Fixed-point fractional library routines.
38945 * __fractutauda2: Fixed-point fractional library routines.
38947 * __fractutaudq: Fixed-point fractional library routines.
38949 * __fractutauha2: Fixed-point fractional library routines.
38951 * __fractutauhq: Fixed-point fractional library routines.
38953 * __fractutauqq: Fixed-point fractional library routines.
38955 * __fractutausa2: Fixed-point fractional library routines.
38957 * __fractutausq: Fixed-point fractional library routines.
38959 * __gedf2: Soft float library routines.
38961 * __gesf2: Soft float library routines.
38963 * __getf2: Soft float library routines.
38965 * __gtdf2: Soft float library routines.
38967 * __gtsf2: Soft float library routines.
38969 * __gttf2: Soft float library routines.
38971 * __ledf2: Soft float library routines.
38973 * __lesf2: Soft float library routines.
38975 * __letf2: Soft float library routines.
38977 * __lshrdi3: Integer library routines.
38979 * __lshrsi3: Integer library routines.
38981 * __lshrti3: Integer library routines.
38983 * __lshruda3: Fixed-point fractional library routines.
38985 * __lshrudq3: Fixed-point fractional library routines.
38987 * __lshruha3: Fixed-point fractional library routines.
38989 * __lshruhq3: Fixed-point fractional library routines.
38991 * __lshruqq3: Fixed-point fractional library routines.
38993 * __lshrusa3: Fixed-point fractional library routines.
38995 * __lshrusq3: Fixed-point fractional library routines.
38997 * __lshruta3: Fixed-point fractional library routines.
38999 * __ltdf2: Soft float library routines.
39001 * __ltsf2: Soft float library routines.
39003 * __lttf2: Soft float library routines.
39005 * __main: Collect2. (line 15)
39006 * __moddi3: Integer library routines.
39008 * __modsi3: Integer library routines.
39010 * __modti3: Integer library routines.
39012 * __mulda3: Fixed-point fractional library routines.
39014 * __muldc3: Soft float library routines.
39016 * __muldf3: Soft float library routines.
39018 * __muldi3: Integer library routines.
39020 * __muldq3: Fixed-point fractional library routines.
39022 * __mulha3: Fixed-point fractional library routines.
39024 * __mulhq3: Fixed-point fractional library routines.
39026 * __mulqq3: Fixed-point fractional library routines.
39028 * __mulsa3: Fixed-point fractional library routines.
39030 * __mulsc3: Soft float library routines.
39032 * __mulsf3: Soft float library routines.
39034 * __mulsi3: Integer library routines.
39036 * __mulsq3: Fixed-point fractional library routines.
39038 * __multa3: Fixed-point fractional library routines.
39040 * __multc3: Soft float library routines.
39042 * __multf3: Soft float library routines.
39044 * __multi3: Integer library routines.
39046 * __muluda3: Fixed-point fractional library routines.
39048 * __muludq3: Fixed-point fractional library routines.
39050 * __muluha3: Fixed-point fractional library routines.
39052 * __muluhq3: Fixed-point fractional library routines.
39054 * __muluqq3: Fixed-point fractional library routines.
39056 * __mulusa3: Fixed-point fractional library routines.
39058 * __mulusq3: Fixed-point fractional library routines.
39060 * __muluta3: Fixed-point fractional library routines.
39062 * __mulvdi3: Integer library routines.
39064 * __mulvsi3: Integer library routines.
39066 * __mulxc3: Soft float library routines.
39068 * __mulxf3: Soft float library routines.
39070 * __nedf2: Soft float library routines.
39072 * __negda2: Fixed-point fractional library routines.
39074 * __negdf2: Soft float library routines.
39076 * __negdi2: Integer library routines.
39078 * __negdq2: Fixed-point fractional library routines.
39080 * __negha2: Fixed-point fractional library routines.
39082 * __neghq2: Fixed-point fractional library routines.
39084 * __negqq2: Fixed-point fractional library routines.
39086 * __negsa2: Fixed-point fractional library routines.
39088 * __negsf2: Soft float library routines.
39090 * __negsq2: Fixed-point fractional library routines.
39092 * __negta2: Fixed-point fractional library routines.
39094 * __negtf2: Soft float library routines.
39096 * __negti2: Integer library routines.
39098 * __neguda2: Fixed-point fractional library routines.
39100 * __negudq2: Fixed-point fractional library routines.
39102 * __neguha2: Fixed-point fractional library routines.
39104 * __neguhq2: Fixed-point fractional library routines.
39106 * __neguqq2: Fixed-point fractional library routines.
39108 * __negusa2: Fixed-point fractional library routines.
39110 * __negusq2: Fixed-point fractional library routines.
39112 * __neguta2: Fixed-point fractional library routines.
39114 * __negvdi2: Integer library routines.
39116 * __negvsi2: Integer library routines.
39118 * __negxf2: Soft float library routines.
39120 * __nesf2: Soft float library routines.
39122 * __netf2: Soft float library routines.
39124 * __paritydi2: Integer library routines.
39126 * __paritysi2: Integer library routines.
39128 * __parityti2: Integer library routines.
39130 * __popcountdi2: Integer library routines.
39132 * __popcountsi2: Integer library routines.
39134 * __popcountti2: Integer library routines.
39136 * __powidf2: Soft float library routines.
39138 * __powisf2: Soft float library routines.
39140 * __powitf2: Soft float library routines.
39142 * __powixf2: Soft float library routines.
39144 * __satfractdadq: Fixed-point fractional library routines.
39146 * __satfractdaha2: Fixed-point fractional library routines.
39148 * __satfractdahq: Fixed-point fractional library routines.
39150 * __satfractdaqq: Fixed-point fractional library routines.
39152 * __satfractdasa2: Fixed-point fractional library routines.
39154 * __satfractdasq: Fixed-point fractional library routines.
39156 * __satfractdata2: Fixed-point fractional library routines.
39158 * __satfractdauda: Fixed-point fractional library routines.
39160 * __satfractdaudq: Fixed-point fractional library routines.
39162 * __satfractdauha: Fixed-point fractional library routines.
39164 * __satfractdauhq: Fixed-point fractional library routines.
39166 * __satfractdauqq: Fixed-point fractional library routines.
39168 * __satfractdausa: Fixed-point fractional library routines.
39170 * __satfractdausq: Fixed-point fractional library routines.
39172 * __satfractdauta: Fixed-point fractional library routines.
39174 * __satfractdfda: Fixed-point fractional library routines.
39176 * __satfractdfdq: Fixed-point fractional library routines.
39178 * __satfractdfha: Fixed-point fractional library routines.
39180 * __satfractdfhq: Fixed-point fractional library routines.
39182 * __satfractdfqq: Fixed-point fractional library routines.
39184 * __satfractdfsa: Fixed-point fractional library routines.
39186 * __satfractdfsq: Fixed-point fractional library routines.
39188 * __satfractdfta: Fixed-point fractional library routines.
39190 * __satfractdfuda: Fixed-point fractional library routines.
39192 * __satfractdfudq: Fixed-point fractional library routines.
39194 * __satfractdfuha: Fixed-point fractional library routines.
39196 * __satfractdfuhq: Fixed-point fractional library routines.
39198 * __satfractdfuqq: Fixed-point fractional library routines.
39200 * __satfractdfusa: Fixed-point fractional library routines.
39202 * __satfractdfusq: Fixed-point fractional library routines.
39204 * __satfractdfuta: Fixed-point fractional library routines.
39206 * __satfractdida: Fixed-point fractional library routines.
39208 * __satfractdidq: Fixed-point fractional library routines.
39210 * __satfractdiha: Fixed-point fractional library routines.
39212 * __satfractdihq: Fixed-point fractional library routines.
39214 * __satfractdiqq: Fixed-point fractional library routines.
39216 * __satfractdisa: Fixed-point fractional library routines.
39218 * __satfractdisq: Fixed-point fractional library routines.
39220 * __satfractdita: Fixed-point fractional library routines.
39222 * __satfractdiuda: Fixed-point fractional library routines.
39224 * __satfractdiudq: Fixed-point fractional library routines.
39226 * __satfractdiuha: Fixed-point fractional library routines.
39228 * __satfractdiuhq: Fixed-point fractional library routines.
39230 * __satfractdiuqq: Fixed-point fractional library routines.
39232 * __satfractdiusa: Fixed-point fractional library routines.
39234 * __satfractdiusq: Fixed-point fractional library routines.
39236 * __satfractdiuta: Fixed-point fractional library routines.
39238 * __satfractdqda: Fixed-point fractional library routines.
39240 * __satfractdqha: Fixed-point fractional library routines.
39242 * __satfractdqhq2: Fixed-point fractional library routines.
39244 * __satfractdqqq2: Fixed-point fractional library routines.
39246 * __satfractdqsa: Fixed-point fractional library routines.
39248 * __satfractdqsq2: Fixed-point fractional library routines.
39250 * __satfractdqta: Fixed-point fractional library routines.
39252 * __satfractdquda: Fixed-point fractional library routines.
39254 * __satfractdqudq: Fixed-point fractional library routines.
39256 * __satfractdquha: Fixed-point fractional library routines.
39258 * __satfractdquhq: Fixed-point fractional library routines.
39260 * __satfractdquqq: Fixed-point fractional library routines.
39262 * __satfractdqusa: Fixed-point fractional library routines.
39264 * __satfractdqusq: Fixed-point fractional library routines.
39266 * __satfractdquta: Fixed-point fractional library routines.
39268 * __satfracthada2: Fixed-point fractional library routines.
39270 * __satfracthadq: Fixed-point fractional library routines.
39272 * __satfracthahq: Fixed-point fractional library routines.
39274 * __satfracthaqq: Fixed-point fractional library routines.
39276 * __satfracthasa2: Fixed-point fractional library routines.
39278 * __satfracthasq: Fixed-point fractional library routines.
39280 * __satfracthata2: Fixed-point fractional library routines.
39282 * __satfracthauda: Fixed-point fractional library routines.
39284 * __satfracthaudq: Fixed-point fractional library routines.
39286 * __satfracthauha: Fixed-point fractional library routines.
39288 * __satfracthauhq: Fixed-point fractional library routines.
39290 * __satfracthauqq: Fixed-point fractional library routines.
39292 * __satfracthausa: Fixed-point fractional library routines.
39294 * __satfracthausq: Fixed-point fractional library routines.
39296 * __satfracthauta: Fixed-point fractional library routines.
39298 * __satfracthida: Fixed-point fractional library routines.
39300 * __satfracthidq: Fixed-point fractional library routines.
39302 * __satfracthiha: Fixed-point fractional library routines.
39304 * __satfracthihq: Fixed-point fractional library routines.
39306 * __satfracthiqq: Fixed-point fractional library routines.
39308 * __satfracthisa: Fixed-point fractional library routines.
39310 * __satfracthisq: Fixed-point fractional library routines.
39312 * __satfracthita: Fixed-point fractional library routines.
39314 * __satfracthiuda: Fixed-point fractional library routines.
39316 * __satfracthiudq: Fixed-point fractional library routines.
39318 * __satfracthiuha: Fixed-point fractional library routines.
39320 * __satfracthiuhq: Fixed-point fractional library routines.
39322 * __satfracthiuqq: Fixed-point fractional library routines.
39324 * __satfracthiusa: Fixed-point fractional library routines.
39326 * __satfracthiusq: Fixed-point fractional library routines.
39328 * __satfracthiuta: Fixed-point fractional library routines.
39330 * __satfracthqda: Fixed-point fractional library routines.
39332 * __satfracthqdq2: Fixed-point fractional library routines.
39334 * __satfracthqha: Fixed-point fractional library routines.
39336 * __satfracthqqq2: Fixed-point fractional library routines.
39338 * __satfracthqsa: Fixed-point fractional library routines.
39340 * __satfracthqsq2: Fixed-point fractional library routines.
39342 * __satfracthqta: Fixed-point fractional library routines.
39344 * __satfracthquda: Fixed-point fractional library routines.
39346 * __satfracthqudq: Fixed-point fractional library routines.
39348 * __satfracthquha: Fixed-point fractional library routines.
39350 * __satfracthquhq: Fixed-point fractional library routines.
39352 * __satfracthquqq: Fixed-point fractional library routines.
39354 * __satfracthqusa: Fixed-point fractional library routines.
39356 * __satfracthqusq: Fixed-point fractional library routines.
39358 * __satfracthquta: Fixed-point fractional library routines.
39360 * __satfractqida: Fixed-point fractional library routines.
39362 * __satfractqidq: Fixed-point fractional library routines.
39364 * __satfractqiha: Fixed-point fractional library routines.
39366 * __satfractqihq: Fixed-point fractional library routines.
39368 * __satfractqiqq: Fixed-point fractional library routines.
39370 * __satfractqisa: Fixed-point fractional library routines.
39372 * __satfractqisq: Fixed-point fractional library routines.
39374 * __satfractqita: Fixed-point fractional library routines.
39376 * __satfractqiuda: Fixed-point fractional library routines.
39378 * __satfractqiudq: Fixed-point fractional library routines.
39380 * __satfractqiuha: Fixed-point fractional library routines.
39382 * __satfractqiuhq: Fixed-point fractional library routines.
39384 * __satfractqiuqq: Fixed-point fractional library routines.
39386 * __satfractqiusa: Fixed-point fractional library routines.
39388 * __satfractqiusq: Fixed-point fractional library routines.
39390 * __satfractqiuta: Fixed-point fractional library routines.
39392 * __satfractqqda: Fixed-point fractional library routines.
39394 * __satfractqqdq2: Fixed-point fractional library routines.
39396 * __satfractqqha: Fixed-point fractional library routines.
39398 * __satfractqqhq2: Fixed-point fractional library routines.
39400 * __satfractqqsa: Fixed-point fractional library routines.
39402 * __satfractqqsq2: Fixed-point fractional library routines.
39404 * __satfractqqta: Fixed-point fractional library routines.
39406 * __satfractqquda: Fixed-point fractional library routines.
39408 * __satfractqqudq: Fixed-point fractional library routines.
39410 * __satfractqquha: Fixed-point fractional library routines.
39412 * __satfractqquhq: Fixed-point fractional library routines.
39414 * __satfractqquqq: Fixed-point fractional library routines.
39416 * __satfractqqusa: Fixed-point fractional library routines.
39418 * __satfractqqusq: Fixed-point fractional library routines.
39420 * __satfractqquta: Fixed-point fractional library routines.
39422 * __satfractsada2: Fixed-point fractional library routines.
39424 * __satfractsadq: Fixed-point fractional library routines.
39426 * __satfractsaha2: Fixed-point fractional library routines.
39428 * __satfractsahq: Fixed-point fractional library routines.
39430 * __satfractsaqq: Fixed-point fractional library routines.
39432 * __satfractsasq: Fixed-point fractional library routines.
39434 * __satfractsata2: Fixed-point fractional library routines.
39436 * __satfractsauda: Fixed-point fractional library routines.
39438 * __satfractsaudq: Fixed-point fractional library routines.
39440 * __satfractsauha: Fixed-point fractional library routines.
39442 * __satfractsauhq: Fixed-point fractional library routines.
39444 * __satfractsauqq: Fixed-point fractional library routines.
39446 * __satfractsausa: Fixed-point fractional library routines.
39448 * __satfractsausq: Fixed-point fractional library routines.
39450 * __satfractsauta: Fixed-point fractional library routines.
39452 * __satfractsfda: Fixed-point fractional library routines.
39454 * __satfractsfdq: Fixed-point fractional library routines.
39456 * __satfractsfha: Fixed-point fractional library routines.
39458 * __satfractsfhq: Fixed-point fractional library routines.
39460 * __satfractsfqq: Fixed-point fractional library routines.
39462 * __satfractsfsa: Fixed-point fractional library routines.
39464 * __satfractsfsq: Fixed-point fractional library routines.
39466 * __satfractsfta: Fixed-point fractional library routines.
39468 * __satfractsfuda: Fixed-point fractional library routines.
39470 * __satfractsfudq: Fixed-point fractional library routines.
39472 * __satfractsfuha: Fixed-point fractional library routines.
39474 * __satfractsfuhq: Fixed-point fractional library routines.
39476 * __satfractsfuqq: Fixed-point fractional library routines.
39478 * __satfractsfusa: Fixed-point fractional library routines.
39480 * __satfractsfusq: Fixed-point fractional library routines.
39482 * __satfractsfuta: Fixed-point fractional library routines.
39484 * __satfractsida: Fixed-point fractional library routines.
39486 * __satfractsidq: Fixed-point fractional library routines.
39488 * __satfractsiha: Fixed-point fractional library routines.
39490 * __satfractsihq: Fixed-point fractional library routines.
39492 * __satfractsiqq: Fixed-point fractional library routines.
39494 * __satfractsisa: Fixed-point fractional library routines.
39496 * __satfractsisq: Fixed-point fractional library routines.
39498 * __satfractsita: Fixed-point fractional library routines.
39500 * __satfractsiuda: Fixed-point fractional library routines.
39502 * __satfractsiudq: Fixed-point fractional library routines.
39504 * __satfractsiuha: Fixed-point fractional library routines.
39506 * __satfractsiuhq: Fixed-point fractional library routines.
39508 * __satfractsiuqq: Fixed-point fractional library routines.
39510 * __satfractsiusa: Fixed-point fractional library routines.
39512 * __satfractsiusq: Fixed-point fractional library routines.
39514 * __satfractsiuta: Fixed-point fractional library routines.
39516 * __satfractsqda: Fixed-point fractional library routines.
39518 * __satfractsqdq2: Fixed-point fractional library routines.
39520 * __satfractsqha: Fixed-point fractional library routines.
39522 * __satfractsqhq2: Fixed-point fractional library routines.
39524 * __satfractsqqq2: Fixed-point fractional library routines.
39526 * __satfractsqsa: Fixed-point fractional library routines.
39528 * __satfractsqta: Fixed-point fractional library routines.
39530 * __satfractsquda: Fixed-point fractional library routines.
39532 * __satfractsqudq: Fixed-point fractional library routines.
39534 * __satfractsquha: Fixed-point fractional library routines.
39536 * __satfractsquhq: Fixed-point fractional library routines.
39538 * __satfractsquqq: Fixed-point fractional library routines.
39540 * __satfractsqusa: Fixed-point fractional library routines.
39542 * __satfractsqusq: Fixed-point fractional library routines.
39544 * __satfractsquta: Fixed-point fractional library routines.
39546 * __satfracttada2: Fixed-point fractional library routines.
39548 * __satfracttadq: Fixed-point fractional library routines.
39550 * __satfracttaha2: Fixed-point fractional library routines.
39552 * __satfracttahq: Fixed-point fractional library routines.
39554 * __satfracttaqq: Fixed-point fractional library routines.
39556 * __satfracttasa2: Fixed-point fractional library routines.
39558 * __satfracttasq: Fixed-point fractional library routines.
39560 * __satfracttauda: Fixed-point fractional library routines.
39562 * __satfracttaudq: Fixed-point fractional library routines.
39564 * __satfracttauha: Fixed-point fractional library routines.
39566 * __satfracttauhq: Fixed-point fractional library routines.
39568 * __satfracttauqq: Fixed-point fractional library routines.
39570 * __satfracttausa: Fixed-point fractional library routines.
39572 * __satfracttausq: Fixed-point fractional library routines.
39574 * __satfracttauta: Fixed-point fractional library routines.
39576 * __satfracttida: Fixed-point fractional library routines.
39578 * __satfracttidq: Fixed-point fractional library routines.
39580 * __satfracttiha: Fixed-point fractional library routines.
39582 * __satfracttihq: Fixed-point fractional library routines.
39584 * __satfracttiqq: Fixed-point fractional library routines.
39586 * __satfracttisa: Fixed-point fractional library routines.
39588 * __satfracttisq: Fixed-point fractional library routines.
39590 * __satfracttita: Fixed-point fractional library routines.
39592 * __satfracttiuda: Fixed-point fractional library routines.
39594 * __satfracttiudq: Fixed-point fractional library routines.
39596 * __satfracttiuha: Fixed-point fractional library routines.
39598 * __satfracttiuhq: Fixed-point fractional library routines.
39600 * __satfracttiuqq: Fixed-point fractional library routines.
39602 * __satfracttiusa: Fixed-point fractional library routines.
39604 * __satfracttiusq: Fixed-point fractional library routines.
39606 * __satfracttiuta: Fixed-point fractional library routines.
39608 * __satfractudada: Fixed-point fractional library routines.
39610 * __satfractudadq: Fixed-point fractional library routines.
39612 * __satfractudaha: Fixed-point fractional library routines.
39614 * __satfractudahq: Fixed-point fractional library routines.
39616 * __satfractudaqq: Fixed-point fractional library routines.
39618 * __satfractudasa: Fixed-point fractional library routines.
39620 * __satfractudasq: Fixed-point fractional library routines.
39622 * __satfractudata: Fixed-point fractional library routines.
39624 * __satfractudaudq: Fixed-point fractional library routines.
39626 * __satfractudauha2: Fixed-point fractional library routines.
39628 * __satfractudauhq: Fixed-point fractional library routines.
39630 * __satfractudauqq: Fixed-point fractional library routines.
39632 * __satfractudausa2: Fixed-point fractional library routines.
39634 * __satfractudausq: Fixed-point fractional library routines.
39636 * __satfractudauta2: Fixed-point fractional library routines.
39638 * __satfractudqda: Fixed-point fractional library routines.
39640 * __satfractudqdq: Fixed-point fractional library routines.
39642 * __satfractudqha: Fixed-point fractional library routines.
39644 * __satfractudqhq: Fixed-point fractional library routines.
39646 * __satfractudqqq: Fixed-point fractional library routines.
39648 * __satfractudqsa: Fixed-point fractional library routines.
39650 * __satfractudqsq: Fixed-point fractional library routines.
39652 * __satfractudqta: Fixed-point fractional library routines.
39654 * __satfractudquda: Fixed-point fractional library routines.
39656 * __satfractudquha: Fixed-point fractional library routines.
39658 * __satfractudquhq2: Fixed-point fractional library routines.
39660 * __satfractudquqq2: Fixed-point fractional library routines.
39662 * __satfractudqusa: Fixed-point fractional library routines.
39664 * __satfractudqusq2: Fixed-point fractional library routines.
39666 * __satfractudquta: Fixed-point fractional library routines.
39668 * __satfractuhada: Fixed-point fractional library routines.
39670 * __satfractuhadq: Fixed-point fractional library routines.
39672 * __satfractuhaha: Fixed-point fractional library routines.
39674 * __satfractuhahq: Fixed-point fractional library routines.
39676 * __satfractuhaqq: Fixed-point fractional library routines.
39678 * __satfractuhasa: Fixed-point fractional library routines.
39680 * __satfractuhasq: Fixed-point fractional library routines.
39682 * __satfractuhata: Fixed-point fractional library routines.
39684 * __satfractuhauda2: Fixed-point fractional library routines.
39686 * __satfractuhaudq: Fixed-point fractional library routines.
39688 * __satfractuhauhq: Fixed-point fractional library routines.
39690 * __satfractuhauqq: Fixed-point fractional library routines.
39692 * __satfractuhausa2: Fixed-point fractional library routines.
39694 * __satfractuhausq: Fixed-point fractional library routines.
39696 * __satfractuhauta2: Fixed-point fractional library routines.
39698 * __satfractuhqda: Fixed-point fractional library routines.
39700 * __satfractuhqdq: Fixed-point fractional library routines.
39702 * __satfractuhqha: Fixed-point fractional library routines.
39704 * __satfractuhqhq: Fixed-point fractional library routines.
39706 * __satfractuhqqq: Fixed-point fractional library routines.
39708 * __satfractuhqsa: Fixed-point fractional library routines.
39710 * __satfractuhqsq: Fixed-point fractional library routines.
39712 * __satfractuhqta: Fixed-point fractional library routines.
39714 * __satfractuhquda: Fixed-point fractional library routines.
39716 * __satfractuhqudq2: Fixed-point fractional library routines.
39718 * __satfractuhquha: Fixed-point fractional library routines.
39720 * __satfractuhquqq2: Fixed-point fractional library routines.
39722 * __satfractuhqusa: Fixed-point fractional library routines.
39724 * __satfractuhqusq2: Fixed-point fractional library routines.
39726 * __satfractuhquta: Fixed-point fractional library routines.
39728 * __satfractunsdida: Fixed-point fractional library routines.
39730 * __satfractunsdidq: Fixed-point fractional library routines.
39732 * __satfractunsdiha: Fixed-point fractional library routines.
39734 * __satfractunsdihq: Fixed-point fractional library routines.
39736 * __satfractunsdiqq: Fixed-point fractional library routines.
39738 * __satfractunsdisa: Fixed-point fractional library routines.
39740 * __satfractunsdisq: Fixed-point fractional library routines.
39742 * __satfractunsdita: Fixed-point fractional library routines.
39744 * __satfractunsdiuda: Fixed-point fractional library routines.
39746 * __satfractunsdiudq: Fixed-point fractional library routines.
39748 * __satfractunsdiuha: Fixed-point fractional library routines.
39750 * __satfractunsdiuhq: Fixed-point fractional library routines.
39752 * __satfractunsdiuqq: Fixed-point fractional library routines.
39754 * __satfractunsdiusa: Fixed-point fractional library routines.
39756 * __satfractunsdiusq: Fixed-point fractional library routines.
39758 * __satfractunsdiuta: Fixed-point fractional library routines.
39760 * __satfractunshida: Fixed-point fractional library routines.
39762 * __satfractunshidq: Fixed-point fractional library routines.
39764 * __satfractunshiha: Fixed-point fractional library routines.
39766 * __satfractunshihq: Fixed-point fractional library routines.
39768 * __satfractunshiqq: Fixed-point fractional library routines.
39770 * __satfractunshisa: Fixed-point fractional library routines.
39772 * __satfractunshisq: Fixed-point fractional library routines.
39774 * __satfractunshita: Fixed-point fractional library routines.
39776 * __satfractunshiuda: Fixed-point fractional library routines.
39778 * __satfractunshiudq: Fixed-point fractional library routines.
39780 * __satfractunshiuha: Fixed-point fractional library routines.
39782 * __satfractunshiuhq: Fixed-point fractional library routines.
39784 * __satfractunshiuqq: Fixed-point fractional library routines.
39786 * __satfractunshiusa: Fixed-point fractional library routines.
39788 * __satfractunshiusq: Fixed-point fractional library routines.
39790 * __satfractunshiuta: Fixed-point fractional library routines.
39792 * __satfractunsqida: Fixed-point fractional library routines.
39794 * __satfractunsqidq: Fixed-point fractional library routines.
39796 * __satfractunsqiha: Fixed-point fractional library routines.
39798 * __satfractunsqihq: Fixed-point fractional library routines.
39800 * __satfractunsqiqq: Fixed-point fractional library routines.
39802 * __satfractunsqisa: Fixed-point fractional library routines.
39804 * __satfractunsqisq: Fixed-point fractional library routines.
39806 * __satfractunsqita: Fixed-point fractional library routines.
39808 * __satfractunsqiuda: Fixed-point fractional library routines.
39810 * __satfractunsqiudq: Fixed-point fractional library routines.
39812 * __satfractunsqiuha: Fixed-point fractional library routines.
39814 * __satfractunsqiuhq: Fixed-point fractional library routines.
39816 * __satfractunsqiuqq: Fixed-point fractional library routines.
39818 * __satfractunsqiusa: Fixed-point fractional library routines.
39820 * __satfractunsqiusq: Fixed-point fractional library routines.
39822 * __satfractunsqiuta: Fixed-point fractional library routines.
39824 * __satfractunssida: Fixed-point fractional library routines.
39826 * __satfractunssidq: Fixed-point fractional library routines.
39828 * __satfractunssiha: Fixed-point fractional library routines.
39830 * __satfractunssihq: Fixed-point fractional library routines.
39832 * __satfractunssiqq: Fixed-point fractional library routines.
39834 * __satfractunssisa: Fixed-point fractional library routines.
39836 * __satfractunssisq: Fixed-point fractional library routines.
39838 * __satfractunssita: Fixed-point fractional library routines.
39840 * __satfractunssiuda: Fixed-point fractional library routines.
39842 * __satfractunssiudq: Fixed-point fractional library routines.
39844 * __satfractunssiuha: Fixed-point fractional library routines.
39846 * __satfractunssiuhq: Fixed-point fractional library routines.
39848 * __satfractunssiuqq: Fixed-point fractional library routines.
39850 * __satfractunssiusa: Fixed-point fractional library routines.
39852 * __satfractunssiusq: Fixed-point fractional library routines.
39854 * __satfractunssiuta: Fixed-point fractional library routines.
39856 * __satfractunstida: Fixed-point fractional library routines.
39858 * __satfractunstidq: Fixed-point fractional library routines.
39860 * __satfractunstiha: Fixed-point fractional library routines.
39862 * __satfractunstihq: Fixed-point fractional library routines.
39864 * __satfractunstiqq: Fixed-point fractional library routines.
39866 * __satfractunstisa: Fixed-point fractional library routines.
39868 * __satfractunstisq: Fixed-point fractional library routines.
39870 * __satfractunstita: Fixed-point fractional library routines.
39872 * __satfractunstiuda: Fixed-point fractional library routines.
39874 * __satfractunstiudq: Fixed-point fractional library routines.
39876 * __satfractunstiuha: Fixed-point fractional library routines.
39878 * __satfractunstiuhq: Fixed-point fractional library routines.
39880 * __satfractunstiuqq: Fixed-point fractional library routines.
39882 * __satfractunstiusa: Fixed-point fractional library routines.
39884 * __satfractunstiusq: Fixed-point fractional library routines.
39886 * __satfractunstiuta: Fixed-point fractional library routines.
39888 * __satfractuqqda: Fixed-point fractional library routines.
39890 * __satfractuqqdq: Fixed-point fractional library routines.
39892 * __satfractuqqha: Fixed-point fractional library routines.
39894 * __satfractuqqhq: Fixed-point fractional library routines.
39896 * __satfractuqqqq: Fixed-point fractional library routines.
39898 * __satfractuqqsa: Fixed-point fractional library routines.
39900 * __satfractuqqsq: Fixed-point fractional library routines.
39902 * __satfractuqqta: Fixed-point fractional library routines.
39904 * __satfractuqquda: Fixed-point fractional library routines.
39906 * __satfractuqqudq2: Fixed-point fractional library routines.
39908 * __satfractuqquha: Fixed-point fractional library routines.
39910 * __satfractuqquhq2: Fixed-point fractional library routines.
39912 * __satfractuqqusa: Fixed-point fractional library routines.
39914 * __satfractuqqusq2: Fixed-point fractional library routines.
39916 * __satfractuqquta: Fixed-point fractional library routines.
39918 * __satfractusada: Fixed-point fractional library routines.
39920 * __satfractusadq: Fixed-point fractional library routines.
39922 * __satfractusaha: Fixed-point fractional library routines.
39924 * __satfractusahq: Fixed-point fractional library routines.
39926 * __satfractusaqq: Fixed-point fractional library routines.
39928 * __satfractusasa: Fixed-point fractional library routines.
39930 * __satfractusasq: Fixed-point fractional library routines.
39932 * __satfractusata: Fixed-point fractional library routines.
39934 * __satfractusauda2: Fixed-point fractional library routines.
39936 * __satfractusaudq: Fixed-point fractional library routines.
39938 * __satfractusauha2: Fixed-point fractional library routines.
39940 * __satfractusauhq: Fixed-point fractional library routines.
39942 * __satfractusauqq: Fixed-point fractional library routines.
39944 * __satfractusausq: Fixed-point fractional library routines.
39946 * __satfractusauta2: Fixed-point fractional library routines.
39948 * __satfractusqda: Fixed-point fractional library routines.
39950 * __satfractusqdq: Fixed-point fractional library routines.
39952 * __satfractusqha: Fixed-point fractional library routines.
39954 * __satfractusqhq: Fixed-point fractional library routines.
39956 * __satfractusqqq: Fixed-point fractional library routines.
39958 * __satfractusqsa: Fixed-point fractional library routines.
39960 * __satfractusqsq: Fixed-point fractional library routines.
39962 * __satfractusqta: Fixed-point fractional library routines.
39964 * __satfractusquda: Fixed-point fractional library routines.
39966 * __satfractusqudq2: Fixed-point fractional library routines.
39968 * __satfractusquha: Fixed-point fractional library routines.
39970 * __satfractusquhq2: Fixed-point fractional library routines.
39972 * __satfractusquqq2: Fixed-point fractional library routines.
39974 * __satfractusqusa: Fixed-point fractional library routines.
39976 * __satfractusquta: Fixed-point fractional library routines.
39978 * __satfractutada: Fixed-point fractional library routines.
39980 * __satfractutadq: Fixed-point fractional library routines.
39982 * __satfractutaha: Fixed-point fractional library routines.
39984 * __satfractutahq: Fixed-point fractional library routines.
39986 * __satfractutaqq: Fixed-point fractional library routines.
39988 * __satfractutasa: Fixed-point fractional library routines.
39990 * __satfractutasq: Fixed-point fractional library routines.
39992 * __satfractutata: Fixed-point fractional library routines.
39994 * __satfractutauda2: Fixed-point fractional library routines.
39996 * __satfractutaudq: Fixed-point fractional library routines.
39998 * __satfractutauha2: Fixed-point fractional library routines.
40000 * __satfractutauhq: Fixed-point fractional library routines.
40002 * __satfractutauqq: Fixed-point fractional library routines.
40004 * __satfractutausa2: Fixed-point fractional library routines.
40006 * __satfractutausq: Fixed-point fractional library routines.
40008 * __ssaddda3: Fixed-point fractional library routines.
40010 * __ssadddq3: Fixed-point fractional library routines.
40012 * __ssaddha3: Fixed-point fractional library routines.
40014 * __ssaddhq3: Fixed-point fractional library routines.
40016 * __ssaddqq3: Fixed-point fractional library routines.
40018 * __ssaddsa3: Fixed-point fractional library routines.
40020 * __ssaddsq3: Fixed-point fractional library routines.
40022 * __ssaddta3: Fixed-point fractional library routines.
40024 * __ssashlda3: Fixed-point fractional library routines.
40026 * __ssashldq3: Fixed-point fractional library routines.
40028 * __ssashlha3: Fixed-point fractional library routines.
40030 * __ssashlhq3: Fixed-point fractional library routines.
40032 * __ssashlsa3: Fixed-point fractional library routines.
40034 * __ssashlsq3: Fixed-point fractional library routines.
40036 * __ssashlta3: Fixed-point fractional library routines.
40038 * __ssdivda3: Fixed-point fractional library routines.
40040 * __ssdivdq3: Fixed-point fractional library routines.
40042 * __ssdivha3: Fixed-point fractional library routines.
40044 * __ssdivhq3: Fixed-point fractional library routines.
40046 * __ssdivqq3: Fixed-point fractional library routines.
40048 * __ssdivsa3: Fixed-point fractional library routines.
40050 * __ssdivsq3: Fixed-point fractional library routines.
40052 * __ssdivta3: Fixed-point fractional library routines.
40054 * __ssmulda3: Fixed-point fractional library routines.
40056 * __ssmuldq3: Fixed-point fractional library routines.
40058 * __ssmulha3: Fixed-point fractional library routines.
40060 * __ssmulhq3: Fixed-point fractional library routines.
40062 * __ssmulqq3: Fixed-point fractional library routines.
40064 * __ssmulsa3: Fixed-point fractional library routines.
40066 * __ssmulsq3: Fixed-point fractional library routines.
40068 * __ssmulta3: Fixed-point fractional library routines.
40070 * __ssnegda2: Fixed-point fractional library routines.
40072 * __ssnegdq2: Fixed-point fractional library routines.
40074 * __ssnegha2: Fixed-point fractional library routines.
40076 * __ssneghq2: Fixed-point fractional library routines.
40078 * __ssnegqq2: Fixed-point fractional library routines.
40080 * __ssnegsa2: Fixed-point fractional library routines.
40082 * __ssnegsq2: Fixed-point fractional library routines.
40084 * __ssnegta2: Fixed-point fractional library routines.
40086 * __sssubda3: Fixed-point fractional library routines.
40088 * __sssubdq3: Fixed-point fractional library routines.
40090 * __sssubha3: Fixed-point fractional library routines.
40092 * __sssubhq3: Fixed-point fractional library routines.
40094 * __sssubqq3: Fixed-point fractional library routines.
40096 * __sssubsa3: Fixed-point fractional library routines.
40098 * __sssubsq3: Fixed-point fractional library routines.
40100 * __sssubta3: Fixed-point fractional library routines.
40102 * __subda3: Fixed-point fractional library routines.
40104 * __subdf3: Soft float library routines.
40106 * __subdq3: Fixed-point fractional library routines.
40108 * __subha3: Fixed-point fractional library routines.
40110 * __subhq3: Fixed-point fractional library routines.
40112 * __subqq3: Fixed-point fractional library routines.
40114 * __subsa3: Fixed-point fractional library routines.
40116 * __subsf3: Soft float library routines.
40118 * __subsq3: Fixed-point fractional library routines.
40120 * __subta3: Fixed-point fractional library routines.
40122 * __subtf3: Soft float library routines.
40124 * __subuda3: Fixed-point fractional library routines.
40126 * __subudq3: Fixed-point fractional library routines.
40128 * __subuha3: Fixed-point fractional library routines.
40130 * __subuhq3: Fixed-point fractional library routines.
40132 * __subuqq3: Fixed-point fractional library routines.
40134 * __subusa3: Fixed-point fractional library routines.
40136 * __subusq3: Fixed-point fractional library routines.
40138 * __subuta3: Fixed-point fractional library routines.
40140 * __subvdi3: Integer library routines.
40142 * __subvsi3: Integer library routines.
40144 * __subxf3: Soft float library routines.
40146 * __truncdfsf2: Soft float library routines.
40148 * __trunctfdf2: Soft float library routines.
40150 * __trunctfsf2: Soft float library routines.
40152 * __truncxfdf2: Soft float library routines.
40154 * __truncxfsf2: Soft float library routines.
40156 * __ucmpdi2: Integer library routines.
40158 * __ucmpti2: Integer library routines.
40160 * __udivdi3: Integer library routines.
40162 * __udivmoddi3: Integer library routines.
40164 * __udivsi3: Integer library routines.
40166 * __udivti3: Integer library routines.
40168 * __udivuda3: Fixed-point fractional library routines.
40170 * __udivudq3: Fixed-point fractional library routines.
40172 * __udivuha3: Fixed-point fractional library routines.
40174 * __udivuhq3: Fixed-point fractional library routines.
40176 * __udivuqq3: Fixed-point fractional library routines.
40178 * __udivusa3: Fixed-point fractional library routines.
40180 * __udivusq3: Fixed-point fractional library routines.
40182 * __udivuta3: Fixed-point fractional library routines.
40184 * __umoddi3: Integer library routines.
40186 * __umodsi3: Integer library routines.
40188 * __umodti3: Integer library routines.
40190 * __unorddf2: Soft float library routines.
40192 * __unordsf2: Soft float library routines.
40194 * __unordtf2: Soft float library routines.
40196 * __usadduda3: Fixed-point fractional library routines.
40198 * __usaddudq3: Fixed-point fractional library routines.
40200 * __usadduha3: Fixed-point fractional library routines.
40202 * __usadduhq3: Fixed-point fractional library routines.
40204 * __usadduqq3: Fixed-point fractional library routines.
40206 * __usaddusa3: Fixed-point fractional library routines.
40208 * __usaddusq3: Fixed-point fractional library routines.
40210 * __usadduta3: Fixed-point fractional library routines.
40212 * __usashluda3: Fixed-point fractional library routines.
40214 * __usashludq3: Fixed-point fractional library routines.
40216 * __usashluha3: Fixed-point fractional library routines.
40218 * __usashluhq3: Fixed-point fractional library routines.
40220 * __usashluqq3: Fixed-point fractional library routines.
40222 * __usashlusa3: Fixed-point fractional library routines.
40224 * __usashlusq3: Fixed-point fractional library routines.
40226 * __usashluta3: Fixed-point fractional library routines.
40228 * __usdivuda3: Fixed-point fractional library routines.
40230 * __usdivudq3: Fixed-point fractional library routines.
40232 * __usdivuha3: Fixed-point fractional library routines.
40234 * __usdivuhq3: Fixed-point fractional library routines.
40236 * __usdivuqq3: Fixed-point fractional library routines.
40238 * __usdivusa3: Fixed-point fractional library routines.
40240 * __usdivusq3: Fixed-point fractional library routines.
40242 * __usdivuta3: Fixed-point fractional library routines.
40244 * __usmuluda3: Fixed-point fractional library routines.
40246 * __usmuludq3: Fixed-point fractional library routines.
40248 * __usmuluha3: Fixed-point fractional library routines.
40250 * __usmuluhq3: Fixed-point fractional library routines.
40252 * __usmuluqq3: Fixed-point fractional library routines.
40254 * __usmulusa3: Fixed-point fractional library routines.
40256 * __usmulusq3: Fixed-point fractional library routines.
40258 * __usmuluta3: Fixed-point fractional library routines.
40260 * __usneguda2: Fixed-point fractional library routines.
40262 * __usnegudq2: Fixed-point fractional library routines.
40264 * __usneguha2: Fixed-point fractional library routines.
40266 * __usneguhq2: Fixed-point fractional library routines.
40268 * __usneguqq2: Fixed-point fractional library routines.
40270 * __usnegusa2: Fixed-point fractional library routines.
40272 * __usnegusq2: Fixed-point fractional library routines.
40274 * __usneguta2: Fixed-point fractional library routines.
40276 * __ussubuda3: Fixed-point fractional library routines.
40278 * __ussubudq3: Fixed-point fractional library routines.
40280 * __ussubuha3: Fixed-point fractional library routines.
40282 * __ussubuhq3: Fixed-point fractional library routines.
40284 * __ussubuqq3: Fixed-point fractional library routines.
40286 * __ussubusa3: Fixed-point fractional library routines.
40288 * __ussubusq3: Fixed-point fractional library routines.
40290 * __ussubuta3: Fixed-point fractional library routines.
40292 * abort: Portability. (line 21)
40293 * abs: Arithmetic. (line 195)
40294 * abs and attributes: Expressions. (line 64)
40295 * ABS_EXPR: Expression trees. (line 6)
40296 * absence_set: Processor pipeline description.
40298 * absM2 instruction pattern: Standard Names. (line 452)
40299 * absolute value: Arithmetic. (line 195)
40300 * access to operands: Accessors. (line 6)
40301 * access to special operands: Special Accessors. (line 6)
40302 * accessors: Accessors. (line 6)
40303 * ACCUM_TYPE_SIZE: Type Layout. (line 88)
40304 * ACCUMULATE_OUTGOING_ARGS: Stack Arguments. (line 46)
40305 * ACCUMULATE_OUTGOING_ARGS and stack frames: Function Entry. (line 135)
40306 * ADA_LONG_TYPE_SIZE: Type Layout. (line 26)
40307 * Adding a new GIMPLE statement code: Adding a new GIMPLE statement code.
40309 * ADDITIONAL_REGISTER_NAMES: Instruction Output. (line 15)
40310 * addM3 instruction pattern: Standard Names. (line 216)
40311 * addMODEcc instruction pattern: Standard Names. (line 904)
40312 * addr_diff_vec: Side Effects. (line 302)
40313 * addr_diff_vec, length of: Insn Lengths. (line 26)
40314 * ADDR_EXPR: Expression trees. (line 6)
40315 * addr_vec: Side Effects. (line 297)
40316 * addr_vec, length of: Insn Lengths. (line 26)
40317 * address constraints: Simple Constraints. (line 154)
40318 * address_operand <1>: Machine-Independent Predicates.
40320 * address_operand: Simple Constraints. (line 158)
40321 * addressing modes: Addressing Modes. (line 6)
40322 * ADJUST_FIELD_ALIGN: Storage Layout. (line 201)
40323 * ADJUST_INSN_LENGTH: Insn Lengths. (line 35)
40324 * AGGR_INIT_EXPR: Expression trees. (line 6)
40325 * aggregates as return values: Aggregate Return. (line 6)
40326 * alias: Alias analysis. (line 6)
40327 * ALL_COP_ADDITIONAL_REGISTER_NAMES: MIPS Coprocessors. (line 32)
40328 * ALL_REGS: Register Classes. (line 17)
40329 * allocate_stack instruction pattern: Standard Names. (line 1227)
40330 * alternate entry points: Insns. (line 140)
40331 * anchored addresses: Anchored Addresses. (line 6)
40332 * and: Arithmetic. (line 153)
40333 * and and attributes: Expressions. (line 50)
40334 * and, canonicalization of: Insn Canonicalizations.
40336 * andM3 instruction pattern: Standard Names. (line 222)
40337 * annotations: Annotations. (line 6)
40338 * APPLY_RESULT_SIZE: Scalar Return. (line 95)
40339 * ARG_POINTER_CFA_OFFSET: Frame Layout. (line 194)
40340 * ARG_POINTER_REGNUM: Frame Registers. (line 41)
40341 * ARG_POINTER_REGNUM and virtual registers: Regs and Memory. (line 65)
40342 * arg_pointer_rtx: Frame Registers. (line 85)
40343 * ARGS_GROW_DOWNWARD: Frame Layout. (line 35)
40344 * argument passing: Interface. (line 36)
40345 * arguments in registers: Register Arguments. (line 6)
40346 * arguments on stack: Stack Arguments. (line 6)
40347 * arithmetic library: Soft float library routines.
40349 * arithmetic shift: Arithmetic. (line 168)
40350 * arithmetic shift with signed saturation: Arithmetic. (line 168)
40351 * arithmetic shift with unsigned saturation: Arithmetic. (line 168)
40352 * arithmetic, in RTL: Arithmetic. (line 6)
40353 * ARITHMETIC_TYPE_P: Types. (line 76)
40354 * array: Types. (line 6)
40355 * ARRAY_RANGE_REF: Expression trees. (line 6)
40356 * ARRAY_REF: Expression trees. (line 6)
40357 * ARRAY_TYPE: Types. (line 6)
40358 * AS_NEEDS_DASH_FOR_PIPED_INPUT: Driver. (line 151)
40359 * ashift: Arithmetic. (line 168)
40360 * ashift and attributes: Expressions. (line 64)
40361 * ashiftrt: Arithmetic. (line 185)
40362 * ashiftrt and attributes: Expressions. (line 64)
40363 * ashlM3 instruction pattern: Standard Names. (line 431)
40364 * ashrM3 instruction pattern: Standard Names. (line 441)
40365 * ASM_APP_OFF: File Framework. (line 61)
40366 * ASM_APP_ON: File Framework. (line 54)
40367 * ASM_COMMENT_START: File Framework. (line 49)
40368 * ASM_DECLARE_CLASS_REFERENCE: Label Output. (line 436)
40369 * ASM_DECLARE_CONSTANT_NAME: Label Output. (line 128)
40370 * ASM_DECLARE_FUNCTION_NAME: Label Output. (line 87)
40371 * ASM_DECLARE_FUNCTION_SIZE: Label Output. (line 101)
40372 * ASM_DECLARE_OBJECT_NAME: Label Output. (line 114)
40373 * ASM_DECLARE_REGISTER_GLOBAL: Label Output. (line 143)
40374 * ASM_DECLARE_UNRESOLVED_REFERENCE: Label Output. (line 442)
40375 * ASM_FINAL_SPEC: Driver. (line 144)
40376 * ASM_FINISH_DECLARE_OBJECT: Label Output. (line 151)
40377 * ASM_FORMAT_PRIVATE_NAME: Label Output. (line 354)
40378 * asm_fprintf: Instruction Output. (line 123)
40379 * ASM_FPRINTF_EXTENSIONS: Instruction Output. (line 134)
40380 * ASM_GENERATE_INTERNAL_LABEL: Label Output. (line 338)
40381 * asm_input: Side Effects. (line 284)
40382 * asm_input and /v: Flags. (line 94)
40383 * ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX: Exception Handling. (line 82)
40384 * ASM_NO_SKIP_IN_TEXT: Alignment Output. (line 72)
40385 * asm_noperands: Insns. (line 266)
40386 * asm_operands and /v: Flags. (line 94)
40387 * asm_operands, RTL sharing: Sharing. (line 45)
40388 * asm_operands, usage: Assembler. (line 6)
40389 * ASM_OUTPUT_ADDR_DIFF_ELT: Dispatch Tables. (line 9)
40390 * ASM_OUTPUT_ADDR_VEC_ELT: Dispatch Tables. (line 26)
40391 * ASM_OUTPUT_ALIGN: Alignment Output. (line 79)
40392 * ASM_OUTPUT_ALIGN_WITH_NOP: Alignment Output. (line 84)
40393 * ASM_OUTPUT_ALIGNED_BSS: Uninitialized Data. (line 64)
40394 * ASM_OUTPUT_ALIGNED_COMMON: Uninitialized Data. (line 23)
40395 * ASM_OUTPUT_ALIGNED_DECL_COMMON: Uninitialized Data. (line 31)
40396 * ASM_OUTPUT_ALIGNED_DECL_LOCAL: Uninitialized Data. (line 95)
40397 * ASM_OUTPUT_ALIGNED_LOCAL: Uninitialized Data. (line 87)
40398 * ASM_OUTPUT_ASCII: Data Output. (line 50)
40399 * ASM_OUTPUT_BSS: Uninitialized Data. (line 39)
40400 * ASM_OUTPUT_CASE_END: Dispatch Tables. (line 51)
40401 * ASM_OUTPUT_CASE_LABEL: Dispatch Tables. (line 38)
40402 * ASM_OUTPUT_COMMON: Uninitialized Data. (line 10)
40403 * ASM_OUTPUT_DEBUG_LABEL: Label Output. (line 326)
40404 * ASM_OUTPUT_DEF: Label Output. (line 375)
40405 * ASM_OUTPUT_DEF_FROM_DECLS: Label Output. (line 383)
40406 * ASM_OUTPUT_DWARF_DELTA: SDB and DWARF. (line 42)
40407 * ASM_OUTPUT_DWARF_OFFSET: SDB and DWARF. (line 46)
40408 * ASM_OUTPUT_DWARF_PCREL: SDB and DWARF. (line 52)
40409 * ASM_OUTPUT_EXTERNAL: Label Output. (line 264)
40410 * ASM_OUTPUT_FDESC: Data Output. (line 59)
40411 * ASM_OUTPUT_IDENT: File Framework. (line 83)
40412 * ASM_OUTPUT_INTERNAL_LABEL: Label Output. (line 17)
40413 * ASM_OUTPUT_LABEL: Label Output. (line 9)
40414 * ASM_OUTPUT_LABEL_REF: Label Output. (line 299)
40415 * ASM_OUTPUT_LABELREF: Label Output. (line 285)
40416 * ASM_OUTPUT_LOCAL: Uninitialized Data. (line 74)
40417 * ASM_OUTPUT_MAX_SKIP_ALIGN: Alignment Output. (line 88)
40418 * ASM_OUTPUT_MEASURED_SIZE: Label Output. (line 41)
40419 * ASM_OUTPUT_OPCODE: Instruction Output. (line 21)
40420 * ASM_OUTPUT_POOL_EPILOGUE: Data Output. (line 109)
40421 * ASM_OUTPUT_POOL_PROLOGUE: Data Output. (line 72)
40422 * ASM_OUTPUT_REG_POP: Instruction Output. (line 178)
40423 * ASM_OUTPUT_REG_PUSH: Instruction Output. (line 173)
40424 * ASM_OUTPUT_SIZE_DIRECTIVE: Label Output. (line 35)
40425 * ASM_OUTPUT_SKIP: Alignment Output. (line 66)
40426 * ASM_OUTPUT_SOURCE_FILENAME: File Framework. (line 68)
40427 * ASM_OUTPUT_SPECIAL_POOL_ENTRY: Data Output. (line 84)
40428 * ASM_OUTPUT_SYMBOL_REF: Label Output. (line 292)
40429 * ASM_OUTPUT_TYPE_DIRECTIVE: Label Output. (line 77)
40430 * ASM_OUTPUT_WEAK_ALIAS: Label Output. (line 401)
40431 * ASM_OUTPUT_WEAKREF: Label Output. (line 203)
40432 * ASM_PREFERRED_EH_DATA_FORMAT: Exception Handling. (line 67)
40433 * ASM_SPEC: Driver. (line 136)
40434 * ASM_STABD_OP: DBX Options. (line 36)
40435 * ASM_STABN_OP: DBX Options. (line 43)
40436 * ASM_STABS_OP: DBX Options. (line 29)
40437 * ASM_WEAKEN_DECL: Label Output. (line 195)
40438 * ASM_WEAKEN_LABEL: Label Output. (line 182)
40439 * assemble_name: Label Output. (line 8)
40440 * assemble_name_raw: Label Output. (line 16)
40441 * assembler format: File Framework. (line 6)
40442 * assembler instructions in RTL: Assembler. (line 6)
40443 * ASSEMBLER_DIALECT: Instruction Output. (line 146)
40444 * assigning attribute values to insns: Tagging Insns. (line 6)
40445 * assignment operator: Function Basics. (line 6)
40446 * asterisk in template: Output Statement. (line 29)
40447 * atan2M3 instruction pattern: Standard Names. (line 522)
40448 * attr <1>: Tagging Insns. (line 54)
40449 * attr: Expressions. (line 154)
40450 * attr_flag: Expressions. (line 119)
40451 * attribute expressions: Expressions. (line 6)
40452 * attribute specifications: Attr Example. (line 6)
40453 * attribute specifications example: Attr Example. (line 6)
40454 * ATTRIBUTE_ALIGNED_VALUE: Storage Layout. (line 183)
40455 * attributes: Attributes. (line 6)
40456 * attributes, defining: Defining Attributes.
40458 * attributes, target-specific: Target Attributes. (line 6)
40459 * autoincrement addressing, availability: Portability. (line 21)
40460 * autoincrement/decrement addressing: Simple Constraints. (line 30)
40461 * automata_option: Processor pipeline description.
40463 * automaton based pipeline description: Processor pipeline description.
40465 * automaton based scheduler: Processor pipeline description.
40467 * AVOID_CCMODE_COPIES: Values in Registers.
40469 * backslash: Output Template. (line 46)
40470 * barrier: Insns. (line 160)
40471 * barrier and /f: Flags. (line 125)
40472 * barrier and /v: Flags. (line 44)
40473 * BASE_REG_CLASS: Register Classes. (line 107)
40474 * basic block: Basic Blocks. (line 6)
40475 * basic-block.h: Control Flow. (line 6)
40476 * BASIC_BLOCK: Basic Blocks. (line 19)
40477 * basic_block: Basic Blocks. (line 6)
40478 * BB_HEAD, BB_END: Maintaining the CFG.
40480 * bb_seq: GIMPLE sequences. (line 73)
40481 * bCOND instruction pattern: Standard Names. (line 941)
40482 * BIGGEST_ALIGNMENT: Storage Layout. (line 173)
40483 * BIGGEST_FIELD_ALIGNMENT: Storage Layout. (line 194)
40484 * BImode: Machine Modes. (line 22)
40485 * BIND_EXPR: Expression trees. (line 6)
40486 * BINFO_TYPE: Classes. (line 6)
40487 * bit-fields: Bit-Fields. (line 6)
40488 * BIT_AND_EXPR: Expression trees. (line 6)
40489 * BIT_IOR_EXPR: Expression trees. (line 6)
40490 * BIT_NOT_EXPR: Expression trees. (line 6)
40491 * BIT_XOR_EXPR: Expression trees. (line 6)
40492 * BITFIELD_NBYTES_LIMITED: Storage Layout. (line 375)
40493 * BITS_BIG_ENDIAN: Storage Layout. (line 12)
40494 * BITS_BIG_ENDIAN, effect on sign_extract: Bit-Fields. (line 8)
40495 * BITS_PER_UNIT: Storage Layout. (line 52)
40496 * BITS_PER_WORD: Storage Layout. (line 57)
40497 * bitwise complement: Arithmetic. (line 149)
40498 * bitwise exclusive-or: Arithmetic. (line 163)
40499 * bitwise inclusive-or: Arithmetic. (line 158)
40500 * bitwise logical-and: Arithmetic. (line 153)
40501 * BLKmode: Machine Modes. (line 183)
40502 * BLKmode, and function return values: Calls. (line 23)
40503 * block statement iterators <1>: Basic Blocks. (line 68)
40504 * block statement iterators: Maintaining the CFG.
40506 * BLOCK_FOR_INSN, bb_for_stmt: Maintaining the CFG.
40508 * BLOCK_REG_PADDING: Register Arguments. (line 229)
40509 * blockage instruction pattern: Standard Names. (line 1408)
40510 * Blocks: Blocks. (line 6)
40511 * bool <1>: Exception Region Output.
40513 * bool <2>: Sections. (line 293)
40514 * bool <3>: Exception Region Output.
40516 * bool: Sections. (line 280)
40517 * BOOL_TYPE_SIZE: Type Layout. (line 44)
40518 * BOOLEAN_TYPE: Types. (line 6)
40519 * branch prediction: Profile information.
40521 * BRANCH_COST: Costs. (line 52)
40522 * break_out_memory_refs: Addressing Modes. (line 130)
40523 * BREAK_STMT: Function Bodies. (line 6)
40524 * bsi_commit_edge_inserts: Maintaining the CFG.
40526 * bsi_end_p: Maintaining the CFG.
40528 * bsi_insert_after: Maintaining the CFG.
40530 * bsi_insert_before: Maintaining the CFG.
40532 * bsi_insert_on_edge: Maintaining the CFG.
40534 * bsi_last: Maintaining the CFG.
40536 * bsi_next: Maintaining the CFG.
40538 * bsi_prev: Maintaining the CFG.
40540 * bsi_remove: Maintaining the CFG.
40542 * bsi_start: Maintaining the CFG.
40544 * BSS_SECTION_ASM_OP: Sections. (line 68)
40545 * bswap: Arithmetic. (line 232)
40546 * btruncM2 instruction pattern: Standard Names. (line 540)
40547 * builtin_longjmp instruction pattern: Standard Names. (line 1313)
40548 * builtin_setjmp_receiver instruction pattern: Standard Names.
40550 * builtin_setjmp_setup instruction pattern: Standard Names. (line 1292)
40551 * byte_mode: Machine Modes. (line 336)
40552 * BYTES_BIG_ENDIAN: Storage Layout. (line 24)
40553 * BYTES_BIG_ENDIAN, effect on subreg: Regs and Memory. (line 221)
40554 * C statements for assembler output: Output Statement. (line 6)
40555 * C/C++ Internal Representation: Trees. (line 6)
40556 * C99 math functions, implicit usage: Library Calls. (line 76)
40557 * C_COMMON_OVERRIDE_OPTIONS: Run-time Target. (line 114)
40558 * c_register_pragma: Misc. (line 404)
40559 * c_register_pragma_with_expansion: Misc. (line 406)
40560 * call <1>: Flags. (line 234)
40561 * call: Side Effects. (line 86)
40562 * call instruction pattern: Standard Names. (line 974)
40563 * call usage: Calls. (line 10)
40564 * call, in call_insn: Flags. (line 33)
40565 * call, in mem: Flags. (line 99)
40566 * call-clobbered register: Register Basics. (line 46)
40567 * call-saved register: Register Basics. (line 53)
40568 * call-used register: Register Basics. (line 35)
40569 * CALL_EXPR: Expression trees. (line 6)
40570 * call_insn: Insns. (line 95)
40571 * call_insn and /c: Flags. (line 33)
40572 * call_insn and /f: Flags. (line 125)
40573 * call_insn and /i: Flags. (line 24)
40574 * call_insn and /j: Flags. (line 179)
40575 * call_insn and /s: Flags. (line 166)
40576 * call_insn and /u: Flags. (line 39)
40577 * call_insn and /u or /i: Flags. (line 29)
40578 * call_insn and /v: Flags. (line 44)
40579 * CALL_INSN_FUNCTION_USAGE: Insns. (line 101)
40580 * call_pop instruction pattern: Standard Names. (line 1002)
40581 * CALL_POPS_ARGS: Stack Arguments. (line 130)
40582 * CALL_REALLY_USED_REGISTERS: Register Basics. (line 46)
40583 * CALL_USED_REGISTERS: Register Basics. (line 35)
40584 * call_used_regs: Register Basics. (line 59)
40585 * call_value instruction pattern: Standard Names. (line 994)
40586 * call_value_pop instruction pattern: Standard Names. (line 1002)
40587 * CALLER_SAVE_PROFITABLE: Caller Saves. (line 11)
40588 * calling conventions: Stack and Calling. (line 6)
40589 * calling functions in RTL: Calls. (line 6)
40590 * can_create_pseudo_p: Standard Names. (line 75)
40591 * CAN_DEBUG_WITHOUT_FP: Run-time Target. (line 146)
40592 * CAN_ELIMINATE: Elimination. (line 71)
40593 * can_fallthru: Basic Blocks. (line 57)
40594 * canadian: Configure Terms. (line 6)
40595 * CANNOT_CHANGE_MODE_CLASS: Register Classes. (line 481)
40596 * CANNOT_CHANGE_MODE_CLASS and subreg semantics: Regs and Memory.
40598 * canonicalization of instructions: Insn Canonicalizations.
40600 * CANONICALIZE_COMPARISON: Condition Code. (line 84)
40601 * canonicalize_funcptr_for_compare instruction pattern: Standard Names.
40603 * CASE_USE_BIT_TESTS: Misc. (line 54)
40604 * CASE_VALUES_THRESHOLD: Misc. (line 47)
40605 * CASE_VECTOR_MODE: Misc. (line 27)
40606 * CASE_VECTOR_PC_RELATIVE: Misc. (line 40)
40607 * CASE_VECTOR_SHORTEN_MODE: Misc. (line 31)
40608 * casesi instruction pattern: Standard Names. (line 1082)
40609 * cbranchMODE4 instruction pattern: Standard Names. (line 963)
40610 * cc0: Regs and Memory. (line 307)
40611 * cc0, RTL sharing: Sharing. (line 27)
40612 * cc0_rtx: Regs and Memory. (line 333)
40613 * CC1_SPEC: Driver. (line 118)
40614 * CC1PLUS_SPEC: Driver. (line 126)
40615 * cc_status: Condition Code. (line 8)
40616 * CC_STATUS_MDEP: Condition Code. (line 19)
40617 * CC_STATUS_MDEP_INIT: Condition Code. (line 25)
40618 * CCmode: Machine Modes. (line 176)
40619 * CDImode: Machine Modes. (line 202)
40620 * CEIL_DIV_EXPR: Expression trees. (line 6)
40621 * CEIL_MOD_EXPR: Expression trees. (line 6)
40622 * ceilM2 instruction pattern: Standard Names. (line 556)
40623 * CFA_FRAME_BASE_OFFSET: Frame Layout. (line 226)
40624 * CFG, Control Flow Graph: Control Flow. (line 6)
40625 * cfghooks.h: Maintaining the CFG.
40627 * cgraph_finalize_function: Parsing pass. (line 52)
40628 * chain_circular: GTY Options. (line 196)
40629 * chain_next: GTY Options. (line 196)
40630 * chain_prev: GTY Options. (line 196)
40631 * change_address: Standard Names. (line 47)
40632 * CHANGE_DYNAMIC_TYPE_EXPR: Expression trees. (line 6)
40633 * char <1>: PCH Target. (line 27)
40634 * char <2>: Misc. (line 902)
40635 * char <3>: Sections. (line 272)
40636 * char <4>: GIMPLE_ASM. (line 53)
40637 * char: PCH Target. (line 12)
40638 * CHAR_TYPE_SIZE: Type Layout. (line 39)
40639 * check_stack instruction pattern: Standard Names. (line 1245)
40640 * CHImode: Machine Modes. (line 202)
40641 * class: Classes. (line 6)
40642 * class definitions, register: Register Classes. (line 6)
40643 * class preference constraints: Class Preferences. (line 6)
40644 * CLASS_LIKELY_SPILLED_P: Register Classes. (line 452)
40645 * CLASS_MAX_NREGS: Register Classes. (line 469)
40646 * CLASS_TYPE_P: Types. (line 80)
40647 * classes of RTX codes: RTL Classes. (line 6)
40648 * CLASSTYPE_DECLARED_CLASS: Classes. (line 6)
40649 * CLASSTYPE_HAS_MUTABLE: Classes. (line 80)
40650 * CLASSTYPE_NON_POD_P: Classes. (line 85)
40651 * CLEANUP_DECL: Function Bodies. (line 6)
40652 * CLEANUP_EXPR: Function Bodies. (line 6)
40653 * CLEANUP_POINT_EXPR: Expression trees. (line 6)
40654 * CLEANUP_STMT: Function Bodies. (line 6)
40655 * Cleanups: Cleanups. (line 6)
40656 * CLEAR_BY_PIECES_P: Costs. (line 130)
40657 * clear_cache instruction pattern: Standard Names. (line 1555)
40658 * CLEAR_INSN_CACHE: Trampolines. (line 100)
40659 * CLEAR_RATIO: Costs. (line 121)
40660 * clobber: Side Effects. (line 100)
40661 * clz: Arithmetic. (line 208)
40662 * CLZ_DEFINED_VALUE_AT_ZERO: Misc. (line 319)
40663 * clzM2 instruction pattern: Standard Names. (line 621)
40664 * cmpM instruction pattern: Standard Names. (line 654)
40665 * cmpmemM instruction pattern: Standard Names. (line 769)
40666 * cmpstrM instruction pattern: Standard Names. (line 750)
40667 * cmpstrnM instruction pattern: Standard Names. (line 738)
40668 * code generation RTL sequences: Expander Definitions.
40670 * code iterators in .md files: Code Iterators. (line 6)
40671 * code_label: Insns. (line 119)
40672 * code_label and /i: Flags. (line 59)
40673 * code_label and /v: Flags. (line 44)
40674 * CODE_LABEL_NUMBER: Insns. (line 119)
40675 * codes, RTL expression: RTL Objects. (line 47)
40676 * COImode: Machine Modes. (line 202)
40677 * COLLECT2_HOST_INITIALIZATION: Host Misc. (line 32)
40678 * COLLECT_EXPORT_LIST: Misc. (line 775)
40679 * COLLECT_SHARED_FINI_FUNC: Macros for Initialization.
40681 * COLLECT_SHARED_INIT_FUNC: Macros for Initialization.
40683 * commit_edge_insertions: Maintaining the CFG.
40685 * compare: Arithmetic. (line 43)
40686 * compare, canonicalization of: Insn Canonicalizations.
40688 * comparison_operator: Machine-Independent Predicates.
40690 * compiler passes and files: Passes. (line 6)
40691 * complement, bitwise: Arithmetic. (line 149)
40692 * COMPLEX_CST: Expression trees. (line 6)
40693 * COMPLEX_EXPR: Expression trees. (line 6)
40694 * COMPLEX_TYPE: Types. (line 6)
40695 * COMPONENT_REF: Expression trees. (line 6)
40696 * Compound Expressions: Compound Expressions.
40698 * Compound Lvalues: Compound Lvalues. (line 6)
40699 * COMPOUND_EXPR: Expression trees. (line 6)
40700 * COMPOUND_LITERAL_EXPR: Expression trees. (line 6)
40701 * COMPOUND_LITERAL_EXPR_DECL: Expression trees. (line 608)
40702 * COMPOUND_LITERAL_EXPR_DECL_STMT: Expression trees. (line 608)
40703 * computed jump: Edges. (line 128)
40704 * computing the length of an insn: Insn Lengths. (line 6)
40705 * concat: Regs and Memory. (line 385)
40706 * concatn: Regs and Memory. (line 391)
40707 * cond: Comparisons. (line 90)
40708 * cond and attributes: Expressions. (line 37)
40709 * cond_exec: Side Effects. (line 248)
40710 * COND_EXPR: Expression trees. (line 6)
40711 * condition code register: Regs and Memory. (line 307)
40712 * condition code status: Condition Code. (line 6)
40713 * condition codes: Comparisons. (line 20)
40714 * conditional execution: Conditional Execution.
40716 * Conditional Expressions: Conditional Expressions.
40718 * CONDITIONAL_REGISTER_USAGE: Register Basics. (line 60)
40719 * conditional_trap instruction pattern: Standard Names. (line 1379)
40720 * conditions, in patterns: Patterns. (line 43)
40721 * configuration file <1>: Filesystem. (line 6)
40722 * configuration file: Host Misc. (line 6)
40723 * configure terms: Configure Terms. (line 6)
40724 * CONJ_EXPR: Expression trees. (line 6)
40725 * const: Constants. (line 99)
40726 * const0_rtx: Constants. (line 16)
40727 * CONST0_RTX: Constants. (line 119)
40728 * const1_rtx: Constants. (line 16)
40729 * CONST1_RTX: Constants. (line 119)
40730 * CONST2_RTX: Constants. (line 119)
40731 * const2_rtx: Constants. (line 16)
40732 * CONST_DECL: Declarations. (line 6)
40733 * const_double: Constants. (line 32)
40734 * const_double, RTL sharing: Sharing. (line 29)
40735 * CONST_DOUBLE_LOW: Constants. (line 39)
40736 * CONST_DOUBLE_OK_FOR_CONSTRAINT_P: Old Constraints. (line 69)
40737 * CONST_DOUBLE_OK_FOR_LETTER_P: Old Constraints. (line 54)
40738 * const_double_operand: Machine-Independent Predicates.
40740 * const_fixed: Constants. (line 52)
40741 * const_int: Constants. (line 8)
40742 * const_int and attribute tests: Expressions. (line 47)
40743 * const_int and attributes: Expressions. (line 10)
40744 * const_int, RTL sharing: Sharing. (line 23)
40745 * const_int_operand: Machine-Independent Predicates.
40747 * CONST_OK_FOR_CONSTRAINT_P: Old Constraints. (line 49)
40748 * CONST_OK_FOR_LETTER_P: Old Constraints. (line 40)
40749 * const_string: Constants. (line 71)
40750 * const_string and attributes: Expressions. (line 20)
40751 * const_true_rtx: Constants. (line 26)
40752 * const_vector: Constants. (line 59)
40753 * const_vector, RTL sharing: Sharing. (line 32)
40754 * constant attributes: Constant Attributes.
40756 * constant definitions: Constant Definitions.
40758 * CONSTANT_ADDRESS_P: Addressing Modes. (line 29)
40759 * CONSTANT_ALIGNMENT: Storage Layout. (line 241)
40760 * CONSTANT_P: Addressing Modes. (line 35)
40761 * CONSTANT_POOL_ADDRESS_P: Flags. (line 10)
40762 * CONSTANT_POOL_BEFORE_FUNCTION: Data Output. (line 64)
40763 * constants in constraints: Simple Constraints. (line 60)
40764 * constm1_rtx: Constants. (line 16)
40765 * constraint modifier characters: Modifiers. (line 6)
40766 * constraint, matching: Simple Constraints. (line 132)
40767 * CONSTRAINT_LEN: Old Constraints. (line 12)
40768 * constraint_num: C Constraint Interface.
40770 * constraint_satisfied_p: C Constraint Interface.
40772 * constraints: Constraints. (line 6)
40773 * constraints, defining: Define Constraints. (line 6)
40774 * constraints, defining, obsolete method: Old Constraints. (line 6)
40775 * constraints, machine specific: Machine Constraints.
40777 * constraints, testing: C Constraint Interface.
40779 * CONSTRUCTOR: Expression trees. (line 6)
40780 * constructor: Function Basics. (line 6)
40781 * constructors, automatic calls: Collect2. (line 15)
40782 * constructors, output of: Initialization. (line 6)
40783 * container: Containers. (line 6)
40784 * CONTINUE_STMT: Function Bodies. (line 6)
40785 * contributors: Contributors. (line 6)
40786 * controlling register usage: Register Basics. (line 76)
40787 * controlling the compilation driver: Driver. (line 6)
40788 * conventions, run-time: Interface. (line 6)
40789 * conversions: Conversions. (line 6)
40790 * CONVERT_EXPR: Expression trees. (line 6)
40791 * copy constructor: Function Basics. (line 6)
40792 * copy_rtx: Addressing Modes. (line 182)
40793 * copy_rtx_if_shared: Sharing. (line 64)
40794 * copysignM3 instruction pattern: Standard Names. (line 602)
40795 * cosM2 instruction pattern: Standard Names. (line 481)
40796 * costs of instructions: Costs. (line 6)
40797 * CP_INTEGRAL_TYPE: Types. (line 72)
40798 * cp_namespace_decls: Namespaces. (line 44)
40799 * CP_TYPE_CONST_NON_VOLATILE_P: Types. (line 45)
40800 * CP_TYPE_CONST_P: Types. (line 36)
40801 * CP_TYPE_QUALS: Types. (line 6)
40802 * CP_TYPE_RESTRICT_P: Types. (line 42)
40803 * CP_TYPE_VOLATILE_P: Types. (line 39)
40804 * CPLUSPLUS_CPP_SPEC: Driver. (line 113)
40805 * CPP_SPEC: Driver. (line 106)
40806 * CQImode: Machine Modes. (line 202)
40807 * cross compilation and floating point: Floating Point. (line 6)
40808 * CRT_CALL_STATIC_FUNCTION: Sections. (line 112)
40809 * CRTSTUFF_T_CFLAGS: Target Fragment. (line 35)
40810 * CRTSTUFF_T_CFLAGS_S: Target Fragment. (line 39)
40811 * CSImode: Machine Modes. (line 202)
40812 * CTImode: Machine Modes. (line 202)
40813 * ctz: Arithmetic. (line 216)
40814 * CTZ_DEFINED_VALUE_AT_ZERO: Misc. (line 320)
40815 * ctzM2 instruction pattern: Standard Names. (line 630)
40816 * CUMULATIVE_ARGS: Register Arguments. (line 127)
40817 * current_function_epilogue_delay_list: Function Entry. (line 181)
40818 * current_function_is_leaf: Leaf Functions. (line 51)
40819 * current_function_outgoing_args_size: Stack Arguments. (line 45)
40820 * current_function_pops_args: Function Entry. (line 106)
40821 * current_function_pretend_args_size: Function Entry. (line 112)
40822 * current_function_uses_only_leaf_regs: Leaf Functions. (line 51)
40823 * current_insn_predicate: Conditional Execution.
40825 * DAmode: Machine Modes. (line 152)
40826 * data bypass: Processor pipeline description.
40828 * data dependence delays: Processor pipeline description.
40830 * Data Dependency Analysis: Dependency analysis.
40832 * data structures: Per-Function Data. (line 6)
40833 * DATA_ALIGNMENT: Storage Layout. (line 228)
40834 * DATA_SECTION_ASM_OP: Sections. (line 53)
40835 * DBR_OUTPUT_SEQEND: Instruction Output. (line 107)
40836 * dbr_sequence_length: Instruction Output. (line 106)
40837 * DBX_BLOCKS_FUNCTION_RELATIVE: DBX Options. (line 103)
40838 * DBX_CONTIN_CHAR: DBX Options. (line 66)
40839 * DBX_CONTIN_LENGTH: DBX Options. (line 56)
40840 * DBX_DEBUGGING_INFO: DBX Options. (line 9)
40841 * DBX_FUNCTION_FIRST: DBX Options. (line 97)
40842 * DBX_LINES_FUNCTION_RELATIVE: DBX Options. (line 109)
40843 * DBX_NO_XREFS: DBX Options. (line 50)
40844 * DBX_OUTPUT_LBRAC: DBX Hooks. (line 9)
40845 * DBX_OUTPUT_MAIN_SOURCE_FILE_END: File Names and DBX. (line 34)
40846 * DBX_OUTPUT_MAIN_SOURCE_FILENAME: File Names and DBX. (line 9)
40847 * DBX_OUTPUT_NFUN: DBX Hooks. (line 18)
40848 * DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END: File Names and DBX.
40850 * DBX_OUTPUT_RBRAC: DBX Hooks. (line 15)
40851 * DBX_OUTPUT_SOURCE_LINE: DBX Hooks. (line 22)
40852 * DBX_REGISTER_NUMBER: All Debuggers. (line 9)
40853 * DBX_REGPARM_STABS_CODE: DBX Options. (line 87)
40854 * DBX_REGPARM_STABS_LETTER: DBX Options. (line 92)
40855 * DBX_STATIC_CONST_VAR_CODE: DBX Options. (line 82)
40856 * DBX_STATIC_STAB_DATA_SECTION: DBX Options. (line 73)
40857 * DBX_TYPE_DECL_STABS_CODE: DBX Options. (line 78)
40858 * DBX_USE_BINCL: DBX Options. (line 115)
40859 * DCmode: Machine Modes. (line 197)
40860 * DDmode: Machine Modes. (line 90)
40861 * De Morgan's law: Insn Canonicalizations.
40863 * dead_or_set_p: define_peephole. (line 65)
40864 * DEBUG_SYMS_TEXT: DBX Options. (line 25)
40865 * DEBUGGER_ARG_OFFSET: All Debuggers. (line 37)
40866 * DEBUGGER_AUTO_OFFSET: All Debuggers. (line 28)
40867 * decimal float library: Decimal float library routines.
40869 * DECL_ALIGN: Declarations. (line 6)
40870 * DECL_ANTICIPATED: Function Basics. (line 48)
40871 * DECL_ARGUMENTS: Function Basics. (line 163)
40872 * DECL_ARRAY_DELETE_OPERATOR_P: Function Basics. (line 184)
40873 * DECL_ARTIFICIAL <1>: Function Basics. (line 155)
40874 * DECL_ARTIFICIAL <2>: Working with declarations.
40876 * DECL_ARTIFICIAL: Function Basics. (line 6)
40877 * DECL_ASSEMBLER_NAME: Function Basics. (line 21)
40878 * DECL_ATTRIBUTES: Attributes. (line 22)
40879 * DECL_BASE_CONSTRUCTOR_P: Function Basics. (line 94)
40880 * DECL_CLASS_SCOPE_P: Working with declarations.
40882 * DECL_COMPLETE_CONSTRUCTOR_P: Function Basics. (line 90)
40883 * DECL_COMPLETE_DESTRUCTOR_P: Function Basics. (line 104)
40884 * DECL_CONST_MEMFUNC_P: Function Basics. (line 77)
40885 * DECL_CONSTRUCTOR_P: Function Basics. (line 83)
40886 * DECL_CONTEXT: Namespaces. (line 26)
40887 * DECL_CONV_FN_P: Function Basics. (line 6)
40888 * DECL_COPY_CONSTRUCTOR_P: Function Basics. (line 98)
40889 * DECL_DESTRUCTOR_P: Function Basics. (line 101)
40890 * DECL_EXTERN_C_FUNCTION_P: Function Basics. (line 52)
40891 * DECL_EXTERNAL <1>: Declarations. (line 6)
40892 * DECL_EXTERNAL: Function Basics. (line 38)
40893 * DECL_FUNCTION_MEMBER_P: Function Basics. (line 6)
40894 * DECL_FUNCTION_SCOPE_P: Working with declarations.
40896 * DECL_FUNCTION_SPECIFIC_OPTIMIZATION: Function Basics. (line 194)
40897 * DECL_FUNCTION_SPECIFIC_TARGET: Function Basics. (line 188)
40898 * DECL_GLOBAL_CTOR_P: Function Basics. (line 6)
40899 * DECL_GLOBAL_DTOR_P: Function Basics. (line 6)
40900 * DECL_INITIAL: Declarations. (line 6)
40901 * DECL_LINKONCE_P: Function Basics. (line 6)
40902 * DECL_LOCAL_FUNCTION_P: Function Basics. (line 44)
40903 * DECL_MAIN_P: Function Basics. (line 7)
40904 * DECL_NAME <1>: Working with declarations.
40906 * DECL_NAME <2>: Function Basics. (line 11)
40907 * DECL_NAME: Namespaces. (line 15)
40908 * DECL_NAMESPACE_ALIAS: Namespaces. (line 30)
40909 * DECL_NAMESPACE_SCOPE_P: Working with declarations.
40911 * DECL_NAMESPACE_STD_P: Namespaces. (line 40)
40912 * DECL_NON_THUNK_FUNCTION_P: Function Basics. (line 144)
40913 * DECL_NONCONVERTING_P: Function Basics. (line 86)
40914 * DECL_NONSTATIC_MEMBER_FUNCTION_P: Function Basics. (line 74)
40915 * DECL_OVERLOADED_OPERATOR_P: Function Basics. (line 108)
40916 * DECL_RESULT: Function Basics. (line 168)
40917 * DECL_SIZE: Declarations. (line 6)
40918 * DECL_STATIC_FUNCTION_P: Function Basics. (line 71)
40919 * DECL_STMT: Function Bodies. (line 6)
40920 * DECL_STMT_DECL: Function Bodies. (line 6)
40921 * DECL_THUNK_P: Function Basics. (line 122)
40922 * DECL_VOLATILE_MEMFUNC_P: Function Basics. (line 80)
40923 * declaration: Declarations. (line 6)
40924 * declarations, RTL: RTL Declarations. (line 6)
40925 * DECLARE_LIBRARY_RENAMES: Library Calls. (line 9)
40926 * decrement_and_branch_until_zero instruction pattern: Standard Names.
40928 * def_optype_d: Manipulating GIMPLE statements.
40930 * default: GTY Options. (line 82)
40931 * default_file_start: File Framework. (line 9)
40932 * DEFAULT_GDB_EXTENSIONS: DBX Options. (line 18)
40933 * DEFAULT_PCC_STRUCT_RETURN: Aggregate Return. (line 34)
40934 * DEFAULT_SIGNED_CHAR: Type Layout. (line 154)
40935 * define_address_constraint: Define Constraints. (line 107)
40936 * define_asm_attributes: Tagging Insns. (line 73)
40937 * define_attr: Defining Attributes.
40939 * define_automaton: Processor pipeline description.
40941 * define_bypass: Processor pipeline description.
40943 * define_code_attr: Code Iterators. (line 6)
40944 * define_code_iterator: Code Iterators. (line 6)
40945 * define_cond_exec: Conditional Execution.
40947 * define_constants: Constant Definitions.
40949 * define_constraint: Define Constraints. (line 48)
40950 * define_cpu_unit: Processor pipeline description.
40952 * define_delay: Delay Slots. (line 25)
40953 * define_expand: Expander Definitions.
40955 * define_insn: Patterns. (line 6)
40956 * define_insn example: Example. (line 6)
40957 * define_insn_and_split: Insn Splitting. (line 170)
40958 * define_insn_reservation: Processor pipeline description.
40960 * define_memory_constraint: Define Constraints. (line 88)
40961 * define_mode_attr: Substitutions. (line 6)
40962 * define_mode_iterator: Defining Mode Iterators.
40964 * define_peephole: define_peephole. (line 6)
40965 * define_peephole2: define_peephole2. (line 6)
40966 * define_predicate: Defining Predicates.
40968 * define_query_cpu_unit: Processor pipeline description.
40970 * define_register_constraint: Define Constraints. (line 28)
40971 * define_reservation: Processor pipeline description.
40973 * define_special_predicate: Defining Predicates.
40975 * define_split: Insn Splitting. (line 32)
40976 * defining attributes and their values: Defining Attributes.
40978 * defining constraints: Define Constraints. (line 6)
40979 * defining constraints, obsolete method: Old Constraints. (line 6)
40980 * defining jump instruction patterns: Jump Patterns. (line 6)
40981 * defining looping instruction patterns: Looping Patterns. (line 6)
40982 * defining peephole optimizers: Peephole Definitions.
40984 * defining predicates: Defining Predicates.
40986 * defining RTL sequences for code generation: Expander Definitions.
40988 * delay slots, defining: Delay Slots. (line 6)
40989 * DELAY_SLOTS_FOR_EPILOGUE: Function Entry. (line 163)
40990 * deletable: GTY Options. (line 150)
40991 * DELETE_IF_ORDINARY: Filesystem. (line 79)
40992 * Dependent Patterns: Dependent Patterns. (line 6)
40993 * desc: GTY Options. (line 82)
40994 * destructor: Function Basics. (line 6)
40995 * destructors, output of: Initialization. (line 6)
40996 * deterministic finite state automaton: Processor pipeline description.
40998 * DF_SIZE: Type Layout. (line 130)
40999 * DFmode: Machine Modes. (line 73)
41000 * digits in constraint: Simple Constraints. (line 120)
41001 * DImode: Machine Modes. (line 45)
41002 * DIR_SEPARATOR: Filesystem. (line 18)
41003 * DIR_SEPARATOR_2: Filesystem. (line 19)
41004 * directory options .md: Including Patterns. (line 44)
41005 * disabling certain registers: Register Basics. (line 76)
41006 * dispatch table: Dispatch Tables. (line 8)
41007 * div: Arithmetic. (line 111)
41008 * div and attributes: Expressions. (line 64)
41009 * division: Arithmetic. (line 131)
41010 * divM3 instruction pattern: Standard Names. (line 222)
41011 * divmodM4 instruction pattern: Standard Names. (line 411)
41012 * DO_BODY: Function Bodies. (line 6)
41013 * DO_COND: Function Bodies. (line 6)
41014 * DO_STMT: Function Bodies. (line 6)
41015 * DOLLARS_IN_IDENTIFIERS: Misc. (line 496)
41016 * doloop_begin instruction pattern: Standard Names. (line 1151)
41017 * doloop_end instruction pattern: Standard Names. (line 1130)
41018 * DONE: Expander Definitions.
41020 * DONT_USE_BUILTIN_SETJMP: Exception Region Output.
41022 * DOUBLE_TYPE_SIZE: Type Layout. (line 53)
41023 * DQmode: Machine Modes. (line 115)
41024 * driver: Driver. (line 6)
41025 * DRIVER_SELF_SPECS: Driver. (line 71)
41026 * DUMPFILE_FORMAT: Filesystem. (line 67)
41027 * DWARF2_ASM_LINE_DEBUG_INFO: SDB and DWARF. (line 36)
41028 * DWARF2_DEBUGGING_INFO: SDB and DWARF. (line 13)
41029 * DWARF2_FRAME_INFO: SDB and DWARF. (line 30)
41030 * DWARF2_FRAME_REG_OUT: Frame Registers. (line 133)
41031 * DWARF2_UNWIND_INFO: Exception Region Output.
41033 * DWARF_ALT_FRAME_RETURN_COLUMN: Frame Layout. (line 152)
41034 * DWARF_CIE_DATA_ALIGNMENT: Exception Region Output.
41036 * DWARF_FRAME_REGISTERS: Frame Registers. (line 93)
41037 * DWARF_FRAME_REGNUM: Frame Registers. (line 125)
41038 * DWARF_REG_TO_UNWIND_COLUMN: Frame Registers. (line 117)
41039 * DWARF_ZERO_REG: Frame Layout. (line 163)
41040 * DYNAMIC_CHAIN_ADDRESS: Frame Layout. (line 92)
41041 * E in constraint: Simple Constraints. (line 79)
41042 * earlyclobber operand: Modifiers. (line 25)
41043 * edge: Edges. (line 6)
41044 * edge in the flow graph: Edges. (line 6)
41045 * edge iterators: Edges. (line 15)
41046 * edge splitting: Maintaining the CFG.
41048 * EDGE_ABNORMAL: Edges. (line 128)
41049 * EDGE_ABNORMAL, EDGE_ABNORMAL_CALL: Edges. (line 171)
41050 * EDGE_ABNORMAL, EDGE_EH: Edges. (line 96)
41051 * EDGE_ABNORMAL, EDGE_SIBCALL: Edges. (line 122)
41052 * EDGE_FALLTHRU, force_nonfallthru: Edges. (line 86)
41053 * EDOM, implicit usage: Library Calls. (line 58)
41054 * EH_FRAME_IN_DATA_SECTION: Exception Region Output.
41056 * EH_FRAME_SECTION_NAME: Exception Region Output.
41058 * eh_return instruction pattern: Standard Names. (line 1319)
41059 * EH_RETURN_DATA_REGNO: Exception Handling. (line 7)
41060 * EH_RETURN_HANDLER_RTX: Exception Handling. (line 39)
41061 * EH_RETURN_STACKADJ_RTX: Exception Handling. (line 22)
41062 * EH_TABLES_CAN_BE_READ_ONLY: Exception Region Output.
41064 * EH_USES: Function Entry. (line 158)
41065 * ei_edge: Edges. (line 43)
41066 * ei_end_p: Edges. (line 27)
41067 * ei_last: Edges. (line 23)
41068 * ei_next: Edges. (line 35)
41069 * ei_one_before_end_p: Edges. (line 31)
41070 * ei_prev: Edges. (line 39)
41071 * ei_safe_safe: Edges. (line 47)
41072 * ei_start: Edges. (line 19)
41073 * ELIGIBLE_FOR_EPILOGUE_DELAY: Function Entry. (line 169)
41074 * ELIMINABLE_REGS: Elimination. (line 44)
41075 * ELSE_CLAUSE: Function Bodies. (line 6)
41076 * Embedded C: Fixed-point fractional library routines.
41078 * EMIT_MODE_SET: Mode Switching. (line 74)
41079 * Empty Statements: Empty Statements. (line 6)
41080 * EMPTY_CLASS_EXPR: Function Bodies. (line 6)
41081 * EMPTY_FIELD_BOUNDARY: Storage Layout. (line 288)
41082 * Emulated TLS: Emulated TLS. (line 6)
41083 * ENABLE_EXECUTE_STACK: Trampolines. (line 110)
41084 * enabled: Disable Insn Alternatives.
41086 * ENDFILE_SPEC: Driver. (line 218)
41087 * endianness: Portability. (line 21)
41088 * ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR: Basic Blocks. (line 28)
41089 * enum machine_mode: Machine Modes. (line 6)
41090 * enum reg_class: Register Classes. (line 65)
41091 * ENUMERAL_TYPE: Types. (line 6)
41092 * epilogue: Function Entry. (line 6)
41093 * epilogue instruction pattern: Standard Names. (line 1351)
41094 * EPILOGUE_USES: Function Entry. (line 152)
41095 * eq: Comparisons. (line 52)
41096 * eq and attributes: Expressions. (line 64)
41097 * eq_attr: Expressions. (line 85)
41098 * EQ_EXPR: Expression trees. (line 6)
41099 * equal: Comparisons. (line 52)
41100 * errno, implicit usage: Library Calls. (line 70)
41101 * EXACT_DIV_EXPR: Expression trees. (line 6)
41102 * examining SSA_NAMEs: SSA. (line 218)
41103 * exception handling <1>: Exception Handling. (line 6)
41104 * exception handling: Edges. (line 96)
41105 * exception_receiver instruction pattern: Standard Names. (line 1283)
41106 * exclamation point: Multi-Alternative. (line 47)
41107 * exclusion_set: Processor pipeline description.
41109 * exclusive-or, bitwise: Arithmetic. (line 163)
41110 * EXIT_EXPR: Expression trees. (line 6)
41111 * EXIT_IGNORE_STACK: Function Entry. (line 140)
41112 * expander definitions: Expander Definitions.
41114 * expM2 instruction pattern: Standard Names. (line 497)
41115 * expr_list: Insns. (line 505)
41116 * EXPR_STMT: Function Bodies. (line 6)
41117 * EXPR_STMT_EXPR: Function Bodies. (line 6)
41118 * expression: Expression trees. (line 6)
41119 * expression codes: RTL Objects. (line 47)
41120 * extendMN2 instruction pattern: Standard Names. (line 826)
41121 * extensible constraints: Simple Constraints. (line 163)
41122 * EXTRA_ADDRESS_CONSTRAINT: Old Constraints. (line 123)
41123 * EXTRA_CONSTRAINT: Old Constraints. (line 74)
41124 * EXTRA_CONSTRAINT_STR: Old Constraints. (line 95)
41125 * EXTRA_MEMORY_CONSTRAINT: Old Constraints. (line 100)
41126 * EXTRA_SPECS: Driver. (line 245)
41127 * extv instruction pattern: Standard Names. (line 862)
41128 * extzv instruction pattern: Standard Names. (line 877)
41129 * F in constraint: Simple Constraints. (line 84)
41130 * FAIL: Expander Definitions.
41132 * fall-thru: Edges. (line 69)
41133 * FATAL_EXIT_CODE: Host Misc. (line 6)
41134 * FDL, GNU Free Documentation License: GNU Free Documentation License.
41136 * features, optional, in system conventions: Run-time Target.
41138 * ffs: Arithmetic. (line 202)
41139 * ffsM2 instruction pattern: Standard Names. (line 611)
41140 * FIELD_DECL: Declarations. (line 6)
41141 * file_end_indicate_exec_stack: File Framework. (line 41)
41142 * files and passes of the compiler: Passes. (line 6)
41143 * files, generated: Files. (line 6)
41144 * final_absence_set: Processor pipeline description.
41146 * FINAL_PRESCAN_INSN: Instruction Output. (line 46)
41147 * final_presence_set: Processor pipeline description.
41149 * final_scan_insn: Function Entry. (line 181)
41150 * final_sequence: Instruction Output. (line 117)
41151 * FIND_BASE_TERM: Addressing Modes. (line 110)
41152 * FINI_ARRAY_SECTION_ASM_OP: Sections. (line 105)
41153 * FINI_SECTION_ASM_OP: Sections. (line 90)
41154 * finite state automaton minimization: Processor pipeline description.
41156 * FIRST_PARM_OFFSET: Frame Layout. (line 67)
41157 * FIRST_PARM_OFFSET and virtual registers: Regs and Memory. (line 65)
41158 * FIRST_PSEUDO_REGISTER: Register Basics. (line 9)
41159 * FIRST_STACK_REG: Stack Registers. (line 23)
41160 * FIRST_VIRTUAL_REGISTER: Regs and Memory. (line 51)
41161 * fix: Conversions. (line 66)
41162 * FIX_TRUNC_EXPR: Expression trees. (line 6)
41163 * fix_truncMN2 instruction pattern: Standard Names. (line 813)
41164 * fixed register: Register Basics. (line 15)
41165 * fixed-point fractional library: Fixed-point fractional library routines.
41167 * FIXED_CONVERT_EXPR: Expression trees. (line 6)
41168 * FIXED_CST: Expression trees. (line 6)
41169 * FIXED_POINT_TYPE: Types. (line 6)
41170 * FIXED_REGISTERS: Register Basics. (line 15)
41171 * fixed_regs: Register Basics. (line 59)
41172 * fixMN2 instruction pattern: Standard Names. (line 793)
41173 * FIXUNS_TRUNC_LIKE_FIX_TRUNC: Misc. (line 100)
41174 * fixuns_truncMN2 instruction pattern: Standard Names. (line 817)
41175 * fixunsMN2 instruction pattern: Standard Names. (line 802)
41176 * flags in RTL expression: Flags. (line 6)
41177 * float: Conversions. (line 58)
41178 * FLOAT_EXPR: Expression trees. (line 6)
41179 * float_extend: Conversions. (line 33)
41180 * FLOAT_LIB_COMPARE_RETURNS_BOOL: Library Calls. (line 25)
41181 * FLOAT_STORE_FLAG_VALUE: Misc. (line 301)
41182 * float_truncate: Conversions. (line 53)
41183 * FLOAT_TYPE_SIZE: Type Layout. (line 49)
41184 * FLOAT_WORDS_BIG_ENDIAN: Storage Layout. (line 43)
41185 * FLOAT_WORDS_BIG_ENDIAN, (lack of) effect on subreg: Regs and Memory.
41187 * floating point and cross compilation: Floating Point. (line 6)
41188 * Floating Point Emulation: Target Fragment. (line 15)
41189 * floating point emulation library, US Software GOFAST: Library Calls.
41191 * floatMN2 instruction pattern: Standard Names. (line 785)
41192 * floatunsMN2 instruction pattern: Standard Names. (line 789)
41193 * FLOOR_DIV_EXPR: Expression trees. (line 6)
41194 * FLOOR_MOD_EXPR: Expression trees. (line 6)
41195 * floorM2 instruction pattern: Standard Names. (line 532)
41196 * flow-insensitive alias analysis: Alias analysis. (line 6)
41197 * flow-sensitive alias analysis: Alias analysis. (line 6)
41198 * fmodM3 instruction pattern: Standard Names. (line 463)
41199 * FOR_BODY: Function Bodies. (line 6)
41200 * FOR_COND: Function Bodies. (line 6)
41201 * FOR_EXPR: Function Bodies. (line 6)
41202 * FOR_INIT_STMT: Function Bodies. (line 6)
41203 * FOR_STMT: Function Bodies. (line 6)
41204 * FORCE_CODE_SECTION_ALIGN: Sections. (line 136)
41205 * force_reg: Standard Names. (line 36)
41206 * fract_convert: Conversions. (line 82)
41207 * FRACT_TYPE_SIZE: Type Layout. (line 68)
41208 * fractional types: Fixed-point fractional library routines.
41210 * fractMN2 instruction pattern: Standard Names. (line 835)
41211 * fractunsMN2 instruction pattern: Standard Names. (line 850)
41212 * frame layout: Frame Layout. (line 6)
41213 * FRAME_ADDR_RTX: Frame Layout. (line 116)
41214 * FRAME_GROWS_DOWNWARD: Frame Layout. (line 31)
41215 * FRAME_GROWS_DOWNWARD and virtual registers: Regs and Memory.
41217 * FRAME_POINTER_CFA_OFFSET: Frame Layout. (line 212)
41218 * frame_pointer_needed: Function Entry. (line 34)
41219 * FRAME_POINTER_REGNUM: Frame Registers. (line 14)
41220 * FRAME_POINTER_REGNUM and virtual registers: Regs and Memory.
41222 * FRAME_POINTER_REQUIRED: Elimination. (line 9)
41223 * frame_pointer_rtx: Frame Registers. (line 85)
41224 * frame_related: Flags. (line 242)
41225 * frame_related, in insn, call_insn, jump_insn, barrier, and set: Flags.
41227 * frame_related, in mem: Flags. (line 103)
41228 * frame_related, in reg: Flags. (line 112)
41229 * frame_related, in symbol_ref: Flags. (line 183)
41230 * frequency, count, BB_FREQ_BASE: Profile information.
41232 * ftruncM2 instruction pattern: Standard Names. (line 808)
41233 * function: Functions. (line 6)
41234 * function body: Function Bodies. (line 6)
41235 * function call conventions: Interface. (line 6)
41236 * function entry and exit: Function Entry. (line 6)
41237 * function entry point, alternate function entry point: Edges.
41239 * function-call insns: Calls. (line 6)
41240 * FUNCTION_ARG: Register Arguments. (line 11)
41241 * FUNCTION_ARG_ADVANCE: Register Arguments. (line 186)
41242 * FUNCTION_ARG_BOUNDARY: Register Arguments. (line 239)
41243 * FUNCTION_ARG_OFFSET: Register Arguments. (line 197)
41244 * FUNCTION_ARG_PADDING: Register Arguments. (line 204)
41245 * FUNCTION_ARG_REGNO_P: Register Arguments. (line 244)
41246 * FUNCTION_BOUNDARY: Storage Layout. (line 170)
41247 * FUNCTION_DECL: Functions. (line 6)
41248 * FUNCTION_INCOMING_ARG: Register Arguments. (line 68)
41249 * FUNCTION_MODE: Misc. (line 356)
41250 * FUNCTION_OUTGOING_VALUE: Scalar Return. (line 56)
41251 * FUNCTION_PROFILER: Profiling. (line 9)
41252 * FUNCTION_TYPE: Types. (line 6)
41253 * FUNCTION_VALUE: Scalar Return. (line 52)
41254 * FUNCTION_VALUE_REGNO_P: Scalar Return. (line 69)
41255 * functions, leaf: Leaf Functions. (line 6)
41256 * fundamental type: Types. (line 6)
41257 * g in constraint: Simple Constraints. (line 110)
41258 * G in constraint: Simple Constraints. (line 88)
41259 * garbage collector, invocation: Invoking the garbage collector.
41261 * GCC and portability: Portability. (line 6)
41262 * GCC_DRIVER_HOST_INITIALIZATION: Host Misc. (line 36)
41263 * gcov_type: Profile information.
41265 * ge: Comparisons. (line 72)
41266 * ge and attributes: Expressions. (line 64)
41267 * GE_EXPR: Expression trees. (line 6)
41268 * GEN_ERRNO_RTX: Library Calls. (line 71)
41269 * gencodes: RTL passes. (line 18)
41270 * general_operand: Machine-Independent Predicates.
41272 * GENERAL_REGS: Register Classes. (line 23)
41273 * generated files: Files. (line 6)
41274 * generating assembler output: Output Statement. (line 6)
41275 * generating insns: RTL Template. (line 6)
41276 * GENERIC <1>: GENERIC. (line 6)
41277 * GENERIC <2>: Gimplification pass.
41279 * GENERIC: Parsing pass. (line 6)
41280 * generic predicates: Machine-Independent Predicates.
41282 * genflags: RTL passes. (line 18)
41283 * get_attr: Expressions. (line 80)
41284 * get_attr_length: Insn Lengths. (line 46)
41285 * GET_CLASS_NARROWEST_MODE: Machine Modes. (line 333)
41286 * GET_CODE: RTL Objects. (line 47)
41287 * get_frame_size: Elimination. (line 31)
41288 * get_insns: Insns. (line 34)
41289 * get_last_insn: Insns. (line 34)
41290 * GET_MODE: Machine Modes. (line 280)
41291 * GET_MODE_ALIGNMENT: Machine Modes. (line 320)
41292 * GET_MODE_BITSIZE: Machine Modes. (line 304)
41293 * GET_MODE_CLASS: Machine Modes. (line 294)
41294 * GET_MODE_FBIT: Machine Modes. (line 311)
41295 * GET_MODE_IBIT: Machine Modes. (line 307)
41296 * GET_MODE_MASK: Machine Modes. (line 315)
41297 * GET_MODE_NAME: Machine Modes. (line 291)
41298 * GET_MODE_NUNITS: Machine Modes. (line 329)
41299 * GET_MODE_SIZE: Machine Modes. (line 301)
41300 * GET_MODE_UNIT_SIZE: Machine Modes. (line 323)
41301 * GET_MODE_WIDER_MODE: Machine Modes. (line 297)
41302 * GET_RTX_CLASS: RTL Classes. (line 6)
41303 * GET_RTX_FORMAT: RTL Classes. (line 130)
41304 * GET_RTX_LENGTH: RTL Classes. (line 127)
41305 * geu: Comparisons. (line 72)
41306 * geu and attributes: Expressions. (line 64)
41307 * GGC: Type Information. (line 6)
41308 * ggc_collect: Invoking the garbage collector.
41310 * GIMPLE <1>: GIMPLE. (line 6)
41311 * GIMPLE <2>: Gimplification pass.
41313 * GIMPLE: Parsing pass. (line 14)
41314 * GIMPLE Exception Handling: GIMPLE Exception Handling.
41316 * GIMPLE instruction set: GIMPLE instruction set.
41318 * GIMPLE sequences: GIMPLE sequences. (line 6)
41319 * gimple_addresses_taken: Manipulating GIMPLE statements.
41321 * GIMPLE_ASM: GIMPLE_ASM. (line 6)
41322 * gimple_asm_clear_volatile: GIMPLE_ASM. (line 63)
41323 * gimple_asm_clobber_op: GIMPLE_ASM. (line 46)
41324 * gimple_asm_input_op: GIMPLE_ASM. (line 30)
41325 * gimple_asm_output_op: GIMPLE_ASM. (line 38)
41326 * gimple_asm_set_clobber_op: GIMPLE_ASM. (line 50)
41327 * gimple_asm_set_input_op: GIMPLE_ASM. (line 34)
41328 * gimple_asm_set_output_op: GIMPLE_ASM. (line 42)
41329 * gimple_asm_set_volatile: GIMPLE_ASM. (line 60)
41330 * gimple_asm_volatile_p: GIMPLE_ASM. (line 57)
41331 * GIMPLE_ASSIGN: GIMPLE_ASSIGN. (line 6)
41332 * gimple_assign_cast_p: GIMPLE_ASSIGN. (line 89)
41333 * gimple_assign_lhs: GIMPLE_ASSIGN. (line 51)
41334 * gimple_assign_rhs1: GIMPLE_ASSIGN. (line 57)
41335 * gimple_assign_rhs2: GIMPLE_ASSIGN. (line 78)
41336 * gimple_assign_set_lhs: GIMPLE_ASSIGN. (line 71)
41337 * gimple_assign_set_rhs1: GIMPLE_ASSIGN. (line 74)
41338 * gimple_assign_set_rhs2: GIMPLE_ASSIGN. (line 85)
41339 * gimple_bb: Manipulating GIMPLE statements.
41341 * GIMPLE_BIND: GIMPLE_BIND. (line 6)
41342 * gimple_bind_add_seq: GIMPLE_BIND. (line 36)
41343 * gimple_bind_add_stmt: GIMPLE_BIND. (line 32)
41344 * gimple_bind_append_vars: GIMPLE_BIND. (line 19)
41345 * gimple_bind_block: GIMPLE_BIND. (line 40)
41346 * gimple_bind_body: GIMPLE_BIND. (line 23)
41347 * gimple_bind_set_block: GIMPLE_BIND. (line 45)
41348 * gimple_bind_set_body: GIMPLE_BIND. (line 28)
41349 * gimple_bind_set_vars: GIMPLE_BIND. (line 15)
41350 * gimple_bind_vars: GIMPLE_BIND. (line 12)
41351 * gimple_block: Manipulating GIMPLE statements.
41353 * gimple_build_asm: GIMPLE_ASM. (line 8)
41354 * gimple_build_asm_vec: GIMPLE_ASM. (line 17)
41355 * gimple_build_assign: GIMPLE_ASSIGN. (line 7)
41356 * gimple_build_assign_with_ops: GIMPLE_ASSIGN. (line 30)
41357 * gimple_build_bind: GIMPLE_BIND. (line 8)
41358 * gimple_build_call: GIMPLE_CALL. (line 8)
41359 * gimple_build_call_from_tree: GIMPLE_CALL. (line 16)
41360 * gimple_build_call_vec: GIMPLE_CALL. (line 25)
41361 * gimple_build_catch: GIMPLE_CATCH. (line 8)
41362 * gimple_build_cdt: GIMPLE_CHANGE_DYNAMIC_TYPE.
41364 * gimple_build_cond: GIMPLE_COND. (line 8)
41365 * gimple_build_cond_from_tree: GIMPLE_COND. (line 16)
41366 * gimple_build_eh_filter: GIMPLE_EH_FILTER. (line 8)
41367 * gimple_build_goto: GIMPLE_LABEL. (line 18)
41368 * gimple_build_label: GIMPLE_LABEL. (line 7)
41369 * gimple_build_nop: GIMPLE_NOP. (line 7)
41370 * gimple_build_omp_atomic_load: GIMPLE_OMP_ATOMIC_LOAD.
41372 * gimple_build_omp_atomic_store: GIMPLE_OMP_ATOMIC_STORE.
41374 * gimple_build_omp_continue: GIMPLE_OMP_CONTINUE.
41376 * gimple_build_omp_critical: GIMPLE_OMP_CRITICAL.
41378 * gimple_build_omp_for: GIMPLE_OMP_FOR. (line 9)
41379 * gimple_build_omp_master: GIMPLE_OMP_MASTER. (line 7)
41380 * gimple_build_omp_ordered: GIMPLE_OMP_ORDERED. (line 7)
41381 * gimple_build_omp_parallel: GIMPLE_OMP_PARALLEL.
41383 * gimple_build_omp_return: GIMPLE_OMP_RETURN. (line 7)
41384 * gimple_build_omp_section: GIMPLE_OMP_SECTION. (line 7)
41385 * gimple_build_omp_sections: GIMPLE_OMP_SECTIONS.
41387 * gimple_build_omp_sections_switch: GIMPLE_OMP_SECTIONS.
41389 * gimple_build_omp_single: GIMPLE_OMP_SINGLE. (line 8)
41390 * gimple_build_resx: GIMPLE_RESX. (line 7)
41391 * gimple_build_return: GIMPLE_RETURN. (line 7)
41392 * gimple_build_switch: GIMPLE_SWITCH. (line 8)
41393 * gimple_build_switch_vec: GIMPLE_SWITCH. (line 16)
41394 * gimple_build_try: GIMPLE_TRY. (line 8)
41395 * gimple_build_wce: GIMPLE_WITH_CLEANUP_EXPR.
41397 * GIMPLE_CALL: GIMPLE_CALL. (line 6)
41398 * gimple_call_arg: GIMPLE_CALL. (line 66)
41399 * gimple_call_cannot_inline_p: GIMPLE_CALL. (line 91)
41400 * gimple_call_chain: GIMPLE_CALL. (line 57)
41401 * gimple_call_copy_skip_args: GIMPLE_CALL. (line 98)
41402 * gimple_call_fn: GIMPLE_CALL. (line 38)
41403 * gimple_call_fndecl: GIMPLE_CALL. (line 46)
41404 * gimple_call_lhs: GIMPLE_CALL. (line 29)
41405 * gimple_call_mark_uninlinable: GIMPLE_CALL. (line 88)
41406 * gimple_call_noreturn_p: GIMPLE_CALL. (line 94)
41407 * gimple_call_return_type: GIMPLE_CALL. (line 54)
41408 * gimple_call_set_arg: GIMPLE_CALL. (line 76)
41409 * gimple_call_set_chain: GIMPLE_CALL. (line 60)
41410 * gimple_call_set_fn: GIMPLE_CALL. (line 42)
41411 * gimple_call_set_fndecl: GIMPLE_CALL. (line 51)
41412 * gimple_call_set_lhs: GIMPLE_CALL. (line 35)
41413 * gimple_call_set_tail: GIMPLE_CALL. (line 80)
41414 * gimple_call_tail_p: GIMPLE_CALL. (line 85)
41415 * GIMPLE_CATCH: GIMPLE_CATCH. (line 6)
41416 * gimple_catch_handler: GIMPLE_CATCH. (line 20)
41417 * gimple_catch_set_handler: GIMPLE_CATCH. (line 28)
41418 * gimple_catch_set_types: GIMPLE_CATCH. (line 24)
41419 * gimple_catch_types: GIMPLE_CATCH. (line 13)
41420 * gimple_cdt_location: GIMPLE_CHANGE_DYNAMIC_TYPE.
41422 * gimple_cdt_new_type: GIMPLE_CHANGE_DYNAMIC_TYPE.
41424 * gimple_cdt_set_location: GIMPLE_CHANGE_DYNAMIC_TYPE.
41426 * gimple_cdt_set_new_type: GIMPLE_CHANGE_DYNAMIC_TYPE.
41428 * GIMPLE_CHANGE_DYNAMIC_TYPE: GIMPLE_CHANGE_DYNAMIC_TYPE.
41430 * gimple_code: Manipulating GIMPLE statements.
41432 * GIMPLE_COND: GIMPLE_COND. (line 6)
41433 * gimple_cond_false_label: GIMPLE_COND. (line 60)
41434 * gimple_cond_lhs: GIMPLE_COND. (line 30)
41435 * gimple_cond_make_false: GIMPLE_COND. (line 64)
41436 * gimple_cond_make_true: GIMPLE_COND. (line 67)
41437 * gimple_cond_rhs: GIMPLE_COND. (line 38)
41438 * gimple_cond_set_code: GIMPLE_COND. (line 26)
41439 * gimple_cond_set_false_label: GIMPLE_COND. (line 56)
41440 * gimple_cond_set_lhs: GIMPLE_COND. (line 34)
41441 * gimple_cond_set_rhs: GIMPLE_COND. (line 42)
41442 * gimple_cond_set_true_label: GIMPLE_COND. (line 51)
41443 * gimple_cond_true_label: GIMPLE_COND. (line 46)
41444 * gimple_copy: Manipulating GIMPLE statements.
41446 * GIMPLE_EH_FILTER: GIMPLE_EH_FILTER. (line 6)
41447 * gimple_eh_filter_failure: GIMPLE_EH_FILTER. (line 19)
41448 * gimple_eh_filter_must_not_throw: GIMPLE_EH_FILTER. (line 33)
41449 * gimple_eh_filter_set_failure: GIMPLE_EH_FILTER. (line 29)
41450 * gimple_eh_filter_set_must_not_throw: GIMPLE_EH_FILTER. (line 37)
41451 * gimple_eh_filter_set_types: GIMPLE_EH_FILTER. (line 24)
41452 * gimple_eh_filter_types: GIMPLE_EH_FILTER. (line 12)
41453 * gimple_expr_type: Manipulating GIMPLE statements.
41455 * gimple_goto_dest: GIMPLE_LABEL. (line 21)
41456 * gimple_goto_set_dest: GIMPLE_LABEL. (line 24)
41457 * gimple_has_mem_ops: Manipulating GIMPLE statements.
41459 * gimple_has_ops: Manipulating GIMPLE statements.
41461 * gimple_has_volatile_ops: Manipulating GIMPLE statements.
41463 * GIMPLE_LABEL: GIMPLE_LABEL. (line 6)
41464 * gimple_label_label: GIMPLE_LABEL. (line 11)
41465 * gimple_label_set_label: GIMPLE_LABEL. (line 14)
41466 * gimple_loaded_syms: Manipulating GIMPLE statements.
41468 * gimple_locus: Manipulating GIMPLE statements.
41470 * gimple_locus_empty_p: Manipulating GIMPLE statements.
41472 * gimple_modified_p: Manipulating GIMPLE statements.
41474 * gimple_no_warning_p: Manipulating GIMPLE statements.
41476 * GIMPLE_NOP: GIMPLE_NOP. (line 6)
41477 * gimple_nop_p: GIMPLE_NOP. (line 10)
41478 * gimple_num_ops <1>: Logical Operators. (line 76)
41479 * gimple_num_ops: Manipulating GIMPLE statements.
41481 * GIMPLE_OMP_ATOMIC_LOAD: GIMPLE_OMP_ATOMIC_LOAD.
41483 * gimple_omp_atomic_load_lhs: GIMPLE_OMP_ATOMIC_LOAD.
41485 * gimple_omp_atomic_load_rhs: GIMPLE_OMP_ATOMIC_LOAD.
41487 * gimple_omp_atomic_load_set_lhs: GIMPLE_OMP_ATOMIC_LOAD.
41489 * gimple_omp_atomic_load_set_rhs: GIMPLE_OMP_ATOMIC_LOAD.
41491 * GIMPLE_OMP_ATOMIC_STORE: GIMPLE_OMP_ATOMIC_STORE.
41493 * gimple_omp_atomic_store_set_val: GIMPLE_OMP_ATOMIC_STORE.
41495 * gimple_omp_atomic_store_val: GIMPLE_OMP_ATOMIC_STORE.
41497 * gimple_omp_body: GIMPLE_OMP_PARALLEL.
41499 * GIMPLE_OMP_CONTINUE: GIMPLE_OMP_CONTINUE.
41501 * gimple_omp_continue_control_def: GIMPLE_OMP_CONTINUE.
41503 * gimple_omp_continue_control_def_ptr: GIMPLE_OMP_CONTINUE.
41505 * gimple_omp_continue_control_use: GIMPLE_OMP_CONTINUE.
41507 * gimple_omp_continue_control_use_ptr: GIMPLE_OMP_CONTINUE.
41509 * gimple_omp_continue_set_control_def: GIMPLE_OMP_CONTINUE.
41511 * gimple_omp_continue_set_control_use: GIMPLE_OMP_CONTINUE.
41513 * GIMPLE_OMP_CRITICAL: GIMPLE_OMP_CRITICAL.
41515 * gimple_omp_critical_name: GIMPLE_OMP_CRITICAL.
41517 * gimple_omp_critical_set_name: GIMPLE_OMP_CRITICAL.
41519 * GIMPLE_OMP_FOR: GIMPLE_OMP_FOR. (line 6)
41520 * gimple_omp_for_clauses: GIMPLE_OMP_FOR. (line 20)
41521 * gimple_omp_for_final: GIMPLE_OMP_FOR. (line 51)
41522 * gimple_omp_for_incr: GIMPLE_OMP_FOR. (line 61)
41523 * gimple_omp_for_index: GIMPLE_OMP_FOR. (line 31)
41524 * gimple_omp_for_initial: GIMPLE_OMP_FOR. (line 41)
41525 * gimple_omp_for_pre_body: GIMPLE_OMP_FOR. (line 70)
41526 * gimple_omp_for_set_clauses: GIMPLE_OMP_FOR. (line 27)
41527 * gimple_omp_for_set_cond: GIMPLE_OMP_FOR. (line 80)
41528 * gimple_omp_for_set_final: GIMPLE_OMP_FOR. (line 58)
41529 * gimple_omp_for_set_incr: GIMPLE_OMP_FOR. (line 67)
41530 * gimple_omp_for_set_index: GIMPLE_OMP_FOR. (line 38)
41531 * gimple_omp_for_set_initial: GIMPLE_OMP_FOR. (line 48)
41532 * gimple_omp_for_set_pre_body: GIMPLE_OMP_FOR. (line 75)
41533 * GIMPLE_OMP_MASTER: GIMPLE_OMP_MASTER. (line 6)
41534 * GIMPLE_OMP_ORDERED: GIMPLE_OMP_ORDERED. (line 6)
41535 * GIMPLE_OMP_PARALLEL: GIMPLE_OMP_PARALLEL.
41537 * gimple_omp_parallel_child_fn: GIMPLE_OMP_PARALLEL.
41539 * gimple_omp_parallel_clauses: GIMPLE_OMP_PARALLEL.
41541 * gimple_omp_parallel_combined_p: GIMPLE_OMP_PARALLEL.
41543 * gimple_omp_parallel_data_arg: GIMPLE_OMP_PARALLEL.
41545 * gimple_omp_parallel_set_child_fn: GIMPLE_OMP_PARALLEL.
41547 * gimple_omp_parallel_set_clauses: GIMPLE_OMP_PARALLEL.
41549 * gimple_omp_parallel_set_combined_p: GIMPLE_OMP_PARALLEL.
41551 * gimple_omp_parallel_set_data_arg: GIMPLE_OMP_PARALLEL.
41553 * GIMPLE_OMP_RETURN: GIMPLE_OMP_RETURN. (line 6)
41554 * gimple_omp_return_nowait_p: GIMPLE_OMP_RETURN. (line 14)
41555 * gimple_omp_return_set_nowait: GIMPLE_OMP_RETURN. (line 11)
41556 * GIMPLE_OMP_SECTION: GIMPLE_OMP_SECTION. (line 6)
41557 * gimple_omp_section_last_p: GIMPLE_OMP_SECTION. (line 12)
41558 * gimple_omp_section_set_last: GIMPLE_OMP_SECTION. (line 16)
41559 * GIMPLE_OMP_SECTIONS: GIMPLE_OMP_SECTIONS.
41561 * gimple_omp_sections_clauses: GIMPLE_OMP_SECTIONS.
41563 * gimple_omp_sections_control: GIMPLE_OMP_SECTIONS.
41565 * gimple_omp_sections_set_clauses: GIMPLE_OMP_SECTIONS.
41567 * gimple_omp_sections_set_control: GIMPLE_OMP_SECTIONS.
41569 * gimple_omp_set_body: GIMPLE_OMP_PARALLEL.
41571 * GIMPLE_OMP_SINGLE: GIMPLE_OMP_SINGLE. (line 6)
41572 * gimple_omp_single_clauses: GIMPLE_OMP_SINGLE. (line 14)
41573 * gimple_omp_single_set_clauses: GIMPLE_OMP_SINGLE. (line 21)
41574 * gimple_op <1>: Logical Operators. (line 79)
41575 * gimple_op: Manipulating GIMPLE statements.
41577 * GIMPLE_PHI: GIMPLE_PHI. (line 6)
41578 * gimple_phi_capacity: GIMPLE_PHI. (line 10)
41579 * gimple_phi_num_args: GIMPLE_PHI. (line 14)
41580 * gimple_phi_result: GIMPLE_PHI. (line 19)
41581 * gimple_phi_set_arg: GIMPLE_PHI. (line 33)
41582 * gimple_phi_set_result: GIMPLE_PHI. (line 25)
41583 * GIMPLE_RESX: GIMPLE_RESX. (line 6)
41584 * gimple_resx_region: GIMPLE_RESX. (line 13)
41585 * gimple_resx_set_region: GIMPLE_RESX. (line 16)
41586 * GIMPLE_RETURN: GIMPLE_RETURN. (line 6)
41587 * gimple_return_retval: GIMPLE_RETURN. (line 10)
41588 * gimple_return_set_retval: GIMPLE_RETURN. (line 14)
41589 * gimple_rhs_class: GIMPLE_ASSIGN. (line 46)
41590 * gimple_seq_add_seq: GIMPLE sequences. (line 32)
41591 * gimple_seq_add_stmt: GIMPLE sequences. (line 26)
41592 * gimple_seq_alloc: GIMPLE sequences. (line 62)
41593 * gimple_seq_copy: GIMPLE sequences. (line 67)
41594 * gimple_seq_deep_copy: GIMPLE sequences. (line 37)
41595 * gimple_seq_empty_p: GIMPLE sequences. (line 70)
41596 * gimple_seq_first: GIMPLE sequences. (line 44)
41597 * gimple_seq_init: GIMPLE sequences. (line 59)
41598 * gimple_seq_last: GIMPLE sequences. (line 47)
41599 * gimple_seq_reverse: GIMPLE sequences. (line 40)
41600 * gimple_seq_set_first: GIMPLE sequences. (line 55)
41601 * gimple_seq_set_last: GIMPLE sequences. (line 51)
41602 * gimple_seq_singleton_p: GIMPLE sequences. (line 79)
41603 * gimple_set_block: Manipulating GIMPLE statements.
41605 * gimple_set_def_ops: Manipulating GIMPLE statements.
41607 * gimple_set_has_volatile_ops: Manipulating GIMPLE statements.
41609 * gimple_set_locus: Manipulating GIMPLE statements.
41611 * gimple_set_op: Manipulating GIMPLE statements.
41613 * gimple_set_plf: Manipulating GIMPLE statements.
41615 * gimple_set_use_ops: Manipulating GIMPLE statements.
41617 * gimple_set_vdef_ops: Manipulating GIMPLE statements.
41619 * gimple_set_visited: Manipulating GIMPLE statements.
41621 * gimple_set_vuse_ops: Manipulating GIMPLE statements.
41623 * gimple_statement_base: Tuple representation.
41625 * gimple_statement_with_ops: Tuple representation.
41627 * gimple_stored_syms: Manipulating GIMPLE statements.
41629 * GIMPLE_SWITCH: GIMPLE_SWITCH. (line 6)
41630 * gimple_switch_default_label: GIMPLE_SWITCH. (line 46)
41631 * gimple_switch_index: GIMPLE_SWITCH. (line 31)
41632 * gimple_switch_label: GIMPLE_SWITCH. (line 37)
41633 * gimple_switch_num_labels: GIMPLE_SWITCH. (line 22)
41634 * gimple_switch_set_default_label: GIMPLE_SWITCH. (line 50)
41635 * gimple_switch_set_index: GIMPLE_SWITCH. (line 34)
41636 * gimple_switch_set_label: GIMPLE_SWITCH. (line 42)
41637 * gimple_switch_set_num_labels: GIMPLE_SWITCH. (line 27)
41638 * GIMPLE_TRY: GIMPLE_TRY. (line 6)
41639 * gimple_try_catch_is_cleanup: GIMPLE_TRY. (line 20)
41640 * gimple_try_cleanup: GIMPLE_TRY. (line 27)
41641 * gimple_try_eval: GIMPLE_TRY. (line 23)
41642 * gimple_try_flags: GIMPLE_TRY. (line 16)
41643 * gimple_try_set_catch_is_cleanup: GIMPLE_TRY. (line 32)
41644 * gimple_try_set_cleanup: GIMPLE_TRY. (line 41)
41645 * gimple_try_set_eval: GIMPLE_TRY. (line 36)
41646 * gimple_visited_p: Manipulating GIMPLE statements.
41648 * gimple_wce_cleanup: GIMPLE_WITH_CLEANUP_EXPR.
41650 * gimple_wce_cleanup_eh_only: GIMPLE_WITH_CLEANUP_EXPR.
41652 * gimple_wce_set_cleanup: GIMPLE_WITH_CLEANUP_EXPR.
41654 * gimple_wce_set_cleanup_eh_only: GIMPLE_WITH_CLEANUP_EXPR.
41656 * GIMPLE_WITH_CLEANUP_EXPR: GIMPLE_WITH_CLEANUP_EXPR.
41658 * gimplification <1>: Gimplification pass.
41660 * gimplification: Parsing pass. (line 14)
41661 * gimplifier: Parsing pass. (line 14)
41662 * gimplify_assign: GIMPLE_ASSIGN. (line 19)
41663 * gimplify_expr: Gimplification pass.
41665 * gimplify_function_tree: Gimplification pass.
41667 * GLOBAL_INIT_PRIORITY: Function Basics. (line 6)
41668 * global_regs: Register Basics. (line 59)
41669 * GO_IF_LEGITIMATE_ADDRESS: Addressing Modes. (line 48)
41670 * GO_IF_MODE_DEPENDENT_ADDRESS: Addressing Modes. (line 190)
41671 * GOFAST, floating point emulation library: Library Calls. (line 44)
41672 * gofast_maybe_init_libfuncs: Library Calls. (line 44)
41673 * greater than: Comparisons. (line 64)
41674 * gsi_after_labels: Sequence iterators. (line 76)
41675 * gsi_bb: Sequence iterators. (line 83)
41676 * gsi_commit_edge_inserts: Sequence iterators. (line 194)
41677 * gsi_commit_one_edge_insert: Sequence iterators. (line 190)
41678 * gsi_end_p: Sequence iterators. (line 60)
41679 * gsi_for_stmt: Sequence iterators. (line 157)
41680 * gsi_insert_after: Sequence iterators. (line 147)
41681 * gsi_insert_before: Sequence iterators. (line 136)
41682 * gsi_insert_on_edge: Sequence iterators. (line 174)
41683 * gsi_insert_on_edge_immediate: Sequence iterators. (line 185)
41684 * gsi_insert_seq_after: Sequence iterators. (line 154)
41685 * gsi_insert_seq_before: Sequence iterators. (line 143)
41686 * gsi_insert_seq_on_edge: Sequence iterators. (line 179)
41687 * gsi_last: Sequence iterators. (line 50)
41688 * gsi_last_bb: Sequence iterators. (line 56)
41689 * gsi_link_after: Sequence iterators. (line 115)
41690 * gsi_link_before: Sequence iterators. (line 105)
41691 * gsi_link_seq_after: Sequence iterators. (line 110)
41692 * gsi_link_seq_before: Sequence iterators. (line 99)
41693 * gsi_move_after: Sequence iterators. (line 161)
41694 * gsi_move_before: Sequence iterators. (line 166)
41695 * gsi_move_to_bb_end: Sequence iterators. (line 171)
41696 * gsi_next: Sequence iterators. (line 66)
41697 * gsi_one_before_end_p: Sequence iterators. (line 63)
41698 * gsi_prev: Sequence iterators. (line 69)
41699 * gsi_remove: Sequence iterators. (line 90)
41700 * gsi_replace: Sequence iterators. (line 130)
41701 * gsi_seq: Sequence iterators. (line 86)
41702 * gsi_split_seq_after: Sequence iterators. (line 120)
41703 * gsi_split_seq_before: Sequence iterators. (line 125)
41704 * gsi_start: Sequence iterators. (line 40)
41705 * gsi_start_bb: Sequence iterators. (line 46)
41706 * gsi_stmt: Sequence iterators. (line 72)
41707 * gt: Comparisons. (line 60)
41708 * gt and attributes: Expressions. (line 64)
41709 * GT_EXPR: Expression trees. (line 6)
41710 * gtu: Comparisons. (line 64)
41711 * gtu and attributes: Expressions. (line 64)
41712 * GTY: Type Information. (line 6)
41713 * H in constraint: Simple Constraints. (line 88)
41714 * HAmode: Machine Modes. (line 144)
41715 * HANDLE_PRAGMA_PACK_PUSH_POP: Misc. (line 467)
41716 * HANDLE_PRAGMA_PACK_WITH_EXPANSION: Misc. (line 478)
41717 * HANDLE_PRAGMA_PUSH_POP_MACRO: Misc. (line 488)
41718 * HANDLE_SYSV_PRAGMA: Misc. (line 438)
41719 * HANDLER: Function Bodies. (line 6)
41720 * HANDLER_BODY: Function Bodies. (line 6)
41721 * HANDLER_PARMS: Function Bodies. (line 6)
41722 * hard registers: Regs and Memory. (line 9)
41723 * HARD_FRAME_POINTER_REGNUM: Frame Registers. (line 20)
41724 * HARD_REGNO_CALL_PART_CLOBBERED: Register Basics. (line 53)
41725 * HARD_REGNO_CALLER_SAVE_MODE: Caller Saves. (line 20)
41726 * HARD_REGNO_MODE_OK: Values in Registers.
41728 * HARD_REGNO_NREGS: Values in Registers.
41730 * HARD_REGNO_NREGS_HAS_PADDING: Values in Registers.
41732 * HARD_REGNO_NREGS_WITH_PADDING: Values in Registers.
41734 * HARD_REGNO_RENAME_OK: Values in Registers.
41736 * HAS_INIT_SECTION: Macros for Initialization.
41738 * HAS_LONG_COND_BRANCH: Misc. (line 9)
41739 * HAS_LONG_UNCOND_BRANCH: Misc. (line 18)
41740 * HAVE_DOS_BASED_FILE_SYSTEM: Filesystem. (line 11)
41741 * HAVE_POST_DECREMENT: Addressing Modes. (line 12)
41742 * HAVE_POST_INCREMENT: Addressing Modes. (line 11)
41743 * HAVE_POST_MODIFY_DISP: Addressing Modes. (line 18)
41744 * HAVE_POST_MODIFY_REG: Addressing Modes. (line 24)
41745 * HAVE_PRE_DECREMENT: Addressing Modes. (line 10)
41746 * HAVE_PRE_INCREMENT: Addressing Modes. (line 9)
41747 * HAVE_PRE_MODIFY_DISP: Addressing Modes. (line 17)
41748 * HAVE_PRE_MODIFY_REG: Addressing Modes. (line 23)
41749 * HCmode: Machine Modes. (line 197)
41750 * HFmode: Machine Modes. (line 58)
41751 * high: Constants. (line 109)
41752 * HImode: Machine Modes. (line 29)
41753 * HImode, in insn: Insns. (line 231)
41754 * host configuration: Host Config. (line 6)
41755 * host functions: Host Common. (line 6)
41756 * host hooks: Host Common. (line 6)
41757 * host makefile fragment: Host Fragment. (line 6)
41758 * HOST_BIT_BUCKET: Filesystem. (line 51)
41759 * HOST_EXECUTABLE_SUFFIX: Filesystem. (line 45)
41760 * HOST_HOOKS_EXTRA_SIGNALS: Host Common. (line 12)
41761 * HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY: Host Common. (line 45)
41762 * HOST_HOOKS_GT_PCH_USE_ADDRESS: Host Common. (line 26)
41763 * HOST_LACKS_INODE_NUMBERS: Filesystem. (line 89)
41764 * HOST_LONG_LONG_FORMAT: Host Misc. (line 41)
41765 * HOST_OBJECT_SUFFIX: Filesystem. (line 40)
41766 * HOST_WIDE_INT: Anchored Addresses. (line 33)
41767 * HOT_TEXT_SECTION_NAME: Sections. (line 43)
41768 * HQmode: Machine Modes. (line 107)
41769 * I in constraint: Simple Constraints. (line 71)
41770 * i in constraint: Simple Constraints. (line 60)
41771 * identifier: Identifiers. (line 6)
41772 * IDENTIFIER_LENGTH: Identifiers. (line 20)
41773 * IDENTIFIER_NODE: Identifiers. (line 6)
41774 * IDENTIFIER_OPNAME_P: Identifiers. (line 25)
41775 * IDENTIFIER_POINTER: Identifiers. (line 15)
41776 * IDENTIFIER_TYPENAME_P: Identifiers. (line 31)
41777 * IEEE 754-2008: Decimal float library routines.
41779 * IF_COND: Function Bodies. (line 6)
41780 * if_marked: GTY Options. (line 156)
41781 * IF_STMT: Function Bodies. (line 6)
41782 * if_then_else: Comparisons. (line 80)
41783 * if_then_else and attributes: Expressions. (line 32)
41784 * if_then_else usage: Side Effects. (line 56)
41785 * IFCVT_EXTRA_FIELDS: Misc. (line 627)
41786 * IFCVT_INIT_EXTRA_FIELDS: Misc. (line 622)
41787 * IFCVT_MODIFY_CANCEL: Misc. (line 616)
41788 * IFCVT_MODIFY_FINAL: Misc. (line 610)
41789 * IFCVT_MODIFY_INSN: Misc. (line 604)
41790 * IFCVT_MODIFY_MULTIPLE_TESTS: Misc. (line 597)
41791 * IFCVT_MODIFY_TESTS: Misc. (line 586)
41792 * IMAGPART_EXPR: Expression trees. (line 6)
41793 * Immediate Uses: SSA Operands. (line 274)
41794 * immediate_operand: Machine-Independent Predicates.
41796 * IMMEDIATE_PREFIX: Instruction Output. (line 127)
41797 * in_struct: Flags. (line 258)
41798 * in_struct, in code_label and note: Flags. (line 59)
41799 * in_struct, in insn and jump_insn and call_insn: Flags. (line 49)
41800 * in_struct, in insn, jump_insn and call_insn: Flags. (line 166)
41801 * in_struct, in mem: Flags. (line 70)
41802 * in_struct, in subreg: Flags. (line 205)
41803 * include: Including Patterns. (line 6)
41804 * INCLUDE_DEFAULTS: Driver. (line 430)
41805 * inclusive-or, bitwise: Arithmetic. (line 158)
41806 * INCOMING_FRAME_SP_OFFSET: Frame Layout. (line 183)
41807 * INCOMING_REGNO: Register Basics. (line 91)
41808 * INCOMING_RETURN_ADDR_RTX: Frame Layout. (line 139)
41809 * INCOMING_STACK_BOUNDARY: Storage Layout. (line 165)
41810 * INDEX_REG_CLASS: Register Classes. (line 134)
41811 * indirect_jump instruction pattern: Standard Names. (line 1078)
41812 * indirect_operand: Machine-Independent Predicates.
41814 * INDIRECT_REF: Expression trees. (line 6)
41815 * INIT_ARRAY_SECTION_ASM_OP: Sections. (line 98)
41816 * INIT_CUMULATIVE_ARGS: Register Arguments. (line 149)
41817 * INIT_CUMULATIVE_INCOMING_ARGS: Register Arguments. (line 177)
41818 * INIT_CUMULATIVE_LIBCALL_ARGS: Register Arguments. (line 170)
41819 * INIT_ENVIRONMENT: Driver. (line 369)
41820 * INIT_EXPANDERS: Per-Function Data. (line 39)
41821 * INIT_EXPR: Expression trees. (line 6)
41822 * init_machine_status: Per-Function Data. (line 45)
41823 * init_one_libfunc: Library Calls. (line 15)
41824 * INIT_SECTION_ASM_OP <1>: Macros for Initialization.
41826 * INIT_SECTION_ASM_OP: Sections. (line 82)
41827 * INITIAL_ELIMINATION_OFFSET: Elimination. (line 79)
41828 * INITIAL_FRAME_ADDRESS_RTX: Frame Layout. (line 83)
41829 * INITIAL_FRAME_POINTER_OFFSET: Elimination. (line 32)
41830 * initialization routines: Initialization. (line 6)
41831 * INITIALIZE_TRAMPOLINE: Trampolines. (line 55)
41832 * inlining: Target Attributes. (line 86)
41833 * insert_insn_on_edge: Maintaining the CFG.
41835 * insn: Insns. (line 63)
41836 * insn and /f: Flags. (line 125)
41837 * insn and /j: Flags. (line 175)
41838 * insn and /s: Flags. (line 166)
41839 * insn and /u: Flags. (line 39)
41840 * insn and /v: Flags. (line 44)
41841 * insn attributes: Insn Attributes. (line 6)
41842 * insn canonicalization: Insn Canonicalizations.
41844 * insn includes: Including Patterns. (line 6)
41845 * insn lengths, computing: Insn Lengths. (line 6)
41846 * insn splitting: Insn Splitting. (line 6)
41847 * insn-attr.h: Defining Attributes.
41849 * INSN_ANNULLED_BRANCH_P: Flags. (line 39)
41850 * INSN_CODE: Insns. (line 257)
41851 * INSN_DELETED_P: Flags. (line 44)
41852 * INSN_FROM_TARGET_P: Flags. (line 49)
41853 * insn_list: Insns. (line 505)
41854 * INSN_REFERENCES_ARE_DELAYED: Misc. (line 525)
41855 * INSN_SETS_ARE_DELAYED: Misc. (line 514)
41856 * INSN_UID: Insns. (line 23)
41857 * insns: Insns. (line 6)
41858 * insns, generating: RTL Template. (line 6)
41859 * insns, recognizing: RTL Template. (line 6)
41860 * instruction attributes: Insn Attributes. (line 6)
41861 * instruction latency time: Processor pipeline description.
41863 * instruction patterns: Patterns. (line 6)
41864 * instruction splitting: Insn Splitting. (line 6)
41865 * insv instruction pattern: Standard Names. (line 880)
41866 * int <1>: Manipulating GIMPLE statements.
41868 * int: Run-time Target. (line 56)
41869 * INT_TYPE_SIZE: Type Layout. (line 12)
41870 * INTEGER_CST: Expression trees. (line 6)
41871 * INTEGER_TYPE: Types. (line 6)
41872 * Interdependence of Patterns: Dependent Patterns. (line 6)
41873 * interfacing to GCC output: Interface. (line 6)
41874 * interlock delays: Processor pipeline description.
41876 * intermediate representation lowering: Parsing pass. (line 14)
41877 * INTMAX_TYPE: Type Layout. (line 213)
41878 * introduction: Top. (line 6)
41879 * INVOKE__main: Macros for Initialization.
41881 * ior: Arithmetic. (line 158)
41882 * ior and attributes: Expressions. (line 50)
41883 * ior, canonicalization of: Insn Canonicalizations.
41885 * iorM3 instruction pattern: Standard Names. (line 222)
41886 * IRA_COVER_CLASSES: Register Classes. (line 516)
41887 * IRA_HARD_REGNO_ADD_COST_MULTIPLIER: Allocation Order. (line 37)
41888 * IS_ASM_LOGICAL_LINE_SEPARATOR: Data Output. (line 120)
41889 * is_gimple_omp: GIMPLE_OMP_PARALLEL.
41891 * iterators in .md files: Iterators. (line 6)
41892 * IV analysis on GIMPLE: Scalar evolutions. (line 6)
41893 * IV analysis on RTL: loop-iv. (line 6)
41894 * jump: Flags. (line 309)
41895 * jump instruction pattern: Standard Names. (line 969)
41896 * jump instruction patterns: Jump Patterns. (line 6)
41897 * jump instructions and set: Side Effects. (line 56)
41898 * jump, in call_insn: Flags. (line 179)
41899 * jump, in insn: Flags. (line 175)
41900 * jump, in mem: Flags. (line 79)
41901 * JUMP_ALIGN: Alignment Output. (line 9)
41902 * jump_insn: Insns. (line 73)
41903 * jump_insn and /f: Flags. (line 125)
41904 * jump_insn and /s: Flags. (line 166)
41905 * jump_insn and /u: Flags. (line 39)
41906 * jump_insn and /v: Flags. (line 44)
41907 * JUMP_LABEL: Insns. (line 80)
41908 * JUMP_TABLES_IN_TEXT_SECTION: Sections. (line 142)
41909 * Jumps: Jumps. (line 6)
41910 * LABEL_ALIGN: Alignment Output. (line 52)
41911 * LABEL_ALIGN_AFTER_BARRIER: Alignment Output. (line 22)
41912 * LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP: Alignment Output. (line 30)
41913 * LABEL_ALIGN_MAX_SKIP: Alignment Output. (line 62)
41914 * LABEL_ALT_ENTRY_P: Insns. (line 140)
41915 * LABEL_ALTERNATE_NAME: Edges. (line 180)
41916 * LABEL_DECL: Declarations. (line 6)
41917 * LABEL_KIND: Insns. (line 140)
41918 * LABEL_NUSES: Insns. (line 136)
41919 * LABEL_PRESERVE_P: Flags. (line 59)
41920 * label_ref: Constants. (line 86)
41921 * label_ref and /v: Flags. (line 65)
41922 * label_ref, RTL sharing: Sharing. (line 35)
41923 * LABEL_REF_NONLOCAL_P: Flags. (line 65)
41924 * lang_hooks.gimplify_expr: Gimplification pass.
41926 * lang_hooks.parse_file: Parsing pass. (line 6)
41927 * language-independent intermediate representation: Parsing pass.
41929 * large return values: Aggregate Return. (line 6)
41930 * LARGEST_EXPONENT_IS_NORMAL: Storage Layout. (line 462)
41931 * LAST_STACK_REG: Stack Registers. (line 27)
41932 * LAST_VIRTUAL_REGISTER: Regs and Memory. (line 51)
41933 * lceilMN2: Standard Names. (line 597)
41934 * LCSSA: LCSSA. (line 6)
41935 * LD_FINI_SWITCH: Macros for Initialization.
41937 * LD_INIT_SWITCH: Macros for Initialization.
41939 * LDD_SUFFIX: Macros for Initialization.
41941 * le: Comparisons. (line 76)
41942 * le and attributes: Expressions. (line 64)
41943 * LE_EXPR: Expression trees. (line 6)
41944 * leaf functions: Leaf Functions. (line 6)
41945 * leaf_function_p: Standard Names. (line 1040)
41946 * LEAF_REG_REMAP: Leaf Functions. (line 39)
41947 * LEAF_REGISTERS: Leaf Functions. (line 25)
41948 * left rotate: Arithmetic. (line 190)
41949 * left shift: Arithmetic. (line 168)
41950 * LEGITIMATE_CONSTANT_P: Addressing Modes. (line 205)
41951 * LEGITIMATE_PIC_OPERAND_P: PIC. (line 31)
41952 * LEGITIMIZE_ADDRESS: Addressing Modes. (line 122)
41953 * LEGITIMIZE_RELOAD_ADDRESS: Addressing Modes. (line 145)
41954 * length: GTY Options. (line 50)
41955 * less than: Comparisons. (line 68)
41956 * less than or equal: Comparisons. (line 76)
41957 * leu: Comparisons. (line 76)
41958 * leu and attributes: Expressions. (line 64)
41959 * lfloorMN2: Standard Names. (line 592)
41960 * LIB2FUNCS_EXTRA: Target Fragment. (line 11)
41961 * LIB_SPEC: Driver. (line 170)
41962 * LIBCALL_VALUE: Scalar Return. (line 60)
41963 * libgcc.a: Library Calls. (line 6)
41964 * LIBGCC2_CFLAGS: Target Fragment. (line 8)
41965 * LIBGCC2_HAS_DF_MODE: Type Layout. (line 109)
41966 * LIBGCC2_HAS_TF_MODE: Type Layout. (line 123)
41967 * LIBGCC2_HAS_XF_MODE: Type Layout. (line 117)
41968 * LIBGCC2_LONG_DOUBLE_TYPE_SIZE: Type Layout. (line 103)
41969 * LIBGCC2_UNWIND_ATTRIBUTE: Misc. (line 937)
41970 * LIBGCC2_WORDS_BIG_ENDIAN: Storage Layout. (line 36)
41971 * LIBGCC_SPEC: Driver. (line 178)
41972 * library subroutine names: Library Calls. (line 6)
41973 * LIBRARY_PATH_ENV: Misc. (line 565)
41974 * LIMIT_RELOAD_CLASS: Register Classes. (line 239)
41975 * Linear loop transformations framework: Lambda. (line 6)
41976 * LINK_COMMAND_SPEC: Driver. (line 299)
41977 * LINK_EH_SPEC: Driver. (line 205)
41978 * LINK_ELIMINATE_DUPLICATE_LDIRECTORIES: Driver. (line 309)
41979 * LINK_GCC_C_SEQUENCE_SPEC: Driver. (line 295)
41980 * LINK_LIBGCC_SPECIAL_1: Driver. (line 290)
41981 * LINK_SPEC: Driver. (line 163)
41982 * linkage: Function Basics. (line 6)
41983 * list: Containers. (line 6)
41984 * Liveness representation: Liveness information.
41986 * lo_sum: Arithmetic. (line 24)
41987 * load address instruction: Simple Constraints. (line 154)
41988 * LOAD_EXTEND_OP: Misc. (line 69)
41989 * load_multiple instruction pattern: Standard Names. (line 137)
41990 * LOCAL_ALIGNMENT: Storage Layout. (line 254)
41991 * LOCAL_CLASS_P: Classes. (line 68)
41992 * LOCAL_DECL_ALIGNMENT: Storage Layout. (line 278)
41993 * LOCAL_INCLUDE_DIR: Driver. (line 376)
41994 * LOCAL_LABEL_PREFIX: Instruction Output. (line 125)
41995 * LOCAL_REGNO: Register Basics. (line 105)
41996 * LOG_LINKS: Insns. (line 276)
41997 * Logical Operators: Logical Operators. (line 6)
41998 * logical-and, bitwise: Arithmetic. (line 153)
41999 * logM2 instruction pattern: Standard Names. (line 505)
42000 * LONG_ACCUM_TYPE_SIZE: Type Layout. (line 93)
42001 * LONG_DOUBLE_TYPE_SIZE: Type Layout. (line 58)
42002 * LONG_FRACT_TYPE_SIZE: Type Layout. (line 73)
42003 * LONG_LONG_ACCUM_TYPE_SIZE: Type Layout. (line 98)
42004 * LONG_LONG_FRACT_TYPE_SIZE: Type Layout. (line 78)
42005 * LONG_LONG_TYPE_SIZE: Type Layout. (line 33)
42006 * LONG_TYPE_SIZE: Type Layout. (line 22)
42007 * longjmp and automatic variables: Interface. (line 52)
42008 * Loop analysis: Loop representation.
42010 * Loop manipulation: Loop manipulation. (line 6)
42011 * Loop querying: Loop querying. (line 6)
42012 * Loop representation: Loop representation.
42014 * Loop-closed SSA form: LCSSA. (line 6)
42015 * LOOP_ALIGN: Alignment Output. (line 35)
42016 * LOOP_ALIGN_MAX_SKIP: Alignment Output. (line 48)
42017 * LOOP_EXPR: Expression trees. (line 6)
42018 * looping instruction patterns: Looping Patterns. (line 6)
42019 * lowering, language-dependent intermediate representation: Parsing pass.
42021 * lrintMN2: Standard Names. (line 582)
42022 * lroundMN2: Standard Names. (line 587)
42023 * LSHIFT_EXPR: Expression trees. (line 6)
42024 * lshiftrt: Arithmetic. (line 185)
42025 * lshiftrt and attributes: Expressions. (line 64)
42026 * lshrM3 instruction pattern: Standard Names. (line 441)
42027 * lt: Comparisons. (line 68)
42028 * lt and attributes: Expressions. (line 64)
42029 * LT_EXPR: Expression trees. (line 6)
42030 * LTGT_EXPR: Expression trees. (line 6)
42031 * ltu: Comparisons. (line 68)
42032 * m in constraint: Simple Constraints. (line 17)
42033 * machine attributes: Target Attributes. (line 6)
42034 * machine description macros: Target Macros. (line 6)
42035 * machine descriptions: Machine Desc. (line 6)
42036 * machine mode conversions: Conversions. (line 6)
42037 * machine modes: Machine Modes. (line 6)
42038 * machine specific constraints: Machine Constraints.
42040 * machine-independent predicates: Machine-Independent Predicates.
42042 * machine_mode: Condition Code. (line 157)
42043 * macros, target description: Target Macros. (line 6)
42044 * maddMN4 instruction pattern: Standard Names. (line 364)
42045 * MAKE_DECL_ONE_ONLY: Label Output. (line 218)
42046 * make_phi_node: GIMPLE_PHI. (line 7)
42047 * make_safe_from: Expander Definitions.
42049 * makefile fragment: Fragments. (line 6)
42050 * makefile targets: Makefile. (line 6)
42051 * MALLOC_ABI_ALIGNMENT: Storage Layout. (line 179)
42052 * Manipulating GIMPLE statements: Manipulating GIMPLE statements.
42054 * mark_hook: GTY Options. (line 171)
42055 * marking roots: GGC Roots. (line 6)
42056 * MASK_RETURN_ADDR: Exception Region Output.
42058 * match_dup <1>: RTL Template. (line 73)
42059 * match_dup: define_peephole2. (line 28)
42060 * match_dup and attributes: Insn Lengths. (line 16)
42061 * match_op_dup: RTL Template. (line 163)
42062 * match_operand: RTL Template. (line 16)
42063 * match_operand and attributes: Expressions. (line 55)
42064 * match_operator: RTL Template. (line 95)
42065 * match_par_dup: RTL Template. (line 219)
42066 * match_parallel: RTL Template. (line 172)
42067 * match_scratch <1>: define_peephole2. (line 28)
42068 * match_scratch: RTL Template. (line 58)
42069 * matching constraint: Simple Constraints. (line 132)
42070 * matching operands: Output Template. (line 49)
42071 * math library: Soft float library routines.
42073 * math, in RTL: Arithmetic. (line 6)
42074 * MATH_LIBRARY: Misc. (line 558)
42075 * matherr: Library Calls. (line 58)
42076 * MAX_BITS_PER_WORD: Storage Layout. (line 61)
42077 * MAX_CONDITIONAL_EXECUTE: Misc. (line 580)
42078 * MAX_FIXED_MODE_SIZE: Storage Layout. (line 413)
42079 * MAX_MOVE_MAX: Misc. (line 120)
42080 * MAX_OFILE_ALIGNMENT: Storage Layout. (line 216)
42081 * MAX_REGS_PER_ADDRESS: Addressing Modes. (line 42)
42082 * MAX_STACK_ALIGNMENT: Storage Layout. (line 209)
42083 * maxM3 instruction pattern: Standard Names. (line 234)
42084 * may_trap_p, tree_could_trap_p: Edges. (line 115)
42085 * maybe_undef: GTY Options. (line 179)
42086 * mcount: Profiling. (line 12)
42087 * MD_CAN_REDIRECT_BRANCH: Misc. (line 705)
42088 * MD_EXEC_PREFIX: Driver. (line 330)
42089 * MD_FALLBACK_FRAME_STATE_FOR: Exception Handling. (line 98)
42090 * MD_HANDLE_UNWABI: Exception Handling. (line 118)
42091 * MD_STARTFILE_PREFIX: Driver. (line 358)
42092 * MD_STARTFILE_PREFIX_1: Driver. (line 364)
42093 * MD_UNWIND_SUPPORT: Exception Handling. (line 94)
42094 * mem: Regs and Memory. (line 374)
42095 * mem and /c: Flags. (line 99)
42096 * mem and /f: Flags. (line 103)
42097 * mem and /i: Flags. (line 85)
42098 * mem and /j: Flags. (line 79)
42099 * mem and /s: Flags. (line 70)
42100 * mem and /u: Flags. (line 152)
42101 * mem and /v: Flags. (line 94)
42102 * mem, RTL sharing: Sharing. (line 40)
42103 * MEM_ALIAS_SET: Special Accessors. (line 9)
42104 * MEM_ALIGN: Special Accessors. (line 36)
42105 * MEM_EXPR: Special Accessors. (line 20)
42106 * MEM_IN_STRUCT_P: Flags. (line 70)
42107 * MEM_KEEP_ALIAS_SET_P: Flags. (line 79)
42108 * MEM_NOTRAP_P: Flags. (line 99)
42109 * MEM_OFFSET: Special Accessors. (line 28)
42110 * MEM_POINTER: Flags. (line 103)
42111 * MEM_READONLY_P: Flags. (line 152)
42112 * MEM_SCALAR_P: Flags. (line 85)
42113 * MEM_SIZE: Special Accessors. (line 31)
42114 * MEM_VOLATILE_P: Flags. (line 94)
42115 * MEMBER_TYPE_FORCES_BLK: Storage Layout. (line 393)
42116 * memory reference, nonoffsettable: Simple Constraints. (line 246)
42117 * memory references in constraints: Simple Constraints. (line 17)
42118 * memory_barrier instruction pattern: Standard Names. (line 1413)
42119 * MEMORY_MOVE_COST: Costs. (line 29)
42120 * memory_operand: Machine-Independent Predicates.
42122 * METHOD_TYPE: Types. (line 6)
42123 * MIN_UNITS_PER_WORD: Storage Layout. (line 71)
42124 * MINIMUM_ATOMIC_ALIGNMENT: Storage Layout. (line 187)
42125 * minM3 instruction pattern: Standard Names. (line 234)
42126 * minus: Arithmetic. (line 36)
42127 * minus and attributes: Expressions. (line 64)
42128 * minus, canonicalization of: Insn Canonicalizations.
42130 * MINUS_EXPR: Expression trees. (line 6)
42131 * MIPS coprocessor-definition macros: MIPS Coprocessors. (line 6)
42132 * mod: Arithmetic. (line 131)
42133 * mod and attributes: Expressions. (line 64)
42134 * mode classes: Machine Modes. (line 219)
42135 * mode iterators in .md files: Mode Iterators. (line 6)
42136 * mode switching: Mode Switching. (line 6)
42137 * MODE_ACCUM: Machine Modes. (line 249)
42138 * MODE_AFTER: Mode Switching. (line 49)
42139 * MODE_BASE_REG_CLASS: Register Classes. (line 112)
42140 * MODE_BASE_REG_REG_CLASS: Register Classes. (line 118)
42141 * MODE_CC: Machine Modes. (line 268)
42142 * MODE_CODE_BASE_REG_CLASS: Register Classes. (line 125)
42143 * MODE_COMPLEX_FLOAT: Machine Modes. (line 260)
42144 * MODE_COMPLEX_INT: Machine Modes. (line 257)
42145 * MODE_DECIMAL_FLOAT: Machine Modes. (line 237)
42146 * MODE_ENTRY: Mode Switching. (line 54)
42147 * MODE_EXIT: Mode Switching. (line 60)
42148 * MODE_FLOAT: Machine Modes. (line 233)
42149 * MODE_FRACT: Machine Modes. (line 241)
42150 * MODE_FUNCTION: Machine Modes. (line 264)
42151 * MODE_INT: Machine Modes. (line 225)
42152 * MODE_NEEDED: Mode Switching. (line 42)
42153 * MODE_PARTIAL_INT: Machine Modes. (line 229)
42154 * MODE_PRIORITY_TO_MODE: Mode Switching. (line 66)
42155 * MODE_RANDOM: Machine Modes. (line 273)
42156 * MODE_UACCUM: Machine Modes. (line 253)
42157 * MODE_UFRACT: Machine Modes. (line 245)
42158 * MODES_TIEABLE_P: Values in Registers.
42160 * modifiers in constraints: Modifiers. (line 6)
42161 * MODIFY_EXPR: Expression trees. (line 6)
42162 * MODIFY_JNI_METHOD_CALL: Misc. (line 782)
42163 * MODIFY_TARGET_NAME: Driver. (line 385)
42164 * modM3 instruction pattern: Standard Names. (line 222)
42165 * modulo scheduling: RTL passes. (line 140)
42166 * MOVE_BY_PIECES_P: Costs. (line 110)
42167 * MOVE_MAX: Misc. (line 115)
42168 * MOVE_MAX_PIECES: Costs. (line 116)
42169 * MOVE_RATIO: Costs. (line 97)
42170 * movM instruction pattern: Standard Names. (line 11)
42171 * movmemM instruction pattern: Standard Names. (line 672)
42172 * movmisalignM instruction pattern: Standard Names. (line 126)
42173 * movMODEcc instruction pattern: Standard Names. (line 891)
42174 * movstr instruction pattern: Standard Names. (line 707)
42175 * movstrictM instruction pattern: Standard Names. (line 120)
42176 * msubMN4 instruction pattern: Standard Names. (line 387)
42177 * mulhisi3 instruction pattern: Standard Names. (line 340)
42178 * mulM3 instruction pattern: Standard Names. (line 222)
42179 * mulqihi3 instruction pattern: Standard Names. (line 344)
42180 * mulsidi3 instruction pattern: Standard Names. (line 344)
42181 * mult: Arithmetic. (line 92)
42182 * mult and attributes: Expressions. (line 64)
42183 * mult, canonicalization of: Insn Canonicalizations.
42185 * MULT_EXPR: Expression trees. (line 6)
42186 * MULTILIB_DEFAULTS: Driver. (line 315)
42187 * MULTILIB_DIRNAMES: Target Fragment. (line 64)
42188 * MULTILIB_EXCEPTIONS: Target Fragment. (line 84)
42189 * MULTILIB_EXTRA_OPTS: Target Fragment. (line 96)
42190 * MULTILIB_MATCHES: Target Fragment. (line 77)
42191 * MULTILIB_OPTIONS: Target Fragment. (line 44)
42192 * multiple alternative constraints: Multi-Alternative. (line 6)
42193 * MULTIPLE_SYMBOL_SPACES: Misc. (line 538)
42194 * multiplication: Arithmetic. (line 92)
42195 * multiplication with signed saturation: Arithmetic. (line 92)
42196 * multiplication with unsigned saturation: Arithmetic. (line 92)
42197 * MUST_USE_SJLJ_EXCEPTIONS: Exception Region Output.
42199 * n in constraint: Simple Constraints. (line 65)
42200 * N_REG_CLASSES: Register Classes. (line 76)
42201 * name: Identifiers. (line 6)
42202 * named patterns and conditions: Patterns. (line 47)
42203 * names, pattern: Standard Names. (line 6)
42204 * namespace: Namespaces. (line 6)
42205 * namespace, class, scope: Scopes. (line 6)
42206 * NAMESPACE_DECL <1>: Declarations. (line 6)
42207 * NAMESPACE_DECL: Namespaces. (line 6)
42208 * NATIVE_SYSTEM_HEADER_DIR: Target Fragment. (line 103)
42209 * ne: Comparisons. (line 56)
42210 * ne and attributes: Expressions. (line 64)
42211 * NE_EXPR: Expression trees. (line 6)
42212 * nearbyintM2 instruction pattern: Standard Names. (line 564)
42213 * neg: Arithmetic. (line 81)
42214 * neg and attributes: Expressions. (line 64)
42215 * neg, canonicalization of: Insn Canonicalizations.
42217 * NEGATE_EXPR: Expression trees. (line 6)
42218 * negation: Arithmetic. (line 81)
42219 * negation with signed saturation: Arithmetic. (line 81)
42220 * negation with unsigned saturation: Arithmetic. (line 81)
42221 * negM2 instruction pattern: Standard Names. (line 449)
42222 * nested functions, trampolines for: Trampolines. (line 6)
42223 * nested_ptr: GTY Options. (line 186)
42224 * next_bb, prev_bb, FOR_EACH_BB: Basic Blocks. (line 10)
42225 * next_cc0_user: Jump Patterns. (line 64)
42226 * NEXT_INSN: Insns. (line 30)
42227 * NEXT_OBJC_RUNTIME: Library Calls. (line 94)
42228 * nil: RTL Objects. (line 73)
42229 * NO_DBX_BNSYM_ENSYM: DBX Hooks. (line 39)
42230 * NO_DBX_FUNCTION_END: DBX Hooks. (line 33)
42231 * NO_DBX_GCC_MARKER: File Names and DBX. (line 28)
42232 * NO_DBX_MAIN_SOURCE_DIRECTORY: File Names and DBX. (line 23)
42233 * NO_DOLLAR_IN_LABEL: Misc. (line 502)
42234 * NO_DOT_IN_LABEL: Misc. (line 508)
42235 * NO_FUNCTION_CSE: Costs. (line 200)
42236 * NO_IMPLICIT_EXTERN_C: Misc. (line 376)
42237 * NO_PROFILE_COUNTERS: Profiling. (line 28)
42238 * NO_REGS: Register Classes. (line 17)
42239 * NON_LVALUE_EXPR: Expression trees. (line 6)
42240 * nondeterministic finite state automaton: Processor pipeline description.
42242 * nonimmediate_operand: Machine-Independent Predicates.
42244 * nonlocal goto handler: Edges. (line 171)
42245 * nonlocal_goto instruction pattern: Standard Names. (line 1255)
42246 * nonlocal_goto_receiver instruction pattern: Standard Names.
42248 * nonmemory_operand: Machine-Independent Predicates.
42250 * nonoffsettable memory reference: Simple Constraints. (line 246)
42251 * nop instruction pattern: Standard Names. (line 1073)
42252 * NOP_EXPR: Expression trees. (line 6)
42253 * normal predicates: Predicates. (line 31)
42254 * not: Arithmetic. (line 149)
42255 * not and attributes: Expressions. (line 50)
42256 * not equal: Comparisons. (line 56)
42257 * not, canonicalization of: Insn Canonicalizations.
42259 * note: Insns. (line 168)
42260 * note and /i: Flags. (line 59)
42261 * note and /v: Flags. (line 44)
42262 * NOTE_INSN_BASIC_BLOCK, CODE_LABEL, notes: Basic Blocks. (line 41)
42263 * NOTE_INSN_BLOCK_BEG: Insns. (line 193)
42264 * NOTE_INSN_BLOCK_END: Insns. (line 193)
42265 * NOTE_INSN_DELETED: Insns. (line 183)
42266 * NOTE_INSN_DELETED_LABEL: Insns. (line 188)
42267 * NOTE_INSN_EH_REGION_BEG: Insns. (line 199)
42268 * NOTE_INSN_EH_REGION_END: Insns. (line 199)
42269 * NOTE_INSN_FUNCTION_BEG: Insns. (line 223)
42270 * NOTE_INSN_LOOP_BEG: Insns. (line 207)
42271 * NOTE_INSN_LOOP_CONT: Insns. (line 213)
42272 * NOTE_INSN_LOOP_END: Insns. (line 207)
42273 * NOTE_INSN_LOOP_VTOP: Insns. (line 217)
42274 * NOTE_LINE_NUMBER: Insns. (line 168)
42275 * NOTE_SOURCE_FILE: Insns. (line 168)
42276 * NOTICE_UPDATE_CC: Condition Code. (line 33)
42277 * NUM_MACHINE_MODES: Machine Modes. (line 286)
42278 * NUM_MODES_FOR_MODE_SWITCHING: Mode Switching. (line 30)
42279 * Number of iterations analysis: Number of iterations.
42281 * o in constraint: Simple Constraints. (line 23)
42282 * OBJC_GEN_METHOD_LABEL: Label Output. (line 411)
42283 * OBJC_JBLEN: Misc. (line 932)
42284 * OBJECT_FORMAT_COFF: Macros for Initialization.
42286 * OFFSET_TYPE: Types. (line 6)
42287 * offsettable address: Simple Constraints. (line 23)
42288 * OImode: Machine Modes. (line 51)
42289 * Omega a solver for linear programming problems: Omega. (line 6)
42290 * OMP_ATOMIC: Expression trees. (line 6)
42291 * OMP_CLAUSE: Expression trees. (line 6)
42292 * OMP_CONTINUE: Expression trees. (line 6)
42293 * OMP_CRITICAL: Expression trees. (line 6)
42294 * OMP_FOR: Expression trees. (line 6)
42295 * OMP_MASTER: Expression trees. (line 6)
42296 * OMP_ORDERED: Expression trees. (line 6)
42297 * OMP_PARALLEL: Expression trees. (line 6)
42298 * OMP_RETURN: Expression trees. (line 6)
42299 * OMP_SECTION: Expression trees. (line 6)
42300 * OMP_SECTIONS: Expression trees. (line 6)
42301 * OMP_SINGLE: Expression trees. (line 6)
42302 * one_cmplM2 instruction pattern: Standard Names. (line 651)
42303 * operand access: Accessors. (line 6)
42304 * Operand Access Routines: SSA Operands. (line 119)
42305 * operand constraints: Constraints. (line 6)
42306 * Operand Iterators: SSA Operands. (line 119)
42307 * operand predicates: Predicates. (line 6)
42308 * operand substitution: Output Template. (line 6)
42309 * operands: Patterns. (line 53)
42310 * Operands: Operands. (line 6)
42311 * operands: SSA Operands. (line 6)
42312 * operator predicates: Predicates. (line 6)
42313 * optc-gen.awk: Options. (line 6)
42314 * Optimization infrastructure for GIMPLE: Tree SSA. (line 6)
42315 * OPTIMIZATION_OPTIONS: Run-time Target. (line 120)
42316 * OPTIMIZE_MODE_SWITCHING: Mode Switching. (line 9)
42317 * option specification files: Options. (line 6)
42318 * OPTION_DEFAULT_SPECS: Driver. (line 88)
42319 * optional hardware or system features: Run-time Target. (line 59)
42320 * options, directory search: Including Patterns. (line 44)
42321 * order of register allocation: Allocation Order. (line 6)
42322 * ORDER_REGS_FOR_LOCAL_ALLOC: Allocation Order. (line 23)
42323 * ORDERED_EXPR: Expression trees. (line 6)
42324 * Ordering of Patterns: Pattern Ordering. (line 6)
42325 * ORIGINAL_REGNO: Special Accessors. (line 40)
42326 * other register constraints: Simple Constraints. (line 163)
42327 * OUTGOING_REG_PARM_STACK_SPACE: Stack Arguments. (line 71)
42328 * OUTGOING_REGNO: Register Basics. (line 98)
42329 * output of assembler code: File Framework. (line 6)
42330 * output statements: Output Statement. (line 6)
42331 * output templates: Output Template. (line 6)
42332 * OUTPUT_ADDR_CONST_EXTRA: Data Output. (line 39)
42333 * output_asm_insn: Output Statement. (line 53)
42334 * OUTPUT_QUOTED_STRING: File Framework. (line 76)
42335 * OVERLOAD: Functions. (line 6)
42336 * OVERRIDE_ABI_FORMAT: Register Arguments. (line 140)
42337 * OVERRIDE_OPTIONS: Run-time Target. (line 104)
42338 * OVL_CURRENT: Functions. (line 6)
42339 * OVL_NEXT: Functions. (line 6)
42340 * p in constraint: Simple Constraints. (line 154)
42341 * PAD_VARARGS_DOWN: Register Arguments. (line 221)
42342 * parallel: Side Effects. (line 204)
42343 * param_is: GTY Options. (line 114)
42344 * parameters, c++ abi: C++ ABI. (line 6)
42345 * parameters, miscellaneous: Misc. (line 6)
42346 * parameters, precompiled headers: PCH Target. (line 6)
42347 * paramN_is: GTY Options. (line 132)
42348 * parity: Arithmetic. (line 228)
42349 * parityM2 instruction pattern: Standard Names. (line 645)
42350 * PARM_BOUNDARY: Storage Layout. (line 144)
42351 * PARM_DECL: Declarations. (line 6)
42352 * PARSE_LDD_OUTPUT: Macros for Initialization.
42354 * passes and files of the compiler: Passes. (line 6)
42355 * passing arguments: Interface. (line 36)
42356 * PATH_SEPARATOR: Filesystem. (line 31)
42357 * PATTERN: Insns. (line 247)
42358 * pattern conditions: Patterns. (line 43)
42359 * pattern names: Standard Names. (line 6)
42360 * Pattern Ordering: Pattern Ordering. (line 6)
42361 * patterns: Patterns. (line 6)
42362 * pc: Regs and Memory. (line 361)
42363 * pc and attributes: Insn Lengths. (line 20)
42364 * pc, RTL sharing: Sharing. (line 25)
42365 * PC_REGNUM: Register Basics. (line 112)
42366 * pc_rtx: Regs and Memory. (line 366)
42367 * PCC_BITFIELD_TYPE_MATTERS: Storage Layout. (line 307)
42368 * PCC_STATIC_STRUCT_RETURN: Aggregate Return. (line 64)
42369 * PDImode: Machine Modes. (line 40)
42370 * peephole optimization, RTL representation: Side Effects. (line 238)
42371 * peephole optimizer definitions: Peephole Definitions.
42373 * per-function data: Per-Function Data. (line 6)
42374 * percent sign: Output Template. (line 6)
42375 * PHI nodes: SSA. (line 31)
42376 * phi_arg_d: GIMPLE_PHI. (line 28)
42377 * PHI_ARG_DEF: SSA. (line 71)
42378 * PHI_ARG_EDGE: SSA. (line 68)
42379 * PHI_ARG_ELT: SSA. (line 63)
42380 * PHI_NUM_ARGS: SSA. (line 59)
42381 * PHI_RESULT: SSA. (line 56)
42382 * PIC: PIC. (line 6)
42383 * PIC_OFFSET_TABLE_REG_CALL_CLOBBERED: PIC. (line 26)
42384 * PIC_OFFSET_TABLE_REGNUM: PIC. (line 16)
42385 * pipeline hazard recognizer: Processor pipeline description.
42387 * plus: Arithmetic. (line 14)
42388 * plus and attributes: Expressions. (line 64)
42389 * plus, canonicalization of: Insn Canonicalizations.
42391 * PLUS_EXPR: Expression trees. (line 6)
42392 * Pmode: Misc. (line 344)
42393 * pmode_register_operand: Machine-Independent Predicates.
42395 * pointer: Types. (line 6)
42396 * POINTER_PLUS_EXPR: Expression trees. (line 6)
42397 * POINTER_SIZE: Storage Layout. (line 83)
42398 * POINTER_TYPE: Types. (line 6)
42399 * POINTERS_EXTEND_UNSIGNED: Storage Layout. (line 89)
42400 * pop_operand: Machine-Independent Predicates.
42402 * popcount: Arithmetic. (line 224)
42403 * popcountM2 instruction pattern: Standard Names. (line 639)
42404 * portability: Portability. (line 6)
42405 * position independent code: PIC. (line 6)
42406 * post_dec: Incdec. (line 25)
42407 * post_inc: Incdec. (line 30)
42408 * post_modify: Incdec. (line 33)
42409 * POSTDECREMENT_EXPR: Expression trees. (line 6)
42410 * POSTINCREMENT_EXPR: Expression trees. (line 6)
42411 * POWI_MAX_MULTS: Misc. (line 830)
42412 * powM3 instruction pattern: Standard Names. (line 513)
42413 * pragma: Misc. (line 437)
42414 * pre_dec: Incdec. (line 8)
42415 * PRE_GCC3_DWARF_FRAME_REGISTERS: Frame Registers. (line 110)
42416 * pre_inc: Incdec. (line 22)
42417 * pre_modify: Incdec. (line 51)
42418 * PREDECREMENT_EXPR: Expression trees. (line 6)
42419 * predefined macros: Run-time Target. (line 6)
42420 * predicates: Predicates. (line 6)
42421 * predicates and machine modes: Predicates. (line 31)
42422 * predication: Conditional Execution.
42424 * predict.def: Profile information.
42426 * PREFERRED_DEBUGGING_TYPE: All Debuggers. (line 42)
42427 * PREFERRED_OUTPUT_RELOAD_CLASS: Register Classes. (line 231)
42428 * PREFERRED_RELOAD_CLASS: Register Classes. (line 196)
42429 * PREFERRED_STACK_BOUNDARY: Storage Layout. (line 158)
42430 * prefetch: Side Effects. (line 312)
42431 * prefetch instruction pattern: Standard Names. (line 1392)
42432 * PREINCREMENT_EXPR: Expression trees. (line 6)
42433 * presence_set: Processor pipeline description.
42435 * preserving SSA form: SSA. (line 76)
42436 * preserving virtual SSA form: SSA. (line 186)
42437 * prev_active_insn: define_peephole. (line 60)
42438 * prev_cc0_setter: Jump Patterns. (line 64)
42439 * PREV_INSN: Insns. (line 26)
42440 * PRINT_OPERAND: Instruction Output. (line 68)
42441 * PRINT_OPERAND_ADDRESS: Instruction Output. (line 96)
42442 * PRINT_OPERAND_PUNCT_VALID_P: Instruction Output. (line 89)
42443 * processor functional units: Processor pipeline description.
42445 * processor pipeline description: Processor pipeline description.
42447 * product: Arithmetic. (line 92)
42448 * profile feedback: Profile information.
42450 * profile representation: Profile information.
42452 * PROFILE_BEFORE_PROLOGUE: Profiling. (line 35)
42453 * PROFILE_HOOK: Profiling. (line 23)
42454 * profiling, code generation: Profiling. (line 6)
42455 * program counter: Regs and Memory. (line 362)
42456 * prologue: Function Entry. (line 6)
42457 * prologue instruction pattern: Standard Names. (line 1338)
42458 * PROMOTE_FUNCTION_MODE: Storage Layout. (line 123)
42459 * PROMOTE_MODE: Storage Layout. (line 100)
42460 * pseudo registers: Regs and Memory. (line 9)
42461 * PSImode: Machine Modes. (line 32)
42462 * PTRDIFF_TYPE: Type Layout. (line 184)
42463 * PTRMEM_CST: Expression trees. (line 6)
42464 * PTRMEM_CST_CLASS: Expression trees. (line 6)
42465 * PTRMEM_CST_MEMBER: Expression trees. (line 6)
42466 * purge_dead_edges <1>: Edges. (line 104)
42467 * purge_dead_edges: Maintaining the CFG.
42469 * push address instruction: Simple Constraints. (line 154)
42470 * PUSH_ARGS: Stack Arguments. (line 18)
42471 * PUSH_ARGS_REVERSED: Stack Arguments. (line 26)
42472 * push_operand: Machine-Independent Predicates.
42474 * push_reload: Addressing Modes. (line 169)
42475 * PUSH_ROUNDING: Stack Arguments. (line 32)
42476 * pushM1 instruction pattern: Standard Names. (line 209)
42477 * PUT_CODE: RTL Objects. (line 47)
42478 * PUT_MODE: Machine Modes. (line 283)
42479 * PUT_REG_NOTE_KIND: Insns. (line 309)
42480 * PUT_SDB_: SDB and DWARF. (line 63)
42481 * QCmode: Machine Modes. (line 197)
42482 * QFmode: Machine Modes. (line 54)
42483 * QImode: Machine Modes. (line 25)
42484 * QImode, in insn: Insns. (line 231)
42485 * QQmode: Machine Modes. (line 103)
42486 * qualified type: Types. (line 6)
42487 * querying function unit reservations: Processor pipeline description.
42489 * question mark: Multi-Alternative. (line 41)
42490 * quotient: Arithmetic. (line 111)
42491 * r in constraint: Simple Constraints. (line 56)
42492 * RANGE_TEST_NON_SHORT_CIRCUIT: Costs. (line 204)
42493 * RDIV_EXPR: Expression trees. (line 6)
42494 * READONLY_DATA_SECTION_ASM_OP: Sections. (line 63)
42495 * real operands: SSA Operands. (line 6)
42496 * REAL_ARITHMETIC: Floating Point. (line 66)
42497 * REAL_CST: Expression trees. (line 6)
42498 * REAL_LIBGCC_SPEC: Driver. (line 187)
42499 * REAL_NM_FILE_NAME: Macros for Initialization.
42501 * REAL_TYPE: Types. (line 6)
42502 * REAL_VALUE_ABS: Floating Point. (line 82)
42503 * REAL_VALUE_ATOF: Floating Point. (line 50)
42504 * REAL_VALUE_FIX: Floating Point. (line 41)
42505 * REAL_VALUE_FROM_INT: Floating Point. (line 99)
42506 * REAL_VALUE_ISINF: Floating Point. (line 59)
42507 * REAL_VALUE_ISNAN: Floating Point. (line 62)
42508 * REAL_VALUE_NEGATE: Floating Point. (line 79)
42509 * REAL_VALUE_NEGATIVE: Floating Point. (line 56)
42510 * REAL_VALUE_TO_INT: Floating Point. (line 93)
42511 * REAL_VALUE_TO_TARGET_DECIMAL128: Data Output. (line 144)
42512 * REAL_VALUE_TO_TARGET_DECIMAL32: Data Output. (line 142)
42513 * REAL_VALUE_TO_TARGET_DECIMAL64: Data Output. (line 143)
42514 * REAL_VALUE_TO_TARGET_DOUBLE: Data Output. (line 140)
42515 * REAL_VALUE_TO_TARGET_LONG_DOUBLE: Data Output. (line 141)
42516 * REAL_VALUE_TO_TARGET_SINGLE: Data Output. (line 139)
42517 * REAL_VALUE_TRUNCATE: Floating Point. (line 86)
42518 * REAL_VALUE_TYPE: Floating Point. (line 26)
42519 * REAL_VALUE_UNSIGNED_FIX: Floating Point. (line 45)
42520 * REAL_VALUES_EQUAL: Floating Point. (line 32)
42521 * REAL_VALUES_LESS: Floating Point. (line 38)
42522 * REALPART_EXPR: Expression trees. (line 6)
42523 * recog_data.operand: Instruction Output. (line 39)
42524 * recognizing insns: RTL Template. (line 6)
42525 * RECORD_TYPE <1>: Types. (line 6)
42526 * RECORD_TYPE: Classes. (line 6)
42527 * redirect_edge_and_branch: Profile information.
42529 * redirect_edge_and_branch, redirect_jump: Maintaining the CFG.
42531 * reduc_smax_M instruction pattern: Standard Names. (line 240)
42532 * reduc_smin_M instruction pattern: Standard Names. (line 240)
42533 * reduc_splus_M instruction pattern: Standard Names. (line 252)
42534 * reduc_umax_M instruction pattern: Standard Names. (line 246)
42535 * reduc_umin_M instruction pattern: Standard Names. (line 246)
42536 * reduc_uplus_M instruction pattern: Standard Names. (line 258)
42537 * reference: Types. (line 6)
42538 * REFERENCE_TYPE: Types. (line 6)
42539 * reg: Regs and Memory. (line 9)
42540 * reg and /f: Flags. (line 112)
42541 * reg and /i: Flags. (line 107)
42542 * reg and /v: Flags. (line 116)
42543 * reg, RTL sharing: Sharing. (line 17)
42544 * REG_ALLOC_ORDER: Allocation Order. (line 9)
42545 * REG_BR_PRED: Insns. (line 491)
42546 * REG_BR_PROB: Insns. (line 485)
42547 * REG_BR_PROB_BASE, BB_FREQ_BASE, count: Profile information.
42549 * REG_BR_PROB_BASE, EDGE_FREQUENCY: Profile information.
42551 * REG_CC_SETTER: Insns. (line 456)
42552 * REG_CC_USER: Insns. (line 456)
42553 * reg_class_contents: Register Basics. (line 59)
42554 * REG_CLASS_CONTENTS: Register Classes. (line 86)
42555 * REG_CLASS_FROM_CONSTRAINT: Old Constraints. (line 35)
42556 * REG_CLASS_FROM_LETTER: Old Constraints. (line 27)
42557 * REG_CLASS_NAMES: Register Classes. (line 81)
42558 * REG_CROSSING_JUMP: Insns. (line 368)
42559 * REG_DEAD: Insns. (line 320)
42560 * REG_DEAD, REG_UNUSED: Liveness information.
42562 * REG_DEP_ANTI: Insns. (line 478)
42563 * REG_DEP_OUTPUT: Insns. (line 474)
42564 * REG_DEP_TRUE: Insns. (line 471)
42565 * REG_EH_REGION, EDGE_ABNORMAL_CALL: Edges. (line 110)
42566 * REG_EQUAL: Insns. (line 384)
42567 * REG_EQUIV: Insns. (line 384)
42568 * REG_EXPR: Special Accessors. (line 46)
42569 * REG_FRAME_RELATED_EXPR: Insns. (line 497)
42570 * REG_FUNCTION_VALUE_P: Flags. (line 107)
42571 * REG_INC: Insns. (line 336)
42572 * reg_label and /v: Flags. (line 65)
42573 * REG_LABEL_OPERAND: Insns. (line 350)
42574 * REG_LABEL_TARGET: Insns. (line 359)
42575 * reg_names <1>: Instruction Output. (line 80)
42576 * reg_names: Register Basics. (line 59)
42577 * REG_NONNEG: Insns. (line 342)
42578 * REG_NOTE_KIND: Insns. (line 309)
42579 * REG_NOTES: Insns. (line 283)
42580 * REG_OFFSET: Special Accessors. (line 50)
42581 * REG_OK_STRICT: Addressing Modes. (line 67)
42582 * REG_PARM_STACK_SPACE: Stack Arguments. (line 56)
42583 * REG_PARM_STACK_SPACE, and FUNCTION_ARG: Register Arguments.
42585 * REG_POINTER: Flags. (line 112)
42586 * REG_SETJMP: Insns. (line 378)
42587 * REG_UNUSED: Insns. (line 329)
42588 * REG_USERVAR_P: Flags. (line 116)
42589 * regclass_for_constraint: C Constraint Interface.
42591 * register allocation order: Allocation Order. (line 6)
42592 * register class definitions: Register Classes. (line 6)
42593 * register class preference constraints: Class Preferences. (line 6)
42594 * register pairs: Values in Registers.
42596 * Register Transfer Language (RTL): RTL. (line 6)
42597 * register usage: Registers. (line 6)
42598 * REGISTER_MOVE_COST: Costs. (line 10)
42599 * REGISTER_NAMES: Instruction Output. (line 9)
42600 * register_operand: Machine-Independent Predicates.
42602 * REGISTER_PREFIX: Instruction Output. (line 124)
42603 * REGISTER_TARGET_PRAGMAS: Misc. (line 382)
42604 * registers arguments: Register Arguments. (line 6)
42605 * registers in constraints: Simple Constraints. (line 56)
42606 * REGMODE_NATURAL_SIZE: Values in Registers.
42608 * REGNO_MODE_CODE_OK_FOR_BASE_P: Register Classes. (line 170)
42609 * REGNO_MODE_OK_FOR_BASE_P: Register Classes. (line 146)
42610 * REGNO_MODE_OK_FOR_REG_BASE_P: Register Classes. (line 157)
42611 * REGNO_OK_FOR_BASE_P: Register Classes. (line 140)
42612 * REGNO_OK_FOR_INDEX_P: Register Classes. (line 181)
42613 * REGNO_REG_CLASS: Register Classes. (line 101)
42614 * regs_ever_live: Function Entry. (line 21)
42615 * regular expressions: Processor pipeline description.
42617 * relative costs: Costs. (line 6)
42618 * RELATIVE_PREFIX_NOT_LINKDIR: Driver. (line 325)
42619 * reload_completed: Standard Names. (line 1040)
42620 * reload_in instruction pattern: Standard Names. (line 99)
42621 * reload_in_progress: Standard Names. (line 57)
42622 * reload_out instruction pattern: Standard Names. (line 99)
42623 * reloading: RTL passes. (line 191)
42624 * remainder: Arithmetic. (line 131)
42625 * remainderM3 instruction pattern: Standard Names. (line 472)
42626 * reorder: GTY Options. (line 210)
42627 * representation of RTL: RTL. (line 6)
42628 * reservation delays: Processor pipeline description.
42630 * rest_of_decl_compilation: Parsing pass. (line 52)
42631 * rest_of_type_compilation: Parsing pass. (line 52)
42632 * restore_stack_block instruction pattern: Standard Names. (line 1174)
42633 * restore_stack_function instruction pattern: Standard Names.
42635 * restore_stack_nonlocal instruction pattern: Standard Names.
42637 * RESULT_DECL: Declarations. (line 6)
42638 * return: Side Effects. (line 72)
42639 * return instruction pattern: Standard Names. (line 1027)
42640 * return values in registers: Scalar Return. (line 6)
42641 * RETURN_ADDR_IN_PREVIOUS_FRAME: Frame Layout. (line 135)
42642 * RETURN_ADDR_OFFSET: Exception Handling. (line 60)
42643 * RETURN_ADDR_RTX: Frame Layout. (line 124)
42644 * RETURN_ADDRESS_POINTER_REGNUM: Frame Registers. (line 51)
42645 * RETURN_EXPR: Function Bodies. (line 6)
42646 * RETURN_POPS_ARGS: Stack Arguments. (line 90)
42647 * RETURN_STMT: Function Bodies. (line 6)
42648 * return_val: Flags. (line 294)
42649 * return_val, in call_insn: Flags. (line 24)
42650 * return_val, in mem: Flags. (line 85)
42651 * return_val, in reg: Flags. (line 107)
42652 * return_val, in symbol_ref: Flags. (line 220)
42653 * returning aggregate values: Aggregate Return. (line 6)
42654 * returning structures and unions: Interface. (line 10)
42655 * reverse probability: Profile information.
42657 * REVERSE_CONDEXEC_PREDICATES_P: Condition Code. (line 129)
42658 * REVERSE_CONDITION: Condition Code. (line 116)
42659 * REVERSIBLE_CC_MODE: Condition Code. (line 102)
42660 * right rotate: Arithmetic. (line 190)
42661 * right shift: Arithmetic. (line 185)
42662 * rintM2 instruction pattern: Standard Names. (line 572)
42663 * RISC: Processor pipeline description.
42665 * roots, marking: GGC Roots. (line 6)
42666 * rotate: Arithmetic. (line 190)
42667 * rotatert: Arithmetic. (line 190)
42668 * rotlM3 instruction pattern: Standard Names. (line 441)
42669 * rotrM3 instruction pattern: Standard Names. (line 441)
42670 * ROUND_DIV_EXPR: Expression trees. (line 6)
42671 * ROUND_MOD_EXPR: Expression trees. (line 6)
42672 * ROUND_TOWARDS_ZERO: Storage Layout. (line 453)
42673 * ROUND_TYPE_ALIGN: Storage Layout. (line 404)
42674 * roundM2 instruction pattern: Standard Names. (line 548)
42675 * RSHIFT_EXPR: Expression trees. (line 6)
42676 * RTL addition: Arithmetic. (line 14)
42677 * RTL addition with signed saturation: Arithmetic. (line 14)
42678 * RTL addition with unsigned saturation: Arithmetic. (line 14)
42679 * RTL classes: RTL Classes. (line 6)
42680 * RTL comparison: Arithmetic. (line 43)
42681 * RTL comparison operations: Comparisons. (line 6)
42682 * RTL constant expression types: Constants. (line 6)
42683 * RTL constants: Constants. (line 6)
42684 * RTL declarations: RTL Declarations. (line 6)
42685 * RTL difference: Arithmetic. (line 36)
42686 * RTL expression: RTL Objects. (line 6)
42687 * RTL expressions for arithmetic: Arithmetic. (line 6)
42688 * RTL format: RTL Classes. (line 71)
42689 * RTL format characters: RTL Classes. (line 76)
42690 * RTL function-call insns: Calls. (line 6)
42691 * RTL insn template: RTL Template. (line 6)
42692 * RTL integers: RTL Objects. (line 6)
42693 * RTL memory expressions: Regs and Memory. (line 6)
42694 * RTL object types: RTL Objects. (line 6)
42695 * RTL postdecrement: Incdec. (line 6)
42696 * RTL postincrement: Incdec. (line 6)
42697 * RTL predecrement: Incdec. (line 6)
42698 * RTL preincrement: Incdec. (line 6)
42699 * RTL register expressions: Regs and Memory. (line 6)
42700 * RTL representation: RTL. (line 6)
42701 * RTL side effect expressions: Side Effects. (line 6)
42702 * RTL strings: RTL Objects. (line 6)
42703 * RTL structure sharing assumptions: Sharing. (line 6)
42704 * RTL subtraction: Arithmetic. (line 36)
42705 * RTL subtraction with signed saturation: Arithmetic. (line 36)
42706 * RTL subtraction with unsigned saturation: Arithmetic. (line 36)
42707 * RTL sum: Arithmetic. (line 14)
42708 * RTL vectors: RTL Objects. (line 6)
42709 * RTL_CONST_CALL_P: Flags. (line 19)
42710 * RTL_CONST_OR_PURE_CALL_P: Flags. (line 29)
42711 * RTL_LOOPING_CONST_OR_PURE_CALL_P: Flags. (line 33)
42712 * RTL_PURE_CALL_P: Flags. (line 24)
42713 * RTX (See RTL): RTL Objects. (line 6)
42714 * RTX codes, classes of: RTL Classes. (line 6)
42715 * RTX_FRAME_RELATED_P: Flags. (line 125)
42716 * run-time conventions: Interface. (line 6)
42717 * run-time target specification: Run-time Target. (line 6)
42718 * s in constraint: Simple Constraints. (line 92)
42719 * same_type_p: Types. (line 148)
42720 * SAmode: Machine Modes. (line 148)
42721 * sat_fract: Conversions. (line 90)
42722 * satfractMN2 instruction pattern: Standard Names. (line 843)
42723 * satfractunsMN2 instruction pattern: Standard Names. (line 856)
42724 * satisfies_constraint_: C Constraint Interface.
42726 * SAVE_EXPR: Expression trees. (line 6)
42727 * save_stack_block instruction pattern: Standard Names. (line 1174)
42728 * save_stack_function instruction pattern: Standard Names. (line 1174)
42729 * save_stack_nonlocal instruction pattern: Standard Names. (line 1174)
42730 * SBSS_SECTION_ASM_OP: Sections. (line 77)
42731 * Scalar evolutions: Scalar evolutions. (line 6)
42732 * scalars, returned as values: Scalar Return. (line 6)
42733 * SCHED_GROUP_P: Flags. (line 166)
42734 * SCmode: Machine Modes. (line 197)
42735 * sCOND instruction pattern: Standard Names. (line 911)
42736 * scratch: Regs and Memory. (line 298)
42737 * scratch operands: Regs and Memory. (line 298)
42738 * scratch, RTL sharing: Sharing. (line 35)
42739 * scratch_operand: Machine-Independent Predicates.
42741 * SDATA_SECTION_ASM_OP: Sections. (line 58)
42742 * SDB_ALLOW_FORWARD_REFERENCES: SDB and DWARF. (line 81)
42743 * SDB_ALLOW_UNKNOWN_REFERENCES: SDB and DWARF. (line 76)
42744 * SDB_DEBUGGING_INFO: SDB and DWARF. (line 9)
42745 * SDB_DELIM: SDB and DWARF. (line 69)
42746 * SDB_OUTPUT_SOURCE_LINE: SDB and DWARF. (line 86)
42747 * SDmode: Machine Modes. (line 85)
42748 * sdot_prodM instruction pattern: Standard Names. (line 264)
42749 * search options: Including Patterns. (line 44)
42750 * SECONDARY_INPUT_RELOAD_CLASS: Register Classes. (line 335)
42751 * SECONDARY_MEMORY_NEEDED: Register Classes. (line 391)
42752 * SECONDARY_MEMORY_NEEDED_MODE: Register Classes. (line 410)
42753 * SECONDARY_MEMORY_NEEDED_RTX: Register Classes. (line 401)
42754 * SECONDARY_OUTPUT_RELOAD_CLASS: Register Classes. (line 336)
42755 * SECONDARY_RELOAD_CLASS: Register Classes. (line 334)
42756 * SELECT_CC_MODE: Condition Code. (line 68)
42757 * sequence: Side Effects. (line 254)
42758 * Sequence iterators: Sequence iterators. (line 6)
42759 * set: Side Effects. (line 15)
42760 * set and /f: Flags. (line 125)
42761 * SET_ASM_OP: Label Output. (line 389)
42762 * set_attr: Tagging Insns. (line 31)
42763 * set_attr_alternative: Tagging Insns. (line 49)
42764 * set_bb_seq: GIMPLE sequences. (line 76)
42765 * SET_BY_PIECES_P: Costs. (line 145)
42766 * SET_DEST: Side Effects. (line 69)
42767 * SET_IS_RETURN_P: Flags. (line 175)
42768 * SET_LABEL_KIND: Insns. (line 140)
42769 * set_optab_libfunc: Library Calls. (line 15)
42770 * SET_RATIO: Costs. (line 136)
42771 * SET_SRC: Side Effects. (line 69)
42772 * SET_TYPE_STRUCTURAL_EQUALITY: Types. (line 143)
42773 * setmemM instruction pattern: Standard Names. (line 715)
42774 * SETUP_FRAME_ADDRESSES: Frame Layout. (line 102)
42775 * SF_SIZE: Type Layout. (line 129)
42776 * SFmode: Machine Modes. (line 66)
42777 * sharing of RTL components: Sharing. (line 6)
42778 * shift: Arithmetic. (line 168)
42779 * SHIFT_COUNT_TRUNCATED: Misc. (line 127)
42780 * SHLIB_SUFFIX: Macros for Initialization.
42782 * SHORT_ACCUM_TYPE_SIZE: Type Layout. (line 83)
42783 * SHORT_FRACT_TYPE_SIZE: Type Layout. (line 63)
42784 * SHORT_IMMEDIATES_SIGN_EXTEND: Misc. (line 96)
42785 * SHORT_TYPE_SIZE: Type Layout. (line 16)
42786 * sibcall_epilogue instruction pattern: Standard Names. (line 1364)
42787 * sibling call: Edges. (line 122)
42788 * SIBLING_CALL_P: Flags. (line 179)
42789 * sign_extend: Conversions. (line 23)
42790 * sign_extract: Bit-Fields. (line 8)
42791 * sign_extract, canonicalization of: Insn Canonicalizations.
42793 * signed division: Arithmetic. (line 111)
42794 * signed division with signed saturation: Arithmetic. (line 111)
42795 * signed maximum: Arithmetic. (line 136)
42796 * signed minimum: Arithmetic. (line 136)
42797 * SImode: Machine Modes. (line 37)
42798 * simple constraints: Simple Constraints. (line 6)
42799 * sincos math function, implicit usage: Library Calls. (line 84)
42800 * sinM2 instruction pattern: Standard Names. (line 489)
42801 * SIZE_ASM_OP: Label Output. (line 23)
42802 * SIZE_TYPE: Type Layout. (line 168)
42803 * skip: GTY Options. (line 77)
42804 * SLOW_BYTE_ACCESS: Costs. (line 66)
42805 * SLOW_UNALIGNED_ACCESS: Costs. (line 81)
42806 * SMALL_REGISTER_CLASSES: Register Classes. (line 433)
42807 * smax: Arithmetic. (line 136)
42808 * smin: Arithmetic. (line 136)
42809 * sms, swing, software pipelining: RTL passes. (line 140)
42810 * smulM3_highpart instruction pattern: Standard Names. (line 356)
42811 * soft float library: Soft float library routines.
42813 * special: GTY Options. (line 230)
42814 * special predicates: Predicates. (line 31)
42815 * SPECS: Target Fragment. (line 108)
42816 * speed of instructions: Costs. (line 6)
42817 * split_block: Maintaining the CFG.
42819 * splitting instructions: Insn Splitting. (line 6)
42820 * SQmode: Machine Modes. (line 111)
42821 * sqrt: Arithmetic. (line 198)
42822 * sqrtM2 instruction pattern: Standard Names. (line 455)
42823 * square root: Arithmetic. (line 198)
42824 * ss_ashift: Arithmetic. (line 168)
42825 * ss_div: Arithmetic. (line 111)
42826 * ss_minus: Arithmetic. (line 36)
42827 * ss_mult: Arithmetic. (line 92)
42828 * ss_neg: Arithmetic. (line 81)
42829 * ss_plus: Arithmetic. (line 14)
42830 * ss_truncate: Conversions. (line 43)
42831 * SSA: SSA. (line 6)
42832 * SSA_NAME_DEF_STMT: SSA. (line 221)
42833 * SSA_NAME_VERSION: SSA. (line 226)
42834 * ssaddM3 instruction pattern: Standard Names. (line 222)
42835 * ssashlM3 instruction pattern: Standard Names. (line 431)
42836 * ssdivM3 instruction pattern: Standard Names. (line 222)
42837 * ssmaddMN4 instruction pattern: Standard Names. (line 379)
42838 * ssmsubMN4 instruction pattern: Standard Names. (line 403)
42839 * ssmulM3 instruction pattern: Standard Names. (line 222)
42840 * ssnegM2 instruction pattern: Standard Names. (line 449)
42841 * sssubM3 instruction pattern: Standard Names. (line 222)
42842 * ssum_widenM3 instruction pattern: Standard Names. (line 274)
42843 * stack arguments: Stack Arguments. (line 6)
42844 * stack frame layout: Frame Layout. (line 6)
42845 * stack smashing protection: Stack Smashing Protection.
42847 * STACK_ALIGNMENT_NEEDED: Frame Layout. (line 48)
42848 * STACK_BOUNDARY: Storage Layout. (line 150)
42849 * STACK_CHECK_BUILTIN: Stack Checking. (line 32)
42850 * STACK_CHECK_FIXED_FRAME_SIZE: Stack Checking. (line 77)
42851 * STACK_CHECK_MAX_FRAME_SIZE: Stack Checking. (line 68)
42852 * STACK_CHECK_MAX_VAR_SIZE: Stack Checking. (line 84)
42853 * STACK_CHECK_PROBE_INTERVAL: Stack Checking. (line 46)
42854 * STACK_CHECK_PROBE_LOAD: Stack Checking. (line 53)
42855 * STACK_CHECK_PROTECT: Stack Checking. (line 59)
42856 * STACK_CHECK_STATIC_BUILTIN: Stack Checking. (line 39)
42857 * STACK_DYNAMIC_OFFSET: Frame Layout. (line 75)
42858 * STACK_DYNAMIC_OFFSET and virtual registers: Regs and Memory.
42860 * STACK_GROWS_DOWNWARD: Frame Layout. (line 9)
42861 * STACK_PARMS_IN_REG_PARM_AREA: Stack Arguments. (line 81)
42862 * STACK_POINTER_OFFSET: Frame Layout. (line 58)
42863 * STACK_POINTER_OFFSET and virtual registers: Regs and Memory.
42865 * STACK_POINTER_REGNUM: Frame Registers. (line 9)
42866 * STACK_POINTER_REGNUM and virtual registers: Regs and Memory.
42868 * stack_pointer_rtx: Frame Registers. (line 85)
42869 * stack_protect_set instruction pattern: Standard Names. (line 1536)
42870 * stack_protect_test instruction pattern: Standard Names. (line 1546)
42871 * STACK_PUSH_CODE: Frame Layout. (line 17)
42872 * STACK_REGS: Stack Registers. (line 20)
42873 * STACK_SAVEAREA_MODE: Storage Layout. (line 420)
42874 * STACK_SIZE_MODE: Storage Layout. (line 432)
42875 * STACK_SLOT_ALIGNMENT: Storage Layout. (line 265)
42876 * standard pattern names: Standard Names. (line 6)
42877 * STANDARD_INCLUDE_COMPONENT: Driver. (line 425)
42878 * STANDARD_INCLUDE_DIR: Driver. (line 417)
42879 * STANDARD_STARTFILE_PREFIX: Driver. (line 337)
42880 * STANDARD_STARTFILE_PREFIX_1: Driver. (line 344)
42881 * STANDARD_STARTFILE_PREFIX_2: Driver. (line 351)
42882 * STARTFILE_SPEC: Driver. (line 210)
42883 * STARTING_FRAME_OFFSET: Frame Layout. (line 39)
42884 * STARTING_FRAME_OFFSET and virtual registers: Regs and Memory.
42886 * Statement and operand traversals: Statement and operand traversals.
42888 * Statement Sequences: Statement Sequences.
42890 * statements: Function Bodies. (line 6)
42891 * Statements: Statements. (line 6)
42892 * Static profile estimation: Profile information.
42894 * static single assignment: SSA. (line 6)
42895 * STATIC_CHAIN: Frame Registers. (line 77)
42896 * STATIC_CHAIN_INCOMING: Frame Registers. (line 78)
42897 * STATIC_CHAIN_INCOMING_REGNUM: Frame Registers. (line 64)
42898 * STATIC_CHAIN_REGNUM: Frame Registers. (line 63)
42899 * stdarg.h and register arguments: Register Arguments. (line 47)
42900 * STDC_0_IN_SYSTEM_HEADERS: Misc. (line 365)
42901 * STMT_EXPR: Expression trees. (line 6)
42902 * STMT_IS_FULL_EXPR_P: Function Bodies. (line 22)
42903 * storage layout: Storage Layout. (line 6)
42904 * STORE_BY_PIECES_P: Costs. (line 152)
42905 * STORE_FLAG_VALUE: Misc. (line 216)
42906 * store_multiple instruction pattern: Standard Names. (line 160)
42907 * strcpy: Storage Layout. (line 235)
42908 * STRICT_ALIGNMENT: Storage Layout. (line 302)
42909 * strict_low_part: RTL Declarations. (line 9)
42910 * strict_memory_address_p: Addressing Modes. (line 179)
42911 * STRING_CST: Expression trees. (line 6)
42912 * STRING_POOL_ADDRESS_P: Flags. (line 183)
42913 * strlenM instruction pattern: Standard Names. (line 778)
42914 * structure value address: Aggregate Return. (line 6)
42915 * STRUCTURE_SIZE_BOUNDARY: Storage Layout. (line 294)
42916 * structures, returning: Interface. (line 10)
42917 * subM3 instruction pattern: Standard Names. (line 222)
42918 * SUBOBJECT: Function Bodies. (line 6)
42919 * SUBOBJECT_CLEANUP: Function Bodies. (line 6)
42920 * subreg: Regs and Memory. (line 97)
42921 * subreg and /s: Flags. (line 205)
42922 * subreg and /u: Flags. (line 198)
42923 * subreg and /u and /v: Flags. (line 188)
42924 * subreg, in strict_low_part: RTL Declarations. (line 9)
42925 * SUBREG_BYTE: Regs and Memory. (line 289)
42926 * SUBREG_PROMOTED_UNSIGNED_P: Flags. (line 188)
42927 * SUBREG_PROMOTED_UNSIGNED_SET: Flags. (line 198)
42928 * SUBREG_PROMOTED_VAR_P: Flags. (line 205)
42929 * SUBREG_REG: Regs and Memory. (line 289)
42930 * SUCCESS_EXIT_CODE: Host Misc. (line 12)
42931 * SUPPORTS_INIT_PRIORITY: Macros for Initialization.
42933 * SUPPORTS_ONE_ONLY: Label Output. (line 227)
42934 * SUPPORTS_WEAK: Label Output. (line 208)
42935 * SWITCH_BODY: Function Bodies. (line 6)
42936 * SWITCH_COND: Function Bodies. (line 6)
42937 * SWITCH_CURTAILS_COMPILATION: Driver. (line 33)
42938 * SWITCH_STMT: Function Bodies. (line 6)
42939 * SWITCH_TAKES_ARG: Driver. (line 9)
42940 * SWITCHES_NEED_SPACES: Driver. (line 47)
42941 * SYMBOL_FLAG_ANCHOR: Special Accessors. (line 106)
42942 * SYMBOL_FLAG_EXTERNAL: Special Accessors. (line 88)
42943 * SYMBOL_FLAG_FUNCTION: Special Accessors. (line 81)
42944 * SYMBOL_FLAG_HAS_BLOCK_INFO: Special Accessors. (line 102)
42945 * SYMBOL_FLAG_LOCAL: Special Accessors. (line 84)
42946 * SYMBOL_FLAG_SMALL: Special Accessors. (line 93)
42947 * SYMBOL_FLAG_TLS_SHIFT: Special Accessors. (line 97)
42948 * symbol_ref: Constants. (line 76)
42949 * symbol_ref and /f: Flags. (line 183)
42950 * symbol_ref and /i: Flags. (line 220)
42951 * symbol_ref and /u: Flags. (line 10)
42952 * symbol_ref and /v: Flags. (line 224)
42953 * symbol_ref, RTL sharing: Sharing. (line 20)
42954 * SYMBOL_REF_ANCHOR_P: Special Accessors. (line 106)
42955 * SYMBOL_REF_BLOCK: Special Accessors. (line 119)
42956 * SYMBOL_REF_BLOCK_OFFSET: Special Accessors. (line 124)
42957 * SYMBOL_REF_CONSTANT: Special Accessors. (line 67)
42958 * SYMBOL_REF_DATA: Special Accessors. (line 71)
42959 * SYMBOL_REF_DECL: Special Accessors. (line 55)
42960 * SYMBOL_REF_EXTERNAL_P: Special Accessors. (line 88)
42961 * SYMBOL_REF_FLAG: Flags. (line 224)
42962 * SYMBOL_REF_FLAG, in TARGET_ENCODE_SECTION_INFO: Sections. (line 259)
42963 * SYMBOL_REF_FLAGS: Special Accessors. (line 75)
42964 * SYMBOL_REF_FUNCTION_P: Special Accessors. (line 81)
42965 * SYMBOL_REF_HAS_BLOCK_INFO_P: Special Accessors. (line 102)
42966 * SYMBOL_REF_LOCAL_P: Special Accessors. (line 84)
42967 * SYMBOL_REF_SMALL_P: Special Accessors. (line 93)
42968 * SYMBOL_REF_TLS_MODEL: Special Accessors. (line 97)
42969 * SYMBOL_REF_USED: Flags. (line 215)
42970 * SYMBOL_REF_WEAK: Flags. (line 220)
42971 * symbolic label: Sharing. (line 20)
42972 * sync_addMODE instruction pattern: Standard Names. (line 1450)
42973 * sync_andMODE instruction pattern: Standard Names. (line 1450)
42974 * sync_compare_and_swap_ccMODE instruction pattern: Standard Names.
42976 * sync_compare_and_swapMODE instruction pattern: Standard Names.
42978 * sync_iorMODE instruction pattern: Standard Names. (line 1450)
42979 * sync_lock_releaseMODE instruction pattern: Standard Names. (line 1517)
42980 * sync_lock_test_and_setMODE instruction pattern: Standard Names.
42982 * sync_nandMODE instruction pattern: Standard Names. (line 1450)
42983 * sync_new_addMODE instruction pattern: Standard Names. (line 1484)
42984 * sync_new_andMODE instruction pattern: Standard Names. (line 1484)
42985 * sync_new_iorMODE instruction pattern: Standard Names. (line 1484)
42986 * sync_new_nandMODE instruction pattern: Standard Names. (line 1484)
42987 * sync_new_subMODE instruction pattern: Standard Names. (line 1484)
42988 * sync_new_xorMODE instruction pattern: Standard Names. (line 1484)
42989 * sync_old_addMODE instruction pattern: Standard Names. (line 1467)
42990 * sync_old_andMODE instruction pattern: Standard Names. (line 1467)
42991 * sync_old_iorMODE instruction pattern: Standard Names. (line 1467)
42992 * sync_old_nandMODE instruction pattern: Standard Names. (line 1467)
42993 * sync_old_subMODE instruction pattern: Standard Names. (line 1467)
42994 * sync_old_xorMODE instruction pattern: Standard Names. (line 1467)
42995 * sync_subMODE instruction pattern: Standard Names. (line 1450)
42996 * sync_xorMODE instruction pattern: Standard Names. (line 1450)
42997 * SYSROOT_HEADERS_SUFFIX_SPEC: Driver. (line 239)
42998 * SYSROOT_SUFFIX_SPEC: Driver. (line 234)
42999 * SYSTEM_INCLUDE_DIR: Driver. (line 408)
43000 * t-TARGET: Target Fragment. (line 6)
43001 * table jump: Basic Blocks. (line 57)
43002 * tablejump instruction pattern: Standard Names. (line 1102)
43003 * tag: GTY Options. (line 82)
43004 * tagging insns: Tagging Insns. (line 6)
43005 * tail calls: Tail Calls. (line 6)
43006 * TAmode: Machine Modes. (line 156)
43007 * target attributes: Target Attributes. (line 6)
43008 * target description macros: Target Macros. (line 6)
43009 * target functions: Target Structure. (line 6)
43010 * target hooks: Target Structure. (line 6)
43011 * target makefile fragment: Target Fragment. (line 6)
43012 * target specifications: Run-time Target. (line 6)
43013 * TARGET_ADDRESS_COST: Costs. (line 236)
43014 * TARGET_ALIGN_ANON_BITFIELD: Storage Layout. (line 379)
43015 * TARGET_ALLOCATE_INITIAL_VALUE: Misc. (line 720)
43016 * TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS: Misc. (line 953)
43017 * TARGET_ARG_PARTIAL_BYTES: Register Arguments. (line 83)
43018 * TARGET_ARM_EABI_UNWINDER: Exception Region Output.
43020 * TARGET_ASM_ALIGNED_DI_OP: Data Output. (line 10)
43021 * TARGET_ASM_ALIGNED_HI_OP: Data Output. (line 8)
43022 * TARGET_ASM_ALIGNED_SI_OP: Data Output. (line 9)
43023 * TARGET_ASM_ALIGNED_TI_OP: Data Output. (line 11)
43024 * TARGET_ASM_ASSEMBLE_VISIBILITY: Label Output. (line 239)
43025 * TARGET_ASM_BYTE_OP: Data Output. (line 7)
43026 * TARGET_ASM_CAN_OUTPUT_MI_THUNK: Function Entry. (line 237)
43027 * TARGET_ASM_CLOSE_PAREN: Data Output. (line 130)
43028 * TARGET_ASM_CONSTRUCTOR: Macros for Initialization.
43030 * TARGET_ASM_DESTRUCTOR: Macros for Initialization.
43032 * TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL: Dispatch Tables. (line 74)
43033 * TARGET_ASM_EMIT_UNWIND_LABEL: Dispatch Tables. (line 63)
43034 * TARGET_ASM_EXTERNAL_LIBCALL: Label Output. (line 274)
43035 * TARGET_ASM_FILE_END: File Framework. (line 37)
43036 * TARGET_ASM_FILE_START: File Framework. (line 9)
43037 * TARGET_ASM_FILE_START_APP_OFF: File Framework. (line 17)
43038 * TARGET_ASM_FILE_START_FILE_DIRECTIVE: File Framework. (line 31)
43039 * TARGET_ASM_FUNCTION_BEGIN_EPILOGUE: Function Entry. (line 61)
43040 * TARGET_ASM_FUNCTION_END_PROLOGUE: Function Entry. (line 55)
43041 * TARGET_ASM_FUNCTION_EPILOGUE: Function Entry. (line 68)
43042 * TARGET_ASM_FUNCTION_EPILOGUE and trampolines: Trampolines. (line 70)
43043 * TARGET_ASM_FUNCTION_PROLOGUE: Function Entry. (line 11)
43044 * TARGET_ASM_FUNCTION_PROLOGUE and trampolines: Trampolines. (line 70)
43045 * TARGET_ASM_FUNCTION_RODATA_SECTION: Sections. (line 206)
43046 * TARGET_ASM_GLOBALIZE_DECL_NAME: Label Output. (line 174)
43047 * TARGET_ASM_GLOBALIZE_LABEL: Label Output. (line 165)
43048 * TARGET_ASM_INIT_SECTIONS: Sections. (line 151)
43049 * TARGET_ASM_INTEGER: Data Output. (line 27)
43050 * TARGET_ASM_INTERNAL_LABEL: Label Output. (line 309)
43051 * TARGET_ASM_MARK_DECL_PRESERVED: Label Output. (line 280)
43052 * TARGET_ASM_NAMED_SECTION: File Framework. (line 89)
43053 * TARGET_ASM_OPEN_PAREN: Data Output. (line 129)
43054 * TARGET_ASM_OUTPUT_ANCHOR: Anchored Addresses. (line 44)
43055 * TARGET_ASM_OUTPUT_DWARF_DTPREL: SDB and DWARF. (line 58)
43056 * TARGET_ASM_OUTPUT_MI_THUNK: Function Entry. (line 195)
43057 * TARGET_ASM_RECORD_GCC_SWITCHES: File Framework. (line 122)
43058 * TARGET_ASM_RECORD_GCC_SWITCHES_SECTION: File Framework. (line 166)
43059 * TARGET_ASM_SELECT_RTX_SECTION: Sections. (line 214)
43060 * TARGET_ASM_SELECT_SECTION: Sections. (line 172)
43061 * TARGET_ASM_TTYPE: Exception Region Output.
43063 * TARGET_ASM_UNALIGNED_DI_OP: Data Output. (line 14)
43064 * TARGET_ASM_UNALIGNED_HI_OP: Data Output. (line 12)
43065 * TARGET_ASM_UNALIGNED_SI_OP: Data Output. (line 13)
43066 * TARGET_ASM_UNALIGNED_TI_OP: Data Output. (line 15)
43067 * TARGET_ASM_UNIQUE_SECTION: Sections. (line 193)
43068 * TARGET_ATTRIBUTE_TABLE: Target Attributes. (line 11)
43069 * TARGET_BINDS_LOCAL_P: Sections. (line 284)
43070 * TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED: Misc. (line 816)
43071 * TARGET_BRANCH_TARGET_REGISTER_CLASS: Misc. (line 808)
43072 * TARGET_BUILD_BUILTIN_VA_LIST: Register Arguments. (line 264)
43073 * TARGET_BUILTIN_RECIPROCAL: Addressing Modes. (line 240)
43074 * TARGET_BUILTIN_SETJMP_FRAME_VALUE: Frame Layout. (line 109)
43075 * TARGET_C99_FUNCTIONS: Library Calls. (line 77)
43076 * TARGET_CALLEE_COPIES: Register Arguments. (line 115)
43077 * TARGET_CAN_INLINE_P: Target Attributes. (line 126)
43078 * TARGET_CANNOT_FORCE_CONST_MEM: Addressing Modes. (line 221)
43079 * TARGET_CANNOT_MODIFY_JUMPS_P: Misc. (line 795)
43080 * TARGET_CANONICAL_VA_LIST_TYPE: Register Arguments. (line 273)
43081 * TARGET_COMMUTATIVE_P: Misc. (line 713)
43082 * TARGET_COMP_TYPE_ATTRIBUTES: Target Attributes. (line 19)
43083 * TARGET_CPU_CPP_BUILTINS: Run-time Target. (line 9)
43084 * TARGET_CXX_ADJUST_CLASS_AT_DEFINITION: C++ ABI. (line 87)
43085 * TARGET_CXX_CDTOR_RETURNS_THIS: C++ ABI. (line 38)
43086 * TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT: C++ ABI. (line 62)
43087 * TARGET_CXX_COOKIE_HAS_SIZE: C++ ABI. (line 25)
43088 * TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY: C++ ABI. (line 54)
43089 * TARGET_CXX_GET_COOKIE_SIZE: C++ ABI. (line 18)
43090 * TARGET_CXX_GUARD_MASK_BIT: C++ ABI. (line 12)
43091 * TARGET_CXX_GUARD_TYPE: C++ ABI. (line 7)
43092 * TARGET_CXX_IMPORT_EXPORT_CLASS: C++ ABI. (line 30)
43093 * TARGET_CXX_KEY_METHOD_MAY_BE_INLINE: C++ ABI. (line 43)
43094 * TARGET_CXX_LIBRARY_RTTI_COMDAT: C++ ABI. (line 69)
43095 * TARGET_CXX_USE_AEABI_ATEXIT: C++ ABI. (line 74)
43096 * TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT: C++ ABI. (line 80)
43097 * TARGET_DECIMAL_FLOAT_SUPPORTED_P: Storage Layout. (line 506)
43098 * TARGET_DECLSPEC: Target Attributes. (line 64)
43099 * TARGET_DEFAULT_PACK_STRUCT: Misc. (line 482)
43100 * TARGET_DEFAULT_SHORT_ENUMS: Type Layout. (line 160)
43101 * TARGET_DEFERRED_OUTPUT_DEFS: Label Output. (line 393)
43102 * TARGET_DELEGITIMIZE_ADDRESS: Addressing Modes. (line 212)
43103 * TARGET_DLLIMPORT_DECL_ATTRIBUTES: Target Attributes. (line 47)
43104 * TARGET_DWARF_CALLING_CONVENTION: SDB and DWARF. (line 18)
43105 * TARGET_DWARF_HANDLE_FRAME_UNSPEC: Frame Layout. (line 172)
43106 * TARGET_DWARF_REGISTER_SPAN: Exception Region Output.
43108 * TARGET_EDOM: Library Calls. (line 59)
43109 * TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS: Emulated TLS. (line 68)
43110 * TARGET_EMUTLS_GET_ADDRESS: Emulated TLS. (line 19)
43111 * TARGET_EMUTLS_REGISTER_COMMON: Emulated TLS. (line 24)
43112 * TARGET_EMUTLS_TMPL_PREFIX: Emulated TLS. (line 45)
43113 * TARGET_EMUTLS_TMPL_SECTION: Emulated TLS. (line 36)
43114 * TARGET_EMUTLS_VAR_ALIGN_FIXED: Emulated TLS. (line 63)
43115 * TARGET_EMUTLS_VAR_FIELDS: Emulated TLS. (line 49)
43116 * TARGET_EMUTLS_VAR_INIT: Emulated TLS. (line 57)
43117 * TARGET_EMUTLS_VAR_PREFIX: Emulated TLS. (line 41)
43118 * TARGET_EMUTLS_VAR_SECTION: Emulated TLS. (line 31)
43119 * TARGET_ENCODE_SECTION_INFO: Sections. (line 235)
43120 * TARGET_ENCODE_SECTION_INFO and address validation: Addressing Modes.
43122 * TARGET_ENCODE_SECTION_INFO usage: Instruction Output. (line 100)
43123 * TARGET_ENUM_VA_LIST: Scalar Return. (line 84)
43124 * TARGET_EXECUTABLE_SUFFIX: Misc. (line 769)
43125 * TARGET_EXPAND_BUILTIN: Misc. (line 665)
43126 * TARGET_EXPAND_BUILTIN_SAVEREGS: Varargs. (line 92)
43127 * TARGET_EXPAND_TO_RTL_HOOK: Storage Layout. (line 512)
43128 * TARGET_EXPR: Expression trees. (line 6)
43129 * TARGET_EXTRA_INCLUDES: Misc. (line 841)
43130 * TARGET_EXTRA_LIVE_ON_ENTRY: Tail Calls. (line 21)
43131 * TARGET_EXTRA_PRE_INCLUDES: Misc. (line 848)
43132 * TARGET_FIXED_CONDITION_CODE_REGS: Condition Code. (line 142)
43133 * TARGET_FIXED_POINT_SUPPORTED_P: Storage Layout. (line 509)
43134 * target_flags: Run-time Target. (line 52)
43135 * TARGET_FLT_EVAL_METHOD: Type Layout. (line 141)
43136 * TARGET_FN_ABI_VA_LIST: Register Arguments. (line 268)
43137 * TARGET_FOLD_BUILTIN: Misc. (line 685)
43138 * TARGET_FORMAT_TYPES: Misc. (line 868)
43139 * TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P: Target Attributes. (line 86)
43140 * TARGET_FUNCTION_OK_FOR_SIBCALL: Tail Calls. (line 8)
43141 * TARGET_FUNCTION_VALUE: Scalar Return. (line 11)
43142 * TARGET_GET_DRAP_RTX: Misc. (line 948)
43143 * TARGET_GIMPLIFY_VA_ARG_EXPR: Register Arguments. (line 279)
43144 * TARGET_HANDLE_C_OPTION: Run-time Target. (line 78)
43145 * TARGET_HANDLE_OPTION: Run-time Target. (line 61)
43146 * TARGET_HARD_REGNO_SCRATCH_OK: Values in Registers.
43148 * TARGET_HAS_SINCOS: Library Calls. (line 85)
43149 * TARGET_HAVE_CTORS_DTORS: Macros for Initialization.
43151 * TARGET_HAVE_NAMED_SECTIONS: File Framework. (line 99)
43152 * TARGET_HAVE_SWITCHABLE_BSS_SECTIONS: File Framework. (line 103)
43153 * TARGET_HELP: Run-time Target. (line 140)
43154 * TARGET_IN_SMALL_DATA_P: Sections. (line 276)
43155 * TARGET_INIT_BUILTINS: Misc. (line 647)
43156 * TARGET_INIT_DWARF_REG_SIZES_EXTRA: Exception Region Output.
43158 * TARGET_INIT_LIBFUNCS: Library Calls. (line 16)
43159 * TARGET_INSERT_ATTRIBUTES: Target Attributes. (line 73)
43160 * TARGET_INSTANTIATE_DECLS: Storage Layout. (line 520)
43161 * TARGET_INVALID_BINARY_OP: Misc. (line 921)
43162 * TARGET_INVALID_CONVERSION: Misc. (line 908)
43163 * TARGET_INVALID_UNARY_OP: Misc. (line 914)
43164 * TARGET_IRA_COVER_CLASSES: Register Classes. (line 496)
43165 * TARGET_LIB_INT_CMP_BIASED: Library Calls. (line 35)
43166 * TARGET_LIBGCC_CMP_RETURN_MODE: Storage Layout. (line 441)
43167 * TARGET_LIBGCC_SDATA_SECTION: Sections. (line 123)
43168 * TARGET_LIBGCC_SHIFT_COUNT_MODE: Storage Layout. (line 447)
43169 * TARGET_MACHINE_DEPENDENT_REORG: Misc. (line 632)
43170 * TARGET_MANGLE_DECL_ASSEMBLER_NAME: Sections. (line 225)
43171 * TARGET_MANGLE_TYPE: Storage Layout. (line 524)
43172 * TARGET_MD_ASM_CLOBBERS: Misc. (line 548)
43173 * TARGET_MEM_CONSTRAINT: Addressing Modes. (line 100)
43174 * TARGET_MEM_REF: Expression trees. (line 6)
43175 * TARGET_MERGE_DECL_ATTRIBUTES: Target Attributes. (line 39)
43176 * TARGET_MERGE_TYPE_ATTRIBUTES: Target Attributes. (line 31)
43177 * TARGET_MIN_DIVISIONS_FOR_RECIP_MUL: Misc. (line 106)
43178 * TARGET_MODE_REP_EXTENDED: Misc. (line 191)
43179 * TARGET_MS_BITFIELD_LAYOUT_P: Storage Layout. (line 479)
43180 * TARGET_MUST_PASS_IN_STACK: Register Arguments. (line 62)
43181 * TARGET_MUST_PASS_IN_STACK, and FUNCTION_ARG: Register Arguments.
43183 * TARGET_N_FORMAT_TYPES: Misc. (line 873)
43184 * TARGET_NARROW_VOLATILE_BITFIELD: Storage Layout. (line 385)
43185 * TARGET_OBJECT_SUFFIX: Misc. (line 764)
43186 * TARGET_OBJFMT_CPP_BUILTINS: Run-time Target. (line 46)
43187 * TARGET_OPTF: Misc. (line 855)
43188 * TARGET_OPTION_PRAGMA_PARSE: Target Attributes. (line 120)
43189 * TARGET_OPTION_PRINT: Target Attributes. (line 115)
43190 * TARGET_OPTION_RESTORE: Target Attributes. (line 110)
43191 * TARGET_OPTION_SAVE: Target Attributes. (line 104)
43192 * TARGET_OPTION_TRANSLATE_TABLE: Driver. (line 53)
43193 * TARGET_OS_CPP_BUILTINS: Run-time Target. (line 42)
43194 * TARGET_OVERRIDES_FORMAT_ATTRIBUTES: Misc. (line 877)
43195 * TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT: Misc. (line 883)
43196 * TARGET_OVERRIDES_FORMAT_INIT: Misc. (line 887)
43197 * TARGET_PASS_BY_REFERENCE: Register Arguments. (line 103)
43198 * TARGET_POSIX_IO: Misc. (line 572)
43199 * TARGET_PRETEND_OUTGOING_VARARGS_NAMED: Varargs. (line 152)
43200 * TARGET_PROMOTE_FUNCTION_ARGS: Storage Layout. (line 131)
43201 * TARGET_PROMOTE_FUNCTION_RETURN: Storage Layout. (line 136)
43202 * TARGET_PROMOTE_PROTOTYPES: Stack Arguments. (line 11)
43203 * TARGET_PTRMEMFUNC_VBIT_LOCATION: Type Layout. (line 235)
43204 * TARGET_RELAXED_ORDERING: Misc. (line 892)
43205 * TARGET_RESOLVE_OVERLOADED_BUILTIN: Misc. (line 675)
43206 * TARGET_RETURN_IN_MEMORY: Aggregate Return. (line 16)
43207 * TARGET_RETURN_IN_MSB: Scalar Return. (line 100)
43208 * TARGET_RTX_COSTS: Costs. (line 210)
43209 * TARGET_SCALAR_MODE_SUPPORTED_P: Register Arguments. (line 291)
43210 * TARGET_SCHED_ADJUST_COST: Scheduling. (line 37)
43211 * TARGET_SCHED_ADJUST_PRIORITY: Scheduling. (line 52)
43212 * TARGET_SCHED_CLEAR_SCHED_CONTEXT: Scheduling. (line 283)
43213 * TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK: Scheduling. (line 89)
43214 * TARGET_SCHED_DFA_NEW_CYCLE: Scheduling. (line 205)
43215 * TARGET_SCHED_DFA_POST_CYCLE_ADVANCE: Scheduling. (line 160)
43216 * TARGET_SCHED_DFA_POST_CYCLE_INSN: Scheduling. (line 144)
43217 * TARGET_SCHED_DFA_PRE_CYCLE_ADVANCE: Scheduling. (line 153)
43218 * TARGET_SCHED_DFA_PRE_CYCLE_INSN: Scheduling. (line 132)
43219 * TARGET_SCHED_FINISH: Scheduling. (line 109)
43220 * TARGET_SCHED_FINISH_GLOBAL: Scheduling. (line 126)
43221 * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD: Scheduling.
43223 * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD: Scheduling.
43225 * TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC: Scheduling.
43227 * TARGET_SCHED_FREE_SCHED_CONTEXT: Scheduling. (line 287)
43228 * TARGET_SCHED_GEN_CHECK: Scheduling. (line 309)
43229 * TARGET_SCHED_H_I_D_EXTENDED: Scheduling. (line 241)
43230 * TARGET_SCHED_INIT: Scheduling. (line 99)
43231 * TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN: Scheduling. (line 149)
43232 * TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN: Scheduling. (line 141)
43233 * TARGET_SCHED_INIT_GLOBAL: Scheduling. (line 118)
43234 * TARGET_SCHED_INIT_SCHED_CONTEXT: Scheduling. (line 273)
43235 * TARGET_SCHED_IS_COSTLY_DEPENDENCE: Scheduling. (line 219)
43236 * TARGET_SCHED_ISSUE_RATE: Scheduling. (line 12)
43237 * TARGET_SCHED_NEEDS_BLOCK_P: Scheduling. (line 302)
43238 * TARGET_SCHED_REORDER: Scheduling. (line 60)
43239 * TARGET_SCHED_REORDER2: Scheduling. (line 77)
43240 * TARGET_SCHED_SET_SCHED_CONTEXT: Scheduling. (line 279)
43241 * TARGET_SCHED_SET_SCHED_FLAGS: Scheduling. (line 332)
43242 * TARGET_SCHED_SMS_RES_MII: Scheduling. (line 343)
43243 * TARGET_SCHED_SPECULATE_INSN: Scheduling. (line 291)
43244 * TARGET_SCHED_VARIABLE_ISSUE: Scheduling. (line 24)
43245 * TARGET_SECONDARY_RELOAD: Register Classes. (line 257)
43246 * TARGET_SECTION_TYPE_FLAGS: File Framework. (line 109)
43247 * TARGET_SET_CURRENT_FUNCTION: Misc. (line 747)
43248 * TARGET_SET_DEFAULT_TYPE_ATTRIBUTES: Target Attributes. (line 26)
43249 * TARGET_SETUP_INCOMING_VARARGS: Varargs. (line 101)
43250 * TARGET_SHIFT_TRUNCATION_MASK: Misc. (line 154)
43251 * TARGET_SPLIT_COMPLEX_ARG: Register Arguments. (line 252)
43252 * TARGET_STACK_PROTECT_FAIL: Stack Smashing Protection.
43254 * TARGET_STACK_PROTECT_GUARD: Stack Smashing Protection.
43256 * TARGET_STRICT_ARGUMENT_NAMING: Varargs. (line 137)
43257 * TARGET_STRUCT_VALUE_RTX: Aggregate Return. (line 44)
43258 * TARGET_UNSPEC_MAY_TRAP_P: Misc. (line 739)
43259 * TARGET_UNWIND_EMIT: Dispatch Tables. (line 81)
43260 * TARGET_UNWIND_INFO: Exception Region Output.
43262 * TARGET_UPDATE_STACK_BOUNDARY: Misc. (line 944)
43263 * TARGET_USE_ANCHORS_FOR_SYMBOL_P: Anchored Addresses. (line 55)
43264 * TARGET_USE_BLOCKS_FOR_CONSTANT_P: Addressing Modes. (line 233)
43265 * TARGET_USE_JCR_SECTION: Misc. (line 926)
43266 * TARGET_USE_LOCAL_THUNK_ALIAS_P: Misc. (line 861)
43267 * TARGET_USES_WEAK_UNWIND_INFO: Exception Handling. (line 129)
43268 * TARGET_VALID_DLLIMPORT_ATTRIBUTE_P: Target Attributes. (line 59)
43269 * TARGET_VALID_OPTION_ATTRIBUTE_P: Target Attributes. (line 93)
43270 * TARGET_VALID_POINTER_MODE: Register Arguments. (line 285)
43271 * TARGET_VECTOR_MODE_SUPPORTED_P: Register Arguments. (line 303)
43272 * TARGET_VECTOR_OPAQUE_P: Storage Layout. (line 472)
43273 * TARGET_VECTORIZE_BUILTIN_CONVERSION: Addressing Modes. (line 300)
43274 * TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD: Addressing Modes. (line 249)
43275 * TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN: Addressing Modes. (line 275)
43276 * TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD: Addressing Modes. (line 287)
43277 * TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION: Addressing Modes.
43279 * TARGET_VERSION: Run-time Target. (line 91)
43280 * TARGET_VTABLE_DATA_ENTRY_DISTANCE: Type Layout. (line 288)
43281 * TARGET_VTABLE_ENTRY_ALIGN: Type Layout. (line 282)
43282 * TARGET_VTABLE_USES_DESCRIPTORS: Type Layout. (line 271)
43283 * TARGET_WEAK_NOT_IN_ARCHIVE_TOC: Label Output. (line 245)
43284 * targetm: Target Structure. (line 7)
43285 * targets, makefile: Makefile. (line 6)
43286 * TCmode: Machine Modes. (line 197)
43287 * TDmode: Machine Modes. (line 94)
43288 * TEMPLATE_DECL: Declarations. (line 6)
43289 * Temporaries: Temporaries. (line 6)
43290 * termination routines: Initialization. (line 6)
43291 * testing constraints: C Constraint Interface.
43293 * TEXT_SECTION_ASM_OP: Sections. (line 38)
43294 * TF_SIZE: Type Layout. (line 132)
43295 * TFmode: Machine Modes. (line 98)
43296 * THEN_CLAUSE: Function Bodies. (line 6)
43297 * THREAD_MODEL_SPEC: Driver. (line 225)
43298 * THROW_EXPR: Expression trees. (line 6)
43299 * THUNK_DECL: Declarations. (line 6)
43300 * THUNK_DELTA: Declarations. (line 6)
43301 * TImode: Machine Modes. (line 48)
43302 * TImode, in insn: Insns. (line 231)
43303 * tm.h macros: Target Macros. (line 6)
43304 * TQFmode: Machine Modes. (line 62)
43305 * TQmode: Machine Modes. (line 119)
43306 * TRAMPOLINE_ADJUST_ADDRESS: Trampolines. (line 62)
43307 * TRAMPOLINE_ALIGNMENT: Trampolines. (line 49)
43308 * TRAMPOLINE_SECTION: Trampolines. (line 40)
43309 * TRAMPOLINE_SIZE: Trampolines. (line 45)
43310 * TRAMPOLINE_TEMPLATE: Trampolines. (line 29)
43311 * trampolines for nested functions: Trampolines. (line 6)
43312 * TRANSFER_FROM_TRAMPOLINE: Trampolines. (line 124)
43313 * trap instruction pattern: Standard Names. (line 1374)
43314 * tree <1>: Tree overview. (line 6)
43315 * tree: Macros and Functions.
43317 * Tree SSA: Tree SSA. (line 6)
43318 * tree_code: Manipulating GIMPLE statements.
43320 * TREE_CODE: Tree overview. (line 6)
43321 * tree_code <1>: GIMPLE_COND. (line 21)
43322 * tree_code <2>: GIMPLE_OMP_FOR. (line 83)
43323 * tree_code: GIMPLE_ASSIGN. (line 41)
43324 * TREE_FILENAME: Working with declarations.
43326 * tree_int_cst_equal: Expression trees. (line 6)
43327 * TREE_INT_CST_HIGH: Expression trees. (line 6)
43328 * TREE_INT_CST_LOW: Expression trees. (line 6)
43329 * tree_int_cst_lt: Expression trees. (line 6)
43330 * TREE_LINENO: Working with declarations.
43332 * TREE_LIST: Containers. (line 6)
43333 * TREE_OPERAND: Expression trees. (line 6)
43334 * TREE_PUBLIC: Function Basics. (line 41)
43335 * TREE_PURPOSE: Containers. (line 6)
43336 * TREE_STRING_LENGTH: Expression trees. (line 6)
43337 * TREE_STRING_POINTER: Expression trees. (line 6)
43338 * TREE_TYPE <1>: Working with declarations.
43340 * TREE_TYPE <2>: Types. (line 6)
43341 * TREE_TYPE <3>: Expression trees. (line 17)
43342 * TREE_TYPE: Function Basics. (line 171)
43343 * TREE_VALUE: Containers. (line 6)
43344 * TREE_VEC: Containers. (line 6)
43345 * TREE_VEC_ELT: Containers. (line 6)
43346 * TREE_VEC_LENGTH: Containers. (line 6)
43347 * Trees: Trees. (line 6)
43348 * TRULY_NOOP_TRUNCATION: Misc. (line 177)
43349 * TRUNC_DIV_EXPR: Expression trees. (line 6)
43350 * TRUNC_MOD_EXPR: Expression trees. (line 6)
43351 * truncate: Conversions. (line 38)
43352 * truncMN2 instruction pattern: Standard Names. (line 821)
43353 * TRUTH_AND_EXPR: Expression trees. (line 6)
43354 * TRUTH_ANDIF_EXPR: Expression trees. (line 6)
43355 * TRUTH_NOT_EXPR: Expression trees. (line 6)
43356 * TRUTH_OR_EXPR: Expression trees. (line 6)
43357 * TRUTH_ORIF_EXPR: Expression trees. (line 6)
43358 * TRUTH_XOR_EXPR: Expression trees. (line 6)
43359 * TRY_BLOCK: Function Bodies. (line 6)
43360 * TRY_HANDLERS: Function Bodies. (line 6)
43361 * TRY_STMTS: Function Bodies. (line 6)
43362 * tstM instruction pattern: Standard Names. (line 661)
43363 * Tuple specific accessors: Tuple specific accessors.
43365 * tuples: Tuple representation.
43367 * type: Types. (line 6)
43368 * type declaration: Declarations. (line 6)
43369 * TYPE_ALIGN: Types. (line 61)
43370 * TYPE_ARG_TYPES: Types. (line 6)
43371 * TYPE_ASM_OP: Label Output. (line 55)
43372 * TYPE_ATTRIBUTES: Attributes. (line 25)
43373 * TYPE_BINFO: Classes. (line 6)
43374 * TYPE_BUILT_IN: Types. (line 83)
43375 * TYPE_CANONICAL: Types. (line 6)
43376 * TYPE_CONTEXT: Types. (line 6)
43377 * TYPE_DECL: Declarations. (line 6)
43378 * TYPE_FIELDS <1>: Types. (line 6)
43379 * TYPE_FIELDS: Classes. (line 6)
43380 * TYPE_HAS_ARRAY_NEW_OPERATOR: Classes. (line 91)
43381 * TYPE_HAS_DEFAULT_CONSTRUCTOR: Classes. (line 76)
43382 * TYPE_HAS_MUTABLE_P: Classes. (line 81)
43383 * TYPE_HAS_NEW_OPERATOR: Classes. (line 88)
43384 * TYPE_MAIN_VARIANT: Types. (line 6)
43385 * TYPE_MAX_VALUE: Types. (line 6)
43386 * TYPE_METHOD_BASETYPE: Types. (line 6)
43387 * TYPE_METHODS: Classes. (line 6)
43388 * TYPE_MIN_VALUE: Types. (line 6)
43389 * TYPE_NAME: Types. (line 6)
43390 * TYPE_NOTHROW_P: Function Basics. (line 180)
43391 * TYPE_OFFSET_BASETYPE: Types. (line 6)
43392 * TYPE_OPERAND_FMT: Label Output. (line 66)
43393 * TYPE_OVERLOADS_ARRAY_REF: Classes. (line 99)
43394 * TYPE_OVERLOADS_ARROW: Classes. (line 102)
43395 * TYPE_OVERLOADS_CALL_EXPR: Classes. (line 95)
43396 * TYPE_POLYMORPHIC_P: Classes. (line 72)
43397 * TYPE_PRECISION: Types. (line 6)
43398 * TYPE_PTR_P: Types. (line 89)
43399 * TYPE_PTRFN_P: Types. (line 93)
43400 * TYPE_PTRMEM_P: Types. (line 86)
43401 * TYPE_PTROB_P: Types. (line 96)
43402 * TYPE_PTROBV_P: Types. (line 6)
43403 * TYPE_QUAL_CONST: Types. (line 6)
43404 * TYPE_QUAL_RESTRICT: Types. (line 6)
43405 * TYPE_QUAL_VOLATILE: Types. (line 6)
43406 * TYPE_RAISES_EXCEPTIONS: Function Basics. (line 175)
43407 * TYPE_SIZE: Types. (line 56)
43408 * TYPE_STRUCTURAL_EQUALITY_P: Types. (line 139)
43409 * TYPE_UNQUALIFIED: Types. (line 6)
43410 * TYPE_VFIELD: Classes. (line 6)
43411 * TYPENAME_TYPE: Types. (line 6)
43412 * TYPENAME_TYPE_FULLNAME: Types. (line 6)
43413 * TYPEOF_TYPE: Types. (line 6)
43414 * UDAmode: Machine Modes. (line 168)
43415 * udiv: Arithmetic. (line 125)
43416 * udivM3 instruction pattern: Standard Names. (line 222)
43417 * udivmodM4 instruction pattern: Standard Names. (line 428)
43418 * udot_prodM instruction pattern: Standard Names. (line 265)
43419 * UDQmode: Machine Modes. (line 136)
43420 * UHAmode: Machine Modes. (line 160)
43421 * UHQmode: Machine Modes. (line 128)
43422 * UINTMAX_TYPE: Type Layout. (line 224)
43423 * umaddMN4 instruction pattern: Standard Names. (line 375)
43424 * umax: Arithmetic. (line 144)
43425 * umaxM3 instruction pattern: Standard Names. (line 222)
43426 * umin: Arithmetic. (line 144)
43427 * uminM3 instruction pattern: Standard Names. (line 222)
43428 * umod: Arithmetic. (line 131)
43429 * umodM3 instruction pattern: Standard Names. (line 222)
43430 * umsubMN4 instruction pattern: Standard Names. (line 399)
43431 * umulhisi3 instruction pattern: Standard Names. (line 347)
43432 * umulM3_highpart instruction pattern: Standard Names. (line 361)
43433 * umulqihi3 instruction pattern: Standard Names. (line 347)
43434 * umulsidi3 instruction pattern: Standard Names. (line 347)
43435 * unchanging: Flags. (line 319)
43436 * unchanging, in call_insn: Flags. (line 19)
43437 * unchanging, in jump_insn, call_insn and insn: Flags. (line 39)
43438 * unchanging, in mem: Flags. (line 152)
43439 * unchanging, in subreg: Flags. (line 198)
43440 * unchanging, in symbol_ref: Flags. (line 10)
43441 * UNEQ_EXPR: Expression trees. (line 6)
43442 * UNGE_EXPR: Expression trees. (line 6)
43443 * UNGT_EXPR: Expression trees. (line 6)
43444 * UNION_TYPE <1>: Types. (line 6)
43445 * UNION_TYPE: Classes. (line 6)
43446 * unions, returning: Interface. (line 10)
43447 * UNITS_PER_SIMD_WORD: Storage Layout. (line 77)
43448 * UNITS_PER_WORD: Storage Layout. (line 67)
43449 * UNKNOWN_TYPE: Types. (line 6)
43450 * UNLE_EXPR: Expression trees. (line 6)
43451 * UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Sections. (line 49)
43452 * UNLT_EXPR: Expression trees. (line 6)
43453 * UNORDERED_EXPR: Expression trees. (line 6)
43454 * unshare_all_rtl: Sharing. (line 58)
43455 * unsigned division: Arithmetic. (line 125)
43456 * unsigned division with unsigned saturation: Arithmetic. (line 125)
43457 * unsigned greater than: Comparisons. (line 72)
43458 * unsigned less than: Comparisons. (line 76)
43459 * unsigned minimum and maximum: Arithmetic. (line 144)
43460 * unsigned_fix: Conversions. (line 77)
43461 * unsigned_float: Conversions. (line 62)
43462 * unsigned_fract_convert: Conversions. (line 97)
43463 * unsigned_sat_fract: Conversions. (line 103)
43464 * unspec: Side Effects. (line 287)
43465 * unspec_volatile: Side Effects. (line 287)
43466 * untyped_call instruction pattern: Standard Names. (line 1012)
43467 * untyped_return instruction pattern: Standard Names. (line 1062)
43468 * UPDATE_PATH_HOST_CANONICALIZE (PATH): Filesystem. (line 59)
43469 * update_ssa: SSA. (line 76)
43470 * update_stmt <1>: SSA Operands. (line 6)
43471 * update_stmt: Manipulating GIMPLE statements.
43473 * update_stmt_if_modified: Manipulating GIMPLE statements.
43475 * UQQmode: Machine Modes. (line 123)
43476 * US Software GOFAST, floating point emulation library: Library Calls.
43478 * us_ashift: Arithmetic. (line 168)
43479 * us_minus: Arithmetic. (line 36)
43480 * us_mult: Arithmetic. (line 92)
43481 * us_neg: Arithmetic. (line 81)
43482 * us_plus: Arithmetic. (line 14)
43483 * US_SOFTWARE_GOFAST: Library Calls. (line 45)
43484 * us_truncate: Conversions. (line 48)
43485 * usaddM3 instruction pattern: Standard Names. (line 222)
43486 * USAmode: Machine Modes. (line 164)
43487 * usashlM3 instruction pattern: Standard Names. (line 431)
43488 * usdivM3 instruction pattern: Standard Names. (line 222)
43489 * use: Side Effects. (line 162)
43490 * USE_C_ALLOCA: Host Misc. (line 19)
43491 * USE_LD_AS_NEEDED: Driver. (line 198)
43492 * USE_LOAD_POST_DECREMENT: Costs. (line 165)
43493 * USE_LOAD_POST_INCREMENT: Costs. (line 160)
43494 * USE_LOAD_PRE_DECREMENT: Costs. (line 175)
43495 * USE_LOAD_PRE_INCREMENT: Costs. (line 170)
43496 * use_optype_d: Manipulating GIMPLE statements.
43498 * use_param: GTY Options. (line 114)
43499 * use_paramN: GTY Options. (line 132)
43500 * use_params: GTY Options. (line 140)
43501 * USE_SELECT_SECTION_FOR_FUNCTIONS: Sections. (line 185)
43502 * USE_STORE_POST_DECREMENT: Costs. (line 185)
43503 * USE_STORE_POST_INCREMENT: Costs. (line 180)
43504 * USE_STORE_PRE_DECREMENT: Costs. (line 195)
43505 * USE_STORE_PRE_INCREMENT: Costs. (line 190)
43506 * used: Flags. (line 337)
43507 * used, in symbol_ref: Flags. (line 215)
43508 * USER_LABEL_PREFIX: Instruction Output. (line 126)
43509 * USING_DECL: Declarations. (line 6)
43510 * USING_STMT: Function Bodies. (line 6)
43511 * usmaddMN4 instruction pattern: Standard Names. (line 383)
43512 * usmsubMN4 instruction pattern: Standard Names. (line 407)
43513 * usmulhisi3 instruction pattern: Standard Names. (line 351)
43514 * usmulM3 instruction pattern: Standard Names. (line 222)
43515 * usmulqihi3 instruction pattern: Standard Names. (line 351)
43516 * usmulsidi3 instruction pattern: Standard Names. (line 351)
43517 * usnegM2 instruction pattern: Standard Names. (line 449)
43518 * USQmode: Machine Modes. (line 132)
43519 * ussubM3 instruction pattern: Standard Names. (line 222)
43520 * usum_widenM3 instruction pattern: Standard Names. (line 275)
43521 * UTAmode: Machine Modes. (line 172)
43522 * UTQmode: Machine Modes. (line 140)
43523 * V in constraint: Simple Constraints. (line 43)
43524 * VA_ARG_EXPR: Expression trees. (line 6)
43525 * values, returned by functions: Scalar Return. (line 6)
43526 * VAR_DECL <1>: Declarations. (line 6)
43527 * VAR_DECL: Expression trees. (line 6)
43528 * varargs implementation: Varargs. (line 6)
43529 * variable: Declarations. (line 6)
43530 * vashlM3 instruction pattern: Standard Names. (line 445)
43531 * vashrM3 instruction pattern: Standard Names. (line 445)
43532 * vec_concat: Vector Operations. (line 25)
43533 * vec_duplicate: Vector Operations. (line 30)
43534 * VEC_EXTRACT_EVEN_EXPR: Expression trees. (line 6)
43535 * vec_extract_evenM instruction pattern: Standard Names. (line 176)
43536 * VEC_EXTRACT_ODD_EXPR: Expression trees. (line 6)
43537 * vec_extract_oddM instruction pattern: Standard Names. (line 183)
43538 * vec_extractM instruction pattern: Standard Names. (line 171)
43539 * vec_initM instruction pattern: Standard Names. (line 204)
43540 * VEC_INTERLEAVE_HIGH_EXPR: Expression trees. (line 6)
43541 * vec_interleave_highM instruction pattern: Standard Names. (line 190)
43542 * VEC_INTERLEAVE_LOW_EXPR: Expression trees. (line 6)
43543 * vec_interleave_lowM instruction pattern: Standard Names. (line 197)
43544 * VEC_LSHIFT_EXPR: Expression trees. (line 6)
43545 * vec_merge: Vector Operations. (line 11)
43546 * VEC_PACK_FIX_TRUNC_EXPR: Expression trees. (line 6)
43547 * VEC_PACK_SAT_EXPR: Expression trees. (line 6)
43548 * vec_pack_sfix_trunc_M instruction pattern: Standard Names. (line 302)
43549 * vec_pack_ssat_M instruction pattern: Standard Names. (line 295)
43550 * VEC_PACK_TRUNC_EXPR: Expression trees. (line 6)
43551 * vec_pack_trunc_M instruction pattern: Standard Names. (line 288)
43552 * vec_pack_ufix_trunc_M instruction pattern: Standard Names. (line 302)
43553 * vec_pack_usat_M instruction pattern: Standard Names. (line 295)
43554 * VEC_RSHIFT_EXPR: Expression trees. (line 6)
43555 * vec_select: Vector Operations. (line 19)
43556 * vec_setM instruction pattern: Standard Names. (line 166)
43557 * vec_shl_M instruction pattern: Standard Names. (line 282)
43558 * vec_shr_M instruction pattern: Standard Names. (line 282)
43559 * VEC_UNPACK_FLOAT_HI_EXPR: Expression trees. (line 6)
43560 * VEC_UNPACK_FLOAT_LO_EXPR: Expression trees. (line 6)
43561 * VEC_UNPACK_HI_EXPR: Expression trees. (line 6)
43562 * VEC_UNPACK_LO_EXPR: Expression trees. (line 6)
43563 * vec_unpacks_float_hi_M instruction pattern: Standard Names.
43565 * vec_unpacks_float_lo_M instruction pattern: Standard Names.
43567 * vec_unpacks_hi_M instruction pattern: Standard Names. (line 309)
43568 * vec_unpacks_lo_M instruction pattern: Standard Names. (line 309)
43569 * vec_unpacku_float_hi_M instruction pattern: Standard Names.
43571 * vec_unpacku_float_lo_M instruction pattern: Standard Names.
43573 * vec_unpacku_hi_M instruction pattern: Standard Names. (line 317)
43574 * vec_unpacku_lo_M instruction pattern: Standard Names. (line 317)
43575 * VEC_WIDEN_MULT_HI_EXPR: Expression trees. (line 6)
43576 * VEC_WIDEN_MULT_LO_EXPR: Expression trees. (line 6)
43577 * vec_widen_smult_hi_M instruction pattern: Standard Names. (line 333)
43578 * vec_widen_smult_lo_M instruction pattern: Standard Names. (line 333)
43579 * vec_widen_umult_hi_M instruction pattern: Standard Names. (line 333)
43580 * vec_widen_umult_lo__M instruction pattern: Standard Names. (line 333)
43581 * vector: Containers. (line 6)
43582 * vector operations: Vector Operations. (line 6)
43583 * VECTOR_CST: Expression trees. (line 6)
43584 * VECTOR_STORE_FLAG_VALUE: Misc. (line 308)
43585 * virtual operands: SSA Operands. (line 6)
43586 * VIRTUAL_INCOMING_ARGS_REGNUM: Regs and Memory. (line 59)
43587 * VIRTUAL_OUTGOING_ARGS_REGNUM: Regs and Memory. (line 87)
43588 * VIRTUAL_STACK_DYNAMIC_REGNUM: Regs and Memory. (line 78)
43589 * VIRTUAL_STACK_VARS_REGNUM: Regs and Memory. (line 69)
43590 * VLIW: Processor pipeline description.
43592 * vlshrM3 instruction pattern: Standard Names. (line 445)
43593 * VMS: Filesystem. (line 37)
43594 * VMS_DEBUGGING_INFO: VMS Debug. (line 9)
43595 * VOID_TYPE: Types. (line 6)
43596 * VOIDmode: Machine Modes. (line 190)
43597 * volatil: Flags. (line 351)
43598 * volatil, in insn, call_insn, jump_insn, code_label, barrier, and note: Flags.
43600 * volatil, in label_ref and reg_label: Flags. (line 65)
43601 * volatil, in mem, asm_operands, and asm_input: Flags. (line 94)
43602 * volatil, in reg: Flags. (line 116)
43603 * volatil, in subreg: Flags. (line 198)
43604 * volatil, in symbol_ref: Flags. (line 224)
43605 * volatile memory references: Flags. (line 352)
43606 * voptype_d: Manipulating GIMPLE statements.
43608 * voting between constraint alternatives: Class Preferences. (line 6)
43609 * vrotlM3 instruction pattern: Standard Names. (line 445)
43610 * vrotrM3 instruction pattern: Standard Names. (line 445)
43611 * walk_dominator_tree: SSA. (line 256)
43612 * walk_gimple_op: Statement and operand traversals.
43614 * walk_gimple_seq: Statement and operand traversals.
43616 * walk_gimple_stmt: Statement and operand traversals.
43618 * walk_use_def_chains: SSA. (line 232)
43619 * WCHAR_TYPE: Type Layout. (line 192)
43620 * WCHAR_TYPE_SIZE: Type Layout. (line 200)
43621 * which_alternative: Output Statement. (line 59)
43622 * WHILE_BODY: Function Bodies. (line 6)
43623 * WHILE_COND: Function Bodies. (line 6)
43624 * WHILE_STMT: Function Bodies. (line 6)
43625 * WIDEST_HARDWARE_FP_SIZE: Type Layout. (line 147)
43626 * WINT_TYPE: Type Layout. (line 205)
43627 * word_mode: Machine Modes. (line 336)
43628 * WORD_REGISTER_OPERATIONS: Misc. (line 63)
43629 * WORD_SWITCH_TAKES_ARG: Driver. (line 20)
43630 * WORDS_BIG_ENDIAN: Storage Layout. (line 29)
43631 * WORDS_BIG_ENDIAN, effect on subreg: Regs and Memory. (line 217)
43632 * X in constraint: Simple Constraints. (line 114)
43633 * x-HOST: Host Fragment. (line 6)
43634 * XCmode: Machine Modes. (line 197)
43635 * XCOFF_DEBUGGING_INFO: DBX Options. (line 13)
43636 * XEXP: Accessors. (line 6)
43637 * XF_SIZE: Type Layout. (line 131)
43638 * XFmode: Machine Modes. (line 79)
43639 * XINT: Accessors. (line 6)
43640 * xm-MACHINE.h <1>: Host Misc. (line 6)
43641 * xm-MACHINE.h: Filesystem. (line 6)
43642 * xor: Arithmetic. (line 163)
43643 * xor, canonicalization of: Insn Canonicalizations.
43645 * xorM3 instruction pattern: Standard Names. (line 222)
43646 * XSTR: Accessors. (line 6)
43647 * XVEC: Accessors. (line 41)
43648 * XVECEXP: Accessors. (line 48)
43649 * XVECLEN: Accessors. (line 44)
43650 * XWINT: Accessors. (line 6)
43651 * zero_extend: Conversions. (line 28)
43652 * zero_extendMN2 instruction pattern: Standard Names. (line 831)
43653 * zero_extract: Bit-Fields. (line 30)
43654 * zero_extract, canonicalization of: Insn Canonicalizations.
43661 Node: Contributing
\x7f5063
43662 Node: Portability
\x7f5804
43663 Node: Interface
\x7f7592
43664 Node: Libgcc
\x7f10632
43665 Node: Integer library routines
\x7f12473
43666 Node: Soft float library routines
\x7f19312
43667 Node: Decimal float library routines
\x7f31249
43668 Node: Fixed-point fractional library routines
\x7f47006
43669 Node: Exception handling routines
\x7f147404
43670 Node: Miscellaneous routines
\x7f148511
43671 Node: Languages
\x7f148894
43672 Node: Source Tree
\x7f150441
43673 Node: Configure Terms
\x7f151060
43674 Node: Top Level
\x7f154018
43675 Node: gcc Directory
\x7f156788
43676 Node: Subdirectories
\x7f157757
43677 Node: Configuration
\x7f159607
43678 Node: Config Fragments
\x7f160327
43679 Node: System Config
\x7f161556
43680 Node: Configuration Files
\x7f162492
43681 Node: Build
\x7f165067
43682 Node: Makefile
\x7f165479
43683 Ref: Makefile-Footnote-1
\x7f172197
43684 Ref: Makefile-Footnote-2
\x7f172342
43685 Node: Library Files
\x7f172414
43686 Node: Headers
\x7f172976
43687 Node: Documentation
\x7f175059
43688 Node: Texinfo Manuals
\x7f175918
43689 Node: Man Page Generation
\x7f178256
43690 Node: Miscellaneous Docs
\x7f180171
43691 Node: Front End
\x7f181470
43692 Node: Front End Directory
\x7f185171
43693 Node: Front End Config
\x7f190293
43694 Node: Back End
\x7f193207
43695 Node: Testsuites
\x7f196884
43696 Node: Test Idioms
\x7f197748
43697 Node: Test Directives
\x7f201149
43698 Node: Ada Tests
\x7f213213
43699 Node: C Tests
\x7f214505
43700 Node: libgcj Tests
\x7f218860
43701 Node: gcov Testing
\x7f219992
43702 Node: profopt Testing
\x7f222976
43703 Node: compat Testing
\x7f224419
43704 Node: Torture Tests
\x7f228663
43705 Node: Options
\x7f230295
43706 Node: Option file format
\x7f230736
43707 Node: Option properties
\x7f233485
43708 Node: Passes
\x7f239541
43709 Node: Parsing pass
\x7f240283
43710 Node: Gimplification pass
\x7f243811
43711 Node: Pass manager
\x7f245638
43712 Node: Tree-SSA passes
\x7f247121
43713 Node: RTL passes
\x7f268952
43714 Node: Trees
\x7f281537
43715 Node: Deficiencies
\x7f284263
43716 Node: Tree overview
\x7f284500
43717 Node: Macros and Functions
\x7f288623
43718 Node: Identifiers
\x7f288769
43719 Node: Containers
\x7f290294
43720 Node: Types
\x7f291449
43721 Node: Scopes
\x7f307152
43722 Node: Namespaces
\x7f307914
43723 Node: Classes
\x7f310726
43724 Node: Declarations
\x7f315483
43725 Node: Working with declarations
\x7f315978
43726 Node: Internal structure
\x7f322435
43727 Node: Current structure hierarchy
\x7f322817
43728 Node: Adding new DECL node types
\x7f324909
43729 Node: Functions
\x7f328980
43730 Node: Function Basics
\x7f331383
43731 Node: Function Bodies
\x7f339113
43732 Node: Attributes
\x7f350355
43733 Node: Expression trees
\x7f351596
43734 Node: RTL
\x7f394205
43735 Node: RTL Objects
\x7f396304
43736 Node: RTL Classes
\x7f400178
43737 Node: Accessors
\x7f405130
43738 Node: Special Accessors
\x7f407524
43739 Node: Flags
\x7f412742
43740 Node: Machine Modes
\x7f428610
43741 Node: Constants
\x7f440926
43742 Node: Regs and Memory
\x7f446955
43743 Node: Arithmetic
\x7f464856
43744 Node: Comparisons
\x7f474376
43745 Node: Bit-Fields
\x7f478668
43746 Node: Vector Operations
\x7f480220
43747 Node: Conversions
\x7f481846
43748 Node: RTL Declarations
\x7f486344
43749 Node: Side Effects
\x7f487165
43750 Node: Incdec
\x7f503488
43751 Node: Assembler
\x7f506823
43752 Node: Insns
\x7f508355
43753 Node: Calls
\x7f532244
43754 Node: Sharing
\x7f534837
43755 Node: Reading RTL
\x7f537947
43756 Node: GENERIC
\x7f538937
43757 Node: Statements
\x7f540574
43758 Node: Blocks
\x7f541019
43759 Node: Statement Sequences
\x7f542272
43760 Node: Empty Statements
\x7f542605
43761 Node: Jumps
\x7f543179
43762 Node: Cleanups
\x7f543832
43763 Node: GIMPLE
\x7f545585
43764 Node: Tuple representation
\x7f549206
43765 Node: GIMPLE instruction set
\x7f557861
43766 Node: GIMPLE Exception Handling
\x7f559529
43767 Node: Temporaries
\x7f561444
43768 Ref: Temporaries-Footnote-1
\x7f562763
43769 Node: Operands
\x7f562826
43770 Node: Compound Expressions
\x7f563600
43771 Node: Compound Lvalues
\x7f563834
43772 Node: Conditional Expressions
\x7f564600
43773 Node: Logical Operators
\x7f565270
43774 Node: Manipulating GIMPLE statements
\x7f571361
43775 Node: Tuple specific accessors
\x7f577289
43776 Node: `GIMPLE_ASM'
\x7f578122
43777 Node: `GIMPLE_ASSIGN'
\x7f580727
43778 Node: `GIMPLE_BIND'
\x7f584673
43779 Node: `GIMPLE_CALL'
\x7f586480
43780 Node: `GIMPLE_CATCH'
\x7f590739
43781 Node: `GIMPLE_CHANGE_DYNAMIC_TYPE'
\x7f591897
43782 Node: `GIMPLE_COND'
\x7f593230
43783 Node: `GIMPLE_EH_FILTER'
\x7f596036
43784 Node: `GIMPLE_LABEL'
\x7f597522
43785 Node: `GIMPLE_NOP'
\x7f598497
43786 Node: `GIMPLE_OMP_ATOMIC_LOAD'
\x7f598866
43787 Node: `GIMPLE_OMP_ATOMIC_STORE'
\x7f599776
43788 Node: `GIMPLE_OMP_CONTINUE'
\x7f600415
43789 Node: `GIMPLE_OMP_CRITICAL'
\x7f601765
43790 Node: `GIMPLE_OMP_FOR'
\x7f602701
43791 Node: `GIMPLE_OMP_MASTER'
\x7f606211
43792 Node: `GIMPLE_OMP_ORDERED'
\x7f606594
43793 Node: `GIMPLE_OMP_PARALLEL'
\x7f606994
43794 Node: `GIMPLE_OMP_RETURN'
\x7f609763
43795 Node: `GIMPLE_OMP_SECTION'
\x7f610413
43796 Node: `GIMPLE_OMP_SECTIONS'
\x7f611079
43797 Node: `GIMPLE_OMP_SINGLE'
\x7f612683
43798 Node: `GIMPLE_PHI'
\x7f613619
43799 Node: `GIMPLE_RESX'
\x7f615032
43800 Node: `GIMPLE_RETURN'
\x7f615751
43801 Node: `GIMPLE_SWITCH'
\x7f616319
43802 Node: `GIMPLE_TRY'
\x7f618449
43803 Node: `GIMPLE_WITH_CLEANUP_EXPR'
\x7f620239
43804 Node: GIMPLE sequences
\x7f621122
43805 Node: Sequence iterators
\x7f624328
43806 Node: Adding a new GIMPLE statement code
\x7f632783
43807 Node: Statement and operand traversals
\x7f634063
43808 Node: Tree SSA
\x7f636673
43809 Node: Annotations
\x7f638402
43810 Node: SSA Operands
\x7f638928
43811 Node: SSA
\x7f653459
43812 Node: Alias analysis
\x7f665750
43813 Node: Loop Analysis and Representation
\x7f673206
43814 Node: Loop representation
\x7f674387
43815 Node: Loop querying
\x7f681307
43816 Node: Loop manipulation
\x7f684140
43817 Node: LCSSA
\x7f686508
43818 Node: Scalar evolutions
\x7f688580
43819 Node: loop-iv
\x7f691824
43820 Node: Number of iterations
\x7f693750
43821 Node: Dependency analysis
\x7f696559
43822 Node: Lambda
\x7f702927
43823 Node: Omega
\x7f704597
43824 Node: Control Flow
\x7f706162
43825 Node: Basic Blocks
\x7f707162
43826 Node: Edges
\x7f711730
43827 Node: Profile information
\x7f720292
43828 Node: Maintaining the CFG
\x7f724978
43829 Node: Liveness information
\x7f731860
43830 Node: Machine Desc
\x7f733987
43831 Node: Overview
\x7f736455
43832 Node: Patterns
\x7f738496
43833 Node: Example
\x7f741934
43834 Node: RTL Template
\x7f743369
43835 Node: Output Template
\x7f754024
43836 Node: Output Statement
\x7f757990
43837 Node: Predicates
\x7f761952
43838 Node: Machine-Independent Predicates
\x7f764870
43839 Node: Defining Predicates
\x7f769502
43840 Node: Constraints
\x7f775467
43841 Node: Simple Constraints
\x7f776715
43842 Node: Multi-Alternative
\x7f788921
43843 Node: Class Preferences
\x7f791762
43844 Node: Modifiers
\x7f792654
43845 Node: Machine Constraints
\x7f796786
43846 Node: Disable Insn Alternatives
\x7f829509
43847 Node: Define Constraints
\x7f832402
43848 Node: C Constraint Interface
\x7f839182
43849 Node: Standard Names
\x7f842823
43850 Ref: shift patterns
\x7f861751
43851 Ref: prologue instruction pattern
\x7f902769
43852 Ref: epilogue instruction pattern
\x7f903262
43853 Node: Pattern Ordering
\x7f912805
43854 Node: Dependent Patterns
\x7f914041
43855 Node: Jump Patterns
\x7f916855
43856 Node: Looping Patterns
\x7f922551
43857 Node: Insn Canonicalizations
\x7f927279
43858 Node: Expander Definitions
\x7f931663
43859 Node: Insn Splitting
\x7f939781
43860 Node: Including Patterns
\x7f949384
43861 Node: Peephole Definitions
\x7f951164
43862 Node: define_peephole
\x7f952417
43863 Node: define_peephole2
\x7f958748
43864 Node: Insn Attributes
\x7f961815
43865 Node: Defining Attributes
\x7f962921
43866 Node: Expressions
\x7f965441
43867 Node: Tagging Insns
\x7f972043
43868 Node: Attr Example
\x7f976396
43869 Node: Insn Lengths
\x7f978770
43870 Node: Constant Attributes
\x7f981829
43871 Node: Delay Slots
\x7f982998
43872 Node: Processor pipeline description
\x7f986222
43873 Ref: Processor pipeline description-Footnote-1
\x7f1003588
43874 Node: Conditional Execution
\x7f1003910
43875 Node: Constant Definitions
\x7f1006763
43876 Node: Iterators
\x7f1008358
43877 Node: Mode Iterators
\x7f1008805
43878 Node: Defining Mode Iterators
\x7f1009783
43879 Node: Substitutions
\x7f1011277
43880 Node: Examples
\x7f1013518
43881 Node: Code Iterators
\x7f1014966
43882 Node: Target Macros
\x7f1017223
43883 Node: Target Structure
\x7f1020246
43884 Node: Driver
\x7f1021515
43885 Node: Run-time Target
\x7f1045196
43886 Node: Per-Function Data
\x7f1052320
43887 Node: Storage Layout
\x7f1055083
43888 Node: Type Layout
\x7f1080199
43889 Node: Registers
\x7f1093156
43890 Node: Register Basics
\x7f1094130
43891 Node: Allocation Order
\x7f1099697
43892 Node: Values in Registers
\x7f1101718
43893 Node: Leaf Functions
\x7f1109207
43894 Node: Stack Registers
\x7f1112065
43895 Node: Register Classes
\x7f1113181
43896 Node: Old Constraints
\x7f1139893
43897 Node: Stack and Calling
\x7f1147044
43898 Node: Frame Layout
\x7f1147578
43899 Node: Exception Handling
\x7f1158424
43900 Node: Stack Checking
\x7f1164802
43901 Node: Frame Registers
\x7f1169189
43902 Node: Elimination
\x7f1175795
43903 Node: Stack Arguments
\x7f1179826
43904 Node: Register Arguments
\x7f1186629
43905 Node: Scalar Return
\x7f1202082
43906 Node: Aggregate Return
\x7f1207628
43907 Node: Caller Saves
\x7f1211287
43908 Node: Function Entry
\x7f1212465
43909 Node: Profiling
\x7f1225080
43910 Node: Tail Calls
\x7f1226779
43911 Node: Stack Smashing Protection
\x7f1228146
43912 Node: Varargs
\x7f1229258
43913 Node: Trampolines
\x7f1237218
43914 Node: Library Calls
\x7f1243884
43915 Node: Addressing Modes
\x7f1248734
43916 Node: Anchored Addresses
\x7f1264652
43917 Node: Condition Code
\x7f1267313
43918 Node: Costs
\x7f1275602
43919 Node: Scheduling
\x7f1288701
43920 Node: Sections
\x7f1307262
43921 Node: PIC
\x7f1321912
43922 Node: Assembler Format
\x7f1323902
43923 Node: File Framework
\x7f1325040
43924 Ref: TARGET_HAVE_SWITCHABLE_BSS_SECTIONS
\x7f1329946
43925 Node: Data Output
\x7f1333212
43926 Node: Uninitialized Data
\x7f1340971
43927 Node: Label Output
\x7f1346042
43928 Node: Initialization
\x7f1367709
43929 Node: Macros for Initialization
\x7f1373671
43930 Node: Instruction Output
\x7f1380123
43931 Node: Dispatch Tables
\x7f1389117
43932 Node: Exception Region Output
\x7f1392912
43933 Node: Alignment Output
\x7f1398672
43934 Node: Debugging Info
\x7f1402835
43935 Node: All Debuggers
\x7f1403505
43936 Node: DBX Options
\x7f1406360
43937 Node: DBX Hooks
\x7f1411809
43938 Node: File Names and DBX
\x7f1413735
43939 Node: SDB and DWARF
\x7f1415846
43940 Node: VMS Debug
\x7f1419838
43941 Node: Floating Point
\x7f1420408
43942 Node: Mode Switching
\x7f1425231
43943 Node: Target Attributes
\x7f1429157
43944 Node: Emulated TLS
\x7f1435921
43945 Node: MIPS Coprocessors
\x7f1439311
43946 Node: PCH Target
\x7f1440880
43947 Node: C++ ABI
\x7f1442401
43948 Node: Misc
\x7f1447020
43949 Ref: TARGET_SHIFT_TRUNCATION_MASK
\x7f1454391
43950 Node: Host Config
\x7f1495336
43951 Node: Host Common
\x7f1496404
43952 Node: Filesystem
\x7f1498783
43953 Node: Host Misc
\x7f1502898
43954 Node: Fragments
\x7f1505037
43955 Node: Target Fragment
\x7f1506232
43956 Node: Host Fragment
\x7f1512122
43957 Node: Collect2
\x7f1512362
43958 Node: Header Dirs
\x7f1514905
43959 Node: Type Information
\x7f1516328
43960 Node: GTY Options
\x7f1518619
43961 Node: GGC Roots
\x7f1529299
43962 Node: Files
\x7f1530019
43963 Node: Invoking the garbage collector
\x7f1532483
43964 Node: Funding
\x7f1533536
43965 Node: GNU Project
\x7f1536032
43966 Node: Copying
\x7f1536681
43967 Node: GNU Free Documentation License
\x7f1574212
43968 Node: Contributors
\x7f1596621
43969 Node: Option Index
\x7f1632951
43970 Node: Concept Index
\x7f1633536