This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
A patch for ASSEMBLER
- To: zack@rabi.phys.columbia.edu (Zack Weinberg)
- Subject: A patch for ASSEMBLER
- From: hjl@lucon.org (H.J. Lu)
- Date: Sat, 6 Jun 1998 19:15:15 -0700 (PDT)
- Cc: libc-hacker@cygnus.com (GNU C Library)
>
> >BTW, have you checked where ASSEMBLER/__ASSEMBLER__ was
> >defined before making those changes?
>
> ASSEMBLER was defined by Makerules. __ASSEMBLER__ is defined by gcc when
> processing .S files. Try 'gcc -x assembler-with-cpp -dM /dev/null'.
>
> zw
>
How about this patch?
--
H.J. Lu (hjl@gnu.org)
--
Index: Makerules
===================================================================
RCS file: /home/work/cvs/gnu/glibc/Makerules,v
retrieving revision 1.1.1.39
diff -u -r1.1.1.39 Makerules
--- Makerules 1998/06/01 18:09:35 1.1.1.39
+++ Makerules 1998/06/01 21:50:29
@@ -290,9 +290,9 @@
# GCC can grok options after the file name, and it looks nicer that way.
compile.c = $(CC) $< -c $(CFLAGS) $(CPPFLAGS)
compile.S = \
- $(CC) $< -c $(CPPFLAGS) -DASSEMBLER $(asm-CPPFLAGS) $(ASFLAGS-$(suffix $@))
+ $(CC) $< -c $(CPPFLAGS) -D__ASSEMBLER__ $(asm-CPPFLAGS) $(ASFLAGS-$(suffix $@))
COMPILE.S = \
- $(CC) -c $(CPPFLAGS) -DASSEMBLER $(asm-CPPFLAGS) $(ASFLAGS-$(suffix $@))
+ $(CC) -c $(CPPFLAGS) -D__ASSEMBLER__ $(asm-CPPFLAGS) $(ASFLAGS-$(suffix $@))
COMPILE.s = $(filter-out -pipe,$(CC)) -c $(ASFLAGS)
# We need this for the output to go in the right place. It will default to