Commit Graph

23092 Commits

Author SHA1 Message Date
Jason Merrill
66a6250faa lang-specs.h (c++-cpp-output): Pass -fpreprocessed.
* lang-specs.h (c++-cpp-output): Pass -fpreprocessed.

	* lex.c (token_getch, token_put_back): New fns.
	(real_yylex): Use them.

	* lex.c (lang_init): Generalize.
	(lang_init_options): Tell cpplib this is C++.
	(nextchar): Remove.  Replace uses with put_back.
	(skip_white_space): Handle linemode here.  Optimize for cpplib.
	(extend_token_buffer_to): New fn.
	(extend_token_buffer): Use it.
	(read_line_number, check_newline): Just deal with tokens.
	(real_yylex): More cpplib optimizations.  Simplify.  Don't produce
	EXTERN_LANG_STRING, LEFT_RIGHT or PAREN_STAR_PAREN here.
	* spew.c (yylex): Produce LEFT_RIGHT and EXTERN_LANG_STRING.
	* parse.y (PAREN_STAR_PAREN): Remove.
	* input.c: Don't use the putback machinery with cpplib.
	(sub_getch): Fold back into getch.
	(getch): Don't handle linemode here.
	(feed_input): Unget any text in the token buffer.

	* lex.c	(set_typedecl_interface_info, set_vardecl_interface_info,
	nextyychar, nextyylval): Remove.

	* lex.c (indent_level): New variable.
	(init_parse): Set cpp_token to CPP_DIRECTIVE.
	(consume_string): Make this smart about USE_CPPLIB.
	(yyungetc): Use put_back function.
	(pragma_getc, pragma_ungetc): Functions deleted.
	(check_newline): Rewrite to be intelligent about USE_CPPLIB.
	Also, call HANDLE_PRAGMA with getch, yyungetc, not pragma_getc and
	pragma_ungetc.
	(real_yylex): Rewrite to be intelligent about USE_CPPLIB.
	Also, clean up cases where we redundantly set token_buffer[0].
	(read_line_number): New fn.
	* input.c (feed_input): Use integrated cpplib if USE_CPPLIB.
	(end_input): Call cpp_pop_buffer if USE_CPPLIB.
	(sub_getch): Conditionalize out code that's not appropriate if
	USE_CPPLIB.
	(put_back): Rewrite in case USE_CPPLIB is defined.
	(input_redirected): Ditto.

From-SVN: r28193
1999-07-20 15:53:38 -04:00
Hans-Peter Nilsson
81f374ebfb * dwarf2out.c (output_abbrev_section): Terminate with a zero.
From-SVN: r28192
1999-07-20 15:39:27 -04:00
Jason Merrill
a15fe78b44 oops
From-SVN: r28191
1999-07-20 15:14:01 -04:00
Jason Merrill
3773a46b93 gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
* gcc.c (default_compilers, cpp-output): Pass -fpreprocessed.
	* toplev.c (documented_lang_options): Add -fpreprocessed.
	* cpplib.h (struct cpp_buffer): Add preprocessed.
	* cppinit.c (cpp_handle_option): Handle -fpreprocessed.
	(cpp_start_read): Don't expand macros or emit an initial #line
	directive if -fpreprocessed.

	* cpplib.h (struct cpp_buffer): Added manual_pop for
	better C++ tokenization.
	* cpplib.c (cpp_get_token): Return CPP_EOF if manual_pop.
	Also, support C++ tokenization for ->*, .*, <?, and >? operators.
	* c-common.c (cpp_token): Make non-static.

From-SVN: r28190
1999-07-20 15:13:01 -04:00
Alexandre Oliva
c8649fde97 * template8.C, typeof1.C: New test.
From-SVN: r28189
1999-07-20 12:24:37 +00:00
Bernd Schmidt
7f4edbcba6 c-common.h: New file.
* c-common.h: New file.
	* c-common.c (permanent_obstack): Delete unused declaration.
	(c_global_trees): New array.
	(c_common_nodes_and_builtins): New function; split off common code
	from init_decl_processing in both c-decl.c and cp/decl.c.
	* c-tree.h: Delete lots of declarations of tree nodes; replaced by
	c_global_trees and accessor macros defined in c-common.h.
	Include c-common.h.
	* c-decl.c: Delete definitions for tree nodes that were replaced by
	c_global_trees.
	(init_decl_processing): Build void_list_node.
	Call c_common_nodes_and_builtins; delete code to generate the common
	builtins here.

	* objc/objc-act.c (build_module_descriptor): Rename variable
	void_list_node to avoid clash with c-common.h.

	* cp/cp-tree.h: Delete lots of declarations of tree nodes; replaced by
	c_global_trees and accessor macros defined in c-common.h.
	(cp_tree_index): New enumeration.
	(cp_global_trees): Declare new array.  Add accessor macros for it, and
	delete declarations of tree nodes replaced by it.
	(builtin_function): Delete macro, add declaration for new function.
	Include c-common.h.
	* cp/decl.c: Delete definitions for tree nodes that were replaced by
	cp_global_trees and c_global_trees.
	(init_decl_processing): Call c_common_nodes_and_builtins; delete code
	to generate the common builtins here.
	(builtin_function): New function.
	* cp/decl2.c (abort_fndecl): Delete declaration.
	* cp/except.c (expand_builtin_return_address): Delete declaration.
	(builtin_return_address_fndecl): Delete variable.
	(const_ptr_type_node): Delete declaration.
	* cp/lex.c (cons_up_default_function): Delete declaration of
	void_list_node.
	* cp/parse.y (void_list_node): Delete declaration.
	* cp/rtti.c (type_info_type_node, tinfo_fn_id, tinfo_fn_type):
	Delete variables.
	(const_string_type_node): Delete declaration.
	* cp/search.c (abort_fndecl): Delete declaration.

	* Makefile.in: Update dependencies.
	* objc/Make-lang.in: Likewise.
	* cp/Makefile.in: Likewise.

From-SVN: r28188
1999-07-20 10:41:10 +00:00
Jeff Law
3791a1dc29 Daily bump.
From-SVN: r28187
1999-07-20 01:45:38 -06:00
Mark Mitchell
2d6b61cb6e iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
* config/mips/iris6gld.h (MAKE_DECL_ONE_ONLY): Define.
	(UNIQUE_SECTION_P): Likewise.
	(UNIQUE_SECTION): Likewise.

From-SVN: r28182
1999-07-20 00:41:56 +00:00
Mark Mitchell
66191c20ee pt.c (check_default_tmpl_args): Move test for missing default arguments here, from ...
* pt.c (check_default_tmpl_args): Move test for missing default
	arguments here, from ...
	(end_template_parm_list): Here.

From-SVN: r28180
1999-07-19 19:28:19 +00:00
Tom Tromey
5163d20e29 * config.h (MPROTECT_VDB): Don't define on Linux.
From-SVN: r28179
1999-07-19 19:27:56 +00:00
Linas Vepstas
92d6db668f Bulk patch from Linas.
From-SVN: r28178
1999-07-19 12:26:30 -07:00
Alexandre Oliva
14eee79459 Makefile.am (.s.lo): Avoid `#line' directives.
1999-07-19  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* Makefile.am (.s.lo): Avoid `#line' directives.
	* Makefile.in: Rebuilt.

From-SVN: r28175
1999-07-19 19:17:22 +00:00
Alexandre Oliva
44ebe2d0ac Makefile.am (*-recursive, [...]): Automake does not generate *-recursive for this Makefile, use *-am instead.
1999-07-19  Alexandre Oliva  <oliva@dcc.unicamp.br>

	* Makefile.am (*-recursive, *-am, *-multi): Automake does not
	generate *-recursive for this Makefile, use *-am instead.
	* Makefile.in: Rebuilt.

From-SVN: r28173
1999-07-19 19:11:54 +00:00
David Edelsohn
0ad91047cd rs6000.md (arithmetic, [...]): Disable patterns performing SImode comparisons with SImode values if...
* rs6000.md (arithmetic, logical, and shift Rc combiner patterns):
	Disable patterns performing SImode comparisons with SImode values
	if TARGET_POWERPC64 and instruction does not sign-extend or does
	not mask to narrower than SImode, i.e. where bit 31 and bit 63 may
	differ for signed quantities.
	(indirect_jump): Add expander to choose RTL based on TARGET_64BIT.
	(tablejump): Patterns contingent on TARGET_64BIT not TARGET_POWERPC64.
	(decrement_and_branch_on_count): Add 64-bit variant.

From-SVN: r28172
1999-07-19 15:11:29 -04:00
Tom Tromey
9608c09195 * include/stamp-h.in: New file.
From-SVN: r28171
1999-07-19 18:03:31 +00:00
Bernd Schmidt
463a83844b Fix INTEL_SYNTAX output for i386 backend
From-SVN: r28170
1999-07-19 08:43:33 +00:00
Jeff Law
7211928ac2 Daily bump.
From-SVN: r28167
1999-07-19 01:45:11 -06:00
Mark Mitchell
848cf1e0f0 decl.c (lookup_nested_type): Remove.
* decl.c (lookup_nested_type): Remove.
	(pushtag): Don't call it.

From-SVN: r28166
1999-07-18 15:32:21 +00:00
Jeff Law
bdfdb7495b Daily bump.
From-SVN: r28163
1999-07-18 01:45:08 -06:00
Jeffrey A Law
cfce3d4cd3 * Makefile.in (INTERFACE): Bump to 3.
From-SVN: r28161
1999-07-17 23:52:37 -06:00
Jeffrey A Law
bcaf90dc39 * Makefile.in (INTERFACE): Bump to 2.
From-SVN: r28160
1999-07-17 23:52:32 -06:00
Mark Mitchell
bb740ce98a New test
From-SVN: r28157
1999-07-18 04:25:39 +00:00
Alexandre Oliva
a1c6afb002 root.texi: Update e-mail addresses to gcc.gnu.org.
* root.texi: Update e-mail addresses to gcc.gnu.org.
        * g77spec.c (lang_specific_driver): Updated URL with bug reporting
        instructions to gcc.gnu.org.  Removed e-mail address.

From-SVN: r28155
1999-07-17 21:51:22 -06:00
Alexandre Oliva
70ade953eb typeck2.c (my_friendly_abort): Updated URL with bug reporting instructions to gcc.gnu.org.
* typeck2.c (my_friendly_abort): Updated URL with bug reporting
        instructions to gcc.gnu.org.  Removed e-mail address.

From-SVN: r28153
1999-07-17 21:50:30 -06:00
Alexandre Oliva
e67df273a1 gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
* gcc.texi: Update e-mail addresses and URLs to gcc.gnu.org.
        Removed paragraph about compression of files and size limitation,
        duplicated in the FAQ.  Use gcc-patches for posting patches.
        * gcc.c (main): Updated URL with bug reporting instructions to
        gcc.gnu.org.  Removed e-mail address.
        * system.h (abort): Likewise.

From-SVN: r28151
1999-07-17 21:48:02 -06:00
Alexandre Oliva
bc8735ed96 * test_summary: Replace egcs with gcc. Update e-mail address.
From-SVN: r28148
1999-07-17 21:45:48 -06:00
Mark Mitchell
91e490abe5 pt.c (determine_specialization): Tighten error-checking.
* pt.c (determine_specialization): Tighten error-checking.
	(end_template_parm_list): Likewise.

From-SVN: r28147
1999-07-18 03:28:32 +00:00
Kaveh R. Ghazi
50908fadbb Makefile.in (stmp-multilib-sub): Make the files extracted from $(LIBGCC1) writable.
* Makefile.in (stmp-multilib-sub): Make the files extracted
        from $(LIBGCC1) writable.

From-SVN: r28145
1999-07-17 19:19:40 -06:00
Craig Burley
f4e5e9bcfc update derived files
From-SVN: r28144
1999-07-17 11:52:32 -04:00
Craig Burley
37cd75c610 root.texi, [...]: Switchover to GCC terminology.
Sat Jul 17 11:28:43 1999  Craig Burley  <craig@jcb-sc.com>

* root.texi, g77install.texi: Switchover to GCC terminology.
Also, FSF-G77 had been mistakenly set at some point.

From-SVN: r28143
1999-07-17 11:48:39 -04:00
Alexandre Oliva
70ceca9bf0 * template6.C, delete1.C, template7.C: New test.
From-SVN: r28140
1999-07-17 14:26:13 +00:00
Nick Clifton
bef10da058 remove spurous blank lines
From-SVN: r28139
1999-07-17 13:47:08 +00:00
Nick Clifton
6cfc7210fa General tidyup of header files.
From-SVN: r28138
1999-07-17 13:44:35 +00:00
Jeff Law
8f7cbf1635 Daily bump.
From-SVN: r28134
1999-07-17 01:45:11 -06:00
Jeffrey A Law
b3292eb0cf pa.c (compute_frame_size): Round frame according to STACK_BOUNDARY rather than a hardwired value.
* pa.c (compute_frame_size): Round frame according to
        STACK_BOUNDARY rather than a hardwired value.

From-SVN: r28132
1999-07-16 16:40:39 -06:00
Jeffrey A Law
cb16fe9f9b * pa.h (POINTER_SIZE, PARM_BOUNDARY): Define in terms of BITS_PER_WORD.
From-SVN: r28131
1999-07-16 16:12:33 -06:00
Jeffrey A Law
30f08b3984 configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead of "1".
* configure.in (hppa*-*-hpux11*): Use symbolic MASK_PA_11 instead
        of "1".
        * configure: Rebuilt.

From-SVN: r28130
1999-07-16 15:47:29 -06:00
Jeffrey A Law
0e22c1d8cd configure.in (hppa*-*-linux*): New configuration.
* configure.in (hppa*-*-linux*): New configuration.
        * configure: Rebuilt.
        * pa.h (MAX_OFILE_ALIGNMENT): Delete.
        * pa/som.h (MAX_OFILE_ALIGNMENT): Define.
        * pa/pa-linux.h: New file.
        * pa/t-linux: New file.
        * pa/xm-linux.h: New file.

From-SVN: r28129
1999-07-16 15:39:59 -06:00
Jeffrey A Law
690d42283d pa.c (hppa_legitimize_address): Change references from SImode to either Pmode or word_mode as appropriate.
* pa.c (hppa_legitimize_address): Change references from SImode to
        either Pmode or word_mode as appropriate.
        (emit_move_sequence, store_reg, load_reg): Likewise.
        (set_reg_plus_d, hppa_expand_prologue): Likewise.
        (output_mul_insn): Likewise.
        * pa.h (PROMOTE_MODE): Likewise.
        (INITIALZE_TRAMPOLINE): Likewise.
        (Pmode): Define to word_mode.

From-SVN: r28128
1999-07-16 14:58:13 -06:00
Jeffrey A Law
d7735a074b pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired value of 4.
* pa.c (compute_frame_size): Use UNITS_PER_WORD instead of hardwired
        value of 4.  Allocate 8 bytes for each FP register save.
        (hppa_expand_epilogue): Use UNITS_PER_WORD instead of harwarewired
        value of 4.
        (hppa_expand_prologue): Likewise.
        * pa.h (PROMOTE_MODE): Likewise.
        (HARD_REGNO_MODE_OK, FUNCTION_ARG_SIZE): Likewise.
        (FUNCTION_ARG_BOUNDARY): Likewise.

From-SVN: r28127
1999-07-16 14:35:08 -06:00
Jeffrey A Law
c8730d930d * invoke.texi (HPPA Options): Remove -mspace/-mno-space.
From-SVN: r28126
1999-07-16 14:14:19 -06:00
Jeffrey A Law
7123b6ed1f pa.c (out_of_line_prologue_epilogue): Delete.
* pa.c (out_of_line_prologue_epilogue): Delete.
        (override_options): Remove -mspace related code.
        (hppa_expand_prologue, hppa_expand_epilogue): Likewise.
        (compute_frame_size): Only allocate space for register that
        actually need to be saved.
        * pa.h (MASK_SPACE, TARGET_SPACE): Delete.
        (TARGET_SWITCHES): Remove -mspace, -mno-space
        * pa/t-pa (LIB2FUNCS_EXTRA): Remove ee.asm and ee_fp.asm
        * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.  Remove -mspace multilib.
        * pa/ee.asm, pa/ee_fp.asm: Delete.

From-SVN: r28125
1999-07-16 14:07:55 -06:00
Jeffrey A Law
15c58c19b6 * pa/elf.h (ASM_OUTPUT_DOUBLE_INT): Define.
From-SVN: r28124
1999-07-16 13:54:32 -06:00
Jeffrey A Law
6d32de1a3a svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler directive in column zero.
* config/svr4.h (CONST_SECTION_ASM_OP): Do not emit assembler
        directive in column zero.

From-SVN: r28123
1999-07-16 13:50:13 -06:00
Jeff Law
d14f13ad68 Daily bump.
From-SVN: r28122
1999-07-16 01:45:38 -06:00
Jeffrey A Law
df59fef773 m68k.c (output_function_prologue): Fix computation of save mask when generating PIC code.
* m68k.c (output_function_prologue): Fix computation of save mask
        when generating PIC code.

From-SVN: r28119
1999-07-16 01:41:49 -06:00
Markus Gyger
3cda32a10b stdexcepti.cc (__out_of_range): Use std:: qualifier for names in std.
* stdexcepti.cc (__out_of_range): Use std:: qualifier for names
	in std.
	(__length_error): Likewise.

From-SVN: r28117
1999-07-16 07:07:45 +00:00
Jim Wilson
e500a90e22 Fix winsup build failure reported by Chris Faylor.
* tree.c (build_type_attribute_variant): Move current_obstack restore
	after build_qualified_type call.

From-SVN: r28116
1999-07-15 08:40:59 -07:00
Mark Mitchell
e3f5cc86f8 configure.in: Use t-iris6, even with GNU LD.
* configure.in: Use t-iris6, even with GNU LD.
	* config/mips/iris6gld.h: Fix typo in linker spec.
	* config/mips/t-iris6gld: Remove.

From-SVN: r28115
1999-07-15 13:59:04 +00:00
David Edelsohn
a78e33fc4b rs6000.md (insv, extzv): Remove SImode dependence in named patterns.
* rs6000.md (insv, extzv): Remove SImode dependence in named
	patterns.  Explicitly generate DImode RTL if PowerPC64 and
	operand is DImode.
	(insvdi): Reverse start and size in instruction template.

From-SVN: r28114
1999-07-15 08:39:30 -04:00