Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 2.0.9
* Add `__loop_condition` labels before syntactic loop conditions (#197).
* Add attribute `goblint_cil_pulledup` to static variables pulled up from local scope to global scope.

## 2.0.8
* Fix 32bit `Machdep` generation on 64bit host (#195).
Expand Down
2 changes: 2 additions & 0 deletions src/frontc/cabs2cil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5948,6 +5948,8 @@ and createLocal ?allow_var_decl:(allow_var_decl=true) ((_, sto, _, _) as specs)
let vi = makeVarInfoCabs ~isformal:false
~isglobal:true
loc specs (newname, ndt, a) in
(* Mark it as pulled up from a local static variable. *)
vi.vattr <- Attr("goblint_cil_pulledup", []) :: vi.vattr;
(* However, we have a problem if a real global appears later with the
name that we have happened to choose for this one. Remember these names
for later. *)
Expand Down
Loading