aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-11-14re PR tree-optimization/38104 (ICE segmentation fault (with -O3 when deref ↵Jakub Jelinek4-4/+34
a NULL pointer in the code??)) PR tree-optimization/38104 * gimplify.c (gimple_regimplify_operands): Add referenced vars before calling mark_symbols_for_renaming, not after it. * g++.dg/tree-ssa/pr38104.C: New test. From-SVN: r141857
2008-11-14pr37514.c: Remove.Kaz Kojima1-65/+0
* gcc.target/sh/pr37514.c: Remove. From-SVN: r141856
2008-11-14sh.h (OPTIMIZATION_OPTIONS): Revert last change.Kaz Kojima3-9/+9
* config/sh/sh.h (OPTIMIZATION_OPTIONS): Revert last change. (OVERRIDE_OPTIONS): Likewise. * gcc.target/sh/pr37514.c: Remove. From-SVN: r141855
2008-11-14re PR testsuite/37517 (gcc.target/i386/quad-sse.c fails with -fPIC)Uros Bizjak2-1/+6
PR testsuite/37517 * gcc.target/i386/quad-sse.c: Tighten scan-assembler-not pattern. From-SVN: r141854
2008-11-14re PR target/36134 (GCC creates suboptimal ASM : usage of ADDA.L where LEA ↵Maxim Kuvyrkov4-12/+51
could be used) 2008-11-14 Maxim Kuvyrkov <maxim@codesourcery.com> Andrew Stubbs <ams@codesourcery.com> Gunnar Von Boehn <gunnar@genesi-usa.com> gcc/ PR target/36134 * config/m68k/m68k.md (addsi3_5200): Add a new alternative preferring the shorter LEA insn over ADD.L where possible. gcc/testsuite/ PR target/36134 * gcc.target/m68k/pr36134.c: New test. Co-Authored-By: Andrew Stubbs <ams@codesourcery.com> Co-Authored-By: Gunnar Von Boehn <gunnar@genesi-usa.com> From-SVN: r141853
2008-11-14Add missing commit part:Uros Bizjak2-2/+5
* gcc.dg/compat/struct-layout-1.h: Do not include <mmintrin.h> and <xmmintrin.h>, define __m64 and __m128 directly. From-SVN: r141852
2008-11-14configure.ac (gcc_cv_libc_provides_ssp): Also consider GNU/Hurd systems...Thomas Schwinge3-0/+16
2008-11-14 Thomas Schwinge <tschwinge@gnu.org> * configure.ac (gcc_cv_libc_provides_ssp): Also consider GNU/Hurd systems, which are assumend to always provide SSP-support in glibc. * configure: Regenerate. From-SVN: r141851
2008-11-14configure.ac (gcc_cv_libc_provides_ssp): Also consider GNU/kFreeBSD, ↵Thomas Schwinge3-2/+8
GNU/kNetBSD systems in the `*-*-linux*' case. 2008-11-14 Thomas Schwinge <tschwinge@gnu.org> * configure.ac (gcc_cv_libc_provides_ssp): Also consider GNU/kFreeBSD, GNU/kNetBSD systems in the `*-*-linux*' case. * configure: Regenerate. From-SVN: r141850
2008-11-14re PR middle-end/36125 (FAIL: 26_numerics/complex/13450.cc: ICE in ↵Jakub Jelinek4-0/+29
verify_gimple_expr, at tree-cfg.c:3962) PR middle-end/36125 * function.c (gimplify_parameters): For callee copies parameters, move TREE_ADDRESSABLE flag from the PARM_DECL to the local copy. * gcc.c-torture/compile/pr36125.c: New test. From-SVN: r141848
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-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-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 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 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-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-11Daily bump.GCC Administrator1-1/+1
From-SVN: r141762