Commit Graph

38955 Commits

Author SHA1 Message Date
Hans-Peter Nilsson fd2aba001d * gcc.dg/20011127-1.c: New test.
From-SVN: r47394
2001-11-28 02:36:03 +00:00
Zack Weinberg e490616e33 top level:
2001-11-27  DJ Delorie <dj@redhat.com>
	    Zack Weinberg  <zack@codesourcery.com>

	When build != host, create libiberty for the build machine.

	* Makefile.in (TARGET_CONFIGARGS, BUILD_CONFIGARGS): Replace
	CONFIG_ARGUMENTS.
	(ALL_BUILD_MODULES_LIST, BUILD_CONFIGDIRS, BUILD_SUBDIR):
	New variables.
	(ALL_BUILD_MODULES, CONFIGURE_BUILD_MODULES): New variables
	and rules.
	(all.normal): Depend on ALL_BUILD_MODULES.
	(CONFIGURE_TARGET_MODULES rule): Use TARGET_CONFIGARGS.
	(all-build-libiberty): Depend on configure-build-libiberty.

	* configure: Calculate and substitute proper value for
	ALL_BUILD_MODULES.
	* configure.in: Create the build subdirectory.
	Calculate and substitute TARGET_CONFIGARGS (formerly
	CONFIG_ARGUMENTS); also BUILD_SUBDIR and BUILD_CONFIGARGS (new).

libiberty:
2001-11-27  Zack Weinberg  <zack@codesourcery.com>

	* _doprnt.c: Moved here from gcc/doprint.c.  Adjust to build
	in libiberty context.  Fix typo in leading comment.
	* configure.in: Fix various AC_DEFINEs so autoheader works.
	If any of vprintf, vsprintf, vfprintf is missing from libc,
	then AC_REPLACE_FUNCS(_doprnt).

From-SVN: r47393
2001-11-28 01:37:24 +00:00
Bryce McKinlay 215e11524b passes.texi: Remove reference to c-dump.c.
* doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
	doc.

From-SVN: r47392
2001-11-28 00:45:26 +00:00
Phil Edwards 7145a3ddd9 explanations.html: New section, empty for now.
2001-11-27  Phil Edwards  <pme@gcc.gnu.org>

	* docs/html/explanations.html:  New section, empty for now.
	* docs/html/17_intro/howto.html:  Cleanup.  Move unrelated link...
	* docs/html/23_containers/howto.html:  ...to here.  Break up and
	rewrap threading discussion to emphasize warning.  Move malloc text...
	* docs/html/ext/howto.html:  ...to here.  New section.  Describe
	allocators and __USE_MALLOC effects.
	* docs/html/ext/sgiexts.html:  Mention their code.

From-SVN: r47391
2001-11-28 00:02:04 +00:00
Jakub Jelinek 8a63621fe5 gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than preprocessor define.
* gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
	preprocessor define.  If only DBX_DEBUGGING_INFO or only
	DWARF2_DEBUGGING_INFO is supported for the target, provide
	appropriate definitions.

From-SVN: r47390
2001-11-27 23:53:09 +01:00
Neil Booth 98741ec369 * Makefile.in: Forgotten commit.
From-SVN: r47389
2001-11-27 22:47:42 +00:00
Neil Booth 0abc6a6a4f cpphash.c (_cpp_init_hashtable): Update.
* cpphash.c (_cpp_init_hashtable): Update.
	* cpphash.h (struct spec_nodes): Remove n_L.
	* cpplex.c (_cpp_lex_direct): Check for prefix L separately.

	* Makefile.in: Update, and add c-objc-common.o dependencies.
	* c-lang.c: Remove unnecessary includes.
	(c_init): Move bulk of code to c_objc_common_init, and call it.
	(c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
	inline_forbidden_p, c_cannot_inline_tree_fn): Move to
	c-objc-common.c.
	* c-objc-common.c: New.  Mostly pulled from c-lang.c.
	* c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
	c_objc_common_init, c_missing_noreturn_ok_p): New.
	* toplev.c: Update comment.
	* doc/passes.texi: Update.
	* objc/ojbc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
	LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
	LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
	(objc_init): Update to use c_objc_common_init.

From-SVN: r47388
2001-11-27 22:31:34 +00:00
Richard Henderson 9827f778db unroll.c (loop_iterations): Move last change ...
* unroll.c (loop_iterations): Move last change ...
        * doloop.c (doloop_modify_runtime): ... here.

From-SVN: r47387
2001-11-27 14:09:10 -08:00
Corey Minyard ec3fba5614 unroll.c (loop_iterations): Detect one situation in which we overestimate the number of iterations.
* unroll.c (loop_iterations): Detect one situation in which we
        overestimate the number of iterations.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r47386
2001-11-27 10:30:40 -08:00
Rainer Orth b856c15d7e re PR other/3968 (COLLECT_GCC_OPTIONS empty)
* gcc.c (set_collect_gcc_options): New function, split out from
	main.
	Ignore elided switches.
	(do_spec): Invoke before executing command.
	(do_spec_1): Likewise.
	Fixes PR other/3968.

	* gcc.c (set_input): Export.
	Move declaration ...
	gcc.h (set_input): ... here.

	java:
	* jvspec.c (jvgenmain_spec): Cannot use %umain, breaks
	ASM_FINAL_SPEC.
	(lang_specific_pre_link): Use set_input to set input_filename.
	Append `main' here.
	* jvgenmain.c (usage): Append literal `main' to CLASSNAME.
	(main): Fix definition.
	Strip `main' from classname.
	Fixes PR java/227.

From-SVN: r47385
2001-11-27 17:31:38 +00:00
Hans-Peter Nilsson ae08d4c0e9 * config/cris/cris.h (INT_ASM_OP): Remove.
From-SVN: r47384
2001-11-27 16:38:54 +00:00
Andreas Jaeger f8e0aa736d * Makefile.in (stamp-tool_src_dir): Use symbolic link.
From-SVN: r47382
2001-11-27 17:17:56 +01:00
Rainer Orth b9fbb93637 sol2.h (WINT_TYPE): Redefine.
* config/i386/sol2.h (WINT_TYPE): Redefine.
	(WINT_TYPE_SIZE): Likewise.

From-SVN: r47381
2001-11-27 16:13:22 +00:00
Kaveh R. Ghazi 475c267f7a collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
* collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
	(dup2): Make static and add prototype.
	* m68k/plexus.h: Don't define NO_DUP2.
	* configure.in (AC_CHECK_FUNCS): Add dup2.
	* config.in, configure: Regenerate.

From-SVN: r47379
2001-11-27 15:36:24 +00:00
Kaveh R. Ghazi ec8e621da9 aix.h (REG_SIZE): Don't #undef.
* ia64/aix.h (REG_SIZE): Don't #undef.
	* sparc.h (REG_SIZE): Delete.
	* flow.c (mark_used_regs): Don't use REG_SIZE.
	* regs.h (REG_SIZE): Delete.

From-SVN: r47378
2001-11-27 15:32:18 +00:00
Andreas Schwab 4a2fadaecc gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT -> PREFERRED_DEBUGGING_TYPE.
* gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
	PREFERRED_DEBUGGING_TYPE.

From-SVN: r47377
2001-11-27 15:08:38 +00:00
Richard Kenner ac79cd5ab9 Makefile.in (c-lang.o): Depends on langhooks-def.h.
* Makefile.in (c-lang.o): Depends on langhooks-def.h.
	(expr.o, varasm.o): Depends on langhooks.h.
	* c-common.c (c_safe_from_p): Always declare.
	(c_expand_expr): Refine when declared.
	* c-lang.c (c-common.h): Now include.
	(LANG_HOOKS_SAFE_FROM_P): Define new hook.
	(c_init): Don't set lang_safe_from_expr.
	* expr.c (langhooks.h): Now include.
	(lang_safe_from_p): No longer define.
	(safe_from_p): Use lang hook.
	(expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
	(expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
	* expr.h (lang_expand_constant, lang_safe_from_p): Delete.
	* langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
	(LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
	* langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
	* langhooks.h (struct lang_hooks): New fields expand_constant
	and safe_from_p.
	* output.h (output_constant): Size arg is HOST_WIDE_INT.
	* stmt.c (expand_decl_init): No longer need to expand constant
	for CONST_DECL.
	* stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
	* toplev.c (lang_expand_constant): Delete var.
	* tree.c (save_expr): Don't put another SAVE_EXPR around simple
	operations on SAVE_EXPR.
	* varasm.c (langhooks.h): Now include.
	(compare_constant_1): Use lang_hooks, not lang_expand_constant.
	(record_constant_1, output_addressed_constants): Likewise.
	(initializer_constant_valid_p, output_constant): Likewise.
	(output_constant_def): Process no-defer of string constant.
	(output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
	(output_constant): Strip more conversions.
	Track our size and pad for the rest.
	(array_size_for_constructor): Remove code for non-byte STRING_CST.
	(output_constructor): SIZE now HOST_WIDE_INT.
	* cp/Make-lang.in (cp-lang.o): Depends on c-common.h.
	* cp/cp-lang.c (c-common.h): Include.
	(LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
	* cp/decl.c (cxx_init_decl_processing): Don't set lang_safe_from_p.
	* cp/expr.c (init_cplus_expand): Don't set lang_expand_constant.

From-SVN: r47376
2001-11-27 09:31:29 -05:00
Richard Henderson 188235dff1 ifcvt.c (noce_try_store_flag_constants): Test for overflow in computing DIFF.
* ifcvt.c (noce_try_store_flag_constants): Test for overflow
        in computing DIFF.

From-SVN: r47374
2001-11-27 01:07:59 -08:00
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