Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • FPC Source FPC Source
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 1.4k
    • Issues 1.4k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 84
    • Merge requests 84
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • FPCFPC
  • FPC SourceFPC Source
  • Issues
  • #10507
Closed
Open
Issue created Dec 30, 2007 by FPC Admin account@fpc_adminOwner

Set8087CW is not done by GL unit

Original Reporter info from Mantis: Michalis @michaliskambi
  • Reporter name: Michalis Kamburelis

Description:

As explained in #5914 (closed) and #7570 (closed), Set8087CW call is needed in initialization of GL unit. In FPC 2.2.0, Set8087CW is GL unit is done but inside {$ifdef x86}... And symbol "x86" doesn't seem to be ever defined, so the Set8087CW is actually never done.

There doesn't seem to be any symbol that is automatically defined for both 32-bit and 64-bit x86 platforms (there are symbols like CPU86 and CPU87, but these are not defined undef x86_64...).

Proposed solution: change
  {$ifdef x86}
  Set8087CW($133F);
to
  {$if defined(cpui386) or defined(cpux86_64)}
  Set8087CW($133F);
in GL unit. The intention of this ifdef was to detect platforms where Set8087CW is available, and in rtl/inc/mathh.inc Set8087CW is defined exactly under the same ifdef (defined(cpui386) or defined(cpux86_64)). So this should work perfectly.

Mantis conversion info:

  • Mantis ID: 10507
  • OS: Debian GNU/Linux
  • OS Build: (testing)
  • Platform: i386
  • Version: 2.2.0
  • Fixed in version: 2.2.2
  • Fixed in revision: 9762 (#23b62be0)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking