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/15454] New: miscompilation of __print_fp from stdio


$ gcc pi.c -O -static
$ ./a.out
 3.14159

$ gcc pi.c print_fp.i -O -static
$ ./a.out
 0.00000

$ gcc-3.4 pi.c print_fp.i -O -static
$ ./a.out
 3.14159

printf_fp.i contains miscompiled function __printf_fp () that overrides one from
stdio library. (dynamic linking does not work because glibc does black magic
with symbols)

-- 
           Summary: miscompilation of __print_fp from stdio
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belyshev at lubercy dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15454


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