D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6757 - Expose compiler switches behind -release separately
Summary: Expose compiler switches behind -release separately
Status: RESOLVED DUPLICATE of issue 6752
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-02 01:53 UTC by Benjamin Thaut
Modified: 2015-06-09 05:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Benjamin Thaut 2011-10-02 01:53:38 UTC
When building with -release multiple compiler flags get enabled at the same time.
For example asserts get disabled and framepointers get omitted.
It should be possible to enable each of these flags separately e.g.
-disable-assert
-omit-framepointer

When profiling with a sampling profiler one would want the compiler to put out framepointers so that the profiler can unwind the stack correctly, but all other release flags should be turned on to get a representative profiling output.
Comment 1 Benjamin Thaut 2011-10-02 01:59:33 UTC

*** This issue has been marked as a duplicate of issue 6752 ***