aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-04-26[multiple changes]Arnaud Charlet11-75/+262
2004-04-26 Thomas Quinot <quinot@act-europe.fr> * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local subprogram for which no pragma All_Calls_Remote applies, store the address of the real subprogram in the underlying record type, so local dereferences do not go through the PCS. 2004-04-26 Robert Dewar <dewar@gnat.com> * i-c.ads: Add some type qualifications to avoid ambiguities when compiling with s-auxdec.ads and a non-private address type. 2004-04-26 Arnaud Charlet <charlet@act-europe.fr> * Makefile.rtl: Fix error in previous check-in: Add s-addope.o to non tasking object list (rather than tasking object list). 2004-04-26 Javier Miranda <miranda@gnat.com> * sem_aggr.adb: Fix typo in comments (Resolve_Aggr_Expr): Propagate the type to the nested aggregate. Required to check the null-exclusion attribute. * sem_attr.adb (Resolve_Attribute): Check the accessibility level in case of anonymous access types in record and array components. For a component definition the level is the same of the enclosing composite type. * sem_ch3.adb (Analyze_Component_Declaration): In case of components that are anonymous access types the level of accessibility depends on the enclosing type declaration. In order to have this information, set the scope of the anonymous access type to the enclosing record type declaration. (Array_Type_Declaration): In case of components that are anonymous access types the level of accessibility depends on the enclosing type declaration. In order to have this information, set the scope of the anonymous access type to the enclosing array type declaration. * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous access type. * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that renaming of anonymous access-to-constant types allowed if and only if the renamed object is access-to-constant. * sem_util.adb (Type_Access_Level): In case of anonymous access types that are component_definition or discriminants of a nonlimited type, the level is the same as that of the enclosing component type. 2004-04-26 Sergey Rybin <rybin@act-europe.fr> * sem_elim.adb: Some minor code reorganization from code reading. Fix misprint in the function name (File_Name_Match). From-SVN: r81186
2004-04-26Makefile.def (host_modules): Mark with the bootstrap flag packages on which ↵Paolo Bonzini4-11/+18
gcc depends. 2004-04-26 Paolo Bonzini <bonzini@gnu.org> * Makefile.def (host_modules): Mark with the bootstrap flag packages on which gcc depends. * Makefile.tpl (all-bootstrap): Use it. * Makefile.in: Regenerate. From-SVN: r81185
2004-04-26Makefile.def (flags_to_pass): Remove *dir variables that are passed to the ↵Paolo Bonzini3-30/+7
modules via... 2004-04-26 Paolo Bonzini <bonzini@gnu.org> * Makefile.def (flags_to_pass): Remove *dir variables that are passed to the modules via TOPLEVEL_CONFIGURE_ARGUMENTS, as well as prefix and exec_prefix. * Makefile.in: Regenerate. From-SVN: r81184
2004-04-26configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.Paolo Bonzini5-57/+97
2004-04-26 Paolo Bonzini <bonzini@gnu.org> * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL. * configure: Regenerate. * config/acx.m4: Mutuate ACX_PROG_CMP_IGNORE_INITIAL from gcc. * gcc/Makefile.tpl (compare): Use the result of the test. * gcc/Makefile.in: Regenerate. From-SVN: r81183
2004-04-26Clean up previous change.Arnaud Charlet1-2/+2
From-SVN: r81182
2004-04-26* config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.Paul Brook2-7/+9
From-SVN: r81180
2004-04-26stl_vector.h: Trivial formatting fixes.Paolo Carlini3-311/+393
2004-04-26 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_vector.h: Trivial formatting fixes. * include/bits/vector.tcc: Likewise. From-SVN: r81178
2004-04-26fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to fold (build1 ↵Roger Sayle2-5/+23
(NEGATE_EXPR, ...)). * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and X % -1 as 0. From-SVN: r81177
2004-04-26re PR bootstrap/15141 (MMIX breakage in ↵Hans-Peter Nilsson2-2/+21
except.c:connect_post_landing_pads:handle insns after actual call insn) PR bootstrap/15141 * except.c (connect_post_landing_pads): Delete insns after the barrier when generating a unwind_resume_libfunc call. From-SVN: r81176
2004-04-26Daily bump.GCC Administrator2-2/+2
From-SVN: r81173
2004-04-25PR/c++ 15119Richard Kenner2-2/+21
PR/c++ 15119 * tree.c (substitute_placeholder_in_expr, case 4): New case, for TARGET_EXPR. From-SVN: r81170
2004-04-25Fix typo in comment.Richard Kenner1-1/+1
From-SVN: r81169
2004-04-25configure.ac: Fix stupid brain-fade; set default_gnattools_target correctly.Nathanael Nerode3-4/+22
* configure.ac: Fix stupid brain-fade; set default_gnattools_target correctly. * configure: Regenerate. From-SVN: r81167
2004-04-25gcov-io.h (__gcov_fork, [...]): Do not declare when inhibit_libc is defined.Zdenek Dvorak2-0/+8
* gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle, __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when inhibit_libc is defined. From-SVN: r81164
2004-04-25PR libstdc++/15002 (continued again)Paolo Carlini4-3/+28
2004-04-25 Paolo Carlini <pcarlini@suse.de> PR libstdc++/15002 (continued again) * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&, _CharT)): Use a temporary buffer, thus avoiding reallocation for common case. * include/bits/basic_string.tcc (_S_construct(_InIterator, _InIterator, const _Alloc&, input_iterator_tag)): Tweak size of temporary buffer to a power of two. * testsuite/27_io/basic_istream/getline/char/4.cc: Add comment. From-SVN: r81163
2004-04-2510.cc: New.Paolo Carlini4-0/+249
2004-04-25 Paolo Carlini <pcarlini@suse.de> * testsuite/21_strings/basic_string/inserters_extractors/char/10.cc: New. * testsuite/21_strings/basic_string/inserters_extractors/wchar_t/10.cc: Likewise. * testsuite/27_io/basic_istream/getline/char/5.cc: Likewise. From-SVN: r81159
2004-04-25run_all.sh: Handle cd2a83c, cd2a91c (target_bit) and ad8011a (target_insn).Laurent GUERBY4-3/+39
2004-04-24 Laurent GUERBY <laurent@guerby.net> * ada/acats/run_all.sh: Handle cd2a83c, cd2a91c (target_bit) and ad8011a (target_insn). * ada/acats/support/macro.dfs: Likewise. * ada/acats/support/impbit.adb: New file. From-SVN: r81158
2004-04-25mips-protos.h (mips_linked_macc_p): Declare.Richard Sandiford5-15/+197
* config/mips/mips-protos.h (mips_linked_macc_p): Declare. * config/mips/mips.h (TUNE_MACC_CHAINS): New macro. * config/mips/mips.c (TARGET_SCHED_REORDER): Define. (TARGET_SCHED_VARIABLE_ISSUE): Define. (mips_adjust_cost): Move later in file, next to other sched hooks. (mips_macc_chains_last_hilo): New variable. (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder) (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New. * config/mips/mips.md (may_clobber_hilo): New attribute. From-SVN: r81157
2004-04-25jacks.exp (gcj_jacks_write): Explicitly limit the maximum heap size to avoid ↵Ranjit Mathew2-1/+11
unnecessary thrashing. * testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Explicitly limit the maximum heap size to avoid unnecessary thrashing. From-SVN: r81156
2004-04-25* mark.c (GC_mark_from): Use pointer as prefetch argument.Andreas Jaeger2-4/+8
From-SVN: r81155
2004-04-25Daily bump.GCC Administrator2-2/+2
From-SVN: r81152
2004-04-24inclhack.def (aix_syswait_2): New fix.Roger Sayle4-5/+72
* fixinc/inclhack.def (aix_syswait_2): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/sys/wait.h: Update for new test. Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r81147
2004-04-24PR libstdc++/15002 (continued)Paolo Carlini3-23/+170
2004-04-24 Paolo Carlini <pcarlini@suse.de> Petur Runolfsson <peturr02@ru.is> PR libstdc++/15002 (continued) * include/bits/istream.tcc (basic_istream<>::getline(char_type*, streamsize, char_type)): Use traits::find/copy in a loop to speed up greatly the function in the common case (I/O buffer size >> 1). 2004-04-24 Paolo Carlini <pcarlini@suse.de> * testsuite/27_io/basic_istream/getline/char/4.cc: New. * include/bits/istream.tcc (getline(basic_istream<>&, basic_string<>&, _CharT)): Change to use sgetc()/snextc() instead of sbumpc(), consistently with the other functions, thus also dealing correctly with the case of exceeded string::max_size(). Co-Authored-By: Petur Runolfsson <peturr02@ru.is> From-SVN: r81146
2004-04-24CollationElementIterator.java (reset): Reset lookahead variables.Jerry Quinn2-0/+7
2004-04-24 Jerry Quinn <jlquinn@optonline.net> * java/text/CollationElementIterator.java (reset): Reset lookahead variables. From-SVN: r81142
2004-04-24cls_multi_schar.c (main): Fix initialization error.Andreas Tobler4-4/+11
2004-04-24 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libffi.call/cls_multi_schar.c (main): Fix initialization error. Reported by Thomas Heller <theller@python.net>. * testsuite/libffi.call/cls_multi_sshort.c (main): Likewise. * testsuite/libffi.call/cls_multi_ushort.c (main): Likewise. From-SVN: r81131
2004-04-24Makefile.tpl (all-stage1-gcc, [...]): Always relocate gcc and prev-gcc to ↵Paolo Bonzini3-14/+75
the original names, even if the build fails. 2004-04-23 Paolo Bonzini <bonzini@gnu.org> * Makefile.tpl (all-stage1-gcc, all-stage2-gcc, all-stage3-gcc): Always relocate gcc and prev-gcc to the original names, even if the build fails. (new-cleanstrap, new-restage1, new-restage2, new-restage3): New targets. From-SVN: r81130
2004-04-24re PR target/14960 ([3.4 only] -maltivec affects vector return with ↵Alan Modra3-15/+27
-mabi=no-altivec) PR target/14960 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size to non_fixed_size, and leave out fixed_size from the sum. (generate_set_vrsave): Correct clobbers. (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE. (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI. (rs6000_libcall_value): Likewise. * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise. (FUNCTION_ARG_REGNO_P): Likewise. From-SVN: r81129
2004-04-24Makefile.in: Revert most of Arnaud's last change.Nathanael Nerode4-27/+75
* Makefile.in: Revert most of Arnaud's last change. Prefer anything over error-prone Make abuse. Remove temporary debug code. (gnatlib-zcx): New target. (gnattools): Split into gnattools-native, gnattools-cross, to fix previous bug; select which on the basis of default_gnattools_target. (ada.all.cross): Merged with gnattools-cross target. * configure.ac: Set default_gnattools_target. * configure: Regenerate. From-SVN: r81128
2004-04-24expmed.c (expand_mult_highpart_adjust): Do not assume OP1 is a CONST_INT.Ulrich Weigand2-3/+9
* expmed.c (expand_mult_highpart_adjust): Do not assume OP1 is a CONST_INT. (expand_mult_highpart_optab): Call expand_mult_highpart_adjust with NARROW_OP1 instead of OP1. From-SVN: r81127
2004-04-24* gcc.dg/const-elim-1.c: XFAIL on s390*-*-*.Ulrich Weigand2-2/+6
From-SVN: r81125
2004-04-24host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__ and __s390x__ hosts.Ulrich Weigand2-0/+9
* config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__ and __s390x__ hosts. From-SVN: r81124
2004-04-24Daily bump.GCC Administrator2-2/+2
From-SVN: r81121
2004-04-23Makefile.in (LIBGCOV): Add _gcov_fork...Zdenek Dvorak10-33/+282
* Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp, _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve. * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID, BT_FN_INT_CONST_STRING_PTR_CONST_STRING, BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New. * builtins.c (expand_builtin_fork_or_exec): New. (expand_builtin): Call it. * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE, BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New. * c-common.c (PID_TYPE): New macro. (c_common_nodes_and_builtins): Initialize pid_type_node. * calls.c (special_function_p): Do not handle fork and exec. (expand_call): Do not handle ECF_FORK_OR_EXEC. * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle, __gcov_execv, __gcov_execvp, __gcov_execve): Declare. * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle, __gcov_execv, __gcov_execvp, __gcov_execve): New. * tree.h (enum tree_index): Add TI_PID_TYPE. (pid_type_node): New macro. (ECF_FORK_OR_EXEC): Removed. From-SVN: r81118
2004-04-23Jonathan Wakely <cow@compsoc.man.ac.uk>Matthias Klose2-1/+6
2004-04-24 Matthias Klose <doko@debian.org> Jonathan Wakely <cow@compsoc.man.ac.uk> * docs/html/configopts.html: Fix reference to allocator config option. From-SVN: r81114
2004-04-23re PR rtl-optimization/13985 (ICE in gcc.c-torture/compile/930621-1.c)Eric Botcazou4-4/+68
PR optimization/13985 * cfgloopmanip.c (fix_loop_placements): New prototype. Call fix_bb_placements on the preheader of loops that have been reparented. (remove_path): Adjust call to fix_loop_placements. From-SVN: r81112
2004-04-23Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after install.Laurent GUERBY2-8/+12
2004-04-23 Laurent GUERBY <laurent@guerby.net> * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after install. From-SVN: r81105
2004-04-23* jni/classpath/jcl.c: Changed C++ comments into C comments.Mark Wielaard2-1/+9
From-SVN: r81104
2004-04-23linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.Andrew Pinski3-0/+160
2004-04-23 Andrew Pinski <pinskia@physics.uc.edu> * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also. * configure: Regenerate. From-SVN: r81103
2004-04-23darwin7.h: New file.Andrew Pinski4-2/+49
2004-04-23 Andrew Pinski <pinskia@physics.uc.edu> * config/darwin7.h: New file. * config.gcc (*-*-darwin*): Add darwin7.h if the version is greater than 6. * config/darwin.h (TARGET_C99_FUNCTIONS): Define. (MATH_LIBRARY): Wrap in ifdefs. From-SVN: r81100
2004-04-23PR libstdc++/15047, libstdc++/11610Daniel Jacobowitz2-7/+13
PR libstdc++/15047, libstdc++/11610 * testsuite/lib/libstdc++.exp (v3-copy-files): Use remote_download. (libstdc++_init): Don't pass outdir to v3-copy-files. From-SVN: r81094
2004-04-23arm.c (arm_output_epilogue): Reverse the order of loading iWMMXt registers ↵Daniel Jacobowitz4-3/+73
with a frame pointer. * config/arm/arm.c (arm_output_epilogue): Reverse the order of loading iWMMXt registers with a frame pointer. Use post-increment without a frame pointer. (arm_expand_prologue): Reverse the order of saving iWMMXt registers. testsuite/ * gcc.c-torture/execute/simd-5.c: New test. From-SVN: r81092
2004-04-23re PR c++/15064 (typeid of template parameter gives ICE)Giovanni Bajo4-1/+28
PR c++/15064 * parser.c (cp_parser_postfix_expression): typeid operator cannot be used in integral constant expressions. PR c++/15064 * g++.dg/template/crash18.C: New test. From-SVN: r81088
2004-04-23* Make-lang.in (GNATBIND_OBJS): Add s-addope.o.Rainer Orth2-0/+5
From-SVN: r81087
2004-04-23[multiple changes]Arnaud Charlet31-856/+1099
2004-04-23 Emmanuel Briot <briot@act-europe.fr> * adaint.c (__gnat_try_lock): No longer requires that the parent directory be writable, the directory itself is enough. (gnat_is_absolute_path): Change profile, so that the call from GNAT.OS_Lib can be made more efficient. * adaint.h (gnat_is_absolute_path): Change profile, so that the call from GNAT.OS_Lib can be made more efficient. * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid one copy of the file name. Found by code reading. 2004-04-23 Vincent Celier <celier@gnat.com> * gnat_ugn.texi: Add documentation for gnatmake switch -eL Correct documentation on gnatmake switches transmitted to the compiler * ali.ads: Minor comment fix 2004-04-23 Javier Miranda <miranda@gnat.com> * sem_ch6.adb: (Confirming Types): Code cleanup * decl.c (gnat_to_gnu_entity): Give support to anonymous access to subprogram types: E_Anonymous_Access_Subprogram_Type and E_Anonymous_Access_Protected_Subprogram_Type. 2004-04-23 Thomas Quinot <quinot@act-europe.fr> * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating whether a pragma All_Calls_Remote applies to the subprogram on which 'Access is taken. No functional change is introduced by this revision; the new parameter will be used to allow calls to local RCI subprograms to be optimized to not use the PCS in the case where no pragma All_Calls_Remote applies, as is already done in the PolyORB implementation of the DSA. * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating whether a pragma All_Calls_Remote applies to the subprogram on which 'Access is taken. No functional change is introduced by this revision; the new parameter will be used to allow calls to local RCI subprograms to be optimized to not use the PCS in the case where no pragma All_Calls_Remote applies, as is already done in the PolyORB implementation of the DSA. 2004-04-23 Robert Dewar <dewar@gnat.com> * Makefile.rtl: Add entry for s-addope.o in run time library list * Make-lang.in: Add entry for s-addope.o to GNAT1 objects * s-addope.ads, s-addope.adb: New files. * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb, s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow System.Address to be non-private and signed. * sem_elim.adb: Minor reformatting (fairly extensive) Some minor code reorganization from code reading Add a couple of ??? comments 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * trans.c (tree_transform, build_unit_elab): Don't call getdecls. (tree_transform, case N_If_Statement): Remove non-determinism. * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL. 2004-04-23 Sergey Rybin <rybin@act-europe.fr> * gnat_rm.texi: Small fixes in the changes made in the 'pragma Eliminate' section. * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is no longer used as a parameter name for Eliminate pragma). From-SVN: r81086
2004-04-23MAINTAINERS: Update my email address.Laurent GUERBY2-1/+5
2004-04-23 Laurent GUERBY <laurent@guerby.net> * MAINTAINERS: Update my email address. From-SVN: r81085
2004-04-23invoke.texi (Optimize Options): Refer to "unit-at-a-time mode" rather than ↵Paolo Bonzini2-17/+52
"-funit-at-a-time" since -O2 enables... 2004-04-23 Paolo Bonzini <bonzini@gnu.org> * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time mode" rather than "-funit-at-a-time" since -O2 enables it without requiring -f* options. Refer to -fprofile-generate and -fprofile-use correctly. Move -funit-at-a-time among options enabled by -O. Add information about unit-at-a-time caveats. From-SVN: r81082
2004-04-23DriverManager.java: Cleaned up imports.Dalibor Topic2-2/+7
2004-04-23 Dalibor Topic <robilad@kaffe.org> * java/sql/DriverManager.java: Cleaned up imports. From-SVN: r81081
2004-04-232004-04-23 Michael Koch <konqueror@gmx.de>Michael Koch3-19/+48
* java/net/URL.java (hashcode): Don't initialize with default value explicitely. (getContent): Removed redundant "final" keyword. (openStream): Likewise. (getURLStreamHandler): Fixed coding style. * java/net/URLConnection.java (defaultAllowUserInteraction): Don't initialize with default value explicitely. (connected): Likewise. (doOutput): Likewise. (ifModifiedSince): Likewise. (dateformats_initialized): Likewise. (setURLStreamHander): Use StreamTokenizer where it belongs to. From-SVN: r81080
2004-04-232004-04-23 Michael Koch <konqueror@gmx.de>Michael Koch2-40/+34
* gnu/java/nio/channels/FileChannelImpl.java (SET, CUR): Unused, removed. (read): Implement here directly. (implRead): Removed. (write): Implement here directly. (implWrite): Removed. From-SVN: r81079
2004-04-23PortableRemoteObjectDelegate.java, [...]: Cleaned up imports.Dalibor Topic7-24/+36
2004-04-23 Dalibor Topic <robilad@kaffe.org> * javax/rmi/CORBA/PortableRemoteObjectDelegate.java, javax/rmi/CORBA/Stub.java, javax/rmi/CORBA/Util.java, javax/rmi/CORBA/ValueHandler.java, javax/rmi/CORBA/ValueHandler.java, javax/rmi/PortableRemoteObject.java: Cleaned up imports. From-SVN: r81078