« Return to Thread: libpng-1.5.6rc01 is available

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

by John Bowler-3 :: Rate this Message:

| View in Thread

>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

I didn't see that attachment.   Can you send it to me and Glenn directly?

The warning is just a repeat of the LSR issue; I restricted the fix to Visual C.  It would be nice to know which compilers have the problem but it's not essential - we can just use the & 0x1f whenever compiling the compile-time version.  The problem comes from an expression of this form:
       
        (shift >= 32) ? (x >> (shift-32)) : (y >> shift)

The compiler complains when 'shift' is more than 32 (ANSI-C explicitly allows x>>32, but not x>>33).  The expression can be rewritten several ways, but it's correct so if it's just a warning it can be ignored.  (I set up the Visual C project to fail on warnings, so it can't be ignored...)

John Bowler <jbowler@...>


------------------------------------------------------------------------------
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