Commit Graph

38937 Commits

Author SHA1 Message Date
Laurent Guerby
d99b0e7965 Makefile.in: Regenerate Ada dependencies.
2001-11-27  Laurent Guerby  <guerby@acm.org>

	* Makefile.in: Regenerate Ada dependencies.

From-SVN: r47373
2001-11-27 08:45:41 +00:00
GCC Administrator
9a9e23fbc7 Daily bump.
From-SVN: r47371
2001-11-27 08:16:19 +00:00
Richard Henderson
08884e6657 New test.
From-SVN: r47370
2001-11-27 00:02:21 -08:00
Zack Weinberg
07e96fc688 * cppfiles.c (read_include_file): Add comment.
From-SVN: r47369
2001-11-27 07:42:10 +00:00
Richard Henderson
773105be40 New test.
From-SVN: r47368
2001-11-26 17:55:42 -08:00
David Edelsohn
468e8dba6a more minimal-toc tweaking of output_mi_thunk.
From-SVN: r47367
2001-11-26 20:35:23 -05:00
Richard Henderson
5652450c24 * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
From-SVN: r47365
2001-11-26 16:32:00 -08:00
Richard Henderson
89e6abffcf sysv4.h (DBX_DEBUGGING_INFO): Undef.
* config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
        * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
        commented out override.

From-SVN: r47364
2001-11-26 16:14:41 -08:00
Neil Booth
4d6baafa31 cppfiles.c (stack_include_file): Don't optimize zero-length files.
* cppfiles.c (stack_include_file): Don't optimize zero-length
	files.
	(read_include_file): NUL-terminate read files.
	* cpplex.c (handle_newline, skip_escaped_newlines,
	get_effective_char, skip_whitespace, parse_identifier,
	parse_identifier_slow, parse_number, parse_string,
	_cpp_lex_direct): Optimize for the fact that buffers are guaranteed
	NUL-terminated.
	* cpplib.c (destringize_and_run, cpp_define, handle_assertion):
	Be sure buffers are NUL terminated.
	* cppmacro.c (warn_of_redefinition): Kill compile warning.

	* c-common.c: Include tree-inline.h.
	(c_language): Move separate definitions here.
	(c_common_init_options, c_common_post_options): New.
	(c_common_lang_init): Rename c_common_init.
	* c-common.h (c_common_lang_init): Similarly.
	(c_common_init_options, c_common_post_options): New.
	* c-lang.c (c_post_options): Move body to c_common_post_options.
	(c_init_options): Use c_common_init_options.
	(c_init): Update.
	* langhooks.def: Rearrange.
	* langhooks.h: Rearrange, and improve comments.
	* toplev.c (do_compile): New function.
	(toplev_main): Use it.
	(lang_independent_f_options, parse_options_and_default_flags,
	process_options): Remove trailing periods.
	* Makefile.in: Update.
cp:	* decl2.c (c_language): Move to c-common.c.
	* lex.c (cxx_post_options, cxx_init_options): Use c-common.c
	functions.
	(cxx_init): Update.
objc:	* objc-act.c (objc_post_options, objc_init_options): Use c-common.c
	functions.
	(ojbc_init): Update.

From-SVN: r47362
2001-11-26 23:44:54 +00:00
Richard Henderson
d4b4b319a2 * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
From-SVN: r47361
2001-11-26 14:56:52 -08:00
Ziemowit Laski
04075e8f65 * MAINTAINERS (write-after-approval): Add self.
From-SVN: r47360
2001-11-26 22:35:45 +00:00
DJ Delorie
8b6000fc89 expr.c (store_constructor): Actually use the value computed if WORD_REGISTER_OPERATIONS.
* expr.c (store_constructor): Actually use the value computed
if WORD_REGISTER_OPERATIONS.

From-SVN: r47359
2001-11-26 17:29:46 -05:00
Richard Henderson
3f0496e5b2 Make-lang.in (gnatbind, [...]): Depend on CONFIG_H and prefix.o.
* Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
        gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
        gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.

From-SVN: r47358
2001-11-26 14:20:28 -08:00
Richard Henderson
c70ebb687c elfos.h (SELECT_SECTION): Don't check TREE_READONLY for CONSTRUCTOR.
* config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
        for CONSTRUCTOR.

From-SVN: r47357
2001-11-26 14:16:56 -08:00
David Edelsohn
fa9b5c6be7 rs6000.c (output_mi_thunk): Handle minimal-toc and call correct function on AIX.
* rs6000.c (output_mi_thunk): Handle minimal-toc and call
        correct function on AIX.

From-SVN: r47355
2001-11-26 16:43:48 -05:00
DJ Delorie
97e620cf89 Makefile.in (stamp-h): Depend on Makefile for proper serialization.
* Makefile.in (stamp-h): Depend on Makefile for proper
serialization.
(*-subdir): Depend on config.h for proper serialization.

Co-Authored-By: Daniel Jacobowitz <drow@mvista.com>

From-SVN: r47354
2001-11-26 16:24:43 -05:00
DJ Delorie
4dcc42a39c Fix typo.
From-SVN: r47353
2001-11-26 15:03:21 -05:00
DJ Delorie
c3bb7df00b configure.in: Check for alloca.h (for regex.c and putenv.c).
* configure.in: Check for alloca.h (for regex.c and putenv.c).
* configure: Regenerate.
* config.h: Add HAVE_ALLOCA_H.

From-SVN: r47352
2001-11-26 15:02:19 -05:00
Alexandre Oliva
8924f58b42 toplev.c (process_options): Don't force flag_optimize_sibling_calls to zero just because exceptions are enabled.
* toplev.c (process_options): Don't force
flag_optimize_sibling_calls to zero just because exceptions are
enabled.

From-SVN: r47351
2001-11-26 19:40:21 +00:00
Jeffrey A Law
afb14002b6 df.h (transfer_function_sbitmap): Use PARAMS around argument list in function prototypes.
* df.h (transfer_function_sbitmap): Use PARAMS around argument
        list in function prototypes.
        (transfer_function_bitmap): Likewise.

From-SVN: r47350
2001-11-26 12:36:09 -07:00
Loren J. Rittle
b0b3cf5e33 stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
* config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
        * config/i386/netbsd-elf.h: Likewise.

From-SVN: r47349
2001-11-26 19:24:09 +00:00
David Edelsohn
79fde587c8 * doc/trouble.texi: Remove outdated RS/6000 comments.
From-SVN: r47348
2001-11-26 13:33:44 -05:00
Loren J. Rittle
2b2ec3fbff linux_threads.c (WRAP_FUNC(pthread_join)): Remove special case for GC_FREEBSD_THREADS.
* linux_threads.c (WRAP_FUNC(pthread_join)): Remove special
	case for GC_FREEBSD_THREADS.
	* configure.in (*-*-freebsd*): Clarify warning.
	* configure: Rebuilt.

From-SVN: r47347
2001-11-26 17:40:34 +00:00
Jason Merrill
5b0c589655 * call.c (joust): Remove COND_EXPR hack.
From-SVN: r47346
2001-11-26 08:11:15 -05:00
Jan Hubicka
5bc72aebcb * final.c (walk_alter_subreg): Fix return value.
From-SVN: r47345
2001-11-26 13:02:16 +00:00
Jan Hubicka
0e1638d4c3 sparc.c (sparc_absnegfloat_split_legitimate): Do not call alter_subreg.
* sparc.c (sparc_absnegfloat_split_legitimate): Do not call
	alter_subreg.
	* sparc.md (post-reload splitters): Do not call alter_subreg.
	* cfgrtl.c (purge_dead_edges): Fix typo in previous fix.

From-SVN: r47339
2001-11-26 10:38:27 +00:00
Aldy Hernandez
78b583fed8 * regclass.c (choose_hard_reg_mode): Handle vector arguments.
From-SVN: r47338
2001-11-26 10:18:47 +00:00
GCC Administrator
3cc9a32fc7 Daily bump.
From-SVN: r47335
2001-11-26 08:16:12 +00:00
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