platform/upstream/gcc.git
20 years ago[multiple changes]
Michael Koch [Wed, 29 Oct 2003 16:07:59 +0000 (16:07 +0000)]
[multiple changes]

2003-10-29  Mark Wielaard  <mark@klomp.org>

From Guilhem Lavaux  <guilhem.lavaux@free.fr>
* java/text/DateFormat.java (Field): New public static inner class.
* java/text/Format.java (Field): Likewise.
(formatToCharacterIterator): New method.
* java/text/FormatCharacterIterator.java: New file.

2003-10-29  Mark Wielaard  <mark@klomp.org>

From Guilhem Lavaux  <guilhem.lavaux@free.fr>
* java/util/Currency.java: New file.

2003-10-29  Michael Koch  <konqueror@gmx.de>

* Makefile.am (ordinary_java_source_files): Added
java/text/FormatCharacterIterator.java and java/util/Currency.java.
* Makefile.in: Regenerated.

From-SVN: r73046

20 years agoAdded a missing word.
Eric Botcazou [Wed, 29 Oct 2003 15:40:57 +0000 (15:40 +0000)]
Added a missing word.

From-SVN: r73045

20 years agosparc.c (function_arg_partial_nregs): Never return 1 for complex integral modes whose...
Eric Botcazou [Wed, 29 Oct 2003 15:36:12 +0000 (16:36 +0100)]
sparc.c (function_arg_partial_nregs): Never return 1 for complex integral modes whose size is lesser or equal to a word.

* config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
Never return 1 for complex integral modes whose size is lesser or
equal to a word.
(function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
in the comment.
(function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
modes.
(sparc_va_arg) [TARGET_ARCH64]: Handle any types whose is greater
than 16 bytes by reference.

From-SVN: r73044

20 years agoIntrospectionIncubator.java (addMethod): Add public static methods.
Dalibor Topic [Wed, 29 Oct 2003 15:22:01 +0000 (15:22 +0000)]
IntrospectionIncubator.java (addMethod): Add public static methods.

2003-10-29  Dalibor Topic  <robilad@kaffe.org>

* gnu/java/beans/IntrospectionIncubator.java (addMethod): Add public
static methods.

From-SVN: r73043

20 years agolocale_facets.tcc (num_get::_M_extract_float): Revert the last commit, is incorrect...
Paolo Carlini [Wed, 29 Oct 2003 15:02:40 +0000 (15:02 +0000)]
locale_facets.tcc (num_get::_M_extract_float): Revert the last commit, is incorrect, sorry.

2003-10-29  Paolo Carlini  <pcarlini@suse.de>

        * include/bits/locale_facets.tcc (num_get::_M_extract_float):
Revert the last commit, is incorrect, sorry.

From-SVN: r73042

20 years agoNamingManager.java (getContinuationContext): Call getObjectInstance() with Object...
Julian Dolby [Wed, 29 Oct 2003 14:54:00 +0000 (14:54 +0000)]
NamingManager.java (getContinuationContext): Call getObjectInstance() with Object...

2003-10-29  Julian Dolby  <dolby@us.ibm.com>

* javax/naming/spi/NamingManager.java (getContinuationContext): Call
getObjectInstance() with Object, Name, Context and environment
Hashtable from exception. Call fillInStackTrace() on exception when
rethrown.
* javax/naming/InitialContext.java (lookup(Name)): When a
CannotProceedException is thrown use the ContinuationContext.
(lookup(String)): Likewise.
(close): Clear myProps and defaultInitCtx.

From-SVN: r73041

20 years agoSomehow this didnt got commited due to full hard disk.
Michael Koch [Wed, 29 Oct 2003 14:44:51 +0000 (14:44 +0000)]
Somehow this didnt got commited due to full hard disk.

From-SVN: r73040

20 years agoia64.c (ia64_assemble_integer): Test POINTER_SIZE, not TARGET_ILP32.
Richard Kenner [Wed, 29 Oct 2003 14:23:45 +0000 (14:23 +0000)]
ia64.c (ia64_assemble_integer): Test POINTER_SIZE, not TARGET_ILP32.

* config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
not TARGET_ILP32.
(ia64_initialize_trampoline): Use globalize_label target call.

From-SVN: r73039

20 years ago* ada/acats/run_all.sh: Redirect mv output to /dev/null
Arnaud Charlet [Wed, 29 Oct 2003 13:48:35 +0000 (14:48 +0100)]
* ada/acats/run_all.sh: Redirect mv output to /dev/null

From-SVN: r73037

20 years agoc_locale.cc: Add back <cmath> and <cstdlib>.
Paolo Carlini [Wed, 29 Oct 2003 13:34:04 +0000 (13:34 +0000)]
c_locale.cc: Add back <cmath> and <cstdlib>.

2003-10-29  Paolo Carlini  <pcarlini@suse.de>

* config/locale/generic/c_locale.cc: Add back <cmath>
and <cstdlib>.

* include/bits/locale_facets.tcc
(num_get::_M_extract_float): Clean up.

From-SVN: r73036

20 years agolocale_facets.tcc (time_put::put): Absolutely avoid dereferencing end iterators;...
Paolo Carlini [Wed, 29 Oct 2003 12:21:58 +0000 (12:21 +0000)]
locale_facets.tcc (time_put::put): Absolutely avoid dereferencing end iterators; clean up.

2003-10-29  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (time_put::put): Absolutely
avoid dereferencing end iterators; clean up.

* include/bits/locale_facets.tcc (num_get::_M_extract_float,
num_get::_M_extract_int): Minor tweak.

From-SVN: r73035

20 years ago2003-10-29 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 29 Oct 2003 10:53:19 +0000 (10:53 +0000)]
2003-10-29  Michael Koch  <konqueror@gmx.de>

* java/net/InetAddress.java
(equals): Remove redundant obj == null check.
* java/net/SocketPermission.java
(equals): Likewise.
* java/net/URL.java
(equals): Likewise.
(getURLStreamHandler): Likewise.

From-SVN: r73034

20 years ago2003-10-29 Michael Koch <konqueror@gmx.de>
Michael Koch [Wed, 29 Oct 2003 10:33:57 +0000 (10:33 +0000)]
2003-10-29  Michael Koch  <konqueror@gmx.de>

* gnu/java/net/natPlainDatagramSocketImplPosix.cc
(setOption): Directly return if no error occured.
* gnu/java/net/natPlainSocketImplPosix.cc
(setOption): Likewise.

From-SVN: r73033

20 years ago3vtrasym.adb, [...]: Minor reformatting
Arnaud Charlet [Wed, 29 Oct 2003 10:26:16 +0000 (11:26 +0100)]
3vtrasym.adb, [...]: Minor reformatting

* 3vtrasym.adb, 5vtraent.ads, sprint.adb,
sem_ch10.adb: Minor reformatting

* exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
(Expand_Assign_Record): Test right hand side for bit unaligned as well

* 3vtrasym.adb:
* 5vtraent.adb:
* 5vtraent.ads:
* tb-alvms.c:
Support for TBK$SYMBOLIZE-based symbolic traceback.

* exp_disp.adb:
Revert previous change, that did not work well when pragma No_Run_Time
was used in conjunction with a run-time other than ZFP.

* make.adb:
(Gnatmake): When there are no Ada mains in attribute Main, disable the
 bind and link steps only is switch -z is not used.

* Makefile.generic: Remove duplicated setting of CC.

* Makefile.prolog: Set CC to gcc by default, to override make's
default (cc).

* einfo.h: Regenerated.

* sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
current body, after compiling subunit.

* itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
when in deleted code, because gigi needs properly ordered freeze
actions to annotate types.

* freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
prevent the premature freezing of record type that contains
subcomponents with a private type that does not yet have a completion.

* sem_ch12.adb:
(Analyze_Package_Instantiation): Check that instances can not be used in
limited with_clauses.

* sem_ch8.adb:
(Analyze_Package_Renaming): Check that limited withed packages cannot
be renamed. Improve text on error messages related to limited
with_clauses.

* einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.

* sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
Update copyright notice.

* sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
(Install_Limited_Context_Clauses): New subprogram that isolates all the
checks required for limited context_clauses and installs the limited
view.
(Install_Limited_Withed_Unit): Complete its documentation.
(Analyze_Context): Check that limited with_clauses are only allowed in
package specs.
(Install_Context): Call Install_Limited_Context_Clauses after the
parents have been installed.
(Install_Limited_Withed_Unit): Add documentation. Mark the installed
package as 'From_With_Type'; this mark indicates that the limited view
is installed. Used to check bad usages of limited with_clauses.
(Build_Limited_Views): Do not add shadow entities to the scope's list
of entities. Do not add real entities to the Non_Limited_Views chain.
Improve error notification.
(Remove_Context_Clauses): Remove context clauses in two phases:
limited views first and regular views later (to maintain the
stack model).
(Remove_Limited_With_Clause): If the package is analyzed then reinstall
its visible entities.

* sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
with any type that Is_Fixed_Point_Type.

* sinfo.ads: Fix documentation for Associated_Node attribute.

* switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
both '-gnatc' and '-gnatt' are specified.

* atree.adb (Initialize): Add initialization for Node_Count (set to
zero).

* decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
do not consider as Pure.

Part of implementation of function-at-a-time:

* trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
(tree_transform): Add new argument to build_component_ref.
(tree_transform, case N_Assignment_Statement): Make and return an
EXPR_STMT.
(tree_transform): If result IS_STMT, set flags and return it.
(gnat_expand_stmt, set_lineno_from_sloc): New functions.

* utils2.c (build_simple_component_ref, build_component_ref): Add new
arg, NO_FOLD_P.
(build_binary_op, case EQ_EXPR): Pass additional arg to it.
(build_allocator): Likewise.

* utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
Add new arg to build_component_ref.
(maybe_unconstrained_array, unchecked_convert): Likewise.

* ada-tree.def (EXPR_STMT): New code.

* ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.

* decl.c (gnat_to_gnu_entity, case object): Add extra arg to
build_component_ref calls.

* misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.

* gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
(build_component_ref): Add new argument, NO_FOLD_P.

From-SVN: r73032

20 years agoinstall.texi (Building): Add a sentence about building Ada for a canadian cross.
Andreas Schwab [Wed, 29 Oct 2003 10:14:21 +0000 (10:14 +0000)]
install.texi (Building): Add a sentence about building Ada for a canadian cross.

* doc/install.texi (Building): Add a sentence about building Ada
for a canadian cross.

From-SVN: r73031

20 years agolocale_facets.tcc: Remove some unnecessary includes.
Paolo Carlini [Wed, 29 Oct 2003 10:08:05 +0000 (10:08 +0000)]
locale_facets.tcc: Remove some unnecessary includes.

2003-10-29  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc: Remove some unnecessary
includes.
* config/locale/generic/c_locale.cc: Include <cerrno> here.
* config/locale/gnu/c_locale.cc: Likewise.

From-SVN: r73030

20 years agoia64.c (cmptf_libfunc): New static.
Zack Weinberg [Wed, 29 Oct 2003 01:28:09 +0000 (01:28 +0000)]
ia64.c (cmptf_libfunc): New static.

* config/ia64/ia64.c (cmptf_libfunc): New static.
(ia64_expand_compare): Add logic to open-code calls to
_U_Qfcmp for TFmode comparisons.
(ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
never be generated anymore.
* config/ia64/ia64.md (cmptf): New expander.

From-SVN: r73028

20 years agoia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
Zack Weinberg [Wed, 29 Oct 2003 00:55:43 +0000 (00:55 +0000)]
ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.

* ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
(*sqrt_approx): New instruction pattern for approximate square roots.
(*setf_exp_xf): New instruction pattern for exponentiation.
(*maddxf4_alts_truncsf): New instruction pattern for truncation.
(sqrtsf2_internal_thr): New define_and_split implementing
throughput-optimized inline calculation of SFmode square root.
(sqrtdf2_internal_thr): Likewise for DFmode.
(sqrtxf2_internal_thr): Likewise for XFmode.
(sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
latency- and throughput-optimized square root algorithms.
* ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
New macros.
(TARGET_SWITCHES): Add -minline-sqrt-min-latency and
-minline-sqrt-max-throughput.
* ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
and -minline-sqrt-max-throughput are given, notify the user
that both options cannot be used simultaneously.
If -minline-sqrt-min-latency is given, notify the user that
this mode is not yet implemented.
(rtx_needs_barrier): Reformat initial comment to obey
72-character width limit.  Support UNSPEC_SETF_EXP and
UNSPEC_FR_SQRT_RECIP_APPROX.

From-SVN: r73027

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

From-SVN: r73025

20 years agonatClass.cc (_Jv_LayoutVTableMethods): Always assign a vtable slot for final methods.
Bryce McKinlay [Tue, 28 Oct 2003 22:45:57 +0000 (22:45 +0000)]
natClass.cc (_Jv_LayoutVTableMethods): Always assign a vtable slot for final methods.

* java/lang/natClass.cc (_Jv_LayoutVTableMethods): Always assign a
vtable slot for final methods. Add FIXME comment.

From-SVN: r73023

20 years agors6000.md (movdf_softfloat64): Allow dummy ctr,ctr moves.
Alan Modra [Tue, 28 Oct 2003 22:25:36 +0000 (22:25 +0000)]
rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr moves.

* config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
moves.

From-SVN: r73022

20 years agore PR libffi/10610 ([powerpc-linux] 230 testsuite failures due to alignment errors)
Franz Sirl [Tue, 28 Oct 2003 21:13:39 +0000 (21:13 +0000)]
re PR libffi/10610 ([powerpc-linux] 230 testsuite failures due to alignment errors)

2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR libgcj/10610
* gcc.dg/ppc-stackalign-1.c: New test.

From-SVN: r73019

20 years agore PR target/11598 (testcase gcc.dg/20020118-1.c fails runtime check of __attribute__...
Franz Sirl [Tue, 28 Oct 2003 19:46:42 +0000 (19:46 +0000)]
re PR target/11598 (testcase gcc.dg/20020118-1.c fails runtime check of __attribute__((aligned(16))))

2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

PR target/11598
PR libgcj/10610
* config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.

From-SVN: r73017

20 years agoAdd missing ChangeLog entry for gcc.c-torture/execute/20031020-1.c.
Falk Hueffner [Tue, 28 Oct 2003 18:59:01 +0000 (19:59 +0100)]
Add missing ChangeLog entry for gcc.c-torture/execute/20031020-1.c.

From-SVN: r73015

20 years ago* approved by aph
Frank Ch. Eigler [Tue, 28 Oct 2003 18:38:07 +0000 (18:38 +0000)]
* approved by aph

2003-10-28  Frank Ch. Eigler  <fche@redhat.com>

* verify.c (verify_jvm_instructions): Don't warn about legal
eh binding regions generated for example by jdk 1.4.1.

From-SVN: r73012

20 years ago2003-10-28 Paolo Carlini <pcarlini@suse.de>
Paolo Carlini [Tue, 28 Oct 2003 17:09:03 +0000 (17:09 +0000)]
2003-10-28  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc
(money_get<>::do_get(..., string_type&)): Absolutely avoid
dereferencing end iterators; general clean up.

From-SVN: r73011

20 years agorun_all.sh: Only run [a-z]* directories, to filter out e.g.
Arnaud Charlet [Tue, 28 Oct 2003 16:00:20 +0000 (17:00 +0100)]
run_all.sh: Only run [a-z]* directories, to filter out e.g.

* ada/acats/run_all.sh:
Only run [a-z]* directories, to filter out e.g. CVS.
Redirect build output to log file.

From-SVN: r73010

20 years agorun_all.sh: Change output to be more compliant with dejagnu framework.
Arnaud Charlet [Tue, 28 Oct 2003 14:19:27 +0000 (15:19 +0100)]
run_all.sh: Change output to be more compliant with dejagnu framework.

* ada/acats/run_all.sh: Change output to be more compliant with
dejagnu framework.
Create acats.sum and acats.log files under testsuite/ada/acats

From-SVN: r73007

20 years agolocks.h (__cas_start_atomic): %g0 --> %%g0.
David S. Miller [Tue, 28 Oct 2003 14:19:23 +0000 (06:19 -0800)]
locks.h (__cas_start_atomic): %g0 --> %%g0.

2003-10-28  David S. Miller  <davem@redhat.com>

* sysdep/sparc/locks.h (__cas_start_atomic): %g0 --> %%g0.

From-SVN: r73006

20 years agoChange output to be more cpliant with dejagnu framework.
Arnaud Charlet [Tue, 28 Oct 2003 14:18:34 +0000 (15:18 +0100)]
Change output to be more cpliant with dejagnu framework.

Create acats.sum and acats.log files under testsuite/ada/acats

From-SVN: r73005

20 years agolocale_facets.tcc (time_get::_M_extract_num): Absolutely avoid dereferencing end...
Paolo Carlini [Tue, 28 Oct 2003 12:23:31 +0000 (12:23 +0000)]
locale_facets.tcc (time_get::_M_extract_num): Absolutely avoid dereferencing end iterators.

2003-10-28  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (time_get::_M_extract_num):
Absolutely avoid dereferencing end iterators.
(time_get::_M_extract_name): Likewise.

* include/bits/locale_facets.tcc
(time_get::_M_extract_via_format, case 'e'): Don't try to
be smart wrt returning the right __beg in case of parse
error, time_get::_M_extract_num must be fixed instead.

From-SVN: r73004

20 years agoarm.c (arm_output_epilogue): When using a frame pointer...
Richard Earnshaw [Tue, 28 Oct 2003 09:47:45 +0000 (09:47 +0000)]
arm.c (arm_output_epilogue): When using a frame pointer...

* arm.c (arm_output_epilogue): When using a frame pointer, don't emit
an extra stack adjustment insn if the stack pointer is already
pointing at the right place.
(use_return_insn): Allow a return insn to be used when we have a
frame pointer if the stack pointer is in the right place.
(output_return_instruction): Handle it.

From-SVN: r73003

20 years agoggc-zone.c (check_cookies): Add missing variable.
Andreas Jaeger [Tue, 28 Oct 2003 07:43:11 +0000 (08:43 +0100)]
ggc-zone.c (check_cookies): Add missing variable.

* ggc-zone.c (check_cookies): Add missing variable.
Add void to prototypes.

From-SVN: r73000

20 years agoirix6-libc-compat.c (inet_makeaddr): Prototype.
Kaveh R. Ghazi [Tue, 28 Oct 2003 03:47:37 +0000 (03:47 +0000)]
irix6-libc-compat.c (inet_makeaddr): Prototype.

* config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
* crtstuff.c (__do_global_ctors_1): Move prototype.
* unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
appropriate.
* unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
Mark parameter with __attribute__((unused)).

From-SVN: r72999

20 years ago* c-decl.c (pushdecl): Clarify comment.
Zack Weinberg [Tue, 28 Oct 2003 01:05:12 +0000 (01:05 +0000)]
* c-decl.c (pushdecl): Clarify comment.

From-SVN: r72998

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

From-SVN: r72996

20 years agore PR libstdc++/12778 (1022 bootstrap failure building libstdc++-v3/src/basic_file.cc)
Paolo Carlini [Mon, 27 Oct 2003 23:11:52 +0000 (23:11 +0000)]
re PR libstdc++/12778 (1022 bootstrap failure building libstdc++-v3/src/basic_file.cc)

2003-10-27  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/12778
* acinclude.m4 (GLIBCXX_CHECK_LFS): Use the C++ compiler.
* aclocal.m4: Regenerate.
* configure: Regenerate.

From-SVN: r72994

20 years agoTODO: Add links.
Benjamin Kosnik [Mon, 27 Oct 2003 21:43:33 +0000 (21:43 +0000)]
TODO: Add links.

2003-10-27  Benjamin Kosnik  <bkoz@redhat.com>

* docs/html/17_intro/TODO: Add links.
* testsuite/27_io/basic_istream/extractors_character/char/9555-ic.cc:
Uncomment.

From-SVN: r72991

20 years agore PR libstdc++/12750 (time_get::_M_extract_via_format doesn't deal with 'e')
Paolo Carlini [Mon, 27 Oct 2003 16:21:14 +0000 (16:21 +0000)]
re PR libstdc++/12750 (time_get::_M_extract_via_format doesn't deal with 'e')

2003-10-27  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/12750
* include/bits/locale_facets.tcc
(time_get::_M_extract_via_format): Deal with code 'e'.
* testsuite/22_locale/time_get/get_date/char/12750.cc: New.
* testsuite/22_locale/time_get/get_date/wchar_t/12750.cc: Ditto.

* include/bits/locale_facets.tcc
(time_get::_M_extract_via_format): Tweak to absolutely avoid
dereferencing end iterators.

* include/bits/locale_facets.h (__verify_grouping):
Const-ify second parameter.
* include/bits/locale_facets.tcc (__verify_grouping): Ditto.
* src/locale-inst.cc (__verify_grouping): Ditto.

2003-10-27  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (num_get::_M_extract_float):
Various things: 1- Avoid absolutely end iterator dereferences;
2- Improve performance-wise the code skipping leading zeros;
3- Fix two bugs wrt early bail out in case of parsing errors
(see testcases); 4- General clean up.
(num_get::_M_extract_int): Likewise, except 3-. Additionally,
use __builtin_expect to favor base 10 inputs.
* testsuite/22_locale/num_get/get/char/7.cc: New.
* testsuite/22_locale/num_get/get/wchar_t/7.cc: Ditto.

From-SVN: r72987

20 years ago* doc/install.texi: Update instructions for Ada cross builds
Arnaud Charlet [Mon, 27 Oct 2003 15:35:26 +0000 (16:35 +0100)]
* doc/install.texi: Update instructions for Ada cross builds

From-SVN: r72986

20 years ago* README.ada: Removed, integrated in ../doc/sourcebuild.texi
Arnaud Charlet [Mon, 27 Oct 2003 14:56:06 +0000 (15:56 +0100)]
* README.ada: Removed, integrated in ../doc/sourcebuild.texi

From-SVN: r72985

20 years agore PR ada/5909 (Ada has no test suite.)
Arnaud Charlet [Mon, 27 Oct 2003 14:51:26 +0000 (15:51 +0100)]
re PR ada/5909 (Ada has no test suite.)

PR ada/5909:
* doc/sourcebuild.texi: Document Ada test suite.

From-SVN: r72984

20 years agore PR ada/5909 (Ada has no test suite.)
Arnaud Charlet [Mon, 27 Oct 2003 14:27:17 +0000 (15:27 +0100)]
re PR ada/5909 (Ada has no test suite.)

* Makefile.generic: Add missing substitution on object_deps handling.

PR ada/5909:
* Make-lang.in (check-ada): Enable ACATS test suite.

* exp_ch3.adb:
(Freeze_Array_Type): We do not need an initialization routine for types
derived from String or Wide_String. They should be treated the same
as String and Wide_String themselves. This caused problems with the
use of Initialize_Scalars.

* exp_ch5.adb:
(Expand_Assign_Record): Do component-wise assignment of non-byte aligned
composites. This allows use of component clauses that are not byte
aligned.

* sem_prag.adb:
(Analyze_Pragma, case Pack): Generate warning and ignore pack if there
is an attempt to pack an array of atomic objects.

* make.adb, prj-env.adb, prj-env.ads: Minor reformatting

* g-dirope.adb:
(Basename): Check for drive letters in a pathname only on DOS based OS.

* make.adb:
(Gnatmake): When unable to change dir to the object dir, display the
content of the parent dir of the obj dir, to try to understand why this
happens.

* Make-lang.in: Makefile automatically updated

* sem_ch12.adb:
(Inline_Instance_Body): Indicate that the save/restore of use_clauses
should not be done in Save/Restore_Scope_Stack, because it is performed
locally.

* sem_ch8.adb:
(Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
whether use clauses should be removed/restored.

* sem_ch8.ads:
(Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
whether use clauses should be removed/restored.

From-SVN: r72983

20 years agom68hc11.c: Convert to ISO C90.
Stephane Carrez [Mon, 27 Oct 2003 12:26:19 +0000 (13:26 +0100)]
m68hc11.c: Convert to ISO C90.

* config/m68hc11/m68hc11.c: Convert to ISO C90.
* config/m68hc11/m68hc11-protos.h: Likewise.

From-SVN: r72981

20 years agoAdded my e-mail address.
Eric Botcazou [Mon, 27 Oct 2003 12:23:02 +0000 (12:23 +0000)]
Added my e-mail address.

From-SVN: r72980

20 years agotoplev.c (enum dump_file_index, dump_file): Fix ordering of webizer pass dump.
Jan Hubicka [Mon, 27 Oct 2003 12:05:11 +0000 (13:05 +0100)]
toplev.c (enum dump_file_index, dump_file): Fix ordering of webizer pass dump.

* toplev.c (enum dump_file_index, dump_file):  Fix ordering of
webizer pass dump.

From-SVN: r72979

20 years agore PR ada/5909 (Ada has no test suite.)
Arnaud Charlet [Mon, 27 Oct 2003 11:32:59 +0000 (12:32 +0100)]
re PR ada/5909 (Ada has no test suite.)

PR ada/5909:
* README.ada, ada/acats: Import ACATS 2.5 for GCC Ada test suite.

From-SVN: r72978

20 years agore PR ada/5909 (Ada has no test suite.)
Arnaud Charlet [Mon, 27 Oct 2003 11:29:00 +0000 (12:29 +0100)]
re PR ada/5909 (Ada has no test suite.)

PR ada/5909:
Import ACATS 2.5 for GCC Ada test suite.

From-SVN: r72977

20 years agoReported by Helmer Kraemer <hkraemer@freenet.de>
Mark Wielaard [Mon, 27 Oct 2003 11:02:44 +0000 (11:02 +0000)]
Reported by Helmer Kraemer <hkraemer@freenet.de>

       Reported by Helmer Kraemer <hkraemer@freenet.de>
       * java/util/jar/JarInputStream.java (readManifest): Don't call
       closeEntry().

       * java/util/zip/DeflaterOutputStream.java (inbufWrite): New method.
       (finish): Use inbufWrite().
       (write(int)): Likewise.
       (write(byte[],int,int)): Likewise.

From-SVN: r72976

20 years agoreload1.c (struct elim_table): Change offset, initial_offset and previous_offset...
Jakub Jelinek [Mon, 27 Oct 2003 10:52:48 +0000 (11:52 +0100)]
reload1.c (struct elim_table): Change offset, initial_offset and previous_offset fields to HOST_WIDE_INT.

* reload1.c (struct elim_table): Change offset, initial_offset and
previous_offset fields to HOST_WIDE_INT.
(offsets_at): Change from int to HOST_WIDE_INT.
(reload): Adjust offsets_at initialization.
(eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
(verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
* config/i386/i386.c (ix86_compute_frame_layout): Change offset type
to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
if TARGET_64BIT.
(pro_epilogue_adjust_stack): New function.
(ix86_expand_prologue, ix86_expand_epilogue): Use it.
* config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
(pro_epilogue_adjust_stack_1): Remove * in front of name.
(pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
(pro_epilogue_adjust_stack_rex64_2): New insn.

* config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.

* config/i386/i386.c (ix86_expand_call): Replace 40 with
FIRST_REX_INT_REG + 3 /* R11 */.

* gcc.c-torture/compile/20031023-1.c: New test.
* gcc.c-torture/compile/20031023-2.c: New test.
* gcc.c-torture/compile/20031023-3.c: New test.
* gcc.c-torture/compile/20031023-4.c: New test.

Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r72975

20 years agoalpha.md (attr cannot_copy): New.
Richard Henderson [Mon, 27 Oct 2003 06:49:41 +0000 (22:49 -0800)]
alpha.md (attr cannot_copy): New.

        * config/alpha/alpha.md (attr cannot_copy): New.
        (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
        prologue_ldgp_er_2, prologue_ldgp_1): Set it.
        * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.

From-SVN: r72974

20 years agoRemove incorrect entry
Mark Mitchell [Mon, 27 Oct 2003 06:40:55 +0000 (06:40 +0000)]
Remove incorrect entry

From-SVN: r72973

20 years agoggc-zone.c: New file, zone allocating collector.
Daniel Berlin [Mon, 27 Oct 2003 00:26:52 +0000 (00:26 +0000)]
ggc-zone.c: New file, zone allocating collector.

2003-10-26  Daniel Berlin  <dberlin@dberlin.org>

* ggc-zone.c:  New file, zone allocating collector.
* configure: Accept zone option for --with-gc
* configure.in: Ditto.
* ggc.h (ggc_pch_count_object): Pass bool indicating
stringiness. Update all callers.
(ggc_pch_alloc_object): Ditto.
(ggc_pch_write_object): Ditto.
(ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
type.
(ggc_alloc_rtvec): Ditto.
(ggc_alloc_tree): Use zone allocation, since some things using this macro
aren't a single typecode.
* ggc-none.c (ggc_alloc_typed): New function.
(ggc_alloc_zone): Ditto.
* ggc-page.c: Ditto on both functions.

From-SVN: r72971

20 years agoDaily bump.
GCC Administrator [Mon, 27 Oct 2003 00:16:37 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72969

20 years agom68k.c (m68k_compute_frame_layout): Ensure FPU related frame information is always...
Gunther Nikl [Sun, 26 Oct 2003 22:19:25 +0000 (22:19 +0000)]
m68k.c (m68k_compute_frame_layout): Ensure FPU related frame information is always valid.

* config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
frame information is always valid.
(m68k_output_function_prologue): Remove superfluous TARGET_68881
test; fix formatting.

From-SVN: r72965

20 years agom68k.c (m68k_compute_frame_layout): Swap reg_mask and reg_rev_mask computation.
Gunther Nikl [Sun, 26 Oct 2003 22:08:07 +0000 (22:08 +0000)]
m68k.c (m68k_compute_frame_layout): Swap reg_mask and reg_rev_mask computation.

* config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
reg_rev_mask computation.
(m68k_output_function_prologue): Fix usage of current_frame (one typo
and one missing); use reg_rev_mask not reg_mask.
(m68k_output_function_epilogue): Fix usage of current_frame;
use fpu_rev_mask not fpu_mask.

From-SVN: r72964

20 years agom68k.c (m68k_output_function_prologue): Eliminate num_saved_regs, use current_frame...
Bernardo Innocenti [Sun, 26 Oct 2003 22:02:05 +0000 (23:02 +0100)]
m68k.c (m68k_output_function_prologue): Eliminate num_saved_regs, use current_frame.reg_no instead.

* config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
num_saved_regs, use current_frame.reg_no instead.

From-SVN: r72963

20 years agoextend.texi (interrupt_handler): Add m68k to the list of processors implementing it.
Bernardo Innocenti [Sun, 26 Oct 2003 19:03:43 +0000 (20:03 +0100)]
extend.texi (interrupt_handler): Add m68k to the list of processors implementing it.

* doc/extend.texi (interrupt_handler): Add m68k to the
list of processors implementing it.
* doc/invoke.texi (-msep-data): Document new m68k option.
(-mno-sep-data): Likewise.
(-mid-shared-library): Likewise.
(-mno-id-shared-library): Likewise.
(-mshared-library-id): Likewise.

Co-Authored-By: Paul Dale <pauli@snapgear.com>
From-SVN: r72962

20 years agounwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned comparison.
Andreas Jaeger [Sun, 26 Oct 2003 18:06:11 +0000 (19:06 +0100)]
unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned comparison.

* unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
comparison.
(_Unwind_SetGR): Likewise.

From-SVN: r72960

20 years agoAdd ChangeLog mark.
Andreas Jaeger [Sun, 26 Oct 2003 16:24:58 +0000 (17:24 +0100)]
Add ChangeLog mark.

From-SVN: r72957

20 years agommintrin.h (_mm_set1_pi8): Fix comment.
Andreas Jaeger [Sun, 26 Oct 2003 16:18:31 +0000 (17:18 +0100)]
mmintrin.h (_mm_set1_pi8): Fix comment.

2003-10-26  Ottavio Campana <ottavio@campana.vi.it>

* config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.

From-SVN: r72956

20 years agom68k.c (m68k_output_function_prologue): Move front comment from here to...
Gunther Nikl [Sun, 26 Oct 2003 16:03:21 +0000 (16:03 +0000)]
m68k.c (m68k_output_function_prologue): Move front comment from here to...

* config/m68k/m68k.c (m68k_output_function_prologue): Move front
comment from here to...
(m68k_save_reg): ...here. Fix comment formatting.
(m68k_output_function_prologue): Fix comment formatting.
(m68k_output_function_epilogue): Likewise.
(const_method): Likewise.

From-SVN: r72954

20 years agotoplev.c (default_get_pch_validity): Guard the use of target_options with #ifdef...
Kazu Hirata [Sun, 26 Oct 2003 15:40:14 +0000 (15:40 +0000)]
toplev.c (default_get_pch_validity): Guard the use of target_options with #ifdef TARGET_OPTIONS.

* toplev.c (default_get_pch_validity): Guard the use of
target_options with #ifdef TARGET_OPTIONS.
(default_pch_valid_p): Likewise.

From-SVN: r72953

20 years ago* Makefile.in: Remove duplicated lines.
Andreas Jaeger [Sun, 26 Oct 2003 14:53:53 +0000 (15:53 +0100)]
* Makefile.in: Remove duplicated lines.

From-SVN: r72952

20 years ago* nl.po: Update.
Joseph Myers [Sun, 26 Oct 2003 11:19:49 +0000 (11:19 +0000)]
* nl.po: Update.

From-SVN: r72951

20 years agore PR c++/10371 (misleading error message for illegal member access)
Kriang Lerdsuwanakij [Sun, 26 Oct 2003 11:04:36 +0000 (11:04 +0000)]
re PR c++/10371 (misleading error message for illegal member access)

PR c++/10371
* semantics.c (finish_non_static_data_member): Handle when
both processing_template_decl and qualifying_scope are true.

* g++.dg/lookup/scoped8.C: New test.

From-SVN: r72950

20 years ago1.cc: Clean up.
Paolo Carlini [Sun, 26 Oct 2003 10:33:30 +0000 (10:33 +0000)]
1.cc: Clean up.

2003-10-26  Paolo Carlini  <pcarlini@suse.de>

* testsuite/22_locale/money_put/put/char/1.cc: Clean up.
* testsuite/22_locale/money_put/put/wchar_t/1.cc: Ditto.

From-SVN: r72949

20 years agodwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
Andreas Jaeger [Sun, 26 Oct 2003 10:17:38 +0000 (11:17 +0100)]
dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.

2003-10-26  Andreas Jaeger  <aj@suse.de>
    Zack Weinberg  <zack@codesourcery.com>
    Andreas Tobler <toa@pop.agri.ch>

* dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
(output_die): Likewise.
(print_die): Likewise.

Co-Authored-By: Andreas Tobler <toa@pop.agri.ch>
Co-Authored-By: Zack Weinberg <zack@codesourcery.com>
From-SVN: r72948

20 years agotree.h (dwarf2out_def_cfa, [...]): Update prototypes for recent dwarf2out.c change.
Andreas Jaeger [Sun, 26 Oct 2003 08:31:11 +0000 (09:31 +0100)]
tree.h (dwarf2out_def_cfa, [...]): Update prototypes for recent dwarf2out.c change.

* tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
dwarf2out.c change.

From-SVN: r72946

20 years ago* toplev.c (default_pch_valid_p): Fix warning.
Andreas Jaeger [Sun, 26 Oct 2003 06:47:17 +0000 (07:47 +0100)]
* toplev.c (default_pch_valid_p): Fix warning.

From-SVN: r72945

20 years ago* java/util/TreeMap.java: Doc fixes. HashMap -> TreeMap.
Bryce McKinlay [Sun, 26 Oct 2003 02:48:31 +0000 (02:48 +0000)]
* java/util/TreeMap.java: Doc fixes. HashMap -> TreeMap.

From-SVN: r72944

20 years agoAccessibleObject.java (secureSetAccessible): Don't check for AccessibleObject.
Bryce McKinlay [Sun, 26 Oct 2003 02:28:45 +0000 (02:28 +0000)]
AccessibleObject.java (secureSetAccessible): Don't check for AccessibleObject.

* java/lang/reflect/AccessibleObject.java (secureSetAccessible):
Don't check for AccessibleObject. Update javadocs.

From-SVN: r72943

20 years agoConstructor.java (toString): Avoid extra whitespace on constructor with no modifiers.
Bryce McKinlay [Sun, 26 Oct 2003 02:25:42 +0000 (02:25 +0000)]
Constructor.java (toString): Avoid extra whitespace on constructor with no modifiers.

2003-10-26  Bryce McKinlay  <bryce@mckinlay.net.nz>

* java/lang/reflect/Constructor.java (toString): Avoid extra
whitespace on constructor with no modifiers.
* java/lang/reflect/natConstructor.java (newInstance): Look up
caller and perform accessibility check only if constructor is
non-public and accessible flag is not set.

2003-10-26  Bryce McKinlay  <bryce@mckinlay.net.nz>

* jni.cc (_Jv_JNI_CallAnyMethodV, _Jv_JNI_CallAnyMethodA,
_Jv_JNI_CallAnyVoidMethodV, _Jv_JNI_CallAnyVoidMethodA): Don't
use _Jv_LookupDeclaredMethod(). Call _Jv_CallAnyMethodA with
is_virtual_call argument.
* include/jvm.h (_Jv_isVirtualMethod): Moved and renamed from
natClass.cc.
* java/lang/natClass.cc (_Jv_LayoutVTableMethods): Use
_Jv_isVirtualMethod.
* java/lang/reflect/natMethod.cc (invoke): Don't use
_Jv_LookupDeclaredMethod.
(_Jv_CallAnyMethodA): New is_virtual_call argument. If specified,
look up method in target object's vtable.

From-SVN: r72942

20 years agosimplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate RTL nodes.
Roger Sayle [Sun, 26 Oct 2003 01:31:02 +0000 (01:31 +0000)]
simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate RTL nodes.

* simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
RTL nodes.  If an operator's operands are unchanged, return the
original argument unchanged.

From-SVN: r72941

20 years agoDaily bump.
GCC Administrator [Sun, 26 Oct 2003 00:16:07 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72939

20 years agoFix bootstrap failure.
Graham Stott [Sat, 25 Oct 2003 23:14:14 +0000 (23:14 +0000)]
Fix bootstrap failure.

       * expmed.c (store_bit_field): Don't compare bitsize against
       modes with zero bit-size.

       (extract_bit_field): Likewise

From-SVN: r72937

20 years agobe.po, [...]: Update.
Joseph Myers [Sat, 25 Oct 2003 21:41:53 +0000 (22:41 +0100)]
be.po, [...]: Update.

* be.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po, sv.po,
tr.po: Update.
* gcc.pot: Regenerate.

From-SVN: r72936

20 years agodwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
Jan Hubicka [Sat, 25 Oct 2003 21:32:02 +0000 (23:32 +0200)]
dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.

* dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
(cfa_loc): Likewise.
(reg_save, stack_adjust_offset, queue_reg_save): Replace long by
HOST_WIDE_INT.
(args_size, old_args_size): change type to HOST_WIDE_INT.
(dwarf2out_def_cfa, dwarf2out_args_size,
dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
(dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
(add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
AT_offset): Use HOST_WIDE_INT.
(based_loc_descr): offset is HOST_WIDE_INT.
(add_data_member): Likewise.
(add_const_value_attribute): Simplify.

From-SVN: r72935

20 years agoi386.c (ix86_eax_live_at_start_p): New.
Richard Henderson [Sat, 25 Oct 2003 19:42:39 +0000 (12:42 -0700)]
i386.c (ix86_eax_live_at_start_p): New.

        * config/i386/i386.c (ix86_eax_live_at_start_p): New.
        (ix86_expand_prologue): Save and restore eax around stack probe
        if it's live.

From-SVN: r72933

20 years agoResults are re-alphabetized, too
Bruce Korb [Sat, 25 Oct 2003 18:45:39 +0000 (18:45 +0000)]
Results are re-alphabetized, too

From-SVN: r72932

20 years agoClasspathToolkit.java: New abstract class.
Graydon Hoare [Sat, 25 Oct 2003 18:41:45 +0000 (18:41 +0000)]
ClasspathToolkit.java: New abstract class.

2003-10-14  Graydon Hoare  <graydon@redhat.com>

* gnu/java/awt/ClasspathToolkit.java: New abstract class.
* gnu/java/awt/peer/ClasspathFontPeer.java: New abstract class.
* gnu/java/awt/peer/gtk/GdkClasspathFontPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GdkClasspathFontPeer.c:
New concrete implementation of ClasspathFontPeer, with native part.
* gnu/java/awt/peer/gtk/GdkGlyphVector.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGlyphVector.c:
New class, with native part.
* gnu/java/awt/peer/gtk/GdkGraphics2D.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c:
implement setFont, cairoSetFont, drawGlyphVector, cairoShowGlyphs.

From-SVN: r72931

20 years agosnprintf alphabetically precedes uint
Bruce Korb [Sat, 25 Oct 2003 17:43:13 +0000 (17:43 +0000)]
snprintf alphabetically precedes uint

From-SVN: r72928

20 years ago* cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
Jan Hubicka [Sat, 25 Oct 2003 15:12:01 +0000 (17:12 +0200)]
* cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.

From-SVN: r72927

20 years agore PR target/12712 (ICE on short legit C++ code fragment with gcc 3.3.2)
Eric Botcazou [Sat, 25 Oct 2003 12:55:18 +0000 (14:55 +0200)]
re PR target/12712 (ICE on short legit C++ code fragment with gcc 3.3.2)

PR target/12712
* reg-stack.c (convert_regs_1): Create an arbitrary input stack
if the block has no predecessors.
(convert_regs_2): Document the problem with successors whose
only predecessor is the block to be processed.
(convert_regs): Don't create the arbitrary input stack here.

From-SVN: r72923

20 years agolocale_facets.tcc (num_get::_M_extract_int): __pos in only incremented, never used...
Paolo Carlini [Sat, 25 Oct 2003 09:28:39 +0000 (09:28 +0000)]
locale_facets.tcc (num_get::_M_extract_int): __pos in only incremented, never used its value, remove it.

2003-10-25  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (num_get::_M_extract_int):
__pos in only incremented, never used its value, remove it.

From-SVN: r72922

20 years agoMethod.java (toString): Avoid extra whitespace on method with no modifiers.
Bryce McKinlay [Sat, 25 Oct 2003 06:55:21 +0000 (06:55 +0000)]
Method.java (toString): Avoid extra whitespace on method with no modifiers.

* java/lang/reflect/Method.java (toString): Avoid extra whitespace
on method with no modifiers.

From-SVN: r72919

20 years agore PR libgcj/11780 (Method.invoke() is slow)
Bryce McKinlay [Sat, 25 Oct 2003 06:49:20 +0000 (06:49 +0000)]
re PR libgcj/11780 (Method.invoke() is slow)

PR libgcj/11780:
* java/lang/reflect/natMethod.cc (invoke): Look up caller and
perform accessibility check only if target is non-public and
accessible flag is not set.
* java/lang/reflect/natField.cc (getAddr): Likewise.

From-SVN: r72918

20 years agoacinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu and knetbsd*-gnu.
Robert Millan [Sat, 25 Oct 2003 02:48:34 +0000 (02:48 +0000)]
acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu and knetbsd*-gnu.

2003-10-24  Robert Millan  <robertmh@gnu.org>

* acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Add kfreebsd*-gnu
and knetbsd*-gnu.
* aclocal.m4:  Regenerated.
* configure:  Regenerated.

From-SVN: r72917

20 years agogenmodes.c (struct mode_data): Add contained and next_cont fields.
Zack Weinberg [Sat, 25 Oct 2003 02:03:40 +0000 (02:03 +0000)]
genmodes.c (struct mode_data): Add contained and next_cont fields.

* genmodes.c (struct mode_data): Add contained and next_cont
fields.
(complete_mode): Maintain linked list of modes that have a
given component.
(emit_mode_unit_size): Delete.
(emit_mode_nunits): New.
(emit_insn_modes_c): Update to match.
(emit_mode_adjustments): Propagate size and alignment
adjustments from component modes to their containers.
* machmode.h (mode_unit_size): Delete.
(mode_nunits): New.
(GET_MODE_NUNITS): Just return the value in the table.
(GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
GET_MODE_SIZE.
* expmed.c (store_bit_field, extract_bit_field): Can use a
plain move instruction if bitsize >= GET_MODE_BITSIZE of
destination/source mode, respectively.
* varasm.c (assemble_real): Write out the full size of the
constant, not just its bitsize.
(output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.

* config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
alignment of XF and TF modes in compliance with ia64 ABIs.
Can now hardwire the format of both modes.
* config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
(general_tfmode_operand, destination_tfmode_operand)
(tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
general_xfmode_operand, destination_xfmode_operand,
xfreg_or_fp01_operand, spill_xfmode_operand respectively.
(ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
__float128.
* config/ia64/ia64.h: Default TARGET_HPUX to 0.
Change TFmode to XFmode wherever appropriate.  Remove all
references to INTEL_EXTENDED_IEEE_FORMAT.
(LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
(LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
(PREDICATE_CODES): Update to match function renames.
* config/ia64/ia64.md: Change TF to XF throughout; rename all
patterns to match.  Remove all references to
INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
function renames.
* config/ia64/ia64-protos.c: Update all prototypes to match
renamed functions.
* config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
* config/ia64/lib1funcs.asm: Add __divxf3 as new name for
__divtf3; keep old name for backward compatibility.
(L__compat): New section providing forwarding stubs for
__fixtfti, __fixunstfti, __floattitf.
* config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.

From-SVN: r72916

20 years agoDaily bump.
GCC Administrator [Sat, 25 Oct 2003 00:16:05 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r72914

20 years agolocale_facets.tcc (money_get::do_get(..., long double&): Properly size the temporary...
Paolo Carlini [Fri, 24 Oct 2003 22:51:15 +0000 (22:51 +0000)]
locale_facets.tcc (money_get::do_get(..., long double&): Properly size the temporary buffer.

2003-10-24  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (money_get::do_get(...,
long double&): Properly size the temporary buffer.
* testsuite/22_locale/money_get/get/char/11.cc: New.
* testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.

* include/bits/locale_facets.tcc (num_put::_M_group_int,
num_put::_M_group_float, money_put::do_put(..., const
string_type&), collate::do_compare, collate::do_transform):
Prefer basic_string::data() to c_str() when the '\0'
terminator is not really needed.

From-SVN: r72911

20 years agore PR pch/10757 (Adding -fpic/-fPIC causes crash with PCH created without -fpic/...
Geoffrey Keating [Fri, 24 Oct 2003 21:28:13 +0000 (21:28 +0000)]
re PR pch/10757 (Adding -fpic/-fPIC causes crash with PCH created without -fpic/-fPIC)

PR 10757
* c-pch.c: Include target.h.  Improve comments.
(struct c_pch_validity): Add target_data_length.
(pch_init): Add target's validity data.
(c_common_valid_pch): Check target's validity data.
* target-def.h (TARGET_GET_PCH_VALIDITY): New.
(TARGET_PCH_VALID_P): New.
(TARGET_INITIALIZER): Add new fields.
* target.h: Include tm.h.
(struct gcc_target): Add get_pch_validity, pch_valid_p.
* toplev.h (default_get_pch_validity): New prototype.
(default_pch_valid_p): New prototype.
* toplev.c (default_get_pch_validity): New routine.
(default_pch_valid_p): New routine.
* Makefile.in (TARGET_H): Add TM_H.  Replace all users of
target.h with $(TARGET_H).
(c-pch.o): Add TARGET_H.
* doc/tm.texi (PCH Target): New node.
(TARGET_GET_PCH_VALIDITY): Document.
(TARGET_PCH_VALID_P): Document.

From-SVN: r72909

20 years agolocale_facets.tcc (__verify_grouping): Prefer '=' to an unnecessary '&='.
Paolo Carlini [Fri, 24 Oct 2003 20:21:48 +0000 (20:21 +0000)]
locale_facets.tcc (__verify_grouping): Prefer '=' to an unnecessary '&='.

2003-10-24  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (__verify_grouping):
Prefer '=' to an unnecessary '&='.

From-SVN: r72908

20 years agoGtkDialogPeer.java (handleEvent): Remove method.
Thomas Fitzsimmons [Fri, 24 Oct 2003 19:40:30 +0000 (19:40 +0000)]
GtkDialogPeer.java (handleEvent): Remove method.

2003-10-24  Thomas Fitzsimmons  <fitzsim@redhat.com>

* gnu/java/awt/peer/gtk/GtkDialogPeer.java (handleEvent):
Remove method.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java (postWindowEvent):
New method.
* java/awt/Window.java (Window(Window,GraphicsConfiguration),
show, hide, dispose, getOwnedWindows): Synchronize on tree lock.
(dispose): Post WINDOW_CLOSED event.
(addWindowFocusListener, addWindowStateListener): Assign result
of multicaster add back to window listener.
(removeWindowFocusListener, removeWindowStateListener): Assign
result of multicaster remove back to window listener.
(dispatchEventImpl): Add null checks for focus and state
listeners.
(processWindowEvent): Handle case where windowListener is null
but state or focus listeners exist.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c: Add JNI
glue for postWindowEvent.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(window_delete_cb, window_destroy_cb, window_show_cb,
window_focus_in_cb, window_focus_out_cb, window_window_state_cb,
window_get_new_state): New functions.
* jni/gtk-peer/gtkpeer.h: Define window event and frame state
macros.  Declare postWindowEventID.

From-SVN: r72906

20 years agoMakefile.in: Define a vpath for %.texi.
Kelley Cook [Fri, 24 Oct 2003 19:34:50 +0000 (19:34 +0000)]
Makefile.in: Define a vpath for %.texi.

2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>

* Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
and $(docdir)/include from any *.texi dependencies.
($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
($(docobjdir)/%.1): Depend on .pod instead of .texi.
($(docobjdir)/%.7): Likewise.
(%.pod): New implicit rule.
(cpp.pod): New dependency only rule.
(gcc.pod): New intermediate rule with dependencies and commands.
(gfdl.pod): Likewise.
(fsf-funding.pod): Likewise.

From-SVN: r72905

20 years agogcc_release (build_sources): Use --enable-generated-files-in-srcdir.
Kelley Cook [Fri, 24 Oct 2003 19:32:02 +0000 (19:32 +0000)]
gcc_release (build_sources): Use --enable-generated-files-in-srcdir.

2003-10-23  Kelley Cook  <kcook@gcc.gnu.org>

* gcc_release (build_sources): Use --enable-generated-files-in-srcdir.

From-SVN: r72904

20 years agoObvious fix for systems with no interpreter.
Anthony Green [Fri, 24 Oct 2003 18:27:29 +0000 (18:27 +0000)]
Obvious fix for systems with no interpreter.

From-SVN: r72903

20 years agomkfixinc.sh: Remove special cases for svr4 and ptx, and related code.
Nathanael Nerode [Fri, 24 Oct 2003 17:47:51 +0000 (17:47 +0000)]
mkfixinc.sh: Remove special cases for svr4 and ptx, and related code.

* fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
related code.
* fixinc/fixinc.ptx: Remove.
* fixinc/fixinc.svr4: Remove.

From-SVN: r72902

20 years agos390.c (load_multiple_operation): Allow both SImode and DImode if word_mode is DImode.
Ulrich Weigand [Fri, 24 Oct 2003 17:30:34 +0000 (17:30 +0000)]
s390.c (load_multiple_operation): Allow both SImode and DImode if word_mode is DImode.

* config/s390/s390.c (load_multiple_operation): Allow both SImode
and DImode if word_mode is DImode.
(store_multiple_operation): Likewise.
* config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
("*load_multiple_di"): Allow only if word_mode == DImode.
("movqi"): Use LLGC whenever TARGET_ZARCH.
("fix_truncdfsi2"): Fix incorrect temporary size.
("fix_truncsfsi2"): Likewise.
("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
string for function return value operand.
("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.

From-SVN: r72901

20 years agore PR c/11943 (Accepts invalid declaration "int x[2, 3];" in C99 mode)
Joseph Myers [Fri, 24 Oct 2003 15:30:37 +0000 (16:30 +0100)]
re PR c/11943 (Accepts invalid declaration "int x[2, 3];" in C99 mode)

* c-parse.in (array_declarator): Use expr_no_commas.
Fixes PR c/11943.

testsuite:
* gcc.dg/c99-arraydecl-2.c: New test.  PR c/11943.

From-SVN: r72900