Commit 665dff26 by Frank Ch. Eigler Committed by Frank Ch. Eigler

re PR libmudflap/22064 (libmudflap contains possible alias violations)

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.

From-SVN: r100945
parent 792f871e
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> 2005-05-09 Mike Stump <mrs@apple.com>
* configure: Regenerate. * configure: Regenerate.
......
...@@ -167,24 +167,18 @@ struct __mf_options ...@@ -167,24 +167,18 @@ struct __mf_options
#endif #endif
/* Major operation mode */ /* Major operation mode */
enum #define mode_nop 0 /* Do nothing. */
{ #define mode_populate 1 /* Populate tree but do not check for violations. */
mode_nop, /* mudflaps do nothing */ #define mode_check 2 /* Populate and check for violations (normal). */
mode_populate, /* mudflaps populate tree but do not check for violations */ #define mode_violate 3 /* Trigger a violation on every call (diagnostic). */
mode_check, /* mudflaps populate and check for violations (normal) */ unsigned mudflap_mode;
mode_violate /* mudflaps trigger a violation on every call (diagnostic) */
}
mudflap_mode;
/* How to handle a violation. */ /* How to handle a violation. */
enum #define viol_nop 0 /* Return control to application. */
{ #define viol_segv 1 /* Signal self with segv. */
viol_nop, /* Return control to application. */ #define viol_abort 2 /* Call abort (). */
viol_segv, /* Signal self with segv. */ #define viol_gdb 3 /* Fork a debugger on self */
viol_abort, /* Call abort (). */ unsigned violation_mode;
viol_gdb /* Fork a debugger on self */
}
violation_mode;
/* Violation heuristics selection. */ /* Violation heuristics selection. */
unsigned heur_stack_bound; /* allow current stack region */ unsigned heur_stack_bound; /* allow current stack region */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment