Commit Graph

50946 Commits

Author SHA1 Message Date
Nathanael Nerode
89aec4b191 mangle.c: Convert to ISO C.
2003-06-16  Jens-Michael Hoffmann  <jensmh@gmx.de>
	* mangle.c: Convert to ISO C.

From-SVN: r68050
2003-06-17 00:06:38 +00:00
Aldy Hernandez
0a84d874f1 simplify-rtx.c (simplify_subreg): Do not over-extend vector constants.
2003-06-16  Aldy Hernandez  <aldyh@redhat.com>

	* simplify-rtx.c (simplify_subreg): Do not over-extend vector
	constants.

	* testsuite/gcc.c-torture/execute/simd-4.c: New.

[[Split portion of a mixed commit.]]

From-SVN: r68049.2
2003-06-17 00:05:09 +00:00
Aldy Hernandez
825bd25cb6 simplify-rtx.c (simplify_subreg): Do not over-extend vector constants.
2003-06-16  Aldy Hernandez  <aldyh@redhat.com>

	* simplify-rtx.c (simplify_subreg): Do not over-extend vector
	constants.

	* testsuite/gcc.c-torture/execute/simd-4.c: New.

[[Split portion of a mixed commit.]]

From-SVN: r68047.2
2003-06-17 00:03:24 +00:00
Nathanael Nerode
c24851dee5 * config/ip2k/ip2k.h: Remove target-independent comments.
From-SVN: r68046
2003-06-17 00:03:11 +00:00
Nathanael Nerode
9cd598aa72 config.gcc: Explicitly mention elfos.h in ip2k entry.
* config.gcc: Explicitly mention elfos.h in ip2k entry.
	* config/ip2k/ip2k.h: Don't #include it here.

From-SVN: r68045
2003-06-16 22:38:25 +00:00
Andreas Jaeger
e7bb351101 abi_check.cc: Create summary report.
2003-06-16  Andreas Jaeger  <aj@suse.de>

        * testsuite/abi_check.cc: Create summary report.

From-SVN: r68044
2003-06-16 22:09:03 +00:00
Kaveh R. Ghazi
fad205ffba decl.c, [...]: Don't use the PTR macro.
cp:
	* cp/decl.c, cp/pt.c, cp/search.c, cp/tree.c: Don't use the PTR
	macro.

gcc:
	* bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
	config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
	dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
	function.c, gcc.c, genoutput.c, gensupport.c, global.c,
	haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
	loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
	read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
	stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
	the PTR macro.

From-SVN: r68043
2003-06-16 21:41:10 +00:00
Kaveh R. Ghazi
4ff5837176 gengtype.c: Don't use UNION_INIT_ZERO.
* gengtype.c: Don't use UNION_INIT_ZERO.
	* system.h (UNION_INIT_ZERO): Delete.

From-SVN: r68042
2003-06-16 21:29:20 +00:00
Paolo Carlini
8363b7738f 1-in.cc: Fix for systems with BUFSIZ != 8192.
2003-06-16  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/basic_filebuf/sgetn/char/1-in.cc: Fix
	for systems with BUFSIZ != 8192.
	* testsuite/27_io/basic_filebuf/sgetn/char/1-io.cc: Ditto.
	* testsuite/27_io/basic_filebuf/sgetn/char/1-out.cc:
	Minor tweaks.

From-SVN: r68041
2003-06-16 21:24:40 +00:00
Nathanael Nerode
b57b79f767 * tree.c: Convert to ISO C.
From-SVN: r68040
2003-06-16 21:04:12 +00:00
Richard Henderson
799ab2c713 simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of GET_MODE_UNIT_SIZE when simplifying constant vectors.
2003-06-16  Richard Henderson  <rth@redhat.com>

	* simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
	GET_MODE_UNIT_SIZE when simplifying constant vectors.

From-SVN: r68038
2003-06-16 20:56:20 +00:00
Andreas Jaeger
33b0d00f2a timevar.c (get_run_time): Remove function provided also by libiberty.
* timevar.c (get_run_time): Remove function provided also by
	libiberty.
	* timevar.h: Remove get_run_time declaration.

From-SVN: r68037
2003-06-16 22:40:47 +02:00
Kazu Hirata
3391875b69 m68hc11.c (m68hc11_rtx_costs): Remove unreachable code.
* config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
	unreachable code.

From-SVN: r68036
2003-06-16 20:14:44 +00:00
Kaveh R. Ghazi
9a23858679 builtin-attrs.def, [...]: Don't use macros from "symcat.h", instead rely on ISO C.
* builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
	cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
	use macros from "symcat.h", instead rely on ISO C.

	* system.h: Don't include "symcat.h".
	* configure.in (AC_C_STRINGIZE): Delete.
	* config.in, configure: Regenerate.

From-SVN: r68035
2003-06-16 19:14:22 +00:00
Mark Mitchell
786a48dd97 gcc-dg.exp (dg-xfail-if): Fix thinko.
* lib/gcc-dg.exp (dg-xfail-if): Fix thinko.
	* gcc.c-torture/compile/simd-5.c: Remove spurious PowerPC-64 XFAIL
	indications.

From-SVN: r68034
2003-06-16 19:12:15 +00:00
Mark Mitchell
a48e7d3616 simd-5.c: Correct SPARC XFAIL indications.
* gcc.c-torture/compile/simd-5.c: Correct SPARC XFAIL indications.
	Remove spurious PowerPC-64 XFAIL indications.

From-SVN: r68033
2003-06-16 19:04:36 +00:00
Richard Kenner
f0c4fac7fe * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
From-SVN: r68032
2003-06-16 15:00:37 -04:00
Richard Kenner
55448d1203 Whitespace change.
From-SVN: r68031
2003-06-16 14:56:09 -04:00
Benjamin Kosnik
5ab481e097 [multiple changes]
2003-06-16  Andreas Jaeger  <aj@suse.de>

	* acinclude.m4 (GLIBCPP_CONFIGURE_TESTSUITE): Make
	check-abi multilib aware.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

2003-06-16  Benjamin Kosnik  <bkoz@redhat.com>
            Andreas Jaeger  <aj@suse.de>

	* configure.host: Set x86_64 abi_baseline pair correctly.

From-SVN: r68029
2003-06-16 18:44:50 +00:00
Richard Kenner
7f42b6d718 tree.h (STMT_CHECK): New macro.
* tree.h (STMT_CHECK): New macro.
	Also upper-case argument names on all checking macros and
	fix some whitespace problems; assume CODE argument does not
	have side-effects.

From-SVN: r68028
2003-06-16 14:27:15 -04:00
Kaveh R. Ghazi
2a0621b949 scan.h: Convert to ISO C.
* scan.h: Convert to ISO C.
	* system.h: Likewise.

From-SVN: r68027
2003-06-16 18:24:08 +00:00
Graeme Peterson
83415b0b13 * MAINTAINERS (Write After Approval): Add myself.
From-SVN: r68026
2003-06-16 18:04:10 +00:00
Joern Rennecke
26d8387960 fix typo in last patch
From-SVN: r68024
2003-06-16 18:12:12 +01:00
Kaveh R. Ghazi
89d09f835a c-format.c (dynamic_format_types): New pointer for dynamic data.
* c-format.c (dynamic_format_types): New pointer for dynamic data.
	(find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
	New functions split out of...
	(handle_format_attribute): ...here.

From-SVN: r68023
2003-06-16 16:34:04 +00:00
J"orn Rennecke
735cb76eba sh.h (REG_CLASS_FROM_LETTER): Change to: (REG_CLASS_FROM_CONSTRAINT).
* sh.h (REG_CLASS_FROM_LETTER): Change to:
	(REG_CLASS_FROM_CONSTRAINT).
	(CONST_OK_FOR_I): Rename to:
	(CONST_OK_FOR_I08).  Changed all users.
	(CONST_OK_FOR_J): Rename to:
	(CONST_OK_FOR_I16).  Changed all users.
	(CONST_OK_FOR_K): Rename to:
	(CONST_OK_FOR_P27).  Changed all users.
	(CONST_OK_FOR_L): Rename to:
	(CONST_OK_FOR_K08).  Changed all users.
	(CONST_OK_FOR_O): Rename to:
	(CONST_OK_FOR_I06).  Changed all users.
	(CONST_OK_FOR_P): Rename to:
	(CONST_OK_FOR_I10).  Changed all users.
	(CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
	(CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
	(EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
	(EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
	(EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
	(EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
	(CONST_OK_FOR_LETTER_P): Replace with
	(CONST_OK_FOR_CONSTRAINT_P).
	(EXTRA_CONSTRAINT_S): Rename to:
	(EXTRA_CONSTRAINT_C16).  Changed all users.
	(MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
	(EXTRA_CONSTRAINT_T): Rename to:
	(EXTRA_CONSTRAINT_Csy).  Changed all users.
	(EXTRA_CONSTRAINT_Z): Remove.
	(EXTRA_CONSTRAINT): Replace with:
	(EXTRA_CONSTRAINT_STR).
	(EXTRA_CONSTRAINT_U): Rename to:
	 (EXTRA_CONSTRAINT_Z).  Changed all users.
	* sh.c (and_operand): Use CONST_OK_FOR_J16.
	* sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
	(addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
	(iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
	(lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
	(movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
	(*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
	(movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
	(movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
	(beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
	(movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
	(negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
	(mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
	(mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
	(mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
	(mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
	(mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
	(mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
	(mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
	(mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
	(sssubv4hi3): Likewise.
	(movsf_i): Change I[08]/r to G/r.
	(movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.

	* sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.

From-SVN: r68022
2003-06-16 17:23:30 +01:00
Paolo Carlini
0bad3b7c49 1.cc: Split and fix for missing seeks between gets and puts into...
2003-06-16  Paolo Carlini  <pcarlini@unitus.it>

        * testsuite/27_io/basic_filebuf/sungetc/char/1.cc: Split and
        fix for missing seeks between gets and puts into...
	* testsuite/27_io/basic_filebuf/sungetc/char/1-in.cc: New.
        * testsuite/27_io/basic_filebuf/sungetc/char/1-io.cc: New.
        * testsuite/27_io/basic_filebuf/sungetc/char/1-out.cc: New.
        * testsuite/27_io/basic_filebuf/sungetc/char/2-in.cc: New.
	* testsuite/27_io/basic_filebuf/sungetc/char/2-io.cc: New.
	* testsuite/27_io/basic_filebuf/sungetc/char/2-out.cc: New.

From-SVN: r68021
2003-06-16 16:20:28 +00:00
Vladimir Makarov
bce7597204 i386.c (ix86_memory_move_cost): Fix typo.
2003-06-16  Vladimir Makarov  <vmakarov@redhat.com>

	* config/i386/i386.c (ix86_memory_move_cost): Fix typo.

From-SVN: r68020
2003-06-16 15:26:44 +00:00
Andreas Jaeger
9286d5a8a0 basic-block.h: Remove duplicate prototype of note_prediction_to_br_prob.
* basic-block.h: Remove duplicate prototype of
	note_prediction_to_br_prob.

From-SVN: r68019
2003-06-16 17:21:37 +02:00
Andreas Jaeger
ebf0d3926b * tree.h: Remove duplicate prototype of strip_float_extensions.
From-SVN: r68018
2003-06-16 16:58:03 +02:00
J"orn Rennecke
266a27326f sh.c (prepare_move_operand): Check if operand 0 is an invalid memory reference.
* sh.c (prepare_move_operand): Check if operand 0 is an invalid
	memory reference.  Fix test that checks if operand 1 is using r0.
	* sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .

From-SVN: r68017
2003-06-16 15:56:38 +01:00
Kaveh R. Ghazi
0eff02cdae c4x.c: Don't include "c-tree.h".
* config/c4x/c4x.c: Don't include "c-tree.h".
	* config/pa/pa.c: Likewise.
	* langhooks.c: Likewise.
	* tree.h (poplevel): Declare.

From-SVN: r68016
2003-06-16 13:41:28 +00:00
Kazu Hirata
4de8668e9c cp-tree.h: Follow spelling conventions.
* cp-tree.h: Follow spelling conventions.
	* mangle.c: Likewise.
	* method.c: Likewise.
	* parser.c: Likewise.

From-SVN: r68015
2003-06-16 13:15:37 +00:00
Kazu Hirata
08dca707da h8300.c (const_costs): Move this to ...
* config/h8300/h8300.c (const_costs): Move this to ...
	(h8300_rtx_costs): ... here.

From-SVN: r68014
2003-06-16 13:03:42 +00:00
Roger Sayle
82d397c794 optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
* optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
	(tan_optab, atan_optab): Define corresponding macros.
	* optabs.c (init_optabs): Initialize tan_optab and atan_optab.
	* genopinit.c (optabs): Implement tan_optab and atan_optab
	using tan?f2 and atan?f2 patterns.
	* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
	using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
	Change the default value of errno_set to false.
	(expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
	using expand_builtin_mathfn.

	* config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
	expander patterns implemented using existing atan2?f3 patterns.

	* gcc.dg/i386-387-5.c: New test case.
	* gcc.dg/i386-387-6.c: New test case.
	* gcc.dg/builtins-23.c: New test case.

From-SVN: r68013
2003-06-16 12:53:16 +00:00
Roger Sayle
c6547c920b expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers both operands of the addition equal...
* expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
	both operands of the addition equal, reuse the expanded RTL.
	(expand_expr <MULT_EXPR>): Likewise for multiplication.

From-SVN: r68012
2003-06-16 12:45:13 +00:00
Roger Sayle
21c43754a6 fold-const.c (operand_equal_p): Consider two calls to "const" functions with identical non-volatile arguments...
* fold-const.c (operand_equal_p): Consider two calls to "const"
	functions with identical non-volatile arguments to be equal.
	Consider the FUNCTION_DECL for the "__builtin_foo" form of a
	built-in function to be equal to the "foo" form.

Co-Authored-By: Jeff Law <law@redhat.com>

From-SVN: r68011
2003-06-16 12:42:48 +00:00
Nathanael Nerode
1a9962c230 Fix typo.
From-SVN: r68010
2003-06-16 12:16:07 +00:00
Nathanael Nerode
93ffe49c86 sysv4le.h: Remove target-independent comment.
* config/rs6000/sysv4le.h: Remove target-independent comment.
	Replace "GNU compiler" with "GCC" in comment.

From-SVN: r68009
2003-06-16 12:14:35 +00:00
Andreas Jaeger
baaa12222a tracer.c: Remove duplication declaration.
* tracer.c: Remove duplication declaration.

	* toplev.c: Remove extra declaration of decode_d_option.

	* ssa.c: Remove duplicate declaration.

	* sreal.c: Remove extra declaration of dump_sreal.

	* reload1.c: Remove duplicate declarations.

	* integrate.c: Remove extra declaration of
	set_decl_abstract_flags.

	* flow.c: Remove extra declaration of dump_flow_info.

	* alias.c: Remove extra declaration of get_addr.

From-SVN: r68006
2003-06-16 13:42:26 +02:00
Nathanael Nerode
814499a428 rtems.h, [...]: GNU CC -> GCC.
* config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
	config/vxworks.h: GNU CC -> GCC.

From-SVN: r68005
2003-06-16 11:34:38 +00:00
Nathanael Nerode
5e6908ea23 convert.c, [...]: Replace overly specific references to "GNU C" and "GNU C Compiler" with...
* convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
	lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
	stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
	ssa.h, tree.def: Replace overly specific references to "GNU C"
	and "GNU C Compiler" with references to "GCC".

From-SVN: r68004
2003-06-16 11:30:25 +00:00
J"orn Rennecke
3ff5ef1b59 * (REG_CLASS_FROM_CONSTRAINT): Only define if not already defined.
From-SVN: r68003
2003-06-16 11:53:22 +01:00
Nathan Sidwell
fd3acbb3a2 function.h (struct emit_status): Remove x_last_linenum, x_last_filename.
* function.h (struct emit_status): Remove x_last_linenum,
	x_last_filename. Add x_last_location.
	* rtl.h: #include "input.h".
	(NOTE_DATA): New.
	* cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
	number notes.
	* emit-rtl.c (last_linenum, last_filename): Remove.
	(last_location): New.
	(emit_line_note_after): LINE must always be >= 0.
	(emit_line_note): Likewise. Check not duplicate here...
	(emit_note): ... rather than here.
	(emit_line_note_force, force_next_line_note, init_emit): Adjust.
	* integrate.c (expand_inline_function): Use emit_line_note for
	line number notes.
	(copy_insn_list): Likewise.
	* unroll.c (copy_loop_body): Likewise.
	* Makefile.in (RTL_H): Add input.h.

From-SVN: r68002
2003-06-16 08:27:05 +00:00
Richard Sandiford
695a94b30a * optabs.c (emit_libcall_block): Don't hoist insns past a label.
From-SVN: r68001
2003-06-16 06:26:03 +00:00
Richard Henderson
a5c2492672 alpha-protos.h, [...]: Update to ISO C.
* config/alpha/alpha-protos.h, config/alpha/elf.h,
        config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
        config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
        * config/alpha/alpha.c: Likewise.  Move targetm init to end of file.
        Remove unneeded static function decls.

From-SVN: r68000
2003-06-15 23:18:41 -07:00
Neil Booth
7b086b11df c-opts.c (c_common_handle_option): s/on/value/.
* c-opts.c (c_common_handle_option): s/on/value/.
	(OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
	directly rather than converting the argument.
	* c.opt: Update docs.  Use UInteger where appropriate.
	* common.opt: Use UInteger where appropriate.
	* opts.c (integral_argument): New.
	(handle_argument): Handle integral arguments, and optional
	joined arguments.
	(common_handle_option): Update.
	* opts.h (CL_MISSING_OK, CL_UINTEGER): New.
	* opts.sh: Handle JoinedOrMissing and UInteger flags.
java:
	* lang.c (java_handle_option): Special-casing of optional
	joined arguments no longer needed.
	* lang.opt: Update switches that take optional argument.

From-SVN: r67999
2003-06-16 05:47:07 +00:00
Neil Booth
89aa997ab8 sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove unnecessary extern declaration.
* config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
	unnecessary extern declaration.

From-SVN: r67998
2003-06-16 05:36:34 +00:00
Nathanael Nerode
2a71dcad7f gofast.h, [...]: GNU CC -> GCC.
* config/gofast.h, config/interix.h, config/interix3.h,
	config/libgloss.h, config/linux-aout.h, config/linux.h,
	config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
	* config/kaos.h: "GNU compiler" -> GCC.
	* config/linux-aout.h, config/lynx.h: Clarify comment describing file.

From-SVN: r67997
2003-06-16 02:41:51 +00:00
Nathanael Nerode
0743f00d18 crt0.S, [...]: GNU CC -> GCC.
* config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
	config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
	GNU CC -> GCC.

From-SVN: r67996
2003-06-16 02:18:35 +00:00
Nathanael Nerode
612aeba53b svr3.h: Remove #if 0 code, misleading comments.
* config/svr3.h: Remove #if 0 code, misleading comments.
	GNU CC -> GCC.

From-SVN: r67995
2003-06-16 02:14:20 +00:00