gcc:
2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
* config/i386/i386.c (print_reg): Emit an error message on attempt to
print FLAGS_REG.
testsuite:
2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
* gcc.target/i386/asm-flag-7.c: New test.
From-SVN: r237702
+2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * config/i386/i386.c (print_reg): Emit an error message on attempt to
+ print FLAGS_REG.
+
2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (arm_cortex_a73_tune): New struct.
gcc_assert (regno != ARG_POINTER_REGNUM
&& regno != FRAME_POINTER_REGNUM
- && regno != FLAGS_REG
&& regno != FPSR_REG
&& regno != FPCR_REG);
+ if (regno == FLAGS_REG)
+ {
+ output_operand_lossage ("invalid use of asm flag output");
+ return;
+ }
+
duplicated = code == 'd' && TARGET_AVX;
switch (msize)
+2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * gcc.target/i386/asm-flag-7.c: New test.
+
2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* gcc.dg/tree-ssa/forwprop-28.c: Remove mep-* support.
--- /dev/null
+/* Test error conditions of asm flag outputs. */
+/* { dg-do compile } */
+/* { dg-options "" } */
+
+void test(void)
+{
+ char x;
+ asm("# %0" : "=@ccz"(x)); /* { dg-error "invalid use of asm flag output" } */
+}