Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1399074
| From | "Maciej W. Rozycki" <macro@imgtec.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] MIPS: Allow R6 compact branch policy to be left unspecified |
| Date | 2016-05-11 15:30 +0200 |
| Message-ID | <rxCn9-F9-19@gated-at.bofh.it> (permalink) |
| References | <rqEWJ-7zC-1@gated-at.bofh.it> <rqLET-4cJ-19@gated-at.bofh.it> <rqNdD-5NN-5@gated-at.bofh.it> <rxB7J-814-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 11 May 2016, Ralf Baechle wrote: > I was wondering if we should simply probe for the availability of the > GCC option and not use it, if using an older GCC, then change the > help text for the option accordingly. This approach would allow > make randconfig or similar to work as expected with older compilers. Well, if the default is `optimal' anyway, then I think we can simply omit the option unless someone has requested an override. In which case I think the compilation should fail if the option is not supported, under the principle of the least surprise -- if someone has requested a feature, then they ought to be informed that it is absent rather than silently fooled into thinking it has been enabled while in fact it has not. I agree probing for the presence of the option requested and then failing gracefully (e.g. "Toolchain feature FOO not available, please upgrade or reconfigure without BAR" or suchlike) is a better idea than just aborting midway through, and I think `randconfig' and similar validators should be prepared for it and handle gracefully as well (i.e. not a kernel bug). FWIW, Maciej
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH] MIPS: Allow R6 compact branch policy to be left unspecified Ralf Baechle <ralf@linux-mips.org> - 2016-05-11 14:10 +0200 Re: [PATCH] MIPS: Allow R6 compact branch policy to be left unspecified "Maciej W. Rozycki" <macro@imgtec.com> - 2016-05-11 15:30 +0200
csiph-web