Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
General question: is SystemZ a variant of Linux?
If not, such changes should not go to files named *_linux*.cc, instead they should go into separate files names *_systemz.cc
Same is true even if SystemZ *is* a Linux variant, but a significantly different from the regular one.
More generally, please prefer a separate file to multiple #ifdefs.
Ok. We already have files with suffix aarch64 or aarch64.
Please try to follow this rule: do not add any new #ifdef unless
- the ifdef is a single top-level ifdef in a separate file
- you are adding an #elif to an already existing #ifdef/#elif sequence.
Well, technically the outer #elif in this patch does follow the rule (the inner ones don't, but they're much better justified).
Anyhow, here's the plan:
- Revert the AvoidCVE... patch (it's not doing much good without ASan/MSan/TSan support anyhow).
- Submit a patch creating sanitizer_linux_s390.cc and moving internal_mmap there.
- Resubmit this patch with a dep on #2.
- Resubmit AvoidCVE... patch with empty AvoidCVE...() in common code and with a dep on #2.
I have one more patch in queue that adds s390-specific code which will end up in sanitizer_linux_s390.cc, but it's going to be a while before I get all dependencies merged.
LGTM.
Note that I did not try hard to review the s390 code as I don't know (nor care) about it enough.
Feel free to submit patches to files fully covered under ifdef SANITIZER_S390 w/o my review,
although I would recommend to find a reviewer who knows the s390 stuff.