Commit 2a62514f by Kyrylo Tkachov Committed by Kyrylo Tkachov

[AArch64] Error out of arm_neon.h if nofp/nosimd

	* config/aarch64/arm_neon.h: Error out if AdvancedSIMD
	is not available.

	* gcc.target/aarch64/arm_neon-nosimd-error.c: New test.

From-SVN: r219594
parent 3bbbd3ee
2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/arm_neon.h: Error out if AdvancedSIMD
is not available.
2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* doc/invoke.texi (mapcs): Mention deprecation.
(mapcs-frame): Likewise.
......
......@@ -27,6 +27,10 @@
#ifndef _AARCH64_NEON_H_
#define _AARCH64_NEON_H_
#ifndef __ARM_NEON
#error You must enable AdvancedSIMD instructions to use arm_neon.h
#else
#include <stdint.h>
#define __AARCH64_UINT64_C(__C) ((uint64_t) __C)
......@@ -25209,3 +25213,5 @@ __INTERLEAVE_LIST (zip)
#undef __aarch64_vdupq_laneq_u64
#endif
#endif
2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/aarch64/arm_neon-nosimd-error.c: New test.
2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR target/64453
......
/* { dg-do compile } */
/* { dg-options "-mgeneral-regs-only" } */
/* { dg-excess-errors "You must enable" } */
#include "arm_neon.h"
int
foo ()
{
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment