From e381c27adc3a1648888d7ef5fc33f4529cbede15 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Thu, 31 Oct 2002 19:40:12 +0000 Subject: [PATCH] enable -falign-xxx flags From-SVN: r58690 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/darwin.h | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 03c3499a648..6a99d0d5f3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 31 Dale Johannesen + + * config/rs6000/darwin.h: Enable -falign-xxx options. + Thu Oct 31 18:08:00 CET 2002 Jan Hubicka * i386.c (override_options): Set defaults for flag_omit_frame_pointer, diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index 6bfc07ca981..4cee7603090 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -136,6 +136,19 @@ Boston, MA 02111-1307, USA. */ #define RESTORE_FP_PREFIX "._restf" #define RESTORE_FP_SUFFIX "" +/* This is how to output an assembler line that says to advance + the location counter to a multiple of 2**LOG bytes using the + "nop" instruction as padding. */ + +#define ASM_OUTPUT_ALIGN_WITH_NOP(FILE,LOG) \ + do { \ + if ((LOG) < 3) { \ + ASM_OUTPUT_ALIGN (FILE,LOG); \ + } \ + else /* nop == ori r0,r0,0 */ \ + fprintf (FILE, "\t.align32 %d,0x60000000\n", (LOG)); \ + } while (0); + /* Generate insns to call the profiler. */ #define PROFILE_HOOK(LABEL) output_profile_hook (LABEL)