mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
ce6b27cfae
It seems that the optimizer keeps array assignments live when passing the array as a pointer, but not when passing the address of an element. Found when testing the following code: BasisBlade *pga_blades[16] = { blades[1], blades[2], blades[3], blades[4], blades[7], blades[6], blades[5], blades[0], blades[8], blades[9], blades[10], blades[15], blades[14], blades[13], blades[12], blades[11], }; BasisGroup *pga_groups[4] = { [BasisGroup new:4 basis:&pga_blades[ 0]], [BasisGroup new:4 basis:&pga_blades[ 4]], [BasisGroup new:4 basis:&pga_blades[ 8]], [BasisGroup new:4 basis:&pga_blades[12]], }; Only the first element of pga_blades is being assigned in the optimized code, but everything is correct when not optimizing. |
||
---|---|---|
.. | ||
3dfx_stub | ||
bsp2img | ||
build_scripts | ||
carne | ||
cross | ||
cvs2cl | ||
Forge | ||
gas2masm | ||
gl_stub | ||
io_mesh_qfmdl | ||
io_qfmap | ||
misc | ||
pak | ||
qfbsp | ||
qfcc | ||
qflight | ||
qflmp | ||
qfmodelgen | ||
qfspritegen | ||
qfvis | ||
quaketoascii | ||
texpaint | ||
wad | ||
wav | ||
Makemodule.am |