http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58034

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.7.2
      Known to fail|                            |4.8.1, 4.8.2, 4.9.0

--- Comment #5 from Alan Modra <amodra at gmail dot com> ---
This somewhat reduced testcase fails with mainline.

#include <setjmp.h>
#include <signal.h>

static sigjmp_buf jmpbuf;

static void
sig_handler (int signo)
{
  siglongjmp (jmpbuf, 1);
}

int
main (void)
{
  char *p = 0;
  struct sigaction sa;

  sa.sa_handler = sig_handler;
  sigemptyset (&sa.sa_mask);
  sa.sa_flags = SA_SIGINFO;

  if (sigaction (SIGSEGV, &sa, 0))
    return 1;

  if (setjmp (jmpbuf))
    return 0;
  __builtin_memcpy (p, "abc", 4);
  return 1;
}

Reply via email to