Hi
gcc-3.2.2 is now out. Tried building gpc with it:
Minor problem: Patch for 3.2.1 works, gives a few offset complaints.
Not so minor problem: Build quit - incompatable definitions of global_trees p/gpc.h: 667 tree.h: 1951
Hope this helps Russ
On 5 Feb 2003 at 21:38, Russell Whitaker wrote:
Hi
gcc-3.2.2 is now out. Tried building gpc with it:
Minor problem: Patch for 3.2.1 works, gives a few offset complaints.
Not so minor problem: Build quit - incompatable definitions of global_trees p/gpc.h: 667 tree.h: 1951
This already exists with gcc-3.2.1. The following diff is what I used to bypass it:
*** tree.h.orig Tue Dec 03 18:47:50 2002 --- tree.h Tue Dec 03 20:30:10 2002 *************** extern tree global_trees[TI_MAX]; *** 1990,1996 **** --- 1990,1998 ---- /* The C type `const void *'. */ #define const_ptr_type_node global_trees[TI_CONST_PTR_TYPE] /* The C type `size_t'. */ + #ifndef GPC /* already defined in GPC */ #define size_type_node global_trees[TI_SIZE_TYPE] + #endif /* GPC */ #define ptrdiff_type_node global_trees[TI_PTRDIFF_TYPE] #define va_list_type_node global_trees[TI_VA_LIST_TYPE]
A new problem is a new prototype for expand_asm(), "extern void expand_asm PARAMS ((tree, int));"
explained thus in the ChangeLog:
2003-01-09 Eric Botcazou ebotcazou@libertysurf.fr
PR inline-asm/8832 * tree.h (expand_asm): New prototype. * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed to do so. * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier down to expand_asm.
and you get this in stmt.c /* Generate RTL for an asm statement (explicit assembler code). STRING is a STRING_CST node containing the assembler code text, or an ADDR_EXPR containing a STRING_CST. VOL nonzero means the insn is volatile; don't optimize it. */ void expand_asm (string, vol) tree string; int vol;
So I have amended gpc-typeck.c thus: expand_asm (string); was changed to: expand_asm (string, 1);
on the basis that a non-zero value means "don't optimise".
Still in the process of building ...
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/
Hi all
I have successfully built and test 20021128 under gcc-3.2.2, with the patches described in my earlier post. It runs the testsuite with just one failure:
Testing gpc.exe 20021128, based on gcc-3.2.2 (mingw32) (bloom ) echo "gpc -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused " gpc -g -O3 -W -Wall -Wundef -Wpointer-arith -Wno-unused PC="gpc" PFLAGS="--autobuild -g -O3 -W -Wall -Wundef -Wpointer-arith - Wno-unused " SRCDIR="." TEST_MAKE_FLAG=test-make-flag "./test_run" "*.pas"
[....]
"TEST fjf663.pas: failed"
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/