-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
Labels
backend:SparcbugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl''clang' and 'clang++' user-facing binaries. Not 'clang-cl'
Description
Bugzilla Link | 41447 |
Version | 8.0 |
OS | Linux |
Blocks | #4440 |
CC | @arndb,@nickdesaulniers |
Extended Description
I tried to build the Linux kernel for sparc32 and sparc64. Both work with few changes, but the Makefiles pass a number of options to the compiler that clang does not understand.
In particular, linux-5.1 passes
-mno-fpu
-fcall-used-g5
-fcall-used-g7
-mcpu=ultrasparc
-mcmodel=medlow
-ffixed-g4
-ffixed-g5
-fcall-used-g7
-mv8plus
Removing all of these from the Makefile gets it to compile almost all files, but I'm fairly sure this will not boot because some of the options are in fact required.
Metadata
Metadata
Assignees
Labels
backend:SparcbugzillaIssues migrated from bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl''clang' and 'clang++' user-facing binaries. Not 'clang-cl'