gcc.git
21 years agocfglayout.c (locator_file): Break out from ....
Jan Hubicka [Mon, 14 Jul 2003 21:18:15 +0000 (23:18 +0200)]
cfglayout.c (locator_file): Break out from ....

* cfglayout.c (locator_file): Break out from ....
(insn_file): ... here.
(locator_line): Break out from ....
(insn_line): ... here.
* rtl.h (locator_file, locator_line): Declare.
(final_start_function): Set proper line/file info.

From-SVN: r69359

21 years ago*** empty log message ***
Gabriel Dos Reis [Mon, 14 Jul 2003 20:52:04 +0000 (20:52 +0000)]
*** empty log message ***

From-SVN: r69358

21 years agomips.c (mips_expand_prologue): Use a single insn to allocate 32768 bytes of stack.
Richard Sandiford [Mon, 14 Jul 2003 20:41:27 +0000 (20:41 +0000)]
mips.c (mips_expand_prologue): Use a single insn to allocate 32768 bytes of stack.

* config/mips/mips.c (mips_expand_prologue): Use a single insn to
allocate 32768 bytes of stack.  Use addition rather than subtraction
when a single insn is enough.
* config/mips/mips.md: Remove insns and splitters for subtracting
constants.
(subsi3): Only accept register operands.
(subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
(subdi3_internal_3, subsi3_internal_2): Likewise.
(casesi): Use expand_binop to subtract the lower bound.

From-SVN: r69357

21 years agomips.c (mips_in_small_data_p): Don't handle TARGET_MIPS16 specially.
Richard Sandiford [Mon, 14 Jul 2003 20:36:28 +0000 (20:36 +0000)]
mips.c (mips_in_small_data_p): Don't handle TARGET_MIPS16 specially.

* config/mips/mips.c (mips_in_small_data_p): Don't handle
TARGET_MIPS16 specially.

From-SVN: r69356

21 years agoelf.h (ASM_OUTPUT_ALIGNED_BSS): Use mips_output_aligned_bss.
Richard Sandiford [Mon, 14 Jul 2003 20:29:34 +0000 (20:29 +0000)]
elf.h (ASM_OUTPUT_ALIGNED_BSS): Use mips_output_aligned_bss.

* config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
mips_output_aligned_bss.
* config/mips/linux.h: Likewise.
* config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
* config/mips/mips.c (mips_output_aligned_bss): New function.

From-SVN: r69355

21 years agoelf.h (DBX_DEBUGGING_INFO): Delete.
Richard Sandiford [Mon, 14 Jul 2003 20:25:55 +0000 (20:25 +0000)]
elf.h (DBX_DEBUGGING_INFO): Delete.

* config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
* config/mips/elf64.h: Likewise.

From-SVN: r69354

21 years agoc_locale.h (__convert_from_v): One more qualification.
Paolo Carlini [Mon, 14 Jul 2003 20:24:18 +0000 (22:24 +0200)]
c_locale.h (__convert_from_v): One more qualification.

2003-07-14  Paolo Carlini  <pcarlini@unitus.it>

* config/locale/gnu/c_locale.h (__convert_from_v): One more
qualification.

From-SVN: r69353

21 years agoelf.h (ASM_DECLARE_OBJECT_NAME): Use mips_declare_object_name.
Richard Sandiford [Mon, 14 Jul 2003 20:23:38 +0000 (20:23 +0000)]
elf.h (ASM_DECLARE_OBJECT_NAME): Use mips_declare_object_name.

* config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
mips_declare_object_name.
(ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
* config/mips/elf64.h: As for elf.h.
* config/mips/iris6.h: Likewise.
* config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
* config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
do...while (0) block.
* config/mips/mips-protos.h (mips_declare_object_name): Declare.
(mips_finish_declare_object): Declare.
* config/mips/mips.c (mips_declare_object_name): New function.
(mips_finish_declare_object): New function.

From-SVN: r69352

21 years agore PR c++/7053 (ICE when declaring a function already defined as a friend method...
Mark Mitchell [Mon, 14 Jul 2003 20:20:27 +0000 (20:20 +0000)]
re PR c++/7053 (ICE when declaring a function already defined as a friend method of a template class)

PR c++/7053
* g++.dg/template/friend20.C: New test.

From-SVN: r69351

21 years agoelf.h (SBSS_SECTION_ASM_OP): Delete.
Richard Sandiford [Mon, 14 Jul 2003 20:19:26 +0000 (20:19 +0000)]
elf.h (SBSS_SECTION_ASM_OP): Delete.

* config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
* config/mips/linux.h: Likewise.

From-SVN: r69350

21 years agomips.c (inside_function): Delete.
Richard Sandiford [Mon, 14 Jul 2003 20:15:47 +0000 (20:15 +0000)]
mips.c (inside_function): Delete.

* config/mips/mips.c (inside_function): Delete.
(file_in_function_warning, ignore_line_number): Delete.
(mips_output_filename): Don't warn about changing filenames within
a function.
(mips_output_lineno): Update accordingly.
(mips_output_function_prologue): Don't reset the deleted variables.
* config/mips/mips.h (inside_function): Delete.
(file_in_function_warning, ignore_line_number): Delete.

From-SVN: r69348

21 years agostl_tempbuf.h: Qualify free with std::.
Paolo Carlini [Mon, 14 Jul 2003 20:14:49 +0000 (22:14 +0200)]
stl_tempbuf.h: Qualify free with std::.

2003-07-14  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/stl_tempbuf.h: Qualify free with std::.
* src/locale.cc: Include <cstdlib>, qualify getenv.

From-SVN: r69347

21 years agoelf.h (OBJECT_FORMAT_COFF, [...]): Remove undefs.
Richard Sandiford [Mon, 14 Jul 2003 20:12:07 +0000 (20:12 +0000)]
elf.h (OBJECT_FORMAT_COFF, [...]): Remove undefs.

* config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
* config/mips/elf64.h: Likewise.
* config/mips/openbsd.h: Likewise.
* config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
* config/mips/linux.h: Likewise.
* config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
(CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.

From-SVN: r69346

21 years agoconfig.gcc (mips-sgi-irix6*o32, [...]): Add mips/sdb.h to the list of include files...
Richard Sandiford [Mon, 14 Jul 2003 20:09:20 +0000 (20:09 +0000)]
config.gcc (mips-sgi-irix6*o32, [...]): Add mips/sdb.h to the list of include files when using gas.

* config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
to the list of include files when using gas.
(mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
* config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
* config/mips/elf64.h: Likewise.
* config/mips/iris5.h: Likewise.
* config/mips/linux.h: Likewise.
* config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
* config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
(SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
* config/mips/sdb.h: ...this new file.

From-SVN: r69345

21 years ago* lang-specs.h (f77-cpp-input): Use -o to specify the CPP output file.
Geoffrey Keating [Mon, 14 Jul 2003 20:03:44 +0000 (20:03 +0000)]
* lang-specs.h (f77-cpp-input): Use -o to specify the CPP output file.

From-SVN: r69344

21 years agoc_locale.h (__convert_from_v): Include <cstdio>.
Paolo Carlini [Mon, 14 Jul 2003 19:46:29 +0000 (21:46 +0200)]
c_locale.h (__convert_from_v): Include <cstdio>.

2003-07-14  Paolo Carlini  <pcarlini@unitus.it>

* config/locale/gnu/c_locale.h (__convert_from_v): Include
<cstdio>. Qualify names.
* config/locale/generic/c_locale.h (__convert_from_v): Ditto.

From-SVN: r69343

21 years agore PR c++/7019 ([3.3 only] SFINAE does not work with explicitally specified template...
Mark Mitchell [Mon, 14 Jul 2003 19:05:05 +0000 (19:05 +0000)]
re PR c++/7019 ([3.3 only] SFINAE does not work with explicitally specified template arguments)

PR c++/7019
* cp-tree.h (lookup_qualified_name): Adjust prototype.
* decl.c (lookup_qualified_name): Add complain parameter.  Adjust
call to is_aggr_type.
* parser.c (cp_parser_lookup_name): Adjust call to
lookup_qualified_name.
* pt.c (tsubst_qualified_id): Likewise.
(tsubst_copy_and_build): Likewise.
* semantics.c (finish_qualified_id_expr): Deal with erroneous
expressions.

PR c++/7019
* g++.dg/template/overload2.C: New test.

From-SVN: r69342

21 years agoNathan C.
Paolo Carlini [Mon, 14 Jul 2003 18:23:12 +0000 (20:23 +0200)]
Nathan C.

2003-07-14  Paolo Carlini  <pcarlini@unitus.it>
    Nathan C. Myers  <ncm-nospam@cantrip.org>

PR libstdc++/11378
* include/std/std_fstream.h (xsputn): Declare only.
* include/bits/fstream.tcc (xsputn): Define, optimize for the
always_noconv() case: when __n is sufficiently large flush
the buffer and issue a direct write, if possible combining the
two with writev in __basic_file<>::xsputn_2.
* config/io/basic_file_stdio.h (__basic_file<>::xsputn_2):
New, declare.
* config/io/basic_file_stdio.cc (__basic_file<>::xsputn_2):
Define.
* acinclude.m4 (GLIBCXX_CHECK_WRITE): New macro, checking for
the availability of writev in <sys/uio.h>.
* configure.in: Call here.
* acconfig.h: Add undef for the corresponding symbol.
* aclocal.m4: Regenerate.
* configure: Regenerate.
* config.h.in: Regenerate.
* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Tweak.

* include/std/std_fstream.h (sync): Constify a variable.

Co-Authored-By: Nathan C. Myers <ncm-nospam@cantrip.org>
From-SVN: r69341

21 years agore PR c++/11510 (Error message with operator __imag__ is missing spaces)
Gabriel Dos Reis [Mon, 14 Jul 2003 17:45:08 +0000 (17:45 +0000)]
re PR c++/11510 (Error message with operator __imag__ is missing spaces)

PR c++/11510
* call.c (op_error): Properly handle REALPART_EXPR
  and IMAGPART_EXPR.
* error.c (dump_expr): Likewise.

From-SVN: r69340

21 years ago[multiple changes]
Nathanael Nerode [Mon, 14 Jul 2003 16:56:03 +0000 (16:56 +0000)]
[multiple changes]

2003-07-14  Douglas Rupp  <rupp@gnat.com>

* fixinc/server.c (server_setup): Don't use non-POSIX NULL first
argument to getcwd; use fixed buffer instead.

2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>

* fixinc/mkfixinc.sh: Treat OpenBSD normally.
* fixinc/fixinc.wrap: Delete.

From-SVN: r69339

21 years ago* error.c (dump_expr): Handle EMPTY_CLASS_EXPR.
Gabriel Dos Reis [Mon, 14 Jul 2003 16:09:58 +0000 (16:09 +0000)]
* error.c (dump_expr): Handle EMPTY_CLASS_EXPR.

From-SVN: r69338

21 years agore PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse...
Franz Sirl [Mon, 14 Jul 2003 16:03:29 +0000 (16:03 +0000)]
re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it)

2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR optimization/11440
* gcc.c-torture/execute/20030714-1.c: New test.

From-SVN: r69334

21 years agoMAINTAINERS: Move self from write-after-approval to build machinery (*.in).
Nathanael Nerode [Mon, 14 Jul 2003 15:42:43 +0000 (15:42 +0000)]
MAINTAINERS: Move self from write-after-approval to build machinery (*.in).

* MAINTAINERS: Move self from write-after-approval to
build machinery (*.in).

From-SVN: r69333

21 years agore PR c++/5293 (confusing message when binding a temporary to a reference)
Gabriel Dos Reis [Mon, 14 Jul 2003 15:04:32 +0000 (15:04 +0000)]
re PR c++/5293 (confusing message when binding a temporary to a reference)

PR c++/5293
* call.c (initialize_reference): Improve diagnostic.

From-SVN: r69332

21 years agoassign_neg.cc: Fix line numbers.
Benjamin Kosnik [Mon, 14 Jul 2003 14:47:03 +0000 (14:47 +0000)]
assign_neg.cc: Fix line numbers.

2003-07-14  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/27_io/ios_base/cons/assign_neg.cc: Fix line numbers.
* testsuite/27_io/ios_base/cons/copy_neg.cc: Same.

From-SVN: r69331

21 years agoggc-page.c (extra_order_size_table): Insns have 9 slots.
Gerald Pfeifer [Mon, 14 Jul 2003 13:36:56 +0000 (13:36 +0000)]
ggc-page.c (extra_order_size_table): Insns have 9 slots.

* ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
don't have 2.

* ggc-page.c (struct globals): Add new fields to keep track of the
total allocated memory and overhead.
(ggc_print_statistics): Print them.
(ggc_alloc): Keep track of the total allocated memory and the
overhead.

* tree.c (dump_tree_statistics): Increase spacing.
(enum tree_node_kind): Move to ...
* tree.h (enum tree_node_kind): ... here.
(tree_node_counts, tree_node_sizes): Declare.

* doc/include/texinfo.tex: Upgrade to texinfo 4.6.

From-SVN: r69330

21 years agoInclude <cstring> and <cstdlib>.
Gabriel Dos Reis [Mon, 14 Jul 2003 13:32:26 +0000 (13:32 +0000)]
Include <cstring> and <cstdlib>.

From-SVN: r69329

21 years agore PR c++/11154 (spurious ambiguity report for template class specialization)
Kriang Lerdsuwanakij [Mon, 14 Jul 2003 10:48:59 +0000 (10:48 +0000)]
re PR c++/11154 (spurious ambiguity report for template class specialization)

PR c++/11154
* pt.c (more_specialized_class): Add full_args parameter.
(most_specialized_class): Adjust calls to more_specialized_class.
* cp-tree.h (more_specialized_class): Adjust declaration.

* g++.dg/template/partial2.C: New test.

From-SVN: r69328

21 years ago* lex.c (enum tree_node_kind): Delete.
Dan Nicolaescu [Mon, 14 Jul 2003 10:14:51 +0000 (10:14 +0000)]
* lex.c (enum tree_node_kind): Delete.

From-SVN: r69327

21 years agore PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse...
Franz Sirl [Mon, 14 Jul 2003 09:29:44 +0000 (09:29 +0000)]
re PR rtl-optimization/11440 (gcc-3.3.1 miscompiles c++ code with -O2, -fno-gcse cures it)

2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR optimization/11440
* gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
SIGN_EXTRACT SETs.

From-SVN: r69325

21 years agoUnicastServerRef.java: New version from classpath.
Michael Koch [Mon, 14 Jul 2003 06:05:42 +0000 (06:05 +0000)]
UnicastServerRef.java: New version from classpath.

2003-07-14  Michael Koch  <konqueror@gmx.de>

* gnu/java/rmi/server/UnicastServerRef.java:
New version from classpath.

From-SVN: r69322

21 years agoMemoryImageSource.java, [...]: New versions from classpath.
Michael Koch [Mon, 14 Jul 2003 05:33:30 +0000 (05:33 +0000)]
MemoryImageSource.java, [...]: New versions from classpath.

2003-07-14  Michael Koch  <konqueror@gmx.de>

* java/awt/image/MemoryImageSource.java,
java/beans/PropertyEditorManager.java,
javax/naming/CompoundName.java,
javax/naming/spi/NamingManager.java,
javax/swing/AbstractButton.java,
javax/swing/ButtonModel.java,
javax/swing/SwingUtilities.java,
javax/swing/UIManager.java,
javax/swing/colorchooser/DefaultColorSelectionModel.java,
javax/swing/event/AncestorEvent.java,
javax/swing/event/InternalFrameEvent.java,
java/util/zip/ZipFile.java:
New versions from classpath.

From-SVN: r69321

21 years agotm.texi (BLOCK_REG_PADDING): Describe.
Alan Modra [Mon, 14 Jul 2003 05:17:18 +0000 (05:17 +0000)]
tm.texi (BLOCK_REG_PADDING): Describe.

* doc/tm.texi (BLOCK_REG_PADDING): Describe.
* expr.h (struct locate_and_pad_arg_data): Add where_pad.
(emit_group_load, emit_group_store): Adjust declarations.
Remove most occurrences of #ifdef TREE_CODE.
* expr.c (emit_group_load): Add "type" param, and use
BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
aligned accesses if !SLOW_UNALIGNED_ACCESS.
(emit_group_store): Likewise.
(emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
emit_group_load and emit_group_store calls.
* calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
BLOCK_REG_PADDING to determine whether we need endian_correction.
(load_register_parameters): Localize vars.  Handle shifting of
small values to the correct end of regs.  Adjust emit_group_load
call.
(expand_call, emit_library_call_value_1): Adjust emit_group_load
and emit_group_store calls.
* function.c (assign_parms): Set mem alignment for stack slots.
Adjust emit_group_store call.  Store values at the "wrong" end
of regs to the stack.  Use BLOCK_REG_PADDING.
(locate_and_pad_parm): Save where_pad.
(expand_function_end): Adjust emit_group_load call.
* stmt.c (expand_value_return): Adjust emit_group_load call.
* Makefile.in (calls.o): Depend on $(OPTABS_H).
* config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
(AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
(MUST_PASS_IN_STACK): Define.
(BLOCK_REG_PADDING): Define.
* config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
(PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
* config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
(function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
Act on AGGREGATES_PAD_UPWARD_ALWAYS.

From-SVN: r69318

21 years agore PR c++/11503 (segfault when instantiating template with ADDR_EXPR)
Mark Mitchell [Mon, 14 Jul 2003 05:12:56 +0000 (05:12 +0000)]
re PR c++/11503 (segfault when instantiating template with ADDR_EXPR)

PR c++/11503
* g++.dg/template/anon1.C: New test.

PR c++/11503
* cp-tree.h (DECL_SELF_REFERENCE_P): New macro.
(SET_DECL_SELF_REFERENCE_P): Likewise.
* class.c (build_self_reference): Use SET_DECL_SELF_REFERENCE_P.
* pt.c (tsubst_decl): Copy it.
* search.c (lookup_base): Use DECL_SELF_REFERENCE_P.

From-SVN: r69317

21 years agore PR c++/11493 (tree check ICE in error.c)
Mark Mitchell [Mon, 14 Jul 2003 03:04:29 +0000 (03:04 +0000)]
re PR c++/11493 (tree check ICE in error.c)

* cp-tree.h (cp_id_kind): New type.
(unqualified_name_lookup_error): Change prototype.
(unqualified_fn_lookup_error): New function.
(do_identifier): Remove.
(do_scoped_id): Likewise.
(tsubst_copy_and_build): Change prototype.
(reregister_specialization): New function.
(perform_koenig_lookup): Likewise.
(finish_id_expression): Likewise.
* call.c (build_method_call): Adjust call to
unqualified_name_lookup_error.
* decl.c (duplicate_decls): Use reregister_specialization.
* lex.c (is_global): Remove.
(unqualified_name_lookup_error): Return a value.
(do_identifier): Remove.
(do_scoped_id): Likewise.
(identifier_typedecl_value): Remove.
(unqualified_fn_lookup_error): New function.
* parser.c (cp_parser_id_kind): Remove.
(cp_parser_non_constant_id_expression): Remove.
(cp_parser_primary_expression): Use finish_id_expression.
(cp_parser_class_or_namespace_name): Use cp_id_kind, not
cp_parser_id_kind.
(cp_parser_postfix_expression): Use perform_koenig_lookup.
(cp_parser_template_argument): Use cp_id_kind.
(cp_parser_fold_non_dependent_expr): Adjust call to
tsubst_copy_and_build.
* pt.c (unregister_specialization): Rename to ...
(reregister_specialization): This.
(tsubst_friend_function): Use it.
(maybe_fold_nontype_arg): Adjust call to tsubst_copy_and_build.
(tsubst_qualified_id): Likewise.
(tsubst_expr): Likewise.
(tsubst_copy_and_build): Add function_p parameter.  Use
finish_id_expression.  Introduce RECUR macro.
(tsubst_non_call_postfix_expression): New function.
(regenerate_decl_from_template): Use reregister_specialization.
* semantics.c (perform_koenig_lookup): New function.
(finish_id_expression): Likewise.

PR c++/11493
PR c++/11495
* g++.dg/parse/template9.C: Likewise.
* g++.dg/template/crash4.C: New test.
* g++.dg/template/koenig1.C: Likewise.
* g++.old-deja/g++.benjamin/tem03.C: Adjust error markers.
* g++.old-deja/g++.benjamin/tem06.C: Declare "x".
* g++.old-deja/g++.jason/overload33.C: Use this-> when calling
functions.
* g++.old-deja/g++.jason/template36.C: Likewise.
* g++.old-deja/g++.mike/p1989.C: Likewise.
* g++.old-deja/g++.pt/lookup2.C: Use -fpermissive when compiling.
* g++.old-deja/g++.pt/ttp20.C: Use this->.
* g++.old-deja/g++.pt/ttp21.C: Use this->.
* g++.old-deja/g++.pt/typename13.C: Use -fpermissive when
compiling.
* g++.old-deja/g++.pt/union2.C: Use this->.

From-SVN: r69316

21 years agoc_locale.h: Include <cstdlib> and <cstring>.
Mark Mitchell [Mon, 14 Jul 2003 02:52:05 +0000 (02:52 +0000)]
c_locale.h: Include <cstdlib> and <cstring>.

* config/locale/generic/c_locale.h: Include <cstdlib> and
<cstring>.
* include/bits/boost_concept_check.h: Add this-> to unqualified
method calls.
* include/bits/deque.tcc: Likewise.
* include/bits/locale_facets.h : Likewise.
* include/bits/ostream.tcc: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_bvector.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_list.h: Likewise.
* include/bits/stl_tree.h: Likewise.
* include/bits/stl_vector.h: Likewise.
* include/bits/vector.tcc: Likewise.
* include/ext/rope: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/ext/stdio_filebuf.h: Likewise.

From-SVN: r69315

21 years agogthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
Aaron W. LaFramboise [Mon, 14 Jul 2003 02:12:15 +0000 (02:12 +0000)]
gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.

2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
* config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
(This was previously, erroneously listed as checked in on 2003-06-29)

From-SVN: r69313

21 years agoDaily bump.
GCC Administrator [Mon, 14 Jul 2003 00:16:09 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69311

21 years ago* libjava.verify/verify.exp: Fixed variable init.
Tom Tromey [Sun, 13 Jul 2003 23:33:02 +0000 (23:33 +0000)]
* libjava.verify/verify.exp: Fixed variable init.

From-SVN: r69309

21 years agoexpr.c (expand_expr, [...]): If reg...
Richard Kenner [Sun, 13 Jul 2003 23:21:23 +0000 (23:21 +0000)]
expr.c (expand_expr, [...]): If reg...

* expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.

From-SVN: r69308

21 years agogcc_release (announce_snapshot): Add substitution of @RELEASE@ for README and index...
Gerald Pfeifer [Sun, 13 Jul 2003 22:10:03 +0000 (00:10 +0200)]
gcc_release (announce_snapshot): Add substitution of @RELEASE@ for README and index.html.

* gcc_release (announce_snapshot): Add substitution of @RELEASE@
for README and index.html.
* snapshot-README: Use it.
* snapshot-index.html: Ditto.

From-SVN: r69307

21 years agore PR bootstrap/11273 (make install fails in libobjc directory)
Nathanael Nerode [Sun, 13 Jul 2003 20:47:31 +0000 (20:47 +0000)]
re PR bootstrap/11273 (make install fails in libobjc directory)

PR bootstrap/11273
PR bootstrap/11408
* Makefile.tpl: Set INSTALL and friends using autoconf.  Remove
unused INSTALL_PROGRAM_ARGS.
* configure.in: Use AC_PROG_INSTALL.
* Makefile.in: Regenerate.
* configure: Regenerate.

From-SVN: r69304

21 years agore PR other/11123 (Some option names are truncated in gcc --help -v)
Nathanael Nerode [Sun, 13 Jul 2003 20:31:33 +0000 (20:31 +0000)]
re PR other/11123 (Some option names are truncated in gcc --help -v)

PR other/11123
* toplev.c: Don't cut off option names.

From-SVN: r69303

21 years agoc-decl.c (link_hash_hash): Avoid warning about casting pointer to integer of differen...
Andreas Jaeger [Sun, 13 Jul 2003 20:21:24 +0000 (22:21 +0200)]
c-decl.c (link_hash_hash): Avoid warning about casting pointer to integer of different size.

* c-decl.c (link_hash_hash): Avoid warning about casting pointer
to integer of different size.

From-SVN: r69302

21 years agocombine.c (simplify_comparison): Convert (ne (and (not X) 1) 0) to (eq (and X 1) 0).
Kazu Hirata [Sun, 13 Jul 2003 19:03:28 +0000 (19:03 +0000)]
combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0) to (eq (and X 1) 0).

* combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
to (eq (and X 1) 0).

From-SVN: r69300

21 years ago* config.gcc: Add pmmintrin.h for x86_64-*-*.
Andreas Jaeger [Sun, 13 Jul 2003 18:22:54 +0000 (20:22 +0200)]
* config.gcc: Add pmmintrin.h for x86_64-*-*.

From-SVN: r69299

21 years agoMakefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
Zack Weinberg [Sun, 13 Jul 2003 17:34:18 +0000 (17:34 +0000)]
Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).

* Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
(hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
list.  Move these all together down by cpplib.

* cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
definition of CPPCHAR_SIGNED_T.

* cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
* cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
* line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.

* cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
* cppinit.c (cpp_create_reader): Likewise.

* cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
* cpptrad.c: Likewise.  All callers changed.
* cpplib.c: All callers changed.
* c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
* hashtable.h: Define GTY(x) to nothing here too.

From-SVN: r69298

21 years agostor-layout.c (compute_record_mode): Remove very obsolete test that forces BLKmode...
Richard Kenner [Sun, 13 Jul 2003 17:12:28 +0000 (17:12 +0000)]
stor-layout.c (compute_record_mode): Remove very obsolete test that forces BLKmode for records with fields crossing...

* stor-layout.c (compute_record_mode): Remove very obsolete test
that forces BLKmode for records with fields crossing word boundary.

From-SVN: r69297

21 years agoFileChannelImpl.java, [...]: Removed.
Michael Koch [Sun, 13 Jul 2003 16:53:05 +0000 (16:53 +0000)]
FileChannelImpl.java, [...]: Removed.

2003-07-13  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/FileChannelImpl.java,
gnu/java/nio/natFileChannelImpl.cc: Removed.
* java/io/FileInputStream.java,
java/io/FileOutputStream.java,
java/io/RandomAccessFile.java,
java/nio/MappedByteBufferImpl.java:
Import java.nio.channels.FileChannelImpl instead of
gnu.java.nio.FileChannelImpl.
* java/nio/channels/FileChannelImpl.java,
java/nio/channels/natFileChannelImpl.cc:
New files.
* Makefile.am
(ordinary_java_source_files):
Removed gnu/java/nio/FileChannelImpl.java and added
java/nio/channels/FileChannelImpl.java.
(nat source_files):
Removed gnu/java/nio/natFileChannelImpl.cc and added
java/nio/channels/natFileChannelImpl.cc.
* Makefile.in: Regenerated.

From-SVN: r69296

21 years ago* Makefile.in: Remove orphan reference to acconfig.h.
Zack Weinberg [Sun, 13 Jul 2003 16:52:23 +0000 (16:52 +0000)]
* Makefile.in: Remove orphan reference to acconfig.h.

From-SVN: r69295

21 years ago* MAINTAINERS: Alphabetize.
Kazu Hirata [Sun, 13 Jul 2003 16:15:38 +0000 (16:15 +0000)]
* MAINTAINERS: Alphabetize.

From-SVN: r69293

21 years agoBasicBorders.java, [...]: New versions from classpath.
Michael Koch [Sun, 13 Jul 2003 15:29:11 +0000 (15:29 +0000)]
BasicBorders.java, [...]: New versions from classpath.

2003-07-13  Michael Koch  <konqueror@gmx.de>

* javax/swing/plaf/basic/BasicBorders.java,
javax/swing/plaf/basic/BasicLabelUI.java,
javax/swing/plaf/basic/BasicLookAndFeel.java,
javax/swing/plaf/basic/BasicTabbedPaneUI.java,
javax/swing/plaf/basic/BasicTextUI.java,
javax/swing/plaf/metal/MetalLookAndFeel.java:
New versions from classpath.

From-SVN: r69292

21 years agopt.c (push_access_scope_real): Remove.
Kriang Lerdsuwanakij [Sun, 13 Jul 2003 15:20:58 +0000 (15:20 +0000)]
pt.c (push_access_scope_real): Remove.

* pt.c (push_access_scope_real): Remove.
(push_access_scope): Move code from push_access_scope_real.
(pop_access_scope): Don't check for TEMPLATE_DECL.
(instantiate_template): Defer access checking during template
substitution.
(regenerate_decl_from_template): Tidy.

From-SVN: r69291

21 years ago2003-07-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Sun, 13 Jul 2003 15:09:20 +0000 (15:09 +0000)]
2003-07-13  Michael Koch  <konqueror@gmx.de>

* gnu/java/awt/peer/gtk/GdkFontMetrics.java
* gnu/java/awt/peer/gtk/GdkGraphics.java
* gnu/java/awt/peer/gtk/GtkButtonPeer.java
* gnu/java/awt/peer/gtk/GtkCanvasPeer.java
* gnu/java/awt/peer/gtk/GtkCheckboxGroupPeer.java
* gnu/java/awt/peer/gtk/GtkCheckboxMenuItemPeer.java
* gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
* gnu/java/awt/peer/gtk/GtkChoicePeer.java
* gnu/java/awt/peer/gtk/GtkClipboard.java
* gnu/java/awt/peer/gtk/GtkDialogPeer.java
* gnu/java/awt/peer/gtk/GtkFileDialogPeer.java
* gnu/java/awt/peer/gtk/GtkFramePeer.java
* gnu/java/awt/peer/gtk/GtkGenericPeer.java
* gnu/java/awt/peer/gtk/GtkImage.java
* gnu/java/awt/peer/gtk/GtkImagePainter.java
* gnu/java/awt/peer/gtk/GtkLabelPeer.java
* gnu/java/awt/peer/gtk/GtkListPeer.java
* gnu/java/awt/peer/gtk/GtkMenuBarPeer.java
* gnu/java/awt/peer/gtk/GtkMenuComponentPeer.java
* gnu/java/awt/peer/gtk/GtkMenuItemPeer.java
* gnu/java/awt/peer/gtk/GtkMenuPeer.java
* gnu/java/awt/peer/gtk/GtkOffScreenImage.java
* gnu/java/awt/peer/gtk/GtkPanelPeer.java
* gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java
* gnu/java/awt/peer/gtk/GtkScrollPanePeer.java
* gnu/java/awt/peer/gtk/GtkScrollbarPeer.java
* gnu/java/awt/peer/gtk/GtkTextAreaPeer.java
* gnu/java/awt/peer/gtk/GtkTextComponentPeer.java
* gnu/java/awt/peer/gtk/GtkTextFieldPeer.java

From-SVN: r69290

21 years ago2003-07-13 Michael Koch <konqueror@gmx.de>
Michael Koch [Sun, 13 Jul 2003 15:00:20 +0000 (15:00 +0000)]
2003-07-13  Michael Koch  <konqueror@gmx.de>

* gnu/java/locale/LocaleInformation_de.java
* gnu/java/locale/LocaleInformation_en.java
* gnu/java/locale/LocaleInformation_nl.java

From-SVN: r69289

21 years agoEmbeddedWindow.java, [...]: New files.
Michael Koch [Sun, 13 Jul 2003 14:39:41 +0000 (14:39 +0000)]
EmbeddedWindow.java, [...]: New files.

2003-07-13  Michael Koch  <konqueror@gmx.de>

* gnu/java/awt/EmbeddedWindow.java,
gnu/java/awt/EmbeddedWindowSupport.java,
gnu/java/awt/natEmbeddedWindow.cc:
New files.
* java/awt/Window.java
(Window): New constructor to support embedded windows.
* Makefile.am
(awt_java_source_files): Added gnu/java/awt/EmbeddedWindow.java and
gnu/java/awt/EmbeddedWindowSupport.java.
(nat_source_files): Added gnu/java/awt/natEmbeddedWindow.cc.
* Makefile.in: Regenerated.

From-SVN: r69288

21 years agodocument covariants implemented
Nathan Sidwell [Sun, 13 Jul 2003 14:30:02 +0000 (14:30 +0000)]
document covariants implemented

From-SVN: r69287

21 years ago* cgraphunit.c: Convert prototypes to ISO C90.
Andreas Jaeger [Sun, 13 Jul 2003 08:40:07 +0000 (10:40 +0200)]
* cgraphunit.c: Convert prototypes to ISO C90.

From-SVN: r69285

21 years agoinclhack.def (avoid_wchar_t_type): Use __cplusplus bypass (for OpenBSD).
Nathanael Nerode [Sun, 13 Jul 2003 06:52:25 +0000 (06:52 +0000)]
inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass (for OpenBSD).

* fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
(for OpenBSD).
* fixinc/fixincl.x: Rebuild.

From-SVN: r69284

21 years agoconfigure.in: Always define HAVE_AS_GOTOFF_IN_DATA for i?86-*-*.
Zack Weinberg [Sun, 13 Jul 2003 02:53:00 +0000 (02:53 +0000)]
configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for i?86-*-*.

* configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
i?86-*-*.  Use correct name of cache variable.
* configure: Regenerate.

From-SVN: r69283

21 years agoDaily bump.
GCC Administrator [Sun, 13 Jul 2003 00:16:06 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69281

21 years agoalpha.c: Fix comment typos.
Kazu Hirata [Sat, 12 Jul 2003 23:02:23 +0000 (23:02 +0000)]
alpha.c: Fix comment typos.

* config/alpha/alpha.c: Fix comment typos.
* config/alpha/alpha.md: Likewise.
* config/arm/arm.c: Likewise.
* config/arm/arm.md: Likewise.
* config/arm/lib1funcs.asm: Likewise.
* config/avr/avr.md: Likewise.
* config/arm/README-interworking: Fix typos.

From-SVN: r69277

21 years agoc-format.c: Fix comment formatting.
Kazu Hirata [Sat, 12 Jul 2003 22:49:48 +0000 (22:49 +0000)]
c-format.c: Fix comment formatting.

* c-format.c: Fix comment formatting.
* c-typeck.c: Likewise.
* coverage.c: Likewise.
* cppcharset.c: Likewise.
* cpplib.c: Likewise.
* dbxout.c: Likewise.
* gcov-io.h: Likewise.
* toplev.c: Likewise.

From-SVN: r69276

21 years ago* gcc_update: gcc/acconfig.h no longer exists.
Zack Weinberg [Sat, 12 Jul 2003 21:32:36 +0000 (21:32 +0000)]
* gcc_update: gcc/acconfig.h no longer exists.

From-SVN: r69275

21 years agoinclhack.def (alpha_sbrk): Note that OpenBSD needs this fix.
Nathanael Nerode [Sat, 12 Jul 2003 20:12:52 +0000 (20:12 +0000)]
inclhack.def (alpha_sbrk): Note that OpenBSD needs this fix.

* fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
fix.

From-SVN: r69274

21 years agoRegenerate again, oops
Zack Weinberg [Sat, 12 Jul 2003 20:05:24 +0000 (20:05 +0000)]
Regenerate again, oops

From-SVN: r69273

21 years agoaclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE...
Zack Weinberg [Sat, 12 Jul 2003 20:03:14 +0000 (20:03 +0000)]
aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE...

* aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
uses three-argument AC_DEFINE so no acconfig.h entries are
needed.
(_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
which contains the GAS version number as a scaled integer.
(gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
ability to check for ELF assembler.
(gcc_GAS_CHECK_FEATURE): New macro.
* configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
assembler feature checks using gcc_GAS_CHECK_FEATURE.
Use three-argument AC_DEFINE everywhere.
* acconfig.h: Deleted.
* config.in, configure: Regenerate.

From-SVN: r69272

21 years ago(fix dumb changelog omission)
Nathanael Nerode [Sat, 12 Jul 2003 19:55:44 +0000 (19:55 +0000)]
(fix dumb changelog omission)

(fix dumb changelog omission)
* fixinc/fixincl.x: Regenerate.

From-SVN: r69271

21 years agoinclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in (on OpenBSD).
Nathanael Nerode [Sat, 12 Jul 2003 19:39:44 +0000 (19:39 +0000)]
inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in (on OpenBSD).

* fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
(on OpenBSD).

From-SVN: r69270

21 years ago* fixinc/inclhack.def (gnu_types): Improve comment.
Nathanael Nerode [Sat, 12 Jul 2003 19:25:59 +0000 (19:25 +0000)]
* fixinc/inclhack.def (gnu_types): Improve comment.

From-SVN: r69269

21 years ago* Make-lang.in (treelang/tree-convert.o): Depend on TM_H.
Andreas Jaeger [Sat, 12 Jul 2003 18:54:06 +0000 (20:54 +0200)]
* Make-lang.in (treelang/tree-convert.o): Depend on TM_H.

From-SVN: r69268

21 years agofp-test.c (main): Use ISO C90 prototype.
Andreas Jaeger [Sat, 12 Jul 2003 11:29:18 +0000 (13:29 +0200)]
fp-test.c (main): Use ISO C90 prototype.

* fp-test.c (main): Use ISO C90 prototype.

* version.c: Remove unneded include of ansidecl.h.

* cgraph.h: Convert prototypes to ISO C90.
* cgraph.c: Likewise.
* fix-header.c: Likewise.
* ra.h: Likewise.
* protoize.c: Likewise.

From-SVN: r69265

21 years agocgraphunit.c (cgraph_inlined_into, [...]): Fix warning.
Jan Hubicka [Sat, 12 Jul 2003 04:10:36 +0000 (06:10 +0200)]
cgraphunit.c (cgraph_inlined_into, [...]): Fix warning.

* cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
warning.

From-SVN: r69264

21 years agore PR bootstrap/7126 (zlib version is wrong in zlib/configure.in)
Nathanael Nerode [Sat, 12 Jul 2003 02:04:33 +0000 (02:04 +0000)]
re PR bootstrap/7126 (zlib version is wrong in zlib/configure.in)

PR bootstrap/7126
* configure.in: Correct zlib version number.
* configure: Regenerate.

From-SVN: r69263

21 years agocgraph.c (cgraph_max_uid): New global variable.
Jan Hubicka [Sat, 12 Jul 2003 01:07:40 +0000 (03:07 +0200)]
cgraph.c (cgraph_max_uid): New global variable.

* cgraph.c (cgraph_max_uid): New global variable.
(cgraph_node): Set uid field.
(create_edge): Keep inline flags consistent.
(dump_cgraph): Dump more info.
* cgraph.h (struct cgraph_local_info): Remove inline_many and
can_inline_once; add inlinable, disgread_inline_limits, and self_insn
(struct cgraph_global_info): Add insns, calls, cloned_times,
will_be_output.
(struct cgraph_node): Add uid.
(struct cgraph_edge): Add inline_call.
(cgraph_max_uid, cgraph_inline_p): Declare.
* cgraph.c: Include params.h and fibheap.h
(cgraph_mark_functions_to_inline_once): Kill.
(INSNS_PER_CALL): New constant.
(ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
static variables.
(cgraph_finalize_function): Do not analyze inlining.
(cgraph_finalize_compilation_unit): Set inlining attributes.
(cgraph_mark_functions_to_output): More consistency checks.
(cgraph_optimize_function): Set current_function_decl to NULL.
(cgraph_expand_function): Use new inline flags.
(cgraph_postorder): Expand from cgraph_expand_functions.
(INLINED_TIMES, SET_INLINED_TIMES): New macros.
(cgraph_inlined_into, cgraph_inlined_callees,
cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
cgraph_mark_inline, cgraph_check_inline_limits,
cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
cgraph_decide_inlining, cgraph_inline_p): New functions.
* params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
PARAM_INLINE_UNIT_GROWTH): New parameters.
* tree-inline.c (struct inline_data): New field current_decl.
(expand_call_inline): Avoid forward declarations; use
inlinable_function_p.
(optimize_inline_calls): Set id.current_decl.

Co-Authored-By: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
From-SVN: r69262

21 years agoPatch from Andrew Pinksi.
Andrew Pinski [Sat, 12 Jul 2003 00:35:14 +0000 (00:35 +0000)]
Patch from Andrew Pinksi.

* configure.in: Remove wrongly added definition of
local_prefix.
* configure: Regenerate.

From-SVN: r69261

21 years agoDaily bump.
GCC Administrator [Sat, 12 Jul 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r69259

21 years ago* rtl.def (NOTE): Do not use padding.
Dan Nicolaescu [Fri, 11 Jul 2003 23:49:43 +0000 (23:49 +0000)]
* rtl.def (NOTE): Do not use padding.

From-SVN: r69257

21 years agoPatch from Dara Hazeghi.
Dara Hazeghi [Fri, 11 Jul 2003 23:04:48 +0000 (23:04 +0000)]
Patch from Dara Hazeghi.

* doc/install.tex: Update required binutils for i?86-*-linux*

From-SVN: r69255

21 years agore PR c++/11437 (ICE in lookup_name_real)
Nathanael Nerode [Fri, 11 Jul 2003 23:01:53 +0000 (23:01 +0000)]
re PR c++/11437 (ICE in lookup_name_real)

PR c++/11437
* operators.def: Add definitions for __imag__, __real__.

From-SVN: r69254

21 years agoverify.exp: New file.
Tom Tromey [Fri, 11 Jul 2003 22:23:13 +0000 (22:23 +0000)]
verify.exp: New file.

* libjava.verify/verify.exp: New file.
* libjava.verify/README.verify: New file.

From-SVN: r69253

21 years agoREADME: Note that libffi is not part of GCC.
Gerald Pfeifer [Fri, 11 Jul 2003 22:13:16 +0000 (00:13 +0200)]
README: Note that libffi is not part of GCC.

* README: Note that libffi is not part of GCC.  Update the project
URL and status.

From-SVN: r69250

21 years ago* Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
Richard Henderson [Fri, 11 Jul 2003 22:00:09 +0000 (15:00 -0700)]
* Makefile.in (stage1_build): Force OBJS-onestep=OBJS.

From-SVN: r69249

21 years ago* README: Note that zlib is not part of GCC.
Gerald Pfeifer [Fri, 11 Jul 2003 21:54:40 +0000 (23:54 +0200)]
* README: Note that zlib is not part of GCC.

From-SVN: r69247

21 years ago* README: Note that FastJar is not part of GCC.
Gerald Pfeifer [Fri, 11 Jul 2003 21:48:39 +0000 (23:48 +0200)]
* README: Note that FastJar is not part of GCC.

From-SVN: r69245

21 years agovarasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of TRANSLATION_UNIT_DECL...
Mark Mitchell [Fri, 11 Jul 2003 21:20:18 +0000 (21:20 +0000)]
varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of TRANSLATION_UNIT_DECL as top_level.

* varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
TRANSLATION_UNIT_DECL as top_level.

From-SVN: r69244

21 years agooptabs.c (prepare_cmp_insn): Try cmpmemM first if it exists, then fall back to cmpstrM.
Jakub Jelinek [Fri, 11 Jul 2003 21:04:56 +0000 (23:04 +0200)]
optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists, then fall back to cmpstrM.

* optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
then fall back to cmpstrM.
* builtins.c (expand_builtin_memcmp): Likewise.
* config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
(s390_expand_cmpmem): ... this.
* config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
from cmpstr* patterns.  Rename call to s390_expand_cmpstr
to s390_expand_cmpmem.
* config/s390/s390.c (s390_expand_cmpstr): Rename to...
(s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
to cmpmem*.
* config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
cmpstr* patterns.
* doc/md.texi (cmpstrM): Describe as String compare insn, not
Block compare insn.
(cmpmemM): Add.

* gcc.dg/20030711-1.c: New test.

From-SVN: r69243

21 years agofreebsd.h (SET_ASM_OP): Remove.
Loren J. Rittle [Fri, 11 Jul 2003 20:22:34 +0000 (20:22 +0000)]
freebsd.h (SET_ASM_OP): Remove.

* config/i386/freebsd.h (SET_ASM_OP): Remove.
(SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
(ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.

From-SVN: r69242

21 years agoSharedLibLoader.java: Fix misspelling.
Matt Kraai [Fri, 11 Jul 2003 18:27:54 +0000 (18:27 +0000)]
SharedLibLoader.java: Fix misspelling.

2003-07-11  Matt Kraai  <kraii@alumni.cmu.edu>

* gnu/gcj/runtime/SharedLibLoader.java: Fix misspelling.
* gnu/gcj/runtime/natSharedLibLoader.cc: Likewise.
* java/awt/im/InputContext.java: Remove a redundant
partial line.

From-SVN: r69238

21 years agofunction.c (assign_parms): Don't recombine complex args if fnargs is unchanged from...
Richard Henderson [Fri, 11 Jul 2003 16:28:22 +0000 (09:28 -0700)]
function.c (assign_parms): Don't recombine complex args if fnargs is unchanged from orig_fnargs.

        * function.c (assign_parms): Don't recombine complex args if
        fnargs is unchanged from orig_fnargs.
        (split_complex_args): Return args without complex before copying.
        Re-layout the modified parameters.

From-SVN: r69236

21 years agobasic_ios.h (copyfmt): Document.
Jerry Quinn [Fri, 11 Jul 2003 14:25:09 +0000 (14:25 +0000)]
basic_ios.h (copyfmt): Document.

2003-07-11  Jerry Quinn  <jlquinn@optonline.net>

* include/bits/basic_ios.h (copyfmt): Document.
* include/bits/ios_base.h (event, event_callback, register_callback,
xalloc, iword, pword):  Document.
(imbue, ~ios_base): Update docs on callbacks.

From-SVN: r69235

21 years agoregclass.c (choose_hard_reg_mode): Add third argument.
J"orn Rennecke [Fri, 11 Jul 2003 14:09:29 +0000 (14:09 +0000)]
regclass.c (choose_hard_reg_mode): Add third argument.

* regclass.c (choose_hard_reg_mode): Add third argument.
Changed all callers.
* rtl.h (choose_hard_reg_mode): Update declaration.
* dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
Take HARD_REGNO_CALL_PART_CLOBBERED into account.

From-SVN: r69234

21 years agore PR c++/11050 ("some string" __FUNCTION__ is accepted)
Nathan Sidwell [Fri, 11 Jul 2003 09:18:01 +0000 (09:18 +0000)]
re PR c++/11050 ("some string" __FUNCTION__ is accepted)

cp:
PR c++/11050
* parser.c (cp_parser_expression_list): Rename to ...
(cp_parser_parenthesized_expression_list): ... here. Add attribute
parameter, parse the surounding parentheses.
(cp_parser_skip_to_closing_parenthesis): Add recover and or_comma
parameters. Return int.
(cp_parser_skip_to_closing_parenthesis or comma): Remove.
(cp_parser_postfix_expression): Adjust function call parsing.
(cp_parser_new_placement): Adjust.
(cp_parser_new_initializer): Likewise.
(cp_parser_cast_expression): Likewise.
(cp_parser_selection_statement): Likewise.
(cp_parser_mem_initializer): Likewise.
(cp_parser_asm_definition): Likewise.
(cp_parser_init_declarator): Likewise.
(cp_parser_declarator): Make
cdtor_or_conv_p an int ptr.
(cp_parser_direct_declarator): Likewise. Check for a parameter
list on cdtors & conv functions.
(cp_parser_initializer): Adjust.
(cp_parser_member_declaration): Adjust.
(cp_parser_attribute_list): Move code into
cp_parser_parens_expression_list.
(cp_parser_functional_cast): Adjust.
* pt.c (type_dependent_expression_p): Erroneous expressions are
non-dependent.
testsuite:
PR c++/11050
* g++.dg/parse/args1.C: New test.
* g++.pt/defarg8.C: Change expected errors.

From-SVN: r69230

21 years agore PR c++/8164 (ICE when using different const expressions as template parameter)
Mark Mitchell [Fri, 11 Jul 2003 08:53:59 +0000 (08:53 +0000)]
re PR c++/8164 (ICE when using different const expressions as template parameter)

PR c++/8164
* decl.c (duplicate_decls): Avoid mangling names unnecessarily.

PR c++/8164
* g++.dg/template/nontype2.C: New test.

PR c++/10558
* g++.dg/parse/template8.C: New test.

From-SVN: r69229

21 years agore PR c++/10558 (Segfault on illegal use of template without template args)
Mark Mitchell [Fri, 11 Jul 2003 08:41:44 +0000 (08:41 +0000)]
re PR c++/10558 (Segfault on illegal use of template without template args)

PR c++/10558
* g++.dg/parse/template8.C: New test.

From-SVN: r69226

21 years agoIndex: ChangeLog
Geoffrey Keating [Fri, 11 Jul 2003 08:33:21 +0000 (08:33 +0000)]
Index: ChangeLog
2003-07-10  Geoffrey Keating  <geoffk@apple.com>

* c-decl.c (finish_decl): Handle 'used' here...
* cgraphunit.c (cgraph_finalize_function): ... and here ...
* c-common.c: (handle_used_attribute): ... not here.

* configure.in (onstep): Support --enable-intermodule.
* Makefile.in (OBJS-common): New.
(OBJS-md): New.
(OBJS-archive): New.
(OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
(OBJS-onestep): New.
(libbackend.a): Support @onestep@.
(libbackend.o): New.
* configure: Regenerate.

* c-common.h (c_reset_state): New prototype.
(c_parse_file): New prototype.
(finish_file): Move prototype from c-tree.h.
* c-decl.c: Include <hashtab.h>.
(builtin_decls): New.
(current_file_decl): New.
(duplicate_decls): Add extra parameter. Change all callers.  Don't
output duplicate common symbols.
(link_hash_hash): New.
(link_hash_eq): New.
(poplevel): Handle popping of the top level.
(warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
(pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
(pushdecl_top_level): Likewise.
(redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
(c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
(finish_decl): Handle TRANSLATION_UNIT_DECL.
(merge_translation_unit_decls): New.
(c_write_global_declarations): New.
(c_reset_state): New.
(implicitly_declare): Handle TRANSLATION_UNIT_DECL.
* c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
* c-objc-common.c (c_cannot_inline_tree_fn): Handle
TRANSLATION_UNIT_DECL.
(c_objc_common_finish_file): Call merge_translation_unit_decls.
* c-opts.c (in_fnames): Rename from in_fname.
(c_common_decode_option): Handle multiple input filenames.
(c_common_post_options): Likewise.
(c_common_parse_file): Likewise; also, call c_parse_file rather than
yyparse.
* c-parse.in: Move cleanup code to c_parse_file.
(free_parser_stacks): Move contents to c_parse_file.
(c_parse_file): New.
* c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
for integer types.
(C_DECL_FILE_SCOPE): New.
(finish_file): Move prototype to c-common.h.
(merge_translation_unit_decls): New prototype.
(comptypes): Add extra parameter to prototype.
(c_write_global_declarations): New prototype.
* c-typeck.c (tagged_types_tu_compatible_p): New.
(function_types_compatible_p): Add extra parameter, change all callers.
(type_lists_compatible_p): Likewise.
(comptypes): Likewise.
(struct tagged_tu_seen): New.
(tagged_tu_seen_base): New.
(build_unary_op): Handle TRANSLATION_UNIT_DECL.
(c_mark_addressable): Remove #if 0 code.
* calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
comment explaining why it shouldn't have to.
* cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
options.
* cppinit.c (cpp_read_next_file): New.
(cpp_read_main_file): Use it.
* cpplib.c (undefine_macros): New.
(cpp_undef_all): New.
* cpplib.h (cpp_read_next_file): Prototype.
(cpp_undef_all): Prototype.
* langhooks-def.h (write_global_declarations): Remove prototype.
* toplev.h (write_global_declarations): Add prototype.
* tree.c (decl_type_context): Use switch statement, handle
TRANSLATION_UNIT_DECL.
* tree.def: Update documentation for TRANSLATION_UNIT_DECL.
(TRANSLATION_UNIT_DECL): New kind of tree.
* tree.h: Update documentation for TRANSLATION_UNIT_DECL.
* Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
* doc/invoke.texi: Make attempt to document new functionality.

2003-05-19  Per Bothner <bothner@apple.com>

* gcc.c (combine_inputs): New.
(process_command): Set combine_inputs.
(do_spec_1): Handle combine_inputs.
(main): Likewise.

Index: cp/ChangeLog
2003-07-10  Geoffrey Keating  <geoffk@apple.com>

* decl.c (cp_finish_decl): Handle 'used' attribute.

* cp-lang.c (c_reset_state): New dummy routine.
* cp-tree.h (finish_file): Move prototype to c-common.h.
* parser.c (c_parse_file): Rename from yyparse; don't call finish_file.

From-SVN: r69224

21 years agore PR c++/8327 (In definition of template static member value of static const member...
Mark Mitchell [Fri, 11 Jul 2003 08:20:19 +0000 (08:20 +0000)]
re PR c++/8327 (In definition of template static member value of static const member isn't known)

PR c++/8327
* pt.c (tsubst_qualified_id): Implement suggested resolution for
Core Issue 2.
(type_dependent_expression_p): Likewise.

PR c++/8327
* g++.dg/template/scope1.C: New test.

From-SVN: r69223

21 years agotypeck.c (build_binary_op): Do not warn about signed vs.
Mark Mitchell [Fri, 11 Jul 2003 08:13:58 +0000 (08:13 +0000)]
typeck.c (build_binary_op): Do not warn about signed vs.

* typeck.c (build_binary_op): Do not warn about signed
vs. unsigned comparisons in the bodies of templates.

* g++.dg/warn/Wsign-compare-1.C: New test.

From-SVN: r69222

21 years agore PR rtl-optimization/9745 ([powerpc] miscompiles libmcrypt (alias problem during...
James E Wilson [Fri, 11 Jul 2003 06:44:40 +0000 (23:44 -0700)]
re PR rtl-optimization/9745 ([powerpc] miscompiles libmcrypt (alias problem during loop))

PR optimization/9745
* loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
loop_insn_emit_before.
(loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.

From-SVN: r69220

21 years agotest_installed: Add options to run objc tests.
Matthias Klose [Fri, 11 Jul 2003 06:05:01 +0000 (06:05 +0000)]
test_installed: Add options to run objc tests.

2003-07-11  Matthias Klose  <doko@debian.org>

        * test_installed: Add options to run objc tests.
        In generated site.exp, initialize rootme, CFLAGS, CXXFLAGS.

From-SVN: r69219