gcc.git
20 years agore PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)
Jason Merrill [Fri, 14 Nov 2003 08:19:59 +0000 (03:19 -0500)]
re PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)

        PR middle-end/12526
        * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
        * calls.c (call_expr_flags): New fn.
        * tree.h: Declare it.

From-SVN: r73589

20 years agore PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)
Jason Merrill [Fri, 14 Nov 2003 08:17:45 +0000 (03:17 -0500)]
re PR middle-end/12526 ([tree-ssa] internal compiler error: Segmentation fault)

        PR middle-end/12526
        * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
        * calls.c (call_expr_flags): New fn.
        * tree.h: Declare it.
        * tree-cfg.c (call_expr_flags): Move to calls.c.
        * tree-flow.h: Move prototype to tree.h.

From-SVN: r73588

20 years agore PR c++/13033 ([tree-ssa] ICE in lower_stmt)
Jason Merrill [Fri, 14 Nov 2003 08:17:33 +0000 (03:17 -0500)]
re PR c++/13033 ([tree-ssa] ICE in lower_stmt)

        PR c++/13033
        * c-simplify.c (gimplify_c_loop): Wrap the increment in a
        CLEANUP_POINT_EXPR.

From-SVN: r73587

20 years agoRemoved, unused and does not compile on all platforms.
Arnaud Charlet [Fri, 14 Nov 2003 08:08:23 +0000 (09:08 +0100)]
Removed, unused and does not compile on all platforms.

From-SVN: r73585

20 years agoNew test.
Richard Henderson [Fri, 14 Nov 2003 07:46:10 +0000 (23:46 -0800)]
New test.

From-SVN: r73581

20 years agore PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)
Giovanni Bajo [Fri, 14 Nov 2003 05:13:45 +0000 (06:13 +0100)]
re PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)

        PR c++/2094
        * g++.dg/template/ptrmem7.C: New test.

From-SVN: r73578

20 years agore PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)
Giovanni Bajo [Fri, 14 Nov 2003 04:51:21 +0000 (05:51 +0100)]
re PR c++/2094 (unimplemented: use of `ptrmem_cst' in template type unification)

        PR c++/2094
        * pt.c (unify): Add support for PTRMEM_CST and
        FIELD_DECL unification.

From-SVN: r73577

20 years agolib1funcs.asm (__udivsi3): Remove.
Kazu Hirata [Fri, 14 Nov 2003 04:35:46 +0000 (04:35 +0000)]
lib1funcs.asm (__udivsi3): Remove.

* config/h8300/lib1funcs.asm (__udivsi3): Remove.
(divmodsi3): Change the name to ___udivsi3.
Update all callers.

From-SVN: r73576

20 years agolibgcc2.c (__negdi2, [...]): Const-ify and/or initialize automatic variables at decla...
Kaveh R. Ghazi [Fri, 14 Nov 2003 02:23:13 +0000 (02:23 +0000)]
libgcc2.c (__negdi2, [...]): Const-ify and/or initialize automatic variables at declaration.

* libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
__mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
__ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
__udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
__fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
__floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
Const-ify and/or initialize automatic variables at declaration.

From-SVN: r73573

20 years agolib1funcs.asm (divmodsi4): Replace all the uses of er4 with er3.
Kazu Hirata [Fri, 14 Nov 2003 02:06:37 +0000 (02:06 +0000)]
lib1funcs.asm (divmodsi4): Replace all the uses of er4 with er3.

* config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
of er4 with er3.  Adjust all callers.

From-SVN: r73572

20 years agojni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to JvGetStringUTFRegion.
Tom Tromey [Fri, 14 Nov 2003 01:48:30 +0000 (01:48 +0000)]
jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to JvGetStringUTFRegion.

* jni.cc (_Jv_JNI_GetStringUTFChars): Pass length of string to
JvGetStringUTFRegion.
* java/lang/natPosixProcess.cc (new_string): Pass length of string
to JvGetStringUTFRegion.
* java/lang/natDouble.cc (parseDouble): Pass length of string to
JvGetStringUTFRegion.
* java/lang/natWin32Process.cc (startProcess): Pass length of
string to JvGetStringUTFRegion.
* java/lang/natClass.cc (forName): Pass length of string to
JvGetStringUTFRegion.
* gnu/gcj/runtime/natNameFinder.cc (getExternalLabel): Pass length
of string to JvGetStringUTFRegion.
* gnu/gcj/convert/natIconv.cc (init): Pass length of string to
JvGetStringUTFRegion.
* gnu/awt/gtk/natGtkLabelPeer.cc (setText): Pass length of string
to JvGetStringUTFRegion.
* gnu/awt/gtk/natGtkButtonPeer.cc (setLabel): Pass length of
string to JvGetStringUTFRegion.

From-SVN: r73571

20 years ago+2003-11-13 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...
Andrew Pinski [Fri, 14 Nov 2003 01:47:55 +0000 (01:47 +0000)]
+2003-11-13 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...

+2003-11-13  Andrew Pinski <apinski@apple.com>
+
+       * config/darwin.c (machopic_output_possible_stub_label):
+       Allow stub symbol be not defined when outputting possible
+       stub label.
+
+2003-11-13  Andrew Pinski <apinski@apple.com>
+
+       * gcc.c-torture/compile/20031113-1.c: New test.
+

From-SVN: r73570

20 years agojniutf.c: New file.
Tom Fitzsimmons [Fri, 14 Nov 2003 01:43:14 +0000 (01:43 +0000)]
jniutf.c: New file.

2003-11-13  Tom Fitzsimmons  <fitzsim@redhat.com>

* libjava.jni/jniutf.c: New file.
* libjava.jni/jniutf.java: New file.
* libjava.jni/jniutf.out: New file.

From-SVN: r73569

20 years agoDaily bump.
GCC Administrator [Fri, 14 Nov 2003 00:16:09 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73566

20 years agodebug.html: Users are allowed to specialize in namespace __gnu_debug...
Douglas Gregor [Fri, 14 Nov 2003 00:15:00 +0000 (00:15 +0000)]
debug.html: Users are allowed to specialize in namespace __gnu_debug...

2003-11-13  Douglas Gregor  <gregod@cs.rpi.edu>

* docs/html/debug.html: Users are allowed to specialize in
namespace __gnu_debug, unlike in the Apple version of the debug
mode. Clear up a confusing double-negative. Note that
std::basic_string does provide extra debugging capabilities, but
not safe iterators.
* include/bits/basic_string.tcc: Make sure there's never an
ambiguity when calling __is_null_pointer.
* include/debug/deque: (deque::erase) Properly handle invalidation
when erasing at the end of the deque.
* include/debug/vector: (vector::swap): Swap _M_guaranteed_capacity.
(vector::clear): Set the guaranteed capacity to 0.
* testsuite/23_containers/deque/invalidation/4.cc: (test04): Test
iterator invalidation when erasing at the end of the deque.

From-SVN: r73564

20 years agore PR libstdc++/13007 (basic_streambuf::pubimbue, imbue wrong)
Paolo Carlini [Thu, 13 Nov 2003 23:13:22 +0000 (23:13 +0000)]
re PR libstdc++/13007 (basic_streambuf::pubimbue, imbue wrong)

2003-11-13  Paolo Carlini  <pcarlini@suse.de>
    Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/13007
* include/bits/fstream.tcc (imbue): Don't touch the stored
locale.
* include/std/std_streambuf.h (imbue): According to the
standard, base class version does nothing.
(pubimbue): Store the locale.
* testsuite/27_io/basic_filebuf/imbue/char/13007.cc: New.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/13007.cc: New.
* testsuite/27_io/basic_filebuf/imbue/char/2.cc: Tweak.
* testsuite/27_io/basic_filebuf/imbue/wchar_t/2.cc: Likewise.
* testsuite/27_io/basic_streambuf/imbue/char/13007-1.cc: New.
* testsuite/27_io/basic_streambuf/imbue/char/13007-2.cc: New.
* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-1.cc: New.
* testsuite/27_io/basic_streambuf/imbue/wchar_t/13007-2.cc: New.

Co-Authored-By: Petur Runolfsson <peturr02@ru.is>
From-SVN: r73563

20 years agolib1funcs.asm (___udivsi3): Jump to reti instead of exitdiv.
Kazu Hirata [Thu, 13 Nov 2003 22:28:07 +0000 (22:28 +0000)]
lib1funcs.asm (___udivsi3): Jump to reti instead of exitdiv.

* config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
instead of exitdiv.
(___umodsi3): Likewise.
(exitdiv): Do not restore any register.
(reti): Restore registers.

From-SVN: r73560

20 years ago* tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
Steven Bosscher [Thu, 13 Nov 2003 20:50:40 +0000 (20:50 +0000)]
* tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.

From-SVN: r73557

20 years ago* config/h8300/lib1funcs.asm: Fix comment typos.
Kazu Hirata [Thu, 13 Nov 2003 19:46:01 +0000 (19:46 +0000)]
* config/h8300/lib1funcs.asm: Fix comment typos.

From-SVN: r73556

20 years agolib1funcs.asm (udivsi3): Don't save/restore unused registers.
Kazu Hirata [Thu, 13 Nov 2003 19:42:03 +0000 (19:42 +0000)]
lib1funcs.asm (udivsi3): Don't save/restore unused registers.

* config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
unused registers.  Don't jump to exitdiv.
(umodsi3): Likewise.

From-SVN: r73555

20 years agore PR c/13029 (static consts and -Wunused-variable)
Mark Mitchell [Thu, 13 Nov 2003 19:40:19 +0000 (19:40 +0000)]
re PR c/13029 (static consts and -Wunused-variable)

PR c/13029
* toplev.c (check_global_declarations): Do not warn about unused
static consts.

PR c/13029
* gcc.dg/unused-4.c: Update.

Co-Authored-By: Kean Johnston <jkj@sco.com>
From-SVN: r73554

20 years agore PR libstdc++/12594 (DRs 60 [TC] and 63 [TC] not implemented)
Petur Runolfsson [Thu, 13 Nov 2003 17:43:48 +0000 (17:43 +0000)]
re PR libstdc++/12594 (DRs 60 [TC] and 63 [TC] not implemented)

2003-11-13  Petur Runolfsson  <peturr02@ru.is>

PR libstdc++/12594
* include/bits/ostream.tcc
(basic_ostream::operator<<(basic_ostream& (*)(basic_ostream&)),
basic_ostream::operator<<(basic_ios& (*)(basic_ios&)),
basic_ostream::operator<<(ios_base& (*)(ios_base&))):
Implement the resolution of DR 60 (TC): These are not formatted
output functions so don't construct sentry objects and don't
catch exceptions.
(basic_ostream::put, basic_ostream::write): Implement the
resolution of DR 63 (TC) by catching exceptions and setting
badbit.
(basic_ostream::flush): Implement the resolution of DR 60 (TC):
This is not an unformatted output function so don't construct
a sentry object.
* testsuite/testsuite_io.h (sync_streambuf): Define.
* testsuite/27_io/basic_ostream/flush/char/2.cc: New test.
* testsuite/27_io/basic_ostream/inserters_other/char/5.cc: New test.
* testsuite/27_io/basic_ostream/put/char/1.cc: New test.
* testsuite/27_io/basic_ostream/write/char/1.cc: New test.

From-SVN: r73551

20 years agolib1funcs.asm (DenHighNonZero): Optimize using the approximate quotient method.
Pavel Pisa [Thu, 13 Nov 2003 17:10:23 +0000 (18:10 +0100)]
lib1funcs.asm (DenHighNonZero): Optimize using the approximate quotient method.

* config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
the approximate quotient method.

Co-Authored-By: Kazu Hirata <kazu@cs.umass.edu>
From-SVN: r73550

20 years ago* decl.c (grokfndecl): Change OK to type tree.
Richard Earnshaw [Thu, 13 Nov 2003 16:34:42 +0000 (16:34 +0000)]
* decl.c (grokfndecl): Change OK to type tree.

From-SVN: r73549

20 years ago11305-1: Fix, closely following the testcase included in the PR.
Paolo Carlini [Thu, 13 Nov 2003 14:19:39 +0000 (14:19 +0000)]
11305-1: Fix, closely following the testcase included in the PR.

2003-11-13  Paolo Carlini  <pcarlini@suse.de>

* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1:
Fix, closely following the testcase included in the PR.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-2: Ditto.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-3: Ditto.
* testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-4: Ditto.

From-SVN: r73548

20 years agocombine.c (distribute_notes): When re-distributing the notes from an insn we are...
Richard Earnshaw [Thu, 13 Nov 2003 14:05:55 +0000 (14:05 +0000)]
combine.c (distribute_notes): When re-distributing the notes from an insn we are about to delete...

* combine.c (distribute_notes): When re-distributing the notes from
an insn we are about to delete, ensure we can't end up with a cyclic
list of notes.

From-SVN: r73547

20 years ago* gnu/java/nio/natSelectorImplPosix.cc
Mohan Embar [Thu, 13 Nov 2003 10:09:40 +0000 (10:09 +0000)]
* gnu/java/nio/natSelectorImplPosix.cc
(helper_put_filedescriptors): Change to static linkage.
(helper_get_filedescriptors): Likewise.

From-SVN: r73545

20 years agore PR rtl-optimization/12926 (Wrong value after assignment in initialize list using...
Eric Botcazou [Thu, 13 Nov 2003 09:48:36 +0000 (10:48 +0100)]
re PR rtl-optimization/12926 (Wrong value after assignment in initialize list using bit-fields)

PR optimization/12926
* expr.c (expand_assignment) [COMPONENT_REF]: Don't put
the UNCHANGING_RTX_P flag on memory references to read-only
components that are not addressable.

From-SVN: r73542

20 years agolib1funcs.asm (divmodsi4): Clear S0P in DenHighNonZero.
Kazu Hirata [Thu, 13 Nov 2003 04:26:00 +0000 (04:26 +0000)]
lib1funcs.asm (divmodsi4): Clear S0P in DenHighNonZero.

* config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
DenHighNonZero.

From-SVN: r73538

20 years agore PR rtl-optimization/12275 ([unit-at-a-time] ICE in htab_clear_slot)
Jan Hubicka [Thu, 13 Nov 2003 02:07:57 +0000 (03:07 +0100)]
re PR rtl-optimization/12275 ([unit-at-a-time] ICE in htab_clear_slot)

PR opt/12275
* c-decl.c (finish_decl): Use change_decl_assembler_name.
* c-pragma.c (handle_pragma_redefine_extname): Likewise.
* varasm.c (make_decl_rtl): Likewise.
* cgraph.c (change_decl_assembler_name): New function.
* tree.h (set_decl_assembler_name): Kill dead declaration.
(change_decl_assembler_name): Declare.

* decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
* decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.

From-SVN: r73532

20 years agore PR rtl-optimization/12547 ([tree-ssa] simple java code with -fcheck-references...
Jason Merrill [Thu, 13 Nov 2003 01:25:24 +0000 (20:25 -0500)]
re PR rtl-optimization/12547 ([tree-ssa] simple java code with -fcheck-references causes gimplification failed)

        PR optimization/12547
        * lang.c (java_tree_inlining_walk_subtrees): Just walk
        BLOCK_EXPR_BODY directly.

From-SVN: r73530

20 years agoconfigury.html: XHTML tweak.
Jonathan Wakely [Thu, 13 Nov 2003 01:21:28 +0000 (01:21 +0000)]
configury.html: XHTML tweak.

2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>

* docs/html/17_intro/configury.html: XHTML tweak.

From-SVN: r73529

20 years agodebug_mode.html: XHTML fixes.
Jonathan Wakely [Thu, 13 Nov 2003 00:49:58 +0000 (00:49 +0000)]
debug_mode.html: XHTML fixes.

2003-11-13  Jonathan Wakely <redi@gcc.gnu.org>

* docs/html/debug_mode.html: XHTML fixes.

From-SVN: r73526

20 years agodebug_mode.html: Update.
Benjamin Kosnik [Thu, 13 Nov 2003 00:25:23 +0000 (00:25 +0000)]
debug_mode.html: Update.

2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>

* docs/html/debug_mode.html: Update.
* docs/html/17_intro/TODO: Update.

From-SVN: r73525

20 years agoDaily bump.
GCC Administrator [Thu, 13 Nov 2003 00:16:08 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73523

20 years agotree.c (build_target_expr_with_type): Treate VA_ARG_EXPR like CONSTRUCTOR.
Mark Mitchell [Wed, 12 Nov 2003 23:48:25 +0000 (23:48 +0000)]
tree.c (build_target_expr_with_type): Treate VA_ARG_EXPR like CONSTRUCTOR.

* tree.c (build_target_expr_with_type): Treate VA_ARG_EXPR like
CONSTRUCTOR.

From-SVN: r73521

20 years agolib1funcs.asm (___mulsi3): Don't save/restore an unused register.
Kazu Hirata [Wed, 12 Nov 2003 23:39:48 +0000 (23:39 +0000)]
lib1funcs.asm (___mulsi3): Don't save/restore an unused register.

* config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
an unused register.

From-SVN: r73520

20 years agore PR bootstrap/12752 (irix bootstrap failure - genmultilib)
Richard Sandiford [Wed, 12 Nov 2003 23:03:56 +0000 (23:03 +0000)]
re PR bootstrap/12752 (irix bootstrap failure - genmultilib)

PR bootstrap/12752
* config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
(MULTILIB_OSDIRNAMES): Reorder accordingly.

From-SVN: r73518

20 years agors6000-protos.h (rs6000_initial_elimination_offset): Add.
Janis Johnson [Wed, 12 Nov 2003 22:52:09 +0000 (22:52 +0000)]
rs6000-protos.h (rs6000_initial_elimination_offset): Add.

2003-11-12  Janis Johnson  <janis187@us.ibm.com>

* rs6000-protos.h (rs6000_initial_elimination_offset): Add.
(rs6000_stack_info): Remove.  (debug_stack_info): Remove.
(rs6000_emit_eh_reg_restore): Add
* rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
of vars_size and total_size to HOST_WIDE_INT.
(emit_frame_save): Change parameter size to HOST_WIDE_INT.
(rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
(debug_stack_info): Make static; change output format of HOST_WIDE_INT
values.
(rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
(rs6000_initial_elimination_offset): New, with code formerly in
INITIAL_ELIMINATION_OFFSET.
* rs6000.h (rs6000_stack_t): Remove.
(INITIAL_ELIMINATION_OFFSET): Replace code with call to function
rs6000_initial_elimination_offset.
* rs6000.md (UNSPECV_EH_RR split): Replace code with call to
rs6000_emit_eh_reg_restore.

From-SVN: r73517

20 years ago* g++.dg/parse/crash10.C: Remove bogus error marker.
Mark Mitchell [Wed, 12 Nov 2003 22:31:22 +0000 (22:31 +0000)]
* g++.dg/parse/crash10.C: Remove bogus error marker.

From-SVN: r73516

20 years agodecl.c (cp_make_fname_decl): When creating a top-level __FUNCTION__-like symbol,...
Mark Mitchell [Wed, 12 Nov 2003 22:20:34 +0000 (22:20 +0000)]
decl.c (cp_make_fname_decl): When creating a top-level __FUNCTION__-like symbol, do register it with pushdecl.

* decl.c (cp_make_fname_decl): When creating a top-level
__FUNCTION__-like symbol, do register it with pushdecl.

From-SVN: r73515

20 years agoGtkComponentPeer.java (prepareImage): Remove null check.
Tom Fitzsimmons [Wed, 12 Nov 2003 22:03:49 +0000 (22:03 +0000)]
GtkComponentPeer.java (prepareImage): Remove null check.

2003-11-12  Tom Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Remove
null check.
* gnu/java/awt/peer/gtk/GtkToolkit.java (prepareImage): Likewise.
* java/awt/Component.java (prepareImage): Likewise.

From-SVN: r73513

20 years agoadadecode.c: Use <> form of include for ctype.h.
Rainer Orth [Wed, 12 Nov 2003 21:30:24 +0000 (21:30 +0000)]
adadecode.c: Use <> form of include for ctype.h.

* adadecode.c: Use <> form of include for ctype.h.
* sysdep.c [IN_RTS]: Use <> form of include for time.h.

From-SVN: r73512

20 years agore PR target/6552 (make gnatlib_and_tools fails compiling a-chahan.adb on IRIX 6.2)
Rainer Orth [Wed, 12 Nov 2003 21:24:19 +0000 (21:24 +0000)]
re PR target/6552 (make gnatlib_and_tools fails compiling a-chahan.adb on IRIX 6.2)

* 5gsystem.ads (Functions_Return_By_DSP): Set to False.
Works around PR middle-end/6552.

From-SVN: r73511

20 years agorun_acats (host_gnatmake): Use type in a /bin/sh script.
Rainer Orth [Wed, 12 Nov 2003 21:21:55 +0000 (21:21 +0000)]
run_acats (host_gnatmake): Use type in a /bin/sh script.

* ada/acats/run_acats (host_gnatmake): Use type in a /bin/sh script.
(host_gcc): Likewise.
(ROOT): Honor $PWDCMD.
(BASE): Likewise.
* ada/acats/run_all.sh (dir): Honor $PWDCMD.

From-SVN: r73510

20 years agodecl.c (finish_case_label): Do not check that we are within a switch statement here.
Mark Mitchell [Wed, 12 Nov 2003 19:57:56 +0000 (19:57 +0000)]
decl.c (finish_case_label): Do not check that we are within a switch statement here.

* decl.c (finish_case_label): Do not check that we are within a
switch statement here.
* parser.c (struct cp_parser): Add in_iteration_statement_p and
in_switch_statement_p.
(cp_parser_new): Initialize them.
(cp_parser_labeled_statement): Check validity of case labels
here.
(cp_parser_selection_statement): Set in_switch_statement_p.
(cp_parser_iteration_statement): Set in_iteration_statement_p.
(cp_parser_jump_statement): Check validity of break/continue
statements here.

From-SVN: r73508

20 years agoc-typeck.c (c_convert_parm_for_inlining): Add argnum...
Mike Stump [Wed, 12 Nov 2003 19:53:17 +0000 (19:53 +0000)]
c-typeck.c (c_convert_parm_for_inlining): Add argnum...

* c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
is the argumnt we are processing so that warnings and errors
will have that information.
* c-tree.h (c_convert_parm_for_inlining): Add argnum.
* lang-hooks-def.h
(lhd_tree_inlining_convert_parm_for_inlining): Likewse.
* langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
* langhooks.h (convert_parm_for_inlining): Likewise.
* tree-inline.c (initialize_inlined_parameters): Compute and
pass argnum down.

From-SVN: r73507

20 years agore PR libffi/11147 (fficonfig.h is abi-specific)
Andreas Tobler [Wed, 12 Nov 2003 18:18:30 +0000 (19:18 +0100)]
re PR libffi/11147 (fficonfig.h is abi-specific)

2003-11-12  Andreas Tobler  <a.tobler@schweiz.ch>

* configure.in, include/Makefile.am: PR libgcj/11147, install
the ffitarget.h header file in a gcc versioned and target
dependent place.
* configure: Regenerated.
* Makefile.in, include/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.

From-SVN: r73504

20 years agore PR c++/12735 (duplicate error messages for redeclaration errors)
Mark Mitchell [Wed, 12 Nov 2003 18:15:02 +0000 (18:15 +0000)]
re PR c++/12735 (duplicate error messages for redeclaration errors)

PR c++/12735
* cp-tree.h (duplicate_decls): Return a tree.
* decl.c (duplicate_decls): Clarify documentation.  Return
error_mark_node to indicate a failed redeclaration.
* friend.c (do_friend): Handle that case.
* name-lookup.c (pushdecl): Likewise.

From-SVN: r73503

20 years agore PR rtl-optimization/12953 (tree inline bug and fix)
Alexey Starovoytov [Wed, 12 Nov 2003 18:12:57 +0000 (18:12 +0000)]
re PR rtl-optimization/12953 (tree inline bug and fix)

2003-11-12  Alexey Starovoytov  <alexey.starovoytov@sun.com>
    Roger Sayle  <roger@eyesopen.com>

PR optimization/12953
* tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
before switch by FUNCTION_CODE.

Co-Authored-By: Roger Sayle <roger@eyesopen.com>
From-SVN: r73502

20 years agognu_java_awt_peer_gtk_GtkLabelPeer.c (setAlignment): Rename to nativeSetAlignment.
Tom Fitzsimmons [Wed, 12 Nov 2003 17:38:22 +0000 (17:38 +0000)]
gnu_java_awt_peer_gtk_GtkLabelPeer.c (setAlignment): Rename to nativeSetAlignment.

2003-11-12  Tom Fitzsimmons  <fitzsim@redhat.com>

* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (setAlignment):
Rename to nativeSetAlignment.

From-SVN: r73500

20 years agore PR java/11045 (int cast bug)
Andrew Haley [Wed, 12 Nov 2003 17:00:53 +0000 (17:00 +0000)]
re PR java/11045 (int cast bug)

2003-11-12  Andrew Haley  <aph@redhat.com>

        PR java/11045
        * parse.y (fold_constant_for_init): Check that we really do have a
        constant.

From-SVN: r73497

20 years agoarm.md (storehi): Avoid use of explicit subreg.
Richard Earnshaw [Wed, 12 Nov 2003 16:15:07 +0000 (16:15 +0000)]
arm.md (storehi): Avoid use of explicit subreg.

* arm.md (storehi): Avoid use of explicit subreg.
(storehi_bigend, storeinthi, movhi_bigend): Likewise.

From-SVN: r73496

20 years agoxfail frv-*-*.
Catherine Moore [Wed, 12 Nov 2003 16:02:48 +0000 (16:02 +0000)]
xfail frv-*-*.

From-SVN: r73495

20 years agore PR java/11533 (Inlining drops static initialization of inner class)
Andrew Haley [Wed, 12 Nov 2003 15:24:42 +0000 (15:24 +0000)]
re PR java/11533 (Inlining drops static initialization of inner class)

2003-11-12  Andrew Haley  <aph@redhat.com>

        PR java/11533
        * lang.c (merge_init_test_initialization): Clear DECL_INITIAL for
        init_test_decls being inlined.

        PR java/12890:
        * parse.y (do_resolve_class): Check return value from
        breakdown_qualified().

From-SVN: r73494

20 years ago* config/sh/sh.md (prefetch): New pattern.
J"orn Rennecke [Wed, 12 Nov 2003 14:05:42 +0000 (14:05 +0000)]
* config/sh/sh.md (prefetch): New pattern.

From-SVN: r73492

20 years agointdoc.in (Signal Intrinsic (subroutine)): Fix texinfo warning using @code.
Andreas Jaeger [Wed, 12 Nov 2003 11:21:34 +0000 (12:21 +0100)]
intdoc.in (Signal Intrinsic (subroutine)): Fix texinfo warning using @code.

2003-11-12  Andreas Jaeger  <aj@suse.de>

* intdoc.in (Signal Intrinsic (subroutine)): Fix texinfo warning
using @code.
* intdoc.texi: Regenerated.

From-SVN: r73491

20 years agoc99-const-expr-2.c (foo): Avoid extra warning on 64-bit systems.
Andreas Jaeger [Wed, 12 Nov 2003 11:19:10 +0000 (12:19 +0100)]
c99-const-expr-2.c (foo): Avoid extra warning on 64-bit systems.

* gcc.dg/c99-const-expr-2.c (foo): Avoid extra warning on 64-bit
systems.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r73490

20 years agointdoc.texi (Signal Intrinsic (subroutine)): Fix texinfo warning using @code.
Andreas Jaeger [Wed, 12 Nov 2003 09:58:53 +0000 (10:58 +0100)]
intdoc.texi (Signal Intrinsic (subroutine)): Fix texinfo warning using @code.

* intdoc.texi (Signal Intrinsic (subroutine)): Fix texinfo warning
using @code.

From-SVN: r73489

20 years agoResync.
Arnaud Charlet [Wed, 12 Nov 2003 08:33:46 +0000 (09:33 +0100)]
Resync.

From-SVN: r73488

20 years agoreload1.c (reload): Verify that addresses for reg_equiv_* are valid for the architecture.
Eric Christopher [Wed, 12 Nov 2003 07:24:25 +0000 (07:24 +0000)]
reload1.c (reload): Verify that addresses for reg_equiv_* are valid for the architecture.

2003-11-11  Eric Christopher  <echristo@redhat.com>

        * reload1.c (reload): Verify that addresses for
        reg_equiv_* are valid for the architecture.

From-SVN: r73487

20 years agoc++config: Move using directive...
Benjamin Kosnik [Wed, 12 Nov 2003 07:12:20 +0000 (07:12 +0000)]
c++config: Move using directive...

2003-11-12  Benjamin Kosnik  <bkoz@redhat.com>

* include/bits/c++config: Move using directive...
* include/debug/formatter.h: ...here.

From-SVN: r73486

20 years agoc90-const-expr-2.c (foo): Avoid extra warning on 64-bit systems.
Andreas Jaeger [Wed, 12 Nov 2003 06:44:46 +0000 (07:44 +0100)]
c90-const-expr-2.c (foo): Avoid extra warning on 64-bit systems.

2003-11-12  Andreas Jaeger  <aj@suse.de>
    Jakub Jelinek  <jakub@redhat.com>
    Andrew Pinski  <pinskia@physics.uc.edu>
    Richard Henderson  <rth@redhat.com>

* gcc.dg/c90-const-expr-2.c (foo): Avoid extra warning on 64-bit
systems.

* gcc.dg/20030926-1.c: Make it work on x86_64 systems.
* gcc.dg/i386-pentium4-not-mull.c: Likewise.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r73485

20 years agojni.cc (JNI_CreateJavaVM): Remove JNIEXPORT.
Danny Smith [Wed, 12 Nov 2003 05:56:44 +0000 (05:56 +0000)]
jni.cc (JNI_CreateJavaVM): Remove JNIEXPORT.

* jni.cc (JNI_CreateJavaVM): Remove JNIEXPORT.
(JNI_GetCreatedJavaVMs): Likewise.
(JNI_GetDefaultJavaVMInitArgs): Likewise.
* include/jni.h (JNIIMPEXP): Remove definition
and replace with...
(__GCJ_JNIIMPEXP__): New macro, applicable only to libgcj
symbols,
(__GCJ_DLL__): New macro, controlling __GCJ_JNIIMPEXP__.

From-SVN: r73484

20 years agore PR libstdc++/12947 (Demangler bug)
Carlo Wood [Wed, 12 Nov 2003 02:18:37 +0000 (02:18 +0000)]
re PR libstdc++/12947 (Demangler bug)

PR libstdc++/12947
* bits/demangle.h
(_GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS): Added.
(_GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME): Added.
(session<Allocator>::next_peek() const): Added.
(decode_non_negative_decimal_integer(string_type&)):
Renamed from decode_decimal_integer(string_type&).
(session<Allocator>::decode_nested_name):
Decode <template_param> as well.
(session<Allocator>::add_substitution):
Handle <template-param> for <nested-name>'s.
(enum xary_nt): Added.
(struct entry_st): Added member `xary_nt type' instead of `bool unary'.
(symbol_name_table_c): Updated for `entry_st::type' and additional
operators (unary `operator+' and `sizeof(type)').
(offset_table_c): Updated for new operators (causing a new hash map).
(decode_operator_name): Match the updated hash map.
(session<Allocator>::decode_expression):
Support for `sizeof ([typename] type)' (st),
dependent names (sr) and casting operator (cv).  Handle
`entry_st::type'.  Handle _GLIBCXX_DEMANGLER_STYLE_COMPACT_EXPR_OPS
and _GLIBCXX_DEMANGLER_STYLE_SIZEOF_TYPENAME.
(session<Allocator>::decode_type_with_postfix):
Support `extern "C"' function types (FY).
* testsuite/demangle/regression/cw-16.cc: Added tests for the
added functionality.
* testsuite/demangle/regression/3111-2.cc: sizeof now has a space
appended.

From-SVN: r73480

20 years agofunction.c (purge_addressof_1): Add libcall check.
Eric Christopher [Wed, 12 Nov 2003 02:10:12 +0000 (02:10 +0000)]
function.c (purge_addressof_1): Add libcall check.

2003-11-11  Eric Christopher  <echristo@redhat.com>

* function.c (purge_addressof_1): Add libcall check.
Remove test for cached replacements on fallback case.
Simplify mode comparisons. Add libcall test for
paradoxical subregs.

From-SVN: r73479

20 years ago* config/h8300/t-h8300: Fix an obsolete comment.
Kazu Hirata [Wed, 12 Nov 2003 02:03:58 +0000 (02:03 +0000)]
* config/h8300/t-h8300: Fix an obsolete comment.

From-SVN: r73478

20 years agore PR libstdc++/12875 (Weird behaviour in basic_filebuf::setbuf())
Paolo Carlini [Wed, 12 Nov 2003 01:14:34 +0000 (01:14 +0000)]
re PR libstdc++/12875 (Weird behaviour in basic_filebuf::setbuf())

2003-11-11  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/12875
* include/bits/fstream.tcc (setbuf): Don't do anything
after open(), in particular don't discard data.
(_M_allocate_internal_buffer): Tweak to not allocate memory
in case the buffer is provided by the user via setbuf.
* include/ext/stdio_filebuf.h: Tweak comment.
* testsuite/27_io/basic_filebuf/setbuf/char/12875-1.cc: New.
* testsuite/27_io/basic_filebuf/setbuf/char/12875-2.cc: Likewise.
* testsuite/27_io/basic_filebuf/setbuf/char/2.cc: Tweak, now
setbuf does nothing after open().
* testsuite/27_io/basic_filebuf/setbuf/char/3.cc: Likewise.

From-SVN: r73477

20 years agoMakefile.am: Add GdkPixbufDecoder.java and gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
Thomas Fitzsimmons [Wed, 12 Nov 2003 00:37:34 +0000 (00:37 +0000)]
Makefile.am: Add GdkPixbufDecoder.java and gnu_java_awt_peer_gtk_GdkPixbufDecoder.c

2003-11-11  Thomas Fitzsimmons  <fitzsim@redhat.com>

* Makefile.am: Add GdkPixbufDecoder.java and
gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
* Makefile.in: Regenerate.
* gnu/java/awt/image/ImageDecoder.java (ImageDecoder(byte[],int,int)):
New constructor.
(startProduction): Create ByteArrayInputStream when url and filename are
null.
(produce): Declare stream parameter as InputStream.
* gnu/java/awt/image/XBMDecoder.java (produce): Declare stream parameter
as InputStream.
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
(GdkPixbufDecoder(byte[],int,int)): New constructor.
(produce): Declare stream parameter as InputStream.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java (prepareImage): Throw NPE
if image is null.  Set image's observer before running PrepareImage
thread.  Pass image to startProduction.
* gnu/java/awt/peer/gtk/GtkImage.java: Add null checks before calls to
source's member functions.
(observer): New field.
(setObserver): New method.
(setDimensions, setPixels, imageComplete): Call observer's imageUpdate.
* gnu/java/awt/peer/gtk/GtkToolkit.java (checkImage, getImage): Return
new GtkImage.
(prepareImage): Implement.
* java/awt/Component.java: Add static fields incrementalDraw and
redrawRate.
(imageUpdate): Implement.
(createImage): Call Toolkit's createImage if peer is null.
(prepareImage): Throw NPE if image is null.
* java/awt/MediaTracker.java: Fix return value.

From-SVN: r73476

20 years agoDaily bump.
GCC Administrator [Wed, 12 Nov 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73474

20 years agoNew tests.
Richard Henderson [Tue, 11 Nov 2003 22:33:06 +0000 (14:33 -0800)]
New tests.

From-SVN: r73469

20 years agocp-tree.h (DECL_NAMESPACE_ASSOCIATIONS): New macro.
Jason Merrill [Tue, 11 Nov 2003 22:27:32 +0000 (17:27 -0500)]
cp-tree.h (DECL_NAMESPACE_ASSOCIATIONS): New macro.

        * cp-tree.h (DECL_NAMESPACE_ASSOCIATIONS): New macro.
        * name-lookup.c (parse_using_directive): New fn.
        (is_associated_namespace): New fn.
        (arg_assoc_namespace): Also check associated namespaces.
        * name-lookup.h: Declare new fns.
        * pt.c (maybe_process_partial_specialization): Allow
        specialization in associated namespace.
        * parser.c (cp_parser_using_directive): Accept attributes.  Use
        parse_using_directive.

From-SVN: r73468

20 years ago* gcc.c-torture/execute/20020227-1.x: Test passes also on x86_64.
Andreas Jaeger [Tue, 11 Nov 2003 21:54:04 +0000 (22:54 +0100)]
* gcc.c-torture/execute/20020227-1.x: Test passes also on x86_64.

From-SVN: r73467

20 years ago* gcc.c-torture/execute/20020720-1.x: Test passes also on x86_64.
Andreas Jaeger [Tue, 11 Nov 2003 21:48:05 +0000 (22:48 +0100)]
* gcc.c-torture/execute/20020720-1.x: Test passes also on x86_64.

From-SVN: r73466

20 years agoUndo accidental GET_MODE_BITSIZE damage.
James E Wilson [Tue, 11 Nov 2003 20:54:38 +0000 (20:54 +0000)]
Undo accidental GET_MODE_BITSIZE damage.

(store_bit_field, extract_bit_field): Revert last two
changes.

From-SVN: r73463

20 years agore PR java/12915 (Broken String concatenation)
Tom Tromey [Tue, 11 Nov 2003 20:20:07 +0000 (20:20 +0000)]
re PR java/12915 (Broken String concatenation)

PR java/12915:
* parse.y (merge_string_cste): Handle case where we have a
pointer that happens to be zero, not null_pointer_node.

From-SVN: r73461

20 years agoFor PR java/12915:
Tom Tromey [Tue, 11 Nov 2003 20:11:43 +0000 (20:11 +0000)]
For PR java/12915:

* libjava.lang/PR12915.java: New file.
* libjava.lang/PR12915.out: New file.

From-SVN: r73460

20 years ago[multiple changes]
Benjamin Kosnik [Tue, 11 Nov 2003 20:09:16 +0000 (20:09 +0000)]
[multiple changes]

2003-11-11  Doug Gregor  <gregod@cs.rpi.edu>

* docs/html/debug.html: Document libstdc++ debug mode.
* docs/html/debug_mode.html: Document libstdc++ debug mode design.
* docs/html/test.html: Document how to test under debug mode.
* docs/html/17_intro/howto.html: Document debug-mode macros.
* include/Makefile.am: Install debug-mode headers.
* src/Makefile.am: Include debug.cc.
* include/bits/basic_string.tcc:
  (basic_string::_S_construct): Fix NULL pointer check.
  (__is_null_pointer): New.
  Add precondition annotations.
* include/bits/stream_iterator.h (istream_iterator,
ostream_iterator): Added precondition annotations.
* include/bits/streambuf_iterator.h (istreambuf_iterator): Ditto.
* include/bits/stl_queue.h (queue, priority_queue): Ditto.
* include/bits/stl_stack.h (stack): Ditto.
* include/bits/basic_string.h (basic_string): Ditto.
* include/bits/basic_string.tcc (basic_string): Ditto.
* include/std/std_memory.h (auto_ptr): Ditto.
* include/std/std_valarray.h (valarray): Ditto.
* include/bits/stl_algo.h: Added algorithm precondition
annotations.
* include/bits/stl_algobase.h: Added algorithm precondition
annotations.
* include/bits/stl_numeric.h: Ditto.
* include/ext/algorithm: Added algorithm precondition
annotations.
(__is_heap): Moved away from here.
* include/bits/stl_heap.h: Added algorithm precondition
annotations.
(__is_heap): Moved to the top of this file.
(__is_heap): Added iterator range overloads.
* testsuite/20_util/auto_ptr_neg.cc: Fix line numbers to match up
with changes in std_memory.h.
* testsuite/23_containers/list/operators/4.cc: Don't verify
performance guarantees when in debug mode.
* testsuite/23_containers/bitset/invalidation/1.cc: New.
* testsuite/23_containers/deque/invalidation/1.cc: New.
* testsuite/23_containers/deque/invalidation/2.cc: New.
* testsuite/23_containers/deque/invalidation/3.cc: New.
* testsuite/23_containers/deque/invalidation/4.cc: New.
* testsuite/23_containers/list/invalidation/1.cc: New.
* testsuite/23_containers/list/invalidation/2.cc: New.
* testsuite/23_containers/list/invalidation/3.cc: New.
* testsuite/23_containers/list/invalidation/4.cc: New.
* testsuite/23_containers/map/invalidation/1.cc: New.
* testsuite/23_containers/map/invalidation/2.cc: New.
* testsuite/23_containers/multimap/invalidation/1.cc: New.
* testsuite/23_containers/multimap/invalidation/2.cc: New.
* testsuite/23_containers/multiset/invalidation/1.cc: New.
* testsuite/23_containers/multiset/invalidation/2.cc: New.
* testsuite/23_containers/set/invalidation/1.cc: New.
* testsuite/23_containers/set/invalidation/2.cc: New.
* testsuite/23_containers/vector/invalidation/1.cc: New.
* testsuite/23_containers/vector/invalidation/2.cc: New.
* testsuite/23_containers/vector/invalidation/3.cc: New.
* testsuite/23_containers/vector/invalidation/4.cc: New.
* testsuite/25_algorithms/heap.cc: Don't verify
performance guarantees when in debug mode.
* include/debug/bitset: New.
* include/debug/debug.h: New.
* include/debug/deque: New.
* include/debug/formatter.h: New.
* include/debug/hash_map: New.
* include/debug/hash_map.h: New.
* include/debug/hash_multimap.h: New.
* include/debug/hash_set: New.
* include/debug/hash_set.h: New.
* include/debug/hash_multiset.h: New.
* include/debug/list: New.
* include/debug/map: New.
* include/debug/map.h: New.
* include/debug/multimap.h: New.
* include/debug/multiset.h: New.
* include/debug/safe_base.h: New.
* include/debug/safe_iterator.h: New.
* include/debug/safe_iterator.tcc: New.
* include/debug/safe_sequence.h: New.
* include/debug/set: New.
* include/debug/set.h: New.
* include/debug/string: New.
* include/debug/vector: New.
* src/debug.cc: New.
* config/linker-map.gnu: Add debug mode symbols.

2003-11-11  Benjamin Kosnik  <bkoz@redhat.com>

* src/string-inst.cc: Tweak namespaces.
* src/misc-inst.cc: Same.
* docs/html/debug.html: Edits.
* config/link-map.gnu: Remove cruft.

* include/bits/c++config: Add in namespace associations.
* include/std/std_bitset.h: Adjust namespace to __gnu_norm,
comment tweaks.
* include/bits/deque.tcc: Same.
* include/bits/list.tcc: Same.
* include/bits/stl_bvector.h: Same.
* include/bits/stl_deque.h: Same.
* include/bits/stl_list.h: Same.
* include/bits/stl_map.h: Same.
* include/bits/stl_multimap.h: Same.
* include/bits/stl_multiset.h: Same.
* include/bits/stl_set.h: Same.
* include/bits/stl_vector.h: Same.
* include/bits/vector.tcc: Same.

* include/std/std_algorithm.h: Remove markup comments.
* include/std/std_functional.h: Same.
* include/std/std_iterator.h: Same.
* include/std/std_numeric.h: Same.
* include/std/std_utility.h: Same.
* include/bits/stl_queue.h: Formatting tweaks.
* include/bits/stl_stack.h: Same.
* include/std/std_deque.h: Include debugging version in debug mode.
* include/std/std_list.h: Same.
* include/std/std_map.h: Same.
* include/std/std_set.h: Same.
* include/std/std_vector.h: Same.
* include/std/std_queue.h: Use deque, vector.
* include/std/std_stack.h: Same.

From-SVN: r73459

20 years agojacks.exp (gcj_jacks_write): Enable "assert" constraint.
Tom Tromey [Tue, 11 Nov 2003 20:04:22 +0000 (20:04 +0000)]
jacks.exp (gcj_jacks_write): Enable "assert" constraint.

* libjava.jacks/jacks.exp (gcj_jacks_write): Enable "assert"
constraint.
* libjava.jacks/jacks.xfail: Added new xfails.

From-SVN: r73458

20 years agolib1funcs.asm: Replace DenHighZero with DenHighNonZero.
Kazu Hirata [Tue, 11 Nov 2003 18:36:39 +0000 (18:36 +0000)]
lib1funcs.asm: Replace DenHighZero with DenHighNonZero.

* config/h8300/lib1funcs.asm: Replace DenHighZero with
DenHighNonZero.

From-SVN: r73457

20 years agocgraphunit.c (cgraph_function_possibly_inlined_p): Use really_no_inline.
Jan Hubicka [Tue, 11 Nov 2003 17:43:45 +0000 (18:43 +0100)]
cgraphunit.c (cgraph_function_possibly_inlined_p): Use really_no_inline.

* cgraphunit.c (cgraph_function_possibly_inlined_p): Use
really_no_inline.

From-SVN: r73454

20 years agoGtkLabelPeer.java (create()): Call new create.
Thomas Fitzsimmons [Tue, 11 Nov 2003 17:04:47 +0000 (17:04 +0000)]
GtkLabelPeer.java (create()): Call new create.

2003-11-11  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkLabelPeer.java (create()): Call new create.
(create(String, float)): New method.
(setText): Make native.
(nativeSetAlignment): New method.
(setAlignment): Call nativeSetAlignment.
(getArgs): Remove method.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(find_fg_color_widget, find_bg_color_widget): New functions.
(gtkWidgetSetForeground): Call find_fg_color_widget.
(gtkWidgetSetBackground): Call find_bg_color_widget.  Modify active and
prelight colors.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkLabelPeer.c (create): Wrap label
widget in event box.
(setText, setAlignment): Implement new native methods.

From-SVN: r73453

20 years agopa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when generating 64-bit code.
John David Anglin [Tue, 11 Nov 2003 16:16:41 +0000 (16:16 +0000)]
pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when generating 64-bit code.

* pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
generating 64-bit code.

From-SVN: r73451

20 years agoFont.java, [...]: Removed some redundant obj == null checks.
Michael Koch [Tue, 11 Nov 2003 12:22:20 +0000 (12:22 +0000)]
Font.java, [...]: Removed some redundant obj == null checks.

2003-11-11  Michael Koch  <konqueror@gmx.de>

* java/awt/Font.java,
java/awt/datatransfer/DataFlavor.java,
java/math/BigInteger.java,
java/net/Inet4Address.java,
java/net/Inet6Address.java,
java/rmi/MarshalledObject.java,
java/rmi/server/RMIClassLoader.java,
java/security/cert/CertStore.java,
java/sql/Timestamp.java,
java/text/SimpleDateFormat.java,
javax/naming/CompoundName.java:
Removed some redundant obj == null checks.

From-SVN: r73448

20 years ago2003-11-11 Michael Koch <konqueror@gmx.de>
Michael Koch [Tue, 11 Nov 2003 11:56:58 +0000 (11:56 +0000)]
2003-11-11  Michael Koch  <konqueror@gmx.de>

* java/nio/ByteBuffer.java
(equals): Remove redundant obj == null check.

From-SVN: r73447

20 years agonatPipeImpl.cc, [...]: Removed
Michael Koch [Tue, 11 Nov 2003 11:49:12 +0000 (11:49 +0000)]
natPipeImpl.cc, [...]: Removed

2003-11-11  Michael Koch  <konqueror@gmx.de>

* gnu/java/nio/natPipeImpl.cc,
gnu/java/nio/natSelectorImpl.cc: Removed
* gnu/java/nio/natPipeImplEcos.cc,
gnu/java/nio/natPipeImplPosix.cc,
gnu/java/nio/natPipeImplWin32.cc,
gnu/java/nio/natSelectorImplEcos.cc,
gnu/java/nio/natSelectorImplPosix.cc,
gnu/java/nio/natSelectorImplWin32.cc: New files
* configure.in: Create links for gnu/java/nio/natPipeImpl.cc and
gnu/java/nio/natSelectorImpl.cc
* configure: Regenerated.

From-SVN: r73446

20 years agoURLStreamHandler.java (toExternalForm): Print port only if host is printed too and...
Michael Koch [Tue, 11 Nov 2003 11:34:24 +0000 (11:34 +0000)]
URLStreamHandler.java (toExternalForm): Print port only if host is printed too and port was really given to URL.

2003-11-11  Micheal Koch  <konqueror@gmx.de>

* java/net/URLStreamHandler.java (toExternalForm): Print port only
if host is printed too and port was really given to URL.

From-SVN: r73445

20 years agors6000.c (legitimate_lo_sum_address_p): Remove accidental commit in previous change.
David Edelsohn [Tue, 11 Nov 2003 04:24:37 +0000 (04:24 +0000)]
rs6000.c (legitimate_lo_sum_address_p): Remove accidental commit in previous change.

        * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
        accidental commit in previous change.

From-SVN: r73440

20 years agoMinor fixes to darwin version of -mpowerpc64.
Fariborz Jahanian [Tue, 11 Nov 2003 02:35:45 +0000 (02:35 +0000)]
Minor fixes to darwin version of -mpowerpc64.

From-SVN: r73439

20 years agoMisc. fixes for -mpowerpc64 vesion darwin.
Fariborz Jahanian [Tue, 11 Nov 2003 02:34:56 +0000 (02:34 +0000)]
Misc. fixes for -mpowerpc64 vesion darwin.

Reviewed by David Edelsohn.

From-SVN: r73438

20 years agoTimestamp.java (valueOf): Correctly handle nanoseconds.
Gary Benson [Tue, 11 Nov 2003 00:51:44 +0000 (00:51 +0000)]
Timestamp.java (valueOf): Correctly handle nanoseconds.

2003-11-10  Gary Benson  <gbenson@redhat.com>

* java/sql/Timestamp.java (valueOf): Correctly handle
nanoseconds.

From-SVN: r73437

20 years agoDaily bump.
GCC Administrator [Tue, 11 Nov 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r73435

20 years ago* dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
Richard Henderson [Mon, 10 Nov 2003 23:45:44 +0000 (15:45 -0800)]
* dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.

From-SVN: r73431

20 years agodarwin-protos.h (darwin_assemble_visibility): Declare.
Matt Austern [Mon, 10 Nov 2003 23:07:09 +0000 (23:07 +0000)]
darwin-protos.h (darwin_assemble_visibility): Declare.

* config/darwin-protos.h (darwin_assemble_visibility): Declare.
* config/darwin.c (darwin_assemble_visibility): Define.  Warn for
anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
* config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
darwin_assemble_visibility instead of default.

From-SVN: r73430

20 years agojcf-parse.c (classify_zip_file): Correctly compare filename_length against length...
Tom Tromey [Mon, 10 Nov 2003 22:13:21 +0000 (22:13 +0000)]
jcf-parse.c (classify_zip_file): Correctly compare filename_length against length of manifest file's name.

* jcf-parse.c (classify_zip_file): Correctly compare
filename_length against length of manifest file's name.

From-SVN: r73429

20 years ago* cvt.c (convert_to_void): Use void_zero_node after overload failure.
Richard Henderson [Mon, 10 Nov 2003 22:02:36 +0000 (14:02 -0800)]
* cvt.c (convert_to_void): Use void_zero_node after overload failure.

From-SVN: r73427

20 years agoFor PR java/12996:
Tom Tromey [Mon, 10 Nov 2003 21:30:10 +0000 (21:30 +0000)]
For PR java/12996:

* libjava.jar/simple.jar: New file.
* libjava.jar/simple.xfail: New file.
* libjava.jar/simple.out: New file.
* libjava.jar/simple.java: New file.
* libjava.jar/jar.exp: New file.

From-SVN: r73426

20 years ago[multiple changes]
Arnaud Charlet [Mon, 10 Nov 2003 17:30:00 +0000 (18:30 +0100)]
[multiple changes]

2003-11-10  Ed Falis  <falis@gnat.com>

* 5ytiitho.adb: (procStartHookAdd): Definition and call deleted

* 5zinit.adb: (Install_Handler): Moved back to spec
(Install_Signal_Handlers): Deleted

* 5zthrini.adb: Added context clause for System.Storage_Elements
(Register): Only handles creation of taskVar; initialization moved to
Thread_Body_Enter.
(Reset_TSD): Deleted; replaced by Thread_Body_Enter
Added declaration of environment task secondary stack and
initialization.

* s-thread.adb: Implement bodies for thread body processing

* s-thread.ads:
Added comment identifying supported targets for pragma Thread_Body.

2003-11-10  Pascal Obry  <obry@gnat.com>

* adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
GNAT_MAX_PATH_LEN.

* s-fileio.adb:
(Open): Properly check for string length before copying into the buffer.
Raises Name_Error if buffer is too small. Note that this was a potential
buffer overflow.

2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>

* bindgen.adb, comperr.adb: Code clean ups.
* gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.

2003-11-10  Sergey Rybin  <rybin@act-europe.fr>

* gnat1drv.adb: Add call to Sem_Elim.Initialize.

2003-11-10  Vincent Celier  <celier@gnat.com>

* gprcmd.adb:
(Gprcmd): Add new command "prefix" to get the prefix of the GNAT
installation.

* make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler

* prj.adb: (Project_Empty): Add new boolean component Virtual

* prj.ads: (Virtual_Prefix): New constant string
(Project_Data): New boolean component Virtual

* prj-nmsc.adb (Language_Independent_Check): Adjust error message when
a library project is extended by a virtual extending project.

* prj-part.adb:
Modifications throughout to implement extending-all project, including:
(Virtual_Hash, Processed_Hash): New hash tables
(Create_Virtual_Extending_Project): New procedure
(Look_For_Virtual_Projects_For): New procedure

* prj-proc.adb:
(Process): After checking the projects, if main project is an
extending-all project, set the object directory of all virtual extending
project to the object directory of the main project.
Adjust error message when a virtual extending project has the same
object directory as an project being extended.
(Recursive_Process): If name starts with the virtual prefix, set Virtual
to True in the project data.

* prj-tree.adb:
(Default_Project_Node): Add new boolean component Extending_All
(Is_Extending_All): New function
(Set_Is_Extending_All): New procedure

* prj-tree.ads: (Is_Extending_All): New function
(Set_Is_Extending_All): New procedure
(Project_Node_Record): New boolean component Extending_All

* switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib

* vms_data.ads:
Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler

* bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
"gprcmd prefix" to define it.

2003-11-10  Thomas Quinot  <quinot@act-europe.fr>

* einfo.ads: Fix a typo and remove an extraneous word in comments.

* lib-load.adb:
(Create_Dummy_Package_Unit): Set the scope of the entity for the
created dummy package to Standard_Standard, not to itself, to
defend other parts of the front-end against encoutering a cycle in
the scope chain.

* sem_ch10.adb:
(Analyze_With_Clause): When setting the entities for the successive
N_Expanded_Names that constitute the name of a child unit, do not
attempt to go further than Standard_Standard in the chain of scopes.
This case arises from the placeholder units created by
Create_Dummy_Package_Unit in the case of a with_clause for a
nonexistent child unit.

2003-11-10  Ed Schonberg  <schonberg@gnat.com>

* exp_ch6.adb:
(Expand_Thread_Body): Place subprogram on scope stack, so that new
declarations are given the proper scope.

* sem_ch13.adb:
(Check_Expr_Constants): Reject an expression that contains a constant
created during expansion, and that appears after the object to which
the address clause applies.

* sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
Analyze_Iteration_Scheme, to rewrite a loop parameter specification
that uses 'Range of a function call with controlled components, so
that the function result can be finalized before starting the loop.

* sem_ch8.adb:
(Find_Selected_Component): Improve error message when prefix is
an implicit dereference of an incomplete type.

2003-11-10  Robert Dewar  <dewar@gnat.com>

* opt.ads: New Print_Standard flag for -gnatS switch

* sem_ch13.adb: Remove some additional checks for unaligned arrays

* cstand.adb (Create_Standard): Print out package standard if -gnatS
switch set

* debug.adb: Update doc for -gnatds to discuss relationship with new
-gnatS flag

* sinfo.adb: Add new field Entity_Or_Associated_Node

* sinfo.ads: Add new field Entity_Or_Associated_Node
Update documentation for Associated_Node and Entity fields to clarify
relationship and usage.

* sprint.adb:
(Write_Id): Properly process Associated_Node field in generic template

* switch-c.adb:
Recognize new -gnatS switch for printing package Standard
This replaces gnatpsta

* usage.adb:
Add line for  new -gnatS switch for printing package Standard
This replaces gnatpsta

From-SVN: r73423

20 years agorun_all.sh: Add handling of unsupported (tasking) tests.
Arnaud Charlet [Mon, 10 Nov 2003 17:10:45 +0000 (18:10 +0100)]
run_all.sh: Add handling of unsupported (tasking) tests.

* ada/acats/run_all.sh: Add handling of unsupported (tasking) tests.
Clean ups.

From-SVN: r73422

20 years ago7sosprim.adb: tv_usec of struct_timeval and time_t are long integer.
Andreas Jaeger [Mon, 10 Nov 2003 15:54:35 +0000 (16:54 +0100)]
7sosprim.adb: tv_usec of struct_timeval and time_t are long integer.

* 7sosprim.adb: tv_usec of struct_timeval and time_t are long
integer.

From-SVN: r73419