http://www.riscos.info/bugzilla3/show_bug.cgi?id=189

           Summary: printf output doesn't appear before a crash
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: feature request
          Priority: P1
         Component: Unixlib and SharedCLibrary
        AssignedTo: [email protected]
        ReportedBy: [email protected]
   Estimated Hours: 0.0


#include <stdio.h>

char *zero = 0;

int main(void) {
  printf("test %d\n", 10);
  *zero = 0;

  return 0;
}

In this case, despite the LF, the output doesn't appear on stdout, redirected
or otherwise, before the crash occurs.  If a puts is done after the printf,
then the output is seen.

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to