Author: kevans
Date: Fri Sep 25 01:16:01 2020
New Revision: 366135
URL: https://svnweb.freebsd.org/changeset/base/366135

Log:
  dtc: fix the -fno-common build
  
  This is a direct commit to stable/11, as GPL dtc has been removed in head.
  An identical fix was made to stable/12 in r360382.
  
  -fno-common is the default in GCC10/LLVM11.

Modified:
  stable/11/contrib/dtc/dtc-lexer.l

Modified: stable/11/contrib/dtc/dtc-lexer.l
==============================================================================
--- stable/11/contrib/dtc/dtc-lexer.l   Fri Sep 25 00:58:10 2020        
(r366134)
+++ stable/11/contrib/dtc/dtc-lexer.l   Fri Sep 25 01:16:01 2020        
(r366135)
@@ -42,7 +42,7 @@ LINECOMMENT   "//".*\n
 YY_BUFFER_STATE include_stack[MAX_INCLUDE_NESTING];
 int include_stack_pointer = 0;
 
-YYLTYPE yylloc;
+extern YYLTYPE yylloc;
 extern bool treesource_error;
 
 /* CAUTION: this will stop working if we ever use yyless() or yyunput() */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to