Commit Graph

50606 Commits

Author SHA1 Message Date
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
Roger Sayle
35b4a5768f decl2.c (generate_ctor_or_dtor_function): Avoid expanding a global static constructor/destructor if it will be empty, i.e.
* decl2.c (generate_ctor_or_dtor_function): Avoid expanding a
	global static constructor/destructor if it will be empty, i.e.
	either doesn't call any ctors/dtors or only calls pure or const
	ctors/dtors.

From-SVN: r67800
2003-06-11 22:29:41 +00:00
Neil Booth
7fb26bb001 hooks.c (hook_int_size_t_constcharptr_int_0): New.
* hooks.c (hook_int_size_t_constcharptr_int_0): New.
	* hooks.h (hook_int_size_t_constcharptr_int_0): New.
	* langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
	(LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
	* langhooks.c (lhd_decode_option): Remove.
	* langhooks.h (struct lang_hooks): Remove decode_option.
	* opts.c (handle_option): No longer use decode_option.
java:
	* Make-lang.in: Handle mostlyclean.
treelang:
	* Make-lang.in: Update for option handling.
	* lang.opt: New.
	* tree1.c: Include opts.h and t-options.h.
	(treelang_decode_option): Remove.
	(treelang_handle_option): New.
	* treetree.c (LANG_HOOKS_DECODE_OPTION): Remove.
	(LANG_HOOKS_HANDLE_OPTION): Override.
	* treetree.h (treelang_decode_option): Remove.
	(treelang_handle_option): New.

From-SVN: r67799
2003-06-11 22:21:10 +00:00
Mark Mitchell
24386c5ec6 mangle.c (tm_p.h): Include it.
* mangle.c (tm_p.h): Include it.
	* Make-lang.in (cp/mangle.o): Depend on $(TM_P_H).

From-SVN: r67798
2003-06-11 21:56:31 +00:00
Neil Booth
a897bbba37 Fix typo
From-SVN: r67797
2003-06-11 20:59:40 +00:00
Janis Johnson
2f1c3e4934 struct-by-value-11_main.c: New file.
* gcc.dg/compat/struct-by-value-11_main.c: New file.
	* gcc.dg/compat/struct-by-value-11_x.c: New file.
	* gcc.dg/compat/struct-by-value-11_y.c: New file.
	* gcc.dg/compat/struct-by-value-12_main.c: New file.
	* gcc.dg/compat/struct-by-value-12_x.c: New file.
	* gcc.dg/compat/struct-by-value-12_y.c: New file.
	* gcc.dg/compat/struct-by-value-13_main.c: New file.
	* gcc.dg/compat/struct-by-value-13_x.c: New file.
	* gcc.dg/compat/struct-by-value-13_y.c: New file.
	* gcc.dg/compat/struct-by-value-14_main.c: New file.
	* gcc.dg/compat/struct-by-value-14_x.c: New file.
	* gcc.dg/compat/struct-by-value-14_y.c: New file.
	* gcc.dg/compat/struct-by-value-15_main.c: New file.
	* gcc.dg/compat/struct-by-value-15_x.c: New file.
	* gcc.dg/compat/struct-by-value-15_y.c: New file.
	* gcc.dg/compat/struct-by-value-16_main.c: New file.
	* gcc.dg/compat/struct-by-value-16_x.c: New file.
	* gcc.dg/compat/struct-by-value-16_y.c: New file.
	* gcc.dg/compat/struct-by-value-17_main.c: New file.
	* gcc.dg/compat/struct-by-value-17_x.c: New file.
	* gcc.dg/compat/struct-by-value-17_y.c: New file.
	* gcc.dg/compat/struct-by-value-18_main.c: New file.
	* gcc.dg/compat/struct-by-value-18_x.c: New file.
	* gcc.dg/compat/struct-by-value-18_y.c: New file.

From-SVN: r67796
2003-06-11 20:29:21 +00:00
Neil Booth
3c900cb55b Make-lang.in: Update to handle command-line options.
ada:
	* Make-lang.in: Update to handle command-line options.
	* lang.opt: New file.
	* misc.c: Include aoptions.h.
	(cl_options_count, cl_options): Remove.
	(gnat_handle_option): New.
	(gnat_decode_option): Remove.
	(LANG_HOOKS_DECODE_OPTION): Remove.
	(LANG_HOOKS_HANDLE_OPTION): Override.

From-SVN: r67795
2003-06-11 20:23:02 +00:00
Zdenek Dvorak
7e53cfb20d cfgloopanal.c (variable_initial_value): Update the set of altered registers correctly.
* cfgloopanal.c (variable_initial_value): Update the set of altered
	registers correctly.

From-SVN: r67792
2003-06-11 19:01:19 +00:00
Michael Koch
763ebfe05a This should not get committed.
From-SVN: r67790
2003-06-11 18:27:39 +00:00
Janis Johnson
795a4ff2fa scalar-by-value-3_main.c: New file.
* gcc.dg/compat/scalar-by-value-3_main.c: New file.
	* gcc.dg/compat/scalar-by-value-3_x.c: New file.
	* gcc.dg/compat/scalar-by-value-3_y.c: New file.
	* gcc.dg/compat/scalar-by-value-4_main.c: New file.
	* gcc.dg/compat/scalar-by-value-4_x.c: New file.
	* gcc.dg/compat/scalar-by-value-4_y.c: New file.
	* gcc.dg/compat/scalar-return-3_main.c: New file.
	* gcc.dg/compat/scalar-return-3_x.c: New file.
	* gcc.dg/compat/scalar-return-3_y.c: New file.
	* gcc.dg/compat/scalar-return-4_main.c: New file.
	* gcc.dg/compat/scalar-return-4_x.c: New file.
	* gcc.dg/compat/scalar-return-4_y.c: New file.

From-SVN: r67789
2003-06-11 18:21:38 +00:00
Michael Koch
e68b8bd0ff Forgot to add them to the commit command line too, AARGH.
From-SVN: r67788
2003-06-11 18:20:40 +00:00
Roger Sayle
5f9b07113d d30v.h: Delete reference to ASM_FINAL_SPEC.
* config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
	* config/i386/netbsd-elf.h: Likewise.
	* config/m32r/m32r.h: Likewise.
	* config/mn10300/mn10300.h: Likewise.
	* config/stormy16/stormy16.h: Likewise.
	* config/v850/v850.h: Likewise.
	* config/vax/netbsd-elf.h: Likewise.
	* config/xtensa/elf.h: Likewise.
	* config/xtensa/linux.h: Likewise.

Co-Authored-By: Kaveh R. Ghazi <ghazi@caip.rutgers.edu>

From-SVN: r67784
2003-06-11 17:52:42 +00:00
Mark Mitchell
a5512a2fe2 re PR c++/11131 (Unrelated declaration removes inline flag from function)
PR c++/11131
	* tree.c (cp_cannot_inline_fn): Check for "inline" before
	instantiation.

From-SVN: r67783
2003-06-11 17:02:13 +00:00
Michael Koch
c0081c100c Forgot to add this file to cvs. Sorry.
From-SVN: r67781
2003-06-11 16:36:11 +00:00