Commit Graph

21582 Commits

Author SHA1 Message Date
Kaveh R. Ghazi
4504ead1db class.c (add_method_1): Cast the argument of `bzero' to PTR.
* class.c (add_method_1): Cast the argument of `bzero' to PTR.
        * decl.c (copy_lang_decl): Likewise for `bcopy'.
        * jcf-depend.c: Include "config.h", not <config.h>.
        * jcf-parse.c (jcf_figure_file_type): Cast the arguments of
        `bcopy' to PTR.
        * jcf-path.c: Include "config.h", not <config.h>.
        * lex.c: Don't include various system header files.
        (java_init_lex): Cast the argument of `bzero' to PTR
        * parse-scan.y (java_push_parser_context): Likewise.
        * parse.y (java_push_parser_context): Likewise.
        * xref.c: Don't include <stdio.h>.

From-SVN: r26203
1999-04-05 13:04:38 +00:00
Mark Mitchell
908c4e8316 class.c (maybe_fixup_vptrs): Remove declaration.
* class.c (maybe_fixup_vptrs): Remove declaration.
	(build_class_init_list): Likewise.
	* decl.c (pushdecl_class_level): Call check_template_shadow here
	...
	(push_class_level_binding): ... not here.
	* search.c (dfs_push_type_decls): Only avoid
	template-self-reference TYPE_DECLs if they are from base classes.

From-SVN: r26202
1999-04-05 12:34:20 +00:00
Alexandre Petit-Bianco
d4370213f6 parse.y (struct parser_ctxt *ctxp): Now global.
Mon Apr  5 11:24:19 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.y (struct parser_ctxt *ctxp): Now global.
	(declare_local_variables): Use WFL compound value for the
 	declaration source line value, when doing cross-referencing.

From-SVN: r26201
1999-04-05 05:00:08 -07:00
Donn Terry
7325ab47d1 * Makefile.in (SUBDIR_FLAGS_TO_PASS): Fix misapplied patch.
From-SVN: r26200
1999-04-05 05:03:57 -06:00
Donn Terry
f664c40644 * Make-lang.in (HOST_CFLAGS): compute dynamically.
From-SVN: r26199
1999-04-05 05:02:52 -06:00
Jeffrey A Law
9f22acc4e4 * m68k.md (movdf): Hide GPR sources & destinations from regclass.
From-SVN: r26198
1999-04-05 04:57:09 -06:00
Nick Clifton
9aa7ea1805 Oops - fixed typo in previous delta
From-SVN: r26197
1999-04-05 10:34:51 +00:00
Jeffrey A Law
a566f0041f Bump for snapshot
From-SVN: r26195
1999-04-05 03:54:47 -06:00
Bruce Korb
ee8c4259f5 Named wrong file :)
From-SVN: r26194
1999-04-05 06:59:28 +00:00
Bruce Korb
2458e8235b Ensure that the server shell is _NOT_ csh
From-SVN: r26193
1999-04-05 06:58:30 +00:00
Bruce Korb
383316ed62 Separate sed -e flag from its argument
From-SVN: r26192
1999-04-05 06:57:09 +00:00
Bruce Korb
ac95d436b6 sed command formatting and no CSH as server shell
From-SVN: r26191
1999-04-05 06:56:23 +00:00
Jeffrey A Law
788d09baae Bump for snapshot
From-SVN: r26190
1999-04-04 21:52:34 -06:00
Jeffrey A Law
0a726ef13b i386.c (x86_double_with_add): Turn off for Pentium and PPro.
* i386.c (x86_double_with_add): Turn off for Pentium and PPro.
	(small_shift_operand, output_ashlsi3): New functions.
	* i386.h (small_shift_operand, output_ashlsi3): Declare.
	* i386.md (ashlsi3): Simplify ahlsi3 patterns.  Remove splitters
	that are no longer needed.

From-SVN: r26189
1999-04-04 21:52:19 -06:00
Mark Mitchell
b5d9b9ab00 pt.c (check_template_shadow): Don't treat OVERLOADs as _DECL nodes.
* pt.c (check_template_shadow): Don't treat OVERLOADs as _DECL
	nodes.  Tidy.

From-SVN: r26188
1999-04-04 21:34:46 -04:00
Jeff Law
2a97a80018 Daily bump.
From-SVN: r26182
1999-04-04 18:45:02 -06:00
Craig Burley
702edf1d71 fix bugs exposed by --enable-checking
From-SVN: r26181
1999-04-04 19:16:21 -04:00
Jeffrey A Law
f114df2032 stmt.c (expand_loop_end): When copying the loop exit test, do not walk into a nested loop.
* stmt.c (expand_loop_end): When copying the loop exit test,
        do not walk into a nested loop.

From-SVN: r26171
1999-04-03 20:06:17 -07:00
Jeffrey A Law
db488e9ede * gcc.c-torture/execute/990404-1.c: New test.
From-SVN: r26170
1999-04-03 20:03:27 -07:00
Jeffrey A Law
478df796df Bump for snapshot
From-SVN: r26168
1999-04-03 18:15:41 -07:00
Jeff Law
59354f47bd Daily bump.
From-SVN: r26167
1999-04-03 17:45:02 -07:00
Jeffrey A Law
20cc423f21 hackshell.tpl: Skip links to directories, to avoid removing them.
* fixinc/hackshell.tpl: Skip links to directories, to avoid
        removing them.
        * fixinc/inclhack.tpl: Likewise.
        * fixinc/fixinc.sh, fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.

From-SVN: r26166
1999-04-03 16:36:22 -07:00
David Edelsohn
677a966854 rs6000.md (addsi3, [...]): Use no_new_pseudos.
* rs6000.md (addsi3, iorsi3, xorsi3, adddi3, iordi3, xordi3,
        movsi_got, movsi, movsf): Use no_new_pseudos.
        * rs6000.c (rs6000_got_register): Likewise.
        (offsettable_mem_opereand): Use || not |.

From-SVN: r26165
1999-04-03 17:45:55 -05:00
Craig Burley
d343abd2e8 Update BUGS, NEWS derived files
From-SVN: r26164
1999-04-03 16:12:24 -05:00
Jeffrey A Law
264b1a9c8b acconfig.h (ENABLE_CHECKING): Remove redundant #undef.
* acconfig.h (ENABLE_CHECKING): Remove redundant #undef.
        * config.in: Rebuilt.

From-SVN: r26163
1999-04-03 14:10:23 -07:00
Craig Burley
d1c32ce14e Clean up -fset-g77-defaults and -fversion docs
From-SVN: r26162
1999-04-03 16:03:32 -05:00
Craig Burley
d8955e1744 Make -fno-emulate-complex the default
From-SVN: r26161
1999-04-03 15:34:35 -05:00
Toshiyasu Morita
0ea78edbd7 * gcc.texi: Add info on regmove pass
From-SVN: r26160
1999-04-03 08:29:41 -07:00
Toshiyasu Morita
1ed9faeecb regmove.c (fixup_match_1): Consistently evaluate HAVE_POST_INCREMENT and HAVE_POST_DECREMENT.
* regmove.c (fixup_match_1): Consistently evaluate
        HAVE_POST_INCREMENT and HAVE_POST_DECREMENT.

From-SVN: r26159
1999-04-03 08:27:53 -07:00
Alexandre Oliva
e154a394de configure.in (DEFAULT_LINKER, [...]): Use grep instead of test and sed to check whether they're GNU programs.
* configure.in (DEFAULT_LINKER, DEFAULT_ASSEMBLER): Use grep
instead of test and sed to check whether they're GNU programs.
* configure: Rebuilt.

From-SVN: r26158
1999-04-03 14:52:07 +00:00
Alexandre Oliva
965c3f43f9 Makefile.in (install-headers-tar, [...]): avoid problems with CDPATH Reported by Ralf Canis <canis@bigfoot.com>
* Makefile.in (install-headers-tar, install-headers-cpio): avoid
problems with CDPATH
Reported by Ralf Canis <canis@bigfoot.com>

From-SVN: r26157
1999-04-03 13:01:48 +00:00
Jeffrey A Law
ebc7e094e1 * fixinc.x86-linux-gnu: Deleted.
From-SVN: r26156
1999-04-03 05:51:38 -07:00
Alexandre Oliva
706e665aee inclhack.tpl: insert spaces between `sed -e' and '...' Reported by Kaveh R.
* inclhack.tpl: insert spaces between `sed -e' and '...'
Reported by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/fixincl.sh, fixinc/fixincl.x, fixinc/inclhack.sh: regen

From-SVN: r26155
1999-04-03 12:19:19 +00:00
Mark Mitchell
3fccc06735 Per Jason's instructions, add myself (Mark Mitchell) as a co-maintainer
of the C++ front-end.

From-SVN: r26154
1999-04-03 12:16:18 +00:00
Craig Burley
d9c2af5b98 fix typo in tree.def
From-SVN: r26153
1999-04-03 06:58:12 -05:00
Zack Weinberg
24dc09a7fe cpp-if1.c: Adjust regexps to accommodate cccp.
1999-04-03 10:35 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
	* gcc.dg/cpp-if1.c: Adjust regexps to accommodate cccp.
	* gcc.dg/cpp-if3.c: Don't use -pedantic.
	* gcc.misc-tests/m-un-2.c: Adjust regexps for new format of
	missing initializer warnings.

From-SVN: r26150
1999-04-03 07:40:32 +00:00
Jason Merrill
e01a4a17e5 class.c (maybe_fixup_vptrs, [...]): Lose.
* class.c (maybe_fixup_vptrs, build_class_init_list): Lose.
	(finish_struct_1): Don't call build_class_init_list.

From-SVN: r26147
1999-04-02 20:23:24 -05:00
Jeff Law
54d4c16730 Daily bump.
From-SVN: r26146
1999-04-02 17:46:04 -07:00
John Wehle
bc725565df i386.md (floatsisf2, [...]): Rewrite using a splitter.
* i386.md (floatsisf2, floatdisf2, floatsidf2, floatdidf2,
	floatsixf2, floatdixf2): Rewrite using a splitter.

From-SVN: r26145
1999-04-02 21:58:42 +00:00
Nick Clifton
4bc74ece1e print large constants in hex not dec.
From-SVN: r26142
1999-04-02 17:37:22 +00:00
Nick Clifton
7b028dbadf Display constants as both decimal and hex values
From-SVN: r26141
1999-04-02 17:25:41 +00:00
Zack Weinberg
1cc6c9bd40 i386.h: Document all TARGET_SWITCHES or add explicit null initializer.
1999-04-02 20:16 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
	* config/i386/i386.h: Document all TARGET_SWITCHES or add
	explicit null initializer.
	* config/i386/cygwin.h: Document all SUBTARGET_SWITCHES.
	* config/i386/dgux.h: Likewise.
	* config/i386/osf1elf.h: Likewise.
	* config/i386/win32.h: Likewise.
	* config/i386/osfrose.h: Likewise.  Drop obsolete -mno-ident option.

From-SVN: r26140
1999-04-02 17:20:12 +00:00
Toshiyasu Morita
cb084004de * regmove.c (fixup_match_1): Remove now useless if (0).
From-SVN: r26139
1999-04-02 09:58:20 -07:00
Michael Hayes
6e01bd94f8 tm.texi (USE_LOAD_POST_DECREMENT, [...]): Document.
* tm.texi (USE_LOAD_POST_DECREMENT, USE_LOAD_PRE_DECREMENT,
	USE_STORE_POST_DECREMENT, USE_STORE_PRE_DECREMENT): Document.
	(USE_LOAD_POST_INCREMENT, USE_LOAD_PRE_INCREMENT,
	USE_STORE_POST_INCREMENT, USE_STORE_PRE_INCREMENT): Fix documentation.
	* rtl.h	(USE_LOAD_POST_DECREMENT, USE_LOAD_PRE_DECREMENT,
	USE_STORE_POST_DECREMENT, USE_STORE_PRE_DECREMENT,
	USE_LOAD_POST_INCREMENT, USE_LOAD_PRE_INCREMENT,
	USE_STORE_POST_INCREMENT, USE_STORE_PRE_INCREMENT): Provide default
	definition.
	* expr.c: (USE_LOAD_POST_INCREMENT, USE_LOAD_PRE_INCREMENT,
	USE_STORE_POST_INCREMENT, USE_STORE_PRE_INCREMENT): Delete default
	definition.

From-SVN: r26134
1999-04-02 15:39:55 +00:00
Mark Mitchell
8f0327178b tinfo.h (__class_type_info): Fix illegal declaration.
1999-04-02  Mark Mitchell  <mark@codesourcery.com>
	* tinfo.h (__class_type_info): Fix illegal declaration.
	* cp-tree.def (TEMPLATE_ID_EXPR): Update comment.
	* cp-tree.h (INHERITED_VALUE_BINDING_P): New macro.
	(IDENTIFIER_CLASS_VALUE): Improve documentation.
	(is_properly_derived_from): Declare.
	(invalidate_class_lookup_cache): Likewise.
	(maybe_maybe_note_name_used_in_class): Likewise.
	(note_name_declared_in_class): Likewise.
	(push_using_decl): Remove duplicate declaration.
	(id_in_current_class): Remove declaration.
	(push_class_binding): Change prototype.
	(clear_identitifer_class_values): Declare.
	* call.c (is_properly_derived_from): Make it global.
	(build_new_function_call): Be careful about updating candidates.
	(build_new_method_call): Handle COMPONENT_REFs.  Don't crash when
	asked to make illegal calls.
	* class.c: Include splay-tree.h.
	(class_stack_node): Add names_used slot.
	(check_member_decl_is_same_in_complete_scope): Remove.
	(add_method): Fix comment.  Push the declaration into class
	scope.
	(finish_struct_1): When popping the class, pop the bindings too.
	Remove check for data member/function member conflict.
	(finish_struct): Remove calls to
	check_member_decl_is_same_in_complete_scope.  Change calls to
	popclass.
	(pushclass): Clear names_used in the class stack entry.
	Use invalidate_class_lookup_cache to remove cached entries, rather
	than magic values with popclass.  Clear IDENTIFIER_CLASS_VALUE
	before entering a new class.  Remove dead code.  Don't mess with
	current_function_decl when pushing declarations.
	(invalidate_class_lookup_cache): New function, split out from ...
	(popclass): Here.  Clean up names_used on our way out.
	(instantiate_type): Adjust.
	(build_self_reference): Don't push the declaration here.
	(maybe_note_name_used_in_class): New function.
	(note_name_declared_in_class): Likewise.
	* decl.c (add_binding): Change prototype.
	(find_class_binding_level): New function.
	(innermost_nonclass_level): Likewise.
	(current_binding_level): Update documentation.
	(inner_binding_level): Remove.  Replace with current_binding_level
	throughout.
	(push_binding_level): Remove special handling of
	class_binding_level.
	(pop_binding_level): Likewise.  Use find_class_binding_level.
	(suspend_binding_level): Likewise.
	(global_bindings_p): Use innermost_nonclass_level.
	(toplevel_bindings_p): Likewise.
	(namespace_bindings_p): Likewise.
	(pseudo_global_level_p): Likewise.
	(push_binding): Clear INHERITED_VALUE_BINDING_P.
	(add_binding): Check for illegal multiple declarations.  Return a
	value indicating whether or not the new binding was legal.
	(push_local_binding): Skip over class binding levels.  Check
	return value from add_binding.
	(push_class_binding): Set INHERITED_VALUE_BINDING_P.  Call
	note_name_declared_in_class.
	(pushlevel_class): Remove "fake out the rest of the compiler"
	code.
	(poplevel_class): Reset IDENTIFIER_CLASS_VALUEs.
	(clear_identifier_class_values): New function.
	(pop_from_top_level): Use it.
	(pop_everything): Tweak.
	(maybe_process_template_type_declaration): Don't push the
	declaration for the template here.
	(pushtag): Don't push tag declarations into class scope here.
	(pushdecl): Apply DeMorgan's law for readability.
	(pushdecl_class_level): Remove special-case code for
	TYPE_BEING_DEFINED.  Handle OVERLOADs and anonymous unions.
	(push_class_level_bindng): Deal with inherited bindings.
	(lookup_name_real): Remove special-case code for
	TYPE_BEING_DEFINED, and some implicit typename magic.
	(grokdeclarator): Handle COMPONENT_REF for a template function.
	(build_enumerator): Don't call pushdecl_class_level here.
	(id_in_current_class): Remove.
	* decl2.c (grokfield): Don't call pushdecl_class_level or
	check_template_shadow.
	* errfn.c (cp_file_of): Don't declare.
	(cp_line_of): Likewise.
	* error.c (dump_decl): Handle an OVERLOAD.
	(cp_file_of): Likewise.
	(cp_line_of): Likewise.
	* init.c (build_member_call): Handle a COMPONENT_REF.
	* lex.c (do_identifier): Call maybe_note_name_used_in_class, not
	pushdecl_class_level.
	* method.c (hack_identifier): Build COMPONENT_REFs for references
	to member templates as well as member functions.  Remove dead
	code.
	* parse.y (left_curly): Remove.
	(nonnested_type): Call maybe_note_name_used_in_class, not
	pushdecl_class_level.
	* parse.c: Regenerated.
	(nested_name_specifier_1): Likewise.
	* pt.c (check_explicit_specialization): Adjust, for robustness.
	(check_template_shadow): Handle OVERLOADs.
	(build_template_decl): Set DECL_CONSTRUCTOR_P on the
	TEMPLATE_DECL, if appropriate.
	* search.c (envelope_add_decl): Remove.
	(dfs_pushdecls): Likewise.
	(dfs_compress_decls): Likewise.
	(dfs_push_decls): New function.
	(dfs_push_type_decls): Likewise.
	(setup_class_bindings): Likewise.
	(template_self_reference_p): Likewise.
	(lookup_field_r): Use it.
	(looup_member): Remove old comment.  Deal with ambiguity.
	(push_class_decls): Use dfs_push_decls and dfs_push_type_decls,
	and remove envelope processing.
	* semantics.c (begin_class_definition): Let pushclass push
	declarations for base classes.
	(finish_member_declaration): Push declarations into class scope.
	* typeck.c (build_component_ref): Just put an OVERLOAD into the
	COMPONENT_REF, not a TREE_LIST of an OVERLOAD.
	(build_x_function_call): Deal with OVERLOAD.  Handle template-ids.
	* Makefile.in (class.o): Depend on splay-tree.h.

From-SVN: r26133
1999-04-02 15:36:57 +00:00
Mark Mitchell
ae7f727035 splay-tree.h (splay_tree_compare_pointers): Declare.
1999-04-02  Mark Mitchell  <mark@codesourcery.com>
	* splay-tree.h (splay_tree_compare_pointers): Declare.
1999-04-02  Mark Mitchell  <mark@codesourcery.com>
	* splay-tree.h (splay_tree_compare_pointers): Define.

From-SVN: r26132
1999-04-02 15:18:06 +00:00
Jeffrey A Law
2fa6b2d2ad * fixinc/*: Delete obsolete files.
From-SVN: r26131
1999-04-02 08:13:30 -07:00
Jeffrey A Law
4f71d8e4e7 fixinc.dgux, [...]: Deleted.
* fixinc.dgux, fixinc.interix, fixinc.irix, fixinc.ptx: Deleted.
        * fixinc.sco, fixinc.svr4, fixinc.winnt, fixinc.wrap: Likewise.

From-SVN: r26130
1999-04-02 08:08:57 -07:00
Donn Terry
5aa82acea4 configure.in: Set and substitute quoted_cc_set_by_configure.
* configure.in: Set and substitute quoted_cc_set_by_configure.
        * configure: Rebuilt.
        * Makefile.in (SUBDIR_FLAGS_TO_PASS): Fix quoting problem with ``.

From-SVN: r26129
1999-04-02 07:56:49 -07:00
Jeffrey A Law
f6087261f4 * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
From-SVN: r26128
1999-04-02 07:56:11 -07:00