iverilog/libveriuser
Huang Rui d49d26a5c5
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>
2020-01-29 00:08:59 +08:00
..
Makefile.in Update cppcheck standards that are checked 2019-09-30 22:14:15 -07:00
a_close.c
a_compare_handles.c
a_configure.c
a_fetch_argc.c Easy changes for -Wmissing-prototypes 2014-07-10 14:07:30 -07:00
a_fetch_argv.c Easy changes for -Wmissing-prototypes 2014-07-10 14:07:30 -07:00
a_fetch_dir.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
a_fetch_fullname.c
a_fetch_location.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
a_fetch_param.c Use uintptr_t/intptr_t when casting between pointer and integer. 2015-05-05 23:00:09 +01:00
a_fetch_range.c
a_fetch_tfarg.c
a_fetch_time.c
a_fetch_type.c
a_fetch_type_str.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
a_fetch_value.c
a_handle_by_name.c
a_handle_hiconn.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
a_handle_object.c
a_handle_parent.c
a_handle_simulated_net.c
a_handle_tfarg.c
a_initialize.c
a_next.c
a_next_bit.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
a_next_port.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
a_next_topmod.c
a_object_of_type.c
a_product_version.c
a_set_value.c
a_vcl.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
a_version.c
asynch.c
config.h.in Update header files to use a more standard name to prevent rereading 2014-07-23 13:42:56 -07:00
cppcheck.sup Add cppcheck suppressions for libveriuser 2015-12-19 19:56:49 -08:00
delay.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
exprinfo.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
finish.c
getcstringp.c
getinstance.c
getlongp.c
getp.c
getsimtime.c Spelling fixes in C and C++ comments 2015-06-04 15:00:29 -07:00
io_print.c Remove missing parameter warnings 2014-07-09 14:16:57 -07:00
math.c
mc_scan_plusargs.c
nodeinfo.c Easy changes for -Wmissing-prototypes 2014-07-10 14:07:30 -07:00
nump.c Easy changes for -Wmissing-prototypes 2014-07-10 14:07:30 -07:00
priv.c
priv.h Fix fails to build with -fno-common or gcc-10 2020-01-29 00:08:59 +08:00
putlongp.c
putp.c
spname.c
typep.c
veriusertfs.c Fix invalid cast of TF sizetf callback. 2018-10-06 22:56:04 +01:00
workarea.c