aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-11-13re PR c++/37932 (narrowing conversion with -std=c++0x)Jason Merrill5-4/+46
PR c++/37932 * typeck2.c (process_init_constructor_record): Update bitfield handling. (check_narrowing): Update bitfield handling, print source type. From-SVN: r141843
2008-11-14Daily bump.GCC Administrator1-1/+1
From-SVN: r141841
2008-11-14re PR target/28102 (GNU Hurd bootstrap error: 'OPTION_GLIBC' undeclared)Thomas Schwinge4-50/+42
2008-11-13 Thomas Schwinge <tschwinge@gnu.org> PR target/28102 * config.gcc (*-*-gnu*): Move Alpha parts into the `alpha*-*-gnu*', x86 parts into the `i[34567]86-*-linux*' and parts that are independent of the processor architecture into the `*-*-linux*' cases. (*-*-linux*): Consider `linux.opt' only for Linux-based configurations. * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Redefine. (TARGET_OS_CPP_BUILTINS, LINK_SPEC): Don't redefine. [TARGET_LIBC_PROVIDES_SSP] (TARGET_THREAD_SSP_OFFSET): Undefine. * config/gnu.h (NO_IMPLICIT_EXTERN_C): Don't redefine. (HURD_TARGET_OS_CPP_BUILTINS): Don't define, but instead... (LINUX_TARGET_OS_CPP_BUILTINS): Redefine. From-SVN: r141838
2008-11-13* testsuite/ChangeLog: Add missing ChangeLog entry.Uros Bizjak1-2/+7
From-SVN: r141837
2008-11-13loongson-muldiv-1.c: New test.Richard Sandiford3-0/+37
gcc/testsuite/ * gcc.target/mips/loongson-muldiv-1.c: New test. * gcc.target/mips/loongson-muldiv-2.c: Likewise. From-SVN: r141836
2008-11-13loongson.md (<u>div<mode>3, [...]): New patterns.Ruan Beihong5-8/+70
gcc/ 2008-11-13 Ruan Beihong <ruanbeihong@gmail.com> * config/mips/loongson.md (<u>div<mode>3, <u>mod<mode>3): New patterns. * config/mips/loongson2ef.md (ls2_imult): Handle imul3nc. (ls2_idiv): Likewise idiv3. (ls2_prefetch): New reservation. * config/mips/mips.h (ISA_HAS_PREFETCH): Add TARGET_LOONGSON_2EF. * config/mips/mips.md (type): Add imul3nc and idiv3. (length): Handle idiv3. (any_mod): New code_iterator. (u): Handle MOD and UMOD. (mul<mode>3): Generate mul<mode>3_mul3_ls2ef on Loongson targets. (prefetch): Handle TARGET_LOONGSON_2EF. From-SVN: r141835
2008-11-13* id.po: New.Joseph Myers2-0/+912
From-SVN: r141831
2008-11-13re PR libgomp/37938 (libgomp testsuite failures on ia64-linux)Steve Ellcey2-0/+73
PR libgomp/37938 * config/linux/ia64/mutex.h: New. From-SVN: r141830
2008-11-13re PR debug/27017 (Debug information for static local class members are not ↵Jakub Jelinek5-8/+230
emitted) PR c++/27017 * dwarf2out.c (prune_unused_types_walk_local_classes): New function. (prune_unused_types_walk): Call it for non-perennial local classes. Set die_mark to 2 if recursing on children. If die_mark is 1 on entry, just set it to 2 and recurse on children, don't walk attributes again. * g++.dg/debug/dwarf2/localclass1.C: New test. * g++.dg/debug/dwarf2/localclass2.C: New test. From-SVN: r141829
2008-11-13c-common.c (warn_about_parentheses): Add missing whitespaceMartin Michlmayr2-2/+7
in warning. From-SVN: r141826
2008-11-13struct-layout-1_generate.c (dg-options): Add -mno-mmx for i?86-*-* and ↵Uros Bizjak4-9/+14
x86_64-*-* targets * gcc.dg/compat/struct-layout-1_generate.c (dg-options): Add -mno-mmx for i?86-*-* and x86_64-*-* targets * g++.dg/compat/struct-layout-1_generate.c (dg-options): Add -fno-common for *-*-darwin* *-*-mingw32* *-*-cygwin* targets. From-SVN: r141825
2008-11-13invoke.texi: Document --fix-cortex-m3.Paul Brook4-24/+74
2008-11-13 Paul Brook <paul@codesourcery.com> gcc/ * doc/invoke.texi: Document --fix-cortex-m3. * config/arm/arm.c (arm_override_options): Set fix_cm3_ldrd if Cortex-M3 cpu is selected. (output_move_double): Avoid overlapping base register and first destination register when fix_cm3_ldrd. * config/arm/arm.opt: Add mfix-cortex-m3-ldrd. From-SVN: r141822
2008-11-13decl.c (gnat_to_gnu_entity): Turn Ada Pure on subprograms back into GCC ↵Olivier Hainque7-31/+45
CONST when... ada/ * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Turn Ada Pure on subprograms back into GCC CONST when eh constructs are explicit to the middle-end. Tidy. testsuite/ * gnat.dg/test_raise_from_pure.adb: Adjust to match revised intent. * gnat.dg/wrap_raise_from_pure.ad[bs]: Remove. * gnat.dg/handle_raise_from_pure.adb: New test. From-SVN: r141821
2008-11-13re PR bootstrap/38100 (gcc fails to compile with (undefined symbol) ↵Jakub Jelinek3-39/+9
gimple_check_failed error) PR bootstrap/38100 * gimple.h (gimple_range_check_failed): Remove prototype. * gimple.c (gimple_check_failed): Don't check GCC_VERSION in guarding #if. (gimple_range_check_failed): Removed. From-SVN: r141820
2008-11-13Fix ChangeLog entry:Dodji Seketeli1-3/+3
PR debug/27574 * cgraph.h: New abstract_and_needed member to struct cgraph_node. * cgraphunit.c (cgraph_analyze_functions): Flag abstract functions - which clones are reachable - as "abstract and needed". * cgraph.c (cgraph_release_function_body): If a node is "abstract and needed", do not release its DECL_INITIAL() content that will be needed to emit debug info. From-SVN: r141819
2008-11-13re PR bootstrap/38088 (gcc fails to compile with undefined symbol: ↵Andrew Haley2-1/+7
__LONG_LONG_MAX__ error) PR bootstrap/38088 * mcf.c (CAP_INFINITY): Use HOST_WIDEST_INT maximum, not GCC specific __LONG_LONG_MAX__. From-SVN: r141818
2008-11-13Daily bump.GCC Administrator1-1/+1
From-SVN: r141816
2008-11-13re PR libstdc++/38000 (System header files not found once -isystem ↵Paolo Carlini33-106/+290
/usr/include is used) 2008-11-13 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/38000 * include/c_global/csignal: Do not use include_next. * include/c_global/cstdlib: Likewise. * include/c_global/cstdio: Likewise. * include/c_global/cstdarg: Likewise. * include/c_global/cctype: Likewise. * include/c_global/cerrno: Likewise. * include/c_global/cmath: Likewise. * include/c_global/clocale: Likewise. * include/c_global/climits: Likewise. * include/c_global/cassert: Likewise. * include/c_global/csetjmp: Likewise. * include/c_global/cwchar: Likewise. * include/c_global/cfloat: Likewise. * include/c_global/cstdbool: Likewise. * include/c_global/cstring: Likewise. * include/c_global/cstddef: Likewise. * include/c_global/cwctype: Likewise. * include/tr1/cstdbool: Likewise. * include/tr1_impl/cinttypes: Do not include <inttypes.h>. * include/c_global/cinttypes: Do it here. * include/tr1/cinttypes: Likewise. * include/tr1_impl/cfenv: Do not include <fenv.h>. * include/c_global/cfenv: Do it here. * include/tr1/cfenv: Likewise. * include/tr1_impl/cstdint: Do not include <stdint.h>. * include/c_global/cstdint: Do it here. * include/tr1/cstdint: Likewise. * include/c_compatibility/fenv.h: Include <tr1_impl/cfenv>. * include/c_compatibility/stdint.h: Include <tr1_impl/cstdint>. * include/c_compatibility/inttypes.h: Include <tr1_impl/cinttypes>. * include/c_compatibility/math.h: Minor tweak, add comment. From-SVN: r141812
2008-11-12re PR fortran/38094 (gfortran.dg/private_type_4.f90 -O doesn't work)Tobias Burnus2-1/+6
2008-11-12 Tobias Burnus <burnus@net-b.de> PR fortran/38094 * gfortran.dg/private_type_4.f90: Fix dg-error pattern. From-SVN: r141811
2008-11-12re PR c++/36478 (warning not emitted when code expanded from macro)Jakub Jelinek6-72/+22
PR c++/36478 Revert: 2007-05-07 Mike Stump <mrs@apple.com> * doc/invoke.texi (Warning Options): Document that -Wempty-body also checks for and while statements in C++. Revert: 2007-05-07 Mike Stump <mrs@apple.com> * parser.c (check_empty_body): Add. (cp_parser_iteration_statement): Add call to check_empty_body. * g++.old-deja/g++.mike/empty.C: Remove. From-SVN: r141810
2008-11-12re PR debug/27574 (MIssing debug info at -O0 for a local variable in a C++ ↵Dodji Seketeli7-1/+66
constructor) gcc/ChangeLog: 2008-11-12 Dodji Seketeli <dodji@redhat.com> PR debug/27574 * cgraph.h: New abstract_and_needed member to struct cgraph_node. * cgraphunit.c (cgraph_analyze_functions): Flag abstract functions - which clones are reachable - as "abstract and needed". * cgraph.c (cgraph_release_function_body): If a node is "abstract and needed", do not release its DECL_INITIAL() content because that will be needed to emit debug info. gcc/testsuite/ChangeLog: 2008-11-12 Dodji Seketeli <dodji@redhat.com> PR debug/27574 * g++.dg/debug/dwarf2/local-var-in-contructor.C: New test. From-SVN: r141807
2008-11-1220081112-1.c: New test.Eric Botcazou5-0/+54
* gcc.c-torture/execute/20081112-1.c: New test. * gnat.dg/concat1.adb: Likewise. * gnat.dg/concat1_pkg.ad[sb]: New helper. From-SVN: r141806
2008-11-12re PR target/27880 (undefined reference to `_Unwind_GetIPInfo')Steve Ellcey5-183/+50
PR target/27880 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Use this macro to set HAVE_GETIPINFO. * aclocal.m4: Include ../config/unwind_ipinfo.m4. * configure: Regenerate. * config.in: Regenerate. From-SVN: r141805
2008-11-12re PR target/27880 (undefined reference to `_Unwind_GetIPInfo')Steve Ellcey7-228/+140
PR target/27880 * config/unwind_ipinfo.m4 (GCC_CHECK_UNWIND_GETIPINFO): Change from link test to target based test. * libstdc++/v3/configure.ac: Move call to GCC_CHECK_UNWIND_GETIPINFO. * libstdc++/v3/configure: Regenerate. * libjava/configure: Regenerate. From-SVN: r141804
2008-11-12re PR bootstrap/38010 (gcc/config.gcc needs adjustment for darwin10)Jack Howarth2-1/+6
2008-11-12 Jack Howarth <howarth@bromo.med.uc.edu> PR bootstrap/38010 * gcc/config.gcc: Use darwin9.h on darwin10 as well. From-SVN: r141803
2008-11-12revert: gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs.Jakub Jelinek2-10/+7
Revert: 2008-10-21 Jakub Jelinek <jakub@redhat.com> * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW from INTEGER_CSTs. From-SVN: r141802
2008-11-12re PR libgcj/33764 (gij is built as 32-bit binary when building multilib gcc)Jakub Jelinek46-129/+356
PR libgcj/33764 libjava/ * configure.ac (INSTALL_BINARIES): New AM_CONDITIONAL. * Makefile.am: If not INSTALL_BINARIES, use noinst_PROGRAMS instead of bin_PROGRAMS for binaries. * configure: Regenerated. * Makefile.in: Regenerated. libjava/classpath/ * configure.ac (INSTALL_BINARIES): New AM_CONDITIONAL. * tools/Makefile.am: If not INSTALL_BINARIES, use noinst_PROGRAMS instead of bin_PROGRAMS for binaries. * configure: Regenerated. * tools/Makefile.in: Regenerated. From-SVN: r141801
2008-11-12re PR c++/38007 (g++ instantiate same operator twice due to bitfield in -O0 ↵Jason Merrill9-63/+61
mode, causing symbol already defined assembler error) PR c++/38007 gcc/cp/ * typeck.c (cp_build_modify_expr): Update bitfield handling. gcc/ * c-common.c (c_common_signed_or_unsigned_type): Remove C++ special casing. gcc/testsuite/ * g++.dg/conversion/bitfield10.C: New test. * g++.dg/warn/pr35635.C (func1): Accept additional warning. * g++.old-deja/g++.mike/enum1.C: Expect warn about assignment. * g++.dg/expr/bitfield9.C: Pass -Wno-overflow. From-SVN: r141800
2008-11-12avr.c (avr_mcu_t): Add atmega16hvb...Anatoly Sokolov4-5/+42
* config/avr/avr.c (avr_mcu_t): Add atmega16hvb, atmega32hvb, atmega4hvd, atmega8hvd, atmega64c1, atmega64m1, atmega16u4 and atmega32u6 devices. * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). From-SVN: r141799
2008-11-12re PR fortran/38065 (private/public confusion with a contained function)Tobias Burnus2-0/+9
2008-11-12 Tobias Burnus <burnus@net-b.de> PR fortran/38065 PR fortran/38094 * gfortran.dg/private_type_4.f90: Add -std=f95 option. From-SVN: r141798
2008-11-12[multiple changes]Andreas Krebbel7-3/+218
2008-11-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> * gcc/config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Remove packed-stack special handling. (FRAME_ADDR_RTX): Add definition. 2008-11-12 Andreas Krebbel <krebbel1@de.ibm.com> * gcc.target/s390/frame-addr1.c: New testcase. * gcc.target/s390/frame-addr2.c: New testcase. * gcc.target/s390/return-addr1.c: New testcase. * gcc.target/s390/return-addr2.c: New testcase. From-SVN: r141796
2008-11-12re PR testsuite/38008 ↵Jack Howarth2-1/+5
(gcc/testsuite/gcc.c-torture/execute/builtins/lib/sprintf.c unportable) 2008-11-12 Jack Howarth <howarth@bromo.med.uc.edu> PR testsuite/38008 * gcc.c-torture/execute/builtins/lib/sprintf.c: Make sprintf call more portable for darwin10. From-SVN: r141795
2008-11-12re PR testsuite/37202 (FAIL: gcc.dg/visibility-1[4-9].c)Jack Howarth7-0/+16
2008-11-12 Jack Howarth <howarth@bromo.med.uc.edu> PR testsuite/37202 * gcc.dg/visibility-14.c: Skip on *-*-darwin*. * gcc.dg/visibility-15.c: Same. * gcc.dg/visibility-16.c: Same. * gcc.dg/visibility-17.c: Same. * gcc.dg/visibility-18.c: Same. * gcc.dg/visibility-19.c: Same. From-SVN: r141794
2008-11-12re PR c++/34269 (Incomplete __decltype/__typeof expressions accepted)Jakub Jelinek6-3/+51
PR c++/34269 * parser.c (cp_parser_simple_declaration): Don't commit to tentative parse if parse errors were seen. * g++.dg/cpp0x/decltype13.C: New test. * g++.dg/cpp0x/decltype-33837.C: Adjust dg-error pattern. * g++.dg/cpp0x/pr33839.C: Likewise. From-SVN: r141793
2008-11-12re PR target/35366 (gfortran.dg/equiv_7.f90 fails with -m64 -Os on ↵Jakub Jelinek10-37/+147
powerpc-apple-darwin9) PR target/35366 PR fortran/33759 * fold-const.c (native_encode_string): New function. (native_encode_expr): Use it for STRING_CST. * trans-const.c (gfc_conv_constant_to_tree): Warn when converting an integer outside of LOGICAL's range to LOGICAL. * trans-intrinsic.c (gfc_conv_intrinsic_function, gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer): Use INTEGER_TYPE instead of BOOLEAN_TYPE for TRANSFER as argument of another TRANSFER. * gfortran.dg/hollerith.f90: Don't assume a 32-bit value stored into logical variable will be preserved. * gfortran.dg/transfer_simplify_4.f90: Remove undefined cases. Run at all optimization levels. Add a couple of new tests. * gfortran.dg/hollerith5.f90: New test. * gfortran.dg/hollerith_legacy.f90: Add dg-warning. From-SVN: r141790
2008-11-12cond.md (cond_to_int peephole2): Don't eliminate the insns if the ↵DJ Delorie2-2/+10
intermediate value will be used later. * config/m32c/cond.md (cond_to_int peephole2): Don't eliminate the insns if the intermediate value will be used later. From-SVN: r141788
2008-11-12m68k.c (print_operand): Mask off extra extension bits when writing out the ↵Andreas Schwab2-3/+9
representation of real values. * config/m68k/m68k.c (print_operand): Mask off extra extension bits when writing out the representation of real values. From-SVN: r141787
2008-11-12re PR tree-optimization/38079 (gcc segfaults when using ↵Ira Rosen2-16/+22
-ftree-vectorizer-verbose=9) PR tree-optimization/38079 * tree-vect-analyze.c (vect_analyze_data_refs): Replace dump_file with vect_dump. From-SVN: r141785
2008-11-12PR libstdc++/37986 (cont)Paolo Carlini3-5/+79
2008-11-12 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/37986 (cont) * include/tr1_impl/random (struct _Adaptor): Use only remove_reference on _Engine. (struct _Adaptor<_Engine*, _Distribution>): Add. * testsuite/tr1/5_numerical_facilities/random/variate_generator/ 37986.cc: Extend. From-SVN: r141784
2008-11-12re PR c++/35334 (Broken diagnostic for complex cast)Jakub Jelinek7-1/+103
PR c++/35334 * c-pretty-print.c (pp_c_complex_expr): New function. (pp_c_postfix_expression) <case COMPLEX_EXPR>: Call it. * error.c (dump_expr): Handle COMPLEX_EXPR. * gcc.dg/pr35334.c: New test. * g++.dg/other/error29.C: New test. From-SVN: r141783
2008-11-12re PR target/35366 (gfortran.dg/equiv_7.f90 fails with -m64 -Os on ↵Jakub Jelinek2-0/+17
powerpc-apple-darwin9) PR target/35366 * expr.c (expand_expr_addr_expr_1): If EXP needs bigger alignment than INNER and INNER is a constant, forcibly align INNER as much as needed. From-SVN: r141782
2008-11-12re PR fortran/38065 (private/public confusion with a contained function)Tobias Burnus5-6/+65
2008-11-12 Tobias Burnus <burnus@net-b.de> PR fortran/38065 * resolve.c (resolve_fntype): Fix private derived type checking. 2008-11-12 Tobias Burnus <burnus@net-b.de> PR fortran/38065 * gfortran.dg/private_type_11.f90: New test. * gfortran.dg/private_type_12.f90: New test. From-SVN: r141780
2008-11-12Daily bump.GCC Administrator1-1/+1
From-SVN: r141778
2008-11-11cse.c (fold_rtx): Remove redundant gen_rtx_CONST.Richard Sandiford2-18/+4
gcc/ * cse.c (fold_rtx): Remove redundant gen_rtx_CONST. From-SVN: r141775
2008-11-11re PR rtl-optimization/37363 (Fix for PR 36090 causes libstdc++ regressions)Richard Sandiford2-18/+6
gcc/ PR rtl-optimization/37363 * simplify-rtx.c (simplify_plus_minus): Don't create (const (minus ...)) expresisons. From-SVN: r141774
2008-11-11ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO handling.Eric Botcazou2-7/+17
* ira-lives.c (process_bb_node_lives): Restore EH_RETURN_DATA_REGNO handling. From-SVN: r141772
2008-11-11re PR libstdc++/37986 (std::tr1::variate_generator does not conform to TR1.)Paolo Carlini3-1/+57
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/37986 * include/tr1_impl/random (struct _Adaptor): Use remove_pointer and remove_reference on _Engine. * testsuite/tr1/5_numerical_facilities/random/variate_generator/ 37986.cc: New. From-SVN: r141769
2008-11-111_neg.cc: Adjust dg-error line numbers.Paolo Carlini1-0/+4
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/ext/ext_pointer/1_neg.cc: Adjust dg-error line numbers. From-SVN: r141768
2008-11-111_neg.cc: Adjust dg-error line numbers.Paolo Carlini1-8/+8
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/ext/ext_pointer/1_neg.cc: Adjust dg-error line numbers. From-SVN: r141767
2008-11-11erase.cc: Fix.Paolo Carlini3-8/+9
2008-11-11 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/23_containers/vector/ext_pointer/modifiers/erase.cc: Fix. * testsuite/23_containers/vector/ext_pointer/modifiers/element.cc: Likewise. From-SVN: r141766