Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit

2018-02-13 Thread Hans Åberg


> On 13 Feb 2018, at 12:24, Torbjörn Granlund  wrote:
> 
> Dennis Clarke  writes:
> 
>  As a minor annoyance it does cause gcc ( recent versions 7.x ) to fail.
>  Oddly enough ye Oracle Studio 12.6 cc running in strict c99 mode is fine
>  and happy with everything. That is a new experience for me. However the
>  performance on sparc is miserable.  We all know this and we know why.
> 
> I like Vincent's proposal; I had thought we needed to add something
> which leaves garbage in the object files.

There is a discussion here [1]: The translation unit is the input source, it 
seems, which must be non-empty, but not the resulting object file; however, a 
conforming compiler can complain about whatever.

1. https://bytes.com/topic/c/answers/222053-empty-translation-unit-valid


___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit

2018-02-13 Thread Torbjörn Granlund
Dennis Clarke  writes:

  As a minor annoyance it does cause gcc ( recent versions 7.x ) to fail.
  Oddly enough ye Oracle Studio 12.6 cc running in strict c99 mode is fine
  and happy with everything. That is a new experience for me. However the
  performance on sparc is miserable.  We all know this and we know why.
  
I like Vincent's proposal; I had thought we needed to add something
which leaves garbage in the object files.

About sparc GMP performance, yes it's very poor except for T4-T5 where
it's acceptable.

-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit

2018-02-12 Thread Dennis Clarke

On 11/02/18 08:15 PM, Vincent Lefevre wrote:

On 2018-02-11 10:40:55 +0100, Torbjorn Granlund wrote:

Dennis Clarke  writes:

   repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit

Our nightly builds get a few of those too, as warnings.  I've decided I
can live with those as no platform seems to actually dislike the
resulting object files.


Or you can just add a dummy typedef to ensure that the translation unit
is not empty.



As a minor annoyance it does cause gcc ( recent versions 7.x ) to fail.
Oddly enough ye Oracle Studio 12.6 cc running in strict c99 mode is fine
and happy with everything. That is a new experience for me. However the
performance on sparc is miserable.  We all know this and we know why.

Dennis


___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit

2018-02-11 Thread Vincent Lefevre
On 2018-02-11 10:40:55 +0100, Torbjorn Granlund wrote:
> Dennis Clarke  writes:
> 
>   repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit
> 
> Our nightly builds get a few of those too, as warnings.  I've decided I
> can live with those as no platform seems to actually dislike the
> resulting object files.

Or you can just add a dummy typedef to ensure that the translation unit
is not empty.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs


Re: repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit

2018-02-11 Thread Torbjörn Granlund
Dennis Clarke  writes:

  repl-vsnprintf.c:396:0: error: ISO C forbids an empty translation unit

Our nightly builds get a few of those too, as warnings.  I've decided I
can live with those as no platform seems to actually dislike the
resulting object files.
  

-- 
Torbjörn
Please encrypt, key id 0xC8601622
___
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs