1. 24 Oct, 2008 13 commits
    • Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo. · 03ffcfa0
      	* Makefile.tpl (HOST_EXPORTS): Correct CPPFLAGS typo.
      	* Makefile.in: Regenerated.
      
      From-SVN: r141351
      Daniel Jacobowitz committed
    • scanasm.exp (scan-assembler, [...]): Extract first word of $testcase for all upvar uses... · f864868f
      * lib/scanasm.exp (scan-assembler, scan-assembler-not,
      scan-hidden, scan-not-hidden, scan-file, scan-file-not,
      scan-assembler-times, scan-assembler-dem, scan-assembler-dem-not):
      Extract first word of $testcase for all upvar uses, in case
      $testvar has compiler switches appended.
      
      From-SVN: r141350
      DJ Delorie committed
    • c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto. · 6b4ef5c1
      	* c-typeck.c (enum impl_conv): Remove ic_argpass_nonproto.
      	(convert_for_assignment): Remove ic_argpass_nonproto cases.
      
      From-SVN: r141347
      Joseph Myers committed
    • re PR tree-optimization/36038 (miscompiled loop in perlbmk for -Os) · 1a00e5f7
      	PR tree-optimization/36038
      	* tree-ssa-loop-ivopts.c (add_old_iv_candidates): For pointer bases
      	add sizetype IV with initial value zero instead of pointer type.
      
      	* gcc.c-torture/compile/pr36038.c: New test.
      
      From-SVN: r141343
      Jakub Jelinek committed
    • error_constants.h (enum errc): Remove no_posix_equivalent. · 918bf5c1
      2008-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* config/os/generic/error_constants.h (enum errc): Remove
      	no_posix_equivalent.
      	* config/os/mingw32/error_constants.h (enum errc): Likewise.
      	* testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc:
      	Adjust.
      
      From-SVN: r141341
      Paolo Carlini committed
    • re PR c/7543 (no warning for always-false "if (!a & 0x4)" bitwise and on boolean value) · 100d537d
      2008-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c/7543
      	* value-prof.c (gimple_stringop_fixed_value): Use parentheses
      	around bit operation.
      	* profile.c (is_edge_inconsistent): Likewise.
      	* fold-const.c (truth_value_p): Move from here...
      	* tree.h (truth_value_p): ... to here.
      	* c-tree.h (c_expr): Update description of original_code.
      	* c-typeck.c (parser_build_unary_op): Set original_code.
      	(parser_build_binary_op): Update call to warn_about_parentheses.
      	* c-common.c (warn_about_parentheses): Take two additional
      	arguments of the operands. Use a switch. Quote operators
      	appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P.
      	Add warning about !x | y and !x & y.
      	* c-common.h (warn_about_parentheses): Update declaration.
      cp/	
      	* typeck.c (build_x_binary_op): Update call to
      	warn_about_parentheses.
      	* parser.c (cp_parser_binary_expression): Add note about passing
      	the correct code for unary expressions.
      testsuite/
      	* gcc.dg/Wparentheses-11.c: New.
      	* g++.dg/warn/Wparentheses-25.C: New. XFAILED.
      
      From-SVN: r141340
      Manuel López-Ibáñez committed
    • re PR middle-end/37882 (Bitfield miscompilation) · 950d63e1
      	PR middle-end/37882
      	* gcc.c-torture/execute/pr37882.c: Remove a field.
      
      From-SVN: r141339
      Jakub Jelinek committed
    • Mark dg-extract-results.sh executable. · ba4f8572
      From-SVN: r141338
      Jakub Jelinek committed
    • dg-extract-results.sh: New file. · 7134e605
      contrib/
      	* dg-extract-results.sh: New file.
      gcc/
      	* Makefile.in (lang_checks_parallelized, check_gcc_parallelize,
      	check_p_tool, check_p_vars, check_p_subno, check_p_comma,
      	check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs):
      	New variables.
      	(check-subtargets, check-%-subtargets, check-parallel-%): New
      	targets.
      	(check-%): For test targets listed in lang_checks_parallelized
      	if -j is used and RUNTESTFLAGS doesn't specify tests to execute,
      	run the testing in multiple make goals, possibly parallel, and
      	afterwards run dg-extract-results.sh to merge the sum and log files.
      gcc/cp/
      	* Make-lang.in (check-c++-subtargets): New alias for
      	check-g++-subtargets.
      	(lang_checks_parallelized): Add check-g++.
      	(check_g++_parallelize): New variable.
      gcc/fortran/
      	* Make-lang.in (check-f95-subtargets, check-fortran-subtargets): New
      	aliases for check-gfortran-subtargets.
      	(lang_checks_parallelized): Add check-gfortran.
      	(check_gfortran_parallelize): New variable.
      gcc/ada/
      	* gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
      	check-acats-subtargets and check-gnat-subtargets.
      	(check_acats_targets): New variable.
      	(check-acats-subtargets, check-acats%): New targets.
      	(check-acats): If -j is used and CHAPTERS is empty, run the testing
      	in multiple make goals, possibly parallel, and afterwards run
      	dg-extract-results.sh to merge the sum and log files.
      gcc/java/
      	* Make-lang.in (check-java-subtargets): New target.
      libstdc++-v3/
      	* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu.
      	(RUNTESTDEFAULTFLAGS, EXPECT, check_DEJAGNU_normal_targets): New
      	variables.
      	(%/site.exp, check-DEJAGNU%): New targets.
      	(check-am): Run $(MAKE) check-DEJAGNU.
      	* testsuite/Makefile.in: Regenerated.
      
      From-SVN: r141337
      Jakub Jelinek committed
    • mips.c (mips_canonicalize_move_class): New function. · aea8cb37
      gcc/
      	* config/mips/mips.c (mips_canonicalize_move_class): New function.
      	(mips_move_to_gpr_cost): Likewise.
      	(mips_move_from_gpr_cost): Likewise.
      	(mips_register_move_cost): Make more fine-grained.
      
      From-SVN: r141336
      Richard Sandiford committed
    • re PR java/35485 (libjava is disabled by default) · 887e6178
              PR target/35485
              * configure.ac: AIX threads are Posix threads.
              Set signal handler to aix-signal.h
              * configure: Regenerate.
              * classpath/native/fdlibm/fdlibm.h: Undef hz.
              * include/aix-signal.h: New file.
              * sysdep/powerpc/locks.h: Avoid GNU Assembler syntax.
      
      From-SVN: r141335
      David Edelsohn committed
    • * MAINTAINERS (Write after approval): Add myself. · dec014a9
      From-SVN: r141334
      Cary Coutant committed
    • Daily bump. · c1f6283f
      From-SVN: r141332
      GCC Administrator committed
  2. 23 Oct, 2008 7 commits
  3. 22 Oct, 2008 13 commits
    • bfin.c (bdesc_2arg): Add mulhisill, mulhisilh, mulhisihl and mulhisihh builtins. · 2aca912d
      gcc/:
      	* config/bfin/bfin.c (bdesc_2arg): Add mulhisill, mulhisilh,
      	mulhisihl and mulhisihh builtins.
      
      gcc/testsuite/:
      	* gcc.target/bfin/hisilh.c: New file.
      	* gcc.target/bfin/hisilh-O0.c: New file.
      
      From-SVN: r141312
      Bernd Schmidt committed
    • From Jie Zhang <jie.zhang@analog.com> · 23cf1526
      	* config/bfin/bfin.md (composev2hi): Put operands into vector
      	with correct order.
      
      From-SVN: r141311
      Bernd Schmidt committed
    • * config/mips/mips.opt (msmartmips): Accept -mno-smartmips. · a166140f
      From-SVN: r141309
      Chao-ying Fu committed
    • gcc/: · 318b3009
      	From Mike Frysinger  <michael.frysinger@analog.com>
      	* config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF512,
      	BFIN_CPU_BF514, BFIN_CPU_BF516, and BFIN_CPU_BF518.
      	* config/bfin/bfin.c (bfin_cpus[]): Add 0.0 for bf512, bf514, bf516,
      	and bf518.  Add 0.2 for bf522, bf523, bf524, bf526, and bf527.
      	Add 0.6 for bf533, bf532, and bf531.  Add 0.5 for bf538 and bf539.
      	Add 0.2 for bf542, bf544, bf547, bf548, and bf549.
      	* config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF512__
      	for BFIN_CPU_BF512, __ADSPBF514__ for BFIN_CPU_BF514, __ADSPBF516__
      	for BFIN_CPU_BF516, and __ADSPBF518__ for BFIN_CPU_BF518.  Define
      	__ADSPBF51x__ for all of them.
      	* config/bfin/elf.h (LIB_SPEC): Select proper linker scripts for
      	-mcpu bf512, bf514, bf516, and bf518.
      	* config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
      	bf512-none, bf514-none, bf516-none, and bf518-none.
      	* config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
      	* config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
      	* doc/invoke.texi (Blackfin Options): Document that
      	-mcpu now accepts bf512, bf514, bf516, and bf518.
      
      gcc/testsuite/:
      	From Mike Frysinger  <michael.frysinger@analog.com>
      	* gcc.target/bfin/mcpu-bf522.c: Check SILICON_REVISION is 0x0002.  Invert
      	check for __WORKAROUND_RETS when SILICON_REVISION is 0x0002+.
      	* gcc.target/bfin/mcpu-bf523.c: Likewise.
      	* gcc.target/bfin/mcpu-bf524.c: Likewise.
      	* gcc.target/bfin/mcpu-bf525.c: Likewise.
      	* gcc.target/bfin/mcpu-bf526.c: Likewise.
      	* gcc.target/bfin/mcpu-bf527.c: Likewise.
      	* gcc.target/bfin/mcpu-bf531.c: Check SILICON_REVISION is 0x0006.  Invert
      	check for __WORKAROUND_RETS when SILICON_REVISION is 0x0006+.
      	* gcc.target/bfin/mcpu-bf532.c: Likewise.
      	* gcc.target/bfin/mcpu-bf533.c: Likewise.
      	* gcc.target/bfin/mcpu-bf538.c: Check SILICON_REVISION is 0x0005.  Invert
      	check for __WORKAROUND_RETS when SILICON_REVISION is 0x0005+.
      	* gcc.target/bfin/mcpu-bf539.c: Likewise.
      	* gcc.target/bfin/mcpu-bf542.c: Check SILICON_REVISION is 0x0002.  Invert
      	check for __WORKAROUND_RETS when SILICON_REVISION is 0x0002+.
      	* gcc.target/bfin/mcpu-bf544.c: Likewise.
      	* gcc.target/bfin/mcpu-bf547.c: Likewise.
      	* gcc.target/bfin/mcpu-bf548.c: Likewise.
      	* gcc.target/bfin/mcpu-bf549.c: Likewise.
      	* gcc.target/bfin/mcpu-bf512.c: New file.
      	* gcc.target/bfin/mcpu-bf514.c: Likewise.
      	* gcc.target/bfin/mcpu-bf516.c: Likewise.
      	* gcc.target/bfin/mcpu-bf518.c: Likewise.
      
      From-SVN: r141305
      Bernd Schmidt committed
    • re PR middle-end/37882 (Bitfield miscompilation) · 972afb58
      	PR middle-end/37882
      	* fold-const.c (build_range_type): For 1 .. signed_max
      	range call build_nonstandard_inter_type if signed_type_for
      	returned a type with bigger precision.
      
      	* gcc.c-torture/execute/pr37882.c: New test.
      
      From-SVN: r141303
      Jakub Jelinek committed
    • Import GNU Classpath (libgcj-import-20081021). · 58ddc179
      2008-10-22  Matthias Klose  <doko@ubuntu.com>
      
              Import GNU Classpath (libgcj-import-20081021).
      
              * Regenerate class and header files.
              * Regenerate auto* files.
      
      From-SVN: r141302
      Matthias Klose committed
    • tree.def (COMPLEX_TYPE): Constrain element type. · 51c869ca
      2008-10-22  Richard Guenther  <rguenther@suse.de>
      
      	* tree.def (COMPLEX_TYPE): Constrain element type.
      	* tree.c (build_complex_type): Assert that.
      	* tree-ssa-structalias.c (could_have_pointers): Complex types
      	cannot have pointers.
      
      From-SVN: r141299
      Richard Guenther committed
    • re PR c/30949 ("incompatible pointer type" warning does not point to declaration) · a7da8b42
      2008-10-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	PR c/30949
      	* c-typeck.c (convert_for_assignment): Do not give declaration's
      	location for builtins. Spell out which type was expected and which
      	was given.
      testsuite/
      	* gcc.target/i386/sse-vect-types.c: Update.
      	* gcc.dg/simd-5.c: Update.
      	* gcc.dg/assign-warn-2.c: Update.
      	* gcc.dg/simd-2.c: Update.
      	* gcc.dg/simd-6.c: Update.
      	* gcc.dg/assign-warn-1.c: Update.
      	* gcc.dg/dfp/composite-type.c: Update.
      	* gcc.dg/simd-1.c: Update.
      	* gcc.dg/pr36997.c: Update.
      
      From-SVN: r141298
      Manuel López-Ibáñez committed
    • system_error (is_error_code_enum): Specialize for errc. · 92010a79
      2008-10-22  Chris Fairles  <cfairles@gcc.gnu.org>
      
              * include/std/system_error (is_error_code_enum): Specialize for errc.
              (error_category::error_category): Defaulted and protected.
              (error_category::~error_category): New, virtual.
              (error_category::error_category(const error_category&),
              error_category::operator=(const error_category&)): Deleted.
              (get_system_category, get_posix_category): Remove (DR 890).
              (system_category): External linkage (DR 890).
              (posix_category): Remove.
              (generic_category): Add. External linkage (DR 890).
              (error_code::error_code<>(_ErrorCodeEnum)): Use generic_category.
              (error_code::clear, error_code::operator=<>(_ErrorCodeEnum)): Forward to
              error_code::assign, use generic_category.
              (error_condition::error_condition,
              error_condition::error_condition<>(_ErrorConditionEnum)): Use
              generic_category.
              (error_condition::clear,
              error_condition::operator=<>(_ErrorConditionEnum)): Forward to
              error_code::assign, use generic_category.
              (make_error_code, make_error_condition): Define in namespace std.
              * include/std/mutex (unique_lock<>::lock, unique_lock<>::try_lock,
              unique_lock<>::try_lock_until<>(duration),
              unique_lock<>::try_lock_for<>(duration)): Replace posix_error with errc.
              * src/system_error.cc (system_error_category, generic_error_category):
              New.
              (gnu_error_category): Remove.
              (get_system_category, get_posix_category): Remove (DR 890).
              (system_category, generic_category): Define.
              * src/functexcept.cc (__throw_system_error): Use generic_category.
              * config/abi/pre/gnu.ver: Export system_category and generic_category,
              remove get_system_category and get_generic_category (DR 890).
              * config/os/generic/error_constants.h (posix_errno): Rename to errc, use
              enum class type. Fix spelling.
              * config/os/mingw32/error_constants.h (posix_errno): Likewise.
              * testsuite/19_diagnostics/error_code/cons/1.cc: Use errc and
              generic_category.
              * testsuite/19_diagnostics/error_code/operators/bool.cc: Use errc.
              * testsuite/19_diagnostics/error_code/operators/equal.cc: Likewise.
              * testsuite/19_diagnostics/error_code/operators/not_equal.cc: Likewise.
              * testsuite/19_diagnostics/error_category/cons/copy_neg.cc: Update
              dg-error line numbers.
              * testsuite/19_diagnostics/error_condition/cons/1.cc: Use
              generic_category.
              * testsuite/19_diagnostics/error_condition/operators/bool.cc: Use errc.
              * testsuite/19_diagnostics/error_condition/operators/equal.cc: Likewise.
              * testsuite/19_diagnostics/error_condition/operators/not_equal.cc:
              Likewise.
              * testsuite/19_diagnostics/headers/system_error/errc_std_c++0x.cc: New.
              * testsuite/19_diagnostics/headers/system_error/types_std_c++0x.cc:
              Remove using tests since errc is not a namespace.
              * testsuite/19_diagnostics/system_error/cons-1.cc: Use errc.
              * testsuite/19_diagnostics/system_error/what-4.cc: Likewise.
              * testsuite/27_io/basic_ostream/inserters_other/wchar_t/error_code.cc:
              Likewise.
              * testsuite/27_io/basic_ostream/inserters_other/char/error_code.cc:
              Likewise.
              * testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
      
      From-SVN: r141297
      Chris Fairles committed
    • frv.h (HARD_REGNO_RENAME_OK): Define. · b8a19ec4
              * config/frv/frv.h (HARD_REGNO_RENAME_OK): Define.  Do not allow
              the fdpic register to be a target when running in fdpic mode.
      
      From-SVN: r141295
      Nick Clifton committed
    • ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the newly created statements. · a291ed6d
      2008-10-22 Rafael Espindola  <espindola@google.com>
      
      	* ipa-struct-reorg.c (create_new_alloc_sites): Properly insert the
      	newly created statements.
      
      From-SVN: r141293
      Rafael Avila de Espindola committed
    • ./ · b36c386c
      	PR gdb/921
      	PR gdb/1646
      	PR gdb/2175
      	PR gdb/2176
      
      	* Makefile.def (flags_to_pass): Add CPPFLAGS_FOR_BUILD and CPPFLAGS.
      	* Makefile.tpl (BUILD_EXPORTS): Set CPPFLAGS.
      	(EXTRA_BUILD_FLAGS): Correct typo.  Pass CPPFLAGS.
      	(HOST_EXPORTS): Pass CPPFLAGS.
      	(CPPFLAGS_FOR_BUILD, CPPFLAGS, CPPFLAGS_FOR_TARGET): Define.
      	(LDFLAGS_FOR_TARGET): Initialize from configure script.
      	(EXTRA_TARGET_FLAGS): Set CPPFLAGS.
      	* Makefile.in, configure: Regenerated.
      	* configure.ac: Set CPPFLAGS_FOR_TARGET, LDFLAGS_FOR_TARGET,
      	and CPPFLAGS_FOR_BUILD.
      
      	libiberty/
      	* Makefile.in (CPPFLAGS): Define.
      	(FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
      
      From-SVN: r141292
      Daniel Jacobowitz committed
    • Daily bump. · 8eb766fd
      From-SVN: r141286
      GCC Administrator committed
  4. 21 Oct, 2008 7 commits