LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 49 - gccld .... -lgcc -lc is breaking McCat/15-trie on BSD
Summary: gccld .... -lgcc -lc is breaking McCat/15-trie on BSD
Status: RESOLVED FIXED
Alias: None
Product: Runtime Libraries
Classification: Unclassified
Component: libc (show other bugs)
Version: trunk
Hardware: PC FreeBSD
: P normal
Assignee: Brian R. Gaeke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-16 22:56 PDT by Brian R. Gaeke
Modified: 2010-02-22 12:53 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian R. Gaeke 2003-10-16 22:56:59 PDT
I have slightly narrowed down the problem with "trie" on BSD. It turns out that
bugpoint was not lying when it said that none of the gccld passes were causing a
problem; in fact, the bug is triggered
when you say
    gccld -o=trie Output/trie.linked.bc -lgcc -lc
and not when you say
    gccld -o=trie Output/trie.linked.bc

(in both cases, I was testing with the JIT.)
Comment 1 Chris Lattner 2003-10-16 23:54:11 PDT
Can you figure out if it's -lgcc or -lc that is causing the problem?
Comment 2 Brian R. Gaeke 2003-10-17 08:39:08 PDT
What I recall from last night is, the bug only happens if you use both -lgcc and
-lc, and it goes away if you take away either -lgcc or -lc.
Comment 3 Chris Lattner 2003-10-21 13:03:11 PDT
This should fix the bug:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031020/008560.html

If so, please close it.
Comment 4 Brian R. Gaeke 2003-10-21 16:56:46 PDT
trie now works on FBSD as well. Thanks, Chris!