diff mbox

Make vax backend -Wfallthru compliant

Message ID 7229d956-190e-36de-ac68-aec553522fac@redhat.com
State New
Headers show

Commit Message

Jeff Law Oct. 25, 2016, 10:32 p.m. UTC
This adds /* FALLTHRU */ comments to the vax backend.  It's the backend 
changes necessary to build with the trunk.  There's also a change for 
lra-constraints, but I'll send that separately.

Applied to the trunk.

Jeff
commit 1af18c59cb158024a77068b99875cd7db9d8b8bf
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Tue Oct 25 22:31:57 2016 +0000

    	* config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
    	(vax_notice_update_cc): Likewise.
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241542 138bc75d-0d04-0410-961f-82ee72b054a4
diff mbox

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b442d54..465761f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@ 
+2016-10-25  Jeff Law  <law@redhat.com>
+
+	* config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
+	(vax_notice_update_cc): Likewise.
+
 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
 
 	* config.gcc (sparc*-*-solaris2*): Adjust.
diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c
index 732ebee..60793268 100644
--- a/gcc/config/vax/vax.c
+++ b/gcc/config/vax/vax.c
@@ -678,6 +678,7 @@  vax_address_cost_1 (rtx addr)
     {
     case PRE_DEC:
       predec = 1;
+      /* FALLTHRU */
     case REG:
     case SUBREG:
     case POST_INC:
@@ -1084,6 +1085,7 @@  vax_notice_update_cc (rtx exp, rtx insn ATTRIBUTE_UNUSED)
 	    case NEG:
 	      if (GET_MODE_CLASS (GET_MODE (exp)) == MODE_FLOAT)
 		break;
+	      /* FALLTHRU */
 	    case AND:
 	    case IOR:
 	    case XOR: