-
- Downloads
"gcc/git@gitlab.cobolworx.com:COBOLworx/gcc-cobol.git" did not exist on "d7ff3142821bd114ba925cb5a3778d973fe5335e"
re PR target/10127 (-fstack-check let's program crash)
PR target/10127 PR ada/20548 * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete. (STACK_CHECK_PROBE_INTERVAL_EXP): New macro. (STACK_CHECK_MOVING_SP): Likewise. * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it. * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL. Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP. * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK. Document PROBE_STACK. * explow.c (anti_adjust_stack_and_probe): New function. (allocate_dynamic_stack_space): Do not directly allocate space if STACK_CHECK_MOVING_SP, instead invoke above function. (emit_stack_probe): Handle probe_stack insn. (PROBE_INTERVAL): New macro. (STACK_GROW_OPTAB): Likewise. (STACK_GROW_OFF): Likewise. (probe_stack_range): Use Pmode and memory_address consistently. Fix loop condition in the small constant case. Rewrite in the general case to be immune to wraparounds. Make sure the address of probes is valid. Try to use [base + disp] addressing mode if possible. * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack checking is enabled and STACK_CHECK_MOVING_SP. * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled, return 1 for volatile references to the stack pointer. * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on __builtin_alloca if stack checking is enabled. * unwind-dw2.c (uw_identify_context): Take into account whether the context is that of a signal frame or not. * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1. * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise. From-SVN: r153877
Showing
- gcc/ChangeLog 34 additions, 0 deletionsgcc/ChangeLog
- gcc/config/i386/linux.h 3 additions, 0 deletionsgcc/config/i386/linux.h
- gcc/config/i386/linux64.h 3 additions, 0 deletionsgcc/config/i386/linux64.h
- gcc/doc/md.texi 13 additions, 5 deletionsgcc/doc/md.texi
- gcc/doc/tm.texi 15 additions, 5 deletionsgcc/doc/tm.texi
- gcc/explow.c 258 additions, 82 deletionsgcc/explow.c
- gcc/expr.h 12 additions, 8 deletionsgcc/expr.h
- gcc/ira.c 3 additions, 0 deletionsgcc/ira.c
- gcc/rtlanal.c 5 additions, 0 deletionsgcc/rtlanal.c
- gcc/system.h 1 addition, 1 deletiongcc/system.h
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gnat.dg/stack_check1.adb 38 additions, 0 deletionsgcc/testsuite/gnat.dg/stack_check1.adb
- gcc/testsuite/gnat.dg/stack_check2.adb 43 additions, 0 deletionsgcc/testsuite/gnat.dg/stack_check2.adb
- gcc/tree.c 2 additions, 1 deletiongcc/tree.c
- gcc/unwind-dw2.c 7 additions, 1 deletiongcc/unwind-dw2.c
Loading
Please register or sign in to comment