User Tools

Site Tools


wswan:bugs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wswan:bugs [2026/11/07 22:03] – asiewswan:bugs [2026/11/07 22:04] (current) – asie
Line 1: Line 1:
-====== Known bugs ======+====== Known bugs and limitations ======
  
-===== gcc-ia16 =====+===== C compiler (gcc-ia16) =====
  
   * In general, if you run into a compiler error or miscompilation, try annotating the function with ''%%__attribute__((noinline, optimize("-O0"))) %%'' as a workaround.   * In general, if you run into a compiler error or miscompilation, try annotating the function with ''%%__attribute__((noinline, optimize("-O0"))) %%'' as a workaround.
Line 8: Line 8:
   * The optimization levels ''%%-O0%%'', ''%%-O2%%'' and ''%%-Os%%'' are most stable (roughly in that order).   * The optimization levels ''%%-O0%%'', ''%%-O2%%'' and ''%%-Os%%'' are most stable (roughly in that order).
  
-==== Bug: Miscompilations involving far function pointers ====+==== Miscompilations involving far function pointers ====
  
 In some cases, when calling pointers from arrays of far function pointers in optimization modes >= -O1, the code will be miscompiled. This is a [[https://codeberg.org/tkchia/gcc-ia16/issues/6|known issue]], with no ETA for a fix. In some cases, when calling pointers from arrays of far function pointers in optimization modes >= -O1, the code will be miscompiled. This is a [[https://codeberg.org/tkchia/gcc-ia16/issues/6|known issue]], with no ETA for a fix.
Line 20: Line 20:
 } }
 </code> </code>
- 
-===== Workarounds ===== 
  
 ==== Far pointers to near variables ==== ==== Far pointers to near variables ====
wswan/bugs.1794089003.txt.gz · Last modified: by asie