Commit Graph

43914 Commits

Author SHA1 Message Date
Andrew Haley
6ac0c1e36f inline.java: New file.
2002-07-02  Andrew Haley  <aph@redhat.com>

        * libjava.lang/inline.java: New file.
        * libjava.lang/inline.out: Likewise.

        * libjava.lang/Array_3.java: Add another case.

From-SVN: r55186
2002-07-02 17:21:10 +00:00
Neil Booth
49e7b251ee cppinit.c (cpp_handle_option): Suppress warnings with an implicit "-w" for "-M" and "-MM".
* cppinit.c (cpp_handle_option):  Suppress warnings with an
	implicit "-w" for "-M" and "-MM".
doc:
	* cppopts.texi: Update.
testsuite:
	* gcc.dg/cpp/cmdlne-M.c: New test.

From-SVN: r55185
2002-07-02 17:06:03 +00:00
Kriang Lerdsuwanakij
06728f70cf Correct changed function name.
From-SVN: r55184
2002-07-02 16:10:00 +00:00
Kriang Lerdsuwanakij
04c4491db6 typeck2.c (incomplete_type_error): Fix typo caused by CVS conflict in my last patch.
* typeck2.c (incomplete_type_error): Fix typo caused by
	CVS conflict in my last patch.

From-SVN: r55183
2002-07-02 16:06:49 +00:00
Kriang Lerdsuwanakij
17f296378b re PR c++/6716 (loop and fill ram during compiling)
PR c++/6716
	* pt.c (can_complete_type_without_circularity): New function.
	(instantiate_class_template): Use it.
	* typeck2.c (incomplete_type_error): Improve error message
	due to incomplete fields.

	* g++.dg/template/instantiate1.C: New test.

From-SVN: r55182
2002-07-02 15:56:01 +00:00
GCC Administrator
7c1c5ccec8 Daily bump.
From-SVN: r55179
2002-07-02 07:19:51 +00:00
Phil Edwards
2f235b6d54 re PR libstdc++/7173 (_GLIBCPP_VERSION ="" on the 3.1 branch)
2002-07-02  Phil Edwards  <pme@gcc.gnu.org>

	PR libstdc++/7173
	* acinclude.m4:  Simplify determination of gcc_version, and move
	up to GLIBCPP_CONFIGURE.
	* configure.in (release_VERSION):  Really remove.
	(AM_INIT_AUTOMAKE, AM_CONFIG_HEADER):  Move after GLIBCPP_CONFIGURE.
	* aclocal.m4, configure:  Regenerate.

From-SVN: r55174
2002-07-02 06:39:04 +00:00
Phil Edwards
fc7f0a806c configopts.html, [...]: Tweaks.
2002-07-02  Phil Edwards  <pme@gcc.gnu.org>

	* docs/html/configopts.html, docs/html/install.html:  Tweaks.
	* include/ext/algorithm, include/ext/hash_map, include/ext/hash_set,
	include/ext/iterator, include/ext/numeric, include/ext/rb_tree,
	include/ext/slist, include/ext/stl_rope.h:  Add doxygen hooks.

From-SVN: r55172
2002-07-02 06:17:36 +00:00
Roger Sayle
a3acdc0cc1 sh.c (sh_media_init_builtins): Change use of poisoned identifier "bzero" to "memset".
* config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
	identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
	builtin_function.

From-SVN: r55171
2002-07-02 04:01:04 +00:00
Mark Mitchell
32131e44f5 * g++.dg/template/sizeof2.C: New test.
From-SVN: r55170
2002-07-02 03:19:37 +00:00
Mark Mitchell
5d69ba1faa re PR c++/7112 (Regression: ICE on C++ code involving templates and sizeof)
PR c++/7112
	* g++.dg/template/sizeof2.C: New test.

	PR c++/7112
	* mangle.c (write_expression): Add mangling for sizeof when
	applied to a type.
	* operators.def: Remove stale comment.

	* cp-demangle.c (demangle_operator_name): Add type_arg parameter.
	Set it for the "st" operator.
	(demangle_expression): Handle expressions with types as arguments.

From-SVN: r55169
2002-07-02 03:19:22 +00:00
Tom Tromey
68a830fe3a For PR libgcj/7073:
* parse.y (patch_incomplete_class_ref): Handle VOID_TYPE
	specially.

From-SVN: r55167
2002-07-02 02:56:11 +00:00
Tom Tromey
49925aed13 re PR libgcj/7180 (possible bug in javax.naming.spi.NamingManager.getPlusPath())
* javax/naming/spi/NamingManager.java (getPlusPath): Don't create
	StringTokenizer on null string.  For PR libgcj/7180.
	From daveho@cs.umd.edu.

From-SVN: r55166
2002-07-02 02:46:27 +00:00
Devang Patel
615ae4553a MAINTAINERS (Write After Approval): Add self.
From-SVN: r55165
2002-07-01 18:38:58 -07:00
Alan Modra
0b558962c1 * README.Portability: Fix typos.
From-SVN: r55164
2002-07-02 09:45:42 +09:30
Hans-Peter Nilsson
9a81c5b711 re PR target/7177 (cris-axis-elf: ICE at -O2, unrecognized insn, sign-extend mem)
PR target/7177
	* config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
	of indirections for register inside sign-extended mem part.

From-SVN: r55163
2002-07-01 23:18:33 +00:00
DJ Delorie
2a91582c04 Formatting change
From-SVN: r55162
2002-07-01 19:16:30 -04:00
Roger Sayle
6a2dd09a65 tree.h: Modify builtin_function interface to take an extra argument ATTRS...
* tree.h:  Modify builtin_function interface to take an extra
	argument ATTRS, which is a tree representing an attribute list.

	* c-decl.c (builtin_function): Accept additional parameter.
	* objc/objc-act.c (builtin_function): Likewise.
	* f/com.c (builtin_function): Likewise.
	* java/decl.c (builtin_function): Likewise.
	* ada/utils.c (builtin_function): Likewise.
	* cp/decl.c (builtin_function): Likewise.
	(builtin_function_1): Likewise.

	* c-common.c (c_common_nodes_and_builtins): Pass an additional
	NULL_TREE argument to builtin_function.  (builtin_function_2):
	Likewise.
	* cp/call.c (build_java_interface_fn_ref): Likewise.
	* objc/objc-act.c (synth_module_prologue): Likewise.
	* java/decl.c (java_init_decl_processing): Likewise.
	* f/com.c (ffe_com_init_0): Likewise.

	* config/alpha/alpha.c (alpha_init_builtins): Pass an additional
	NULL_TREE argument builtin_function.
	* config/arm/arm.c (def_builtin): Likewise.
	* config/c4x/c4x.c (c4x_init_builtins): Likewise.
	* config/i386/i386.c (def_builtin): Likewise.
	* config/ia64/ia64.c (def_builtin): Likewise.
	* config/rs6000/rs6000.c (def_builtin): Likewise.

From-SVN: r55161
2002-07-01 23:07:19 +00:00
Matt Kraai
eebd288ac7 * MAINTAINERS (Write After Approval): Update my e-mail address.
From-SVN: r55160
2002-07-01 22:51:10 +00:00
Nathanael Nerode
3ab36f05d6 Wipe out apache.
Wipe out apache.  Don't configure cgen from the top level; that part is
simply pulled over from src.

From-SVN: r55159
2002-07-01 22:40:12 +00:00
Zack Weinberg
e20569ae80 t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
* config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
	* config/mips/t-isa3264: Likewise.
	* config/mmix/t-mmix: Likewise.

From-SVN: r55156
2002-07-01 21:21:37 +00:00
John David Anglin
f1b690f105 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
From-SVN: r55155
2002-07-01 21:13:00 +00:00
Nathanael Nerode
55380b08d8 Reorganize, remove now-redundant tests.
From-SVN: r55154
2002-07-01 21:01:48 +00:00
Roger Sayle
6bfa5aac87 re PR rtl-optimization/4046 (redundant conditional branch)
PR opt/4046
	* fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
	A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
	B are truth values.

From-SVN: r55153
2002-07-01 20:59:00 +00:00
Nathanael Nerode
9a5c1b9db1 Kill last references to LIBGCC1_TEST, which is never tested and never set to anything but "".
Kill last references to LIBGCC1_TEST, which is never tested and never
set to anything but "".  Oy.

From-SVN: r55152
2002-07-01 20:51:20 +00:00
Matt Kraai
3b2124df5f README.Portability (Function prototypes): Give an example of declaring and defining a function with no arguments.
* README.Portability (Function prototypes): Give an example of
	declaring and defining a function with no arguments.

From-SVN: r55151
2002-07-01 20:24:41 +00:00
Matt Kraai
d3fc4dbce0 README.Portability (Function prototypes): Document new variable-argument function macros.
* README.Portability (Function prototypes): Document new
	variable-argument function macros.

From-SVN: r55150
2002-07-01 20:09:52 +00:00
Nathanael Nerode
5fd3853ac3 config-ml.in doesn't need to worry about cygnus configure
From-SVN: r55149
2002-07-01 19:59:22 +00:00
Benjamin Kosnik
eafa1afac6 strstream: Remove namespace std.
2002-07-01  Benjamin Kosnik  <bkoz@redhat.com>

	* include/backward/strstream: Remove namespace std. Transfer to...
	* include/backward/strstream.h: ...here. Qualify std names.
	* src/strstream.cc: Remove namespace std.
	* include/Makefile.am (backward_headers): Remove strstream.h.
	* include/Makefile.in: Regenerate.
	* config/linker-map.gnu: Export strstream bits.

	* src/fstream-inst.cc: Tweak.
	* src/io-inst.cc: Same.
	* src/istream-inst.cc: Same.
	* src/misc-inst.cc: Same.
	* src/ostream-inst.cc: Same.
	* src/sstream-inst.cc: Same.
	* src/valarray-inst.cc: Same.
	* src/misc-inst.cc: Remove unused instantiations.

From-SVN: r55148
2002-07-01 19:58:42 +00:00
J"orn Rennecke
c1b92d0906 sh.c (langhooks.h): Include.
* sh.c (langhooks.h): Include.
	(sh_init_builtins, sh_media_init_builtins): New functions.
	(sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
	(mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
	(sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
	(builtin_description): New struct tag.
	(signature_args, bdesc): New arrays.
	(TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
	(print_operand): Add 'N' modifier.
	* sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
	(EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
	(EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
	(CONST_COSTS): Add special case for SHmedia AND.
	(PREDICATE_CODES): Add and_operand, arith_reg_dest,
	extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
	sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
	target_operand can also be const or unspec.
	* sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
	(UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
	(attribute type): Add new types.
	(anddi3): Add splitter.
	(movdi_const_16bit+1): Add code to handle vector constants and
	bitmasks efficiently.
	(shori_media): Have generator function made.
	(movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
	(movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
	(movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
	(ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
	(negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
	(negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
	(mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
	(mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
	(mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
	(mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
	(mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
	(mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
	(mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
	(mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
	(mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
	(mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
	(mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
	(lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
	(ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
	(ftrv): Likewise.

	(fpu_switch+1, fpu_switch+2): Remove constraint.

From-SVN: r55147
2002-07-01 20:41:54 +01:00
Neil Booth
7098b619a0 cmdlne-dD.c, [...]: New tests.
* gcc.dg/cpp/trad/cmdlne-dD.c, gcc.dg/cpp/trad/cmdlne-dM.c,
	gcc.dg/cpp/trad/include.c: New tests.

From-SVN: r55146
2002-07-01 19:41:52 +00:00
Hans-Peter Nilsson
0a220b4a53 re PR target/7177 (cris-axis-elf: ICE at -O2, unrecognized insn, sign-extend mem)
PR target/7177
	* gcc.c-torture/compile/20020701-1.c: New test.

From-SVN: r55143
2002-07-01 19:39:44 +00:00
Stan Shebs
bbeb33f262 objc.exp (objc_target_compile): Add the -I path to ObjC header here...
* lib/objc.exp (objc_target_compile): Add the -I path to ObjC
        header here...
        * lib/objc-torture.exp (objc-torture-compile): ...instead of here
        (objc-torture-execute): or here.

From-SVN: r55142
2002-07-01 18:54:39 +00:00
Aldy Hernandez
97ebc06f5d tree.c (build_function_type_list): Update function comment.
2002-07-01  Aldy Hernandez  <aldyh@redhat.com>

        * tree.c (build_function_type_list): Update function comment.
        Rename first argument to return_type.

From-SVN: r55141
2002-07-01 18:40:24 +00:00
Benjamin Kosnik
9035b63a14 configure.in (libtool_VERSION): Bump to 5:0:0.
2002-07-01  Benjamin Kosnik  <bkoz@redhat.com>

	* configure.in (libtool_VERSION): Bump to 5:0:0.
	* configure: Regenerate.

From-SVN: r55140
2002-07-01 18:08:25 +00:00
Neil Booth
353a10d056 Makefile.in: Remove all trace of tradcpp.c, tradcpp.h, tradcif.y and related files.
* Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
	tradcif.y and related files.

From-SVN: r55139
2002-07-01 16:13:01 +00:00
Nathanael Nerode
cfefc43445 Remove references to building emacs from top level Makefile.in.
From-SVN: r55138
2002-07-01 15:59:58 +00:00
J"orn Rennecke
03c5327857 * gcc.c-torture/execute/arith-rand-ll.c: New test.
From-SVN: r55136
2002-07-01 16:12:49 +01:00
Neil Booth
e34cabb3b7 cpptrad.c (skip_whitespace): Pass pointer to prior char.
* cpptrad.c (skip_whitespace): Pass pointer to prior char.
testsuite:
	* gcc.dg/cpp/trad/escaped-nl.c: New test.

From-SVN: r55135
2002-07-01 12:51:10 +00:00
Neil Booth
590e1987d2 * cppmacro.c: Forgotten commit.
From-SVN: r55134
2002-07-01 12:47:54 +00:00
Kaveh R. Ghazi
8bf3ccbbbd * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
From-SVN: r55133
2002-07-01 12:13:03 +00:00
GCC Administrator
0201312b89 Daily bump.
From-SVN: r55132
2002-07-01 07:17:09 +00:00
Douglas B Rupp
7fda878c25 configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2002-06-30  Douglas Rupp  <rupp@gnat.com>

	* configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
	* Makefile.in (OUTPUT_OPTION): Use.

From-SVN: r55127
2002-07-01 05:38:50 +00:00
T.J. Mather
32c4621e89 gcj.texi: Fixed gcj invocation example so that it compiles.
2002-06-29  T.J. Mather  <tjmather@maxmind.com>

	* gcj.texi: Fixed gcj invocation example so that it compiles.

From-SVN: r55126
2002-07-01 04:48:39 +01:00
Devang Patel
118f8dc12c objc-act.c (finish_file): Avoid finish_objc() if -fsyntax-only.
2002-06-30  Devang Patel  <dpatel@apple.com>

        * objc/objc-act.c (finish_file): Avoid finish_objc() if
        -fsyntax-only.

2002-06-30  Devang Patel  <dpatel@apple.com>

        * objc.dg/fsyntax-only.m: New test.

From-SVN: r55125
2002-07-01 00:43:41 +00:00
Nathan Sidwell
d689a8f192 cp-tree.h (CPTI_TINFO_DECL_TYPE): Replace with ...
* cp-tree.h (CPTI_TINFO_DECL_TYPE): Replace with ...
	(CPTI_TYPE_INFO_PTR_TYPE): ... this.
	(tinfo_decl_type): Replace with ...
	(type_info_ptr_type): ... this.
	(import_export_tinfo): Declare.
	(tinfo_decl_p): Rename to ...
	(unemitted_tinfo_decl_p): ... this.
	* decl2.c (import_export_decl): Break out tinfo handling into ...
	(import_export_tinfo): ... here. New function.
	(finish_file): Adjust.
	* rtti.c (TINFO_REAL_NAME): New macro.
	(init_rtti_processing): Create the tinfo types.
	(get_tinfo_decl_dynamic): Use type_info_ptr_type, get_tinfo_ptr.
	(get_tinfo_decl): Adjust.
	(get_tinfo_ptr): New function.
	(get_type_id): Use it.
	(tinfo_base_init): Create vtable decl here, if it doesn't exist.
	(ptr_initializer): Use get_tinfo_ptr.
	(ptm_initializer): Likewise.
	(synthesize_tinfo_var): Break into ...
	(get_pseudo_ti_init): ... this. Just create the initializer.
	(get_pseudo_ti_desc): .. and this.
	(create_real_tinfo_var): Remove.
	(create_pseudo_type_info): Don't create the vtable decl here.
	(get_vmi_pseudo_type_info): Remove.
	(create_tinfo_types): Adjust.
	(tinfo_decl_p): Rename to ...
	(unemitted_tinfo_decl_p): ... here. Adjust.
	(emit_tinfo_decl): Adjust. Create the initializer.

From-SVN: r55124
2002-06-30 20:41:38 +00:00
Denis Chertykov
e3223ea293 extend.texi: Add ip2k port to description of attribute naked.
* doc/extend.texi: Add ip2k port to description of attribute
	naked.
	* doc/install.texi (Specific): Add ip2k description.
	* doc/install-old.texi (Configurations): Add ip2k to possible
	cpu types.
	* doc/md.texi: Document ip2k constraints.
	* config/ip2k/crt0.S: New file.
	* config/ip2k/ip2k-protos.h: New file.
	* config/ip2k/ip2k.c: New file.
	* config/ip2k/ip2k.h: New file.
	* config/ip2k/ip2k.md: New file.
	* config/ip2k/libgcc.S: New file.
	* config/ip2k/t-ip2k: New file.

Co-Authored-By: Alan Lehotsky <apl@alum.mit.edu>
Co-Authored-By: Bernd Schmidt <bernds@redhat.com>
Co-Authored-By: Dave Hudson <dave.hudson@ubicom.com>
Co-Authored-By: Frank Ch. Eigler <fche@redhat.com>
Co-Authored-By: Graham Stott <grahams@redhat.com>
Co-Authored-By: Jeff Johnston <jjohnstn@redhat.com>
Co-Authored-By: Matthew Green <mrg@redhat.com>
Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r55122
2002-06-30 23:27:48 +04:00
Hans-Peter Nilsson
66b8c57f68 mmix.md ("return"): New pattern.
* config/mmix/mmix.md ("return"): New pattern.
	* config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
	(TARGET_USE_RETURN_INSN): New macros.
	(TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
	(TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
	* config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
	(MMIX_POP_ARGUMENT): New macro.
	(mmix_target_asm_function_prologue): When no epilogue is executed,
	just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
	(mmix_print_operand) <case '.'>: New case.
	(mmix_print_operand_punct_valid_p): Match '.'.
	(mmix_use_simple_return): New function.
	* config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
	* doc/invoke.texi (Option Summary) <MMIX Summary>: Add
	-msingle-exit, -mno-single-exit.
	(MMIX Options): Ditto.

From-SVN: r55121
2002-06-30 18:53:53 +00:00
Aldy Hernandez
e7a60f5696 i386.c (ix86_init_mmx_sse_builtins): Fix typos.
2002-06-30  Aldy Hernandez  <aldyh@redhat.com>

        * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.

From-SVN: r55120
2002-06-30 17:01:39 +00:00
Kaveh R. Ghazi
1ef7d32b91 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
From-SVN: r55119
2002-06-30 12:14:15 +00:00