Tom Tromey
ad69edbb4b
Use unsigned as base type for some enums
...
-fsanitize=undefined complains about using operator~ on various enum
types that are used with DEF_ENUM_FLAGS_TYPE. This patch fixes these
problems by explicitly setting the base type for these enums to
unsigned. It also adds a static assert to enum_flags to ensure that
future enums used this way have an unsigned underlying type.
gdb/ChangeLog
2018-10-03 Tom Tromey <tom@tromey.com>
* common/enum-flags.h (enum_flags::operator~): Add static assert.
* symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
base type.
* objfile-flags.h (enum objfile_flag): Use unsigned as base type.
* gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
type.
* c-lang.h (enum c_string_type_values): Use unsigned as base
type.
* btrace.h (enum btrace_thread_flag): Use unsigned as base type.
2018-10-03 15:19:06 -06:00
..
2018-08-28 17:23:16 -04:00
2018-08-28 17:23:16 -04:00
2018-04-09 15:47:12 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-06-08 07:05:49 -06:00
2018-06-08 07:05:49 -06:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-04-07 13:19:12 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-08-13 10:02:00 -06:00
2018-01-02 07:38:06 +04:00
2018-05-30 14:18:47 +01:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-06-11 10:09:30 +01:00
2018-08-27 12:00:10 -06:00
2018-09-12 13:58:30 -04:00
2018-09-12 13:58:30 -04:00
2018-02-19 09:37:24 +00:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-10-03 15:19:06 -06:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-09-12 13:58:30 -04:00
2018-09-12 13:58:30 -04:00
2018-05-17 13:06:11 -04:00
2018-05-17 13:06:11 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-10-01 10:37:39 +01:00
2018-04-30 11:33:11 -06:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-04-09 14:20:46 -04:00
2018-04-09 14:20:46 -04:00
2018-01-02 07:38:06 +04:00
2018-02-28 11:34:39 -05:00
2018-02-28 11:34:39 -05:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-03-02 23:22:10 -05:00
2018-05-29 08:52:55 -06:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-07-11 19:41:31 -04:00
2018-07-11 19:41:31 -04:00
2018-01-02 07:38:06 +04:00
2018-03-19 09:37:49 -06:00
2018-01-02 07:38:06 +04:00
2018-09-24 06:17:13 -06:00
2018-09-17 08:43:12 -06:00
2018-05-20 21:06:36 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-07-03 11:36:46 -06:00
2018-07-03 11:36:46 -06:00
2018-01-02 07:38:06 +04:00
2018-06-21 17:09:31 +01:00
2018-03-22 00:27:19 -04:00
2018-03-22 00:27:19 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-10-01 02:58:23 -06:00
2018-09-23 12:11:16 -06:00
2018-08-07 18:10:29 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-15 20:03:20 +00:00
2018-01-05 18:26:18 +00:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-07-22 13:20:01 -06:00
2018-04-18 20:49:37 +01:00
2018-05-20 23:19:35 -04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-01-02 07:38:06 +04:00
2018-05-08 18:03:46 +01:00
2018-03-08 18:04:46 -05:00
2018-03-08 18:04:46 -05:00