Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,100
    • Issues 4,100
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Merge requests
  • !6879

FortranCInterface: Fix compatibility with GCC gfortran 12 LTO

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Björn Esser requested to merge besser82/cmake:topic/besser82/gcc12_gfortran_lto into master Jan 19, 2022
  • Overview 22
  • Commits 1
  • Pipelines 5
  • Changes 1

Since version 12.0 the GCC Fortran compiler has implemented "WG5/N1942", which causes, if link-time opmization is enabled, obfuscation of hard-coded string values in the compiler objects and its resulting ELF-binaries.

This causes the CMake-internal detection of the mangling scheme for the naming of subroutines to fail. Thus we must ensure to have any link-time optimization features to be disabled on the executable file we perform the detection on.

Fixes: #23123 (closed)
Signed-off-by: Björn Esser besser82@fedoraproject.org
Backport: release
Topic-rename: FortranCInterface-gcc-12-lto

Edited Jan 19, 2022 by Brad King
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: topic/besser82/gcc12_gfortran_lto