Issue 16148 - .NET Standard doesn't like -Oy- option
Summary: .NET Standard doesn't like -Oy- option
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: quetschke
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-27 12:40 UTC by quetschke
Modified: 2004-02-27 13:01 UTC (History)
3 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Patch for wnt.mk (639 bytes, patch)
2003-06-27 12:42 UTC, quetschke
no flags Details | Diff
New option for configure: --enable-cl-standard (2.14 KB, patch)
2003-07-26 21:04 UTC, quetschke
no flags Details | Diff
Patch for wnt.mk (612 bytes, patch)
2003-07-26 21:05 UTC, quetschke
no flags Details | Diff
New patch for wnt.mk (1.03 KB, patch)
2003-07-30 14:38 UTC, quetschke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2003-06-27 12:40:51 UTC
The .NET compiler doesn't like -Oy- option, it writes lots of the following
warnings:
---
cl : Befehlszeile warning D4002 : Unbekannte Option '-Oy-' wird ignoriert
---
The following patch adds this option only for MSVC 6.
Comment 1 quetschke 2003-06-27 12:42:08 UTC
Created attachment 7179 [details]
Patch for wnt.mk
Comment 2 quetschke 2003-06-27 12:44:25 UTC
Set target. OK for RC?
Comment 3 Martin Hollmichel 2003-06-27 12:55:34 UTC
we should better set COMEX to 8 for .NET in configure ?!
Comment 4 quetschke 2003-06-27 13:06:49 UTC
We do already. There is a test in configure.in that looks
which tests which cl.exe is used.
Comment 5 Martin Hollmichel 2003-06-30 11:20:14 UTC
mh->vq: what compiler version do you use? 

cl /? gives me: Optimizing Compiler Verion 13.00.9466
...
/Oy[-] enable frame pointer omission 
...

Comment 6 quetschke 2003-06-30 12:38:59 UTC
vq->mh: I have .NET C++ Standard 2002, (Cannot look up the version
number ATM). The warning is part of a pair of two:

cl : Befehlszeile warning D4029 : Die Optimierung ist im
Standardcompiler nicht verfÂgbar.
cl : Befehlszeile warning D4002 : Unbekannte Option ´-Oy-´ wird ignoriert

So the warning is misleading, I will think about a DOTNET=standard
option later, something to put into configure for 2.0.
Comment 7 quetschke 2003-06-30 13:01:47 UTC
Changed summary
Comment 8 quetschke 2003-07-26 21:04:31 UTC
Created attachment 8044 [details]
New option for configure: --enable-cl-standard
Comment 9 quetschke 2003-07-26 21:05:15 UTC
Created attachment 8045 [details]
Patch for wnt.mk
Comment 10 quetschke 2003-07-30 14:38:32 UTC
Created attachment 8144 [details]
New patch for wnt.mk
Comment 11 quetschke 2003-07-30 14:45:51 UTC
When using conf_noopt.diff and solenv_noopt2.diff and calling
configure with
  --enable-cl-standard
all warnings due to missing optimisation when using .NET (or MSVC 6)
Standard are renoved.

vq->hjs: OK?
Comment 12 hjs 2003-08-12 17:03:17 UTC
ok.
Comment 13 quetschke 2003-10-09 09:54:42 UTC
Committed to cws_srx645_ooo111fix1.
Comment 14 quetschke 2003-10-19 10:51:06 UTC
The wnt.mk part got lost for cws_src680_ooo20031110.
Comment 15 quetschke 2003-10-19 18:27:14 UTC
Committed to cws_src680_ooo20031110.
Comment 16 jens-heiner.rechtien 2003-12-11 15:19:06 UTC
.
Comment 17 Martin Hollmichel 2004-02-27 13:01:39 UTC
close issue.