arm.c (arm_pr_long_calls, [...]): Use struct.

* config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
	arm_pr_long_calls_off): Use struct.
	* config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
	: Similarly.
	Don't include cpplib.h.
	* config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
	sh_pr_nosave_low_regs): Similarly.

From-SVN: r60757
This commit is contained in:
Neil Booth 2003-01-01 19:39:19 +00:00 committed by Neil Booth
parent 0f18b2b080
commit 231b51a160
4 changed files with 18 additions and 9 deletions

View File

@ -1,3 +1,13 @@
2003-01-01 Neil Booth <neil@daikokuya.co.uk>
* config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
arm_pr_long_calls_off): Use struct.
* config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
: Similarly.
Don't include cpplib.h.
* config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
sh_pr_nosave_low_regs): Similarly.
2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c: Include cpplib.h.

View File

@ -2004,21 +2004,21 @@ static arm_pragma_enum arm_pragma_long_calls = OFF;
void
arm_pr_long_calls (pfile)
cpp_reader * pfile ATTRIBUTE_UNUSED;
struct cpp_reader * pfile ATTRIBUTE_UNUSED;
{
arm_pragma_long_calls = LONG;
}
void
arm_pr_no_long_calls (pfile)
cpp_reader * pfile ATTRIBUTE_UNUSED;
struct cpp_reader * pfile ATTRIBUTE_UNUSED;
{
arm_pragma_long_calls = SHORT;
}
void
arm_pr_long_calls_off (pfile)
cpp_reader * pfile ATTRIBUTE_UNUSED;
struct cpp_reader * pfile ATTRIBUTE_UNUSED;
{
arm_pragma_long_calls = OFF;
}

View File

@ -40,7 +40,6 @@ Boston, MA 02111-1307, USA. */
#include "function.h"
#include "toplev.h"
#include "c-pragma.h"
#include "cpplib.h"
#include "tm_p.h"
#include "ggc.h"
#include "target.h"
@ -1077,14 +1076,14 @@ bit_memory_operand (op, mode)
void
h8300_pr_interrupt (pfile)
cpp_reader *pfile ATTRIBUTE_UNUSED;
struct cpp_reader *pfile ATTRIBUTE_UNUSED;
{
interrupt_handler = 1;
}
void
h8300_pr_saveall (pfile)
cpp_reader *pfile ATTRIBUTE_UNUSED;
struct cpp_reader *pfile ATTRIBUTE_UNUSED;
{
pragma_saveall = 1;
}

View File

@ -5721,21 +5721,21 @@ initial_elimination_offset (from, to)
void
sh_pr_interrupt (pfile)
cpp_reader *pfile ATTRIBUTE_UNUSED;
struct cpp_reader *pfile ATTRIBUTE_UNUSED;
{
pragma_interrupt = 1;
}
void
sh_pr_trapa (pfile)
cpp_reader *pfile ATTRIBUTE_UNUSED;
struct cpp_reader *pfile ATTRIBUTE_UNUSED;
{
pragma_interrupt = pragma_trapa = 1;
}
void
sh_pr_nosave_low_regs (pfile)
cpp_reader *pfile ATTRIBUTE_UNUSED;
struct cpp_reader *pfile ATTRIBUTE_UNUSED;
{
pragma_nosave_low_regs = 1;
}