Michael Koch
d8d3480a29
UTF_16.java, [...]: Cleanup.
...
2004-10-16 Michael Koch <konqueror@gmx.de>
* libjava/gnu/java/nio/charset/UTF_16.java,
libjava/gnu/java/nio/charset/UTF_16BE.java,
libjava/gnu/java/nio/charset/UTF_16LE.java,
libjava/java/nio/ByteOrder.java,
libjava/java/nio/MappedByteBuffer.java,
libjava/java/nio/channels/Channels.java,
libjava/java/nio/channels/spi/SelectorProvider.java,
libjava/java/nio/charset/Charset.java:
Cleanup.
From-SVN: r89151
2004-10-16 18:06:03 +00:00
Michael Koch
752ef8732d
2004-10-16 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/charset/UTF_16Encoder.java
(UTF_16Encoder): Fixed maxBytesPerChar handling.
From-SVN: r89150
2004-10-16 17:58:01 +00:00
Michael Koch
7af8968e98
BigDecimal.java, [...]: Reorganized import statements, removed redundant and reorganized modifiers.
...
2004-10-16 Michael Koch <konqueror@gmx.de>
* java/math/BigDecimal.java, java/math/BigInteger.java:
Reorganized import statements, removed redundant and
reorganized modifiers.
From-SVN: r89149
2004-10-16 17:51:45 +00:00
Michael Koch
f3bf84759c
ExplicitBeanInfo.java: Explicitely import java.awt.Image.
...
2004-10-16 Michael Koch <konqueror@gmx.de>
* gnu/java/beans/ExplicitBeanInfo.java:
Explicitely import java.awt.Image.
(getIcon): Fixed off-by-one error.
From-SVN: r89148
2004-10-16 17:48:57 +00:00
Zdenek Dvorak
fce22de5d2
re PR tree-optimization/17766 (cc1 hangs in with -O3, works with -O2)
...
PR tree-optimization/17766
* basic-block.h (enum dom_state): DOM_CONS_OK removed.
(dom_info_available_p): Declare.
* cfghooks.c (split_block, make_forwarder_block): Use
dom_info_available_p.
* dominance.c (compute_dom_fast_query, calculate_dominance_info,
free_dominance_info, verify_dominators): Ditto.
(dom_info_available_p): New function.
* tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
(thread_jumps): Use dom_info_available_p.
* tree-complex.c (expand_complex_div_wide): Ditto.
* tree-mudflap.c (mf_build_check_statement_for): Ditto.
From-SVN: r89147
2004-10-16 16:58:59 +00:00
Zdenek Dvorak
80cad5faeb
tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
...
* tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
(find_best_candidate): Take also important candidates into account.
(find_optimal_iv_set): Initialize important_candidates bitmap.
From-SVN: r89146
2004-10-16 16:49:53 +00:00
Zdenek Dvorak
f59b0bd4e6
re PR tree-optimization/17560 (Infinite recursion in tree-scalar-evolution with -Os)
...
PR tree-optimization/17560
* predict.c (tree_estimate_probability): Mark irreducible
loops.
From-SVN: r89145
2004-10-16 16:45:38 +00:00
Zdenek Dvorak
71068e3124
re PR rtl-optimization/17723 (gcc segfaults with -O2)
...
PR rtl-optimization/17723
* cfgcleanup.c (merge_memattrs): Handle case when
MEM_SIZE == NULL_RTX.
From-SVN: r89144
2004-10-16 16:42:31 +00:00
Benjamin Kosnik
cd9333a726
[multiple changes]
...
2004-10-16 Benjamin Kosnik <bkoz@redhat.com>
* include/tr1/array: Don't use layout_type.
2004-10-16 Sashan Govender <sashang@gmail.com>
* include/tr1/array (array::end const): Fix casting from iterator
to const_iterator.
From-SVN: r89139
2004-10-16 13:48:34 +00:00
Eric Botcazou
051a600204
* gcc.dg/bf-spl1.c: Use 'float' as the base type for FP types.
...
From-SVN: r89136
2004-10-16 11:47:46 +00:00
Giovanni Bajo
1ed3dfd55d
re PR c++/10479 (alignof and sizeof (and other expressions) in attributes does not compile inside template classes)
...
PR c++/10479
* parser.c (cp_parser_parenthesized_expression_list): Fold
non-dependent expressions in attribute lists.
PR c++/10479
* g++.dg/ext/attrib16.C: New test.
From-SVN: r89135
2004-10-16 11:04:58 +00:00
Andrew Pinski
29c431a17d
toplev.c (dump_file_name): Change type to be const.
...
2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
* toplev.c (dump_file_name): Change type to be const.
From-SVN: r89131
2004-10-15 17:57:01 -07:00
GCC Administrator
85e5c2cfa4
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89127.2
2004-10-16 00:16:22 +00:00
GCC Administrator
15c3297f17
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89126.2
2004-10-16 00:16:17 +00:00
Joseph Myers
dee3cda5ba
c-typeck.c (build_compound_expr, [...]): Don't try to use non_lvalue to stop something being a null pointer constant.
...
* c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
non_lvalue to stop something being a null pointer constant.
From-SVN: r89120
2004-10-15 22:32:03 +01:00
Mark Mitchell
d6b4201fab
re PR c++/17042 (Duplicated symbol in assembly output)
...
PR c++/17042
* decl.c (declare_global_var): Use the return value from pushdecl.
PR c++/14667
* parser.c (cp_parser_simple_declaration): Do not diagnose invalid
type names if we have already found a valid type.
(cp_parser_member_declaration): Likewise.
PR c++/17852
* parser.c (cp_parser_member_specification_opt): Handle
CPP_PRAGMA.
PR c++/17042
* g++.dg/init/dso_handle1.C: New test.
PR c++/17852
* g++.dg/parse/pragma1.C: New test.
PR c++/14667
* g++.dg/parse/typedef6.C: New test.
From-SVN: r89119
2004-10-15 21:18:07 +00:00
Mark Mitchell
de3fe73c4f
re PR c++/17042 (Duplicated symbol in assembly output)
...
PR c++/17042
* decl.c (declare_global_var): Use the return value from pushdecl.
PR c++/14667
* parser.c (cp_parser_simple_declaration): Do not diagnose invalid
type names if we have already found a valid type.
(cp_parser_member_declaration): Likewise.
PR c++/17852
* parser.c (cp_parser_member_specification_opt): Handle
CPP_PRAGMA.
PR c++/17042
* g++.dg/init/dso_handle1.C: New test.
PR c++/17852
* g++.dg/parse/pragma1.C: New test.
PR c++/14667
* g++.dg/parse/typedef6.C: New test.
From-SVN: r89118
2004-10-15 21:11:50 +00:00
Aldy Hernandez
7832e66155
* gcc.c-torture/execute/ieee/ieee.exp: Disable on powerpc-*-*spe.
...
From-SVN: r89113
2004-10-15 19:25:59 +00:00
Aldy Hernandez
b2df7d08b1
rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only available for TARGET_FPRS.
...
* config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
available for TARGET_FPRS.
(FUNCTION_VALUE_REGNO_P): Same.
From-SVN: r89112
2004-10-15 18:50:55 +00:00
Geoffrey Keating
7088c6e474
invoke.texi (RS/6000 and PowerPC Options): Document -maltivec in same style as other ISA options.
...
* doc/invoke.texi (RS/6000 and PowerPC Options): Document
-maltivec in same style as other ISA options.
From-SVN: r89111
2004-10-15 18:46:52 +00:00
Ranjit Mathew
a1402da35c
parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and rename parameter 'msg' to 'msgid' in function...
...
* parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and
rename parameter 'msg' to 'msgid' in function declaration.
(issue_warning_error_from_context): Likewise.
(yyerror): Rename parameter 'msg' to 'msgid'.
(all over): Use new quoting style for diagnostics.
* check-init.c: Use %<, %> and %q for quoting in diagnostics,
if possible, else convert `foo' to 'foo'.
* class.c: Likewise.
* decl.c: Likewise.
* expr.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* parse.h: Likewise.
From-SVN: r89110
2004-10-15 18:43:10 +00:00
Steve Ellcey
e68a07e8d5
struct-layout-1_generate.c (switchfiles): Use -fno-common when on HPPA HP-UX platforms.
...
* gcc.dg/compat/struct-layout-1_generate.c (switchfiles): Use
-fno-common when on HPPA HP-UX platforms.
From-SVN: r89107
2004-10-15 17:22:41 +00:00
Jon Grimm
eff41b9f95
host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__ definition.
...
2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
* config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
definition.
From-SVN: r89106
2004-10-15 13:22:02 -04:00
Jakub Jelinek
1ebfb3cf38
struct-layout-1.h: Don't include complex.h nor stdint.h.
...
other/16820
* gcc.dg/compat/struct-layout-1.h: Don't include complex.h nor
stdint.h.
* gcc.dg/compat/struct-layout-1_x1.h (TX): Cast to long instead of
uintptr_t.
From-SVN: r89105
2004-10-15 17:02:58 +00:00
Andrew Haley
b08fd659ae
Makefile.am (nat_files, [...]): New.
...
2004-10-15 Andrew Haley <aph@redhat.com>
* Makefile.am (nat_files, xlib_nat_files): New.
* Makefile.in: Regenerate.
From-SVN: r89104
2004-10-15 17:01:19 +00:00
Kazu Hirata
10a351590f
boehm.c, [...]: Update copyright.
...
* boehm.c, builtins.c, java-except.h, jcf-io.c, jcf-path.c,
jcf.h, lang-specs.h, lex.c, lex.h, resource.c, win32-host.c:
Update copyright.
From-SVN: r89100
2004-10-15 14:55:00 +00:00
Kazu Hirata
80c48076bf
* dump.c, g++spec.c, repo.c: Update copyright.
...
From-SVN: r89098
2004-10-15 14:49:30 +00:00
Kazu Hirata
f30278e8b4
bitmap.c, [...]: Update copyright.
...
* bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
predict.def, predict.h, protoize.c, reload.h, resource.h,
rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
unwind-sjlj.c, value-prof.h: Update copyright.
From-SVN: r89097
2004-10-15 14:47:12 +00:00
Kazu Hirata
06b6044526
* decl.c: Fix a comment typo.
...
From-SVN: r89095
2004-10-15 14:39:24 +00:00
Kazu Hirata
ed8b755833
* pointer-set.c, tree-vectorizer.c: Fix comment typos.
...
From-SVN: r89094
2004-10-15 14:36:32 +00:00
Andrew Pinski
db3a95196c
[multiple changes]
...
2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/16301
* name-lookup.c (parse_using_directive): If we have a
error_mark_node, do not set the decl namespace associations
on it.
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/16301
* g++.dg/lookup/strong-using-4.C: New test.
From-SVN: r89093
2004-10-15 07:30:21 -07:00
Andrew Pinski
f0602b16b7
re PR middle-end/16567 (Nested function and variable-sized structure ICE)
...
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/16567
* gcc.c-torture/compile/nested-1.c: New test.
From-SVN: r89092
2004-10-15 06:49:02 -07:00
Paolo Carlini
0d6b41f2dd
bitmap_allocator.h: Qualify ::operator delete.
...
2004-10-15 Paolo Carlini <pcarlini@suse.de>
* include/ext/bitmap_allocator.h: Qualify ::operator delete.
* src/bitmap_allocator.cc: Likewise.
* src/mt_allocator.cc: Use ::operator delete, not delete,
consistently with ::operator new.
* include/ext/bitmap_allocator.h (deallocate): Check for null
pointer.
* testsuite/ext/bitmap_allocator/check_deallocate_null.cc: New.
* testsuite/testsuite_allocator.h (check_deallocate_null): Add test.
From-SVN: r89089
2004-10-15 10:54:57 +00:00
Dorit Naishlos
31246b8f0d
vect-44.c: xfail on i?86-*-*...
...
* testsuite/gcc.dg/vect/vect-44.c: xfail on i?86-*-*, x86_64-*-*,
and mipsisa64*-*-* (until support for misaligned loads is added).
* testsuite/gcc.dg/vect/vect-50.c: Likewise.
* testsuite/gcc.dg/vect/vect-52.c: Likewise.
* testsuite/gcc.dg/vect/vect-54.c: Likewise.
* testsuite/gcc.dg/vect/vect-58.c: Likewise.
* testsuite/gcc.dg/vect/vect-60.c: Likewise.
* testsuite/gcc.dg/vect/vect-80.c: Likewise.
From-SVN: r89088
2004-10-15 09:45:45 +00:00
Paolo Bonzini
ad643a75f7
re PR other/17991 (Two-process fixincludes broken: pz_mn_name_pat undefined)
...
2004-08-14 Paolo Bonzini <bonzini@gnu.org>
PR other/17991
* Makefile.in (ALLOBJ, TESTOBJ, FIXOBJ): Add fixopts.o.
Update copyright year.
* fixfixes.c (main): Call initialize_opts from fixopts.c.
* fixincl.c (initialize): Call initialize_opts from fixopts.c,
do not include code for parsing options (environment vars).
(fix_with_system): Use a search path for applyfix, so that you
can run the test suite with two-process fixincludes.
* fixopts.c: New file.
* configure.ac: Add --enable-twoprocess. Export ac_exeext
to config.h. Default to --enable-twoprocess for MinGW32.
* config.h.in: Regenerate.
* configure: Regenerate.
From-SVN: r89087
2004-10-15 07:58:38 +00:00
Diego Novillo
e26ce7eddf
tree-optimize.c (execute_one_pass): Stop timer right after executing the pass.
...
* tree-optimize.c (execute_one_pass): Stop timer right after
executing the pass.
From-SVN: r89086
2004-10-15 01:00:37 -04:00
Mark Mitchell
745d26d9ac
re PR c++/17976 (Calls the dtor twice)
...
PR c++/17976
* decl.c (cp_finish_decl): Do not call expand_static_init more
than once for a single variable.
PR c++/17976
* g++.dg/init/dtor3.C: New test.
From-SVN: r89081
2004-10-15 04:18:01 +00:00
Andrew Pinski
53e782e542
revert: re PR middle-end/17967 (Expand is considered slower? (remove_useless_stmts is considered part of expand))
...
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
Revert:
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/17967
Revert:
* tree-cfg.c (remove_usless_stmts_cond): Fold statement.
(remove_useless_stmts_1): Fold trees we know how to fold.
From-SVN: r89080
2004-10-14 21:15:43 -07:00
David Edelsohn
d2ab3e372b
configure.ac: Add .machine power4 directive when testing for mfcr field.
...
* configure.ac: Add .machine power4 directive when testing for
mfcr field.
* configure: Regenerate.
From-SVN: r89076
2004-10-14 22:26:15 -04:00
Geoffrey Keating
9d948a40e2
* config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
...
From-SVN: r89075
2004-10-15 01:28:31 +00:00
Andrew Pinski
eaddbc3379
tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor always.
...
2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
* tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
always.
From-SVN: r89074
2004-10-14 17:35:21 -07:00
GCC Administrator
28233fb67d
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89072.2
2004-10-15 00:16:48 +00:00
GCC Administrator
964630c97e
Daily bump.
...
[[Split portion of a mixed commit.]]
From-SVN: r89071.2
2004-10-15 00:16:44 +00:00
Ben Elliston
38db57bfb3
* gcc.dg/ppc-stackalign-1.c: Set dg-options to {}.
...
From-SVN: r89068
2004-10-15 10:04:54 +10:00
Daniel Jacobowitz
a6645c18e9
rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS for 'f' if !TARGET_FPRS.
...
* config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
for 'f' if !TARGET_FPRS.
From-SVN: r89067
2004-10-14 23:47:14 +00:00
Richard Henderson
0ba6c56d92
re PR debug/14492 (loc_descriptor_from_tree, in dwarf2out.c:9031)
...
PR debug/14492
* dwarf2out.c (loc_descriptor_from_tree): Handle FIX_*_EXPR.
From-SVN: r89066
2004-10-14 16:30:18 -07:00
Richard Henderson
559f2da552
re PR c/17023 (ICE with nested functions in parameter declaration)
...
PR c/17023
* c-decl.c (store_parm_decls_oldstyle): Care for parameter type
as error_mark_node.
* c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
instaed of current_function_decl non-null.
From-SVN: r89063
2004-10-14 16:20:58 -07:00
Matt Austern
0c58f841a5
Speed up walk_tree by introducing a special-purpose hash table.
...
* pointer-set.c: New file, special-purpose hash table.
* pointer-set.h: New file.
* tree.h (struct pointer_set_t): Declare as opaque type.
(tree_walk): Last argument is pointer_set_t* now.
* tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
(walk_type_fields):
(walk_tree): Convert from htab_t to pointer_set_t for keeping
track of which nodes have already been visited.
(walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
* cgraphunit.c (cgraph_create_edges): Likewise.
(cgraph_characterize_statics_local): Likewise.
* tree-dfa.c (collect_dfa_stats): Likewise.
* langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
pointer_set_t* now.
* langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
* langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
of walk_subtrees is pointer_set_t* now.
* Makefile.in (OBJS-common): add pointer-set.o
(tree-inline.o): Depends on pointer-set.h
(tree-dfa.o): Likewise
(cgraphunit.o): Likewise
* cp/Make-lang.in (pt.o): depends on pointer-set.h
* cp/cp-tree.h (cp_walk_subtrees): Last argument is pointer_set_t* now.
* cp/pt.c (struct pair_fn_data): Use pointer_set_t, not htab_t
(for_each_template_parm): Convert from htab_t to pointer_set_t.
* cp/tree.c (cp_walk_subtrees): Last argument is pointer_set_t* now.
* java/lang.c (java_tree_inlining_walk_subtrees): Last arg is struct
pointer_set_t* now.
From-SVN: r89062
2004-10-14 23:15:29 +00:00
Benjamin Kosnik
5d1b2a1e42
mt_allocator.h (__mt_alloc::deallocate): Check for null pointer.
...
2004-10-14 Benjamin Kosnik <bkoz@redhat.com>
* include/ext/mt_allocator.h (__mt_alloc::deallocate): Check for
null pointer.
* include/ext/pool_allocator.h (debug_allocator::deallocate):
Check pointer value.
* include/ext/debug_allocator.h (debug_allocator::deallocate):
Throw exceptions, don't abort.
* include/ext/array_allocator.h
(array_allocator_base::deallocate): Remove unused parameters.
* testsuite/testsuite_allocator.h (check_deallocate_null): New.
* testsuite/ext/mt_allocator/check_deallocate_null.cc: New.
* testsuite/ext/mt_allocator/check_deallocate_null_thread.cc: New.
* testsuite/ext/array_allocator/check_deallocate_null.cc: New.
* testsuite/ext/debug_allocator/check_deallocate_null.cc: New.
* testsuite/ext/malloc_allocator/check_deallocate_null.cc: New.
* testsuite/ext/new_allocator/check_deallocate_null.cc: New.
* testsuite/ext/pool_allocator/check_deallocate_null.cc: New.
* testsuite/testsuite_allocator.h (check_new): Add instance argument.
* testsuite/ext/array_allocator/check_new.cc: New.
From-SVN: r89060
2004-10-14 23:03:26 +00:00
Geoffrey Keating
c4e18b1c3e
darwin.h (ASM_SPEC): Delete.
...
2004-10-14 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/darwin.h (ASM_SPEC): Delete.
(TARGET_ASM_FILE_START): Define.
* config/darwin.h (ASM_SPEC): Define.
* config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
-mlong-double-128, it's the default. Update comment about reason
for force_cpusubtype_ALL.
* config/rs6000/darwin-vecsave.asm: Supply .machine.
* config/rs6000/darwin-world.asm: Likewise.
* config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
(symbolic_operand): Delete #if 0ed code.
Index: testsuite/ChangeLog
2004-10-14 Geoffrey Keating <geoffk@apple.com>
* gcc.dg/darwin-misaligned.c: Don't supply -force_cpusubtype_ALL.
* gcc.dg/macho-lo-sum.c: Likewise.
From-SVN: r89059
2004-10-14 22:30:47 +00:00