diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2013-05-16 06:41:10 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2013-05-16 06:41:10 +0000 |
commit | abf4218a11f3f460d27b53988500ff6e2df9ab17 (patch) | |
tree | 436407f2509d24307a1a253f6b3a3bac6ba617f5 /dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch | |
parent | new @OSI-APPROVED license: Watcom-1.0 (bug #469990) (diff) | |
download | historical-abf4218a11f3f460d27b53988500ff6e2df9ab17.tar.gz historical-abf4218a11f3f460d27b53988500ff6e2df9ab17.tar.bz2 historical-abf4218a11f3f460d27b53988500ff6e2df9ab17.zip |
Initial import. MASM-compatible TASM-similar assembler (Wasm fork). Bug #431706 by Anton Kochkov and others.
Package-Manager: portage-2.2.0_alpha173_p24/cvs/Linux x86_64
Manifest-Sign-Key: 0x611FF3AA
Diffstat (limited to 'dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch')
-rw-r--r-- | dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch b/dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch new file mode 100644 index 000000000000..88bbcb94723c --- /dev/null +++ b/dev-lang/jwasm/files/jwasm-2.10-gcc-4.8-fwdecl.patch @@ -0,0 +1,41 @@ +From c2b789403a1ca833bcabada5347bb18d7bd095c2 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Wed, 15 May 2013 22:04:01 +0300 +Subject: [PATCH] fix build failure on gcc-4.8 (missing forward declaration) + +Fixes the following build error: +> gcc -c -IH -D__UNIX__ -DNDEBUG -O2 -o GccUnixR/parser.o parser.c +> In file included from parser.c:35:0: +> H/parser.h:305:48: warning: 'struct expr' declared inside parameter list [enabled by default] +> extern void EmitConstError( const struct expr * ); +> ^ +> H/parser.h:305:48: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] +> parser.c:790:6: error: conflicting types for 'EmitConstError' +> void EmitConstError( const struct expr *opnd ) +> ^ +> In file included from parser.c:35:0: +> H/parser.h:305:19: note: previous declaration of 'EmitConstError' was here +> extern void EmitConstError( const struct expr * ); +> ^ +> make: *** [GccUnixR/parser.o] Error 1 + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +--- + H/parser.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/H/parser.h b/H/parser.h +index 1744f0d..c2c7b99 100644 +--- a/H/parser.h ++++ b/H/parser.h +@@ -302,6 +302,7 @@ extern int SizeFromMemtype( enum memtype, int, struct asym * ); + extern ret_code MemtypeFromSize( int, enum memtype * );
+ extern int SizeFromRegister( int );
+ extern ret_code GetLangType( int *, struct asm_tok[], enum lang_type * );
++struct expr;
+ extern void EmitConstError( const struct expr * );
+
+ extern void sym_add_table( struct symbol_queue *, struct dsym * );
+-- +1.8.2.1 + |