Commit 1334b570 by Alan Modra Committed by Alan Modra

re PR target/21098 (.note.GNU-stack emitted)

	PR target/21098
	* config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
	* config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.

From-SVN: r98390
parent 4821f309
2005-04-19 Alan Modra <amodra@bigpond.net.au>
PR target/21098
* config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
* config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
2005-04-19 Alexandre Oliva <aoliva@redhat.com> 2005-04-19 Alexandre Oliva <aoliva@redhat.com>
* tree-cfg.c (dump_function_to_file): Use cfun info only if it * tree-cfg.c (dump_function_to_file): Use cfun info only if it
......
/* Definitions of target machine for GNU compiler, /* Definitions of target machine for GNU compiler,
for 64 bit PowerPC linux. for 64 bit PowerPC linux.
Copyright (C) 2000, 2001, 2002, 2003, 2004 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -552,7 +552,7 @@ while (0) ...@@ -552,7 +552,7 @@ while (0)
#undef DRAFT_V4_STRUCT_RET #undef DRAFT_V4_STRUCT_RET
#define DRAFT_V4_STRUCT_RET (!TARGET_64BIT) #define DRAFT_V4_STRUCT_RET (!TARGET_64BIT)
#define TARGET_ASM_FILE_END file_end_indicate_exec_stack #define TARGET_ASM_FILE_END rs6000_elf_end_indicate_exec_stack
#define TARGET_HAS_F_SETLKW #define TARGET_HAS_F_SETLKW
......
...@@ -642,6 +642,7 @@ static void rs6000_file_start (void); ...@@ -642,6 +642,7 @@ static void rs6000_file_start (void);
static unsigned int rs6000_elf_section_type_flags (tree, const char *, int); static unsigned int rs6000_elf_section_type_flags (tree, const char *, int);
static void rs6000_elf_asm_out_constructor (rtx, int); static void rs6000_elf_asm_out_constructor (rtx, int);
static void rs6000_elf_asm_out_destructor (rtx, int); static void rs6000_elf_asm_out_destructor (rtx, int);
static void rs6000_elf_end_indicate_exec_stack (void) ATTRIBUTE_UNUSED;
static void rs6000_elf_select_section (tree, int, unsigned HOST_WIDE_INT); static void rs6000_elf_select_section (tree, int, unsigned HOST_WIDE_INT);
static void rs6000_elf_unique_section (tree, int); static void rs6000_elf_unique_section (tree, int);
static void rs6000_elf_select_rtx_section (enum machine_mode, rtx, static void rs6000_elf_select_rtx_section (enum machine_mode, rtx,
...@@ -16652,6 +16653,13 @@ rs6000_elf_declare_function_name (FILE *file, const char *name, tree decl) ...@@ -16652,6 +16653,13 @@ rs6000_elf_declare_function_name (FILE *file, const char *name, tree decl)
} }
ASM_OUTPUT_LABEL (file, name); ASM_OUTPUT_LABEL (file, name);
} }
static void
rs6000_elf_end_indicate_exec_stack (void)
{
if (TARGET_32BIT)
file_end_indicate_exec_stack ();
}
#endif #endif
#if TARGET_XCOFF #if TARGET_XCOFF
......
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