summaryrefslogtreecommitdiff
path: root/riscv_new/compiler/scandir.pas
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-08-19 10:54:45 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-08-19 10:54:45 +0000
commit630c20e6a562086875ebd769e60bf19cc65191cb (patch)
treeb29577fef2b4fd9e4b145daced45e2ebf975db4f /riscv_new/compiler/scandir.pas
parent1a086b028815e0fc2e480d71f61b5217bfd86bf4 (diff)
downloadfpc-630c20e6a562086875ebd769e60bf19cc65191cb.tar.gz
+ basic infrastructure to generate code for floating point exception
checking for CPUs without floating point exception support git-svn-id: https://svn.freepascal.org/svn/fpc/branches/laksen@39637 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'riscv_new/compiler/scandir.pas')
-rw-r--r--riscv_new/compiler/scandir.pas7
1 files changed, 7 insertions, 0 deletions
diff --git a/riscv_new/compiler/scandir.pas b/riscv_new/compiler/scandir.pas
index a30f7a13cd..f3fe0286d8 100644
--- a/riscv_new/compiler/scandir.pas
+++ b/riscv_new/compiler/scandir.pas
@@ -436,6 +436,12 @@ unit scandir;
end;
+ procedure dir_checkfpuexceptions;
+ begin
+ do_localswitch(cs_check_fpu_exceptions);
+ end;
+
+
procedure dir_objectchecks;
begin
do_localswitch(cs_check_object);
@@ -1902,6 +1908,7 @@ unit scandir;
AddDirective('BOOLEVAL',directive_all, @dir_booleval);
AddDirective('BITPACKING',directive_all, @dir_bitpacking);
AddDirective('CALLING',directive_all, @dir_calling);
+ AddDirective('CHECKFPUEXCEPTIONS',directive_all, @dir_checkfpuexceptions);
AddDirective('CHECKLOWADDRLOADS',directive_all, @dir_checklowaddrloads);
AddDirective('CHECKPOINTER',directive_all, @dir_checkpointer);
AddDirective('CODEALIGN',directive_all, @dir_codealign);