Commit 88961471 by Maxim Kuvyrkov Committed by Maxim Kuvyrkov

linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...

	* config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
	* config/m68k/m68k.h: ... here.
	* testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
	m68k and fido.

From-SVN: r148127
parent 9961eb45
2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
* config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
* config/m68k/m68k.h: ... here.
* testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
m68k and fido.
2009-06-03 Martin Jambor <mjambor@suse.cz> 2009-06-03 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/40323 PR tree-optimization/40323
......
...@@ -126,13 +126,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -126,13 +126,6 @@ along with GCC; see the file COPYING3. If not see
if ((LOG) > 0) \ if ((LOG) > 0) \
fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG)); fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG));
#ifdef HAVE_GAS_BALIGN_AND_P2ALIGN
/* Use "move.l %a4,%a4" to advance within code. */
#define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG) \
if ((LOG) > 0) \
fprintf ((FILE), "\t.balignw %u,0x284c\n", 1 << (LOG));
#endif
/* If defined, a C expression whose value is a string containing the /* If defined, a C expression whose value is a string containing the
assembler operation to identify the following data as uninitialized global assembler operation to identify the following data as uninitialized global
data. */ data. */
......
...@@ -955,6 +955,13 @@ do { if (cc_prev_status.flags & CC_IN_68881) \ ...@@ -955,6 +955,13 @@ do { if (cc_prev_status.flags & CC_IN_68881) \
if ((LOG) >= 1) \ if ((LOG) >= 1) \
fprintf (FILE, "\t.even\n"); fprintf (FILE, "\t.even\n");
#ifdef HAVE_GAS_BALIGN_AND_P2ALIGN
/* Use "move.l %a4,%a4" to advance within code. */
#define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG) \
if ((LOG) > 0) \
fprintf ((FILE), "\t.balignw %u,0x284c\n", 1 << (LOG));
#endif
#define ASM_OUTPUT_SKIP(FILE,SIZE) \ #define ASM_OUTPUT_SKIP(FILE,SIZE) \
fprintf (FILE, "\t.skip %u\n", (int)(SIZE)) fprintf (FILE, "\t.skip %u\n", (int)(SIZE))
......
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-falign-labels=8" { target { ! { m68k*-*-* || fido*-*-* } } } } */ /* { dg-options "-falign-labels=8" } */
/* On ARMv7-A CPUs, this test resulted in incorrect code generation. /* On ARMv7-A CPUs, this test resulted in incorrect code generation.
The code generated for the switch statement expected the jump table The code generated for the switch statement expected the jump table
......
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