iverilog/driver
Huang Rui 2c0995caca Fix fails to build with -fno-common or gcc-10
See also: https://bugs.gentoo.org/706366

gcc-10 and above flipped a default from -fcommon to -fno-common:
https://gcc.gnu.org/PR85678

Usually all it takes is to add a few 'extern' declarations and
move definitions from header files to modules. I've port iverilog
to gcc-10 accroding to this guide:
https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common

To fix this, I analyzed the code, and found ``pli_trace`` has been
defined at here:
https://github.com/steveicarus/iverilog/blob/v10_3/libveriuser/priv.c#L24

So I changed ``FILE* pli_trace;`` to ``extern FILE* pli_trace;``.

The var ``current_file`` only in ``cfparse_misc.h``, I changed it
from ``char *current_file;`` to ``extern char *current_file;`` and
declaring it in cflexor.lex

And then it works.

Signed-off-by: Huang Rui <vowstar@gmail.com>
(cherry picked from commit d49d26a5c5)
2020-01-30 18:43:24 +00:00
..
Makefile.in Rearrange compiler warning flags 2014-07-09 09:04:17 -07:00
cflexor.lex Fix fails to build with -fno-common or gcc-10 2020-01-30 18:43:24 +00:00
cfparse.y Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
cfparse_misc.h Fix fails to build with -fno-common or gcc-10 2020-01-30 18:43:24 +00:00
globals.h Update header files to use a more standard name to prevent rereading 2014-07-23 13:42:56 -07:00
iverilog.man.in Fix a typo in the man page 2019-03-16 12:42:09 +00:00
main.c Allow library files to be specified on the iverilog command line. 2016-10-02 19:17:24 +01:00
substit.c Easy changes for -Wmissing-prototypes 2014-07-10 14:07:30 -07:00