This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/67547] may be an error in printf(%a..) for nexttowardf(0.f,1.f)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67547

--- Comment #2 from BENAÃSSA <ka_bena at yahoo dot fr> ---
Thank you very much for your reply.ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
A.BenaÃssa



     Le Vendredi 11 septembre 2015 13h25, pinskia at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> a Ãcrit :


 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67547

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

     What  |Removed          |Added
----------------------------------------------------------------------------
      Status|UNCONFIRMED        |RESOLVED
    Resolution|---            |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Report this to mingw since that is where printf comes from (though it might
come directly from Microsoft's libc).

Also by the way nexttowardf is C99 and not C89 so I am getting warnings with
glibc and C89:
t1.c: In function 'main':
t1.c:6:20: warning: implicit declaration of function 'nexttowardf'
[-Wimplicit-function-declaration]
 printf(" %E\n", nexttowardf ( 0.F , 1.F ) ) ;
          ^
t1.c:6:10: warning: format '%E' expects argument of type 'double', but argument
2 has type 'int' [-Wformat=]
 printf(" %E\n", nexttowardf ( 0.F , 1.F ) ) ;
     ^
t1.c:7:10: warning: format '%A' expects argument of type 'double', but argument
2 has type 'int' [-Wformat=]
 printf(" %A\n", nexttowardf ( 0.F , 1.F ) ) ;
     ^
t1.c:8:20: warning: implicit declaration of function 'nexttoward'
[-Wimplicit-function-declaration]
 printf(" %A\n", nexttoward ( 0. , 1. ) ) ;
          ^
t1.c:8:10: warning: format '%A' expects argument of type 'double', but argument
2 has type 'int' [-Wformat=]
 printf(" %A\n", nexttoward ( 0. , 1. ) ) ;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]