+2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
+
+ * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
+ warn_unused_result attribute.
+ (cmse_check_address_range): Add warn_unused_result attribute.
+
2019-07-31 Richard Biener <rguenther@suse.de>
PR tree-optimization/91257
/* FIXME: diagnose use outside cmse_nonsecure_entry functions. */
__extension__ static __inline int __attribute__ ((__always_inline__))
+__attribute__ ((warn_unused_result))
cmse_nonsecure_caller (void)
{
return __builtin_arm_cmse_nonsecure_caller ();
#define CMSE_MPU_READ 8
__extension__ void *
+__attribute__ ((warn_unused_result))
cmse_check_address_range (void *, size_t, int);
#define cmse_check_pointed_object(p, f) \
+2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
+
+ * gcc.target/arm/cmse/cmse-17.c: New test.
+
2019-07-30 Martin Sebor <msebor@redhat.com>
PR testsuite/91258
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-mcmse"} */
+
+#include <arm_cmse.h>
+
+void foo()
+{
+ int *data;
+ cmse_check_address_range((int*)data, 0, 0); /* { dg-warning "ignoring return value" } */
+}
+2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
+
+ * config/arm/cmse.c (cmse_check_address_range): Add
+ warn_unused_result attribute.
+
2019-07-22 Martin Liska <mliska@suse.cz>
* config/pa/stublib.c: Remove stub symbol __gnu_lto_v1.
address range. See ACLE changes for ARMv8-M. */
void *
+__attribute__ ((warn_unused_result))
cmse_check_address_range (void *p, size_t size, int flags)
{
cmse_address_info_t permb, perme;