gcc.git
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

22 years agoi386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug workaround.
Jan Hubicka [Tue, 23 Apr 2002 12:29:43 +0000 (14:29 +0200)]
i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug workaround.

* i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
workaround.
(ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
(ix86_expand_clrstr): Fix typo.
* loop.c (gen_load_of_final_value): New.
(loop_givs_rescan, strength_reduce, check_dbra_loop):
Use it.

From-SVN: r52664

22 years agobuiltins.c (builtin_memset_gen_str): New function.
Roger Sayle [Tue, 23 Apr 2002 10:17:37 +0000 (10:17 +0000)]
builtins.c (builtin_memset_gen_str): New function.

2002-04-23  Roger Sayle  <roger@eyesopen.com>

* builtins.c (builtin_memset_gen_str): New function.
(expand_builtin_memset): Optimize the case of constant length, but
unknown value.
testsuite:
* gcc.c-torture/execute/string-opt-17.c: New test case.
* gcc.c-torture/execute/memset-2.c: New test case.

From-SVN: r52662

22 years agore PR c++/6256 (Seg fault for template friends in namespaces, regression from 2.95)
Mark Mitchell [Tue, 23 Apr 2002 08:37:23 +0000 (08:37 +0000)]
re PR c++/6256 (Seg fault for template friends in namespaces, regression from 2.95)

PR c++/6256:
* pt.c (tsubst_friend_class): Handle templates with explicit
nested names.

PR c++/6331:
* typeck.c (merge_types): Remember the cv-qualification of pointer
types when merging them.

PR c++/6256:
* g++.dg/template/friend5.C: New test.

PR c++/6331:
* g++.dg/template/qual1.C: Likewise.

From-SVN: r52661

22 years agoaltivec.h (vec_step): Remove extraneous parentheses.
Aldy Hernandez [Tue, 23 Apr 2002 07:32:08 +0000 (07:32 +0000)]
altivec.h (vec_step): Remove extraneous parentheses.

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

        * config/rs6000/altivec.h (vec_step): Remove extraneous
        parentheses.
        (vec_ctu): Cast return.

From-SVN: r52657

22 years agore PR target/6413 (PROFILE_HOOK label_no)
Alan Modra [Tue, 23 Apr 2002 07:20:55 +0000 (07:20 +0000)]
re PR target/6413 (PROFILE_HOOK label_no)

PR target/6413
* function.h: (struct function): Add profile_label_no field.
(current_function_profile_label_no): Define.
* function.c: (profile_label_no): New static var.
(expand_function_start): Increment it, and copy to
current_function_profile_label_no.
* output.h (profile_label_no): Delete.
* final.c (profile_label_no): Delete.
(profile_function): Use current_function_profile_label_no.
(final_end_function): Don't increment profile_label_no here.
* config/i386/i386.c (ix86_osf_output_function_prologue): Replace
profile_label_no with current_function_profile_label_no.
* config/pa/pa.c (current_function_number): Delete.
(pa_output_function_prologue): Don't output profile label here.
(hppa_profile_hook): Use label_no param rather than
current_function_number.
(FUNC_BEGIN_PROLOG_LABEL): Move to ..
* config/pa/pa.h: .. here.
(FUNCTION_PROFILER): Output profile label here.

From-SVN: r52656

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

From-SVN: r52655

22 years agoMakefile.am (toolexeclib_LTLIBRARIES): Remove.
Jeff Sturm [Tue, 23 Apr 2002 03:37:27 +0000 (03:37 +0000)]
Makefile.am (toolexeclib_LTLIBRARIES): Remove.

* Makefile.am (toolexeclib_LTLIBRARIES): Remove.
(noinst_LTLIBRARIES): Add libgcjgc.la.

* Makefile.in: Rebuild.

From-SVN: r52651

22 years agomips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert patch of 2002-04-09 due to binutils...
Eric Christopher [Tue, 23 Apr 2002 02:06:02 +0000 (02:06 +0000)]
mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert patch of 2002-04-09 due to binutils issues.

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

* config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
patch of 2002-04-09 due to binutils issues.
(FUNCTION_ARG_REGNO_P): Ensure even numbered float register.

From-SVN: r52649

22 years agoencoding.c (MAX, [...]): #undef before defining.
David O'Brien [Tue, 23 Apr 2002 02:04:20 +0000 (02:04 +0000)]
encoding.c (MAX, [...]): #undef before defining.

2002-04-19  David O'Brien  <obrien@FreeBSD.org>
* encoding.c (MAX, MIN, ROUNDING): #undef before defining.

Approved by:  David S. Miller <davem@redhat.com>
              Message-Id: <20020419.184825.67430590.davem@redhat.com>

From-SVN: r52648

22 years agors6000.md ("*movv4si_internal"): Change 'm' constraint to 'o' for m=r and r=m alterna...
Aldy Hernandez [Tue, 23 Apr 2002 00:19:14 +0000 (00:19 +0000)]
rs6000.md ("*movv4si_internal"): Change 'm' constraint to 'o' for m=r and r=m alternatives.

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

        * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
        constraint to 'o' for m=r and r=m alternatives.
        ("*movv8hi_internal1"): Same.
        ("*movv16qi_internal1"): Same.
        ("*movv4sf_internal1"): Same.

From-SVN: r52646

22 years agortl.h (RTX_FLAG): New macro.
Janis Johnson [Mon, 22 Apr 2002 23:22:33 +0000 (23:22 +0000)]
rtl.h (RTX_FLAG): New macro.

* rtl.h (RTX_FLAG): New macro.
* emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
* final.c (alter_subreg): Use macro to access rtx flag.
* integrate.c (copy_rtx_and_substitute): Use new access macro.
* print-rtl.c (print_rtx): Use new access macro.

* cse.c (insert): Check rtx code before accessing flag.

* genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
(attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
convert_const_symbol_ref, make_canonical, make_alternative_compare,
evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
simplify_test_exp, optimize_attrs, simplify_by_exploding,
find_and_mark_used_attributes, unmark_used_attributes,
add_values_to_cover, simplify_with_current_value,
simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
copy_rtx_unchanging, main): Use new access macros.

From-SVN: r52645

22 years agoGenerate constant for shift once.
Tom Rix [Mon, 22 Apr 2002 23:20:12 +0000 (23:20 +0000)]
Generate constant for shift once.

From-SVN: r52644

22 years ago* docs/html/17_intro/porting.html: Rebuilt.
Loren J. Rittle [Mon, 22 Apr 2002 22:50:40 +0000 (22:50 +0000)]
* docs/html/17_intro/porting.html: Rebuilt.

From-SVN: r52643

22 years ago* docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.
Loren J. Rittle [Mon, 22 Apr 2002 22:46:34 +0000 (22:46 +0000)]
* docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.

From-SVN: r52642

22 years agore PR c/6300 (sparc-sun-solaris2.7 gcc-3.1 C testsuite failure in gcc.dg/cpp/charconst.c)
Zack Weinberg [Mon, 22 Apr 2002 22:25:14 +0000 (22:25 +0000)]
re PR c/6300 (sparc-sun-solaris2.7 gcc-3.1 C testsuite failure in gcc.dg/cpp/charconst.c)

* c-lex.c (lex_charconst): Call convert to get constant in
proper type; don't just smash the type field.
Fixes PR c/6300.

* config.gcc: Add list of obsolete configurations.  Disallow
building these without --enable-obsolete.
* doc/install.texi: Document --enable-obsolete and obsoletion
policy.  Mention obsoletion of individual targets in
appropriate places.

From-SVN: r52639

22 years agore PR java/2791 (Bogus "class `foo' already defined ..." error from jc1)
Alexandre Petit-Bianco [Mon, 22 Apr 2002 20:34:19 +0000 (13:34 -0700)]
re PR java/2791 (Bogus "class `foo' already defined ..." error from jc1)

* jcf-parse.c: (yyparse): Don't prepend "./" to relative
paths. Fixes PR java/2791.

From-SVN: r52636

22 years agore PR libstdc++/4150 (catastrophic performance decrease in C++ code)
Jason Merrill [Mon, 22 Apr 2002 20:28:05 +0000 (16:28 -0400)]
re PR libstdc++/4150 (catastrophic performance decrease in C++ code)

        PR libstdc++/4150
        * include/std/std_streambuf.h (basic_streambuf::_M_set_indeterminate):
        Move to filebuf.
        (basic_streambuf::_M_set_determinate): Likewise.
        (basic_streambuf::_M_is_indeterminate): Likewise.
        * include/bits/std_fstream.h (basic_filebuf::_M_filepos): New
        non-static data member.
        (basic_filebuf::_M_underflow_common): New non-static member function.
        (basic_filebuf::_M_underflow, _M_uflow): Call it.
        (basic_filebuf::sync): Avoid useless seeking.
        (basic_filebuf::_M_set_indeterminate): Move here from streambuf.
        Set _M_filepos.
        (basic_filebuf::_M_set_determinate): Likewise.
        (basic_filebuf::_M_is_indeterminate): Likewise.
        * include/bits/fstream.tcc (basic_filebuf::_M_really_overflow): Seek
        back to _M_out_beg if necessary.
        (basic_filebuf::seekoff): Likewise.
        (basic_filebuf::_M_underflow_common): Generalization of old
        underflow().  Don't seek back to _M_in_beg.
        * src/ios.cc: Lose _GLIBCPP_AVOID_FSEEK stuff.
        * config/os/solaris/solaris2.?/bits/os_defines.h: Likewise.
        * config/os/bsd/freebsd/bits/os_defines.h: Likewise.
        * config/os/mingw32/bits/os_defines.h: Likewise.
        * testsuite/27_io/filebuf_virtuals.cc (test05): Don't overspecify
        ungetc test.

From-SVN: r52634

22 years ago* config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
Richard Henderson [Mon, 22 Apr 2002 19:54:50 +0000 (12:54 -0700)]
* config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.

From-SVN: r52633

22 years agore PR fortran/6138 (Incorrect access of integer*1 variables on PA)
Mark Mitchell [Mon, 22 Apr 2002 19:26:19 +0000 (19:26 +0000)]
re PR fortran/6138 (Incorrect access of integer*1 variables on PA)

PR f/6138.
* function.c (fixup_memory_subreg): Add promoted_mode parameter.
(walk_fixup_memory_subreg): Likewise.
(fixup_var_refs_insn): Adjust accordingly.
(fixup_var_refs_1): Likewise.

From-SVN: r52631

22 years agoistream.tcc (istream::read): Fix.
Benjamin Kosnik [Mon, 22 Apr 2002 19:10:02 +0000 (19:10 +0000)]
istream.tcc (istream::read): Fix.

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

* include/bits/istream.tcc (istream::read): Fix.
* testsuite/27_io/istream_unformatted.cc (main): Add.

From-SVN: r52628

22 years agolinux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC, LIBPATH_ARCH64_SPEC): Define.
Ulrich Weigand [Mon, 22 Apr 2002 18:41:07 +0000 (18:41 +0000)]
linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC, LIBPATH_ARCH64_SPEC): Define.

* config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
LIBPATH_ARCH64_SPEC): Define.
(EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
(STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
(LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
(LINK_ARCH64_SPEC): Add libpath_arch64 to search path.

From-SVN: r52627

22 years agogthr-rtems.h: Correct prototypes to remove warnings.
Joel Sherrill [Mon, 22 Apr 2002 18:26:01 +0000 (18:26 +0000)]
gthr-rtems.h: Correct prototypes to remove warnings.

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

* gthr-rtems.h: Correct prototypes to remove warnings.

From-SVN: r52626

22 years agoalias.c (canon_true_dependence): Special case (mem:blk (scratch)).
Richard Henderson [Mon, 22 Apr 2002 18:17:06 +0000 (11:17 -0700)]
alias.c (canon_true_dependence): Special case (mem:blk (scratch)).

        * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).

        * gcse.c (free_insn_expr_list_list): New.
        (clear_modify_mem_tables): Use it.  Fix bit set usage.
        (canon_list_insert): Use EXPR_LISTs for expressions.
        (record_last_mem_set_info): Factor BLOCK_NUM (insn).

From-SVN: r52624

22 years agocppfiles.c (_cpp_pop_file_buffer): Return void.
Neil Booth [Mon, 22 Apr 2002 17:48:02 +0000 (17:48 +0000)]
cppfiles.c (_cpp_pop_file_buffer): Return void.

* cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
file change and include code to _cpp_pop_buffer.
* cpphash.h (struct pending_option): Predeclare.
(struct cpp_reader): New member next_include_file.
(_cpp_pop_file_buffer): Update.
(_cpp_push_next_buffer): Update, rename.
* cppinit.c (cpp_destroy): Free include chain and pending here.
(cpp_finish_options): Simplify.
(_cpp_push_next_buffer): Rename and clean up.
* cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
Clarify.
* cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.

From-SVN: r52621

22 years ago980707-1.c: Don't use isspace().
Zack Weinberg [Mon, 22 Apr 2002 17:40:50 +0000 (17:40 +0000)]
980707-1.c: Don't use isspace().

* gcc.c-torture/execute/980707-1.c: Don't use isspace().
Include stdlib.h, not stdio.h or ctype.h.

From-SVN: r52619

22 years agojcf-write.c (push_long_const): lo, hi: New variables.
Andrew Haley [Mon, 22 Apr 2002 16:55:39 +0000 (16:55 +0000)]
jcf-write.c (push_long_const): lo, hi: New variables.

2002-04-19  Andrew Haley  <aph@redhat.com>

        * jcf-write.c (push_long_const): lo, hi: New variables.
        Use rshift_double to extract the high part of a 64-bit long.
        Use WORD_TO_INT to extract the low part.

        * jcf-parse.c (get_constant): CONSTANT_Integer: Use an unsigned
        HOST_WIDE_INT for num.  Use JPOOL_UINT to get it.
        CONSTANT_Double: Use JPOOL_UINT to get both halve of a double.

From-SVN: r52618

22 years ago* gcc_release (build_diffs): Remove reference to Chill.
Mark Mitchell [Mon, 22 Apr 2002 16:00:13 +0000 (16:00 +0000)]
* gcc_release (build_diffs): Remove reference to Chill.

From-SVN: r52614

22 years agoUpdate turkish catalog
Philipp Thomas [Mon, 22 Apr 2002 14:16:46 +0000 (14:16 +0000)]
Update turkish catalog

From-SVN: r52612

22 years agodwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document magic instruction reading sequence.
David S. Miller [Mon, 22 Apr 2002 08:13:32 +0000 (01:13 -0700)]
dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document magic instruction reading sequence.

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

* include/dwarf2-signal.h (MAKE_THROW_FRAME, sparc32): Document
magic instruction reading sequence.

From-SVN: r52609

22 years agoDaily bump.
GCC Administrator [Mon, 22 Apr 2002 07:16:59 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r52607

22 years agoaltivec.h (vec_xor): Add variant for both args being vector signed int.
Aldy Hernandez [Mon, 22 Apr 2002 06:39:02 +0000 (06:39 +0000)]
altivec.h (vec_xor): Add variant for both args being vector signed int.

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

        * config/rs6000/altivec.h (vec_xor): Add variant for both args
        being vector signed int.
        (vec_andc): Same.
        (vec_xor): Add variant for both args being vector signed char.
        Remove redundant variant.
        (vec_andc): Same.

From-SVN: r52602

22 years ago[multiple changes]
David S. Miller [Mon, 22 Apr 2002 06:07:41 +0000 (23:07 -0700)]
[multiple changes]

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

* include/private/gcconfig.h: Hard-code STACKBOTTOM on
64-bit SPARC Linux, the __libc_stack_end technique does
not work in this case.

2002-04-22  Jeff Sturm  <jsturm@one-point.com>

* gcconfig.h: Enable DYNAMIC_LOADING for all sparc-solaris ABIs.

From-SVN: r52601

22 years agosparc.md (set then compare DI mode peephole2): Fix compare mode in output RTL.
David S. Miller [Mon, 22 Apr 2002 01:25:11 +0000 (18:25 -0700)]
sparc.md (set then compare DI mode peephole2): Fix compare mode in output RTL.

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

* config/sparc/sparc.md (set then compare DI mode peephole2): Fix
compare mode in output RTL.

From-SVN: r52597

22 years ago20020415-1.c: Expect warning for unsupported -fpic on cris-*-elf* and mmix-*-*.
Hans-Peter Nilsson [Mon, 22 Apr 2002 01:19:06 +0000 (01:19 +0000)]
20020415-1.c: Expect warning for unsupported -fpic on cris-*-elf* and mmix-*-*.

* gcc.dg/20020415-1.c: Expect warning for unsupported -fpic on
cris-*-elf* and mmix-*-*.
* g77.f-torture/execute/io0.x: xfail for cris-*-elf.
* g77.f-torture/execute/io1.x, g77.f-torture/execute/20001201.x,
g77.f-torture/execute/6367.x, g77.f-torture/execute/u77-test.x:
Ditto.
* gcc.dg/wint_t-1.c: Mark excess errors for cris-*-elf.
* gcc.dg/wchar_t-1.c: Ditto.

From-SVN: r52595

22 years agors6000.c (rs6000_override_options): Correct style and formatting of previous patch.
David Edelsohn [Mon, 22 Apr 2002 01:01:12 +0000 (01:01 +0000)]
rs6000.c (rs6000_override_options): Correct style and formatting of previous patch.

        * config/rs6000/rs6000.c (rs6000_override_options): Correct
        style and formatting of previous patch.

From-SVN: r52593

22 years agors6000.c (rs6000_override_options): Always clear flag_pic for ABI_AIX.
Alan Modra [Mon, 22 Apr 2002 00:21:52 +0000 (00:21 +0000)]
rs6000.c (rs6000_override_options): Always clear flag_pic for ABI_AIX.

* config/rs6000/rs6000.c (rs6000_override_options): Always clear
flag_pic for ABI_AIX.

From-SVN: r52591

22 years agocleanup1.C (C::C()): Initialize member c.
Hans-Peter Nilsson [Sun, 21 Apr 2002 20:32:48 +0000 (20:32 +0000)]
cleanup1.C (C::C()): Initialize member c.

* g++.dg/opt/cleanup1.C (C::C()): Initialize member c.
Clarify comment.

From-SVN: r52588

22 years agocppexp.c (struct op, [...]): Replace U_CHAR with uchar.
Neil Booth [Sun, 21 Apr 2002 18:46:42 +0000 (18:46 +0000)]
cppexp.c (struct op, [...]): Replace U_CHAR with uchar.

* cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
* cppfiles.c (read_include_file): Similarly.
* cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
uxstrdup ustrchr, ufputs): Similarly.
* cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
* cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
cpp_ideq, parse_identifier, parse_number): Similarly.
* cpplib.c (struct directive, dequote_string, D, run_directive,
cpp_push_buffer): Similarly.
* cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
_cpp_create_definition, check_trad_stringification,
cpp_macro_definition): Similarly.

From-SVN: r52587

22 years agocppmacro.c (funlike_invocation_p): Don't step back over CPP_EOF.
Neil Booth [Sun, 21 Apr 2002 16:17:55 +0000 (16:17 +0000)]
cppmacro.c (funlike_invocation_p): Don't step back over CPP_EOF.

* cppmacro.c (funlike_invocation_p): Don't step back over CPP_EOF.
testsuite:
* gcc.dg/cpp/endif.h, gcc.dg/cpp/endif.c: New tests.

From-SVN: r52586

22 years ago20000906-1.x: Delete.
Franz Sirl [Sun, 21 Apr 2002 16:11:59 +0000 (16:11 +0000)]
20000906-1.x: Delete.

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

* gcc.c-torture/execute/20000906-1.x: Delete.

From-SVN: r52584

22 years ago* gnat_rm.texi: Use @ifnottex instead of @ifinfo.
Joseph Myers [Sun, 21 Apr 2002 13:59:15 +0000 (14:59 +0100)]
* gnat_rm.texi: Use @ifnottex instead of @ifinfo.

From-SVN: r52582

22 years ago* update_web_docs (MANUALS): Remove chill. Add gnat_rm.
Joseph Myers [Sun, 21 Apr 2002 13:50:09 +0000 (14:50 +0100)]
* update_web_docs (MANUALS): Remove chill.  Add gnat_rm.

From-SVN: r52581

22 years ago* gnat_ug.texi: New file.
Florian Weimer [Sun, 21 Apr 2002 12:56:01 +0000 (14:56 +0200)]
* gnat_ug.texi: New file.

From-SVN: r52580

22 years agore PR java/6391 (Constant float to int conversions don't use ieee_real_to_integer...
Mark Wielaard [Sun, 21 Apr 2002 12:35:04 +0000 (12:35 +0000)]
re PR java/6391 (Constant float to int conversions don't use ieee_real_to_integer when compiled to byte-code)

* mauve-libgcj: Don't run java.lang.ref tests since they are buggy.

* libjava.mauve/xfail: Expect failures for PR java/6391 and
libgcj/6389.

From-SVN: r52577

22 years agodwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer arg.
David S. Miller [Sun, 21 Apr 2002 09:37:49 +0000 (02:37 -0700)]
dwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer arg.

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

* include/dwarf2-signal.h (SIGNAL_HANDLER): Name siginfo_t pointer
arg.
(MAKE_THROW_FRAME): Define for 32-bit and 64-bit sparc.
(INIT_SEGV, INIT_FPE): Use direct __libc_sigaction installation
on Sparc too.
* include/sparc-signal.h (FLUSH_REGISTER_WINDOWS): Define properly
for 64-bit sparc.
(MAKE_THROW_FRAME): Use long for sp/retaddr so 64-bit works.
* sysdeps/sparc/locks.h: New file.
* configure.in (SIGNAL_HANDLER): Set to include/sparc-signal.h
on all sparc Solaris configurations.  Set to
include/dwarf2-signal.h on sparc Linux.
* configure: Regenerate
* configure.host (can_unwind_signal): sparc*-linux* can do it now.

From-SVN: r52575

22 years agoDaily bump.
GCC Administrator [Sun, 21 Apr 2002 07:16:57 +0000 (07:16 +0000)]
Daily bump.

From-SVN: r52573

22 years agognat_rm.texi: Do not include texiplus.texi.
Florian Weimer [Sun, 21 Apr 2002 07:10:12 +0000 (09:10 +0200)]
gnat_rm.texi: Do not include texiplus.texi.

* gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
instead of gfdl.texi

* xgnatug.adb, ug_words: New files.

* Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
        gnat_rm and gnat-style manuals.

From-SVN: r52569

22 years agors6000.c (output_profile_hook): Do not increment labelno.
David Edelsohn [Sun, 21 Apr 2002 05:04:01 +0000 (05:04 +0000)]
rs6000.c (output_profile_hook): Do not increment labelno.

        * config/rs6000/rs6000.c (output_profile_hook): Do not increment
        labelno.

From-SVN: r52565

22 years agore PR libstdc++/6360 (Wrong workaround in char_traits.h - ignore stops on \0xff)
Benjamin Kosnik [Sun, 21 Apr 2002 04:15:29 +0000 (04:15 +0000)]
re PR libstdc++/6360 (Wrong workaround in char_traits.h - ignore stops on \0xff)

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

PR libstdc++/6360
* include/bits/istream.tcc (istream::ignore): Streamline, use
delimiter as is.
* include/bits/streambuf.tcc: Use this->gptr.
* testsuite/27_io/istream_unformatted.cc (test08): Add test.

From-SVN: r52563

22 years agoinvoke.texi: Remove Chill references.
Joseph Myers [Sat, 20 Apr 2002 20:44:10 +0000 (21:44 +0100)]
invoke.texi: Remove Chill references.

* doc/invoke.texi: Remove Chill references.
* doc/gcc.texi: Update last modified date.

From-SVN: r52561