Page MenuHomeFreeBSD

Add missing pieces for mips32 gcc-4.9 kernel build!
AbandonedPublic

Authored by brooks on May 15 2015, 5:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 15 2024, 6:11 PM
Unknown Object (File)
Jan 1 2024, 6:05 PM
Unknown Object (File)
Dec 20 2023, 6:14 AM
Unknown Object (File)
Nov 24 2023, 9:02 PM
Unknown Object (File)
Nov 21 2023, 7:46 PM
Unknown Object (File)
Oct 14 2023, 4:29 PM
Unknown Object (File)
Oct 13 2023, 5:58 PM
Unknown Object (File)
Oct 12 2023, 12:42 PM
Subscribers

Details

Reviewers
imp
jhb
adrian
Group Reviewers
MIPS
Summary
  • The library routines aren't inline in gcc-4.9, so supply them.
  • Ensure we set the mips32/mips64 type flag; the port/upstream defaults to mips1, rather than mips32/mips64.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

adrian retitled this revision from to Add missing pieces for mips32 gcc-4.9 kernel build!.
adrian updated this object.
adrian edited the test plan for this revision. (Show Details)
sys/conf/files.mips
64

This comment isn't very good. 'Some out of tree compilers, like gcc 4.9 generate these calls' maybe?

sys/conf/kern.mk
154

Commented out code does nothing.

sys/conf/kmod.mk
137–142

these almost certainly indicate that the defaults for the ports compilers are wrong... And if they are wrong for arch, why not endian too?

Is this still relevant for a modern gcc?

Adding John who's been working on this with an actually modern gcc

I've compiled kernels fine using mips-gcc. I've fixed the port to default to mips3 also, so I think this change is probably OBE. Also, march=mips32/64 is actually a much newer march than mips3.

brooks added a reviewer: adrian.

This revision is long OBE. Commandeer so I can abandon it.