Commit Graph

54445 Commits

Author SHA1 Message Date
Eric Christopher 628b6e8cc1 reload1.c (reload): Fix previous change.
2003-11-17  Eric Christopher  <echristo@redhat.com>

        * reload1.c (reload): Fix previous change.

From-SVN: r73687
2003-11-18 00:40:42 +00:00
GCC Administrator e88ae79498 Daily bump.
From-SVN: r73684
2003-11-18 00:16:07 +00:00
Jason Merrill d2cf112d21 fix size_t
From-SVN: r73680
2003-11-17 18:09:44 -05:00
Jason Merrill 73eeb3d450 add comment
From-SVN: r73678
2003-11-17 14:41:00 -05:00
Jason Merrill a61116616e init.c (build_new_1): Preevaluate placement args.
* init.c (build_new_1): Preevaluate placement args.
        * call.c (build_op_delete_call): Don't expose placement args to
        overload resolution.

From-SVN: r73677
2003-11-17 14:39:46 -05:00
Scott Snyder 47fcfa7bc1 re PR debug/11325 (nested class debug info missing)
2003-11-17  Scott Snyder  <snyder@fnal.gov>

	PR debug/11325
	* dwarf2out.c (struct die_struct): Add die_definition field.
	(add_AT_specification): New.
	(gen_subprogram_die, gen_variable_die,
	gen_struct_or_union_type_die): Use it.
	(prune_unused_types_mark): If we're marking a forward declaration,
	also mark the full definition, if it exists.

From-SVN: r73676
2003-11-17 17:48:59 +00:00
Andrew Haley 6bbb4ad35e java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New.
2003-09-12  Andrew Haley  <aph@redhat.com>

        * java-tree.h (LOCAL_VAR_OUT_OF_SCOPE_P): New.
        (struct lang_decl_var:freed): New variable.
        * decl.c (poplevel): Mark local vars that have gone out of scope.
        (push_jvm_slot): Don't use the RTL of a var that has gone out of
        scope.

From-SVN: r73675
2003-11-17 17:39:05 +00:00
Jason Merrill 2a53208d3c re PR c++/11266 ([tree-ssa] ICE with placement new)
PR c++/11266
        * gimplify.c (gimple_add_tmp_var): Also make sure
        seen_in_bind_expr isn't set.
        (mostly_copy_tree_r): Don't copy a TARGET_EXPR.
        (gimplify_target_expr): Only expand a TARGET_EXPR the first time
        we see it.

[[Split portion of a mixed commit.]]

From-SVN: r73674.2
2003-11-17 11:33:59 -05:00
Arnaud Charlet cb7a5092bf Resync.
From-SVN: r73673
2003-11-17 16:03:53 +01:00
Arnaud Charlet d05ef0ab60 [multiple changes]
2003-11-17  Jerome Guitton  <guitton@act-europe.fr>

	* 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
	already called in System.Threads.

	* 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
	environment task, as it has been moved to System.Threads.Initialization.

2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>

	* adaint.c (__gnatlib_install_locks): Only reference
	__gnat_install_locks on VMS, since other platforms can avoid using
	--enable-threads=gnat

2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.

	* decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
	TYPE_PACKED_ARRAY_TYPE_P.
	(validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.

	Part of PR ada/12806
	* utils.c (float_type_for_precision): Renamed from float_type_for_size.
	Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.

2003-11-17  Vincent Celier  <celier@gnat.com>

	* gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
	to False.
	Do not set exit status to Failure when Warning is True.
	(Gnatchop): Make errors "no compilation units found" and
	"no source files written" warnings only.

	* make.adb (Gnatmake): When using a project file, set
	Look_In_Primary_Dir to False.
	(Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
	and Local_Configuration_Pragmas in the project where they are declared
	not an extending project which might have inherited them.

	* osint.adb (Locate_File): If Name is already an absolute path, do not
	look for a directory.

	* par-ch10.adb (P_Compilation_Unit): If source contains no token, and
	-gnats (Check_Syntax) is used, issue only a warning, not an error.

	* prj.adb (Register_Default_Naming_Scheme): Add new component Project
	in objects of type Variable_Value.

	* prj.ads: (Variable_Value): New component Project

	* prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
	is in a project extended by Project.

	* prj-proc.adb (Add_Attributes): New parameter Project. Set component
	Project of Variable_Values to this new parameter value.
	(Expression): Set component Project of Variable_Values.
	(Process_Declarative_Items): Call Add_Attributes with parameter Project.
	Set the component Project in array elements.

2003-11-17  Sergey Rybin  <rybin@act-europe.fr>

	* errout.adb: (Initialize): Add initialization for error nodes.

	* sem_ch12.adb (Initialize): Add missing initializations for
	Exchanged_Views and Hidden_Entities.

2003-11-17  Ed Schonberg  <schonberg@gnat.com>

	* sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
	already instantiated tree for use in subsequent inlining.
	(Analyze_Associations, Instantiate_Formal_Subprogram,
	Instantiate_Object): improve error message for mismatch in
	instantiations.

	* sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
	instantiations of subprograms declared in instances.

2003-11-17  Javier Miranda  <miranda@gnat.com>

	* sem_ch4.adb (Analyze_Allocator): Previous modification must be
	executed only under the Extensions_Allowed flag.

2003-11-17  Robert Dewar  <dewar@gnat.com>

	* a-exexda.adb (Address_Image): Fix documentation to indicate leading
	zeroes suppressed.
	(Address_Image): Fix bug of returning 0x instead of 0x0
	Minor reformatting (function specs).

	* einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
	(missed case of 33-63)

	* freeze.adb, sem_ch13.adb: Properly check size of packed bit array

	* s-thread.adb: Add comments for pragma Restriction

	* exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
	sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting

2003-11-17  Ed Falis  <falis@gnat.com>

	* s-thread.adb: Added No_Tasking restriction for this implementation.

2003-11-17  Emmanuel Briot  <briot@act-europe.fr>

	* xref_lib.adb (Parse_Identifier_Info): Add handling of generic
	instanciation references in the parent type description.

2003-11-17  GNAT Script  <nobody@gnat.com>

	* Make-lang.in: Makefile automatically updated

From-SVN: r73672
2003-11-17 15:58:17 +01:00
Stan Cox 638dcaa0b0 * MAINTAINERS: Add myself as iq2000 port maintainer.
From-SVN: r73671
2003-11-17 14:21:54 +00:00
Paolo Carlini c246639311 locale_facets.tcc: Fix typo in comment.
2003-11-17  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc: Fix typo in comment.

From-SVN: r73667
2003-11-17 08:54:09 +00:00
Nick Clifton 37cd4bcaa9 Replace use of poisoned BUILD_VA_LIST_TYPE macro with a target function.
From-SVN: r73666
2003-11-17 08:42:59 +00:00
Paolo Carlini 6a7ee0d62e 8.cc: New test, summarizing the discussion ensuing libstdc++/12988.
2003-11-17  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/22_locale/num_put/put/char/8.cc: New test,
	summarizing the discussion ensuing libstdc++/12988.
	* testsuite/22_locale/num_put/put/wchar_t/8.cc: Ditto.

From-SVN: r73665
2003-11-17 08:39:57 +00:00
Kazu Hirata c06d5c8586 h8300-protos.h: Add the prototype for same_cmp_following_p.
* config/h8300/h8300-protos.h: Add the prototype for
	same_cmp_following_p.
	* config/h8300/h8300.c (same_cmp_following_p): New.
	* config/h8300/h8300.md (peephole2): Use it.

From-SVN: r73662
2003-11-17 02:29:54 +00:00
Kazu Hirata a62a282bf4 h8300.md: Don't use REGNO when its operand is not guaranteed to be a REG.
* config/h8300/h8300.md: Don't use REGNO when its operand is
	not guaranteed to be a REG.

From-SVN: r73661
2003-11-17 02:26:54 +00:00
GCC Administrator 773f1fa639 Daily bump.
From-SVN: r73658
2003-11-17 00:16:08 +00:00
Kaveh R. Ghazi 178b9a09f6 * gcc.dg/cpp/assert4.c: New test.
From-SVN: r73654
2003-11-16 21:27:39 +00:00
Tom Tromey edc6a9c48b re PR libgcj/13062 (StreamTokenizer ignores commentChar)
PR libgcj/13062:
	* java/io/StreamTokenizer.java (commentChar): Clear other
	attributes for character.
	(quoteChar): Likewise.

From-SVN: r73653
2003-11-16 21:15:55 +00:00
Richard Sandiford c988af2b8c Makefile.in (expr.o): Depend on $(TARGET_H).
* Makefile.in (expr.o): Depend on $(TARGET_H).
	* target.h (return_in_msb): New target hook.
	* target-def.h (TARGET_RETURN_IN_MSB): New macro.
	(TARGET_CALLS): Include it.
	* calls.c (shift_returned_value): New function.
	(expand_call): Use it.
	* expr.c: Include target.h.
	(copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
	deciding what padding is needed.  Change the name of the local
	padding variable from big_endian_correction to padding_correction.
	* stmt.c (shift_return_value): New function.
	(expand_return): Use it.  Adjust memory->register copy in the same
	way as copy_blkmode_from_reg.  Only change the return register's
	mode if it was originally BLKmode.
	* doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
	* config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
	(mips_fpr_return_fields): New, split out from mips_function_value.
	(mips_return_in_msb, mips_return_fpr_pair): New functions.
	(mips_function_value): Rework to use the functions above.
	* config/mips/irix6-libc-compat.c: Delete.
	* config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.

From-SVN: r73652
2003-11-16 19:10:09 +00:00
Kazu Hirata e0c99e151e * doc/install.texi (--enable-checking): Update valgrind's URL.
From-SVN: r73651
2003-11-16 18:13:56 +00:00
Kazu Hirata 60731ce55e h8300.md: Fix warnings by replacing -2147483648 with -2147483647 - 1.
* config/h8300/h8300.md: Fix warnings by replacing -2147483648
	with -2147483647 - 1.

From-SVN: r73647
2003-11-16 13:55:19 +00:00
Gerald Pfeifer 24726b9663 Fix links in online manuals.
* doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
	(Precompiled Headers): @pxref to cpp, not cpp.info.

From-SVN: r73646
2003-11-16 11:24:56 +00:00
Jason Merrill 7d60db051a Makefile.in, [...]: Create TAGS.sub files in each directory and TAGS files that include them for...
* Makefile.in, objc/Make-lang.in, ada/Make-lang.in, cp/Make-lang.in,
        java/Make-lang.in, f/Make-lang.in: Create TAGS.sub files in each
        directory and TAGS files that include them for each front end.

From-SVN: r73643
2003-11-16 01:17:21 -05:00
Tom Tromey 45c00e222f * gjavah.c (print_stub_or_jni): Pass `env' to FatalError.
From-SVN: r73642
2003-11-16 04:46:48 +00:00
Paolo Carlini 781a529886 std_fstream.h: Tweak a comment.
2003-11-15  Paolo Carlini  <pcarlini@suse.de>

	* include/std/std_fstream.h: Tweak a comment.

From-SVN: r73640
2003-11-16 00:55:51 +00:00
GCC Administrator e22171afb9 Daily bump.
From-SVN: r73638
2003-11-16 00:16:07 +00:00
Kazu Hirata e40024ffaf lib1funcs.asm (divnorm): Store the sign in bit 3 of S2L.
* config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
	3 of S2L.
	(modnorm): Likewise.
	(exitdiv): Look at bit 3 of S2L only.

From-SVN: r73635
2003-11-15 21:36:49 +00:00
Kazu Hirata 4cd0866d1d h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
* config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
	(DO_GLOBAL_DTORS_BODY): Likewise.

From-SVN: r73634
2003-11-15 21:35:18 +00:00
Jason Merrill 9cbbf4634e update comment
From-SVN: r73633
2003-11-15 16:32:01 -05:00
Joseph Myers 4f3ce03f29 install.texi (Prerequisites): Refine documentation of autoconf, automake and perl requirements.
* doc/install.texi (Prerequisites): Refine documentation of
	autoconf, automake and perl requirements.  Document required
	gettext version.

From-SVN: r73632
2003-11-15 20:09:41 +00:00
Bernardo Innocenti 206279ba4a re PR c++/2294 (using declaration confusion)
PR c++/2294
	* name-lookup.c: Revert previous patch for PR c++/2294 to prevent
	build failure on libjava.

From-SVN: r73630
2003-11-15 20:34:57 +01:00
Roger Sayle c85dfef7a0 std_cmath.h: Don't import C99's float transcendentals into the __gnu_cxx::__c99_binding...
* include/c_std/std_cmath.h: Don't import C99's float transcendentals
	into the __gnu_cxx::__c99_binding namespace.
	(acos, asin, atan, atan2, ceil, cosh, exp, floor, fmod, frexp,
	ldexp, log, log10, modf, pow, sinh, tan, tanh): Implement using
	GCC's math builtins, i.e. __builtin_foo.
	* libmath/stubs.c (acosf, acosl, asinf, asinl, atanf, atanl,
	ceilf, ceill, floorf, floorl, fmodf, fmodl, frexpf, frexpl,
	ldexpf, ldexpl, modff, modfl): Provide stub implementations.

From-SVN: r73629
2003-11-15 14:26:47 +00:00
GCC Administrator 1f7290e64d Daily bump.
From-SVN: r73627
2003-11-15 00:16:08 +00:00
Jason Merrill 7f3a6a92f5 function.c (assign_parms): Use TREE_TYPE to determine the real type of the argument object.
* function.c (assign_parms): Use TREE_TYPE to determine the real
        type of the argument object.

From-SVN: r73623
2003-11-14 17:48:18 -05:00
Tom Fitzsimmons 5c859e1034 GridBagLayout.java (getLayoutDimensions): Return array of two zero-length int arrays when layoutInfo is null.
2003-11-14  Tom Fitzsimmons  <fitzsim@redhat.com>

	* java/awt/GridBagLayout.java (getLayoutDimensions): Return array of two
	zero-length int arrays when layoutInfo is null.
	(getLayoutWeights): Return array of two zero-length double arrays when
	layoutInfo is null.

From-SVN: r73622
2003-11-14 22:44:29 +00:00
Giovanni Bajo 8ffc2e370d re PR c++/2294 (using declaration confusion)
PR c++/2294
        * g++.dg/lookup/using9.c: New test.

From-SVN: r73621
2003-11-14 21:41:04 +01:00
Kazu Hirata 584fb00b96 lib1funcs.asm (___udivsi3): Peel off the first iteration.
* config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
	iteration.

From-SVN: r73620
2003-11-14 20:39:30 +00:00
Giovanni Bajo 2a91b33cb0 re PR c++/2294 (using declaration confusion)
PR c++/2294
        * name-lookup.c (push_overloaded_decl): Always construct an OVERLOAD
        unless the declaration is a built-in.
        (set_namespace_binding): While binding OVERLOADs with only one
        declaration, we still need to call supplement_binding.

From-SVN: r73618
2003-11-14 21:14:08 +01:00
Fariborz Jahanian 8fecc9e903 Fixed bug saving vararg registers in -mpowerpc64 mode.
Approved by: David Edelsohn

From-SVN: r73617
2003-11-14 20:09:26 +00:00
Fariborz Jahanian 5985c7a6f9 Fix bug saving vararg registers on stack in -mpowerpc64 mode.
Approved by: David Edelsohn.

From-SVN: r73616
2003-11-14 20:05:34 +00:00
Bernardo Innocenti e6d98cb0a1 m68k.c: Use C statements instead of #ifdef's when testing for MOTOROLA versus MIT syntax.
* config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
	for MOTOROLA versus MIT syntax.  Improves readability and provides
	better compile-time error checking for both code paths.

From-SVN: r73615
2003-11-14 20:59:18 +01:00
Tom Tromey dd168984f6 * libjava.jar/simple.jar: Replaced.
From-SVN: r73614
2003-11-14 19:38:39 +00:00
Kelley Cook f2206911fb frv-protos.h: Update for C90.
2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>

	* config/frv/frv-protos.h: Update for C90.
	* config/frv/frv.h: Likewise.
	* config/frv/frvbegin.c: Likewise.
	* config/frv/frv.c: Likewise.
	(frv_adjust_field_align): Delete unused variable.

From-SVN: r73613
2003-11-14 19:15:24 +00:00
Geoffrey Keating 39e6362756 rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN' to each place where TARGET_LONG_DOUBLE_128 is...
* config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
	to each place where TARGET_LONG_DOUBLE_128 is used with
	DEFAULT_ABI == ABI_AIX.

From-SVN: r73612
2003-11-14 19:05:16 +00:00
Geoffrey Keating e235d8bfa0 cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found' message comply with GNU standards.
* cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
	message comply with GNU standards.

From-SVN: r73611
2003-11-14 19:00:04 +00:00
Mark Mitchell ec75414ff7 re PR c++/12762 (Much worse error message when using a typedef with a template arg)
PR c++/12762
	* parser.c (cp_parser_enclosed_template_argument_list): New
	function.
	(cp_parser_template_id): Use it.
	(cp_parser_simple_type_specifier): Recognize invalid template
	syntax.

	PR c++/12762
	* g++.dg/template/error3.C: New test.

From-SVN: r73610
2003-11-14 18:37:39 +00:00
Richard Kenner f285d67bfe function.c (struct epi_info): New field const_equiv.
PR/6552
	* function.c (struct epi_info): New field const_equiv.
	(update_epilogue_consts): New function.
	(keep_stack_depressed): Clear new field and verify scratch register
	doesn't have it set.
	Call new function via note_stores.
	(handle_epilogue_set): Allow setting SP equiv reg in different mode.
	Allow PLUS where second operand is register known set to constant.
	(emit_equiv_load): Write load using proper mode if source different.
	* config/mips/mips.md (return_internal): Put (return) first.

From-SVN: r73609
2003-11-14 12:28:25 -05:00
Andreas Jaeger a477ab8320 lang.opt: Change -Wno-long-long to -Wlong-long since the latter is the canonical version.
* lang.opt: Change -Wno-long-long to -Wlong-long since the latter
	is the canonical version.
	* misc.c (gnat_handle_option): Likewise.

From-SVN: r73607
2003-11-14 17:49:19 +01:00
Andreas Jaeger c004039774 Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
* Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.

	* 5nsystem.ads: New file for x86_64-linux-gnu.

From-SVN: r73606
2003-11-14 14:56:34 +01:00