aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-10-11re PR c/7344 (performance regression on huge case statements)Jan Hubicka6-5/+24
* calls.c (expand_call): Simplify noreturn call. PR c/7344 * cfgbuild.c (make_edges): Create edge cache when we do have large jumptable. (do_tablejump): Note size of maximal jumptable. * function.c (prepare_function_start): Zero out size. * function.h (function): Add max_jumptable_ents. * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to. From-SVN: r58063
2002-10-11objs-gcc.sh: Don't install GDB testsuite if GDB was not built.Geoffrey Keating3-7/+18
* objs-gcc.sh: Don't install GDB testsuite if GDB was not built. * btest-gcc.sh: Don't run GDB testsuite if it doesn't exist. From-SVN: r58062
2002-10-11re PR c++/5661 (Gcc 3.0.3 Seg faults compiling bad code)Mark Mitchell8-13/+123
PR c++/5661 * cp-tree.h (variably_modified_type_p): New function. (grokdeclarator) Tighten check for variably modified types as fields. * pt.c (convert_template_argument): Do not allow variably modified types as template arguments. * tree.c (variably_modified_type_p): New function. PR c++/5661 * g++.dg/ext/vlm1.C: New test. * g++.dg/ext/vlm2.C: Likewise. From-SVN: r58060
2002-10-11Move ChangeLog entry where it belongsGabriel Dos Reis3-9/+13
From-SVN: r58059
2002-10-11PRs C++/6803, C++/7721 and C++/7803Gabriel Dos Reis3-0/+31
PRs C++/6803, C++/7721 and C++/7803 * decl.c (grokdeclarator): Gracefully handle template-name as decl-specifier. From-SVN: r58058
2002-10-11init.c (build_field_list): Provide uses_unions_p with a default value.Jason Molenda2-1/+8
2002-10-11 Jason Molenda <jmolenda@apple.com> * init.c (build_field_list): Provide uses_unions_p with a default value. From-SVN: r58056
2002-10-11NEWS: Document removal of "new X = ..." extension.Mark Mitchell17-194/+441
* NEWS: Document removal of "new X = ..." extension. * class.c (initialize_array): Set TREE_HAS_CONSTRUCTOR on brace-enclosed initializers. * cp-tree.h (CP_AGGREGATE_TYPE_P): New macro. (initialize_local_var): Remove declaration. (expand_static_init): Likewise. * decl.c (next_initializable_field): New function. (reshape_init): Likewise. (check_initializer): Use them. Build dynamic initializer for aggregates here too. (initialize_local_var): Simplify, and incorporate cleanup insertion code as well. (destroy_local_var): Remove. (cp_finish_decl): Tidy. (expand_static_init): Fold checks for whether or not a variable needs initialization into this function. Simplify. * decl2.c (do_static_initialization): Simplify. * init.c (build_init): Do not set TREE_SIDE_EFFECTS when it will be done for us automatically. (expand_default_init): Handle brace-enclosed initializers correctly. (expand_aggr_init_1): Remove RTL-generation code. (build_vec_init): Remove "new X = ..." support. * parse.y (new_initializer): Likewise. * rtti.c (get_pseudo_ti_init): Set TREE_HAS_CONSTRUCTOR on brace-enclosed initializer. (create_pseudo_type_info): Likewise. * typeck2.c (store_init_value): Don't try to handle digest_init being called more than once. (digest_init): Tidy handling of brace-enclosed initializers. * g++.dg/init/array1.C: Remove invalid braces. * g++.dg/init/brace1.C: New test. * g++.dg/init/copy2.C: Likewise. * g++.dg/init/copy3.C: Likewise. * g++.old-deja/g++.ext/arrnew.C: Change WARNING to ERROR. * g++.old-deja/g++.mike/p9129.C: Add ERROR on invalid use of braces. From-SVN: r58053
2002-10-11* gcc.dg/cpp/assembler.S: Don't use -ansi.Neil Booth2-0/+5
From-SVN: r58052
2002-10-11sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI register for ↵J"orn Rennecke2-1/+10
mperm_w operation. * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI register for mperm_w operation. From-SVN: r58051
2002-10-11*** empty log message ***Joern Rennecke4-0/+25
From-SVN: r58050
2002-10-11Daily bump.GCC Administrator2-2/+2
From-SVN: r58048
2002-10-11linker-map.gnu (GLIBCPP_3.2.1): Add.Benjamin Kosnik6-43/+156
2002-10-10 Benjamin Kosnik <bkoz@redhat.com> * config/linker-map.gnu (GLIBCPP_3.2.1): Add. (GLIBCPP_3.2): Don't export locale::_S_*. * src/ios.cc: Move globals into __gnu_cxx. Make old exported symbols match. * src/locale.cc: Same. * src/localename.cc: Same. * src/globals.cc: Same. From-SVN: r58042
2002-10-11extend.texi (Vector Extensions): Remove comment about single element vectors.Aldy Hernandez2-3/+5
* extend.texi (Vector Extensions): Remove comment about single element vectors. From-SVN: r58041
2002-10-11decl.c (typename_hash): Use htab_hash_pointer.Kaveh R. Ghazi8-6/+20
cp: * decl.c (typename_hash): Use htab_hash_pointer. gcc: * fold-const.c (size_htab_hash): Use htab_hash_pointer. * function.c (insns_for_mem_hash): Likewise. * varasm.c (STRHASH): Likewise. java: * class.c (JAVA_TREEHASHHASH_H): Use htab_hash_pointer. From-SVN: r58036
2002-10-10cse.c (struct cse_reg_info): Add subreg_ticked.Stuart Hastings3-7/+77
2002-10-10 Stuart Hastings <stuart@apple.com> * cse.c (struct cse_reg_info): Add subreg_ticked. (SUBREG_TICKED): New. (get_cse_reg_info): Initialize SUBREG_TICKED. (mention_regs): Use it. (invalidate): Set SUBREG_TICKED. (invalidate_for_call): Likewise. (addr_affects_sp_p): Likewise. From-SVN: r58035
2002-10-10Fix C++ FE attribute alias failure.Jim Wilson2-1/+4
* decl.c (duplicate_decls): Don't call decl_attributes. From-SVN: r58034
2002-10-10howto.html: Write #5, char_traits.Phil Edwards4-15/+84
2002-10-10 Phil Edwards <pme@gcc.gnu.org> * docs/html/21_strings/howto.html: Write #5, char_traits. * docs/html/17_intro/porting.texi: Expand on os_include_dir. * docs/html/17_intro/porting.html: Regenerate. From-SVN: r58031
2002-10-10i386.md (tls_local_dynamic_base): Put pic reg into proper operand.Jakub Jelinek2-4/+8
* config/i386/i386.md (tls_local_dynamic_base): Put pic reg into proper operand. From-SVN: r58029
2002-10-10ip2k.c (function_epilogue): Optimize stack deallocation.Denis Chertykov4-71/+73
* config/ip2k/ip2k.c (function_epilogue): Optimize stack deallocation. * config/ip2k/libgcc.S: Combine routines used by function epilogue. From-SVN: r58027
2002-10-10Fix miscompilation of testcase 20021010-1.c for v850 target with -O -mv850e.Jim Wilson2-5/+16
* cse.c (fold_rtx): Don't perform associative optimization for DIV and UDIV. From-SVN: r58026
2002-10-10Test miscompiled for v850 target with -O -mv850e due to cse bug.Jim Wilson2-0/+25
* gcc.c-torture/execute/20021010-1.c: New test. From-SVN: r58025
2002-10-10Fix spelling.Mike Stump1-1/+1
From-SVN: r58022
2002-10-10aix52.h: New file.David Edelsohn4-1/+259
* config/rs6000/aix52.h: New file. * config/rs6000/t-aix52: New File. * config.gcc (rs6000-ibm-aix5.1.*): New entry. (rs6000-ibm-aix[56789].*): Default to AIX 5.2. From-SVN: r58021
2002-10-10re PR target/5610 (Not clear how to get FP operations to use SSE)Jan Hubicka2-1/+10
PR target/5610 * invoke.texi (-msse-math): Kill (-msse): Add note to mfpmath=sse. From-SVN: r58019
2002-10-10re PR target/7723 (Internal compiler error - Pentium3 sse - gcc 3.2)Jan Hubicka2-2/+6
PR target/7723 * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves. From-SVN: r58015
2002-10-102002-10-10 Michael Koch <konqueror@gmx.de>Michael Koch4-0/+36
* javax/swing/AbstractListModel.java (getListDataListeners): New stubbed method. javax/swing/DefaultBoundedRangeModel.java (getChangeListeners): New stubbed method. javax/swing/DefaultSingleSelectionModel.java (getChangeListeners): New stubbed method. From-SVN: r58011
2002-10-10re PR preprocessor/8179 (`echo | gcc -E -dM -ansi -` not working in gcc-3.3)Neil Booth2-2/+10
PR preprocessor/8179 * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location as cc1_options. (default_compilers): Pass debug options when preprocessing stdin. From-SVN: r58010
2002-10-10Daily bump.GCC Administrator2-2/+2
From-SVN: r58009
2002-10-10cvsignore: New file to ignore files generated during build.Michael Koch3-1/+8
2002-10-10 Michael Koch <konqueror@gmx.de> * gcj/.cvsignore: New file to ignore files generated during build. * include/.cvsignore: New file to ignore files generated during build. From-SVN: r58003
2002-10-102002-10-08 Michael Koch <konqueror@gmx.de>Michael Koch9-18/+299
* java/net/HttpURLConnection.java (getPermission): New method. (getErrorStream): New stub method. (getHeaderFieldDate): New stub method. * java/net/Inet4Address.java: (isLinkLocalAddress): Typo fixed. * java/net/InetAddress.java: (readResolve): New stubbed method (for serialization). (isAnyLocalAddress): New stubbed method. (isLoopbackAddress): New stubbed method. (isLinkLocalAddress): New stubbed method. (isSiteLocalAddress): New stubbed method. (isMCGlobal): New stubbed method. (isMCNodeGlobal): New stubbed method. (isMCLinkLocal): New stubbed method. (isMCSiteLocal): New stubbed method. (isMCOrgLocal): New stubbed method. (getCanonicalHostName): New stubbed method. (getByAddress): Create instances of Inet4Address/Inet6Address, instead of InetAddress, documentation added. * java/net/MulticastSocket.java (getInterface): Removed FIXME. (getNetworkInterface): New method. (setNetworkInterface): New method. * java/net/NetworkInterface.java: (toString): Use property "line.separator" instead of "\n". * java/net/URLConnection.java (getContent): New stubbed method. * java/net/URLStreamHandler.java: (equals): New stubbed method. (hostsEqual): New stubbed method. (hashCode): New stubbed method. * java/net/natNetworkInterface.cc: (getRealNetworkInterfaces): Create Inet4Address object instead of InetAddress. From-SVN: r58002
2002-10-10locale.cc: Fix comments, move ctors together.Benjamin Kosnik3-32/+119
2002-10-09 Benjamin Kosnik <bkoz@redhat.com> * src/locale.cc: Fix comments, move ctors together. * testsuite/22_locale/static_members.cc (test03): Add. From-SVN: r58001
2002-10-09* toplev.c (rest_of_compilation): Revert opt/2960 change.Richard Henderson2-2/+5
From-SVN: r58000
2002-10-09btest-gcc.sh, [...]: Update TARGET comments.Phil Edwards3-4/+10
2002-10-09 Phil Edwards <pme@gcc.gnu.org> * btest-gcc.sh, objs-gcc.sh: Update TARGET comments. From-SVN: r57999
2002-10-09Add PR numbers to entries for last commitZack Weinberg2-0/+2
From-SVN: r57998
2002-10-09c-decl.c (start_decl): Unconditionally issue error for 'typedef foo = bar'.Zack Weinberg8-73/+101
gcc: * c-decl.c (start_decl): Unconditionally issue error for 'typedef foo = bar'. (finish_decl): Remove special case for TYPE_DECL with initializer. * doc/extend.texi: Delete "Naming Types" section. Change all cross-references to that section to refer to "Typeof" instead. Add the useful safe-max()-macro example from "Naming Types" to "Typeof", rewritten using that extension. gcc/cp: * decl.c (start_decl): Unconditionally issue error for 'typedef foo = bar'. (cp_finish_decl): Remove special case for TYPE_DECL with initializer. (grokdeclarator): Remove redundant error for 'typedef foo = bar'. gcc/testsuite: * g++.dg/ext/typedef-init.C: New test. * gcc.dg/typedef-init.c: New test. From-SVN: r57995
2002-10-09* decl2.c (prune_vtable_vardecl): Delete unused function.Kaveh R. Ghazi2-10/+4
From-SVN: r57994
2002-10-09* objs-gcc.sh: On (non-linux) native hosts, use 'make bootstrap'.Geoffrey Keating2-0/+7
From-SVN: r57993
2002-10-09loop.c: Revert 2002-08-15 change.Kaveh R. Ghazi2-6/+11
* loop.c: Revert 2002-08-15 change. (LOOP_REGNO_NREGS): Ensure type is int. From-SVN: r57992
2002-10-09* parse.y (merge_string_cste): Add parentheses around & within |.Kaveh R. Ghazi2-1/+5
From-SVN: r57991
2002-10-09rs6000.md (extenddftf2): Change to define_insn which copies first FPR and ↵David Edelsohn2-33/+45
clears second. * config/rs6000/rs6000.md (extenddftf2): Change to define_insn which copies first FPR and clears second. (extendsftf2): Same. (floatditf2): Fix typo. (floatsitf2): Same. (fix_trunctfdi2): Same. (fix_trunctfsi2): Same. From-SVN: r57990
2002-10-09conflict.c (arc_hash): Change return type to hashval_t.Kaveh R. Ghazi6-18/+27
* conflict.c (arc_hash): Change return type to hashval_t. * cselib.c (get_value_hash): Likewise. * genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash, state_hash, automata_list_hash): Likewise. * read-rtl.c (def_hash): Likewise. * tree.c (type_hash_hash): Likewise. From-SVN: r57987
2002-10-09rs6000.c (rs6000_ra_ever_killed): Call prologue_epilogue_contains instead of ↵Aldy Hernandez2-10/+16
using REG_MAYBE_DEAD notes. 2002-10-08 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes. From-SVN: r57985
2002-10-09* sh.md (ffssi2): Fix emitted code.J"orn Rennecke2-6/+11
From-SVN: r57984
2002-10-092002-10-09 Paolo Carlini <pcarlini@unitus.it>Paolo Carlini1-1/+1
Fix trivial typo in the last ChangeLog entry. From-SVN: r57983
2002-10-09cse.c (insn_live_p): Pass insn pattern, not full insn to may_trap_p.Ulrich Weigand2-1/+6
* cse.c (insn_live_p): Pass insn pattern, not full insn to may_trap_p. From-SVN: r57982
2002-10-09cppmacro.c (paste_tokens): Only allow / to paste with =.Neil Booth4-2/+18
* cppmacro.c (paste_tokens): Only allow / to paste with =. testsuite: * gcc.dg/cpp/paste13.c: New test. From-SVN: r57978
2002-10-09Daily bump.GCC Administrator2-2/+2
From-SVN: r57976
2002-10-09PR libstdc++/8071, libstdc++/8127, c++/6745Jonathan Lennox3-11/+121
2002-10-08 Jonathan Lennox <lennox@cs.columbia.edu> PR libstdc++/8071, libstdc++/8127, c++/6745 * streambuf.tcc (__copy_streambufs): Handle cases where __sbin->in_avail() returns 0, or where __sbin doesn't set gptr(). * testsuite/27_io/ostream_inserter_other.cc (test05): Add. From-SVN: r57970
2002-10-09rs6000.md (movdf splitter): Use gen_int_mode on 64-bit hosts.David Edelsohn2-8/+27
* config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on 64-bit hosts. (movtf_internal): Reference correct displacement for second value in memory. (movtf splitter): Correct generation of constants in 64-bit mode. From-SVN: r57969
2002-10-09c-common.c (cb_register_builtins): Define __WCHAR_MAX__.Gabriel Dos Reis3-1/+9
* c-common.c (cb_register_builtins): Define __WCHAR_MAX__. * doc/cpp.texi (Common Predefined Macros): Document. From-SVN: r57966