platform/upstream/gcc.git
19 years ago[multiple changes]
Mark Wielaard [Wed, 16 Feb 2005 19:25:06 +0000 (19:25 +0000)]
[multiple changes]

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

        * Makefile.am (gnu_xml_source_files): Removed
        gnu/xml/dom/DomCDATA.java, gnu/xml/dom/DomEx.java,
        gnu/xml/dom/DomFragment.java, gnu/xml/dom/DomPI.java and
        gnu/xml/dom/ls/DomLSEx.java. Replaced by adding
        gnu/xml/dom/DomCDATASection.java, gnu/xml/dom/DomDOMException.java,
        gnu/xml/dom/DomDocumentFragment.java,
        gnu/xml/dom/DomProcessingInstruction.java and
        gnu/xml/dom/ls/DomLSException.java.
        * Makefile.in: Regenerated.

2005-02-16  Tom Tromey  <tromey@redhat.com>

        * gnu/xml/aelfred2/SAXDriver.java: Ensure that null is returned when
        attribute index is out of bounds.

2005-02-16  Chris Burdess  <dog@gnu.org>

        * gnu/xml/aelfred2/SAXDriver.java: Corrected implementation of
        isDeclared methods. Improved performance of isSpecified methods.

2005-02-16  Chris Burdess  <dog@gnu.org>

        Fixes bug libgcj/19864
        * gnu/xml/dom/DomAttr.java,
        gnu/xml/dom/DomCDATA.java,
        gnu/xml/dom/DomCDATASection.java,
        gnu/xml/dom/DomCharacterData.java,
        gnu/xml/dom/DomDOMException.java,
        gnu/xml/dom/DomDoctype.java,
        gnu/xml/dom/DomDocument.java,
        gnu/xml/dom/DomDocumentConfiguration.java,
        gnu/xml/dom/DomDocumentFragment.java,
        gnu/xml/dom/DomElement.java,
        gnu/xml/dom/DomEx.java,
        gnu/xml/dom/DomFragment.java,
        gnu/xml/dom/DomImpl.java,
        gnu/xml/dom/DomIterator.java,
        gnu/xml/dom/DomNamedNodeMap.java,
        gnu/xml/dom/DomNode.java,
        gnu/xml/dom/DomNsNode.java,
        gnu/xml/dom/DomPI.java,
        gnu/xml/dom/DomProcessingInstruction.java,
        gnu/xml/dom/DomText.java,
        gnu/xml/dom/DomLSEx.java,
        gnu/xml/dom/DomLSException.java,
        gnu/xml/dom/DomLSParser.java,
        gnu/xml/dom/DomLSSerializer.java: Refactoring of exception and DOM
        implementation class names to conform to Classpath guidelines.  Make
        DomLSException use JDK 1.4+ exception chaining.
        * gnu/xml/util/SAXNullTransformerFactory.java,
        gnu/xml/xpath/Predicate.java: Use constants relative to
        declaring class or interface.

From-SVN: r95114

19 years agore PR middle-end/19865 (ice / gnat bug detected.)
Diego Novillo [Wed, 16 Feb 2005 19:19:34 +0000 (19:19 +0000)]
re PR middle-end/19865 (ice / gnat bug detected.)

PR tree-optimization/19865
* tree-optimize.c (init_tree_optimization_passes): Run
pass_may_alias after pass_sra.

From-SVN: r95113

19 years agore PR debug/19521 (omitted stab for gcov initialization function)
Richard Henderson [Wed, 16 Feb 2005 19:01:29 +0000 (11:01 -0800)]
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

19 years agoSubject.java (doAsPrivileged): If acc is null, create a new AccessControlContext.
Andrew Haley [Wed, 16 Feb 2005 18:51:25 +0000 (18:51 +0000)]
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

19 years agoPersistentByteMap.java (name, values, fc): new fields.
Andrew Haley [Wed, 16 Feb 2005 17:32:59 +0000 (17:32 +0000)]
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

19 years agore PR tree-optimization/19967 (built-in folding causes excess diagnostics)
Kazu Hirata [Wed, 16 Feb 2005 15:39:30 +0000 (15:39 +0000)]
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

19 years agore PR target/20007 (error: too many arguments to function `find_basic_blocks)
Kazu Hirata [Wed, 16 Feb 2005 15:30:25 +0000 (15:30 +0000)]
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

19 years agore PR middle-end/19857 (alignment check of SSE constant fails in simple test program)
Jakub Jelinek [Wed, 16 Feb 2005 13:54:30 +0000 (14:54 +0100)]
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

19 years ago16728.cc: Remove redundant include <testsuite_performance.h>.
Paolo Carlini [Wed, 16 Feb 2005 13:14:36 +0000 (13:14 +0000)]
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

19 years agore PR libstdc++/19829 (cris-elf testsuite failure: 21_strings/basic_string/find/char...
Paolo Carlini [Wed, 16 Feb 2005 11:09:57 +0000 (11:09 +0000)]
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

19 years agogcse.c (blocks_with_calls): New bitmap.
Jeff Law [Wed, 16 Feb 2005 06:14:13 +0000 (23:14 -0700)]
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

19 years agore PR bootstrap/18810 (Darwin's as unlinks /dev/null)
Peter O'Gorman [Wed, 16 Feb 2005 04:48:47 +0000 (04:48 +0000)]
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

19 years agoprims.cc (_Jv_CreateJavaVM): Add comment about initialization order.
David Daney [Wed, 16 Feb 2005 04:16:06 +0000 (04:16 +0000)]
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

19 years agore PR libgcj/19823 (java fails with non-executable memory)
Bryce McKinlay [Wed, 16 Feb 2005 04:10:42 +0000 (04:10 +0000)]
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

19 years agore PR target/19924 ([AVR] MODES_TIEABLE incorrect)
Andy Hutchinson [Wed, 16 Feb 2005 03:17:13 +0000 (03:17 +0000)]
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

19 years agoDaily bump.
GCC Administrator [Wed, 16 Feb 2005 00:16:57 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95086

19 years agore PR libstdc++/19955 (Second std::ctype<char>::narrow() does not call std::ctype...
Paolo Carlini [Tue, 15 Feb 2005 23:29:52 +0000 (23:29 +0000)]
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

19 years agoAdd Alan Modra to last ChangeLog entry.
David Edelsohn [Tue, 15 Feb 2005 23:20:04 +0000 (18:20 -0500)]
Add Alan Modra to last ChangeLog entry.

From-SVN: r95081

19 years agore PR preprocessor/19077 (Internal compiler error compiling MPlayer)
Eric Christopher [Tue, 15 Feb 2005 23:18:04 +0000 (23:18 +0000)]
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

19 years agore PR target/19019 (GCC ldouble format incompatibility with XLC long double)
David Edelsohn [Tue, 15 Feb 2005 23:16:49 +0000 (23:16 +0000)]
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

19 years ago[multiple changes]
Mark Wielaard [Tue, 15 Feb 2005 22:38:59 +0000 (22:38 +0000)]
[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

19 years agoURLClassLoader.java (JarURLLoader.JarURLLoader): Just use space for parsing CLASS_PAT...
Mark Wielaard [Tue, 15 Feb 2005 22:17:33 +0000 (22:17 +0000)]
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

19 years agoURLClassLoader.java (JarURLLoader.JarURLLoader): Don't look aside for "GCJLIBS" in...
Mark Wielaard [Tue, 15 Feb 2005 22:08:40 +0000 (22:08 +0000)]
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

19 years agoSSLContext.java (getInstance): Add exception message and/or cause before throwing.
Mark Wielaard [Tue, 15 Feb 2005 22:05:04 +0000 (22:05 +0000)]
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

19 years agofold-const.c (fold): Fold -(~A) to A + 1.
James A. Morrison [Tue, 15 Feb 2005 21:58:21 +0000 (21:58 +0000)]
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

19 years agore PR pch/14940 (PCH largefile test fails on various platforms)
James A. Morrison [Tue, 15 Feb 2005 20:52:13 +0000 (20:52 +0000)]
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

19 years agotree-vn.c (get_value_handle): Make sure that given an is_gimple_min_invariant express...
Daniel Berlin [Tue, 15 Feb 2005 20:09:31 +0000 (20:09 +0000)]
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

19 years agore PR c++/17788 (poor diagnostic for missing reference initializer)
Alexandre Oliva [Tue, 15 Feb 2005 19:39:31 +0000 (19:39 +0000)]
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

19 years agodecl2.c (mark_used): Set the source location of the used decl to the current input...
Alexandre Oliva [Tue, 15 Feb 2005 19:37:13 +0000 (19:37 +0000)]
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

19 years ago* passes.c (rest_of_handle_gcse): Fix a comment.
Kazu Hirata [Tue, 15 Feb 2005 18:56:44 +0000 (18:56 +0000)]
* passes.c (rest_of_handle_gcse): Fix a comment.

From-SVN: r95069

19 years agooverflow-warn-1.c, [...]: New tests.
Joseph Myers [Tue, 15 Feb 2005 18:52:15 +0000 (18:52 +0000)]
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

19 years agogcse.c (canon_modify_mem_set_list_set): Kill unnecessary bitmap.
Jeff Law [Tue, 15 Feb 2005 17:18:07 +0000 (10:18 -0700)]
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

19 years agoMakefile.am (libgcj_la_SOURCES): Move all sources ...
Richard Henderson [Tue, 15 Feb 2005 17:17:44 +0000 (09:17 -0800)]
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

19 years agocxb30131.c: Include <stdlib.h> to properly declare malloc.
Andreas Schwab [Tue, 15 Feb 2005 16:20:05 +0000 (16:20 +0000)]
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

19 years agobitmap.c, [...]: Update copyright.
Kazu Hirata [Tue, 15 Feb 2005 15:53:52 +0000 (15:53 +0000)]
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

19 years agolinkage.exp (s390): Check for 64bit added.
Andreas Krebbel [Tue, 15 Feb 2005 12:23:40 +0000 (12:23 +0000)]
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

19 years agobb-reorder.c (find_traces_1_round): Force fallthru edge from a call to be best_edge.
Richard Henderson [Tue, 15 Feb 2005 09:26:27 +0000 (01:26 -0800)]
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

19 years agoflow.c (recompute_reg_usage): Remove all arguments.
Kazu Hirata [Tue, 15 Feb 2005 07:19:51 +0000 (07:19 +0000)]
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

19 years agobasic-block.h: Adjust the prototype for find_basic_blocks.
Kazu Hirata [Tue, 15 Feb 2005 07:18:23 +0000 (07:18 +0000)]
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

19 years agoDaily bump.
GCC Administrator [Tue, 15 Feb 2005 00:16:22 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r95055

19 years agore PR libstdc++/19946 (cris-elf testsuite failure: demangle/abi_examples/01.cc and 02)
Jakub Jelinek [Tue, 15 Feb 2005 00:07:53 +0000 (01:07 +0100)]
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

19 years agotree-dump.c (dump_files): Update to reflect new member of dump_file_info.
Daniel Berlin [Mon, 14 Feb 2005 21:32:14 +0000 (21:32 +0000)]
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

19 years agojawt.c: New file.
Thomas Fitzsimmons [Mon, 14 Feb 2005 21:08:08 +0000 (21:08 +0000)]
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

19 years ago* testsuite/libjava.lang/PR19921.java: Use correct class name.
Tom Tromey [Mon, 14 Feb 2005 20:56:11 +0000 (20:56 +0000)]
* testsuite/libjava.lang/PR19921.java: Use correct class name.

From-SVN: r95046

19 years agore PR java/19921 (wrong argument count for invokeInterface with new multidimensional...
Tom Tromey [Mon, 14 Feb 2005 20:51:07 +0000 (20:51 +0000)]
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

19 years agore PR preprocessor/16323 (-Wendif-labels listed even though it's on by default)
Joseph Myers [Mon, 14 Feb 2005 20:46:29 +0000 (20:46 +0000)]
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

19 years agoFix typo.
David Edelsohn [Mon, 14 Feb 2005 20:22:03 +0000 (15:22 -0500)]
Fix typo.

From-SVN: r95043

19 years agore PR target/19019 (GCC ldouble format incompatibility with XLC long double)
David Edelsohn [Mon, 14 Feb 2005 20:21:10 +0000 (20:21 +0000)]
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

19 years agore PR java/19921 (wrong argument count for invokeInterface with new multidimensional...
Tom Tromey [Mon, 14 Feb 2005 20:04:36 +0000 (20:04 +0000)]
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

19 years agore PR tree-optimization/19853 (incorrect vops after exposing a new global variable)
Diego Novillo [Mon, 14 Feb 2005 19:46:08 +0000 (14:46 -0500)]
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

19 years agore PR c++/19608 (ICE after friend function definition in local class)
Nathan Sidwell [Mon, 14 Feb 2005 17:50:58 +0000 (17:50 +0000)]
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

19 years agore-apply fold_indirect_ref patch
Jason Merrill [Mon, 14 Feb 2005 16:07:16 +0000 (11:07 -0500)]
re-apply fold_indirect_ref patch

From-SVN: r95024

19 years agopasses.c (rest_of_handle_loop_optimize): Remove calls to delete_dead_jumptables and...
Kazu Hirata [Mon, 14 Feb 2005 15:13:24 +0000 (15:13 +0000)]
passes.c (rest_of_handle_loop_optimize): Remove calls to delete_dead_jumptables and cleanup_cfg.

* passes.c (rest_of_handle_loop_optimize): Remove calls to
delete_dead_jumptables and cleanup_cfg.

From-SVN: r95019

19 years agoreload.c (find_reloads): Swap address_reloaded flags when swapping commutative operands.
Ulrich Weigand [Mon, 14 Feb 2005 15:07:05 +0000 (15:07 +0000)]
reload.c (find_reloads): Swap address_reloaded flags when swapping commutative operands.

* reload.c (find_reloads): Swap address_reloaded flags when
swapping commutative operands.

From-SVN: r95018

19 years agore PR java/19907 (Incorrect code generated for ManifestElement.java)
Andrew Haley [Mon, 14 Feb 2005 14:58:22 +0000 (14:58 +0000)]
re PR java/19907 (Incorrect code generated for ManifestElement.java)

2005-02-14  Andrew Haley  <aph@redhat.com>

        PR java/19907
        * expr.c (expand_byte_code): Call promote_arguments().
        (promote_arguments): New function.
        * decl.c (check_local_unnamed_variable): Remve special case for
        new verifier.
        (find_local_variable): Promote all boolean types to int
        when searching for local variable decls.

From-SVN: r95015

19 years agore PR libgcj/18116 (JNI uses dot instead of slash as the package separator)
Anthony Green [Mon, 14 Feb 2005 14:57:37 +0000 (14:57 +0000)]
re PR libgcj/18116 (JNI uses dot instead of slash as the package separator)

2005-02-14  Anthony Green  <green@redhat.com>

        PR libgcj/18116
        * testsuite/libjava.jni/PR18116.c: New file.
        * testsuite/libjava.jni/PR18116.java: New file.
        * testsuite/libjava.jni/PR18116.out: New file.

From-SVN: r95014

19 years agolambda-code.c (lambda_loopnest_to_gcc_loopnest, [...]): Use standard_iv_increment_pos...
Sebastian Pop [Mon, 14 Feb 2005 14:54:37 +0000 (15:54 +0100)]
lambda-code.c (lambda_loopnest_to_gcc_loopnest, [...]): Use standard_iv_increment_position for computing the bsi position for create_iv.

* lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
Use standard_iv_increment_position for computing the bsi position
for create_iv.
* tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
the bsi position.

From-SVN: r95013

19 years agodirectives.c, [...]: Update copyright.
Kazu Hirata [Mon, 14 Feb 2005 14:43:56 +0000 (14:43 +0000)]
directives.c, [...]: Update copyright.

* directives.c, files.c, init.c, internal.h, macro.c, pch.c,
traditional.c: Update copyright.

From-SVN: r95012

19 years agojni.cc (nathash_add): Don't strdup the method signature.
Anthony Green [Mon, 14 Feb 2005 13:51:29 +0000 (13:51 +0000)]
jni.cc (nathash_add): Don't strdup the method signature.

2005-02-13  Anthony Green  <green@redhat.com>

        * jni.cc (nathash_add): Don't strdup the method signature.
        (_Jv_JNI_RegisterNatives): Convert the slashes to dots in the
        method signature.
        Update copyright.

From-SVN: r95010

19 years agore PR c++/19884 (ICE on explicit instantiation of a non-template constructor)
Nathan Sidwell [Mon, 14 Feb 2005 13:45:42 +0000 (13:45 +0000)]
re PR c++/19884 (ICE on explicit instantiation of a non-template constructor)

cp:
PR c++/19884
* pt.c (check_explicit_specialization): Make sure namespace
binding lookup found an overloaded function.
(lookup_template_function): Just assert FNS is an overloaded
function.

PR c++/19895
* decl.c (grokdeclarator): Check for error mark node in ptrmem
construction.
testsuite:
PR c++/19895
* g++.dg/parse/ptrmem3.C: New.

PR c++/19884
* g++.old-deja/g++.oliva/template6.C: Add another case.
* g++.dg/template/explicit6.C: New.

From-SVN: r95009

19 years agore PR c++/17816 (duplicate definition of pure virtual function not diagnosed)
Alexandre Oliva [Mon, 14 Feb 2005 12:01:15 +0000 (12:01 +0000)]
re PR c++/17816 (duplicate definition of pure virtual function not diagnosed)

gcc/cp/ChangeLog:
PR c++/17816
* decl.c (redeclaration_error_message): Report redefinition of
pure virtual function.
gcc/testsuite/ChangeLog:
PR c++/17816
* g++.dg/other/redecl2.C: New.

From-SVN: r95008

19 years agore PR rtl-optimization/17428 (internal compiler error: in spill_failure, at reload1...
Zdenek Dvorak [Mon, 14 Feb 2005 11:37:52 +0000 (12:37 +0100)]
re PR rtl-optimization/17428 (internal compiler error: in spill_failure, at reload1.c:1880 (-fspeculative-prefetching))

PR target/17428
* cfgrtl.c (safe_insert_insn_on_edge): Avoid extending life range of hard
registers.
* value-prof.c (insn_prefetch_values_to_profile): Only scan normal insns.

* value-prof.c (rtl_find_values_to_profile): Do not look for values to
profile in libcalls.

From-SVN: r95007

19 years agoadd myself to MAINTAINERS file
Razya Ladelsky [Mon, 14 Feb 2005 11:21:09 +0000 (11:21 +0000)]
add myself to MAINTAINERS file

From-SVN: r95006

19 years agore PR c++/19891 (Covariant returns are broken)
Nathan Sidwell [Mon, 14 Feb 2005 09:36:35 +0000 (09:36 +0000)]
re PR c++/19891 (Covariant returns are broken)

cp:
PR c++/19891
* class.c (build_simple_base_path): Build the component_ref
directly.
(update_vtable_entry_for_fn): Walk the covariant's binfo chain
rather than using lookup_base.
* search.c (dfs_walk_once): Add non-recursive assert check.
* typeck.c (build_class_member_access_expr): It is possible for
the member type to be both const and volatile.
testsuite:
PR c++/19891
* g++.dg/abi/covariant4.C: New.

From-SVN: r95005

19 years agobitmap.h (bitmap_and_compl_into): Return bool.
Nathan Sidwell [Mon, 14 Feb 2005 09:24:41 +0000 (09:24 +0000)]
bitmap.h (bitmap_and_compl_into): Return bool.

* bitmap.h (bitmap_and_compl_into): Return bool.
* bitmap.c (bitmap_and_compl_into): Return changed flag.

From-SVN: r95004

19 years agore PR bootstrap/19818 (GCC 4.0 cannot bootstrap itself)
Paolo Bonzini [Mon, 14 Feb 2005 08:52:24 +0000 (08:52 +0000)]
re PR bootstrap/19818 (GCC 4.0 cannot bootstrap itself)

include:
2005-02-08  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/19818
* ansidecl.h (PARAMS): Guard from redefinition.

libcpp:
2005-02-08  Paolo Bonzini  <bonzini@gnu.org>

PR bootstrap/19818
* configure.ac: Check for declaration of basename and getopt.
* config.in: Regenerate.
* configure: Regenerate.
* internal.h (ustrcspn): New.
* macro.c (create_iso_definition): Fix allocation of memory.
(padding_token): Add cast to remove const-ness.
* pch.c (cpp_read_state): Use ustrcspn.

From-SVN: r95003

19 years agore PR tree-optimization/19944 (cris-elf testsuite failures: gcc.dg/pr15784-1.c, gcc...
James A. Morrison [Mon, 14 Feb 2005 02:27:18 +0000 (02:27 +0000)]
re PR tree-optimization/19944 (cris-elf testsuite failures: gcc.dg/pr15784-1.c, gcc.dg/pr15784-2.c)

2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       PR tree-optimization/19944
       * fold-const.c (fold): Re-add ABS_EXPR folding.

From-SVN: r95002

19 years agoDaily bump.
GCC Administrator [Mon, 14 Feb 2005 00:16:51 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r94999

19 years agore PR target/19019 (GCC ldouble format incompatibility with XLC long double)
David Edelsohn [Sun, 13 Feb 2005 21:31:35 +0000 (21:31 +0000)]
re PR target/19019 (GCC ldouble format incompatibility with XLC long double)

        PR target/19019
        * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
        {TARGET,MASK}_XL_COMPAT.
        (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
        MASK_XL_COMPAT.
        * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
        * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
        TARGET_XL_COMPAT.
        (rs6000_arg_partial_bytes): Same.
        (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
        and XL compatibility enabled.
        * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
        * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
        test to final condition.
        (cmptf_internal2): New.
        * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
        xl-compat.  Add TFmode information to description.

From-SVN: r94991

19 years agore PR ada/19942 (Stage 2 compilation of ali.adb causes GNAT bug box)
Andrew Pinski [Sun, 13 Feb 2005 20:08:29 +0000 (20:08 +0000)]
re PR ada/19942 (Stage 2 compilation of ali.adb causes GNAT bug box)

2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR ada/19942
        * utils.c (gnat_type_for_mode): Return null instead of ICE because we asked
        for an unknown mode.

From-SVN: r94989

19 years ago* flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
Kazu Hirata [Sun, 13 Feb 2005 19:05:03 +0000 (19:05 +0000)]
* flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.

From-SVN: r94988

19 years agotemporarily revert last changes
Jason Merrill [Sun, 13 Feb 2005 17:10:47 +0000 (12:10 -0500)]
temporarily revert last changes

From-SVN: r94987

19 years agotreetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non scalar integer...
James A. Morrison [Sun, 13 Feb 2005 16:26:11 +0000 (16:26 +0000)]
treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non scalar integer types.

2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
       scalar integer types.

From-SVN: r94986

19 years agotrans-stmt.c (generate_loop_for_temp_to_lhs, [...]): Remove if whose condition is...
Tobias Schlüter [Sun, 13 Feb 2005 15:32:45 +0000 (16:32 +0100)]
trans-stmt.c (generate_loop_for_temp_to_lhs, [...]): Remove if whose condition is always true.

* trans-stmt.c (generate_loop_for_temp_to_lhs,
generate_loop_for_rhs_to_temp): Remove if whose condition is
always true.

From-SVN: r94985

19 years ago* typo fix
Frank Ch. Eigler [Sun, 13 Feb 2005 12:58:28 +0000 (12:58 +0000)]
* typo fix

From-SVN: r94984

19 years agore PR libmudflap/19319 (Mudflap produce many violations on simple, correct c++ program)
Frank Ch. Eigler [Sun, 13 Feb 2005 12:49:34 +0000 (12:49 +0000)]
re PR libmudflap/19319 (Mudflap produce many violations on simple, correct c++ program)

2005-02-13  Frank Ch. Eigler  <fche@redhat.com>

PR mudflap/19319
* testsuite/libmudflap.c++/pass55-frag.c: New test.

From-SVN: r94983

19 years agore PR libstdc++/11706 (std::pow(T, int) implementation pessimizes code)
Richard Guenther [Sun, 13 Feb 2005 10:25:02 +0000 (10:25 +0000)]
re PR libstdc++/11706 (std::pow(T, int) implementation pessimizes code)

2005-02-13  Richard Guenther  <rguenth@gcc.gnu.org>
    Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/11706
* include/c_std/std_cmath.h (pow): Use __builtin_powi[lf]
for integer overloads.

* testsuite/26_numerics/cmath/powi.cc: New.

Co-Authored-By: Paolo Carlini <pcarlini@suse.de>
From-SVN: r94982

19 years agocp-demangle.c (__cxa_demangle): Change resolution of ambiguous arguments.
Jason Merrill [Sun, 13 Feb 2005 06:58:20 +0000 (01:58 -0500)]
cp-demangle.c (__cxa_demangle): Change resolution of ambiguous arguments.

        * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
        arguments.

From-SVN: r94980

19 years agore PR libmudflap/19319 (Mudflap produce many violations on simple, correct c++ program)
Jason Merrill [Sun, 13 Feb 2005 06:43:58 +0000 (01:43 -0500)]
re PR libmudflap/19319 (Mudflap produce many violations on simple, correct c++ program)

        PR mudflap/19319
        * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
        slot explicit.

        PR c++/16405
        * fold-const.c (fold_indirect_ref_1): Split out from...
        (build_fold_indirect_ref): Here.
        (fold_indirect_ref): New fn.
        * tree.h: Declare it.
        * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
        (gimplify_modify_expr_rhs): Likewise.
        (gimplify_expr): Likewise.

From-SVN: r94979

19 years agopr15784-1.c, [...]: New tests.
James A. Morrison [Sun, 13 Feb 2005 06:41:01 +0000 (06:41 +0000)]
pr15784-1.c, [...]: New tests.

2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       * gcc.dg/pr15784-1.c, gcc.dg/pr15784-2.c, gcc.dg/pr15784-3.c: New tests.

From-SVN: r94978

19 years agore PR tree-optimization/14303 ([tree-ssa] gcc.c-torture/execute/20020720-1.c is not...
James A. Morrison [Sun, 13 Feb 2005 06:21:35 +0000 (06:21 +0000)]
re PR tree-optimization/14303 ([tree-ssa] gcc.c-torture/execute/20020720-1.c is not fully folded)

2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       PR tree-optimization/14303
       PR tree-optimization/15784
       * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
       Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
       ABS_EXPR<x> != 0 to x != 0.

From-SVN: r94977

19 years agopasses.c (rest_of_handle_gcse): Remove dead assignments to tem and tem2.
Kazu Hirata [Sun, 13 Feb 2005 03:58:21 +0000 (03:58 +0000)]
passes.c (rest_of_handle_gcse): Remove dead assignments to tem and tem2.

* passes.c (rest_of_handle_gcse): Remove dead assignments to
tem and tem2.

From-SVN: r94967

19 years agopasses.c (rest_of_handle_gcse): Don't run cse_main and delete_trivially_dead_insns...
Kazu Hirata [Sun, 13 Feb 2005 03:49:53 +0000 (03:49 +0000)]
passes.c (rest_of_handle_gcse): Don't run cse_main and delete_trivially_dead_insns too many times.

* passes.c (rest_of_handle_gcse): Don't run cse_main and
delete_trivially_dead_insns too many times.

From-SVN: r94963

19 years agoDaily bump.
GCC Administrator [Sun, 13 Feb 2005 00:16:15 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r94949

19 years agoutils.c (gnat_type_for_mode): Return NULL for COMPLEX modes...
Richard Henderson [Sat, 12 Feb 2005 20:02:35 +0000 (12:02 -0800)]
utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes...

        * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
        validate SCALAR_INT_MODE_P before calling gnat_type_for_size.

From-SVN: r94946

19 years ago* gcc.dg/vect/vect-96.c: Fix typo.
Dorit Naishlos [Sat, 12 Feb 2005 19:33:44 +0000 (19:33 +0000)]
* gcc.dg/vect/vect-96.c: Fix typo.

From-SVN: r94945

19 years agosymbol.c (gfc_use_ha_derived): Remove, fold functionality into ...
Tobias Schlüter [Sat, 12 Feb 2005 15:44:01 +0000 (16:44 +0100)]
symbol.c (gfc_use_ha_derived): Remove, fold functionality into ...

* symbol.c (gfc_use_ha_derived): Remove, fold functionality into ...
(gfc_use_derived): ... this function.

From-SVN: r94942

19 years agore PR c++/14479 (enum definition in template class with template methods causes error.)
Kriang Lerdsuwanakij [Sat, 12 Feb 2005 15:40:28 +0000 (15:40 +0000)]
re PR c++/14479 (enum definition in template class with template methods causes error.)

PR c++/14479
PR c++/19487
* pt.c (maybe_check_template_type): Remove.
* cp-tree.h (maybe_check_template_type): Remove prototype.
* name-lookup.c (maybe_process_template_type_declaration): Don't
use maybe_check_template_type.

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

From-SVN: r94941

19 years agobuiltins.c, [...]: Update copyright.
Kazu Hirata [Sat, 12 Feb 2005 15:21:14 +0000 (15:21 +0000)]
builtins.c, [...]: Update copyright.

* builtins.c, java-except.h, jcf-parse.c, jv-scan.c, lex.c,
parse-scan.y: Update copyright.

From-SVN: r94940

19 years agoc-tree.h, [...]: Fix comment typos.
Kazu Hirata [Sat, 12 Feb 2005 15:17:56 +0000 (15:17 +0000)]
c-tree.h, [...]: Fix comment typos.

* c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
spelling conventions.

From-SVN: r94939

19 years agoFixes bug libgcj/8170
Mark Wielaard [Sat, 12 Feb 2005 13:51:11 +0000 (13:51 +0000)]
Fixes bug libgcj/8170

       Fixes bug libgcj/8170
       * java/lang/ClassLoader.java (loadClass): Don't rewrap
       ClassNotFoundException.
       * gnu/java/lang/MainThread.java (run): Chain NoClassDefFoundError.
       * gnu/gcj/runtime/NameFinder.java (remove_interpreter): Removed.
       (remove_internal): New field superceding remove_interpreter.
       (sanitizeStack): Remove all no-package classes starting with "_Jv_".
       Remove no-class methods starting with "_Jv_". And Replace null
       class or method names with the empty string. Stop at either the
       MainThread or a real Thread run() method.
       (newElement): Made static.
       * java/net/URLClassLoader.java (findClass): Throw
       ClassNotFoundExceptions including urls, plus parent using toString().
       (thisString): New field.
       (toString): New method.

From-SVN: r94935

19 years agotree-vectorizer.c (vect_get_base_and_offset): Remove.
Ira Rosen [Sat, 12 Feb 2005 12:57:12 +0000 (12:57 +0000)]
tree-vectorizer.c (vect_get_base_and_offset): Remove.

        * tree-vectorizer.c (vect_get_base_and_offset): Remove.
        (vect_is_simple_iv_evolution): Remove redundant parameter
        and step check.
        (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
        without last parameter.
        (vect_analyze_pointer_ref_access): Get access_fn as parameter.
        Return pointer step. Call vect_is_simple_iv_evolution without
        last parameter. Check only that the step is multiple of size
        type. Remove stmt_vinfo updates.
        (vect_get_memtag_and_dr): Remove.
        (vect_get_memtag): New function.
        (vect_address_analysis): New function.
        (vect_object_analysis): New function.
        (vect_analyze_data_refs): Call vect_object_analysis and
        vect_get_memtag. Update stmt_vinfo fields.

From-SVN: r94934

19 years agotree-data-ref.c (array_base_name_differ_p): Check that the bases exist and are objects.
Ira Rosen [Sat, 12 Feb 2005 11:47:19 +0000 (11:47 +0000)]
tree-data-ref.c (array_base_name_differ_p): Check that the bases exist and are objects.

        * tree-data-ref.c (array_base_name_differ_p): Check that the bases
        exist and are objects. Remove checks for pointer.
        * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
        STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
        (vect_create_data_ref_ptr): Likewise.
        (vect_base_addr_differ_p): New function.
        (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
        (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
        Don't set the DR_BASE_NAME field of data-ref.
        (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.

From-SVN: r94932

19 years agooptabs.h (enum optab_index): Add new OTI_ldexp.
Uros Bizjak [Sat, 12 Feb 2005 11:34:24 +0000 (12:34 +0100)]
optabs.h (enum optab_index): Add new OTI_ldexp.

* optabs.h (enum optab_index): Add new OTI_ldexp.
(ldexp_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize ldexp_optab.
* genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
patterns.
* builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
using ldexp_optab.
(expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.

* config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
to implement ldexpf, ldexp and ldexpl built-ins as inline x87
intrinsics.

testsuite:

* gcc.dg/builtins-34.c: Also check ldexp*.

From-SVN: r94931

19 years agotree-vectorizer.h (struct _stmt_vec_info): Rename a field: base to base_address.
Ira Rosen [Sat, 12 Feb 2005 10:24:40 +0000 (10:24 +0000)]
tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base to base_address.

2005-02-13  Ira Rosen  <irar@il.ibm.com>

        * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
        to base_address.
        * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
        stmt_vec_info.
        (vect_get_base_and_offset): Always return an address.
        (vect_create_addr_base_for_vector_ref): Remove treatment for
        different data reference types.
        (vect_compute_data_ref_alignment): Rename base to base_address in
        stmt_vec_info. Get the object in order to force its alignment.
        (vect_get_memtag_and_dr): Rename base to base_address in
        stmt_vec_info. Extract the object for memtag analysis.

From-SVN: r94930

19 years ago* gcc.dg/tree-ssa/20040703-1.c: Quote decimal dot.
Hans-Peter Nilsson [Sat, 12 Feb 2005 07:46:43 +0000 (07:46 +0000)]
* gcc.dg/tree-ssa/20040703-1.c: Quote decimal dot.

From-SVN: r94929

19 years agore PR java/15543 ("jv-scan --complexity" segfaults)
Per Bothner [Sat, 12 Feb 2005 06:12:40 +0000 (22:12 -0800)]
re PR java/15543 ("jv-scan --complexity" segfaults)

PR java/15543
* parse-scan.y (input_location): Remove variable.
(main_input_filename): New - replaces input_filename, which isn't
settable if USE_MAPPED_LOCATION.
* lex.c (java_init_lex): Wrap some more places in #ifndef JC1-LITE,
so we don't reference input_location or wfl_operator in that case.
* jv-scan.c (expand_location): Remove - no longer used.
(main): Set main_input_filename rather than input_filename.

From-SVN: r94928

19 years agore PR regression/19898 (cris-elf testsuite failure: gcc.c-torture/execute/strlen...
Hans-Peter Nilsson [Sat, 12 Feb 2005 01:08:33 +0000 (01:08 +0000)]
re PR regression/19898 (cris-elf testsuite failure: gcc.c-torture/execute/strlen-1.c execution, -O2 and higher)

PR regression/19898.
* config/cris/cris.c (cris_notice_update_cc): When testing if insn
changes cc_status, use apply modified_in_p to part of cc_status
and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
body.

From-SVN: r94914

19 years agotree-complex.c (expand_complex_libcall): New.
Richard Henderson [Sat, 12 Feb 2005 00:26:57 +0000 (16:26 -0800)]
tree-complex.c (expand_complex_libcall): New.

        * tree-complex.c (expand_complex_libcall): New.
        (expand_complex_multiplication): Use it for c99 compliance.
        (expand_complex_division): Likewise.
        * fold-const.c (fold_complex_add, fold_complex_mult): New.
        (fold): Call them.
        * builtins.c (built_in_names): Remove const.
        * tree.c (build_common_builtin_nodes): Build complex arithmetic
        builtins.
        * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
        (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
        (built_in_names): Remove const.
        * c-common.c (c_common_type_for_mode): Handle complex modes.
        * flags.h, toplev.c (flag_complex_method): Rename from
        flag_complex_divide_method.
        * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
        __mulsc3, __muldc3, __mulxc3, __multc3): New.
        * libgcc2.h: Declare them.
        * libgcc-std.ver: Export them.
        * mklibgcc.in (lib2funcs): Build them.

From-SVN: r94909

19 years agoDaily bump.
GCC Administrator [Sat, 12 Feb 2005 00:16:59 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r94907