gcc/libgcc/config/arm
Jakub Jelinek 811a475ea3 arm: Fix up arm installed unwind.h for use in pedantic modes [PR93615]
As the following testcase shows, unwind.h on ARM can't be (starting with GCC
10) compiled with -std=c* modes, only -std=gnu* modes.
The problem is it uses asm keyword, which isn't a keyword in those modes
(system headers vs. non-system ones don't make a difference here).
glibc and other installed headers use __asm or __asm__ keywords instead that
work fine in both standard and gnu modes.

While there, as it is an installed header, I think it is also wrong to
completely ignore any identifier namespace rules.
The generic unwind.h defines just _Unwind* namespace identifiers plus
_sleb128_t/_uleb128_t (but e.g. unlike libstdc++/glibc headers doesn't
uglify operand names), the ARM unwind.h is much worse here.  I've just
changed the gnu_Unwind_Find_got function at least not be in user identifier
namespace, but perhaps it would be good to go further and rename e.g.
or e.g.
  typedef _Unwind_Reason_Code (*personality_routine) (_Unwind_State,
      _Unwind_Control_Block *, _Unwind_Context *);
in unwind-arm-common.h.

2020-02-07  Jakub Jelinek  <jakub@redhat.com>

	PR target/93615
	* config/arm/unwind-arm.h (gnu_Unwind_Find_got): Rename to ...
	(_Unwind_gnu_Find_got): ... this.  Use __asm instead of asm.  Remove
	trailing :s in asm.  Formatting fixes.
	(_Unwind_decode_typeinfo_ptr): Adjust caller.

	* gcc.dg/pr93615.c: New test.
2020-02-07 11:01:14 +01:00
..
bpabi-lib.h Update copyright years. 2020-01-01 12:51:42 +01:00
bpabi-v6m.S Update copyright years. 2020-01-01 12:51:42 +01:00
bpabi.c Update copyright years. 2020-01-01 12:51:42 +01:00
bpabi.S Update copyright years. 2020-01-01 12:51:42 +01:00
cmse_nonsecure_call.S Update copyright years. 2020-01-01 12:51:42 +01:00
cmse.c Update copyright years. 2020-01-01 12:51:42 +01:00
crtfastmath.c Update copyright years. 2020-01-01 12:51:42 +01:00
crti.S Update copyright years. 2020-01-01 12:51:42 +01:00
crtn.S Update copyright years. 2020-01-01 12:51:42 +01:00
fp16.c Update copyright years. 2020-01-01 12:51:42 +01:00
freebsd-atomic.c Update copyright years. 2020-01-01 12:51:42 +01:00
ieee754-df.S Update copyright years. 2020-01-01 12:51:42 +01:00
ieee754-sf.S Update copyright years. 2020-01-01 12:51:42 +01:00
lib1funcs.S Update copyright years. 2020-01-01 12:51:42 +01:00
libgcc-bpabi.ver Update copyright years. 2020-01-01 12:51:42 +01:00
libunwind.S Update copyright years. 2020-01-01 12:51:42 +01:00
linux-atomic-64bit.c Update copyright years. 2020-01-01 12:51:42 +01:00
linux-atomic.c Update copyright years. 2020-01-01 12:51:42 +01:00
pr-support.c Update copyright years. 2020-01-01 12:51:42 +01:00
sfp-machine.h
symbian-lib.h Update copyright years. 2020-01-01 12:51:42 +01:00
t-arm [PATCH, GCC/ARM, 1/10] Fix -mcmse check in libgcc 2020-01-16 15:09:19 +00:00
t-bpabi
t-elf [ARM] Optimize executable size when using softfloat fmul/dmul 2018-12-19 17:34:18 +00:00
t-freebsd configure.ac: Don't add ${libgcj} for arm*-*-freebsd*. 2015-01-09 15:06:02 +01:00
t-linux
t-linux-eabi
t-netbsd [NetBSD] Add support for the Arm EABI. 2019-06-14 14:04:20 +00:00
t-netbsd-eabi [NetBSD] Add support for the Arm EABI. 2019-06-14 14:04:20 +00:00
t-softfp elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to decide whether to prevent... 2016-07-07 08:54:18 +00:00
t-strongarm-elf
t-symbian
t-vxworks7 config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as well as arm-wrs-vxworks. 2017-08-01 14:14:21 +00:00
t-wince-pe
unaligned-funcs.c Update copyright years. 2020-01-01 12:51:42 +01:00
unwind-arm-vxworks.c Update copyright years. 2020-01-01 12:51:42 +01:00
unwind-arm.c Update copyright years. 2020-01-01 12:51:42 +01:00
unwind-arm.h arm: Fix up arm installed unwind.h for use in pedantic modes [PR93615] 2020-02-07 11:01:14 +01:00