Petur Runolfsson
1ceb90cfa1
re PR libstdc++/9322 (return value of basic_streambuf<>::getloc affected by locale::global)
...
2003-01-23 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9322
* include/std/std_streambuf.h
(basic_streambuf::basic_streambuf,
basic_streambuf::~basic_streambuf,
basic_streambuf::getloc, basic_streambuf::imbue):
Remove _M_buf_locale_init use.
* include/bits/fstream.tcc (basic_filebuf::imbue): Likewise
* testsuite/27_io/filebuf_virtuals.cc (test08): Add.
* testsuite/27_io/streambuf_members.cc (test08): Add.
* testsuite/27_io/stringbuf_virtuals.cc (test08): Add.
From-SVN: r61678
2003-01-23 22:53:35 +00:00
Nathanael Nerode
806e09354f
configure.in: Revert previous change.
...
2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Revert previous change.
* configure: Regenerate.
From-SVN: r61676
2003-01-23 22:32:25 +00:00
Franz Sirl
c4db7ecbc3
re PR java/6748 (Array_3 testcase failing on powerpc-linux-gnu)
...
2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
PR java/6748
* config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
regs->nip. Fix rt_sigreturn frame layout. Add support for newer
kernels.
From-SVN: r61675
2003-01-23 22:28:48 +00:00
Tom Tromey
1f369e606f
expr.c (build_known_method_ref): Use method's context to find method table index.
...
* expr.c (build_known_method_ref): Use method's context to find
method table index.
From-SVN: r61670
2003-01-23 21:19:50 +00:00
Nathanael Nerode
c38e9817ad
* cp-tree.h, decl.h: Get rid of PARAMS. Again.
...
From-SVN: r61669
2003-01-23 20:22:16 +00:00
Nathanael Nerode
307a98643c
configure.in: Make rda native-only.
...
2003-01-23 Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in: Make rda native-only.
* configure: Regenerate.
From-SVN: r61668
2003-01-23 19:56:00 +00:00
Kaveh R. Ghazi
fc69c47cad
* cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
...
From-SVN: r61667
2003-01-23 19:51:16 +00:00
Ulrich Weigand
adbe6dfd38
genattrtab.c (write_attr_get): Mark 'insn' paramter as ATTRIBUTE_UNUSED.
...
* genattrtab.c (write_attr_get): Mark 'insn' paramter
as ATTRIBUTE_UNUSED.
From-SVN: r61666
2003-01-23 19:41:52 +00:00
Benjamin Kosnik
1a1e79bbfe
Revert include ordering.
...
2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
Revert include ordering.
* config/locale/generic/c_locale.h: Add include guards.
* config/locale/gnu/c_locale.h: Same.
* include/bits/locale_classes.h: Remove cctype include.
* include/std/std_iosfwd.h: Add c++locale.h, cctype includes.
* include/std/std_fstream.h: Remove streambuf include.
* include/std/std_sstream.h: Remove streambuf include.
From-SVN: r61664
2003-01-23 18:56:00 +00:00
Richard Earnshaw
8891b78727
duplicate not dumplicate.
...
From-SVN: r61663
2003-01-23 18:16:19 +00:00
Richard Earnshaw
76a318e977
arm.c (thumb_base_register_rtx_p): New function.
...
* arm.c (thumb_base_register_rtx_p): New function.
(thumb_index_register_rtx_p): New function.
(thumb_legitimate_address_p): New function.
(thumb_legitimate_offset_p): New function.
* arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
(ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid dumplicate
definitions.
(THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
(THUMB_LEGITIMATE_OFFSET): Delte.
(THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
* arm-protos.h (thumb_legitimate_address_p): Add prototype.
(thumb_legitimate_offset_p): Likewise.
From-SVN: r61662
2003-01-23 18:10:46 +00:00
Tom Tromey
0f0ff6ec54
* constants.c (set_constant_entry): Allocated cleared memory.
...
From-SVN: r61661
2003-01-23 17:40:42 +00:00
Andreas Schwab
9a600d0c7f
* unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
...
From-SVN: r61659
2003-01-23 17:22:53 +00:00
Benjamin Kosnik
8099b2aee8
configure.in (libtool_VERSION): To 6:0:0.
...
2003-01-23 Benjamin Kosnik <bkoz@redhat.com>
* configure.in (libtool_VERSION): To 6:0:0.
* configure: Regenerated.
* config/linker-map.gnu: Clean.
* src/misc-inst.cc: Remove instantiations.
* include/bits/stl_alloc.h (__malloc_alloc_template):
To __malloc_alloc.
(__default_alloc_template): To __pool_alloc.
* src/stl-inst.cc: Same.
* include/backward/alloc.h: Update.
* testsuite/ext/allocators.cc: Update.
* src/globals.cc (__gnu_cxx): Remove _GLIBCPP_ASM_SYMVER. Should
really try to remove these if possible.
* src/locale.cc (std): Same.
* testsuite/abi_check.cc (check_version): Add.
From-SVN: r61658
2003-01-23 17:21:11 +00:00
Kaveh R. Ghazi
2d110c0a7f
* fixinc/Makefile.in (FL_LIST): Revert last change.
...
From-SVN: r61655
2003-01-23 16:38:37 +00:00
Volker Reichelt
2d1d9215b0
re PR other/7341 (Hyperlink to gcov in gcc documentation doesn't work)
...
PR other/7341
* invoke.texi (ftest-coverage): Fix broken cross-reference.
Change @code to @command for gcov command.
* gcc.texi: Adjust title of gcov section.
Adjust copyright.
* gcov.texi: Likewise.
From-SVN: r61651
2003-01-23 10:14:34 +00:00
Mark Mitchell
c006d94230
re PR c++/9354 ([New parser?] segfault in template definition)
...
PR c++/9354
* init.c (build_new): Set the type of the new-expression, even
when processing_templte_decl.
PR c++/9216
* parser.c (cp_parser_primary_expression): Improve error message
for templates used in an expression context.
PR c++/8696
* parser.c (cp_parser_decl_specifier_seq): Commit to tentative
parse when encountering "typedef".
PR c++/9354
* g++.dg/parse/new1.C: New test.
PR c++/9216
* g++.dg/parse/template2.C: New test.
PR c++/9354
* g++.dg/parse/typedef2.C: New test.
From-SVN: r61643
2003-01-23 06:05:20 +00:00
Roger Sayle
34ee7f8278
re PR rtl-optimization/8423 (CSE1 not propagating __builtin_constant_p enough)
...
PR optimization/8423
* cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
its argument is constant, or 0 if !flag_gcse.
* simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
if it's argument is constant.
* gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
(hash_scan_set): Don't record CONSTANT_P_RTX expressions.
(do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
* builtins.c (purge_builtin_constant_p): New function to force
instantiation of any remaining CONSTANT_P_RTX nodes.
* rtl.h (purge_builtin_constant_p): Prototype here.
* toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
pass after GCSE and before loop.
(flag_gcse): No longer static.
* flags.h (flag_gcse): Prototype here.
From-SVN: r61642
2003-01-23 02:57:26 +00:00
Nathanael Nerode
94edc4abdc
class.c, parser.c: ANSIfy function definitions and declarations.
...
2003-01-22 Nathanael Nerode <neroden@gcc.gnu.org>
* class.c, parser.c: ANSIfy function definitions and declarations.
From-SVN: r61641
2003-01-23 02:47:51 +00:00
Tom Tromey
850ccfaeaa
java-tree.h: Don't use PARAMS.
...
* java-tree.h: Don't use PARAMS.
* resource.c: Add prototypes for all functions.
(write_resource_constructor): Use `const char *' to avoid
warning.
From-SVN: r61640
2003-01-23 02:38:57 +00:00
Ulrich Weigand
bab0b43b1b
s390.h (HARD_REGNO_MODE_OK): Fix warning regression introduced by last change.
...
* config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
introduced by last change.
From-SVN: r61638
2003-01-23 00:40:57 +00:00
Nathanael Nerode
e00d212733
jcf-parse.c (process_zip_dir): Remove unused variable.
...
2003-01-22 Nathanael Nerode <neroden@gcc.gnu.org>
* jcf-parse.c (process_zip_dir): Remove unused variable.
From-SVN: r61637
2003-01-23 00:40:41 +00:00
GCC Administrator
f5c140abee
Daily bump.
...
From-SVN: r61632
2003-01-23 00:17:37 +00:00
Mark Mitchell
65a5559bdf
re PR c++/9328 (ICE with templates and namespace std members)
...
PR c++/9328
* g++.dg/ext/typeof3.C: New test.
PR c++/9328
* error.c (dump_decl): For an OVERLOAD, just print the name of the
function; it doesn't make sense to try to print its type.
* semantics.c (finish_typeof): Issue errors about invalid uses.
From-SVN: r61631
2003-01-23 00:17:32 +00:00
Volker Reichelt
68aab9ee3e
re PR c++/2738 (ICE on return type specification of a destructor)
...
PR c++/2738
* g++.dg/parse/ret-type1.C: New test.
PR c++/3792
* g++.dg/parse/tmpl-outside1.C: New test.
PR c++/4207
* g++.dg/parse/int-as-enum1.C: New test.
PR c++/4903
* g++.dg/parse/no-typename1.C: New test.
PR c++/5533
* g++.dg/parse/no-value1.C: New test.
PR c++/5921
* g++.dg/parse/wrong-inline1.C: New test.
PR c++/6402
* g++.dg/parse/ref1.C: New test.
PR c++/6992
* g++.dg/parse/attr-ctor1.C: New test.
PR c++/7229
* g++.dg/parse/namespace5.C: New test.
PR c++/7917
* g++.dg/parse/func-def1.C: New test.
PR c++/8143
* g++.dg/parse/undefined1.C: New test.
PR c++/5723, PR c++/8522
* g++.dg/parse/specialization1.C: New test.
PR c++/163, PR c++/8595
* g++.dg/parse/struct-as-enum1.C: New test.
PR c++/9173
* g++.dg/parse/undefined2.C: New test.
From-SVN: r61624
2003-01-22 23:21:51 +00:00
Volker Reichelt
02ba630289
MAINTAINERS: Move myself from GNATS-only-accounts to write-after-approval.
...
* MAINTAINERS: Move myself from GNATS-only-accounts to
write-after-approval.
From-SVN: r61620
2003-01-22 22:43:44 +00:00
Mark Mitchell
e086073238
re PR c++/9298 ([new parser] ICE with function-pointer-type template args)
...
PR c++/9298
* parser.c (cp_parser_consume_semicolon_at_end_of_statement): New
function.
(cp_parser_expression_statement): Use it.
(cp_parser_explicit_instantiation): Likewise.
* pt.c (do_decl_instantiation): Improve error handling logic.
PR c++/9298
* g++.dg/parse/template1.C: New test.
From-SVN: r61618
2003-01-22 22:24:30 +00:00
Benjamin Kosnik
b4ec7fc7f0
re PR libstdc++/9269 (libstdc++ headers: explicit specialization of function must precede its first use)
...
2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
Mark Mitchell <mark@codesourcery.com>
PR libstdc++/9269
* include/std/std_fstream.h (basic_filebuf::uflow): Declare.
(basic_filebuf::underflow): Declare.
Move definitions.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
Co-Authored-By: Sysoltsev Slawa <Vyatcheslav.Sysoltsev@intel.com>
From-SVN: r61616
2003-01-22 21:18:00 +00:00
Tom Tromey
906c7c3265
expr.c (build_invokeinterface): Abort if method's context is not an interface.
...
* expr.c (build_invokeinterface): Abort if method's context is not
an interface.
From-SVN: r61615
2003-01-22 20:53:54 +00:00
Tom Tromey
3e895978ee
gcj.texi (Input and output files): Mention non-class entries.
...
* gcj.texi (Input and output files): Mention non-class entries.
* decl.c (java_init_decl_processing): Call
init_resource_processing.
* java-tree.h (compile_resource_data, write_resource_constructor,
compile_resource_file, init_resource_processing): Declare.
* config-lang.in (gtfiles): Added resource.c.
* Make-lang.in (gt-java-resource.h): New target.
(JAVA_OBJS): Added resource.o.
(java/resource.o): New target.
* resource.c: New file.
* class.c (compile_resource_file): Moved to resource.c.
(registerResource_libfunc): Likewise.
(utf8_decl_list): Mark with GTY; now static.
* jcf-parse.c (classify_zip_file): New function.
(parse_zip_file_entries): Use it; compile .properties files.
(process_zip_dir): Use classify_zip_file and compute_class_name.
Don't write class name into zip directory.
(java_parse_file): Call write_resource_constructor.
(compute_class_name): New function.
* jcf-io.c (read_zip_member): Reindented.
From-SVN: r61614
2003-01-22 20:51:55 +00:00
Andreas Schwab
7e657a6117
* ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
...
From-SVN: r61612
2003-01-22 19:40:08 +00:00
Mark Mitchell
4eb6d60937
re PR c++/9384 (ICE in validate_nonmember_using_decl, at cp/decl2.c:4152)
...
PR c++/9384
* parser.c (cp_parser_using_declaration): Issue error messages
about name resolution failures here.
PR c++/9384
* g++.dg/parse/using1.C: New test.
From-SVN: r61611
2003-01-22 19:28:23 +00:00
Andrew Haley
be0acd4269
darwin.S (_ffi_call_AIX): Add Augmentation size to unwind info.
...
2003-01-22 Andrew Haley <aph@redhat.com>
* src/powerpc/darwin.S (_ffi_call_AIX): Add Augmentation size to
unwind info.
From-SVN: r61608
2003-01-22 18:21:55 +00:00
Kazu Hirata
75a3503bf0
h8300.c (h8300_shift_needs_scratch_p): Don't request a scratch reg on H8S when the shift count is 8.
...
* config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
request a scratch reg on H8S when the shift count is 8.
From-SVN: r61602
2003-01-22 17:56:39 +00:00
Andrew Haley
fb13499ff7
Fix misapplied patch.
...
From-SVN: r61601
2003-01-22 17:50:38 +00:00
Andrew Haley
f8061f6ab4
x86_64-signal.h: Add simple handler for x86_64 32-bit mode.
...
2003-01-22 Andrew Haley <aph@redhat.com>
* x86_64-signal.h: Add simple handler for x86_64 32-bit mode.
* configure.host (CHECKREFSPEC): Define for x86_64.
From-SVN: r61600
2003-01-22 17:47:04 +00:00
Mark Mitchell
00b51d2957
parser.c (cp_parser_simple_declaration): Return quickly when encountering errors.
...
* parser.c (cp_parser_simple_declaration): Return quickly when
encountering errors.
From-SVN: r61599
2003-01-22 17:40:00 +00:00
Mark Mitchell
1fb3244aad
re PR c++/9388 ([new parser] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:278)
...
PR c++/9388
* class.c (currently_open_derived_class): Use dependent_type_p.
* cp-tree.h (dependent_type_p): New function.
(dependent_template_arg_p): Likewise.
(dependent_template_p): Likewise.
(type_dependent_expression_p): Likewise.
* parser.c (cp_parser_dependent_type_p): Remove.
(cp_parser_value_dependent_type_p): Likewise.
(cp_parser_type_dependent_expression_p): Likewise.
(cp_parser_dependent_template_arg_p): Likewise.
(cp_parser_dependent_template_id_p): Likewise.
(cp_parser_dependent_template_p): Likewise.
(cp_parser_diagnose_invalid_type_name): Replace
cp_parser_dependent_type_p with dependent_type_p, etc.
(cp_parser_primary_expresion): Likewise.
(cp_parser_nested_name_specifier_opt): Likewise.
(cp_parser_postfix_expression): Likewise.
(cp_parser_unary_expression): Likewise.
(cp_parser_template_name): Likewise.
(cp_parser_class_name): Likewise.
(cp_parser_lookup_name): Likewise.
* pt.c (dependent_type_p): New function.
(value_dependent_expression_p): Likewise.
(type_dependent_expression_p): Likewise.
(dependent_template_arg_p): Likewise.
(dependent_template_id_p): Likewise.
(dependent_template_p): Likewise.
PR c++/9285
PR c++/9294
* parser.c (cp_parser_simple_declaration):
PR c++/9285
PR c++/9294
* g++.dg/parse/expr2.C: New test.
PR c++/9388
* g++.dg/parse/lookup2.C: Likewise.
From-SVN: r61596
2003-01-22 17:39:15 +00:00
Ulrich Weigand
4888ec5d53
s390-protos.h (preferred_la_operand_p): Remove second parameter.
...
* config/s390/s390-protos.h (preferred_la_operand_p):
Remove second parameter.
* config/s390/s390.c (preferred_la_operand_p): Likewise.
* config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
(HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
* config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
Add peepholes to transform ADD to LOAD ADDRESS.
From-SVN: r61594
2003-01-22 16:56:45 +00:00
Benjamin Kosnik
e66868131b
locale_facets.h: Move non-facet classes requiring <string> to...
...
2003-01-22 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h: Move non-facet classes requiring
<string> to...
* include/bits/locale_classes.h: New.
* include/bits/Makefile.am (bits_headers_src): Add locale_classes.h.
* include/bits/Makefile.in: Regenerate.
* include/bits/locale_facets.tcc (__convert_from_v): Move to...
* config/locale/gnu/c_locale.h: ...here.
* config/locale/generic/c_locale.h: Same.
* include/bits/locale_facets.tcc: Move declarations to...
* include/bits/locale_facets.h: ...here.
* include/bits/basic_ios.h: Tweak includes accordingly.
* include/std/std_sstream.h: Add streambuf include.
* include/std/std_fstream.h: Ditto.
* include/std/std_locale.h: Add locale_classes.h include.
* include/std/std_iosfwd.h: Tweak.
* src/concept-inst.cc: Add iterator include.
* config/linker-map.gnu: Specify __cxa functions, mark __cxa_dyn_*
bits as unexported in the future.
From-SVN: r61593
2003-01-22 16:51:52 +00:00
Richard Earnshaw
6b990f6b63
arm.c (arm_address_register_rtx_p): New function.
...
* arm.c (arm_address_register_rtx_p): New function.
(arm_legitimate_address_p): New function.
(arm_legitimate_index_p): New function.
(legitimize_pic_address): Use arm_legitimate_index_p.
* arm-protos.h (arm_legtimate_address_p): Add prototype.
* arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
(ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
From-SVN: r61592
2003-01-22 16:01:43 +00:00
Hartmut Penner
f0bf127006
s390.md (floatdfdi2): Insn has type 'itof'.
...
* config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
* config/s390/2064.md (define_bypass): Correct 'Load' and
'Load-address' bypass values.
From-SVN: r61591
2003-01-22 14:40:05 +00:00
Andreas Schwab
fcb6a0f575
* config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
...
From-SVN: r61590
2003-01-22 14:20:45 +00:00
Zack Weinberg
b09b91b948
fix typo in last change
...
From-SVN: r61589
2003-01-22 07:32:29 +00:00
Zack Weinberg
c24b80269b
genautomata.c (output_internal_insn_latency_func, [...]): Short circuit when there is no automaton to generate code for.
...
* genautomata.c (output_internal_insn_latency_func,
output_print_reservation_func): Short circuit when there is no
automaton to generate code for.
From-SVN: r61588
2003-01-22 07:31:51 +00:00
Zack Weinberg
a872940645
Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
...
* ada/Make-lang.in: Disable -Werror for tracebak.c and
b_gnatb.c.
From-SVN: r61587
2003-01-22 07:30:22 +00:00
Kaveh R. Ghazi
38afe605ae
Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
...
* Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
(df.o): Delete duplicate dependency on coretypes.h $(TM_H).
From-SVN: r61586
2003-01-22 04:58:26 +00:00
Geoffrey Keating
d24652eedf
rs6000.md: Remove warning.
...
* config/rs6000/rs6000.md: Remove warning.
(builtin_setjmp_receiver): Likewise.
* config/darwin.c (update_stubs): Slightly improve terrible hack
with identifiers. Add comment pointing out problems with it.
(update_non_lazy_ptrs): Likewise.
From-SVN: r61585
2003-01-22 01:11:17 +00:00
Richard Henderson
1c99d804ee
dwarf2out.c (lookup_filename): Fix printf format warning.
...
* dwarf2out.c (lookup_filename): Fix printf format warning.
* system.h (fread_unlocked, fwrite_unlocked): Undef.
* fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
(fixincl.o-warn, gnu-regex.o-warn): New.
* fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
* fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
* fixinc/fixincl.c (process): Fix printf format warning.
From-SVN: r61584
2003-01-21 17:02:51 -08:00
GCC Administrator
44897a588a
Daily bump.
...
From-SVN: r61583
2003-01-22 00:17:06 +00:00