Commit Graph

34172 Commits

Author SHA1 Message Date
Christopher Faylor
052d4b6cd7 * config/i386/cygwin.h (CPP_SPEC): Add missing space before w32api include.
From-SVN: r40059
2001-02-25 19:28:09 +00:00
Zack Weinberg
e1b71de925 config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd.
* config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd.
        * config/mips/mips.c (mips_make_temp_file): Set temp_filename
        properly.
        (mips_asm_file_end): Free temp_filename here.

From-SVN: r40058
2001-02-25 17:23:42 +00:00
Richard Kenner
397be6cf54 i386-protos.h (ix86_set_move_mem_attrs): Move decl.
* config/i386/i386-protos.h (ix86_set_move_mem_attrs): Move decl.
	* config/i386/i386.c (ix86_set_move_mem_attrs_1): Fix typo.

From-SVN: r40056
2001-02-25 11:35:48 -05:00
Richard Kenner
4ddb47b351 * config/i386/i386.md (movstrsi): Handle FAIL case.
From-SVN: r40054
2001-02-25 08:33:59 -05:00
Neil Booth
618cdda7f0 cppinit.c (builtin_array): Update.
* cppinit.c (builtin_array): Update.
        (init_builtins): Flag builtins to warn if redefined or
        undefined.  Define __GXX_WEAK as a normal macro.
        * cpplib.c (do_undef): Warn if flagged NODE_WARN.
        * cpplib.h (NODE_WARN): New flag.
        * cppmacro.c (builtin_macro): Remove handling of __GXX_WEAK__.
        Handle __STDC__ as a builtin only on Solaris.
        (warn_of_redefinition): Renamed from check_macro_definition.
        Reverse sense of test.  Always warn if NODE_WARN.
        (_cpp_create_definition): Use warn_of_redefinition.  Flag
        any macro beginning with "__STDC_" to require a mandatory
        warning if redefined or undefined.

From-SVN: r40053
2001-02-25 09:43:03 +00:00
Greg Freemyer
f5500e44c0 mathconf.h (GET_LDOUBLE_MSW64): Fix thinko.
2001-02-25  Greg Freemyer <freemyer@NorcrossGroup.com>

	* libmath/mathconf.h (GET_LDOUBLE_MSW64): Fix thinko.

From-SVN: r40051
2001-02-25 09:24:10 +00:00
GCC Administrator
2dae598241 Daily bump.
From-SVN: r40049
2001-02-25 08:16:08 +00:00
Zack Weinberg
000b5f54b5 xm-interix.h, [...]: Don't define any of...
* xm-interix.h, xm-lynx.h, alpha/xm-vms.h, convex/xm-convex.h,
	i370/xm-i370.h, i370/xm-linux.h, i370/xm-mvs.h, i370/xm-oe.h,
	i386/xm-beos.h, i386/xm-dos.h, i386/xm-mingw32.h,
	i860/xm-i860.h, m68k/xm-3b1.h, m68k/xm-amix.h, m68k/xm-aux.h,
	m68k/xm-crds.h, m68k/xm-mot3300.h, m88k/xm-sysv3.h,
	mips/xm-mips.h, rs6000/xm-beos.h, vax/xm-vms.h:
	Don't define any of:
	USE_PROTOTYPES, vfork, mktemp, SVR3, NO_SYS_PARAMS_H,
	P_tmpdir, MVS, NO_DBX_FORMAT, USE_STDARGS, STDC_HEADERS,
	NO_PRECOMPILES, i860, __PTR_TO_INT, __INT_TO_PTR, rindex,
	index, FULL_PROTOTYPES, AUX, R_OK, W_OK, X_OK, F_OK,
	STACK_DIRECTION, MIPS, MAX_READ_LEN, MAX_WRITE_LEN.

	* alpha/xm-alpha.h, clipper/xm-clix.h, d30v/xm-d30v.h,
	fr30/xm-fr30.h, i370/xm-linux.h: Remove commented-out macro
	definitions.

	* m68k/xm-3b1.h, m68k/xm-crds.h, m88k/xm-sysv3.h:
	Delete now-empty file.

	* alpha/vms.h: Define NEED_ATEXIT here...
	* alpha/xm-vms.h: ...not here.

	* i386/cygwin.h: Don't define PARAMS.
	* mips/mips.c: Don't prototype mktemp.  Don't define
	P_tmpdir.  Use make_temp_file to create temporary files.
	Don't be clever and delete temporary files early.
	* f/com.c: Don't define STDC_HEADERS, autoconf handles it.
	* config.gcc: Drop references to deleted files.  Don't define
	FULL_PROTOTYPES.
	* gcc.texi: Don't mention USE_PROTOTYPES.

From-SVN: r40048
2001-02-25 05:23:38 +00:00
Richard Kenner
0e4970d732 i386.c (ix86_set_move_mem_attrs): New function.
* config/i386/i386.c (ix86_set_move_mem_attrs): New function.
	(ix86_set_move_mem_attrs_1): Likewise.
	* config/i386/i386-protos.h (ix86_set_move_mem_attrs): New declaration.
	* config/i386/i386.md (movstrsi): Call it.

From-SVN: r40046
2001-02-24 20:28:23 -05:00
Zack Weinberg
a59b81bed9 config.gcc: Expunge references to alpha/t-pe...
* config.gcc: Expunge references to alpha/t-pe, pa/t-openbsd,
        x-linux-aout, i386/t-go32, t-osf, m68k/x-m68kv,
        ns32k/xm-netbsd.h, rs6000/t-openbsd, rs6000/t-xnewas,
        rs6000/x-aix41-gld.  These are nonexistent, empty, or obsolete.

        (i750a-*-*): Error here if hosting on i750a.
        (alpha*-*-winnt*, ix86-*-winnt3*): Remove stanzas entirely.

        * x-linux-aout, xm-freebsd.h, i386/beos-pe.h, ns32k/xm-netbsd.h:
        Remove (empty modulo comments).

        * 1750a/xm-1750a.h, alpha/config-nt.sed, alpha/win-nt.h,
        alpha/xm-winnt.h, i386/config-nt.sed, i386/os2.h,
        i386/t-winnt, i386/win-nt.h, i386/xm-freebsd.h, i386/xm-os2.h,
        i386/xm-winnt.h, m68k/x-alloca-c, m88k/x-dguxbcs,
        mips/x-netbsd, mips/x-nws3250v4, rs6000/t-xnewas,
        rs6000/t-xrs6000, rs6000/xm-cygwin.h: Remove (obsolete)

        * i386/crtdll.h, i386/cygwin.h, i386/mingw32.h:
        Remove reference to winnt.h in comment.
        * rs6000/t-newas, rs6000/t-rs6000: Override LIBGCC1_TEST to null.

From-SVN: r40045
2001-02-25 01:24:06 +00:00
Zack Weinberg
db00982534 config.gcc: Expunge references to alpha/t-pe...
* config.gcc: Expunge references to alpha/t-pe, pa/t-openbsd,
	x-linux-aout, i386/t-go32, t-osf, m68k/x-m68kv,
	ns32k/xm-netbsd.h, rs6000/t-openbsd, rs6000/t-xnewas,
	rs6000/x-aix41-gld.  These are nonexistent, empty, or obsolete.

	(i750a-*-*): Error here if hosting on i750a.
	(alpha*-*-winnt*, ix86-*-winnt3*): Remove stanzas entirely.

	* x-linux-aout, xm-freebsd.h, i386/beos-pe.h, ns32k/xm-netbsd.h:
	Remove (empty modulo comments).

	* 1750a/xm-1750a.h, alpha/config-nt.sed, alpha/win-nt.h,
	alpha/xm-winnt.h, i386/config-nt.sed, i386/os2.h,
	i386/t-winnt, i386/win-nt.h, i386/xm-freebsd.h, i386/xm-os2.h,
	i386/xm-winnt.h, m68k/x-alloca-c, m88k/x-dguxbcs,
	mips/x-netbsd, mips/x-nws3250v4, rs6000/t-xnewas,
	rs6000/t-xrs6000, rs6000/xm-cygwin.h: Remove (obsolete)

	* i386/crtdll.h, i386/cygwin.h, i386/mingw32.h:
	Remove reference to winnt.h in comment.
	* rs6000/t-newas, rs6000/t-rs6000: Override LIBGCC1_TEST to null.

From-SVN: r40044
2001-02-25 01:06:15 +00:00
Franz Sirl
d82a963983 20010224-1.c: New test.
2001-02-24  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * gcc.c-torture/execute/20010224-1.c: New test.

From-SVN: r40043
2001-02-25 00:10:59 +00:00
Franz Sirl
c7b3067700 loop.c (check_dbra_loop): A biv has uses besides counting if it is used to set another biv.
2001-02-24  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

        * loop.c (check_dbra_loop): A biv has uses besides counting if it is
        used to set another biv.

From-SVN: r40042
2001-02-25 00:08:01 +00:00
Richard Kenner
bd015d3783 tree.h (BLOCK_DEAD): New macro.
* tree.h (BLOCK_DEAD): New macro.
	(struct tree_block): New flag, dead_flag.
	* print-tree.c (print_node, case 'b'): Print missing fields.
	* emit-rtl.c (remove_unnecessary_notes): Set BLOCK_DEAD.
	* function.c (identify_blocks): Enable test for misplaced notes.
	(all_blocks): Skip BLOCK_DEAD blocks.
	* integrate.c (integrate_decl_tree): Likewise.

From-SVN: r40039
2001-02-24 08:15:55 -05:00
Richard Kenner
f900ecd8a7 errors.c (internal_error, [...]): New functions.
* errors.c (internal_error, trim_filename): New functions.
	(fancy_abort): Call internal_error.
	* errors.h (internal_error, trim_filename): New declarations.

From-SVN: r40037
2001-02-24 06:45:36 -05:00
Zack Weinberg
1db87931be Kill stray blank lines
From-SVN: r40036
2001-02-24 08:17:40 +00:00
GCC Administrator
e61088ff2e Daily bump.
From-SVN: r40034
2001-02-24 08:16:12 +00:00
Rainer Orth
a79ffa5a8c sendmsg.c (__objc_forward): Delete strlen() declaration.
Fri Feb 23 18:12:00 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

* sendmsg.c (__objc_forward): Delete strlen() declaration.

From-SVN: r40033
2001-02-24 06:14:36 +00:00
Alexandre Oliva
0651fbc093 mn10300.h (DBX_REGISTER_NUMBER): Reverted 2000-08-26's patch.
* config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Reverted
2000-08-26's patch.
(EXTRA_CONSTRAINT): Formatting changes.

From-SVN: r40031
2001-02-24 04:20:15 +00:00
Per Bothner
f9edddabe7 Change to sometimes include class name in ClassFormatError message.
From-SVN: r40030
2001-02-23 20:15:31 -08:00
Kaveh R. Ghazi
5ea1bc0e46 * rtl.c (rtl_check_failed_code2): Fix typo in last change.
From-SVN: r40029
2001-02-24 03:57:59 +00:00
Per Bothner
b80b8cfd29 Throwable.java (CPlusPlusDemangler): Pass -s java to c++filt to select java-style output.
* java/lang/Throwable.java (CPlusPlusDemangler):  Pass -s java to
	c++filt to select java-style output.

From-SVN: r40027
2001-02-23 19:52:49 -08:00
Per Bothner
e4087691f4 Handle compiling multiple input files at once, and @FILE syntax.
* gcj.texi:  Updated documentation to match.
and parse.h inadvertently left out from previous check-in.

From-SVN: r40026
2001-02-23 19:36:22 -08:00
Per Bothner
fea2d5da9c Handle compiling multiple input files at once, and @FILE syntax. See ChangeLog.
From-SVN: r40024
2001-02-23 19:28:39 -08:00
Per Bothner
1aed31b63c gcc.c (record_temp_file, [...]): Make non-static, so they can be called from java/jvspec.c.
* gcc.c (record_temp_file, pfatal_with_name, error):  Make non-static,
	so they can be called from java/jvspec.c.
	* gcc.h (record_temp_file, pfatal_with_name, error):  Declare.

From-SVN: r40023
2001-02-23 19:20:18 -08:00
Jan Hubicka
4dd2ac2c35 i386.c (ix86_frame): New structure.
* i386.c (ix86_frame): New structure.
	(ix86_compute_frame_size): Kill.
	(ix86_compute_frame_layout): New.
	(ix86_save_reg): New.
	(ix86_can_use_return_insn_p): Use frame layout stuff.
	(ix86_expand_prologue): Likewise.
	(ix86_expand_epilogue): Likewise.
	(ix86_initial_elimination_offset): Likewise.
	(ix86_nsaved_regs): Use ix86_save_reg.
	(ix86_emit_save_regs): Likewise.

From-SVN: r40022
2001-02-24 02:34:05 +00:00
Jan Hubicka
a686dbf86a flow.c (find_sub_basic_blocks): New function.
* flow.c (find_sub_basic_blocks): New function.
	(split_block): Be ready for basic block introduced by CODE_LABEL.
	(commit_one_edge_insertion): Call find_sub_basic_block.

	* flow.c (make_edges): Add edge from entry for blocks starting with
	label having ALTERNATE_NAME

From-SVN: r40021
2001-02-24 02:32:33 +00:00
Jan Hubicka
016030fea6 function.c (epilogue_done): Be ready for first basic block not containing PROLOGUE_END note.
* function.c (epilogue_done): Be ready for first basic block not
	containing PROLOGUE_END note.
	(reposition_prologue_and_epilogue_notes): Avoid placing
	PROLOGUE_END note between BASIC_BLOCK.

From-SVN: r40020
2001-02-24 02:22:07 +00:00
Jan Hubicka
c9212f333a * loop.c (canonicalize_condition): Move to reversed_comparison_code.
From-SVN: r40019
2001-02-24 02:18:38 +00:00
DJ Delorie
4f0a3098c5 i960.h (FRAME_POINTER_REQUIRED): Revert removal of check for current_function_has_nonlocal_goto from 1999-11-12.
* config/i960/i960.h (FRAME_POINTER_REQUIRED): Revert removal of
check for current_function_has_nonlocal_goto from 1999-11-12.

From-SVN: r40018
2001-02-23 18:05:33 -05:00
Richard Kenner
fce687f876 diagnostic.c (trim_filename): No longer static.
* diagnostic.c (trim_filename): No longer static.
	* toplev.h (trim_filename): Declare.
	* rtl.c (rtl_check_failed_bounds): Call internal_error.
	(rtl_check_failed_type1, rtl_check_failed_type2): Likewise.
	(rtl_check_failed_code1, rtl_check_failed_code2): Likewise.
	(rtvec_check_failed_bounds): Likewise.
	* tree.c (tree_check_failed, tree_class_check_failed): Likewise.

From-SVN: r40016
2001-02-23 16:17:06 -05:00
Richard Kenner
3cc247a81a convert.c (convert_to_integer): Don't do unsigned unless result or both inputs are unsigned.
* convert.c (convert_to_integer): Don't do unsigned unless result or
	both inputs are unsigned.

From-SVN: r40014
2001-02-23 16:10:35 -05:00
Richard Kenner
ac50176d22 fold-const.c (fold_convert): Don't call size_int_type_wide if input overflows.
* fold-const.c (fold_convert): Don't call size_int_type_wide if
	input overflows.

From-SVN: r40012
2001-02-23 16:05:41 -05:00
Richard Kenner
9b58f73986 c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
* c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
	* ch/decl.c, f/com.c, java/decl.c: Likewise.

From-SVN: r40010
2001-02-23 15:38:58 -05:00
Richard Kenner
e82a84c471 * varasm.c (output_constant): Recompute CODE after lang-specific fn.
From-SVN: r40008
2001-02-23 15:28:58 -05:00
Benjamin Kosnik
8ac2677fbb codecvt.h: Use __builtin_alloca.
2001-02-23  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/codecvt.h: Use __builtin_alloca.
	* include/bits/ostream.tcc: Same.
	* include/bits/fstream.tcc: Same.

From-SVN: r40007
2001-02-23 19:22:04 +00:00
Alexandre Oliva
cd33b1d7ec Use VAR=${VAR=...} form.
From-SVN: r40005
2001-02-23 19:13:33 +00:00
David Edelsohn
eb5bc1fa86 Use $BUILD_DIR/../../gcc/xgcc
From-SVN: r40003
2001-02-23 19:06:23 +00:00
Jeffrey Oldham
d5d063d72d Makefile.in (resource.o): Add params.h dependence.
2001-02-23  Jeffrey Oldham  <oldham@codesourcery.com>

	* Makefile.in (resource.o): Add params.h dependence.
	* params.def (MAX_DELAY_SLOT_LIVE_SEARCH): New parameter.
	* params.h (MAX_DELAY_SLOT_LIVE_SEARCH): Likewise.
	* resource.c: Add dependence on params.h.
	(current_live_regs): Fix explanatory comment.
	(find_basic_block): Add new parameter to permit limiting search
	for a BARRIER.
	(mark_target_live_regs): Add new argument to find_basic_block call.
	(incr_ticks_for_insn): Likewise.

From-SVN: r40001
2001-02-23 17:47:52 +00:00
Phil Edwards
12961d6516 iostream.h: Expose std::flush in old headers.
2001-02-23  Phil Edwards  <pme@sources.redhat.com>

	c++/2052
	* include/backward/iostream.h:  Expose std::flush in old headers.

From-SVN: r40000
2001-02-23 17:47:34 +00:00
Gabriel Dos Reis
3d7c9b7e5b diagnostic.c (output_to_stream): Rename to output_buffer_to_stream.
* diagnostic.c (output_to_stream): Rename to
	output_buffer_to_stream. Loses the stream parameter.
	(init_output_buffer): Set diagnosic_buffer's stream.
	(flush_diagnostic_buffer): Adjust.
	(default_print_error_function): Likewise.
	(finish_diagnostic): Likewise.
	(verbatim): Likewise.

	* diagnostic.h (struct output_buffer): Add `stream' field.
	(output_buffer_attached_stream): New macro.

From-SVN: r39999
2001-02-23 17:28:25 +00:00
Jakub Jelinek
fba2c0cdbc fold-const.c (extract_muldiv): If not MULT_EXPR, check if either operand is divisible by C.
* fold-const.c (extract_muldiv) [case PLUS_EXPR]: If not MULT_EXPR,
	check if either operand is divisible by C.
	(multiple_of_p): Handle LSHIFT_EXPR with small constant shift.
	If type is signed, consider negative numbers as well.

	* gcc.c-torture/execute/20010222-1.c: New test.

From-SVN: r39996
2001-02-23 13:28:07 +01:00
Gabriel Dos Reis
487f145008 Remove special-casing on target.
Remove special-casing on target.  Use gcc instead of g++ to build
gen-num-limits.cc

From-SVN: r39994
2001-02-23 09:30:47 +00:00
GCC Administrator
8881338e3d Daily bump.
From-SVN: r39992
2001-02-23 08:16:09 +00:00
Benjamin Kosnik
6259cad9af tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.
2001-02-22  Benjamin Kosnik  <bkoz@redhat.com>

	* tests_flags.in (CXXFLAGS): Add -rpath to gcc build dir.

	* include/bits/codecvt.h: Use alloca instead of __extension__ for
	the time being.
	* include/bits/ostream.tcc: Same.
	* include/bits/std_ostream.h: Same.
	* include/bits/fstream.tcc: Same.
	* include/bits/locale_facets.tcc: Add typename.
	* include/bits/c++config (_GLIBCPP_FULLY_COMPLIANT_HEADERS): Enable.

From-SVN: r39991
2001-02-23 07:12:03 +00:00
Mark Mitchell
25200ab2eb * spew.c (yylex): Correct handling of friends.
From-SVN: r39990
2001-02-23 02:33:03 +00:00
Richard Henderson
515edc9bf8 crtbegin.asm (.fini): Use pc-relative relocs to reach .text instead of gp-relative relocs.
* config/ia64/crtbegin.asm (.fini): Use pc-relative relocs to
        reach .text instead of gp-relative relocs.
        * config/ia64/crtend.asm (.init): Likewise.

From-SVN: r39986
2001-02-22 14:57:28 -08:00
Mark Mitchell
f58c04acd7 mangle.c (write_encoding): Pass write_function_type the FUNCTION_DECL for the function being encoded.
* mangle.c (write_encoding): Pass write_function_type the
	FUNCTION_DECL for the function being encoded.
	(write_function_type): Pass it along to write_bare_function_type.
	(write_bare_function_type): Pass it along to write_method_parms.
	(write_method_parms): Don't mangle the compiler-generated
	parameters to a constructor or destructor.

From-SVN: r39985
2001-02-22 21:46:06 +00:00
Andreas Jaeger
3844cd2e43 * extend.texi (C++ Attributes): Fix typo.
From-SVN: r39982
2001-02-22 16:41:49 +01:00
Andreas Jaeger
9c96f3f85e optimize.c: Include toplev.h for note_deferral_of_defined_inline_function prototype.
* optimize.c: Include toplev.h for
	note_deferral_of_defined_inline_function prototype.

From-SVN: r39981
2001-02-22 15:22:02 +01:00