NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-macppc/54827: alloca() is broken in gcc 8 on powerpc



The following reply was made to PR port-macppc/54827; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: matthew green <mrg%eterna.com.au@localhost>
Subject: Re: port-macppc/54827: alloca() is broken in gcc 8 on powerpc
Date: Sun, 19 Jan 2020 18:32:32 +0300

 That doesn't seem to help.
 
 #if 0
   save_align = (TARGET_ALTIVEC_ABI || DEFAULT_ABI == ABI_DARWIN) ? 16 : 8;
 #else  /* XXX: uwe: fancy way to say 16 */
   save_align = STACK_BOUNDARY / BITS_PER_UNIT;
 #endif
 
 
 The output for -mno-altivec -O2 allocates larger stack frame:
 
 -       stwu %r1,-48(%r1)
 +       stwu %r1,-64(%r1)
 
 (plus corresponding changes down the code), but the rest is the same.
 
 Testing its output shows the bug is still there, it just happens 16
 bytes earlier:
 
 $ cc -g -O0 main.c out-nx-no2.s && ./a.out
 0xffffe1e0 0xffffe1e8
 0x65000000
 
 
 -uwe
 


Home | Main Index | Thread Index | Old Index