Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When compiling with -O3, global functions are being marked link-once and deleted by optimizer! #397

Closed
lattner opened this issue Oct 9, 2003 · 2 comments
Assignees

Comments

@lattner
Copy link
Collaborator

lattner commented Oct 9, 2003

Bugzilla Link 25
Resolution FIXED
Resolved on Feb 22, 2010 12:41
Version trunk
OS Linux

Extended Description

This testcase is eliminated:

---- foo.c ----
int main() {
return 10;
}

$ llvmg++ -O3 ehtest.cc -c -o - | & llvm-dis

@lattner
Copy link
Collaborator Author

lattner commented Oct 9, 2003

assigned to @lattner

@lattner
Copy link
Collaborator Author

lattner commented Oct 10, 2003

This is now fixed. It turned out to be the difference between DECL_INLINE and
DECL_DECLARED_INLINE_P. Geeze.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 1, 2021
searlmc1 pushed a commit to ROCm/llvm-project that referenced this issue Aug 19, 2022
Change-Id: Ia0d599e5900b6e087831f3045d8109e4871fbc33
rocm-ci pushed a commit to ROCm/llvm-project that referenced this issue Nov 30, 2022
Change-Id: Ia0d599e5900b6e087831f3045d8109e4871fbc33
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant