This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix unwind info in x86 interrupt functions (PR debug/83728)
- From: Andreas Krebbel <krebbel at linux dot ibm dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 Dec 2018 22:00:34 +0100
- Subject: Re: [PATCH] Fix unwind info in x86 interrupt functions (PR debug/83728)
- References: <20180118232832.GO2063@tucnak>
On 1/19/18 12:28 AM, Jakub Jelinek wrote:
+#ifndef DEFAULT_INCOMING_FRAME_SP_OFFSET
+#define DEFAULT_INCOMING_FRAME_SP_OFFSET INCOMING_FRAME_SP_OFFSET
+#endif
...
+ /* If the current function starts with a non-standard incoming frame
+ sp offset, emit a note before the first instruction. */
+ if (entry
+ && DEFAULT_INCOMING_FRAME_SP_OFFSET != INCOMING_FRAME_SP_OFFSET)
+ {
This triggers a warning on s390x:
/home/andreas/build/../gcc/gcc/dwarf2cfi.c: In function ‘void scan_trace(dw_trace_info*, bool)’:
/home/andreas/build/../gcc/gcc/dwarf2cfi.c:2541:43: error: self-comparison always evaluates to false
[-Werror=tautol
ogical-compare]
2541 | && DEFAULT_INCOMING_FRAME_SP_OFFSET != INCOMING_FRAME_SP_OFFSET)
| ^~
Andreas