OSDN Git Service

pf3gnuchains/gcc-fork.git
16 years ago PR rtl-optimization/31848
steven [Sat, 12 May 2007 18:12:54 +0000 (18:12 +0000)]
PR rtl-optimization/31848
* loop-invariant.c (move_invariant_reg): If we move an insn
with a REG_EQUAL note, and that insn is not always executed,
remove the REG_EQUAL note.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124639 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR libgcj/29324
daney [Sat, 12 May 2007 17:37:55 +0000 (17:37 +0000)]
PR libgcj/29324
* include/posix-threads.h (_Jv_BlockSigchld): Declare.
(_Jv_UnBlockSigchld): Same.
* posix-threads.cc: Include posix-threads.h.
(block_sigchld) Rename to...
(_Jv_BlockSigchld) ... this.
(_Jv_UnBlockSigchld): New function.
(_Jv_InitThreads): Call _Jv_BlockSigchld in place of block_sigchld.
(_Jv_ThreadStart): Same.
* java/lang/PosixProcess$ProcessManager.h: Regenerate.
* java/lang/PosixProcess.java: Clean up imports.
(ProcessManager): Make final.
(ProcessManager.queue): Genericise and make private.
(ProcessManager.pidToProcess): Remove.
(ProcessManager.liveProcesses): New field.
(ProcessManager.reaperPID): Remove.
(ProcessManager.nativeData): New field.
(ProcessManager.removeProcessFromMap): Remove.
(ProcessManager.addProcessToMap):Remove.
(ProcessManager.addToLiveProcesses): New method.
(ProcessManager.run): Rewritten.
(ProcessManager.reap): Change method signature,
(getErrorStream): Correct formatting.
(getInputStream): Same.
(spawn): Add process to liveProcesses list.
(pid): Make package private.
* java/lang/PosixProcess.h: Regenerate.
* java/lang/natPosixProcess.cc: Include posix.h and posix-threads.h.
Add useing namespace java::lang.
(ProcessManagerInternal): New struct.
(sigchld_handler): Rewritten.
(init): Rewritten.
(waitForSignal): Same.
(reap): Same.
(signalReaper): Same.
(nativeDestroy): Call kill as ::kill.
(nativeSpawn): Correct formatting.
* classpath/lib/java/lang/PosixProcess$EOFInputStream.class: Regenerate.
* classpath/lib/java/lang/PosixProcess.class: Same.
* classpath/lib/java/lang/PosixProcess$ProcessManager.class: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124638 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-12 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 12 May 2007 17:21:43 +0000 (17:21 +0000)]
2007-05-12  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/31797
* tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
propagate into a stmt that has volatile ops.

* gcc.c-torture/compile/pr31797.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124637 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agogcc/
rsandifo [Sat, 12 May 2007 08:00:12 +0000 (08:00 +0000)]
gcc/
* configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
(gcc_tooldir): Likewise.
* configure: Regenerate.
* Makefile.in (libsubdir_to_prefix): New variable, based on the
old configure.ac gcc_tooldir setting.
(prefix_to_exec_prefix): New variable.
(DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124634 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-12 Paul Thomas <pault@gcc.gnu.org>
pault [Sat, 12 May 2007 06:19:43 +0000 (06:19 +0000)]
2007-05-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30746
* resolve.c (check_host_association): New function that detects
incorrect host association and corrects it.
(gfc_resolve_expr): Call the new function for variables and
functions.
* match.h : Remove prototype for gfc_match_rvalue.
* gfortran.h : Add prototype for gfc_match_rvalue.

2007-05-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30746
* gfortran.dg/host_assoc_function_1.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124633 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoDaily bump.
gccadmin [Sat, 12 May 2007 00:18:05 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124631 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR c++/31829
sje [Fri, 11 May 2007 22:56:10 +0000 (22:56 +0000)]
PR c++/31829
* g++.dg/warn/multiple-overflow-warn-3.C: Change wchar_t to short.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124628 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-11 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 11 May 2007 18:58:08 +0000 (18:58 +0000)]
2007-05-11  Paolo Carlini  <pcarlini@suse.de>

* include/ext/pod_char_traits.h (char_traits<>::move):
Use __builtin_memmove.
* include/bits/locale_classes.h (locale::_Impl::_M_check_same_name,
collate_byname(const char*, size_t)): Use __builtin_strcmp.
* include/bits/locale_facets.h: Use __builtin_mem* and
__builtin_str* everywhere.
* include/bits/codecvt.h (codecvt_byname(const char*, size_t)):
Use __builtin_strcmp.
* include/bits/char_traits.h: Use __builtin_mem* everywhere.
* include/bits/fstream.tcc (basic_filebuf<>::underflow, imbue):
Use __builtin_memcpy and __builtin_memmove.
* include/bits/locale_facets_nonio.h (moneypunct_byname(const char*,
size_t __refs)): Use __builtin_strcmp.
* include/std/bitset (bitset<>::_M_do_reset): Use __builtin_memset.
* config/locale/gnu/c_locale.h: Use __builtin_strlen, __builtin_strcmp,
and __builtin_memcpy.
* config/locale/gnu/messages_members.h: Likewise.
* config/locale/gnu/time_members.h: Likewise.
* config/locale/generic/c_locale.h: Likewise.
* config/locale/generic/messages_members.h: Likewise.
* config/locale/generic/time_members.h: Likewise.
* config/os/gnu-linux/ctype_noninline.h: Likewise, avoid strdup.
* config/os/tpf/ctype_noninline.h: Likewise.
* config/locale/generic/codecvt_members.cc: Include <cstring>.
* config/locale/generic/ctype_members.cc: Likewise.
* config/locale/generic/collate_members.cc: Likewise.
* config/locale/gnu/c++locale_internal.h: Likewise.
* config/locale/darwin/ctype_members.cc: Likewise.
* src/ctype.cc: Likewise.
* testsuite/19_diagnostics/logic_error/what-1.cc: Likewise.
* testsuite/19_diagnostics/logic_error/what-2.cc: Likewise.
* testsuite/19_diagnostics/runtime_error/what-1.cc: Likewise.
* testsuite/19_diagnostics/runtime_error/what-2.cc: Likewise.
* testsuite/19_diagnostics/runtime_error/what-3.cc: Likewise.
* config/locale/gnu/messages_members.cc: Avoid strdup.
* config/locale/gnu/monetary_members.cc: Likewise.
* config/locale/gnu/time_members.cc: Likewise.
* config/locale/gnu/time_members.cc: Likewise.
* config/locale/generic/c_locale.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124623 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agogcc/
rus [Fri, 11 May 2007 16:20:08 +0000 (16:20 +0000)]
gcc/
        * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
        * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
        * c-common.h (strict_aliasing_warning): Change return type.
        * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
        * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
        (build_c_cast): Condition call to strict_aliasing_warning.
        * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
        * flags.h (set_Wstrict_aliasing): Declare.
        * opts.c (set_Wstrict_alising): Define, add call to.
        * tree-flow.h (strict_aliasing_warning_backend): Declare.
        * tree-ssa-alias-warnings.c: New file.
        * tree-ssa-alias.c (compute_may_aliases): Add call to
        strict_aliasing_warning_backend.

gcc/cp
        * cp/typeck.c (build_indirect_ref): Add call to
        strict_aliasing_warning.
        (build_reinterpret_cast_1): Condition call to
        strict_aliasing_warning.

gcc/testsuite
        * gcc.dg/Wstrict-aliasing-bogus-const-ptr-nonconst-ptr.c: New test.
        * gcc.dg/Wstrict-aliasing-bogus-never-dereferenced.c: New test.
        * gcc.dg/Wstrict-aliasing-bogus-struct-included.c: New test.
        * gcc.dg/Wstrict-aliasing-converted-assigned.c: New test.
        * gcc.dg/Wstrict-aliasing-float-ptr-int-obj.c: New test.
        * gcc.dg/alias-1.c: Update option: -Wstrict-aliasing=2.
        * gcc.dg/alias-9.c: Update option: -Wstrict-aliasing=2.
        * g++.dg/warn/Wstrict-aliasing-7.C: Update option: -Wstrict-aliasing=2.
        * g++.dg/warn/Wstrict-aliasing-bogus-base-derived.C: New test.
        * g++.dg/warn/Wstrict-aliasing-bogus-char-1.C: New test.
        * g++.dg/warn/Wstrict-aliasing-bogus-const.C: New test.
        * g++.dg/warn/Wstrict-aliasing-bogus-nested-arrays.C: New test.
        * g++.dg/warn/Wstrict-aliasing-bogus-signed-unsigned.C: New test.
        * g++.dg/warn/Wstrict-aliasing-bogus-struct-included.C: New test.
        * g++.dg/warn/Wstrict-aliasing-bogus-union.C: New test.
        * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124622 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-11 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Fri, 11 May 2007 16:05:57 +0000 (16:05 +0000)]
2007-05-11  Benjamin Kosnik  <bkoz@redhat.com>

       * include/std/stdexcept: Remove extra spacing.

        * testsuite/19_diagnostics/stdexceptions.cc: Break into...
        * testsuite/19_diagnostics/bad_exception: ...this. Populate.
        * testsuite/19_diagnostics/logic_error: ... this.
        * testsuite/19_diagnostics/logic_error/what-1.cc: ...this.
        * testsuite/19_diagnostics/logic_error/what-2.cc: ...this.
        * testsuite/19_diagnostics/runtime_error: ...this.
        * testsuite/19_diagnostics/runtime_error/what-1.cc: ...this.
        * testsuite/19_diagnostics/runtime_error/what-2.cc: ...this.
        * testsuite/19_diagnostics/runtime_error/what-3.cc: ...this.
        * testsuite/19_diagnostics/23591_thread-1.c: Move...
        * testsuite/19_diagnostics/bad_exception/23591_thread-1.c: ...here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124621 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * MAINTAINERS (Write After Approval): Add myself.
rus [Fri, 11 May 2007 15:54:44 +0000 (15:54 +0000)]
* MAINTAINERS (Write After Approval): Add myself.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124620 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
rakdver [Fri, 11 May 2007 15:52:01 +0000 (15:52 +0000)]
* tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
Use loop_depth and loop_outer accessor functions.
* tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
determine_invariantness_stmt, move_computations_stmt): Ditto.
* cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
add_loop, loopify, unloop, fix_loop_structure): Ditto.
* tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
* tree-scalar-evolution.c (interpret_loop_phi,
compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
instantiate_parameters_1, scev_const_prop): Ditto.
* cfghooks.c (make_forwarder_block): Ditto.
* cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
* modulo-sched.c (loop_canon_p): Ditto.
* tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
slpeel_can_duplicate_loop_p): Ditto.
* lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
* tree-cfg.c (tree_duplicate_sese_region): Ditto.
* cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
cancel_loop, verify_loop_structure): Ditto.
(flow_loop_nested_p, superloop_at_depth, flow_loop_free,
add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
superloops vector instead of "pred" array.
(establish_preds): Take father loop as an argument.  Initialize the
superloops vector.
(flow_loop_tree_node_add): Pass father loop to establish_preds.  Do not
initialize loop->outer.
(flow_loop_tree_node_remove): Truncate the superloops vector.
* cfgloop.h (struct loop): Removed field "outer", fields "depth" and
"pred" merged to "superloops" vector.
(loop_depth, loop_outer): New.
(fel_init): Use loop_outer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124619 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * semantics.c (expand_or_defer_fn): Do not call c_record_cdtor_fn.
hubicka [Fri, 11 May 2007 12:18:17 +0000 (12:18 +0000)]
* semantics.c (expand_or_defer_fn): Do not call c_record_cdtor_fn.
* decl2.c (start_objects): ctors and dtors are no longer public.
(cp_write_global_declarations): Do not call c_build_cdtor_fns.

* cgraphunit.c: Include gt-cgraphunit.h
(static_ctors, static_dtors): New static vars.
(record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
based on implementation in c-common.c
(cgraph_finalize_function): Call record_cdtor_fn.
(cgraph_optimize): Call cgraph_build_cdtor_fns.
* decl.c (finish_function): Do not call c_record_cdtor_fn.
(c_write_global_declarations): Do not call c_build_cdtor_fns.
* c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
build_cdtor, c_build_cdtor_fns): Remove.
* c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
c_build_cdtor_fns): Remove prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124618 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-11 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 11 May 2007 11:49:29 +0000 (11:49 +0000)]
2007-05-11  Paolo Carlini  <pcarlini@suse.de>

PR other/31852
* builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
* builtins.def: Add BUILT_IN_MEMCHR, use the latter.
* builtins.c (fold_builtin_memchr): New.
(expand_builtin_memchr): Call the latter.
(expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
* doc/extend.texi ([Other built-in functions provided by GCC]):
Document memchr.

/testsuite
2007-05-11  Paolo Carlini  <pcarlini@suse.de>

PR other/31852
* gcc.c-torture/execute/builtins/memchr.c: New.
* gcc.c-torture/execute/builtins/memchr-lib.c: New.
* gcc.c-torture/execute/builtins/lib/memchr.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124617 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-11 Paul Thomas <pault@gcc.gnu.org>
pault [Fri, 11 May 2007 11:46:47 +0000 (11:46 +0000)]
2007-05-11 Paul Thomas <pault@gcc.gnu.org>

PR fortran/30876
* trans-expr.c (gfc_conv_function_call): Reduce indirection for
direct assignments of recursive array valued functions.
* primary.c (gfc_match_rvalue): Correct error for recursive
function calls such that directly recursive calls of scalar
function without an explicit result are disallowed.

2007-05-11 Paul Thomas <pault@gcc.gnu.org>

PR fortran/30876
* gfortran.dg/recursive_reference_1.f90: Put error at correct
line.
* gfortran.dg/recursive_reference_2.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124616 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-11 Paul Thomas <pault@gcc.gnu.org>
pault [Fri, 11 May 2007 11:42:56 +0000 (11:42 +0000)]
2007-05-11 Paul Thomas <pault@gcc.gnu.org>

PR fortran/30878
* resolve.c (resolve_fl_namelist): It is not an error if the
namelist element is the result variable of the enclosing
function.  Search for the symbol in current and all parent
namespaces for a potential conflict.
* symbol.c (check_conflict): Remove the conflict between
'in_namelist' and 'FL_PROCEDURE' because the symbol info
is not available to exclude function result variables.
* trans-io.c (nml_get_addr_expr): Use the fake result decl
if the symbol is an implicit result variable.

2007-05-11 Paul Thomas <pault@gcc.gnu.org>

PR fortran/30878
* gfortran.dg/namelist_29.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124615 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
krebbel [Fri, 11 May 2007 08:40:52 +0000 (08:40 +0000)]
2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
PFPO_OP1_TYPE_SHIFT): Constants added.
(DFP_ALL): Mode macro defined.
("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
"*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
Insn definitions added.
("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
"extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
Expanders added.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124614 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-11 Paul Thomas <pault@gcc.gnu.org>
pault [Fri, 11 May 2007 06:19:57 +0000 (06:19 +0000)]
2007-05-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31474
* decl.c (get_proc_name): If an entry has already been declared
as a module procedure, pick up the symbol and the symtree and
use them for the entry.

2007-05-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31474
* gfortran.dg/entry_10.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124613 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-10 Paolo Carlini <pcarlini@suse.de>
paolo [Fri, 11 May 2007 00:55:17 +0000 (00:55 +0000)]
2007-05-10  Paolo Carlini  <pcarlini@suse.de>

* 27_io/objects/wchar_t/11.cc: Include <cstring>.
* 27_io/objects/wchar_t/10.cc: Likewise.
* 27_io/objects/wchar_t/12.cc: Likewise.
* 27_io/basic_streambuf/sputbackc/char/9538.cc: Likewise.
* 27_io/basic_streambuf/sgetn/char/1.cc: Likewise.
* 27_io/basic_streambuf/overflow/char/1.cc: Likewise.
* 27_io/basic_streambuf/sgetc/char/1.cc: Likewise.
* 27_io/basic_streambuf/sputn/wchar_t/1.cc: Likewise.
* 27_io/basic_streambuf/sputn/char/1.cc: Likewise.
* 27_io/basic_ios/cons/char/3.cc: Likewise.
* 27_io/basic_stringbuf/setbuf/char/2.cc: Likewise.
* 27_io/basic_stringbuf/setbuf/char/3.cc: Likewise.
* 27_io/basic_stringbuf/setbuf/char/4.cc: Likewise.
* 27_io/basic_istream/extractors_character/char/4.cc: Likewise.
* 27_io/fpos/mbstate_t/1.cc: Likewise.
* 27_io/basic_filebuf/setbuf/char/2.cc: Likewise.
* 27_io/basic_filebuf/setbuf/char/3.cc: Likewise.
* 25_algorithms/copy/streambuf_iterators/char/2.cc: Likewise.
* 25_algorithms/copy/streambuf_iterators/char/4.cc: Likewise.
* 19_diagnostics/stdexceptions.cc: Likewise.
* 21_strings/char_traits/requirements/short/1.cc: Likewise.
* 21_strings/basic_string/compare/char/1.cc: Likewise.
* 21_strings/basic_string/capacity/1.cc: Likewise.
* ext/codecvt/char-1.cc: Likewise.
* ext/codecvt/char-2.cc: Likewise.
* ext/codecvt/1.cc: Likewise.
* ext/stdio_sync_filebuf/wchar_t/1.cc: Likewise.
* ext/stdio_sync_filebuf/char/1.cc: Likewise.
* ext/stdio_filebuf/char/2.cc: Likewise.
* ext/stdio_filebuf/char/10063-1.cc: Likewise.
* 22_locale/ctype/narrow/char/19955.cc: Likewise.
* 22_locale/codecvt/unshift/wchar_t/1.cc: Likewise.
* 22_locale/codecvt/unshift/wchar_t/2.cc: Likewise.
* 22_locale/codecvt/unshift/wchar_t/3.cc: Likewise.
* 22_locale/codecvt/unshift/wchar_t/4.cc: Likewise.
* 22_locale/codecvt/unshift/char/1.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/1.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/2.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/3.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/4.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/5.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/6.cc: Likewise.
* 22_locale/codecvt/length/wchar_t/7.cc: Likewise.
* 22_locale/codecvt/always_noconv/char/1.cc: Likewise.
* 22_locale/codecvt/encoding/char/1.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/1.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/2.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/3.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/4.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/5.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/6.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/7.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/8.cc: Likewise.
* 22_locale/codecvt/in/wchar_t/9.cc: Likewise.
* 22_locale/codecvt/in/char/1.cc: Likewise.
* 22_locale/codecvt/max_length/char/1.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/1.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/2.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/3.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/4.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/5.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/6.cc: Likewise.
* 22_locale/codecvt/out/wchar_t/7.cc: Likewise.
* 22_locale/codecvt/out/char/1.cc: Likewise.
* 22_locale/locale/cons/5.cc: Likewise.
* 22_locale/collate_byname/named_equivalence.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124610 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoDaily bump.
gccadmin [Fri, 11 May 2007 00:17:46 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124607 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR tree-optimization/31885
rakdver [Thu, 10 May 2007 21:33:11 +0000 (21:33 +0000)]
PR tree-optimization/31885
* tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
to be undetermined.
(automatically_generated_chrec_p): Return false for NULL.

* gcc.dg/tree-ssa/loop-29.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124602 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
zippel [Thu, 10 May 2007 21:29:04 +0000 (21:29 +0000)]
* src/m68k/ffi.c (ffi_prep_incoming_args_SYSV,
ffi_closure_SYSV_inner,ffi_prep_closure): New, add closure support.
* src/m68k/sysv.S(ffi_closure_SYSV,ffi_closure_struct_SYSV): Likewise.
* src/m68k/ffitarget.h (FFI_TRAMPOLINE_SIZE): Likewise.
(FFI_CLOSURES): Enable closure support.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124601 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
zippel [Thu, 10 May 2007 21:20:02 +0000 (21:20 +0000)]
* configure.ac (HAVE_AS_CFI_PSEUDO_OP): New test.
* configure: Regenerate.
* fficonfig.h.in: Regenerate.
* src/m68k/sysv.S (CFI_STARTPROC,CFI_ENDPROC,
CFI_OFFSET,CFI_DEF_CFA): New macros.
(ffi_call_SYSV): Add callframe annotation.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124600 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
zippel [Thu, 10 May 2007 21:06:55 +0000 (21:06 +0000)]
* src/m68k/ffi.c (ffi_prep_args,ffi_prep_cif_machdep): Fix
numerous test suite failures.
* src/m68k/sysv.S (ffi_call_SYSV): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124599 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-10 Dominique d'Humieres <dominiq@lps.ens.fr>
brooks [Thu, 10 May 2007 20:11:45 +0000 (20:11 +0000)]
2007-05-10 Dominique d'Humieres <dominiq@lps.ens.fr>
* assumed_dummy_1.f90: Fix dg directive.
* char_initialiser_actual.f90: Likewise.
* nested_modules_2.f90: Likewise.
* shift-alloc.f90: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124598 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoImprove comment...
mrs [Thu, 10 May 2007 18:52:03 +0000 (18:52 +0000)]
Improve comment...

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124597 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * config/bfin/bfin.h (MOVE_RATIO): Define.
bernds [Thu, 10 May 2007 13:07:24 +0000 (13:07 +0000)]
* config/bfin/bfin.h (MOVE_RATIO): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124596 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agogcc/
rsandifo [Thu, 10 May 2007 11:15:07 +0000 (11:15 +0000)]
gcc/
* config.gcc (sparc-wrs-vxworks): New target.
* config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
* config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
* config/sparc/sparc.h: Include vxworks-dummy.h.
(PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
include LABEL_REFs too.
* config/sparc/sparc.c (sparc_expand_move): Don't assume that
_GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
VxWorks.
(legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
on VxWorks.
(load_pic_register): Use gen_vxworks_load_got for VxWorks.
(sparc_emit_call_insn): New function.
(sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
functions when generating VxWorks PIC.
* config/sparc/sparc.md (vxworks_load_got): New pattern.
(call, call_value): Use sparc_emit_call_insn instead of
emit_call_insn.

libgcc/
* config.host (sparc-wrs-vxworks): New target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124595 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-10 Andreas Krebbel <krebbel1@de.ibm.com>
krebbel [Thu, 10 May 2007 07:53:37 +0000 (07:53 +0000)]
2007-05-10  Andreas Krebbel  <krebbel1@de.ibm.com>

* gcc.dg/20070507-1.c: Disable for non-pic targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124593 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 10 May 2007 03:22:40 +0000 (03:22 +0000)]
2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/31880
* gfortran.dg/unf_read_corrupted_2.f90: Fix test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124591 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 10 May 2007 01:09:57 +0000 (01:09 +0000)]
2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/31880
* gfortran.dg/unf_read_corrupted_2.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124590 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * g++.dg/parse/attr-externally-visible-1.C: Likewise.
mrs [Thu, 10 May 2007 01:02:55 +0000 (01:02 +0000)]
* g++.dg/parse/attr-externally-visible-1.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124589 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-09 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 10 May 2007 01:01:27 +0000 (01:01 +0000)]
2007-05-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/31880
* io/unix.c (fd_alloc_r_at): Fix calculation of physical offset.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124588 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoDaily bump.
gccadmin [Thu, 10 May 2007 00:18:09 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124586 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoFix whitespacing
mrs [Wed, 9 May 2007 21:57:09 +0000 (21:57 +0000)]
Fix whitespacing

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124583 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * g++.dg/other/first-global.C: Add -fpie for darwin.
mrs [Wed, 9 May 2007 19:37:38 +0000 (19:37 +0000)]
* g++.dg/other/first-global.C: Add -fpie for darwin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124580 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
bwilson [Wed, 9 May 2007 19:13:59 +0000 (19:13 +0000)]
* config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124579 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
bwilson [Wed, 9 May 2007 17:05:14 +0000 (17:05 +0000)]
* config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
for floating-point values if HOST_BITS_PER_LONG > 32.  Use split_double
instead of operand_subword.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124578 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
bernds [Wed, 9 May 2007 11:57:49 +0000 (11:57 +0000)]
* config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
* config/bfin/bfin.c (bfin_local_alignment): New function.
* config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124570 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-09 Andreas Krebbel <krebbel1@de.ibm.com>
krebbel [Wed, 9 May 2007 07:40:52 +0000 (07:40 +0000)]
2007-05-09  Andreas Krebbel  <krebbel1@de.ibm.com>

* gcc.dg/20070507-1.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124567 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoRemove conflict marker
mmitchel [Wed, 9 May 2007 05:31:15 +0000 (05:31 +0000)]
Remove conflict marker

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124566 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * libstdc++-v3/libsupc++/cxxabi.h (_GLIBCXX_NOTHROW): New macro.
mmitchel [Wed, 9 May 2007 05:21:36 +0000 (05:21 +0000)]
* libstdc++-v3/libsupc++/cxxabi.h (_GLIBCXX_NOTHROW): New macro.
(__cxa_atexit): Use it.

* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): For
installed-tree testing, search more include directories.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124565 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
pinskia [Wed, 9 May 2007 00:46:11 +0000 (00:46 +0000)]
2007-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        * typeck.c (build_unary_op): Remove code that used to
        handle non lvalue increments/decrements.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124564 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoDaily bump.
gccadmin [Wed, 9 May 2007 00:17:15 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124562 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago* gcc.target/mips/msub-1.c, gcc.target/mips/msub-2.c,
chaoyingfu [Tue, 8 May 2007 22:53:25 +0000 (22:53 +0000)]
* gcc.target/mips/msub-1.c, gcc.target/mips/msub-2.c,
* gcc.target/mips/msub-3.c, gcc.target/mips/msub-4.c,
* gcc.target/mips/msubu-1.c, gcc.target/mips/msubu-2.c,
* gcc.target/mips/msubu-3.c, gcc.target/mips/msubu-4.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124559 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago* doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
chaoyingfu [Tue, 8 May 2007 22:51:14 +0000 (22:51 +0000)]
* doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
* optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
(smsub_widen_optab, umsub_widen_optab): Define.
* optabs.c (init_optabs): Initialize smsub_widen_optab and
umsub_widen_optab.
* genopinit.c (optabs): Fill in smsub_widen_optab and
umsub_widen_optab.
* expr.c (expand_expr_real_1): Try to use smsub_widen_optab
and umsub_widen_optab to implement multiply-subtract sequences.
* config/mips/mips.md (*msac<u>_di): Rename to...
(<u>msubsidi4): ...this.  Extend condition to include
GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
of operand 0 to "ka" and use the three-operand form of msub<u>
for TARGET_DSPR2.
* config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
to define_expands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124558 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR rtl-optimization/28011
kkojima [Tue, 8 May 2007 22:22:49 +0000 (22:22 +0000)]
PR rtl-optimization/28011
* reload.c (push_reload): Set dont_share if IN appears in OUT
also when IN is a PLUS rtx.
(reg_overlap_mentioned_for_reload_p): Return true if X and IN
are same PLUS rtx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124557 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
kazu [Tue, 8 May 2007 21:26:29 +0000 (21:26 +0000)]
* emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
call unshare_all_decls.
(unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
(unshare_all_decls): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124556 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-08 Simon Martin <simartin@users.sourceforge.net>
simartin [Tue, 8 May 2007 15:33:56 +0000 (15:33 +0000)]
2007-05-08  Simon Martin  <simartin@users.sourceforge.net>

PR 31847
* tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
dumps.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124551 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-08 Paul Thomas <pault@gcc.gnu.org>
pault [Tue, 8 May 2007 14:40:58 +0000 (14:40 +0000)]
2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31630
* resolve.c (resolve_symbol): Remove the flagging mechanism from the
formal namespace resolution and instead check that the formal
namespace is not the current namespace.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124550 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-08 Paul Thomas <pault@gcc.gnu.org>
pault [Tue, 8 May 2007 12:45:31 +0000 (12:45 +0000)]
2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31692
* trans-array.c (gfc_conv_array_parameter): Convert full array
references to the result of the procedure enclusing the call.

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31692
* gfortran.dg/actual_array_result_1.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124546 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
sandra [Tue, 8 May 2007 12:44:21 +0000 (12:44 +0000)]
2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
            Nigel Stephens  <nigel@mips.com>

gcc/
* config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
Update comments and all uses.
(MIN_FPRS_PER_FMT): Define.
* config/mips/mips.c (function_arg): Fix to correctly handle
the -mips32r2 -mfp64 -mabi=32 case.
(override_options): Enable use of odd-numbered registers for
SFmode values on MIPS32.
(mips_save_reg_p): Save whole floating-point register pair if
either half is used.
(compute_frame_size): Fix comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124545 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * config/bfin/bfin-protos.h (enum bfin_cpu): Add
bernds [Tue, 8 May 2007 12:33:23 +0000 (12:33 +0000)]
* config/bfin/bfin-protos.h (enum bfin_cpu): Add
BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
* config/bfin/bfin.c (bfin_handle_option): Handle
-mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
Support bf534, bf536 and bf561.
* doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124544 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-08 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Tue, 8 May 2007 12:10:48 +0000 (12:10 +0000)]
2007-05-08  Benjamin Kosnik  <bkoz@redhat.com>

* include/std/type_traits (make_signed): Remove specializations
for floating point types.
(make_unsigned): Same.
* testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Fix.
* testsuite/20_util/make_signed/requirements/typedefs-1.cc: Same.
* testsuite/20_util/make_signed/requirements/typedefs-2.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: Same.
* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124543 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
bernds [Tue, 8 May 2007 11:59:08 +0000 (11:59 +0000)]
* config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
argument of type bool.
* config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
argument. Safely select temporary P register according to it.
(do_link): Change call site of add_to_reg accordingly.
(do_unlink): Add epilogue_p as a fourth argument and pass it
to add_to_reg.
(expand_interrupt_handler_epilogue): Change call of do_unlink
accordingly.
(bfin_expand_prologue): Add a third argument sibcall_p.
* config/bfin/bfin.md (epilogue): Change call of
bfin_expand_epilogue accordingly.
(sibcall_epilogue): Likewise.
(eh_return_internal): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124542 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-08 Paul Thomas <pault@gcc.gnu.org>
pault [Tue, 8 May 2007 11:58:25 +0000 (11:58 +0000)]
2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29397
PR fortran/29400
* decl.c (add_init_expr_to_sym): Expand a scalar initializer
for a parameter array into an array expression with the right
shape.
* array.c (spec_dimen_size): Remove static attribute.
* gfortran.h : Prototype for spec_dimen_size.

2007-05-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/29397
* gfortran.dg/parameter_array_init_1.f90: New test.

PR fortran/29400
* gfortran.dg/parameter_array_init_2.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124541 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-08 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Tue, 8 May 2007 10:44:37 +0000 (10:44 +0000)]
2007-05-08  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124540 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * libsupc++/cxxabi-internal.h: Remove, to be replaced by...
jason [Tue, 8 May 2007 06:50:32 +0000 (06:50 +0000)]
    * libsupc++/cxxabi-internal.h: Remove, to be replaced by...
        * libsupc++/cxxabi-forced.h: ...this new file.
        * include/ext/vstring.tcc: Include cxxabi-forced.h instead.
        * include/bits/istream.tcc: Likewise.
        * include/bits/ostream.tcc: Likewise.
        * include/bits/basic_string.tcc: Likewise.
        * include/bits/ostream_insert.h: Likewise.
        * include/bits/fstream.tcc: Likewise.
        * include/std/bitset: Likewise.
        * libsupc++/cxxabi.h: Restore previous contents.
        * Makefile.am (headers): Add cxxabi-forced.h.
        * Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124539 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR target/31854
uros [Tue, 8 May 2007 06:48:15 +0000 (06:48 +0000)]
PR target/31854
* config/i386/i386.c (ix86_function_regparm): Process local
functions only when TREE_CODE (decl) equals FUNCTION_DECL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124538 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-08 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Tue, 8 May 2007 06:04:52 +0000 (06:04 +0000)]
2007-05-08  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/util/testsuite_abi.cc: Add CXXABI_1.3.2.

* libsupc++/cxxabi-internal.h (__foreign_exception::__pure): To
__pure_virtual.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124537 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoinclude cstring as well
jason [Tue, 8 May 2007 05:09:44 +0000 (05:09 +0000)]
include cstring as well

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124536 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * gcc.dg/pch/pch.exp: XFAIL largefile on Solaris 10 x86.
mmitchel [Tue, 8 May 2007 03:16:25 +0000 (03:16 +0000)]
* gcc.dg/pch/pch.exp: XFAIL largefile on Solaris 10 x86.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124535 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * doc/invoke.texi (Warning Options): Document that -Wempty-body
mrs [Tue, 8 May 2007 01:31:24 +0000 (01:31 +0000)]
* doc/invoke.texi (Warning Options): Document that -Wempty-body
also checks for and while statements in C++.

cp:
* parser.c (check_empty_body): Add.
(cp_parser_iteration_statement): Add call to check_empty_body.

testsuite:
* g++.old-deja/g++.mike/empty.C: Add.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124534 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-07 Eric Christopher <echristo@apple.com>
echristo [Tue, 8 May 2007 01:21:48 +0000 (01:21 +0000)]
2007-05-07  Eric Christopher  <echristo@apple.com>

        * gcc.dg/invalid-call-1.c: Fix options for 32-bit x86.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124533 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoinclude/
froydnj [Tue, 8 May 2007 00:37:39 +0000 (00:37 +0000)]
include/
2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>

* libiberty.h (writeargv): Declare.

libiberty/
2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>

* argv.c (writeargv): New function.

gcc/
2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>

* gcc.c (at_file_supplied): New variable.
(main): Set it if we expanded argv.
(do_spec_1): Pass an @-file to the linker if we were called with
an @-file argument and HAVE_GNU_LD.
* collect2.c (at_file_supplied): New variable.
(response_file): New variable.
(collect_exit): Unlink response_file if necessary.
(handler): Likewise.
(do_wait): Likewise.
(main): Set at_file_supplied if we expanded argv.
(collect_execute): Pass an @-file to subprocesses if we were called
with an @-file argument.
* configure.ac: Add define for HAVE_GNU_LD.
* configure: Regenerate.
* config.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124532 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR java/31842
ian [Tue, 8 May 2007 00:29:43 +0000 (00:29 +0000)]
PR java/31842
* java/lang/natString.cc (_Jv_FormatInt): Avoid undefined signed
overflow.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124530 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoDaily bump.
gccadmin [Tue, 8 May 2007 00:17:39 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124527 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago* config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
dj [Mon, 7 May 2007 23:46:02 +0000 (23:46 +0000)]
* config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
operand to HI mode.
(mulsi3): New.
(divsi3): New.
(udivsi3): New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124524 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago* config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
dj [Mon, 7 May 2007 23:13:15 +0000 (23:13 +0000)]
* config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
(TARGET_ENCODE_SECTION_INFO): Re-define.
(m32c_encode_section_info): New
(function_vector_handler): New
(current_function_special_page_vector): New
(m32c_special_page_vector_p): New.
* config/m32c/m32c-protos.h (m32c_special_page_vector_p):
Prototype.
* config/m32c/jump.md: Added instruction JSRS for functions
with attribute "function_vector".
* doc/extend.texi (function_vector): Added description
for M16C, M32C targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124523 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * include/bits/ostream.tcc (operator<<(char*)): Add __s.
jason [Mon, 7 May 2007 22:44:54 +0000 (22:44 +0000)]
    * include/bits/ostream.tcc (operator<<(char*)): Add __s.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124522 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoPR 31794
dj [Mon, 7 May 2007 22:14:05 +0000 (22:14 +0000)]
PR 31794
* config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
ashrpsi3, lshrpsi3): Update shift count constraint.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124521 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * config/abi/pre/gnu.ver: Fix symbol versions.
jason [Mon, 7 May 2007 21:49:50 +0000 (21:49 +0000)]
    * config/abi/pre/gnu.ver: Fix symbol versions.
        * config/abi/pre/gnu-versioned-namespace.ver: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124520 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * config/os/mingw32/os_defines.h (NOMINMAX): Update comment.
dannysmith [Mon, 7 May 2007 21:38:16 +0000 (21:38 +0000)]
* config/os/mingw32/os_defines.h (NOMINMAX): Update comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124519 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR c++/28145
jason [Mon, 7 May 2007 21:27:54 +0000 (21:27 +0000)]
    PR c++/28145
        * libsupc++/cxxabi.h (__forced_unwind, __foreign_exception):
        New classes.
        * libsupc++/eh_exception.cc: Define their destructors.
        * config/abi/pre/gnu.ver: Export their type_infos.
        * config/abi/pre/gnu-versioned-namespace.ver: Likewise.
        * libsupc++/eh_personality.cc: A handler for abi::__forced_unwind
        matches a forced unwind, and a handler for abi::__foreign_exception
        matches a foreign exception.

        * include/bits/istream.tcc: Rethrow forced unwind.
        * include/bits/ostream.tcc: Likewise.
        * include/bits/ostream_insert.h: Likewise.
        * include/bits/basic_string.tcc (operator>>, getline): Likewise.
        * include/bits/fstream.tcc (basic_filebuf::close): Likewise.
        * include/ext/vstring.cc (operator>>, getline): Likewise.
        * src/istream.cc: Likewise.
        * src/compatibility.cc (basic_istream::ignore): Likewise.
        * include/std/bitset (operator>>): Likewise.
        * include/std/fstream (basic_filebuf::close): Remove throw() spec.
        * libsupc++/cxxabi-internal.h: Split out from...
        * libsupc++/cxxabi.h: ...here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124517 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerate.
kseitz [Mon, 7 May 2007 20:48:01 +0000 (20:48 +0000)]
    * classpath/lib/gnu/classpath/jdwp/Jdwp.class: Regenerate.
        * classpath/lib/gnu/classpath/jdwp/Jdwp$1.class: Regenerate.
        * classpath/lib/gnu/classpath/jdwp/event/Event.class:
        Regenerate.
        * classpath/lib/gnu/classpath/jdwp/transport/JdwpConnection.class:
        Regenerate.
        * gnu/classpath/jdwp/Jdwp.h: Regenerate.
        * gnu/classpath/jdwp/event/Event.h: Regenerate.
        * gnu/classpath/jdwp/transport/JdwpConnection.h: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124515 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * gnu/classpath/jdwp/Jdwp.java (notify): Rewrite to call
kseitz [Mon, 7 May 2007 20:45:21 +0000 (20:45 +0000)]
    * gnu/classpath/jdwp/Jdwp.java (notify): Rewrite to call
        new array-based method.
        (notify): New function.
        (sendEvent): Rewrite to use sendEvents.
        (sendEvents): New method.
        * gnu/classpath/jdwp/event/Event.java (toPacket): Make static.
        Change parameters to use arrays for events and requests.
        Add suspendPolicy parameter.
        Move per-event data transformation to...
        (_toData): ... here.
        * gnu/classpath/jdwp/transport/JdwpConnection.java
        (sendEvent): Renamed to ...
        (sendEvents): ... this.
        Change parameters to use arrays for events and requests.
        Add suspendPolicy parameter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124514 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-07 Paolo Carlini <pcarlini@suse.de>
paolo [Mon, 7 May 2007 20:38:14 +0000 (20:38 +0000)]
2007-05-07  Paolo Carlini  <pcarlini@suse.de>

* Remove spurious space in last ChangeLog entry.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124513 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-07 Paolo Carlini <pcarlini@suse.de>
paolo [Mon, 7 May 2007 20:37:15 +0000 (20:37 +0000)]
2007-05-07  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algobase.h: Do not include <cstring>.
(copy(const _Tp*, const _Tp*, _Tp*), __copy_b(const _Tp*, const _Tp*,
_Tp*)): Use __builtin_memmove.
(__fill_aux): Use __builtin_memset.
(equal(const _Tp*, const _Tp*, const _Tp*),
lexicographical_compare(const unsigned char*, const unsigned char*,
const unsigned char*, const unsigned char*)): Use __builtin_memcmp.
*  include/bits/valarray_array.h: Do not include <cstring>.
(_Array_default_ctor<, true>::_S_do_it): Use __builtin_memset.
(_Array_copy_ctor<, true>::_S_do_it, _Array_copier<, true>::_S_do_it):
Use __builtin_memcpy.
* include/ext/algorithm
(__lexicographical_compare_3way(const unsigned char*,
const unsigned char*, const unsigned char*, const unsigned char*)):
Use __builtin_memcmp.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Adjust dg-error line number.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124512 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-07 Paolo Carlini <pcarlini@suse.de>
paolo [Mon, 7 May 2007 20:36:40 +0000 (20:36 +0000)]
2007-05-07  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_algobase.h: Do not include <cstring>.
(copy(const _Tp*, const _Tp*, _Tp*), __copy_b(const _Tp*, const _Tp*,
_Tp*)): Use __builtin_memmove.
(__fill_aux): Use __builtin_memset.
(equal(const _Tp*, const _Tp*, const _Tp*),
lexicographical_compare(const unsigned char*, const unsigned char*,
const unsigned char*, const unsigned char*)): Use __builtin_memcmp.
*  include/bits/valarray_array.h: Do not include <cstring>.
(_Array_default_ctor<, true>::_S_do_it): Use __builtin_memset.
(_Array_copy_ctor<, true>::_S_do_it, _Array_copier<, true>::_S_do_it):
Use __builtin_memcpy.
* include/ext/algorithm
(__lexicographical_compare_3way(const unsigned char*,
const unsigned char*, const unsigned char*, const unsigned char*)):
Use __builtin_memcmp.
* testsuite/23_containers/vector/requirements/dr438/
constructor_1_neg.cc: Adjust dg-error line number.
* testsuite/23_containers/vector/requirements/dr438/
constructor_2_neg.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124511 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR libfortran/31607
fxcoudert [Mon, 7 May 2007 19:48:40 +0000 (19:48 +0000)]
PR libfortran/31607
* intrinsics/system.c (system_sub): Call flush_all_units.
* io/io.h (flush_all_units): Move prototype to libgfortran.h.
* libgfortran.h (flush_all_units): Add prototype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124510 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * testsuite/22_locale/num_put/put/char/14220.cc: XFAIL on Solaris
mmitchel [Mon, 7 May 2007 18:39:18 +0000 (18:39 +0000)]
* testsuite/22_locale/num_put/put/char/14220.cc: XFAIL on Solaris
2.10.
* testsuite/22_locale/num_put/put/wchar_t/14220.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124508 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * gcc.dg/dfp/convert-bfp-fold.c: Remove extra assignment to
uros [Mon, 7 May 2007 18:32:35 +0000 (18:32 +0000)]
    * gcc.dg/dfp/convert-bfp-fold.c: Remove extra assignment to
        sf variable.  Rearrange conversions from binary float to decimal float.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124507 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * gcc.dg/special/gcsec-1.c: Don't link statically on Solaris 10
mmitchel [Mon, 7 May 2007 18:28:41 +0000 (18:28 +0000)]
* gcc.dg/special/gcsec-1.c: Don't link statically on Solaris 10
x86.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124506 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * testsuite/lib/libstdc++.exp (v3_target_compile_as_c): In
mmitchel [Mon, 7 May 2007 18:03:47 +0000 (18:03 +0000)]
* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): In
installed-tree testing, use "remote_exec host", not "remote_exec
exec".  Trip trailing newlines from output of -dumpversion and
-dumpmachine.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124505 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR 22133
froydnj [Mon, 7 May 2007 17:41:35 +0000 (17:41 +0000)]
PR 22133
* c-incpath.c (add_path): Strip trailing path separators.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124504 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-07 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Mon, 7 May 2007 15:29:57 +0000 (15:29 +0000)]
2007-05-07  Benjamin Kosnik  <bkoz@redhat.com>
            Howard Hinnant  <hhinnant@apple.com>

* include/std/type_traits: (make_signed, make_unsigned): Adjust
for enum sizes.
* testsuite/20_util/make_unsigned/requirements/typedefs.cc: Move to...
* testsuite/20_util/make_unsigned/requirements/typedefs-1.cc: ...here.
* testsuite/20_util/make_unsigned/requirements/typedefs-2.cc: Add,
compile with -funsigned-char -fshort-enums.
* testsuite/20_util/make_signed/requirements/typedefs.cc: Move to...
* testsuite/20_util/make_signed/requirements/typedefs-1.cc: ...here.
* testsuite/20_util/make_signed/requirements/typedefs-2.cc: Add,
compile with -funsigned-char -fshort-enums.

* testsuite/20_util/headers/type_traits/types_std_c++0x_neg.cc:
Add a temporary xfail to this test for all platforms.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124500 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * tree-ssa-dom.c (tree_ssa_dominator_optimize): Do not free dominance
ebotcazou [Mon, 7 May 2007 12:48:46 +0000 (12:48 +0000)]
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Do not free dominance
info after purging EH edges.
(eliminate_degenerate_phis): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124499 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
ebotcazou [Mon, 7 May 2007 11:42:21 +0000 (11:42 +0000)]
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
Free dominance info before purging EH edges as well as after.
(eliminate_degenerate_phis): Likewise.
(propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124498 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * gimplify.c (gimplify_expr): Do not crash when folding
hubicka [Mon, 7 May 2007 10:36:09 +0000 (10:36 +0000)]
* gimplify.c (gimplify_expr): Do not crash when folding
(void *)(int)&a + 4.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124497 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR fortran/31399
fxcoudert [Mon, 7 May 2007 05:53:07 +0000 (05:53 +0000)]
PR fortran/31399

* trans-stmt.c (gfc_trans_do): Handle large loop counts.

* gfortran.dg/do_3.F90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124496 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR driver/31694
fxcoudert [Mon, 7 May 2007 05:48:24 +0000 (05:48 +0000)]
PR driver/31694
* c-opts.c (lang_fortran): Make it non static.
* c-common.h (lang_fortran): New prototype.
* c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
-lang-fortran option was passed by the driver.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124495 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoFix a typo in 2007-05-03 entry from Ian Lance Taylor.
bje [Mon, 7 May 2007 01:14:15 +0000 (01:14 +0000)]
Fix a typo in 2007-05-03 entry from Ian Lance Taylor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124489 138bc75d-0d04-0410-961f-82ee72b054a4

16 years agoDaily bump.
gccadmin [Sun, 6 May 2007 23:17:39 +0000 (23:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124485 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago PR fortran/31764
fxcoudert [Sun, 6 May 2007 22:56:52 +0000 (22:56 +0000)]
PR fortran/31764

* simplify.c (gfc_simplify_new_line): NEW_LINE can be simplified
even for non constant arguments.

* gfortran.dg/new_line.f90: Add new checks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124482 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 6 May 2007 22:37:27 +0000 (22:37 +0000)]
2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/31201
* gfortran.dg/large_unit_1.f90: New.
* gfortran.dg/large_unit_2.f90: New.
* gfortran.dg/iostat_4.f90: New
* gfortran.dg/bounds_check_fail_1.f90: Updated.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124481 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 6 May 2007 22:32:33 +0000 (22:32 +0000)]
2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
    Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

PR fortran/31201
* gfortran.h: Add runtime error codes from libgfortran.h. Define
MAX_UNIT_NUMBER.
* trans.c (gfc_trans_runtime_check): Update the format of runtime error
messages to match library runtime errors.  Use call to new library
function runtime_error_at().
* trans.h: Add prototype for new function gfc_trans_io_runtime_check.
Add declaration for library functions runtime_error_at and
generate_error.
* trans_io.c (gfc_trans_io_runtime_check): New function.
(set_parameter_value): Add error checking for UNIT numbers.
(set_parameter_ref): Initialize the users variable to zero.
(gfc_trans_open): Move setting of unit number to after setting of common
flags so that runtime error trapping can be detected.
(gfc_trans_close): Likewise. (build_filepos): Likewise.
(gfc_trans_inquire): Likewise. (build_dt): Likewise.
* trans-decl.c: Add declarations for runtime_error_at and
generate_error. (gfc_build_builtin_function_decls): Build function
declarations for runtime_error_at and generate_error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124480 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 6 May 2007 22:28:31 +0000 (22:28 +0000)]
2007-05-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/31201
* runtime/error.c (runtime_error_at): New function.
(generate_error): Export this function.
* gfortran.map: Add _gfortran_generate_error and
_gfortran_runtime_error_at.
* libgfortran.h: Add comment to reference error codes in front end.
(library_start): Locate prototype with library_end macro and add
a new comment.  Add prototype for runtime_error_at. Export prototype for
generate_error.
* io/lock.c (library_start): Fix check for error condition.
* io/transfer.c (data_transfer_init): Add library check.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124479 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
ebotcazou [Sun, 6 May 2007 21:21:17 +0000 (21:21 +0000)]
* timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
of ASSERT_CHECKING.  Tweak message.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124478 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-06 Paolo Carlini <pcarlini@suse.de>
paolo [Sun, 6 May 2007 18:51:10 +0000 (18:51 +0000)]
2007-05-06  Paolo Carlini  <pcarlini@suse.de>

* include/std/complex: Add missing extern template declarations.
* testsuite/26_numerics/complex/complex_inserters_extractors.cc:
Move...
* testsuite/26_numerics/complex/inserters_extractors/char/1.cc:
... here.
* testsuite/26_numerics/complex/inserters_extractors/wchar_t/1.cc:
New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124477 138bc75d-0d04-0410-961f-82ee72b054a4

16 years ago2007-05-06 Paul Thomas <pault@gcc.gnu.org>
pault [Sun, 6 May 2007 15:13:11 +0000 (15:13 +0000)]
2007-05-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31540
* resolve.c (resolve_fl_procedure): Resolve constant character
lengths.

2007-05-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31540
* gfortran.dg/char_result_4.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124476 138bc75d-0d04-0410-961f-82ee72b054a4