Huang Rui
ac3ef217c3
Fix parallel build race with dep/ directory
...
Pattern rules that move .d files into dep/ do not depend on the dep
directory target, so parallel make can attempt the move before the
directory exists.
Add dep as an order-only prerequisite to all affected pattern rules.
Bug: https://bugs.gentoo.org/880921
Bug: https://bugs.gentoo.org/911647
Bug: https://bugs.gentoo.org/917344
Closes: https://github.com/steveicarus/iverilog/issues/1314
Signed-off-by: Huang Rui <vowstar@gmail.com>
2026-03-27 11:29:24 +08:00
Cary R
15d6e83f8d
Cleanup cppcheck
2026-02-24 23:53:57 -08:00
Cary R
9da5c1868f
New cppcheck cleanup
2026-02-06 15:06:28 -08:00
Cary R
e51ce2a8e9
Cleanup vhdl and most of vvp cppcheck issues
2026-01-19 22:54:45 -08:00
Cary R
951ede0922
A bunch more cppcheck cleanup
2026-01-13 01:25:01 -08:00
Cary R
c172a0d3a7
More cppcheck cleanup
2026-01-05 18:59:08 -08:00
Cary R
44611f8301
Add missing override in vhdlpp
2025-12-08 20:58:07 -08:00
Cary R
95ffc97f5f
Some cppcheck cleanup for vhdlpp
2025-12-08 20:57:44 -08:00
Cary R
fcb543d6e5
Some cppcheck cleanup
2025-10-12 17:37:50 -07:00
Martin Whitaker
9c62154924
Fix some new compiler warnings seen when using GCC 15 and clang 21.
...
No functional changes.
2025-10-12 22:23:24 +01:00
Martin Whitaker
4372560290
Post-snapshot cleanup
2025-10-12 11:32:34 +01:00
Martin Whitaker
3e7cc4eac2
Creating snapshot s20251012
2025-10-12 11:32:34 +01:00
Cary R
2948e9a89f
Update cppcheck to use c++11
2024-02-05 02:21:24 -08:00
Cary R
dc047799d6
Update displayed Copyright
2024-01-20 17:52:04 -08:00
mole99
b0c1eab51e
Move textfiles to documentation
2023-06-09 13:30:44 +02:00
Stephen Williams
03f912dc55
Clean up warnings
...
Clean up warnings that show up on newer compilers. Many of these warnings
are related to obsolete c library features or language features. This does
not clear up warnings in code generated by bison or flex.
2022-12-18 10:18:10 -05:00
Martin Whitaker
ecbbb60fb6
Remove "using namespace std" from compiler header files and fix the fallout.
2021-11-04 16:55:03 +00:00
Cary R
c978d28c09
Update main component Copyright to 2021
2021-01-10 14:32:30 -08:00
Martin Whitaker
aae3a570c2
Fix build with clang.
2021-01-03 10:48:21 +00:00
Cary R
a56747b747
Update vhdlpp with changes suggested by cppcheck
2021-01-02 13:36:24 -08:00
Cary R
1d318c4393
Update cppcheck to not run posix and add some -U flags
2021-01-02 13:23:59 -08:00
Martin Whitaker
51a171a399
Fix warnings about implicit copy assignments.
2021-01-02 14:49:09 +00:00
Cary R
e633fcc199
Initial fix for GH449
2020-12-28 09:56:49 -08:00
Martin Whitaker
8e4cc8e887
Use GNU make pattern rules to handle multiple file output from bison.
...
With a pattern rule, the recipe will only be executed once, even when
the rule has multiple targets. Using this to handle the output from
bison is included as an example in the GNU make manual.
This fixes the makefiles so that bison-generated header files will be
regenerated if they are deleted.
2020-07-30 16:27:01 +01:00
Henner Zeller
5b699c1be7
Bison includes its generated header in *.cc. Generate with correct name.
...
The current bison (3.7) generates a *.cc file that includes the header
it generated. For parse.cc this would be parse.hh. Right now, we rename
this header to have a common name used in other files, but this results
in a compile error for the parse.cc file:
parse.cc:462:10: fatal error: parse.hh: No such file or directory
462 | #include "parse.hh"
| ^~~~~~~~~~
Fix this by telling bison to output the header file to the correct
filename in the first place so that we don't have to rename it.
(using the --defines instead of -d option).
This looks like a bison specific option not available in Posix yacc;
but looks like we're requiring bison anyway.
Signed-off-by: Henner Zeller <h.zeller@acm.org>
2020-07-29 15:29:08 -07:00
Huang Rui
11001f58d5
Thoroughly fix parallel installation issues
...
In PR #300 , @xdch47 pointed out a stable way to fix parallel
installation problems.
This fix applied the method, thanks!
Signed-off-by: Huang Rui <vowstar@gmail.com>
2020-02-12 22:42:04 +08:00
Huang Rui
0100c0bc5c
[3/20]vhdlpp/Makefile.in:fix install timestamp check
...
Fix bug: https://bugs.gentoo.org/705412
Fix bug: https://github.com/gentoo/gentoo/pull/14096
Related: https://github.com/steveicarus/iverilog/pull/294
Signed-off-by: Huang Rui <vowstar@gmail.com>
2020-02-12 22:08:40 +08:00
Cary R
ea4e41207c
Update cppcheck standards that are checked
2019-09-30 22:14:15 -07:00
Nicholas Sielicki
031caca8ca
replace deprecated yacc directives
...
bison 3.4.2 complains when encountering '%pure-parser':
"warning: deprecated directive, use ‘%define api.pure’"
A quick google suggests this option has been around since at least
2012, maybe longer, so probably safe to replace.
Signed-off-by: Nicholas Sielicki <sielicki@yandex.com>
2019-09-29 18:19:45 -05:00
Martin Whitaker
5bb6c7f53a
Fix makefile rules for header files generated by bison.
...
bison 3.4.1 writes the header file before the c++ file. Our makefile
rules make the header files depend on the c++ files, so we need to
fix the timestamps accordingly.
2019-06-02 18:50:18 +01:00
Martin Whitaker
3612076943
Undo redefinition of unique_ptr at end of header files.
...
It seems that clang both defines __cplusplus < 201103L and provides
unique_ptr (GitHub issue #215 ).
2018-11-02 21:22:10 +00:00
Martin Whitaker
78317a2799
Fix auto_ptr deprecated warnings when building with recent GCC.
2018-10-06 17:15:31 +01:00
Martin Whitaker
87c01c55c0
Don't allow non-vectorable arguments to $signed/$unsigned.
...
This led to an assertion failure in many cases (see br1029).
1364-2012 indicates it is illegal.
2018-05-14 22:13:56 +01:00
Cary R
f03033e612
Update flex destroy routines to work for version 2.6 and greater
2017-11-16 19:11:50 -08:00
Staf Verhaegen
447f941f35
[vhdlpp]Added to_bit and to_bitvector standard functions
2016-11-27 01:28:39 +01:00
Maciej Suminski
151f061298
vhdlpp: Removed unused parameters to mute warnings
2016-09-19 12:53:41 -07:00
Maciej Suminski
aaf0a9e623
vhdlpp: Accept uppercase letters in based literals
2016-09-19 12:46:24 -07:00
Maciej Suminski
5dd2e6a7c8
vhdlpp: Corrected standard library function headers
2016-09-01 12:08:44 +02:00
Maciej Suminski
8ba3d62071
vhdlpp: Better resize() implementation.
...
Previous version did not work well with signed expressions or expressions that
were temporarily resized (e.g. a + 32'd42, where a is a[7:0]).
2016-09-01 12:08:44 +02:00
Maciej Suminski
bab39dae19
vhdlpp: Some of the standard library functions are imported only on request
...
Previously they have been always enabled, now it is required to put a
'use' directive.
2016-09-01 12:08:44 +02:00
Maciej Suminski
089dd037d6
vhdlpp: Use the wider variable size for arith operations on (un)signed
2016-09-01 12:08:44 +02:00
Maciej Suminski
25f4a54852
vhdlpp: Subprograms are matched once. ExpFunc::probe_type() return exact type
2016-09-01 12:08:44 +02:00
Maciej Suminski
8f86004100
vhdlpp: Clearer error messages
2016-09-01 12:08:44 +02:00
Maciej Suminski
07543315cf
vhdlpp: Stricter array type matching
...
Arrays type match if they have a common parent, instead of the
element type. Now (un)signed & std_logic_vector types do not match,
as it should be in VHDL.
2016-09-01 12:08:43 +02:00
Maciej Suminski
fe77b0ac87
vhdlpp: VTypeArray::dimensions() returns std::vector<range_t>
2016-09-01 12:08:43 +02:00
Maciej Suminski
643a3f2f2c
vhdlpp: Do not evaluate generics.
...
They might change depending on the instance, so they cannot be evaluated using the default value.
2016-09-01 12:08:43 +02:00
Maciej Suminski
ed3e67926f
vhdlpp: Evaluate conditional signal assignments upon simulation start.
2016-09-01 12:08:43 +02:00
Maciej Suminski
798adc9863
vhdlpp: Support for unary sign operator.
2016-09-01 12:08:43 +02:00
Maciej Suminski
9e95ae5859
vhdlpp: Moved Exp*::dump() methods from debug.cc to expression_debug.cc.
2016-09-01 12:08:39 +02:00
Cary R
446e825ed3
Fix space issues
2016-08-14 19:37:40 -07:00