public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix minor oversight in stack checking patch series
@ 2011-05-11 18:26 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2011-05-11 18:26 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

We don't need to initialize stack_check_probe_note in all cases now, but only 
if the mechanism is the generic one.

Tested on i586-suse-linux, applied on the mainline as obvious.


2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>

	* function.c (expand_function_start): Initialize stack_check_probe_note
	only if the generic stack checking mechanism is used.


-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-diff, Size: 608 bytes --]

Index: function.c
===================================================================
--- function.c	(revision 173643)
+++ function.c	(working copy)
@@ -4813,9 +4813,8 @@ expand_function_start (tree subr)
 #endif
     }
 
-  /* After the display initializations is where the stack checking
-     probe should go.  */
-  if(flag_stack_check)
+  /* If we are doing generic stack checking, the probe should go here.  */
+  if (flag_stack_check == GENERIC_STACK_CHECK)
     stack_check_probe_note = emit_note (NOTE_INSN_DELETED);
 
   /* Make sure there is a line number after the function entry setup code.  */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-11 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-11 18:26 Fix minor oversight in stack checking patch series Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).