Package: fteqcc / 3343+svn3400-4

Metadata

Package Version Patches format
fteqcc 3343+svn3400-4 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
Avoid multiple definitions of some global variables.patch | (download)

qcc.h | 30 15 + 15 - 0 !
qcc_pr_comp.c | 4 2 + 2 - 0 !
qcc_pr_lex.c | 2 1 + 1 - 0 !
qccmain.c | 5 5 + 0 - 0 !
4 files changed, 23 insertions(+), 18 deletions(-)

 avoid multiple definitions of some global variables

gcc 10 defaults to -fno-common, which means that the same global
variable being defined by multiple translation units (roughly, C source
files) causes a linking error. This is similar to the behaviour of
global functions, and C++'s "one-definition rule". The way to get a
global variable shared between translation units is to declare it as
extern (usually in a header file), and then ensure that exactly one
translation unit contains a definition.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug-Debian: https://bugs.debian.org/957237