public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/95237] New: LOCAL_DECL_ALIGNMENT shrinks alignment, FAIL gcc.target/i386/pr69454-2.c
@ 2020-05-20 12:58 rguenth at gcc dot gnu.org
  2020-05-20 15:34 ` [Bug target/95237] " hjl.tools at gmail dot com
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-20 12:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95237

            Bug ID: 95237
           Summary: LOCAL_DECL_ALIGNMENT shrinks alignment, FAIL
                    gcc.target/i386/pr69454-2.c
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

The testcase and a few others now ICEs on x86_64 with -m32 since
LOCAL_DECL_ALIGNMENT with -mpreferred-stack-boundary=2 shrinks alignment
of 'long long' from 8 to 4.

/home/rguenther/src/trunk/gcc/testsuite/gcc.target/i386/pr69454-2.c: In
function 'fn1':^M
/home/rguenther/src/trunk/gcc/testsuite/gcc.target/i386/pr69454-2.c:7:6:
internal compiler error: in execute, at adjust-alignment.c:73^M
0x216245b execute^M
        ../../src/trunk/gcc/adjust-alignment.c:73^M
Please submit a full bug report,^M

this was a latent wrong-code bug before if you consider

typedef __UINTPTR_TYPE__ uintptr_t;
void __attribute__((noipa)) foo (long long *p, uintptr_t a)
{
  if ((uintptr_t)p & (a-1))
    __builtin_abort ();
}
int main()
{
  long long x;
  uintptr_t a = __alignof__(x);
  foo(&x, a);
  return 0;
}

and the frame of main not being aligned to 8 bytes.

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2020-07-24 21:20 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 12:58 [Bug target/95237] New: LOCAL_DECL_ALIGNMENT shrinks alignment, FAIL gcc.target/i386/pr69454-2.c rguenth at gcc dot gnu.org
2020-05-20 15:34 ` [Bug target/95237] " hjl.tools at gmail dot com
2020-05-28  7:36 ` rguenth at gcc dot gnu.org
2020-06-01  8:38 ` ubizjak at gmail dot com
2020-06-01 20:47 ` skpgkp2 at gmail dot com
2020-06-01 21:24 ` hjl.tools at gmail dot com
2020-06-02  3:31 ` kito at gcc dot gnu.org
2020-06-02  7:53 ` rguenth at gcc dot gnu.org
2020-06-02 11:06 ` hjl.tools at gmail dot com
2020-06-02 12:00 ` rguenther at suse dot de
2020-06-02 12:55 ` hjl.tools at gmail dot com
2020-06-02 13:07 ` rguenther at suse dot de
2020-06-02 13:18 ` hjl.tools at gmail dot com
2020-06-02 13:35 ` rguenther at suse dot de
2020-06-02 16:55 ` skpgkp2 at gmail dot com
2020-06-02 17:52 ` rguenther at suse dot de
2020-06-11 17:09 ` jakub at gcc dot gnu.org
2020-06-19 17:40 ` skpgkp2 at gmail dot com
2020-06-20  0:36 ` skpgkp2 at gmail dot com
2020-06-26 13:47 ` jakub at gcc dot gnu.org
2020-07-20 13:05 ` dcb314 at hotmail dot com
2020-07-21 23:30 ` cvs-commit at gcc dot gnu.org
2020-07-21 23:30 ` hjl.tools at gmail dot com
2020-07-22  6:34 ` skpgkp2 at gmail dot com
2020-07-22 14:41 ` cvs-commit at gcc dot gnu.org
2020-07-24 21:19 ` cvs-commit at gcc dot gnu.org
2020-07-24 21:20 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).