diff mbox series

[9/11] use xxx_no_warning APIs in rl78 back end

Message ID 49a6765f-5879-5fe2-2d8f-7ce52213a824@redhat.com
State New
Headers show
Series warning control by group and location (PR 74765) | expand

Commit Message

Martin Sebor May 24, 2021, 10:15 p.m. UTC
The attached patch replaces the uses of TREE_NO_WARNING in the rl78
back end.
diff mbox series

Patch

Add support for per-location warning groups.

gcc/ChangeLog:

	* config/rl78/rl78.c (rl78_handle_naked_attribute): Replace a direct
	use of TREE_NO_WARNING with set_no_warning.

diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c
index 4c34949a97f..1055d423c83 100644
--- a/gcc/config/rl78/rl78.c
+++ b/gcc/config/rl78/rl78.c
@@ -847,7 +847,7 @@  rl78_handle_naked_attribute (tree * node,
   /* Disable warnings about this function - eg reaching the end without
      seeing a return statement - because the programmer is doing things
      that gcc does not know about.  */
-  TREE_NO_WARNING (* node) = 1;
+  set_no_warning (* node);
 
   return NULL_TREE;
 }