gcc.git
22 years ago* config/h8300/h8300.md: Fix formatting.
Kazu Hirata [Fri, 28 Dec 2001 18:00:23 +0000 (18:00 +0000)]
* config/h8300/h8300.md: Fix formatting.

From-SVN: r48348

22 years agovarasm.c (record_constant_1): Correct parameter to recursive call in default case.
Geoffrey Keating [Fri, 28 Dec 2001 17:57:50 +0000 (17:57 +0000)]
varasm.c (record_constant_1): Correct parameter to recursive call in default case.

* varasm.c (record_constant_1): Correct parameter to recursive
call in default case.

From-SVN: r48347

22 years agoFix whitespace in and around comment.
Richard Kenner [Fri, 28 Dec 2001 16:24:12 +0000 (11:24 -0500)]
Fix whitespace in and around comment.

From-SVN: r48346

22 years agobasic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and workin...
Paolo Carlini [Fri, 28 Dec 2001 14:00:18 +0000 (15:00 +0100)]
basic_string.h (insert(__pos, __s, __n)): Optimize by avoiding temporaries and working in-place when possible.

2001-12-28  Paolo Carlini  <pcarlini@unitus.it>
            Nathan Myers  <ncm@cantrip.org>

* include/bits/basic_string.h (insert(__pos, __s, __n)):
Optimize by avoiding temporaries and working in-place when possible.
(insert(__pos1, __str)): Call insert(__pos1, __str, __pos2, __n).
(insert(__pos1, __str, __pos2, __n)): Call insert(__pos, __s, __n).
* testsuite/21_strings/insert.cc (test02): New testcases.

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

22 years agosparc.h (ASM_PREFERRED_EH_DATA_FORMAT, [...]): Define.
Jakub Jelinek [Fri, 28 Dec 2001 09:55:14 +0000 (10:55 +0100)]
sparc.h (ASM_PREFERRED_EH_DATA_FORMAT, [...]): Define.

* config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT,
ASM_OUTPUT_DWARF_PCREL): Define.
* config/sparc/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
* configure.in (HAVE_AS_SPARC_UA_PCREL): Check whether as supports
.uaword %r_disp32() and linker handles it correctly.
* configure, config.in: Rebuilt.

From-SVN: r48344

22 years agoc-typeck.c (store_init_value): If initializing object with array type of unknown...
Jakub Jelinek [Fri, 28 Dec 2001 09:51:20 +0000 (10:51 +0100)]
c-typeck.c (store_init_value): If initializing object with array type of unknown size by a compound literal...

* c-typeck.c (store_init_value): If initializing object with array
type of unknown size by a compound literal, set object's size from
compound literal size.
* doc/extend.texi (Compound Literals): Adjust documentation.

* gcc.dg/gnu89-init-1.c: Adjust for the new behaviour, add some
additional tests.

From-SVN: r48343

22 years agoreal.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
Richard Henderson [Fri, 28 Dec 2001 09:23:05 +0000 (01:23 -0800)]
real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.

        * real.c (etoe113, toe113): Ifndef INTEL_EXTENDED_IEEE_FORMAT.
        (endian): Clear word 3 for INTEL_EXTENDED_IEEE_FORMAT.
        (etartdouble): Invoke etoe64 for INTEL_EXTENDED_IEEE_FORMAT.
        * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Don't special case
        INTEL_EXTENDED_IEEE_FORMAT.

From-SVN: r48342

22 years agoDaily bump.
GCC Administrator [Fri, 28 Dec 2001 08:16:10 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48340

22 years agocombine.c (try_combine): Mask off sign bits when combining stores to the low and...
Geoffrey Keating [Fri, 28 Dec 2001 07:52:44 +0000 (07:52 +0000)]
combine.c (try_combine): Mask off sign bits when combining stores to the low and high parts of a...

* combine.c (try_combine): Mask off sign bits when combining
stores to the low and high parts of a two-word value.

From-SVN: r48339

22 years agoexpr.c (expand_expr): Don't mark memory for non-constants as constant.
Geoffrey Keating [Fri, 28 Dec 2001 07:51:59 +0000 (07:51 +0000)]
expr.c (expand_expr): Don't mark memory for non-constants as constant.

* expr.c (expand_expr): Don't mark memory for non-constants as
constant.

From-SVN: r48338

22 years agointegrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS, clear...
Richard Kenner [Fri, 28 Dec 2001 01:46:22 +0000 (01:46 +0000)]
integrate.c (copy_rtx_and_substitute, case MEM): If inlining and not for LHS, clear RTX_UNCHANGING_P.

* integrate.c (copy_rtx_and_substitute, case MEM): If inlining
and not for LHS, clear RTX_UNCHANGING_P.

From-SVN: r48337

22 years agocppfiles.c (stack_include_files): Don't translate <stdin>.
Philipp Thomas [Fri, 28 Dec 2001 00:09:47 +0000 (00:09 +0000)]
cppfiles.c (stack_include_files): Don't translate <stdin>.

From-SVN: r48336

22 years agore PR rtl-optimization/3508 (builtin memcmp() could be optimised)
Roger Sayle [Thu, 27 Dec 2001 23:34:31 +0000 (23:34 +0000)]
re PR rtl-optimization/3508 (builtin memcmp() could be optimised)

        * builtins.c (expand_builtin_memcmp): Optimize memcmp built-in
        when all arguments are known constant.  Fixes PR opt/3508.

        * gcc.c-torture/execute/string-opt-16.c: New testcase.

From-SVN: r48335

22 years ago* config/h8300/h8300.md (two anonymous patterns): Remove.
Kazu Hirata [Thu, 27 Dec 2001 22:43:59 +0000 (22:43 +0000)]
* config/h8300/h8300.md (two anonymous patterns): Remove.

From-SVN: r48334

22 years agohaifa-sched.c (reemit_other_notes): New.
Richard Henderson [Thu, 27 Dec 2001 22:19:59 +0000 (14:19 -0800)]
haifa-sched.c (reemit_other_notes): New.

        * haifa-sched.c (reemit_other_notes): New.
        (schedule_block): Use it.
        * sched-ebb.c (schedule_ebbs): Call remove_unnecessary_notes.
        * sched-rgn.c (schedule_insns): Likewise.
        * cfglayout.c (remove_scope_notes): Handle removing note at
        the end of the insn chain.
        * function.c (debug_find_var_in_block_tree): New.

        * gcc.dg/debug-1.c, gcc.dg/debug-2.c: New.

From-SVN: r48333

22 years agotestsuite_hooks.h (gnu_counting_struct): Add.
Phil Edwards [Thu, 27 Dec 2001 21:51:28 +0000 (21:51 +0000)]
testsuite_hooks.h (gnu_counting_struct): Add.

2001-12-27  Phil Edwards  <pme@gcc.gnu.org>

* testsuite/testsuite_hooks.h (gnu_counting_struct):  Add.
* testsuite/23_containers/deque_ctor.cc:  New file.

From-SVN: r48332

22 years agoFix typo in 2001-12-26 entry
Hans-Peter Nilsson [Thu, 27 Dec 2001 21:10:43 +0000 (21:10 +0000)]
Fix typo in 2001-12-26 entry

From-SVN: r48331

22 years agolinux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.
Alan Modra [Thu, 27 Dec 2001 17:59:21 +0000 (17:59 +0000)]
linux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.

2001-12-27  Alan Modra  <amodra@bigpond.net.au>
            David Edelsohn  <edelsohn@gnu.org>

        * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Simplify.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>
From-SVN: r48330

22 years agotoplev.c (independent_decode_option): Re-add -aux-info option handling.
Jakub Jelinek [Thu, 27 Dec 2001 17:22:00 +0000 (18:22 +0100)]
toplev.c (independent_decode_option): Re-add -aux-info option handling.

* toplev.c (independent_decode_option): Re-add -aux-info option
handling.

From-SVN: r48329

22 years agointegrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note if special value.
Richard Kenner [Thu, 27 Dec 2001 14:57:17 +0000 (14:57 +0000)]
integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note if special value.

* integrate.c (copy_insn_notes): Don't adjust REG_EH_REGION note
if special value.

From-SVN: r48328

22 years agolocale_facets.tcc (collate::do_transform): Adjust implicit typename.
Paolo Carlini [Thu, 27 Dec 2001 12:13:23 +0000 (13:13 +0100)]
locale_facets.tcc (collate::do_transform): Adjust implicit typename.

2001-12-27  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (collate::do_transform):
Adjust implicit typename.
* config/locale/messages_members_generic.h (messages::open,
messages::do_open, messages::do_get): Adjust implicit typename.
* config/locale/messages_members_gnu.h (messages::open,
messages::do_open, messages::do_get): Adjust Implicit typename.
* config/locale/messages_members_ieee_1003.1-200x.h (messages::open,
messages::do_open, messages::do_get): Adjust implicit typename.

From-SVN: r48327

22 years agoDaily bump.
GCC Administrator [Thu, 27 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48325

22 years agore PR libstdc++/3829 (missing template instantiations)
Phil Edwards [Thu, 27 Dec 2001 07:26:00 +0000 (07:26 +0000)]
re PR libstdc++/3829 (missing template instantiations)

2001-12-27  Phil Edwards  <pme@gcc.gnu.org>

PR libstdc++/3829
* src/misc-inst.cc:  Many additional I/O-related instantiations.
* testsuite/27_io/instantiations.cc:  New file.

From-SVN: r48324

22 years agoFix typo in ChangeLog
Kaveh Ghazi [Thu, 27 Dec 2001 03:37:11 +0000 (03:37 +0000)]
Fix typo in ChangeLog

From-SVN: r48323

22 years agocollect2.c (is_ctor_dtor): Const-ify.
Kaveh R. Ghazi [Thu, 27 Dec 2001 03:35:21 +0000 (03:35 +0000)]
collect2.c (is_ctor_dtor): Const-ify.

* collect2.c (is_ctor_dtor): Const-ify.
* m88k-protos.c (output_file_start): Likewise.
* m88k.c (m88k_lang_independent_options, output_options,
output_file_start): Likewise.
* fix-header.c (files_to_ignore, std_include_entry, include_entry,
std_include_table, main): Likewise.
* protoize.c (longopts): Likewise.
* regclass.c (int_reg_class_contents): Likewise.
* toplev.c (dump_file, f_options, W_options): Make static.
(lang_independent_options, f_options, W_options): Const-ify.
* tree-dump.c (dump_file_info): Likewise.
* unroll.c (_factor): Make static.

java:
* chartables.h: Const-ify.
* gjavah.c (options): Likewise.
* jcf-dump.c (options): Likewise.
* jv-scan.c (options): Likewise.
* lex.c (java_start_char_p, java_part_char_p): Likewise.
* parse.y (binop_lookup): Likewise.

From-SVN: r48322

22 years ago* config/alpha/alpha.c (alpha_align_insns): Remove warning.
Richard Kenner [Wed, 26 Dec 2001 23:10:56 +0000 (23:10 +0000)]
* config/alpha/alpha.c (alpha_align_insns): Remove warning.

From-SVN: r48321

22 years agosparc.md (call struct patterns): Show starting at two words long.
Richard Kenner [Wed, 26 Dec 2001 23:03:42 +0000 (23:03 +0000)]
sparc.md (call struct patterns): Show starting at two words long.

* config/sparc/sparc.md (call struct patterns): Show starting
at two words long.

From-SVN: r48320

22 years agors6000.h (ASM_CPU_SPEC, [...]): Add mcpu=405.
David Edelsohn [Wed, 26 Dec 2001 22:53:46 +0000 (22:53 +0000)]
rs6000.h (ASM_CPU_SPEC, [...]): Add mcpu=405.

        * rs6000.h (ASM_CPU_SPEC, CPP_CPU_SPEC): Add mcpu=405.
        * sysv4.h (CPP_SYSV_SPEC, CPP_OS_VXWORKS_SPEC): Add mcpu=405.

From-SVN: r48319

22 years agoinsert_iterator.cc (test02): Add.
Benjamin Kosnik [Wed, 26 Dec 2001 21:56:17 +0000 (21:56 +0000)]
insert_iterator.cc (test02): Add.

2001-12-26  Benjamin Kosnik  <bkoz@waller.constant.com>

* testsuite/24_iterators/insert_iterator.cc (test02): Add.
* testsuite/24_iterators/front_insert_iterator.cc (test02): Add.
* testsuite/24_iterators/back_insert_iterator.cc (test02): Add.
* testsuite/24_iterators/reverse_iterator.cc (test02): Add.

* include/bits/stl_iterator.h (reverse_iterator): Uglify member
current to _M_current.
(back_insert_iterator): Ulify member container to _M_container.
(front_insert_iterator): Same.
(insert_iterator): Same.

From-SVN: r48318

22 years agore PR c++/196 (problem with: namespace N { class N {...}; })
Nathan Sidwell [Wed, 26 Dec 2001 20:33:37 +0000 (20:33 +0000)]
re PR c++/196 (problem with:  namespace N { class N {...}; })

cp:
PR c++/196
* cp/parse.y (bad_parm): Better diagnostic when given a SCOPE_REF.
testsuite:
* g++.dg/eh/ctor1.C: New test.
* g++.dg/other/error2.C: New test.

From-SVN: r48317

22 years agofunction.c (expand_main_function): Make sure stack adjustments happen before sjlj...
DJ Delorie [Wed, 26 Dec 2001 19:54:44 +0000 (14:54 -0500)]
function.c (expand_main_function): Make sure stack adjustments happen before sjlj exception setup.

* function.c (expand_main_function): Make sure stack adjustments
happen before sjlj exception setup.

From-SVN: r48316

22 years agors6000.md (indirect_jump): Prefer CTR over LR.
David Edelsohn [Wed, 26 Dec 2001 18:02:17 +0000 (18:02 +0000)]
rs6000.md (indirect_jump): Prefer CTR over LR.

        * rs6000.md (indirect_jump): Prefer CTR over LR.
        * xcoff.h (ASM_DECLARE_FUNCTION_NAME): Handle weak function.

From-SVN: r48315

22 years agoDaily bump.
GCC Administrator [Wed, 26 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48313

22 years ago* dwarf2out.c: Reformatting and minor code rearrangement.
Richard Kenner [Tue, 25 Dec 2001 17:11:35 +0000 (17:11 +0000)]
* dwarf2out.c: Reformatting and minor code rearrangement.

From-SVN: r48312

22 years agostd_limits.h (__glibcpp_xxx_is_modulo): New macros for signed types; default value...
Gabriel Dos Reis [Tue, 25 Dec 2001 13:53:56 +0000 (13:53 +0000)]
std_limits.h (__glibcpp_xxx_is_modulo): New macros for signed types; default value is true.

* include/bits/std_limits.h (__glibcpp_xxx_is_modulo): New
macros for signed types; default value is true.
(numeric_limits<>::is_modulo): Get value from corresponding
__glibcpp_xxx_is_modulo macro.

From-SVN: r48311

22 years agoDaily bump.
GCC Administrator [Tue, 25 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48309

22 years agore PR c++/160 (Reference variables not initialized correctly in constructor initializ...
Nathan Sidwell [Mon, 24 Dec 2001 20:52:36 +0000 (20:52 +0000)]
re PR c++/160 (Reference variables not initialized correctly in constructor initializer list using , operator)

cp:
PR c++/160
* typeck.c (build_modify_expr): Remove old unreachable code & tidy
up. Don't stabilize_references when initializing a reference.
testsuite:
* g++.dg/other/init2.C: New test.

From-SVN: r48307

22 years agoconfigure.in (uintptr_t): Use AC_CHECK_TYPE.
Douglas B Rupp [Mon, 24 Dec 2001 17:51:40 +0000 (12:51 -0500)]
configure.in (uintptr_t): Use AC_CHECK_TYPE.

* configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure: Regenerated.

From-SVN: r48306

22 years agoconfigure.in (quoted_stage_prefix_set_by_configure): Generate.
Douglas B Rupp [Mon, 24 Dec 2001 17:37:36 +0000 (12:37 -0500)]
configure.in (quoted_stage_prefix_set_by_configure): Generate.

* configure.in (quoted_stage_prefix_set_by_configure): Generate.
* configure: Regenerated.
* Makefile.in (SUBDIR_FLAGS_TO_PASS): Use
quoted_stage_prefix_set_by_configure.

From-SVN: r48305

22 years agortl.h (in_expr_list_p): New declaration.
Richard Kenner [Mon, 24 Dec 2001 15:44:45 +0000 (15:44 +0000)]
rtl.h (in_expr_list_p): New declaration.

* rtl.h (in_expr_list_p): New declaration.
* rtlanal.c (in_expr_list_p): New function.
* cfgcleanup.c: Reformatting and minor code rearrangement.
* cfglayout.c, cfgloop.c, cfgrtl.c: Likewise.

From-SVN: r48304

22 years agoRemove bogus blank line
Richard Kenner [Mon, 24 Dec 2001 14:38:56 +0000 (09:38 -0500)]
Remove bogus blank line

From-SVN: r48303

22 years agore PR debug/5163 (Internal compiler error in add_abstract_origin_attribute, at dwarf2...
Richard Henderson [Mon, 24 Dec 2001 08:45:59 +0000 (00:45 -0800)]
re PR debug/5163 (Internal compiler error in add_abstract_origin_attribute, at dwarf2out.c:9296)

        PR c/5163:
        * c-decl.c (duplicate_decls): As needed, set DECL_INLINE when
        we have a function body associated.  Minor cleanups.
        (grokdeclarator): Do not set DECL_INLINE without a function body.

        * gcc.dg/20011223-1.c: New.
        * gcc.dg/inline-1.c: New.

From-SVN: r48302

22 years agoDaily bump.
GCC Administrator [Mon, 24 Dec 2001 08:16:39 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48301

22 years agostmt.c (resolve_operand_names): Handle operand modifiers.
Richard Henderson [Mon, 24 Dec 2001 06:15:31 +0000 (22:15 -0800)]
stmt.c (resolve_operand_names): Handle operand modifiers.

        * stmt.c (resolve_operand_names): Handle operand modifiers.

        * gcc.dg/asm-4.c: Test operand modifiers.

From-SVN: r48299

22 years agostmt.c (parse_input_constraint): Break out from ...
Richard Henderson [Mon, 24 Dec 2001 05:57:02 +0000 (21:57 -0800)]
stmt.c (parse_input_constraint): Break out from ...

        * stmt.c (parse_input_constraint): Break out from ...
        (expand_asm_operands): ... here.  Loop over the operands twice,
        the first time only calling mark_addressable.  Correct and simplify
        the conditions for spilling an output operand to memory.

From-SVN: r48298

22 years ago* config/alpha/alpha.c (call_operand) [OSF]: Disallow virtual regs.
Richard Henderson [Mon, 24 Dec 2001 04:00:51 +0000 (20:00 -0800)]
* config/alpha/alpha.c (call_operand) [OSF]: Disallow virtual regs.

From-SVN: r48297

22 years ago* gcc.c-torture/execute/20011219-1.c (main): Make "i" a long.
Richard Henderson [Mon, 24 Dec 2001 03:37:08 +0000 (19:37 -0800)]
* gcc.c-torture/execute/20011219-1.c (main): Make "i" a long.

From-SVN: r48296

22 years agoalpha.md (UNSPEC_SIBCALL): New.
Richard Henderson [Mon, 24 Dec 2001 03:08:23 +0000 (19:08 -0800)]
alpha.md (UNSPEC_SIBCALL): New.

        * config/alpha/alpha.md (UNSPEC_SIBCALL): New.
        (sibcall, sibcall_value, sibcall_osf_1_er, sibcall_osf_1): Use it.
        (sibcall_value_osf_1_er, sibcall_value_osf_1): Likewise.

From-SVN: r48295

22 years agoutils.c (end_subprog_body): Push GC context around rest_of_compilation for nested...
Richard Henderson [Mon, 24 Dec 2001 01:47:10 +0000 (17:47 -0800)]
utils.c (end_subprog_body): Push GC context around rest_of_compilation for nested functions.

        * utils.c (end_subprog_body): Push GC context around
        rest_of_compilation for nested functions.

From-SVN: r48294

22 years agoos_defines.h: Do not include <_sys/inttypes.h>.
Jeff Law [Mon, 24 Dec 2001 01:45:29 +0000 (18:45 -0700)]
os_defines.h: Do not include <_sys/inttypes.h>.

        * config/os/hpux/bits/os_defines.h: Do not include <_sys/inttypes.h>.
        Twiddle return types for strtoll and strtoull to avoid using
        intmax_t and uintmax-t.

From-SVN: r48293

22 years agore PR c/2454 (Test Program A0376972.c fails with gcc-20010320, works with gcc-2.95.3)
Joseph Myers [Sun, 23 Dec 2001 23:49:32 +0000 (23:49 +0000)]
re PR c/2454 (Test Program A0376972.c fails with gcc-20010320, works with gcc-2.95.3)

* c-typeck.c (c_start_case): Don't strip conversions from the
controlling expression.  Partially fixes PR c/2454.

testsuite:
* gcc.c-torture/execute/20011223-1.c: New test.

From-SVN: r48292

22 years agoMakefile.in (USER_H): Remove proto.h.
Joseph Myers [Sun, 23 Dec 2001 23:33:14 +0000 (23:33 +0000)]
Makefile.in (USER_H): Remove proto.h.

* Makefile.in (USER_H): Remove proto.h.
* config.gcc (c*-convex-*): Set extra_headers=proto.h.

From-SVN: r48291

22 years agoarc.c (arc_hard_regno_mode_ok): Const-ify.
Kaveh R. Ghazi [Sun, 23 Dec 2001 16:07:16 +0000 (16:07 +0000)]
arc.c (arc_hard_regno_mode_ok): Const-ify.

* arc.c (arc_hard_regno_mode_ok): Const-ify.
* arc.h (arc_hard_regno_mode_ok): Likewise.
* i386.c (x86_64_reg_class_name): Make static.
* m68k.c (regno_reg_class): Const-ify.
* m68k.h (regno_reg_class): Likewise.
* mcore.c (reg_class_from_letter): Likewise.
* mcore.h (reg_class_from_letter): Likewise.
* sh.c (reg_class_from_letter, ashiftrt_insns, shift_insns,
ext_shift_insns, ext_shift_amounts): Likewise.
* sh.h (reg_class_from_letter): Likewise.
* sparc.c (hard_regno_mode_classes, hard_32bit_mode_classes,
hard_64bit_mode_classes): Likewise.
* sparc.h (hard_regno_mode_classes): Likewise.

* gcc.c (modify_target): Make static.
* gengenrtl.c (defs, formats): Likewise.
* reload1.c (elim_table_1, init_elim_table): Const-ify.
* tradcpp.c (directive, directive_table, handle_directive,
skip_if_group, run_directive): Likewise.

cp:
* decl2.c (lang_f_options): Const-ify.

f:
* com.c (ffecom_gfrt_volatile_, ffecom_gfrt_complex_,
ffecom_gfrt_const_, ffecom_gfrt_type_): Const-ify.

java:
* Make-lang.in (keyword.h): Pass -C to gperf to const-ify
the static arrays that are output.
* jvspec.c (jvgenmain_spec): Make static.
* keyword.gperf (struct java_keyword, java_keyword): Const-ify.
* keyword.h: Regenerate.
* lang.c (string_option, process_option_with_no, lang_f_options,
lang_W_options): Const-ify.
* lex.c (java_lex): Likewise.

From-SVN: r48290

22 years ago* 5nosinte.ads: Get definition of "int" from Interfaces.C.
Richard Henderson [Sun, 23 Dec 2001 13:22:17 +0000 (05:22 -0800)]
* 5nosinte.ads: Get definition of "int" from Interfaces.C.

From-SVN: r48288

22 years agocalls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for an invalid result register...
Richard Henderson [Sun, 23 Dec 2001 13:02:18 +0000 (05:02 -0800)]
calls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for an invalid result register...

        * calls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for
        an invalid result register; do end the sequence properly.
        (emit_library_call_value_1): Likewise.

From-SVN: r48287

22 years agognat-style.texi (Declarations and Types): Remove ancient style rule which was mandate...
Florian Weimer [Sun, 23 Dec 2001 11:23:14 +0000 (12:23 +0100)]
gnat-style.texi (Declarations and Types): Remove ancient style rule which was mandated by code generation issues.

* gnat-style.texi (Declarations and Types): Remove ancient style
rule which was mandated by code generation issues.

From-SVN: r48286

22 years agognat-style.texi (header): Add @dircategory, @direntry.
Florian Weimer [Sun, 23 Dec 2001 11:09:54 +0000 (12:09 +0100)]
gnat-style.texi (header): Add @dircategory, @direntry.

* gnat-style.texi (header): Add @dircategory, @direntry.
(title page): Remove date.
(general) Add @./@: where approriate, and two spaces after the
full stop at the end of a sentence.  Use @samp markup when
referring concrete lexical entities (keywords, attribute names
etc.), and @syntax for ARM grammar elements. Use @r for English
text in comments.  Use @emph for emphasis.  Change "if-statements"
etc. to "if statements" (without @samp). Break long lines.  Make
casing of section names consistent.
(Identifiers): Use @samp markup for variable names.
(Comments): Use @samp markup for comment characters. Line-end
comments may follow any Ada code, not just statements.  Fix
misspelling of "Integer" as "integer".
(Loop statements): Do not use variable name "I", use "J".
(Subprogram Declarations): Document alignment.
(Subprogram Bodies, Block statements): Document empty line before
"begin".

From-SVN: r48285

22 years agoDaily bump.
GCC Administrator [Sun, 23 Dec 2001 08:16:09 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48283

22 years agors6000.h (rs6000_builtins): Add vsldoi variants.
Aldy Hernandez [Sun, 23 Dec 2001 06:58:48 +0000 (06:58 +0000)]
rs6000.h (rs6000_builtins): Add vsldoi variants.

        * config/rs6000/rs6000.h (rs6000_builtins): Add vsldoi variants.

        * config/rs6000/rs6000.md ("altivec_vsldoi_*"): Same.

        * config/rs6000/rs6000.c: Clean up some spacing and indentation.
        (altivec_init_builtins): Add tree types for builtins with 4 bit
        literals.
(bdesc_3arg): Add vsldoi variants.

From-SVN: r48282

22 years ago1750a.h (datalbl, jmplbl): Declare array size explicitly.
Kaveh R. Ghazi [Sun, 23 Dec 2001 04:59:13 +0000 (04:59 +0000)]
1750a.h (datalbl, jmplbl): Declare array size explicitly.

* 1750a.h (datalbl, jmplbl): Declare array size explicitly.
* a29k.h (a29k_debug_reg_map): Likewise.
* arc.h (arc_regno_reg_class): Likewise.
* c4x-protos.h (c4x_regclass_map, c4x_caller_save_map): Likewise.
* convex.h (regno_reg_class, reg_class_from_letter): Likewise.
* d30v.h (regno_reg_class, reg_class_from_letter): Likewise.
* i386.h (regclass_map): Likewise.
* m32r.h (m32r_hard_regno_mode_ok, m32r_punct_chars): Likewise.
* mcore.h (regno_reg_class): Likewise.
* mips.h (mips_print_operand_punct, mips_char_to_class):
Likewise.
* ns32k.h (regclass_map): Likewise.
* pj.h (pj_debugreg_renumber_vec): Likewise.
* s390.h (regclass_map): Likewise.
* sh.h (regno_reg_class): Likewise.
* sparc.h (sparc_regno_reg_class): Likewise.

* hard-reg-set.h (reg_class_contents): Likewise.
* machmode.h (class_narrowest_mode): Likewise.

f:
* bld.c (ffebld_arity_op_): Declare array size explicitly.
* bld.h (ffebld_arity_op_): Likewise.

From-SVN: r48281

22 years agoloop.c (scan_loop, [...]): Do not overlook hard registers when computing statistics.
David Edelsohn [Sun, 23 Dec 2001 02:16:02 +0000 (02:16 +0000)]
loop.c (scan_loop, [...]): Do not overlook hard registers when computing statistics.

        * loop.c (scan_loop, move_movables, count_one_set): Do not
        overlook hard registers when computing statistics.

From-SVN: r48280

22 years agocalls.c (ECF_LIBCALL_BLOCK): New constant.
Jan Hubicka [Sun, 23 Dec 2001 00:10:43 +0000 (01:10 +0100)]
calls.c (ECF_LIBCALL_BLOCK): New constant.

* calls.c (ECF_LIBCALL_BLOCK): New constant.
(emit_call_1, initialize_argument_information,
precompute_arguments, expand_call,
emit_library_call_value_1): Use ECF_LIBCALL_BLOCK
instead of ECF_PURE | ECF_CONST. Honnor LCT_CONST/LCT_PURE.

From-SVN: r48279

22 years ago* configure.target (CPULIMITSH): Fix typo in alpha case.
Richard Henderson [Sat, 22 Dec 2001 21:13:44 +0000 (13:13 -0800)]
* configure.target (CPULIMITSH): Fix typo in alpha case.

From-SVN: r48278

22 years agoconfig.gcc (extra_headers): Move settings to math-68881.h and ppc-asm.h to common...
Joseph Myers [Sat, 22 Dec 2001 21:07:33 +0000 (21:07 +0000)]
config.gcc (extra_headers): Move settings to math-68881.h and ppc-asm.h to common code for CPU types.

* config.gcc (extra_headers): Move settings to math-68881.h and
ppc-asm.h to common code for CPU types.  Use math-68881.h on all
m68k targets.
(header_files): Remove unused setting.

From-SVN: r48277

22 years agoelxsi.c: Include "hard-reg-set.h" and/or don't declare `call_used_regs' explicitly.
Kaveh R. Ghazi [Sat, 22 Dec 2001 20:55:04 +0000 (20:55 +0000)]
elxsi.c: Include "hard-reg-set.h" and/or don't declare `call_used_regs' explicitly.

* elxsi.c: Include "hard-reg-set.h" and/or don't declare
`call_used_regs' explicitly.
* i860.c: Likewise.
* m68k.c: Likewise.
* ns32k.c: Likewise.
* pa.c: Likewise.
* vax.c: Likewise.
* we32k.c: Likewise.

From-SVN: r48276

22 years agoi386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
Jan Hubicka [Sat, 22 Dec 2001 19:07:28 +0000 (20:07 +0100)]
i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.

* i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
(TARGET_CPU_DEFAULT_*): Renumber.

From-SVN: r48273

22 years agortl.h (subreg_lsb): Declare.
John Wehle [Sat, 22 Dec 2001 17:23:52 +0000 (17:23 +0000)]
rtl.h (subreg_lsb): Declare.

* rtl.h (subreg_lsb): Declare.
* rtlanal.c (subreg_lsb): Implement.

From-SVN: r48272

22 years agoos_defines.h: Update to avoid #defines for strtoll and strtoull.
Jeff Law [Sat, 22 Dec 2001 16:51:55 +0000 (09:51 -0700)]
os_defines.h: Update to avoid #defines for strtoll and strtoull.

        * config/os/hpux/bits/os_defines.h: Update to avoid #defines
        for strtoll and strtoull.

From-SVN: r48271

22 years ago* cfg.c, cfganal.c, cfgbuild.c: Reformatting and minor cleanups.
Richard Kenner [Sat, 22 Dec 2001 15:51:07 +0000 (15:51 +0000)]
* cfg.c, cfganal.c, cfgbuild.c: Reformatting and minor cleanups.

From-SVN: r48270

22 years ago* predict.c: Reformatting and minor cleanups.
Richard Kenner [Sat, 22 Dec 2001 15:37:09 +0000 (15:37 +0000)]
* predict.c: Reformatting and minor cleanups.

From-SVN: r48269

22 years agoexpr.c (expand_expr, [...]): Handling taking address of SAVE_EXPR.
Richard Kenner [Sat, 22 Dec 2001 15:06:55 +0000 (15:06 +0000)]
expr.c (expand_expr, [...]): Handling taking address of SAVE_EXPR.

* expr.c (expand_expr, case ADDR_EXPR): Handling taking address of
SAVE_EXPR.
* function.c (gen_mem_addressof): Add missing tests for SAVE_EXPR.
(put_addressof_into_stack): Clarify code in setting of used_p.

From-SVN: r48268

22 years agocalls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
Richard Kenner [Sat, 22 Dec 2001 14:46:58 +0000 (14:46 +0000)]
calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.

* calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
(expand_call): Delete from here.
Do pending stack adjustments if ECF_SP_DEPRESSED.

From-SVN: r48267

22 years agodwarf2out.c (save_rtx): Deleted.
Richard Kenner [Sat, 22 Dec 2001 14:31:27 +0000 (14:31 +0000)]
dwarf2out.c (save_rtx): Deleted.

* dwarf2out.c (save_rtx): Deleted.
(mem_loc_descriptor): Do equivalent operation.
(add_const_value_attribute, case CONST): Likewise.
(add_name_and_src_coords_attributes): Likewise.

From-SVN: r48266

22 years agomake.adb (Add_Switch): Make Generic_Position a procedure.
Florian Weimer [Sat, 22 Dec 2001 11:58:51 +0000 (12:58 +0100)]
make.adb (Add_Switch): Make Generic_Position a procedure.

* make.adb (Add_Switch): Make Generic_Position a procedure.  The
function approach did not work well because of a side effect (the
function call could reallocate the table which was being indexed
using its result). Fixes ada/4851.

From-SVN: r48265

22 years agoDaily bump.
GCC Administrator [Sat, 22 Dec 2001 08:16:10 +0000 (08:16 +0000)]
Daily bump.

From-SVN: r48263

22 years ago* config/h8300/h8300.h: Fix comment formatting.
Kazu Hirata [Sat, 22 Dec 2001 02:41:38 +0000 (02:41 +0000)]
* config/h8300/h8300.h: Fix comment formatting.

From-SVN: r48262

22 years agoboehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..
Richard Henderson [Sat, 22 Dec 2001 00:52:30 +0000 (16:52 -0800)]
boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..

        * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..
        (get_boehm_type_descriptor): ... here.  Arrange for the
        TREE_TYPE to get set properly.

From-SVN: r48261

22 years agoos_defines.h: Include <sys/_inttypes.h.
Jeff Law [Sat, 22 Dec 2001 00:42:46 +0000 (17:42 -0700)]
os_defines.h: Include <sys/_inttypes.h.

        * config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h.
        Define strtoll and strtoull.  Provide prototypes for
        __strtoll and __strtoull.  Define _GLIBCPP_USE_LONG_LONG
        unconditionally.

From-SVN: r48260

22 years ago* src/locale-inst.cc: Include <bits/std_cstdlib.h>
Jeff Law [Sat, 22 Dec 2001 00:39:43 +0000 (17:39 -0700)]
* src/locale-inst.cc: Include <bits/std_cstdlib.h>

From-SVN: r48259

22 years ago* configure.target: Fix typo in hpux case.
Jeff Law [Sat, 22 Dec 2001 00:32:47 +0000 (17:32 -0700)]
* configure.target: Fix typo in hpux case.

From-SVN: r48258

22 years agopa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.
Jeff Law [Sat, 22 Dec 2001 00:28:16 +0000 (17:28 -0700)]
pa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.

        * pa.h (CPP_SPEC): If not in ANSI mode, define _INCLUDE_LONGLONG.
        (CPLUSPLUS_CPP_SPEC): Define _INCLUDE_LONGLONG.

From-SVN: r48257

22 years agoObjectInputStream.java (enableResolveObject): Use correct security check.
Tom Tromey [Fri, 21 Dec 2001 22:51:41 +0000 (22:51 +0000)]
ObjectInputStream.java (enableResolveObject): Use correct security check.

* java/io/ObjectInputStream.java (enableResolveObject): Use
correct security check.
* java/io/ObjectOutputStream.java (enableReplaceObject): Use
correct security check.

From-SVN: r48256

22 years agore PR java/5165 (Loading class fields with a ConstantValue attribute)
Tom Tromey [Fri, 21 Dec 2001 21:59:27 +0000 (21:59 +0000)]
re PR java/5165 (Loading class fields with a ConstantValue attribute)

Fix for PR java/5165:
* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass):
Convert any constant string field to a String; not just final
fields.

From-SVN: r48255

22 years ago* system.h (PREFETCH): Explictly undefine.
Robert Lipe [Fri, 21 Dec 2001 20:54:21 +0000 (20:54 +0000)]
* system.h (PREFETCH): Explictly undefine.

From-SVN: r48254

22 years agore PR libgcj/2428 (Classloader is not set)
Tom Tromey [Fri, 21 Dec 2001 19:47:50 +0000 (19:47 +0000)]
re PR libgcj/2428 (Classloader is not set)

Fix for PR libgcj/2428:
* java/lang/natClass.cc: Include RuntimePermission.h.
(getClassLoader): Define.
* java/lang/Class.h (Class.getClassLoader): Only declare.

From-SVN: r48253

22 years agoclass.c (compile_resource_file): Set TREE_PUBLIC on the constructor only if the targe...
Richard Henderson [Fri, 21 Dec 2001 19:44:06 +0000 (11:44 -0800)]
class.c (compile_resource_file): Set TREE_PUBLIC on the constructor only if the target requires collect2.

        * class.c (compile_resource_file): Set TREE_PUBLIC on the constructor
        only if the target requires collect2.

From-SVN: r48252

22 years ago* class.c (build_class_ref): Mark _Jv_fooClass DECL_EXTERNAL.
Richard Henderson [Fri, 21 Dec 2001 19:26:08 +0000 (11:26 -0800)]
* class.c (build_class_ref): Mark _Jv_fooClass DECL_EXTERNAL.

From-SVN: r48251

22 years agoreverted erroneous checking -- sorry about that
Tom Tromey [Fri, 21 Dec 2001 19:18:52 +0000 (19:18 +0000)]
reverted erroneous checking -- sorry about that

From-SVN: r48250

22 years agoFor PR java/4509:
Tom Tromey [Fri, 21 Dec 2001 19:15:36 +0000 (19:15 +0000)]
For PR java/4509:

* parse.y (java_complete_lhs) [COMPOUND_EXPR]: Correctly compute
CAN_COMPLETE_NORMALLY for the node.
* jcf-write.c (generate_bytecode_insns) [COMPOUND_EXPR]: Don't
generate code for second branch if first branch can't complete
normally.
(generate_bytecode_insns) [LOOP_EXPR]: Don't generate `goto' to
the loop head if the loop body can't complete normally.

From-SVN: r48249

22 years agowtr-aggr-init-1.c: Test that __extension__ disables then re-enables the warning.
Richard Henderson [Fri, 21 Dec 2001 19:14:46 +0000 (11:14 -0800)]
wtr-aggr-init-1.c: Test that __extension__ disables then re-enables the warning.

        * gcc.dg/wtr-aggr-init-1.c: Test that __extension__ disables then
        re-enables the warning.

From-SVN: r48248

22 years agoc-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
Richard Henderson [Fri, 21 Dec 2001 18:31:11 +0000 (10:31 -0800)]
c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.

        * c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
        (RESTORE_WARN_FLAGS): Restore it.
        (extension): Zero warn_traditional.

From-SVN: r48247

22 years ago* g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo.
Richard Henderson [Fri, 21 Dec 2001 18:03:25 +0000 (10:03 -0800)]
* g++.old-deja/g++.eh/badalloc1.C (malloc): Fix typo.

From-SVN: r48246

22 years ago* doc/passes.texi: Fix a typo.
Kazu Hirata [Fri, 21 Dec 2001 16:19:14 +0000 (16:19 +0000)]
* doc/passes.texi: Fix a typo.

From-SVN: r48245

22 years ago* config/h8300/h8300.h: Fix a comment typo.
Kazu Hirata [Fri, 21 Dec 2001 16:15:38 +0000 (16:15 +0000)]
* config/h8300/h8300.h: Fix a comment typo.

From-SVN: r48244

22 years agostl_rope.h (_Rope_iterator): Add local typedef to fix implicit typename problems.
Paolo Carlini [Fri, 21 Dec 2001 13:08:35 +0000 (14:08 +0100)]
stl_rope.h (_Rope_iterator): Add local typedef to fix implicit typename problems.

2001-12-21  Paolo Carlini  <pcarlini@unitus.it>

* include/ext/stl_rope.h (_Rope_iterator):
Add local typedef to fix implicit typename problems.

From-SVN: r48242

22 years agoAdd missing URL for message that prompted this new test
Nick Clifton [Fri, 21 Dec 2001 11:46:01 +0000 (11:46 +0000)]
Add missing URL for message that prompted this new test

From-SVN: r48241

22 years ago* gcc.c-torture/compile/20011218-1.c: New test.
Jakub Jelinek [Fri, 21 Dec 2001 11:30:47 +0000 (12:30 +0100)]
* gcc.c-torture/compile/20011218-1.c: New test.

From-SVN: r48240

22 years agocombine.c (nonzero_bits): If using reg_nonzero_bits, we don't know anything about...
Jakub Jelinek [Fri, 21 Dec 2001 11:07:59 +0000 (12:07 +0100)]
combine.c (nonzero_bits): If using reg_nonzero_bits, we don't know anything about bits outside of X mode.

* combine.c (nonzero_bits): If using reg_nonzero_bits,
we don't know anything about bits outside of X mode.
(num_sign_bit_copies): Likewise.

From-SVN: r48239

22 years agodarwin.c (machopic_classify_ident): Handle "stale" section- encoded name problem...
Turly O'Connor [Fri, 21 Dec 2001 10:44:50 +0000 (10:44 +0000)]
darwin.c (machopic_classify_ident): Handle "stale" section- encoded name problem to avoid generating illegal stubs.

* darwin.c (machopic_classify_ident): Handle "stale" section-
encoded name problem to avoid generating illegal stubs.
(func_name_maybe_scoped): Remove, not needed for gcc3.
(machopic_indirect_call_target): Don't use it.
(darwin_encode_section_info): Call only one of update_stubs()
or update_non_lazy_ptrs() as DECL cannot be both.
(machopic_output_possible_stub_label): New.
* darwin.h (ASM_DECLARE_FUNCTION_NAME): Use it.
* darwin-protos.h (machopic_output_possible_stub_label): Declare.

From-SVN: r48238

22 years agoUse 'a' operand code for prefetch instruction.
Nick Clifton [Fri, 21 Dec 2001 09:31:37 +0000 (09:31 +0000)]
Use 'a' operand code for prefetch instruction.

From-SVN: r48237