derRichard | maximi89: what about openrisc.net? | 00:01 |
---|---|---|
derRichard | see /topic | 00:01 |
maximi89 | sorry | 00:01 |
stekern | cool, I'm able to compile an openrisc linux kernel with clang/llvm now | 20:41 |
stekern | ...it's not quite running properly though :/ | 20:42 |
derRichard | is the problem openrisc specific? building linux with clang can be "interesting" | 20:43 |
stekern | no idea yet, just got it compiling... was a couple of things that needed fixing in our backend before it swallowed the code | 20:45 |
stekern | I needed to change very little in the kernel itself | 20:46 |
stekern | think I patched two places, one which probably should/could go upstream | 20:46 |
stekern | an extern inline func(){} | 20:47 |
derRichard | why is extern inline bad? | 20:48 |
stekern | the other one was a register declaration for r10, but since that is reserved I just made an inline asm that reads it | 20:48 |
stekern | it's not c99 compliant | 20:48 |
derRichard | so what? | 20:48 |
derRichard | gcc inline is not c99 inline :) | 20:48 |
stekern | yeah I know | 20:48 |
derRichard | http://kernelnewbies.org/FAQ/ExternAndStaticInlineVariable | 20:49 |
jeremybennett | stekern: There was a talk at the last LLVM meeting about building Linux with Clang (I think for ARM) - you might find that a useful point of reference. | 20:49 |
derRichard | lwn.net has also a few articles on this topic | 20:50 |
stekern | derRichard: yes, I know the difference between gnu inline and c99 inline (I could probably get around it by compiling with -std=gnu89, which I probably should try anyways), but in this case it's an empty function declared in a single place, I don't see the point having it declared extern inline | 21:08 |
stekern | I could be missing something though | 21:08 |
stekern | for reference, the function is prepare_to_copy | 21:10 |
derRichard | my kernel does not have such a function | 21:10 |
derRichard | linus' tree as of today | 21:10 |
derRichard | it got already removed in upstream | 21:12 |
derRichard | :D | 21:12 |
stekern | heh, problem solved ;) | 22:07 |
-!- Netsplit *.net <-> *.split quits: heroux, _franck_ | 22:34 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!