Hi,

At 07 Aug 2005 21:39:15 +0200 Andy Polyakov wrote:
> > - ectest.c
> > 6. Add pragma to disable warnings.
> > 
> > - rc2_skey.c, rsa_pss.c
> > 7. Add pragma to disable optimizations because they cause 'Internal
> >    Compile Error' while compiling for Windows Mobile 2003 (WCE420/ARMV4).
> 
> I'll throw in additional defined(_MSC_VER) to those #ifs as the pragmas
> in question *are* MSC specific. As for rc2_skey.c. There was a report
> maintaining that switching off global optimizations, i.e. #pragma
> optimize("g",off), is sufficient. Can you test and confirm or refute
> it? A.

I confirmed that #pragma optimize("g",off) is enough for both rc2_skey.c
and rsa_pss.c.


Here is a list of _MSC_VER of CE compilers for your information.

WCE211 ARM  1200
WCE211 MIPS 1200
WCE211 SHx  1200

WCE300 ARM  1200
WCE300 MIPS 1200
WCE300 SHx  1200

WCE400 ARM  1201
WCE400 MIPS 1202
WCE400 SHx  1201

WCE410 ARM  1201
WCE410 MIPS 1202
WCE410 SHx  1201

WCE420 ARM  1201
WCE420 MIPS 1202
WCE420 SHx  1201


The 'Internal Compile Error' problems in rc2_skey.c and rsa_pss.c occur
only when _MSC_VER is 1201. So it can be '#if defined(_MSC_VER) &&
_MSC_VER==1201 && defined(_ARM_)'


At 07 Aug 2005 23:07:34 +0200 Andy Polyakov wrote:
> > +#if defined(OPENSSL_SYS_WINCE) && defined(_MIPS_)
> > +#pragma warning(push)
> > +#pragma warning(disable:4959)
> > +#endif
> 
> It appears that warning numbers may vary among compiler releases...
> Therefore it would be appropriate not only add defined(_MSC_VER), but
> even _MSC_VER==xxxx:-( To tell _MSC_VER value create a .c file with
> single line of _MSC_VER and $(CC) -E it. Thanks in advance. A.

This problem occurs when _MSC_VER=1200. Actually there is no major
platform based on WCE4xx/MIPS. So it can be '#if defined(_MSC_VER) &&
defined(_MIPS_) && _MSC_VER==1200'


I could compile openssl-0.9.8-stable-SNAP-20050810 under these platforms:

HPC Pro             (WCE211) ARM,MIPS,SH3,SH4
Pocket PC           (WCE300) ARM,MIPS,SH3
HPC2000             (WCE300) ARM,MIPS
Pocket PC 2002      (WCE300) ARM
Windows Mobile 2003 (WCE420) ARM

Great job!

-- 
Satoshi Nakamura <[EMAIL PROTECTED]>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to