This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fixinc patch from 5 years ago :-O !!


It seems Alpha's compiler can cope with a missing semi-colon.
GCC can't.  To be applied to top of tree momentarily.

Index: tests/base/net/if.h
===================================================================
--- tests/base/net/if.h (revision 0)
+++ tests/base/net/if.h (revision 0)
@@ -0,0 +1,14 @@
+/*  DO NOT EDIT THIS FILE.
+
+    It has been auto-edited by fixincludes from:
+
+       "fixinc/tests/inc/net/if.h"
+
+    This had to be done to correct non-standard usages in the
+    original, manufacturer supplied header file.  */
+
+
+
+#if defined( ALPHA_IF_SEMICOLON_CHECK )
+     struct sockaddr vmif_paddr;       /** protocol address */
+#endif  /* ALPHA_IF_SEMICOLON_CHECK */
Index: inclhack.def
===================================================================
--- inclhack.def        (revision 144486)
+++ inclhack.def        (working copy)
@@ -563,6 +563,19 @@


 /*
+ *  Fix missing semicolon on Alpha OSF/4 in <net/if.h>
+ */
+fix = {
+    hackname  = alpha_if_semicolon;
+    files     = net/if.h;
+    select    = "struct[ \t]+sockaddr[ \t]+vmif_paddr[ \t]+/\\*";
+    c_fix     = format;
+    c_fix_arg = "struct sockaddr vmif_paddr;\t/*";
+    test_text = '     struct  sockaddr vmif_paddr     /* protocol address */';
+};
+
+
+/*
  * Remove erroneous parentheses in sym.h on Alpha OSF/1.
  */
 fix = {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]