J"orn Rennecke
309d8365e5
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
2002-04-24 22:47:44 +01:00
J"orn Rennecke
51214775d0
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
2002-04-24 22:35:43 +01:00
J"orn Rennecke
b700634a64
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
2002-04-24 22:26:17 +01:00
Neil Booth
349ae713cb
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
2002-04-24 20:41:04 +00:00
Kaveh R. Ghazi
3f2019c6ef
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
2002-04-24 19:04:23 +00:00
Jason Merrill
84f0ace064
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
2002-04-24 14:49:51 -04:00
Richard Henderson
120eaf28cd
* config/mips/mips.md (movdi_usd): Renumber.
...
From-SVN: r52723
2002-04-24 10:44:39 -07:00
David S. Miller
e732178cb8
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
2002-04-24 09:58:12 -07:00
Jan Hubicka
e879eb2f79
* loop.c (canonicalize_condition): Use gen_int_mode.
...
From-SVN: r52715
2002-04-24 14:24:55 +00:00
Aldy Hernandez
4287a89348
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
2002-04-24 10:57:33 +00:00
Jason Merrill
985723ce6c
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
2002-04-24 06:48:44 -04:00
GCC Administrator
12fe8bf235
Daily bump.
...
From-SVN: r52708
2002-04-24 07:19:36 +00:00
Per Bothner
be3ac45edb
Fix typos for 2002-03-08 entry.
...
From-SVN: r52703
2002-04-23 22:11:31 -07:00
Adam Megacz
c2a6704f60
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
2002-04-24 01:33:19 +00:00
Loren J. Rittle
9385d9cb0d
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
2002-04-24 00:33:28 +00:00
Jason Merrill
b602511f62
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
2002-04-23 19:51:30 -04:00
Eric Botcazou
cff2779594
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
2002-04-23 16:31:07 -07:00
Zack Weinberg
952bca8474
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
2002-04-23 23:12:44 +00:00
Tom Tromey
3d3707c1d5
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
2002-04-23 22:58:09 +00:00
Tom Tromey
50cb21547b
* gcc.c: Added --resource. For PR java/6314.
...
From-SVN: r52689
2002-04-23 22:57:16 +00:00
Jason Merrill
736020b4a7
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
2002-04-23 17:56:10 -04:00
Jason Merrill
74c263af80
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
2002-04-23 17:01:22 -04:00
Jakub Jelinek
29cece2e5d
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
2002-04-23 22:59:05 +02:00
Hans-Peter Nilsson
7e67bb8588
cpu_limits.h: New file.
...
* config/cpu/mmix/bits/cpu_limits.h: New file.
* configure.target (CPULIMITSH): Use it.
From-SVN: r52674
2002-04-23 17:46:24 +00:00
David O'Brien
9566d1e9f2
Tweak my last entry.
...
From-SVN: r52672
2002-04-23 16:39:34 +00:00
David O'Brien
515387dcd9
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
2002-04-23 16:39:03 +00:00
David O'Brien
271f61fb29
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
2002-04-23 15:05:33 +00:00
David O'Brien
bdabbc80b9
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
2002-04-23 14:57:55 +00:00
Philipp Thomas
7bbf788c04
Regenerate gcc.pot
...
From-SVN: r52665
2002-04-23 13:29:03 +00:00
Jan Hubicka
7441103929
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
2002-04-23 12:29:43 +00:00
Roger Sayle
1a887f860a
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
2002-04-23 12:17:37 +02:00
Mark Mitchell
77adef8498
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
2002-04-23 08:37:23 +00:00
Aldy Hernandez
8d3441e009
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
2002-04-23 07:32:08 +00:00
Alan Modra
f6f315fe11
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
2002-04-23 16:50:55 +09:30
GCC Administrator
878a19ebe2
Daily bump.
...
From-SVN: r52655
2002-04-23 07:17:20 +00:00
Jeff Sturm
e3c98562a4
Makefile.am (toolexeclib_LTLIBRARIES): Remove.
...
* Makefile.am (toolexeclib_LTLIBRARIES): Remove.
(noinst_LTLIBRARIES): Add libgcjgc.la.
* Makefile.in: Rebuild.
From-SVN: r52651
2002-04-23 03:37:27 +00:00
Eric Christopher
d239cdc00e
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
2002-04-23 02:06:02 +00:00
David O'Brien
d0d091ae08
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
2002-04-23 02:04:20 +00:00
Aldy Hernandez
04428ad4ac
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
2002-04-23 00:19:14 +00:00
Janis Johnson
2adc7f1284
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
2002-04-22 23:22:33 +00:00
Tom Rix
b7c89afe90
Generate constant for shift once.
...
From-SVN: r52644
2002-04-22 23:20:12 +00:00
Loren J. Rittle
6067f1feb2
* docs/html/17_intro/porting.html: Rebuilt.
...
From-SVN: r52643
2002-04-22 22:50:40 +00:00
Loren J. Rittle
c5ac5edb61
* docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.
...
From-SVN: r52642
2002-04-22 22:46:34 +00:00
Zack Weinberg
9340544b77
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
2002-04-22 22:25:14 +00:00
Alexandre Petit-Bianco
920f81e7b8
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
2002-04-22 20:34:19 +00:00
Jason Merrill
5066927d9e
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
2002-04-22 16:28:05 -04:00
Richard Henderson
f942d7a5df
* config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
...
From-SVN: r52633
2002-04-22 12:54:50 -07:00
Mark Mitchell
8ed8f73189
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
2002-04-22 19:26:19 +00:00
Benjamin Kosnik
b2e4f4fda7
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
2002-04-22 19:10:02 +00:00
Ulrich Weigand
232b0b45ca
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
2002-04-22 18:41:07 +00:00