File: gcc-10_multiple_definition.patch

package info (click to toggle)
f2j 0.8.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,604 kB
  • sloc: ansic: 18,992; java: 3,987; yacc: 3,804; sh: 153; makefile: 149
file content (29 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Author: Andreas Tille <tille@debian.org>
        Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Origin: https://lists.debian.org/debian-mentors/2020/08/msg00067.html
Last-Update: 2020-08-12
Bug-Debian: https://bugs.debian.org/957190
Description: Fix build issue with gcc-10

--- a/src/opcodes.h
+++ b/src/opcodes.h
@@ -47,7 +47,7 @@ extern char * append_descriptor[MAX_RETU
 extern char * toString_descriptor[MAX_RETURNS+1];
 
 /* descriptors for the ArraySpec class */
-char * array_spec_descriptor[MAX_RETURNS+1];
+extern char * array_spec_descriptor[MAX_RETURNS+1];
 
 /* descriptors of PrintStream's print() and println() methods */
 extern char * println_descriptor[MAX_RETURNS+1];
--- a/src/optimize.c
+++ b/src/optimize.c
@@ -46,7 +46,7 @@
 
 int optdebug = FALSE;
 
-char *unit_name;        /* name of this function/subroutine                  */
+extern char *unit_name;        /* name of this function/subroutine                  */
 
 /*****************************************************************************
  * Function prototypes:                                                      *