File: 0005-Value.cmo-needs-LoopAnalysis.cmo.patch

package info (click to toggle)
frama-c 20220511-manganese-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 66,472 kB
  • sloc: ml: 278,832; ansic: 47,093; sh: 4,823; makefile: 3,618; javascript: 2,436; python: 1,919; perl: 897; lisp: 293; xml: 62
file content (28 lines) | stat: -rw-r--r-- 995 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Mehdi Dogguy <mehdi@debian.org>
Date: Wed, 21 Dec 2016 14:11:25 +0100
Subject: Value.cmo needs LoopAnalysis.cmo

Forwarded: https://bts.frama-c.com/view.php?id=2326

Value plugin needs LoopAnalysis, but appears first during the linking
phase. In order to workaround that, we move it before Value.cmo in the
PLUGIN_CMO_LIST variable.
---
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

Index: frama-c/Makefile
===================================================================
--- frama-c.orig/Makefile	2022-03-20 01:33:54.427739729 +0100
+++ frama-c/Makefile	2022-03-20 01:33:54.423739704 +0100
@@ -1203,6 +1203,10 @@
 CMX	= $(CMO:.cmo=.cmx)
 CMI	= $(CMO:.cmo=.cmi)
 
+PLUGIN_CMO_LIST:=$(subst $(FRAMAC_PLUGIN)/top/Value.cmo,\
+	$(FRAMAC_PLUGIN)/top/LoopAnalysis.cmo $(FRAMAC_PLUGIN)/top/Value.cmo,\
+	$(filter-out $(FRAMAC_PLUGIN)/top/LoopAnalysis.cmo, $(PLUGIN_CMO_LIST)))
+
 ALL_CMO	= $(CMO) $(PLUGIN_CMO_LIST) $(STARTUP_CMO)
 ALL_CMX	= $(CMX) $(PLUGIN_CMX_LIST) $(STARTUP_CMX)