platform/upstream/gcc.git
19 years agos390.c (legitimize_pic_address): Use s390_load_address to load addresses.
Ulrich Weigand [Thu, 25 Nov 2004 17:28:10 +0000 (17:28 +0000)]
s390.c (legitimize_pic_address): Use s390_load_address to load addresses.

* config/s390/s390.c (legitimize_pic_address): Use s390_load_address
to load addresses.

From-SVN: r91302

19 years agore PR c++/18001 (Badly formatted error message (quotation problem))
Mark Mitchell [Thu, 25 Nov 2004 17:11:37 +0000 (17:11 +0000)]
re PR c++/18001 (Badly formatted error message (quotation problem))

PR c++/18001
* c-common.h (lvalue_use): Move here from c-ctypeck.c.
(lvalue_or_else): Declare.
* c-common.c (lvalue_or_else): Move here from c-typeck.c.
* c-typeck.c (lvalue_use): Remove.
(lvalue_or_else): Remove.

PR c++/18556
* toplev.c (check_global_declarations): Set DECL_IGNORED_P on
unemitted variables with static storage duration.

PR c++/18445
* class.c (instantiate_type): Treat NON_DEPENDENT_EXPRs with
unknown_type as non matching.  Tidy up.
* pt.c (build_non_dependent_expr): Do not build a
NON_DEPENDENT_EXPR for a VAR_DECL.

PR c++/18001
* cp-tree.h (lvalue_or_else): Remove declaration.
* tree.c (lvalue_or_else): Remove.
* typeck.c (build_unary_op): Adjust call to lvalue_or_else.
(build_modify_expr): Likewise.

PR c++/18625
* decl.c (duplicate_decls): Return error_mark_node on error, as
specified.

PR c++/18466
* decl.c (grokvardecl): Keep track of whether or not a there was
explicit qualification.
* name-lookup.c (set_decl_namespace): Complain about explicit
qualification of a name within its own namespace.

PR c++/18545
* typeck.c (check_return_expr): Robustify.

PR c++/18445
* g++.dg/template/crash28.C: Likewise.

PR c++/18001
* g++.dg/expr/unary2.C: Adjust lvalue messages.
* g++.dg/ext/lvaddr.C: Likewise.
* g++.dg/opt/pr7503-3.C: Likewise.

PR c++/18466
* g++.dg/parse/qualified3.C: New test.
* g++.old-deja/g++.other/friend7.C: Remove bogus qualification.

PR c++/18545
* g++.dg/expr/return1.C: New test.

From-SVN: r91301

19 years agoFriend class name lookup 3/n, PR c++/3332
Kriang Lerdsuwanakij [Thu, 25 Nov 2004 17:05:38 +0000 (17:05 +0000)]
Friend class name lookup 3/n, PR c++/3332

Friend class name lookup 3/n, PR c++/3332
* name-lookup.c (push_inner_scope, pop_inner_scope): New functions.
(lookup_type_scope): Don't deal with name from user declaration
specially.
* name-lookup.h (push_inner_scope, pop_inner_scope): Add declarations.
* parser.c (cp_parser_class_specifier): Use push_inner_scope and
pop_inner_scope.

* g++.dg/lookup/friend3.C: New test.
* g++.dg/lookup/friend4.C: Likewise.
* g++.dg/lookup/friend5.C: Likewise.

From-SVN: r91300

19 years agoFriend class name lookup 2/n, PR c++/14513, c++/15410
Kriang Lerdsuwanakij [Thu, 25 Nov 2004 16:55:34 +0000 (16:55 +0000)]
Friend class name lookup 2/n, PR c++/14513, c++/15410

Friend class name lookup 2/n, PR c++/14513, c++/15410
* name-lookup.c (lookup_name_real): Simplify.
(lookup_type_scope): Add SCOPE parameter.  Handle friend class
lookup.
* name-lookup.h (tag_scope): New enum type.
(lookup_type_scope): Adjust declaration.
* decl.c (lookup_and_check_tag, xref_tag, xref_tag_from_type):
Change bool parameter GLOBALIZED to TAG_SCOPE parameter SCOPE.
(start_enum): Likewise.  Add assertion test that NAME is
IDENTIFIER_NODE.  Use anonymous name for dummy ENUMERAL_TYPE in
case of error.
* cp-tree.h (xref_tag, xref_tag_from_type): Adjust declarations.
* parser.c (cp_parser_elaborated_type_specifier,
cp_parser_class_head): Adjust call to xref_tag.
* pt.c (lookup_template_class, instantiate_class_template):
Likewise.
* rtti.c (init_rtti_processing, build_dynamic_cast_1,
tinfo_base_init, emit_support_tinfos): Likewise.

* g++.dg/lookup/friend2.C: New test.
* g++.dg/template/friend31.C: Likewise.

From-SVN: r91299

19 years agoResync.
Arnaud Charlet [Thu, 25 Nov 2004 16:17:13 +0000 (17:17 +0100)]
Resync.

From-SVN: r91298

19 years agog-socthi-mingw.ads, [...]: Remove C_Read and C_Write from internal implementation...
Arnaud Charlet [Thu, 25 Nov 2004 16:14:01 +0000 (17:14 +0100)]
g-socthi-mingw.ads, [...]: Remove C_Read and C_Write from internal implementation unit GNAT.Sockets.Thin...

* g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
internal implementation unit GNAT.Sockets.Thin,
as their usage for sockets is non-portable (using the read and write
functions from the system runtime library is fine on UNIX but won't
work under Windows).

* mingw32.h: Update copyright notice.

From-SVN: r91297

19 years agoada-tree.h: Minor reformatting of previous change to avoid lines longer than 79 chara...
Arnaud Charlet [Thu, 25 Nov 2004 16:08:51 +0000 (16:08 +0000)]
ada-tree.h: Minor reformatting of previous change to avoid lines longer than 79 characters.

* ada-tree.h: Minor reformatting of previous change to avoid lines
longer than 79 characters.

From-SVN: r91296

19 years agoChangeLog: Remove duplicate lines.
Benjamin Kosnik [Thu, 25 Nov 2004 16:07:47 +0000 (16:07 +0000)]
ChangeLog: Remove duplicate lines.

2004-11-24  Benjamin Kosnik  <bkoz@redhat.com>

* ChangeLog: Remove duplicate lines.

From-SVN: r91295

19 years agolibtool.m4 (AC_DEPLIBS_CHECK_METHOD): Revert previous change.
Kelley Cook [Thu, 25 Nov 2004 13:43:43 +0000 (13:43 +0000)]
libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Revert previous change.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Revert previous change.
* boehm-gc/configure: Regenerate.
* libffi/configure: Regenerate.
* libgfortran/configure: Regenerate.
* libjava/configure: Regenerate.
* libobjc/configure: Regenerate.
* libstdc++-v3/configure: Regenerate.
* zlib/configure: Regenerate.

From-SVN: r91293

19 years agoMakefile.am: Revert previous.
Kelley Cook [Thu, 25 Nov 2004 13:35:35 +0000 (13:35 +0000)]
Makefile.am: Revert previous.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.am: Revert previous.
* acinclude.m4: Restore.
* aclocal.m4, configure, Makefile.in: Regenerate.
* testsuite/Makefile.in: Likewise.

From-SVN: r91292

19 years agotree-cfg.c (tree_verify_flow_info): Do not terminate error() message with \n.
Gerald Pfeifer [Thu, 25 Nov 2004 13:31:47 +0000 (13:31 +0000)]
tree-cfg.c (tree_verify_flow_info): Do not terminate error() message with \n.

* tree-cfg.c (tree_verify_flow_info): Do not terminate error()
message with \n.

From-SVN: r91291

19 years agotb-gcc.c: GCC infrastructure based implementation of __gnat_backtrace.
Olivier Hainque [Thu, 25 Nov 2004 13:11:09 +0000 (13:11 +0000)]
tb-gcc.c: GCC infrastructure based implementation of __gnat_backtrace.

* tb-gcc.c: GCC infrastructure based implementation of
__gnat_backtrace.

From-SVN: r91290

19 years agoComplete previous check-in: add Style_Check_Xtra_Parens.
Arnaud Charlet [Thu, 25 Nov 2004 13:07:56 +0000 (14:07 +0100)]
Complete previous check-in: add Style_Check_Xtra_Parens.

From-SVN: r91289

19 years agoMakefile.am: Added most of javax.print again.
Michael Koch [Thu, 25 Nov 2004 12:54:38 +0000 (12:54 +0000)]
Makefile.am: Added most of javax.print again.

2004-11-25  Michael Koch  <konqueror@gmx.de>

* Makefile.am: Added most of javax.print again.
* Makefile.in: Regenerated.

From-SVN: r91288

19 years agoaltivec.md (VIshort): New mode macro.
Nathan Sidwell [Thu, 25 Nov 2004 12:43:39 +0000 (12:43 +0000)]
altivec.md (VIshort): New mode macro.

* config/rs6000/altivec.md (VIshort): New mode macro.
(altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
with ...
(altivec_vaddu<VI_char>s): ... this.
(altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
with ...
(altivec_vadds<VI_char>s): ... this.
(altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
with ...
(altivec_vsubu<VI_char>s): ... this.
(altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
with ...
(altivec_vsubs<VI_char>s): ... this.
(altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
with ...
(altivec_vavgu<VI_char>): ... this.
(altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
with ...
(altivec_vavgs<VI_char>): ... this.
(altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
(altivec_vmsumu<VI_char>m): ... this.
(altivec_vmsummbm, altivec_vmsummhm): Replace
with ...
(altivec_vmsumm<VI_char>m): ... this.
(altivec_vandc): Remove.
(*andc<mode>3): Renamed to ...
(andc<mode>3): ... here. Swap operand 1 and 2 numbering.
(altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
with ...
(altivec_vrl<VI_char>): ... this.
(altivec_vslb, altivec_vslh, altivec_vslw): Replace
with ...
(altivec_vsl<VI_char>): ... this.
(altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
with ...
(altivec_vsr<VI_char>): ... this.
(altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
with ...
(altivec_vsra<VI_char>): ... this.
(altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
(altivec_vsum4s<VI_char>s): ... this.
(altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
with ...
(altivec_vperm_<mode>): ... this.
(altivec_vsel_4sf): Rename to ...
(altivec_vsel_v4sf): ... here.
(altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
with ...
(altivec_vsel_<mode>): ... this.
(altivec_vsldoi_4si, altivec_vsldoi_8hi,
altivec_vsldoi_16qi): Rename to ...
(altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
altivec_vsldoi_v16qi): ... here.
(altivec_vsldoi_4sf): Rename to ...
(altivec_vsldoi_v4sf): ... here.
(altivec_predicate_v4si, altivec_predicate_v8hi,
altivec_predicate_v16qi): Replace with ...
(altivec_predicate_<mode>): ... this.
(altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
with ...
(altivec_lve<VI_char>x): ... this.
(altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
with ...
(altivec_stve<VI_char>x): ... this.
(absv16qi2, absv8hi2, absv4si2): Replace
with ...
(abs<mode>2): ... this.
(altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
with ...
(altivec_abss_<mode>): ... this.
(vec_realign_load_v16qi, vec_realign_load_v8hi,
vec_realign_load_v4si): Replace with ...
(vec_realign_load_<mode>): ... this.
* config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
insn names.
(rs6000_expand_ternop_builtin): Likewise.

From-SVN: r91287

19 years agoMakefile.am: Added most of javax.print again.
Michael Koch [Thu, 25 Nov 2004 12:29:22 +0000 (12:29 +0000)]
Makefile.am: Added most of javax.print again.

2004-11-25  Michael Koch  <konqueror@gmx.de>

* Makefile.am: Added most of javax.print again.
* Makefile.in: Regenerated.

From-SVN: r91286

19 years agoAdd missing file from gcj-abi-2-dev-branch merge
Andrew Haley [Thu, 25 Nov 2004 11:54:53 +0000 (11:54 +0000)]
Add missing file from gcj-abi-2-dev-branch merge

From-SVN: r91285

19 years agoAdd missing file from gcj-abi-2-dev-branch merge.
Andrew Haley [Thu, 25 Nov 2004 11:50:45 +0000 (11:50 +0000)]
Add missing file from gcj-abi-2-dev-branch merge.

From-SVN: r91284

19 years agogcc.c (process_command): Don't supply -v to linker.
Andrew Haley [Thu, 25 Nov 2004 11:44:46 +0000 (11:44 +0000)]
gcc.c (process_command): Don't supply -v to linker.

2004-11-25  Andrew Haley  <aph@redhat.com>

        * gcc.c (process_command): Don't supply -v to linker.

From-SVN: r91283

19 years agodarwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs instead of `%s' in diagnostic.
Joseph Myers [Thu, 25 Nov 2004 11:13:38 +0000 (11:13 +0000)]
darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs instead of `%s' in diagnostic.

* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
instead of `%s' in diagnostic.

cp:
* g++spec.c, lex.c: Avoid ` as left quote in diagnostics.

fortran:
* f95-lang.c, gfortranspec.c, trans-decl.c: Avoid ` as left quote
in diagnostics.

java:
* gjavah.c, jcf-dump.c, jv-scan.c, jvspec.c: Avoid ` as left quote
in diagnostics.

From-SVN: r91282

19 years agobasic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
Nathan Sidwell [Thu, 25 Nov 2004 10:31:38 +0000 (10:31 +0000)]
basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.

* basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
(FREE_REG_SET): Adjust.
* bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
* bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
(BITMAP_ALLOC): ... here.
(BITMAP_OBSTACK_FREE): Rename to ...
(BITMAP_FREE): Don't check for NULL bitmap here.
* tree-ssa-pre.c (value_insert_into_set_bitmap,
bitmap_set_new): Use new names.

From-SVN: r91281

19 years agobt-load.c (migrate_btr_defs): Remove unneeded NULL check.
Nathan Sidwell [Thu, 25 Nov 2004 10:28:01 +0000 (10:28 +0000)]
bt-load.c (migrate_btr_defs): Remove unneeded NULL check.

* bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
* df.c (df_free): Likewise.
* ra-build.c (ra_build_free, ra_build_free_all): Likewise.
* tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.

From-SVN: r91280

19 years agobasic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
Nathan Sidwell [Thu, 25 Nov 2004 09:30:04 +0000 (09:30 +0000)]
basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...

* basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
(ALLOC_REG_SET): ... here.
(FREE_REG_SET): Adjust.
(XMALLOC_REG_SET, XFREE_REG_SET): Remove.
* bb-reorder.c (fix_crossing_conditional_branches): Adjust.
* cfglayout.c (cfg_layout_duplicate_bb): Adjust.
* cfgrtl.c (rtl_split_block, rtl_split_edge,
safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
* flow.c (update_life_info, calculate_global_regs_live,
allocate_bb_life_data, init_propagate_block_info): Adjust.
* global.c (build_insn_chain): Adjust.
* ifcvt.c (dead_or_predicable): Adjust.
* loop-iv.c (simplify_using_initial_values): Adjust.
* recog.c (peephole2_optimize): Adjust.
* sched-deps.c (init_deps_global): Adjust.

From-SVN: r91279

19 years agoverify-glue.c (vfy_init_name, [...]): Use ANSI declaration form.
Richard Henderson [Thu, 25 Nov 2004 08:00:33 +0000 (00:00 -0800)]
verify-glue.c (vfy_init_name, [...]): Use ANSI declaration form.

        * verify-glue.c (vfy_init_name, vfy_clinit_name, vfy_object_type,
        vfy_string_type, vfy_throwable_type): Use ANSI declaration form.

From-SVN: r91278

19 years agoverify.c (defer_merging): Don't use C++-style comment.
Tom Tromey [Thu, 25 Nov 2004 07:03:55 +0000 (07:03 +0000)]
verify.c (defer_merging): Don't use C++-style comment.

* verify.c (defer_merging): Don't use C++-style comment.
* verify.h (java_opcode): Added java_opcode_end.
* class.c (build_class_ref): Remove C++ comment and old FIXME.

From-SVN: r91277

19 years agoverify-impl.c (vfy_push_type): Removed bogus "return".
Tom Tromey [Thu, 25 Nov 2004 05:14:25 +0000 (05:14 +0000)]
verify-impl.c (vfy_push_type): Removed bogus "return".

* verify-impl.c (vfy_push_type): Removed bogus "return".
(initialize_stack): Use vfy_alloc and vfy_free.
(verify_instructions_0): Likewise.

From-SVN: r91276

19 years agoconfig.gcc (avr-*-rtems*): Fix typo.
Ralf Corsepius [Thu, 25 Nov 2004 04:49:30 +0000 (05:49 +0100)]
config.gcc (avr-*-rtems*): Fix typo.

2004-11-25  Ralf Corsepius <ralf.corsepius@rtems.org>

* config.gcc (avr-*-rtems*): Fix typo.

From-SVN: r91274

19 years agosh.c (sh_output_mi_thunk): Do not call regset_release_memory.
J"orn Rennecke [Thu, 25 Nov 2004 04:29:31 +0000 (04:29 +0000)]
sh.c (sh_output_mi_thunk): Do not call regset_release_memory.

2004-11-25  J"orn Rennecke <joern.rennecke@st.com>

* sh.c (sh_output_mi_thunk): Do not call regset_release_memory.

From-SVN: r91273

19 years ago* lib/target-libpath.exp (orig_ld_library_path_saved): Add missing set.
John David Anglin [Thu, 25 Nov 2004 04:27:13 +0000 (04:27 +0000)]
* lib/target-libpath.exp (orig_ld_library_path_saved): Add missing set.

From-SVN: r91272

19 years agotree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce the number of queries...
Jeff Law [Thu, 25 Nov 2004 03:54:07 +0000 (20:54 -0700)]
tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce the number of queries to random elements in the ai->written_vars bitmap.

        * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
        the number of queries to random elements in the ai->written_vars
        bitmap.

From-SVN: r91271

19 years ago* Merged gcj-abi-2-dev-branch to trunk.
Tom Tromey [Thu, 25 Nov 2004 03:47:08 +0000 (03:47 +0000)]
* Merged gcj-abi-2-dev-branch to trunk.

(Actual changes too large to list in the commit message;
see ChangeLog.)

From-SVN: r91270

19 years agoi386.c (override_options): Disable x87 fancy math intrinsics if -mfpmath= doesn't...
Roger Sayle [Thu, 25 Nov 2004 02:05:21 +0000 (02:05 +0000)]
i386.c (override_options): Disable x87 fancy math intrinsics if -mfpmath= doesn't include 387 (default on...

* config/i386/i386.c (override_options): Disable x87 fancy math
intrinsics if -mfpmath= doesn't include 387 (default on x86_64).

From-SVN: r91267

19 years agoconfigure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a system header conflict...
Roger Sayle [Thu, 25 Nov 2004 01:41:20 +0000 (01:41 +0000)]
configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a system header conflict on AIX 5.2.

* configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
system header conflict on AIX 5.2.
* configure: Regenerate.

From-SVN: r91266

19 years ago* ChangeLog: Remove duplication.
John David Anglin [Thu, 25 Nov 2004 00:40:19 +0000 (00:40 +0000)]
* ChangeLog: Remove duplication.

From-SVN: r91265

19 years agotree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge with e->dest_idx.
Kazu Hirata [Thu, 25 Nov 2004 00:34:35 +0000 (00:34 +0000)]
tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge with e->dest_idx.

* tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
with e->dest_idx.

From-SVN: r91264

19 years agoDaily bump.
GCC Administrator [Thu, 25 Nov 2004 00:16:28 +0000 (00:16 +0000)]
Daily bump.

[[Split portion of a mixed commit.]]

From-SVN: r91262.2

19 years agoDaily bump.
GCC Administrator [Thu, 25 Nov 2004 00:16:20 +0000 (00:16 +0000)]
Daily bump.

[[Split portion of a mixed commit.]]

From-SVN: r91261.2

19 years agotree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx instead of calling phi_ar...
Kazu Hirata [Thu, 25 Nov 2004 00:14:21 +0000 (00:14 +0000)]
tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx instead of calling phi_arg_from_edge.

* tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
instead of calling phi_arg_from_edge.

From-SVN: r91259

19 years agoi386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
Ben Elliston [Wed, 24 Nov 2004 23:37:19 +0000 (23:37 +0000)]
i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.

* config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
* config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
* config/i386/i386-protos.h (i386_dwarf_output_addr_const):
Likewise.

From-SVN: r91255

19 years agore PR c++/17473 (typedef redefinition in struct is accepted)
Mark Mitchell [Wed, 24 Nov 2004 23:18:56 +0000 (23:18 +0000)]
re PR c++/17473 (typedef redefinition in struct is accepted)

PR c++/17473
* name-lookup.c (supplement_binding): Do not allow typedefs to be
redefined in class scope.

PR c++/18285
* parser.c (cp_parser_set_decl_type_spec): Do not try to allow
redefinitions of builtin types other that "bool" or "wchar_t".

PR c++/17473
* g++.dg/tc1/dr56.C: Remove.
* g++.dg/template/typedef1.C: Add dg-error markers.
* g++.old-deja/g++.other/typedef7.C: Likewise.

PR c++/18285
* g++.dg/parse/typedef7.C: New test.

From-SVN: r91254

19 years agoMakefile.am: Define ACLOCAL_AMFLAGS.
Kelley Cook [Wed, 24 Nov 2004 22:13:19 +0000 (22:13 +0000)]
Makefile.am: Define ACLOCAL_AMFLAGS.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.am: Define ACLOCAL_AMFLAGS.
* acinclude.m4: Remove.
* aclocal.m4, configure, Makefile.in: Regenerate.
* testsuite/Makefile.in: Likewise.

From-SVN: r91209

19 years agoUndo mistaken commit
R. Kelley Cook [Wed, 24 Nov 2004 22:07:04 +0000 (22:07 +0000)]
Undo mistaken commit

From-SVN: r91201

19 years agolibtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case from CVS libtool to alway...
Kelley Cook [Wed, 24 Nov 2004 22:04:38 +0000 (22:04 +0000)]
libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case from CVS libtool to always pass_all.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Import linux-gnu case
from CVS libtool to always pass_all.
* boehm-gc/configure: Regenerate.
* libffi/configure: Regenerate.
* libgfortran/configure: Regenerate.
* libjava/configure: Regenerate.
* libobjc/configure: Regenerate.
* libstdc++-v3/configure: Regenerate.
* zlib/configure: Regenerate.

From-SVN: r91200

19 years agoaclocal.m4: Regenerate.
Kelley Cook [Wed, 24 Nov 2004 21:53:28 +0000 (21:53 +0000)]
aclocal.m4: Regenerate.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* aclocal.m4: Regenerate.

From-SVN: r91199

19 years agoaclocal.m4, [...]: Regenerate.
Kelley Cook [Wed, 24 Nov 2004 21:50:47 +0000 (21:50 +0000)]
aclocal.m4, [...]: Regenerate.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* aclocal.m4, config.h.in: Regenerate.

From-SVN: r91198

19 years agoMakefile.in, aclocal.m4: Regenerate with automake 1.9.3.
Kelley Cook [Wed, 24 Nov 2004 21:12:26 +0000 (21:12 +0000)]
Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.
* include/Makefile.in: Likewise.
* libmath/Makefile.in: Likewise.
* libsupc++/Makefile.in: Likewise.
* po/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.

From-SVN: r91197

19 years agoMakefile.in, aclocal.m4: Regenerate with automake 1.9.3.
Kelley Cook [Wed, 24 Nov 2004 21:04:28 +0000 (21:04 +0000)]
Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in, aclocal.m4: Regenerate with automake 1.9.3.

From-SVN: r91196

19 years agoMakefile.in: Regenrate with Automake 1.9.3.
Kelley Cook [Wed, 24 Nov 2004 21:01:02 +0000 (21:01 +0000)]
Makefile.in: Regenrate with Automake 1.9.3.

2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in: Regenrate with Automake 1.9.3.
* aclocal.m4: Likewise.
* configure: Regenerate.

From-SVN: r91195

19 years agoFix indentation on line 3063.
Richard Kenner [Wed, 24 Nov 2004 20:43:44 +0000 (15:43 -0500)]
Fix indentation on line 3063.

From-SVN: r91194

19 years ago* tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
Richard Kenner [Wed, 24 Nov 2004 20:21:29 +0000 (20:21 +0000)]
* tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.

From-SVN: r91193

19 years agotree-inline.c (copy_body_r): Explicitly copy a constant if the type will be remapped.
Richard Kenner [Wed, 24 Nov 2004 20:19:36 +0000 (20:19 +0000)]
tree-inline.c (copy_body_r): Explicitly copy a constant if the type will be remapped.

* tree-inline.c (copy_body_r): Explicitly copy a constant if the
type will be remapped.

From-SVN: r91192

19 years agore PR c++/18586 (ICE on invalid template member declaration)
Mark Mitchell [Wed, 24 Nov 2004 20:10:46 +0000 (20:10 +0000)]
re PR c++/18586 (ICE on invalid template member declaration)

PR c++/18586
* g++.dg/template/crash27.C: New test.

From-SVN: r91191

19 years agoc-opts.c (c_common_post_options): Don't clear flag_inline_functions.
Steven Bosscher [Wed, 24 Nov 2004 19:45:32 +0000 (19:45 +0000)]
c-opts.c (c_common_post_options): Don't clear flag_inline_functions.

gcc/
* c-opts.c (c_common_post_options): Don't clear
flag_inline_functions.
* dojump.c (clear_pending_stack_adjust): Remove check on
flag_inline_functions, it's always true.
* config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
that can never trigger.
* config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
flag_inline_trees, now that flag_inline_functions is never
cleared.
* config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
flag_inline_functions at optimization levels greater than
or equal to 3.  This is already done by default.

ada/
* misc.c (gnat_post_options): Don't clear
flag_inline_functions.

cp/
* decl.c (cxx_init_decl_processing): Don't clear
flag_inline_functions.

fortran/
* options.c (gfc_post_options): Don't clear flag_inline_functions.

java/
* class.c (make_class_data): Don't check flag_inline_functions.
* lang.c (flag_really_inline): Remove unused flag.
(java_handle_option): Don't set it here.  Remove special handling
of flag_inline_functions for Java.
(java_init): Don't set flag_inline_trees here.  Already done...
(java_post_options): ...here.  Don't clear flag_inline_functions.

From-SVN: r91190

19 years agotree-outof-ssa.c (eliminate_build): Use g->e->dest_idx instead to find the PHI argument.
Kazu Hirata [Wed, 24 Nov 2004 19:22:48 +0000 (19:22 +0000)]
tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx instead to find the PHI argument.

* tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
instead to find the PHI argument.  Do not take I as an
argument.
(eliminate_phi): Adjust the call to eliminate_build.  Do not
take I as an argument.
(rewrite_trees): Adjust the call to eliminate_phi.

From-SVN: r91188

19 years agooptabs.h (force_expand_binop): Declare.
Richard Sandiford [Wed, 24 Nov 2004 18:50:26 +0000 (18:50 +0000)]
optabs.h (force_expand_binop): Declare.

* optabs.h (force_expand_binop): Declare.
* optabs.c (force_expand_binop): Export.
* stmt.c (shift_return_value): Delete.
(expand_return): Don't call it.
* expr.h (shift_return_value): Declare.
* calls.c (shift_returned_value): Delete in favor of...
(shift_return_value): ...this new function.  Leave the caller to check
for non-BLKmode values passed in the msb of a register.  Take said mode
and a shift direction as argument.  Operate on the hard function value,
not a pseudo.
(expand_call): Adjust accordingly.
* function.c (expand_function_start): If a non-BLKmode return value
is padded at the last significant end of the return register, use the
return value's natural mode for the DECL_RESULT, not the mode of the
padded register.
(expand_function_end): Shift the same sort of return values left by
the appropriate amount.

From-SVN: r91187

19 years agopt.c (tsubst_function_type): Do not permit function types which return arrays or...
Mark Mitchell [Wed, 24 Nov 2004 18:45:33 +0000 (18:45 +0000)]
pt.c (tsubst_function_type): Do not permit function types which return arrays or functions.

* pt.c (tsubst_function_type): Do not permit function types which
return arrays or functions.

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

From-SVN: r91186

19 years agoMinor back end speedup.
Matt Austern [Wed, 24 Nov 2004 18:22:27 +0000 (18:22 +0000)]
Minor back end speedup.

* recog.c (recog_memoized_1): Remove.
* recog.h (recog_memoized_1): Remove declaration.
(recog_memoized): Change from macro to inline function.

From-SVN: r91185

19 years agore PR c++/18586 (ICE on invalid template member declaration)
Mark Mitchell [Wed, 24 Nov 2004 18:10:26 +0000 (18:10 +0000)]
re PR c++/18586 (ICE on invalid template member declaration)

PR c++/18586
* parser.c (cp_parser_init_declarator): Do not pop scope twice.

PR c++/18586
* g++.dg/template/crash27.C: New test.

From-SVN: r91182

19 years agohowto.html: Fix incorrect link.
Jonathan Wakely [Wed, 24 Nov 2004 18:09:05 +0000 (18:09 +0000)]
howto.html: Fix incorrect link.

2004-11-24  Jonathan Wakely  <redi@kayari.org>

* docs/html/ext/howto.html: Fix incorrect link.
* docs/html/documentation.html: Regenerate.

From-SVN: r91181

19 years agore PR c++/18530 (Bogus warnings about shadowed variables __ct, __dt)
Mark Mitchell [Wed, 24 Nov 2004 17:57:00 +0000 (17:57 +0000)]
re PR c++/18530 (Bogus warnings about shadowed variables __ct, __dt)

PR c++/18530
* cp-tree.h (CTOR_NAME): Remove.
(DTOR_NAME): Remove.
* decl.c (initialize_predefined_identifiers): Add spaces to the
end of constructor and destructor names.

PR c++/18530
* g++.dg/warn/Wshadow-3.C: New test.

From-SVN: r91179

19 years agogcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
Devang Patel [Wed, 24 Nov 2004 17:47:32 +0000 (09:47 -0800)]
gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.

        PR/18555
        * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
        * config/darwin-c.c (darwin_register_frameworks): Use sysroot.

        testsuite
        * gcc.dg/cpp/isysroot-1.c: New test.
        * gcc.dg/cpp/usr/include/stdio.h: New file.
        * gcc.dg/cpp/isysroot-2.c: New test.
        * gcc.dg/cpp/System/Library/Framework/Carbon.framework/Headers/Carbon.h:
        New file.

From-SVN: r91178

19 years ago* gcc.c (process_command): Supply -v to linker.
Devang Patel [Wed, 24 Nov 2004 17:33:51 +0000 (09:33 -0800)]
* gcc.c (process_command): Supply -v to linker.

From-SVN: r91177

19 years ago2004-11-24 Nathan Myers <ncm@cantrip.org>
Nathan Myers [Wed, 24 Nov 2004 17:01:22 +0000 (17:01 +0000)]
2004-11-24  Nathan Myers  <ncm@cantrip.org>

* include/bits/streambuf_iterator.h
(istreambuf_iterator<>::operator++(), operator++(int)): Don't
check unnecessarily the return value of _M_sbuf->sbumpc().

From-SVN: r91176

19 years agors6000.c (rs6000_return_in_memory): Allow Altivec vector modes without ALTIVEC_ABI.
David Edelsohn [Wed, 24 Nov 2004 16:42:41 +0000 (16:42 +0000)]
rs6000.c (rs6000_return_in_memory): Allow Altivec vector modes without ALTIVEC_ABI.

* config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
vector modes without ALTIVEC_ABI.  Use GCC vector instead of
synthetic vector.
(rs6000_pass_by_reference): Split conditional into pieces.  Use
GCC vector instead of synthetic vector.

Co-Authored-By: Paolo Bonzini <bonzini@gnu.org>
From-SVN: r91175

19 years agotree.c (recompute_tree_invarant_for_addr_expr): The address of a thread-local variabl...
Aldy Hernandez [Wed, 24 Nov 2004 16:37:02 +0000 (16:37 +0000)]
tree.c (recompute_tree_invarant_for_addr_expr): The address of a thread-local variable is invariant.

* tree.c (recompute_tree_invarant_for_addr_expr): The address of a
thread-local variable is invariant.

From-SVN: r91174

19 years agotree-pretty-print.c (dump_generic_node, [...]): Handle TYPE_REF_CAN_ALIAS_ALL.
Richard Kenner [Wed, 24 Nov 2004 16:10:06 +0000 (16:10 +0000)]
tree-pretty-print.c (dump_generic_node, [...]): Handle TYPE_REF_CAN_ALIAS_ALL.

* tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
Handle TYPE_REF_CAN_ALIAS_ALL.
(print_declaration): Print array dimensions like dump_generic_node.

From-SVN: r91173

19 years ago[multiple changes]
Benjamin Kosnik [Wed, 24 Nov 2004 16:04:47 +0000 (16:04 +0000)]
[multiple changes]

2004-11-24  Benjamin Kosnik  <bkoz@redhat.com>

* include/Makefile.am (tr1_headers): Add utility, functional.
* include/Makefile.in: Regenerate.

2004-11-24  Chris Jefferson  <chris@bubblescope.net>

* include/tr1/tuple(operator!=): Change operator
definition to match (draft) technical report.
(operator>): Same.
(operator<=): Same.
(operator>=): Same.
(ref): Move to include/tr1/functional.
(cref): Same.
(tuple_size<pair>): Move to include/tr1/utility.
(tuple_element<,pair>): Same.
* include/tr1/functional: New.
* include/tr1/utility: New.
* testsuite/tr1/6_container/utility/pair.cc: New.

From-SVN: r91171

19 years agofold-const.c (operand_equal_p): Remove kludge allowing ARG0 and ARG1 to be null...
Richard Kenner [Wed, 24 Nov 2004 15:57:08 +0000 (15:57 +0000)]
fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and ARG1 to be null...

* fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.

From-SVN: r91170

19 years agotree-ssa-dom.c (cprop_into_successor_phis): Replace index with indx.
Kazu Hirata [Wed, 24 Nov 2004 15:29:44 +0000 (15:29 +0000)]
tree-ssa-dom.c (cprop_into_successor_phis): Replace index with indx.

* tree-ssa-dom.c (cprop_into_successor_phis): Replace index
with indx.

From-SVN: r91169

19 years agobitmap.c (INLINE): Do not define.
Nathan Sidwell [Wed, 24 Nov 2004 15:26:17 +0000 (15:26 +0000)]
bitmap.c (INLINE): Do not define.

* bitmap.c (INLINE): Do not define.
(bitmap_elem_to_freelist, bitmap_element_free,
bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.

From-SVN: r91168

19 years agoFix a date.
Kazu Hirata [Wed, 24 Nov 2004 15:18:15 +0000 (15:18 +0000)]
Fix a date.

From-SVN: r91167

19 years agotree-ssa-dom.c (cprop_into_successor_phis): Remove code to find the index of a PHI...
Kazu Hirata [Wed, 24 Nov 2004 15:15:12 +0000 (15:15 +0000)]
tree-ssa-dom.c (cprop_into_successor_phis): Remove code to find the index of a PHI argument.

* tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
find the index of a PHI argument.  Use e->dest_idx instead.
Replace hint with index.

From-SVN: r91166

19 years agoPolicyFile.java: New file.
Michael Koch [Wed, 24 Nov 2004 15:08:13 +0000 (15:08 +0000)]
PolicyFile.java: New file.

2004-11-24  Michael Koch  <konqueror@gmx.de>

* gnu/java/security/PolicyFile.java: New file.
* Makefile.am: Added gnu/java/security/PolicyFile.java.
* Makefile.in: Regenerated.

From-SVN: r91165

19 years agotree-ssa-alias.c (merge_pointed_to_info): Fix comment regarding PT_MALLOC.
Diego Novillo [Wed, 24 Nov 2004 14:46:23 +0000 (14:46 +0000)]
tree-ssa-alias.c (merge_pointed_to_info): Fix comment regarding PT_MALLOC.

* tree-ssa-alias.c (merge_pointed_to_info): Fix comment
regarding PT_MALLOC.

From-SVN: r91164

19 years agoi386.c (optimization_options): Use SUBTARGET_OPTIMIZATION_OPTIONS.
Joseph Myers [Wed, 24 Nov 2004 14:43:26 +0000 (14:43 +0000)]
i386.c (optimization_options): Use SUBTARGET_OPTIMIZATION_OPTIONS.

* config/i386/i386.c (optimization_options): Use
SUBTARGET_OPTIMIZATION_OPTIONS.
* config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
(TARGET_SUBTARGET_DEFAULT): Don't include
MASK_OMIT_LEAF_FRAME_POINTER.

From-SVN: r91163

19 years agosol2.h (X86_FILE_START_VERSION_DIRECTIVE): Define to false.
Mark Mitchell [Wed, 24 Nov 2004 14:40:50 +0000 (14:40 +0000)]
sol2.h (X86_FILE_START_VERSION_DIRECTIVE): Define to false.

* config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
Define to false.

From-SVN: r91162

19 years agot-sol2-10 (MULTILIB_DIRNAMES, [...]): Use amd64 instead of 64.
Joseph Myers [Wed, 24 Nov 2004 14:38:11 +0000 (14:38 +0000)]
t-sol2-10 (MULTILIB_DIRNAMES, [...]): Use amd64 instead of 64.

* config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
Use amd64 instead of 64.

From-SVN: r91161

19 years agocrtstuff.c (IN_LIBGCC2): Define it.
Mark Mitchell [Wed, 24 Nov 2004 14:35:31 +0000 (14:35 +0000)]
crtstuff.c (IN_LIBGCC2): Define it.

2004-11-24  Mark Mitchell  <mark@codesourcery.com>
            Joseph Myers  <joseph@codesourcery.com>

* crtstuff.c (IN_LIBGCC2): Define it.
(EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
instead of HAVE_LD_RO_RW_SECTION_MIXING.
* defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
* dwarf2out.c (named_section_eh_frame_section): Check
EH_TABLES_CAN_BE_READ_ONLY.
* except.c (default_exception_section): Likewise.
* config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
* doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r91160

19 years agore PR preprocessor/15824 (uchar redefinition warnings in libcpp)
Roger Sayle [Wed, 24 Nov 2004 14:00:38 +0000 (14:00 +0000)]
re PR preprocessor/15824 (uchar redefinition warnings in libcpp)

PR preprocessor/15824
* configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
directly, instead of the non-existant "system.h" and "ansidecl.h".
* configure: Regenerate.

From-SVN: r91157

19 years ago2004-11-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
Volker Reichelt [Wed, 24 Nov 2004 13:39:48 +0000 (13:39 +0000)]
2004-11-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>

* config/locale/ieee_1003.1-2001/codecvt_specializations.h
(do_out, do_unshift, do_in): Remove redundant typedef.

From-SVN: r91156

19 years agotree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use find_edge to find the index...
Kazu Hirata [Wed, 24 Nov 2004 13:35:38 +0000 (13:35 +0000)]
tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use find_edge to find the index of a PHI argument.

* tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
find_edge to find the index of a PHI argument.

From-SVN: r91155

19 years agotree-ssa-pre.c (phi_translate): Use find_edge to find the index of a PHI argument.
Kazu Hirata [Wed, 24 Nov 2004 13:33:26 +0000 (13:33 +0000)]
tree-ssa-pre.c (phi_translate): Use find_edge to find the index of a PHI argument.

* tree-ssa-pre.c (phi_translate): Use find_edge to find the
index of a PHI argument.

From-SVN: r91154

19 years agoCharacter.java, [...]: Reorder "final static" to "static final".
Michael Koch [Wed, 24 Nov 2004 13:33:01 +0000 (13:33 +0000)]
Character.java, [...]: Reorder "final static" to "static final".

2004-11-24  Michael Koch  <konqueror@gmx.de>

* java/lang/Character.java, scripts/unicode-blocks.pl:
Reorder "final static" to "static final".

From-SVN: r91153

19 years agoResourceBundle.java: Reformatted.
Michael Koch [Wed, 24 Nov 2004 13:26:27 +0000 (13:26 +0000)]
ResourceBundle.java: Reformatted.

2004-11-24  Michael Koch  <konqueror@gmx.de>

* java/util/ResourceBundle.java: Reformatted.
(tryBundle): Fixed javadoc.

From-SVN: r91152

19 years ago2004-11-24 Jeroen Frijters <jeroen@frijters.net>
Jeroen Frijters [Wed, 24 Nov 2004 12:22:32 +0000 (12:22 +0000)]
2004-11-24  Jeroen Frijters  <jeroen@frijters.net>

* java/text/MessageFormat.java
(formatInternal): Made private.

From-SVN: r91151

19 years ago2004-11-24 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 24 Nov 2004 12:19:42 +0000 (12:19 +0000)]
2004-11-24  Michael Koch  <konqueror@gmx.de>

* java/nio/DirectByteBufferImpl.java
(ReadWrite.ReadWrite): New constructor.
(DirectByteBufferImpl): Likewise.
* jni.cc (_Jv_JNI_NewDirectByteBuffer):
Use DirectByteBufferImpl.ReadWrite.
* Makefile.am:
Generate java/nio/DirectByteBufferImpl$ReadWrite.h.
* Makefile.in: Rgenerated.

From-SVN: r91150

19 years agoexpr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
Steven Bosscher [Wed, 24 Nov 2004 11:41:38 +0000 (11:41 +0000)]
expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.

gcc/
* expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
and LABELED_BLOCK_EXPR.
* gimplify.c (gimplify_labeled_block_expr): Remove.
(gimplify_exit_block_expr): Remove.
(gimplify_expr): Don't call them.
* tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
and LABELED_BLOCK_EXPR.
(estimate_num_insns_1): Likewise.
(walk_tree): Likewise.
* tree-pretty-print.c (dump_generic_node): Don't handle
EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
* tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
(LABELED_BLOCK_EXPR): Likewise.
* tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
(LABELED_BLOCK_BODY): Likewise.
(EXIT_BLOCK_LABELED_BLOCK): Likewise.
(EXIT_BLOCK_RETURN): Removed.

java/
* java-gimplify.c (java_gimplify_labeled_block_expr): New function.
(java_gimplify_exit_block_expr): New function.
(java_gimplify_expr): Use them to gimplify EXIT_BLOCK_EXPR and
LABELED_BLOCK_EXPR.
* java-tree.def (LABELED_BLOCK_EXPR): Moved from tree.def.
(EXIT_BLOCK_EXPR): Likewise.
* java-tree.h (LABELED_BLOCK_LABEL): Moved from tree.h.
(LABELED_BLOCK_BODY): Likewise.
(EXIT_BLOCK_LABELED_BLOCK): Likewise.
* jcf-write.c (generate_bytecode_insns): Don't handle the unused
EXIT_BLOCK_RETURN operand.  Use EXIT_BLOCK_LABELED_BLOCK instead of
TREE_OPERAND.
* lang.c (java_tree_inlining_walk_subtrees): Handle EXIT_BLOCK_EXPR.
(java_dump_tree): Use LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY, and
EXIT_BLOCK_LABELED_BLOCK instead of TREE_OPERAND.  Don't handle the
second operand of EXIT_BLOCK_EXPR.
* parse.y (find_expr_with_wfl): Use LABELED_BLOCK_BODY instead of
TREE_OPERAND.
(build_bc_statement): Use build1 to build EXIT_BLOCK_EXPR nodes.

From-SVN: r91149

19 years agocfgrtl.c (rtl_delete_block): Fix comment.
Steven Bosscher [Wed, 24 Nov 2004 11:32:24 +0000 (11:32 +0000)]
cfgrtl.c (rtl_delete_block): Fix comment.

* cfgrtl.c (rtl_delete_block): Fix comment.
* emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
or BLOCK_END insn notes.
* jump.c (squeeze_notes): Likewise.
* haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
EH_REGION_END notes, we never have them to begin with.
* sched-deps.c (sched_analyze_insn): When updating loop notes,
verify that we have indeed only recorded loop notes.
(sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
Only record loop notes.

* cfgexpand.c (tree_expand_cfg): Fix comment.

* passes.c (rest_of_compilation): Don't do a second call to
convert_from_eh_region_ranges from here, it's already called
from cfgexpand.c.
* except.c (resolve_fixup_regions): Remove.
(remove_fixup_regions): Remove.
(convert_from_eh_region_ranges_1): Remove.
(convert_from_eh_region_ranges): Remove the case where EH is
not already lowered at the tree level.  We always lower there.

From-SVN: r91148

19 years ago2004-11-24 Jeroen Frijters <address@bogus.example.com>
Jeroen Frijters [Wed, 24 Nov 2004 11:11:46 +0000 (11:11 +0000)]
2004-11-24  Jeroen Frijters  <address@bogus.example.com>

* java/nio/DirectByteBufferImpl.java
(ReadOnly): New inner subclass.
(ReadWrite): New inner subclass.
(owner): Made final and private.
(address): Made final.
(DirectByteBufferImpl(int)): New constructor.
(DirectByteBufferImpl(Object,RawData,int,int,int)): New constructor.
(DirectByteBufferImpl(Object,RawData,int,int,int,boolean)): Removed.
(allocate): Modified to instantiate ReadWrite subclass.
(finalize): Fixed to only free the buffer, if we own it.
(put): Removed read-only check.
(slice, duplicate): Modified to instantiate appropriate subclass.
(isReadOnly): Removed.
* java/nio/MappedByteBufferImpl.java
(slice, duplicate): Modified to instantiate appropriate
DirectByteBufferImpl subclass.

From-SVN: r91147

19 years agoNIOServerSocket.java: Added email to @author tag.
Michael Koch [Wed, 24 Nov 2004 10:44:18 +0000 (10:44 +0000)]
NIOServerSocket.java: Added email to @author tag.

2004-11-24  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/NIOServerSocket.java: Added email to @author tag.
* java/nio/DirectByteBufferImpl.java:
Moved native methods to java.nio.VMDirectByteBuffer class.
* java/nio/MappedByteBufferImpl.java:
Use native methods from java.nio.VMDirectByteBuffer class.
* java/nio/VMDirectByteBuffer.java: New file,
* java/nio/natDirectByteBufferImpl.cc:
Moved all methods into java.nio.VMDirectByteBuffer class.
* java/nio/channels/spi/AbstractSelectableChannel.java
(register): Only re-use valid keys.
* Makefile.am: Added java/nio/VMDirectByteBuffer.java.
* Makefile.in: Regenerated.

From-SVN: r91146

19 years agore PR c++/8929 (G++ accepts invalid template headers in member definitions of explici...
Giovanni Bajo [Wed, 24 Nov 2004 10:40:16 +0000 (10:40 +0000)]
re PR c++/8929 (G++ accepts invalid template headers in member definitions of explicitly specialized classes)

PR c++/8929
* decl.c (start_decl): Check for invalid specialization headers.

PR c++/8929
* g++.old-deja/g++.oliva/template10.C: Remove xfail.

From-SVN: r91145

19 years agoalign.c: Do not include <stdint.h>.
Eric Botcazou [Wed, 24 Nov 2004 10:36:40 +0000 (11:36 +0100)]
align.c: Do not include <stdint.h>.

* gcc.target/sparc/align.c: Do not include <stdint.h>.
* gcc.target/sparc/pdist.c: Likewise.

From-SVN: r91144

19 years agoOops - forgot to commit the change to config.gcc when checking in this patch:
Nick Clifton [Wed, 24 Nov 2004 10:14:08 +0000 (10:14 +0000)]
Oops - forgot to commit the change to config.gcc when checking in this patch:

2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>

* config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
m32r*linux.
* config/m32r/t-linux (SHLIB_MAPFILES): Override to use
m32r/libgcc-glibc.ver.
* config/m32r/libgcc-glibc.ver: Add New file.

From-SVN: r91143

19 years agore PR c++/16882 (overloading confused by const vector arguments)
Paolo Bonzini [Wed, 24 Nov 2004 10:06:54 +0000 (10:06 +0000)]
re PR c++/16882 (overloading confused by const vector arguments)

2004-11-24  Paolo Bonzini  <bonzini@gnu.org>

PR c++/16882

* tree.c (make_vector_type): Move qualifiers to the vector type,
use the inner type's main variant and build a main variant for
the vector type if necessary.
(type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.

cp:
2004-11-24  Paolo Bonzini  <bonzini@gnu.org>

PR c++/16882

* call.c (standard_conversion): Move check for conversions between
vector pointers...
* typeck.c (ptr_reasonably_similar): ... here.

testsuite:
2004-11-24  Paolo Bonzini  <bonzini@gnu.org>

PR c++/16882

* g++.dg/conversion/simd1.C: New test.

From-SVN: r91142

19 years agoDirectByteBufferImpl.java, [...]: Reformatted.
Michael Koch [Wed, 24 Nov 2004 09:13:33 +0000 (09:13 +0000)]
DirectByteBufferImpl.java, [...]: Reformatted.

2004-11-24  Michael Koch  <konqueror@gmx.de>

* java/nio/DirectByteBufferImpl.java,
java/nio/MappedByteBufferImpl.java:
Reformatted.

From-SVN: r91141

19 years agotarget.h (late_rtl_prologue_epilogue): Remove.
Eric Botcazou [Wed, 24 Nov 2004 08:39:34 +0000 (09:39 +0100)]
target.h (late_rtl_prologue_epilogue): Remove.

* target.h (late_rtl_prologue_epilogue): Remove.
* target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
* system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
* passes.c (rest_of_handle_prologue_epilogue): Remove and move
remaining bits to...
(rest_of_handle_flow2): ...here.
(rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
* doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.

From-SVN: r91140

19 years agotestsuite_iterators.h: New.
Chris Jefferson [Wed, 24 Nov 2004 06:24:10 +0000 (06:24 +0000)]
testsuite_iterators.h: New.

2004-11-23  Chris Jefferson  <chris@bubblescope.net>

        * testsuite/testsuite_iterators.h: New.
        * testsuite/25_algorithms/search_n/iterator.cc: New.
        * testsuite/performance/25_algorithms/search_n.cc: New.

From-SVN: r91139

19 years ago* gcc/testsuite/ada/acats/run_acats: Missed in last commit.
John David Anglin [Wed, 24 Nov 2004 04:52:40 +0000 (04:52 +0000)]
* gcc/testsuite/ada/acats/run_acats: Missed in last commit.

From-SVN: r91138

19 years agotarget-libpath.exp: New file defining set_ld_library_path_env_vars and restore_ld_lib...
John David Anglin [Wed, 24 Nov 2004 04:39:41 +0000 (04:39 +0000)]
target-libpath.exp: New file defining set_ld_library_path_env_vars and restore_ld_library_path_env_vars.

* lib/target-libpath.exp: New file defining set_ld_library_path_env_vars
and restore_ld_library_path_env_vars.
* g++.dg/compat/compat.exp, lib/g++.exp, lib/gcc-dg.exp,
lib/gfortran.exp, lib/objc.exp, lib/treelang.exp: Use new procs.
* ada/acats/run_acats (LD_LIBRARY_PATH): Add previous LD_LIBRARY_PATH
to LD_LIBRARY_PATH.  Export LD_LIBRARY_PATH.

* testsuite/lib/libffi-dg.exp: Use new procs in target-libpath.exp.

* testsuite/lib/libjava.exp,
testsuite/libjava.jacks/jacks.exp: Use new procs in target-libpath.exp.

* testsuite/lib/libmudflap.exp: Use new procs in target-libpath.exp.

* testsuite/lib/libstdc++.exp: Use new procs in target-libpath.exp.

From-SVN: r91137

19 years agohwint.h (HOST_LONG_LONG_FORMAT): New macro.
Mark Mitchell [Wed, 24 Nov 2004 04:31:58 +0000 (04:31 +0000)]
hwint.h (HOST_LONG_LONG_FORMAT): New macro.

* hwint.h (HOST_LONG_LONG_FORMAT): New macro.  Use it throughout.
* config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
* doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.

From-SVN: r91136