Commit Graph

39032 Commits

Author SHA1 Message Date
Alexandre Oliva
be1bb2a4da tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if it has DECL_SAVED_TREE.
* tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
it has DECL_SAVED_TREE.

From-SVN: r47615
2001-12-04 17:11:05 +00:00
Geert Bosch
0839863cfa einfo.adb (Has_Pragma_Pure_Function): New flag.
* einfo.adb (Has_Pragma_Pure_Function): New flag.
	Fix problem that stopped ceinfo from working

	* einfo.ads (Has_Pragma_Pure_Function): New flag.

	* sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.

From-SVN: r47614
2001-12-04 17:55:48 +01:00
Douglas B Rupp
9678de4977 * gnatchop.adb:
(File_Time_Stamp): New procedure.
	(Preserve_Mode): New boolean.
	(Write_Unit): Pass time stamp.
	Implement -p switch (preserve time stamps).

	* gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).

	* gnatchop.adb: Do usage info for -p switch

	* adaint.h (__gnat_set_file_time_name): New function

	* adaint.c (__gnat_set_file_time_name): Implement

	* adaint.h: Fix typo

From-SVN: r47613
2001-12-04 17:37:55 +01:00
Alexandre Oliva
b0ca54affc Revert previous patch
From-SVN: r47612
2001-12-04 15:10:16 +00:00
Andreas Jaeger
667e5c5da3 * trans.c (tree_transform): Adjust call of expand_start_stmt_expr.
From-SVN: r47611
2001-12-04 14:25:32 +01:00
Alexandre Oliva
23700f6508 c-decl.c (duplicate_decls): Revert rth's patch.
* c-decl.c (duplicate_decls): Revert rth's patch.  If newdecl
is in a different binding level, get its abstract origin to be
olddecl.
* tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
check earlier.
* tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
DECL_INITIAL is NULL.

From-SVN: r47610
2001-12-04 10:34:40 +00:00
Alexandre Oliva
961eacce43 com.c (ffecom_expr_power_integer_): Adjust expand_start_stmt_expr() invocation.
* com.c (ffecom_expr_power_integer_): Adjust
expand_start_stmt_expr() invocation.

From-SVN: r47609
2001-12-04 10:31:27 +00:00
Alexandre Oliva
5e9b6df8b4 semantics.c (begin_global_stmt_expr): Adjust expand_start_stmt_expr invocation.
* semantics.c (begin_global_stmt_expr): Adjust
expand_start_stmt_expr invocation.

From-SVN: r47608
2001-12-04 10:30:47 +00:00
Alexandre Oliva
d1bd43d950 stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff we're interested in the result.
* stmt.c (expand_expr_stmt): Keep last_expr_value non-NULL iff
we're interested in the result.  Use it to tell whether to
ignore results of enclosed expressions.
(expand_start_stmt_expr): Added new argument, and initialize
last_expr_value accordingly.
* tree.h (expand_start_stmt_expr): Adjusted declaration.
* c-common.c (c_expand_expr): Adjust call.
* expr.c (expand_expr) [EXPR_WFL]: Pass const0_rtx down if
ignoring the result.

From-SVN: r47607
2001-12-04 10:30:04 +00:00
Alexandre Oliva
1b3ea405b0 * Makefile.in ($(LIBG2C)): Fix -rpath argument to libtool.
From-SVN: r47606
2001-12-04 10:02:51 +00:00
Alexandre Oliva
90f86cb5d1 Makefile.in (AR, RANLIB): Add, for substitutions.
* Makefile.in (AR, RANLIB): Add, for substitutions.
(all-unilib, $(LIBG2C)): Depend on object lists, not
convenience libraries.
(s-libe77): Renamed from libE77.la; build object list.
(install): Do not move libraries to libdir.
(mostlyclean, clean): Adjust.
* libF77/Makefile.in (RANLIB): Add.
(LINK): Remove.
(../s-libf77): Renamed from ../libF77.la; build object list.
(../libfrtbegin.a): Remove target first.  Don't use $<.
(all, clean, distclean): Adjust.
* libF77/configure.in: Substitute RANLIB.
* libF77/configure: Rebuilt.
* libI77/Makefile.in (LINK): Delete.
(../s-libi77): Renamed from ../libI77.la; build object list.
(all, clean, distclean): Adjust.
* libU77/Makefile.in: Likewise.

From-SVN: r47605
2001-12-04 09:53:18 +00:00
Nathan Sidwell
9471d3e291 pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.
cp:
	* pt.c (end_template_parm_list): Clear TREE_CHAIN of each parm.

From-SVN: r47604
2001-12-04 09:51:18 +00:00
Nathan Sidwell
713ccd0c6c re PR c++/164 (bogus error throwing class with inaccessible base)
cp:
	PR g++/164
	* init.c (sort_base_init): Allow binfos to be directly specified.
	* method.c (do_build_copy_constructor): Explicitly convert to the
	base instance.
	(do_build_assign_ref): Likewise.
testsuite:
	* g++.dg/inherit/base1.C: New test.

From-SVN: r47603
2001-12-04 09:48:53 +00:00
Jakub Jelinek
b318748ff4 flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
* flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
	Return correct value if one of the subexpressions was optimized to
	0 resp. 1.  Optimize (x | A) | x and (x & A) | x.
	(and_reg_cond): Similarly.

	* gcc.c-torture/compile/20011130-2.c: New test.

From-SVN: r47602
2001-12-04 10:33:17 +01:00
Jakub Jelinek
108b7d3d31 function.c (assign_parms): Set last_named only for last named argument.
* function.c (assign_parms): Set last_named only for last named
	argument.

	* g++.dg/other/stdarg1.C: New test.

From-SVN: r47601
2001-12-04 10:29:54 +01:00
Joseph Myers
5402e639e2 Fix date on last entry.
From-SVN: r47599
2001-12-04 09:23:37 +00:00
Joseph Myers
aed5964b2d install.texi: Use the GFDL.
* doc/install.texi: Use the GFDL.  Include years from old install
	manual in copyright notice.  Include copyright and GFDL notice on
	HTML index page.  Include usual footer on testing.html.
	* doc/install.texi2html: Build gfdl.html.  Use -I
	$SOURCEDIR/include.
	* doc/include/fdl.texi: Adapt for use in the install manual.

From-SVN: r47598
2001-12-04 09:21:56 +00:00
Joseph Myers
635771afd6 install.texi: Document that installed native compiler for building cross compilers should be...
* doc/install.texi: Document that installed native compiler for
	building cross compilers should be GCC 2.95 or later.

From-SVN: r47596
2001-12-04 08:19:41 +00:00
GCC Administrator
33ad83f5a8 Daily bump.
From-SVN: r47594
2001-12-04 08:16:23 +00:00
Bryce McKinlay
83de3bc47f * Makefile.in: Rebuilt with automake-gcj.
From-SVN: r47593
2001-12-04 07:21:25 +00:00
Benjamin Kosnik
dbb27f267a collate.cc: Compile-only.
2001-12-03  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/22_locale/collate.cc: Compile-only.
	* testsuite/22_locale/time_get.cc: Same.
	* testsuite/22_locale/time_put.cc: Same.
	* testsuite/22_locale/numpunct.cc: Same.
	* testsuite/22_locale/num_put.cc: Same.
	* testsuite/22_locale/num_get.cc: Same.
	* testsuite/22_locale/moneypunct.cc: Same.
	* testsuite/22_locale/money_get.cc: Same.
	* testsuite/22_locale/messages.cc: Same.
	* testsuite/22_locale/ctype.cc: Same.

From-SVN: r47592
2001-12-04 07:15:01 +00:00
Tom Tromey
64d3a1b48e defineclass.cc (handleMethodsEnd): Invoke verifier here...
* defineclass.cc (handleMethodsEnd): Invoke verifier here...
	(handleCodeAttribute): ... not here.
	* verify.cc (_Jv_BytecodeVerifier::state::state): Use `copy', not
	structure assignment.

From-SVN: r47591
2001-12-04 06:37:53 +00:00
Eric Christopher
2ca2d9ee0f mips.h (CALL_REALLY_USED_REGISTERS): New macro.
2001-12-03  Eric Christopher  <echristo@redhat.com>

	* config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
	* config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
	patterns.

From-SVN: r47590
2001-12-04 06:30:02 +00:00
Richard Henderson
0d204c2d41 New test.
From-SVN: r47589
2001-12-03 17:25:32 -08:00
Per Bothner
87d4ad0804 parse.y (patch_binop): Minor constant folding.
* parse.y (patch_binop):  Minor constant folding.

	* parse.y (build_current_thisn):  Shorter 'buffer'.

From-SVN: r47588
2001-12-03 17:24:59 -08:00
Per Bothner
aedcdb655d decl.c (complete_start_java_method): Now generate TRY_FINALLY_EXPR instead of CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR.
* decl.c (complete_start_java_method):  Now generate TRY_FINALLY_EXPR
	instead of CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR.
	* jcf-write.c (generate_bytecode_insns):  Remove support for
	CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR as they are no longer used.
	* check-init.c (check_init):  Likewise.

From-SVN: r47587
2001-12-03 17:10:08 -08:00
Benjamin Kosnik
3acc0e7632 string-inst.cc (string::_Rep::_S_terminal): Add static data member instantiations.
2001-12-03  Benjamin Kosnik  <bkoz@redhat.com>

	* src/string-inst.cc (string::_Rep::_S_terminal): Add static data
	member instantiations.

From-SVN: r47586
2001-12-04 01:01:46 +00:00
Janis Johnson
be18831b8d New test for __builtin_prefetch.
From-SVN: r47585
2001-12-04 00:56:33 +00:00
Janis Johnson
2511b9c42e Test for __builtin_prefetch.
From-SVN: r47584
2001-12-04 00:54:21 +00:00
Janis Johnson
868900245e builtin-prefetch-1.c: New test.
* gcc.c-torture/execute/builtin-prefetch-1.c: New test.
	* gcc.c-torture/execute/builtin-prefetch-2.c: New test.
	* gcc.c-torture/execute/builtin-prefetch-3.c: New test.
	* gcc.c-torture/execute/builtin-prefetch-4.c: New test.
	* gcc.c-torture/execute/builtin-prefetch-5.c: New test.
	* gcc.dg/builtin-prefetch-1.c: New test.

From-SVN: r47583
2001-12-04 00:52:43 +00:00
Janis Johnson
a9ccbb60d4 builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
* builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
	* builtins.def (BUILT_IN_PREFETCH): New.
	* builtins.c (expand_builtin_expect): New.
	  (expand_builtin): Call it.
	* doc/extend.texi: Document __builtin_expect.

From-SVN: r47582
2001-12-04 00:50:35 +00:00
Janis Johnson
21b8482ae8 rtl.def (PREFETCH): New rtx code.
* rtl.def (PREFETCH): New rtx code.
	* doc/rtl.texi (PREFETCH): Add documentation.
	* function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
	* rtlanal.c (reg_referenced_p): Ditto.
	* sched-vis.c (print_exp):  Ditto.
	* ssa-dce.c (find_inherently_necessary):  Ditto.

From-SVN: r47580
2001-12-04 00:47:14 +00:00
Janis Johnson
44eca121fc ia64.h (SIMULTANEOUS PREFETCHES): Define.
* config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
	  (PREFETCH_BLOCK): Define.
	* config/ia64/ia64.md (itanium_class): Add lfetch.
	  (prefetch, prefetch_internal): New.

From-SVN: r47579
2001-12-04 00:42:41 +00:00
Janis Johnson
8527852a3b ia64.h (SIMULTANEOUS PREFETCHES): Define.
* config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
	  (PREFETCH_BLOCK): Define.
	* config/ia64/ia64.md (itanium_class): Add lfetch.
	  (prefetch, prefetch_internal): New.
	  prefetch_sse.

From-SVN: r47578
2001-12-04 00:42:00 +00:00
Janis Johnson
7a9aba6ccf i386.md (prefetch): Rename as prefetch_sse to avoid conflicts with new generic prefetch functionality.
* config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
	  conflicts with new generic prefetch functionality.
	* config/i386/i386.c (ix86_expand_builtin): Use new name for
	  prefetch_sse.

From-SVN: r47577
2001-12-04 00:40:21 +00:00
Janis Johnson
cc1648227f rtl.def (PREFETCH): New rtx code.
* rtl.def (PREFETCH): New rtx code.
	* doc/rtl.texi (PREFETCH): Add documentation.
	* function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
	* rtlanal.c (reg_referenced_p): Ditto.
	* sched-vis.c (print_exp):  Ditto.
	* ssa-dce.c (find_inherently_necessary):  Ditto.

	* config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
	  (PREFETCH_BLOCK): Define.
	* config/ia64/ia64.md (itanium_class): Add lfetch.
	  (prefetch, prefetch_internal): New.

	* builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
	* builtins.def (BUILT_IN_PREFETCH): New.
	* builtins.c (expand_builtin_expect): New.
	  (expand_builtin): Call it.
	* doc/extend.texi: Document __builtin_expect.

	* config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
	  conflicts with new generic prefetch functionality.
	* config/i386/i386.c (ix86_expand_builtin): Use new name for
	  prefetch_sse.

From-SVN: r47576
2001-12-04 00:37:50 +00:00
Ziemowit Laski
4e089a757d Make-lang.in: Update copyright.
* objc/Make-lang.in: Update copyright.
        (OBJC_OBJS): Add objc-lang.o.
        (objc-lang.o): New rule.
        * objc/config-lang.in: Fix file description and update
        copyright.
        * objc/objc-act.c: Do not include langhooks.h and
        langhooks-def.h
        (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
        (objc_post_options): Move to objc-lang.c.
        (objc_init_options): Move to objc-lang.c.
        (objc_init): Make non-static.
        (HASHFUNCTION): Remove macro.
        (hash_func): New function.
        (hash_enter): Replace HASHFUNCTION with hash_func.
        (hash_lookup): Replace HASHFUNCTION with hash_func.
        (maybe_objc_tree_codes): New function.
        (init_objc): Move ObjC tree code initialization to
        maybe_objc_tree_codes().
        * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
        (objc_init): New public prototype.
        (objc_decode_option): New public prototype.
        (maybe_add_objc_tree_codes): New public prototype.
        * objc/objc-lang.c: New file.
        (lang_hooks): Moved from objc-act.c.
        (objc_post_options): Moved from objc-act.c.
        (objc_init_options): Moved from objc-act.c.

From-SVN: r47575
2001-12-04 00:25:20 +00:00
Zack Weinberg
9904592eca Doc update for -maix-struct-return patch
From-SVN: r47574
2001-12-04 00:10:56 +00:00
Per Bothner
82ff672eb7 verify.c (subroutine_nesting): New function.
* verify.c (subroutine_nesting):  New function.
	(verify_jvm_instructions):  Use it to fix logic for checking that
	we're done with the current subroutine.

	* verify.c (verify_jvm_instruction): For OPCODE_checkcast and
	OPCODE_instanceof use POP_TYPE macro for better diagnostics.

From-SVN: r47572
2001-12-03 15:30:21 -08:00
Hans-Peter Nilsson
9fe038e861 Fix spacing in third last entry
From-SVN: r47571
2001-12-03 23:20:00 +00:00
Hans-Peter Nilsson
591382c41f decl.c (xref_basetypes): Don't use C99 construct in tag_code declaration and initialization.
* decl.c (xref_basetypes): Don't use C99 construct in tag_code
	declaration and initialization.

From-SVN: r47570
2001-12-03 23:15:09 +00:00
Per Bothner
98a63868fc jcf.h: Fix obvious typo in comment.
* jcf.h:  Fix obvious typo in comment.
	* typeck.c (build_null_signature):  Add comment.

From-SVN: r47569
2001-12-03 15:09:42 -08:00
Geoffrey Keating
a76033a004 emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension of array elements.
* emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
	of array elements.

From-SVN: r47568
2001-12-03 23:01:44 +00:00
Laurent Guerby
251931f3ad config.sub: Update to version 1.232 on subversion.
2001-12-03  Laurent Guerby  <guerby@acm.org>

	* config.sub: Update to version 1.232 on subversion.

From-SVN: r47567
2001-12-03 22:54:05 +00:00
Neil Booth
bdf4130847 re PR c/4988 (--target-help emits cc1 printout twice)
PR c/4988
	* (process_command): Don't add a preprocessor option for
	--help and --target-help; cc1 is enough.

From-SVN: r47565
2001-12-03 22:36:51 +00:00
Steve Ellcey
75940b886e configure.in: Add support for hpux cross compiles...
2001-12-03  Steve Ellcey  <sje@cup.hp.com>

        * libstdc++-v3/configure.in: Add support for hpux cross compiles,
        combine common linux/hpux/generic cross compile support to reduce
        redundent lines.
        * libstdc++-v3/configure: Regenerate.

From-SVN: r47564
2001-12-03 22:28:57 +00:00
Robert Dewar
3b9a13c4ce sinfo.ads: Minor reformatting.
* sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
        have Associated_Node.

From-SVN: r47563
2001-12-03 21:38:54 +01:00
Robert Dewar
767b404e81 prj-proc.adb: Minor reformatting
* prj-proc.adb: Minor reformatting

	* make.adb: Minor reformatting

From-SVN: r47562
2001-12-03 21:25:50 +01:00
Geert Bosch
11ac71ba8a * make.adb: Minor reformatting.
From-SVN: r47561
2001-12-03 20:58:23 +01:00
Robert Dewar
b1446533cf * sem_ch12.adb: Minor reformatting
From-SVN: r47560
2001-12-03 20:25:42 +01:00