platform/upstream/gcc.git
17 years agolink.cc (_Jv_Linker::resolve_method_entry): Ensure that the argument types and the...
Gary Benson [Fri, 23 Mar 2007 11:25:46 +0000 (11:25 +0000)]
link.cc (_Jv_Linker::resolve_method_entry): Ensure that the argument types and the return type of the found method match...

2007-03-23  Gary Benson  <gbenson@redhat.com>

* link.cc (_Jv_Linker::resolve_method_entry):
Ensure that the argument types and the return type of the
found method match those expected by the calling method.

From-SVN: r123156

17 years agore PR fortran/30834 (ICE with kind=8 exponentiaton)
Francois-Xavier Coudert [Fri, 23 Mar 2007 07:00:56 +0000 (07:00 +0000)]
re PR fortran/30834 (ICE with kind=8 exponentiaton)

PR fortran/30834

* arith.c (complex_pow): Rewrite to handle large power.
(gfc_arith_power): Handle large power in the real and integer
cases.

* gfortran.dg/integer_exponentiation_3.F90: New test.
* gfortran.dg/integer_exponentiation_4.f90: New test.
* gfortran.dg/integer_exponentiation_5.F90: New test.

From-SVN: r123154

17 years agocp-tree.h (current_tempalte_parms): Improve documentation.
Mark Mitchell [Fri, 23 Mar 2007 04:39:08 +0000 (04:39 +0000)]
cp-tree.h (current_tempalte_parms): Improve documentation.

* cp-tree.h (current_tempalte_parms): Improve documentation.
* pt.c (current_template_args): Likewise.

From-SVN: r123153

17 years agore PR c++/30863 (Unsigned templatized struct treated as unsigned int)
Mark Mitchell [Fri, 23 Mar 2007 04:37:40 +0000 (04:37 +0000)]
re PR c++/30863 (Unsigned templatized struct treated as unsigned int)

PR c++/30863
* parser.c (cp_parser_parse_and_diagnose_invalid_type_name): Do
not consume tokens when failing.
PR c++/30863
* g++.dg/template/error24.C: New test.
* g++.dg/parse/tmpl-outside1.C: Tweak error markers.

From-SVN: r123152

17 years agoMark Mitchell <mark@codesourcery.com> PR c++/31273
Mark Mitchell [Fri, 23 Mar 2007 04:31:21 +0000 (04:31 +0000)]
Mark Mitchell <mark@codesourcery.com> PR c++/31273

    Mark Mitchell  <mark@codesourcery.com>
PR c++/31273
* call.c (standard_conversion): Use type_decays_to.  Keep FCODE
consistent with FROM.
PR c++/31273
* g++.dg/expr/bitfield7.C: New test.

From-SVN: r123150

17 years agoerror.c (dump_expr): Handle dependent names that designate types.
Gabriel Dos Reis [Fri, 23 Mar 2007 02:58:46 +0000 (02:58 +0000)]
error.c (dump_expr): Handle dependent names that designate types.

* error.c (dump_expr): Handle dependent names that designate types.
* cxx-pretty-print.c (pp_cxx_unqualified_id): Handle TYPENAME_TYPE.

From-SVN: r123148

17 years ago* acx.m4 (ACX_PKGVERSION, ACX_BUGURL): Define.
Joseph Myers [Fri, 23 Mar 2007 02:51:56 +0000 (02:51 +0000)]
* acx.m4 (ACX_PKGVERSION, ACX_BUGURL): Define.

From-SVN: r123147

17 years agoi386.c (ix86_function_regparm): Early exit for 64-bit...
Richard Henderson [Fri, 23 Mar 2007 02:02:38 +0000 (19:02 -0700)]
i386.c (ix86_function_regparm): Early exit for 64-bit...

        * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
        don't increase local_regparm with force_align_arg_pointer check.
        (ix86_function_sseregparm): Assert 32-bit.
        (type_has_variadic_args_p): New.
        (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
        type_has_variadic_args_p.
        (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
        (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
        use memset instead.  Do maybe_vaarg check first; skip attribute
        tests if true; skip attribute tests for 64-bit.
        (construct_container): Remove TARGET_DEBUG_ARG.
        (function_arg_advance_32, function_arg_advance_64): Split out ...
        (function_arg_advance): ... from here.
        (function_arg_32, function_arg_64): Split out ...
        (function_arg): ... from here.
        (ix86_pass_by_reference): Tidy.
        (ix86_function_value_regno_p): Rearrange w/ switch on regno.
        (function_value_32): New, from parts of ix86_function_value
        and ix86_value_regno.
        (function_value_64): New, from parts of ix86_function_value
        and ix86_libcall_value.
        (ix86_function_value_1): New.
        (ix86_function_value, ix86_libcall_value): Use it.
        (return_in_memory_32, return_in_memory_64): Split out ...
        (ix86_return_in_memory): ... from here.
        (ix86_struct_value_rtx): Skip for 64-bit.
        (ix86_libcall_value, ix86_value_regno): Remove.
        (setup_incoming_varargs_64): Split out ...
        (ix86_setup_incoming_varargs): ... from here.
        (ix86_va_start): Remove TARGET_DEBUG_ARG.
        (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
        * config/i386/i386-protos.h (ix86_function_value): Remove.
        * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.

From-SVN: r123146

17 years agoDaily bump.
GCC Administrator [Fri, 23 Mar 2007 00:17:46 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r123142

17 years agore PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs past...
Jerry DeLisle [Fri, 23 Mar 2007 00:13:19 +0000 (00:13 +0000)]
re PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs past EOF)

2007-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/31052
* file_pos.c: Update Copyright year.
* io/open.c (test_endfile): Restore test_endfile to fix SPEC regression.
Update Copyright year.
* io/io.h: Same.
* io/unix.c (is_special): Add missing type for this function.
Update Copyright year.
* io/transfer.c (next_record_r): Restore test_endfile.
(st_read): Fix whitespace.  Update Copyright year

From-SVN: r123139

17 years agore PR libgcj/31228 (Race condition between setting close-on-exec and Runtime.exec())
David Daney [Fri, 23 Mar 2007 00:06:41 +0000 (00:06 +0000)]
re PR libgcj/31228 (Race condition between setting close-on-exec and Runtime.exec())

PR libgcj/31228
* configure.ac: Add checks for getrlimit and sys/resource.h.
* include/posix.h (_Jv_platform_close_on_exec): Remove.
* include/config.h.in: Regenerate.
* configure: Regenerate.
* gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to
_Jv_platform_close_on_exec;
* gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise.
(accept): Likewise.
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise.
* java/lang/natPosixProcess.cc: Include sys/resource.h.
(nativeSpawn): Close all file descriptors.  Don't set FD_CLOEXEC on
pipes.

From-SVN: r123138

17 years agore PR other/23572 (No warning for assigning a value to a 'float' variable that overfl...
Manuel López-Ibáñez [Thu, 22 Mar 2007 23:04:24 +0000 (23:04 +0000)]
re PR other/23572 (No warning for assigning a value to a 'float' variable that overflows with option -Wextra)

2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR other/23572
* c-lex.c (interpret_float): On overflow, emit pedantic warning if
infinities not supported, otherwise emit warning if -Woverflow. On
underflow, emit warning if -Woverflow.
* real.c (real_from_string): Return -1 if underflow, +1 if overflow
and 0 otherwise.
* real.h (real_from_string): Update declaration
testsuite/
* gcc.dg/float-range-4.c: New.
* gcc.dg/float-range-1.c: Update. Test for a warning.
* gcc.dg/float-range-3.c: New.
* gcc.dg/float-range-5.c: New.

From-SVN: r123137

17 years agore PR fortran/31262 (-fno-range-check with large integer values triggers ICE)
Francois-Xavier Coudert [Thu, 22 Mar 2007 22:51:50 +0000 (23:51 +0100)]
re PR fortran/31262 (-fno-range-check with large integer values triggers ICE)

PR fortran/31262

* trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants
larger than twice the width of a HOST_WIDE_INT.

* gfortran.dg/no_range_check_1.f90: New test.

From-SVN: r123136

17 years agodefaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
Kai Tietz [Thu, 22 Mar 2007 21:33:45 +0000 (21:33 +0000)]
defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.

        * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
        * calls.c (compute_argument_block_size, expand_call,
        emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
        * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
        * function.c (STACK_DYNAMIC_OFFSET): Likewise.
        * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
        * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
        config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
        config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
        config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
        Set to 1.

Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r123135

17 years agoc-incpath.c (add_sysroot_to_chain): New.
Joseph Myers [Thu, 22 Mar 2007 20:38:27 +0000 (20:38 +0000)]
c-incpath.c (add_sysroot_to_chain): New.

* c-incpath.c (add_sysroot_to_chain): New.
(merge_include_chains): Add sysroot argument.  Call
add_sysroot_to_chain if sysrooted.
(register_include_chains): Update call to merge_include_chains.
* doc/cppopts.texi: Document use of '=' in include directory
arguments.

From-SVN: r123134

17 years agoFix typos in ChangeLog
Dirk Mueller [Thu, 22 Mar 2007 19:46:16 +0000 (19:46 +0000)]
Fix typos in ChangeLog

From-SVN: r123133

17 years agowarnings2.C: Don't use -pedantic.
Dirk Mueller [Thu, 22 Mar 2007 19:44:09 +0000 (19:44 +0000)]
warnings2.C: Don't use -pedantic.

2007-03-22  Dirk Mueller  <dmueller@suse.de>

        * g++.old-deja/g++.brendan/warnings2.C: Don't use -pedantic.
        * g++.dg/other/static1.C: Remove stray semicolon.
        * g++.dg/other/init1.C: Likewise.
        * g++.dg/rtti/dyncast1.C: Likewise.
        * g++.dg/tree-ssa/pr17153.C: Likewise.
        * g++.dg/lookup/disamb1.C: Likewise.
        * g++.dg/lookup/scoped2.C: Likewise.
        * g++.dg/lookup/friend7.C: Likewise.
        * g++.dg/parse/parse4.C: Likewise.
        * g++.dg/parse/parse5.C: Likewise.
        * g++.dg/expr/pr29066.C: Likewise.
        * g++.dg/expr/cast4.C: Likewise.
        * g++.dg/tc1/dr193.C: Likewise.
        * g++.dg/tc1/dr213.C: Likewise.
        * g++.dg/abi/dcast1.C: Likewise.
        * g++.dg/abi/covariant2.C: Likewise.
        * g++.dg/inherit/covariant11.C: Likewise.
        * g++.dg/inherit/covariant9.C: Likewise.
        * g++.dg/inherit/covariant10.C: Likewise.
        * g++.dg/init/static3.C: Likewise.
        * g++.dg/init/init-ref3.C: Likewise.
        * g++.dg/init/ref10.C: Likewise.
        * g++.dg/template/meminit2.C: Likewise.
        * g++.dg/template/using9.C: Likewise.
        * g++.dg/template/friend9.C: Likewise.
        * g++.dg/template/ref1.C: Likewise.
        * g++.old-deja/g++.warn/inline.C: Likewise.
        * g++.old-deja/g++.robertl/eb91.C: Likewise.
        * g++.old-deja/g++.robertl/eb46.C: Likewise.
        * g++.old-deja/g++.robertl/eb34.C: Likewise.
        * g++.old-deja/g++.robertl/eb43.C: Likewise.
        * g++.old-deja/g++.robertl/eb26.C: Likewise.
        * g++.old-deja/g++.robertl/eb116.C: Likewise.
        * g++.old-deja/g++.brendan/copy5.C: Likewise.
        * g++.old-deja/g++.brendan/overload8.C: Likewise.
        * g++.old-deja/g++.brendan/overload11.C: Likewise.
        * g++.old-deja/g++.brendan/copy7.C: Likewise.
        * g++.old-deja/g++.brendan/crash38.C: Likewise.
        * g++.old-deja/g++.brendan/template11.C: Likewise.
        * g++.old-deja/g++.brendan/err-msg3.C: Likewise.
        * g++.old-deja/g++.brendan/crash50.C: Likewise.
        * g++.old-deja/g++.brendan/crash16.C: Likewise.
        * g++.old-deja/g++.jason/pmem2.C: Likewise.
        * g++.old-deja/g++.jason/parse9.C: Likewise.
        * g++.old-deja/g++.jason/byval2.C: Likewise.
        * g++.old-deja/g++.jason/overload8.C: Likewise.
        * g++.old-deja/g++.jason/pmf8.C: Likewise.
        * g++.old-deja/g++.jason/template33.C: Likewise.
        * g++.old-deja/g++.jason/return3.C: Likewise.
        * g++.old-deja/g++.jason/scoping2.C: Likewise.
        * g++.old-deja/g++.jason/virtual.C: Likewise.
        * g++.old-deja/g++.jason/opeq3.C: Likewise.
        * g++.old-deja/g++.jason/template27.C: Likewise.
        * g++.old-deja/g++.jason/synth6.C: Likewise.
        * g++.old-deja/g++.jason/ref8.C: Likewise.
        * g++.old-deja/g++.jason/offset1.C: Likewise.
        * g++.old-deja/g++.other/static20.C: Likewise.
        * g++.old-deja/g++.other/array1.C: Likewise.
        * g++.old-deja/g++.other/new3.C: Likewise.
        * g++.old-deja/g++.other/array2.C: Likewise.
        * g++.old-deja/g++.other/overload9.C: Likewise.
        * g++.old-deja/g++.other/cast6.C: Likewise.
        * g++.old-deja/g++.other/ptrmem8.C: Likewise.
        * g++.old-deja/g++.other/eh4.C: Likewise.
        * g++.old-deja/g++.other/using7.C: Likewise.
        * g++.old-deja/g++.other/init18.C: Likewise.
        * g++.old-deja/g++.other/dyncast1.C: Likewise.
        * g++.old-deja/g++.other/dyncast2.C: Likewise.
        * g++.old-deja/g++.other/dtor11.C: Likewise.
        * g++.old-deja/g++.pt/static11.C: Likewise.
        * g++.old-deja/g++.pt/crash19.C: Likewise.
        * g++.old-deja/g++.pt/overload12.C: Likewise.
        * g++.old-deja/g++.pt/crash46.C: Likewise.
        * g++.old-deja/g++.pt/mi1.C: Likewise.
        * g++.old-deja/g++.pt/vaarg3.C: Likewise.
        * g++.old-deja/g++.pt/nontype5.C: Likewise.
        * g++.old-deja/g++.pt/local5.C: Likewise.
        * g++.old-deja/g++.pt/typename2.C: Likewise.
        * g++.old-deja/g++.pt/explicit80.C: Likewise.
        * g++.old-deja/g++.pt/auto_ptr.C: Likewise.
        * g++.old-deja/g++.law/visibility1.C: Likewise.
        * g++.old-deja/g++.law/visibility2.C: Likewise.
        * g++.old-deja/g++.law/virtual2.C: Likewise.
        * g++.old-deja/g++.law/operators19.C: Likewise.
        * g++.old-deja/g++.law/parsing10.C: Likewise.
        * g++.old-deja/g++.law/visibility4.C: Likewise.
        * g++.old-deja/g++.law/operators4.C: Likewise.
        * g++.old-deja/g++.law/dtors2.C: Likewise.
        * g++.old-deja/g++.law/missed-error3.C: Likewise.
        * g++.old-deja/g++.law/visibility10.C: Likewise.
        * g++.old-deja/g++.law/scope3.C: Likewise.
        * g++.old-deja/g++.law/casts2.C: Likewise.
        * g++.old-deja/g++.law/code-gen5.C: Likewise.
        * g++.old-deja/g++.law/operators33.C: Likewise.
        * g++.old-deja/g++.law/friend4.C: Likewise.
        * g++.old-deja/g++.mike/pmf7.C: Likewise.
        * g++.old-deja/g++.mike/p5611.C: Likewise.
        * g++.old-deja/g++.mike/net37.C: Likewise.
        * g++.old-deja/g++.mike/p3570.C: Likewise.
        * g++.old-deja/g++.mike/p5718.C: Likewise.
        * g++.old-deja/g++.mike/net21.C: Likewise.
        * g++.old-deja/g++.mike/p1862.C: Likewise.
        * g++.old-deja/g++.mike/p4511.C: Likewise.
        * g++.old-deja/g++.mike/virt3.C: Likewise.
        * g++.old-deja/g++.mike/p16146.C: Likewise.
        * g++.old-deja/g++.mike/p1989.C: Likewise.
        * g++.old-deja/g++.mike/p5571.C: Likewise.
        * g++.old-deja/g++.gb/scope10.C: Likewise.
        * g++.old-deja/g++.abi/primary5.C: Likewise.
        * g++.old-deja/g++.abi/empty2.C: Likewise.
        * g++.old-deja/g++.abi/arraynew.C: Likewise.
        * g++.old-deja/g++.eh/vbase4.C: Likewise.
        * g++.old-deja/g++.eh/ptr1.C: Likewise.
        * g++.old-deja/g++.eh/cleanup1.C: Likewise.
        * g++.old-deja/g++.bob/template3.C: Likewise.
        * g++.old-deja/g++.bob/inherit1.C: Likewise.

From-SVN: r123132

17 years agore PR fortran/31193 ([4.2 only] ICE on non-constant character tranfert)
Paul Thomas [Thu, 22 Mar 2007 18:37:16 +0000 (18:37 +0000)]
re PR fortran/31193 ([4.2 only] ICE on non-constant character tranfert)

2006-03-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31193
* trans-intrinsic.c (gfc_size_in_bytes): Remove function.
(gfc_conv_intrinsic_array_transfer): Remove calls to previous.
Explicitly extract TREE_TYPEs for source and mold.  Use these
to calculate length of source and mold, except for characters,
where the se string_length is used.  For mold, the TREE_TYPE is
recalculated using gfc_get_character_type_len so that the
result is correctly cast for character literals and substrings.
Do not use gfc_typenode_for_spec for the final cast.

2006-03-22  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31193
* gfortran.dg/transfer_array_intrinsic_3.f90: New test.

From-SVN: r123131

17 years agofunctions_std.cc: Without C99 support, _GLIBCXX_USE_WCHAR_T not defined, so dg-requir...
Benjamin Kosnik [Thu, 22 Mar 2007 16:43:41 +0000 (16:43 +0000)]
functions_std.cc: Without C99 support, _GLIBCXX_USE_WCHAR_T not defined, so dg-require-c-std.

2007-03-22  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/21_strings/headers/cstdlib/functions_std.cc: Without
C99 support, _GLIBCXX_USE_WCHAR_T not defined, so
dg-require-c-std.
* testsuite/tr1/6_containers/headers/functional/synopsis.cc: Same.
* testsuite/27_io/headers/iostream/synopsis.cc: Same.
* testsuite/27_io/headers/streambuf/types_std.cc: Same.
* testsuite/27_io/headers/sstream/types_std.cc: Same.
* testsuite/27_io/headers/ostream/types_std.cc: Same.
* testsuite/27_io/headers/istream/types_std.cc: Same.
* testsuite/27_io/headers/iostream/types_std.cc: Same.
* testsuite/27_io/headers/fstream/types_std.cc: Same.
* testsuite/21_strings/headers/string/types_std.cc: Same.
* testsuite/21_strings/headers/cwctype/functions_std.cc: Same.
* testsuite/21_strings/headers/cwctype/types_std.cc: Same.
* testsuite/21_strings/headers/cwchar/functions_std.cc: Same.
* testsuite/21_strings/headers/cwchar/types_std.cc: Same.

* include/Makefile.am (c_compatibility_headers): Add fenv.h.
* include/Makefile.in: Regenerate.
* configure.host: Update comment.

From-SVN: r123130

17 years agore PR fortran/20897 (derived type name shall not be same as intrinsic type name)
Tobias Schlüter [Thu, 22 Mar 2007 15:37:25 +0000 (16:37 +0100)]
re PR fortran/20897 (derived type name shall not be same as intrinsic type name)

PR fortran/20897
fortran/
* decl.c (gfc_match_derived_decl): Reliably reject
'doubleprecision' and 'doublecomplex' as type names.
testsuite/
* gfortran.dg/derived_name_1.f90: New.
* gfortran.dg/derived_name_2.f: New.

From-SVN: r123129

17 years agoi386.md (cmp<mode>): Rename from cmpsf and cmpdf.
Uros Bizjak [Thu, 22 Mar 2007 14:59:10 +0000 (15:59 +0100)]
i386.md (cmp<mode>): Rename from cmpsf and cmpdf.

* config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
(*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
insn pattern using X87MODEF12 mode macro.

From-SVN: r123128

17 years ago* MAINTAINERS (Write After Approval): Add myself.
Nathan Froyd [Thu, 22 Mar 2007 13:01:07 +0000 (13:01 +0000)]
* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r123126

17 years agodefault.exp: New file.
Uros Bizjak [Thu, 22 Mar 2007 07:00:08 +0000 (08:00 +0100)]
default.exp: New file.

* testsuite/config/default.exp: New file.
* testsuite/lib/libgomp.exp: New file.
* testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
load_lib *, load_gcc_lib *): Move to libgomp.exp.
(libgomp_load): Remove.
* testsuite/lib/libgomp.exp (libgomp_init): Compute
always_ld_library_path, not ld_library_path.  Set additional_flags
to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
(target_compile): Do not call libgomp_init.  Append lang_library_path
and lang_link_flags to options.
* testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
here.
* testsuite/libgomp.c++/c++.exp: Set ld_library_path from
always_ld_library_path.  Set LD_LIBRARY_PATH here.
* testsuite/libgomp.fortran/fortran.exp: Ditto.
* testsuite/libgomp.c/atomic-1.c: Set dg-options to
"-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
CX8 flag.
* testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
* testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
* testsuite/libgomp.c/pr29947-1.c: Ditto.
* testsuite/libgomp.c/atomic-10.c: Ditto.

From-SVN: r123125

17 years agoregmove.c (regmove_optimize): Use reg_mentioned_p instead of reg_overlap_mentioned_p...
Seongbae Park [Thu, 22 Mar 2007 06:18:33 +0000 (06:18 +0000)]
regmove.c (regmove_optimize): Use reg_mentioned_p instead of reg_overlap_mentioned_p for DST.

2007-03-21  Seongbae Park <seongbae.park@gmail.com>

* regmove.c (regmove_optimize): Use reg_mentioned_p
instead of reg_overlap_mentioned_p for DST.

From-SVN: r123124

17 years agoDaily bump.
GCC Administrator [Thu, 22 Mar 2007 00:17:55 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r123122

17 years agoconfigure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Fix m4 quoting of glob.
Richard Sandiford [Wed, 21 Mar 2007 20:09:15 +0000 (20:09 +0000)]
configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Fix m4 quoting of glob.

* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Fix m4 quoting
of glob.  Quote arguments with single quotes too.
* configure: Regenerate.

From-SVN: r123117

17 years agoa.22.8.f90: Add dg-final cleanup-modules line.
Jakub Jelinek [Wed, 21 Mar 2007 19:43:14 +0000 (20:43 +0100)]
a.22.8.f90: Add dg-final cleanup-modules line.

* testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
dg-final cleanup-modules line.
* testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
* testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
* testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
* testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
* testsuite/libgomp.fortran/reduction5.f90: Likewise.
* testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
* testsuite/libgomp.fortran/threadprivate1.f90: Likewise.

From-SVN: r123116

17 years ago* c.opt: Fixup for Objective-C/C++.
Mike Stump [Wed, 21 Mar 2007 18:45:40 +0000 (18:45 +0000)]
* c.opt: Fixup for Objective-C/C++.

From-SVN: r123114

17 years agoexplow.c (convert_memory_address): Fold memory reference when POINTERS_EXTEND_UNSIGNE...
Steve Ellcey [Wed, 21 Mar 2007 16:02:32 +0000 (16:02 +0000)]
explow.c (convert_memory_address): Fold memory reference when POINTERS_EXTEND_UNSIGNED < 0

* explow.c (convert_memory_address): Fold memory reference when
POINTERS_EXTEND_UNSIGNED < 0

From-SVN: r123113

17 years agore PR target/31245 (SSE2 generation bug with 4.1.2 and -O3)
Richard Henderson [Wed, 21 Mar 2007 15:52:23 +0000 (08:52 -0700)]
re PR target/31245 (SSE2 generation bug with 4.1.2 and -O3)

        PR target/31245
        * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
        * config/i386/mmintrin.h (__m64): Likewise.
        * config/i386/xmmintrin.h (__m128): Likewise.

From-SVN: r123112

17 years agovxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
Richard Sandiford [Wed, 21 Mar 2007 12:21:33 +0000 (12:21 +0000)]
vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.

gcc/
* config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
(VXWORKS_OS_CPP_BUILTINS): Define.
* config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
(TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.

From-SVN: r123108

17 years agotarget-supports.exp (check_effective_target_nonpic): New procedure.
Richard Sandiford [Wed, 21 Mar 2007 09:11:25 +0000 (09:11 +0000)]
target-supports.exp (check_effective_target_nonpic): New procedure.

gcc/testsuite/
* lib/target-supports.exp (check_effective_target_nonpic): New
procedure.
* gcc.target/i386/20020616-1.c: Use an alternative to %ebx
when compiling PIC.
* gcc.target/i386/asm-4.c: Require nonpic.
* gcc.target/i386/cmov1.c: Likewise.
* gcc.target/i386/mul.c: Likewise.
* gcc.target/i386/pr21291.c: Require nonpic or ! ilp32.
* gcc.target/i386/ssetype-1.c: Require nonpic.
* gcc.target/i386/ssetype-3.c: Likewise.
* gcc.target/i386/ssetype-5.c: Likewise.

From-SVN: r123107

17 years agortl.h (constant_pool_reference_p): Delete.
Richard Sandiford [Wed, 21 Mar 2007 09:10:08 +0000 (09:10 +0000)]
rtl.h (constant_pool_reference_p): Delete.

gcc/
* rtl.h (constant_pool_reference_p): Delete.
(find_constant_src): Declare.
* rtlanal.c (find_constant_src): New function.
* simplify-rtx.c (constant_pool_reference_p): Delete.
* config/i386/i386.md: Use find_constant_src instead of
constant_pool_reference_p/avoid_constant_pool_reference pairs.

From-SVN: r123106

17 years agochk.h (LOCAL): Define.
Richard Sandiford [Wed, 21 Mar 2007 09:08:04 +0000 (09:08 +0000)]
chk.h (LOCAL): Define.

gcc/testsuite/
* gcc.c-torture/execute/builtins/chk.h (LOCAL): Define.
* gcc.c-torture/execute/builtins/sprintf-chk.c (s1): Make LOCAL.
* gcc.c-torture/execute/builtins/stpcpy-chk.c (s1): Likewise.
* gcc.c-torture/execute/builtins/strcpy-chk.c (s1): Likewise.

From-SVN: r123105

17 years agoinvoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
Richard Sandiford [Wed, 21 Mar 2007 09:07:19 +0000 (09:07 +0000)]
invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.

gcc/
* doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
* c-cppbuiltin.c (c_cpp_builtins): Define them.

From-SVN: r123104

17 years agoelf.h (TARGET_ASM_DESTRUCTOR): Define.
Mark Mitchell [Wed, 21 Mar 2007 05:21:31 +0000 (05:21 +0000)]
elf.h (TARGET_ASM_DESTRUCTOR): Define.

* config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
* config/arm/arm.c (arm_elf_asm_cdtor): New function.
(arm_elf_asm_constructor): Use it.
(arm_elf_asm_destructor): New function.

From-SVN: r123103

17 years agoDaily bump.
GCC Administrator [Wed, 21 Mar 2007 00:18:38 +0000 (00:18 +0000)]
Daily bump.

From-SVN: r123100

17 years agojump.c (mark_jump_label): Treat SEQUENCE specially.
Bernd Schmidt [Tue, 20 Mar 2007 23:43:33 +0000 (23:43 +0000)]
jump.c (mark_jump_label): Treat SEQUENCE specially.

* jump.c (mark_jump_label): Treat SEQUENCE specially.

From-SVN: r123096

17 years agoconfigure.ac: Add missing check for gettimeofday.
Francois-Xavier Coudert [Tue, 20 Mar 2007 23:09:39 +0000 (00:09 +0100)]
configure.ac: Add missing check for gettimeofday.

* configure.ac: Add missing check for gettimeofday.
* config.h.in: Renegerate.
* configure: Regenerate.

From-SVN: r123094

17 years agore PR tree-optimization/30590 (tree-nrv optimization clobbers return variable)
Seongbae Park [Tue, 20 Mar 2007 15:42:37 +0000 (15:42 +0000)]
re PR tree-optimization/30590 (tree-nrv optimization clobbers return variable)

2007-03-19  Seongbae Park <seongbae.park@gmail.com>

PR tree-optimization/30590
* g++.dg/opt/pr30590.C: New testcase.

From-SVN: r123087

17 years ago* config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
Nathan Sidwell [Tue, 20 Mar 2007 14:13:30 +0000 (14:13 +0000)]
* config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.

From-SVN: r123086

17 years ago[multiple changes]
Andrew Haley [Tue, 20 Mar 2007 12:45:19 +0000 (12:45 +0000)]
[multiple changes]

2007-03-19  Andrew Haley  <aph@redhat.com>

        PR tree-optimization/31264
        * tree-vrp.c (register_edge_assert_for_1): Don't look though
        VIEW_CONVERT_EXPRs.

2007-03-20  Andrew Haley  <aph@redhat.com>

        * testsuite/libjava.lang/PR31264.java: New test.

From-SVN: r123085

17 years agore PR middle-end/30907 (Propagation of addresses within loops pessimizes code)
Paolo Bonzini [Tue, 20 Mar 2007 08:31:13 +0000 (08:31 +0000)]
re PR middle-end/30907 (Propagation of addresses within loops pessimizes code)

2007-03-19  Paolo Bonzini  <bonzini@gnu.org>

PR rtl-optimization/30907
* fwprop.c (forward_propagate_into): Never propagate inside a loop.
(fwprop_init): Always call loop_optimizer_initialize.
(fwprop_done): Always call loop_optimizer_finalize.
(fwprop): We always have loop info now.
(gate_fwprop_addr): Remove.
(pass_fwprop_addr): Use gate_fwprop as gate.

PR rtl-optimization/30841
* df-problems.c (df_ru_local_compute, df_rd_local_compute,
df_chain_alloc): Call df_reorganize_refs unconditionally.
* df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
refs_organized to refs_organized_size.
(df_ref_create_structure): Use refs_organized_size instead of
bitmap_size if refs had been organized, and keep refs_organized_size
up-to-date.
* df.h (struct df_ref_info): Change refs_organized to
refs_organized_size.
(DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
bitmap_size.

From-SVN: r123084

17 years agoexcept.c (output_function_exception_table): Do not reference the EH personality routi...
Mark Mitchell [Tue, 20 Mar 2007 03:16:25 +0000 (03:16 +0000)]
except.c (output_function_exception_table): Do not reference the EH personality routine for functions that do not require...

* except.c (output_function_exception_table): Do not reference the
EH personality routine for functions that do not require an
exception table.

From-SVN: r123082

17 years agoDaily bump.
GCC Administrator [Tue, 20 Mar 2007 00:17:48 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r123080

17 years agore PR c/30762 (IMA messes up with inlining)
Jakub Jelinek [Mon, 19 Mar 2007 23:26:14 +0000 (00:26 +0100)]
re PR c/30762 (IMA messes up with inlining)

PR c/30762
* c-typeck.c (convert_for_assignment): Call comptypes for
RECORD_TYPE or UNION_TYPE.

* gcc.dg/pr30762-1.c: New test.
* gcc.dg/pr30762-2.c: New test.

From-SVN: r123073

17 years agore PR inline-asm/30505 (asm operand has impossible constraints.)
Jakub Jelinek [Mon, 19 Mar 2007 23:24:43 +0000 (00:24 +0100)]
re PR inline-asm/30505 (asm operand has impossible constraints.)

PR inline-asm/30505
* reload1.c (reload): Do invalid ASM checking after
cleanup_subreg_operands.

* gcc.target/i386/pr30505.c: New test.

From-SVN: r123072

17 years agoregister-variables.c: New.
Mark Shinwell [Mon, 19 Mar 2007 21:00:14 +0000 (21:00 +0000)]
register-variables.c: New.

gcc/testsuite/
* gcc.target/arm/register-variables.c: New.

From-SVN: r123071

17 years agore PR tree-optimization/30984 (ICE with computed goto and constants)
Jeff Law [Mon, 19 Mar 2007 19:52:19 +0000 (13:52 -0600)]
re PR tree-optimization/30984 (ICE with computed goto and constants)

        * tree-cfg.c (find_taken_edge): Tighten conditions for
        optimizing computed gotos.

        * PR tree-optimization/30984
        * gcc.c-torture/pr30984.c: New test.

From-SVN: r123067

17 years agore PR target/30058 (bootstrap broken on i386-unknown-netbsdelf2.0.2)
Krister Walfridsson [Mon, 19 Mar 2007 17:08:14 +0000 (18:08 +0100)]
re PR target/30058 (bootstrap broken on i386-unknown-netbsdelf2.0.2)

2007-03-18  Krister Walfridsson  <cato@df.lth.se>

PR target/30058
* inclhack.def (netbsd_c99_inline_1): New.
* fixincl.x: Regenerate.
* tests/base/signal.h: New.

From-SVN: r123065

17 years agobuiltins.c (expand_builtin_sync_operation, [...]): Care for extending CONST_INTs...
Michael Matz [Mon, 19 Mar 2007 17:07:29 +0000 (17:07 +0000)]
builtins.c (expand_builtin_sync_operation, [...]): Care for extending CONST_INTs correctly.

        * builtins.c (expand_builtin_sync_operation,
        expand_builtin_compare_and_swap,
        expand_builtin_lock_test_and_set): Care for extending CONST_INTs
        correctly.

        * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
        sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
        for operand 3.

From-SVN: r123064

17 years agotuple (get(_Tuple_impl<>&, get(const _Tuple_impl<>&): Rename as __get_helper.
Paolo Carlini [Mon, 19 Mar 2007 16:58:54 +0000 (16:58 +0000)]
tuple (get(_Tuple_impl<>&, get(const _Tuple_impl<>&): Rename as __get_helper.

2007-03-19  Paolo Carlini  <pcarlini@suse.de>

* include/tr1/tuple (get(_Tuple_impl<>&, get(const _Tuple_impl<>&):
Rename as __get_helper.
(get(tuple<>&, get(const tuple<>&)): Forward to the latter.

From-SVN: r123063

17 years agotm.texi: Add brackets around the return type of TARGET_SECONDARY_RELOAD.
Andreas Krebbel [Mon, 19 Mar 2007 15:17:55 +0000 (15:17 +0000)]
tm.texi: Add brackets around the return type of TARGET_SECONDARY_RELOAD.

2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>

* doc/tm.texi: Add brackets around the return type of
TARGET_SECONDARY_RELOAD.

From-SVN: r123062

17 years agouser.cfg.in: Update for new includes, macros.
Benjamin Kosnik [Mon, 19 Mar 2007 13:54:18 +0000 (13:54 +0000)]
user.cfg.in: Update for new includes, macros.

2007-03-19  Benjamin Kosnik  <bkoz@redhat.com>

* docs/doxygen/user.cfg.in: Update for new includes, macros.

From-SVN: r123061

17 years agore PR tree-optimization/31254 (verify_ssa failed: type mismatch between an SSA_NAME...
Andrew Pinski [Mon, 19 Mar 2007 13:36:29 +0000 (13:36 +0000)]
re PR tree-optimization/31254 (verify_ssa failed: type mismatch between an SSA_NAME and its symbol)

2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
Richard Guenther  <rguenther@suse.de>

PR tree-optimization/31254
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
Use handled_component_p () where appropriate.  Continue
propagating into the rhs if we propagated into an INDIRECT_REF
on the lhs.

* gcc.dg/torture/pr31254.c: New testcase.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r123060

17 years agopr26565.c: Expect warning on packed field for target default_packed.
Hans-Peter Nilsson [Mon, 19 Mar 2007 12:06:14 +0000 (12:06 +0000)]
pr26565.c: Expect warning on packed field for target default_packed.

* gcc.dg/torture/pr26565.c: Expect warning on packed field for
target default_packed.

From-SVN: r123059

17 years agos390.md (op_type attribute): RRR instruction type added.
Andreas Krebbel [Mon, 19 Mar 2007 08:51:20 +0000 (08:51 +0000)]
s390.md (op_type attribute): RRR instruction type added.

2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.md (op_type attribute): RRR instruction type added.
(FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
(xde, xdee): Mode attributes adjusted to support DFP modes.
(RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
"*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
"*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
"div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
"*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
numbers.
("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
"movsf"): Insn definitions removed.
("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
"*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
"trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
definitions added.
("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
"reload_in<mode>", "reload_out<mode>"): Expander added.
("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
Expander removed.

From-SVN: r123058

17 years agos390.md: Only non-functional changes.
Andreas Krebbel [Mon, 19 Mar 2007 08:49:53 +0000 (08:49 +0000)]
s390.md: Only non-functional changes.

2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.md: Only non-functional changes.  Renamed
FPR mode macro to BFP all over the file.

From-SVN: r123057

17 years agos390.md (UNSPEC_COPYSIGN): New constant.
Andreas Krebbel [Mon, 19 Mar 2007 08:48:36 +0000 (08:48 +0000)]
s390.md (UNSPEC_COPYSIGN): New constant.

2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
(op_type attribute): RRF instruction type added.
(fT0): New mode attribute.
("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
"*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
* config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
no secondary memory is needed when moving DFmode values between GPRs
and FPRs.

From-SVN: r123056

17 years agos390.opt ("mhard-float", [...]): Bit value inverted and documentation adjusted.
Andreas Krebbel [Mon, 19 Mar 2007 08:46:57 +0000 (08:46 +0000)]
s390.opt ("mhard-float", [...]): Bit value inverted and documentation adjusted.

2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>

* config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
inverted and documentation adjusted.
("mhard-dfp", "msoft-dfp"): New options.
* config/s390/s390.c (s390_handle_arch_option): New architecture
switch: z9-ec.
(override_options): Sanity checks for the new options added.
* config.gcc: New architecture switch: z9-ec.
* config/s390/s390.h (processor_flags): PF_DFP added.
(TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
(TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
when the bit is NOT set so remove it from the defaults.

From-SVN: r123055

17 years agogenemit.c (main): Print include statement for dfp.h.
Andreas Krebbel [Mon, 19 Mar 2007 08:45:29 +0000 (08:45 +0000)]
genemit.c (main): Print include statement for dfp.h.

2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>

* genemit.c (main): Print include statement for dfp.h.
* dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
is not available.

From-SVN: r123054

17 years ago* config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
Hans-Peter Nilsson [Mon, 19 Mar 2007 08:29:43 +0000 (08:29 +0000)]
* config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.

From-SVN: r123053

17 years ago* config.host (cris-*-elf | cris-*-none): Set extra_parts.
Hans-Peter Nilsson [Mon, 19 Mar 2007 08:28:57 +0000 (08:28 +0000)]
* config.host (cris-*-elf | cris-*-none): Set extra_parts.

From-SVN: r123052

17 years agore PR fortran/31203 ([4.1/4.2 only] Character length should never be negative)
Francois-Xavier Coudert [Mon, 19 Mar 2007 08:13:30 +0000 (09:13 +0100)]
re PR fortran/31203 ([4.1/4.2 only] Character length should never be negative)

PR fortran/31203

* trans-expr.c (gfc_trans_init_string_length): Length should
never be negative.
(gfc_conv_function_call): Likewise.

* gfortran.dg/string_length_1.f90: New test.

From-SVN: r123051

17 years agoconfigure.ac: New configure option --enable-generated-files-in-srcdir.
Matthias Klose [Mon, 19 Mar 2007 05:57:53 +0000 (05:57 +0000)]
configure.ac: New configure option --enable-generated-files-in-srcdir.

2007-03-10  Matthias Klose  <doko@ubuntu.com>

        * configure.ac: New configure option
        --enable-generated-files-in-srcdir.
        * doc/Makefile.am: Add support to generate files in srcdir,
        install the cp-tools documentation in info format.
        * configure: Regenerate.
        * native/jni/classpath/Makefile.in, native/jni/midi-dssi/Makefile.in,
        native/jni/Makefile.in, native/jni/gconf-peer/Makefile.in,
        native/jni/java-io/Makefile.in, native/jni/native-lib/Makefile.in,
        native/jni/java-util/Makefile.in, native/jni/java-lang/Makefile.in,
        native/jni/midi-alsa/Makefile.in, native/jni/java-nio/Makefile.in,
        native/jni/java-net/Makefile.in, native/jni/xmlj/Makefile.in,
        native/jni/qt-peer/Makefile.in, native/jni/gtk-peer/Makefile.in,
        native/Makefile.in, native/jawt/Makefile.in, native/fdlibm/Makefile.in,
        native/plugin/Makefile.in, resource/Makefile.in, scripts/Makefile.in,
        tools/Makefile.in, doc/Makefile.in, doc/api/Makefile.in,
        lib/Makefile.in, external/Makefile.in, external/sax/Makefile.in,
        external/w3c_dom/Makefile.in, external/jsr166/Makefile.in,
        external/relaxngDatatype/Makefile.in, include/Makefile.in,
        examples/Makefile.in: Regenerate.

From-SVN: r123050

17 years agore PR target/31022 ([SH4] internal compiler error with inline)
Kaz Kojima [Mon, 19 Mar 2007 04:14:59 +0000 (04:14 +0000)]
re PR target/31022 ([SH4] internal compiler error with inline)

PR target/31022
* config/sh/sh.c (sh_adjust_cost): Use the result of single_set
instead of PATTERN.

From-SVN: r123049

17 years agopa.c (output_deferred_plabels, [...]): Cleanup formatting of targetm calls.
John David Anglin [Mon, 19 Mar 2007 01:48:34 +0000 (01:48 +0000)]
pa.c (output_deferred_plabels, [...]): Cleanup formatting of targetm calls.

* pa.c (output_deferred_plabels, output_bb, output_millicode_call,
attr_length_call, output_call, output_indirect_call): Cleanup
formatting of targetm calls.

From-SVN: r123048

17 years agoDaily bump.
GCC Administrator [Mon, 19 Mar 2007 00:17:19 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r123046

17 years ago* config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
Hans-Peter Nilsson [Sun, 18 Mar 2007 23:46:02 +0000 (23:46 +0000)]
* config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.

From-SVN: r123043

17 years agoarray_type_info.cc: Likewise.
Mark Mitchell [Sun, 18 Mar 2007 22:35:39 +0000 (22:35 +0000)]
array_type_info.cc: Likewise.

* libsupc++/array_type_info.cc: Likewise.
* libsupc++/bad_cast.cc: Likewise.
* libsupc++/bad_typeid.cc: Likewise.
* libsupc++/class_type_info.cc: Likewise.
* libsupc++/dyncast.cc: Likewise.
* libsupc++/enum_type_info.cc: Likewise.
* libsupc++/function_type_info.cc: Likewise.
* libsupc++/fundamental_type_info.cc: Likewise.
* libsupc++/pbase_type_info.cc: Likewise.
* libsupc++/pmem_type_info.cc: Likewise.
* libsupc++/pointer_type_info.cc: Likewise.
* libsupc++/si_class_type_info.cc: Likewise.
* libsupc++/vmi_class_type_info.cc: Likewise.
* libsupc++/tinfo.h: Move inline type_info functions here.
* libsupc++/tinfo.cc: Separate type_info classes into their own
files.
* libsupc++/tinfo2.cc: Likewise.
* Makefile.am (sources): Mention new files.
* Makefile.in: Regenerated.

From-SVN: r123042

17 years agopa.md: Add fpstore_load and store_fpload instruction types.
John David Anglin [Sun, 18 Mar 2007 19:47:43 +0000 (19:47 +0000)]
pa.md: Add fpstore_load and store_fpload instruction types.

* pa.md: Add fpstore_load and store_fpload instruction types.  Provide
reservation, bypass and anti-bypass descriptions for these instructions.
Update move patterns.
* pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
TYPE_FPSTORE.

From-SVN: r123041

17 years agore PR testsuite/30395 (FAIL: gcc.dg/pr16194.c (test for errors, line 59))
John David Anglin [Sun, 18 Mar 2007 19:13:17 +0000 (19:13 +0000)]
re PR testsuite/30395 (FAIL: gcc.dg/pr16194.c  (test for errors, line 59))

PR testsuite/30395
* gcc.dg/pr16194.c: Provide define for REG on __hppa__.

From-SVN: r123040

17 years agore PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs past...
Jerry DeLisle [Sun, 18 Mar 2007 18:17:24 +0000 (18:17 +0000)]
re PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs past EOF)

2007-03-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/31052
* gfortran.dg/namelist_27.f90: New test.

From-SVN: r123039

17 years agore PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs past...
Jerry DeLisle [Sun, 18 Mar 2007 18:13:50 +0000 (18:13 +0000)]
re PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs past EOF)

2007-03-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/31052
* io/file_position (st_rewind): Fix comments. Remove use of
test_endfile. Don't seek if already at 0 position.  Use new is_special
function to set endfile state.
* io/open.c (test_endfile): Delete this function.
* io/io.h: Delete prototype for test_endfile.  Add prototype
for is_special.
* io/unix.c (is_special): New function. Fix whitespace.
* io/transfer.c (next_record_r): Remove use of test_endfile.

From-SVN: r123038

17 years agore PR fortran/30531 ([4.2 only] allocatable component and intent(out) yield ICE in...
Paul Thomas [Sun, 18 Mar 2007 15:00:55 +0000 (15:00 +0000)]
re PR fortran/30531 ([4.2 only] allocatable component and intent(out) yield ICE in fold_convert)

2007-03-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30531
PR fortran/31086
* symbo.c : Add gfc_derived_types.
(gfc_free_dt_list): Free derived type list gfc_derived_types.
(gfc_free_namespace): Remove call to gfc_free_dt_list.
(gfc_symbol_done_2): Call  gfc_free_dt_list.
* gfortran.h : Declare gfc_derived_types to be external. Remove
derived types field from gfc_namespace.
* resolve.c (resolve_fl_derived): Refer to gfc_derived types
rather than namespace derived_types.
(resolve_fntype): Remove special treatment for module
derived type functions.
* trans-types.c (gfc_get_derived_type): Remove search for like
derived types.  Finish by copying back end declaration to like
derived types in the derived type list gfc_derived_types.

2007-03-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/30531
* gfortran.dg/used_types_14.f90: New test.

PR fortran/31086
* gfortran.dg/used_types_15.f90: New test.

From-SVN: r123037

17 years agoacinclude.m4: Adjust regular expression for ld version extraction.
Andreas Schwab [Sun, 18 Mar 2007 11:17:44 +0000 (11:17 +0000)]
acinclude.m4: Adjust regular expression for ld version extraction.

* acinclude.m4: Adjust regular expression for ld version
extraction.
* configure: Regenerate.

From-SVN: r123035

17 years agotree-vect-transform.c (get_initial_def_for_induction): Replace GET_MODE_NUNITS with...
Dorit Nuzman [Sun, 18 Mar 2007 04:37:32 +0000 (04:37 +0000)]
tree-vect-transform.c (get_initial_def_for_induction): Replace GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.

        * tree-vect-transform.c (get_initial_def_for_induction): Replace
        GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
        (get_initial_def_for_reduction): Likewise.

From-SVN: r123034

17 years agoDaily bump.
GCC Administrator [Sun, 18 Mar 2007 00:17:18 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r123032

17 years agore PR tree-optimization/29922 ([Linux] ICE in insert_into_preds_of_block)
Daniel Berlin [Sat, 17 Mar 2007 23:07:34 +0000 (23:07 +0000)]
re PR tree-optimization/29922 ([Linux] ICE in insert_into_preds_of_block)

2007-03-16  Daniel Berlin  <dberlin@dberlin.org>

Fix PR tree-optimization/29922
* tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
(get_representative): Removed.
(value_dies_in_block_x): Update for rvuse removal.
(valid_in_sets): Update for renaming of vuses_dies_in_block_x.
(compute_antic_aux): Handle when PHI nodes appear in
non-single-successors.
(dump_bitmap_of_names): Removed.
(compute_antic_safe): Renamed and removed rvuse calculation.
Calculate only antic safe.
(insert_into_preds_of_block): Remove assert.
(execute_pre): Update for renamed functions.
(defer_or_phi_translate_block): New function.

From-SVN: r123029

17 years agore PR fortran/31120 ([4.1/4.2 only] ICE with integer_exponentiation_1.f90 and -ffast...
Francois-Xavier Coudert [Sat, 17 Mar 2007 19:58:37 +0000 (20:58 +0100)]
re PR fortran/31120 ([4.1/4.2 only] ICE with integer_exponentiation_1.f90 and -ffast-math)

PR fortran/31120

* trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi.
(gfc_conv_cst_int_power): Handle integer exponent with care,
since it might be too large for us.

* gfortran.dg/integer_exponentiation_2.f90: New test.

From-SVN: r123028

17 years ago* uninclude: New utility, from Alexandre Oliva.
Hans-Peter Nilsson [Sat, 17 Mar 2007 19:08:50 +0000 (19:08 +0000)]
* uninclude: New utility, from Alexandre Oliva.

From-SVN: r123027

17 years ago* tree-data-ref.h: Remove the prototype for analyze_array.
Kazu Hirata [Sat, 17 Mar 2007 17:51:39 +0000 (17:51 +0000)]
* tree-data-ref.h: Remove the prototype for analyze_array.

From-SVN: r123026

17 years agoarm.c, [...]: Fix comment typos.
Kazu Hirata [Sat, 17 Mar 2007 17:44:02 +0000 (17:44 +0000)]
arm.c, [...]: Fix comment typos.

* config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
typos.
* doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
Follow spelling conventions.

From-SVN: r123025

17 years ago* cp-tree.def, parser.c, pt.c: Fix comment typos.
Kazu Hirata [Sat, 17 Mar 2007 17:29:11 +0000 (17:29 +0000)]
* cp-tree.def, parser.c, pt.c: Fix comment typos.

From-SVN: r123024

17 years agore PR tree-optimization/31041 (verify_stmts failed: invalid operand to binary operato...
Dorit Nuzman [Sat, 17 Mar 2007 14:43:30 +0000 (14:43 +0000)]
re PR tree-optimization/31041 (verify_stmts failed: invalid operand to binary operator with -O2 -ftree-vectorize)

        PR tree-optimization/31041
        * tree-vect-transform.c (get_initial_def_for_induction): Call
        force_gimple_operand.

From-SVN: r123023

17 years agoipa-type-escape fix for ada
Olga Golovanevsky [Sat, 17 Mar 2007 12:47:53 +0000 (12:47 +0000)]
ipa-type-escape fix for ada

From-SVN: r123022

17 years agofinal.c (final_scan_insn): Alter the condition of a conditional trap if we have nonst...
Kazu Hirata [Sat, 17 Mar 2007 11:43:07 +0000 (11:43 +0000)]
final.c (final_scan_insn): Alter the condition of a conditional trap if we have nonstandard CC.

* final.c (final_scan_insn): Alter the condition of a
conditional trap if we have nonstandard CC.

From-SVN: r123021

17 years agore PR fortran/31184 (gfortran option description wrong)
Francois-Xavier Coudert [Sat, 17 Mar 2007 11:30:20 +0000 (12:30 +0100)]
re PR fortran/31184 (gfortran option description wrong)

PR fortran/31184
* invoke.texi: Fix typo.

From-SVN: r123018

17 years ago2007-03-17 Thomas Fitzsimmons <fitzsim@redhat.com>
Thomas Fitzsimmons [Sat, 17 Mar 2007 05:36:18 +0000 (05:36 +0000)]
2007-03-17  Thomas Fitzsimmons  <fitzsim@redhat.com>

* resource/com/sun/tools/javac/messages.properties
(Main.FailedToRead, Main.MalformedURL, Main.FailedToLoad): Clarify
messages for when --with-ecj-jar is not specified.
* configure.ac (FOUND_ECJ_JAR): Remove conditional.
* tools/Makefile.am: Build com.sun.tools.javac package
unconditionally.
* configure, doc/api/Makefile.in, doc/Makefile.in,
examples/Makefile.in, external/jsr166/Makefile.in,
external/Makefile.in, external/relaxngDatatype/Makefile.in,
external/sax/Makefile.in, external/w3c_dom/Makefile.in,
include/Makefile.in, lib/Makefile.in, Makefile.in,
native/fdlibm/Makefile.in, native/jawt/Makefile.in,
native/jni/classpath/Makefile.in,
native/jni/gconf-peer/Makefile.in,
native/jni/gtk-peer/Makefile.in, native/jni/java-io/Makefile.in,
native/jni/java-lang/Makefile.in, native/jni/java-net/Makefile.in,
native/jni/java-nio/Makefile.in, native/jni/java-util/Makefile.in,
native/jni/Makefile.in, native/jni/midi-alsa/Makefile.in,
native/jni/midi-dssi/Makefile.in,
native/jni/native-lib/Makefile.in, native/jni/qt-peer/Makefile.in,
native/jni/xmlj/Makefile.in, native/Makefile.in,
native/plugin/Makefile.in, resource/Makefile.in,
scripts/Makefile.in, tools/Makefile.in: Regenerate.
* tools/classes/com/sun/tools/javac: New directory.
* tools/classes/com/sun/tools/javac/Main.class,
tools/classes/com/sun/tools/javac/Messages.class: New files.

From-SVN: r123015

17 years agoMain.java (run): Use class' name in File case.
Tom Tromey [Sat, 17 Mar 2007 05:00:07 +0000 (05:00 +0000)]
Main.java (run): Use class' name in File case.

* tools/gnu/classpath/tools/javah/Main.java (run): Use class'
name in File case.

From-SVN: r123012

17 years agoDaily bump.
GCC Administrator [Sat, 17 Mar 2007 00:17:45 +0000 (00:17 +0000)]
Daily bump.

From-SVN: r123009

17 years agoconfigure.ac: Remove excess quoting from asm line 0 test.
Alexandre Oliva [Fri, 16 Mar 2007 23:44:42 +0000 (23:44 +0000)]
configure.ac: Remove excess quoting from asm line 0 test.

* configure.ac: Remove excess quoting from asm line 0 test.
* configure: Rebuilt.

From-SVN: r123006

17 years agoinvoke.texi (-Wconversion): Document warnings specific to C++.
Manuel López-Ibáñez [Fri, 16 Mar 2007 23:32:12 +0000 (23:32 +0000)]
invoke.texi (-Wconversion): Document warnings specific to C++.

2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

* doc/invoke.texi (-Wconversion): Document warnings specific to C++.
* c-common.c (convert_and_check): Move warning logic to...
(warnings_for_convert_and_check): ...here. Define.
* c-common.h (warnings_for_convert_and_check): Declare.
cp/
* cvt.c (cp_convert_and_check) : Define.
* cp-tree.h (cp_convert_and_check): Declare.
* call.c (convert_conversion_warnings): Rename to
conversion_null_warnings.  The warning for floating-point to
integer is handled by convert_and_check in convert_like_real.
(convert_like_real): convert_conversion_warnings was renamed as
conversion_null_warnings.
* typeck.c (build_binary_op): Use cp_convert_and_check to warn for
overflow and changes of value during conversion.
testsuite/
* g++.dg/warn/Wconversion-integer.C: New
* g++.dg/warn/Wconversion-real.C: New.
* g++.dg/warn/Wconversion-real-integer.C: New.
* g++.dg/warn/conv2.C: Updated.

From-SVN: r123005

17 years agopa.c (attr_length_call): Partially revert change of 2007-03-09.
John David Anglin [Fri, 16 Mar 2007 23:12:46 +0000 (23:12 +0000)]
pa.c (attr_length_call): Partially revert change of 2007-03-09.

* pa.c (attr_length_call): Partially revert change of 2007-03-09.
(output_call): Likewise.

From-SVN: r123002

17 years ago* tools/gnu/classpath/tools/javah/JniStubPrinter.java
Tom Tromey [Fri, 16 Mar 2007 22:48:27 +0000 (22:48 +0000)]
* tools/gnu/classpath/tools/javah/JniStubPrinter.java
(printClass): Added filename argument.
* tools/gnu/classpath/tools/javah/JniIncludePrinter.java
(printClass): Added filename argument.
* tools/gnu/classpath/tools/javah/CniIncludePrinter.java
(printClass): Use user's file name.
* tools/gnu/classpath/tools/javah/CniStubPrinter.java
(printClass): Use user's file name.
* tools/gnu/classpath/tools/javah/Printer.java (printClass): Added
filename argument.
* tools/gnu/classpath/tools/javah/Main.java (getParser): Fix '-v'
argument order.
(writeHeaders): Use a HashMap.
(run): Put class name into HashMap for writeHeaders.

From-SVN: r123000

17 years agotypes_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing.
Benjamin Kosnik [Fri, 16 Mar 2007 19:44:00 +0000 (19:44 +0000)]
types_std_c++0x.cc: Use -std=gnu++0x instead of -std=c++0x for testing.

2007-03-16  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/27_io/headers/cinttypes/types_std_c++0x.cc: Use
-std=gnu++0x instead of -std=c++0x for testing.
* testsuite/18_support/headers/cstdint/types_std_c++0x.cc: Same.
* testsuite/26_numerics/headers/random/types_std_c++0x.cc: Same.
* testsuite/26_numerics/headers/cfenv/types_std_c++0x.cc: Same.
* testsuite/26_numerics/headers/cstdlib/types_std_c++0x.cc: Same.
* testsuite/26_numerics/headers/cmath/types_std_c++0x.cc: Same.
* testsuite/17_intro/headers/c++200x/all_multiple_inclusion.cc: Same.
* testsuite/17_intro/headers/c++200x/all.cc: Same.
* testsuite/17_intro/using_namespace_std_tr1_neg.cc: Same.
* testsuite/23_containers/hash/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/unordered_map/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/tuple/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/unordered_multimap/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/unordered_set/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/headers/tuple/types_std_c++0x.cc: Same.
* testsuite/23_containers/unordered_multiset/requirements/
explicit_instantiation.cc: Same.
* testsuite/23_containers/array/requirements/
explicit_instantiation.cc: Same.
* testsuite/20_util/enable_shared_from_this/requirements/
explicit_instantiation.cc: Same.
* testsuite/20_util/headers/functional/types_std_c++0x.cc: Same.
* testsuite/20_util/headers/functional/
using_namespace_std_placeholders.cc: Same.
* testsuite/20_util/headers/type_traits/types_std_c++0x.cc: Same.
* testsuite/20_util/headers/memory/types_std_c++0x.cc: Same.
* testsuite/20_util/shared_ptr/requirements/
explicit_instantiation.cc: Same.
* testsuite/20_util/weak_ptr/requirements/
explicit_instantiation.cc: Same.

From-SVN: r122996

17 years ago* runtime/main.c: Include "config.h" first.
David Edelsohn [Fri, 16 Mar 2007 15:50:19 +0000 (15:50 +0000)]
* runtime/main.c: Include "config.h" first.

From-SVN: r122994

17 years agointmax_t-1.c: Restrict XFAIL to VxWorks kernels; exclude RTPs.
Richard Sandiford [Fri, 16 Mar 2007 14:37:39 +0000 (14:37 +0000)]
intmax_t-1.c: Restrict XFAIL to VxWorks kernels; exclude RTPs.

gcc/testsuite/
* gcc.dg/intmax_t-1.c: Restrict XFAIL to VxWorks kernels;
exclude RTPs.

From-SVN: r122993

17 years agovxworks.h (SUPPORTS_INIT_PRIORITY): Define.
Richard Sandiford [Fri, 16 Mar 2007 14:35:26 +0000 (14:35 +0000)]
vxworks.h (SUPPORTS_INIT_PRIORITY): Define.

gcc/
* config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.

From-SVN: r122992

17 years agovx-common.h (WINT_TYPE, [...]): Define.
Richard Sandiford [Fri, 16 Mar 2007 14:34:56 +0000 (14:34 +0000)]
vx-common.h (WINT_TYPE, [...]): Define.

gcc/
* config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.

From-SVN: r122991