Commit 34520c98 by Eric Christopher

target-supports.exp (check_effective_target_fstack_protector): New.

2007-03-28  Eric Christopher  <echristo@apple.com>

        * lib/target-supports.exp (check_effective_target_fstack_protector): New.
        * gcc.dg/ssp-1.c: Use.
        * gcc.dg/ssp-2.c: Ditto.

From-SVN: r123314
parent aafc814c
2007-03-28 Eric Christopher <echristo@apple.com>
* lib/target-supports.exp (check_effective_target_fstack_protector): New.
* gcc.dg/ssp-1.c: Use.
* gcc.dg/ssp-2.c: Ditto.
2007-03-28 Simon Martin <simartin@users.sourceforge.net>
PR c++/29077
/* { dg-do run { target native } } */
/* { dg-options "-fstack-protector" } */
/* { dg-require-effective-target fstack_protector } */
#include <stdlib.h>
static void
......
/* { dg-do run { target native } } */
/* { dg-options "-fstack-protector" } */
/* { dg-require-effective-target fstack_protector } */
#include <stdlib.h>
void
......
......@@ -491,6 +491,14 @@ proc check_effective_target_fopenmp {} {
} "-fopenmp"]
}
# Return 1 if the target supports -fstack-protector
proc check_effective_target_fstack_protector {} {
return [check_no_compiler_messages fstack_protector assembly {
void foo (void) { }
} "-fstack-protector"]
}
# Return 1 if compilation with -freorder-blocks-and-partition is error-free
# for trivial code, 0 otherwise.
......
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