package/gcc: backport xtensa trap pattern for 5.x
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 14 Nov 2016 10:05:41 +0000 (02:05 -0800)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 14 Nov 2016 21:53:12 +0000 (22:53 +0100)
commitd3f0d52144f27097bba225bdb2a3b1620d44ab5a
tree44e833e9b66282caeb5b24b4842c7c15e63f8233
parent7f4dfd11888d1a092f3b92e8550b3958d87412f3
package/gcc: backport xtensa trap pattern for 5.x

gcc 5.x uses trap pattern extensively to mark locations where program
execution should never get. Default pattern implementation emits a call
to 'abort' function. This function however is not always available, e.g.
it's not available for the libc dynamic linker. Backport implementation
of the trap pattern for xtensa that does not result in a call to
'abort'.

Fixes:
  http://autobuild.buildroot.net/results/0fbcc4475545904bf88f25a3bdf3ee552bf4960e
  http://autobuild.buildroot.net/results/cb7f5bdfac615d774f3bcd1b802f8d74460bc557
  http://autobuild.buildroot.net/results/cf3dc9ae4f74ff28b285f1a862b71d96384d7651

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/gcc/5.4.0/875-xtensa-implement-trap-pattern.patch [new file with mode: 0644]