Commit Graph

65931 Commits

Author SHA1 Message Date
Richard Henderson 847d0c0888 re PR debug/19521 (omitted stab for gcov initialization function)
PR debug/19521
        * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
        Do nothing if debug info suppressed for this function.
        (dbxout_begin_function): Early exit if debug info suppressed for
        this function.

Co-Authored-By: Stuart Hastings <stuart@apple.com>

From-SVN: r95112
2005-02-16 11:01:29 -08:00
Andrew Haley 019dac3214 Subject.java (doAsPrivileged): If acc is null, create a new AccessControlContext.
2005-02-08  Andrew Haley  <aph@redhat.com>

        * javax/security/auth/Subject.java (doAsPrivileged): If acc is
        null, create a new AccessControlContext.
        * java/security/SecureClassLoader.java (protectionDomainCache):
        new field.
        (defineClass): Create a new protection domain and add it to our
        cache.

        * java/rmi/server/UnicastRemoteObject.java (exportObject): Call
        addStub() to keep track of the stub we've exported.
        (unexportObject): Call deleteStub().
        * java/rmi/server/RemoteObject.java (stubs): New field.
        (addStub): New method.
        (deleteStub): New method.
        (toStub): Rewrite.

        * java/lang/VMCompiler.java (loadSharedLibrary): Pass
        true to findHelper (tryParents).
        * gnu/gcj/runtime/SharedLibLoader.java (SharedLibLoader):
        Likewise.
        * java/net/URLClassLoader.java (SoURLLoader): Likewise.
        * gnu/gcj/runtime/SharedLibHelper.java (SharedLibHelper): Pass
        ProtectionDomain.
        If tryParents is false, don't scan parent class loaders.

        * java/security/Permissions.java (PermissionsHash.implies):
        Iterate over the collection and invoke implies() on each
        element.

From-SVN: r95111
2005-02-16 18:51:25 +00:00
Andrew Haley d2638db653 PersistentByteMap.java (name, values, fc): new fields.
2005-02-16  Andrew Haley  <aph@redhat.com>

        * gnu/gcj/runtime/PersistentByteMap.java (name, values, fc): new
        fields.
        (PersistentByteMap): Set name
        Magic number changed to 0x67636a64 ("gcjd").
        (init): Force the map to be prime.
        (emptyPersistentByteMap): File name was a string, now a File.
        (addBytes): Share srings between entries.
        (stringTableSize): New method.
        (capacity): Scale by load factor.
        (force): New method.
        (getFile): New method.
        (close): New method.
        (putAll): New method.
        (ByteWrapper): New class.
        * gnu/gcj/tools/gcj_dbtool/Main.java (verbose): New field.
        (main): Guess the average string size as 32, not 64.
        Copy a database before modifying it, so that we can update a
        database in a running system.
        If a database isn't big enough, resize it.
        "-m": new option: merges databases.
        "-a": Create a new detabase if it doesn't exist.
        (usage): Correct, add new option.
        (addJar): Copy a database before modifying it.
        (resizeMap): New method.

From-SVN: r95110
2005-02-16 17:32:59 +00:00
Kazu Hirata 5fcfe0b28b re PR tree-optimization/19967 (built-in folding causes excess diagnostics)
PR tree-optimization/19967
	* builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
	expand_builtin_strchr, expand_builtin_strrchr): Take a new
	argument TYPE.  Adjust calls to fold_builtin_XXX.
	(expand_builtin, fold_builtin_1): Adjust calls to
	expand_builtin_XXX.
	(fold_builtin_strchr, fold_builtin_strpbrk,
	fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
	result to a requested type TYPE.

	* testsuite/gcc.dg/pr19967.c: New.

From-SVN: r95109
2005-02-16 15:39:30 +00:00
Kazu Hirata de332a85f8 re PR target/20007 (error: too many arguments to function `find_basic_blocks)
PR target/20007
	* config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
	find_basic_blocks.
	* config/sh/sh.c (sh_output_mi_thunk): Likewise.

From-SVN: r95108
2005-02-16 15:30:25 +00:00
Jakub Jelinek 8940b3b2a7 re PR middle-end/19857 (alignment check of SSE constant fails in simple test program)
PR middle-end/19857
	* fold-const.c (fold): Don't optimize (T)(x & cst) to
	(T)x & (T)cst if (T)cst overflows.
	* convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
	TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.

	* gcc.dg/tree-ssa/20050215-1.c: New test.
	* gcc.c-torture/execute/20050215-1.c: New test.

From-SVN: r95106
2005-02-16 14:54:30 +01:00
Paolo Carlini 838731b61e 16728.cc: Remove redundant include <testsuite_performance.h>.
2005-02-16  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/23_containers/set/modifiers/16728.cc:
	Remove redundant include <testsuite_performance.h>.

From-SVN: r95105
2005-02-16 13:14:36 +00:00
Paolo Carlini b949d64b60 re PR libstdc++/19829 (cris-elf testsuite failure: 21_strings/basic_string/find/char/3.cc execution test)
2005-02-16  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/19829
	* testsuite/21_strings/basic_string/find/char/3.cc: Fix the test
	at line #66 to not access str_lit01 beyond its end.
	* testsuite/21_strings/basic_string/find/wchar_t/3.cc: Likewise.

From-SVN: r95103
2005-02-16 11:09:57 +00:00
Jeff Law aa47fcfa21 gcse.c (blocks_with_calls): New bitmap.
* gcse.c (blocks_with_calls): New bitmap.
	(alloc_gcse_mem): Allocate it.
	(free_gcse_mem): Free it.
	(clear_modifY_mem_tables): Clear it.
	(record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
	when we encounter CALL_INSNs.
	(compute_transp, case MEM): Handle blocks with calls separate
	from blocks without calls.  Use bitmap iterators rather than
	FOR_EACH_BB.

From-SVN: r95097
2005-02-15 23:14:13 -07:00
Peter O'Gorman 489ce9e7ab re PR bootstrap/18810 (Darwin's as unlinks /dev/null)
2005-02-15  Peter O'Gorman  <peter@pogma.com>

        PR bootstrap/18810
        * mklibgcc.in (vis_hide): Use a temporary object file, not
        -o /dev/null.

From-SVN: r95096
2005-02-15 20:48:47 -08:00
David Daney 7e9534bc54 prims.cc (_Jv_CreateJavaVM): Add comment about initialization order.
2005-02-15  David Daney <ddaney@avtrex.com>
            Bryce McKinlay  <mckinlay@redhat.com>

	* prims.cc (_Jv_CreateJavaVM): Add comment about initialization order.
	* posix-threads.cc (_Jv_InitThreads): Call block_sigchld() here to
	ensure that GC threads inherit the new signal mask.
	(block_sigchld): Call JvFail rather than throwing exception if
	pthread_sigmask() fails.

Co-Authored-By: Bryce McKinlay <mckinlay@redhat.com>

From-SVN: r95095
2005-02-16 04:16:06 +00:00
Bryce McKinlay 5909b0346c re PR libgcj/19823 (java fails with non-executable memory)
2005-02-15  Bryce McKinlay  <mckinlay@redhat.com>

	PR libgcj/19823
	* configure.host: Set gc_use_mmap on *-linux*.
	* configure.ac: Define USE_MMAP if gc_use_mmap is set.
	* include/private/gc_priv.h: Include gc_config.h.
	* configure, include/gc_config.h.in: Rebuilt.

From-SVN: r95094
2005-02-16 04:10:42 +00:00
Andy Hutchinson 1dd8ce20fb re PR target/19924 ([AVR] MODES_TIEABLE incorrect)
2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>

	PR target/19924
	* config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
	access optimization.

From-SVN: r95092
2005-02-16 03:17:13 +00:00
GCC Administrator 66da8a21ab Daily bump.
From-SVN: r95086
2005-02-16 00:16:57 +00:00
Paolo Carlini 82ce2a94d9 re PR libstdc++/19955 (Second std::ctype<char>::narrow() does not call std::ctype<char>::do_narrow())
2005-02-15  Paolo Carlini  <pcarlini@suse.de>
	    Jon Grimm  <jgrimm2@us.ibm.com>

	PR libstdc++/19955
	* include/bits/locale_facets.h (ctype<char>::_M_narrow_init()):
	Fix the logic setting _M_narrow_ok: first check whether the
	transformation is trivial with a dflt == 0, then deal with the
	special case of zero.
	* testsuite/22_locale/ctype/narrow/char/19955.cc: New.

	* include/bits/locale_facets.h (ctype<char>::_M_widen_init()):
	Tweak consistently to use memcmp; minor formatting fixes.

Co-Authored-By: Jon Grimm <jgrimm2@us.ibm.com>

From-SVN: r95082
2005-02-15 23:29:52 +00:00
David Edelsohn fd9850d552 Add Alan Modra to last ChangeLog entry.
From-SVN: r95081
2005-02-15 18:20:04 -05:00
Eric Christopher 6da55c0077 re PR preprocessor/19077 (Internal compiler error compiling MPlayer)
2005-02-15  Eric Christopher  <echristo@redhat.com>

	PR preprocessor/19077
	* macro.c (cpp_macro_definition): Move handling of whitespace
	to PREV_WHITE conditional. Remove overloading of len
	variable.

2005-02-15  Eric Christopher  <echristo@redhat.com>

	* gcc.dg/cpp/20050215-1.c: New file.

From-SVN: r95080
2005-02-15 23:18:04 +00:00
David Edelsohn 6f85d0c479 re PR target/19019 (GCC ldouble format incompatibility with XLC long double)
PR target/19019
        * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
        (_xlqsub): Rename to __gcc_qsub.
        (_xlqmul): Rename to __gcc_qmul.
        (_xlqdiv): Rename to __gcc_qdiv.
        Provide versioned symbol aliases with old names.
        * config/rs6000/libgcc-ppc64.ver: Rename symbols.
        * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
        * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
        * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
        * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.

From-SVN: r95079
2005-02-15 18:16:49 -05:00
Mark Wielaard 342e3b23af [multiple changes]
2005-02-15  Mark Wielaard  <mark@klomp.org>

       * java/util/jar/Attributes.java (Name.CLASS_PATH): Document that
       file path elements are separated by spaces.

2005-02-15  Mark Wielaard  <mark@klomp.org>

       * java/util/jar/Attributes.java (Attributes.Name): Add documentation
       to describe attributes without a constant field value in this class.

2005-02-15  Michael Koch  <konqueror@gmx.de>

       * java/util/jar/Attributes.java
       (CREATED_BY, JAVA_BEAN, MAGIC): Removed.

From-SVN: r95078
2005-02-15 22:38:59 +00:00
Mark Wielaard 339fe53643 URLClassLoader.java (JarURLLoader.JarURLLoader): Just use space for parsing CLASS_PATH attribute.
* java/net/URLClassLoader.java (JarURLLoader.JarURLLoader): Just use
       space for parsing CLASS_PATH attribute.

From-SVN: r95077
2005-02-15 22:17:33 +00:00
Mark Wielaard d9fdd0d60f URLClassLoader.java (JarURLLoader.JarURLLoader): Don't look aside for "GCJLIBS" in directory where jarfiles are loaded.
* java/net/URLClassLoader.java (JarURLLoader.JarURLLoader): Don't look
       aside for "GCJLIBS" in directory where jarfiles are loaded.
       (JarURLLoader.getClass): Removed method.
       (JarURLLoader.toString): Removed method.
       (FileResource.toString): Removed method.

From-SVN: r95076
2005-02-15 22:08:40 +00:00
Mark Wielaard affa5a3418 SSLContext.java (getInstance): Add exception message and/or cause before throwing.
* javax/net/ssl/SSLContext.java (getInstance): Add exception message
       and/or cause before throwing.

From-SVN: r95075
2005-02-15 22:05:04 +00:00
James A. Morrison 40f84775b3 fold-const.c (fold): Fold -(~A) to A + 1.
2005-02-15  James A. Morrison  <phython@gcc.gnu.org>

        * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
        Fold ~(A - 1) and ~(A + -1) to -A.

From-SVN: r95074
2005-02-15 21:58:21 +00:00
James A. Morrison 14be52a22c re PR pch/14940 (PCH largefile test fails on various platforms)
2005-02-15  James A. Morrison  <phython@gcc.gnu.org>

       PR pch/14940
       PR target/19300
       * config/host-linux.c (linux_gt_pch_use_address): Copy from
       config/pa/pa-host.c:pa_gt_pch_use_address.

From-SVN: r95073
2005-02-15 20:52:13 +00:00
Daniel Berlin eace8c18aa tree-vn.c (get_value_handle): Make sure that given an is_gimple_min_invariant expression, we always return it.
2005-02-15  Daniel Berlin  <dberlin@dberlin.org>

	* tree-vn.c (get_value_handle): Make sure that given an
	is_gimple_min_invariant expression, we always return it.

From-SVN: r95072
2005-02-15 20:09:31 +00:00
Alexandre Oliva e5e459bf3b re PR c++/17788 (poor diagnostic for missing reference initializer)
gcc/cp/ChangeLog:
PR c++/17788
* class.c (add_implicitly_declared_members, check_field_decl)
(check_field_decls, check_bases): Remove arguments, tests and
assignments of cant_have_default_ctor-related variables.
gcc/testsuite/ChangeLog:
PR c++/17788
* g++.dg/init/ctor4.C: New.
* g++.old-deja/g++.bugs/900205_04.C: Adjust.

From-SVN: r95071
2005-02-15 19:39:31 +00:00
Alexandre Oliva 39a87435bc decl2.c (mark_used): Set the source location of the used decl to the current input location here...
* decl2.c (mark_used): Set the source location of the used decl to
the current input location here...
* method.c (synthesize_method): ... not here.  Set input_location
from the decl instead.

From-SVN: r95070
2005-02-15 19:37:13 +00:00
Kazu Hirata 83cc36c826 * passes.c (rest_of_handle_gcse): Fix a comment.
From-SVN: r95069
2005-02-15 18:56:44 +00:00
Joseph Myers 88fb930d2f overflow-warn-1.c, [...]: New tests.
* gcc.dg/overflow-warn-1.c, gcc.dg/overflow-warn-2.c,
	gcc.dg/overflow-warn-3.c, gcc.dg/overflow-warn-4.c: New tests.

From-SVN: r95068
2005-02-15 18:52:15 +00:00
Jeff Law 9a6cf91138 gcse.c (canon_modify_mem_set_list_set): Kill unnecessary bitmap.
* gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
        bitmap.
        (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
        (canon_list_insert, record_last_mem_set_info): Similarly.
        (clear_modify_mem_tables): Similarly.

From-SVN: r95067
2005-02-15 10:18:07 -07:00
Richard Henderson bbbf49551a Makefile.am (libgcj_la_SOURCES): Move all sources ...
* Makefile.am (libgcj_la_SOURCES): Move all sources ...
        (libgcj0_convenience_la_SOURCES): ... here.
        (libgcj_la_LIBADD): Add libgcj0_convenience.la.
        (libgcj_la_DEPENDENCIES): Include libgcj_la_LIBADD.
        * Makefile.in: Regenerate.

From-SVN: r95066
2005-02-15 09:17:44 -08:00
Andreas Schwab 073aa60193 cxb30131.c: Include <stdlib.h> to properly declare malloc.
* ada/acats/tests/cxb/cxb30131.c: Include <stdlib.h> to properly
declare malloc.

From-SVN: r95065
2005-02-15 16:20:05 +00:00
Kazu Hirata 6a6305e4a1 bitmap.c, [...]: Update copyright.
* bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
	tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
	config/mips/mips.md, config/rs6000/aix.h,
	config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.

From-SVN: r95064
2005-02-15 15:53:52 +00:00
Andreas Krebbel ab71324aa4 linkage.exp (s390): Check for 64bit added.
2005-02-15  Andreas Krebbel  <krebbel1@de.ibm.com>

	* gcc.misc-tests/linkage.exp (s390): Check for 64bit added.

From-SVN: r95063
2005-02-15 12:23:40 +00:00
Richard Henderson 934677f9cc bb-reorder.c (find_traces_1_round): Force fallthru edge from a call to be best_edge.
* bb-reorder.c (find_traces_1_round): Force fallthru edge from a
        call to be best_edge.

From-SVN: r95062
2005-02-15 01:26:27 -08:00
Kazu Hirata e22857eb9d flow.c (recompute_reg_usage): Remove all arguments.
* flow.c (recompute_reg_usage): Remove all arguments.
	* passes.c (rest_of_compilation): Adjust the call to
	recompute_reg_usage.
	* rtl.h: Adjust the prototype for recompute_reg_usage.

From-SVN: r95058
2005-02-15 07:19:51 +00:00
Kazu Hirata 2e09ee33f0 basic-block.h: Adjust the prototype for find_basic_blocks.
* basic-block.h: Adjust the prototype for find_basic_blocks.
	* cfgbuild.c (find_basic_blocks): Remove unused arguments.
	* passes.c (rest_of_handle_loop_optimize): Adjust the call to
	find_basic_blocks.

From-SVN: r95057
2005-02-15 07:18:23 +00:00
GCC Administrator 6434513e2c Daily bump.
From-SVN: r95055
2005-02-15 00:16:22 +00:00
Jakub Jelinek 1552fa74b8 re PR libstdc++/19946 (cris-elf testsuite failure: demangle/abi_examples/01.cc and 02)
PR libstdc++/19946
	* testsuite/demangle/abi_examples/01.cc (main): Adjust for 2005-02-13
	demangler change.
	* testsuite/demangle/abi_examples/02.cc (main): Likewise.

From-SVN: r95050
2005-02-15 01:07:53 +01:00
Daniel Berlin f46fe224b4 tree-dump.c (dump_files): Update to reflect new member of dump_file_info.
2005-02-14  Daniel Berlin  <dberlin@dberlin.org>

	* tree-dump.c (dump_files): Update to reflect new member
	of dump_file_info.
	(dump_register): Add new argument.
	Set glob name.
	(dump_switch_p_1): Check against glob name if doglob was passed.
	(dump_switch_p): Check against regular first, then glob if
	we didn't have any hits on the dump name.
	* tree-optimize.c (register_one_dump_file):
	Pass in glob name as well.
	* tree-pass.h (struct dump_file_info): Add glob
	member.

From-SVN: r95048
2005-02-14 21:32:14 +00:00
Thomas Fitzsimmons c36eda5462 jawt.c: New file.
2005-02-14  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* jawt.c: New file.
	* include/jawt.h: Likewise.
	* include/jawt_md.h: Likewise.
	* include/Makefile.am (tool_include__HEADERS): Add jawt.h and
	jawt_md.h files.
	* include/Makefile.in: Regenerate.
	* jni/classpath/classpath_jawt.h: Likewise.
	* jni/gtk-peer/gtk_jawt.c: Likewise.
	* Makefile.am: Build libjawt.so.
	* Makefile.in: Regenerate.

From-SVN: r95047
2005-02-14 21:08:08 +00:00
Tom Tromey 5728cb6687 * testsuite/libjava.lang/PR19921.java: Use correct class name.
From-SVN: r95046
2005-02-14 20:56:11 +00:00
Tom Tromey 3cc0646dbc re PR java/19921 (wrong argument count for invokeInterface with new multidimensional array)
* testsuite/libjava.lang/PR19921.out: Renamed from PR19929.out.
	* testsuite/libjava.lang/PR19921.java: Renamed from PR19929.java.

From-SVN: r95045
2005-02-14 20:51:07 +00:00
Joseph Myers 90689ae11d re PR preprocessor/16323 (-Wendif-labels listed even though it's on by default)
PR preprocessor/16323
	* doc/invoke.texi: Document that -Wendif-labels is on by default.

From-SVN: r95044
2005-02-14 20:46:29 +00:00
David Edelsohn 2fe433c230 Fix typo.
From-SVN: r95043
2005-02-14 15:22:03 -05:00
David Edelsohn 8cb320b856 re PR target/19019 (GCC ldouble format incompatibility with XLC long double)
PR target/19019
	* config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
	(trunctfdf2_internal1): New.
	(trunctfdf2_internal2): Renamed from trunctfdf2.

From-SVN: r95042
2005-02-14 15:21:10 -05:00
Tom Tromey adfec6a67b re PR java/19921 (wrong argument count for invokeInterface with new multidimensional array)
gcc/java:
	PR java/19921:
	* jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Note the
	stack effect of multianewarray.

libjava:
	For PR java/19929:
	* testsuite/libjava.lang/PR19929.out: New file.
	* testsuite/libjava.lang/PR19929.java: New file.

From-SVN: r95041
2005-02-14 20:04:36 +00:00
Diego Novillo 9a06c1cb10 re PR tree-optimization/19853 (incorrect vops after exposing a new global variable)
PR tree-optimization/19853
	* tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.


testsuite/ChangeLog

	PR tree-optimization/19853
	* gcc.c-torture/compile/pr19853.c: New test.

From-SVN: r95040
2005-02-14 14:46:08 -05:00
Nathan Sidwell f769035f7c re PR c++/19608 (ICE after friend function definition in local class)
cp:
	PR c++/19608
	* parser.c (cp_parser_late_parsing_for_member): Use
	current_function_decl as scope to push to and from.
testsuite:
	PR c++/19608
	* g++.dg/parse/local-class1.C: New.

From-SVN: r95036
2005-02-14 17:50:58 +00:00
Jason Merrill 6a720599bb re-apply fold_indirect_ref patch
From-SVN: r95024
2005-02-14 11:07:16 -05:00