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 3696 - [meta] The FreeBSD source tree does not fully compile with Clang
Summary: [meta] The FreeBSD source tree does not fully compile with Clang
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: LLVM Codegen (show other bugs)
Version: unspecified
Hardware: PC FreeBSD
: P normal
Assignee: Ed Schouten
URL: http://wiki.freebsd.org/BuildingFreeB...
Keywords:
Depends on: 879 3429 3678 3681 3682 3686 3687 3688 3690 3691 3698 3706 3709 3735 3750 3763 3768 3794 3796 3808 3819 3821 3829 3833 3853 3854 3855 3857 3859 3862 3863 3880 3886 3889 3890 3903 3933 3934 3992 4042 4043 4048 4049 4090 4091 4181 4222 4225 4239 4281 4282 4283 4284 4285 4286 4287 4289 4290 4315 4316 4324 4326 4337 4338 4351 4368 4405 4412 4428 4433 4438 4471 4538 4583 4622 4685 4689 4767 4910 5004 5016 5082 5089 5108 5118 5128 5130 5197 5221 5250 5255 5392 5408 5422 5460 5484 5526 5709 5744 5817
Blocks:
  Show dependency tree
 
Reported: 2009-03-01 12:50 PST by Ed Schouten
Modified: 2011-05-06 16:21 PDT (History)
15 users (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 Ed Schouten 2009-03-01 12:50:20 PST
I'm creating this bug report, so we can keep track of all the reports that need to be resolved before we can fully compile FreeBSD with Clang.
Comment 1 Ed Schouten 2009-03-01 12:52:45 PST
Removing 3671. This is something we'll be changing in the FreeBSD source code.
Comment 2 Roman Divacky 2009-03-02 12:46:59 PST
add 3701
Comment 3 Daniel Dunbar 2009-03-23 10:30:18 PDT
I changed the block on 2594. We don't expect SelectionDAG to take over va_arg handling any time soon. For now, the right approach is to follow what we do for other platforms and implement all ABI details inside IRgen. Filed bug 3863 for this.
Comment 4 Chris Lattner 2009-12-09 18:14:36 PST
Reassigning to the originator so that I get fewer duplicate emails.
Comment 5 Dimitry Andric 2010-09-28 12:51:01 PDT
Since http://svn.freebsd.org/changeset/base/212979 a pristine head
checkout can be compiled and run with clang.

For bug 879 we used this workaround, which is not really pretty, but
works for now: http://svn.freebsd.org/changeset/base/212976

I don't understand why bug 3429 is in the dependency list, as the
__label__ keyword does not appear anywhere in the FreeBSD source, except
of course in the gcc and clang subtrees.  It will probably used in one
or more ports, but those are not considered part of the base system.

Bug 3933 also does not seem to apply anymore, as I cannot find any
instance of register pinning (i.e. __asm__("eax") statements) in the
tree.  It does apply to least one port that I encountered (Mesa), but
again, that is outside the base system.

So, I would like to propose to close this bug!
Comment 6 Dimitry Andric 2011-05-04 08:54:53 PDT
Ok, as of r130700, all components of FreeBSD compile with clang, at least for i386 and x86_64.  So I'm closing this PR :)
Comment 7 Chris Lattner 2011-05-06 16:21:46 PDT
woot!