Commit Graph

42861 Commits

Author SHA1 Message Date
Loren J. Rittle
6c784d9959 c++config (__USE_MALLOC): Report case where the user improperly defined it on the command line.
libstdc++/6641
	* include/bits/c++config (__USE_MALLOC): Report case where
	the user improperly defined it on the command line.

From-SVN: r53494
2002-05-15 22:32:25 +00:00
Richard Henderson
033afd1106 [multiple changes]
2002-05-15  Jakub Jelinek  <jakub@redhat.com>

        * fold-const.c (fold): Fix a typo.

2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>

        * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
        comparison against the highest or lowest integer value before
        the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
        transformation and that of an unsigned comparison against 0
        right after.

From-SVN: r53493
2002-05-15 13:39:55 -07:00
Richard Henderson
14285ace88 varasm.c (merge_weak): Error for any weakening after definition.
* varasm.c (merge_weak): Error for any weakening after definition.
        Adjust weakening after use warning to catch more cases.
        (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
        * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.

        * gcc.dg/weak-5.c (vfoo1c): No warning here.
        (vfoo1f): Warning here.
        (vfoo1l): Don't redefine the alias.

From-SVN: r53491
2002-05-15 09:50:44 -07:00
Rainer Orth
d2aa36f5d9 testsuite_hooks.h (__set_testsuite_memlimit): Retrieve current limits before setting.
* testsuite/testsuite_hooks.h (__set_testsuite_memlimit):
	Retrieve current limits before setting.

From-SVN: r53490
2002-05-15 15:57:05 +00:00
Benjamin Kosnik
7bd9b6d491 re PR libstdc++/6518 (???)
2002-05-15  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/6518
	* include/bits/ostream.tcc (ostream::operator<<(const char*)): Fix
	for null case.
	(ostream::operator<<(const _CharT*)): Same.
	(ostream<char>::operator<<(const char*)): Same.
	* testsuite/27_io/ostream_inserter_char.cc (test07): Add test.

From-SVN: r53489
2002-05-15 14:38:30 +00:00
Benjamin Kosnik
fb5b4dfdcb re PR libstdc++/6594 (strstreambuf leaks 16 bytes - gcc 3.0.x)
2002-05-15  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/6594
	* src/strstream.cc (strstreambuf): Fix leak.

From-SVN: r53486
2002-05-15 13:15:17 +00:00
Paolo Carlini
bf6f276b01 re PR libstdc++/6648 (Problems with cin.getline (interactive))
2002-05-15  Paolo Carlini  <pcarlini@unitus.it>

	PR libstdc++/6648
	* include/bits/istream.tcc (istream::getline, ignore):
	Upon __idelim (__delim) call sbumpc() not snextc().
	* testsuite/27_io/narrow_stream_objects.cc:
	Add test08 and test09.

From-SVN: r53481
2002-05-15 10:27:29 +00:00
Jan Hubicka
194734e9e5 invoke.texi (-malign-double): Re-add lost warning.
* invoke.texi (-malign-double): Re-add lost warning.

	* i386-protos.h (x86_output_mi_thunk): Declare.
	* unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
	* i386.c (x86_output_mi_thunk): ... here; handle 64bits.

	* dwarf2out.c (output_call_frame_info): Do not skip unwind info
	when flag_asynchronous_unwind_tables is set.

	* flags.h (flag_reorder_functions): Declare.
	* function.c (prepare_function_start): Initialize frequnecy.
	* params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New paramters.
	* Makefile.in (predict.o): Add dependency on target.h and params.h
	* defaults.h (HOT_TEXT_SECTION_NAME,
	UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
	* predict.c (choose_function_section): New function.
	(estimate_bb_frequencies): Use it.
	* toplev.c (flag_reorder_functions): New global variable.
	(lang_independent_options): New.
	(parse_options_and_default_flags): Set.
	* varasm.c (assemble_start_function): Bypass functdion alignment
	for never executed functions.
	* invoke.texi (-freorder-blocks, -freorder-functions): Document.
	(param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
	* tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
	Document.

	Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>

	* predict.c: Inlude profile.h
	(MIN_COUNT): Rename to MIN_COUNT_FRACTION
	(maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
	Use the information about maximal counter in the program.

	Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>

	* basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
	probably_never_executed_bb_p): New functions.
	* cfgcleanup.c (outgoing_edges_match): Use them.
	* predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
	(maybe_hot_bb_p, probably_cold_bb_p,
	probably_never_executed_bb_p): New functions.

	* function.h (function): Add new field function_frequency.
	* predict.c (compute_function_frequency): New function.
	(estimate_probability): Call it.

From-SVN: r53478
2002-05-15 09:00:30 +00:00
Jakub Jelinek
61ad9a3472 PR optimization/5172, optimization/5200
2002-03-09  Jakub Jelinek  <jakub@redhat.com>

	PR optimization/5172, optimization/5200
	* gcse.c (gcse_main): Disable store_motion.

From-SVN: r53477
2002-05-15 00:46:09 -07:00
GCC Administrator
6e47edcefe Daily bump.
From-SVN: r53476
2002-05-15 07:18:42 +00:00
GCC Administrator
c6890cb8cf Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r53475.2
2002-05-15 07:18:39 +00:00
Zack Weinberg
a11eba953e c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
* c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
	(c_common_nodes_and_builtins): Use it.
	(builtin_define_with_value): New function.
	(cb_register_builtins): Define __SIZE_TYPE__,
	__PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
	using builtin_define_with_value.  Use consistent notation when
	defining __GXX_WEAK__.
	(WCHAR_TYPE_SIZE): Don't redefine.
	(combine_strings): Don't use WCHAR_TYPE_SIZE.

	* cppdefault.h: Don't provide defaults for SIZE_TYPE,
	PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
	* cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
	* tradcpp.c (initialize_builtins): Likewise.
	* gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.

	* c-lex.h (builtin_define_with_value): Prototype.
	* system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
	NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
	* doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.

	* config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
	config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
	config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
	config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
	config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
	config/sparc/linux64.h, config/sparc/netbsd-elf.h,
	config/sparc/sol2-bi.h, config/sparc/sparc.h:
	Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
	to __SIZE_TYPE__ etc from all spec strings. When this makes
	extra specs empty, delete them.

From-SVN: r53472
2002-05-15 05:30:01 +00:00
John David Anglin
1c31ecf665 pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling for PA8000 or generating dwarf2...
* pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
	for PA8000 or generating dwarf2 call frame information.
	(output_call): Remove DO_FRAME_NOTES check from return pointer
	optimization.
	(following_call): Return 0 when scheduling for PA8000 or generating
	dwarf2 call frame information.  Revise comment.

From-SVN: r53470
2002-05-15 03:02:23 +00:00
Neil Booth
ac9cfadabb alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP and __IEEE_FP_INEXACT as appropriate.
config/alpha:
	* alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
	and __IEEE_FP_INEXACT as appropriate.
	(CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
	(CPP_SPEC): Remove ieee defines.
	* freebsd.h, netbsd.h: Remove ieee defines.

From-SVN: r53465
2002-05-14 20:24:19 +00:00
Richard Henderson
9b6907116c i386.c (ix86_save_reg): Make regno unsigned.
* config/i386/i386.c (ix86_save_reg): Make regno unsigned.
        (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.

From-SVN: r53464
2002-05-14 11:17:56 -07:00
Neil Booth
e6471be669 arm.h (TARGET_CPU_CPP_BUILTINS): Define.
config:
	* arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
	(CPP_SPEC): Update.
	(CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
	CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
	CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
	CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
	(EXTRA_SPECS): Update.
	* arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
	arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
	arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
	define TARGET_OS_CPP_BUILTINS if necessary.

From-SVN: r53463
2002-05-14 17:35:50 +00:00
Jason Merrill
5bf5c5cb52 * g++.dg/init/pm1.C: New test.
From-SVN: r53462
2002-05-14 17:21:21 +00:00
Alexandre Oliva
94e6e4c4f3 cp-tree.h (struct lang_type): Added non_zero_init.
* cp-tree.h (struct lang_type): Added non_zero_init.
(CLASS_NON_ZERO_INIT_P): New macro.
(zero_init_p, force_store_init_value, build_forced_zero_init): Declare.
* class.c (check_field_decls): Test non_zero_init.
* cvt.c (convert_to_pointer_force): Use cp_convert_to_pointer for
zero-to-NULL conversions.
* decl.c (obscure_complex_init): Don't reset DECL_INITIAL of a
type that needs zero-initialization without zeros.
(check_initializer_decl): Compute zero-initializer for types
that require a non-trivial one.
* init.c (build_forced_zero_init): New function.
(build_default_init): Use it.
* tree.c (zero_init_p): New function.
* typeck2.c (force_store_init_value): New function.
(process_init_constructor): Create non-trivial zero-initializers
for array members and class fields.

From-SVN: r53461
2002-05-14 17:20:47 +00:00
Neil Booth
e5f5feea65 gcc.c (cpp_options): Must pass -m* and -f* options to the front end even when only preprocessing.
* gcc.c (cpp_options): Must pass -m* and -f* options
	to the front end even when only preprocessing.
	(cc1_options): Remove redundant -lang-c.
	* tradcpp.c (main): Ignore -m options.
cp:
	* lang-specs.h: Remove redundant -lang-c++.
objc:
	* lang-specs.h: Similarly.

From-SVN: r53460
2002-05-14 17:12:16 +00:00
Vladimir Makarov
317638a809 genautomata.c (transform_3): Add code for transformation `(A,B,...)+C -> A+C,B,...'.
2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>

	* genautomata.c (transform_3): Add code for transformation
	`(A,B,...)+C -> A+C,B,...'.

From-SVN: r53459
2002-05-14 16:16:18 +00:00
Rainer Orth
db80834f53 Make-lang.in (gnat1$(exeext), [...]): Restore $(CONFIG_H) and prefix.o dependencies.
* Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
	Restore $(CONFIG_H) and prefix.o dependencies.
	(ada.stage[1-4]): Depend on stage?-start.

	* Makefile.in (b_gnatb.c): Depend on interfac.o.

From-SVN: r53458
2002-05-14 15:25:30 +00:00
Jason Merrill
affb23402d revert last checkin
From-SVN: r53457
2002-05-14 10:14:43 -04:00
Jan Hubicka
4d604303a6 final.c (end_final): Do not output profile_arcs constructor, when no functions are instrumented.
* final.c (end_final): Do not output profile_arcs constructor, when
	no functions are instrumented.

From-SVN: r53455
2002-05-14 10:49:21 +00:00
Jan Hubicka
b18b06ed94 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
From-SVN: r53454
2002-05-14 10:46:27 +00:00
Gerald Pfeifer
a12f97f0b3 install.texi: Remove special markup originally required for HTML generation with texi2html.
* doc/install.texi: Remove special markup originally required for
	HTML generation with texi2html.

From-SVN: r53453
2002-05-14 10:38:46 +00:00
Gerald Pfeifer
29f21e4f70 install.texi (Specific, [...]): Update passus on setting CONFIG_SHELL to /bin/ksh and remove alternate trick to...
* doc/install.texi (Specific, *-*-solaris2*): Update passus on
	setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
	(possibly) work around broken /bin/sh.

From-SVN: r53452
2002-05-14 09:14:50 +00:00
Andreas Schwab
d88a8ff585 Fix typo in last change.
From-SVN: r53451
2002-05-14 08:41:39 +00:00
Andreas Schwab
c1ae3eb440 sysv4.h (DO_SELECT_SECTION): Factored out of SELECT_SECTION.
* config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
	SELECT_SECTION.
	(UNIQUE_SECTION): Define to get small data correctly.

From-SVN: r53450
2002-05-14 08:39:27 +00:00
Andreas Schwab
1b18fc2c4e varasm.c (resolve_unique_section): Add third parameter flag_function_or_data_sections and use it instead of...
* varasm.c (resolve_unique_section): Add third parameter
	flag_function_or_data_sections and use it instead of
	flag_function_sections.
	(assemble_start_function): Pass flag_function_sections.
	(asm_emit_uninitialised): Pass flag_data_sections.
	(assemble_variable): Likewise.

From-SVN: r53449
2002-05-14 08:35:59 +00:00
Richard Henderson
8ee41eaf16 i386.md: Use define_constants for unspec numbers.
* config/i386/i386.md: Use define_constants for unspec numbers.
        * config/i386/i386.c: Likewise.

From-SVN: r53448
2002-05-14 00:43:37 -07:00
GCC Administrator
3b7dcffac9 Daily bump.
From-SVN: r53447
2002-05-14 07:17:42 +00:00
Tom Tromey
e86c533b01 natRuntime.cc: Don't include sys/time.h and time.h.
* java/lang/natRuntime.cc: Don't include sys/time.h and time.h.
	* java/util/natTimeZone.cc: Include sys/time.h and time.h here.
	Include platform.h.

From-SVN: r53443
2002-05-14 05:29:30 +00:00
Jeff Law
fe4b3c7996 flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
* flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
        Update prototype and callers.
        (propagate_one_insn): Stack pointer adjustments kill MEMs on
        the mem_set_list which reference the stack pointer, as do
        calls to constant functions as they may clobber outgoing
        argument space.

From-SVN: r53442
2002-05-13 22:15:57 -06:00
Mark Mitchell
c297b7649c inclhack.def (winidss_valist): Limit applicability.
* fixinc/inclhack.def (winidss_valist): Limit applicability.
	* fixinc/fixincl.x: Regenerated.
	* fixinc/tests/base/math.h: Update.
	* fixinc/tests/base/testing.h: Likewise.

From-SVN: r53441
2002-05-14 00:33:14 +00:00
Zack Weinberg
0b42c8f889 genattr.c (gen_attr): Don't emit a comma after the last enumerator.
* genattr.c (gen_attr): Don't emit a comma after the last
	enumerator.

From-SVN: r53440
2002-05-14 00:15:51 +00:00
Mark Mitchell
2f9a2cd769 jcf-write.c (write_classfile): Unlink the temporary file if it cannot be renamed.
* jcf-write.c (write_classfile): Unlink the temporary file if it
	cannot be renamed.  Use concat to build up the name of the
	temporary file

From-SVN: r53439
2002-05-14 00:04:54 +00:00
Richard Henderson
546c093ec5 cfgrtl.c (purge_dead_edges): Handle abnormal call edges created by non-local gotos.
* cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
        by non-local gotos.
        * recog.c (peephole2_optimize): Likewise.

From-SVN: r53438
2002-05-13 16:00:35 -07:00
Neil Booth
bde5348670 contrib.texi: Update my entry.
* doc/contrib.texi: Update my entry.
	* wwwdocs/htdocs/bugs.html: Update.

From-SVN: r53437
2002-05-13 22:04:30 +00:00
Nathanael Nerode
4a87f0613c * configure.in: simplify makefile fragment collection.
From-SVN: r53436
2002-05-13 17:18:59 -04:00
Nathanael Nerode
603606e740 * configure.in: remove code to build emacs.
From-SVN: r53435
2002-05-13 17:16:48 -04:00
Nathanael Nerode
a31726dc6d mh-apollo68: remove unused HDEFINES setting.
* mh-apollo68: remove unused HDEFINES setting.
* mh-dgux: remove unused HDEFINES setting.
* mh-dgux386: remove unused HDEFINES setting, duplicate RANLIB=true

From-SVN: r53434
2002-05-13 17:14:13 -04:00
Nathanael Nerode
e254d6b515 configure.in: Remove --srcdir argument from targargs and buildargs (it's always overridden in...
* configure.in : Remove --srcdir argument from targargs and buildargs
(it's always overridden in the Makefile anyway).  Rearrange a bit.

From-SVN: r53433
2002-05-13 17:11:55 -04:00
Nathanael Nerode
6cdef75d09 configure: move some logic to configure.in
* configure: move some logic to configure.in
* configure.in: move some logic from configure

From-SVN: r53432
2002-05-13 16:55:30 -04:00
Andris Pavenis
85be8c2de8 cppfiles.c (open_file): Change mode (DJGPP only) of redirected input to O_BINARY.
* cppfiles.c (open_file): Change mode (DJGPP only) of redirected
	input to O_BINARY.

From-SVN: r53431
2002-05-13 20:28:28 +00:00
Andreas Tobler
859f7aaf41 ffi_darwin.c (ffi_prep_closure): Declare fd at beginning of function (for older apple cc).
2002-05-13  Andreas Tobler  <a.tobler@schweiz.ch>

        * src/powerpc/ffi_darwin.c (ffi_prep_closure): Declare fd at
        beginning of function (for older apple cc).

From-SVN: r53430
2002-05-13 16:19:10 -04:00
Tom Tromey
8639786815 re PR libgcj/6389 (System.getProperty("") should always throw an IllegalArgumentException)
Fixes PR libgcj/6389:
	* Makefile.in: Rebuilt.
	* Makefile.am (nat_source_files): Added natTimeZone.cc.
	* java/util/natTimeZone.cc: New file.
	* java/util/TimeZone.java (getDefaultTimeZoneId): New method.
	* java/lang/System.java: Merged with Classpath.
	* java/lang/Runtime.java: Merged with Classpath.
	* java/lang/natSystem.cc (setErr0): Renamed from setErr; don't run
	security check.
	(setIn0): Renamed from setIn; don't run security check.
	(setOut0): Renamed from setOut; don't run security check.
	(file_encoding, getpwuid_adaptor, getSystemTimeZone,
	init_properties): Moved to natRuntime.cc.
	Moved many includes to natRuntime.cc.
	(isWordsBigEndian): New method.
	* java/lang/natRuntime.cc: Include Long.h, also other includes
	previously in natSystem.cc.
	(maxMemory): New function.
	(exitInternal): Renamed from `_exit'.
	(exit): Removed.
	(init): Don't set finalize_on_exit.
	(exitInternal): Use `finalizeOnExit'.
	(file_encoding, getpwuid_adaptor): New functions from
	natSystem.cc.
	(insertSystemProperties): New method, renamed from
	System::init_properties.  Don't set user.timezone.
	(_load): Don't call checkLink.
	(execInternal): New method.
	(availableProcessors): Likewise.
	(nativeGetLibname): Likewise.

From-SVN: r53429
2002-05-13 20:10:37 +00:00
Jeff Law
16133d0058 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
From-SVN: r53428
2002-05-13 14:03:26 -06:00
Jeff Law
765b8f90f4 i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
* i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
        (ia32_multipass_dfa_lookahead): New function.

From-SVN: r53427
2002-05-13 13:54:24 -06:00
Andreas Schwab
e4723404c1 * config.table: Use mh-x86pic also for x86-64.
From-SVN: r53426
2002-05-13 19:13:44 +00:00
Neil Booth
63826d5b39 gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
* gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
	(translate_options): Remove 'V'.
	(process_command): Similarly.
doc:
	* invoke.texi: Remove documentation of 'V'.

From-SVN: r53425
2002-05-13 19:10:16 +00:00