diff options
Diffstat (limited to 'sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch')
-rw-r--r-- | sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch b/sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch new file mode 100644 index 000000000000..4a6914291a18 --- /dev/null +++ b/sci-electronics/iverilog/files/iverilog-0.9.1-gcc45.patch @@ -0,0 +1,37 @@ +Fixing build with gcc 4.5 + +https://bugs.gentoo.org/show_bug.cgi?id=319361 + +--- pform_disciplines.cc ++++ pform_disciplines.cc +@@ -27,8 +27,8 @@ + map<perm_string,ivl_discipline_t> disciplines; + map<perm_string,ivl_nature_t> access_function_nature; + +-static perm_string nature_name = perm_string::perm_string(); +-static perm_string nature_access = perm_string::perm_string(); ++static perm_string nature_name = perm_string(); ++static perm_string nature_access = perm_string(); + + void pform_start_nature(const char*name) + { +@@ -82,8 +82,8 @@ + // expressions that use the access function can find it. + access_function_nature[nature_access] = tmp; + +- nature_name = perm_string::perm_string(); +- nature_access = perm_string::perm_string(); ++ nature_name = perm_string(); ++ nature_access = perm_string(); + } + + +@@ -171,7 +171,7 @@ + FILE_NAME(tmp, loc); + + /* Clear the static variables for the next item. */ +- discipline_name = perm_string::perm_string(); ++ discipline_name = perm_string(); + discipline_domain = IVL_DIS_NONE; + discipline_potential = 0; + discipline_flow = 0; |