h8300.c (h8300_init_once): Allow -mn switch only if -mh or -ms present.
authorVijay L. Khuspe <vijayk1@kpit.com>
Wed, 20 Nov 2002 04:54:39 +0000 (04:54 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 20 Nov 2002 04:54:39 +0000 (04:54 +0000)
commit39ba95b5e120cd3ed103d53b6c491f3cc68ec0e1
tree48b4b9a94894735d54b7be63a726ad11028960f4
parentdd768f5f255f86bb60893f823b0ffa21ae85890d
h8300.c (h8300_init_once): Allow -mn switch only if -mh or -ms present.

* config/h8300/h8300.c (h8300_init_once): Allow -mn switch
only if -mh or -ms present.
(h8300_eightbit_constant_address_p): Support the normal mode.
(h8300_tiny_constant_address_p): Likewise.
* config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
(POINTER_SIZE): Add 16 bit pointer for the normal mode.
(Pmode): Evaluate to HImode for the normal mode.
(SIZE_TYPE): Evaluate to unsigned int for normal mode.
(PTRDIFF_TYPE): Evaluate to int for the normal mode.
(ASM_WORD_OP): Evaluate to word for the normal mode.
* config/h8300/h8300.md (tablejump_normal_mode): New.
(indirect_jump_normal_mode): New.
* config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
directory.
(MULTILIB_DIRNAMES): Create target dependent directory
'normal'.
        (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
* doc/invoke.texi (gccoptlist): Describe the new switch -mn.

From-SVN: r59285
gcc/ChangeLog
gcc/config/h8300/h8300.c
gcc/config/h8300/h8300.h
gcc/config/h8300/h8300.md
gcc/config/h8300/t-h8300
gcc/doc/invoke.texi