openbsd-ports/lang/egcs/stable/patches/patch-gcc_toplev_c
2004-01-31 15:23:58 +00:00

33 lines
1.2 KiB
Plaintext

$OpenBSD: patch-gcc_toplev_c,v 1.6 2004/01/31 15:23:58 espie Exp $
--- gcc/toplev.c.orig 2003-10-09 22:53:35.000000000 +0200
+++ gcc/toplev.c 2003-11-10 20:32:18.000000000 +0100
@@ -904,6 +904,9 @@ int align_functions_log;
minimum function alignment. Zero means no alignment is forced. */
int force_align_functions_log;
+/* Fake StackProtector option, does nothing. */
+int flag_propolice_protection = 0;
+
/* Table of supported debugging formats. */
static const struct
{
@@ -1186,6 +1189,8 @@ static const lang_independent_options f_
N_("Report on permanent memory allocation at end of run") },
{ "trapv", &flag_trapv, 1,
N_("Trap for signed overflow in addition / subtraction / multiplication") },
+ { "no-stack-protector", &flag_propolice_protection, 0,
+ N_("Fake disable stack protection") },
{ "new-ra", &flag_new_regalloc, 1,
N_("Use graph coloring register allocation.") },
};
@@ -1362,6 +1367,9 @@ documented_lang_options[] =
{ "-Wwrite-strings",
N_("Mark strings as 'const char *'") },
{ "-Wno-write-strings", "" },
+ { "-Wbounded",
+ N_("Fake bounds checking option") },
+ { "-Wno-bounded", "" },
#define DEFINE_LANG_NAME(NAME) { NULL, NAME },