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

libstdc++ fails to build on darwin/x86-64 #2031

Closed
lattner opened this issue Sep 15, 2007 · 2 comments
Closed

libstdc++ fails to build on darwin/x86-64 #2031

lattner opened this issue Sep 15, 2007 · 2 comments
Assignees
Labels
backend:X86 bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@lattner
Copy link
Collaborator

lattner commented Sep 15, 2007

Bugzilla Link 1659
Resolution FIXED
Resolved on Sep 16, 2007 14:37
Version 1.0
OS All
CC @asl,@isanbard

Extended Description

libstdc++ fails to build on darwin/x86-64. This isn't suggested, but it should still at least build :). The failure is:

eh_alloc.s:183:unknown section type: non_lazy_symbol_pointerseh_alloc.s:183:Rest of line ignored. 1st junk character valued 76 (L).
eh_alloc.s:184:Unknown pseudo-op: .indirect_symboleh_alloc.s:184:Rest of line ignored. 1st junk character valued 95 (_).

The generated code in question is:

.section __IMPORT,__pointers,non_lazy_symbol_pointers
L___gxx_personality_v0$non_lazy_ptr:
.indirect_symbol ___gxx_personality_v0
.long 0
.subsections_via_symbols

Bill, can you take a look at this?

-Chris

@lattner
Copy link
Collaborator Author

lattner commented Sep 15, 2007

assigned to @isanbard

@isanbard
Copy link
Contributor

The code that emits the personality stub was doing so even if the target didn't support exceptions. This was a massive think-o in my exception handling patches for Darwin. Fixed:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070910/053555.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070910/053564.html

-bw

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
vfdff added a commit to vfdff/llvm-project that referenced this issue Dec 5, 2023
When all the large const offsets masked with the same value from bit-12 to bit-23.
Fold
  add     x8, x0, llvm#2031, lsl llvm#12
  add     x8, x8, llvm#960
  ldr     x9, [x8, x8]
  ldr     x8, [x8, llvm#2056]

into
  add     x8, x0, llvm#2031, lsl llvm#12
  ldr     x9, [x8, llvm#960]
  ldr     x8, [x8, llvm#3016]
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:X86 bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead
Projects
None yet
Development

No branches or pull requests

2 participants