command: workaround hang on autocompletion
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 3 Jul 2016 00:09:11 +0000 (03:09 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 3 Jul 2016 00:10:28 +0000 (03:10 +0300)
Not sure what's going on exactly, some complete_cmdv() miscompilation?
Not worth spending time to find out.

common/command.c

index 50c8429..a372632 100644 (file)
  * MA 02111-1307 USA
  */
 
+#if defined(__GNUC__) && defined(__OPTIMIZE__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
+#pragma GCC optimize ("O2")
+#endif
+
 /*
  *  Command Processor Table
  */