diff mbox

[committed] PR77847: Add FALLTRHOUGH comment to fix build error

Message ID e5770257-c89f-b7c7-569c-8669438b175b@linux.vnet.ibm.com
State New
Headers show

Commit Message

Kelvin Nilsen Oct. 5, 2016, 1:33 p.m. UTC
This trivial/obvious patch was committed without review as svn revision
240783.  The patch fixes a compile-time error that recently surfaced
with big-endian Power architecture builds.

libcpp/ChangeLog:

2016-10-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>

	PR target/77847
	* lex.c (search_line_fast): Add a FALLTHROUGH comment to correct
	compiler error in the version of this function that is
	conditionally compiled when GCC_VERSION >= 4005 and both
	__ALTIVEC__ and __BIG_ENDIAN__ symbols are defined.
diff mbox

Patch

Index: libcpp/lex.c
===================================================================
--- libcpp/lex.c	(revision 240755)
+++ libcpp/lex.c	(working copy)
@@ -733,6 +733,7 @@ 
 	if (l != 0)
 	  break;
 	s += sizeof(unsigned long);
+	/* FALLTHROUGH */
       case 2:
 	l = u.l[i++];
 	if (l != 0)