From a78332ae7f86c8098ea8a515b10ddb01490cf625 Mon Sep 17 00:00:00 2001 From: pierre Date: Fri, 8 Jan 2021 11:05:29 +0000 Subject: [PATCH] Add setting of all optimization debug macros with single DEBUG_ALL_OPT macro git-svn-id: trunk@48111 - --- compiler/fpcdefs.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/compiler/fpcdefs.inc b/compiler/fpcdefs.inc index 6b762b1c50..59b4c1f240 100644 --- a/compiler/fpcdefs.inc +++ b/compiler/fpcdefs.inc @@ -31,6 +31,31 @@ {$define USEINLINE} {$endif EXTDEBUG} +{$ifdef DEBUG_ALL_OPT} + { for aopt unit } + {$define DEBUG_OPTALLOC} + {$define DEBUG_INSTRUCTIONREGISTERDEPENDENCIES} + {for CPU/aoptcpu unit } + {$define DEBUG_AOPTCPU} + {$define DEBUG_PREREGSCHEDULER (arm specific) } + { for aoptobj unit } + {$define DEBUG_AOPTOBJ} + {$define ALLOCREGDEBUG} + { for optconstprop unit } + {$define DEBUG_CONSTPROP} + { for optcse unit } + {$define CSEDEBUG} + { for optdeadstore unit } + {$define DEBUG_DEADSTORE} + { for optdfa unit } + {$define DEBUG_DFA} + { for optloop unit } + {$define DEBUG_OPTFORLOOP} + {$define DEBUG_OPTSTRENGTH} + { for optvirt unit } + {$define DEBUG_DEVIRT} +{$endif} + {$define USEEXCEPT} {$ifdef VER3_0}