home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gcc-2.5.8-bin.lha / info / gcc.info-11 (.txt) < prev    next >
GNU Info File  |  1994-02-21  |  51KB  |  898 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.55 from the input
  2. file gcc.texi.
  3.    This file documents the use and the internals of the GNU compiler.
  4.    Published by the Free Software Foundation 675 Massachusetts Avenue
  5. Cambridge, MA 02139 USA
  6.    Copyright (C) 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
  7.    Permission is granted to make and distribute verbatim copies of this
  8. manual provided the copyright notice and this permission notice are
  9. preserved on all copies.
  10.    Permission is granted to copy and distribute modified versions of
  11. this manual under the conditions for verbatim copying, provided also
  12. that the sections entitled "GNU General Public License" and "Protect
  13. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  14. original, and provided that the entire resulting derived work is
  15. distributed under the terms of a permission notice identical to this
  16.    Permission is granted to copy and distribute translations of this
  17. manual into another language, under the above conditions for modified
  18. versions, except that the sections entitled "GNU General Public
  19. License" and "Protect Your Freedom--Fight `Look And Feel'", and this
  20. permission notice, may be included in translations approved by the Free
  21. Software Foundation instead of in the original English.
  22. File: gcc.info,  Node: Passes,  Next: RTL,  Prev: Interface,  Up: Top
  23. Passes and Files of the Compiler
  24. ********************************
  25.    The overall control structure of the compiler is in `toplev.c'.  This
  26. file is responsible for initialization, decoding arguments, opening and
  27. closing files, and sequencing the passes.
  28.    The parsing pass is invoked only once, to parse the entire input.
  29. The RTL intermediate code for a function is generated as the function
  30. is parsed, a statement at a time.  Each statement is read in as a
  31. syntax tree and then converted to RTL; then the storage for the tree
  32. for the statement is reclaimed.  Storage for types (and the expressions
  33. for their sizes), declarations, and a representation of the binding
  34. contours and how they nest, remain until the function is finished being
  35. compiled; these are all needed to output the debugging information.
  36.    Each time the parsing pass reads a complete function definition or
  37. top-level declaration, it calls either the function
  38. `rest_of_compilation', or the function `rest_of_decl_compilation' in
  39. `toplev.c', which are responsible for all further processing necessary,
  40. ending with output of the assembler language.  All other compiler
  41. passes run, in sequence, within `rest_of_compilation'.  When that
  42. function returns from compiling a function definition, the storage used
  43. for that function definition's compilation is entirely freed, unless it
  44. is an inline function (*note An Inline Function is As Fast As a Macro:
  45. Inline.).
  46.    Here is a list of all the passes of the compiler and their source
  47. files.  Also included is a description of where debugging dumps can be
  48. requested with `-d' options.
  49.    * Parsing.  This pass reads the entire text of a function definition,
  50.      constructing partial syntax trees.  This and RTL generation are no
  51.      longer truly separate passes (formerly they were), but it is
  52.      easier to think of them as separate.
  53.      The tree representation does not entirely follow C syntax, because
  54.      it is intended to support other languages as well.
  55.      Language-specific data type analysis is also done in this pass,
  56.      and every tree node that represents an expression has a data type
  57.      attached.  Variables are represented as declaration nodes.
  58.      Constant folding and some arithmetic simplifications are also done
  59.      during this pass.
  60.      The language-independent source files for parsing are
  61.      `stor-layout.c', `fold-const.c', and `tree.c'.  There are also
  62.      header files `tree.h' and `tree.def' which define the format of
  63.      the tree representation.
  64.      The source files to parse C are `c-parse.in', `c-decl.c',
  65.      `c-typeck.c', `c-aux-info.c', `c-convert.c', and `c-lang.c' along
  66.      with header files `c-lex.h', and `c-tree.h'.
  67.      The source files for parsing C++ are `cp-parse.y', `cp-class.c',
  68.      `cp-cvt.c', `cp-decl.c', `cp-decl2.c', `cp-dem.c', `cp-except.c',
  69.      `cp-expr.c', `cp-init.c', `cp-lex.c', `cp-method.c', `cp-ptree.c',
  70.      `cp-search.c', `cp-tree.c', `cp-type2.c', and `cp-typeck.c', along
  71.      with header files `cp-tree.def', `cp-tree.h', and `cp-decl.h'.
  72.      The special source files for parsing Objective C are
  73.      `objc-parse.y', `objc-actions.c', `objc-tree.def', and
  74.      `objc-actions.h'.  Certain C-specific files are used for this as
  75.      well.
  76.      The file `c-common.c' is also used for all of the above languages.
  77.    * RTL generation.  This is the conversion of syntax tree into RTL
  78.      code.  It is actually done statement-by-statement during parsing,
  79.      but for most purposes it can be thought of as a separate pass.
  80.      This is where the bulk of target-parameter-dependent code is found,
  81.      since often it is necessary for strategies to apply only when
  82.      certain standard kinds of instructions are available.  The purpose
  83.      of named instruction patterns is to provide this information to
  84.      the RTL generation pass.
  85.      Optimization is done in this pass for `if'-conditions that are
  86.      comparisons, boolean operations or conditional expressions.  Tail
  87.      recursion is detected at this time also.  Decisions are made about
  88.      how best to arrange loops and how to output `switch' statements.
  89.      The source files for RTL generation include `stmt.c', `calls.c',
  90.      `expr.c', `explow.c', `expmed.c', `function.c', `optabs.c' and
  91.      `emit-rtl.c'.  Also, the file `insn-emit.c', generated from the
  92.      machine description by the program `genemit', is used in this
  93.      pass.  The header file `expr.h' is used for communication within
  94.      this pass.
  95.      The header files `insn-flags.h' and `insn-codes.h', generated from
  96.      the machine description by the programs `genflags' and `gencodes',
  97.      tell this pass which standard names are available for use and
  98.      which patterns correspond to them.
  99.      Aside from debugging information output, none of the following
  100.      passes refers to the tree structure representation of the function
  101.      (only part of which is saved).
  102.      The decision of whether the function can and should be expanded
  103.      inline in its subsequent callers is made at the end of rtl
  104.      generation.  The function must meet certain criteria, currently
  105.      related to the size of the function and the types and number of
  106.      parameters it has.  Note that this function may contain loops,
  107.      recursive calls to itself (tail-recursive functions can be
  108.      inlined!), gotos, in short, all constructs supported by GNU CC.
  109.      The file `integrate.c' contains the code to save a function's rtl
  110.      for later inlining and to inline that rtl when the function is
  111.      called.  The header file `integrate.h' is also used for this
  112.      purpose.
  113.      The option `-dr' causes a debugging dump of the RTL code after
  114.      this pass.  This dump file's name is made by appending `.rtl' to
  115.      the input file name.
  116.    * Jump optimization.  This pass simplifies jumps to the following
  117.      instruction, jumps across jumps, and jumps to jumps.  It deletes
  118.      unreferenced labels and unreachable code, except that unreachable
  119.      code that contains a loop is not recognized as unreachable in this
  120.      pass.  (Such loops are deleted later in the basic block analysis.)
  121.      It also converts some code originally written with jumps into
  122.      sequences of instructions that directly set values from the
  123.      results of comparisons, if the machine has such instructions.
  124.      Jump optimization is performed two or three times.  The first time
  125.      is immediately following RTL generation.  The second time is after
  126.      CSE, but only if CSE says repeated jump optimization is needed.
  127.      The last time is right before the final pass.  That time,
  128.      cross-jumping and deletion of no-op move instructions are done
  129.      together with the optimizations described above.
  130.      The source file of this pass is `jump.c'.
  131.      The option `-dj' causes a debugging dump of the RTL code after
  132.      this pass is run for the first time.  This dump file's name is
  133.      made by appending `.jump' to the input file name.
  134.    * Register scan.  This pass finds the first and last use of each
  135.      register, as a guide for common subexpression elimination.  Its
  136.      source is in `regclass.c'.
  137.    * Jump threading.  This pass detects a condition jump that branches
  138.      to an identical or inverse test.  Such jumps can be `threaded'
  139.      through the second conditional test.  The source code for this
  140.      pass is in `jump.c'.  This optimization is only performed if
  141.      `-fthread-jumps' is enabled.
  142.    * Common subexpression elimination.  This pass also does constant
  143.      propagation.  Its source file is `cse.c'.  If constant propagation
  144.      causes conditional jumps to become unconditional or to become
  145.      no-ops, jump optimization is run again when CSE is finished.
  146.      The option `-ds' causes a debugging dump of the RTL code after
  147.      this pass.  This dump file's name is made by appending `.cse' to
  148.      the input file name.
  149.    * Loop optimization.  This pass moves constant expressions out of
  150.      loops, and optionally does strength-reduction and loop unrolling
  151.      as well.  Its source files are `loop.c' and `unroll.c', plus the
  152.      header `loop.h' used for communication between them.  Loop
  153.      unrolling uses some functions in `integrate.c' and the header
  154.      `integrate.h'.
  155.      The option `-dL' causes a debugging dump of the RTL code after
  156.      this pass.  This dump file's name is made by appending `.loop' to
  157.      the input file name.
  158.    * If `-frerun-cse-after-loop' was enabled, a second common
  159.      subexpression elimination pass is performed after the loop
  160.      optimization pass.  Jump threading is also done again at this time
  161.      if it was specified.
  162.      The option `-dt' causes a debugging dump of the RTL code after
  163.      this pass.  This dump file's name is made by appending `.cse2' to
  164.      the input file name.
  165.    * Stupid register allocation is performed at this point in a
  166.      nonoptimizing compilation.  It does a little data flow analysis as
  167.      well.  When stupid register allocation is in use, the next pass
  168.      executed is the reloading pass; the others in between are skipped.
  169.      The source file is `stupid.c'.
  170.    * Data flow analysis (`flow.c').  This pass divides the program into
  171.      basic blocks (and in the process deletes unreachable loops); then
  172.      it computes which pseudo-registers are live at each point in the
  173.      program, and makes the first instruction that uses a value point at
  174.      the instruction that computed the value.
  175.      This pass also deletes computations whose results are never used,
  176.      and combines memory references with add or subtract instructions
  177.      to make autoincrement or autodecrement addressing.
  178.      The option `-df' causes a debugging dump of the RTL code after
  179.      this pass.  This dump file's name is made by appending `.flow' to
  180.      the input file name.  If stupid register allocation is in use, this
  181.      dump file reflects the full results of such allocation.
  182.    * Instruction combination (`combine.c').  This pass attempts to
  183.      combine groups of two or three instructions that are related by
  184.      data flow into single instructions.  It combines the RTL
  185.      expressions for the instructions by substitution, simplifies the
  186.      result using algebra, and then attempts to match the result
  187.      against the machine description.
  188.      The option `-dc' causes a debugging dump of the RTL code after
  189.      this pass.  This dump file's name is made by appending `.combine'
  190.      to the input file name.
  191.    * Instruction scheduling (`sched.c').  This pass looks for
  192.      instructions whose output will not be available by the time that
  193.      it is used in subsequent instructions.  (Memory loads and floating
  194.      point instructions often have this behavior on RISC machines).  It
  195.      re-orders instructions within a basic block to try to separate the
  196.      definition and use of items that otherwise would cause pipeline
  197.      stalls.
  198.      Instruction scheduling is performed twice.  The first time is
  199.      immediately after instruction combination and the second is
  200.      immediately after reload.
  201.      The option `-dS' causes a debugging dump of the RTL code after this
  202.      pass is run for the first time.  The dump file's name is made by
  203.      appending `.sched' to the input file name.
  204.    * Register class preferencing.  The RTL code is scanned to find out
  205.      which register class is best for each pseudo register.  The source
  206.      file is `regclass.c'.
  207.    * Local register allocation (`local-alloc.c').  This pass allocates
  208.      hard registers to pseudo registers that are used only within one
  209.      basic block.  Because the basic block is linear, it can use fast
  210.      and powerful techniques to do a very good job.
  211.      The option `-dl' causes a debugging dump of the RTL code after
  212.      this pass.  This dump file's name is made by appending `.lreg' to
  213.      the input file name.
  214.    * Global register allocation (`global.c').  This pass allocates hard
  215.      registers for the remaining pseudo registers (those whose life
  216.      spans are not contained in one basic block).
  217.    * Reloading.  This pass renumbers pseudo registers with the hardware
  218.      registers numbers they were allocated.  Pseudo registers that did
  219.      not get hard registers are replaced with stack slots.  Then it
  220.      finds instructions that are invalid because a value has failed to
  221.      end up in a register, or has ended up in a register of the wrong
  222.      kind.  It fixes up these instructions by reloading the
  223.      problematical values temporarily into registers.  Additional
  224.      instructions are generated to do the copying.
  225.      The reload pass also optionally eliminates the frame pointer and
  226.      inserts instructions to save and restore call-clobbered registers
  227.      around calls.
  228.      Source files are `reload.c' and `reload1.c', plus the header
  229.      `reload.h' used for communication between them.
  230.      The option `-dg' causes a debugging dump of the RTL code after
  231.      this pass.  This dump file's name is made by appending `.greg' to
  232.      the input file name.
  233.    * Instruction scheduling is repeated here to try to avoid pipeline
  234.      stalls due to memory loads generated for spilled pseudo registers.
  235.      The option `-dR' causes a debugging dump of the RTL code after
  236.      this pass.  This dump file's name is made by appending `.sched2'
  237.      to the input file name.
  238.    * Jump optimization is repeated, this time including cross-jumping
  239.      and deletion of no-op move instructions.
  240.      The option `-dJ' causes a debugging dump of the RTL code after
  241.      this pass.  This dump file's name is made by appending `.jump2' to
  242.      the input file name.
  243.    * Delayed branch scheduling.  This optional pass attempts to find
  244.      instructions that can go into the delay slots of other
  245.      instructions, usually jumps and calls.  The source file name is
  246.      `reorg.c'.
  247.      The option `-dd' causes a debugging dump of the RTL code after
  248.      this pass.  This dump file's name is made by appending `.dbr' to
  249.      the input file name.
  250.    * Conversion from usage of some hard registers to usage of a register
  251.      stack may be done at this point.  Currently, this is supported only
  252.      for the floating-point registers of the Intel 80387 coprocessor.
  253.      The source file name is `reg-stack.c'.
  254.      The options `-dk' causes a debugging dump of the RTL code after
  255.      this pass.  This dump file's name is made by appending `.stack' to
  256.      the input file name.
  257.    * Final.  This pass outputs the assembler code for the function.  It
  258.      is also responsible for identifying spurious test and compare
  259.      instructions.  Machine-specific peephole optimizations are
  260.      performed at the same time.  The function entry and exit sequences
  261.      are generated directly as assembler code in this pass; they never
  262.      exist as RTL.
  263.      The source files are `final.c' plus `insn-output.c'; the latter is
  264.      generated automatically from the machine description by the tool
  265.      `genoutput'.  The header file `conditions.h' is used for
  266.      communication between these files.
  267.    * Debugging information output.  This is run after final because it
  268.      must output the stack slot offsets for pseudo registers that did
  269.      not get hard registers.  Source files are `dbxout.c' for DBX
  270.      symbol table format, `sdbout.c' for SDB symbol table format, and
  271.      `dwarfout.c' for DWARF symbol table format.
  272.    Some additional files are used by all or many passes:
  273.    * Every pass uses `machmode.def' and `machmode.h' which define the
  274.      machine modes.
  275.    * Several passes use `real.h', which defines the default
  276.      representation of floating point constants and how to operate on
  277.      them.
  278.    * All the passes that work with RTL use the header files `rtl.h' and
  279.      `rtl.def', and subroutines in file `rtl.c'.  The tools `gen*' also
  280.      use these files to read and work with the machine description RTL.
  281.    * Several passes refer to the header file `insn-config.h' which
  282.      contains a few parameters (C macro definitions) generated
  283.      automatically from the machine description RTL by the tool
  284.      `genconfig'.
  285.    * Several passes use the instruction recognizer, which consists of
  286.      `recog.c' and `recog.h', plus the files `insn-recog.c' and
  287.      `insn-extract.c' that are generated automatically from the machine
  288.      description by the tools `genrecog' and `genextract'.
  289.    * Several passes use the header files `regs.h' which defines the
  290.      information recorded about pseudo register usage, and
  291.      `basic-block.h' which defines the information recorded about basic
  292.      blocks.
  293.    * `hard-reg-set.h' defines the type `HARD_REG_SET', a bit-vector
  294.      with a bit for each hard register, and some macros to manipulate
  295.      it.  This type is just `int' if the machine has few enough hard
  296.      registers; otherwise it is an array of `int' and some of the
  297.      macros expand into loops.
  298.    * Several passes use instruction attributes.  A definition of the
  299.      attributes defined for a particular machine is in file
  300.      `insn-attr.h', which is generated from the machine description by
  301.      the program `genattr'.  The file `insn-attrtab.c' contains
  302.      subroutines to obtain the attribute values for insns.  It is
  303.      generated from the machine description by the program `genattrtab'.
  304. File: gcc.info,  Node: RTL,  Next: Machine Desc,  Prev: Passes,  Up: Top
  305. RTL Representation
  306. ******************
  307.    Most of the work of the compiler is done on an intermediate
  308. representation called register transfer language.  In this language,
  309. the instructions to be output are described, pretty much one by one, in
  310. an algebraic form that describes what the instruction does.
  311.    RTL is inspired by Lisp lists.  It has both an internal form, made
  312. up of structures that point at other structures, and a textual form
  313. that is used in the machine description and in printed debugging dumps.
  314. The textual form uses nested parentheses to indicate the pointers in
  315. the internal form.
  316. * Menu:
  317. * RTL Objects::       Expressions vs vectors vs strings vs integers.
  318. * Accessors::         Macros to access expression operands or vector elts.
  319. * Flags::             Other flags in an RTL expression.
  320. * Machine Modes::     Describing the size and format of a datum.
  321. * Constants::         Expressions with constant values.
  322. * Regs and Memory::   Expressions representing register contents or memory.
  323. * Arithmetic::        Expressions representing arithmetic on other expressions.
  324. * Comparisons::       Expressions representing comparison of expressions.
  325. * Bit Fields::        Expressions representing bitfields in memory or reg.
  326. * Conversions::       Extending, truncating, floating or fixing.
  327. * RTL Declarations::  Declaring volatility, constancy, etc.
  328. * Side Effects::      Expressions for storing in registers, etc.
  329. * Incdec::            Embedded side-effects for autoincrement addressing.
  330. * Assembler::         Representing `asm' with operands.
  331. * Insns::             Expression types for entire insns.
  332. * Calls::             RTL representation of function call insns.
  333. * Sharing::           Some expressions are unique; others *must* be copied.
  334. * Reading RTL::       Reading textual RTL from a file.
  335. File: gcc.info,  Node: RTL Objects,  Next: Accessors,  Prev: RTL,  Up: RTL
  336. RTL Object Types
  337. ================
  338.    RTL uses five kinds of objects: expressions, integers, wide integers,
  339. strings and vectors.  Expressions are the most important ones.  An RTL
  340. expression ("RTX", for short) is a C structure, but it is usually
  341. referred to with a pointer; a type that is given the typedef name `rtx'.
  342.    An integer is simply an `int'; their written form uses decimal
  343. digits.  A wide integer is an integral object whose type is
  344. `HOST_WIDE_INT' (*note Config::.); their written form uses decimal
  345. digits.
  346.    A string is a sequence of characters.  In core it is represented as a
  347. `char *' in usual C fashion, and it is written in C syntax as well.
  348. However, strings in RTL may never be null.  If you write an empty
  349. string in a machine description, it is represented in core as a null
  350. pointer rather than as a pointer to a null character.  In certain
  351. contexts, these null pointers instead of strings are valid.  Within RTL
  352. code, strings are most commonly found inside `symbol_ref' expressions,
  353. but they appear in other contexts in the RTL expressions that make up
  354. machine descriptions.
  355.    A vector contains an arbitrary number of pointers to expressions.
  356. The number of elements in the vector is explicitly present in the
  357. vector.  The written form of a vector consists of square brackets
  358. (`[...]') surrounding the elements, in sequence and with whitespace
  359. separating them.  Vectors of length zero are not created; null pointers
  360. are used instead.
  361.    Expressions are classified by "expression codes" (also called RTX
  362. codes).  The expression code is a name defined in `rtl.def', which is
  363. also (in upper case) a C enumeration constant.  The possible expression
  364. codes and their meanings are machine-independent.  The code of an RTX
  365. can be extracted with the macro `GET_CODE (X)' and altered with
  366. `PUT_CODE (X, NEWCODE)'.
  367.    The expression code determines how many operands the expression
  368. contains, and what kinds of objects they are.  In RTL, unlike Lisp, you
  369. cannot tell by looking at an operand what kind of object it is.
  370. Instead, you must know from its context--from the expression code of
  371. the containing expression.  For example, in an expression of code
  372. `subreg', the first operand is to be regarded as an expression and the
  373. second operand as an integer.  In an expression of code `plus', there
  374. are two operands, both of which are to be regarded as expressions.  In
  375. a `symbol_ref' expression, there is one operand, which is to be
  376. regarded as a string.
  377.    Expressions are written as parentheses containing the name of the
  378. expression type, its flags and machine mode if any, and then the
  379. operands of the expression (separated by spaces).
  380.    Expression code names in the `md' file are written in lower case,
  381. but when they appear in C code they are written in upper case.  In this
  382. manual, they are shown as follows: `const_int'.
  383.    In a few contexts a null pointer is valid where an expression is
  384. normally wanted.  The written form of this is `(nil)'.
  385. File: gcc.info,  Node: Accessors,  Next: Flags,  Prev: RTL Objects,  Up: RTL
  386. Access to Operands
  387. ==================
  388.    For each expression type `rtl.def' specifies the number of contained
  389. objects and their kinds, with four possibilities: `e' for expression
  390. (actually a pointer to an expression), `i' for integer, `w' for wide
  391. integer, `s' for string, and `E' for vector of expressions.  The
  392. sequence of letters for an expression code is called its "format".
  393. Thus, the format of `subreg' is `ei'.
  394.    A few other format characters are used occasionally:
  395.      `u' is equivalent to `e' except that it is printed differently in
  396.      debugging dumps.  It is used for pointers to insns.
  397.      `n' is equivalent to `i' except that it is printed differently in
  398.      debugging dumps.  It is used for the line number or code number of
  399.      a `note' insn.
  400.      `S' indicates a string which is optional.  In the RTL objects in
  401.      core, `S' is equivalent to `s', but when the object is read, from
  402.      an `md' file, the string value of this operand may be omitted.  An
  403.      omitted string is taken to be the null string.
  404.      `V' indicates a vector which is optional.  In the RTL objects in
  405.      core, `V' is equivalent to `E', but when the object is read from
  406.      an `md' file, the vector value of this operand may be omitted.  An
  407.      omitted vector is effectively the same as a vector of no elements.
  408.      `0' means a slot whose contents do not fit any normal category.
  409.      `0' slots are not printed at all in dumps, and are often used in
  410.      special ways by small parts of the compiler.
  411.    There are macros to get the number of operands, the format, and the
  412. class of an expression code:
  413. `GET_RTX_LENGTH (CODE)'
  414.      Number of operands of an RTX of code CODE.
  415. `GET_RTX_FORMAT (CODE)'
  416.      The format of an RTX of code CODE, as a C string.
  417. `GET_RTX_CLASS (CODE)'
  418.      A single character representing the type of RTX operation that code
  419.      CODE performs.
  420.      The following classes are defined:
  421.     `o'
  422.           An RTX code that represents an actual object, such as `reg' or
  423.           `mem'.  `subreg' is not in this class.
  424.     `<'
  425.           An RTX code for a comparison.  The codes in this class are
  426.           `NE', `EQ', `LE', `LT', `GE', `GT', `LEU', `LTU', `GEU',
  427.           `GTU'.
  428.     `1'
  429.           An RTX code for a unary arithmetic operation, such as `neg'.
  430.     `c'
  431.           An RTX code for a commutative binary operation, other than
  432.           `NE' and `EQ' (which have class `<').
  433.     `2'
  434.           An RTX code for a noncommutative binary operation, such as
  435.           `MINUS'.
  436.     `b'
  437.           An RTX code for a bitfield operation, either `ZERO_EXTRACT' or
  438.           `SIGN_EXTRACT'.
  439.     `3'
  440.           An RTX code for other three input operations, such as
  441.           `IF_THEN_ELSE'.
  442.     `i'
  443.           An RTX code for a machine insn (`INSN', `JUMP_INSN', and
  444.           `CALL_INSN').
  445.     `m'
  446.           An RTX code for something that matches in insns, such as
  447.           `MATCH_DUP'.
  448.     `x'
  449.           All other RTX codes.
  450.    Operands of expressions are accessed using the macros `XEXP',
  451. `XINT', `XWINT' and `XSTR'.  Each of these macros takes two arguments:
  452. an expression-pointer (RTX) and an operand number (counting from zero).
  453. Thus,
  454.      XEXP (X, 2)
  455. accesses operand 2 of expression X, as an expression.
  456.      XINT (X, 2)
  457. accesses the same operand as an integer.  `XSTR', used in the same
  458. fashion, would access it as a string.
  459.    Any operand can be accessed as an integer, as an expression or as a
  460. string.  You must choose the correct method of access for the kind of
  461. value actually stored in the operand.  You would do this based on the
  462. expression code of the containing expression.  That is also how you
  463. would know how many operands there are.
  464.    For example, if X is a `subreg' expression, you know that it has two
  465. operands which can be correctly accessed as `XEXP (X, 0)' and `XINT (X,
  466. 1)'.  If you did `XINT (X, 0)', you would get the address of the
  467. expression operand but cast as an integer; that might occasionally be
  468. useful, but it would be cleaner to write `(int) XEXP (X, 0)'.  `XEXP
  469. (X, 1)' would also compile without error, and would return the second,
  470. integer operand cast as an expression pointer, which would probably
  471. result in a crash when accessed.  Nothing stops you from writing `XEXP
  472. (X, 28)' either, but this will access memory past the end of the
  473. expression with unpredictable results.
  474.    Access to operands which are vectors is more complicated.  You can
  475. use the macro `XVEC' to get the vector-pointer itself, or the macros
  476. `XVECEXP' and `XVECLEN' to access the elements and length of a vector.
  477. `XVEC (EXP, IDX)'
  478.      Access the vector-pointer which is operand number IDX in EXP.
  479. `XVECLEN (EXP, IDX)'
  480.      Access the length (number of elements) in the vector which is in
  481.      operand number IDX in EXP.  This value is an `int'.
  482. `XVECEXP (EXP, IDX, ELTNUM)'
  483.      Access element number ELTNUM in the vector which is in operand
  484.      number IDX in EXP.  This value is an RTX.
  485.      It is up to you to make sure that ELTNUM is not negative and is
  486.      less than `XVECLEN (EXP, IDX)'.
  487.    All the macros defined in this section expand into lvalues and
  488. therefore can be used to assign the operands, lengths and vector
  489. elements as well as to access them.
  490. File: gcc.info,  Node: Flags,  Next: Machine Modes,  Prev: Accessors,  Up: RTL
  491. Flags in an RTL Expression
  492. ==========================
  493.    RTL expressions contain several flags (one-bit bitfields) that are
  494. used in certain types of expression.  Most often they are accessed with
  495. the following macros:
  496. `MEM_VOLATILE_P (X)'
  497.      In `mem' expressions, nonzero for volatile memory references.
  498.      Stored in the `volatil' field and printed as `/v'.
  499. `MEM_IN_STRUCT_P (X)'
  500.      In `mem' expressions, nonzero for reference to an entire
  501.      structure, union or array, or to a component of one.  Zero for
  502.      references to a scalar variable or through a pointer to a scalar.
  503.      Stored in the `in_struct' field and printed as `/s'.
  504. `REG_LOOP_TEST_P'
  505.      In `reg' expressions, nonzero if this register's entire life is
  506.      contained in the exit test code for some loop.  Stored in the
  507.      `in_struct' field and printed as `/s'.
  508. `REG_USERVAR_P (X)'
  509.      In a `reg', nonzero if it corresponds to a variable present in the
  510.      user's source code.  Zero for temporaries generated internally by
  511.      the compiler.  Stored in the `volatil' field and printed as `/v'.
  512. `REG_FUNCTION_VALUE_P (X)'
  513.      Nonzero in a `reg' if it is the place in which this function's
  514.      value is going to be returned.  (This happens only in a hard
  515.      register.)  Stored in the `integrated' field and printed as `/i'.
  516.      The same hard register may be used also for collecting the values
  517.      of functions called by this one, but `REG_FUNCTION_VALUE_P' is zero
  518.      in this kind of use.
  519. `SUBREG_PROMOTED_VAR_P'
  520.      Nonzero in a `subreg' if it was made when accessing an object that
  521.      was promoted to a wider mode in accord with the `PROMOTED_MODE'
  522.      machine description macro (*note Storage Layout::.).  In this
  523.      case, the mode of the `subreg' is the declared mode of the object
  524.      and the mode of `SUBREG_REG' is the mode of the register that
  525.      holds the object.  Promoted variables are always either sign- or
  526.      zero-extended to the wider mode on every assignment.  Stored in
  527.      the `in_struct' field and printed as `/s'.
  528. `SUBREG_PROMOTED_UNSIGNED_P'
  529.      Nonzero in a `subreg' that has `SUBREG_PROMOTED_VAR_P' nonzero if
  530.      the object being referenced is kept zero-extended and zero if it
  531.      is kept sign-extended.  Stored in the `unchanging' field and
  532.      printed as `/u'.
  533. `RTX_UNCHANGING_P (X)'
  534.      Nonzero in a `reg' or `mem' if the value is not changed.  (This
  535.      flag is not set for memory references via pointers to constants.
  536.      Such pointers only guarantee that the object will not be changed
  537.      explicitly by the current function.  The object might be changed by
  538.      other functions or by aliasing.)  Stored in the `unchanging' field
  539.      and printed as `/u'.
  540. `RTX_INTEGRATED_P (INSN)'
  541.      Nonzero in an insn if it resulted from an in-line function call.
  542.      Stored in the `integrated' field and printed as `/i'.  This may be
  543.      deleted; nothing currently depends on it.
  544. `SYMBOL_REF_USED (X)'
  545.      In a `symbol_ref', indicates that X has been used.  This is
  546.      normally only used to ensure that X is only declared external
  547.      once.  Stored in the `used' field.
  548. `SYMBOL_REF_FLAG (X)'
  549.      In a `symbol_ref', this is used as a flag for machine-specific
  550.      purposes.  Stored in the `volatil' field and printed as `/v'.
  551. `LABEL_OUTSIDE_LOOP_P'
  552.      In `label_ref' expressions, nonzero if this is a reference to a
  553.      label that is outside the innermost loop containing the reference
  554.      to the label.  Stored in the `in_struct' field and printed as `/s'.
  555. `INSN_DELETED_P (INSN)'
  556.      In an insn, nonzero if the insn has been deleted.  Stored in the
  557.      `volatil' field and printed as `/v'.
  558. `INSN_ANNULLED_BRANCH_P (INSN)'
  559.      In an `insn' in the delay slot of a branch insn, indicates that an
  560.      annulling branch should be used.  See the discussion under
  561.      `sequence' below.  Stored in the `unchanging' field and printed as
  562.      `/u'.
  563. `INSN_FROM_TARGET_P (INSN)'
  564.      In an `insn' in a delay slot of a branch, indicates that the insn
  565.      is from the target of the branch.  If the branch insn has
  566.      `INSN_ANNULLED_BRANCH_P' set, this insn should only be executed if
  567.      the branch is taken.  For annulled branches with this bit clear,
  568.      the insn should be executed only if the branch is not taken.
  569.      Stored in the `in_struct' field and printed as `/s'.
  570. `CONSTANT_POOL_ADDRESS_P (X)'
  571.      Nonzero in a `symbol_ref' if it refers to part of the current
  572.      function's "constants pool".  These are addresses close to the
  573.      beginning of the function, and GNU CC assumes they can be addressed
  574.      directly (perhaps with the help of base registers).  Stored in the
  575.      `unchanging' field and printed as `/u'.
  576. `CONST_CALL_P (X)'
  577.      In a `call_insn', indicates that the insn represents a call to a
  578.      const function.  Stored in the `unchanging' field and printed as
  579.      `/u'.
  580. `LABEL_PRESERVE_P (X)'
  581.      In a `code_label', indicates that the label can never be deleted.
  582.      Labels referenced by a non-local goto will have this bit set.
  583.      Stored in the `in_struct' field and printed as `/s'.
  584. `SCHED_GROUP_P (INSN)'
  585.      During instruction scheduling, in an insn, indicates that the
  586.      previous insn must be scheduled together with this insn.  This is
  587.      used to ensure that certain groups of instructions will not be
  588.      split up by the instruction scheduling pass, for example, `use'
  589.      insns before a `call_insn' may not be separated from the
  590.      `call_insn'.  Stored in the `in_struct' field and printed as `/s'.
  591.    These are the fields which the above macros refer to:
  592. `used'
  593.      Normally, this flag is used only momentarily, at the end of RTL
  594.      generation for a function, to count the number of times an
  595.      expression appears in insns.  Expressions that appear more than
  596.      once are copied, according to the rules for shared structure
  597.      (*note Sharing::.).
  598.      In a `symbol_ref', it indicates that an external declaration for
  599.      the symbol has already been written.
  600.      In a `reg', it is used by the leaf register renumbering code to
  601.      ensure that each register is only renumbered once.
  602. `volatil'
  603.      This flag is used in `mem', `symbol_ref' and `reg' expressions and
  604.      in insns.  In RTL dump files, it is printed as `/v'.
  605.      In a `mem' expression, it is 1 if the memory reference is volatile.
  606.      Volatile memory references may not be deleted, reordered or
  607.      combined.
  608.      In a `symbol_ref' expression, it is used for machine-specific
  609.      purposes.
  610.      In a `reg' expression, it is 1 if the value is a user-level
  611.      variable.  0 indicates an internal compiler temporary.
  612.      In an insn, 1 means the insn has been deleted.
  613. `in_struct'
  614.      In `mem' expressions, it is 1 if the memory datum referred to is
  615.      all or part of a structure or array; 0 if it is (or might be) a
  616.      scalar variable.  A reference through a C pointer has 0 because
  617.      the pointer might point to a scalar variable.  This information
  618.      allows the compiler to determine something about possible cases of
  619.      aliasing.
  620.      In an insn in the delay slot of a branch, 1 means that this insn
  621.      is from the target of the branch.
  622.      During instruction scheduling, in an insn, 1 means that this insn
  623.      must be scheduled as part of a group together with the previous
  624.      insn.
  625.      In `reg' expressions, it is 1 if the register has its entire life
  626.      contained within the test expression of some loop.
  627.      In `subreg' expressions, 1 means that the `subreg' is accessing an
  628.      object that has had its mode promoted from a wider mode.
  629.      In `label_ref' expressions, 1 means that the referenced label is
  630.      outside the innermost loop containing the insn in which the
  631.      `label_ref' was found.
  632.      In `code_label' expressions, it is 1 if the label may never be
  633.      deleted.  This is used for labels which are the target of
  634.      non-local gotos.
  635.      In an RTL dump, this flag is represented as `/s'.
  636. `unchanging'
  637.      In `reg' and `mem' expressions, 1 means that the value of the
  638.      expression never changes.
  639.      In `subreg' expressions, it is 1 if the `subreg' references an
  640.      unsigned object whose mode has been promoted to a wider mode.
  641.      In an insn, 1 means that this is an annulling branch.
  642.      In a `symbol_ref' expression, 1 means that this symbol addresses
  643.      something in the per-function constants pool.
  644.      In a `call_insn', 1 means that this instruction is a call to a
  645.      const function.
  646.      In an RTL dump, this flag is represented as `/u'.
  647. `integrated'
  648.      In some kinds of expressions, including insns, this flag means the
  649.      rtl was produced by procedure integration.
  650.      In a `reg' expression, this flag indicates the register containing
  651.      the value to be returned by the current function.  On machines
  652.      that pass parameters in registers, the same register number may be
  653.      used for parameters as well, but this flag is not set on such uses.
  654. File: gcc.info,  Node: Machine Modes,  Next: Constants,  Prev: Flags,  Up: RTL
  655. Machine Modes
  656. =============
  657.    A machine mode describes a size of data object and the
  658. representation used for it.  In the C code, machine modes are
  659. represented by an enumeration type, `enum machine_mode', defined in
  660. `machmode.def'.  Each RTL expression has room for a machine mode and so
  661. do certain kinds of tree expressions (declarations and types, to be
  662. precise).
  663.    In debugging dumps and machine descriptions, the machine mode of an
  664. RTL expression is written after the expression code with a colon to
  665. separate them.  The letters `mode' which appear at the end of each
  666. machine mode name are omitted.  For example, `(reg:SI 38)' is a `reg'
  667. expression with machine mode `SImode'.  If the mode is `VOIDmode', it
  668. is not written at all.
  669.    Here is a table of machine modes.  The term "byte" below refers to an
  670. object of `BITS_PER_UNIT' bits (*note Storage Layout::.).
  671. `QImode'
  672.      "Quarter-Integer" mode represents a single byte treated as an
  673.      integer.
  674. `HImode'
  675.      "Half-Integer" mode represents a two-byte integer.
  676. `PSImode'
  677.      "Partial Single Integer" mode represents an integer which occupies
  678.      four bytes but which doesn't really use all four.  On some
  679.      machines, this is the right mode to use for pointers.
  680. `SImode'
  681.      "Single Integer" mode represents a four-byte integer.
  682. `PDImode'
  683.      "Partial Double Integer" mode represents an integer which occupies
  684.      eight bytes but which doesn't really use all eight.  On some
  685.      machines, this is the right mode to use for certain pointers.
  686. `DImode'
  687.      "Double Integer" mode represents an eight-byte integer.
  688. `TImode'
  689.      "Tetra Integer" (?) mode represents a sixteen-byte integer.
  690. `SFmode'
  691.      "Single Floating" mode represents a single-precision (four byte)
  692.      floating point number.
  693. `DFmode'
  694.      "Double Floating" mode represents a double-precision (eight byte)
  695.      floating point number.
  696. `XFmode'
  697.      "Extended Floating" mode represents a triple-precision (twelve
  698.      byte) floating point number.  This mode is used for IEEE extended
  699.      floating point.
  700. `TFmode'
  701.      "Tetra Floating" mode represents a quadruple-precision (sixteen
  702.      byte) floating point number.
  703. `CCmode'
  704.      "Condition Code" mode represents the value of a condition code,
  705.      which is a machine-specific set of bits used to represent the
  706.      result of a comparison operation.  Other machine-specific modes
  707.      may also be used for the condition code.  These modes are not used
  708.      on machines that use `cc0' (see *note Condition Code::.).
  709. `BLKmode'
  710.      "Block" mode represents values that are aggregates to which none of
  711.      the other modes apply.  In RTL, only memory references can have
  712.      this mode, and only if they appear in string-move or vector
  713.      instructions.  On machines which have no such instructions,
  714.      `BLKmode' will not appear in RTL.
  715. `VOIDmode'
  716.      Void mode means the absence of a mode or an unspecified mode.  For
  717.      example, RTL expressions of code `const_int' have mode `VOIDmode'
  718.      because they can be taken to have whatever mode the context
  719.      requires.  In debugging dumps of RTL, `VOIDmode' is expressed by
  720.      the absence of any mode.
  721. `SCmode, DCmode, XCmode, TCmode'
  722.      These modes stand for a complex number represented as a pair of
  723.      floating point values.  The floating point values are in `SFmode',
  724.      `DFmode', `XFmode', and `TFmode', respectively.
  725. `CQImode, CHImode, CSImode, CDImode, CTImode, COImode'
  726.      These modes stand for a complex number represented as a pair of
  727.      integer values.  The integer values are in `QImode', `HImode',
  728.      `SImode', `DImode', `TImode', and `OImode', respectively.
  729.    The machine description defines `Pmode' as a C macro which expands
  730. into the machine mode used for addresses.  Normally this is the mode
  731. whose size is `BITS_PER_WORD', `SImode' on 32-bit machines.
  732.    The only modes which a machine description must support are
  733. `QImode', and the modes corresponding to `BITS_PER_WORD',
  734. `FLOAT_TYPE_SIZE' and `DOUBLE_TYPE_SIZE'.  The compiler will attempt to
  735. use `DImode' for 8-byte structures and unions, but this can be
  736. prevented by overriding the definition of `MAX_FIXED_MODE_SIZE'.
  737. Alternatively, you can have the compiler use `TImode' for 16-byte
  738. structures and unions.  Likewise, you can arrange for the C type `short
  739. int' to avoid using `HImode'.
  740.    Very few explicit references to machine modes remain in the compiler
  741. and these few references will soon be removed.  Instead, the machine
  742. modes are divided into mode classes.  These are represented by the
  743. enumeration type `enum mode_class' defined in `machmode.h'.  The
  744. possible mode classes are:
  745. `MODE_INT'
  746.      Integer modes.  By default these are `QImode', `HImode', `SImode',
  747.      `DImode', and `TImode'.
  748. `MODE_PARTIAL_INT'
  749.      The "partial integer" modes, `PSImode' and `PDImode'.
  750. `MODE_FLOAT'
  751.      floating point modes.  By default these are `SFmode', `DFmode',
  752.      `XFmode' and `TFmode'.
  753. `MODE_COMPLEX_INT'
  754.      Complex integer modes.  (These are not currently implemented).
  755. `MODE_COMPLEX_FLOAT'
  756.      Complex floating point modes.  By default these are `SCmode',
  757.      `DCmode', `XCmode', and `TCmode'.
  758. `MODE_FUNCTION'
  759.      Algol or Pascal function variables including a static chain.
  760.      (These are not currently implemented).
  761. `MODE_CC'
  762.      Modes representing condition code values.  These are `CCmode' plus
  763.      any modes listed in the `EXTRA_CC_MODES' macro.  *Note Jump
  764.      Patterns::, also see *Note Condition Code::.
  765. `MODE_RANDOM'
  766.      This is a catchall mode class for modes which don't fit into the
  767.      above classes.  Currently `VOIDmode' and `BLKmode' are in
  768.      `MODE_RANDOM'.
  769.    Here are some C macros that relate to machine modes:
  770. `GET_MODE (X)'
  771.      Returns the machine mode of the RTX X.
  772. `PUT_MODE (X, NEWMODE)'
  773.      Alters the machine mode of the RTX X to be NEWMODE.
  774. `NUM_MACHINE_MODES'
  775.      Stands for the number of machine modes available on the target
  776.      machine.  This is one greater than the largest numeric value of any
  777.      machine mode.
  778. `GET_MODE_NAME (M)'
  779.      Returns the name of mode M as a string.
  780. `GET_MODE_CLASS (M)'
  781.      Returns the mode class of mode M.
  782. `GET_MODE_WIDER_MODE (M)'
  783.      Returns the next wider natural mode.  For example, the expression
  784.      `GET_MODE_WIDER_MODE (QImode)' returns `HImode'.
  785. `GET_MODE_SIZE (M)'
  786.      Returns the size in bytes of a datum of mode M.
  787. `GET_MODE_BITSIZE (M)'
  788.      Returns the size in bits of a datum of mode M.
  789. `GET_MODE_MASK (M)'
  790.      Returns a bitmask containing 1 for all bits in a word that fit
  791.      within mode M.  This macro can only be used for modes whose
  792.      bitsize is less than or equal to `HOST_BITS_PER_INT'.
  793. `GET_MODE_ALIGNMENT (M))'
  794.      Return the required alignment, in bits, for an object of mode M.
  795. `GET_MODE_UNIT_SIZE (M)'
  796.      Returns the size in bytes of the subunits of a datum of mode M.
  797.      This is the same as `GET_MODE_SIZE' except in the case of complex
  798.      modes.  For them, the unit size is the size of the real or
  799.      imaginary part.
  800. `GET_MODE_NUNITS (M)'
  801.      Returns the number of units contained in a mode, i.e.,
  802.      `GET_MODE_SIZE' divided by `GET_MODE_UNIT_SIZE'.
  803. `GET_CLASS_NARROWEST_MODE (C)'
  804.      Returns the narrowest mode in mode class C.
  805.    The global variables `byte_mode' and `word_mode' contain modes whose
  806. classes are `MODE_INT' and whose bitsizes are either `BITS_PER_UNIT' or
  807. `BITS_PER_WORD', respectively.  On 32-bit machines, these are `QImode'
  808. and `SImode', respectively.
  809. File: gcc.info,  Node: Constants,  Next: Regs and Memory,  Prev: Machine Modes,  Up: RTL
  810. Constant Expression Types
  811. =========================
  812.    The simplest RTL expressions are those that represent constant
  813. values.
  814. `(const_int I)'
  815.      This type of expression represents the integer value I.  I is
  816.      customarily accessed with the macro `INTVAL' as in `INTVAL (EXP)',
  817.      which is equivalent to `XWINT (EXP, 0)'.
  818.      There is only one expression object for the integer value zero; it
  819.      is the value of the variable `const0_rtx'.  Likewise, the only
  820.      expression for integer value one is found in `const1_rtx', the only
  821.      expression for integer value two is found in `const2_rtx', and the
  822.      only expression for integer value negative one is found in
  823.      `constm1_rtx'.  Any attempt to create an expression of code
  824.      `const_int' and value zero, one, two or negative one will return
  825.      `const0_rtx', `const1_rtx', `const2_rtx' or `constm1_rtx' as
  826.      appropriate.
  827.      Similarly, there is only one object for the integer whose value is
  828.      `STORE_FLAG_VALUE'.  It is found in `const_true_rtx'.  If
  829.      `STORE_FLAG_VALUE' is one, `const_true_rtx' and `const1_rtx' will
  830.      point to the same object.  If `STORE_FLAG_VALUE' is -1,
  831.      `const_true_rtx' and `constm1_rtx' will point to the same object.
  832. `(const_double:M ADDR I0 I1 ...)'
  833.      Represents either a floating-point constant of mode M or an
  834.      integer constant too large to fit into `HOST_BITS_PER_WIDE_INT'
  835.      bits but small enough to fit within twice that number of bits (GNU
  836.      CC does not provide a mechanism to represent even larger
  837.      constants).  In the latter case, M will be `VOIDmode'.
  838.      ADDR is used to contain the `mem' expression that corresponds to
  839.      the location in memory that at which the constant can be found.  If
  840.      it has not been allocated a memory location, but is on the chain
  841.      of all `const_double' expressions in this compilation (maintained
  842.      using an undisplayed field), ADDR contains `const0_rtx'.  If it is
  843.      not on the chain, ADDR contains `cc0_rtx'.  ADDR is customarily
  844.      accessed with the macro `CONST_DOUBLE_MEM' and the chain field via
  845.      `CONST_DOUBLE_CHAIN'.
  846.      If M is `VOIDmode', the bits of the value are stored in I0 and I1.
  847.      I0 is customarily accessed with the macro `CONST_DOUBLE_LOW' and
  848.      I1 with `CONST_DOUBLE_HIGH'.
  849.      If the constant is floating point (regardless of its precision),
  850.      then the number of integers used to store the value depends on the
  851.      size of `REAL_VALUE_TYPE' (*note Cross-compilation::.).  The
  852.      integers represent a floating point number, but not precisely in
  853.      the target machine's or host machine's floating point format.  To
  854.      convert them to the precise bit pattern used by the target
  855.      machine, use the macro `REAL_VALUE_TO_TARGET_DOUBLE' and friends
  856.      (*note Data Output::.).
  857.      The macro `CONST0_RTX (MODE)' refers to an expression with value 0
  858.      in mode MODE.  If mode MODE is of mode class `MODE_INT', it
  859.      returns `const0_rtx'.  Otherwise, it returns a `CONST_DOUBLE'
  860.      expression in mode MODE.  Similarly, the macro `CONST1_RTX (MODE)'
  861.      refers to an expression with value 1 in mode MODE and similarly
  862.      for `CONST2_RTX'.
  863. `(const_string STR)'
  864.      Represents a constant string with value STR.  Currently this is
  865.      used only for insn attributes (*note Insn Attributes::.) since
  866.      constant strings in C are placed in memory.
  867. `(symbol_ref:MODE SYMBOL)'
  868.      Represents the value of an assembler label for data.  SYMBOL is a
  869.      string that describes the name of the assembler label.  If it
  870.      starts with a `*', the label is the rest of SYMBOL not including
  871.      the `*'.  Otherwise, the label is SYMBOL, usually prefixed with
  872.      `_'.
  873.      The `symbol_ref' contains a mode, which is usually `Pmode'.
  874.      Usually that is the only mode for which a symbol is directly valid.
  875. `(label_ref LABEL)'
  876.      Represents the value of an assembler label for code.  It contains
  877.      one operand, an expression, which must be a `code_label' that
  878.      appears in the instruction sequence to identify the place where
  879.      the label should go.
  880.      The reason for using a distinct expression type for code label
  881.      references is so that jump optimization can distinguish them.
  882. `(const:M EXP)'
  883.      Represents a constant that is the result of an assembly-time
  884.      arithmetic computation.  The operand, EXP, is an expression that
  885.      contains only constants (`const_int', `symbol_ref' and `label_ref'
  886.      expressions) combined with `plus' and `minus'.  However, not all
  887.      combinations are valid, since the assembler cannot do arbitrary
  888.      arithmetic on relocatable symbols.
  889.      M should be `Pmode'.
  890. `(high:M EXP)'
  891.      Represents the high-order bits of EXP, usually a `symbol_ref'.
  892.      The number of bits is machine-dependent and is normally the number
  893.      of bits specified in an instruction that initializes the high
  894.      order bits of a register.  It is used with `lo_sum' to represent
  895.      the typical two-instruction sequence used in RISC machines to
  896.      reference a global memory location.
  897.      M should be `Pmode'.
  898.