[gccsdk] [Bug 218] New: __riscosify_control is not taken into account when using UnixLib as shared library

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Sat Mar 12 05:37:11 PST 2011


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

           Summary: __riscosify_control is not taken into account when
                    using UnixLib as shared library
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Shared libraries
        AssignedTo: leenoar at sky.com
        ReportedBy: John.Tytgat at aaug.net
   Estimated Hours: 0.0


Reported as http://www.riscos.info/pipermail/gcc/2011-March/005473.html

Simple test program:

--8<--
#include <stdio.h>
#include <unixlib/local.h>

int __riscosify_control = __RISCOSIFY_NO_SUFFIX;

int
main (int argc, char *argv[])
{
  FILE *f = fopen ("test.a", "w");
  if (f == NULL)
    perror ("Failed to write test.a");
  else
    fprintf (stderr, "OK\n");
  fclose (f);
  return 0;
}
--8<--

Writes "a.test" when UnixLib as shared library is used, while it should be
"test/a" (and the latter happens correctly when UnixLib as static library is
used).

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




More information about the gcc mailing list