Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Jyrki Kuoppala
Wed, 17 May 1989 22:20
alloca() in gas 1.33
Author: Jyrki Kuoppala
Date: Wed, 17 May 1989 22:20
Date: Wed, 17 May 1989 22:20
59 lines
2036 bytes
2036 bytes
Here's a context diff to make gas use the gcc builtin alloca(). It eliminates the need for -lPW on USG-based machines and avoids using the perhaps buggy version of alloca() on all machines. //Jyrki diff -cr gas-dist/Makefile gas-dist.a/Makefile *** gas-dist/Makefile Fri May 12 21:45:32 1989 --- gas-dist.a/Makefile Thu May 18 00:58:33 1989 *************** *** 88,100 **** # @ln asparc a #lint: lint_sparc CFLAGS = -g -I. $(OPTIONS) LDFLAGS = $(CFLAGS) # To compile gas on a System Five machine, comment out the two lines above # and un-comment out the next three lines # CFLAGS = -g -I. -DUSG $(OPTIONS) # LDFLAGS = $(CFLAGS) ! # LOADLIBES = -lmalloc -lPW a =\ as.o xrealloc.o xmalloc.o hash.o hex-value.o \ --- 88,103 ---- # @ln asparc a #lint: lint_sparc + CC = gcc + CFLAGS = -g -I. $(OPTIONS) LDFLAGS = $(CFLAGS) # To compile gas on a System Five machine, comment out the two lines above # and un-comment out the next three lines + # Add -lPW to LOADLIBES if you compile with cc instead of gcc # CFLAGS = -g -I. -DUSG $(OPTIONS) # LDFLAGS = $(CFLAGS) ! # LOADLIBES = -lmalloc a =\ as.o xrealloc.o xmalloc.o hash.o hex-value.o \ diff -cr gas-dist/atof-generic.c gas-dist.a/atof-generic.c *** gas-dist/atof-generic.c Fri May 12 02:01:56 1989 --- gas-dist.a/atof-generic.c Thu May 18 00:56:45 1989 *************** *** 19,26 **** --- 19,30 ---- #include <ctype.h> #include "flonum.h" + #ifdef __GNUC__ + #define alloca __builtin_alloca + #else #ifdef sparc #include <alloca.h> + #endif #endif #ifdef USG
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads