Commit Graph

43071 Commits

Author SHA1 Message Date
GCC Administrator
aab0ae9150 Daily bump.
From-SVN: r53208
2002-05-06 07:16:59 +00:00
David S. Miller
0ac941a072 sparc.c (emit_soft_tfmode_libcall): Do not allow result to overlap input operands in memory.
2002-05-06  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
	allow result to overlap input operands in memory.

From-SVN: r53204
2002-05-06 00:09:21 -07:00
Neil Booth
95ff5d3fad cpp.texi: Update multichar charconst docs.
doc:
	* cpp.texi: Update multichar charconst docs.
testsuite:
	* gcc.dg/cpp/charconst-3.c: New test.

From-SVN: r53202
2002-05-05 23:45:06 +00:00
David Billinghurst
49f8e94b6b libjava.exp (test_libjava_from_source): Add comment explaining last patch.
2002-05-06  David.Billinghurst  <David.Billinghurst@riotinto.com>

	* testsuite/lib/libjava.exp (test_libjava_from_source):
	Add comment explaining last patch.

From-SVN: r53201
2002-05-05 23:19:06 +00:00
Neil Booth
639e8b0c74 cpplex.c (cpp_interpret_charconst): Sign-extend each character.
* cpplex.c (cpp_interpret_charconst): Sign-extend each
	character.  Don't ignore excess characters.  Treat
	multicharacter character constants as signed.
	(cpp_parse_escape): Clarify diagnostic.

From-SVN: r53200
2002-05-05 23:13:04 +00:00
Jakub Jelinek
84ea5bc107 sparc.md (ashlsi3): If shift count is const1_rtx, use add instead of shift.
2002-05-05  Jakub Jelinek  <jakub@redhat.com>

	* config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
	use add instead of shift.
	(ashldi3_sp64): Likewise.
	(ashlsi3_const1, ashldi3_const1): Remove.
	* config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
	* config/sparc/sparc.c (const1_operand): New.

From-SVN: r53199
2002-05-05 16:08:28 -07:00
Jason Thorpe
40cd22f223 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
From-SVN: r53198
2002-05-05 22:23:40 +00:00
Jakub Jelinek
cac010762c re PR target/6561 (sparc-sun-solaris2.7 C testsuite failure w/-mcpu=ultrasparc in execute/950511-1.c)
PR target/6561
	* config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.

From-SVN: r53197
2002-05-06 00:08:54 +02:00
Richard Henderson
98791e3a3f alpha.c (alpha_adjust_cost): Remove everything but memory latency adjustments.
* config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
        memory latency adjustments.
        (alpha_variable_issue): Remove.
        (alpha_use_dfa_pipeline_interface): New.
        (alpha_multipass_dfa_lookahead): New.
        * config/alpha/alpha.md: Remove define_function_unit scheduling;
        include new dfa scheduling.
        (attr type): Add none.
        (blockage): Use it.
        * config/alpha/ev4.md: New.
        * config/alpha/ev5.md: New.
        * config/alpha/ev6.md: New.

From-SVN: r53196
2002-05-05 14:54:39 -07:00
David S. Miller
309527ce46 recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
2002-05-05  David S. Miller  <davem@redhat.com>

	* recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.

From-SVN: r53195
2002-05-05 14:51:04 -07:00
Jason Merrill
e8400f6188 add PR id
From-SVN: r53194
2002-05-05 17:46:51 -04:00
Tim Josling
4aa5dcbfc2 Adding .csvignore.
From-SVN: r53192
2002-05-05 20:46:03 +00:00
Kazu Hirata
68252e2771 cse.c: Fix formatting.
* cse.c: Fix formatting.
	* emit-rtl.c: Likewise.

From-SVN: r53191
2002-05-05 20:03:36 +00:00
Alexandre Oliva
b7c13625c7 configure.in (noconfigdirs): Don't disable libgcj on sparc64-*-solaris* and sparcv9-*-solaris*.
* configure.in (noconfigdirs): Don't disable libgcj on
sparc64-*-solaris* and sparcv9-*-solaris*.

From-SVN: r53190
2002-05-05 18:57:50 +00:00
Vladimir Makarov
30cc9d0061 genautomata.c (initiate_states): Add additional guard to initialize `units_array'.
2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>

	* genautomata.c (initiate_states): Add additional guard to
	initialize `units_array'.

From-SVN: r53188
2002-05-05 18:28:24 +00:00
Vladimir Makarov
deb09eff2d genautomata.c (form_the_same_automaton_unit_lists_from_regexp, [...]): New prototypes and functions.
2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>

	* genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
	process_unit_to_form_the_same_automaton_unit_lists,
	form_the_same_automaton_unit_lists
	check_unit_distributions_to_automata): New prototypes and
	functions.
	(check_automata): Rename it into `check_automata_insn_issues'.
	(unit_decl): New fields `the_same_automaton_unit' and
	`the_same_automaton_message_reported_p'.
	(unit_decl_t): New typedef.
	(the_same_automaton_lists): New gloval variable.
	(unit_regexp, unit_set_el, units_array, units_cmp,
	output_get_cpu_unit_code_func): Use the typedef.
	(evaluate_max_reserv_cycles): Increment
	`description->max_insn_reserv_cycles'.
	(initiate_states): Don't increment `max_cycles_num'.
	(transform_insn_regexps): Move code around transformation of
	regexps from `generate'.
	(generate): Remove call of `transform_insn_regexps'.
	(expand_automata): Call `transform_insn_regexps' and
	`check_unit_distributions_to_automata'.  Check errors before
	`generate'.

	* config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
	automaton `ultrasparc3_1'.

From-SVN: r53187
2002-05-05 17:40:16 +00:00
Neil Booth
2443d4e110 c-common.c (c_common_init): Set up CPP arithmetic.
* c-common.c (c_common_init): Set up CPP arithmetic.
	* cppinit.c (cpp_create_reader): Default CPP arithmetic to
	something reasonable for the host.
	(sanity_checks): Add checks.
	(cpp_read_main_file): Call sanity_checks() from here...
	(cpp_post_options): ... not here.
	* cpplex.c (cpp_interpret_charconst): Get max_chars right.
	* cpplib.h (struct cpp_options): New member int_precision.
testsuite:
	* gcc.dg/cpp/charconst.c: Update tests.

From-SVN: r53186
2002-05-05 17:05:09 +00:00
Franz Sirl
791a949fb9 install.texi (powerpc-*-linux-gnu*): Update build requirements.
2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.

From-SVN: r53181
2002-05-05 11:38:51 +00:00
David S. Miller
f60ebeb78f 2002-05-04 David S. Miller <davem@redhat.com>
* config/sparc/linux.h, config/sparc/linux64.h
	(HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.

From-SVN: r53179
2002-05-05 02:38:20 -07:00
David S. Miller
214c63949d sparc.c (sparc_rtx_costs): Describe costs of more RTX codes.
2002-05-04  David S. Miller  <davem@redhat.com>

	* config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
	more RTX codes.
	* config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.

From-SVN: r53178
2002-05-05 00:55:21 -07:00
David S. Miller
091fb51614 recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL of SETs.
2002-05-04  David S. Miller  <davem@redhat.com>

	* recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
	of SETs.

From-SVN: r53177
2002-05-05 00:49:23 -07:00
GCC Administrator
7750f79061 Daily bump.
From-SVN: r53175
2002-05-05 07:17:09 +00:00
Jason Thorpe
fad655c869 configure.in (sparc64-*-netbsd*): Add target.
* configure.in (sparc64-*-netbsd*): Add target.
(sparc-*-netbsdelf*): Likewise.
* configure: Regenerate.

From-SVN: r53171
2002-05-05 05:03:33 +00:00
Tim Josling
f2fdc802fb Added comments in master changelogs on adding treelang directories.
From-SVN: r53170
2002-05-05 04:36:10 +00:00
Tim Josling
6cfea11bd1 Added new sample language treelang.
From-SVN: r53169
2002-05-05 04:24:18 +00:00
Paolo Carlini
6d030676cc [multiple changes]
2002-05-04  Benjamin Kosnik  <bkoz@redhat.com>
	    Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/22_locale/num_put_members_char.cc: Add test04(),
	testing for the locale_facets.tcc entry of the previous commit.
	* testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.

2002-05-04  Takeshi Kobayakawa  <tskoba@mte.biglobe.ne.jp>

	* config/locale/generic/c_locale.cc
	(__convert_to_v(float, double, long double)):
	Fix the temporary switch to the "C" locale, saving and
	restoring in the proper way the current locale.
	* config/locale/generic/time_members.cc
	(__timepunct<char, wchar_t>::_M_put): Likewise.
	* config/locale/gnu/messages_members.cc
	(messages<char>::do_get): Likewise.
	* config/locale/gnu/messages_members.h
	(messages<_CharT>::do_get): Likewise.
	* config/locale/gnu/time_members.cc
	(__timepunct<char, wchar_t>::_M_put): Likewise.
	* include/bits/locale_facets.tcc (__convert_from_v): Likewise.

From-SVN: r53167
2002-05-04 21:33:19 +00:00
Kaveh R. Ghazi
7e90efc403 configure.in (AC_CHECK_HEADERS): Check for string.h & stdlib.h.
* configure.in (AC_CHECK_HEADERS): Check for string.h & stdlib.h.
	* libsupc++/Makefile.am (LTCOMPILE): Add $(DEFS).

	* Makefile.in, config.h.in, configure: Regenerate.

From-SVN: r53166
2002-05-04 20:20:29 +00:00
Neil Booth
3d90d2908e Makefile.in (c-lex.o): Update.
* Makefile.in (c-lex.o): Update.
	* c-lex.c: Include target.h.
	(cb_register_builtins): New.
	(init_c_lex): Set builtins callback.
	* c-lex.h (cpp_define, cpp_assert): New prototypes.
	* cppinit.c (init_builtins): Use callback, including for
	GXX_WEAK.
	* cpplib.h (struct cpp_callbacks): New member.
	* target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
	(TARGET_INITIALIZER): Update.
	* target.h (struct gcc_target): New hook.
	* tree.c (default_register_cpp_builtins): New.
	* tree.h (default_register_cpp_builtins): New.
doc:
	* tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.

From-SVN: r53165
2002-05-04 20:15:00 +00:00
Neil Booth
625458d0b9 cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
* cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
	(cpp_post_options): Move sanity checks to...
	(sanity_checks): New.
	* cpplex.c (maybe_read_ucs): Fix prototype.
	(parse_string, cpp_parse_escape): Cast for %c format specifier.
	* cpplib.h (cppchar_t): Use unsigned long or unsigned long long
	if necessary.

From-SVN: r53163
2002-05-04 19:42:01 +00:00
Bernd Schmidt
916b60b71e Fix bugs in SSE2 suppport and add SSE2 functions to xmmintrin.h
From-SVN: r53161
2002-05-04 17:06:56 +00:00
Kazu Hirata
c26fbbca7a dwarf2out.c: Fix formatting.
* dwarf2out.c: Fix formatting.
	* varasm.c: Likewise.

From-SVN: r53160
2002-05-04 14:54:13 +00:00
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