commit iverilog for openSUSE:Factory
Hello community,
here is the log from the commit of package iverilog for openSUSE:Factory checked in at 2019-07-28 10:23:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/iverilog (Old)
and /work/SRC/openSUSE:Factory/.iverilog.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "iverilog"
Sun Jul 28 10:23:03 2019 rev:7 rq:719298 version:10.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/iverilog/iverilog.changes 2016-03-26 15:25:50.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.iverilog.new.4126/iverilog.changes 2019-07-28 10:23:06.460567284 +0200
@@ -1,0 +2,14 @@
+Fri Jul 26 19:40:35 UTC 2019 - Stefan Brüns
From 5bb6c7f53a6ab5b44c282ba5b118927fd4f17e4f Mon Sep 17 00:00:00 2001 From: Martin Whitaker
Date: Sun, 2 Jun 2019 18:50:18 +0100 Subject: [PATCH] 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. --- Makefile.in | 1 + tgt-pcb/Makefile.in | 1 + vhdlpp/Makefile.in | 1 + vvp/Makefile.in | 1 + 4 files changed, 4 insertions(+) diff --git a/Makefile.in b/Makefile.in index 6c92581be..fff9534e5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -258,6 +258,7 @@ parse.cc: $(srcdir)/parse.y $(YACC) --verbose -t -p VL -d -o $@ $< parse.h: parse.cc mv parse.cc.h $@ 2>/dev/null || mv parse.hh $@ + touch $@ syn-rules.cc: $(srcdir)/syn-rules.y $(YACC) --verbose -t -p syn_ -o $@ $< diff --git a/tgt-pcb/Makefile.in b/tgt-pcb/Makefile.in index 9049f38fd..228ede553 100644 --- a/tgt-pcb/Makefile.in +++ b/tgt-pcb/Makefile.in @@ -91,6 +91,7 @@ fp.cc: $(srcdir)/fp.y $(YACC) --verbose -t -p fp -d -o $@ $< fp.h: fp.cc mv fp.cc.h $@ 2>/dev/null || mv fp.hh $@ + touch $@ ifeq (@WIN32@,yes) TGTLDFLAGS=-L.. -livl diff --git a/vhdlpp/Makefile.in b/vhdlpp/Makefile.in index 0a0f264d2..9bafaf100 100644 --- a/vhdlpp/Makefile.in +++ b/vhdlpp/Makefile.in @@ -120,6 +120,7 @@ parse.cc: $(srcdir)/parse.y $(YACC) --verbose -t -d -o $@ $< parse.h: parse.cc mv parse.cc.h $@ 2>/dev/null || mv parse.hh $@ + touch $@ lexor_keyword.o: lexor_keyword.cc parse.h diff --git a/vvp/Makefile.in b/vvp/Makefile.in index 998e38969..469972fbe 100644 --- a/vvp/Makefile.in +++ b/vvp/Makefile.in @@ -169,6 +169,7 @@ parse.cc: $(srcdir)/parse.y $(YACC) --verbose -t -d -o $@ $< parse.h: parse.cc mv parse.cc.h $@ 2>/dev/null || mv parse.hh $@ + touch $@ lexor.cc: $(srcdir)/lexor.lex $(LEX) -s -olexor.cc $(srcdir)/lexor.lex ++++++ fix-cfparse-include-order-causing-lto-type-mismatch.patch ++++++
From d58fde6f366bce4220a3cf4410d97a6bbec88a82 Mon Sep 17 00:00:00 2001 From: StefanBruens
Date: Fri, 26 Jul 2019 21:26:08 +0200 Subject: [PATCH] Fix redefinition of YYLTYPE struct caused by wrong include order
cfparse.h defines the YYLTYPE struct in case it has not been defined, and
also declares an extern YYLTYPE cflloc which is used in cflexor.
As cfparse_misc.h defines an extended YYLTYPE, the cflloc instance in
cfparse.c has this extended type, i.e. there is a type mismatch.
Changing the include order in cflexor causes both cflexor.c and
cfparse.c to use the definition from cfparse_misc.h.
This has been uncovered by GCC when using LTO:
---
gcc -flto=8 main.o substit.o cflexor.o cfparse.o -o iverilog
cfparse.h:105:16: warning: type of 'cflloc' does not match original declaration [-Wlto-type-mismatch]
105 | extern YYLTYPE cflloc;
| ^
cfparse.c:1162:9: note: type 'struct cfltype' should match type 'struct YYLTYPE'
1162 | YYLTYPE yylloc
| ^
cfparse.c:1162:9: note: 'cflloc' was previously declared here
cfparse.c:1162:9: note: code may be misoptimized unless '-fno-strict-aliasing' is used
---
---
driver/cflexor.lex | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/driver/cflexor.lex b/driver/cflexor.lex
index c6e3eb860..5e9e2f506 100644
--- a/driver/cflexor.lex
+++ b/driver/cflexor.lex
@@ -22,8 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-# include "cfparse.h"
# include "cfparse_misc.h"
+# include "cfparse.h"
# include "globals.h"
# include
participants (1)
-
root