]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/doc/gcc/gcc-command-options/machine-dependent-options/h8-300-options.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / doc / gcc / gcc-command-options / machine-dependent-options / h8-300-options.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. program:: H8/300
7
8 .. _h8-300-options:
9
10 H8/300 Options
11 ^^^^^^^^^^^^^^
12
13 These :samp:`-m` options are defined for the H8/300 implementations:
14
15 .. option:: -mrelax
16
17 Shorten some address references at link time, when possible; uses the
18 linker option :option:`-relax`. See `Using ld <https://sourceware.org/binutils/docs/ld/H8_002f300.html>`_
19 for a fuller description.
20
21 .. option:: -mh
22
23 Generate code for the H8/300H.
24
25 .. option:: -ms
26
27 Generate code for the H8S.
28
29 .. option:: -mn
30
31 Generate code for the H8S and H8/300H in the normal mode. This switch
32 must be used either with :option:`-mh` or :option:`-ms`.
33
34 .. option:: -ms2600
35
36 Generate code for the H8S/2600. This switch must be used with :option:`-ms`.
37
38 .. option:: -mexr
39
40 Extended registers are stored on stack before execution of function
41 with monitor attribute. Default option is :option:`-mexr`.
42 This option is valid only for H8S targets.
43
44 .. option:: -mno-exr
45
46 Extended registers are not stored on stack before execution of function
47 with monitor attribute. Default option is :option:`-mno-exr`.
48 This option is valid only for H8S targets.
49
50 .. option:: -mexr
51
52 Default setting; overrides :option:`-mno-exr`.
53
54 .. option:: -mint32
55
56 Make ``int`` data 32 bits by default.
57
58 .. option:: -malign-300
59
60 On the H8/300H and H8S, use the same alignment rules as for the H8/300.
61 The default for the H8/300H and H8S is to align longs and floats on
62 4-byte boundaries.
63 :option:`-malign-300` causes them to be aligned on 2-byte boundaries.
64 This option has no effect on the H8/300.