platform/upstream/gcc.git
20 years agotrans-common.c: Fix whitespace issues, make variable names more readable.
Tobias Schlüter [Sat, 10 Jul 2004 11:21:42 +0000 (13:21 +0200)]
trans-common.c: Fix whitespace issues, make variable names more readable.

* trans-common.c: Fix whitespace issues, make variable names
more readable.
(create_common): Additionally, make loop logic more obvious.

Co-Authored-By: Paul Brook <paul@codesourcery.com>
From-SVN: r84453

20 years ago* gfortran.fortran-torture/execute/module_init_1.f90: Fix test.
Tobias Schlüter [Sat, 10 Jul 2004 09:53:53 +0000 (11:53 +0200)]
* gfortran.fortran-torture/execute/module_init_1.f90: Fix test.

From-SVN: r84451

20 years ago2004-07-10 Ito Kazumitsu <kaz@maczuka.gcd.org>
Ito Kazumitsu [Sat, 10 Jul 2004 08:55:22 +0000 (08:55 +0000)]
2004-07-10  Ito Kazumitsu  <kaz@maczuka.gcd.org>

* java/text/MessageFormat.java
(formatInternal): Append "{n}" if argument n is unavailable.
(format(Object, StringBuffer, FieldPosition)): This
should be equivalent to format(Object[],
StringBuffer, FieldPosition).

From-SVN: r84448

20 years agoexpr.h (store_bit_field, [...]): Remove last argument.
Jakub Jelinek [Sat, 10 Jul 2004 08:04:58 +0000 (10:04 +0200)]
expr.h (store_bit_field, [...]): Remove last argument.

* expr.h (store_bit_field, extract_bit_field): Remove last argument.
* expmed.c (store_bit_field, extract_bit_field): Remove last
argument.
* builtins.c (expand_builtin_signbit): Adjust callers.
* optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
* calls.c (store_unaligned_arguments_into_pseudos): Likewise.
* ifcvt.c (noce_emit_move_insn): Likewise.
* stmt.c (expand_return): Likewise.
* expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
store_field, expand_expr_real_1): Likewise.

From-SVN: r84447

20 years ago* builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
Richard Henderson [Sat, 10 Jul 2004 07:23:17 +0000 (00:23 -0700)]
* builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.

From-SVN: r84446

20 years agodarwin.c (no_dead_strip): Add.
Mike Stump [Sat, 10 Jul 2004 05:54:27 +0000 (05:54 +0000)]
darwin.c (no_dead_strip): Add.

        * config/darwin.c (no_dead_strip): Add.
        (HAVE_DEAD_STRIP): Add.
        (darwin_emit_unwind_label): Ensure that we don't dead code strip
        the .eh label.
Radar 3668092

From-SVN: r84444

20 years agore PR java/8618 (call to private constructor allowed for anonymous inner class)
Bryce McKinlay [Sat, 10 Jul 2004 05:38:15 +0000 (05:38 +0000)]
re PR java/8618 (call to private constructor allowed for anonymous inner class)

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

        PR java/8618
        * parse.y (create_anonymous_class): Remove 'location' argument. Use
        the WFL from TYPE_NAME to get line number for the decl. Fix comment.
        (craft_constructor): Inherit access flags for implicit constructor
        from the enclosing class.
        (create_class): Fix comment typo.
        (resolve_qualified_expression_name): Pass type of qualifier to
        not_accessible_p, not the type in which target field was found.
        (not_accessible_p): Handle inner classes. Expand protected
        qualifier-subtype check to enclosing instances, but don't apply this
        check to static members. Allow protected access to inner classes
        of a subtype. Allow private access within common enclosing context.
        (build_super_invocation): Get WFL line number info from current
        class decl.
        (build_incomplete_class_ref): Update for new create_anonymous_class
        signature.
        * parse.h (INNER_ENCLOSING_SCOPE_CHECK): Use
        common_enclosing_instance_p.
        * class.c (common_enclosing_context_p): New. Determine if types
        share a common enclosing context, even across static contexts.
        (common_enclosing_instance_p): Renamed from
        common_enclosing_context_p. Determines if types share a common
        non-static enclosing instance.
        * java-tree.h (common_enclosing_instance_p): Declare.
        * jcf-write.c (get_method_access_flags): New. Surpress private flag
        for inner class constructors.
        (generate_classfile): Use get_method_access_flags.

From-SVN: r84443

20 years agotree-ssa-loop-im.c: New file.
Zdenek Dvorak [Sat, 10 Jul 2004 04:57:58 +0000 (06:57 +0200)]
tree-ssa-loop-im.c: New file.

* tree-ssa-loop-im.c: New file.
* Makefile.in (tree-ssa-loop-im.o): Add.
* cfgloop.c (superloop_at_depth): New function.
* cfgloop.h (superloop_at_depth): Declare.
* common.opt (ftree-lim): New flag.
* expr.c (array_ref_up_bound): New function.
* params.def (PARAM_LIM_EXPENSIVE): New parameter.
* timevar.def (TV_LIM): New timevar.
* tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
computing immediate uses of a phi node.
* tree-flow.h (struct tree_ann_common_d): Add aux field.
(loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
* tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
* tree-pass.h (pass_lim): Declare.
* tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
functions.
(pass_lim): New pass structure.
* tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
* tree.c (in_array_bounds_p): New function.
* tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
(in_array_bounds_p, array_ref_up_bound): Declare.
* doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
* doc/passes.texi (tree-ssa-loop-im.c): Document.

From-SVN: r84441

20 years agore PR fortran/13415 (Internal error with pointer array in common)
Tobias Schlüter [Sat, 10 Jul 2004 02:46:54 +0000 (02:46 +0000)]
re PR fortran/13415 (Internal error with pointer array in common)

PR fortran/13415
* trans-common.c (calculate_length): Remove ...
(get_segment_info): Merge into here.  Save field type.
(build_field): Use saved type.
(create_common, new_condition, new_segment, finish_equivalences):
Use new get_segment_info.
* trans-types.c: Update comment.
testsuite
* gfortran.dg/common_pointer_1.f90: New test.

Co-Authored-By: Paul Brook <paul@codesourcery.com>
From-SVN: r84439

20 years agojava.util.Calendar.java (cache): New private static field.
Bryce McKinlay [Sat, 10 Jul 2004 02:38:55 +0000 (02:38 +0000)]
java.util.Calendar.java (cache): New private static field.

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

* java.util.Calendar.java (cache): New private static field. Cached
mappings of locales->calendar classes.
(ctorArgTypes): New private static field. Singleton argument for
calendar class constructor lookup.
(getInstance): Cache Locale->Calendar class mappings using HashMap.
Optimize by bypassing reflection instantiation for the
GregorianCalendar case.

From-SVN: r84438

20 years agoCalendar.java: Use getSystemClassLoader as argument for ResourceBundle.getBundle...
Bryce McKinlay [Sat, 10 Jul 2004 02:26:19 +0000 (02:26 +0000)]
Calendar.java: Use getSystemClassLoader as argument for ResourceBundle.getBundle() calls.

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

* java/util/Calendar.java: Use getSystemClassLoader as argument for
ResourceBundle.getBundle() calls.
* java/util/GregorianCalendar.java: Likewise.
* java/util/Currency.java: Likewise.
* java/text/BreakIterator.java: Likewise.
* java/text/Collator.java: Likewise.
* java/text/DateFormat.java: Likewise.
* java/text/DateFormatSymbols.java: Likewise.
* java/text/DecimalFormatSymbols.java: Likewise.
* java/text/NumberFormat.java: Likewise.
* java/awt/Window.java: Likewise.

From-SVN: r84437

20 years agotree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs with prejudice.
Richard Henderson [Sat, 10 Jul 2004 02:24:27 +0000 (19:24 -0700)]
tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs with prejudice.

        * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
        with prejudice.

From-SVN: r84436

20 years ago* builtins.c (expand_builtin_stpcpy): Don't modify len.
Richard Henderson [Sat, 10 Jul 2004 02:21:12 +0000 (19:21 -0700)]
* builtins.c (expand_builtin_stpcpy): Don't modify len.

From-SVN: r84435

20 years agoResourceBundle.java (bundleCache): Renamed from resourceBundleCache.
Bryce McKinlay [Sat, 10 Jul 2004 02:14:30 +0000 (02:14 +0000)]
ResourceBundle.java (bundleCache): Renamed from resourceBundleCache.

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

* java/util/ResourceBundle.java (bundleCache): Renamed from
resourceBundleCache. Update comments.
(getObject): Don't catch MissingResourceException.
(getBundle(String)): Remove 'final'. Use system classloader if
getCallingClassLoader returned null.
(getBundle(String, Locale)): Likewise.
(BundleKey): New private class. HashMap key for bundle cache lookup.
(lookupKey): New. Singleton instance of BundleKey.
(nullEntry): New. Cache entry to represent failed lookups.
(getBundle(String, Locale, ClassLoader)): Re-written to use new
caching strategy, no-allocation lookup, and new tryBundle methods.
(tryBundle(String, ClassLoader)): New. Load a locale-qualified
bundle name using given classloader.
(tryBundle(String, Locale, ClassLoader, boolean): New. Qualify
baseName for given Locale and attempt to load bundle.

From-SVN: r84434

20 years ago* g++.dg/lookup/new1.C: Fix dg-excess-error syntax.
Giovanni Bajo [Sat, 10 Jul 2004 02:13:54 +0000 (02:13 +0000)]
* g++.dg/lookup/new1.C: Fix dg-excess-error syntax.

From-SVN: r84433

20 years agoflags.h: Delete redundant prototypes that are being generated in options.h from commo...
Kelley Cook [Sat, 10 Jul 2004 02:06:36 +0000 (02:06 +0000)]
flags.h: Delete redundant prototypes that are being generated in options.h from common.opt.

2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>

* flags.h: Delete redundant prototypes that are being generated
in options.h from common.opt.
* common.opt: Add in the expository comments formerly in flags.h.

From-SVN: r84432

20 years agoi386.c (init_cumulative_args): Set mmx/sse registers available for use only when...
Jan Beulich [Sat, 10 Jul 2004 01:59:12 +0000 (01:59 +0000)]
i386.c (init_cumulative_args): Set mmx/sse registers available for use only when TARGET_MMX/_SSE is set...

        * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
        available for use only when TARGET_MMX/_SSE is set, and check for
        variable argument function if any register count is non-zero.
        (function_arg): Correctly suppress repeated warnings for passing SSE
        vectors are arguments without SSE enabled.
        (ix86_function_arg_boundary): Without SSE enabled, the use of what
        would be SSE register modes does no longer influence the alignment.

From-SVN: r84431

20 years agobuiltins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
Richard Henderson [Sat, 10 Jul 2004 01:52:53 +0000 (18:52 -0700)]
builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.

        * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
        Always align upward to arg boundary.  Use size_in_bytes/round_up.
        Maintain type-correctness of constants.
        * stor-layout.c (round_up, round_down): Special-case powers of 2.

From-SVN: r84430

20 years agosparc.c (*_costs): Scale instruction costs by COSTS_N_INSNS.
David S. Miller [Sat, 10 Jul 2004 01:47:48 +0000 (01:47 +0000)]
sparc.c (*_costs): Scale instruction costs by COSTS_N_INSNS.

2004-07-09  David S. Miller  <davem@nuts.davemloft.net>

* config/sparc/sparc.c (*_costs): Scale instruction costs
by COSTS_N_INSNS.
(sparc_rtx_costs): Adjust as appropriate.

From-SVN: r84429

20 years agomm3dnow.h: New.
Jan Beulich [Sat, 10 Jul 2004 00:27:59 +0000 (00:27 +0000)]
mm3dnow.h: New.

        * config/i386/mm3dnow.h: New.
        * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.

From-SVN: r84428

20 years agosimplify-rtx.c (simplify_const_relational_operation): Only look at bounds of scalar...
Richard Henderson [Sat, 10 Jul 2004 00:24:23 +0000 (17:24 -0700)]
simplify-rtx.c (simplify_const_relational_operation): Only look at bounds of scalar integers.

        * simplify-rtx.c (simplify_const_relational_operation): Only
        look at bounds of scalar integers.

From-SVN: r84427

20 years agoDaily bump.
GCC Administrator [Sat, 10 Jul 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r84425

20 years ago* config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
Jan Beulich [Fri, 9 Jul 2004 23:54:13 +0000 (23:54 +0000)]
* config/i386/i386.md (sse2_clflush): Use correct operand for clflush.

From-SVN: r84422

20 years agoBasicMenuUI.java (mousePressed): Remove illegal protected method calls.
Bryce McKinlay [Fri, 9 Jul 2004 23:42:19 +0000 (23:42 +0000)]
BasicMenuUI.java (mousePressed): Remove illegal protected method calls.

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

* javax/swing/plaf/basic/BasicMenuUI.java (mousePressed): Remove
illegal protected method calls.

From-SVN: r84421

20 years agoFix or remove some bogus test cases.
Bryce McKinlay [Fri, 9 Jul 2004 23:36:51 +0000 (23:36 +0000)]
Fix or remove some bogus test cases.

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

Fix or remove some bogus test cases.
* testsuite/libjava.compile/pr10459_2.java: Removed.
* testsuite/libjava.compile/pr10459.java: Test using its own method,
not Object.clone().
* testsuite/libjava.compile/inner_data.java: Test against its own
protected field.

From-SVN: r84420

20 years agoobjc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as always referenced.
Andrew Pinski [Fri, 9 Jul 2004 23:32:38 +0000 (16:32 -0700)]
objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as always referenced.

2004-07-09  Andrew Pinski  <apinski@apple.com>

        * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
        always referenced.
        (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
        UOBJC_METACLASS_decl.

From-SVN: r84419

20 years agoclass.c (interface_of_p): Check for null TYPE_BINFO.
Bryce McKinlay [Fri, 9 Jul 2004 23:26:01 +0000 (23:26 +0000)]
class.c (interface_of_p): Check for null TYPE_BINFO.

2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

* class.c (interface_of_p): Check for null TYPE_BINFO.

From-SVN: r84418

20 years agoc-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes permissible for...
Jan Beulich [Fri, 9 Jul 2004 23:20:36 +0000 (23:20 +0000)]
c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes permissible for unary plus.

        * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
        permissible for unary plus.

From-SVN: r84417

20 years agoFix for IA-64 union/long double ICE.
James E Wilson [Fri, 9 Jul 2004 23:10:26 +0000 (23:10 +0000)]
Fix for IA-64 union/long double ICE.

PR target/16364
* config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
do return a parallel if hfa_mode == XFmode and mode == TImode.
* gcc.c-torture/compile/20040709-1.c: New.

From-SVN: r84416

20 years agobuiltin-types.def (BT_UINT): Rename from BT_UNSIGNED.
Jan Beulich [Fri, 9 Jul 2004 23:04:33 +0000 (23:04 +0000)]
builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.

        * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
        (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
        (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
        (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
        BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
        * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
        BUILTIN_POPCOUNTxxx): Arguments are unsigned.
        (BUILTIN_xxxIMAX): New.
        * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
        BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
        BUILT_IN_PARITYIMAX.

From-SVN: r84415

20 years agosparc.h (processor_costs): Define.
David S. Miller [Fri, 9 Jul 2004 22:59:32 +0000 (22:59 +0000)]
sparc.h (processor_costs): Define.

2004-07-02  David S. Miller  <davem@nuts.davemloft.net>

* config/sparc/sparc.h (processor_costs): Define.
(sparc_costs): Declare.
* config/sparc/sparc.c (cypress_costs, supersparc_costs,
hypersparc_costs, sparclet_costs, ultrasparc_costs,
ultrasparc3_costs): New.
(sparc_override_options): Set sparc_costs as appropriate.
(sparc_rtx_costs): Use sparc_costs instead of messy
conditionals.

From-SVN: r84414

20 years agoconfigure.in: Build libmudflap by default on FreeBSD.
Loren J. Rittle [Fri, 9 Jul 2004 22:57:08 +0000 (22:57 +0000)]
configure.in: Build libmudflap by default on FreeBSD.

* configure.in: Build libmudflap by default on FreeBSD.
* configure: Regenerated.

From-SVN: r84413

20 years agore PR fortran/14077 (Data statement within a module that doesn't initialize a whole...
Tobias Schlüter [Fri, 9 Jul 2004 22:44:22 +0000 (00:44 +0200)]
re PR fortran/14077 (Data statement within a module that doesn't initialize a whole array creates an error)

PR fortran/14077
* gfortran.fortran-torture/execute/module_init_1.f90: New test.

From-SVN: r84412

20 years agomd.texi (Processor pipeline description): Mention that the old pipeline description...
Steven Bosscher [Fri, 9 Jul 2004 22:42:43 +0000 (22:42 +0000)]
md.texi (Processor pipeline description): Mention that the old pipeline description is deprecated.

* doc/md.texi (Processor pipeline description): Mention that
the old pipeline description is deprecated.

* config/rs6000/7450.md (automaton ppc7450): Split up, move
mciu_7450 function unit to...
(automaton ppc7450mciu): ...new automaton.

* haifa-sched.c (insert_schedule_bubbles_p): Remove.
(schedule_block): Don't consider inserting bubbles.
(sched_init): Don't initialize DFA bubbles.
* target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
TARGET_SCHED_DFA_BUBBLE): Remove.
* target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
* doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
TARGET_SCHED_DFA_BUBBLE): Remove documentation.

* stmt.c (conditional_context): Remove prototype.
* tree.h (conditional_context): Remove.
* tree-cfg.c (pre_insert_on_edge): Remove.

* c-common.h (c_expand_asm_operands): Remove prototype.
* c-typeck.c (c_expand_asm_operands): Remove.

cp/
* typeck.c (c_expand_asm_operands): Remove.

From-SVN: r84411

20 years agoi386.c (classify_argument): Treat V1xx modes the same as their base modes.
Jan Beulich [Fri, 9 Jul 2004 22:35:35 +0000 (22:35 +0000)]
i386.c (classify_argument): Treat V1xx modes the same as their base modes.

        * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
        their base modes. CTImode, TCmode, and XCmode must be passed in memory.
        TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
        and V8QI are class SSE. All sufficiently small remaining vector modes
        must be passed in one or two integer registers.
        (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
        returned in memory.
        (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
        __builtin_ia32_pmuludq128 have non-uniform argument and return types
        and must thus be handled explicitly.
        * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
        MMX and XMM regs.
        (movv8qi_internal, movv4hi_internal, movv2si_internal,
        movv2sf_internal): Permit moving between MMX and XMM registers (since
        MMX areguments and return values are passed in XMM registers).
        (sse2_umulsidi3): Correct type and mode.

From-SVN: r84410

20 years ago* tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
Richard Henderson [Fri, 9 Jul 2004 22:31:02 +0000 (15:31 -0700)]
* tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.

From-SVN: r84409

20 years agore PR fortran/14077 (Data statement within a module that doesn't initialize a whole...
Tobias Schlüter [Fri, 9 Jul 2004 22:27:15 +0000 (00:27 +0200)]
re PR fortran/14077 (Data statement within a module that doesn't initialize a whole array creates an error)

PR fortran/14077
* moduele.c (mio_symbol): Don't I/O initial values unless
symbol is a parameter.

From-SVN: r84408

20 years ago40x.md: Split into two automatons.
Eric Christopher [Fri, 9 Jul 2004 22:24:29 +0000 (22:24 +0000)]
40x.md: Split into two automatons.

2004-07-09  Eric Christopher  <echristo@redhat.com>

* config/rs6000/40x.md: Split into two automatons.

From-SVN: r84407

20 years agoconfigure.in: Do not build libmudflap by default on non-GNU/Linux systems.
Mark Mitchell [Fri, 9 Jul 2004 22:05:06 +0000 (22:05 +0000)]
configure.in: Do not build libmudflap by default on non-GNU/Linux systems.

* configure.in: Do not build libmudflap by default on non-GNU/Linux
systems.
* configure: Regenerated.

From-SVN: r84406

20 years agoAdd wchar_t counterparts of the basic_stringbuf<char> tests.
Paolo Carlini [Fri, 9 Jul 2004 22:00:59 +0000 (22:00 +0000)]
Add wchar_t counterparts of the basic_stringbuf<char> tests.

2004-07-09  Paolo Carlini  <pcarlini@suse.de>

Add wchar_t counterparts of the basic_stringbuf<char> tests.
* testsuite/27_io/basic_stringbuf/imbue/wchar_t/1.cc, 9322.cc: New.
* testsuite/27_io/basic_stringbuf/in_avail/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/overflow/wchar_t/1.cc, 2.cc,
3599.cc, 9988.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sbumpc/wchar_t/1.cc, 9825.cc:
Likewise.
* testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc:
Likewise.
* testsuite/27_io/basic_stringbuf/seekoff/wchar_t/1.cc, 2.cc, 3.cc:
Likewise.
* testsuite/27_io/basic_stringbuf/setbuf/wchar_t/1.cc, 2.cc, 3.cc:
Likewise.
* testsuite/27_io/basic_stringbuf/sgetc/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sgetn/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/snextc/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sputbackc/wchar_t/1.cc, 9425.cc:
Likewise.
* testsuite/27_io/basic_stringbuf/sputc/wchar_t/1.cc, 1057.cc,
9404-1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sputn/wchar_t/1.cc, 1057.cc,
9404-2.cc: Likewise.
* testsuite/27_io/basic_stringbuf/str/wchar_t/1.cc, 2.cc, 3.cc,
3955.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sungetc/wchar_t/1.cc: Likewise.
* testsuite/27_io/basic_stringbuf/sync/wchar_t/1057.cc: Likewise.

From-SVN: r84405

20 years agore PR fortran/13201 (PARAMETER variables of nonconstant shape are accepted)
Tobias Schlüter [Fri, 9 Jul 2004 21:32:57 +0000 (23:32 +0200)]
re PR fortran/13201 (PARAMETER variables of nonconstant shape are accepted)

PR fortran/13201
* gfortran.dg/shape_1.f90: New test.

From-SVN: r84403

20 years agoc-opts.c (c_common_post_options): Force unit-at-a-time mode on when we have more...
Zack Weinberg [Fri, 9 Jul 2004 21:30:35 +0000 (21:30 +0000)]
c-opts.c (c_common_post_options): Force unit-at-a-time mode on when we have more than one input file.

2004-07-09  Zack Weinberg  <zack@codesourcery.com>
    Andrew Pinski  <apinski@apple.com>

* c-opts.c (c_common_post_options): Force unit-at-a-time mode
on when we have more than one input file.
(c_common_parse_file): Restore loop over all input files.
Clarify diagnostic for -dy when YYDEBUG wasn't defined.

* c-decl.c (set_type_context): New function.
(pop_scope): Use it to set context of types.  When we
encounter a TYPE_DECL, set the context of the attached type too.
(pop_file_scope): Don't call cpp_undef_all here.
(diagnose_mismatched_decls): Do not complain about a second
definition of an 'extern inline' function if it's not in the
same translation unit.  Do not complain about inline
declaration after use if the use was in a different
translation unit.
(merge_decls): Don't clobber olddecl's DECL_CONTEXT.
(pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
the external scope.
(pushdecl_top_level): Likewise.
(grokdeclarator): Clarify what is going on with setting
DECL_EXTERNAL on function types, a little.
(c_write_global_declarations): Don't do anything if
-fsyntax-only or errors have been encountered.

testsuite:
* gcc.dg/noncompile/init-4.c: Remove bogus dg-error marker.

From-SVN: r84402

20 years agore PR fortran/13201 (PARAMETER variables of nonconstant shape are accepted)
Tobias Schlüter [Fri, 9 Jul 2004 21:20:50 +0000 (23:20 +0200)]
re PR fortran/13201 (PARAMETER variables of nonconstant shape are accepted)

PR fortran/13201
* resolve.c (resolve_symbol): Verify that the shape of a
parameter array is not only explicit, but also constant.
* array.c (gfc_is_compile_time_shape): New function.
* gfortran.h (gfc_is_compile_time_shape): Add prototype.

From-SVN: r84400

20 years agounicode-muncher.pl: Updated to version 2.1 from GNU classpath.
Michael Koch [Fri, 9 Jul 2004 21:00:12 +0000 (21:00 +0000)]
unicode-muncher.pl: Updated to version 2.1 from GNU classpath.

2004-07-09  Michael Koch  <konqueror@gmx.de>

* scripts/unicode-muncher.pl: Updated to version 2.1
from GNU classpath. Added some clarifications on where to find the
needed files from www.unicode.org.
* gnu/gcj/convert/UnicodeCharacterDatabase-3.0.0.html,
gnu/gcj/convert/UnicodeData-3.0.0.txt:
Removed, these can directly be downloaded from www.unicode.org if
needed.
* gnu/java/lang/CharData.java: Regenerated.
* include/java-chartables.h: Regenerated.
* Makefile.am (ordinary_java_source_files):
Removed gnu/java/lang/CharData.java.
* Makefile.in: Regenerated.

From-SVN: r84399

20 years ago* vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
Zack Weinberg [Fri, 9 Jul 2004 20:58:00 +0000 (20:58 +0000)]
* vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.

From-SVN: r84398

20 years agoname_clash2.f90: Remove outdated comment.
Tobias Schlüter [Fri, 9 Jul 2004 20:35:58 +0000 (22:35 +0200)]
name_clash2.f90: Remove outdated comment.

* gfortran.fortran-torture/compile/name_clash2.f90: Remove outdated
comment.

From-SVN: r84395

20 years agore PR target/16459 (ld: libbackend.a(expr.o)(.text+0x40c2c): cannot handle R_PARISC_P...
John David Anglin [Fri, 9 Jul 2004 20:11:59 +0000 (20:11 +0000)]
re PR target/16459 (ld: libbackend.a(expr.o)(.text+0x40c2c): cannot handle R_PARISC_PCREL17F for $$dyncall)

PR target/16459
* pa.c (output_indirect_call): Use %r2 as the link register when
calling $$dyncall with a pc-relative branch.

From-SVN: r84394

20 years agoTest case for g++/15861
Frank Ch. Eigler [Fri, 9 Jul 2004 19:51:51 +0000 (19:51 +0000)]
Test case for g++/15861

2004-07-09  Frank Ch. Eigler  <fche@redhat.com>

Test case for g++/15861
* testsuite/libmudflap.c++/ctors-[12].cxx: New test case halves.
* testsuite/libmudflap.c++/ctors.exp: Driver.
* testsuite/libmudflap.c++/c++frags.exp: Elide redundant default.
Look only for *frag* test cases.

From-SVN: r84392

20 years agotypeck.c (build_class_member_access_expr): Skip null deref warning when we don't...
Mike Stump [Fri, 9 Jul 2004 18:49:04 +0000 (18:49 +0000)]
typeck.c (build_class_member_access_expr): Skip null deref warning when we don't dereference it.

        * typeck.c (build_class_member_access_expr): Skip null deref
        warning when we don't dereference it.

Radar 3718909

From-SVN: r84389

20 years agoclass.c (make_class): Do not create binfo here.
Nathan Sidwell [Fri, 9 Jul 2004 18:36:02 +0000 (18:36 +0000)]
class.c (make_class): Do not create binfo here.

* class.c (make_class): Do not create binfo here.
(set_super_info): Create it here.
* java-tree.h (CLASS_HAS_SUPER): Cope with lack of a binfo.

From-SVN: r84388

20 years ago* doc/install.texi (Binaries): Mention OpenPKG.
Gerald Pfeifer [Fri, 9 Jul 2004 18:06:16 +0000 (18:06 +0000)]
* doc/install.texi (Binaries): Mention OpenPKG.

From-SVN: r84386

20 years agoPaul Brook <paul@codesourcery.com>
Tobias Schlüter [Fri, 9 Jul 2004 15:46:42 +0000 (17:46 +0200)]
Paul Brook <paul@codesourcery.com>

2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
Paul Brook  <paul@codesourcery.com>

* gfortran.dg/dg.exp: Use revised wilcard for suffixes, also allow
'.f95' and '.F95'.

Co-Authored-By: Paul Brook <paul@codesourcery.com>
From-SVN: r84384

20 years agoAccessControlContext.java, [...]: Fixed javadocs.
Michael Koch [Fri, 9 Jul 2004 15:43:01 +0000 (15:43 +0000)]
AccessControlContext.java, [...]: Fixed javadocs.

2004-07-09  Michael Koch  <konqueror@gmx.de>

* java/security/AccessControlContext.java,
java/security/SecureClassLoader.java:
Fixed javadocs.

From-SVN: r84383

20 years agoObjectInputStream.java (readFields): Use long datatype when shifting byte values...
Michael Koch [Fri, 9 Jul 2004 15:37:31 +0000 (15:37 +0000)]
ObjectInputStream.java (readFields): Use long datatype when shifting byte values more then 24 bits left.

2004-07-09  Michael Koch  <konqueror@gmx.de>

* java/io/ObjectInputStream.java (readFields): Use long datatype
when shifting byte values more then 24 bits left.

From-SVN: r84382

20 years ago* gcc.dg/tree-ssa/20031015-1.c: Adjust expected dump file name.
Diego Novillo [Fri, 9 Jul 2004 15:29:46 +0000 (15:29 +0000)]
* gcc.dg/tree-ssa/20031015-1.c: Adjust expected dump file name.

From-SVN: r84381

20 years agoDeflaterOutputStream.java, [...]: Reformatted.
Michael Koch [Fri, 9 Jul 2004 15:22:19 +0000 (15:22 +0000)]
DeflaterOutputStream.java, [...]: Reformatted.

2004-07-09  Michael Koch  <konqueror@gmx.de>

* java/util/zip/DeflaterOutputStream.java,
java/util/zip/GZIPInputStream.java,
java/util/zip/GZIPOutputStream.java,
java/util/zip/InflaterInputStream.java:
Reformatted. Added javadocs. Reordered all stuff.
Renamed variables to be more clear.

From-SVN: r84380

20 years agodg.exp: Don't use wildcard for suffixes, also check testcases with capital suffix.
Tobias Schlüter [Fri, 9 Jul 2004 15:20:43 +0000 (17:20 +0200)]
dg.exp: Don't use wildcard for suffixes, also check testcases with capital suffix.

* gfortran.dg/dg.exp: Don't use wildcard for suffixes, also check
testcases with capital suffix.

From-SVN: r84379

20 years agore PR tree-optimization/15555 (compute_may_alias failes when scheduled again)
Diego Novillo [Fri, 9 Jul 2004 15:16:11 +0000 (11:16 -0400)]
re PR tree-optimization/15555 (compute_may_alias failes when scheduled again)

Fix PR tree-optimization/15555
* tree-dfa.c (dump_variable): If the variable is a pointer
SSA_NAME, also dump its points-to information.
* tree-flow.h (struct ptr_info_def): Add field
is_dereferenced.
(dump_points_to_info_for): Declare.
(debug_points_to_info_for): Declare.
* tree-optimize.c (init_tree_optimization_passes): Add a
second alias analysis pass after DOM2.
Move pass_del_pta to a later spot.
* tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
create a name tags when we find a dereferenced pointer.  Just
mark the pointer dereferenced.
(collect_points_to_info_for): Move code to clear points-to
information to create_name_tags.
(create_name_tags): New function.
(compute_flow_sensitive_aliasing): Call it.
(setup_pointers_and_addressables): Mark type tags for renaming
here instead of ...
(create_memory_tag): ... here.
(merge_pointed_to_info): Do not merge PT_MALLOC attributes.
(dump_points_to_info_for): Declare extern.
(debug_points_to_info_for): New function.

From-SVN: r84378

20 years agotree-dfa.c (dump_variable): If the variable is a pointer SSA_NAME, also dump its...
Diego Novillo [Fri, 9 Jul 2004 15:12:48 +0000 (15:12 +0000)]
tree-dfa.c (dump_variable): If the variable is a pointer SSA_NAME, also dump its points-to information.

* tree-dfa.c (dump_variable): If the variable is a pointer
SSA_NAME, also dump its points-to information.
* tree-flow.h (struct ptr_info_def): Add field
is_dereferenced.
(dump_points_to_info_for): Declare.
(debug_points_to_info_for): Declare.
* tree-optimize.c (init_tree_optimization_passes): Add a
second alias analysis pass after DOM2.
Move pass_del_pta to a later spot.
* tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
create a name tags when we find a dereferenced pointer.  Just
mark the pointer dereferenced.
(collect_points_to_info_for): Move code to clear points-to
information to create_name_tags.
(create_name_tags): New function.
(compute_flow_sensitive_aliasing): Call it.
(setup_pointers_and_addressables): Mark type tags for renaming
here instead of ...
(create_memory_tag): ... here.
(merge_pointed_to_info): Do not merge PT_MALLOC attributes.
(dump_points_to_info_for): Declare extern.
(debug_points_to_info_for): New function.

From-SVN: r84377

20 years ago* gfortran.dg/implicit_1.f90: New test.
Tobias Schlüter [Fri, 9 Jul 2004 15:11:41 +0000 (17:11 +0200)]
* gfortran.dg/implicit_1.f90: New test.

From-SVN: r84376

20 years agogfortran-dg.exp (gfortran-dg-test): Adapt regular expression to match gfortran warnin...
David Billinghurst [Fri, 9 Jul 2004 15:03:17 +0000 (15:03 +0000)]
gfortran-dg.exp (gfortran-dg-test): Adapt regular expression to match gfortran warning/error messages

2004-07-10  David Billinghurst (David.Billinghurst@riotinto.com)

        * lib/gfortran-dg.exp (gfortran-dg-test):  Adapt regular
        expression to match gfortran warning/error messages

From-SVN: r84375

20 years agore PR fortran/15481 ([meta-bugs] frontend adds superfluous symbols to namespaces)
Tobias Schlüter [Fri, 9 Jul 2004 14:54:43 +0000 (16:54 +0200)]
re PR fortran/15481 ([meta-bugs] frontend adds superfluous symbols to namespaces)

fortran/
2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>

PR fortran/15481
PR fortran/13372
PR fortran/13575
PR fortran/15978
* module.c (write_symbol, write_symtree): Remove workaround.
* primary.c (match_actual_arglist): Enhance comment.
(gfc_match_rvalue): Handle function call with first argument
a keyword argument correctly.
* resolve.c (resolve_symbol): Change call to
gfc_set_default_type to issue error if no implicit type
can be found.
* trans-decl.c (gfc_create_module_variable): Remove workaround.

Add missing ChangeLog

From-SVN: r84374

20 years agore PR fortran/15481 ([meta-bugs] frontend adds superfluous symbols to namespaces)
Tobias Schlüter [Fri, 9 Jul 2004 14:53:45 +0000 (16:53 +0200)]
re PR fortran/15481 ([meta-bugs] frontend adds superfluous symbols to namespaces)

fortran/
2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>

PR fortran/15481
PR fortran/13372
PR fortran/13575
PR fortran/15978
* module.c (write_symbol, write_symtree): Remove workaround.
* primary.c (match_actual_arglist): Enhance comment.
(gfc_match_rvalue): Handle function call with first argument
a keyword argument correctly.
* resolve.c (resolve_symbol): Change call to
gfc_set_default_type to issue error if no implicit type
can be found.
* trans-decl.c (gfc_create_module_variable): Remove workaround.

testsuite/
PR fortran/15481
 PR fortran/13372
 PR fortran/13575
 PR fortran/15978
* gfortran.fortran-torture/compile/implicit_2.f90: New test.

Also fixed David Billinghursts ChangeLog entry to use GMT

From-SVN: r84373

20 years agogfortran-dg.exp (gfortran-dg-test): Adapt regular expression to match gfortran warnin...
David Billinghurst [Fri, 9 Jul 2004 14:34:12 +0000 (14:34 +0000)]
gfortran-dg.exp (gfortran-dg-test): Adapt regular expression to match gfortran warning/error messages

2004-07-10  David Billinghurst (David.Billinghurst@riotinto.com)

* lib/gfortran-dg.exp (gfortran-dg-test):  Adapt regular
expression to match gfortran warning/error messages
* gfortran.dg/g77/12632.f: Copy from g77.dg and fix
dg-error text.

From-SVN: r84372

20 years agoIIOException.java, [...]: New files.
Michael Koch [Fri, 9 Jul 2004 14:32:30 +0000 (14:32 +0000)]
IIOException.java, [...]: New files.

2004-07-09  Michael Koch  <konqueror@gmx.de>

* javax/imageio/IIOException.java,
javax/imageio/event/IIOReadProgressListener.java,
javax/imageio/event/IIOReadUpdateListener.java,
javax/imageio/event/IIOReadWarningListener.java,
javax/imageio/event/IIOWriteProgressListener.java,
javax/imageio/event/IIOWriteWarningListener.java:
New files.
* Makefile.am: Added new files.
* Makefile.in: Regenerated.

From-SVN: r84371

20 years ago2004-07-09 Guilhem Lavaux <guilhem@kaffe.org>
Guilhem Lavaux [Fri, 9 Jul 2004 14:09:01 +0000 (14:09 +0000)]
2004-07-09  Guilhem Lavaux <guilhem@kaffe.org>

* java/text/RuleBasedCollator.java
(mergeRules): Use ArrayList instead of Vector.
(subParseString): likewise.
(parseString): likewise.
(buildCollationVector): likewise.
(getCollationKey): likewise.

From-SVN: r84369

20 years agoDateFormat.java (parse): Improved javadoc.
Dalibor Topic [Fri, 9 Jul 2004 14:02:21 +0000 (14:02 +0000)]
DateFormat.java (parse): Improved javadoc.

2004-07-09  Dalibor Topic  <robilad@kaffe.org>

* java/text/DateFormat.java (parse):
Improved javadoc. Improved exception message.

From-SVN: r84368

20 years agoSelectorImpl.java (select): Call static Thread interrupted() method to clear interupt...
Mark Wielaard [Fri, 9 Jul 2004 13:56:08 +0000 (13:56 +0000)]
SelectorImpl.java (select): Call static Thread interrupted() method to clear interupt flag of our Thread.

2004-07-09  Mark Wielaard  <mark@klomp.org>

* gnu/java/nio/SelectorImpl.java (select): Call static Thread
interrupted() method to clear interupt flag of our Thread.

From-SVN: r84367

20 years agoBuffer.java, [...]: Fixed javadocs all over.
Dalibor Topic [Fri, 9 Jul 2004 13:40:29 +0000 (13:40 +0000)]
Buffer.java, [...]: Fixed javadocs all over.

2004-07-09  Dalibor Topic  <robilad@kaffe.org>

* java/nio/Buffer.java,
java/nio/ByteBuffer.java,
java/nio/ByteBufferHelper.java,
java/nio/ByteBufferImpl.java,
java/nio/CharBuffer.java,
java/nio/CharBufferImpl.java,
java/nio/CharViewBufferImpl.java,
java/nio/DirectByteBufferImpl.java,
java/nio/DoubleBuffer.java,
java/nio/DoubleBufferImpl.java,
java/nio/DoubleViewBufferImpl.java,
java/nio/FloatBuffer.java,
java/nio/FloatBufferImpl.java,
java/nio/FloatViewBufferImpl.java,
java/nio/IntBuffer.java,
java/nio/IntBufferImpl.java,
java/nio/IntViewBufferImpl.java,
java/nio/LongBuffer.java,
java/nio/LongBufferImpl.java,
java/nio/LongViewBufferImpl.java,
java/nio/MappedByteBufferImpl.java,
java/nio/ShortBuffer.java,
java/nio/ShortBufferImpl.java,
java/nio/ShortViewBufferImpl.java:
        Fixed javadocs all over. Improved input error
        checking.

* java/nio/Buffer.java
(checkForUnderflow, checkForOverflow, checkIndex,
checkIfReadOnly, checkArraySize): New helper methods
        for error checking.

* java/nio/ByteBufferHelper.java
(checkRemainingForRead, checkRemainingForWrite,
checkAvailableForRead, checkAvailableForWrite): Removed
        no longer needed methods.

From-SVN: r84366

20 years agoCharIndexedInputStream.java: Reordered imports to match classpath.
Michael Koch [Fri, 9 Jul 2004 13:27:27 +0000 (13:27 +0000)]
CharIndexedInputStream.java: Reordered imports to match classpath.

2004-07-09  Michael Koch  <konqueror@gmx.de>

* gnu/regexp/CharIndexedInputStream.java:
Reordered imports to match classpath.

From-SVN: r84365

20 years agoEmbeddedWindow.java: Load native library for setWindowPeer method.
Michael Koch [Fri, 9 Jul 2004 13:20:26 +0000 (13:20 +0000)]
EmbeddedWindow.java: Load native library for setWindowPeer method.

2004-07-09  Michael Koch  <konqueror@gmx.de>

* gnu/java/awt/EmbeddedWindow.java:
Load native library for setWindowPeer method.

From-SVN: r84364

20 years agoarc.md: Switch to DFA-based scheduler description.
Paolo Bonzini [Fri, 9 Jul 2004 11:40:09 +0000 (11:40 +0000)]
arc.md: Switch to DFA-based scheduler description.

2004-07-09  Paolo Bonzini  <bonzini@gnu.org>

* config/arc/arc.md: Switch to DFA-based scheduler description.
* config/arc/arc.c: Switch to DFA-based scheduler description.

From-SVN: r84363

20 years agounknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame pointer.
Richard Earnshaw [Fri, 9 Jul 2004 11:11:53 +0000 (11:11 +0000)]
unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame pointer.

* arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
pointer.

From-SVN: r84362

20 years agore PR other/16444 (gfortran.dg test harness barfs on multilibs)
David Billinghurst [Fri, 9 Jul 2004 10:20:42 +0000 (10:20 +0000)]
re PR other/16444 (gfortran.dg test harness barfs on multilibs)

2004-07-09  David Billinghurst (David.Billinghurst@riotinto.com)

PR other/16444
* lib/fortran-torture.exp: Rename proc search_for to
search_for_re.

From-SVN: r84361

20 years agoxtensa-protos.h (xtensa_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 10:13:16 +0000 (03:13 -0700)]
xtensa-protos.h (xtensa_va_arg): Remove.

        * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
        * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
        * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.

From-SVN: r84360

20 years agov850-protos.h (v850_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 10:10:51 +0000 (03:10 -0700)]
v850-protos.h (v850_va_arg): Remove.

        * config/v850/v850-protos.h (v850_va_arg): Remove.
        * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
        * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
        (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
        (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.

From-SVN: r84359

20 years agostormy16-protos.h (xstormy16_expand_builtin_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 10:07:54 +0000 (03:07 -0700)]
stormy16-protos.h (xstormy16_expand_builtin_va_arg): Remove.

        * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
        Remove.
        * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (xstormy16_gimplify_va_arg_expr): Rewrite from
        xstormy16_expand_builtin_va_arg.
        * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.

From-SVN: r84358

20 years agore PR target/12133 (Reload abort in simd-3.c)
Richard Earnshaw [Fri, 9 Jul 2004 10:05:59 +0000 (10:05 +0000)]
re PR target/12133 (Reload abort in simd-3.c)

PR target/12133
* arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
and DImode to use +/-4k offset.

From-SVN: r84357

20 years agosparc-protos.h (sparc_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 10:04:34 +0000 (03:04 -0700)]
sparc-protos.h (sparc_va_arg): Remove.

        * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
        * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.

From-SVN: r84356

20 years agosh-protos.h (sh_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 09:59:18 +0000 (02:59 -0700)]
sh-protos.h (sh_va_arg): Remove.

        * config/sh/sh-protos.h (sh_va_arg): Remove.
        * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
        * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.

From-SVN: r84355

20 years agopa-protos.h (hppa_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 09:55:52 +0000 (02:55 -0700)]
pa-protos.h (hppa_va_arg): Remove.

        * config/pa/pa-protos.h (hppa_va_arg): Remove.
        * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
        * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.

From-SVN: r84354

20 years agomn10300-protos.h (mn10300_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 09:50:10 +0000 (02:50 -0700)]
mn10300-protos.h (mn10300_va_arg): Remove.

        * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
        * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
        * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.

From-SVN: r84353

20 years agosparc.md (return): Rewrite length formula.
Eric Botcazou [Fri, 9 Jul 2004 09:35:48 +0000 (11:35 +0200)]
sparc.md (return): Rewrite length formula.

* config/sparc/sparc.md (return): Rewrite length formula.
* config/sparc/sparc.c (output_return): Pass 1 as 5th
argument to final_scan_insn when in a delay slot.
(output_sibcall): Likewise.

From-SVN: r84352

20 years agoarm.c (arm_cpp_interwork): New variable.
Richard Earnshaw [Fri, 9 Jul 2004 09:30:46 +0000 (09:30 +0000)]
arm.c (arm_cpp_interwork): New variable.

* arm.c (arm_cpp_interwork): New variable.
(arm_override_options): Set it if TARGET_INTERWORK was on the command
line.
* arm.h (arm_cpp_interwork): Declare it.
(TARGET_CPU_CPP_BUILTINS): Use it to control definition of
__THUMB_INTERWORK__ in the preprocessor.

From-SVN: r84351

20 years agosimd-5.x: New file.
Eric Botcazou [Fri, 9 Jul 2004 09:06:36 +0000 (11:06 +0200)]
simd-5.x: New file.

* gcc.c-torture/execute/simd-5.x: New file.
XFAIL on SPARC 64-bit at -O0.

From-SVN: r84350

20 years ago* vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
Nathan Sidwell [Fri, 9 Jul 2004 08:33:22 +0000 (08:33 +0000)]
* vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.

From-SVN: r84349

20 years agore PR target/16416 (-m64 doesn't imply -mcpu=v9 anymore)
Eric Botcazou [Fri, 9 Jul 2004 08:31:34 +0000 (10:31 +0200)]
re PR target/16416 (-m64 doesn't imply -mcpu=v9 anymore)

PR target/16416
* config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
Override default settings to account for -m32 and -m64.

From-SVN: r84347

20 years agoAdjust date of Casey's change.
Richard Sandiford [Fri, 9 Jul 2004 07:29:02 +0000 (07:29 +0000)]
Adjust date of Casey's change.

From-SVN: r84346

20 years ago* jartool.c (find_entry, looks_like_dir): Remove inline spec.
Richard Sandiford [Fri, 9 Jul 2004 06:28:17 +0000 (06:28 +0000)]
* jartool.c (find_entry, looks_like_dir): Remove inline spec.

From-SVN: r84345

20 years agopa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
Randolph Chung [Fri, 9 Jul 2004 03:39:35 +0000 (03:39 +0000)]
pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.

* gcc/config/pa/pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
* libjava/configure.in (SIGNAL_HANDLER): Use pa-signal.h for hppa.
* libjava/configure: Regenerate.
* libjava/configure.host: Set can_unwind_signal for hppa*-linux.
* libjava/pa-signal.h: New file.

From-SVN: r84344

20 years agobuiltins.c (fold_builtin_strncpy): Make sure len is a constant before comparing it...
Alexandre Oliva [Fri, 9 Jul 2004 03:37:13 +0000 (03:37 +0000)]
builtins.c (fold_builtin_strncpy): Make sure len is a constant before comparing it as such.

* builtins.c (fold_builtin_strncpy): Make sure len is a constant
before comparing it as such.

From-SVN: r84343

20 years agobuiltins.c (std_gimplify_va_arg_expr): Hoist valist into a temporary.
Richard Henderson [Fri, 9 Jul 2004 03:36:31 +0000 (20:36 -0700)]
builtins.c (std_gimplify_va_arg_expr): Hoist valist into a temporary.

        * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
        temporary.  Use bit arithmetic to align.

From-SVN: r84342

20 years agoalias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P...
Jerry Quinn [Fri, 9 Jul 2004 03:29:35 +0000 (03:29 +0000)]
alias.c (nonlocal_mentioned_p, [...]): Use, LABEL_P, JUMP_P, CALL_P, NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.

2004-07-08  Jerry Quinn  <jlquinn@optonline.net>

* alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
* bb-reorder.c (mark_bb_for_unlikely_executed_section,
add_labels_and_missing_jumps, find_jump_block,
fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
Likewise.
* bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
link_btr_uses, move_btr_def): Likewise.
* builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
expand_builtin_expect_jump): Likewise.
* caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
* calls.c (expand_call, emit_library_call_value_1): Likewise.
* cfganal.c (forwarder_block_p): Likewise.
* cfgbuild.c (inside_basic_block_p, count_basic_blocks,
make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
find_bb_boundaries): Likewise.
* cfgcleanup.c (try_simplify_condjump, try_forward_edges,
merge_blocks_move_predecessor_nojumps,
merge_blocks_move_successor_nojumps, insns_match_p,
flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
try_optimize_cfg): Likewise.
* cfgexpand.c (expand_block, construct_exit_block): Likewise.
* cfglayout.c (skip_insns_after_block, label_for_bb,
record_effective_endpoints, insn_locators_initialize,
fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
* cfgmainloop.c (create_loop_notes): Likewise.
* cfgrtl.c (delete_insn, delete_insn_chain,
create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
redirect_branch_edge, force_nonfallthru_and_redirect,
rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
purge_dead_edges, cfg_layout_redirect_edge_and_branch,
cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
* combine.c (combine_instructions, can_combine_p, try_combine,
find_split_point, record_dead_and_set_regs, reg_dead_at_p,
distribute_notes, distribute_links, insn_cuid): Likewise.
* cse.c (fold_rtx, cse_insn, cse_around_loop,
invalidate_skipped_block, cse_set_around_loop,
cse_end_of_basic_block, cse_main, cse_basic_block,
cse_condition_code_reg): Likewise.
* cselib.c (cselib_process_insn): Likewise.
* ddg.c (create_ddg): Likewise.
* df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
Likewise.
* dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
gen_label_die, dwarf2out_var_location): Likewise.
* emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
last_call_insn, active_insn_p, next_label, prev_label,
link_cc0_insns, next_cc0_user, try_split, add_insn_after,
add_insn_before, remove_insn, add_function_usage_to,
reorder_insns, find_line_note, remove_unnecessary_notes,
emit_insn_after_1, classify_insn): Likewise.
* except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
connect_post_landing_pads, sjlj_mark_call_sites,
sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
can_throw_internal, can_throw_external, set_nothrow_function_flags,
convert_to_eh_region_ranges): Likewise.
* explow.c (optimize_save_area_alloca): Likewise.
* expr.c (expand_expr_real): Likewise.
* final.c (insn_current_reference_address, compute_alignments,
shorten_branches, final, scan_ahead_for_unlikely_executed_note,
final_scan_insn, output_asm_label, leaf_function_p): Likewise.
* flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
propagate_block_delete_insn, propagate_one_insn,
init_propagate_block_info, propagate_block, libcall_dead_p,
mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
Likewise.
* function.c (instantiate_virtual_regs, reorder_blocks_1,
expand_function_start, expand_function_end, contains,
thread_prologue_and_epilogue_insns,
reposition_prologue_and_epilogue_notes): Likewise.
* gcse.c (constprop_register, bypass_conditional_jumps,
insert_insn_end_bb, gcse_after_reload): Likewise.
* genemit.c (gen_expand, gen_split): Likewise.
* genpeep.c (gen_peephole, main): Likewise.
* global.c (build_insn_chain): Likewise.
* graph.c (node_data, print_rtl_graph_with_bb): Likewise.
* haifa-sched.c (unlink_other_notes, unlink_line_notes,
get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
restore_line_notes, rm_redundant_line_notes, rm_other_notes,
ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
* ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
merge_if_block, block_jumps_and_fallthru_p, find_if_block,
dead_or_predicable): Likewise.
* integrate.c (try_constants): Likewise.
* jump.c (rebuild_jump_labels, cleanup_barriers,
purge_line_number_notes, init_label_info, mark_all_labels,
squeeze_notes, get_label_before, get_label_after,
reversed_comparison_code_parts, simplejump_p, pc_set,
returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
delete_barrier, delete_prior_computation, delete_computation,
delete_related_insns, delete_for_peephole, redirect_jump):
Likewise.
* lcm.c (optimize_mode_switching): Likewise.
* local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
Likewise.
* loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
* loop-invariant.c (find_exits, find_invariants_bb): Likewise.
* loop-iv.c (simplify_using_assignment): Likewise.
* loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
check_insn_for_givs, check_final_value, update_giv_derive,
basic_induction_var, product_cheap_p, check_dbra_loop,
loop_insn_first_p, last_use_this_basic_block,
canonicalize_condition, get_condition, loop_regs_scan, load_mems,
try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
* modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
sms_schedule_by_order): Likewise.
* optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
* postreload.c (reload_cse_simplify_operands, reload_combine,
reload_cse_move2add): Likewise.
* predict.c (can_predict_insn_p, estimate_probability,
expected_value_to_br_prob, process_note_predictions): Likewise.
* print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
* profile.c (branch_prob): Likewise.
* ra-build.c (live_out_1, livethrough_conflicts_bb,
detect_webs_set_in_cond_jump): Likewise.
* ra-debug.c (ra_print_rtx_object, ra_debug_insns,
ra_print_rtl_with_bb): Likewise.
* ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
* recog.c (next_insn_tests_no_inequality, find_single_use,
split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
* reg-stack.c (next_flags_user, record_label_references,
emit_swap_insn, swap_rtx_condition, subst_stack_regs,
compensate_edge, convert_regs_1): Likewise.
* regclass.c (scan_one_insn): Likewise.
* regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
regmove_optimize, fixup_match_1, single_set_for_csa,
combine_stack_adjustments_for_block): Likewise.
* regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
* reload.c (find_reloads, find_reloads_address_1, subst_reloads,
find_equiv_reg): Likewise.
* reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
reload_as_needed, emit_input_reload_insns, do_output_reload,
delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
Likewise.
* reorg.c (find_end_label, emit_delay_sequence,
delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
get_jump_flags, rare_destination, mostly_true_jump,
try_merge_delay_insns, redundant_insn, own_thread_p,
fill_simple_delay_slots, fill_slots_from_thread,
fill_eager_delay_slots, relax_delay_slots, make_return_insns,
dbr_schedule): Likewise.
* resource.c (find_basic_block, next_insn_no_annul,
find_dead_or_set_registers, mark_target_live_regs): Likewise.
* rtl.h (RTX_PREV): Likewise.
* rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
tablejump_p, computed_jump_p, insns_safe_to_move_p,
find_first_parameter_load, can_hoist_insn_p): Likewise.
* sched-deps.c (get_condition, add_dependence, sched_analyze_2,
sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
* sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
schedule_ebbs): Likewise.
* sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
is_conditionally_protected, can_schedule_ready_p,
add_branch_dependences, debug_dependencies): Likewise.
* stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
Likewise.
* unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
set_dominates_use, ujump_to_loop_cont): Likewise.
* var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
* varasm.c (output_constant_pool_1): Likewise.

From-SVN: r84341

20 years agotree-scalar-evolution.c: New file.
Zdenek Dvorak [Fri, 9 Jul 2004 03:19:14 +0000 (05:19 +0200)]
tree-scalar-evolution.c: New file.

* tree-scalar-evolution.c: New file.
* tree-scalar-evolution.h: New file.
* tree-ssa-loop-niter.c: New file.
* Makefile.in (SCEV_H): New.
(tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
* cfgloop.h (struct loop): Add bounds field.
* tree-flow.h (struct tree_niter_desc): New type.
(number_of_iterations_cond, number_of_iterations_exit,
loop_niter_by_eval, find_loop_niter_by_eval,
estimate_numbers_of_iterations, can_count_iv_in_wider_type,
free_numbers_of_iterations_estimates): Declare.
* tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
* params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
* doc/invoke.texi (max-iterations-to-track): Document.

From-SVN: r84340

20 years agore PR c++/8211 (-Weffc++ warns about copyable classes with func ptr members)
Giovanni Bajo [Fri, 9 Jul 2004 00:59:05 +0000 (00:59 +0000)]
re PR c++/8211 (-Weffc++ warns about copyable classes with func ptr members)

PR c++/8211
PR c++/16165
* class.c (check_field_decls): Improve -Weffc++ warning: do not
warn for pointers to functions/members, or for classes without
destructors.

PR c++/8211
PR c++/16165
* g++.dg/warn/effc3.C: New test.

From-SVN: r84338

20 years agosh.c (sh_va_arg): Initinalize lab_over.
Kaz Kojima [Fri, 9 Jul 2004 00:47:47 +0000 (00:47 +0000)]
sh.c (sh_va_arg): Initinalize lab_over.

* config/sh/sh.c (sh_va_arg): Initinalize lab_over.
* config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
(MODE_AFTER): Add cast appropriately.
* config/sh/sh.md (movdi splitter): Likewise.
(casesi_worker_2): Add const qualifier appropriately.
(eh_return): Remove unused variable.
(insv): Initialize v;

From-SVN: r84337

20 years agommix-protos.h (mmix_expand_builtin_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 00:29:14 +0000 (17:29 -0700)]
mmix-protos.h (mmix_expand_builtin_va_arg): Remove.

        * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
        * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
        * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
        (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.

From-SVN: r84336

20 years agom32r-protos.h (m32r_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 00:19:25 +0000 (17:19 -0700)]
m32r-protos.h (m32r_va_arg): Remove.

        * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
        * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
        * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.

From-SVN: r84335

20 years agoDaily bump.
GCC Administrator [Fri, 9 Jul 2004 00:16:13 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r84333

20 years agoiq2000-protos.h (iq2000_va_arg): Remove.
Richard Henderson [Fri, 9 Jul 2004 00:02:54 +0000 (17:02 -0700)]
iq2000-protos.h (iq2000_va_arg): Remove.

        * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
        * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
        (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
        * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.

From-SVN: r84330