15193 – [3.4/4.0 Regression] Unary minus using pointer to V4SF vector causes -fforce-mem to exhaust all memory (original) (raw)
Description bert hubert 2004-04-28 19:05:56 UTC
Compile the below with gcc chelper-exploit.c -c -O -fforce-mem -msse : typedef int v4sf attribute ((mode(V4SF)));
void cprocess(v4sf* d_r) { v4sf force= -(*d_r); }
And the compiler (cc1) will try to allocate all memory.
Problem disappears with removing the '-', or by switching to 3.3.3 or to the SSA branche, by removing -O or removing -fforce-mem, by removing -msse
Comment 1 Drea Pinski 2004-04-28 19:16:49 UTC
Confirmed, here is an example which is happens even on the tree-ssa: typedef int v4sf attribute ((mode(V4SF)));
v4sf cprocess(v4sf* d_r) { v4sf force= -(*d_r); return force; }
Comment 2 Mark Mitchell 2004-06-05 20:37:10 UTC
Richard --
As the IA32 maintainer, would you please look at this?
Tnanks,
-- Mark
Comment 3 Richard Henderson 2004-06-07 17🔞18 UTC
Patch in progress.
Comment 6 Richard Henderson 2004-06-07 18:10:23 UTC
Fixed.