[PATCH v2] Add fallthrough attributes

2018-02-08 Thread Joshua Watt
Adds the __attribute__ ((fallthrough)) annotation to all the places where switch case fallthrough was occurring. This allows the -Wimplicit-fallthrough warning to be used even after the source has been pre-processed. If the fallthrough attribute is supported, the -Wimplicit-fallthrough warning is

[PATCH] Add fallthrough attributes

2018-02-08 Thread Joshua Watt
Adds the __attribute__ ((fallthrough)) annotation to all the places where switch case fallthrough was occurring. This allows the -Wimplicit-fallthrough warning to be used even after the source has been pre-processed. Signed-off-by: Joshua Watt --- backends/i386_regs.c | 3 +++ backends/

[PATCH] Recognize new DWARF5 attribute forms.

2018-02-08 Thread Mark Wielaard
This just makes sure we know how the new forms are encoded. It doesn't yet handle them in the dwarf_form* functions. But it does make it possible to skip them when reading DWARF5. DW_FORM_implicit_const has zero size (the value is in the abbrev, not in the info). DW_FORM_addrx[1234], DW_FORM_strx[