Commit Graph

40047 Commits

Author SHA1 Message Date
Richard Henderson
e37af218ee i386.c (override_options): If SSE, enable sse prefetch.
* config/i386/i386.c (override_options): If SSE, enable sse prefetch.
        (ix86_expand_vector_move): New.
        (bdesc_2arg): Remove andps, andnps, orps, xorps.
        (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
        Remove old prefetch builtins.  Special case the logicals removed above.
        (ix86_expand_builtin): Likewise.
        (safe_vector_operand): Use V4SFmode, not TImode.
        (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
        (ix86_expand_timode_binop_builtin): New.
        * config/i386/i386-protos.h: Update.
        * config/i386/i386.h (enum ix86_builtins): Update.
        * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
        Use ix86_expand_vector_move in vector move expanders.
        (movti_internal, movti_rex64): Add xorps alternative.
        (sse_clrv4sf): Rename and adjust from sse_clrti.
        (prefetch): Don't work so hard.
        (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
        * config/i386/xmmintrin.h (__m128): Use V4SFmode.
        (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.

From-SVN: r48796
2002-01-12 02:05:28 -08:00
GCC Administrator
b0d723da36 Daily bump.
From-SVN: r48795
2002-01-12 08:16:43 +00:00
Richard Henderson
6f1a6c5bb4 mmintrin.h: New file.
* config/i386/mmintrin.h: New file.
        * config/i386/xmmintrin.h: New file.
        * config.gcc (i?86-*-*): Add extra_headers.
        * simplify-rtx.c (simplify_unary_operation): Handle saturating
        truncation codes.
        (simplify_binary_operation): Handle saturating arithmetic codes.
        * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
        not the lowpart subreg.
        (ix86_expand_builtin): Return a TImode dummy register instead of 0
        on error.
        * config/i386/i386.md (mmx_clrdi): Override memory attribute.

        * gcc.dg/i386-mmx-1.c, gcc.dg/i386-mmx-2.c: New.
        * gcc.dg/i386-sse-1.c, gcc.dg/i386-sse-2.c, gcc.dg/i386-sse-1.c: New.
CVs: ----------------------------------------------------------------------

From-SVN: r48793
2002-01-11 23:38:50 -08:00
Michael Hayes
cdb574d383 conflict.c (conflict_graph_compute): Free regsets when finished.
* conflict.c (conflict_graph_compute): Free regsets when finished.
	* ssa.c (compute_coalesced_reg_partition): Likewise.

From-SVN: r48792
2002-01-12 04:14:50 +00:00
Herman A.J. ten Brugge
cf11ac5596 global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED every where we allocate a register.
* global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
	every where we allocate a register.

From-SVN: r48791
2002-01-12 01:43:51 +00:00
Phil Edwards
41fcea287c Makefile.am, [...] (stamp-std): Fix typo from previous commit.
2002-01-11  Phil Edwards  <pme@gcc.gnu.org>

	* include/Makefile.am, include/Makefile.in (stamp-std):  Fix typo from
	previous commit.

From-SVN: r48790
2002-01-12 01:42:30 +00:00
Michael Hayes
76ac938bdc gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
* gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
	* lcm.c (compute_earliest, compute_farthest): Likewise.

From-SVN: r48789
2002-01-12 01:18:42 +00:00
Phil Edwards
066930bbe1 Makefile.am (std_headers): Update list with new names.
2002-01-11  Phil Edwards  <pme@gcc.gnu.org>

	* include/Makefile.am (std_headers):  Update list with new names.
	(stamp-std):  Link to standardized name.
	* include/Makefile.in:  Regenerate.

	* include/std/algorithm, include/std/bitset, include/std/complex,
	include/std/deque, include/std/fstream, include/std/functional,
	include/std/iomanip, include/std/ios, include/std/iosfwd,
	include/std/iostream, include/std/istream, include/std/iterator,
	include/std/limits, include/std/list, include/std/locale,
	include/std/map, include/std/memory, include/std/numeric,
	include/std/ostream, include/std/queue, include/std/set,
	include/std/sstream, include/std/stack, include/std/stdexcept,
	include/std/streambuf, include/std/string, include/std/utility,
	include/std/valarray, include/std/vector:  Rename to...

	* include/std/std_algorithm.h, include/std/std_bitset.h,
	include/std/std_complex.h, include/std/std_deque.h,
	include/std/std_fstream.h, include/std/std_functional.h,
	include/std/std_iomanip.h, include/std/std_ios.h,
	include/std/std_iosfwd.h, include/std/std_iostream.h,
	include/std/std_istream.h, include/std/std_iterator.h,
	include/std/std_limits.h, include/std/std_list.h,
	include/std/std_locale.h, include/std/std_map.h,
	include/std/std_memory.h, include/std/std_numeric.h,
	include/std/std_ostream.h, include/std/std_queue.h,
	include/std/std_set.h, include/std/std_sstream.h,
	include/std/std_stack.h, include/std/std_stdexcept.h,
	include/std/std_streambuf.h, include/std/std_string.h,
	include/std/std_utility.h, include/std/std_valarray.h,
	include/std/std_vector.h:  ...this.

From-SVN: r48788
2002-01-12 00:50:04 +00:00
Chris Sears
cec718682b interpret.cc (NULLARRAYCHECK): New macro.
2002-01-11  Chris Sears  <cbsears_sf@yahoo.com>

	* interpret.cc (NULLARRAYCHECK): New macro.
	(SAVE_PC): Just store `pc'.
	(find_exception): Subtract one from `pc' here.
	(continue1) [insn_iaload, insn_laload, insn_faload, insn_daload,
	insn_aaload, insn_baload, insn_caload, insn_saload, insn_iastore,
	insn_lastore, insn_fastore, insn_dastore, insn_aastore,
	insn_bastore, insn_castore, insn_sastore]: Use NULLARRAYCHECK, and
	don't call SAVE_PC.
	(continue1) [insn_fdiv, insn_ddiv, insn_frem, insn_drem]: Don't
	call SAVE_PC.

From-SVN: r48787
2002-01-12 00:19:05 +00:00
Jeff Sturm
0b0d4c5b3a jcf-parse.c (get_constant): Don't swap lo/hi for big endian targets when HOST_BITS_PER_WIDE_INT >= 64.
* jcf-parse.c (get_constant): Don't swap lo/hi for big
	endian targets when HOST_BITS_PER_WIDE_INT >= 64.

Co-Authored-By: Martin Kahlert <martin.kahlert@infineon.com>

From-SVN: r48786
2002-01-12 00:01:41 +00:00
Janis Johnson
a84b4898c1 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
From-SVN: r48785
2002-01-11 23:48:06 +00:00
Janis Johnson
aaef1c1262 * doc/rtl.texi (Insns): Fix 2 typos.
From-SVN: r48784
2002-01-11 23:41:42 +00:00
Joseph Myers
5d22c1a518 invoke.texi: Avoid overfull hboxes.
* doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
	options.  Use @table @gcctabopt for MMIX options.  Add index
	entries for MMIX options.  Start new paragraph with first
	heading of the machine-dependent options.

From-SVN: r48783
2002-01-11 23:07:54 +00:00
Loren J. Rittle
7bfea93644 Makefile.am (extra_target_headers): New list of all target files built with ad hoc naming rules.
* include/Makefile.am (extra_target_headers): New list of all
	target files built with ad hoc naming rules.
	(stamp-*): Handle LN_S failure in manner portable across make
	implementations.
	(install-data-local): Install header files from human-maintained
	file lists and directory components instead of non-robust find.
	* include/Makefile.in: Rebuilt.

From-SVN: r48782
2002-01-11 23:02:34 +00:00
Tom Tromey
999825b056 natSystem.cc (init_properties): Only look for default locale if LC_MESSAGES is defined.
* java/lang/natSystem.cc (init_properties): Only look for default
	locale if LC_MESSAGES is defined.
	* aclocal.m4, configure, include/config.h.in: Rebuilt.
	* configure.in: Call AM_LC_MESSAGES.
	* acinclude.m4 (AM_LC_MESSAGES): New macro.

From-SVN: r48781
2002-01-11 23:00:58 +00:00
Craig Rodrigues
3e92902c7e re PR other/5299 (then -> than fixes)
2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        PR other/5299
        * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
        * combine.c (force_to_mode): Same.
        * reload1.c (clear_reload_reg_in_use): Same.

From-SVN: r48780
2002-01-11 22:46:40 +00:00
Craig Rodrigues
24e511ca8e re PR other/5299 (then -> than fixes)
2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        PR other/5299
        * decl.c (layout_enum): Fix spelling mistake of "than".
        * inout.c (check_text_length): Same.

From-SVN: r48779
2002-01-11 22:38:55 +00:00
Craig Rodrigues
5a4dadda51 re PR other/5299 (then -> than fixes)
2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>

        PR other/5299
        * delaycase.c (__delay_event): Fix spelling error.
        * waitbuffer.c: Same.

From-SVN: r48778
2002-01-11 22:14:28 +00:00
Benjamin Kosnik
87a9c33cb1 locale_facets.tcc (money_get::do_get(string)): Check for zero-length negative sign before adding it to output string.
2002-01-11  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/locale_facets.tcc (money_get::do_get(string)):
	Check for zero-length negative sign before adding it to output
	string.
	(money_get::do_get(long double)): Return beg.
	* testsuite/22_locale/money_get_members_char.cc (test02): Add
	iterator checks.
	* testsuite/22_locale/money_get_members_wchar_t.cc: Same.

From-SVN: r48777
2002-01-11 20:12:02 +00:00
Nick Clifton
96ae8197d2 Correct test of 'remainder' and 'subtargets'.
From-SVN: r48776
2002-01-11 16:15:36 +00:00
Andreas Jaeger
9b78058234 i386.h (CPP_CPUCOMMON_SPEC): Remove wrong mcpu.
* config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
	mcpu.

From-SVN: r48774
2002-01-11 14:01:27 +01:00
Douglas B Rupp
12300dadec vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
* config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
	Protect with IN_LIBGCC.
	(LINK_EH_SPEC): Add required trailing space.

From-SVN: r48773
2002-01-11 07:41:16 -05:00
Nicola Pero
27511a9a29 Minor tidyup in c-tree.h
From-SVN: r48772
2002-01-11 11:31:55 +00:00
Nicola Pero
f797f48679 Tidy up - removed declarations of some unused functions, moved other decls
to the correct place

From-SVN: r48771
2002-01-11 11:31:03 +00:00
Nicola Pero
f8cfe1a455 Fixed objc test failing on alpha because of missing include
From-SVN: r48770
2002-01-11 11:24:33 +00:00
Nicola Pero
4b46043d59 Added missing include
From-SVN: r48769
2002-01-11 11:23:26 +00:00
GCC Administrator
3635f26159 Daily bump.
From-SVN: r48767
2002-01-11 08:16:33 +00:00
Andreas Jaeger
4daeab16eb i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated march.
* config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
	march.

From-SVN: r48766
2002-01-11 07:29:56 +01:00
David Seymour
3ac3829f8e locale_facets.h (num_get<>): Return advanced iterator for _M_extract_float and _M_extract_int
2002-01-10  David Seymour  <seymour_dj@yahoo.com>

	libstdc++/5331
	* include/bits/locale_facets.h (num_get<>): Return advanced iterator
	for _M_extract_float and _M_extract_int
	* include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
	(num_get<>::_M_extract_int): Likewise, all callers changed
	* testsuite/22_locale/num_get_members_char.cc: Testcase

From-SVN: r48765
2002-01-11 05:14:47 +00:00
David Seymour
631ba05e3d locale_facets.h (num_get<>): Return advanced iterator for _M_extract_float and _M_extract_int
2002-01-10  David Seymour  <seymour_dj@yahoo.com>

	* include/bits/locale_facets.h (num_get<>): Return advanced iterator
	for _M_extract_float and _M_extract_int
	* include/bits/locale_facets.tcc (num_get<>::_M_extract_float)
	(num_get<>::_M_extract_int): Likewise, all callers changed
	* testsuite/22_locale/num_get_members_char.cc: Testcase

From-SVN: r48764
2002-01-11 05:07:22 +00:00
Richard Henderson
40571d6783 alpha.c (print_operand): Add 'J'.
* config/alpha/alpha.c (print_operand): Add 'J'.
        * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
        new operand with the sequence number for the lituse.  When splitting
        the insns, use gen_movdi_er_high_g and generate a sequence number.
        (gen_movdi_er_high_g): Print the sequence number if non-zero.

From-SVN: r48763
2002-01-10 19:47:24 -08:00
Aldy Hernandez
f15054eabf altivec-4.c: Add tests for lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx, stvxl.
* gcc.dg/altivec-4.c: Add tests for lvebx, lvehx, lvewx, lvxl,
        lvx, stvx, stvebx, stvehx, stvewx, stvxl.

From-SVN: r48762
2002-01-11 03:30:50 +00:00
Aldy Hernandez
6525c0e7c9 rs6000.c (altivec_init_builtins): Add support for lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx, stvxl.
2002-01-10  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
        lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
        stvxl.
        (altivec_expand_builtin): Same.
        (altivec_expand_stv_builtin): New.

        * config/rs6000/rs6000.h (rs6000_builtins): Same.

        * config/rs6000/rs6000.md ("altivec_lvebx"): New.
        ("altivec_lvehx"): New.
        ("altivec_lvewx"): New.
        ("altivec_lvxl"): New.
        ("altivec_lvx"): New.
        ("altivec_stvx"): New.
        ("altivec_stvebx"): New.
        ("altivec_stvehx"): New.
        ("altivec_stvewx"): New.
        ("altivec_stvxl"): New.

        * gcc.dg/altivec-4.c: Add tests for lvebx, lvehx, lvewx, lvxl,
        lvx, stvx, stvebx, stvehx, stvewx, stvxl.

From-SVN: r48761
2002-01-11 03:29:36 +00:00
Richard Henderson
cda94cbba1 cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
* cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
        * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
        care not to delete instructions twice.

From-SVN: r48760
2002-01-10 18:44:48 -08:00
Zack Weinberg
df2c9a4453 toplev.c: Don't declare environ (it's not used anywhere).
* toplev.c: Don't declare environ (it's not used anywhere).
	* configure.in: Don't check for declaration of environ.
	* config/i386/xm-mingw32.h: Don't #define environ.
	* config.in, configure: Regenerate.

From-SVN: r48758
2002-01-10 22:21:39 +00:00
Zack Weinberg
5dd8a9b1c2 configure.in: Set stage1_cflags for powerpc-*-darwin*.
* configure.in: Set stage1_cflags for powerpc-*-darwin*.
	* configure: Regenerate.

	* config/interix.h: Set DO_GLOBAL_CTORS_BODY and
	DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
	* config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
	alpha/xm-vms.h.
	* config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
	LIMITS_H_TEST here, not in m68k/x-next.
	* config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
	SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.

	* config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
	LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
	* config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.

	* config/i386/x-djgpp: Renamed i386/t-djgpp.
	* config/m88k/x-dolph: Renamed m88k/t-dolph.
	* config/m88k/x-texXD88: Renamed m88k/t-texXD88.
	* config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
	replacement of quadlib.asm with quadlib.c.

	* config/x-interix3, config/xm-interix.h, config/i386/x-beos,
	config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
	config/rs6000/xm-beos.h: Delete file.

	* config.gcc: Update to match above changes.

From-SVN: r48757
2002-01-10 22:03:06 +00:00
Kazu Hirata
d10dd44c19 h8300.h: Fix comment typos.
* config/h8300/h8300.h: Fix comment typos.
	* config/h8300/h8300.md: Likewise.
	* config/h8300/lib1funcs.asm: Likewise.

From-SVN: r48754
2002-01-10 21:30:32 +00:00
Jason Merrill
6c21456ca2 specify template depth
From-SVN: r48753
2002-01-10 16:03:45 -05:00
Dale Johannesen
04894c5a9e re PR rtl-optimization/5269 (loop unroller fails to pull the right number of copies out)
PR optimization/5269
        * unroll.c (precondition_loop_p): Make *increment be the correct
        sign when n_iterations known, to avoid confusing caller.

From-SVN: r48752
2002-01-10 13:00:43 -08:00
Kazu Hirata
adc9fe67ba * doc/extend.texi (deprecated): Fix a typo.
From-SVN: r48751
2002-01-10 20:45:54 +00:00
Jan Hubicka
b446e5a266 basic-block.h (update_br_prob_note): Declare.
* basic-block.h (update_br_prob_note): Declare.
	* cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
	(try_forward_edges): Care negative frequencies and update note.
	(outgoing_edges_match): Tweek conditional merging heuristics.
	(try_crossjump_to_edge): use update_br_prob_note.
	* cfglayout.c (fixup_reorder_chain): Likewise.
	* cfrtl.c (update_br_prob_note): New.
	* ifcvt.c (dead_or_predicable): Call update_br_prob_note.

	* i386.c (ix86_decompose_address): Return -1 if address contains
	shift.
	(legitimate_address_p): Require ix86_decompose_address to return 1.

	* gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
	(cprop_insn): Likewise.

From-SVN: r48750
2002-01-10 20:37:43 +00:00
Kazu Hirata
a01da83b22 toplev.c: Fix formatting.
* toplev.c: Fix formatting.
	* tree.c: Likewise.
	* tree-dump.c: Likewise.
	* unroll.c: Likewise.
	* unwind-dw2.c: Likewise.
	* unwind-dw2-fde.c: Likewise.
	* unwind-dw2-fde-glibc.c: Likewise.
	* unwind-sjlj.c: Likewise.

From-SVN: r48749
2002-01-10 20:12:57 +00:00
Joseph Myers
9f85bca76f * doc/invoke.texi: Document PDP-11 options.
From-SVN: r48748
2002-01-10 19:47:13 +00:00
Kazu Hirata
f48f56b15f * config/h8300/h8300.h: Fix formatting.
From-SVN: r48747
2002-01-10 19:20:10 +00:00
Ira Ruben
468c0b9b4c C test case for __attribute__((deprecated)).
From-SVN: r48746
2002-01-10 19:01:00 +00:00
Ira Ruben
251b47c208 C++ test case for __attribute__((deprecated)).
From-SVN: r48745
2002-01-10 18:59:51 +00:00
Ira Ruben
7f180628e7 Added changelog info for __attribute__((deprecated)) patches.
Also added changlog info for the adding of attributes to inline
member functions.  Jason Merrill committed the actual patch but
forgot to update the changelog.

From-SVN: r48744
2002-01-10 18:57:23 +00:00
Ira Ruben
e23bd2185f Added __attribute__((deprecated)) patches.
From-SVN: r48743
2002-01-10 18:51:24 +00:00
Kazu Hirata
47073a3824 * combine.c (expand_field_assignment): Use subreg_lsb().
From-SVN: r48742
2002-01-10 18:30:00 +00:00
David Edelsohn
d288e53d0c alias.c (find_base_value): Add cases for HIGH...
2002-01-10  David Edelsohn  <edelsohn@gnu.org>

        * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
        POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
        (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
        Recurse for any operand of AND as long as constant is non-zero.

From-SVN: r48741
2002-01-10 13:20:03 -05:00