From e48f96382f237c0edad5c446eca867092406a51d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 10 Mar 2003 09:11:13 +0000 Subject: * sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for assembler command. * sysdeps/unix/Makefile (compile-syscall): New variable. Pass -g0 to compiler for assembling syscall stubs from stdin. * sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO] (STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END): Define these to do nothing. * configure.in: New check for -g on .S files. * configure: Regenerated. * config.make.in (have-cpp-asm-debuginfo): New variable. * config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef. * Makeconfig (ASFLAGS): New variable, if undefined and $(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS). * Makerules (compile.S, COMPILE.S): Use $(ASFLAGS). --- sysdeps/unix/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/Makefile') diff --git a/sysdeps/unix/Makefile b/sysdeps/unix/Makefile index 0d8284ecd3..18de414341 100644 --- a/sysdeps/unix/Makefile +++ b/sysdeps/unix/Makefile @@ -1,4 +1,5 @@ -# Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc. +# Copyright (C) 1991,1992,1993,1994,1995,1996,1997,1998,1999,2003 +# Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -286,6 +287,11 @@ endif export sysdirs export asm_CPP := $(COMPILE.S) -E -x assembler-with-cpp +# This is the end of the pipeline for compiling the syscall stubs. +# The stdin in assembler with cpp using sysdep.h macros. +# Be sure to disable debugging info since it would all just say "". +compile-syscall = $(filter-out -g%,$(COMPILE.S)) -x assembler-with-cpp -o $@ - + ifndef avoid-generated $(common-objpfx)sysd-syscalls: $(..)sysdeps/unix/make-syscalls.sh \ $(wildcard $(+sysdep_dirs:%=%/syscalls.list)) -- cgit 1.4.1