Commit Graph

50636 Commits

Author SHA1 Message Date
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
Jan Hubicka
f0fda11c8b basic-block.h (flow_delete_block_noexpunge): Kill.
* basic-block.h (flow_delete_block_noexpunge): Kill.
	* cfgrtl.c (flow_delete_block_noexpunge): Merge to
	rtl_delete_block.

From-SVN: r67846
2003-06-12 18:09:56 +00:00
Richard Henderson
d6fc04926d re PR inline-asm/4823 (gcc reports internal compiler error on legal code)
PR inline-asm/4823
        * reg-stack.c (any_malformed_asm): New.
        (check_asm_stack_operands): Set it.
        (convert_regs_1): Check it before aborting.

From-SVN: r67845
2003-06-12 11:01:26 -07:00
Mark Mitchell
79b59cc3d3 re PR c++/10635 (ICE (segfault) when dereferencing an incomplete type casted from a void pointer)
PR c++/10635
	* typeck.c (build_c_cast): Check that the destination type is
	complete.

	PR c++/10635
	* g++.dg/expr/cast1.C: New test.

[[Split portion of a mixed commit.]]

From-SVN: r67840.2
2003-06-12 17:22:29 +00:00
Aldy Hernandez
54da776f2d spe.md: Change all clobbers of the accumulator to sets.
2003-06-12  Aldy Hernandez  <aldyh@redhat.com>

        * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.

From-SVN: r67837
2003-06-12 16:40:41 +00:00
Benjamin Kosnik
00b0f35e6e stl_alloc.h (__debug_alloc): Move out.
2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>

	* include/bits/stl_alloc.h (__debug_alloc): Move out.
	(__malloc_alloc): Same.
	(__pool_alloc): Same.
	(__new_alloc): Same.
	Rename to..
	* include/bits/allocator.h: ...this.
	* include/bits/stl_deque.h: Modify comment.
	* include/bits/stl_tree.h: Modify include.
	* include/std/std_memory.h: Same.
	* include/ext/rope: Same.
	* include/ext/slist: Same.
	* include/std/std_vector.h: Same.
	* include/std/std_stack.h: Same.
	* include/std/std_queue.h: Same.
	* include/std/std_list.h: Same.
	* include/std/std_deque.h: Same.
	* include/backward/alloc.h: Same.
	* include/ext/debug_allocator.h: New.
	* include/ext/malloc_allocator.h: New.
	* include/ext/pool_allocator.h: New.
	* include/ext/new_allocator.h: New.
	* include/bits/pthread_allocimpl.h: Remove.
	* include/bits/stl_pthread_alloc.h: Remove.
	* include/Makefile.am (ext_headers): Add.
	* include/Makefile.in: Regenerate.
	* src/stl-inst.cc: Use __gnu_cxx namespace.
	* src/stl-inst.cc: Move to...
	* src/allocator-inst.cc: Here.
	* src/Makefile.am (sources): Update.
	* src/Makefile.in: Regenerate.
	* config/linker-map.gnu: Remove __pool_alloc bits.
	* testsuite/ext/headers.cc: Add.
	* testsuite/ext/allocators.cc: Fixup.

From-SVN: r67836
2003-06-12 15:49:16 +00:00
Andrew Haley
e976ed37ef jni.cc (_Jv_JNI_check_types): New.
2003-06-11  Andrew Haley  <aph@redhat.com>

        * jni.cc (_Jv_JNI_check_types): New.
        (_Jv_JNI_SetPrimgitiveArrayRegion): Check array type.
        (_Jv_JNI_GetPrimitiveArrayRegion): Ditto.
        (_Jv_JNI_GetPrimitiveArrayElements): Ditto.
        (_Jv_JNI_ReleasePrimitiveArrayElements): Ditto.

        * java/lang/natVMSecurityManager.cc (getClassContext): Fix
        infinite loop.

From-SVN: r67835
2003-06-12 15:39:17 +00:00
Andreas Jaeger
14b96a951a * treetree.c: Remove cl_options-count and cl_options.
From-SVN: r67834
2003-06-12 17:15:40 +02:00
H.J. Lu
0bb41a37f3 config.guess: Update to 2003-06-06 version.
2003-06-12  H.J. Lu <hongjiu.lu@intel.com>

	* config.guess: Update to 2003-06-06 version.
	* config.sub: Update to 2003-06-06 version.

From-SVN: r67833
2003-06-12 07:38:22 -07:00
Jakub Jelinek
c47d8f8255 c-opts.c (complain_wrong_lang): Add on argument.
* c-opts.c (complain_wrong_lang): Add on argument.
	Print no- switch if on is false.
	(c_common_decode_option): Adjust caller.

From-SVN: r67831
2003-06-12 16:02:41 +02:00
Ulrich Weigand
109480b1c5 s390.c (s390_emit_prologue): Use LA instead of AR to initialize GOT register.
* config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
	to initialize GOT register.

From-SVN: r67829
2003-06-12 13:47:52 +00:00