Kaveh R. Ghazi
3c987b8ed7
* Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
...
From-SVN: r74153
2003-12-02 03:55:20 +00:00
Jeff Sturm
c353d6a488
verify.cc (state::clean_subrs): Clear seen_subrs.
...
* verify.cc (state::clean_subrs): Clear seen_subrs.
(state::copy): Walk seen_subrs from copy, not `this'.
Don't clear seen_subrs.
From-SVN: r74152
2003-12-02 03:42:40 +00:00
Benjamin Kosnik
6b98580b89
basic_ios.h (basic_ios::setstate): Revert.
...
2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/basic_ios.h (basic_ios::setstate): Revert.
* include/bits/istream.tcc: Only call setstate if __err != goodbit.
* include/bits/ostream.tcc: Same.
* testsuite/27_io/basic_ios/exceptions/char/2.cc: New.
* testsuite/testsuite_io.h (__gnu_test::fail_streambuf): Make
internal buffer non-static.
From-SVN: r74151
2003-12-02 02:48:51 +00:00
James E Wilson
b3538cf247
As per David's request.
...
* doc/contrib.texi: Update David Mosberger.
From-SVN: r74150
2003-12-01 18:45:16 -08:00
James Lemke
e3b661203f
arm.c (arm_rtx_costs): Improve for xscale multiply.
...
* config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
* testsuite/gcc.dg/arm-g2.c: New test.
From-SVN: r74149
2003-12-02 02:17:18 +00:00
Roger Sayle
d9e7c8e3c3
re PR rtl-optimization/11634 ([hppa] ICE in verify_local_live_at_start, at flow.c:555)
...
PR optimization/11634
* recog.c (split_insn): Factor test of INSN_P and handling of
set_noop_p out of here into the two callers.
(split_all_insns): Add INSN_P test and set_noop_p handling here.
If deleting a no-op set after reload that has a REG_UNUSED note,
mark the basic block as changed and recalculate life information.
(split_all_insns_noflow): Add INSN_P test and set_noop_p handling
here.
* gcc.dg/20031201-2.c: New test case.
From-SVN: r74145
2003-12-02 01:43:58 +00:00
Roger Sayle
b58b21d521
re PR rtl-optimization/12322 (Significant slowdown when compiling computed-goto code in Parrot)
...
PR optimization/12322
* gcse.c (struct ls_expr): Change type of hash_index from int to
unsigned int.
(hash_expr): Document hash_table_size parameter and wrap long line.
(ldst_entry): Calculate expression's hash_index and record in ptr.
(trim_ld_motion_mems): Use hash_index to search a single bucket
instead of scanning the entire hash_table. Remove the "del" local
variable and use the equivalent "expr == 0" instead. Change last
to be a pointer to the pointer to the current element, to simplify
and speed-up deleting from a linked list.
From-SVN: r74144
2003-12-02 01:39:20 +00:00
James E Wilson
98376d4a7e
Fixes issues pointed out by Chris Lattner.
...
* doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
of missing fields.
From-SVN: r74143
2003-12-01 17:32:39 -08:00
James E Wilson
4582b84915
re PR target/8407 ([IA-64] ICE in simplify_gen_subreg, at simplify-rtx.c:2711 with very simple code)
...
PR target/8407
* config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
gen_rtx_REG to create new reg with argument mode.
From-SVN: r74142
2003-12-01 17:12:11 -08:00
Kim Ho
85fa3bdee4
gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): Disable wrapping if TextArea has horizontal scroll bars.
...
2003-12-01 Kim Ho <kho@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create):
Disable wrapping if TextArea has horizontal scroll bars.
From-SVN: r74141
2003-12-02 01:01:07 +00:00
GCC Administrator
2704382914
Daily bump.
...
From-SVN: r74139
2003-12-02 00:16:09 +00:00
Zack Weinberg
75d3baee18
re PR libobjc/11433 (Crash due to dereferencing null pointer when querying protocol)
...
PR 11433
gcc/testsuite:
* objc.dg/proto-lossage-3.m: New test.
libobjc:
* Protocol.m (descriptionForInstanceMethod): Don't dereference
instance_methods if it's NULL.
(descriptionForClassMethod): Likewise for class_methods.
From-SVN: r74137
2003-12-01 23:29:59 +00:00
Thomas Fitzsimmons
bb9cfd0062
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
...
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(awt_event_handler): Hard-code inset values.
From-SVN: r74136
2003-12-01 23:27:06 +00:00
Thomas Fitzsimmons
bebae71041
GdkFontMetrics.java (GdkFontMetrics): Pass font name, not XLFD, to initState.
...
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GdkFontMetrics.java (GdkFontMetrics):
Pass font name, not XLFD, to initState.
(stringWidth(String, int, String)): New method.
(stringWidth(String)): Call new stringWidth.
(getLeading): Always return 0.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
(initState): New Pango implementation.
(stringWidth): Likewise.
From-SVN: r74133
2003-12-01 23:12:09 +00:00
Steven Bosscher
47aeffac9c
ggc.h (struct alloc_zone): Move forward declaration up.
...
* ggc.h (struct alloc_zone): Move forward declaration up.
(new_ggc_zone): New function prototype.
(destroy_ggc_zone): Ditto.
* ggc-simple.c (new_ggc_zone): New function, does nothing.
(destroy_ggc_zone): Ditto.
* ggc-page.c (new_ggc_zone): New function, does nothing.
(destroy_ggc_zone): Ditto.
* ggc-zone.c (struct page_entry): Fix comment.
(ggc_alloc_typed): Use a switch statement instead of ifs.
(new_ggc_zone): New function to set up a new GC zone.
(destroy_ggc_zone): New function to remove a GC zone.
init_ggc): Use new_ggc_zone to set up the default zones.
(ggc_collect): Walk a list of zones, instead of just the
default zones. Report statistics using the zone name.
From-SVN: r74132
2003-12-01 22:59:30 +00:00
Ian Lance Taylor
f26deb3d44
cp-demangle.c (d_demangle): Only return success if we consumed the entire demangled string.
...
* cp-demangle.c (d_demangle): Only return success if we consumed
the entire demangled string.
(is_ctor_or_dtor): Likewise.
From-SVN: r74129
2003-12-01 22:04:04 +00:00
Ian Lance Taylor
be571b7758
demangle-expected: Revert one part of 2003-06-26 patch to restore expected result of EDG test case...
...
* testsuite/demangle-expected: Revert one part of 2003-06-26 patch
to restore expected result of EDG test case to original expected
result.
From-SVN: r74128
2003-12-01 22:03:16 +00:00
Ulrich Weigand
1bcec22314
* unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
...
From-SVN: r74126
2003-12-01 21:57:07 +00:00
Roger Sayle
28cb2b1448
re PR rtl-optimization/12628 (Segfault with -fno-expensive-optimizations -fno-rerun-loop-opt)
...
PR optimization/12628
* toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
* regclass.c (reg_scan): Include allocate_reg_info time in
TV_REG_SCAN. Minor clean-ups.
(reg_scan_update): Minor clean-ups.
* gcc.dg/20031201-1.c: New test case.
From-SVN: r74125
2003-12-01 21:16:59 +00:00
Olga Rodimina
ea91ed0989
2003-12-01 Olga Rodimina <rodimina@redhat.com>
...
* java/awt/TextComponent.java:
(getSelectionStart): Updated javadocs.
(getSelectionEnd): Ditto.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer:
(getSelectionStart): Changed to return caret position if no
text is selected
(getSelectionEnd): Ditto.
From-SVN: r74124
2003-12-01 20:23:50 +00:00
Ulrich Weigand
bde5dd2520
* config.gcc (s390x-ibm-tpf*): Add extra_parts.
...
From-SVN: r74121
2003-12-01 19:06:25 +00:00
James E Wilson
93868a8e5a
Fix for aliasing problem reported by Michael Matz.
...
* config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
GR_ARG_FIRST.
From-SVN: r74120
2003-12-01 11:04:53 -08:00
Benjamin Kosnik
d78e147a14
C++STYLE: Add exception bits.
...
2003-12-01 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/17_intro/C++STYLE: Add exception bits.
* include/bits/fstream.tcc: Add location info to exception strings.
* include/bits/stl_construct.h: Formatting tweaks.
From-SVN: r74119
2003-12-01 18:48:24 +00:00
Thomas Fitzsimmons
aa66a642c1
GtkButtonPeer.java, [...]: Remove files.
...
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/awt/gtk/GtkButtonPeer.java, gnu/awt/gtk/gtkcommon.cc,
gnu/awt/gtk/gtkcommon.h, gnu/awt/gtk/GtkComponentPeer.java,
gnu/awt/gtk/GtkContainerPeer.java,
gnu/awt/gtk/GtkFramePeer.java, gnu/awt/gtk/GtkLabelPeer.java,
gnu/awt/gtk/GtkMainThread.java, gnu/awt/gtk/GtkToolkit.java,
gnu/awt/gtk/GtkWindowPeer.java, gnu/awt/gtk/natGtkButtonPeer.cc,
gnu/awt/gtk/natGtkComponentPeer.cc,
gnu/awt/gtk/natGtkContainerPeer.cc,
gnu/awt/gtk/natGtkFramePeer.cc, gnu/awt/gtk/natGtkLabelPeer.cc,
gnu/awt/gtk/natGtkMainThread.cc, gnu/awt/gtk/natGtkToolkit.cc,
gnu/awt/gtk/natGtkWindowPeer.cc: Remove files.
From-SVN: r74118
2003-12-01 18:40:39 +00:00
Zack Weinberg
dc170a876a
common.opt: Remove -fgnu-linker.
...
* common.opt: Remove -fgnu-linker.
* flags.h: Remove flag_gnu_linker.
* opts.c: Don't handle OPT_fgnu_linker.
* toplev.c: Don't initialize flag_gnu_linker.
Remove gnu-linker entry from f_options.
* config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
Don't reset flag_gnu_linker.
* config/mips/mips.c (override_options): Likewise.
* doc/invoke.texi: Remove all mention of -fgnu-linker.
From-SVN: r74117
2003-12-01 18:25:39 +00:00
Giovanni Bajo
a68a270a1a
MAINTAINERS: Move myself from 'Bug database only accounts' to 'Write After Approval' section.
...
* MAINTAINERS: Move myself from 'Bug database only accounts' to
'Write After Approval' section. Update email.
From-SVN: r74116
2003-12-01 18:08:10 +00:00
Thomas Fitzsimmons
24fb8b78f4
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
...
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
(closed): Mark loader parameter as unused.
From-SVN: r74115
2003-12-01 18:05:32 +00:00
Daniel Berlin
7297afa029
ggc-zone.c (ggc_pch_write_object): Calculate object size using ggc_get_size (which accounts for large objects...
...
2003-12-01 Daniel Berlin <dberlin@dberlin.org>
* ggc-zone.c (ggc_pch_write_object): Calculate object size using
ggc_get_size (which accounts for large objects properly).
From-SVN: r74114
2003-12-01 17:58:13 +00:00
Jeff Sturm
fccab17ead
re PR rtl-optimization/13024 (gcj can't build current rhug)
...
PR optimization/13024
* toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
parameter.
(rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
declaration. Rebuild jump labels following local_alloc if necessary.
(rest_of_compilation): Remove rebuild_label_notes_after_reload
declaration. Don't pass rebuild_notes parameter to
rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
Don't rebuild jump labels.
From-SVN: r74113
2003-12-01 17:53:10 +00:00
Jeff Law
095c3bbdbb
flow.c (count_or_remove_death_notes_bb): New.
...
* flow.c (count_or_remove_death_notes_bb): New. Extracted from
count_or_remove_death_notes.
(count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
From-SVN: r74111
2003-12-01 10:05:16 -07:00
Michael Koch
8325a4ec9c
2003-12-01 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/http/Connection.java
(Connection): Merged class documentation.
(socket): Renamed from sock.
(Connection): Made protected, documentation added.
(connect): Give URL'S host instead of InetAddress to Socket
constructor.
(disconnect): Documentation added.
(getOutputStream): Rewrapped.
From-SVN: r74109
2003-12-01 16:35:45 +00:00
Andreas Krebbel
41439bf6a6
builtins.c (expand_builtin_longjmp): Added two memory clobbers.
...
2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
* builtins.c (expand_builtin_longjmp): Added two memory clobbers.
From-SVN: r74108
2003-12-01 16:20:42 +00:00
Ulrich Weigand
0422e94065
reload.c (find_reloads_address): Split addresses of type (plus (plus (reg) (reg)) (const_int)) only if...
...
* reload.c (find_reloads_address): Split addresses of type
(plus (plus (reg) (reg)) (const_int)) only if one register
is either a valid base register or else one of the stack
frame related registers (sp/fp/ap).
From-SVN: r74107
2003-12-01 16:17:32 +00:00
Michael Koch
1fa7e0fd52
2003-12-01 Michael Koch <konqueror@gmx.de>
...
* gnu/java/net/protocol/file/Connection.java
(fileIn): Documentation added.
(inputStream): Likewise.
(outputStream): Likewise.
(Connection): Likewise.
(connect): Simplified.
From-SVN: r74106
2003-12-01 15:50:23 +00:00
James Lemke
3066a15c13
Add myself to 'Write After Approval' section.
...
From-SVN: r74105
2003-12-01 15:37:44 +00:00
Paolo Carlini
9dbaa9489f
re PR libstdc++/10378 ([library DR 402] cannot add object with inplace new into STL collections)
...
2003-12-01 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/10378
* include/bits/allocator.h (allocator::construct): Implement
resolution of DR 402 [Ready] (in Revision 28).
* include/bits/allocator_traits.h (__allocator::construct):
Likewise.
* include/bits/stl_construct.h (_Construct): Likewise.
* testsuite/20_util/allocator_members.cc: Move to...
* testsuite/20_util/allocator/1.cc: ... here.
* testsuite/20_util/allocator/10378.cc: New.
* docs/html/ext/howto.html: Add an entry for DR 402.
From-SVN: r74104
2003-12-01 15:34:07 +00:00
Thomas Fitzsimmons
ec22cdf140
GtkImage.java (setDimensions, [...]): Check that io is not null before calling io.imageUpdate.
...
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GtkImage.java (setDimensions,
setProperties): Check that io is not null before calling
io.imageUpdate.
* java/awt/image/ImageConsumer.java (setPixels, imageComplete):
Update javadocs.
* java/awt/image/PixelGrabber.java: Fix implementation and
update javadocs.
From-SVN: r74103
2003-12-01 15:28:22 +00:00
Michael Koch
a1ff4c6478
natPlainSocketImplPosix.cc bind (): Dont set SockedImpl.address field on succesful bind.
...
2003-12-01 Michael Koch <konqueror@gmx.de>
* gnu/java/net/natPlainSocketImplPosix.cc
bind(): Dont set SockedImpl.address field on succesful bind.
* gnu/java/net/natPlainSocketImplWin32.cc
bind(): Likewise.
From-SVN: r74102
2003-12-01 14:32:26 +00:00
Jeff Sturm
50abb28b64
re PR java/13237 (ICE on Math.sqrt(2.0))
...
Fix PR java/13237
* parse.y (java_complete_lhs): Save location prior to patching
CALL_EXPR.
From-SVN: r74101
2003-12-01 14:19:41 +00:00
Arnaud Charlet
08aa9a4a1c
[multiple changes]
...
2003-12-01 Nicolas Setton <setton@act-europe.fr>
* a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
so that the debugger can reliably access the value of the parameter,
and therefore is able to display the exception name when an exception
breakpoint is reached.
2003-12-01 Thomas Quinot <quinot@act-europe.fr>
* fmap.adb: Fix typo in warning message.
* g-socket.ads, g-socket.adb: Make Free a visible instance of
Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
2003-12-01 Vincent Celier <celier@gnat.com>
* mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
ther is no Afile.
(Build_Library): Get the switches only if Default_Switches is declared
in package Binder.
2003-12-01 Ed Schonberg <schonberg@gnat.com>
* exp_ch6.adb (Expand_Actuals): When applying validity checks to
actuals that are indexed components, reanalyze actual to ensure that
packed array references are properly expanded.
* sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
attempted assignment to a discriminant.
2003-12-01 Robert Dewar <dewar@gnat.com>
* rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
reformatting.
* switch-c.adb: Minor reformatting of comments
2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
* Makefile.in: Clean ups.
2003-12-01 GNAT Script <nobody@gnat.com>
* Make-lang.in: Makefile automatically updated
From-SVN: r74100
2003-12-01 14:29:28 +01:00
Steven Bosscher
80fcc7bcae
function.c (update_epilogue_consts): Don't use PARAMS.
...
* function.c (update_epilogue_consts): Don't use PARAMS.
* rtl.h (web_main): Ditto.
* target.h (is_costly_dependence): Ditto
From-SVN: r74099
2003-12-01 13:07:14 +00:00
Arnaud Charlet
c613599451
* 5wsystem.ads: Disable zero cost exception, not ready yet.
...
From-SVN: r74098
2003-12-01 10:39:57 +01:00
Andreas Tobler
d18c338615
re PR libffi/13221 (libffi's closure couldn't pass sequence of char and/or short arguments.)
...
2003-12-01 Andreas Tobler <a.tobler@schweiz.ch>
PR other/13221
* testsuite/libffi.call/cls_multi_sshort.c: New test case.
* testsuite/libffi.call/cls_multi_sshortchar.c: Likewise.
* testsuite/libffi.call/cls_multi_uchar.c: Likewise.
* testsuite/libffi.call/cls_multi_schar.c: Likewise.
* testsuite/libffi.call/cls_multi_ushortchar.c: Likewise.
* testsuite/libffi.call/cls_multi_ushort.c: Likewise.
* testsuite/libffi.special/unwindtest.cc: Cosmetics.
From-SVN: r74093
2003-12-01 08:23:28 +01:00
Eric Botcazou
e82407b5bb
re PR middle-end/7847 (pragma pack / attribute(packed): unaligned access to packed structure)
...
PR middle-end/7847
* expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
do not recheck that 'op0' is a MEM. Move comment. When testing for
unaligned objects, take also into account the alignment of 'op0' and
'mode1' if 'op0' is a MEM.
From-SVN: r74092
2003-12-01 07:15:31 +00:00
Mark Mitchell
a668c6adec
re PR c++/9849 (Missing keyword 'template' produces ICE with no diagnostic on 3.3 (and unreadable diagnostic on 3.4))
...
PR c++/9849
* g++.dg/template/error4.C: New test.
* g++.dg/template/nested3.C: Adjust error markers.
PR c++/9849
* parser.c (cp_lexer_prev_token): New function.
(cp_parser_skip_to_closing_parenthesis): Add consume_paren
parameter.
(cp_parser_nested_name_specifier_opt): Add is_declaration
parameter.
(cp_parser_nested_name_specifier): Likewise.
(cp_parser_class_or_namespace_name): Likewise.
(cp_parser_class_name): Likewise.
(cp_parser_template_id): Likewise.
(cp_parser_template_name): Likewise.
(cp_parser_id_expression): Adjust calls to
cp_parser_nested_name_specifier_op, cp_parser_template_id,
cp_parser_class_name.
(cp_parser_unqualified_id): Likewise.
(cp_parser_postfix_expression): Likewise.
(cp_parser_pseudo_destructor_name): Likewise.
(cp_parser_cast_expression): Likewise.
(cp_parser_mem_initializer_id): Likewise.
(cp_parser_simple_type_specifier): Likewise.
(cp_parser_type_name): Likewise.
(cp_parser_elaborated_type_specifier): Likewise.
(cp_parser_qualified_namespace_specifier): Likewise.
(cp_parser_using_declaration): Likewise.
(cp_parser_using_directive): Likewise.
(cp_parser_ptr_operator): Likewise.
(cp_parser_declarator_id): Likewise.
(cp_parser_class_head): Likewise.
(cp_parser_base_specifier): Likewise.
(cp_parser_constructor_declarator_p): Likewise.
(cp_parser_direct_declarator): Fix typo in comment.
(cp_parser_parenthesized_expression_list): Adjust call to
cp_parser_skip_to_closing_parenthesis.
(cp_parser_selection_statement): Likewise.
From-SVN: r74087
2003-12-01 05:58:23 +00:00
Gabriel Dos Reis
8786882bd0
* doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
...
From-SVN: r74084
2003-12-01 03:22:35 +00:00
Kelley Cook
53d60c042d
Makefile.am: Define AM_MAKINFOFLAGS.
...
fastjar/
2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.am: Define AM_MAKINFOFLAGS. Remove Automake 1.4 hack.
* Makefile.in: Regenerate with automake 1.7.6 & autoconf 2.57 tools.
* aclocal.m4, config.h.in, configure: Likewise.
* install-sh, missing, mkinstalldirs, stamp-h.in: Remove.
gcc/
2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
* doc/install.texi: Note that fastjar is built with automake 1.7.x
and autoconf 2.57.
From-SVN: r74082
2003-12-01 02:58:36 +00:00
GCC Administrator
ae954fc6cc
Daily bump.
...
From-SVN: r74080
2003-12-01 00:16:07 +00:00
Alan Modra
c3a77bf9c6
linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test target_flags directly rather than using TARGET_* defines.
...
* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
target_flags directly rather than using TARGET_* defines.
From-SVN: r74078
2003-12-01 10:13:05 +10:30
Kaveh R. Ghazi
0e73769eec
* gcc.dg/cpp/assert4.c: Check more #system assertions.
...
From-SVN: r74076
2003-11-30 22:32:38 +00:00