Commit Graph

50107 Commits

Author SHA1 Message Date
Roger Sayle
18c2511ccb real.c (real_maxval): New function to return the largest finite value representable in a given mode (i.e.
* real.c (real_maxval): New function to return the largest finite
	value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
	* real.h (real_maxval): Prototype here.
	* fold-const.c (fold_inf_compare): Transform comparisons against
	+-Infinity into comparisons against DBL_MAX (or equivalent).

	* gcc.c-torture/execute/ieee/inf-2.c: New test case.

From-SVN: r67112
2003-05-23 03:46:53 +00:00
Jeff Sturm
a8e097d6db re PR libgcj/10838 (GCC 3.3 [libjava]: java.io.ObjectInputStream syntax error)
PR libgcj/10838:
* java/io/ObjectInputStream (enableResolveObject):
Fixed spelling of permission name.

From-SVN: r67111
2003-05-23 03:15:36 +00:00
Benjamin Kosnik
b731048b47 re PR libstdc++/3066 (configure.in generates bad arguments for cross compiling libraries)
2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/3066.
	* configure.in: Switch target to host, don't assume newlib.
	(target_alias): Remove.
	* configure: Regenerate.
	* acinclude.m4: Same.
	* aclocal.m4: Regenerate.
	* configure.target: Same. Rename to...
	* configure.host: This.

From-SVN: r67110
2003-05-23 02:31:07 +00:00
Wolfgang Bangerth
14a9c399be Fix a loose end of a sentence in the way rth suggested.
From-SVN: r67108
2003-05-22 19:24:00 -06:00
Richard Kenner
f3f72ea08d Finish correcting inadvertent checkin.
From-SVN: r67107
2003-05-22 20:38:32 -04:00
GCC Administrator
eaf5fde9e5 Daily bump.
From-SVN: r67105
2003-05-23 00:16:06 +00:00
Richard Kenner
b8d63f74dc Remove hunk commited in error.
From-SVN: r67103
2003-05-22 20:13:04 -04:00
Paolo Carlini
d7ccc91760 std_fstream.h (_S_pback_size): Remove definition.
2003-05-22  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_fstream.h (_S_pback_size): Remove definition.
	(_M_create_pback(), _M_destroy_pback()): Simplify for a single-char
	pback buffer.
	* include/bits/fstream.tcc (_S_pback_size): Remove declaration.
	* testsuite/27_io/basic_filebuf/3.cc: Remove explicit instantiation
	of _S_pback_size for systems with no COMDAT or weak support.
	* testsuite/27_io/basic_filebuf/seekoff/10132-2.cc: Likewise.
	* testsuite/27_io/basic_filebuf/seekpos/10132-3.cc: Likewise.
	* testsuite/27_io/basic_filebuf/underflow/10096.cc: Likewise.
	* testsuite/27_io/basic_fstream/3.cc: Likewise.
	* testsuite/27_io/basic_ifstream/3.cc: Likewise.
	* testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Likewise.
	* testsuite/27_io/basic_ofstream/3.cc: Likewise.
	* testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Likewise.
	* testsuite/27_io/basic_streambuf/3.cc: Likewise.

From-SVN: r67102
2003-05-22 22:16:41 +00:00
Mike Stump
5f875c8fc6 config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the default.
* config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
	default.

From-SVN: r67101
2003-05-22 22:08:43 +00:00
DJ Delorie
d892f28886 calls.c (expand_call): If the arg block is going to grow downward...
* calls.c (expand_call): If the arg block is going to grow
downward, we need argblock to point to the top of the block,
not the bottom.

From-SVN: r67099
2003-05-22 16:54:43 -04:00
Richard Kenner
f59700f905 expr.c (expand_expr, [...]): Put into memory if constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
* expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
	constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.

From-SVN: r67098
2003-05-22 16:31:46 -04:00
Bud Davis
94e01adf1c com.c (ffecom_sym_transform_): Error out on unallocatable storage after type is set.
2003-05-22  Bud Davis  <bdavis9659@comcast.net>

	* com.c (ffecom_sym_transform_): Error out on unallocatable
	storage after type is set.

From-SVN: r67097
2003-05-22 19:49:01 +00:00
Richard Kenner
2949599469 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
From-SVN: r67096
2003-05-22 15:39:13 -04:00
Paolo Carlini
0aef8de2ae fstream.tcc (_M_underflow): simplify...
2003-05-22  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/fstream.tcc (_M_underflow): simplify:
	!__testout implies _M_filepos == _M_in_end, therefore
	the first _M_file.seekoff call is never issued.

From-SVN: r67094
2003-05-22 18:44:02 +00:00
Kaveh R. Ghazi
1f85a61235 m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
* m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
	* m68k.c: Likewise.
	* m68k.h: Likewise.

From-SVN: r67093
2003-05-22 17:54:20 +00:00
Benjamin Kosnik
e8751f3527 [multiple changes]
2003-05-22  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in: Sort cross table.
	* configure: Regenerate.

2003-05-22  Brad Spencer  <spencer@infointeractive.com>

	* configure.in: Add Solaris cross bits.

From-SVN: r67091
2003-05-22 17:04:13 +00:00
Zack Weinberg
5ded58d0e1 re PR other/2873 ([3.3 only][fixinclude] Bogus fixinclude of stdio.h from glibc 2.2.3)
PR other/2873
	* fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
	expressions to prevent triggering on recent curses.h,
	linux/nls.h, or X11/Xlib.h.
	(stdio_va_list): Add _G_va_list to bypass pattern.
	(strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
	* fixinc/fixincl.x: Regenerate.

From-SVN: r67090
2003-05-22 17:03:57 +00:00
Geert Bosch
36f9020c14 * gnat_rm.texi : Remove reference to Ada Core Technologies.
From-SVN: r67089
2003-05-22 18:25:58 +02:00
Rekha Bhintade
0421368833 sh.h (TARGET_SWITCHES): Display all the target switches when --target-help option is specified.
2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>

	* gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
	switches when --target-help option is specified.

From-SVN: r67087
2003-05-22 13:20:53 +01:00
Eric Botcazou
fdbf04c8f4 re PR bootstrap/10805 ([sun-solaris2.7] relocation error when creating sparcv9/libgcc_s.so.1)
PR bootstrap/10805
	* doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
	failure with Sun assembler 5.0 Alpha 03/27/98.

From-SVN: r67085
2003-05-22 07:53:43 +00:00
Loren J. Rittle
1490fbc12f Tweak last commit, adjust ChangeLog to reflect complete delta.
From-SVN: r67083
2003-05-22 06:30:50 +00:00
Ben Elliston
d3d2e8f014 I'm sure Loren James Little meant 2003-05-21, not 2003-03-21. :-)
From-SVN: r67082
2003-05-22 16:24:37 +10:00
Loren J. Rittle
d45d08f7a1 freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9 -D__sparc__ to match system compiler convention.
* config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
	-D__sparc__ to match system compiler convention.

From-SVN: r67080
2003-05-22 03:59:19 +00:00
Maciej W. Rozycki
df44510411 configure.in: Use curly braces in the definition of tooldir.
* configure.in: Use curly braces in the definition of tooldir.
* configure: Regenerate.

From-SVN: r67078
2003-05-21 22:49:07 -04:00
DJ Delorie
2eb98e5d4e Makefile.tpl (configure-target-libiberty): Depend only on gcc, not newlib or libgloss.
* Makefile.tpl (configure-target-libiberty): Depend only on gcc, not
newlib or libgloss.
* Makefile.in: Regenerate.

From-SVN: r67077
2003-05-21 22:36:20 -04:00
GCC Administrator
0ee29324ea Daily bump.
From-SVN: r67075
2003-05-22 00:16:07 +00:00
Jason Merrill
49b7aacb4d init.c (build_vec_delete): Copy the address into a temporary variable before calling build_vec_delete_1.
* init.c (build_vec_delete): Copy the address into a temporary
        variable before calling build_vec_delete_1.
        * decl2.c (delete_sanity): Don't call stabilize_reference.

From-SVN: r67072
2003-05-21 19:27:50 -04:00
Janis Johnson
9008d5b47e scalar-return-1_main.c: New file.
2003-05-21  Janis Johnson <janis187@us.ibm.com>

	* gcc.dg/compat/scalar-return-1_main.c: New file.
	* gcc.dg/compat/scalar-return-1_x.c: New file.
	* gcc.dg/compat/scalar-return-1_y.c: New file.
	* gcc.dg/compat/scalar-return-2_main.c: New file.
	* gcc.dg/compat/scalar-return-2_x.c: New file.
	* gcc.dg/compat/scalar-return-2_y.c: New file.
	* gcc.dg/compat/struct-return-3_main.c: New file.
	* gcc.dg/compat/struct-return-3_y.c: New file.
	* gcc.dg/compat/struct-return-3_x.c: New file.
	* gcc.dg/compat/struct-return-2_main.c: New file.
	* gcc.dg/compat/struct-return-2_x.c: New file.
	* gcc.dg/compat/struct-return-2_y.c: New file.

(I thought I had committed these yesterday)

From-SVN: r67070
2003-05-21 23:14:22 +00:00
Danny Smith
81888fcd42 gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero value, not just if defined.
* gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero
	value, not just if defined.

	* libstdc++-v3/config/os/mingw32/os_defines.h (__GTHREAD_HIDE_WIN32API):
	Define to 1 by defualt.
	(NOMINMAX): Define.

From-SVN: r67069
2003-05-21 22:16:08 +00:00
John David Anglin
f48758e4ee re PR target/6428 ([hppa*-hp-hpux] gmon.out is not generated when application to be profiled is linked with shared libgcc)
PR target/6428
	* pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
	directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
	option is used without `-static'.
	* pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
	* pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
	* g++.old-deja/g++.law/profile1.C (dg-options): Add -static to options
	for hppa*-hp-hpux*.
	* gcc.dg/20021014-1.c (dg-options): Likewise.
	* gcc.dg/nest.c (dg-options): Likewise.

From-SVN: r67068
2003-05-21 22:00:58 +00:00
Bob Wilson
7a29f483cf xtensa.h (MASK_SERIALIZE_VOLATILE, [...]): Delete.
* config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
        TARGET_SERIALIZE_VOLATILE): Delete.
        (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
        (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
        (TARGET_SWITCHES): Remove "-mserialize-volatile" and
        "-mno-serialize-volatile".
        * config/xtensa/xtensa.c (print_operand): Remove checks of
        TARGET_SERIALIZE_VOLATILE.
        * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
        * doc/invoke.texi (Option Summary, Xtensa Options): Remove
        "-mserialize-volatile" and "-mno-serialize-volatile" options.

From-SVN: r67067
2003-05-21 21:23:03 +00:00
DJ Delorie
862fced8b5 Makefile.tpl: Add missing empty maybe-check-gcc target.
* Makefile.tpl: Add missing empty maybe-check-gcc target.
* Makefile.in: Regenerate.

From-SVN: r67066
2003-05-21 17:10:32 -04:00
Paolo Carlini
98ce9d068e std_fstream.h (_M_set_buffer): Fix indentation.
2003-05-21  Paolo Carlini  <pcarlini@unitus.it>

	* include/std/std_fstream.h (_M_set_buffer): Fix indentation.

From-SVN: r67065
2003-05-21 20:22:25 +00:00
Nathan Sidwell
b190f23906 c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
* c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
	(nested_function): Likewise.
	(notype_nested_function): Likewise.
cp:
	* pt.c (register_specialization): Update the decl's location,
	if necessary.
	(check_explicit_specialization): Likewise.

From-SVN: r67063
2003-05-21 14:27:46 +00:00
Nick Clifton
278566a235 Update overflow type for R_XSTORMY16_16 reloc.
From-SVN: r67062
2003-05-21 13:53:04 +00:00
Jonathan Wakely
b3b33a51bd index.html: Fix typo.
2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/faq/index.html: Fix typo.
	* docs/html/faq/index.txt: Regenerate.

From-SVN: r67061
2003-05-21 13:18:45 +01:00
Jonathan Wakely
baf64b4ec1 test.html: Fix markup.
2003-05-21  Jonathan Wakely  <redi@gcc.gnu.org>

	* docs/html/test.html: Fix markup.

From-SVN: r67060
2003-05-21 13:15:18 +01:00
Nathan Sidwell
6aeed3e155 remove conflict marker
From-SVN: r67059
2003-05-21 11:14:22 +00:00
Nathan Sidwell
66804d9eec c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
* c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
	* c-parse.in (reswords): Remove __bounded__ and __unbounded__.
	(rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
	* print-tree.c (print_node): Remove ambient-boundedness.
	* tree.h (tree_common): Remove bounded_flag.
	(BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
	BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
	MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
	TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
	TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
	Remove.
	(TYPE_QUALS): Remove BOUNDED.
	(TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
	(TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
	TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
	TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
	VA_LIST_POINTER_DEPTH): Remove.
	(struct tree_type): Remove pointer_depth.
treelang:
	* treetree.c (reswords): Remove __bounded__, __unbounded__.

From-SVN: r67058
2003-05-21 11:13:21 +00:00
Kevin B. Hendricks
6184e8a447 invoke.texi (Option Summary, [...]): Document new options.
* doc/invoke.texi (Option Summary, PowerPC Options): Document
        new options.

Co-Authored-By: David Edelsohn <edelsohn@gnu.org>

From-SVN: r67056
2003-05-20 23:59:21 -04:00
Kaveh R. Ghazi
58228df67b c-pretty-print.c (pp_c_integer_literal): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX.
gcc:
	* c-pretty-print.c (pp_c_integer_literal): Use
	HOST_WIDE_INT_PRINT_DOUBLE_HEX.

cp:
	* error.c (dump_expr): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX.

From-SVN: r67055
2003-05-21 01:39:38 +00:00
Roger Sayle
bc6688b40e gcse.c (cprop_jump): Make use of REG_EQUAL notes on both setcc and jump, if they exist.
* gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
	setcc and jump, if they exist.  If substituted instruction
	fails to validate, store current effort in a REG_EQUAL note.
	(cprop_insn): Don't attempt further substitutions if the
	current instruction has been deleted.
	(local_cprop_pass): Likewise.

	* jump.c (redirect_jump):  Also update REG_EQUAL note, if
	one is attached to the jump instruction.
	(invert_jump): Delete REG_EQUAL note on jump, if one exists.

Co-Authored-By: Joern Rennecke <joern.rennecke@superh.com>
Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>

From-SVN: r67054
2003-05-21 01:16:33 +00:00
Ian Lance Taylor
fc351800ec * MAINTAINERS: Update my e-mail address.
From-SVN: r67053
2003-05-21 01:15:30 +00:00
Danny Smith
93c858e31a stubs.c (hypot, [...]): Don't divide by zero.
* libmath/stubs.c (hypot, hypotf, hypotl): Don't divide by
	zero.
	Update copyright year.

From-SVN: r67051
2003-05-21 00:51:24 +00:00
Kaveh Ghazi
c1625e69f7 Concatenate one of the fprintf calls in the previous change.
From-SVN: r67050
2003-05-21 00:47:44 +00:00
Danny Smith
16e3196411 re PR c++/9738 ([mingw] Internal compiler error in rest_of_compilation, at toplev.c: 3491)
PR c++/9738

	* config/i386/winnt.c (i386_pe_encode_section_info): Enable
	even if not first.

	* cp/decl.c (duplicate_decls): Re-invoke make_decl_rtl
	if the old decl had instantiated DECL_RTL.
	(Base on Richard Henderson 2003-05-13 patch to c-decl.c).

	* testsuite/g++.dg/ext/dllimport2.C: New file.
	* testsuite/g++.dg/ext/dllimport3.C: New file.

From-SVN: r67049
2003-05-21 00:33:27 +00:00
GCC Administrator
36f72608a3 Daily bump.
From-SVN: r67047
2003-05-21 00:16:37 +00:00
Kaveh R. Ghazi
1e29b8d725 genautomata.c (output_description, [...]): Add missing specifiers.
* genautomata.c (output_description, output_automaton_units,
	output_state_arcs): Add missing specifiers.

From-SVN: r67045
2003-05-21 00:01:24 +00:00
Bob Wilson
6c2e8d1cf9 lib1funcs.asm: Avoid use of .Lfe* in .size directives.
* config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
	(do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
	(__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
	(nsau): Rename to do_nsau.  Provide alternate version for use when
	the NSAU instruction is available.
	(__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
	(__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
	* config/xtensa/xtensa-config.h: Update comments to match binutils.
	(XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
	* config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
	(TARGET_ABS, TARGET_ADDX): Define.
	(TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
	(TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
	* config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
	*subx8): Set predicate condition to TARGET_ADDX.
	(abssi2): Set predicate condition to TARGET_ABS.
	* doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
	"-maddx", and "-mno-addx" options.
	(Xtensa Options): Likewise.  Also tag some opcode names with @code.

From-SVN: r67044
2003-05-20 23:39:09 +00:00
Paolo Carlini
69cf7a5532 4.cc: Fix typo.
2003-05-20  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/basic_filebuf/close/char/4.cc: Fix typo.

From-SVN: r67043
2003-05-20 23:03:28 +00:00