WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: libpng-1.5.6rc01 is available

Re: compiler tests, icc link fails [Re: libpng-1.5.6rc01 is available]

by Glenn Randers-Pehrson :: Rate this Message:

| View in Thread

On Thu, Oct 27, 2011 at 3:43 PM, Nicolas Limare
<nicolas.limare@...> wrote:
> On Thu, Oct 27, 2011 at 01:15:17PM -0400, Glenn Randers-Pehrson wrote:
>> Please try libpng-1.5.6rc02 (now only in the GIT "libpng15" branch).
>> If it's OK I'll put up libpng-1.5.6rc02 this evening.  It uses a a new
>> "LSR" macro to mask off the high bits with 0x1f to keep the shift parameter
>> within the range 0-31.
>
> [not related to the LSR macro]

I'm sure it *is* related (we are not using the LSR macro someplace that
we should be.  Thanks.

Glenn

>
> Compilation with Intel C Compiler fails at link time. I tried with
> * CC=icc ./configure; make all test
>  -> link error, log attached as icc_configure_make.log
> * cmake -DCMAKE_C_COMPILER=icc; make
>  -> link error, log attached as icc_cmake_make.log
> * make -f scripts/makefile.intel
>  -> tried to use "icl", I have no such program on my machine
>
> Everything is fine with gcc, suncc, pathcc. Compilation and tests are
> OK with clang, but I get some shift warnings (log atached as
> clang_configure_make.log)
>
> pngrutil.c:2939:15: warning: shift count >= width of type
>            { S_MASKS(1,0), S_MASKS(2,0), S_MASKS(4,0) },
>              ^~~~~~~~~~~~
>
> $ icc -v
> Version 12.0.4
>
> $ gcc --version
> gcc (Debian 4.4.5-8) 4.4.5
>
> $ suncc -V
> cc: Sun C 5.11 Linux_i386 2010/08/13
>
> $ pathcc -v
> PathScale (tm) Compiler Suite: Version 4.0.10
>
> $ clang -v
> clang version 1.1 (Debian 2.7-3)
>
> $ git log -1
> commit ef02d563a34338e8647f38d4984c00b2419ec8e6
> Author: Glenn Randers-Pehrson <glennrp at users.sourceforge.net>
> Date:   Thu Oct 27 12:05:58 2011 -0500
>
>    [libpng15] Added LSR() macro to defend against buggy compilers
>    that evaluate
>
>    non-taken code branches and complain about out-of-range shifts.
>
> --
> Nicolas LIMARE
> http://nicolas.limare.net/                         pgp:0xFA423F4F
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAk6ptGUACgkQvviFAPpCP0+/WACeP+zmUk/PoyJYBsL/aJ/lkTj6
> FYwAn0UzDngkdAXsE2P9dbRYGSQfG8+t
> =DwZH
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> png-mng-implement mailing list
> png-mng-implement@...
> https://lists.sourceforge.net/lists/listinfo/png-mng-implement
>
>

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
png-mng-implement mailing list
png-mng-implement@...
https://lists.sourceforge.net/lists/listinfo/png-mng-implement

 « Return to Thread: libpng-1.5.6rc01 is available