From b877708a8322b83f4da04834421c0a4b624ef94a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Wed, 1 Jul 2020 20:49:04 -0700 Subject: Change unused -> unused_func to remove special case The autoconf process automatically generates macros for function attributes, including empty placeholders. Said empty placeholders also propagate automatically into config/unconfig.h for the compilers which don't support autoconf. Signed-off-by: H. Peter Anvin (Intel) --- asm/parser.c | 2 +- asm/preproc.c | 4 ++-- include/compiler.h | 21 --------------------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/asm/parser.c b/asm/parser.c index 7c24cc00..47b46ecd 100644 --- a/asm/parser.c +++ b/asm/parser.c @@ -234,7 +234,7 @@ static bool parse_braces(decoflags_t *decoflags) } } -static inline unused +static inline unused_func const expr *next_expr(const expr *e, const expr **next_list) { e++; diff --git a/asm/preproc.c b/asm/preproc.c index 1b8ee36b..aded0bec 100644 --- a/asm/preproc.c +++ b/asm/preproc.c @@ -345,7 +345,7 @@ static inline bool tok_text_match(const struct Token *a, const struct Token *b) return a->len == b->len && !memcmp(tok_text(a), tok_text(b), a->len); } -static inline unused bool +static inline unused_func bool tok_match(const struct Token *a, const struct Token *b) { return a->type == b->type && tok_text_match(a, b); @@ -764,7 +764,7 @@ static const char *unquote_token_cstr(Token *t) * TOK_STRING tokens. */ static Token *quote_any_token(Token *t); -static inline unused +static inline unused_func Token *quote_token(Token *t) { if (likely(!tok_is(t, TOK_INTERNAL_STRING))) diff --git a/include/compiler.h b/include/compiler.h index a1905d27..a1c1b0db 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -310,27 +310,6 @@ static inline void *mempcpy(void *dst, const void *src, size_t n) #define printf_func(fmt, list) format_func3(printf,fmt,list) #define printf_func_ptr(fmt, list) format_func3_ptr(printf,fmt,list) -/* - * A static [inline] function which either is currently unused but - * likely to be used in the future, or used only under some #if - * combinations. Mark with this option to suppress compiler - * warnings. - * - * This is better than #if(def) because it still lets the compiler - * analyze the function for validity, and it works even for the - * conditional use case. - * - * The macro UNUSED is set to 1 if the unused macro is meaningful, - * otherwise 0; this may be useful in some #if statements. - */ -#ifdef HAVE_FUNC_ATTRIBUTE_UNUSED -# define unused __attribute__((unused)) -# define UNUSED 1 -#else -# define unused -# define UNUSED 0 -#endif - /* Determine probabilistically if something is a compile-time constant */ #ifdef HAVE___BUILTIN_CONSTANT_P # if defined(__GNUC__) && (__GNUC__ >= 5) -- cgit v1.2.1 From c665ba1fd8e180c55638bd14b686c95658fe0b87 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Wed, 1 Jul 2020 20:54:58 -0700 Subject: strlist.h: move safe_alloc declaration Move the safe_alloc declaration after the * symbol to be consistent with all other functions with this attribute. Just in case it matters somewhere... Signed-off-by: H. Peter Anvin (Intel) --- include/strlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/strlist.h b/include/strlist.h index f1775abd..25681c59 100644 --- a/include/strlist.h +++ b/include/strlist.h @@ -77,7 +77,7 @@ static inline size_t strlist_size(const struct strlist *list) return list ? list->size : 0; } -struct strlist safe_alloc *strlist_alloc(bool uniq); +struct strlist * safe_alloc strlist_alloc(bool uniq); const struct strlist_entry *strlist_add(struct strlist *list, const char *str); const struct strlist_entry * printf_func(2, 3) strlist_printf(struct strlist *list, const char *fmt, ...); -- cgit v1.2.1 From 147f32a6eb27137745c5843fc5aca40dd017d6a3 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Wed, 1 Jul 2020 21:13:27 -0700 Subject: msvc.mak: fix syntax for excluding config.h mkdep.pl wants a / regardless of what the target path separator is. Signed-off-by: H. Peter Anvin (Intel) --- Mkfiles/msvc.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mkfiles/msvc.mak b/Mkfiles/msvc.mak index d0272b2b..a22b2cbe 100644 --- a/Mkfiles/msvc.mak +++ b/Mkfiles/msvc.mak @@ -409,7 +409,7 @@ MKDEP=0 #-- Magic hints to mkdep.pl --# # @object-ending: ".$(O)" # @path-separator: "\" -# @exclude: "config\config.h" +# @exclude: "config/config.h" # @external: "msvc.dep" # @selfrule: "1" #-- Everything below is generated by mkdep.pl - do not edit --# -- cgit v1.2.1 From fee0db94a3b666b7262f141c1833f74f93da9a42 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Wed, 1 Jul 2020 21:31:32 -0700 Subject: changes.src: fixed Mkfiles/msvc.mak Signed-off-by: H. Peter Anvin (Intel) --- doc/changes.src | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/changes.src b/doc/changes.src index f33e3ce4..e4bd3edf 100644 --- a/doc/changes.src +++ b/doc/changes.src @@ -13,6 +13,8 @@ since 2007. \b Add \c{db-empty} warning class, see \k{opt-w}. +\b Fix the dependencies in the MSVC NMAKE makefile (\c{Mkfiles/msvc.mak}). + \b Some documentation improvements and cleanups. \b Fix the handling of macro parameter ranges (\c{%\{:\}}), including -- cgit v1.2.1 From 97e53e95f96ef6decd750170066d645f9b8e1389 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Wed, 1 Jul 2020 21:42:17 -0700 Subject: NASM 2.15.02 --- version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version b/version index ade5d7e0..c2e13c1f 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.15.02rc2 +2.15.02 -- cgit v1.2.1 From 07b10a1706eb6732e88b6d46d9bf42172881315e Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Wed, 1 Jul 2020 09:10:21 +0200 Subject: doc: remove references to sourceforge The mailinglists have been migrated to lists.nasm.us Signed-off-by: Jasper Lievisse Adriaanse Signed-off-by: H. Peter Anvin (Intel) --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 704fba14..e9b3dc30 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,5 @@ This means its development is open to even wider society of programmers wishing to improve their lovely assembler. Visit our [nasm.us](https://www.nasm.us/) website for more details. -We are gradually moving services away from Sourceforge. For our remaining -Sourceforge services see [here](https://sourceforge.net/projects/nasm/). With best regards, the NASM crew. -- cgit v1.2.1