Commit Graph

55609 Commits

Author SHA1 Message Date
Ian Lance Taylor
d051dc88ef demangle.h: Instead of checking ANSI_PROTOTYPES, just include "libiberty.h".
2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>

	* demangle.h: Instead of checking ANSI_PROTOTYPES, just include
	"libiberty.h".

From-SVN: r75789
2004-01-13 03:06:13 +00:00
Fernando Nasser
cc11dca961 Dialog.java (show): Enable blocking for all modal dialogs and run secondary dispatch thread to...
* java/awt/Dialog.java (show): Enable blocking for all modal dialogs
        and run secondary dispatch thread to process event queue while this
        thread is blocked.

From-SVN: r75788
2004-01-13 02:56:18 +00:00
Zack Weinberg
bc298aa711 re PR c/13656 (ICE after redeclaring size_t in the system headers)
PR 13656
	* c-decl.c (diagnose_mismatched_decls): Whenever newtype or
	oldtype is set, set *newtypep or *oldtypep too.  Do not set
	them at the very end.
	(validate_proto_after_old_defn): Restructure for comprehensibility;
	make error messages clearer.
testsuite:
	* gcc.dg/typedef-redecl.c: New test case.
	* gcc.dg/typedef-redecl.h: New support file.

From-SVN: r75787
2004-01-13 02:52:37 +00:00
Zack Weinberg
12a08b407e varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
* varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
	(VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
	* varray.c: No need to prototype error.
	(varray_check_failed): Wrap long string onto two lines.
	(varray_underflow): New function.

From-SVN: r75786
2004-01-13 02:43:16 +00:00
Ian Lance Taylor
e79d56eae8 * README: Remove.
From-SVN: r75785
2004-01-13 02:26:28 +00:00
Steven Bosscher
faed5cc356 re PR c++/13376 (Incorrect dumps of RTL for passes that use current_function_name)
PR c++/13376
	* function.h (struct function): Kill `name' field.
	(current_function_name): Make it an extern function.
	* function.c (current_function_name): New function.
	* graph.c: Update all uses of current_function_name.
	* gcse.c: Likewise.
	* config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
	config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
	* config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
	instead of a strcmp with "main".

From-SVN: r75784
2004-01-13 01:58:45 +00:00
Ian Lance Taylor
e4a32afbe1 * demangle.h: If ANSI_PROTOTYPES is defined, include <stddef.h>.
From-SVN: r75783
2004-01-13 01:49:16 +00:00
Jan Hubicka
0bb03c1105 c-decl.c (diagnose_mismatched_decls): Fix warning calls.
* c-decl.c (diagnose_mismatched_decls):  Fix warning calls.

	* cgraphunit.c (cgraph_optimize_function):  Always do
	optimize_inline_calls when there is always_inline callee.
	(cgraph_decide_inlining): Fix formating.
	* tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
	functions.
	(expand_call_inline): Likewise.
	* toplev.h (sorry): Fix prototype.

From-SVN: r75782
2004-01-13 01:37:15 +00:00
Jan Hubicka
2d3270129f cgraphunit.c (cgraph_optimize_function): Always do optimize_inline_calls when there is always_inline callee.
* cgraphunit.c (cgraph_optimize_function):  Always do
	optimize_inline_calls when there is always_inline callee.
	(cgraph_decide_inlining): Fix formating.
	* tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
	functions.
	(expand_call_inline): Likewise.
	* toplev.h (sorry): Fix prototype.

	* gcc.dg/always_inline.c: New test.
	* gcc.dg/debug/20031231-1.c: Fix.

From-SVN: r75781
2004-01-13 01:35:27 +00:00
Roger Sayle
04cc79bb89 builtins.c (expand_builtin_expect_jump): Simplify logic.
* builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
	conditional jumps that drop through to unconditional jumps or the
	end of the sequence.

From-SVN: r75780
2004-01-13 01:32:42 +00:00
Jan Hubicka
3416f5c283 alias.c (new_alias_set): Construct the alias_set varray.
* alias.c (new_alias_set): Construct the alias_set varray.
	(init_alias_once): Don't do it here.

From-SVN: r75779
2004-01-13 01:14:17 +00:00
Giovanni Bajo
451aeff70d re PR c++/13474 (fail to compile non type argument specialization of pointer to array of int)
PR c++/13474
	* g++.dg/template/array3.C: New test.

From-SVN: r75778
2004-01-13 01:07:02 +00:00
Giovanni Bajo
cdf4ac6f04 re PR c++/13474 (fail to compile non type argument specialization of pointer to array of int)
PR c++/13474
	* pt.c (tsubst) <INTEGER_TYPE>: Remove obsolete array index tweaking.

From-SVN: r75777
2004-01-13 01:02:27 +00:00
Steven Bosscher
fdd09134be re PR c++/13558 (ICE (illegal code) at cp/friend.c:200)
PR c++/13558
	* parser.c (cp_parser_member_declaration): Any non-type is also
	not a class or a function.

From-SVN: r75776
2004-01-13 00:44:51 +00:00
GCC Administrator
3c702a6f25 Daily bump.
From-SVN: r75772
2004-01-13 00:16:08 +00:00
Jason Merrill
7b25f6e5eb re PR c++/12815 (Code compiled with optimization behaves unexpectedly)
PR c++/12815
        * class.c (build_base_path): Do not mark vtable references as
        TREE_CONSTANT.
        (build_vtbl_ref_1): Likewise.

From-SVN: r75770
2004-01-12 19:01:46 -05:00
Marc Espie
f92ed97628 system.h: handle YYBYACC like YYBISON.
2004-01-12  Marc Espie <espie@openbsd.org>

	* system.h: handle YYBYACC like YYBISON.

From-SVN: r75764
2004-01-12 22:51:02 +00:00
Richard Henderson
25ebb82a64 re PR rtl-optimization/10776 (Large aggregate initializers with a single relocated entry causes excessive compile time regression)
PR opt/10776
        * typeck2.c (split_nonconstant_init_1, split_nonconstant_init): New.
        (store_init_value): Use it.
        * decl.c (check_initializer): Expect full initialization code
        from store_init_value.
        * init.c (expand_aggr_init_1): Likewise.
        * decl2.c (maybe_emit_vtables): Abort if runtime init needed.

From-SVN: r75763
2004-01-12 13:38:04 -08:00
Andreas Tobler
6b692ad7bd libjava.exp: Add LD_LIBRARY_PATH_32/64 to get proper path setting for Ssolaris 32/64-bit testing.
2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>

	* lib/libjava.exp: Add LD_LIBRARY_PATH_32/64 to get proper
	path setting for Ssolaris 32/64-bit testing.
	Reorganize LD_LIBRARY_PATH setting.

From-SVN: r75762
2004-01-12 22:19:26 +01:00
Zack Weinberg
4139f34d38 lvalue1.C: No longer expected to fail.
* g++.dg/ext/lvalue1.C: No longer expected to fail.
	* g++.dg/warn/Wunused-2.C: Likewise.

From-SVN: r75761
2004-01-12 21:09:29 +00:00
Andreas Tobler
7b2e3e60a6 libffi-dg.exp: Set LD_LIBRARY_PATH_32 for Solaris.
2004-01-12  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
	Solaris.

From-SVN: r75760
2004-01-12 21:49:14 +01:00
Andreas Tobler
c91de77a9d libstdc++.exp: Set LD_LIBRARY_PATH_32 for Solaris.
2004-01-10  Andreas Tobler  <a.tobler@schweiz.ch>

	* testsuite/lib/libstdc++.exp: Set LD_LIBRARY_PATH_32 for
	Solaris.

From-SVN: r75759
2004-01-12 21:47:44 +01:00
Mark Mitchell
4f0a2b81cc class.c (layout_class_type): For non-POD class types...
* class.c (layout_class_type): For non-POD class types, also copy
	the DECL_SIZE and DECL_MODE of fields to the base class type.

From-SVN: r75758
2004-01-12 20:36:45 +00:00
Kriang Lerdsuwanakij
66e0c44047 re PR c++/13289 (ICE in regenerate_decl_from_template on recursive template)
2004-01-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

        PR c++/13289
        * pt.c (instantiate_decl): Set DECL_TEMPLATE_INSTANTIATED before
        calling regenerate_decl_from_template.
2004-01-12  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

        PR c++/13289
        * g++.dg/template/instantiate6.C: New test.

From-SVN: r75752
2004-01-12 12:10:19 -08:00
Jonathan Merriman
ff2aaa93cc re PR bootstrap/10847 (build fails on openbsd3.2-sparc64)
2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>

        PR target/10847
        * config.gcc: No longer includes conflicting header sparc/sol2.h when
        building on sparc64-*-openbsd*.

From-SVN: r75751
2004-01-12 11:54:01 -08:00
Andrew Pinski
c5ff912364 re PR debug/13539 (dbxout.c does not recognize protected inheritance)
2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>

        PR debug/13539
        * dbxout.c (dbxout_type): Protected inheritance is not
        private but protected.

From-SVN: r75750
2004-01-12 11:50:30 -08:00
Richard Sandiford
3cd2a1838d * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
From-SVN: r75749
2004-01-12 19:46:34 +00:00
Ian Lance Taylor
5e777af517 demangle.h (enum demangle_component_type): Define.
* demangle.h (enum demangle_component_type): Define.
	(struct demangle_operator_info): Declare.
	(struct demangle_builtin_type_info): Declare.
	(struct demangle_component): Define.
	(cplus_demangle_fill_component): Declare.
	(cplus_demangle_fill_name): Declare.
	(cplus_demangle_fill_builtin_type): Declare.
	(cplus_demangle_fill_operator): Declare.
	(cplus_demangle_fill_extended_operator): Declare.
	(cplus_demangle_fill_ctor, cplus_demangle_fill_dtor): Declare.
	(cplus_demangle_v3_components): Declare.
	(cplus_demangle_print): Declare.

	* cp-demangle.c: Include "cp-demangle.h".  If IN_GLIBCPP_V3 is
	defined, rename some functions which are to become static via
	#define.
	(CP_STATIC_IF_GLIBCPP_V3): Define.
	(struct d_operator_info): Move definition to cp-demangle.h, and
	rename to demangle_operator_info.  Change all uses.
	(enum d_builtin_type_print): Move definition to cp-demangle.h.
	(struct d_builtin_type_info): Move definition to cp-demangle.h,
	and rename to demangle_builtin_type_info.  Change all uses.
	(enum d_comp_type): Move definition to include/demangle.h, and
	rename to demangle_component_type, and change all enums to start
	with DEMANGLE_COMPONENT_ instead of D_.  Change all uses.
	(struct d_comp): Move definition to include/demangle.h, and rename
	to demangle_component.  Change all uses.
	(struct d_info): Move definition to cp-demangle.h.
	(cplus_demangle_fill_name): New function.
	(cplus_demangle_fill_extended_operator): New function.
	(cplus_demangle_fill_ctor): New function.
	(cplus_demangle_fill_dtor): New function.
	(d_make_empty): Remove type parameter.  Change all callers.
	(d_make_name): Use cplus_demangle_fill_name.
	(d_make_extended_operator): Use
	cplus_demangle_fill_extended_operator.
	(d_make_ctor): Use cplus_demangle_fill_ctor.
	(d_make_dtor): Use cplus_demangle_fill_dtor.
	(cplus_demangle_mangled_name): Rename from d_mangled_name.  Make
	non-static by default.  Change all callers.
	(cplus_demangle_operators): Rename from d_operators.  Change all
	uses.  Make non-static by default.  Add sentinel at end of array.
	(d_operator_name): Adjust initialization of high for new sentinel
	in cplus_demangle_operators.
	(cplus_demangle_builtin_types): Rename from d_builtin_types.
	Change all uses.  Make non-static by default.  Change initializer
	to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
	(cplus_demangle_type): Rename from d_type.  Make non-static by
	default.  Change all callers.
	(cplus_demangle_init_info): Rename from d_init_info.  Make
	non-static by default.  Change all callers.
	* cp-demangle.h: New file.
	* cp-demint.c: New file.
	* Makefile.in: Rebuild dependencies.
	(CFILES): Add cp-demint.c.
	(REQUIRED_OFILES): Add cp-demint.o.

From-SVN: r75748
2004-01-12 19:46:31 +00:00
Kazu Hirata
5c88165592 re PR rtl-optimization/12508 (weak optimization for some constants < 2^16)
2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>

        PR optimization/12508.
        * combine.c (try_combine): Remove a dead set in a parallel
        even if its destination is a subreg.

        Revert:
        2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
        * combine.c (simplify_set): Don't move a subreg in SET_SRC to
        SET_DEST if WORD_REGISTER_OPERATIONS is not defined.

From-SVN: r75747
2004-01-12 11:42:42 -08:00
Ian Lance Taylor
74c0b320be * MAINTAINERS: Add myself as a libiberty MAINTAINER.
From-SVN: r75746
2004-01-12 19:39:46 +00:00
Graydon Hoare
55db8fa9e7 JLayeredPane.java: Rewrite to accomodate djee@redhat.com's recent inverse ordering of Container...
2004-01-08  Graydon Hoare  <graydon@redhat.com>

	* javax/swing/JLayeredPane.java: Rewrite to accomodate
	djee@redhat.com's recent inverse ordering of Container elements.

From-SVN: r75745
2004-01-12 19:11:00 +00:00
Paul Brook
1c48f4be22 Fix ChangeLog date.
From-SVN: r75744
2004-01-12 18:39:56 +00:00
Geoffrey Keating
a42f8ae785 Correct my e-mail address
From-SVN: r75743
2004-01-12 18:38:16 +00:00
Geoffrey Keating
affad9a4be real.c: Update copyright date.
* real.c: Update copyright date.
	* emit-rtl.c: Likewise.
	* rtl.h: Likewise.
	* dwarf2out.c: Likewise.
	* config/rs6000/darwin-ldouble.c: Likewise.
	* config/rs6000/rs6000.md: Likewise.

From-SVN: r75742
2004-01-12 18:37:40 +00:00
David Edelsohn
4274207b37 rs6000.c (rs6000_init_libfuncs): Add AIX TFmode to SImode libfuncs.
* config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
        TFmode to SImode libfuncs.

From-SVN: r75741
2004-01-12 13:34:36 -05:00
Andrew Pinski
b40ee5d63d re PR target/13534 (Invalid offset generated for loading 64-bit GPR on PPC64)
2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>

        PR target/13534
        * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
        predicate to handle 'ld' conform addresses.
        * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
        contraint.
        (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
        are memory contraints.
        * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
        New prototype.
        * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
        Change 'o' to 'Y' constraint.
        (*movdf_softfloat64): Ditto.

From-SVN: r75739
2004-01-12 09:57:16 -08:00
Paolo Carlini
300b3317f3 13582-2.cc: Use try_mkfifo.
2004-01-12  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/27_io/basic_filebuf/imbue/char/13582-2.cc:
	Use try_mkfifo.
	* testsuite/27_io/basic_filebuf/imbue/wchar_t/13582-2.cc:
	Likewise.

From-SVN: r75738
2004-01-12 17:25:25 +00:00
Roger Sayle
06e4eab554 re PR middle-end/11397 (weak aliases broken on Tru64 UNIX)
PR middle-end/11397
	* varasm.c (assemble_alias): Remove weak aliases from weak_decls.

	* gcc.dg/special/wkali-2.c: Add dg-require-alias.

From-SVN: r75737
2004-01-12 17:22:12 +00:00
Paolo Carlini
dc6798f865 locale_facets.h (struct __numpunct_cache): Add members _M_truename_len and _M_falsename_len...
2004-01-12  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.h (struct __numpunct_cache):
	Add members _M_truename_len and _M_falsename_len, caching
	the lengths of _M_truename and _M_falsename.
	(__numpunct_cache<>::_M_cache): Assign the latter.
	* include/bits/locale_facets.tcc (num_get::do_get(bool&),
	num_put::do_put(bool)): Use the new members, thus avoiding
	computing string lengths again and again.
	* config/locale/generic/numeric_members.cc
	(numpunct<>::_M_initialize_numpunct): Assign the new members.
	* config/locale/gnu/numeric_members.cc
	(numpunct<>::_M_initialize_numpunct): Likewise.

From-SVN: r75735
2004-01-12 17:02:08 +00:00
Richard Earnshaw
59774bb047 Update copyright.
From-SVN: r75734
2004-01-12 16:40:32 +00:00
Jan Hubicka
432f982f5c re PR rtl-optimization/12826 (Optimizer removes reference through volatile pointer)
PR opt/12826
	* loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
	stored.

	PR opt/12863
	* cfgcleanup.c (label_is_jump_target_p): Move to...
	* rtlanal.c (label_is_jump_target_p): ... here.
	* cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
	edges unified with branch edges.

From-SVN: r75733
2004-01-12 16:32:12 +00:00
Jan Hubicka
9a249c79b3 re PR rtl-optimization/12826 (Optimizer removes reference through volatile pointer)
PR opt/12826
	* gcc.dg/20040112-1.c: New.

	* gcc.dg/dwarf-die[1-7].c: Move to...
	* gcc.dg/debug/dwarf2/dwarf-die[1-7].c: ... here.
	* gcc.dg/debug/dwarf2/dwarf2.exp: New.

From-SVN: r75732
2004-01-12 16:25:32 +00:00
J"orn Rennecke
68d2b0bb98 Fixed date in ChangeLog. Also updated Copyright dates in source files.
From-SVN: r75730
2004-01-12 16:20:14 +00:00
Ian Lance Taylor
59147a629a re PR c++/4100 ([parser] friend qualifier accepted in definition of nested class)
PR c++/4100
	* g++.dg/parse/friend4.C: New test.
	* g++.old-deja/g++.pt/niklas01a.C: Mark an error where a class
	definition is called a friend.

From-SVN: r75727
2004-01-12 16:15:19 +00:00
Scott Brumbaugh
0426c4ca86 re PR c++/4100 ([parser] friend qualifier accepted in definition of nested class)
PR c++/4100
	* parser.c (cp_parser_decl_specifier_seq): Add check for a friend
	decl-specifier occurring along with a class definition.

From-SVN: r75726
2004-01-12 16:14:41 +00:00
Richard Earnshaw
8064d930e8 simplify-rtx.c (simplify_immed_subreg): Correctly extract the high word of an integral CONST_DOUBLE.
* simplify-rtx.c (simplify_immed_subreg): Correctly extract the
high word of an integral CONST_DOUBLE.

From-SVN: r75725
2004-01-12 16:01:18 +00:00
Paul Brook
0786ca8784 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
From-SVN: r75724
2004-01-12 15:33:59 +00:00
Ian Lance Taylor
543ca912c8 parser.c (cp_parser_decl_specifier_seq): Add parenthetical clauses to comments describing declares_class_or_enum.
* parser.c (cp_parser_decl_specifier_seq): Add parenthetical
	clauses to comments describing declares_class_or_enum.
	(cp_parser_type_specifier): Set *declares_class_or_enum to 0, not
	false.

From-SVN: r75723
2004-01-12 15:25:16 +00:00
Jan Hubicka
c1e39976c9 pt.c (for_each_template_parm): Do not check for duplicates.
* pt.c (for_each_template_parm): Do not check for duplicates.
	(for_each_template_parm): Use walk_tree duplicate checking code.

From-SVN: r75718
2004-01-12 13:18:13 +00:00
J"orn Rennecke
07d7d2f4d1 re PR target/13585 (Incorrect optimisation of call to sfunc)
PR target/13585
	* sh-protos.h (check_use_sfunc_addr): Declare.
	* sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
	* sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.

From-SVN: r75717
2004-01-12 12:59:38 +00:00