[PATCH,committed] PR77847: Add FALLTRHOUGH comment to fix build error
Kelvin Nilsen
kdnilsen@linux.vnet.ibm.com
Wed Oct 5 13:34:00 GMT 2016
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.
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)
More information about the Gcc-patches
mailing list