gcc.git
22 years agoMakefile.am: Add Linux for S/390 support.
Gerhard Tonn [Mon, 29 Apr 2002 04:14:44 +0000 (04:14 +0000)]
Makefile.am: Add Linux for S/390 support.

2002-04-29  Gerhard Tonn  <GerhardTonn@swol.de>

* Makefile.am: Add Linux for S/390 support.
* Makefile.in: Regenerate.
* configure.in: Add Linux for S/390 support.
* configure: Regenerate.
* include/ffi.h.in: Add Linux for S/390 support.
* src/s390/ffi.c: New file from libffi CVS tree.
* src/s390/sysv.S: New file from libffi CVS tree.

From-SVN: r52873

22 years agore PR target/6494 (sparc64-linux libjava testsuite failures)
David S. Miller [Mon, 29 Apr 2002 04:12:02 +0000 (21:12 -0700)]
re PR target/6494 (sparc64-linux libjava testsuite failures)

2002-04-27  David S. Miller  <davem@redhat.com>

PR target/6494
* config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
of the stack bias.

* config/sparc/linux.h, config/sparc/linux64.h: Don't bother
including signal.h and sys/ucontext.h, not needed.

From-SVN: r52872

22 years agovarasm.c (output_constant_def): Correct test for not calling ENCODE_SECTION_INFO...
Hans-Peter Nilsson [Mon, 29 Apr 2002 03:57:30 +0000 (03:57 +0000)]
varasm.c (output_constant_def): Correct test for not calling ENCODE_SECTION_INFO for INTEGER_CST.

* varasm.c (output_constant_def): Correct test for not calling
ENCODE_SECTION_INFO for INTEGER_CST.

From-SVN: r52870

22 years agonatFileDescriptorWin32.cc (open): Move file pointer to end of file in APPEND mode.
Adam King [Mon, 29 Apr 2002 03:54:50 +0000 (03:54 +0000)]
natFileDescriptorWin32.cc (open): Move file pointer to end of file in APPEND mode.

2002-04-29  Adam King <aking@dreammechanics.com>

* java/io/natFileDescriptorWin32.cc (open): Move file pointer to end
of file in APPEND mode.

From-SVN: r52869

22 years agocppexp.c (lex): Move some code to _cpp_parse_expr, but keep most cases as function...
Neil Booth [Sun, 28 Apr 2002 23:14:56 +0000 (23:14 +0000)]
cppexp.c (lex): Move some code to _cpp_parse_expr, but keep most cases as function eval_token.

* cppexp.c (lex): Move some code to _cpp_parse_expr, but
keep most cases as function eval_token.
(eval_token): New function.
(_cpp_parse_expr): Read token here for improved diagnostics.
Don't use op_as_text.  Detect bad ':' here.
(reduce): Don't detect bad ':' here.
(op_as_text): Remove.
* cpphash.h (_cpp_test_assertion): Change prototype.
* cpplib.c (_cpp_test_assertion): Change prototype.
testsuite:
* gcc.dg/cpp/if-cexp.c: Add a test.

From-SVN: r52866

22 years agoggc-common.c (ggc_mark_rtx_children_1): Rename from...
Richard Henderson [Sun, 28 Apr 2002 20:40:39 +0000 (13:40 -0700)]
ggc-common.c (ggc_mark_rtx_children_1): Rename from...

        * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
        (ggc_mark_rtx_children): New.

From-SVN: r52864

22 years agore PR target/6496 (Sparc backend clobbers call-return stack of UltraSparc)
Jakub Jelinek [Sun, 28 Apr 2002 20:37:05 +0000 (22:37 +0200)]
re PR target/6496 (Sparc backend clobbers call-return stack of UltraSparc)

PR target/6496
* config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
after call peepholes for UltraSPARC.
(call + jump 64-bit peepholes): Remove.

From-SVN: r52863

22 years agore PR c/6497 (unrecognizable insn:l inux-2.4.19 pre7 kernel comling with gcc-3...
Franz Sirl [Sun, 28 Apr 2002 20:26:57 +0000 (20:26 +0000)]
re PR c/6497 (unrecognizable insn:l  inux-2.4.19 pre7 kernel comling  with gcc-3.1 prerelease)

2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR c/6497
* config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
result as temporary value.

From-SVN: r52860

22 years agoconfigure.in (HAVE_AS_SPARC_UA_PCREL): Check for working %r_disp32().
Jakub Jelinek [Sun, 28 Apr 2002 19:57:42 +0000 (21:57 +0200)]
configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working %r_disp32().

* configure.in (HAVE_AS_SPARC_UA_PCREL): Check for working
%r_disp32().
* src/sparc/v8.S: Use it.
* src/sparc/v9.S: Likewise.
* fficonfig.h.in: Rebuilt.
* configure: Rebuilt.

From-SVN: r52858

22 years agore PR c++/6396 (3.1 flow.c 583 ICE with -frename-registers)
Jakub Jelinek [Sun, 28 Apr 2002 19:52:33 +0000 (21:52 +0200)]
re PR c++/6396 (3.1 flow.c 583 ICE with -frename-registers)

PR c++/6396
* toplev.c (rest_of_compilation): Only run regrename and copy
propagation if optimizing.

From-SVN: r52857

22 years agoArgh, lost closing brace.
Jakub Jelinek [Sun, 28 Apr 2002 19:48:10 +0000 (21:48 +0200)]
Argh, lost closing brace.

From-SVN: r52856

22 years agore PR rtl-optimization/6475 (zlib miscompilation with gcc-3.1)
Jakub Jelinek [Sun, 28 Apr 2002 19:47:12 +0000 (21:47 +0200)]
re PR rtl-optimization/6475 (zlib miscompilation with gcc-3.1)

PR optimization/6475
* reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
register of REGNO_DECL (i).
* Makefile.in (reload1.o): Add $(TREE_H).

* gcc.dg/20020426-2.c: New test.

From-SVN: r52855

22 years agocppexp.c (lex): Update to use state.skip_eval.
Neil Booth [Sun, 28 Apr 2002 19:42:54 +0000 (19:42 +0000)]
cppexp.c (lex): Update to use state.skip_eval.

* cppexp.c (lex): Update to use state.skip_eval.
(struct op): Remove prio and flags members.
(FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
(LEFT_ASSOC): New macro.
(optab): New table of operator priorities and flags.
(SHIFT): Update.
(_cpp_parse_expr): Clean up logic.  Return bool.  Use a
malloc-ed parser stack.
(reduce): New; reduce the operator stack.
(_cpp_expand_op_stack): Expand the operator stack as necessary.
* cpphash.h (struct op): Predeclare.
(struct cpp_reader): New members op_stack, op_limit.
(struct lexer_state): New member skip_eval.
(_cpp_parse_expr): Update.
(_cpp_expand_op_stack): New.
* cpplib.c (do_if): Update.
* cppinit.c (cpp_create_reader): Create op stack.
(cpp_destroy): And destroy it.
* cpplib.h (CPP_LAST_CPP_OP): Correct.
(TTYPE_TABLE): Correct.
testsuite:
* gcc.dg/cpp/if-mop.c: Update.
* gcc.dg/cpp/if-mpar.c: Add test.
* gcc.dg/cpp/if-oppr.c: Update.

From-SVN: r52853

22 years ago* .cvsignore: Remove files that are present in CVS.
Mark Mitchell [Sun, 28 Apr 2002 18:41:51 +0000 (18:41 +0000)]
* .cvsignore: Remove files that are present in CVS.

From-SVN: r52845

22 years agore PR c/6343 (attribute((weak)) not working on second declaration)
Franz Sirl [Sun, 28 Apr 2002 18:31:34 +0000 (18:31 +0000)]
re PR c/6343 (attribute((weak)) not working on second declaration)

2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR c/6343
* c-decl.c (duplicate_decls): Call merge_weak.
* c-pragma.c (apply_pragma_weak): Warn about misuse.
* output.h (merge_weak): Prototype merge_weak.
* varasm.c (merge_weak): New function.
(declare_weak): Make sure we don't give an error on VAR_DECLs.
Mark RTL with SYMBOL_REF_WEAK.

cp:
* decl.c (duplicate_decls): Call merge_weak.

testsuite:
* gcc.dg/weak-[2-7].c: New tests.

From-SVN: r52844

22 years ago[multiple changes]
Paolo Carlini [Sun, 28 Apr 2002 16:21:32 +0000 (16:21 +0000)]
[multiple changes]

2002-04-28  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

* include/ext/stl_hashtable.h: Import __iterator_category

2002-04-28  Paolo Carlini  <pcarlini@unitus.it>
            Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

* testsuite/ext/hash_set.cc: New testfile.

From-SVN: r52843

22 years agoDaily bump.
GCC Administrator [Sun, 28 Apr 2002 07:17:18 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r52842

22 years agoos_defines.h: Remove _G_USING_THUNKS.
Benjamin Kosnik [Sun, 28 Apr 2002 00:42:12 +0000 (00:42 +0000)]
os_defines.h: Remove _G_USING_THUNKS.

2002-04-27  Benjamin Kosnik  <bkoz@redhat.com>

* config/os/solaris/solaris2.5/bits/os_defines.h: Remove
_G_USING_THUNKS.
* config/os/solaris/solaris2.6/bits/os_defines.h: Same.
* config/os/solaris/solaris2.7/bits/os_defines.h: Same.

From-SVN: r52838

22 years agoFor PR java/6382:
Tom Tromey [Sat, 27 Apr 2002 20:31:42 +0000 (20:31 +0000)]
For PR java/6382:

* parse.y (string_convert_int_cst): New function.
(merge_string_cste): Use it.

From-SVN: r52835

22 years agotree-inline.c (inlinable_function_p): Improve heuristics by using a smoother function...
Kurt Garloff [Sat, 27 Apr 2002 18:59:40 +0000 (11:59 -0700)]
tree-inline.c (inlinable_function_p): Improve heuristics by using a smoother function to cut down allowable inlinable...

        * tree-inline.c (inlinable_function_p): Improve heuristics
        by using a smoother function to cut down allowable inlinable size.
        * param.def: Add parameters max-inline-insns-single,
        max-inline-slope, min-inline-insns that determine the exact
        shape of the above function.
        * param.h: Likewise.

From-SVN: r52832

22 years agoDaily bump.
GCC Administrator [Sat, 27 Apr 2002 07:17:23 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r52831

22 years agoc-parse.in (malloced_yyss, [...]): New.
Richard Henderson [Sat, 27 Apr 2002 06:53:07 +0000 (23:53 -0700)]
c-parse.in (malloced_yyss, [...]): New.

        * c-parse.in (malloced_yyss, malloced_yyvs): New.
        (yyoverflow): Re-add.  Set them.
        (free_parser_stacks): New.
        * c-common.h: Declare it.
        * c-lex.c (c_common_parse_file): Call it.

        * parse.y (malloced_yyss, malloced_yyvs): New.
        (yyoverflow): Re-add.  Set them.
        (free_parser_stacks): New.

From-SVN: r52827

22 years agocfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn for fallthru search.
Richard Henderson [Sat, 27 Apr 2002 06:41:38 +0000 (23:41 -0700)]
cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn for fallthru search.

        * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
        for fallthru search.

From-SVN: r52826

22 years agore PR rtl-optimization/3700 (ISSUE_RATE not defined for mips target)
Eric Christopher [Sat, 27 Apr 2002 02:33:37 +0000 (02:33 +0000)]
re PR rtl-optimization/3700 (ISSUE_RATE not defined for mips target)

2002-04-26  Eric Christopher  <echristo@redhat.com>

PR optimization/3700
* config/mips/mips.c (mips_issue_rate): Define.  New function.
(TARGET_SCHED_ISSUE_RATE): Use.

From-SVN: r52825

22 years agore PR bootstrap/6445 (ICE bootstrapping objc for i386-rtems)
Mark Mitchell [Sat, 27 Apr 2002 00:26:36 +0000 (00:26 +0000)]
re PR bootstrap/6445 (ICE bootstrapping objc for i386-rtems)

PR bootstrap/6445
* config/i386/i386.md (untyped_call): Return the value in a float
register if TARGET_FLOAT_RETURNS_IN_80387, not just if
TARGET_80387.

From-SVN: r52824

22 years agore PR target/6422 (libjava failures on sparc-linux)
David S. Miller [Sat, 27 Apr 2002 00:07:16 +0000 (17:07 -0700)]
re PR target/6422 (libjava failures on sparc-linux)

2002-04-25  David S. Miller  <davem@redhat.com>

PR target/6422
* reorg.c (optimize_skip): Do not allow exception causing
instructions to be considered for delay slots.
(fill_simply_delay_slots, fill_slots_from_thread): Likewise.
(relax_delay_slots): Do not try to consider exception causing
instructions as redundant.

From-SVN: r52822

22 years agore PR target/6422 (libjava failures on sparc-linux)
David S. Miller [Sat, 27 Apr 2002 00:04:14 +0000 (17:04 -0700)]
re PR target/6422 (libjava failures on sparc-linux)

2002-04-25  David S. Miller  <davem@redhat.com>

PR target/6422
* include/dwarf2-signal.h (MAKE_THROW_FRAME for sparc*): Set
program counter to next program counter minus 8.  Update
comments in this macro to explain why.

From-SVN: r52820

22 years ago* gcc.dg/enum1.c: New test.
Alexandre Oliva [Fri, 26 Apr 2002 23:44:46 +0000 (23:44 +0000)]
* gcc.dg/enum1.c: New test.

From-SVN: r52815

22 years agoverify.cc (construct_primitive_array_type): New case.
Tom Tromey [Fri, 26 Apr 2002 22:39:29 +0000 (22:39 +0000)]
verify.cc (construct_primitive_array_type): New case.

* verify.cc (construct_primitive_array_type) [void_type]: New
case.
(branch_prepass): Added dummy entries for unused instruction
values.
(verify_instructions_0): Likewise.
* interpret.cc (continue1): Comment fix.
* include/java-insns.h (op_xxxunusedxxx1): Removed.
* Makefile.in: Rebuilt.
* Makefile.am: Added -Wswitch-enum.

From-SVN: r52814

22 years agoconfigure.in (h8300*-*-rtems*): Disable libf2c and libgcj.
Joel Sherrill [Fri, 26 Apr 2002 22:30:19 +0000 (22:30 +0000)]
configure.in (h8300*-*-rtems*): Disable libf2c and libgcj.

2002-04-26 Joel Sherrill <joel@OARcorp.com>

* configure.in (h8300*-*-rtems*): Disable libf2c and libgcj.
(sparc-*-elf*, sparc64-*-elf*): Disable libgcj.

From-SVN: r52813

22 years agoc-typeck.c (build_unary_op): Invoke non_lvalue.
Richard Henderson [Fri, 26 Apr 2002 21:56:55 +0000 (14:56 -0700)]
c-typeck.c (build_unary_op): Invoke non_lvalue.

        * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
* gcc.dg/lvalue1.c: New.

From-SVN: r52812

22 years agore PR bootstrap/6445 (ICE bootstrapping objc for i386-rtems)
Mark Mitchell [Fri, 26 Apr 2002 21:28:47 +0000 (21:28 +0000)]
re PR bootstrap/6445 (ICE bootstrapping objc for i386-rtems)

PR bootstrap/6445
* config/i386/i386.md (untyped_call): Return the value in a float
register if TARGET_FLOAT_RETURNS_IN_80387, not just if
TARGET_80387.

PR c++/6497
* method.c (do_build_assign_ref): Pass a derivation to
build_method_call when calling base class assignment operators.

PR c++/6497
* g++.dg/inherit/access2.C: New test.

PR bootstrap/6445
* gcc.dg/20020426-1.c: New test.

From-SVN: r52809

22 years ago* g++.dg/abi/enum1.C: New test.
Alexandre Oliva [Fri, 26 Apr 2002 20:09:56 +0000 (20:09 +0000)]
* g++.dg/abi/enum1.C: New test.

From-SVN: r52804

22 years agotree.c (tree_int_cst_lt): Compare constants whose types differ in unsigned-ness corre...
Alexandre Oliva [Fri, 26 Apr 2002 19:35:33 +0000 (19:35 +0000)]
tree.c (tree_int_cst_lt): Compare constants whose types differ in unsigned-ness correctly.

* tree.c (tree_int_cst_lt): Compare constants whose types differ
in unsigned-ness correctly.

From-SVN: r52802

22 years agopa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the portable runtime...
John David Anglin [Fri, 26 Apr 2002 18:58:16 +0000 (18:58 +0000)]
pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the portable runtime model.

* pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
portable runtime model.

From-SVN: r52800

22 years agobasic_string.h (replace(__pos, __n1, __s, __n2): Fix and tighten __throw_length_error...
Paolo Carlini [Fri, 26 Apr 2002 18:21:32 +0000 (20:21 +0200)]
basic_string.h (replace(__pos, __n1, __s, __n2): Fix and tighten __throw_length_error check.

2002-04-26  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/basic_string.h (replace(__pos, __n1, __s, __n2):
Fix and tighten __throw_length_error check.
* testsuite/21_strings/replace.cc (test05): New.
* testsuite/21_strings/replace.cc (test02, test03, test04): Tweak.

From-SVN: r52797

22 years agoc-parse.in (yyoverflow): Revert.
Richard Henderson [Fri, 26 Apr 2002 17:04:37 +0000 (10:04 -0700)]
c-parse.in (yyoverflow): Revert.

        * c-parse.in (yyoverflow): Revert.
        * parse.y (yyoverflow): Revert.

From-SVN: r52794

22 years agors6000.md (sCC pattern): Remove clobber and use result as temporary value.
David Edelsohn [Fri, 26 Apr 2002 15:23:26 +0000 (15:23 +0000)]
rs6000.md (sCC pattern): Remove clobber and use result as temporary value.

        * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
        result as temporary value.

Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r52793

22 years agoc-common.c (fix_string_type): Split out of ...
Richard Henderson [Fri, 26 Apr 2002 07:40:12 +0000 (00:40 -0700)]
c-common.c (fix_string_type): Split out of ...

        * c-common.c (fix_string_type): Split out of ...
        (combine_strings): ... here.  Take a varray, not a tree list.
        (c_expand_builtin_printf): Use fix_string_type.
        * c-common.h: Update decls.
        * c-parse.in (string): Remove.  Update all uses to use STRING
        instead, and not call combine_strings.
        (yylexstring): New.
        (_yylex): Use it.
        * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
        (build_asm_stmt): Likewise.
        * objc/objc-act.c (my_build_string): Use fix_string_type.
        (build_objc_string_object): Build varray for combine_strings.

        * parse.y (string): Remove.  Update all uses to use STRING
        instead, and not call combine_strings.
        * rtti.c (tinfo_name): Use fix_string_type.
        * semantics.c (finish_asm_stmt): Don't call combine_strings.
        * spew.c (yylexstring): New.
        (read_token): Use it.

* g++.dg/parse/concat1.C: New.
* gcc.dg/concat2.c: New.

From-SVN: r52790

22 years ago* gcc.dg/c99-bool-1.c: Expect always true warning.
Richard Henderson [Fri, 26 Apr 2002 07:24:39 +0000 (00:24 -0700)]
* gcc.dg/c99-bool-1.c: Expect always true warning.

From-SVN: r52787

22 years agoDaily bump.
GCC Administrator [Fri, 26 Apr 2002 07:17:49 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r52786

22 years agolinux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for x86-64.
Bo Thorsen [Fri, 26 Apr 2002 07:05:56 +0000 (07:05 +0000)]
linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for x86-64.

2002-04-26  Bo Thorsen  <bo@suse.co.uk>

* config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
x86-64.

From-SVN: r52781

22 years agocppexp.c (CPP_UMINUS, CPP_UPLUS): New.
Neil Booth [Fri, 26 Apr 2002 06:32:50 +0000 (06:32 +0000)]
cppexp.c (CPP_UMINUS, CPP_UPLUS): New.

* cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
(HAVE_NO_R_OPERAND): Remove.
(HAVE_VALUE): Remove.
(op_to_prio): Update.
(UNARY): Don't alter flags.
(_cpp_parse_expr): want_value used to indicate whether
a number or unary operator is expected next.  Distinguish
unary and binary +/-.
(op_as_text): Update for unary operators.

From-SVN: r52780

22 years agoc-parse.in (yyoverflow): New.
Richard Henderson [Fri, 26 Apr 2002 05:35:13 +0000 (22:35 -0700)]
c-parse.in (yyoverflow): New.

* c-parse.in (yyoverflow): New.
* cp/parse.y (yyoverflow): New.
* g++.dg/parse/stack1.C: New.
* gcc.dg/20020425-1.c: New.

From-SVN: r52779

22 years agore PR c/2098 (compare with unsigned variable - no error reporting)
Richard Henderson [Fri, 26 Apr 2002 02:15:52 +0000 (19:15 -0700)]
re PR c/2098 (compare with unsigned variable - no error reporting)

        PR c/2098
        * c-common.c (shorten_compare): Simplfy conditions leading to
        the generation of a warning.

* gcc.dg/compare6.c: New.

From-SVN: r52778

22 years agore PR c/2035 (ICE in extract_bit_field, at expmed.c:1115)
Richard Henderson [Fri, 26 Apr 2002 02:09:21 +0000 (19:09 -0700)]
re PR c/2035 (ICE in extract_bit_field, at expmed.c:1115)

        PR c/2035
        * expmed.c (extract_bit_field): Fall through to generic code rather
        than aborting on subreg special case.

From-SVN: r52777

22 years agosparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check for DECL being NULL.
David S. Miller [Fri, 26 Apr 2002 02:05:08 +0000 (19:05 -0700)]
sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check for DECL being NULL.

2002-04-25  David S. Miller  <davem@redhat.com>

* config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
for DECL being NULL.

From-SVN: r52776

22 years agomd.texi (Machine Constraints): Add IA-64 constraints.
Steve Christiansen [Fri, 26 Apr 2002 00:24:41 +0000 (00:24 +0000)]
md.texi (Machine Constraints): Add IA-64 constraints.

2002-04-25  Steve Christiansen  <smc@us.ibm.com>
* doc/md.texi (Machine Constraints): Add IA-64 constraints.

From-SVN: r52774

22 years agoc-decl.c (grokdeclarator): Remove outdated ??? note on invalid declaration of flexibl...
Eric Botcazou [Fri, 26 Apr 2002 00:22:23 +0000 (00:22 +0000)]
c-decl.c (grokdeclarator): Remove outdated ??? note on invalid declaration of flexible array members.

        * c-decl.c (grokdeclarator): Remove outdated ??? note
        on invalid declaration of flexible array members.

From-SVN: r52772

22 years ago* gcc.dg/i386-memset-1.c: New test case for PR target/6456.
Roger Sayle [Fri, 26 Apr 2002 00:09:43 +0000 (00:09 +0000)]
* gcc.dg/i386-memset-1.c: New test case for PR target/6456.

From-SVN: r52771

22 years ago* doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
Richard Henderson [Thu, 25 Apr 2002 22:31:31 +0000 (15:31 -0700)]
* doc/invoke.texi: Document -gdwarf{,-2} vs debug level.

From-SVN: r52769

22 years agos390.c (s390_emit_epilogue): Always restore registers needed by the compiler...
Ulrich Weigand [Thu, 25 Apr 2002 21:26:04 +0000 (21:26 +0000)]
s390.c (s390_emit_epilogue): Always restore registers needed by the compiler...

* config/s390/s390.c (s390_emit_epilogue): Always restore registers
needed by the compiler, even if they are used as global regs.

From-SVN: r52768

22 years agomips.c (mips_class_max_nregs, [...]): New functions.
Matt Hiller [Thu, 25 Apr 2002 19:31:45 +0000 (19:31 +0000)]
mips.c (mips_class_max_nregs, [...]): New functions.

2002-04-24  Matt Hiller  <hiller@redhat.com>

* mips.c (mips_class_max_nregs, mips_register_move_cost): New
functions.
* mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
of the corresponding functions.
* mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
New prototypes.

2002-04-24  Matt Hiller  <hiller@redhat.com>

* config/mips/mips.h (mips_sw_reg_names): Declare as extern.

(ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
(FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
registers, adjust comment accordingly.
(FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
for coprocessor registers.
(ADDITIONAL_REGISTER_NAMES): Include
ALL_COP_ADDITIONAL_REGISTER_NAMES.

(COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.

(mips_char_to_class): Adjust comment to include coprocessor
constraint letters.

* config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
New functions.
(mips_reg_names, mips_regno_to_class): Include coprocessor
information.
(mips_sw_reg_names): Ditto, make non-static.
(mips_move_1word): Handle moves to and from coprocessor registers.
(mips_move_2words): Handle moves to and from coprocessor
registers.
(mips_class_max_nregs, mips_register_move_cost): Handle
coprocessor register classes.
(override_options): Initialize mips_char_to_class and
mips_hard_regno_mode_ok properly for coprocessor registers.

* config/mips/mips.md (movdi_internal, movdi_internal2,
movsi_internal1, movsi_internal2): Add constraint-sets for
coprocessor registers.
* testsuite/gcc.c-torture/mipscop-1.c: New testcase.
* testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
isn't mips.
* testsuite/gcc.c-torture/mipscop-2.c: New testcase.
* testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
isn't mips.
* testsuite/gcc.c-torture/mipscop-3.c: New testcase.
* testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
isn't mips.
* testsuite/gcc.c-torture/mipscop-4.c: New testcase.
* testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
isn't mips.

* doc/tm.texi: Document feature.

From-SVN: r52765

22 years agointegrate.c (function_attribute_inlinable_p): Simplify.
Neil Booth [Thu, 25 Apr 2002 18:55:48 +0000 (18:55 +0000)]
integrate.c (function_attribute_inlinable_p): Simplify.

* integrate.c (function_attribute_inlinable_p): Simplify.
Check the table pointer is not NULL.

From-SVN: r52763

22 years ago20020227-1.x: New file, xfail on 64-bit targets.
Kaveh R. Ghazi [Thu, 25 Apr 2002 18:49:02 +0000 (18:49 +0000)]
20020227-1.x: New file, xfail on 64-bit targets.

* gcc.c-torture/execute/20020227-1.x: New file, xfail on 64-bit
targets.

From-SVN: r52762

22 years agore PR c++/5607 (No pointer adjustment in covariant return types)
Jason Merrill [Thu, 25 Apr 2002 18:04:50 +0000 (14:04 -0400)]
re PR c++/5607 (No pointer adjustment in covariant return types)

        PR c++/5607
        * search.c (check_final_overrider): No longer static.
        * class.c (update_vtable_entry_for_fn): Call it.
        * cp-tree.h: Adjust.

From-SVN: r52760

22 years ago* doc/c-tree.texi: Fix typo in introduction.
Steven Bosscher [Thu, 25 Apr 2002 09:30:11 +0000 (09:30 +0000)]
* doc/c-tree.texi: Fix typo in introduction.

From-SVN: r52758

22 years agoDaily bump.
GCC Administrator [Thu, 25 Apr 2002 07:17:29 +0000 (07:17 +0000)]
Daily bump.

From-SVN: r52757

22 years agoc-common.h (c_common_parse_file): Update.
Neil Booth [Thu, 25 Apr 2002 06:24:41 +0000 (06:24 +0000)]
c-common.h (c_common_parse_file): Update.

* c-common.h (c_common_parse_file): Update.
* c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
* c-lex.c (YYDEBUG): Get from c-lex.h.
(c_common_parse_file): Update.
* c-lex.h (YYDEBUG, yydebug): New.
* c-parse.in (YYDEBUG): Get from c-lex.h.
(c_set_yydebug): Remove.
* c-tree.h (c_set_yydebug): Remove.
* langhooks-def.h (lhd_do_nothing_i): New.
(lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
(LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
* langhooks.c  (lhd_do_nothing_i): New.
(lhd_set_yydebug): Remove.
* langhooks.h (struct lang_hooks): Update.
* toplev.c (set_yydebug): New.
(compile_file): Update call to parse_file hook.
(decode_d_option): Update.
ada:
* misc.c (gnat_parse_file): Update.
cp:
* cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
* cp-tree.h (cxx_set_yydebug): Die.
* lex.c (YYDEBUG): Get from c-lex.h.
(cxx_set_yydebug): Remove.
* parse.y: Include c-lex.h.
(YYDEBUG): Get from c-lex.h.
f:
* com.h (ffe_parse_file): Update.
* lex.c (ffe_parse_file): Update.
java:
* java-tree.h (java_parse_file): Update.
(java_set_yydebug): Remove.
* jcf-parse.c (yydebug): Remove.
(java_set_yydebug): Die.
(java_parse_file): Update.
* lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
objc:
* objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.

From-SVN: r52753

22 years agoFor PR java/6425:
Tom Tromey [Thu, 25 Apr 2002 01:09:47 +0000 (01:09 +0000)]
For PR java/6425:

* parse.y (qualify_ambiguous_name) [case CALL_EXPR]: Always choose
EXPR_WFL_QUALIFICATION of qual_wfl.

From-SVN: r52751

22 years agomangle.c (write_type): Don't use TYPE_MAIN_VARIANT when writing out an array type.
Mark Mitchell [Thu, 25 Apr 2002 01:05:25 +0000 (01:05 +0000)]
mangle.c (write_type): Don't use TYPE_MAIN_VARIANT when writing out an array type.

* mangle.c (write_type): Don't use TYPE_MAIN_VARIANT when writing
out an array type.
(write_CV_qualifiers_for_type): Use TYPE_QUALS, not cp_type_quals,
to determine qualifiers.

From-SVN: r52749

22 years agotypeck.c (build_modify_expr): The pedwarn for array assignment is now unconditional.
Jason Merrill [Thu, 25 Apr 2002 00:13:45 +0000 (20:13 -0400)]
typeck.c (build_modify_expr): The pedwarn for array assignment is now unconditional.

        * typeck.c (build_modify_expr): The pedwarn for array assignment is
        now unconditional.
        * tree.c (build_cplus_array_type_1): Still process simple array types
        normally in templates.

From-SVN: r52746

22 years agoloop.c (load_mems): Don't change the interface of called functions.
J"orn Rennecke [Wed, 24 Apr 2002 23:52:16 +0000 (23:52 +0000)]
loop.c (load_mems): Don't change the interface of called functions.

* loop.c (load_mems): Don't change the interface of called functions.

* calls.c (expand_call): Take current_function_pretend_args_size
into account when setting argblock for sibcalls.

From-SVN: r52745

22 years agonatCore.cc (create): Use __builtin_alloca, and compute correct length of UTF-8 encode...
Tom Tromey [Wed, 24 Apr 2002 23:05:17 +0000 (23:05 +0000)]
natCore.cc (create): Use __builtin_alloca, and compute correct length of UTF-8 encoded name.

* gnu/gcj/natCore.cc (create): Use __builtin_alloca, and compute
correct length of UTF-8 encoded name.  Strip leading `/'.
(_Jv_RegisterResource): Use _Jv_Malloc.

From-SVN: r52744

22 years agocvt.c (convert_to_void): Don't unconditionally make COND_EXPRs void.
Mark Mitchell [Wed, 24 Apr 2002 22:46:40 +0000 (22:46 +0000)]
cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs void.

* cvt.c (convert_to_void): Don't unconditionally make COND_EXPRs
void.

From-SVN: r52742

22 years agocpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
Matthew Hiller [Wed, 24 Apr 2002 22:27:37 +0000 (22:27 +0000)]
cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.

2002-04-24  Matt Hiller  <hiller@redhat.com>

* cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
* c-lex.c: Ditto.

* cpplex.c (skip_line_comment): Process comment one multibyte
character at a time rather than one char at a time, if
appropriate.
(parse_string): Process string one multibyte character at a time
rather than one char at a time, if appropriate.
* c-lex.c (lex_string): Lex and copy multibyte strings
appropriately.
* cpplib.h (cppchar_t): Change to unsigned.

From-SVN: r52740

22 years agocpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
Matthew Hiller [Wed, 24 Apr 2002 22:27:19 +0000 (22:27 +0000)]
cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.

2002-04-24  Matt Hiller  <hiller@redhat.com>

* cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
* c-lex.c: Ditto.

* cpplex.c (skip_line_comment): Process comment one multibyte
character at a time rather than one char at a time, if
appropriate.
(parse_string): Process string one multibyte character at a time
rather than one char at a time, if appropriate.
* c-lex.c (lex_string): Lex and copy multibyte strings
appropriately.
* cpplib.h (cppchar_t): Change to unsigned.

From-SVN: r52739

22 years agoc-decl.c (grokdeclarator): Don't pedwarn variable sized arrays for c99.
Richard Henderson [Wed, 24 Apr 2002 22:26:10 +0000 (15:26 -0700)]
c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays for c99.

        * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
        for c99.

* gcc.dg/c90-vla-1.c, gcc.dg/c99-vla-1.c: New.

From-SVN: r52738

22 years agocpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
Matthew Hiller [Wed, 24 Apr 2002 22:18:25 +0000 (22:18 +0000)]
cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.

2002-04-24  Matt Hiller  <hiller@redhat.com>

* cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
* c-lex.c: Ditto.

* cpplex.c (skip_line_comment): Process comment one multibyte
character at a time rather than one char at a time, if
appropriate.
(parse_string): Process string one multibyte character at a time
rather than one char at a time, if appropriate.
* c-lex.c (lex_string): Lex and copy multibyte strings
appropriately.
* cpplib.h (cppchar_t): Change to unsigned.

From-SVN: r52737

22 years agoexpr.c (PRE_JSR): Call NOTE_LABEL for return address.
Per Bothner [Wed, 24 Apr 2002 22:14:59 +0000 (15:14 -0700)]
expr.c (PRE_JSR): Call NOTE_LABEL for return address.

* expr.c (PRE_JSR):  Call NOTE_LABEL for return address.
* java-tree.h (BCODE_RETURN_TARGET):  Removed - never set.
(BCODE_TARGET):  Remove BCODE_RETURN_TARGET.

From-SVN: r52735

22 years agosh.c (sh_va_arg): If argument was passed by reference, dereference the pointer.
J"orn Rennecke [Wed, 24 Apr 2002 22:12:32 +0000 (22:12 +0000)]
sh.c (sh_va_arg): If argument was passed by reference, dereference the pointer.

* sh.c (sh_va_arg): If argument was passed by reference,
dereference the pointer.

From-SVN: r52734

22 years agosh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
J"orn Rennecke [Wed, 24 Apr 2002 21:47:44 +0000 (21:47 +0000)]
sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.

        * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.

testsuite:

        * gcc.dg/20020312-2.c: Add SH target.

From-SVN: r52733

22 years agosh.md (divsi3_i4_media): Use match_operand for input values rather than hard registers.
J"orn Rennecke [Wed, 24 Apr 2002 21:35:43 +0000 (21:35 +0000)]
sh.md (divsi3_i4_media): Use match_operand for input values rather than hard registers.

* sh.md (divsi3_i4_media): Use match_operand for input values
rather than hard registers.
(divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
unnecessarily through hard registers.  Keep copies of pseudo
registers outside of the libcall sequence.

* sh.md (casesi_shift_media): Add modes.

From-SVN: r52732

22 years agosh.h (RETURN_IN_MEMORY): Return variable size BLKmode values in memory.
J"orn Rennecke [Wed, 24 Apr 2002 21:26:17 +0000 (21:26 +0000)]
sh.h (RETURN_IN_MEMORY): Return variable size BLKmode values in memory.

* sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
values in memory.

From-SVN: r52731

22 years agoattribs.c (c_common_attribute_table): Move table and handlers to c-common.c.
Neil Booth [Wed, 24 Apr 2002 20:41:04 +0000 (20:41 +0000)]
attribs.c (c_common_attribute_table): Move table and handlers to c-common.c.

* attribs.c (c_common_attribute_table): Move table and handlers
to c-common.c.
(format_attribute_table, lang_attribute_table,
lang_attribute_common): Remove.
(init_attributes): Replace NULL pointers with pointers to the
empty table.
(handle_packed_attribute, handle_nocommon_attribute,
handle_common_attribute, handle_noreturn_attribute,
handle_noinline_attribute, handle_always_inline_attribute,
handle_used_attribute, handle_unused_attribute,
handle_const_attribute, handle_transparent_union_attribute,
handle_constructor_attribute, handle_destructor_attribute,
handle_mode_attribute, handle_section_attribute,
handle_aligned_attribute, handle_weak_attribute,
handle_alias_attribute, handle_visibility_attribute,
handle_no_instrument_function_attribute, handle_malloc_attribute,
handle_no_limit_stack_attribute, handle_pure_attribute,
handle_deprecated_attribute, handle_vector_size_attribute,
vector_size_helper): Move to c-common.c.
* c-common.c (c_common_attribute_table,
handle_packed_attribute, handle_nocommon_attribute,
handle_common_attribute, handle_noreturn_attribute,
handle_noinline_attribute, handle_always_inline_attribute,
handle_used_attribute, handle_unused_attribute,
handle_const_attribute, handle_transparent_union_attribute,
handle_constructor_attribute, handle_destructor_attribute,
handle_mode_attribute, handle_section_attribute,
handle_aligned_attribute, handle_weak_attribute,
handle_alias_attribute, handle_visibility_attribute,
handle_no_instrument_function_attribute, handle_malloc_attribute,
handle_no_limit_stack_attribute, handle_pure_attribute,
handle_deprecated_attribute, handle_vector_size_attribute,
vector_size_helper): Move from attribs.c.
* c-common.h (c_common_attribute_table,
c_common_format_attribute_table): New.
* c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
* langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.h (struct lang_hooks): 3 new attribute hooks.
* target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
* target.h: Update comment.
* tree.c (default_target_attribute_table): Remove.
* tree.h (default_target_attribute_table, format_attribute_table,
lang_attribute_table, lang_attribute_common): Remove.
ada:
* misc.c (gnat_init): Don't set lang_attribute_common.
cp:
* cp-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE):
Redefine.
* cp-tree.h (cp_attribute_table): Rename.
* decl.c (lang_attribute_table): Remove declaration.
(cxx_init_decl_processing): Don't set it.
* tree.c (cp_attribute_table): Rename.
objc:
* objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.

From-SVN: r52730

22 years agolabels-3.x: New file, don't assemble the compiler output on mips*-*-irix*.
Kaveh R. Ghazi [Wed, 24 Apr 2002 19:04:23 +0000 (19:04 +0000)]
labels-3.x: New file, don't assemble the compiler output on mips*-*-irix*.

* gcc.c-torture/compile/labels-3.x: New file, don't assemble the
compiler output on mips*-*-irix*.

From-SVN: r52726

22 years agodwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
Jason Merrill [Wed, 24 Apr 2002 18:49:51 +0000 (14:49 -0400)]
dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.

        * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
        * dwarf2out.c (dwarf_attr_name): Support it.
        (gen_array_type_die): Emit it.
        (lookup_type_die): No special handling for VECTOR_TYPE.
        (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.

From-SVN: r52724

22 years ago* config/mips/mips.md (movdi_usd): Renumber.
Richard Henderson [Wed, 24 Apr 2002 17:44:39 +0000 (10:44 -0700)]
* config/mips/mips.md (movdi_usd): Renumber.

From-SVN: r52723

22 years agore PR target/6420 (libstdc++ failures on sparc-linux-gnu)
David S. Miller [Wed, 24 Apr 2002 16:58:12 +0000 (09:58 -0700)]
re PR target/6420 (libstdc++ failures on sparc-linux-gnu)

2002-04-24  David S. Miller  <davem@redhat.com>

PR target/6420
* config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
32-bit Sparc and current_function_returns_struct is true.

From-SVN: r52720

22 years ago* loop.c (canonicalize_condition): Use gen_int_mode.
Jan Hubicka [Wed, 24 Apr 2002 14:24:55 +0000 (16:24 +0200)]
* loop.c (canonicalize_condition): Use gen_int_mode.

From-SVN: r52715

22 years agoaltivec.h: Cleanup file.
Aldy Hernandez [Wed, 24 Apr 2002 10:57:33 +0000 (10:57 +0000)]
altivec.h: Cleanup file.

2002-04-24  Aldy Hernandez  <aldyh@redhat.com>

* config/rs6000/altivec.h: Cleanup file.  Add non individual
variants.
(vec_vaddubm): New.
(vec_vadduhm): New.
(vec_vadduwm): New.
(vec_vaddfp): New.
(vec_vaddcuw): New.
(vec_vaddubs): New.
(vec_vaddsbs): New.
(vec_vadduhs): New.
(vec_vadduws): New.
(vec_vaddsws): New.
(vec_vand): New.
(vec_vandc): New.
(vec_vavgub): New.
(vec_vavgsb): New.
(vec_vavguh): New.
(vec_vavgsh): New.
(vec_vavguw): New.
(vec_vavgsw): New.
(vec_vrfip): New.
(vec_vcmpbfp): New.
(vec_vcmpequb): New.
(vec_vcmpequh): New.
(vec_vcmpequw): New.
(vec_vcmpeqfp): New.
(vec_vcmpgefp): New.
(vec_vcmpgtub): New.
(vec_vcmpgtsb): New.
(vec_vcmpgtuh): New.
(vec_vcmpgtsh): New.
(vec_vcmpgtuw): New.
(vec_vcmpgtsw): New.
(vec_vcmpgtfp): New.
(vec_vcmpgefp): New.
(vec_vcfux): New.
(vec_vcfsx): New.
(vec_vctsxs): New.
(vec_vctuxs): New.
(vec_vexptefp): New.
(vec_vrfim): New.
(vec_lvx): New.
(vec_lvebx): New.
(vec_lvehx): New.
(vec_lde): Add vector float variant.
(vec_lvewx): New.
(vec_lvxl): New.
(vec_vlogefp): New.
(vec_vmaddfp): New.
(vec_vmhaddshs): New.
(vec_vmaxub): New.
(vec_vmaxsb): New.
(vec_vmaxuh): New.
(vec_vmaxsh): New.
(vec_vmaxuw): New.
(vec_vmaxsw): New.
(vec_vmaxsw): New.
(vec_vmaxfp): New.
(vec_vmrghb): New.
(vec_vmrghh): New.
(vec_vmrghw): New.
(vec_vmrglb): New.
(vec_vmrglh): New.
(vec_vmrglw): New.
(vec_vminub): New.
(vec_vminsb): New.
(vec_vminuh): New.
(vec_vminsh): New.
(vec_vminuw): New.
(vec_vminsw): New.
(vec_vminfp): New.
(vec_vmladduhm): New.
(vec_vmhraddshs): New.
(vec_msumubm): New.
(vec_vmsummbm): New.
(vec_vmsumuhm): New.
(vec_vmsumshm): New.
(vec_vmsumuhs): New.
(vec_vmsumshs): New.
(vec_vmuleub): New.
(vec_vmulesb): New.
(vec_vmuleuh): New.
(vec_vmulesh): New.
(vec_vmuloub): New.
(vec_mulosb): New.
(vec_vmulouh): New.
(vec_vmulosh): New.
(vec_vnmsubfp): New.
(vec_vnor): New.
(vec_vor): New.
(vec_vpkuhum): New.
(vec_vpkuwum): New.
(vec_vpkpx): New.
(vec_vpkuhus): New.
(vec_vpkshss): New.
(vec_vpkuwus): New.
(vec_vpkswss): New.
(vec_vpkshus): New.
(vec_vpkswus): New.
(vec_vperm): New.
(vec_vrefp): New.
(vec_vrlb): New.
(vec_vrlh): New.
(vec_vrlw): New.
(vec_vrfin): New.
(vec_vrsqrtefp): New.
(vec_vsel): New.
(vec_vslb): New.
(vec_vslh): New.
(vec_vslw): New.
(vec_vsldoi): New.
(vec_vsl): New.
(vec_vslo): New.
(vec_vspltb): New.
(vec_vsplth): New.
(vec_vspltw): New.
(vec_vspltisb): New.
(vec_vspltish): New.
(vec_vspltisw): New.
(vec_vsrb): New.
(vec_vsrh): New.
(vec_vsrw): New.
(vec_vsrab): New.
(vec_vsrah): New.
(vec_vsraw): New.
(vec_vsr): New.
(vec_vsro): New.
(vec_stvx): New.
(vec_stvebx): New.
(vec_stvehx): New.
(vec_stvewx): New.
(vec_stvxl): New.
(vec_vsububm): New.
(vec_vsubuhm): New.
(vec_vsubuwm): New.
(vec_vsubfp): New.
(vec_vsubcuw): New.
(vec_vsububs): New.
(vec_vsubsbs): New.
(vec_vsubuhs): New.
(vec_vsubshs): New.
(vec_vsubuws): New.
(vec_vsubsws): New.
(vec_vsum4ubs): New.
(vec_vsum4sbs): New.
(vec_vsum4shs): New.
(vec_vsum2sws): New.
(vec_vsumsws): New.
(vec_vrfiz): New.
(vec_vupkhsb): New.
(vec_vupkhpx): New.
(vec_vupkhsh): New.
(vec_vupklsb): New.
(vec_vupklpx): New.
(vec_vupklsh): New.
(vec_vxor): New.

From-SVN: r52711

22 years agore PR c++/6331 (g++ 3.1 looses const qualifiers)
Jason Merrill [Wed, 24 Apr 2002 10:48:44 +0000 (06:48 -0400)]
re PR c++/6331 (g++ 3.1 looses const qualifiers)

        PR c++/6331
        * method.c (do_build_copy_constructor): Use cp_build_qualified_type.
        * typeck.c (build_modify_expr): Allow arrays to differ in cv-quals.

From-SVN: r52709

22 years agoDaily bump.
GCC Administrator [Wed, 24 Apr 2002 07:19:36 +0000 (07:19 +0000)]
Daily bump.

From-SVN: r52708

22 years agoFix typos for 2002-03-08 entry.
Per Bothner [Wed, 24 Apr 2002 05:11:31 +0000 (22:11 -0700)]
Fix typos for 2002-03-08 entry.

From-SVN: r52703

22 years agowin32.cc, win32.cc (backtrace): Added this function because Win32 does not supply it.
Adam Megacz [Wed, 24 Apr 2002 01:33:19 +0000 (01:33 +0000)]
win32.cc, win32.cc (backtrace): Added this function because Win32 does not supply it.

2002-04-23  Adam Megacz <adam@xwt.org>

        * win32.cc, include/win32.cc (backtrace): Added this function
        because Win32 does not supply it.

From-SVN: r52701

22 years agostd_fstream.h (basic_filebuf::sync): Hoist unconditional flush on lower-layer handle...
Loren J. Rittle [Wed, 24 Apr 2002 00:33:28 +0000 (00:33 +0000)]
std_fstream.h (basic_filebuf::sync): Hoist unconditional flush on lower-layer handle to here...

* include/std/std_fstream.h (basic_filebuf::sync): Hoist
unconditional flush on lower-layer handle to here...
* include/bits/fstream.tcc (basic_filebuf::_M_really_overflow):
...from here.  Optimize remaining _M_file.sync() call pattern.
* testsuite/27_io/narrow_stream_objects.cc (test04): New test.
(test05): Likewise.

From-SVN: r52699

22 years agore PR c++/6395 (gcc-3_1-branch regression for g++.old-deja/g++.jason/synth5.C)
Jason Merrill [Tue, 23 Apr 2002 23:51:30 +0000 (19:51 -0400)]
re PR c++/6395 (gcc-3_1-branch regression for g++.old-deja/g++.jason/synth5.C)

        PR c++/6395
        * decl.c (make_rtl_for_nonlocal_decl): Don't mess with #pragma i/i
        stuff for comdats.

From-SVN: r52696

22 years agofold-const.c (split_tree): Add MINUS_LITP parameter; separate added literals from...
Eric Botcazou [Tue, 23 Apr 2002 23:31:07 +0000 (16:31 -0700)]
fold-const.c (split_tree): Add MINUS_LITP parameter; separate added literals from substracted literals.

        * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
        added literals from substracted literals.
        (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
        (fold) [associate]: Preserve MINUS_EXPR if needed.

* gcc.c-torture/execute/20020423-1.c: New.

From-SVN: r52695

22 years agoinstall.texi: Clarify which versions of alpha*-dec-osf* are obsoleted.
Zack Weinberg [Tue, 23 Apr 2002 23:12:44 +0000 (23:12 +0000)]
install.texi: Clarify which versions of alpha*-dec-osf* are obsoleted.

* doc/install.texi: Clarify which versions of alpha*-dec-osf*
are obsoleted.

From-SVN: r52691

22 years agoFor PR java/6314:
Tom Tromey [Tue, 23 Apr 2002 22:58:09 +0000 (22:58 +0000)]
For PR java/6314:

* jvspec.c (lang_specific_driver): Use --resource, not -R.  Also
recognize `-fcompile-resource='.
* gcj.texi (Invoking gcj): Use --resource, not -R.  Expanded text
a bit.

From-SVN: r52690

22 years ago* gcc.c: Added --resource. For PR java/6314.
Tom Tromey [Tue, 23 Apr 2002 22:57:16 +0000 (22:57 +0000)]
* gcc.c: Added --resource.  For PR java/6314.

From-SVN: r52689

22 years agofstream.tcc (basic_filebuf::seekoff): Fix for output-only filebufs.
Jason Merrill [Tue, 23 Apr 2002 21:56:10 +0000 (17:56 -0400)]
fstream.tcc (basic_filebuf::seekoff): Fix for output-only filebufs.

        * include/bits/fstream.tcc (basic_filebuf::seekoff): Fix for
        output-only filebufs.
        * include/std/std_fstream.h (basic_filebuf::_M_set_indeterminate):
        Likewise.
        (basic_filebuf::_M_set_determinate): Likewise.

From-SVN: r52685

22 years agore PR libstdc++/6414 (g++ 3.1 tellg() regression within last week)
Jason Merrill [Tue, 23 Apr 2002 21:01:22 +0000 (17:01 -0400)]
re PR libstdc++/6414 (g++ 3.1 tellg() regression within last week)

        PR libstdc++/6414
        * include/bits/fstream.tcc (basic_filebuf::seekoff): Adjust return
        value properly in the trivial case.
        * testsuite/27_io/istream_seeks.cc (test04): Make sure that
        tellg() returns the right value after a read.

From-SVN: r52679

22 years agoparse.y (check_class_key): Allow KEY to be union/enum/struct/class node with attributes.
Jakub Jelinek [Tue, 23 Apr 2002 20:59:05 +0000 (22:59 +0200)]
parse.y (check_class_key): Allow KEY to be union/enum/struct/class node with attributes.

* parse.y (check_class_key): Allow KEY to be union/enum/struct/class
node with attributes.

* g++.dg/parse/attr1.C: New test.

From-SVN: r52678

22 years agocpu_limits.h: New file.
Hans-Peter Nilsson [Tue, 23 Apr 2002 17:46:24 +0000 (17:46 +0000)]
cpu_limits.h: New file.

* config/cpu/mmix/bits/cpu_limits.h: New file.
* configure.target (CPULIMITSH): Use it.

From-SVN: r52674

22 years agoTweak my last entry.
David O'Brien [Tue, 23 Apr 2002 16:39:34 +0000 (16:39 +0000)]
Tweak my last entry.

From-SVN: r52672

22 years agog++spec.c: Use profiled libstdc++ and libm with -p/-pg.
David O'Brien [Tue, 23 Apr 2002 16:39:03 +0000 (16:39 +0000)]
g++spec.c: Use profiled libstdc++ and libm with -p/-pg.

2002-04-23  David O'Brien  <obrien@FreeBSD.org>
* cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
* config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
these libraries.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020422223253.A32678@redhat.com>

From-SVN: r52671

22 years agog++spec.c: Use profiled libstdc++ and libm with -p/-pg.
David O'Brien [Tue, 23 Apr 2002 15:05:33 +0000 (15:05 +0000)]
g++spec.c: Use profiled libstdc++ and libm with -p/-pg.

2002-04-23  David O'Brien  <obrien@FreeBSD.org>
* g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
* config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
these libraries.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020422223253.A32678@redhat.com>

From-SVN: r52667

22 years agofreebsd.h (OBJECT_FORMAT_ELF): Define.
David O'Brien [Tue, 23 Apr 2002 14:57:55 +0000 (14:57 +0000)]
freebsd.h (OBJECT_FORMAT_ELF): Define.

2002-04-23  David O'Brien  <obrien@FreeBSD.org>
* config/freebsd.h(OBJECT_FORMAT_ELF): Define.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20020422223325.B32678@redhat.com>

From-SVN: r52666

22 years agoRegenerate gcc.pot
Philipp Thomas [Tue, 23 Apr 2002 13:29:03 +0000 (13:29 +0000)]
Regenerate gcc.pot

From-SVN: r52665