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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |hjl.tools at gmail dot com
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2023-05-26

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-cfl-3 pr109982]$ cat x.c 
struct S0 {
   long long int f0;
} __attribute__((aligned(128)));

int padding = 1;
static struct S0 g_2415 __attribute__((aligned(4))) = {-1L};
static struct S0 *g_2500 __attribute__((visibility("internal"), used)) =
&g_2415;

const struct S0 func_21 ()
{
  return *g_2500;
}

int
main ()
{
  func_21 ();
  return 0;
}
[hjl@gnu-cfl-3 pr109982]$ make
gcc -mtune=haswell -mavx -g -w   -c -o x.o x.c
gcc -mtune=haswell -mavx -g -w -o x x.o
./x
make: *** [Makefile:16: all] Segmentation fault (core dumped)
[hjl@gnu-cfl-3 pr109982]$

Reply via email to