Commit Graph

46000 Commits

Author SHA1 Message Date
Jan Hubicka
fc8dfa2066 toplev.c (rest_of_compilation): Reorganize way reg_scan is called before final pass.
* toplev.c (rest_of_compilation): Reorganize way reg_scan is called
	before final pass.

From-SVN: r58624
2002-10-29 14:39:38 +00:00
Eric Botcazou
6e7727ebee expr.c (expand_expr): Don't use simplify_binary_operation; check for zero operands explicitly.
* expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
        check for zero operands explicitly.

From-SVN: r58623
2002-10-29 06:20:16 -08:00
Richard Sandiford
02c6a17aef mips.md (extv, [...]): Set size of referenced memory after adjusting to BLKmode.
* config/mips/mips.md (extv, extzv, insv): Set size of referenced
	memory after adjusting to BLKmode.

From-SVN: r58621
2002-10-29 13:47:10 +00:00
Kazu Hirata
1862869df9 h8300.h (MASK_*): New.
* config/h8300/h8300.h (MASK_*): New.
	(TARGET_*): Use MASK_*.

From-SVN: r58620
2002-10-29 12:29:54 +00:00
GCC Administrator
216cd92c02 Daily bump.
From-SVN: r58619
2002-10-29 08:17:23 +00:00
Jason Thorpe
17a7afe04b pthread5.cc: Include <unistd.h> if _GLIBCPP_HAVE_UNISTD_H is defined.
* testsuite/thread/pthread5.cc: Include <unistd.h>
if _GLIBCPP_HAVE_UNISTD_H is defined.
(main): Only use pthread_attr_setscope if
_POSIX_THREAD_PRIORITY_SCHEDULING is defined.

From-SVN: r58608
2002-10-29 01:10:52 +00:00
Jason Thorpe
761642ea46 pthread1.cc: Enable on *-*-netbsd*.
* testsuite/thread/pthread1.cc: Enable on *-*-netbsd*.
* testsuite/thread/pthread2.cc: Likewise.
* testsuite/thread/pthread3.cc: Likewise.
* testsuite/thread/pthread4.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread6.cc: Likewise.

From-SVN: r58606
2002-10-28 23:31:55 +00:00
Kaveh R. Ghazi
a80c67ca2e 20021014-1.c: Bypass errors on solaris2 and irix6.
* gcc.dg/20021014-1.c: Bypass errors on solaris2 and irix6.
	* gcc.dg/nest.c: Bypass errors on irix6.

From-SVN: r58600
2002-10-28 18:10:56 +00:00
Jason Thorpe
ee3c755a45 config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to tm_defines if pthreads are enabled.
* config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to
tm_defines if pthreads are enabled.
* config/netbsd.h (LIB_SPEC): Only support the -pthread option
if NETBSD_ENABLE_PTHREADS is defined.

From-SVN: r58599
2002-10-28 17:20:36 +00:00
Nathanael Nerode
c6362f4ff9 a-chlat9.ads [...]: Update maintainership comments.
2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>

	* a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
	maintainership comments.

From-SVN: r58597
2002-10-28 16:19:22 +00:00
Kazu Hirata
423adbb9bf ChangeLog.1: Fix typos.
* ChangeLog.1: Fix typos.
	* cse.c: Fix a comment typo.
	* reload1.c: Likewise.

From-SVN: r58596
2002-10-28 14:07:45 +00:00
Gerald Pfeifer
42e650ae23 * MAINTAINERS: Remove "co-maintainer" note for web pages.
From-SVN: r58595
2002-10-28 09:26:58 +00:00
GCC Administrator
e3c2b64701 Daily bump.
From-SVN: r58594
2002-10-28 08:17:15 +00:00
Hans-Peter Nilsson
96a888d64d nest.c: Expect error for mmix-*-*.
* gcc.dg/nest.c: Expect error for mmix-*-*.
	* gcc.dg/20021014-1.c: Use dg-error, not dg-build.

From-SVN: r58586
2002-10-27 19:35:01 +00:00
Hans-Peter Nilsson
d7521977eb inclhack.def (libc1_G_va_list): Correct test_text.
* fixinc/inclhack.def (libc1_G_va_list): Correct test_text.
	* fixinc/tests/base/_G_config.h: New file.

From-SVN: r58585
2002-10-27 17:58:36 +00:00
Bruce Korb
f7cf1c7492 Resorted the entries
From-SVN: r58584
2002-10-27 17:02:29 +00:00
Kazu Hirata
3eae4643be combine.c: Fix comment formatting.
* combine.c: Fix comment formatting.
	* loop.c: Likewise.
	* real.c: Likewise.
	* regclass.c: Likewise.
	* regmove.c: Likewise.
	* regrename.c: Likewise.
	* reg-stack.c: Likewise.
	* reload1.c: Likewise.
	* reload.c: Likewise.
	* reload.h: Likewise.
	* unroll.c: Likewise.

From-SVN: r58583
2002-10-27 14:47:55 +00:00
Kazu Hirata
e591c83de7 * reload1.c (reload): Fix a comment typo.
From-SVN: r58582
2002-10-27 14:21:37 +00:00
Jan Hubicka
a0ba837ee7 * linux64.h (DEFAULT_PCC_STRUCT_RETURN): Define.
From-SVN: r58579
2002-10-27 09:20:22 +00:00
Zdenek Dvorak
cc0017a983 Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
* Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
	* dwarf2out.c: Include hashtab.h.
	(is_main_source): New static variable.
	(attr_checksum, die_checksum): Modified to handle die references.
	(same_loc_p, same_dw_val_p, same_attr_p, same_die_p, same_die_p_wrap,
	unmark_all_dies, htab_cu_hash, htab_cu_eq, htab_cu_del, check_duplicate_cu,
	record_comdat_symbol_number): New static functions.
	(output_comp_unit, compute_section_prefix, is_type_die, break_out_includes,
	mark_dies, unmark_dies, dwarf2out_start_source_file): Modified.
	* toplev.c (rest_of_decl_compilation): Call of dwarf2out_decl for type
	declarations added.

From-SVN: r58578
2002-10-27 09:14:04 +00:00
Paolo Carlini
085825b83b re PR libstdc++/8347 (empty vector range used in string construction causes core dump.)
2002-10-27  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/8347
	* include/bits/basic_string.tcc
	(string::_S_construct(_InIter, _InIter, const _Alloc&,
	forward_iterator_tag)): Do not throw logic error if
	__beg == NULL && __end == __beg.
	(string::string(const _CharT*, const _Alloc&)): Tweak.
	* testsuite/21_strings/ctor_copy_dtor.cc: Add test05 from PR.

From-SVN: r58577
2002-10-27 07:35:06 +00:00
GCC Administrator
881fc35459 Daily bump.
From-SVN: r58576
2002-10-27 07:17:14 +00:00
Roger Sayle
45329aca77 partition.h: Close the extern "C" scope when compiling with C++.
* partition.h:  Close the extern "C" scope when compiling with C++.
	* getopt.h: Update copyright year from the previous patch.

From-SVN: r58570
2002-10-27 01:00:34 +00:00
Roger Sayle
f416dcd5bf re PR bootstrap/8351 (3.3 20021024 (experimental) fails to bootstrap on cygwin)
PR bootstrap/8351
	* getopt.h:  Avoid prototyping getopt with no arguments in C++.

Co-Authored-By: DJ Delorie <dj@redhat.com>

From-SVN: r58569
2002-10-27 00:54:50 +00:00
Andris Pavenis
980bccdd6f lang-specs.h: Fix ratfor specs.
2002-10-26  Andris Pavenis  <pavenis@latnet.lv>

	* lang-specs.h: Fix ratfor specs.

From-SVN: r58565
2002-10-26 19:25:32 +00:00
Kazu Hirata
d7af42bcbc h8300.c (initial_offset): Change to h8300_initial_elimination_offset.
* config/h8300/h8300.c (initial_offset): Change to
	h8300_initial_elimination_offset.
	* config/h8300/h8300.h (INITIAL_ELIMINATION_OFFSET): Use
	h8300_initial_elimination_offset.
	* config/h8300/h8300-protos.h: Update the prototype.

From-SVN: r58564
2002-10-26 19:25:26 +00:00
Hans-Peter Nilsson
4b32269b1a mmix.h (LIBCALL_VALUE): Use MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
* config/mmix/mmix.h (LIBCALL_VALUE): Use
	MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
	(FUNCTION_VALUE_REGNO_P): Similar, but move code to...
	* config/mmix/mmix.c (mmix_function_value_regno_p): New.
	* config/mmix/mmix-protos.h: Remove needless ifdefs on TREE_CODE
	and RTX_CODE.
	(mmix_function_value_regno_p): Declare.

From-SVN: r58563
2002-10-26 18:06:01 +00:00
Hans-Peter Nilsson
600522f8a2 wint_t-1.c, [...]: Remove excess-errors markers.
* gcc.dg/wint_t-1.c, gcc.dg/wchar_t-1.c: Remove excess-errors
	markers.

From-SVN: r58562
2002-10-26 14:03:12 +00:00
GCC Administrator
86dc768102 Daily bump.
From-SVN: r58561
2002-10-26 07:17:23 +00:00
Hans-Peter Nilsson
35fcca95a8 Premature commit: obvious change somehow won't work. Sorry.
From-SVN: r58554
2002-10-26 06:01:20 +00:00
Hans-Peter Nilsson
1f032a995c nest.c, [...]: Expect build failure on mmix-*-*.
* gcc.dg/nest.c, gcc.dg/20021014-1.c: Expect build failure on
	mmix-*-*.

From-SVN: r58553
2002-10-26 05:44:18 +00:00
Hans-Peter Nilsson
7e5037dcb4 mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix, invalid for floating point mode result, with fix.
* config/mmix/mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix,
	invalid for floating point mode result, with fix.

From-SVN: r58552
2002-10-26 02:27:17 +00:00
Mike Stump
da89b956ca Add note about what it fixes.
From-SVN: r58551
2002-10-26 01:21:28 +00:00
Mike Stump
94c1e0e8ce c-typeck.c (warn_for_assignment): Don't print argument number, if zero.
* c-typeck.c (warn_for_assignment): Don't print argument number, if zero.
	Fixes gcc.dg/warn-1.c.

From-SVN: r58550
2002-10-26 01:18:52 +00:00
Mike Stump
f0dd122b47 Add gcc.dg/warn-1.c
From-SVN: r58549
2002-10-26 01:15:16 +00:00
Mark Mitchell
e93ee6440d call.c (build_over_call): Use DECL_CONTEXT, not DECL_VIRTUAL_CONTEXT.
* call.c (build_over_call): Use DECL_CONTEXT, not
	DECL_VIRTUAL_CONTEXT.
	* class.c (modify_vtable_entry): Don't mess with
	DECL_VIRTUAL_CONTEXT.
	(set_vindex): Remove.
	(set_primary_base): Remove vfuns_p parameter.
	(determine_primary_base): Likewise.
	(modify_all_vtables): Likewise.
	(layout_class_type): Likewise.  Adjust calls to other functions
	accordingly.
	(finish_struct_1): Adjust calls to modified functions.  Set
	DECL_VINDEX here.
	* cp-tree.h (lang_type_class): Remove vsize.
	(CLASSTYPE_VSIZE): Remove.
	(lang_decl): Remove thunks.
	(DECL_THUNKS): Adjust.
	(DECL_VIRTUAL_CONTEXT): Remove.
	(duplicate_decls): Don't copy it.
	* pt.c (build_template_decl): Don't set it.
	(tsubst_decl): Likewise.
	* typeck.c (expand_ptrmemfunc_cst): Don't use it.

	* g++.dg/lookup/ptrmem1.C: New test.

From-SVN: r58548
2002-10-26 00:44:44 +00:00
Jan Hubicka
0fb53e681d toplev.c (dump_file_index): Add DFI_ce3.
* toplev.c (dump_file_index): Add DFI_ce3.
	(dump_file_info): Likewise.
	(rest_of_compilation): Run first ifcvt pass before tracer.

From-SVN: r58547
2002-10-25 23:46:06 +00:00
Phil Edwards
e004b81f6e Makefile.tpl (bootstrap): Add bubblestrap, quickstrap, cleanstrap, and restrap targets to this rule.
2002-10-25  Phil Edwards  <pme@gcc.gnu.org>

	* Makefile.tpl (bootstrap):  Add bubblestrap, quickstrap, cleanstrap,
	and restrap targets to this rule.
	* Makefile.in:  Regenerate.

From-SVN: r58545
2002-10-25 22:49:58 +00:00
Steve Ellcey
794186cab2 * config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.
From-SVN: r58543
2002-10-25 22:18:37 +00:00
Zack Weinberg
f65e118396 re PR c++/7266 (pedantic segfaults on missing typename)
PR c++/7266
cp:
	* decl.c (grokdeclarator): Check that TREE_OPERAND 0 of a
	SCOPE_REF is not null before dereferencing it.
testsuite:
	* g++.dg/template/typename3.C: New test.

From-SVN: r58540
2002-10-25 22:01:44 +00:00
Richard Henderson
cd60b4b8e7 real.c (real_to_decimal): If the >1 tens reduction loop results in a negative exponent...
* real.c (real_to_decimal): If the >1 tens reduction loop results
        in a negative exponent, fall into the <1 pten computation.

From-SVN: r58538
2002-10-25 14:58:12 -07:00
Gerald Pfeifer
06bd49b10b MAINTAINERS: Add Wolfgang Bangerth and Volker Reichelt under GNATS only accounts.
* MAINTAINERS: Add Wolfgang Bangerth and Volker Reichelt under
	GNATS only accounts.

From-SVN: r58537
2002-10-25 19:47:32 +00:00
Mark Mitchell
bb5e8a7ffc class.c (build_vtbl_initializer): Don't use build_vtable_entry.
* class.c (build_vtbl_initializer): Don't use build_vtable_entry.
	(build_vtable_entry): Remove.
	* cp-tree.h (BINFO_VIRTUALS): Expand documentation.
	(lang_decl): Add thunks.
	(DECL_THUNKS): New macro.
	* decl.c (duplicate_decls): Copy it.
	* method.c (make_thunk): Simplify, and add thunks to DECL_THUNKS.
	* semantics.c (emit_associated_thunks): Simplify.

	* g++.dg/abi/vthunk2.C: New test.

From-SVN: r58536
2002-10-25 19:39:47 +00:00
Zack Weinberg
f3763a442e re PR c++/6994 (ICE in find_function_data)
PR middle-end/6994

	* c-objc-common.c (inline_forbidden_p): Can not inline
	functions containing structures or unions containing VLAs.
	* tree-inline.c (walk_tree): For all class 't' nodes, walk
	TYPE_SIZE and TYPE_SIZE_UNIT.
	(copy_tree_r): Copy types if they are variably modified.

	* g++.dg/ext/vla1.C, gcc.dg/vla-2.c: New tests.

From-SVN: r58535
2002-10-25 17:26:52 +00:00
David Edelsohn
6eb359685e re PR c++/7228 (ICE when using member template and template function)
PR c++/7228
        * cp-tree.h (CLASSTYPE_READONLY_FIELDS_NEED_INIT): Check that
        lang_type structure exists before accessing field.
        (SET_CLASSTYPE_READONLY_FIELDS_NEED_INIT): New macro.
        (CLASSTYPE_REF_FIELDS_NEED_INIT): Similar.
        (SET_CLASSTYPE_REF_FIELDS_NEED_INIT): New macro.
        * class.c (check_field_decls): Use new macros.
        * typeck2.c (process_init_constructor): Remove redundant check for
        existence of lang_type structure.

From-SVN: r58532
2002-10-25 11:13:05 -04:00
Ulrich Weigand
8c40b097ec * config/s390/s390.md: Remove old-style peepholes.
From-SVN: r58531
2002-10-25 12:28:17 +00:00
Ulrich Weigand
522ec94ec5 s390.c (s390_decompose_address): Do not range check the displacement if base or index is the argument pointer...
* config/s390/s390.c (s390_decompose_address): Do not range check the
	displacement if base or index is the argument pointer register.

From-SVN: r58530
2002-10-25 12:26:40 +00:00
GCC Administrator
0bfd1ad0f8 Daily bump.
From-SVN: r58527
2002-10-25 07:18:27 +00:00
Mark Mitchell
ba9a991fd3 class.c (end_of_base): New method.
* class.c (end_of_base): New method.
	(end_of_class): Use it.  Check indirect virtual bases.

	* g++.dg/abi/empty9.C: New test.

From-SVN: r58521
2002-10-25 06:01:55 +00:00
Tom Tromey
ca7c2b8529 natRuntime.cc (_Jv_SetDLLSearchPath): New function.
* java/lang/natRuntime.cc (_Jv_SetDLLSearchPath): New function.
	(_Jv_FindSymbolInExecutable): Removed argument name.
	(insertSystemProperties): Call _Jv_SetDLLSearchPath if
	java.library.path is set.

	* gij.cc (help): Document --showversion.
	(version): Don't exit.
	(main): Handle --showversion.  Exit if --version given.

From-SVN: r58520
2002-10-25 03:28:00 +00:00