Commit Graph

38809 Commits

Author SHA1 Message Date
Tom Tromey
bea31ffbcb Fix for PR libgcj/2024, plus other class name cleanups:
* include/jvm.h (_Jv_VerifyFieldSignature,
	_Jv_VerifyMethodSignature, _Jv_VerifyClassName,
	_Jv_VerifyIdentifier, _Jv_ClassNameSamePackage): Moved from ...
	* include/java-interp.h: ... here.
	* defineclass.cc (UTF8_PEEK): No longer conditional on
	interpreter.
	(_Jv_VerifyOne): Likewise.
	(_Jv_VerifyFieldSignature): Likewise.
	(_Jv_VerifyMethodSignature): Likewise.
	(is_identifier_start): Likewise.
	(is_identifier_part): Likewise.
	(_Jv_VerifyIdentifier): Likewise.
	(_Jv_VerifyClassName): Likewise.
	(_Jv_VerifyClassName): Likewise.
	(_Jv_ClassNameSamePackage): Likewise.
	(_Jv_VerifyClassName): Fail if class name is too long.
	* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Disallow array
	of void.
	* java/lang/natClass.cc (forName): Check syntax of class name.
	Include IllegalArgumentException.h.

From-SVN: r47334
2001-11-26 06:40:06 +00:00
Aldy Hernandez
4bdd26e608 search.c (lookup_base_r): Declare bk in variable declaration space.
* cp/search.c (lookup_base_r): Declare bk in variable declaration
	     space.

From-SVN: r47333
2001-11-26 02:00:10 +00:00
Alan Modra
addd7df604 final.c: (insn_lengths): Make it an int *, so that large jump tables don't overflow.
* final.c: (insn_lengths): Make it an int *, so that large jump
	tables don't overflow.

From-SVN: r47331
2001-11-26 11:16:40 +10:30
Tom Tromey
fa88ce26e5 verify.cc (_Jv_BytecodeVerifier::branch_prepass): Use java_opcode as type for switch.
* verify.cc (_Jv_BytecodeVerifier::branch_prepass): Use
	java_opcode as type for switch.
	[op_wide]: Likewise.
	(_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
	[op_invokevirtual]: Likewise.
	* include/java-insns.h (java_opcode): Give enum a name.

From-SVN: r47330
2001-11-25 19:48:19 +00:00
Tom Tromey
200f4143a2 re PR libgcj/4583 (problems BigDecimal(double) ctor.)
Fix for PR libgcj/4583:
	* java/math/BigDecimal.java (BigDecimal(double)): Rewrote.
	(BigDecimal(String)): Likewise.

From-SVN: r47329
2001-11-25 19:32:28 +00:00
Toon Moene
a021c4736a Makefile.in: Fix non-portable use of `$<' in z_log.c's rule.
2001-11-25  Toon Moene  <toon@moene.indiv.nluug.nl>

	* libF77/Makefile.in: Fix non-portable use of `$<' in z_log.c's rule.

From-SVN: r47328
2001-11-25 19:12:50 +00:00
Joseph Myers
7e5fb12fc5 c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
* c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
	(format_types): Use it for scanf.
	(dollar_arguments_pointer_p): New.
	(init_dollar_format_checking): Store details of which arguments
	are pointers.
	(maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
	(finish_dollar_format_checking): Take extra parameter
	pointer_gap_ok.  Treat unused arguments differently if
	pointer_gap_ok and the unused arguments are pointers.
	(check_format_info_main): Pass extra argument to
	finish_dollar_format_checking.
	* doc/invoke.texi (-Wno-format-extra-args): Document behavior when
	unused arguments are present between used arguments with operand
	numbers.

testsuite:
	* gcc.dg/format/strfmon-1.c: Update comments.  Adjust examples
	from Austin Group draft 7.
	* gcc.dg/format/xopen-1.c: Update comments.  Add tests for gaps in
	scanf format arguments.
	* gcc.dg/format/no-exargs-2.c: New test.

From-SVN: r47327
2001-11-25 18:54:12 +00:00
Daniel Berlin
a6253d46c5 df.c: Add prototypes for hybrid_search_bitmap and hybrid_search_sbitmap.
2001-11-25  Daniel Berlin  <dan@cgsoftware.com>

	* df.c: Add prototypes for hybrid_search_bitmap and
	hybrid_search_sbitmap.
	(hybrid_search_bitmap): New function.
	(hybrid_search_sbitmap): New function.
	(iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
	(iterative_dataflow_bitmap): Ditto.

From-SVN: r47326
2001-11-25 17:22:55 +00:00
Neil Booth
cb33a143b9 * gcc.dg/cpp/fpreprocessed.c: New test.
From-SVN: r47325
2001-11-25 16:48:40 +00:00
Stephane Carrez
4f81fba13e m68hc11.md (peephole2): New peephole2 to optimize address computations.
* config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
	address computations.

From-SVN: r47323
2001-11-25 17:45:22 +01:00
Stephane Carrez
259ed6e270 m68hc11.c (d_register_operand): Must accept register b (low part of d).
* config/m68hc11/m68hc11.c (d_register_operand): Must accept
	register b (low part of d).

From-SVN: r47321
2001-11-25 17:36:31 +01:00
Stephane Carrez
f4b00a9a29 m68hc11.h (FUNCTION_PROFILER): Fix label name passed to mcount.
* config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
	passed to mcount.

From-SVN: r47319
2001-11-25 17:28:14 +01:00
Nathan Sidwell
338d90b89f re PR c++/3145 (virtual inheritance still creates wrong code)
cp:
	PR g++/3145
	* class.c (build_vbase_pointer): Remove.
	(build_vbase_path): Remove.
	(build_base_path): New function.
	* cp-tree.h (base_access, base_kind): New enumerations.
	(build_base_path): Declare.
	(convert_pointer_to_real): Remove.
	(convert_pointer_to): Remove.
	(lookup_base): Declare.
	(convert_pointer_to_vbase): Remove.
	* call.c (build_scoped_method_call): Use lookup_base &
	build_base_path instead of convert_pointer_to_real,
	get_base_distance & get_binfo.
	(build_over_call): Likewise.
	* cvt.c (cp_convert_to_pointer): Likewise.
	(convert_to_pointer_force): Likewise.
	(build_up_reference): Likewise.
	(convert_pointer_to_real): Remove.
	(convert_pointer_to): Remove.
	* init.c (dfs_initialize_vtbl_ptrs): Use build_base_path
	instead of convert_pointer_to_vbase & build_vbase_path.
	(emit_base_init): Use build_base_path instead of
	convert_pointer_to_real.
	(expand_virtual_init): Lose unrequired conversions.
	(resolve_offset_ref): Use lookup_base and build_base_path
	instead of convert_pointer_to.
	* rtti.c (build_dynamic_cast_1): Use lookup_base &
	build_base_path instead of get_base_distance & build_vbase_path.
	* search.c (get_vbase_1): Remove.
	(get_vbase): Remove.
	(convert_pointer_to_vbase): Remove.
	(lookup_base_recursive): New function.
	(lookup_base): New function.
	* typeck.c (require_complete_type): Use lookup_base &
	build_base_path instead of convert_pointer_to.
	(build_component_ref): Likewise.
	(build_x_function_call): Likewise.
	(get_member_function_from_ptrfunc): Likewise.
	(build_component_addr): Likewise.
	* typeck2.c (build_scoped_ref): Likewise.
testsuite:
	* g++.dg/abi/vbase8-4.C: New test.

From-SVN: r47316
2001-11-25 13:21:45 +00:00
Laurent Guerby
92fa4733ab sysdep.c (rts_get_*): Fix style.
2001-11-25  Laurent Guerby  <guerby@acm.org>

	* sysdep.c (rts_get_*): Fix style.

From-SVN: r47315
2001-11-25 13:09:31 +00:00
Douglas B Rupp
d133777f5d vms-ld.c, vms-cc.c: New files.
* config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
	* config/alpha/x-vms: New file, to compile the above.
	* config.gcc (alpha*-dec-vms*): Add x-vms.

From-SVN: r47312
2001-11-25 06:30:17 -05:00
GCC Administrator
a319614e13 Daily bump.
From-SVN: r47310
2001-11-25 08:16:11 +00:00
Ian Lance Taylor
cbfd0e9eed * gcc.c-torture/execute/20011121-1.c: New test.
From-SVN: r47309
2001-11-25 06:30:44 +00:00
Hans-Peter Nilsson
2dbbe435fe * genextract.c (main): Set ro_loc for peepholes.
From-SVN: r47308
2001-11-24 22:57:28 +00:00
Douglas B Rupp
e1c12209fd fix-header.c (main): Move inf_buffer termination and inf_limit calculation to after read.
* fix-header.c (main): Move inf_buffer termination and inf_limit
	calculation to after read.

From-SVN: r47307
2001-11-24 17:17:58 -05:00
Douglas B Rupp
1dfc53859f xm-vms.h (FILE_TYPE): Remove undef and baggage.
* config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
	(__UNIX_FOPEN): Define.

From-SVN: r47306
2001-11-24 17:12:17 -05:00
Douglas B Rupp
7201ce7935 xm-vms.h (FILE_TYPE): Remove undef and baggage.
* config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
	(__UNIX_FOPEN): Define.

From-SVN: r47305
2001-11-24 17:03:23 -05:00
Toon Moene
e534ca2fe3 re PR fortran/3957 (g77 -pipe -xf77-cpp-input sends output to stdout.)
2001-11-24  Toon Moene  <toon@moene.indiv.nluug.nl>

	PR fortran/3957
	* lang-specs.h: Correct !pipe conditional in tradcpp0 invocation.

From-SVN: r47304
2001-11-24 21:36:56 +00:00
Richard Kenner
08e42d8b55 function.c (assign_stack_temp_for_type): Clear alias set before setting new one.
* function.c (assign_stack_temp_for_type): Clear alias set before
	setting new one.

From-SVN: r47303
2001-11-24 16:18:15 -05:00
Joseph Myers
763b9879b9 maint.cfg.in, [...]: Revert previous changes.
* docs/doxygen/maint.cfg.in, docs/doxygen/user.cfg.in,
	docs/html/27_io/binary_iostreams_kuehl.txt: Revert previous
	changes.

From-SVN: r47301
2001-11-24 10:46:50 +00:00
GCC Administrator
044883587f Daily bump.
From-SVN: r47299
2001-11-24 08:16:12 +00:00
David Edelsohn
134c32f6de rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX format.
* rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
        format.
        * rs6000.md (cmptf): Fix typo.

From-SVN: r47298
2001-11-24 01:44:11 -05:00
David Edelsohn
e7a4130eeb * Fix typo in cmptf pattern.
From-SVN: r47297
2001-11-23 22:30:33 -05:00
Phil Edwards
b00378457a Makefile.am (doxygen-maint): The script isn't executable in CVS.
2001-11-23  Phil Edwards  <pme@gcc.gnu.org>

	* Makefile.am (doxygen-maint):  The script isn't executable in CVS.
	* Makefile.in:  Regenerated.
	* docs/doxygen/TODO:  New file listing doxygen work to be done.
	* docs/doxygen/run_doxygen:  Fix up man pages.
	* docs/doxygen/user.cfg.in:  Insert maint-only toggles.
	* docs/doxygen/maint.cfg.in:  Copy from user.cfg and turn toggles on.
	* include/bits/stl_construct.h:  Use new hooks for internal functions.

	* docs/html/17_intro/TODO:  Small updates.
	* docs/html/faq/index.html:  Likewise.
	* docs/html/faq/index.txt:  Regenerated.

	* include/bits/stl_alloc.h:  Doxygenate, reindent comments, remove
	SGI-isms and wrappers.
	(simple_alloc, debug_alloc):  Uglify class names.
	(__default_alloc_template):  Uglify "threads" template parameter and
	update corresponding macros.
	* include/backward/alloc.h:  Bring up to date.

From-SVN: r47296
2001-11-24 03:28:27 +00:00
Jeffrey A Law
05ce35e6f2 * gcc.c-torture/execute/ieee/20011123-1.c: New test.
From-SVN: r47295
2001-11-23 15:58:51 -07:00
Toon Moene
60bfa76427 re PR libf2c/4930 (Taking the log of a certain complex number hangs in run time library)
2001-11-23  Toon Moene  <toon@moene.indiv.nluug.nl>

	PR libf2c/4930
	* libF77/Makefile.in: Compile z_log.c with -ffloat-store.

From-SVN: r47294
2001-11-23 21:47:22 +00:00
Jason Merrill
83662e2ba9 fix typo
From-SVN: r47293
2001-11-23 14:00:14 -05:00
Jason Merrill
afb0141fbd vterminate.cc (__verbose_terminate_handler): Add leading underscores.
* src/vterminate.cc (__verbose_terminate_handler): Add leading
        underscores.

From-SVN: r47292
2001-11-23 12:36:43 -05:00
Joseph Myers
c5504edb75 ChangeLog, [...]: Fix spelling errors.
* ChangeLog, docs/doxygen/maint.cfg.in, docs/doxygen/user.cfg.in,
	docs/doxygen/doxygroups.cc, docs/doxygen/Intro.3,
	docs/html/17_intro/BUGS, docs/html/17_intro/C++STYLE,
	docs/html/17_intro/CHECKLIST, docs/html/17_intro/DESIGN,
	docs/html/17_intro/howto.html, docs/html/17_intro/porting.html,
	docs/html/17_intro/porting.texi, docs/html/18_support/howto.html,
	docs/html/19_diagnostics/howto.html, docs/html/20_util/howto.html,
	docs/html/21_strings/howto.html,
	docs/html/23_containers/howto.html,
	docs/html/26_numerics/howto.html, docs/html/27_io/howto.html,
	docs/html/27_io/binary_iostreams_kuehl.txt,
	docs/html/ext/sgiexts.html, docs/html/faq/index.html,
	docs/html/faq/index.txt, testsuite/24_iterators/iterator.cc,
	include/bits/basic_file.h, include/bits/locale_facets.h,
	include/bits/locale_facets.tcc, include/bits/std_sstream.h,
	include/ext/ropeimpl.h, include/ext/stl_rope.h,
	libsupc++/tinfo.cc, libsupc++/cxxabi.h, libsupc++/typeinfo,
	libsupc++/eh_throw.cc, acinclude.m4, aclocal.m4, configure,
	configure.target, ChangeLog-2000: Fix spelling errors.

From-SVN: r47291
2001-11-23 16:29:02 +00:00
Richard Sandiford
eac50d7a73 final.c (output_addr_const): Output PC as '.' even if !flag_pic.
* final.c (output_addr_const): Output PC as '.' even if !flag_pic.
	* varasm.c (output_constructor): Use assemble_integer rather
	than ASM_OUTPUT_BYTE.

From-SVN: r47287
2001-11-23 11:21:07 +00:00
Andreas Jaeger
e1e7d56bf1 cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign extension.
* cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
	extension.

	* gcc.dg/cpp/charconst-2.c: New test.

From-SVN: r47286
2001-11-23 11:01:16 +01:00
Nick Clifton
56101178c8 Remove some compile time warnings about duplicate definitions.
From-SVN: r47285
2001-11-23 09:13:14 +00:00
GCC Administrator
6d668dbfaf Daily bump.
From-SVN: r47283
2001-11-23 08:16:17 +00:00
Neil Booth
f26311c174 cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
* cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
	* gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.

From-SVN: r47282
2001-11-23 07:50:42 +00:00
Geoffrey Keating
8d49efb017 old-dejagnu.exp (old-dejagnu): Copy extra source files to the host if it is remote.
* lib/old-dejagnu.exp (old-dejagnu): Copy extra source files
	to the host if it is remote.  Let tests specify extra headers
	they use.
	* g++.old-deja/g++.abi/vtable3a.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3b.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3c.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3d.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3e.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3f.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3g.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3h.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3i.C: This uses 'vtable3.h'.
	* g++.old-deja/g++.abi/vtable3j.C: This uses 'vtable3.h'.

From-SVN: r47281
2001-11-23 07:35:21 +00:00
Kaveh R. Ghazi
a338be441c * cris.h: Revert thinko in last patch.
From-SVN: r47280
2001-11-23 04:56:19 +00:00
Joseph Myers
a1f300c0f1 ChangeLog.0, [...]: Fix spelling errors.
* ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
	FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
	cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
	dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
	explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
	sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.

From-SVN: r47279
2001-11-23 02:05:19 +00:00
Joseph Myers
754d92990a predict.c, [...]: Fix spelling errors.
gcc:
	* predict.c, reg-stack.c: Fix spelling errors.

libstdc++-v3:
	* config/locale/moneypunct_members_gnu.cc,
	include/bits/locale_facets.h: Fix spelling errors.

From-SVN: r47278
2001-11-23 01:37:07 +00:00
Stephen M. Webb
1fc610939a list_capacity.cc: New file.
2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>

        * testsuite/23_containers/list_capacity.cc: New file.
        * testsuite/23_containers/list_ctor.cc: New file.
        * testsuite/23_containers/list_modifiers.cc: New file.
        * testsuite/23_containers/list_operators.cc: New file.

2001-11-22  Stephen M. Webb  <stephen@bregmasoft.com>

	* include/bits/stl_list.h: Reformatted according to C++STYLE rules.
	(size): Replaced nonstandard distance() call with the standard one.
	(transfer): Uglified to _M_transfer.

From-SVN: r47277
2001-11-22 19:19:23 +00:00
Andrew Haley
60f4621c9a calls.c (check_sibcall_argument_overlap): Use slot_offset for start of stack slot.
2001-10-09  Andrew Haley  <aph@redhat.com>

        * calls.c (check_sibcall_argument_overlap): Use slot_offset for
        start of stack slot.

From-SVN: r47276
2001-11-22 16:51:47 +00:00
Nick Clifton
57a1142a15 fix typo in previous delta
From-SVN: r47275
2001-11-22 16:40:42 +00:00
Graham Stott
09eb1aab55 cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit replacement jump after original jump.
* cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
        replacement jump after original jump.

        (verify_flow_info): Remove redundent initialisation.
        Handle reaching end of insn list before finding a BARRIER.
        Only issue one missing barrier diagnostic.

From-SVN: r47269
2001-11-22 14:30:37 +00:00
Graham Stott
44a5da099e * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
From-SVN: r47268
2001-11-22 14:22:09 +00:00
Nick Clifton
0bf93a511e (in m32rx patch): Replace "." with "@." when preceeded by a capital letter
From-SVN: r47267
2001-11-22 12:50:16 +00:00
Nick Clifton
577a67b02d Fix for little endian ARMs
From-SVN: r47266
2001-11-22 12:44:39 +00:00
Richard Kenner
f283104bf1 Fix typo in last change
From-SVN: r47265
2001-11-22 07:27:57 -05:00