octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave on windows testing


From: Olaf Till
Subject: Re: Octave on windows testing
Date: Fri, 11 Mar 2016 09:04:06 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Mar 10, 2016 at 04:19:56PM -0500, John W. Eaton wrote:
> On 03/10/2016 04:05 PM, Olaf Till wrote:
> 
> >But this also seems to mean that (in package 'database') I can't do:
> >
> >AC_PROG_CXX
> >if test "$GXX" != yes; then
> >AC_MSG_ERROR(...
> >
> >in configure.ac, but have to check the output of 'mkoctfile -p CXX'
> >instead. This seems a bit awkward...
> 
> Why do you need this check?  What is it intended to accomplish?

I set -fno-strict-aliasing and didn't assume this option exists in all
other compilers.

The reason for this option was that I have macros for accessing memory
areas by assuming an arbitrary type for them, using ('C-ish') pointer
casts. (This memory area is originally accessed only by a pointer to
char.) I don't think it's possible to circumvent this problem using
unions, since the union itself would have to be pointer-casted to
char, again necessitating -fno-strict-aliasing.

Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]