aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppulp.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1998-10-28 14:31:06 -0800
committerRichard Henderson <rth@gcc.gnu.org>1998-10-28 14:31:06 -0800
commit19283265adf53e051a1f372086526b87762bc246 (patch)
treef7991921f56af47e0a4753b402cdb868e740a0f6 /gcc/cppulp.c
parenta45a7ba07385068ad1a57dbf0addf9313e1c2cff (diff)
downloadgcc-19283265adf53e051a1f372086526b87762bc246.zip
gcc-19283265adf53e051a1f372086526b87762bc246.tar.gz
gcc-19283265adf53e051a1f372086526b87762bc246.tar.bz2
Makefile.in (cc1): Put C_OBJS, and thence @extra_c_objs@ last.
* Makefile.in (cc1): Put C_OBJS, and thence @extra_c_objs@ last. (LIBCPP_OBJS): New. Add cppulp.o. (cppmain, fix-header): Depend on and use libcpp.a. * configure.in (extra_c_objs, extra_cxx_objs): Use libcpp.a instead of the individual object files. * objc/Make-lang.in (cc1obj): Put OBJC_OBJS, and thence @extra_c_objs@, last. * cccp.c (user_label_prefix): New. (main): Set it off -f*leading-underscore. (special_symbol): Use it. * cpplib.c (special_symbol): Likewise. (cpp_handle_option): Handle -f*leading-underscore. * cppulp.c: New file. * output.h (user_label_prefix): Declare it. * dwarf2out.c (ASM_NAME_TO_STRING): Prepend user_label_prefix. * toplev.c (f_options, main): Handle -f*leading-underscore. * defaults.h (ASM_OUTPUT_LABELREF): Use asm_fprintf instead of referencing USER_LABEL_PREFIX directly. * config/nextstep.h (ASM_OUTPUT_LABELREF): Likewise. * m32r/m32r.h (ASM_OUTPUT_LABELREF): Likewise. * final.c (asm_fprintf): Use user_label_prefix instead. * arm/thumb.c (thumb_print_operand): Likewise. * gcc.c (default_compilers): Pass -f*leading-underscore on to cpp wherever appropriate. From-SVN: r23415
Diffstat (limited to 'gcc/cppulp.c')
-rw-r--r--gcc/cppulp.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/cppulp.c b/gcc/cppulp.c
new file mode 100644
index 0000000..29c2551
--- /dev/null
+++ b/gcc/cppulp.c
@@ -0,0 +1,27 @@
+/* CPP Library.
+ Copyright (C) 1986, 87, 89, 92-97, 1998 Free Software Foundation, Inc.
+ Contributed by Per Bothner, 1994-95.
+ Based on CCCP program by Paul Rubin, June 1986
+ Adapted to ANSI C, Richard Stallman, Jan 1987
+
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2, or (at your option) any
+later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#include "config.h"
+#include "system.h"
+
+#include "gansidecl.h"
+#include "output.h"
+
+char *user_label_prefix;