Commit Graph

42790 Commits

Author SHA1 Message Date
David Edelsohn 0387639b62 rs6000.md (sCC pattern and splitter): Remove clobber and use result as temporary value.
* config/rs6000/rs6000.md (sCC pattern and splitter): Remove
        clobber and use result as temporary value.

From-SVN: r53159
2002-05-04 10:32:31 -04:00
Mark Wielaard 30b50f906e For PR java/6519:
* parse.y (build_string_concatenation): Return just op1 only when op2
	is null and op1 is a STRING_CST, otherwise always construct a
	StringBuffer.

From-SVN: r53158
2002-05-04 13:26:13 +00:00
Mark Wielaard de6ba6e546 For PR java/6519:
* libjava.lang/emptystring.java: New.
	* libjava.lang/emptystring.out: New.

From-SVN: r53157
2002-05-04 13:24:40 +00:00
Jan Hubicka 8a28dbccfd expr.c (force_operand): Use expand_simple_* to handle more cases.
* expr.c (force_operand): Use expand_simple_* to handle more
	cases.

From-SVN: r53154
2002-05-04 11:23:21 +00:00
Neil Booth ae1a07e00c *** empty log message ***
From-SVN: r53153
2002-05-04 07:32:26 +00:00
Neil Booth 4268e8bb94 c-lex.c (lex_string): Let cpp_parse_escape handles truncation and sign-extension.
* c-lex.c (lex_string): Let cpp_parse_escape handles truncation
	and sign-extension.
	(lex_charconst): Update for change in prototype of
	cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
	appropriately.
	* cpphash.h (BITS_PER_CPPCHAR_T): New.
	* cppinit.c (cpp_create_reader): Initialize them for no
	change in semantics.
	(cpp_post_options): Add sanity checks.
	* cpplex.c (cpp_parse_escape): Handle precision, sign-extension
	and truncation issues.  Calculate in type cppchar_t.
	(MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
	(cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
	run-time dependent precision correctly.  Return whether the
	result is signed or not.
	* cpplib.c (dequote_string): Use cppchar_t; update.
	* cpplib.h (cppchar_signed_t): New.
	struct cpp_options): New precision members.
	(cpp_interpret_charconst, cpp_parse_escape): Update prototypes.

From-SVN: r53152
2002-05-04 07:30:32 +00:00
GCC Administrator ac5ec76848 Daily bump.
From-SVN: r53151
2002-05-04 07:18:20 +00:00
David S. Miller 2ce04b6baf sparc-protos.h (sparc_rtx_costs): New.
2002-05-03  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc-protos.h (sparc_rtx_costs): New.
	* config/sparc/sparc.c (sparc_rtx_costs): New function
	implementing RTX_COSTS and CONST_COSTS.
	* config/sparc/sparc.h (CONST_COSTS): Delete.
	(RTX_COSTS_CASES): Define.
	(RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
	the work.

From-SVN: r53147
2002-05-03 22:36:40 -07:00
David S. Miller a1d9bd0c06 sparc.md (DFA schedulers): Split out...
2002-05-03  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.md (DFA schedulers): Split out...
	* config/sparc/cypress.md, config/sparc/hypersparc.md,
	config/sparc/sparclet.md, config/sparc/supersparc.md,
	config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.

From-SVN: r53146
2002-05-03 22:03:45 -07:00
David S. Miller e87bb82e16 sparc.c (LEAF_REGISTERS): Do not do ifdef checks on it, always defined for Sparc.
2002-05-03  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
	checks on it, always defined for Sparc.

From-SVN: r53145
2002-05-03 21:30:09 -07:00
David S. Miller af54350e17 sparc.h (REG_ALLOC_ORDER, [...]): Tweak, and add more detailed comments.
2002-05-03  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
	Tweak, and add more detailed comments.

From-SVN: r53144
2002-05-03 21:21:46 -07:00
David Billinghurst 1c177c1816 libjava.exp (test_libjava_from_source): Append .exe to executable names.
2002-05-04  David Billinghurst  <David.Billinghurst@riotinto.com>

	* testsuite/lib/libjava.exp (test_libjava_from_source):
	Append .exe to executable names.  If no suffix is present,
	then ".exe" is added by default on win32.  Harmless
	elsewhere so always do it.

From-SVN: r53143
2002-05-04 03:38:14 +00:00
Zack Weinberg 935bfb44f5 Re-apply patch accidentally reverted with DFA scheduler merge: remove all rules and variables to slurp source files out of libiberty and...
* Re-apply patch accidentally reverted with
	DFA scheduler merge: remove all rules and variables to slurp
	source files out of libiberty and rebuild them with HOST_CC.
	($(HOST_PREFIX_1)varray.o): New rule.
	(genattrtab rule): Word wrap.

From-SVN: r53141
2002-05-04 03:10:42 +00:00
Jason Thorpe fa7a071278 netbsd64.h (CPP_LP64_SPEC): Define.
* config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
(CPP_SUBTARGET_SPEC): Define.
(SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
cpp_subtarget specs.
(CPP_SPEC): Redefine to include %(cpp_subtarget).

From-SVN: r53140
2002-05-04 01:31:29 +00:00
David S. Miller 14d118d655 ia64.c (ia64_emit_insn_before): Put it back.
2002-05-03  David S. Miller  <davem@redhat.com>

	* config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
	(rtx_needs_barrier): Delete reference to cycle_display unspec.
	(ia64_sched_reorder2): Mention need for cycle display handling
	once such notes exist.

From-SVN: r53139
2002-05-03 18:04:18 -07:00
David S. Miller 14c9397896 target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
2002-05-03  David S. Miller  <davem@redhat.com>

	* target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
	* target.h (struct gcc_target): Delete cycle_display member.

From-SVN: r53138
2002-05-03 17:55:18 -07:00
Richard Henderson b3ae1ccd98 real.c (etoasc): Strip most trailing zeros for clarity.
* real.c (etoasc): Strip most trailing zeros for clarity.
        * sched-vis.c: Include real.h.
        (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
        * Makefile.in (sched-vis.o): Add real.h.

From-SVN: r53137
2002-05-03 17:51:02 -07:00
David S. Miller 8f39865a3c haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change, no longer needed.
2002-05-03  David S. Miller  <davem@redhat.com>

	* haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
	no longer needed.

From-SVN: r53136
2002-05-03 17:38:36 -07:00
Aldy Hernandez b44140e711 rs6000.c (altivec_expand_binop_builtin): Error out when we get an out of range literal.
2002-05-03  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
        when we get an out of range literal.
        (altivec_expand_ternop_builtin): Same.
        (altivec_expand_unop_builtin): Same.
        (altivec_expand_builtin): Same, for dss.
        (altivec_expand_builtin): Use trees instead of rtl when
        determining literal argument validity.

From-SVN: r53135
2002-05-04 00:33:48 +00:00
David S. Miller aaaed75228 Delete cycle display scheduling hook.
2002-05-03  David S. Miller  <davem@redhat.com>

	Delete cycle display scheduling hook.
	* config/ia64/ia64.c (ia64_cycle_display,
	TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
	(ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
	and use emit_insn_before instead of ia64_emit_insn_before.
	* config/ia64/ia64.md (unspec usage): Delete cycle display.
	(cycle_display): Delete insn pattern.
	* config/sparc/sparc.md (unspec usage): Delete cycle display.
	(cycle_display): Delete insn pattern.
	* config/sparc/sparc.c (sparc_cycle_display,
	TARGET_SCHED_CYCLE_DISPLAY): Delete.
	* doc/md.texi (cycle_display): Don't mention.
	* doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.

From-SVN: r53134
2002-05-03 17:31:28 -07:00
Richard Henderson b37c26149f recog.c (store_data_bypass_p, [...]): New.
* recog.c (store_data_bypass_p, if_test_bypass_p): New.
        * recog.h: Declare them.

        * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
        * config/sparc/sparc.md: Use store_data_bypass_p instead.
        * config/sparc/sparc-protos.h: Update.

From-SVN: r53132
2002-05-03 15:23:45 -07:00
Jason Thorpe e1c1132e0b netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove -D__arch64__.
* config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
-D__arch64__.  Add -D_LP64.
(CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
from sparc.h.
(CPP_ARCH64_SPEC): Likewise.
(NO_BUILTIN_PTRDIFF_TYPE): Undef.
(NO_BUILTIN_SIZE_TYPE): Undef.

From-SVN: r53131
2002-05-03 21:38:25 +00:00
Vladimir Makarov 0b2fb0d735 genautomata.c (min_issue_delay_pass_states): Change return type in the prototype.
2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>

	* genautomata.c (min_issue_delay_pass_states): Change return type
	in the prototype.
	(min_issue_delay_pass_states): Change the algorithm.
	(min_issue_delay): Set up min_insn_issue_delay for the state.
	(output_min_issue_delay_table): Interchange the nested loops and
	and initiate min_insn_issue_delay for states.

From-SVN: r53130
2002-05-03 21:13:25 +00:00
Jan Hubicka 3d4ce12a5a cfgcleanup.c (try_optimize_cfg): Call merge_block only when jump is simplejump.
* cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
	jump is simplejump.

From-SVN: r53129
2002-05-03 21:02:44 +00:00
Jan Hubicka 37ad04a5a4 i386.c (expand_movstr, [...]): Fix inline-all-stringops sequence.
* i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
	sequence.

From-SVN: r53128
2002-05-03 20:56:42 +00:00
Richard Henderson b548220837 ifcvt.c (noce_try_store_flag, [...]): Insert new code before JUMP, not EARLIEST.
* ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
        noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
        noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
        code before JUMP, not EARLIEST.

From-SVN: r53123
2002-05-03 13:34:31 -07:00
Jakub Jelinek ba2e86d69d cmdlne-dM-M.c: New test.
* gcc.dg/cpp/cmdlne-dM-M.c: New test.
	* gcc.dg/cpp/cmdlne-dD-M.c: New test.
	* gcc.dg/cpp/cmdlne-dN-M.c: New test.
	* gcc.dg/cpp/cmdlne-dI-M.c: New test.
	* gcc.dg/cpp/cmdlne-dI-M.h: New aux file.
	* gcc.dg/cpp/cmdlne-dD-dM.c: New test.
	* gcc.dg/cpp/cmdlne-dM-dD.c: New test.

From-SVN: r53121
2002-05-03 22:28:09 +02:00
Joseph Myers 5a3085c523 re PR c/6547 (misleading printf '$' format)
* c-format.c (check_format_info_main): Don't check for presence of
	parameter for * width until after operand number has been read,
	and only check for it if format parameters are available.
	Fixes PR c/6547.

testsuite:
	* gcc.dg/format/xopen-2.c: New test.

From-SVN: r53118
2002-05-03 21:17:57 +01:00
David Billinghurst 0659e0e3df natSystem.cc (getSystemTimeZone): Use HAVE_UNDERSCORE_TIMEZONE.
2002-05-03  David Billinghurst  <David.Billinghurst@riotinto.com>
	    Tom Tromey  <tromey@redhat.com>

	* java/lang/natSystem.cc (getSystemTimeZone): Use
	HAVE_UNDERSCORE_TIMEZONE.
	* include/config.h.in: Rebuilt.
	* acconfig.h (HAVE_UNDERSCORE_TIMEZONE, HAVE_BACKTRACE): Undef.
	* aclocal.m4, configure: Rebuilt.
	* acinclude.m4: Run AC_EXEEXT.
	* configure.in: Adjust test for `timezone' so it fails on Cygwin.
	Add test for `_timezone'.

Co-Authored-By: Tom Tromey <tromey@redhat.com>

From-SVN: r53117
2002-05-03 20:17:48 +00:00
Alexandre Oliva 5833ab666f Checked in by Eric Christopher <echristo@redhat.com>:
2002-05-02  Alexandre Oliva  <aoliva@redhat.com>

        * Makefile.in: Fix for multilibbed natives.

From-SVN: r53116
2002-05-03 20:14:18 +00:00
Jason Thorpe 40039424e5 netbsd.h (CPP_PREDEFINES): Add -D_LP64.
* config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
(LINK_SPEC): Undef before defining.

From-SVN: r53113
2002-05-03 19:20:21 +00:00
Alexandre Oliva 4182d9fa89 * configure.in: Revert 2002-04-18's patch; fixed in libjava.
From-SVN: r53109
2002-05-03 18:24:07 +00:00
Alexandre Oliva eb9c4fdf66 Suggested by Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Suggested by Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* Makefile.am (jv_convert_LDADD): Bring -L.libs to the front.
(gij_LDADD, rmic_LDADD, rmiregistry_LDADD): Likewise.
* Makefile.in: Rebuilt.

From-SVN: r53108
2002-05-03 18:23:36 +00:00
Benjamin Kosnik 2fd819efe5 re PR libstdc++/6549 (std::getline(std::cin,s) work wrong at FreeBSD 4.5)
2002-05-03  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/6549.
	* include/bits/fstream.tcc (filebuf::_M_underflow_common): Revert.
	* testsuite/27_io/narrow_stream_objects.cc (test07): Add.

From-SVN: r53107
2002-05-03 18:22:58 +00:00
Jakub Jelinek 8157303b1e re PR preprocessor/6489 (tradcpp0 fails on line ending with '\r\n')
PR preprocessor/6489
	* tradcpp.c (fixup_newlines): New.
	(main, finclude): Use it.

From-SVN: r53103
2002-05-03 19:55:26 +02:00
Richard Sandiford 66319f5cad elf64.h (UNIQUE_SECTION): Use mips_unique_section.
* config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
	* config/mips/mips.c (mips_unique_section): Strip encoding from
	decl name.

From-SVN: r53101
2002-05-03 17:08:29 +00:00
Thomas Fitzsimmons 7bebf27930 configure.in (FLAGS_FOR_TARGET): Do not add -B$$r/$(TARGET_SUBDIR)/newlib/ when...
* configure.in (FLAGS_FOR_TARGET): Do not add
-B$$r/$(TARGET_SUBDIR)/newlib/ when compiling newlib natively
on i[3456]86-*-linux*.

From-SVN: r53100
2002-05-03 12:28:41 -04:00
Jakub Jelinek ce8076ada5 i386.c (ix86_expand_int_movcc): Truncate to proper mode.
* config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
	mode.

From-SVN: r53099
2002-05-03 18:28:30 +02:00
Jason Merrill 0abc082acf tree.c (build_cplus_array_type): Only const and volatile get special handling.
* tree.c (build_cplus_array_type): Only const and volatile get
        special handling.

From-SVN: r53098
2002-05-03 12:22:08 -04:00
Rainer Orth 975c6e4e67 install.texi (Installing): Mention GCC 3.1 buildstats.
* doc/install.texi (Installing): Mention GCC 3.1 buildstats.
	(Specific): Removed buildstats references.
	(Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
	(Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
	Accomodate Solaris versions beyond 8.
	(Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
	(Specific, *-*-solaris2.8): Removed, obsolete.

From-SVN: r53097
2002-05-03 15:13:16 +00:00
Jakub Jelinek d70e94ecba re PR target/6542 (Internal compiler error when building libgcc for sparc-elf)
PR target/6542
	* config/sparc/sparc.h (leaf_reg_remap): Remove const.
	(CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
	fill leaf_reg_remap with identity.
	* config/sparc/sparc.c (leaf_reg_remap): Remove const.

	* gcc.dg/20020503-1.c: New test.

From-SVN: r53095
2002-05-03 16:20:04 +02:00
Kaveh R. Ghazi b70d6d4b66 ctype_noninline.h (classic_table): Return __ctype + 1.
* config/os/irix/irix5.2/bits/ctype_noninline.h (classic_table):
	Return __ctype + 1.
	(ctype:_M_table): Initialize to classic_table(), not __ctype.

From-SVN: r53093
2002-05-03 13:56:52 +00:00
Jason Merrill 3d1ad9e5ae defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
* defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
        * c-decl.c (c_init_decl_processing): Use it.
        * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
        * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
        * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.

From-SVN: r53091
2002-05-03 09:13:13 -04:00
Kazu Hirata 6b148bd9e3 crti.asm: Remove trailing spaces.
* config/h8300/crti.asm: Remove trailing spaces.
	* config/h8300/h8300.c: Likewise.
	* config/h8300/lib1funcs.asm: Likewise.

From-SVN: r53090
2002-05-03 12:28:41 +00:00
Jason Merrill 609688f3c4 defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
* defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
        * c-decl.c (c_init_decl_processing): Use it.
        * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
        * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
        * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.

From-SVN: r53089
2002-05-03 08:09:35 -04:00
Kazu Hirata 3b03c671ad regrename.c: Fix formatting.
* regrename.c: Fix formatting.
	* tree.c: Likewise.

From-SVN: r53088
2002-05-03 12:07:30 +00:00
Jan Hubicka 3b4961bd97 * i386.md (attribute memory): Handle compares properly.
From-SVN: r53085
2002-05-03 11:35:49 +00:00
Rainer Orth d6ab05a0be configure.in: Update local install.html, configopts.html paths.
* configure.in: Update local install.html, configopts.html paths.
	* configure: Regenerate.

From-SVN: r53083
2002-05-03 11:09:51 +00:00
Jan Hubicka 19cba4a0a0 i386.c (sse_clrsf, sse_clrsi): Set memory attribute to none.
* i386.c (sse_clrsf, sse_clrsi): Set memory attribute
	to none.

From-SVN: r53082
2002-05-03 08:53:03 +00:00
GCC Administrator e2f31fa203 Daily bump.
From-SVN: r53081
2002-05-03 07:17:19 +00:00