Commit Graph

50946 Commits

Author SHA1 Message Date
Richard Henderson
6e287baeec Mark PR last change.
From-SVN: r67921
2003-06-13 16:29:23 -07:00
Richard Henderson
eb7f48f94b com.c (ffecom_sym_transform_): Install FFEINFO_whereGLOBAL symbols in the global binding level.
* com.c (ffecom_sym_transform_): Install FFEINFO_whereGLOBAL
        symbols in the global binding level.

From-SVN: r67920
2003-06-13 16:28:49 -07:00
Kelley Cook
1f2cd13074 bsd.h: Remove ASM_FILE_START.
* config/i386/bsd.h: Remove ASM_FILE_START.
* config/i386/djgpp.h: Likewise.
* config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.

* config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
* config.gcc (i[34567]86-pc-msdosdjgpp): ... here.

From-SVN: r67919
2003-06-13 19:18:50 -04:00
Vladimir Makarov
880efc46cd re PR bootstrap/10835 (combinatory explosion in scheduler on HyperSPARC)
2003-06-13  Vladimir Makarov  <vmakarov@redhat.com>

	PR bootstrap/10835
	* haifa-sched.c (max_lookahead_tries,
        cached_first_cycle_multipass_dfa_lookahead,
        cached_issue_rate): New variables.
	(max_issue): Check the number of tries.
	(choose_ready): Calculate max_lookahead_tries.
	(sched_init): Check cached_issue_rate.

From-SVN: r67918
2003-06-13 23:09:48 +00:00
Richard Henderson
792bb204af cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
* cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
        * cfgrtl.c (purge_dead_edges): Expect it too.

From-SVN: r67917
2003-06-13 15:56:09 -07:00
James E Wilson
54c2fc721c re PR bootstrap/10983 ([SPARC64] ICE in verify_wide_reg, at flow.c:551, while compiling libjava)
PR bootstrap/10983
	* combine.c (make_extraction): Use gen_lowpart_for_combine
	when extracting from a REG and not in the destination of a SET.

Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>

From-SVN: r67916
2003-06-13 22:13:07 +00:00
Doug Evans
7e7de68b89 tsystem.h (abort): Declare in inhibit_libc case to remove build warnings for addvsi3, et.al.
* tsystem.h (abort): Declare in inhibit_libc case to remove build
	warnings for addvsi3, et.al.

From-SVN: r67915
2003-06-13 21:52:02 +00:00
Paolo Carlini
ed24293523 1.cc: Split and fix for missing seeks between gets and puts into...
2003-06-13  Paolo Carlini  <pcarlini@unitus.it>

	* testsuite/27_io/basic_filebuf/seekoff/char/1.cc: Split and
	fix for missing seeks between gets and puts into...
	* testsuite/27_io/basic_filebuf/seekoff/char/3-io.cc: New.
	* testsuite/27_io/basic_filebuf/seekoff/char/4-io.cc: New.
	* testsuite/27_io/basic_filebuf/seekpos/char/1.cc: Same, into...
	* testsuite/27_io/basic_filebuf/seekpos/char/3-io.cc: New.
	* testsuite/27_io/basic_filebuf/seekpos/char/4-io.cc: New.
	* testsuite/27_io/basic_filebuf/sputbackc/char/1-io.cc: Fix
	for missing seeks between gets and puts.
	* testsuite/27_io/basic_filebuf/sputbackc/char/2-io.cc: Ditto.
	* testsuite/data/seekoff-1.tst: New.
	* testsuite/data/seekoff-2.tst: New.
	* testsuite/data/seekpos-1.tst: New.
	* testsuite/data/seekpos-2.tst: New.

From-SVN: r67913
2003-06-13 21:06:37 +00:00
Nathan C. Myers
ca566e4c07 Avoid multi-processor bus contention on increment/decrement-and- test of the reference count in the empty-string object...
2003-06-13  Nathan C. Myers <ncm-nospam@cantrip.org>

	Avoid multi-processor bus contention on increment/decrement-and-
	test of the reference count in the empty-string object, by comparing
        addresses first, and never touching the reference count of the empty-
        string object.
	* include/bits/basic_string.h:
	(_S_empty_rep_storage): Move into basic_string<>::_Rep for use by its
	members.
	(_Rep::_S_empty_rep()): New accessor.
	(_Rep::_M_length, _Rep::_M_capacity, _Rep::_M_references): Move to
	a base class _Rep_base.
	(_Rep::_M_dispose, _Rep::_M_refcopy): Check for the empty string.
	(basic_string()): Change to use _M_refdata() in place of _M_refcopy(),
	since no longer must increment its refcount.
	* include/bits/basic_string.tcc:
	(_Rep::_M_destroy, _M_leak_hard): Check for the empty string and
        return immediately.  The former might be unnecessary.  The latter
        prevents begin() and end() from cloning it unnecessarily.
	(_S_construct(_InIterator, _InIterator, const _Alloc&,
	input_iterator_tag), _S_construct(_InIterator, _InIterator,
	const _Alloc&, forward_iterator_tag), _S_construct(size_type, _CharT,
	const _Alloc&)): Change to use _M_refdata() in place of _M_refcopy().
	(_M_mutate): Check for the empty string and treat it as shared.
        This is necessary here because _M_mutate is sometimes called with
        all-zero arguments; in all other uses of _M_is_shared, the test comes
        out right anyhow.

From-SVN: r67912
2003-06-13 20:59:42 +00:00
Aldy Hernandez
9f629a2191 c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
2003-06-13  Aldy Hernandez  <aldyh@redhat.com>

        * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.

        * simplify-rtx.c (simplify_subreg): Same.

        * emit-rtl.c (gen_lowpart_common): Same.

From-SVN: r67911
2003-06-13 19:27:29 +00:00
Kazu Hirata
e15bb5c692 builtins.c: Fix comment typos.
* builtins.c: Fix comment typos.
	* fold-const.c: Likewise.

From-SVN: r67907
2003-06-13 17:30:53 +00:00
Doug Evans
d88e80e622 m32r-protos.h (m32r_pass_by_reference): Declare.
* config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
	* config/m32r/m32r.c (m32r_pass_by_reference): New fn.
	(m32r_va_arg): Use it.
	* config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
	(RETURN_IN_MEMORY): Ditto.

Co-Authored-By: Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>

From-SVN: r67906
2003-06-13 16:57:26 +00:00
Nathanael Nerode
4581c67856 * c-typeck.c: Remove #if 0 clauses.
From-SVN: r67905
2003-06-13 16:23:35 +00:00
Nathanael Nerode
9e7d116436 * lex.c: Convert to ISO C.
From-SVN: r67904
2003-06-13 16:13:07 +00:00
Nathanael Nerode
362efdc10b init.c: removes use of PARAMS macro.
2003-05-19  Jens-Michael Hoffmann  <jensmh@gmx.de>
	* init.c: removes use of PARAMS macro.  Use ISO style function
	declarations.  (Not copyright-significant change.)

From-SVN: r67902
2003-06-13 15:07:48 +00:00
Nathanael Nerode
dc125bdfd9 re PR other/1494 (Residual EGCS references in comments)
PR other/1494
	* config/alpha/openbsd.h, config/i386/openbsd.h,
	config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
	residual reference to EGCS.

From-SVN: r67900
2003-06-13 14:39:42 +00:00
Richard Earnshaw
6ab5da8050 arm.c (output_call_mem): If the address references the link-register use an instruction sequence that...
* arm.c (output_call_mem): If the address references the link-register
use an instruction sequence that avoids early-clobbering IP.
(eliminate_lr2ip): Delete.

From-SVN: r67899
2003-06-13 14:30:38 +00:00
Nathanael Nerode
cec57f7231 * rtti.c: Remove PARAMS.
From-SVN: r67898
2003-06-13 14:30:19 +00:00
Kaveh R. Ghazi
3af0187c28 c-format.c (format_types_orig): Disallow '*' width/precision in asm_fprintf format checks.
gcc:
	* c-format.c (format_types_orig): Disallow '*' width/precision in
	asm_fprintf format checks.

testsuite:
	* gcc.dg/format/asm_fprintf-1.c: Update width/precision checks.

From-SVN: r67897
2003-06-13 14:08:36 +00:00
Nathanael Nerode
281b173200 * paranoia.cc: Fix spelling error.
From-SVN: r67896
2003-06-13 13:57:27 +00:00
Nathanael Nerode
0a8cb79ede * typeck2.c: Convert to ISO C.
From-SVN: r67895
2003-06-13 13:34:16 +00:00
Ulrich Weigand
c873e11f46 s390.c (s390_va_arg): Fix alignment when retrieving non-integral types from integer register save...
* config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
	non-integral types from integer register save area slots.

From-SVN: r67894
2003-06-13 13:04:34 +00:00
Andrew Haley
bec3e66d1a prims.cc (catch_segv): Create exception in handler.
2003-06-12  Andrew Haley  <aph@redhat.com>

        * prims.cc (catch_segv): Create exception in handler.
        (catch_fpe): Likewise.
        (_Jv_divI, _Jv_remI, _Jv_divJ, _Jv_remJ): Likewise.
        (_Jv_ThrowSignal): Remove.

        * include/x86_64-signal.h (INIT_SEGV): Delete reference to nullp.
        * include/default-signal.h (INIT_SEGV, INIT_FPE): Delete reference
        to nullp and arithexception.
        * include/dwarf2-signal.h (INIT_SEGV, INIT_FPE): Likewise.
        * include/i386-signal.h (INIT_SEGV, INIT_FPE): Likewise.
        * include/s390-signal.h (INIT_SEGV, INIT_FPE): Likewise.
        * include/sparc-signal.h (INIT_SEGV, INIT_FPE): Likewise.
        * include/win32-signal.h (INIT_SEGV, INIT_FPE): Likewise.

From-SVN: r67892
2003-06-13 12:20:45 +00:00
Rainer Orth
12e816bf16 sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
* src/x86/sysv.S: Avoid gas-only .uleb128/.sleb128 directives.
	Use C style comments.

From-SVN: r67891
2003-06-13 11:59:53 +00:00
Matt Kraai
aa7f1eb144 ChangeLog.1: Fix spelling of "outputting".
(gcc)
	* ChangeLog.1: Fix spelling of "outputting".
	* ChangeLog.3: Likewise.
	* diagnostic.h: Likewise.
	* genautomata.c: Likewise.
	* config/pa/pa.c: Likewise.

(gcc/ada)
	* gnatls.adb: Fix spelling of "outputting".
	* gnatmem.adb: Likewise.
	* prj-pp.adb: Likewise.

From-SVN: r67890
2003-06-13 11:36:31 +00:00
Nathanael Nerode
16ae108b35 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
From-SVN: r67889
2003-06-13 11:29:35 +00:00
Florian Weimer
ebd6b6a1db invoke.texi (SPARC Options): Document ``-mimpure-text''.
2003-06-13  Florian Weimer  <fw@deneb.enyo.de>

	* doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.

From-SVN: r67888
2003-06-13 12:11:45 +02:00
Kaz Kojima
43c7300430 linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
* config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
	to file_end_indicate_exec_stack.

From-SVN: r67887
2003-06-13 07:03:49 +00:00
Doug Evans
dc9ed76ab6 back out previous patch, instead do
back out previous patch, instead do
	* config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
	(__do_global_ctors,__do_global_dtors): Ditto.

From-SVN: r67886
2003-06-13 06:20:12 +00:00
Richard Henderson
ee4336ea81 re PR target/11089 (ICE: instantiate_virtual_regs_lossage while using sse built-ins)
PR target/11089
        * config/i386/i386.md (sse_movaps): Use an expander to force
        one operand to be a register.
        (sse_movups): Likewise.

From-SVN: r67883
2003-06-12 23:13:51 -07:00
Benjamin Kosnik
c37514ff62 allocator-inst.cc: Explicitly instantiate.
2003-06-12  Benjamin Kosnik  <bkoz@redhat.com>

	* src/allocator-inst.cc: Explicitly instantiate.
	* include/ext/pool_allocator.h: Inhibit implicit instantiations.
	Tweaks.
	* config/linker-map.gnu: Add __pool_alloc bits. Tweaks.

From-SVN: r67882
2003-06-13 05:45:57 +00:00
Mark Mitchell
5482aaab6f gcc-dg.exp (dg-require-dll): New function.
* lib/gcc-dg.exp (dg-require-dll): New function.
	(dg-xfail-if): Likewise.
	* gcc.c-torture/compile/compile.exp: Use dg rather than c-torture
	driver.

	* gcc.c-torture/compile/20000804-1.c: Convert to dg format.
	* gcc.c-torture/compile/20001205-1.c: Likewise.
	* gcc.c-torture/compile/20001226-1.c: Likewise.
	* gcc.c-torture/compile/20010518-2.c: Likewise.
	* gcc.c-torture/compile/20020312-1.c: Likewise.
	* gcc.c-torture/compile/20020604-1.c: Likewise.
	* gcc.c-torture/compile/920501-12.c: Likewise.
	* gcc.c-torture/compile/920501-4.c: Likewise.
	* gcc.c-torture/compile/920520-1.c: Likewise.
	* gcc.c-torture/compile/920521-1.c: Likewise.
	* gcc.c-torture/compile/920625-1.c: Likewise.
	* gcc.c-torture/compile/961203-1.c: Likewise.
	* gcc.c-torture/compile/980506-1.c: Likewise.
	* gcc.c-torture/compile/981006-1.c: Likewise.
	* gcc.c-torture/compile/981022-1.c: Likewise.
	* gcc.c-torture/compile/981223-1.c: Likewise.
	* gcc.c-torture/compile/990617-1.c: Likewise.
	* gcc.c-torture/compile/dll.c: Likewise.
	* gcc.c-torture/compile/labels-3.c: Likewise.
	* gcc.c-torture/compile/mipscop-1.c: Likewise.
	* gcc.c-torture/compile/mipscop-2.c: Likewise.
	* gcc.c-torture/compile/mipscop-3.c: Likewise.
	* gcc.c-torture/compile/mipscop-4.c: Likewise.
	* gcc.c-torture/compile/simd-5.c: Likewise.
	* gcc.c-torture/compile/20000804-1.x: Remove.
	* gcc.c-torture/compile/20001205-1.x: Likewise.
	* gcc.c-torture/compile/20001226-1.x: Likewise.
	* gcc.c-torture/compile/20010518-2.x: Likewise.
	* gcc.c-torture/compile/20020312-1.x: Likewise.
	* gcc.c-torture/compile/20020604-1.x: Likewise.
	* gcc.c-torture/compile/920501-12.x: Likewise.
	* gcc.c-torture/compile/920501-4.x: Likewise.
	* gcc.c-torture/compile/920520-1.x: Likewise.
	* gcc.c-torture/compile/920521-1.x: Likewise.
	* gcc.c-torture/compile/920625-1.x: Likewise.
	* gcc.c-torture/compile/961203-1.x: Likewise.
	* gcc.c-torture/compile/980506-1.x: Likewise.
	* gcc.c-torture/compile/981006-1.x: Likewise.
	* gcc.c-torture/compile/981022-1.x: Likewise.
	* gcc.c-torture/compile/981223-1.x: Likewise.
	* gcc.c-torture/compile/990617-1.x: Likewise.
	* gcc.c-torture/compile/mipscop-1.x: Likewise.
	* gcc.c-torture/compile/mipscop-2.x: Likewise.
	* gcc.c-torture/compile/mipscop-3.x: Likewise.
	* gcc.c-torture/compile/mipscop-4.x: Likewise.
	* gcc.c-torture/compile/simd-5.x: Likewise.

	* gcc.c-torture/compile/20021205-1.c: Remove bogus dg commands.

From-SVN: r67881
2003-06-13 05:41:02 +00:00
Doug Evans
2ac29877a5 Remove some build warnings.
* config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): No longer
	static.
	(__do_global_ctors,__do_global_dtors): Ditto.

From-SVN: r67880
2003-06-13 05:33:38 +00:00
Richard Henderson
c63f3a3443 re PR middle-end/10557 ([m68k] ICE in subreg_offset_representable_p)
PR middle-end/10557
        * rtlanal.c (subreg_offset_representable_p): Relax subreg check.

From-SVN: r67878
2003-06-12 22:30:33 -07:00
Matt Kraai
e2cca9be4e fold-const.c (tree_expr_nonnegative_p): Fix misspelling of "least".
* fold-const.c (tree_expr_nonnegative_p): Fix misspelling
	of "least".

From-SVN: r67877
2003-06-13 04:35:29 +00:00
Kazu Hirata
0d370a05d3 * config/m32r/m32r.md: Fix a comment typo.
From-SVN: r67876
2003-06-13 04:18:26 +00:00
Eric Botcazou
48028e2196 re PR target/10142 ([SPARC64] gcc produces wrong code when passing structures by value)
PR target/10142
	* config/sparc/sparc.c (function_arg_record_value_parms): Add
	new 'stack' field.
	(function_arg_record_value_1): Set 'stack' to 1 if we run out of
	integer slots for an integer field.
	(function_arg_record_value_3): Shift vector index.
	(function_arg_record_value_2): Likewise.
	(function_arg_record_value): Initialize 'stack' to 0.
	Set 'stack' to 1 if we run out of integer slots for an integer field.
	Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.

Co-Authored-By: Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>

From-SVN: r67874
2003-06-13 03:56:10 +00:00
Eric Botcazou
28e089c6fd * gcc.c-torture/execute/20030611-1.c: New test.
From-SVN: r67871
2003-06-13 03:39:47 +00:00
Eric Botcazou
5adf448c3b re PR rtl-optimization/10955 ([SPARC] wrong code at -O3 for structure argument in context of structure return)
PR optimization/10955
	* unroll.c (unroll_loop): Fix off-by-one bug.

From-SVN: r67870
2003-06-13 03:34:02 +00:00
Kaz Kojima
e860ed6dce Makefile.am: Add SHmedia support.
* Makefile.am: Add SHmedia support.  Fix a typo of SH support.
	* Makefile.in: Regenerate.
	* configure.in (sh64-*-linux*, sh5*-*-linux*): Add target.
	* configure: Regenerate.
	* include/ffi.h.in: Add SHmedia support.
	* src/sh64/ffi.c: New file.
	* src/sh64/sysv.S: New file.

From-SVN: r67869
2003-06-13 02:23:26 +00:00
Aldy Hernandez
55c8af0b09 rs6000.c (function_arg): Remove typo.
2003-06-12  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.c (function_arg): Remove typo.

[[Split portion of a mixed commit.]]

From-SVN: r67867.2
2003-06-13 02:03:09 +00:00
Richard Henderson
cb0e3e3fc8 i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF and UNSPEC_DTPOFF.
* config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
        and UNSPEC_DTPOFF.

From-SVN: r67866
2003-06-12 17:45:11 -07:00
Richard Henderson
8433f113b6 re PR middle-end/10475 (ICE in subreg_highpart_offset for code with long long)
PR middle-end/10475
        * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
        for extracting sub-words.
	* gcc.c-torture/compile/20030612-1.c: New.

From-SVN: r67865
2003-06-12 17:34:04 -07:00
GCC Administrator
974c7cc67f Daily bump.
From-SVN: r67860
2003-06-13 00:16:08 +00:00
Richard Henderson
7b6877289f re PR target/7594 ([m68k] ICE on legal code associated with simplify-rtx)
PR target/7594
        * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
        (zero_extendqihi2, zero_extendqisi2): Likewise.

From-SVN: r67857
2003-06-12 14:57:31 -07:00
Aldy Hernandez
a6c9bed444 rs6000.c (function_arg): Always split vectors for e500 if it's a stdarg function.
2003-06-12  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/rs6000.c (function_arg): Always split vectors for
	e500 if it's a stdarg function.
	(function_arg_advance): Advance 2 registers for vectors in a
	stdarg function.
	(init_cumulative_args): Initialize stdarg.
	(rs6000_spe_function_arg): New.

	* config/rs6000/rs6000.h (rs6000_args): Add stdarg.

From-SVN: r67854
2003-06-12 21:38:46 +00:00
Aldy Hernandez
4dcc01f3f1 rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
2003-06-12  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.

From-SVN: r67851
2003-06-12 20:58:22 +00:00
Roger Sayle
96f26e4161 re PR middle-end/168 (Spurious signed/unsigned comparison warning)
PR middle-end/168
	* fold-const.c (tree_expr_nonnegative_p):  Handle addition
	and multiplication of zero extensions, floating point division,
	and integer<->fp, fp<->fp and zero extension conversions.
	The built-in ceil and floor functions preserve signedness.

	* gcc.dg/20030612-1.c: New test case.

From-SVN: r67850
2003-06-12 20:33:02 +00:00
Kazu Hirata
6356f89288 ChangeLog: Follow spelling conventions.
* ChangeLog: Follow spelling conventions.
	* ChangeLog.2: Likewise.
	* c-decl.c: Likewise.
	* cfgloop.h: Likewise.
	* cgraph.c: Likewise.
	* coverage.c: Likewise.
	* cppcharset.c: Likewise.
	* cpphash.h: Likewise.
	* cpplex.c: Likewise.
	* cpplib.c: Likewise.
	* dbxout.c: Likewise.
	* df.c: Likewise.
	* dwarf2out.c: Likewise.
	* dwarfout.c: Likewise.
	* emit-rtl.c: Likewise.
	* explow.c: Likewise.
	* gcov-io.c: Likewise.
	* gcov-io.h: Likewise.
	* gcov.c: Likewise.
	* gengtype.c: Likewise.
	* ggc.h: Likewise.
	* opts.c: Likewise.
	* real.c: Likewise.
	* reload.c: Likewise.
	* stmt.c: Likewise.

From-SVN: r67849
2003-06-12 19:01:08 +00:00
Janis Johnson
25f47a4c23 * doc/install.texi (m32r-*-elf): Change company to Renesas.
From-SVN: r67848
2003-06-12 18:46:23 +00:00