From: Grazvydas Ignotas Date: Sun, 3 Jul 2016 00:09:11 +0000 (+0300) Subject: command: workaround hang on autocompletion X-Git-Tag: sz_175~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0619092a95b920950947a3da1718d91249f7b1d1;p=pandora-u-boot.git command: workaround hang on autocompletion Not sure what's going on exactly, some complete_cmdv() miscompilation? Not worth spending time to find out. --- diff --git a/common/command.c b/common/command.c index 50c84292c16..a372632a756 100644 --- a/common/command.c +++ b/common/command.c @@ -21,6 +21,10 @@ * MA 02111-1307 USA */ +#if defined(__GNUC__) && defined(__OPTIMIZE__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4) +#pragma GCC optimize ("O2") +#endif + /* * Command Processor Table */