diff options
Diffstat (limited to 'gcc/config/i386')
-rw-r--r-- | gcc/config/i386/midipix.c | 7 | ||||
-rw-r--r-- | gcc/config/i386/midipix.h | 12 | ||||
-rw-r--r-- | gcc/config/i386/t-midipix-eh | 28 |
3 files changed, 47 insertions, 0 deletions
diff --git a/gcc/config/i386/midipix.c b/gcc/config/i386/midipix.c index 1636911b5..a8a1b615f 100644 --- a/gcc/config/i386/midipix.c +++ b/gcc/config/i386/midipix.c @@ -406,6 +406,13 @@ void midipix_i386_pe_seh_unwind_emit( } +enum unwind_info_type midipix_except_unwind_info(struct gcc_options * opts) +{ + (void)opts; + return UI_SEH; +} + + section * midipix_i386_pe_function_section ( tree decl, enum node_frequency freq, diff --git a/gcc/config/i386/midipix.h b/gcc/config/i386/midipix.h index f87cdc5c5..73d5a3a62 100644 --- a/gcc/config/i386/midipix.h +++ b/gcc/config/i386/midipix.h @@ -57,6 +57,15 @@ #undef TARGET_SEH #define TARGET_SEH (TARGET_NT64 && flag_unwind_tables) +#undef TARGET_EXCEPT_UNWIND_INFO +#define TARGET_EXCEPT_UNWIND_INFO midipix_except_unwind_info + +#undef TARGET_PERSONALITY_FUNCTION +#define TARGET_PERSONALITY_FUNCTION + +#undef TARGET_PERSONALITY_FUNCTION_MIDIPIX +#define TARGET_PERSONALITY_FUNCTION_MIDIPIX + #undef MAX_OFILE_ALIGNMENT #define MAX_OFILE_ALIGNMENT (8 * (2 * 4096)) @@ -406,6 +415,9 @@ extern void midipix_asm_output_dwarf_offset (FILE * asmout, unsigned size, cons extern unsigned int midipix_dbx_get_register_number (unsigned int n); extern unsigned int midipix_dbx_get_dwarf_frame_register_number (unsigned int n); +extern enum unwind_info_type midipix_except_unwind_info( + struct gcc_options * opts); + extern section * midipix_i386_pe_function_section( tree decl, enum node_frequency freq, diff --git a/gcc/config/i386/t-midipix-eh b/gcc/config/i386/t-midipix-eh new file mode 100644 index 000000000..9bca6ec38 --- /dev/null +++ b/gcc/config/i386/t-midipix-eh @@ -0,0 +1,28 @@ +############################################################################### +## ## +## midipix target-specific build recipes ## +## ## +## Copyright (C) 2014--2019 Z. Gilboa ## +## ## +## This program is free software: you can redistribute it and/or modify ## +## it under the terms of the GNU General Public License as published by ## +## the Free Software Foundation, either version 3 of the License, or ## +## (at your option) any later version. ## +## ## +## This program is distributed in the hope that it will be useful, ## +## but WITHOUT ANY WARRANTY; without even the implied warranty of ## +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## +## GNU General Public License for more details. ## +## ## +## You should have received a copy of the GNU General Public License ## +## along with this program. If not, see <http://www.gnu.org/licenses/>. ## +## ## +############################################################################### + +# framework-provided exception handling used by all midipix targets, no suffix +EH_MODEL = + +# midipix exception handling +UNWIND_H = $(srcdir)/unwind-midipix.h +LIB2ADDEH = $(srcdir)/unwind-midipix.c +LIB2ADDEHDEP = $(srcdir)/unwind-midipix.h $(srcdir)/unwind-c.c |