diff options
Diffstat (limited to 'gnu/gcc/gcc/toplev.c')
-rw-r--r-- | gnu/gcc/gcc/toplev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/gcc/gcc/toplev.c b/gnu/gcc/gcc/toplev.c index 014a6605a36..39b92e10b23 100644 --- a/gnu/gcc/gcc/toplev.c +++ b/gnu/gcc/gcc/toplev.c @@ -2031,6 +2031,9 @@ toplev_main (unsigned int argc, const char **argv) /* Initialization of GCC's environment, and diagnostics. */ general_init (argv[0]); + if (pledge ("stdio rpath wpath cpath", NULL) == -1) + fatal_error ("can't pledge"); + /* Parse the options and do minimal processing; basically just enough to default flags appropriately. */ decode_options (argc, argv); |