Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007738OCamlcompiler driverpublic2018-02-21 10:272018-02-21 11:45
Assigned Togasche 
PlatformOSOS Version
Product Version4.06.1 
Target VersionFixed in Version4.07.0+dev 
Summary0007738: Asmlink should also reset ccobjs/ccopts
DescriptionWhen using the compiler-libs in a program and trying to compile several source codes I noticed some options to gcc accumulated from one compilation to the next, despite I've tried to cleaned as many global variables as I could, including via Asmlink.reset().

Problem seems to be that the aforementioned reset function does not clean lib_ccobjs or lib_ccopts.

A quick test suggest that cleaning those does fix my issue without introducing any bug I could notice.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
gasche (developer)
2018-02-21 10:50

These variables are reset by Bytelibrarian.reset and Bytelink.reset, so indeed it seems correct to reset them in asmcomp/ modules that set them. Would you care to submit a Pull Request?
rixed (reporter)
2018-02-21 11:36

Cf. [^]
gasche (developer)
2018-02-21 11:45

The soon-to-be-merged PR resolves the issue. Thanks!

- Issue History
Date Modified Username Field Change
2018-02-21 10:27 rixed New Issue
2018-02-21 10:50 gasche Note Added: 0018894
2018-02-21 10:50 gasche Status new => confirmed
2018-02-21 11:36 rixed Note Added: 0018895
2018-02-21 11:45 gasche Note Added: 0018896
2018-02-21 11:45 gasche Status confirmed => resolved
2018-02-21 11:45 gasche Fixed in Version => 4.07.0+dev
2018-02-21 11:45 gasche Resolution open => fixed
2018-02-21 11:45 gasche Assigned To => gasche

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker