Commit Graph

50669 Commits

Author SHA1 Message Date
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
Roger Sayle
f7df23be90 fold-const.c (tree_expr_nonnegative_p): Add support for floating point constants, addition and multiplication.
* fold-const.c (tree_expr_nonnegative_p): Add support for
	floating point constants, addition and multiplication.

	* gcc.dg/builtins-21.c: New test case.

From-SVN: r67828
2003-06-12 12:53:01 +00:00
J"orn Rennecke
38b3ef8be6 sh.md (adddi3_compact, [...]): Add earlyclobber constraint modifier for operand 0.
* sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
	constraint modifier for operand 0.

From-SVN: r67827
2003-06-12 13:03:25 +01:00
Hans-Peter Nilsson
2853bc5a64 configure.in (assembler dwarf2 debug_line support): Define insn for cris-*-* and mmix-*-*.
* configure.in (assembler dwarf2 debug_line support): Define insn
	for cris-*-* and mmix-*-*.
	* configure: Regenerate.

From-SVN: r67825
2003-06-12 07:09:56 +00:00
Hans-Peter Nilsson
78b8811a38 Don't warn on dollars in builtin macro definitions,
e.g. __REGISTER_PREFIX__.
	* cpphash.h (struct cpp_reader): Move member warn_dollars...
	* cpplib.h (struct cpp_options): ...to here.  Change type to
	unsigned char.
	* cppinit.c (cpp_create_reader): Set it to 1 here.
	(post_options): Don't set it here.
	* c-opts.c (c_common_init_options): Reset it to 0 here.
	(finish_options): Set it here.
	* cpplex.c (forms_identifier_p): Tweak for new location of
	warn_dollars.

From-SVN: r67824
2003-06-12 06:09:15 +00:00
Matt Kraai
ed44683592 * ChangeLog: Add missing closing parentheses.
From-SVN: r67823
2003-06-12 06:06:08 +00:00
Kelley Cook
8a434e1d5d Patch from Kelley Cook.
* lib/gcc.exp (gcc_target_compile): Put TOOL_OPTIONS at front of
options instead of at the end.
* lib/objc.exp (objc_target_compile): Likewise.

From-SVN: r67822
2003-06-11 22:54:23 -07:00
Neil Booth
70fd65692d * misc.c (gnat_handle_option): Fix warnings.
From-SVN: r67821
2003-06-12 05:47:04 +00:00
Matt Kraai
8cdea5a125 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
From-SVN: r67820
2003-06-12 05:42:08 +00:00
Uwe Stieber
6b3a0b3462 Kaos support from Uwe Stieber
Kaos support from Uwe Stieber
* config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
(sh-*-elf*): Add sh*-*-kaos* support.
* config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
config/sh/kaos-sh.h: New files.

From-SVN: r67819
2003-06-11 22:18:12 -07:00
Kazu Hirata
2fa4a84980 gcse.c (fis_get_condition): Make it a global function.
* gcse.c (fis_get_condition): Make it a global function.
	* reload1.c (reload_cse_move2add): Detect implicit sets.
	* rtl.h: Add a prototype for fis_get_condition.

From-SVN: r67814
2003-06-12 04:15:56 +00:00
Benjamin Kosnik
58ac1d7f0e acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
2003-06-11  Benjamin Kosnik  <bkoz@redhat.com>

	* acinclude.m4 (GLIBCPP_ENABLE_CSTDIO): Simplify.
	* aclocal.m4: Regenerate.
	* Makefile.am (SUBDIRS): Remove libio.
	* Makefile.in: Regenerate.
	* configure.in: Same.
	* configure: Regenerate.
	* config/io/basic_file_libio.cc: Remove.
	* config/io/basic_file_libio.h: Remove.
	* config/io/c_io_libio_codecvt.c: Remove.
	* config/io/c_io_libio.h: Remove.
	* libio/*: Remove.
	* src/Makefile.am: Same.
	* src/Makefile.in: Regenerate.
	* docs/html/configopts.html: Edits.
	* docs/html/explanations.html: Edits.

From-SVN: r67813
2003-06-12 03:24:16 +00:00
Tom Tromey
3ad93a3475 ClassLoader.java (loadClass): Not deprecated.
* java/lang/ClassLoader.java (loadClass): Not deprecated.
	* java/io/PrintStream.java: Not deprecated.

From-SVN: r67811
2003-06-12 03:13:14 +00:00
Scott Gilbertson
a28853b01b IntegerGraphicsState.java (drawOval): implemented.
2003-06-11  Scott Gilbertson  <scottg@mantatest.com>

	* gnu/awt/j2d/IntegerGraphicsState.java (drawOval): implemented.
	(fillOval): implemented
	* gnu/awt/xlib/XGraphics.java (drawArc): implemented.
	(fillArc): implemented.
	* gnu/gcj/xlib/GC.java (drawArc): added native method.
	(fillArc): added native method.
	* gnu/gcj/xlib/natGC.cc (drawArc): added native method.
	(fillArc): added native method.

From-SVN: r67810
2003-06-12 03:08:58 +00:00
Richard Henderson
d50ad6afbd stmt.c (expand_asm_operands): Don't warn for memories with queued addresses.
* stmt.c (expand_asm_operands): Don't warn for memories with
        queued addresses.

From-SVN: r67808
2003-06-11 18:04:32 -07:00
GCC Administrator
e46f19c848 Daily bump.
From-SVN: r67806
2003-06-12 00:16:10 +00:00
Mark Mitchell
df7f7b9c76 re PR c++/10432 (ICE in poplevel, at cp/decl.c:1230)
PR c++/10432
	* cp-tree.h (finish_declarator): Remove.
	* decl.c (cp_finish_decl): Make sure to pop_nested_class even for
	erroneous declarations.
	* semantics.c (finish_declarator): Remove.

	PR c++/10432
	* g++.dg/parse/error1.C: New test.

From-SVN: r67804
2003-06-12 00:10:26 +00:00
Kaz Kojima
04953ac986 sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without brackets.
* config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
	brackets.

From-SVN: r67801
2003-06-11 22:36:29 +00:00