mirror of
https://github.com/mirror/tinycc.git
synced 2026-08-22 11:23:27 +08:00
nocode, noreturn
A more automatic approach to code suppression (aka. nocode_wanted) The simple rules are: - Clear 'nocode_wanted' at (im/explicit) label IF it was used - Set 'nocode_wanted' after unconditional jumps Also in order to test this then I did add the "function might return no value" warning, and then to make that work again I did add the __attribute__((noreturn)). Also moved the look ahead label check into the type parser to gain a little speed.
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
#define __MSVCRT__ 1
|
||||
#undef _MSVCRT_
|
||||
#define __MINGW_IMPORT extern __declspec(dllimport)
|
||||
#define __MINGW_ATTRIB_NORETURN
|
||||
#define __MINGW_ATTRIB_NORETURN __declspec(noreturn)
|
||||
#define __MINGW_ATTRIB_CONST
|
||||
#define __MINGW_ATTRIB_DEPRECATED
|
||||
#define __MINGW_ATTRIB_MALLOC
|
||||
@@ -138,7 +138,7 @@ typedef struct localeinfo_struct _locale_tstruct,*_locale_t;
|
||||
/* for winapi */
|
||||
#define _ANONYMOUS_UNION
|
||||
#define _ANONYMOUS_STRUCT
|
||||
#define DECLSPEC_NORETURN
|
||||
#define DECLSPEC_NORETURN __declspec(noreturn)
|
||||
#define DECLARE_STDCALL_P(type) __stdcall type
|
||||
#define NOSERVICE 1
|
||||
#define NOMCX 1
|
||||
|
||||
Reference in New Issue
Block a user