2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-24 19:21:12 +08:00

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
This commit is contained in:
Maxim Kuvyrkov 2009-06-03 12:00:32 +00:00 committed by Maxim Kuvyrkov
parent 9961eb4568
commit 8896147199
4 changed files with 15 additions and 8 deletions
gcc
ChangeLog
config/m68k
testsuite/gcc.dg

@ -1,3 +1,10 @@
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>
PR tree-optimization/40323

@ -126,13 +126,6 @@ along with GCC; see the file COPYING3. If not see
if ((LOG) > 0) \
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
assembler operation to identify the following data as uninitialized global
data. */

@ -955,6 +955,13 @@ do { if (cc_prev_status.flags & CC_IN_68881) \
if ((LOG) >= 1) \
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) \
fprintf (FILE, "\t.skip %u\n", (int)(SIZE))

@ -1,5 +1,5 @@
/* { 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.
The code generated for the switch statement expected the jump table