diff options
author | Jeff Law <law@gcc.gnu.org> | 1996-04-04 22:58:46 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1996-04-04 22:58:46 -0700 |
commit | 97c5ec1d11af40a9a835c4d737a8048818f23849 (patch) | |
tree | 3325b879e883ee03d5e0e4d1fc523a17f0c12839 | |
parent | a5bbd4b8dcab7509e5c70dbd915bd84dc1d43810 (diff) | |
download | gcc-97c5ec1d11af40a9a835c4d737a8048818f23849.zip gcc-97c5ec1d11af40a9a835c4d737a8048818f23849.tar.gz gcc-97c5ec1d11af40a9a835c4d737a8048818f23849.tar.bz2 |
h8300.c (h8300_valid_machine_decl_attribute): Use underscores, not dashes in attributes.
* h8300/h8300.c (h8300_valid_machine_decl_attribute): Use
underscores, not dashes in attributes.
(h8300_funcvec_function_p): Corresponding changes.
(h8300_interrupt_function_p): Likewise.
From-SVN: r11671
-rw-r--r-- | gcc/config/h8300/h8300.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 25ccff5..0a156f2 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -2058,7 +2058,7 @@ h8300_interrupt_function_p (func) if (TREE_CODE (func) != FUNCTION_DECL) return 0; - a = lookup_attribute ("interrupt-handler", DECL_MACHINE_ATTRIBUTES (func)); + a = lookup_attribute ("interrupt_handler", DECL_MACHINE_ATTRIBUTES (func)); return a != NULL_TREE; } @@ -2074,7 +2074,7 @@ h8300_funcvec_function_p (func) if (TREE_CODE (func) != FUNCTION_DECL) return 0; - a = lookup_attribute ("function-vector", DECL_MACHINE_ATTRIBUTES (func)); + a = lookup_attribute ("function_vector", DECL_MACHINE_ATTRIBUTES (func)); return a != NULL_TREE; } @@ -2084,10 +2084,10 @@ h8300_funcvec_function_p (func) Supported attributes: - interrupt-handler: output a prologue and epilogue suitable for an + interrupt_handler: output a prologue and epilogue suitable for an interrupt handler. - function-vector: This function should be called through the + function_vector: This function should be called through the function vector. */ int @@ -2100,8 +2100,8 @@ h8300_valid_machine_decl_attribute (decl, attributes, attr, args) if (args != NULL_TREE) return 0; - if (is_attribute_p ("interrupt-handler", attr) - || is_attribute_p ("function-vector", attr)) + if (is_attribute_p ("interrupt_handler", attr) + || is_attribute_p ("function_vector", attr)) return TREE_CODE (decl) == FUNCTION_DECL; return 0; } |