aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2008-12-05re PR c/38408 (compilation error during bootstrap in fold-const.c using TOT!)Jakub Jelinek2-1/+7
PR c/38408 * fold-const.c (fold_checksum_tree): Change buf type to union tree_node. From-SVN: r142468
2008-12-05re PR bootstrap/38262 (GCC components unnecessarily link with shared gmp/mpfr)Jakub Jelinek7-6/+33
PR bootstrap/38262 Fixup ChangeLog entries. From-SVN: r142466
2008-12-05* gcc.dg/union-5.c: Run only on x86 and x86-64.Eric Botcazou2-1/+5
From-SVN: r142465
2008-12-05re PR bootstrap/38262 (GCC components unnecessarily link with shared gmp/mpfr)Sebastian Pop8-14/+26
2008-11-07 Sebastian Pop <sebastian.pop@amd.com> PR bootstrap/38262 * java/Make-lang.in (jc1): Add BACKENDLIBS, remove GMPLIBS. * objc/Make-lang.in (cc1obj-dummy, cc1obj): Same. * objcp/Make-lang.in (cc1objplus-dummy, cc1objplus): Same. * cp/Make-lang.in (cc1plus-dummy, cc1plus): Same. * ada/gcc-interface/Make-lang.in (gnat1): Same. * fortran/Make-lang.in (f951): Same. * Makefile.in (LIBS): Remove GMPLIBS, CLOOGLIBS and PPLLIBS. (BACKENDLIBS): New. (cc1-dummy, cc1): Add BACKENDLIBS, remove GMPLIBS. From-SVN: r142464
2008-12-05re PR fortran/38285 (Wrong I/O output: Interaction between F and P for output)Jerry DeLisle2-0/+15
2008-12-04 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/38285 gfortran.dg/fmt_f_an_p.f: New test. From-SVN: r142456
2008-12-05Daily bump.GCC Administrator1-1/+1
From-SVN: r142453
2008-12-05c-parser.c (c_parser_enum_specifier): Initialise ident_loc and comma_loc.Ben Elliston2-4/+10
* c-parser.c (c_parser_enum_specifier): Initialise ident_loc and comma_loc. (c_parser_initelt): Initialise des_loc and ellipsis_loc. From-SVN: r142448
2008-12-04cse.c (lookup_as_function): Delete mode frobbing code.Eric Botcazou4-13/+75
* cse.c (lookup_as_function): Delete mode frobbing code. (equiv_constant): Re-implement it there for SUBREGs. Co-Authored-By: Gary Funck <gary@intrepid.com> From-SVN: r142443
2008-12-04re PR c++/37906 (has_trivial_default_constructor vs. deleted copy ctor)Jason Merrill5-4/+33
PR c++/37906 * decl.c (grok_special_member_properties): Set TYPE_HAS_COMPLEX_DFLT here. * class.c (check_bases_and_members): Rather than assuming any user-declared default constructor is complex here. From-SVN: r142442
2008-12-04re PR middle-end/36509 (gcc.dg/Wstrict-aliasing-float-ptr-int-obj.c)Richard Guenther13-1059/+154
2008-12-04 Richard Guenther <rguenther@suse.de> PR middle-end/36509 PR c++/38334 * Makefile.in (tree-ssa-alias-warnings.o): Remove. (tree-ssa-structalias.o): Remove errors.h dependency. (tree-ssa-reassoc.o): Likewise. * tree-ssa-reassoc.c: Do not include errors.h. * tree-ssa-alias-warnings.c: Remove. * tree-ssa-alias.c (compute_may_aliases): Remove call to strict_aliasing_warning_backend. * tree-ssa-structalias.c (emit_pointer_definition): New function. (emit_alias_warning): Likewise. (set_uids_in_ptset): Warn for clear cases of type-punning. * tree-inline.c (remap_gimple_op_r): Preserve TREE_NO_WARNING on INDIRECT_REFs. cp/ * typeck.c (get_member_function_from_ptrfunc): Mark the vtbl pointer access with TREE_NO_WARNING. * gcc.dg/Wstrict-aliasing-float-ptr-int-obj.c: Adjust, remove XFAIL. * gcc.dg/Wstrict-aliasing-converted-assigned.c: Adjust. * g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Likewise. From-SVN: r142437
2008-12-04* cse.c (equiv_constant): Fix pasto.Eric Botcazou4-1/+32
From-SVN: r142432
2008-12-04stormy16.md: Remove extraneous spaces and quotes.Nick Clifton3-320/+336
* config/stormy16/stormy16.md: Remove extraneous spaces and quotes. * config/stormy16/stormy16.c: Remove extraneous spaces and fix up formatting of quotes. From-SVN: r142431
2008-12-04re PR middle-end/38371 (Fold check error during bootstrap)Jakub Jelinek2-2/+11
PR middle-end/38371 * fold-const.c (fold_checksum_tree): Allow modification of TYPE_NEXT_VARIANT. From-SVN: r142430
2008-12-03badalloc1.C: Add the missing "}".H.J. Lu2-1/+5
2008-12-03 H.J. Lu <hongjiu.lu@intel.com> * g++.old-deja/g++.eh/badalloc1.C: Add the missing "}". From-SVN: r142428
2008-12-04Daily bump.GCC Administrator1-1/+1
From-SVN: r142421
2008-12-03re PR c++/38232 ("value-initialization of reference" warning too strict)Jason Merrill4-41/+56
PR c++/38232 * init.c (build_value_init): Do initial zero-initialization of a class with an implicitly-defined constructor using build_zero_init rather than in build_value_init. (build_value_init_1): Fold into build_value_init. From-SVN: r142418
2008-12-03* g++.old-deja/g++.eh/badalloc1.C: Reinstate XFAIL for Darwin 3-7.Janis Johnson2-1/+5
From-SVN: r142417
2008-12-03badalloc1.C: Omit XFAIL on obsolete Darwin.Jack Howarth2-1/+5
2008-12-03 Jack Howarth <howarth@bromo.med.uc.edu> * g++.old-deja/g++.eh/badalloc1.C: Omit XFAIL on obsolete Darwin. From-SVN: r142415
2008-12-03re PR c++/38256 (ICE with "operator auto")Jason Merrill5-6/+31
PR c++/38256 * parser.c (cp_parser_conversion_type_id): Diagnose 'operator auto' here. * decl.c (grokdeclarator): Not here. From-SVN: r142410
2008-12-03re PR c++/38380 (explicitly defaulted constructors vs. empty direct ↵Jason Merrill7-12/+72
initialization) PR c++/38380 * decl.c (grokdeclarator): Only set DECL_NONCONVERTING_P on explicit constructors. * pt.c (tsubst_copy_and_build) [CONSTRUCTOR]: Propagate CONSTRUCTOR_IS_DIRECT_INIT. From-SVN: r142404
2008-12-03fix markupJason Merrill1-2/+2
From-SVN: r142401
2008-12-03re PR middle-end/38360 (ICE in gimple_op, at gimple.h:1636)Jakub Jelinek4-10/+35
PR middle-end/38360 * tree-ssa-ccp.c (ccp_fold_builtin): Bail out if the builtin doesn't have the right number of arguments. * gcc.c-torture/compile/pr38360.c: New test. From-SVN: r142399
2008-12-03re PR middle-end/36326 (gimplification of aggregate copies introduces extra ↵Richard Guenther4-7/+26
aggregate copy) 2008-12-03 Richard Guenther <rguenther@suse.de> PR middle-end/36326 * gimplify.c (is_gimple_mem_or_call_rhs): Remove work-around for non-BLKmode types. * gcc.dg/tree-ssa/pr36326.c: New testcase. From-SVN: r142396
2008-12-03pr38250.c: New file.Tomas Bily1-0/+24
* testsuite/gcc.dg/tree-ssa/pr38250.c: New file. --This list and those below, will be ignored-- A gcc/testsuite/gcc.dg/tree-ssa/pr38250.c From-SVN: r142395
2008-12-03re PR middle-end/38250 (ICE with -O2 -ftree-loop-distribution)Tomas Bily5-17/+46
PR middle-end/38250 * tree-loop-distribution.c (build_size_arg): New function. (generate_memset_zero): Checks if DR_STEP(de) is NULL. Reorganized generating of stmts. * testsuite/gcc.dg/tree-ssa/pr38250.c: New file. * tree-data-ref.c (dr_analyze_innermost): Returns bool. Indicate if analysis succeed. * tree-data-ref.h (dr_analyze_innermost): Returns bool. * tree-predcom.c (valid_initializer_p, find_looparound_phi): Uses new definition of dr_analyze_innermost. From-SVN: r142394
2008-12-03* tree-ssa-pre.c (do_regular_insertion): Initialise edoubleprime.Ben Elliston2-1/+5
From-SVN: r142393
2008-12-03re PR tree-optimization/37716 (ice for legal C++ code with -O2 on 20080926)Jakub Jelinek4-61/+90
PR tree-optimization/37716 * tree-sra.c (sra_build_assignment): For scalar bitfield SRC construct all the needed operations as trees and gimplify_assign it to dst. * g++.dg/torture/pr37716.C: New test. From-SVN: r142392
2008-12-03* gcc.dg/torture/pr37868.c: Skip on the SPARC.Eric Botcazou2-0/+5
From-SVN: r142390
2008-12-03re PR target/37610 (FAIL: g++.dg/eh/pr29166.C execution test)Jakub Jelinek3-3/+169
PR target/37610 * configure.ac (gcc_cv_readelf): Look for readelf. (gcc_cv_as_cfi_advance_working): Check for working cfi advances with code alignment factor > 1. (HAVE_GAS_CFI_DIRECTIVE): Don't define if cfi advances don't work properly. * configure: Regenerated. From-SVN: r142389
2008-12-03re PR rtl-optimization/38281 (segmentation fault with optimization enabled)Eric Botcazou5-1/+44
PR rtl-optimization/38281 * combine.c (distribute_notes): When invoking SET_INSN_DELETED on i2, set it to NULL_RTX afterwards. * emit-rtl.c (set_insn_deleted): Fix formatting. Co-Authored-By: Andrew Pinski <andrew_pinski@playstation.sony.com> Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r142388
2008-12-03Daily bump.GCC Administrator1-1/+1
From-SVN: r142382
2008-12-02PR c++/35782, c++/37860Jason Merrill7-20/+119
PR c++/35782, c++/37860 * call.c (build_user_type_conversion_1): Remember list-initialization. (convert_like_real): Likewise. (build_over_call): Don't require the copy constructor for copy-list-initialization. * cp-tree.h (TARGET_EXPR_LIST_INIT_P): New macro. PR c++/37234 * decl.c (cp_finish_decl): Handle =default and =delete for templates, too. From-SVN: r142379
2008-12-02Sorry, committed the wrong version of the last patch.Richard Sandiford2-7/+6
From-SVN: r142376
2008-12-02mips.c (mips_expand_builtin): Fix the mode of the error return value.Richard Sandiford3-26/+49
gcc/ * config/mips/mips.c (mips_expand_builtin): Fix the mode of the error return value. * config/mips/mips.md (IMOVE32): New mode iterator. (movsi): Generalize with IMOVE32. (*movsi_internal): Likewise. (*mov<mode>_mips16): Likewise, and its define_splits. (*lwxs): Likewise. From-SVN: r142375
2008-12-02lb1sf68.asm (PICCALL, PICJUMP): Use GOT instead of PC-relative addressing ↵Nathan Sidwell2-26/+64
when compiling for uclinux PIC. * config/m68k/lb1sf68.asm (PICCALL, PICJUMP): Use GOT instead of PC-relative addressing when compiling for uclinux PIC. (__cmpdf_internal, __cmpsf_internal): Hide. (__cmpdf, __cmpsf): Use PIC call sequence. Co-Authored-By: Maxim Kuvyrkov <maxim@codesourcery.com> From-SVN: r142373
2008-12-02linkage.exp: Correct file type check for Darwin.Jack Howarth2-4/+15
2008-12-02 Jack Howarth <howarth@bromo.med.uc.edu> * gcc.misc-tests/linkage.exp: Correct file type check for Darwin. From-SVN: r142371
2008-12-02t-darwin64: Add m32 multilib support.Andreas Tobler2-0/+11
2008-12-02 Andreas Tobler <a.tobler@schweiz.org> Jack Howarth <howarth@bromo.med.uc.edu> * config/i386/t-darwin64: Add m32 multilib support. Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu> From-SVN: r142370
2008-12-02darwin-comm.c: Expand to darwin10 and later.Jack Howarth2-1/+5
2008-12-02 Jack Howarth <howarth@bromo.med.uc.edu> * testsuite/gcc.dg/darwin-comm.c: Expand to darwin10 and later. From-SVN: r142368
2008-12-02Make-lang.in (install-finclude-dir): Use mkinstalldirs and don't remove the ↵Jakub Jelinek2-3/+7
finclude directory beforehand. 2008-12-02 Jakub Jelinek <jakub@redhat.com> Diego Novillo <dnovillo@google.com> * Make-lang.in (install-finclude-dir): Use mkinstalldirs and don't remove the finclude directory beforehand. Co-Authored-By: Diego Novillo <dnovillo@google.com> From-SVN: r142365
2008-12-02re PR middle-end/38343 (ice for legal code with -O2)Jakub Jelinek4-0/+24
PR middle-end/38343 * builtins.c (fold_builtin_memory_op): Convert len to sizetype before using it in POINTER_PLUS_EXPR. * gcc.c-torture/compile/pr38343-2.c: New test. From-SVN: r142363
2008-12-02re PR tree-optimization/38359 (ICE in set_lattice_value, at tree-ssa-ccp.c:466)Richard Biener1-0/+17
2008-12-02 Richard Guenther <rguenther@suse.de> PR tree-optimization/38359 * gcc.c-torture/compile/pr38359.c: New testcase. From-SVN: r142357
2008-12-02re PR tree-optimization/38359 (ICE in set_lattice_value, at tree-ssa-ccp.c:466)Richard Guenther4-7/+14
2008-12-02 Richard Guenther <rguenther@suse.de> PR tree-optimization/38359 * fold-const.c (fold_binary): Fold -1 >> x to -1 only for non-negative x. * gcc.c-torture/compile/pr38359.c: New testcase. * gcc.c-torture/execute/shiftopt-1.c: Adjust. From-SVN: r142356
2008-12-02re PR middle-end/37861 (Bogus array bounds warning)Martin Jambor2-11/+25
2008-12-02 Martin Jambor <mjambor@suse.cz> PR middle-end/37861 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not check for INDIRECT_REFs. (forward_propagate_addr_into_variable_array_index): Check that the offset is not computed from a MULT_EXPR, use is_gimple_assign rather than the gimple code directly. From-SVN: r142355
2008-12-02float_disf.c (__floatdisf): Prototype.Ben Elliston5-3/+16
* config/spu/float_disf.c (__floatdisf): Prototype. * config/spu/float_unsdisf.c (__float_undisf): Likewise. * config/spu/float_unssidf.c (__float_unssidf): Constify cast. * config/spu/float_unsdidf.c (__float_unsdidf): Likewise. From-SVN: r142352
2008-12-02re PR fortran/36704 (Procedure pointer as function result)Janus Weil14-14/+139
2008-12-02 Janus Weil <janus@gcc.gnu.org> PR fortran/36704 PR fortran/38290 * decl.c (match_result): Result may be a standard variable or a procedure pointer. * expr.c (gfc_check_pointer_assign): Additional checks for procedure pointer assignments. * primary.c (gfc_match_rvalue): Bugfix for procedure pointer assignments. * resolve.c (resolve_function): Check for attr.subroutine. * symbol.c (check_conflict): Addtional checks for RESULT statements. * trans-types.c (gfc_sym_type,gfc_get_function_type): Support procedure pointers as function result. 2008-12-02 Janus Weil <janus@gcc.gnu.org> PR fortran/36704 PR fortran/38290 * gfortran.dg/entry_7.f90: Modified. * gfortran.dg/proc_ptr_2.f90: Extended. * gfortran.dg/proc_ptr_3.f90: Modified. * gfortran.dg/proc_ptr_11.f90: New. * gfortran.dg/proc_ptr_12.f90: New. * gfortran.dg/result_1.f90: New. From-SVN: r142351
2008-12-02stormy16.h (INCOMING_FRAME_SP_OFFSET): Negate.DJ Delorie4-59/+45
* config/stormy16/stormy16.h (INCOMING_FRAME_SP_OFFSET): Negate. (DWARF_CIE_DATA_ALIGNMENT): Define. * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Invert add/sub for INCOMING_FRAME_SP_OFFSET. (xstormy16_expand_prologue): Likewise. (xstormy16_expand_builtin_va_start): Likewise. (xstormy16_gimplify_va_arg_expr): Likewise. From-SVN: r142350
2008-12-02re PR middle-end/38343 (ice for legal code with -O2)Jakub Jelinek4-13/+57
PR middle-end/38343 * builtins.c (expand_builtin_mempcpy_args): Handle COMPOUND_EXPRs potentially returned from folding memcpy. (expand_builtin_stpcpy_args): Similarly for folding strcpy. (fold_builtin_2): Handle BUILT_IN_STPCPY if result is ignored. * gcc.c-torture/compile/pr38343.c: New test. From-SVN: r142348
2008-12-02re PR target/38054 (Assertion failed in change_decl_assembler_name())Danny Smith2-19/+18
PR target/38054 * config/i386/winnt.c (i386_pe_encode_section_info): Condition stdcall decoration of function RTL names here on Ada language. From-SVN: r142347
2008-12-02* gcc.target/powerpc/pr18096-1.c: Adjust location of expected error.Janis Johnson2-2/+6
From-SVN: r142342
2008-12-02Daily bump.GCC Administrator1-1/+1
From-SVN: r142339