]>
Commit | Line | Data |
---|---|---|
1d506c26 | 1 | # Copyright 2023-2024 Free Software Foundation, Inc. |
1d98e564 TV |
2 | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 3 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |
15 | ||
16 | # Check that epilogue unwind info is not used for gcc < 4.5.0, i386 case. | |
17 | ||
18 | require is_x86_like_target | |
19 | ||
2654f77d TV |
20 | set srcfile_flags {} |
21 | lappend srcfile_flags debug | |
22 | lappend srcfile_flags nopie | |
23 | ||
24 | set srcfile2_flags $srcfile_flags | |
25 | set ldflags $srcfile_flags | |
1d98e564 TV |
26 | |
27 | if [info exists COMPILE] { | |
28 | standard_testfile unwind-on-each-insn.c unwind-on-each-insn-foo.c | |
29 | # When updating the .s file, use these flags to generate the file: | |
30 | #lappend srcfile2_flags additional_flags=-save-temps | |
31 | #lappend srcfile2_flags additional_flags=-dA | |
32 | # and do the following: | |
33 | # - copy it in place, run the test-case and verify that all tests pass. | |
34 | # - break the epilogue unwind info by commenting out the cfi directive | |
35 | # before ret, and verify that some tests start failing. | |
36 | # - change the producer strings to 4.4.7 (for completeness, do this also | |
37 | # in the comments generated by -dA), and verify that all tests pass | |
38 | # again. | |
39 | } else { | |
40 | standard_testfile unwind-on-each-insn.c .s | |
41 | } | |
42 | ||
43 | source $srcdir/$subdir/unwind-on-each-insn.exp.tcl |