diff options
Diffstat (limited to 'gas/gen-sframe.h')
-rw-r--r-- | gas/gen-sframe.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/gen-sframe.h b/gas/gen-sframe.h index e4a4c6e..8ad521b 100644 --- a/gas/gen-sframe.h +++ b/gas/gen-sframe.h @@ -21,6 +21,16 @@ #ifndef GENSFRAME_H #define GENSFRAME_H +/* Errors shouldn't be emitted either if SFrames are default-enabled, as + we interpret default-enabled as "opportunistic SFrames". Users don't + want to be bothered by something preventing emission of SFrames in + such a case. */ +#define sframe_as_bad(format, ...) \ + do { \ + if (flag_gen_sframe == GEN_SFRAME_ENABLED) \ + as_bad (format, ##__VA_ARGS__); \ + } while (0) + #define SFRAME_FRE_ELEM_LOC_REG 0 #define SFRAME_FRE_ELEM_LOC_STACK 1 |