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

           Summary: [4.5/4.6/4.7 regression] Bootstrapping on
                    x86_64-pc-kfreebsd-gnu fails with
                    "s-taprop.adb:856:10: "pthread_attr_setaffinity_np" is
                    undefined (more references follow)"
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ludo...@ludovic-brenta.org
              Host: x86_64-pc-kfreebsd-gnu
            Target: x86_64-pc-kfreebsd-gnu
             Build: x86_64-pc-kfreebsd-gnu


The following commit changed s-osinte-linux.ads but not
s-osinte-kfreebsd-gnu.ads; this breaks bootstrapping on GNU/kFreeBSD:


        * adaint.c (__gnat_pthread_setaffinity_np,
        __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
        * s-osinte-linux.ads (pthread_setaffinity_np,
        pthread_attr_setaffinity_np): Remove use of wrappers.
        * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
        whether the affinity functionality is available in the OS.
        * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
        are defined.



    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165635
138bc75d-0d04-0410-961f-82ee72b054a4

This is because GNU/kFreeBSD uses s-taprop-linux.adb, which uses subprograms
defined in either s-osint-linux.ads or s-osint-kfreebsd-gnu.ads depending on
the host.

Reply via email to