Commit 922a784c by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

Emit executable-stack note correctly for CRIS targets.

	* config/cris/cris.c (cris_file_end): New function.
	(TARGET_ASM_FILE_END): Define.

From-SVN: r189755
parent eb448bee
2012-07-22 Hans-Peter Nilsson <hp@axis.com>
Emit executable-stack note correctly for CRIS targets.
* config/cris/cris.c (cris_file_end): New function.
(TARGET_ASM_FILE_END): Define.
2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
Maxim Kuvyrkov <maxim@codesourcery.com>
NetLogic Microsystems Inc.
......
......@@ -153,6 +153,7 @@ static void cris_trampoline_init (rtx, tree, rtx);
static rtx cris_function_value(const_tree, const_tree, bool);
static rtx cris_libcall_value (enum machine_mode, const_rtx);
static bool cris_function_value_regno_p (const unsigned int);
static void cris_file_end (void);
/* This is the parsed result of the "-max-stack-stackframe=" option. If
it (still) is zero, then there was no such option given. */
......@@ -199,6 +200,8 @@ int cris_cpu_version = CRIS_DEFAULT_CPU_VERSION;
#undef TARGET_ASM_FILE_START
#define TARGET_ASM_FILE_START cris_file_start
#undef TARGET_ASM_FILE_END
#define TARGET_ASM_FILE_END cris_file_end
#undef TARGET_INIT_LIBFUNCS
#define TARGET_INIT_LIBFUNCS cris_init_libfuncs
......@@ -2747,6 +2750,17 @@ cris_file_start (void)
default_file_start ();
}
/* Output that goes at the end of the file, similarly. */
static void
cris_file_end (void)
{
/* For CRIS, the default is to assume *no* executable stack, so output
an executable-stack-note only when needed. */
if (TARGET_LINUX && trampolines_created)
file_end_indicate_exec_stack ();
}
/* Rename the function calls for integer multiply and divide. */
static void
cris_init_libfuncs (void)
......
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