]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/21098 (.note.GNU-stack emitted)
authorAlan Modra <amodra@bigpond.net.au>
Fri, 29 Apr 2005 00:32:00 +0000 (00:32 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 29 Apr 2005 00:32:00 +0000 (10:02 +0930)
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: r98959

gcc/ChangeLog
gcc/config/rs6000/linux64.h
gcc/config/rs6000/rs6000.c

index 564ee777385ae9de743516f2326eddfc2e781fed..e84420387f86d349c33afd542ba666e3e66ca3a2 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-29  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-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
 
        * config.gcc (avr-*-*): Remove redundant "case".
index 13d4ea573d0a9e0622fe030f85d8949cde258dbc..013e23a9a82f334649cb2f44b760ea42e0a5de0d 100644 (file)
@@ -551,7 +551,7 @@ while (0)
 #undef DRAFT_V4_STRUCT_RET
 #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
 
index 354446b62acdfb887eba793b293353a5c95c0164..1ffd4da16796c78a95e635dc507dc90859480fe1 100644 (file)
@@ -320,6 +320,7 @@ static void rs6000_file_start (void);
 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_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_unique_section (tree, int);
 static void rs6000_elf_select_rtx_section (enum machine_mode, rtx,
@@ -15788,6 +15789,13 @@ rs6000_elf_declare_function_name (FILE *file, const char *name, tree decl)
     }
   ASM_OUTPUT_LABEL (file, name);
 }
+
+static void
+rs6000_elf_end_indicate_exec_stack (void)
+{
+  if (TARGET_32BIT)
+    file_end_indicate_exec_stack ();
+}
 #endif
 
 #if TARGET_XCOFF