diff options
author | fche <fche@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-14 18:36:50 +0000 |
---|---|---|
committer | fche <fche@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-14 18:36:50 +0000 |
commit | 79fddb5b26c86f255f814c1a6d4e833d76022cd0 (patch) | |
tree | 0ea4e539d4ddb05b1fca973cd12ac3bf069637bd /libmudflap | |
parent | 8aca211c937f4945af180028ec2eca1c29ded66e (diff) | |
download | gcc-79fddb5b26c86f255f814c1a6d4e833d76022cd0.tar.gz |
2005-06-14 Frank Ch. Eigler <fche@redhat.com>
PR mudflap/22064
* mf-impl.h (mudflap_mode, violation_mode): Make these ordinary
unsigned vars with #defines instead of enums.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100945 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 6 | ||||
-rw-r--r-- | libmudflap/mf-impl.h | 26 |
2 files changed, 16 insertions, 16 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 46c997fc987..4ca7da594b7 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -1,3 +1,9 @@ +2005-06-14 Frank Ch. Eigler <fche@redhat.com> + + PR mudflap/22064 + * mf-impl.h (mudflap_mode, violation_mode): Make these ordinary + unsigned vars with #defines instead of enums. + 2005-05-09 Mike Stump <mrs@apple.com> * configure: Regenerate. diff --git a/libmudflap/mf-impl.h b/libmudflap/mf-impl.h index 82d7d2aba14..47abdf602e7 100644 --- a/libmudflap/mf-impl.h +++ b/libmudflap/mf-impl.h @@ -167,24 +167,18 @@ struct __mf_options #endif /* Major operation mode */ - enum - { - mode_nop, /* mudflaps do nothing */ - mode_populate, /* mudflaps populate tree but do not check for violations */ - mode_check, /* mudflaps populate and check for violations (normal) */ - mode_violate /* mudflaps trigger a violation on every call (diagnostic) */ - } - mudflap_mode; +#define mode_nop 0 /* Do nothing. */ +#define mode_populate 1 /* Populate tree but do not check for violations. */ +#define mode_check 2 /* Populate and check for violations (normal). */ +#define mode_violate 3 /* Trigger a violation on every call (diagnostic). */ + unsigned mudflap_mode; /* How to handle a violation. */ - enum - { - viol_nop, /* Return control to application. */ - viol_segv, /* Signal self with segv. */ - viol_abort, /* Call abort (). */ - viol_gdb /* Fork a debugger on self */ - } - violation_mode; +#define viol_nop 0 /* Return control to application. */ +#define viol_segv 1 /* Signal self with segv. */ +#define viol_abort 2 /* Call abort (). */ +#define viol_gdb 3 /* Fork a debugger on self */ + unsigned violation_mode; /* Violation heuristics selection. */ unsigned heur_stack_bound; /* allow current stack region */ |