aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-10-052003-10-05 Paolo Carlini <pcarlini@unitus.it>Paolo Carlini2-37/+36
* include/bits/locale_facets.tcc (num_put::do_put(..., bool)): Prefer ?: to if-else. (time_get::_M_extract_name): Qualify min with std::. (__pad<>::_S_pad): Constify two variables; simplify an if-else statement factoring out some code. * include/bits/locale_facets.tcc: Minor cosmetic changes. From-SVN: r72112
2003-10-05fold-const.c: Follow spelling conventions.Kazu Hirata9-8/+19
* fold-const.c: Follow spelling conventions. * function.c: Likewise. * config/c4x/c4x.h: Likewise. * config/c4x/c4x.md: Likewise. * config/frv/frv.md: Likewise. * config/rs6000/aix.h: Likewise. * config/rs6000/linux64.h: Likewise. * config/xtensa/xtensa.c: Likewise. From-SVN: r72111
2003-10-05c-pretty-print.c: Fix comment formatting.Kazu Hirata9-11/+22
* c-pretty-print.c: Fix comment formatting. * cfglayout.c: Likewise. * cfgloopanal.c: Likewise. * cppcharset.c: Likewise. * dbxout.c: Likewise. * ggc-page.c: Likewise. * ggc.h: Likewise. * target.h: Likewise. From-SVN: r72110
2003-10-05* builtins.c, jcf.h, jvspec.c: Remove PARAMS macros.Kelley Cook4-4/+8
From-SVN: r72107
2003-10-05* gengtype-lex.l: Recognize typedef of functions without PARAMS macro.Kelley Cook2-0/+37
From-SVN: r72106
2003-10-05Daily bump.GCC Administrator2-2/+2
From-SVN: r72104
2003-10-04v850-c.c, [...]: Convert to ISO C90 function declarations and definitions.Nathanael Nerode4-263/+179
* config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c: Convert to ISO C90 function declarations and definitions. From-SVN: r72102
2003-10-04* libfuncs.hZack Weinberg10-495/+163
(LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2) (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2) (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2) (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2) (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2) (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2) (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2) (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc) (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc) (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc) (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc) (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc) (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc) (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc) (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc): Delete. * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le) (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab) (le_optab, unord_optab): New. * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs from the code_to_optab table, not a giant switch; use swap_condition; do widening only if a comparison function that we can call exists in a wider mode, not if a cmp_optab insn or libfunc exists in a wider mode; call protect_from_queue exactly once on each operand. (init_optabs): Initialize the new optabs, not the deleted libfuncs. * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c: Set floating point comparison libfuncs using set_optab_libfunc on the appropriate optab. * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo. * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI selector conditionals. From-SVN: r72101
2003-10-04t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is identical to m68hc12 as far as ↵Stephane Carrez2-1/+6
libraries are concerned. * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is identical to m68hc12 as far as libraries are concerned. From-SVN: r72100
2003-10-04re PR c/12446 (ICE in emit_move_insn on complicated array reference)Eric Botcazou5-2/+58
PR c/12446 * c-typeck.c (convert_for_assignment): Issue an error for array to pointer assignment after default conversion. (digest_init): Likewise. From-SVN: r72096
2003-10-04Test for testing a global followed by extern declaration.Fariborz Jahanian1-0/+13
From-SVN: r72095
2003-10-04retain DECL_COMMON of old declarationFariborz Jahanian2-0/+5
Reviewed by Geoffrey Keating. From-SVN: r72094
2003-10-04locale_facets.tcc (num_get::_M_extract_float): Constify a couple of variables.Paolo Carlini2-3/+11
2003-10-04 Paolo Carlini <pcarlini@unitus.it> * include/bits/locale_facets.tcc (num_get::_M_extract_float): Constify a couple of variables. (num_get::do_get(..., bool&)): Constify __c; prefer *__beg, ++__beg to *__beg++. From-SVN: r72093
2003-10-04extend.texi (Function Attributes): Fix title of GNU C Preprocessor manual.Gerald Pfeifer2-3/+10
* doc/extend.texi (Function Attributes): Fix title of GNU C Preprocessor manual. (C++ Extensions): Fix reference to "Predefined Macros" in the GNU C Preprocessor manual. From-SVN: r72091
2003-10-04stdio_sync_filebuf.h: Don't include the whole <fstream>, only <streambuf> ↵Paolo Carlini2-1/+9
and <cstdio>. 2003-10-04 Paolo Carlini <pcarlini@unitus.it> Petur Runolfsson <peturr02@ru.is> * include/ext/stdio_sync_filebuf.h: Don't include the whole <fstream>, only <streambuf> and <cstdio>. Co-Authored-By: Petur Runolfsson <peturr02@ru.is> From-SVN: r72090
2003-10-04extend.texi: Document how GCC estimates and relies on the size of an asm.Richard Earnshaw2-0/+25
* doc/extend.texi: Document how GCC estimates and relies on the size of an asm. From-SVN: r72089
2003-10-04mips.c (mips_pad_arg_upward): Pad floating-point arguments downward for ↵Richard Sandiford2-1/+12
big-endian o64. * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point arguments downward for big-endian o64. From-SVN: r72088
2003-10-04re PR libstdc++/12206 (Segmentation fault in basic_filebuf::seekoff)Paolo Carlini3-0/+135
2003-10-04 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/12206 * include/bits/fstream.tcc (imbue): In case a codecvt facet is not available, set _M_codecvt = 0. * testsuite/27_io/basic_filebuf/imbue/12206.cc: New. From-SVN: r72087
2003-10-03ltconfig (sys_lib_search_path_spec): Fix a typo for HPUX.H.J. Lu2-1/+5
2003-10-03 H.J. Lu <hongjiu.lu@intel.com> * ltconfig (sys_lib_search_path_spec): Fix a typo for HPUX. From-SVN: r72086
2003-10-03ggc-page.c: (ggc_pch_write_object) replace fseek() with fwrite() in PCH ↵Robert Bowdidge2-5/+30
generation... * ggc-page.c: (ggc_pch_write_object) replace fseek() with fwrite() in PCH generation, avoiding too-frequent flushes when writing to NFS file system From-SVN: r72085
2003-10-04Daily bump.GCC Administrator2-2/+2
From-SVN: r72083
2003-10-03objc-act.c (lookup_category): Mark as 'inline'.Ziemowit Laski2-2/+6
2003-10-03 Ziemowit Laski <zlaski@apple.com> * objc/objc-act.c (lookup_category): Mark as 'inline'. From-SVN: r72081
2003-10-03objc-act.c (add_method_to_hash_list, [...]): New functions.Alexander Malmberg6-84/+253
[gcc] 2003-10-03 Alexander Malmberg <alexander@malmberg.org> Ziemowit Laski <zlaski@apple.com> * objc/objc-act.c (add_method_to_hash_list, lookup_category): New functions. (lookup_method_in_hash_lists): New parameter indicating whether we are messaging 'Class' or 'id'. (check_duplicates): Likewise; do not assume all methods will be either class or instance methods. (generate_category, finish_class): Use lookup_category(). (add_method): Use add_method_to_hash_list(); insert instance methods of root classes into the global class method hash table. (add_category): Use lookup_category(); avoid constructing duplicate categories. (really_start_method): Add method to corresponding @interface, if not already there (and if the @interface exists). (finish_message_expr, finish_objc): Adjust calls to check_duplicates(). [gcc/testsuite] 2003-10-03 Alexander Malmberg <alexander@malmberg.org> Ziemowit Laski <zlaski@apple.com> * objc.dg/method-6.m ('starboard'): Move prototype from 'Base' to 'Derived', so that it is never considered a class method; add new warning for '+port' method ambiguity. * objc.dg/method-12.m: Include <objc/objc.h> instead of <objc/objc-api.h> (needed on Mac OS X). * objc.dg/method-13.m: New test. Co-Authored-By: Ziemowit Laski <zlaski@apple.com> From-SVN: r72080
2003-10-03PR optimization/9325, PR java/6391Roger Sayle6-43/+202
PR optimization/9325, PR java/6391 * fold-const.c (fold_convert): For floating point to integer conversions, return the maximum/minimum representable integer value if the real constant overflows the destination type. * tree.c (real_value_from_int_cst): Allow the type to be NULL, meaning don't truncate the result to a floating point mode. Simplify the logic by calling real_from_integer directly. * simplify-rtx.c (simplify_unary_operation): Implement the same semantics for folding floating point to integer conversions in RTL. * gcc.c-torture/execute/20031003-1.c: New test case. From-SVN: r72079
2003-10-03mips.c (mips_emit_prefetch): Restructure to avoid use of arrays, handle ↵Chris Demetriou4-27/+56
indexed prefetch. 2003-10-03 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.c (mips_emit_prefetch): Restructure to avoid use of arrays, handle indexed prefetch. * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments. (ISA_HAS_PREFETCHX): New deffine. * config/mips/mips.md ("type" attr): Add new "prefetchx" value, update comments. (prefetch_indexed_di, prefetch_indexed_si): New insns. From-SVN: r72077
2003-10-03decl.c (struct cp_binding_level): Move to name-lookup.hGabriel Dos Reis4-151/+155
* decl.c (struct cp_binding_level): Move to name-lookup.h (current_binding_level): Likewise. (class_binding_level): Likewise. * cp-tree.h (enum scope_kind): Likewise. From-SVN: r72076
2003-10-03* configure: Rebuild.Jeff Sturm2-24/+24
From-SVN: r72075
2003-10-03configure.in: Remove NO_GETENV definition for win32.Hans Boehm6-440/+387
* configure.in: Remove NO_GETENV definition for win32. * mach_dep.c (GC_generic_push_regs): Prevent tail call optimization. * misc.c (GC_init_inner): Call GC_thr_init for win32. (GC_set_warn_proc): Add assertion. * win32_threads.c: Import 6.3alpha2 version. * include/private/gc_priv.h: Add support for EMPTY_GETENV_RESULTS. From-SVN: r72074
2003-10-03re PR rtl-optimization/12289 (Solaris 9/Intel bootstrap failure: ICE in ↵Jeff Sturm2-8/+18
expand_call compiling java/io/ObjectInputStream.java) PR optimization/12289 * calls.c (emit_call_1): Pretend to have popped the arguments to noreturn and longjmp functions instead of ignoring them. (expand_call): Don't adjust stack_pointer_dela while inhibit_defer_pop is set. Co-Authored-By: Roger Sayle <roger@eyesopen.com> From-SVN: r72073
2003-10-03re PR bootstrap/12276 (Configure check for libunwind does not work with cross)Andreas Schwab3-76/+91
PR bootstrap/12276 * configure.in: Check for libunwind on the host only if building a native compiler. * configure: Regenerated. From-SVN: r72072
2003-10-03unwind-pe.h (read_encoded_value_with_base): Constify u and its ↵Paolo Carlini2-2/+7
inizialization cast. 2003-10-03 Paolo Carlini <pcarlini@unitus.it> * unwind-pe.h (read_encoded_value_with_base): Constify u and its inizialization cast. From-SVN: r72071
2003-10-03name-lookup.c (binding_entry_free): Nullify name and type fields.Gabriel Dos Reis2-1/+7
* name-lookup.c (binding_entry_free): Nullify name and type fields. From-SVN: r72069
2003-10-03Added a missing ChangeLog Entry:Andrew Haley1-0/+5
2003-08-20 Andrew Haley <aph@redhat.com> * except.c (prepare_eh_table_type): Use new encoding for exception handlers when using -fno-assume-compiled. From-SVN: r72068
2003-10-03re PR target/12485 (MIPS -mxgot causes "bad" exception handling code.)Richard Sandiford2-0/+8
PR target/12485 * config/mips/mips.c (mips_load_got): GOT accesses can't trap. From-SVN: r72066
2003-10-03Fix typoMark Mitchell1-1/+1
From-SVN: r72064
2003-10-03re PR libstdc++/12451 (missing(late) class forward declaration in cxxabi.h)Harald Boehme2-2/+7
2003-10-02 Harald Boehme <boehme@informatik.hu-berlin.de> PR libstdc++/12451 * libsupc++/cxxabi.h: Move forward declaration of __class_type_info. From-SVN: r72059
2003-10-03Fix typoMark Mitchell1-1/+1
From-SVN: r72058
2003-10-03re PR rtl-optimization/12180 (Inline optimization fails for variadic function)Mark Mitchell4-0/+25
PR optimization/12180 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of functions containing calls to PR optimization/12180 * gcc.dg/20031002-1.c: New test. From-SVN: r72057
2003-10-03Daily bump.GCC Administrator2-2/+2
From-SVN: r72055
2003-10-02mips.c (mips_emit_prefetch): Use operand 3 in instructions being output.Chris Demetriou3-12/+27
2003-10-02 Chris Demetriou <cgd@broadcom.com> * config/mips/mips.c (mips_emit_prefetch): Use operand 3 in instructions being output. * config/mips/mips.md (prefetch_si_address): Change third operand's constraint letter to 'I'. (prefetch_di_address): Likewise. (prefetch_si, prefetch_di): Set third operand to const0_rtx. From-SVN: r72053
2003-10-02re PR c++/12486 (Accepts IMHO invalid C++ code)Mark Mitchell4-1/+27
PR c++/12486 * typeck.c (finish_class_member_access_expr): Issue diagnostic on erroneous use of qualified name. PR c++/12486 * g++.dg/inherit/error1.C: New test. From-SVN: r72052
2003-10-02locale_classes.h (locale::facet::_S_get_c_name): Add.Benjamin Kosnik7-11/+28
2003-10-02 Benjamin Kosnik <bkoz@redhat.com> * include/bits/locale_classes.h (locale::facet::_S_get_c_name): Add. * src/locale.cc: Define. * src/localename.cc: Use it. * config/locale/generic/time_members.h: Same. * config/locale/gnu/messages_members.h: Same. * config/locale/gnu/time_members.h: Same. From-SVN: r72050
2003-10-02re PR libstdc++/12232 (Incorrect handling of openmode argument in ↵Paolo Carlini9-36/+115
filebuf::seekoff and seekpos) 2003-10-02 Paolo Carlini <pcarlini@unitus.it> PR libstdc++/12232 * include/bits/fstream.tcc (seekoff): Ignore the openmode argument; simplify. * config/io/basic_file_stdio.h (__basic_file<char>::seekoff, seekpos): Remove the openmode argument. * config/io/basic_file_stdio.cc (__basic_file<char>::seekoff, seekpos): Remove redundant placeholder for the openmode argument. * testsuite/27_io/basic_filebuf/seekoff/char/12232.cc: New. * testsuite/27_io/basic_filebuf/seekoff/char/3-in.cc: Tweak. * testsuite/27_io/basic_filebuf/seekoff/char/3-out.cc: Likewise. * testsuite/27_io/basic_filebuf/seekpos/char/3-in.cc: Likewise. * testsuite/27_io/basic_filebuf/seekpos/char/3-out.cc: Likewise. From-SVN: r72048
2003-10-022003-10-02 Guilhem Lavaux <guilhem@kaffe.org>Guilhem Lavaux3-13/+38
* java/net/InetSocketAddress.java (InetSocketAddress): Made exception more clear. (equals): Handle case when addr is null. (toString): Likewise. * java/net/NetworkInterface.java (static): Load native library. (getNetworkInterfaces): Rewritten. From-SVN: r72047
2003-10-02strerror.c: Revert last change.Daniel Jacobowitz2-8/+7
* strerror.c: Revert last change. Declare static sys_nerr and sys_errlist using different names. From-SVN: r72046
2003-10-02locale.cc (locale::_S_initialize): Use __gthread_active_p.Benjamin Kosnik2-8/+19
2003-10-02 Benjamin Kosnik <bkoz@redhat.com> * src/locale.cc (locale::_S_initialize): Use __gthread_active_p. (locale::facet::_S_get_c_locale): Same. From-SVN: r72045
2003-10-02GtkComponentPeer.java (insets): New field.Thomas Fitzsimmons12-108/+317
2003-10-02 Thomas Fitzsimmons <fitzsim@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (insets): New field. (initializeInsets): New method. (GtkComponentPeer): Call initializeInsets. Call setCursor and setBounds unconditionally. (setBounds): Convert coordinates if parent is a Window. * gnu/java/awt/peer/gtk/GtkContainerPeer.java (insets): Move field to GtkComponentPeer. (GtkContainerPeer): Don't initialize insets. * gnu/java/awt/peer/gtk/GtkDialogPeer.java (initializeInsets): New method. (create): Call new GtkWindowPeer create method. * gnu/java/awt/peer/gtk/GtkFramePeer.java (initializeInsets): New method. (create): Call new GtkWindowPeer create method. (setBounds): Remove method. (postConfigureEvent): Likewise. * gnu/java/awt/peer/gtk/GtkWindowPeer.java: Replace GTK window type constants with GDK window type constants. (create(int,boolean,int,int,GtkWindowPeer)): New method. (create(int,boolean)): Likewise. (create()): Call create(int,boolean). (nativeSetBounds): New native method declaration. (setBounds): Call native method declaration. (setSize): New native method declaration. (setBoundsCallback): Likewise. (postConfigureEvent): Handle change in insets. Call setSize and setBoundsCallback methods. * java/awt/Window.java (Window): Set visible to false. (setBoundsCallback): New method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c (gtkWidgetGetLocationOnScreen): If this component is not a container, adjust the location returned based on the peer's allocation. (set(String,boolean)): Revert change from 2003-09-19. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (awt_event_handler): Fix inset calculation. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Add JNI glue for Window.setBoundsCallback. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (create): Set up stacking order, window decorations and window manager hints. (setBoundsCallback): New method. (setSize): New method. (nativeSetBounds): New method. * jni/gtk-peer/gtkpeer.h: Declare setBoundsCallbackID. From-SVN: r72043
2003-10-02correct commentJason Merrill1-6/+10
From-SVN: r72042
2003-10-02system.h: Poison macros obsoleted by earlier patch.Zack Weinberg3-3/+11
* system.h: Poison macros obsoleted by earlier patch. * config/cris/cris.c: C90-ify a function definition. From-SVN: r72041
2003-10-02[multiple changes]Benjamin Kosnik19-101/+203
2003-10-02 Benjamin Kosnik <bkoz@redhat.com> * config/linker-map.gnu: Export _S_get_c_locale instead of _S_c_locale object. 2003-10-02 Petur Runolfsson <peturr02@ru.is> * config/locale/generic/c_locale.cc (category_names, locale::_S_categories): Const qualify. * config/locale/gnu/c_locale.cc: Same. * config/locale/generic/time_members.h (__timepunct::__timepunct): Copy string contents before assigning to _M_name_timepunct, qualify strcpy and strlen with std::. * config/locale/gnu/time_members.h: Same. * config/locale/gnu/messages_members.h (messages::messages): Copy string contents before assigning to _M_name_messages, qualify strcpy and strlen with std::. * config/os/gnu-linux/ctype_noninline.h (ctype<char>::classic_table()): Don't call locale::classic(). * include/bits/locale_classes.h (locale::_S_categories): Const qualify. (locale::_S_once, locale::_S_initialize_once, locale::facet::_S_once, locale::facet::_S_initialize_once, locale::facet::_S_get_c_locale): Declare. (locale::_S_initialize): Don't define. (locale::facet::_S_c_locale): Make private. (locale::facet::_S_c_name): Same, const qualify. (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused parameters, add throw() specifier. * include/bits/locale_facets.h (__timepunct::_M_name_timepunct, messages::_M_name_messages): Const qualify. * src/locale.cc (locale::_S_once, locale::facet::_S_once): Define. (locale::classic): Move initialization code... (locale::_S_initialize_once): ...here. (locale::_S_initialize): Call _S_initialize_once through __gthread_once. (locale::facet::_S_initialize_once): Initialize _S_c_locale. (locale::facet::_S_get_c_locale): Call _S_initialize_once through __gthread_once before returning _S_c_locale. * src/localename.cc (locale::_Impl::_Impl(facet**, size_t, bool)): Drop unused parameters, add throw() specifier, don't initialize locale::facet::_S_c_locale and _S_c_name. * config/locale/generic/messages_members.h: Replace _S_c_locale with _S_get_c_locale(). * config/locale/gnu/c_locale.cc: Same. * config/locale/gnu/messages_members.h: Same. * config/locale/gnu/numeric_members.cc: Same. * config/locale/gnu/time_members.cc: Same. * config/os/gnu-linux/ctype_noninline.h: Same. * include/bits/locale_facets.h: Same. * include/bits/locale_facets.tcc: Same. * src/codecvt.cc: Same. * src/ctype.cc: Same. From-SVN: r72040