Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK-m VTK-m
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 205
    • Issues 205
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 35
    • Merge requests 35
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTK-mVTK-m
  • Merge requests
  • !2604

Fix dropped UnknownArrayHandle symbols

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kenneth Moreland requested to merge kmorel/vtk-m:dropped-symbols into master Oct 13, 2021
  • Overview 12
  • Commits 1
  • Pipelines 4
  • Changes 1

For some reason, GCC is dropping the templated function instances use for the UnknownArrayHandle constructor. Apparently, something in the compiler or the linker is being over aggressive about removing unused symbols and is actually dropping symbols that are being used. Maybe it is because the functions are not directly called but their pointers are used.

To get around this problem, mark these templated functions in UnknownArrayHandle.h with the used attribute to force the compiler/ linker to keep them. There should be no consequence to that as these function templates are only instantiated if they are used.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: dropped-symbols